/* ================================================
   CHAVEAMENTO DE EQUIPES — style.css
   Tema: Esports · Dark · Neon Gold
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

/* ── VARIABLES ─────────────────────────────────── */
:root {
  --bg:          #0d0f14;
  --surface:     #141720;
  --surface-2:   #1c2030;
  --surface-3:   #232840;
  --border:      #2a2f4a;
  --border-glow: #3a4070;

  --gold:        #f5c842;
  --gold-dim:    #c89e20;
  --gold-glow:   rgba(245, 200, 66, 0.25);

  --cyan:        #38d9f5;
  --cyan-dim:    #1fa8c4;
  --cyan-glow:   rgba(56, 217, 245, 0.2);

  --green:       #2ddb7f;
  --red:         #ff4f6a;
  --white:       #e8eaf6;
  --muted:       #6b7299;

  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 32px rgba(245, 200, 66, 0.3);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56,217,245,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245,200,66,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  position: relative;
  text-align: center;
  padding: 52px 24px 40px;
  overflow: hidden;
}

.header-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 200px;
  background: radial-gradient(ellipse, rgba(245,200,66,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.header-content { position: relative; z-index: 1; }

.trophy-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 18px rgba(245,200,66,0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, #fff8dc 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.subtitle {
  margin-top: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SCREENS ─────────────────────────────────────── */
.screen { display: none; position: relative; z-index: 1; }
.screen.active { display: block; }

/* ── SETUP SCREEN ────────────────────────────────── */
.setup-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.setup-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-align: center;
  margin-bottom: 6px;
}

.setup-desc {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.team-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-input-wrapper label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.team-input-wrapper .seed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-glow);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  margin-right: 6px;
}

.team-input-wrapper input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.team-input-wrapper input:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.team-input-wrapper input::placeholder {
  color: var(--border-glow);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.15s;
}

.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #1a1200;
  font-size: 1.1rem;
  padding: 14px 32px;
  box-shadow: 0 4px 20px rgba(245,200,66,0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(245,200,66,0.55);
  transform: translateY(-1px);
}

.btn-large { width: 100%; font-size: 1.15rem; padding: 16px; }

.btn-icon { font-size: 1rem; }

.btn-phase {
  background: var(--surface-2);
  border: 1.5px solid var(--border-glow);
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 18px;
  margin-top: 18px;
  width: 100%;
}

.btn-phase:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.btn-reset {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 10px 22px;
}

.btn-reset:hover {
  border-color: var(--red);
  color: var(--red);
}

.hidden { display: none !important; }

/* ── BRACKET SCREEN ──────────────────────────────── */
.bracket-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 24px 20px 0;
  overflow-x: auto;
  min-height: 600px;
}

/* ── PHASE COLUMN ────────────────────────────────── */
.phase-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 230px;
  max-width: 260px;
  flex: 1;
}

.phase-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  justify-content: center;
}

.phase-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.phase-dot.dot-gold {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* Center semis and final vertically */
#col-semis .matches-list { margin-top: 72px; }
#col-final .matches-list { margin-top: 218px; }

/* ── MATCH CARD ──────────────────────────────────── */
.match-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.match-card:hover {
  border-color: var(--border-glow);
}

.match-card.locked {
  pointer-events: none;
  opacity: 0.85;
}

.match-card.has-winner {
  border-color: rgba(45,219,127,0.3);
}

.match-separator {
  height: 1px;
  background: var(--border);
}

/* ── TEAM ROW ────────────────────────────────────── */
.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  transition: background 0.15s;
  position: relative;
}

.team-row:hover { background: var(--surface-2); }

.team-row.winner {
  background: rgba(45,219,127,0.08);
}

.team-row.loser {
  opacity: 0.45;
}

.team-row.winner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
}

.team-name-input,
.team-score-input {
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
}

.team-name-input {
  font-size: 0.9rem;
  font-weight: 500;
}

.team-name-input.static-name {
  pointer-events: none;
  font-weight: 600;
}

