/* ═══════════════════════════════════════════════════════════════
   Dragons Lab — home.css
   CSS único da home. Contém global + página.
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg:          #0a0812;
  --bg-2:        #0f0d1a;
  --bg-3:        #151224;
  --surface:     rgba(255,255,255,.04);
  --surface-2:   rgba(255,255,255,.07);
  --border:      rgba(255,255,255,.08);
  --border-gold: rgba(196,160,82,.3);

  --gold:        #c4a052;
  --gold-light:  #e8c97a;
  --gold-dark:   #8a6e30;
  --gold-glow:   rgba(196,160,82,.2);

  --purple:      #7c3aed;
  --purple-glow: rgba(124,58,237,.25);

  --red-light:   #f87171;

  --text:        #e8e0d0;
  --text-muted:  rgba(232,224,208,.55);
  --text-faint:  rgba(232,224,208,.3);

  --mana-w: #f9fafb;
  --mana-u: #3b82f6;
  --mana-b: #6b21a8;
  --mana-r: #ef4444;
  --mana-g: #16a34a;

  --ff-display: 'Cinzel', Georgia, serif;
  --ff-body:    'Crimson Pro', Georgia, serif;
  --ff-mono:    'JetBrains Mono', monospace;

  --container:  1200px;
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --ease-magic: cubic-bezier(.34,1.56,.64,1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { cursor: pointer; }

/* ─── UTILITÁRIOS ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8c97a 0%, #c4a052 40%, #f0d896 70%, #c4a052 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  margin-bottom: 40px;
}

/* ─── BOTÕES ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  color: var(--bg);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background-position .4s, opacity .2s, transform .2s;
}
.btn-primary:hover { background-position: right center; opacity: .92; transform: translateY(-1px); }
.btn-primary i { font-size: 14px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background .25s, border-color .25s, color .25s, transform .2s;
}
.btn-outline:hover { background: var(--gold-glow); border-color: var(--gold); color: var(--gold-light); transform: translateY(-1px); }

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  transition: background .2s, color .2s;
}
.btn-outline-sm:hover { background: var(--gold-glow); color: var(--gold-light); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #25d366;
  color: #fff;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: opacity .2s, transform .2s;
}
.btn-whatsapp:hover { opacity: .9; transform: translateY(-1px); }
.btn-whatsapp i { font-size: 18px; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,8,18,.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right .3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg);
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }
.nav-cta i { font-size: 12px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--gold-light);
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(10,8,18,.98);
  border-top: 1px solid var(--border);
  padding: 0 24px 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-cta { color: var(--gold-light); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-brand { display: inline-flex; gap: 1rem; }
.footer-brand img { height: 70px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-faint); line-height: 1.7; max-width: 220px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--text-faint); display: flex; align-items: center; gap: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col a i { font-size: 14px; }
.soon-tag {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 1px 5px;
}
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--text-faint); }
.footer-bottom span { color: var(--red-light); }

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 500px;
  background: var(--bg-3);
  border: 1px solid var(--border-gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 300;
  transform: translateY(120px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
}
.cookie-banner.show { transform: none; opacity: 1; }
.cookie-banner[aria-hidden="true"] { display: none; }
.cookie-banner p { font-size: 13px; color: var(--text-muted); flex: 1; line-height: 1.5; }
.cookie-banner a { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════
   HOME — ESPECÍFICO
   ═══════════════════════════════════════════════════════════════ */

/* ─── PARTICLES ──────────────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .6;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(124,58,237,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(196,160,82,.1) 0%, transparent 55%),
    var(--bg);
}

.hero-rune {
  position: absolute;
  font-size: 80px;
  color: rgba(196,160,82,.06);
  user-select: none;
  animation: floatRune 8s ease-in-out infinite;
}
.rune-1 { top: 15%; left: 5%; animation-delay: 0s; font-size: 120px; }
.rune-2 { top: 60%; right: 8%; animation-delay: 3s; font-size: 60px; }
.rune-3 { bottom: 10%; left: 40%; animation-delay: 5s; font-size: 90px; }
@keyframes floatRune {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .06; }
  50%       { transform: translateY(-20px) rotate(8deg); opacity: .12; }
}

.mana-symbols {
  position: absolute;
  top: 50%; right: 3%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 0;
}
.mana {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono);
  font-size: 11px; font-weight: 700;
  opacity: .18;
  border: 1px solid currentColor;
}
.mana-w { color: var(--mana-w); }
.mana-u { color: var(--mana-u); }
.mana-b { color: var(--mana-b); }
.mana-r { color: var(--mana-r); }
.mana-g { color: var(--mana-g); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow-line { flex: 0 0 32px; height: 1px; background: var(--border-gold); }

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  margin-bottom: 24px;
  background: linear-gradient(160deg, #fff 0%, #e8e0d0 40%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), #f0d896);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; }
.hero-stat { padding-right: 28px; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 28px; font-weight: 700;
  color: var(--gold-light);
  line-height: 1; margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-divider { width: 1px; height: 40px; background: var(--border); margin-right: 28px; }

/* Card showcase */
.hero-visual { position: relative; display: flex; justify-content: center; }
.card-showcase { position: relative; width: 300px; height: 420px; }
.showcase-card {
  position: absolute;
  width: 220px; height: 308px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.card-back {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border-gold);
  top: 60px; left: 0;
  transform: rotate(-8deg); opacity: .5;
}
.card-mid {
  top: 30px; left: 40px;
  transform: rotate(-3deg); z-index: 1;
  animation: cardFloatMid 6s ease-in-out infinite;
}
.card-front {
  top: 0; right: 0; z-index: 2;
  transform: rotate(4deg);
  animation: cardFloat 6s ease-in-out infinite;
  animation-delay: 1s;
  box-shadow: 0 32px 100px rgba(196,160,82,.25), 0 8px 32px rgba(0,0,0,.6);
}
@keyframes cardFloat {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%       { transform: rotate(4deg) translateY(-12px); }
}
@keyframes cardFloatMid {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(-3deg) translateY(-8px); }
}
.hero-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.15); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
}
.scroll-indicator span {
  font-family: var(--ff-mono);
  font-size: 9px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-faint);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--border-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50%       { transform: scaleY(.6); opacity: 1; }
}

