@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,600&display=swap');

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

:root {
  --bg:           #111111;
  --surface:      #1a1a1a;
  --surface2:     #202020;
  --accent:       #c95c2a;
  --accent-gold:  #c9991a;
  --text:         #f5f0e8;
  --text-muted:   #777777;
  --text-answer:  #666666;
  --border:       #252525;
  --border-warm:  #2a2218;
  --text-dim:     #555555;
  --radius:       10px;
  --radius-sm:    6px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-warm);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.logo-hub { color: var(--accent); }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201, 92, 42, 0.1);
  border: 1px solid rgba(201, 92, 42, 0.28);
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

#scores-section { border-bottom: 1px solid var(--border); }
#scores-container { padding: 0 0 8px; display: flex; flex-direction: column; gap: 0; }

/* Old .match-card kept for backwards-compat during transition */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

/* New fixture-list match row */
.sc-match {
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.sc-match:last-of-type { border-bottom: none; }
.sc-match:hover { background: var(--surface); }

.sc-team-home { text-align: right; }
.sc-team-away { text-align: left; }
.sc-team-name { font-size: 12px; font-weight: 600; color: var(--text); }
.sc-team-name.dim { color: var(--text-muted); font-weight: 400; }

.sc-score-col { text-align: center; }
.sc-score {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 2px;
  line-height: 1;
  display: block;
}
.sc-status {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
  display: block;
}
.sc-status.ft { color: var(--text-muted); }

.team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.team-name { font-size: 12px; text-align: center; }
.team img { width: 30px; height: 30px; object-fit: contain; }

.score-block { text-align: center; }
.score { font-size: 22px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.match-status { font-size: 10px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.match-league { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* Legacy section-title (kept for non-scores contexts) */
.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 16px 16px 8px;
}

/* New fixture-list section header */
.sc-section-head {
  padding: 14px 16px 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid var(--border);
}
.league-group:first-child .sc-section-head { border-top: none; }
#scores-container > .sc-section-head:first-child { border-top: none; }

.sc-section-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sc-section-rule { flex: 1; height: 1px; background: var(--border); }
.sc-section-count { font-size: 10px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

#news-section { border-bottom: 1px solid var(--border); }
#news-container { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 1px; }

.news-item {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: inherit;
}
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 12px; line-height: 1.4; color: var(--text); transition: color 0.15s; }
.news-item:hover .news-title { opacity: 0.8; }
.news-date { font-size: 10px; color: var(--text-muted); }

#assistant-section { padding-bottom: 8px; }

#answer-box {
  margin: 0 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 56px;
}

/* Quiz hint banner */
.quiz-hint {
  margin: 10px 14px 0;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
}
.quiz-hint-body {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.quiz-hint-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.quiz-hint-text {
  color: var(--text-muted);
  line-height: 1.55;
}
.quiz-hint-text strong { color: var(--text); font-weight: 600; }
.quiz-hint-text em { font-style: normal; color: var(--text); }
.quiz-hint-dismiss {
  display: block;
  width: 100%;
  padding: 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, color .2s;
}
.quiz-hint-dismiss:hover { border-color: var(--text-muted); color: var(--text); }

.answer-text {
  font-size: 12px;
  color: var(--text-answer);
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.answer-text.fading { opacity: 0; }

.mic-btn {
  position: fixed;
  bottom: calc(20px + 62px);
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 100;
}

.mic-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(248, 81, 73, 0.05); }
}

.loading-skeleton {
  background: var(--surface);
  border-radius: var(--radius);
  height: 64px;
  margin-bottom: 8px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.no-matches { color: var(--text-muted); font-size: 13px; padding: 8px 0; text-align: center; }

/* Ad slots */
.ad-slot {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  min-height: 60px;
}

/* Footer */
.app-footer {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 11px;
  text-decoration: none;
}

.footer-link:hover { color: var(--text); }

/* About page */
.about-logo { text-decoration: none; color: inherit; }

.about-main {
  padding: 24px 16px;
  max-width: 680px;
  margin: 0 auto;
}

.about-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.about-lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-section {
  margin: 24px 0;
}

.about-section h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.about-subhead {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 16px 0 8px;
}

.about-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-list li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.about-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.faq { display: flex; flex-direction: column; gap: 16px; }

.faq-item h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.about-cta {
  margin: 32px 0 16px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  text-decoration: none;
}

.cta-btn:hover { opacity: 0.85; }

/* Bottom navigation — floating pill */
.pill-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 40px;
  padding: 5px;
  gap: 2px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03);
  white-space: nowrap;
}

.pill-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 30px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  gap: 3px;
  text-decoration: none;
  transition: color 0.15s;
}

.pill-nav-tab.active {
  background: var(--accent);
  color: #fff;
}

.pill-nav-tab svg { width: 15px; height: 15px; }

/* Body bottom padding must account for floating pill height */
body { padding-bottom: 90px; }

/* Home page */
.home-main { padding: 0 0 16px; }

/* Header tagline */
.home-tagline {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 11px;
  color: var(--text-muted);
  padding-bottom: 3px;
}