.team-name-input.empty-slot {
  color: var(--muted);
  font-style: italic;
  font-size: 0.82rem;
  pointer-events: none;
}

.team-score-input {
  width: 38px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--gold);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-score-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px var(--gold-glow);
  outline: none;
}

.team-score-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.winner-score {
  color: var(--green) !important;
  border-color: rgba(45,219,127,0.4) !important;
}

/* Winner tag */
.winner-tag {
  position: absolute;
  right: 56px;
  font-size: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(45,219,127,0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── CONNECTOR COLUMN ────────────────────────────── */
.connector-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding-top: 38px; /* align with first card */
}

.connector-lines {
  width: 100%;
  height: 100%;
}

/* ── ERROR TOAST ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(255,79,106,0.4);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── THIRD PLACE SECTION ─────────────────────────── */
.phase-column-finals {
  gap: 0;
}

.third-place-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.third-place-section .matches-list {
  margin-top: 0 !important;
}

.phase-label-third {
  color: #a0845a;
  border-bottom-color: rgba(160,132,90,0.3);
}

.phase-dot.dot-bronze {
  background: #cd7f32;
  box-shadow: 0 0 8px #cd7f32;
}

.btn-bronze {
  border-color: rgba(205,127,50,0.5) !important;
  color: #cd7f32 !important;
}

.btn-bronze:hover {
  border-color: #cd7f32 !important;
  box-shadow: 0 0 12px rgba(205,127,50,0.3) !important;
}

/* Bronze winner highlight */
.match-card.bronze-match .team-row.winner {
  background: rgba(205,127,50,0.1);
}

.match-card.bronze-match .team-row.winner::before {
  background: #cd7f32;
}

.match-card.bronze-match .winner-tag {
  color: #cd7f32;
  background: rgba(205,127,50,0.12);
}

/* ── PODIUM BANNER ───────────────────────────────── */
.podium-banner {
  margin: 40px auto 20px;
  max-width: 680px;
  padding: 0 20px;
}

.podium-inner {
  background: linear-gradient(135deg, #0e1220 0%, #161d30 50%, #0e1220 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 36px 28px 40px;
  text-align: center;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.podium-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,200,66,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.confetti-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.podium-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, #fff8dc 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.podium-places {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius);
  padding: 16px 14px 20px;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
  position: relative;
}

.place-1 {
  background: linear-gradient(180deg, rgba(245,200,66,0.12) 0%, rgba(245,200,66,0.04) 100%);
  border: 1.5px solid rgba(245,200,66,0.4);
  padding-bottom: 28px;
  padding-top: 20px;
}

.place-2 {
  background: linear-gradient(180deg, rgba(180,180,200,0.08) 0%, rgba(180,180,200,0.02) 100%);
  border: 1.5px solid rgba(180,180,200,0.25);
}

.place-3 {
  background: linear-gradient(180deg, rgba(205,127,50,0.08) 0%, rgba(205,127,50,0.02) 100%);
  border: 1.5px solid rgba(205,127,50,0.25);
}

.place-medal {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.place-1 .place-medal {
  font-size: 2.8rem;
  animation: pulse-trophy 1.5s ease-in-out infinite;
}

@keyframes pulse-trophy {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(245,200,66,0.5)); }
  50%       { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(245,200,66,0.9)); }
}

.place-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.place-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  word-break: break-word;
  text-align: center;
}

.place-1 .place-name {
  font-size: clamp(1rem, 3vw, 1.4rem);
  background: linear-gradient(135deg, var(--gold) 0%, #fff8dc 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.place-2 .place-name {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: #c0c4d8;
}

.place-3 .place-name {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: #b8894a;
}

/* ── BRACKET FOOTER ──────────────────────────────── */
.bracket-footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

/* ── SVG CONNECTORS ──────────────────────────────── */
.bracket-svg {
  display: block;
  overflow: visible;
}

/* ── DRAW OVERLAY ────────────────────────────────── */
.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 12, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.draw-overlay.hidden { display: none; }

.draw-box {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.draw-header { text-align: center; }

.draw-icon-wrap {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
  animation: spin-dice 0.6s ease infinite alternate;
}

@keyframes spin-dice {
  from { transform: rotate(-15deg) scale(1); }
  to   { transform: rotate(15deg) scale(1.1); }
}

.draw-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, #fff8dc 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.draw-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  min-height: 1.2em;
  transition: opacity 0.3s;
}

/* ── BALLS ──────────────────────────── */
.draw-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  min-height: 100px;
}