/* ─── COMO FUNCIONA ──────────────────────────────────────────── */
.how {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.how-steps { display: flex; align-items: flex-start; }
.how-step {
  flex: 1; padding: 36px 32px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}
.how-step:hover { background: var(--surface-2); border-color: var(--border-gold); }
.step-num {
  font-family: var(--ff-display);
  font-size: 56px; font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196,160,82,.2);
  line-height: 1; margin-bottom: 16px;
}
.step-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-glow); border: 1px solid var(--border-gold);
  margin-bottom: 16px;
}
.step-icon i { font-size: 18px; color: var(--gold); }
.step-title {
  font-family: var(--ff-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: .05em; color: var(--gold-light); margin-bottom: 10px;
}
.step-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.how-connector {
  display: flex; align-items: center;
  padding: 0 8px; margin-top: 80px;
  color: var(--gold); font-size: 22px;
  opacity: .4; flex: 0 0 auto;
}

/* ─── JOGOS ──────────────────────────────────────────────────── */
.games { padding: 96px 0; position: relative; z-index: 1; }
.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.game-card { position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: 2/3; }
.game-card:first-child { grid-column: span 1; aspect-ratio: auto; }
.game-img { width: 100%; height: 100%; overflow: hidden; }
.game-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), opacity .4s;
  opacity: .7;
}
.game-card:hover .game-img img { transform: scale(1.06); opacity: .9; }
.game-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(10,8,18,.95) 0%, transparent 55%);
}
.game-badge {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 10px; width: fit-content;
}
.game-badge-active { background: rgba(196,160,82,.15); border: 1px solid var(--border-gold); color: var(--gold-light); }
.game-badge-soon   { background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-faint); }
.game-name {
  font-family: var(--ff-display); font-size: 14px; font-weight: 600;
  letter-spacing: .05em; color: var(--text); margin-bottom: 8px;
}
.game-card:first-child .game-name { font-size: 20px; }
.game-cta {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.game-card:hover .game-cta { opacity: 1; transform: none; }
.game-soon { filter: saturate(.4); }
.game-soon:hover { filter: saturate(.5); }

/* ─── MAIS VENDIDOS ──────────────────────────────────────────── */
.bestsellers {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.cards-track-wrap { overflow: hidden; margin-bottom: 20px; }
.cards-track {
  display: flex; gap: 16px;
  transition: transform .55s var(--ease-out);
  will-change: transform;
}
.card-item { flex: 0 0 180px; text-align: center; }
.card-item-inner {
  position: relative; overflow: hidden;
  border-radius: 8px; margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.card-item:hover .card-item-inner { border-color: var(--border-gold); box-shadow: 0 8px 40px var(--gold-glow); }
.card-item-inner img {
  width: 100%; aspect-ratio: 5/7; object-fit: cover; display: block;
  transition: transform .4s var(--ease-out);
}
.card-item:hover .card-item-inner img { transform: scale(1.04); }
.card-item-hover {
  position: absolute; inset: 0;
  background: rgba(10,8,18,.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .3s;
}
.card-item-hover span {
  font-family: var(--ff-display); font-size: 12px;
  font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold-light);
}
.card-item-hover i { color: var(--gold); font-size: 18px; }
.card-item:hover .card-item-hover { opacity: 1; }
.card-item-name { font-family: var(--ff-body); font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.cards-controls { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.cards-btn {
  width: 40px; height: 40px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.cards-btn:hover { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold-light); }

/* ─── TOKENS ─────────────────────────────────────────────────── */
.tokens { padding: 96px 0; position: relative; z-index: 1; }
.tokens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 48px; }
.token-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, background .3s, transform .3s;
}
.token-card:hover { border-color: var(--border-gold); background: var(--surface-2); transform: translateY(-4px); }
.token-card img {
  width: 100%; max-width: 160px; aspect-ratio: 5/7;
  object-fit: cover; border-radius: 6px;
  transition: transform .4s var(--ease-magic);
}
.token-card:hover img { transform: scale(1.04) rotate(1deg); }
.token-name {
  font-family: var(--ff-display); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; color: var(--gold-light); text-transform: uppercase;
}
.tokens-cta { text-align: center; }

/* ─── DEPOIMENTOS ────────────────────────────────────────────── */
.testimonials {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcard {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .3s, background .3s; position: relative;
}
.tcard::before {
  content: '"'; position: absolute; top: 12px; right: 20px;
  font-family: var(--ff-display); font-size: 80px;
  color: rgba(196,160,82,.07); line-height: 1; pointer-events: none;
}
.tcard:hover { border-color: var(--border-gold); background: var(--surface-2); }
.tcard-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.tcard-text  { font-size: 15px; color: var(--text-muted); line-height: 1.7; font-style: italic; flex: 1; }
.tcard-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.tcard-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-gold); }
.tcard-name { display: block; font-family: var(--ff-display); font-size: 13px; font-weight: 600; color: var(--gold-light); letter-spacing: .04em; }
.tcard-role { display: block; font-family: var(--ff-mono); font-size: 10px; color: var(--text-faint); letter-spacing: .1em; }

/* ─── CTA FINAL ──────────────────────────────────────────────── */
.final-cta {
  padding: 120px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(124,58,237,.15) 0%, transparent 65%), var(--bg);
  text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--border); z-index: 1;
}
.final-cta-rune { position: absolute; font-size: 160px; color: rgba(196,160,82,.04); user-select: none; pointer-events: none; }
.rune-a { top: -20px; left: 5%; }
.rune-b { bottom: -20px; right: 5%; }
.final-cta-inner { position: relative; z-index: 1; }
.final-cta-title {
  font-family: var(--ff-display); font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.final-cta-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; }
.final-cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .game-card:first-child { grid-column: span 3; aspect-ratio: 21/9; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-header--flex { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-banner { left: 12px; right: 12px; flex-direction: column; align-items: flex-start; bottom: 12px; }
  .hero { padding: 100px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .mana-symbols { display: none; }
  .how-steps { flex-direction: column; gap: 2px; }
  .how-connector { transform: rotate(90deg); margin: 0 auto; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card:first-child { grid-column: span 2; aspect-ratio: 16/7; }
  .tokens-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card:first-child { grid-column: span 1; aspect-ratio: 16/9; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; margin-right: 0; }
}


/* ═══════════════════════════════════════════════════════════════
   CUSTOM CARD — custom-card.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── EYEBROW COM PONTO PULSANTE ─────────────────────────────── */
.product-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: blinkDot 2s ease-in-out infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ─── FORM FEEDBACK & SPINNER ────────────────────────────────── */
.form-feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.35);
  color: var(--red-light);
}
.form-feedback i { font-size: 18px; flex-shrink: 0; }
.form-feedback--loading { background: var(--surface); border-color: var(--border); color: var(--text-muted); }
.form-feedback--success { background: rgba(22,163,74,.1); border-color: rgba(22,163,74,.35); color: #4ade80; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb-bar {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  margin-top: 72px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0; margin: 0;
}
.breadcrumb-list li {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--text-faint);
}
.breadcrumb-list li i { font-size: 8px; opacity: .5; }
.breadcrumb-list a { color: var(--text-faint); transition: color .2s; }
.breadcrumb-list a:hover { color: var(--gold); }
.breadcrumb-list [aria-current="page"] { color: var(--gold); }