/* Live hero card */
.home-hero {
  margin: 14px 16px 6px;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 14px;
  overflow: hidden;
}
.home-hero-top {
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.home-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.home-hero-league { font-size: 10px; color: var(--text-muted); }
.home-hero-match {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.home-hero-team { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }
.home-hero-score-block { text-align: center; }
.home-hero-score {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 3px;
  line-height: 1;
  display: block;
}
.home-hero-min {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
  display: block;
}
.home-hero-footer {
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.home-hero-more { color: var(--text-muted); }
.home-hero-link { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Menu list */
.home-menu { padding: 6px 16px 0; }
.home-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.home-menu-item:last-child { border-bottom: none; }
.home-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.home-menu-body { flex: 1; min-width: 0; }
.home-menu-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.home-menu-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.home-menu-arrow { color: var(--text-dim, #333); font-size: 18px; flex-shrink: 0; }

/* Quote */
.home-quote-wrap { padding: 10px 16px 4px; }
.home-quote {
  padding: 13px 16px;
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  background: var(--surface);
}
.home-quote-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.home-quote-text::before { content: '\201C'; color: var(--accent); margin-right: 1px; }
.home-quote-text::after  { content: '\201D'; color: var(--accent); margin-left: 1px; }
.home-quote-attr { font-size: 11px; color: var(--text-dim, #444); margin-top: 5px; }
.home-quote-sub { font-size: 11px; opacity: 0.7; }

/* Scores page live refresh indicator */
.scores-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.scores-refresh-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* Scores page league groups */
.league-group { margin-bottom: 4px; }

.league-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 12px 16px 6px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.league-header::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.league-group:first-child .league-header { border-top: none; }

.wc-card { border-color: var(--accent-gold); }

/* WC section header accent */
#wc-section .section-title { color: var(--accent-gold); }

/* Games page */
.games-main { padding: 0 0 16px; }

.games-section { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.games-section:last-child { border-bottom: none; }

/* Games hub featured hero */
.gm-featured {
  display: block;
  margin: 14px 14px 4px;
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  padding: 18px 16px 14px;
  text-decoration: none;
  color: inherit;
}
.gm-feat-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.gm-feat-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.gm-feat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.gm-feat-rule {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Games hub section divider */
.gm-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px 8px;
}
.gm-divider::before, .gm-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.gm-divider span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.wyr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 16px 0;
  padding: 14px;
}

.wyr-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.wyr-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wyr-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 8px;
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.wyr-btn:hover { border-color: var(--accent); }
.wyr-btn.chosen { background: var(--accent); border-color: var(--accent); color: #fff; }

.game-rating-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 16px;
}

.game-rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.game-rating-item:last-child { border-bottom: none; }
.game-name { color: var(--text); }
.game-stars { color: var(--accent); letter-spacing: 1px; }

/* Auth forms */
.auth-container { padding: 24px 16px; }

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active { background: var(--surface); color: var(--text); }

.auth-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.auth-error { font-size: 12px; color: var(--accent); min-height: 16px; margin: 4px 0 8px; }

/* Shared form styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-group label { font-size: 12px; color: var(--text-muted); }

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group textarea {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  padding: 9px 10px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); outline: none; }

.form-hint { font-size: 11px; color: var(--text-muted); }

.submit-btn {
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.submit-btn:hover { opacity: 0.85; }

/* Beers page */
.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.add-btn {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
}

.form-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 16px 16px;
  padding: 14px;
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-card-header h3 { font-size: 14px; font-weight: 600; }

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.location-row { display: flex; gap: 6px; }
.location-row input { flex: 1; }
.loc-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  padding: 0 10px;
}

.star-rating { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.star-label { cursor: pointer; font-size: 18px; color: var(--text-muted); transition: color 0.1s; }
.star-label:hover { color: var(--accent-gold); }
.star-label input { display: none; }
.star-label:has(input:checked) { color: var(--accent-gold); }

/* Beer controls (stats bar + sort) */
#beer-controls { padding: 0 16px 4px; }
.beer-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.beer-stat-dot { opacity: .4; }
.beer-sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.beer-sort-label { font-size: 12px; color: var(--text-muted); }
.beer-sort-select {
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
}
.beer-sort-select:focus { outline: none; border-color: var(--accent-gold); }

/* Beer cards */
#beer-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }

.beer-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 12px;
}

.beer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.beer-name { font-family: 'Fraunces', Georgia, serif; font-size: 14px; font-weight: 700; color: var(--text); }
.beer-rating { color: var(--accent-gold); font-size: 13px; white-space: nowrap; }
.beer-brewery { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.beer-location { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }
.beer-notes { font-size: 12px; color: var(--text-answer); margin-top: 6px; line-height: 1.5; }

.beer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.beer-date { font-size: 11px; color: var(--text-muted); }

.beer-actions { display: flex; gap: 6px; }

.beer-edit-btn, .beer-delete-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
}

.beer-delete-btn:hover { border-color: var(--accent); color: var(--accent); }

.user-greeting {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 16px 12px;
}

/* ============================================================
   GAME PAGES — shared + per-mode styles
   ============================================================ */

/* Game hub cards (games.html) */
.game-hub-main { padding: 0 0 16px; }

.game-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
}

.game-hub-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 14px 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-hub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.game-hub-card:active { transform: translateY(0); box-shadow: none; }

/* Top-strip accent — 2px strip at top of each card */
.game-hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.game-hub-card.amber::before  { background: #c9991a; }
.game-hub-card.red::before    { background: var(--accent); }
.game-hub-card.green::before  { background: #3aad66; }
.game-hub-card.purple::before { background: #8b6fd8; }
.game-hub-card.teal::before   { background: #0ea5c9; }
.game-hub-card.pink::before   { background: #c9306e; }

.game-hub-icon { font-size: 26px; line-height: 1; margin-bottom: 2px; }
.game-hub-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.game-hub-subtitle { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

.game-hub-rule {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ---- Shared game page shell ---- */
.game-page-main { padding-bottom: 80px; }

.game-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 12px 16px 0;
}

.game-back:hover { color: var(--text); }

.game-rule-bar {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 16px 14px;
  text-align: center;
}

/* ---- WYR ---- */
.wyr-main {
  padding: 8px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wyr-options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wyr-option {
  background: var(--surface);
  border: 2px solid var(--border-warm);
  border-radius: 12px;
  padding: 22px 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
  transition: border-color 0.15s, opacity 0.25s, background 0.15s;
  width: 100%;
}

.wyr-option:hover { border-color: var(--text-muted); }

/* Amber (celebs) chosen state */
.wyr-amber .wyr-option.chosen { border-color: #d99322; background: rgba(217,147,34,0.12); }
.wyr-amber .wyr-option.unchosen { opacity: 0.35; }

/* Red/terracotta (extreme) chosen state */
.wyr-red .wyr-option.chosen { border-color: var(--accent); background: rgba(201,92,42,0.1); }
.wyr-red .wyr-option.unchosen { opacity: 0.35; }

.wyr-result-bar {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
  font-style: italic;
}

.wyr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.wyr-next-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.wyr-next-btn:hover { border-color: var(--text-muted); }

.wyr-fresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 11px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.wyr-fresh-btn:hover { color: var(--text); border-color: var(--text-muted); }
.wyr-fresh-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- Higher or Lower ---- */
.hl-main { padding: 0 16px; }

.hl-streak-bar {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0 12px;
}

.hl-streak-num {
  font-size: 22px;
  font-weight: 700;
  color: #38d36c;
  display: block;
}

.hl-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.hl-categories::-webkit-scrollbar { display: none; }

.hl-cat-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.hl-cat-btn.active { color: #38d36c; border-color: #38d36c66; }

.hl-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.hl-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.hl-card.known { border-color: #38d36c44; }
.hl-card.mystery { border-color: var(--border); }
.hl-card.correct { border-color: #38d36c; background: rgba(56,211,108,0.08); }
.hl-card.wrong { border-color: var(--accent); background: rgba(248,81,73,0.08); }

.hl-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.hl-card-value { font-size: 22px; font-weight: 700; color: #38d36c; }
.hl-card-unit { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.hl-mystery-value { font-size: 28px; font-weight: 700; color: var(--text-muted); }

.hl-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hl-btn {
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.hl-btn:hover { opacity: 0.85; }
.hl-btn:disabled { opacity: 0.4; cursor: default; }
.hl-btn.higher { background: #38d36c; color: #0d1117; }
.hl-btn.lower { background: var(--accent); color: #fff; }

.hl-fresh-wrap { text-align: center; margin-top: 12px; }

/* ---- Forfeits ---- */
.forfeits-main { padding: 0 16px; }

.forfeit-card {
  background: var(--surface);
  border: 2px solid rgba(201,162,39,0.25);
  border-radius: 12px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  margin-bottom: 14px;
}
.forfeit-card:hover { border-color: var(--accent-gold); transform: scale(1.01); }
.forfeit-card:active { transform: scale(0.99); }

/* forfeit hover/active defined with .forfeit-card above */

.forfeit-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.forfeit-tap-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.forfeit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forfeit-next-btn {
  background: var(--accent-gold);
  border: none;
  border-radius: var(--radius);
  color: #0f1117;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.forfeit-next-btn:hover { opacity: 0.85; }

.forfeit-fresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 11px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.forfeit-fresh-btn:hover { color: var(--text); border-color: var(--text-muted); }
.forfeit-fresh-btn:disabled { opacity: 0.4; cursor: default; }

/* ---- Trivia ---- */
.trivia-main { padding: 0 16px; }

.trivia-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.trivia-cat-bar::-webkit-scrollbar { display: none; }

.trivia-cat-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.trivia-cat-btn.active { color: var(--text); background: var(--surface2); border-color: var(--text-muted); }

.trivia-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  margin-bottom: 14px;
  min-height: 170px;
}

.trivia-question {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 20px;
}

.trivia-reveal-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}

.trivia-reveal-btn:hover { opacity: 0.85; }

.trivia-answer {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0 0 10px;
  line-height: 1.4;
}

.trivia-confidence {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.trivia-conf-high { background: rgba(56,211,108,0.15); color: #38d36c; }
.trivia-conf-medium { background: rgba(217,147,34,0.15); color: #d99322; }
.trivia-conf-low { background: rgba(248,81,73,0.15); color: var(--accent); }

.trivia-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.trivia-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trivia-next-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.trivia-next-btn:hover { border-color: var(--text-muted); }

.trivia-fresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 11px;
  padding: 7px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.trivia-fresh-btn:hover { color: var(--text); border-color: var(--text-muted); }
.trivia-fresh-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Trivia scoreboard ─────────────────────────────────────────────────────── */
.trivia-scoreboard { margin: 0 14px 4px; }

/* Empty state — "Track scores" button */
.trivia-sb-empty { text-align: right; padding: 2px 0 6px; }
.trivia-sb-setup-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.trivia-sb-setup-btn:hover { border-color: var(--text-muted); color: var(--text); }

/* Active scoreboard */
.trivia-sb-active {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px 8px 12px;
  margin-bottom: 6px;
}
.trivia-sb-players {
  display: flex;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.trivia-sb-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 32px;
  transition: transform .2s;
}
.trivia-sb-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trivia-sb-pts {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  transition: color .3s;
}
.trivia-sb-player.trivia-sb-flash { transform: scale(1.18); }
.trivia-sb-player.trivia-sb-flash .trivia-sb-pts { color: #22c55e; }

/* Fresh-content pulse — applied briefly when AI questions are loaded */
@keyframes freshPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.55); }
  65%  { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}
.fresh-pulse { animation: freshPulse 0.75s ease-out; }
.trivia-sb-reset-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 17px;
  cursor: pointer;
  padding: 4px 2px;
  line-height: 1;
}
.trivia-sb-reset-btn:hover { color: var(--text); }

/* Setup panel */
.trivia-sb-setup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 6px;
}
.trivia-sb-setup-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.trivia-sb-name-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 8px;
  width: calc(50% - 3px);
  min-width: 80px;
  box-sizing: border-box;
}
.trivia-sb-name-input:focus { outline: none; border-color: var(--text-muted); }
.trivia-sb-setup-actions { display: flex; gap: 6px; }
.trivia-sb-start-btn {
  flex: 1;
  background: var(--accent-gold);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
}
.trivia-sb-add-btn,
.trivia-sb-cancel-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}
.trivia-sb-add-btn:hover,
.trivia-sb-cancel-btn:hover { border-color: var(--text-muted); color: var(--text); }

/* Award row (appears below answer) */
.trivia-award {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.trivia-award-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.trivia-award-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trivia-award-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.trivia-award-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.trivia-award-btn:active { background: rgba(201,162,39,.15); border-color: var(--accent-gold); color: var(--accent-gold); }

/* game-hub-card colour classes (.amber .red .green .purple .teal .pink)
   are defined with the rest of .game-hub-card above */

/* ---- Game hub: 3-column desktop grid ---- */
@media (min-width: 600px) {
  .game-hub-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 18+ pip on NHIE hub card ---- */
.game-hub-adult-pip {
  font-size: 9px;
  background: rgba(190,24,93,0.3);
  color: #f472b6;
  border-radius: 3px;
  padding: 1px 4px;
  vertical-align: middle;
  margin-left: 4px;
  font-weight: 600;
}

/* ============================================================
   CATEGORIES PAGE
   ============================================================ */
.categories-main { padding: 0 16px; }

.cat-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.cat-filter-bar::-webkit-scrollbar { display: none; }

.cat-filter-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cat-filter-btn.active { color: #06b6d4; border-color: rgba(6,182,212,0.5); }

.cat-timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.cat-timer-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.cat-timer-options {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-timer-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 3px 8px;
}

.categories-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 12px;
}

.cat-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cat-hint-row { text-align: center; }

.cat-hint-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  margin-bottom: 6px;
}
.cat-hint-btn:hover { color: var(--text); }

.cat-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.cat-difficulty-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-diff-easy   { background: rgba(56,211,108,0.15);  color: #38d36c; }
.cat-diff-medium { background: rgba(217,147,34,0.15);  color: #d99322; }
.cat-diff-hard   { background: rgba(248,81,73,0.15);   color: var(--accent); }

.cat-timer-display {
  text-align: center;
  padding: 8px 0;
  margin-bottom: 8px;
}
.cat-timer-value {
  font-size: 48px;
  font-weight: 700;
  color: #06b6d4;
  line-height: 1;
  transition: color 0.2s;
}
.cat-timer-urgent .cat-timer-value { color: var(--accent); }

.cat-next-player-row {
  margin-bottom: 12px;
  text-align: center;
}
.cat-next-player-btn {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.4);
  border-radius: var(--radius);
  color: #06b6d4;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s;
}
.cat-next-player-btn:hover { opacity: 0.8; }

.cat-footer { display: flex; flex-direction: column; gap: 8px; }

.cat-next-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s;
}
.cat-next-btn:hover { border-color: var(--text-muted); }

.cat-fresh-btn {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cat-fresh-btn:hover { color: var(--text); border-color: var(--text-muted); }
.cat-fresh-btn:disabled { opacity: 0.4; cursor: default; }

/* ============================================================
   NEVER HAVE I EVER PAGE
   ============================================================ */
.nhie-main { padding: 0 16px; }

.nhie-mode-toggle {
  display: flex;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.nhie-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nhie-mode-btn--mild.active  { background: rgba(236,72,153,0.15);  color: #ec4899; }
.nhie-mode-btn--spicy.active { background: rgba(190,24,93,0.2);    color: #f472b6; }
.nhie-mode-btn + .nhie-mode-btn { border-left: 1px solid var(--border); }

.nhie-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 36px 24px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.nhie-card--spicy { border-color: rgba(190,24,93,0.4); }

.nhie-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
  color: var(--text);
}

.nhie-footer { display: flex; flex-direction: column; gap: 8px; }

.nhie-next-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s;
}
.nhie-next-btn:hover { border-color: var(--text-muted); }

.nhie-fresh-btn {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.nhie-fresh-btn:hover { color: var(--text); border-color: var(--text-muted); }
.nhie-fresh-btn:disabled { opacity: 0.4; cursor: default; }

/* Spicy acknowledgement modal */
.nhie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.nhie-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  max-width: 320px;
  width: 100%;
}
.nhie-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.nhie-modal-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.nhie-modal-btns { display: flex; gap: 10px; }
.nhie-modal-cancel {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
}
.nhie-modal-continue {
  flex: 1;
  background: rgba(190,24,93,0.2);
  border: 1px solid rgba(190,24,93,0.5);
  border-radius: var(--radius);
  color: #f472b6;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

/* ===== DRAFT GAME ===== */
.draft-wrap { max-width: 480px; margin: 0 auto; padding: 0 12px; }

/* Title screen */
.draft-title-screen { text-align: center; padding: 40px 16px; }
.draft-logo { font-size: 48px; margin-bottom: 12px; }
.draft-title-screen h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.draft-title-screen p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 28px; }
.draft-rules { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: left; margin-bottom: 24px; }
.draft-rules h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 10px; }
.draft-rules li { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-left: 14px; }
.draft-rules li span { color: var(--text); }
.draft-btn { display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: var(--radius); padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: -0.01em; transition: opacity 0.15s; }
.draft-btn:hover { opacity: 0.88; }
.draft-btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 11px 20px; font-size: 13px; font-weight: 600; }
.draft-btn:disabled { opacity: 0.4; cursor: default; }

/* Handover screen */
.draft-handover { text-align: center; padding: 60px 20px; }
.draft-handover .draft-logo { font-size: 40px; }
.draft-handover h2 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.draft-handover p { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

/* Section heading */
.draft-section-hd { margin: 20px 0 12px; }
.draft-section-hd h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.draft-section-hd p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.draft-picks-tally { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin: 6px 0 14px; }
.draft-picks-tally span { color: var(--accent-gold); font-weight: 700; }

/* Pool grid */
.draft-pool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }

/* Player card */
.draft-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-top: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.draft-card:hover { border-top-color: var(--accent-gold); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.draft-card.picked { opacity: 0.35; cursor: default; pointer-events: none; }
.draft-card.selected { border-top-color: #3aad66; box-shadow: 0 0 0 1px rgba(58,173,102,0.25); }

.draft-card-pos {
  display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 2px 5px; border-radius: 3px; margin-bottom: 5px;
}
.pos-gk  { background: rgba(251,146,60,0.18); color: #fb923c; }
.pos-def { background: rgba(59,130,246,0.18); color: #60a5fa; }
.pos-mid { background: rgba(58,173,102,0.18); color: #4ade80; }
.pos-fwd { background: rgba(232,65,58,0.18); color: var(--accent); }

.draft-card-name { font-size: 13px; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.draft-card-meta { font-size: 10px; color: var(--text-muted); margin-bottom: 7px; }

.draft-card-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px 6px; }
.draft-stat { display: flex; flex-direction: column; align-items: center; }
.draft-stat-label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.draft-stat-val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.draft-stat-val.high { color: #4ade80; }
.draft-stat-val.mid  { color: var(--text); }
.draft-stat-val.low  { color: var(--text-muted); }

.draft-card-mod { font-size: 9px; color: var(--accent-gold); font-weight: 600; margin-top: 6px; letter-spacing: 0.2px; }

/* Reroll button */
.draft-reroll-btn {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 12px;
  padding: 9px; cursor: pointer; margin-bottom: 12px; transition: color 0.15s;
}
.draft-reroll-btn:hover { color: var(--text); }
.draft-reroll-btn:disabled { opacity: 0.3; cursor: default; }

/* Picked squad preview */
.draft-squad-preview { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 16px; min-height: 32px; }
.draft-squad-pip {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 8px; font-size: 11px; font-weight: 600;
}
.draft-squad-pip.filled { background: rgba(58,173,102,0.15); border-color: rgba(58,173,102,0.4); color: #4ade80; }

/* Confirm picks bar */
.draft-confirm-bar { padding: 10px 0 14px; }
.draft-confirm-bar .draft-btn { width: 100%; padding: 13px; font-size: 14px; }

/* Reveal screen */
.draft-reveal-squads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.draft-reveal-squad h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px; padding: 0 2px; }
.draft-reveal-card {
  background: var(--surface); border: 1px solid var(--border-warm); border-top: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px; margin-bottom: 6px;
  cursor: pointer; transition: border-top-color 0.2s;
}
.draft-reveal-card.revealed { border-top-color: var(--accent-gold); }
.draft-reveal-card-name { font-size: 12px; font-weight: 700; }
.draft-reveal-card-meta { font-size: 10px; color: var(--text-muted); }
.draft-reveal-card-mod { font-size: 11px; color: var(--accent-gold); font-weight: 600; margin-top: 4px; animation: modReveal 0.4s ease; }
.draft-reveal-card-mod-desc { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
@keyframes modReveal { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: none; } }

.draft-synergy-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.draft-synergy-bar h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 10px; }
.draft-synergy-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.draft-synergy-label { color: var(--text-muted); }
.draft-synergy-val { font-weight: 700; color: #4ade80; }
.draft-synergy-val.bad { color: var(--accent); }
.draft-synergy-val.neutral { color: var(--text-muted); }

/* Kickoff countdown */
.draft-kickoff { text-align: center; padding: 60px 20px; }
.draft-kickoff-num { font-size: 80px; font-weight: 900; color: var(--accent); line-height: 1; }
.draft-kickoff p { color: var(--text-muted); font-size: 13px; margin-top: 12px; }

/* Match sim */
.draft-scoreboard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: center; text-align: center; margin-bottom: 14px;
}
.draft-team-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); }
.draft-score-display { font-size: 36px; font-weight: 900; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.draft-score-sep { font-size: 20px; color: var(--border); }
.draft-match-clock { text-align: center; font-size: 11px; color: var(--text-muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.draft-match-clock span { color: var(--accent); font-weight: 700; }

.draft-commentary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; min-height: 64px; margin-bottom: 14px; font-size: 13px; line-height: 1.5;
  color: var(--text-answer);
}
.draft-commentary .goal-flash { color: #4ade80; font-weight: 700; }

.draft-progress { display: flex; gap: 3px; margin-bottom: 16px; }
.draft-moment-pip { flex: 1; height: 4px; background: var(--border); border-radius: 2px; transition: background 0.3s; }
.draft-moment-pip.done { background: var(--text-muted); }
.draft-moment-pip.goal { background: #4ade80; }
.draft-moment-pip.active { background: var(--accent); animation: pip-pulse 0.6s infinite alternate; }
@keyframes pip-pulse { from { opacity:0.6; } to { opacity:1; } }

/* Result screen */
.draft-result-screen { text-align: center; padding: 32px 16px; }
.draft-result-trophy { font-size: 56px; margin-bottom: 10px; }
.draft-result-screen h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 4px; }
.draft-result-screen p { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.draft-result-score { font-size: 40px; font-weight: 900; letter-spacing: 6px; margin: 12px 0 20px; font-variant-numeric: tabular-nums; }
.draft-mvp { background: var(--surface); border: 1px solid var(--border-warm); border-top: 3px solid var(--accent-gold); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 24px; text-align: left; }
.draft-mvp-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent-gold); margin-bottom: 4px; }
.draft-mvp-name { font-size: 15px; font-weight: 800; }
.draft-mvp-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Score flash on goal */
@keyframes scoreFlash { 0%,100% { color: var(--text); } 40% { color: #4ade80; transform: scale(1.18); } }
.draft-score-display.scored  { animation: scoreFlash 0.7s ease; }
.draft-split-my-score.scored { animation: scoreFlash 0.7s ease; }

/* Absent player notice */
.draft-absent-notice { background: rgba(232,65,58,0.12); border: 1px solid rgba(232,65,58,0.3); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; color: #f87171; margin-bottom: 12px; }

/* ── SPLIT SCREEN SIM ────────────────────────────────────────────────────── */
/* Fills the viewport between the sticky header and the fixed nav bar.
   Negative margin escapes the .draft-wrap padding so it goes edge-to-edge. */
.draft-sim-split {
  margin: 0 -12px;
  height: calc(100vh - 56px - 70px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Each player's half — fills its share of the split height */
.draft-split-half {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* P2's half is physically at the bottom of the screen but reads upside-down
   for P1 — rotate it so P2 (sitting opposite) reads it normally.
   History items are stored oldest-first in the DOM so that after rotation
   the newest entry appears at P2's visual top. */
.draft-split-half.p2 { transform: rotate(180deg); }

/* Progress pip strip between the two halves */
.draft-split-divider {
  flex-shrink: 0;
  padding: 5px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Score row: big "YOU" number, smaller "THEM", clock on the right */
.draft-split-score-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}
.draft-split-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); line-height: 1; margin-bottom: 2px;
}
.draft-split-my-score {
  font-size: 48px; font-weight: 900; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.draft-split-opp-score {
  font-size: 28px; font-weight: 700; color: var(--text-muted);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.draft-split-vs { font-size: 14px; color: var(--border); padding-bottom: 4px; }
.draft-split-clock {
  margin-left: auto; font-size: 10px; color: var(--text-muted);
  text-align: right; font-variant-numeric: tabular-nums; line-height: 1.5; padding-bottom: 2px;
}
.draft-split-clock strong { color: var(--accent); font-weight: 700; }

/* Current-moment commentary */
.draft-split-commentary {
  flex-shrink: 0;
  font-size: 12px; color: var(--text-answer); line-height: 1.4;
  padding: 6px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.draft-split-commentary .goal { color: #4ade80; font-weight: 700; }

/* Match history list — grows to fill remaining space, clips overflow */
.draft-split-history {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.draft-split-history-item {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 11px; color: var(--text-muted); line-height: 1.3;
  padding: 3px 0; border-bottom: 1px solid rgba(37,45,58,0.6);
  flex-shrink: 0;
}
.draft-split-history-item.goal-event { color: #4ade80; }
.hist-min {
  flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 10px; color: var(--text-muted); min-width: 24px;
}
.draft-split-history-item.goal-event .hist-min { color: #4ade80; }

/* ── Draft card OVR badge ─────────────────────────────────────────────── */
.draft-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.draft-card-ovr { font-size: 12px; font-weight: 900; color: var(--accent-gold); background: rgba(255,195,50,0.12); border-radius: 4px; padding: 1px 6px; letter-spacing: -0.02em; }

/* ── Draft pick timer ──────────────────────────────────────────────────── */
.draft-timer { margin-left: auto; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: #4ade80; background: rgba(74,222,128,0.10); border: 1px solid rgba(74,222,128,0.25); border-radius: 20px; padding: 2px 9px; transition: color 0.3s, background 0.3s; }
.draft-timer.urgent { color: var(--accent-gold); background: rgba(255,195,50,0.10); border-color: rgba(255,195,50,0.30); }
.draft-timer.critical { color: var(--accent); background: rgba(232,65,58,0.12); border-color: rgba(232,65,58,0.35); animation: pip-pulse 0.45s infinite alternate; }

/* ── Position warning banner ──────────────────────────────────────────── */
.draft-pos-warning { background: rgba(255,195,50,0.07); border: 1px solid rgba(255,195,50,0.30); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--accent-gold); margin-bottom: 8px; }

/* ── Derby match banner ───────────────────────────────────────────────── */
.draft-derby-banner { background: linear-gradient(135deg, rgba(232,65,58,0.12), rgba(255,80,40,0.12)); border: 1px solid rgba(232,65,58,0.40); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 13px; font-weight: 800; color: var(--accent); text-align: center; margin-bottom: 12px; letter-spacing: 0.02em; animation: modReveal 0.4s ease; }

/* ── Half-time screen ─────────────────────────────────────────────────── */
.draft-halftime { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 32px 20px; text-align: center; }
.draft-halftime-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 4px 16px; margin-bottom: 18px; }
.draft-halftime-score { font-size: 56px; font-weight: 900; letter-spacing: 10px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.draft-halftime-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

/* ── Modifier trigger line in split-screen commentary ─────────────────── */
.draft-split-trigger { font-size: 10px; font-weight: 600; color: var(--accent-gold); margin-top: 4px; font-style: italic; opacity: 0.9; }

/* ── Match stats on result screen ─────────────────────────────────────── */
.draft-match-stats { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 20px; text-align: left; }
.draft-match-stats h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 10px; }
.draft-stats-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.draft-stats-label { font-size: 10px; font-weight: 400; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.draft-stats-scorers { font-size: 11px; color: var(--text-muted); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; line-height: 1.6; }

/* ---- Bench, Sign, Sell ---- */
.bss-main { padding: 0 16px; }

.bss-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 24px;
  gap: 16px;
}

.bss-intro-icon { font-size: 48px; line-height: 1; }
.bss-intro-title { font-size: 22px; font-weight: 700; }
.bss-intro-blurb { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.bss-intro-blurb strong { color: var(--text); }

.bss-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.bss-rule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.bss-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  min-width: 84px;
  text-align: center;
}
.bss-chip-bench { background: rgba(86,97,110,0.25); color: var(--text-muted); border: 1px solid var(--border); }
.bss-chip-sign  { background: rgba(58,173,102,0.15); color: #3aad66; border: 1px solid rgba(58,173,102,0.3); }
.bss-chip-sell  { background: rgba(201,162,39,0.15); color: var(--accent-gold); border: 1px solid rgba(201,162,39,0.3); }

.bss-start-btn {
  background: var(--accent-gold);
  color: #111;
  border: none;
  border-radius: var(--radius);
  padding: 13px 36px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.bss-start-btn:hover { opacity: 0.88; }

/* Game screen */
.bss-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 0;
}

.bss-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.bss-theme {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-gold);
}

.bss-counter {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bss-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bss-card {
  background: var(--surface);
  border: 1px solid var(--border-warm);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.bss-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.bss-card-1::before { background: #0ea5c9; }
.bss-card-2::before { background: var(--accent-gold); }
.bss-card-3::before { background: #3aad66; }

.bss-card-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bss-card-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.bss-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 16px;
}

.bss-next-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.bss-next-btn:hover { border-color: var(--text-muted); }

/* ── Modifiers reference on title screen ──────────────────────────────── */
.draft-modifiers-ref { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: left; margin-top: 24px; margin-bottom: 24px; }
.draft-modifiers-ref h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 6px; }
.draft-mod-intro { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.draft-mod-entry { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(37,45,58,0.8); }
.draft-mod-entry:last-child { border-bottom: none; padding-bottom: 0; }
.draft-mod-entry-emoji { font-size: 18px; flex-shrink: 0; line-height: 1.3; min-width: 22px; text-align: center; }
.draft-mod-entry-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.draft-mod-entry-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════════════════
   F1 DRAFT
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Player colours ─────────────────────────────────────────────────────────── */
.f1-p0 { --f1-col: var(--accent); }
.f1-p1 { --f1-col: var(--accent); }
.f1-p2 { --f1-col: #f59e0b; }
.f1-p3 { --f1-col: #a855f7; }

/* ── Setup screen ───────────────────────────────────────────────────────────── */
.f1-setup { padding: 20px 16px; max-width: 420px; margin: 0 auto; text-align: center; }
.f1-setup h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.f1-setup p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.f1-player-count-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.f1-count-btn { flex: 1; max-width: 70px; padding: 10px 0; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.f1-count-btn.active { border-color: var(--accent); background: rgba(0,188,212,.12); color: var(--accent); }
.f1-name-inputs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.f1-name-input { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-size: 15px; outline: none; transition: border-color .15s; }
.f1-name-input:focus { border-color: var(--accent); }
.f1-name-input::placeholder { color: var(--text-muted); }

/* ── Draft phase ────────────────────────────────────────────────────────────── */
.f1-draft-header { padding: 16px 16px 8px; }
.f1-draft-category-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.f1-draft-player-name { font-size: 20px; font-weight: 900; margin: 0 0 2px; }
.f1-draft-player-name span { color: var(--f1-col, var(--accent)); }
.f1-draft-subtitle { font-size: 12px; color: var(--text-muted); margin: 0; }
.f1-draft-timer { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); font-size: 13px; font-weight: 700; float: right; margin-top: -32px; font-variant-numeric: tabular-nums; }
.f1-draft-timer.urgent { border-color: #f59e0b; color: #f59e0b; }
.f1-draft-timer.critical { border-color: var(--accent); color: var(--accent); animation: f1-pulse .5s infinite; }
@keyframes f1-pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

/* ── Card grid ──────────────────────────────────────────────────────────────── */
.f1-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 14px 4px; }
.f1-card { background: var(--surface); border: 2px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; transition: border-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.f1-card:active { transform: scale(.97); }
.f1-card.selected { border-color: var(--accent); background: rgba(0,188,212,.07); }
.f1-card-type { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.f1-card-type.driver  { color: #f59e0b; }
.f1-card-type.constructor { color: var(--accent); }
.f1-card-type.tp      { color: #a855f7; }
.f1-card-type.sponsor { color: #ec4899; }
.f1-card-name { font-size: 13px; font-weight: 800; line-height: 1.2; margin-bottom: 2px; }
.f1-card-sub  { font-size: 10px; color: var(--text-muted); margin-bottom: 8px; }
.f1-card-stats { display: flex; flex-direction: column; gap: 3px; }
.f1-stat-row { display: flex; align-items: center; gap: 4px; }
.f1-stat-label { font-size: 9px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); width: 40px; flex-shrink: 0; }
.f1-stat-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.f1-stat-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.f1-stat-fill.high { background: #22c55e; }
.f1-stat-fill.mid  { background: var(--accent); }
.f1-stat-fill.low  { background: var(--accent); }
.f1-stat-val { font-size: 10px; font-weight: 700; width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.f1-card-xfactor { font-size: 10px; color: var(--text-muted); margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--border); }

/* ── Confirm bar (inline — no fixed positioning to avoid nav overlap) ────────── */
.f1-confirm-bar { padding: 10px 14px 20px; }

/* ── Handover screen ────────────────────────────────────────────────────────── */
.f1-handover { text-align: center; padding: 60px 24px; }
.f1-handover .f1-big-emoji { font-size: 56px; margin-bottom: 16px; }
.f1-handover h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.f1-handover p { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

/* ── X-Factor reveal screen ─────────────────────────────────────────────────── */
.f1-reveal-grid { display: flex; flex-direction: column; gap: 16px; padding: 16px 14px 80px; }
.f1-reveal-player { background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.f1-reveal-player-head { padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.f1-reveal-player-name { font-size: 14px; font-weight: 800; }
.f1-reveal-cards { display: flex; flex-direction: column; gap: 0; }
.f1-reveal-card { padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(37,45,58,.6); cursor: pointer; transition: background .15s; }
.f1-reveal-card:last-child { border-bottom: none; }
.f1-reveal-card.revealed { background: rgba(0,188,212,.04); cursor: default; }
.f1-reveal-card-icon { font-size: 20px; flex-shrink: 0; }
.f1-reveal-card-info { flex: 1; min-width: 0; }
.f1-reveal-card-name { font-size: 12px; font-weight: 700; }
.f1-reveal-card-type { font-size: 10px; color: var(--text-muted); }
.f1-reveal-xfactor { font-size: 11px; margin-top: 3px; }
.f1-reveal-xfactor.hidden { color: var(--text-muted); font-style: italic; }
.f1-reveal-xfactor-name { font-weight: 700; }
.f1-synergy-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; font-size: 11px; border-bottom: 1px solid rgba(37,45,58,.5); }
.f1-synergy-row:last-child { border-bottom: none; }
.f1-synergy-label { color: var(--text-muted); }
.f1-synergy-val { font-weight: 700; color: #22c55e; }

/* ── Circuit draw screen ────────────────────────────────────────────────────── */
.f1-circuit-draw { text-align: center; padding: 32px 20px; }
.f1-circuit-draw h2 { font-size: 18px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.f1-circuit-roulette { font-size: 22px; font-weight: 900; min-height: 40px; margin-bottom: 8px; transition: opacity .1s; }
.f1-circuit-name-big { font-size: 26px; font-weight: 900; margin-bottom: 4px; }
.f1-circuit-country { font-size: 15px; color: var(--text-muted); margin-bottom: 4px; }
.f1-circuit-type-tag { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.f1-circuit-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.f1-circuit-favours { font-size: 11px; color: var(--text-muted); margin-bottom: 20px; }
.f1-circuit-favours strong { color: var(--text); }

/* ── Race screen ────────────────────────────────────────────────────────────── */
.f1-race-wrap { padding: 12px 14px 80px; }
.f1-race-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.f1-race-title { font-size: 14px; font-weight: 800; }
.f1-race-moment { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
/* ── Linear lane track ──────────────────────────────────────────────────────── */
.f1-race-lanes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.f1-race-lane { display: flex; flex-direction: column; gap: 4px; }
.f1-race-lane-label { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.f1-race-lane-name { flex: 1; }
.f1-race-lane-pos { font-size: 10px; font-weight: 800; color: var(--text-muted); min-width: 24px; text-align: right; }
.f1-race-lane-pos.leader { color: #22c55e; }
.f1-race-lane-pos.dnf { color: var(--accent); text-decoration: line-through; }
.f1-race-lane-track { position: relative; height: 18px; }
.f1-race-lane-bar { position: absolute; inset: 7px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.f1-race-lane-car {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.6);
  transform: translate(-50%, -50%);
  transition: left 0.55s ease;
  z-index: 2;
}
/* Start/finish flag line at the left edge */
.f1-race-start-line { width: 2px; background: repeating-linear-gradient(to bottom, #fff 0 4px, #000 4px 8px); height: 0; margin: -4px 0 8px calc(5% - 1px); opacity: .5; transition: height .3s; }
/* SVG circuit preview still used on circuit-draw screen */
.f1-track-svg { display: block; width: 100%; max-width: 320px; height: auto; }
.f1-track-path { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.f1-track-path-line { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linecap: round; }
.f1-race-event { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; min-height: 32px; }
.f1-race-event.sc { border-color: #f59e0b; color: #f59e0b; }
.f1-race-event.rain { border-color: #38bdf8; color: #38bdf8; }
.f1-race-event.dnf { border-color: var(--accent); color: var(--accent); }

/* ── Timing table ───────────────────────────────────────────────────────────── */
.f1-timing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.f1-timing-table th { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--border); }
.f1-timing-table td { padding: 7px 6px; border-bottom: 1px solid rgba(37,45,58,.5); vertical-align: middle; }
.f1-timing-table tr:last-child td { border-bottom: none; }
.f1-pos-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--border); font-size: 10px; font-weight: 800; }
.f1-pos-badge.p1 { background: gold; color: #000; }
.f1-pos-badge.p2 { background: #c0c0c0; color: #000; }
.f1-pos-badge.p3 { background: #cd7f32; color: #000; }
.f1-player-dot-sm { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; flex-shrink: 0; }
.f1-timing-name { font-weight: 700; font-size: 13px; }
.f1-timing-gap { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 11px; }
.f1-timing-gap.leader { color: #22c55e; font-weight: 700; }
.f1-timing-event { font-size: 10px; color: var(--text-muted); }
.f1-timing-dnf { text-decoration: line-through; opacity: .5; }

/* ── Podium screen ──────────────────────────────────────────────────────────── */
.f1-podium { text-align: center; padding: 20px 16px 32px; }
.f1-podium-emoji { font-size: 52px; margin-bottom: 8px; }
.f1-podium h2 { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.f1-podium-winner { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.f1-podium-positions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.f1-podium-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.f1-podium-row.first  { border-color: gold; }
.f1-podium-row.second { border-color: #c0c0c0; }
.f1-podium-row.third  { border-color: #cd7f32; }
.f1-podium-pos-num { font-size: 22px; font-weight: 900; width: 32px; text-align: center; flex-shrink: 0; }
.f1-podium-info { flex: 1; text-align: left; }
.f1-podium-player { font-size: 15px; font-weight: 800; }
.f1-podium-picks { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.f1-podium-score { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.f1-race-stats { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; text-align: left; font-size: 12px; }
.f1-race-stats h3 { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 10px; }
.f1-race-stat-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(37,45,58,.5); }
.f1-race-stat-row:last-child { border-bottom: none; }
.f1-race-stat-label { color: var(--text-muted); flex: 1; }
.f1-race-stat-val { font-weight: 700; }

/* ===== Top 10 game ===== */
.top10-main { max-width: 560px; margin: 0 auto; }
.top10-heading { font-size: 1.15rem; margin: 4px 0 14px; color: var(--text); }
.top10-cat-label { color: var(--text-muted); font-weight: 400; font-size: 0.95rem; }
.top10-subhint { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 14px; }

.top10-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.top10-cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, transform 0.05s;
}
.top10-cat-btn:hover { border-color: var(--accent-gold); }
.top10-cat-btn:active { transform: scale(0.98); }
.top10-cat-emoji { font-size: 1.4rem; }

.top10-random-btn {
  width: 100%;
  padding: 14px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.top10-random-btn:hover { border-color: var(--accent-gold); }

.top10-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.top10-field-row { display: flex; align-items: center; gap: 10px; }
.top10-rank {
  flex: 0 0 28px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 0.95rem;
}
.top10-input {
  flex: 1;
  padding: 12px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
}
.top10-input:focus { outline: none; border-color: var(--accent-gold); }

.top10-submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.top10-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.top10-text-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.top10-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.top10-result-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.top10-roast { color: var(--text); line-height: 1.55; font-size: 1.02rem; margin: 0; }

/* ===== Imposter game ===== */
.imp-main { max-width: 520px; margin: 0 auto; }
.imp-step { animation: none; }
.imp-input {
  width: 100%;
  padding: 14px 14px;
  margin-bottom: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  box-sizing: border-box;
}
.imp-input:focus { outline: none; border-color: var(--accent-gold); }
.imp-code-input {
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.3rem;
}
.imp-btn {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.imp-btn:hover { border-color: var(--accent-gold); }
.imp-btn-primary { background: var(--accent); border: none; color: #fff; }
.imp-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.imp-text-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}
.imp-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 14px 0;
}
.imp-divider::before, .imp-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.imp-divider span { padding: 0 12px; }
.imp-error { color: var(--accent-live, var(--accent)); font-size: 0.9rem; min-height: 1.2em; margin: 6px 0 0; }
.imp-subhint { color: var(--text-muted); font-size: 0.85rem; margin: 4px 0 12px; }

.imp-code-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}
.imp-code-box strong {
  display: block;
  margin-top: 6px;
  font-size: 2.4rem;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
}
.imp-players {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.imp-players li {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
}

.imp-topic-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 8px;
}
.imp-topic {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  margin-bottom: 14px;
  word-break: break-word;
}
.imp-first { text-align: center; color: var(--text); font-weight: 600; margin-bottom: 16px; }
.imp-rules {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 18px;
}
.imp-reveal-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  margin-bottom: 16px;
}
.imp-reveal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.imp-imposter {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-live, var(--accent));
  margin-bottom: 14px;
  word-break: break-word;
}
.imp-reveal-topics { color: var(--text); line-height: 1.6; margin: 0; }

/* ===== Imposter game v2 (imposter-knows, difficulty, polish) ===== */
.imp-reconnect {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  z-index: 50;
}
.imp-crown { font-size: 0.9rem; }

.imp-diff { margin: 4px 0 14px; }
.imp-diff-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.imp-diff-opts { display: flex; gap: 6px; }
.imp-diff-btn {
  flex: 1;
  padding: 10px 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.imp-diff-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.imp-card-wrap { position: relative; margin-bottom: 14px; }
.imp-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}
.imp-cover-icon { font-size: 1.8rem; }
.imp-card-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
}
.imp-card-content .imp-topic { background: none; border: none; padding: 0; margin: 0; }
.imp-imp-badge { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.imp-imp-hint { color: var(--text); font-size: 1rem; margin: 4px 0; }
.imp-imp-hint strong { color: var(--accent-gold); }

.imp-pop { animation: imp-pop 0.4s ease; }
@keyframes imp-pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Dragon Ball vs Invincible ===== */
.dbvi-wrap { max-width: 480px; margin: 0 auto; padding: 16px; }
.dbvi-screen { animation: fadeIn .2s ease; }
.dbvi-hero { text-align: center; margin: 12px 0 20px; }
.dbvi-title { font-size: 26px; font-weight: 800; }
.dbvi-title span { color: var(--accent-live); }
.dbvi-sub { color: var(--text-muted); }
.dbvi-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.dbvi-input { width: 100%; padding: 12px; margin-bottom: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 16px; }
.dbvi-join-row { display: flex; gap: 8px; }
.dbvi-join-row .dbvi-input { margin-bottom: 0; }
.dbvi-btn { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; }
.dbvi-btn-primary { background: var(--accent-live); border-color: var(--accent-live); color: #fff; }
.dbvi-btn-ghost { background: transparent; }
.dbvi-error { color: var(--accent-live); margin-top: 8px; min-height: 18px; }
.dbvi-lobby-head { text-align: center; margin-bottom: 16px; }
.dbvi-lobby-label, .dbvi-result-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.dbvi-code-big { font-size: 40px; font-weight: 800; letter-spacing: 6px; color: var(--accent-gold); }
.dbvi-players { list-style: none; padding: 0; margin: 0 0 16px; }
.dbvi-players li { padding: 10px; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 6px; }
.dbvi-size-label, .dbvi-wait { color: var(--text-muted); text-align: center; }
.dbvi-size-btns { display: flex; gap: 8px; margin: 8px 0 16px; }
.dbvi-size-btn { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text); cursor: pointer; }
.dbvi-size-btn.active { border-color: var(--accent-gold); color: var(--accent-gold); }
.dbvi-actions { display: flex; gap: 8px; margin-top: 16px; }
.dbvi-status { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.dbvi-result-banner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 12px; font-size: 13px; color: var(--text-answer); }
.dbvi-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.dbvi-card.dbvi-db { border-color: var(--accent-live); }
.dbvi-card.dbvi-inv { border-color: #1f6feb; }
.dbvi-card-name { font-size: 22px; font-weight: 800; }
.dbvi-card-name small { color: var(--text-muted); font-weight: 600; }
.dbvi-card-race { color: var(--accent-gold); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.dbvi-card-deaths { color: var(--accent-live); font-size: 12px; margin-top: 6px; }
.dbvi-stat-list { display: flex; flex-direction: column; gap: 6px; }
.dbvi-stat { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 15px; cursor: pointer; width: 100%; }
.dbvi-stat.disabled { opacity: .6; cursor: default; }
.dbvi-stat .dbvi-val .dbvi-base { color: var(--text-muted); text-decoration: line-through; margin-right: 4px; font-size: 13px; }
.dbvi-stat .dbvi-val strong { color: var(--accent-gold); }
.dbvi-out { color: var(--text-muted); text-align: center; padding: 20px; }
.dbvi-scoreboard { list-style: none; padding: 0; margin: 12px 0 0; }
.dbvi-scoreboard li { display: flex; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.dbvi-scoreboard li.active { color: var(--accent-gold); }
.dbvi-scoreboard li.dbvi-pot { color: var(--text-muted); font-style: italic; }
.dbvi-result-head { text-align: center; margin-bottom: 16px; }
.dbvi-winner-name { font-size: 30px; font-weight: 800; color: var(--accent-gold); }
.dbvi-standings { list-style: none; padding: 0; }
.dbvi-standings li { display: flex; justify-content: space-between; padding: 10px; background: var(--surface); border-radius: var(--radius-sm); margin-bottom: 6px; }