.draw-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-glow);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  position: relative;
  animation: ball-shake 0.4s ease-in-out infinite alternate;
  box-shadow: 0 0 0 0 var(--gold-glow);
  cursor: default;
}

.draw-ball:nth-child(odd)  { animation-delay: 0s; }
.draw-ball:nth-child(even) { animation-delay: 0.2s; }

@keyframes ball-shake {
  from { transform: translateY(0) rotate(-8deg); box-shadow: 0 0 8px var(--gold-glow); }
  to   { transform: translateY(-6px) rotate(8deg); box-shadow: 0 0 18px var(--gold-glow); }
}

.draw-ball.drawn {
  animation: ball-pop 0.35s ease forwards;
  border-color: var(--gold);
  background: rgba(245,200,66,0.15);
}

@keyframes ball-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); box-shadow: 0 0 28px var(--gold-glow); }
  100% { transform: scale(1); }
}

/* ── MATCHUP REVEAL ─────────────────── */
.draw-matchups {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.draw-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s;
}

.draw-matchup.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: var(--border-glow);
  animation: matchup-flash 0.5s ease;
}

@keyframes matchup-flash {
  0%   { box-shadow: 0 0 0 0 var(--gold-glow); }
  40%  { box-shadow: 0 0 24px 6px var(--gold-glow); }
  100% { box-shadow: none; }
}

.dm-seed {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  width: 52px;
  text-align: center;
  flex-shrink: 0;
}

.dm-team {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-vs {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 3px 10px;
  background: var(--surface-3);
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  flex-shrink: 0;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .bracket-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .connector-col { display: none; }

  .phase-column {
    min-width: 100%;
    max-width: 100%;
  }

  #col-semis .matches-list,
  #col-final .matches-list {
    margin-top: 0;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .phase-label::before,
  .phase-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .podium-places {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .podium-place {
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    gap: 16px;
    padding: 14px 18px;
  }

  .place-medal { font-size: 1.8rem !important; margin-bottom: 0; }

  .place-1 .place-medal { font-size: 2rem !important; }

  .podium-place .place-label,
  .podium-place .place-name {
    text-align: left;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.match-card {
  animation: fadeSlideIn 0.3s ease both;
}

.match-card:nth-child(1) { animation-delay: 0.05s; }
.match-card:nth-child(2) { animation-delay: 0.10s; }
.match-card:nth-child(3) { animation-delay: 0.15s; }
.match-card:nth-child(4) { animation-delay: 0.20s; }

.podium-banner {
  animation: fadeSlideIn 0.5s ease both;
}

/* ── SELETOR DE NÚMERO DE EQUIPES ────────────────── */
.team-count-selector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.count-label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-display);
}

.count-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.count-btn {
  padding: 8px 22px;
  border-radius: 20px;
  border: 1.5px solid var(--border-glow);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.count-btn:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
}

.count-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-color: transparent;
  color: #1a1200;
  box-shadow: 0 4px 16px rgba(245,200,66,0.35);
}
.fcard-status {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #b83fc4, #e535ab);
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.fcard-status:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(229, 53, 171, 0.4);
}

.fcard-status:active {
  transform: scale(0.96);
}
.pg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #0d0f14;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 10;
}

.pg-logo,
.back-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f5c842;
}

.back-link:hover,
.pg-logo:hover {
  text-decoration: none;
  opacity: 0.8;
}
.pg-header {
  width: 100%;
  background: #070b1f;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg-logo {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;

  color: #9aa3b2;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.back-link:hover {
  color: #ffffff;
}

.arrow {
  font-size: 1.2rem;
}