/* ─── PRODUCT SECTION ────────────────────────────────────────── */
.product-section { padding: 56px 0 80px; position: relative; z-index: 1; }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ─── GALERIA ─────────────────────────────────────────────────── */
.product-gallery {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-main {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  min-height: 400px;
}
.gallery-main-img img {
  width: 100%; max-width: 280px; height: auto;
  aspect-ratio: 5/7; object-fit: cover;
  border-radius: 10px; display: block; margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 40px var(--gold-glow);
  transition: opacity .18s ease;
}
.gallery-badge {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(196,160,82,.12);
  border: 1px solid var(--border-gold);
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
}
.gallery-badge i { font-size: 11px; }

.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-btn {
  flex: 0 0 calc(12.5% - 7px);
  aspect-ratio: 5/7; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 0; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.thumb-btn:not(.active) img { opacity: .55; }
.thumb-btn:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.thumb-btn:hover img { opacity: .85; }
.thumb-btn.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumb-btn.active img { opacity: 1; }

.trust-badges { display: flex; border: 1px solid var(--border); }
.trust-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 8px;
  border-right: 1px solid var(--border); text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item i { color: var(--gold); font-size: 16px; }
.trust-item span {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); line-height: 1.3;
}

/* ─── CABEÇALHO DO PRODUTO ───────────────────────────────────── */
.product-form-col { display: flex; flex-direction: column; }
.product-header { margin-bottom: 28px; }
.product-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.05;
  background: linear-gradient(135deg, #e8c97a 0%, #c4a052 40%, #f0d896 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.product-desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }

.finish-label {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.finish-options { display: flex; gap: 10px; }
.finish-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--ff-display); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.finish-btn i { font-size: 16px; margin-bottom: 2px; }
.finish-desc {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
}
.finish-btn:hover { background: var(--surface-2); border-color: var(--border-gold); color: var(--text); }
.finish-btn.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold-light); }
.finish-btn.active .finish-desc { color: var(--gold); }

.form-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border-gold), transparent);
  margin: 4px 0 28px;
}

/* ─── FORM FIELDS ────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: span 2; }

.field-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.field-label i { color: var(--gold); font-size: 11px; }
.field-required { color: var(--red-light); font-size: 12px; }
.field-optional { font-size: 9px; color: var(--text-faint); letter-spacing: .1em; font-style: italic; text-transform: lowercase; }

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 15px;
  padding: 12px 16px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-faint); font-size: 14px; }
.field-input:focus,
.field-select:focus,
.field-textarea:focus { border-color: var(--gold); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(196,160,82,.1); }
.field-textarea { resize: vertical; min-height: 100px; }
.field-hint { font-family: var(--ff-mono); font-size: 10px; color: var(--text-faint); letter-spacing: .08em; }

/* Dropdown options — fundo escuro explícito */
.field-select option {
  background: #1a1628;
  color: #e8e0d0;
  padding: 8px 12px;
}
.field-select option:hover,
.field-select option:focus,
.field-select option:checked {
  background: #2d1f4a;
  color: #e8c97a;
}

.select-wrap { position: relative; }
.select-wrap .field-select { padding-right: 36px; cursor: pointer; }
.select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 10px; pointer-events: none; }

/* ─── UPLOAD ─────────────────────────────────────────────────── */
.upload-zone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px dashed rgba(196,160,82,.35);
  cursor: pointer;
  transition: background .2s, border-color .2s; text-align: center;
}
.upload-zone:hover,
.upload-zone.dragover { background: var(--surface-2); border-color: var(--gold); }
.upload-icon { font-size: 28px; color: var(--gold); opacity: .7; }
.upload-text { font-family: var(--ff-body); font-size: 14px; color: var(--text-muted); }
.upload-hint { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-faint); }

.upload-preview {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; background: var(--surface); border: 1px solid var(--border-gold);
}
.upload-preview img { max-width: 100px; border-radius: 4px; object-fit: cover; }
.preview-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,38,38,.2); border: 1px solid rgba(220,38,38,.4);
  color: var(--red-light); font-size: 12px; cursor: pointer; transition: background .2s;
}
.preview-remove:hover { background: rgba(220,38,38,.4); }

/* ─── SUBMIT ─────────────────────────────────────────────────── */
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  color: var(--bg); font-family: var(--ff-display); font-size: 14px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  cursor: pointer;
  transition: background-position .4s, opacity .2s, transform .2s;
  margin-bottom: 12px;
}
.btn-submit:hover:not(:disabled) { background-position: right center; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-submit i { font-size: 15px; }

.form-note {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .1em; color: var(--text-faint);
}
.form-note i { color: var(--gold); font-size: 11px; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-section {
  padding: 80px 0 96px; background: var(--bg-2);
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); }
.faq-item.open { border-color: var(--border-gold); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: none;
  color: var(--text); font-family: var(--ff-display); font-size: 15px;
  font-weight: 500; letter-spacing: .03em; text-align: left; cursor: pointer; transition: color .2s;
}
.faq-q:hover,
.faq-item.open .faq-q { color: var(--gold-light); }
.faq-icon { flex-shrink: 0; font-size: 11px; color: var(--gold); transition: transform .3s var(--ease-out); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a strong { color: var(--text); }
.faq-a[hidden] { display: none; }

.faq-contact-card {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border-gold);
  padding: 32px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.faq-contact-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.25);
  border-radius: 50%; color: #25d366; font-size: 24px;
}
.faq-contact-title { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--gold-light); }
.faq-contact-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.faq-contact-card .btn-whatsapp { width: 100%; justify-content: center; }
.faq-contact-divider { width: 100%; height: 1px; background: var(--border); margin: 4px 0; }
.faq-contact-email { font-size: 13px; color: var(--text-faint); line-height: 1.6; }
.faq-contact-email a { color: var(--gold); transition: color .2s; }
.faq-contact-email a:hover { color: var(--gold-light); }

