/* ==========================================================================
   SUPER TRUNFO PC — ESTILOS CYBER-HOLOGRÁFICOS & ARENA DE DUELO (v5.0)
   100% SVG, Design System Holográfico, Cards 3D e Resoluções Perfeitas
   ========================================================================== */

:root {
  --trunfo-bg: #050811;
  --trunfo-surface: #0a1120;
  --trunfo-surface-soft: #131f37;
  --trunfo-neon-cyan: #38bdf8;
  --trunfo-neon-purple: #a855f7;
  --trunfo-neon-gold: #facc15;
  --trunfo-neon-green: #10b981;
  --trunfo-neon-red: #ef4444;
  --trunfo-line: rgba(255, 255, 255, 0.14);
  --trunfo-text: #f8fafc;
  --trunfo-text-muted: #94a3b8;
}

body.trunfo-app-body {
  background-color: var(--trunfo-bg);
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
    linear-gradient(to bottom, #04060c, #080d1a);
  color: var(--trunfo-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ==========================================================================
   ARENA DE DUELO (SUPER TRUNFO)
   ========================================================================== */
.duel-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .duel-arena {
    grid-template-columns: 1fr;
  }
}

.player-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.player-info-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid var(--trunfo-line);
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

.card-count-pill {
  background: rgba(56, 189, 248, 0.2);
  color: var(--trunfo-neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.versus-center-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.versus-emblem {
  font-size: 1.6rem;
  font-weight: 900;
  color: #facc15;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #facc15;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.4);
}

.tie-pile-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px dashed var(--trunfo-neon-gold);
  color: #facc15;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  animation: pulseGlow 2s infinite alternate;
}

/* ==========================================================================
   A CARTA DO SUPER TRUNFO (DESIGN HOLOGRÁFICO PREMIUM)
   ========================================================================== */
.card-wrapper {
  width: 100%;
  max-width: 320px;
  min-height: 490px;
  perspective: 1000px;
}

.trunfo-card-3d {
  width: 100%;
  min-height: 490px;
  background: linear-gradient(145deg, #0f172a, #090e1a);
  border: 2px solid var(--trunfo-neon-cyan);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(56, 189, 248, 0.15);
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trunfo-card-3d.super-trunfo-glow {
  border-color: #facc15 !important;
  box-shadow: 0 0 35px rgba(250, 204, 21, 0.6), inset 0 0 20px rgba(250, 204, 21, 0.3) !important;
  animation: superTrunfoPulse 2s infinite alternate;
}

.trunfo-card-3d.opponent-back {
  background: repeating-linear-gradient(
    45deg,
    #090e1a,
    #090e1a 10px,
    #131d31 10px,
    #131d31 20px
  );
  border-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--trunfo-line);
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
}

.card-id-badge {
  background: #38bdf8;
  color: #000000;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.card-super-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.card-title-group {
  margin-bottom: 0.45rem;
}

.card-title-group h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.card-title-group span {
  font-size: 0.72rem;
  color: var(--trunfo-text-muted);
}

/* Área de Ilustração SVG */
.card-image-box {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  position: relative;
}

.super-trunfo-banner-glow {
  position: absolute;
  bottom: 6px;
  background: rgba(250, 204, 21, 0.9);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px #facc15;
}

/* Lista de Atributos */
.card-attributes-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.attr-row-btn {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--trunfo-line);
  color: #ffffff;
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.attr-row-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--trunfo-neon-cyan);
  transform: translateX(3px);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.attr-row-btn.winner-attr {
  background: rgba(16, 185, 129, 0.35) !important;
  border-color: #10b981 !important;
  color: #4ade80 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.attr-row-btn.loser-attr {
  background: rgba(239, 68, 68, 0.35) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

.attr-row-btn:disabled {
  cursor: default;
}

.card-curiosity-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--trunfo-neon-cyan);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Banner de Turno e Resultado */
.duel-banner-box {
  background: rgba(0, 0, 0, 0.7);
  border: 1.5px solid var(--trunfo-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  font-size: 0.98rem;
  color: #ffffff;
}

/* Catálogo de Cartas */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem 0;
}

/* Animações */
@keyframes superTrunfoPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 15px #facc15); }
  100% { transform: scale(1.02); filter: drop-shadow(0 0 30px #f59e0b); }
}

@keyframes pulseGlow {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}