/* One Piece TCG — Modo Arena Fullscreen, Overlay de Batalha e Mão Dinâmica */

body.op-playing {
  overflow: hidden;
}

body.op-playing .hub-nav,
body.op-playing .menu-shell,
body.op-playing .op-head,
body.op-playing .op-notice {
  display: none !important;
}

body.op-playing .op-wrap {
  max-width: none;
  width: 100vw;
  height: 100dvh;
  padding: 0;
  margin: 0;
}

body.op-playing .op-content {
  margin-top: 0;
  height: 100%;
}

body.op-playing .op-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0;
  width: 100%;
  height: 100dvh;
  min-height: 0;
}

body.op-playing .op-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  background: #060d18;
  position: relative;
}

body.op-playing .op-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: radial-gradient(circle at 50% 45%, #122842 0%, #07111f 70%, #040810 100%);
}

body.op-playing .op-hand {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 14px 10px;
  min-height: 132px;
  max-height: 152px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(180deg, rgba(6, 13, 24, 0.85) 0%, #08101c 100%);
  border-top: 1px solid rgba(230, 185, 92, 0.28);
  scrollbar-width: thin;
}

.op-hcard {
  position: relative;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.op-hcard:hover {
  transform: translateY(-6px);
  z-index: 4;
}

.op-hcard.can {
  opacity: 1;
}

.op-hcard.can .op-thumb-hand {
  box-shadow: 0 0 0 2px #4ade80, 0 6px 16px rgba(74, 222, 128, 0.25);
}

.op-hcard-cost {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(8, 13, 24, 0.9);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.65);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  pointer-events: none;
}

body.op-playing .op-side {
  padding: 12px;
  background: linear-gradient(180deg, #0d1524 0%, #090f1a 100%);
  border-left: 1px solid rgba(230, 185, 92, 0.24);
  gap: 10px;
  overflow-y: auto;
}

/* Topbar compacta na lateral com botões de Dica / Confiança / Sair */
.op-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

/* HUD flutuante no palco 3D */
.op-stage-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  z-index: 6;
}

.op-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.84);
  border: 1px solid rgba(230, 185, 92, 0.42);
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  color: #f8fafc;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.op-pill-bar strong {
  color: #fde047;
}

/* Showcase da última jogada */
.op-showcase {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 20, 36, 0.9);
  border: 1px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  max-width: 340px;
  pointer-events: auto;
  animation: opSlideIn 0.22s ease-out;
}

.op-showcase-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  min-width: 0;
}

.op-showcase-txt strong {
  color: #fef08a;
  font-size: 12.5px;
}

/* Overlay visual de Batalha (Bloqueio / Counter / Trigger) */
.op-battle-overlay {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(10, 16, 30, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  max-width: min(94%, 640px);
}

.op-duel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.op-duel-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.op-duel-meta {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}

.op-duel-power {
  font-size: 16px;
  font-weight: 800;
  color: #fde047;
}

.op-duel-vs {
  font-weight: 900;
  font-size: 15px;
  color: #f97316;
  letter-spacing: 0.08em;
}

@keyframes opSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  body.op-playing .op-match {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 1fr) auto;
    overflow-y: auto;
  }
  body.op-playing .op-side {
    border-left: 0;
    border-top: 1px solid rgba(230, 185, 92, 0.24);
  }
}