/* ─── RESPONSIVE CUSTOM CARD ─────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .gallery-main { min-height: 320px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-contact-card { position: static; }
}
@media (max-width: 768px) {
  .product-section { padding: 32px 0 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: span 1; }
  .finish-options { flex-direction: column; }
  .trust-badges { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }
  .thumb-btn { flex: 0 0 calc(25% - 6px); }
}
@media (max-width: 480px) {
  .gallery-main { padding: 20px; }
  .thumb-btn { flex: 0 0 calc(33.33% - 6px); }
}


/* ═══════════════════════════════════════════════════════════════
   PROXY CARD — proxy-card.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── PROXY HERO ─────────────────────────────────────────────── */
.proxy-hero {
  padding: 56px 0 48px;
  position: relative; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(124,58,237,.12) 0%, transparent 60%),
    var(--bg);
}
.proxy-hero-inner { max-width: 720px; }
.proxy-title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; line-height: 1.05;
  background: linear-gradient(135deg, #e8c97a 0%, #c4a052 40%, #f0d896 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.proxy-desc { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; max-width: 560px; }
.proxy-features { display: flex; flex-wrap: wrap; gap: 20px; }
.proxy-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.proxy-feature-item i { color: var(--gold); font-size: 14px; }

/* ─── FORM SECTION ────────────────────────────────────────────── */
.proxy-form-section { padding: 40px 0 80px; position: relative; z-index: 1; }
.container--narrow { max-width: 840px; }

/* ─── FORM CARDS ─────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: border-color .3s;
}
.form-card:hover { border-color: var(--border-gold); }
.form-card--summary { background: var(--bg-3); border-color: var(--border-gold); }

.form-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.form-card-header i { color: var(--gold); font-size: 16px; }
.form-card-header h2 {
  font-family: var(--ff-display); font-size: 16px; font-weight: 600;
  color: var(--gold-light); letter-spacing: .04em; flex: 1;
}
.btn-add-inline {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: transparent; border: 1px solid var(--border-gold);
  color: var(--gold); font-family: var(--ff-mono); font-size: 10px;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn-add-inline:hover { background: var(--gold-glow); color: var(--gold-light); }
.btn-add-inline i { font-size: 10px; }

.form-card-body { padding: 24px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── DECKLIST ───────────────────────────────────────────────── */
.decklist-textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-mono); font-size: 13px;
  padding: 14px; outline: none; resize: vertical;
  margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
.decklist-textarea::placeholder { color: var(--text-faint); }
.decklist-textarea:focus { border-color: var(--gold); background: var(--surface); }

.btn-import {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 24px;
  background: var(--surface-2); border: 1px dashed var(--border-gold);
  color: var(--gold); font-family: var(--ff-display); font-size: 13px;
  font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-style .2s, color .2s;
}
.btn-import:hover { background: var(--gold-glow); border-style: solid; color: var(--gold-light); }
.btn-import i { font-size: 14px; }

/* ─── CARD LIST ──────────────────────────────────────────────── */
.card-list-header {
  display: grid; grid-template-columns: 1fr 90px 40px; gap: 12px;
  padding: 0 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.card-list-header span {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
}
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card-row {
  display: grid; grid-template-columns: 1fr 90px 40px; gap: 12px;
  align-items: center;
  animation: cardRowFadeIn .3s var(--ease-out);
}
@keyframes cardRowFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.card-row input[type="text"] {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 14px;
  padding: 10px 12px; outline: none;
  transition: border-color .2s, background .2s;
}
.card-row input[type="text"]::placeholder { color: var(--text-faint); }
.card-row input[type="text"]:focus { border-color: var(--gold); background: var(--surface); }
.card-row input[type="number"] {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-mono); font-size: 14px;
  padding: 10px 8px; text-align: center; outline: none;
  appearance: textfield;
  transition: border-color .2s, background .2s;
}
.card-row input[type="number"]::-webkit-inner-spin-button,
.card-row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.card-row input[type="number"]:focus { border-color: var(--gold); background: var(--surface); }
.btn-remove {
  width: 100%; height: 38px; background: transparent;
  border: 1px solid rgba(220,38,38,.35); color: var(--red-light);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.btn-remove:hover { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.6); }

/* ─── RESUMO & PROGRESSO ─────────────────────────────────────── */
.summary-progress { padding: 24px 24px 20px; border-bottom: 1px solid var(--border); }
.progress-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px;
}
.progress-label i { color: var(--gold); font-size: 11px; }
.progress-bar-wrap {
  width: 100%; height: 8px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.06);
  overflow: hidden; margin-bottom: 8px;
}
.progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width .4s var(--ease-out);
}
.progress-text { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); }
.summary-price { padding: 24px; text-align: center; }
.summary-price-label {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.summary-price-value {
  font-family: var(--ff-display); font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; color: var(--gold-light); line-height: 1.2; margin-bottom: 6px;
}
.price-currency { font-size: .7em; opacity: .7; }
.summary-price-hint { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-faint); }

/* ─── RESPONSIVE PROXY ───────────────────────────────────────── */
@media (max-width: 768px) {
  .proxy-features { flex-direction: column; gap: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .card-list-header,
  .card-row { grid-template-columns: 1fr 70px 36px; gap: 8px; }
  .card-row input[type="text"],
  .card-row input[type="number"] { font-size: 13px; padding: 8px 10px; }
  .btn-remove { height: 34px; font-size: 12px; }
}


/* ═══════════════════════════════════════════════════════════════
   ACERVO DE CARDS — acervo-de-cards.php
   ═══════════════════════════════════════════════════════════════ */

.acervo-section { padding: 56px 0 96px; position: relative; z-index: 1; }

.acervo-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}

.acervo-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-family: var(--ff-mono); font-size: 10px;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.filter-btn i { font-size: 11px; }
.filter-btn:hover { background: var(--surface-2); border-color: var(--border-gold); color: var(--gold-light); transform: translateY(-1px); }
.filter-btn.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold-light); }

.acervo-meta { margin-bottom: 28px; min-height: 20px; }
.card-count { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; color: var(--text-faint); }

.acervo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

.acervo-item { animation: cardIn .35s var(--ease-out) both; }
.acervo-item.hidden { display: none; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.acervo-card {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border);
  padding: 0; cursor: pointer; text-align: center;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.acervo-card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(196,160,82,.15), 0 4px 12px rgba(0,0,0,.4); }

.acervo-card-img { position: relative; overflow: hidden; aspect-ratio: 5/7; }
.acervo-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease-out), opacity .3s; opacity: .88;
}
.acervo-card:hover .acervo-card-img img { transform: scale(1.05); opacity: 1; }

.acervo-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,8,18,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.acervo-card-overlay i { color: var(--gold-light); font-size: 22px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.acervo-card:hover .acervo-card-overlay { opacity: 1; }

.acervo-card-name {
  font-family: var(--ff-body); font-size: 11px; color: var(--text-muted);
  line-height: 1.3; padding: 8px 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.acervo-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border); text-align: center;
}
.acervo-cta p { font-family: var(--ff-display); font-size: 20px; font-weight: 400; color: var(--text-muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(5,4,10,.93); backdrop-filter: blur(8px); cursor: pointer; }
.lightbox-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 0 16px; max-width: 600px; width: 100%; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 1; }
.lightbox-content img { max-width: min(320px, 80vw); width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--border-gold), 0 32px 80px rgba(0,0,0,.8), 0 0 60px var(--gold-glow); transition: opacity .15s ease, transform .15s ease; }
.lightbox-caption { font-family: var(--ff-display); font-size: 18px; font-weight: 500; color: var(--gold-light); letter-spacing: .04em; text-align: center; }
.lightbox-close { position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; background: rgba(255,255,255,.07); border: 1px solid var(--border); color: var(--text-muted); font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; z-index: 2; }
.lightbox-close:hover { background: rgba(220,38,38,.2); border-color: rgba(220,38,38,.4); color: var(--red-light); }
.lightbox-nav { width: 44px; height: 44px; flex-shrink: 0; background: rgba(255,255,255,.06); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.lightbox-nav:hover { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold-light); }

/* ─── RESPONSIVE ACERVO ──────────────────────────────────────── */
@media (max-width: 1200px) { .acervo-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .acervo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .acervo-header { flex-direction: column; align-items: flex-start; }
  .acervo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .filter-btn { padding: 8px 12px; font-size: 9px; }
  .lightbox-inner { gap: 8px; padding: 0 8px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 12px; }
}
@media (max-width: 480px) {
  .acervo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .acervo-filters { gap: 4px; }
  .filter-btn { padding: 7px 10px; }
  .lightbox-nav { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   SECRET LAIR DROPS — secret-lair-drops.php
   ═══════════════════════════════════════════════════════════════ */

.sl-hero {
  padding: 56px 0 40px;
  position: relative; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 30% 60%, rgba(196,160,82,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(124,58,237,.1) 0%, transparent 55%),
    var(--bg);
}
.sl-hero-content { max-width: 640px; }
.sl-title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 5vw, 60px); font-weight: 700; line-height: 1.05;
  background: linear-gradient(135deg, #e8c97a 0%, #c4a052 40%, #f0d896 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.sl-desc { font-size: 16px; color: var(--text-muted); line-height: 1.75; max-width: 520px; }

.sl-controls-bar {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(10,8,18,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.sl-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.sl-search-wrap { position: relative; flex: 1; min-width: 200px; }
.sl-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 12px; pointer-events: none; }
.sl-search {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 14px;
  padding: 10px 36px; outline: none;
  transition: border-color .2s, background .2s; appearance: none;
}
.sl-search::placeholder { color: var(--text-faint); }
.sl-search:focus { border-color: var(--gold); background: var(--surface-2); }
.sl-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-faint);
  font-size: 12px; cursor: pointer; padding: 4px; transition: color .2s;
}
.sl-search-clear:hover { color: var(--red-light); }

.sl-select-wrap { position: relative; flex: 0 0 260px; }
.sl-select-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 11px; pointer-events: none; }
.sl-select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 14px;
  padding: 10px 36px; outline: none; appearance: none; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.sl-select:focus { border-color: var(--gold); background: var(--bg-3); }
.sl-select option { background: #1a1628; color: #e8e0d0; }
.sl-select option:checked { background: #2d1f4a; color: #e8c97a; }
.sl-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 10px; pointer-events: none; }

.sl-meta { flex: 0 0 auto; }
.sl-meta-text {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .12em; color: var(--text-faint); white-space: nowrap;
}
.sl-meta-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  animation: blinkDot 2s ease-in-out infinite; flex-shrink: 0;
}

.sl-content { padding: 48px 0 80px; position: relative; z-index: 1; }

.sl-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; padding: 80px 0; color: var(--text-muted);
}
.sl-loading p { font-family: var(--ff-display); font-size: 16px; color: var(--text-faint); }
.sl-loading[hidden], .sl-error[hidden], .sl-empty[hidden] { display: none; }

.sl-spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .8s linear infinite;
}

.sl-error,
.sl-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding: 80px 0; text-align: center; color: var(--text-muted);
}
.sl-error i { font-size: 32px; color: var(--red-light); opacity: .6; }
.sl-empty i { font-size: 32px; color: var(--gold); opacity: .4; }
.sl-error p, .sl-empty p { font-size: 16px; }
.sl-empty strong { color: var(--gold-light); }

.drop-block { margin-bottom: 56px; animation: dropIn .4s var(--ease-out) both; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.drop-header {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 20px;
}
.drop-title {
  font-family: var(--ff-display);
  font-size: clamp(16px, 2vw, 22px); font-weight: 600;
  color: var(--gold-light); letter-spacing: .03em; line-height: 1.2;
}
.drop-count { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; color: var(--text-faint); white-space: nowrap; }

.drop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

.sl-card {
  background: var(--bg-3); border: 1px solid var(--border);
  cursor: pointer; padding: 0;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.sl-card:hover { border-color: var(--border-gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(196,160,82,.15), 0 4px 12px rgba(0,0,0,.4); }
.sl-card-img { position: relative; overflow: hidden; aspect-ratio: 63/88; }
.sl-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; transition: transform .4s var(--ease-out), opacity .3s; }
.sl-card:hover .sl-card-img img { transform: scale(1.05); opacity: 1; }
.sl-card-overlay { position: absolute; inset: 0; background: rgba(10,8,18,.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.sl-card-overlay i { color: var(--gold-light); font-size: 20px; }
.sl-card:hover .sl-card-overlay { opacity: 1; }
.sl-card-name { font-family: var(--ff-body); font-size: 11px; color: var(--text-muted); line-height: 1.3; padding: 8px 6px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sl-load-more { text-align: center; padding: 16px 0 32px; }
.sl-load-more[hidden] { display: none; }
.btn-load-more {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 40px;
  background: var(--surface); border: 1px solid var(--border-gold);
  color: var(--gold); font-family: var(--ff-display); font-size: 13px;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-load-more:hover { background: var(--gold-glow); color: var(--gold-light); border-color: var(--gold); transform: translateY(-1px); }
.btn-load-more.loading i { animation: spin .7s linear infinite; }

.sl-cta-section { padding: 64px 0; background: var(--bg-2); border-top: 1px solid var(--border); position: relative; z-index: 1; }
.sl-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sl-cta-title {
  font-family: var(--ff-display); font-size: clamp(22px, 3vw, 32px); font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
.sl-cta-desc { font-size: 15px; color: var(--text-muted); }
.lightbox-drop-name { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

/* ─── RESPONSIVE SECRET LAIR ─────────────────────────────────── */
@media (max-width: 1200px) { .drop-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .drop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) {
  .sl-controls { gap: 8px; }
  .sl-select-wrap { flex: 1; min-width: 160px; }
  .drop-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sl-cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .sl-controls { flex-direction: column; align-items: stretch; }
  .sl-meta { display: none; }
  .drop-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}


/* ═══════════════════════════════════════════════════════════════
   MAGIC LIFE COUNTER — magic-life-counter.php
   ═══════════════════════════════════════════════════════════════ */

/* Mapeia variáveis locais do life-counter para o sistema global */
#setup-screen,
#game-screen,
#history-panel,
#draw-panel,
#rotate-warning {
  --muted:  var(--text-faint);
  --radius: 16px;
}

@media (orientation: portrait) and (max-width: 900px) {
  #rotate-warning { display: flex !important; }
  #game-screen.active,
  #setup-screen:not(.hidden) { filter: blur(2px); pointer-events: none; }
}

/* ── SETUP SCREEN ── */
#setup-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 0%, #1a0a2e 0%, var(--bg) 70%);
}
#setup-screen.hidden { display: none; }

.setup-title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 5vw, 3rem);
  text-align: center;
  letter-spacing: .05em;
  background: linear-gradient(135deg, #f0d060, #c89020, #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .4rem;
}
.setup-sub {
  color: var(--text-faint);
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 3rem;
  text-align: center;
}
.setup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.setup-section label {
  display: block;
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--text-faint);
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.player-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.count-btn {
  padding: .75rem 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .18s;
}
.count-btn:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.count-btn.active { border-color: #c89020; background: rgba(200,144,32,.15); color: #f0d060; }

.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.life-btn {
  padding: .6rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: .95rem;
  cursor: pointer;
  transition: all .18s;
}
.life-btn:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.life-btn.active { border-color: #c89020; background: rgba(200,144,32,.15); color: #f0d060; }

.start-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #8b6914, #c89020, #8b6914);
  border: none;
  border-radius: 12px;
  color: #0a0a0f;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  text-transform: uppercase;
  transition: opacity .2s, transform .1s;
}
.start-btn:hover { opacity: .9; }
.start-btn:active { transform: scale(.98); }

/* ── GAME SCREEN ── */
#game-screen {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  background: var(--bg);
}
#game-screen.active { display: flex; }

body.game-active #navbar,
body.game-active header,
body.game-active .navbar { display: none !important; }

/* ── TOPBAR ── */
#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 4px;
  height: 44px;
}
.topbar-title {
  font-family: var(--ff-display);
  font-size: .8rem;
  letter-spacing: .08em;
  background: linear-gradient(90deg, #f0d060, #c89020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--ff-display);
  font-size: .65rem;
  letter-spacing: .08em;
  padding: .3rem .6rem;
  cursor: pointer;
  transition: all .18s;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-btn:hover { color: var(--text); border-color: rgba(255,255,255,.25); }

@media (max-height: 500px), (max-width: 480px) {
  .topbar-title { display: none; }
  #topbar { gap: 3px; padding: .3rem .4rem; }
  .topbar-btn { font-size: .55rem; padding: .25rem .4rem; letter-spacing: .02em; }
}

/* ── PLAYERS GRID ── */
#players-grid { flex: 1; display: grid; padding: 5px; gap: 5px; min-height: 0; }

.grid-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.grid-2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-5 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-7 { grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.grid-8 { grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

.grid-3 .player-card:nth-child(3) { grid-column: 1 / -1; }

.grid-2 .player-card:nth-child(1) { transform: rotate(180deg); }
.grid-3 .player-card:nth-child(1),
.grid-3 .player-card:nth-child(2) { transform: rotate(180deg); }
.grid-4 .player-card:nth-child(1),
.grid-4 .player-card:nth-child(2) { transform: rotate(180deg); }
.grid-5 .player-card:nth-child(1),
.grid-5 .player-card:nth-child(2),
.grid-5 .player-card:nth-child(3) { transform: rotate(180deg); }
.grid-6 .player-card:nth-child(1),
.grid-6 .player-card:nth-child(2),
.grid-6 .player-card:nth-child(3) { transform: rotate(180deg); }
.grid-7 .player-card:nth-child(1),
.grid-7 .player-card:nth-child(2),
.grid-7 .player-card:nth-child(3),
.grid-7 .player-card:nth-child(4) { transform: rotate(180deg); }
.grid-8 .player-card:nth-child(1),
.grid-8 .player-card:nth-child(2),
.grid-8 .player-card:nth-child(3),
.grid-8 .player-card:nth-child(4) { transform: rotate(180deg); }

/* ── PLAYER CARD ── */
.player-card {
  border-radius: 1rem !important;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  transition: opacity .3s;
}
.player-card.dead { opacity: .45; }

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  background: rgba(0,0,0,.25);
}
.player-name-input {
  background: transparent;
  border: none;
  color: inherit;
  font-family: var(--ff-display);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  width: 110px;
  outline: none;
  cursor: pointer;
}
.player-name-input:focus { border-bottom: 1px solid currentColor; cursor: text; }

.dead-badge {
  font-size: .6rem;
  letter-spacing: .08em;
  background: rgba(0,0,0,.4);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  display: none;
}
.player-card.dead .dead-badge { display: block; }

/* ── LIFE SECTION ── */
.life-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
  min-height: 0;
}
.life-tap-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s;
}
.life-tap-zone:active { background: rgba(0,0,0,.2); }
.tap-left { left: 0; }
.tap-right { right: 0; }
.tap-hint { font-size: 2rem; opacity: .35; pointer-events: none; font-weight: 900; color: #fff; }

.life-display { text-align: center; pointer-events: none; z-index: 2; }
.life-number { font-size: clamp(2.5rem, 6vw, 6rem); font-weight: 900; line-height: 1; color: #fff !important; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.life-number.bump { animation: bump .18s ease; }
@keyframes bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.life-label { font-size: .6rem; letter-spacing: .15em; opacity: .75; text-transform: uppercase; margin-top: 4px; color: #fff; }

/* ── COUNTERS ── */
.counters-row {
  display: flex;
  gap: 6px;
  padding: .4rem .8rem;
  border-top: 1px solid rgba(255,255,255,.2);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.mini-counter { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border-radius: 8px; padding: 3px 6px; }
.mini-counter-label { font-size: .55rem; letter-spacing: .08em; opacity: .85; color: #fff; text-transform: uppercase; }
.mini-counter-val { font-size: .85rem; font-weight: 700; min-width: 20px; text-align: center; color: #fff; }
.mini-counter-btn { background: transparent; border: none; color: #fff; font-size: .9rem; cursor: pointer; padding: 0 2px; opacity: .7; transition: opacity .15s; line-height: 1; }
.mini-counter-btn:hover { opacity: 1; }

/* ── COMMANDER DAMAGE ── */
.cmd-section { padding: .35rem .8rem; border-top: 1px solid rgba(255,255,255,.2); flex-shrink: 0; text-align: center; background: rgba(0,0,0,.25); }
.cmd-label { font-size: .55rem; letter-spacing: .1em; opacity: .8; color: #fff; text-transform: uppercase; margin-bottom: 4px; }
.cmd-grid { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; width: 100%; }
.cmd-entry { display: inline-flex; align-items: center; gap: 3px; background: rgba(0,0,0,.25); border-radius: 6px; padding: 2px 5px; font-size: .7rem; }
.cmd-entry-name { font-size: 1rem; letter-spacing: .05em; }

/* ── HISTORY PANEL ── */
#history-panel {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 100vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 1000;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.5);
}
#history-panel.open { display: flex; }

.hist-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.hist-title { font-family: var(--ff-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.hist-close { background: transparent; border: none; color: var(--text-faint); font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.hist-list { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: 6px; }
.hist-entry { display: flex; align-items: center; gap: 8px; padding: .5rem .7rem; background: rgba(255,255,255,.03); border-left: 3px solid; font-size: .8rem; }
.hist-time { font-size: .6rem; opacity: .4; min-width: 40px; }
.hist-player { font-weight: 700; font-size: .7rem; letter-spacing: .05em; }
.hist-action { opacity: .75; flex: 1; }
.hist-delta { font-weight: 700; font-size: .85rem; min-width: 36px; text-align: right; }
.hist-delta.pos { color: #4ade80; }
.hist-delta.neg { color: #f87171; }
.hist-clear { margin: .6rem .8rem; padding: .5rem; background: transparent; border: 1px solid var(--border); color: var(--text-faint); font-family: var(--ff-display); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .18s; width: calc(100% - 1.6rem); }
.hist-clear:hover { color: #f87171; border-color: #f87171; }

/* ── DRAW PANEL ── */
#draw-panel {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
#draw-panel.open { display: flex; }

.dice-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; text-align: center; min-width: 280px; }
.dice-title { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.5rem; }
.dice-result {
  font-size: 2rem; font-weight: 900; line-height: 1; min-height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #f0d060, #c89020);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dice-result.spin { animation: dicespin .4s ease-out; }
@keyframes dicespin {
  0%   { transform: rotate(-15deg) scale(.8); opacity: .5; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
.dice-sub { font-size: .75rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.dice-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1rem; }
.dice-roll-btn { padding: .5rem 1rem; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: var(--ff-display); font-size: .8rem; cursor: pointer; transition: all .18s; }
.dice-roll-btn:hover { background: rgba(255,255,255,.12); }
.dice-close { background: transparent; border: none; color: var(--text-faint); font-family: var(--ff-display); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: .4rem 1rem; }

/* ── ART OVERLAY ── */
.art-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.75); pointer-events: none; z-index: 0; }

/* ── SCROLLBAR ── */
#hist-list::-webkit-scrollbar { width: 4px; }
#hist-list::-webkit-scrollbar-track { background: transparent; }
#hist-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
/* ═══════════════════════════════════════════════════════════════
   Dragons Lab — colecao.css
   Página minha-colecao.php
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────────── */
.colecao-hero {
  padding: 56px 0 40px;
  position: relative; z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(196,160,82,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(124,58,237,.1) 0%, transparent 55%),
    var(--bg);
}

/* ─── UPLOAD ─────────────────────────────────────────────────── */
.upload-section { padding: 40px 0 80px; position: relative; z-index: 1; }

.upload-card {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 32px;
  background: var(--surface);
  border: 2px dashed var(--border-gold);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  text-align: center;
}
.upload-drop:hover,
.upload-drop.dragover { background: var(--surface-2); border-color: var(--gold); }

.upload-csv-icon { font-size: 48px; color: var(--gold); opacity: .8; }

.upload-drop-title {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: .04em;
}
.upload-drop-hint {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.upload-actions { text-align: center; }
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-demo:hover { background: var(--surface); border-color: var(--border-gold); color: var(--gold); }

/* Import loading */
.import-loading {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
}
.import-loading p {
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--text-muted);
}
.import-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.import-progress-wrap {
  width: 100%;
  height: 4px;
  background: var(--border);
  overflow: hidden;
}
.import-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width .3s var(--ease-out);
}
.import-progress-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--text-faint);
}

/* ─── COLEÇÃO ─────────────────────────────────────────────────── */
.colecao-section { padding: 0 0 96px; position: relative; z-index: 1; }

/* Stats */
.colecao-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 32px;
}
.stat-card {
  flex: 1;
  min-width: 140px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--border-gold); }
.stat-card-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-card-value {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-card-sub {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: .08em;
}

/* Tabs */
.colecao-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--gold-light); }
.tab-btn.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--ff-mono);
  font-size: 10px;
  border-radius: 20px;
}

/* ─── FILTROS ─────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.filter-search-wrap {
  position: relative;
  width: 100%;
}
.filter-search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-size: 12px;
  pointer-events: none;
}
.filter-search {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  padding: 11px 36px;
  outline: none;
  transition: border-color .2s, background .2s;
  appearance: none;
}
.filter-search::placeholder { color: var(--text-faint); }
.filter-search:focus { border-color: var(--gold); background: var(--surface); }
.filter-search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-faint);
  font-size: 13px; cursor: pointer;
  transition: color .2s;
}
.filter-search-clear:hover { color: var(--red-light); }

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 120px;
}
.filter-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.btn-clear-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-end;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-clear-filters:hover { border-color: var(--border-gold); color: var(--gold); }

.filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.filter-count-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--text-faint);
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.view-btn:hover,
.view-btn.active { background: var(--gold-glow); border-color: var(--border-gold); color: var(--gold); }

/* ─── GRID DE CARDS ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cards-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Card item */
.col-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
  position: relative;
  animation: cardIn .3s var(--ease-out) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.col-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(196,160,82,.15);
}

.col-card-img {
  position: relative;
  aspect-ratio: 5/7;
  overflow: hidden;
  background: var(--bg-2);
}
.col-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s var(--ease-out);
}
.col-card:hover .col-card-img img { transform: scale(1.04); }

/* Skeleton loader */
.col-card-img.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Badges no card */
.col-card-badges {
  position: absolute;
  top: 6px; left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--ff-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-mythic   { background: rgba(255,140,0,.85);  color: #fff; }
.badge-rare     { background: rgba(196,160,82,.85); color: #000; }
.badge-uncommon { background: rgba(160,160,180,.85);color: #000; }
.badge-common   { background: rgba(60,60,60,.85);   color: #fff; }
.badge-foil     { background: rgba(124,58,237,.8);  color: #fff; }

/* Want button */
.col-card-want {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  background: rgba(10,8,18,.75);
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border-radius: 50%;
}
.col-card-want:hover,
.col-card-want.wanted { background: rgba(196,160,82,.2); border-color: var(--gold); color: var(--gold); }

/* Quantidade badge */
.col-card-qty {
  position: absolute;
  bottom: 6px; right: 6px;
  padding: 2px 8px;
  background: rgba(10,8,18,.85);
  border: 1px solid var(--border-gold);
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
}

/* Info abaixo da imagem */
.col-card-info {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.col-card-name {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.col-card-set {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.col-card-type {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .06em;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.col-card-price {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2px;
}

/* ── LIST VIEW ── */
.cards-grid.list-view .col-card {
  flex-direction: row;
  align-items: center;
  gap: 0;
  transform: none !important;
}
.cards-grid.list-view .col-card:hover {
  transform: none !important;
  box-shadow: none;
}
.cards-grid.list-view .col-card-img {
  flex: 0 0 56px;
  aspect-ratio: 5/7;
  min-height: 78px;
}
.cards-grid.list-view .col-card-badges { top: 4px; left: 4px; }
.cards-grid.list-view .col-card-want { top: 4px; right: 4px; width: 22px; height: 22px; font-size: 10px; }
.cards-grid.list-view .col-card-qty { display: none; }
.cards-grid.list-view .col-card-info {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.cards-grid.list-view .col-card-name { flex: 1; min-width: 140px; -webkit-line-clamp: 1; }
.cards-grid.list-view .col-card-set  { min-width: 80px; }
.cards-grid.list-view .col-card-type { flex: 1; }

/* ─── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  text-align: center;
  color: var(--text-muted);
}
.empty-state i { font-size: 36px; color: var(--gold); opacity: .4; }
.empty-state p { font-size: 16px; line-height: 1.6; }
.empty-state strong { color: var(--gold); }

/* ─── WANT LIST ───────────────────────────────────────────────── */
.wantlist-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wantlist-add-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.wantlist-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border-gold);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}
.want-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.want-suggestion:last-child { border-bottom: none; }
.want-suggestion:hover { background: var(--surface-2); }
.want-suggestion img { width: 32px; border-radius: 3px; }
.want-suggestion-name {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--text);
}
.want-suggestion-set {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: .08em;
}

.btn-export-want {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-export-want:hover { background: var(--gold-glow); color: var(--gold-light); }

/* ─── MODAL ───────────────────────────────────────────────────── */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card-modal[hidden] { display: none; }
.card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,4,10,.93);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.card-modal-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--border-gold);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.card-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 2;
}
.card-modal-close:hover { background: rgba(220,38,38,.2); color: var(--red-light); }
.card-modal-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.modal-img { width: 220px; }
.modal-img img { width: 100%; display: block; }
.modal-details { padding: 28px 28px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  padding-right: 32px;
}
.modal-type {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.modal-set {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .08em;
}
.modal-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-style: italic;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.modal-field { display: flex; flex-direction: column; gap: 3px; }
.modal-field-label {
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.modal-field-value {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.modal-field-value.price { color: var(--gold); }
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.modal-btn-want {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-btn-want:hover,
.modal-btn-want.wanted { background: var(--gold-glow); color: var(--gold-light); }
.modal-btn-want.wanted { border-color: var(--gold); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .filters-row { gap: 8px; }
  .filter-group { min-width: 100px; }
  .colecao-stats { gap: 8px; }
  .stat-card { min-width: 120px; padding: 16px; }
  .stat-card-value { font-size: 22px; }
  .card-modal-content { grid-template-columns: 1fr; }
  .modal-img { width: 100%; max-width: 240px; margin: 0 auto; }
  .wantlist-header { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .colecao-tabs .tab-btn { padding: 10px 14px; font-size: 11px; }
}

/* ─── HIDDEN ATTRIBUTE FIX ──────────────────────────────────── */
[hidden] { display: none !important; }

/* ─── LIGA MAGIC LINKS ───────────────────────────────────────── */
.col-card-liga {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  transition: color .2s;
  text-decoration: none;
}
.col-card-liga:hover { color: var(--gold-light); }
.col-card-liga i { font-size: 8px; }

.modal-liga-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.modal-liga-link:hover { color: var(--gold-light); border-color: var(--gold); }
.modal-liga-link i { font-size: 10px; }

/* ─── MODAL WHATSAPP BTN ─────────────────────────────────────── */
.modal-whatsapp-btn {
  font-size: 13px !important;
  padding: 12px 24px !important;
}

/* ─── CARD ACTIONS (grid) ────────────────────────────────────── */
.col-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.col-card-liga {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color .2s;
  width: 100%;
}
.col-card-liga:hover { color: var(--gold); }
.col-card-liga i { font-size: 8px; }

.col-card-whats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.3);
  color: #25d366;
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  flex: 1;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.col-card-whats:hover {
  background: rgba(37,211,102,.22);
  border-color: rgba(37,211,102,.6);
}
.col-card-whats i { font-size: 12px; }