/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --green:       #00c853;
  --green-dark:  #00953d;
  --green-glow:  rgba(0, 200, 83, 0.18);
  --bg:          #0d0f14;
  --bg-card:     #161a22;
  --bg-card2:    #1d2230;
  --border:      rgba(255,255,255,0.08);
  --text:        #f0f2f7;
  --text-muted:  #8a8fa8;
  --radius:      14px;
  --radius-sm:   8px;
  --font:        'Inter', system-ui, sans-serif;
  --transition:  0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}
.logo-icon { font-size: 1.4rem; }
.logo-text  { color: var(--text); }
.logo-green { color: var(--green); }

.header-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition);
}
.header-back:hover { color: var(--green); }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

/* ─── Home: Hero ───────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 52px 20px 36px;
  max-width: 640px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 40%, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ─── Home: Quiz Grid ──────────────────────────────────────── */
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

@media (min-width: 600px) {
  .quiz-grid { grid-template-columns: repeat(2, 1fr); }
}

.quiz-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.quiz-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--green-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.quiz-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,200,83,0.12);
}
.quiz-card:hover::before { opacity: 1; }

.quiz-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.quiz-card-body { flex: 1; }
.quiz-card-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.quiz-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.quiz-card-arrow {
  align-self: flex-end;
  font-size: 1.3rem;
  color: var(--green);
  transition: transform var(--transition);
}
.quiz-card:hover .quiz-card-arrow { transform: translateX(4px); }

.quiz-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  margin-right: 4px;
}
.quiz-tag--medium { background: rgba(255,180,0,0.12); color: #ffb400; }
.quiz-tag--hard   { background: rgba(0,200,83,0.12);  color: var(--green); }

/* ─── Quiz Card: Visual Preview Layout ─────────────────────── */
.quiz-card:has(.quiz-card-preview) { padding: 0; gap: 0; }

.quiz-card-preview {
  aspect-ratio: 1402 / 943;
  width: 100%;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  background: var(--bg-card2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-card-footer {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.quiz-card-footer h2 { font-size: 1rem; font-weight: 800; margin: 0; line-height: 1.3; text-align: center; }

/* ── General Quiz ─────────────────────────── */
.qcp--general {
  background: linear-gradient(155deg, #0e1525, #141e32);
  flex-direction: column; align-items: stretch; justify-content: center;
  padding: 14px 14px 10px;
}
.qcp-q { font-size: 0.6rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.35; }
.qcp-opts { display: flex; flex-direction: column; gap: 5px; }
.qcp-opt { font-size: 0.57rem; padding: 4px 8px; border-radius: 5px; background: rgba(255,255,255,0.06); color: var(--text-muted); font-weight: 600; }
.qcp-opt--c { background: rgba(0,200,83,0.18); color: var(--green); font-weight: 700; }

/* ── Career Path ──────────────────────────── */
.qcp--career { background: linear-gradient(155deg, #0e1525, #0d1a20); flex-direction: column; gap: 8px; padding: 10px 14px 8px; align-items: center; justify-content: center; }
.qcp-phone-frame { width: 54px; height: 62px; border-radius: 10px; background: linear-gradient(160deg, #1c2840, #0e1520); border: 2px solid rgba(255,255,255,0.13); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; flex-shrink: 0; }
.qcp-phone-sil { color: rgba(255,255,255,0.09); }
.qcp-phone-q { position: absolute; font-size: 1.5rem; font-weight: 900; color: rgba(255,255,255,0.1); }
.qcp-career-row { display: flex; align-items: flex-start; gap: 5px; }
.qcp-cclub { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qcp-cclub-name { font-size: 0.42rem; font-weight: 700; color: var(--text-muted); text-align: center; max-width: 42px; line-height: 1.2; }
.qcp-cclub-years { font-size: 0.38rem; color: rgba(255,255,255,0.28); font-weight: 600; }
.qcp-cbadge { width: 38px; height: 38px; border-radius: 7px; border: 1px solid var(--border); flex-shrink: 0; }
.qcp-cbadge--1 { background: linear-gradient(135deg, #004d98 50%, #a50044 50%); }
.qcp-cbadge--2 { background: linear-gradient(135deg, #003a70 50%, #ee0023 50%); }
.qcp-cbadge--3 { background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: rgba(255,255,255,0.18); font-weight: 800; }
.qcp-carr-arrow { font-size: 0.65rem; color: var(--text-muted); margin-top: 11px; flex-shrink: 0; }

/* ── Guess the Badge ──────────────────────── */
.qcp--badge { background: linear-gradient(155deg, #0f0e20, #1a1535); }
.qcp-badge-glow { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(100,80,220,0.5) 0%, rgba(60,40,140,0.2) 60%, transparent 80%); display: flex; align-items: center; justify-content: center; position: relative; }
.qcp-badge-inner { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, rgba(120,60,200,0.6), rgba(200,80,80,0.4), rgba(80,180,80,0.3)); filter: blur(8px); }
.qcp-badge-zoom { position: absolute; bottom: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-card2); border: 1.5px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); }

/* ── Guess the XI ─────────────────────────── */
.qcp--eleven {
  background: #0e1525;
  padding: 0;
}
.qcp-xi-row { display: flex; justify-content: center; gap: 6px; }
.qcp-xi-dot { width: 20px; height: 14px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.qcp-xi-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Commentary Quiz ──────────────────────── */
.qcp--commentary { background: linear-gradient(155deg, #0a0d16, #0d1220); flex-direction: column; gap: 10px; }
.qcp-play { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--green); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 0.9rem; }
.qcp-wave { display: flex; align-items: center; gap: 2.5px; height: 40px; }
.qcp-wb { width: 4px; border-radius: 3px; background: var(--green); opacity: 0.6; }

/* ── Guess the Player ─────────────────────── */
.qcp--player { background: linear-gradient(155deg, #0e1525, #14101e); }
.qcp-player-frame { width: 88px; height: 100px; border-radius: 10px; background: var(--bg-card); border: 2px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.qcp-player-sil { color: rgba(255,255,255,0.08); }
.qcp-player-q { position: absolute; font-size: 2.6rem; font-weight: 900; color: rgba(255,255,255,0.12); }

/* ── Quote Quiz ───────────────────────────── */
.qcp--quote { background: linear-gradient(155deg, #0e1525, #1a1428); flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 7px; }
.qcp-qmark { font-size: 3rem; font-weight: 900; color: var(--green); line-height: 0.75; opacity: 0.4; }
.qcp-quote-text { font-size: 0.58rem; color: var(--text); font-style: italic; line-height: 1.45; font-weight: 600; }
.qcp-name-opts { display: flex; gap: 5px; flex-wrap: wrap; }
.qcp-name-opt { font-size: 0.53rem; padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--text-muted); font-weight: 700; }

/* ── Top 10 ───────────────────────────────── */
.qcp--topten { background: linear-gradient(155deg, #0e1525, #111d28); flex-direction: column; align-items: stretch; padding: 10px 14px; gap: 0; justify-content: center; }
.qcp-tt-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.qcp-tt-row:last-child { border-bottom: none; }
.qcp-tt-rank { font-size: 0.58rem; font-weight: 800; color: var(--text-muted); width: 12px; text-align: right; flex-shrink: 0; }
.qcp-tt-flag { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.qcp-tt-flag img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.qcp-tt-bar { flex: 1; height: 7px; border-radius: 3px; }
.qcp-tt-bar--found { background: rgba(0,200,83,0.4); }
.qcp-tt-bar--hidden { background: rgba(255,255,255,0.07); }

/* ── World Cup 2026 ───────────────────────── */
.qcp--wc2026 { background: linear-gradient(155deg, #071428, #071e10); flex-direction: column; gap: 5px; }
.qcp-wc-year { font-size: 2.4rem; font-weight: 900; letter-spacing: -2px; background: linear-gradient(130deg, #fff 20%, var(--green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.qcp-wc-hosts { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; }
.qcp-wc-flags { display: flex; gap: 7px; }
.qcp-wc-flags img { width: 28px; height: 18px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(255,255,255,0.12); }

/* ── World Cup History ────────────────────── */
.qcp--wchistory { background: linear-gradient(155deg, #1c1200, #0e0e00); flex-direction: column; gap: 5px; }
.qcp-trophy-icon { font-size: 2.6rem; line-height: 1; }
.qcp-wch-sub { font-size: 0.6rem; font-weight: 700; color: rgba(255,190,40,0.6); letter-spacing: 0.5px; }
.qcp-wch-pills { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 180px; }
.qcp-wch-pill { font-size: 0.5rem; font-weight: 800; padding: 2px 6px; border-radius: 3px; background: rgba(255,170,0,0.14); color: rgba(255,180,40,0.75); }

/* ─── Difficulty Selector ──────────────────────────────────── */
.diff-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 20px 0 10px;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.diff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--bg-card2);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  font-family: var(--font);
}
.diff-card--easy   { border-color: rgba(0,200,83,0.5); }
.diff-card--medium { border-color: rgba(255,180,0,0.5); }
.diff-card--hard   { border-color: rgba(220,50,50,0.5); }
.diff-card:disabled { opacity: 0.4; cursor: not-allowed; }
.diff-card--easy:hover:not(:disabled)   { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,200,83,0.2); }
.diff-card--medium:hover:not(:disabled) { border-color: #ffb400; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,180,0,0.2); }
.diff-card--hard:hover:not(:disabled)   { border-color: #e03232; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,50,50,0.2); }
.diff-label { font-size: 0.9rem; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 5px; }
.diff-lock-icon { width: 13px; height: 13px; flex-shrink: 0; }
.diff-card--easy   .diff-label { color: var(--green); }
.diff-card--medium .diff-label { color: #ffb400; }
.diff-card--hard   .diff-label { color: #e03232; }
.diff-desc  { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-align: center; line-height: 1.3; }

/* ─── Quiz Page Layout ─────────────────────────────────────── */
.quiz-page { display: flex; flex-direction: column; min-height: 100dvh; }

.quiz-wrap {
  flex: 1;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ─── Quiz Intro ───────────────────────────────────────────── */
.quiz-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.quiz-intro .big-icon { font-size: 3.5rem; margin-bottom: 12px; }
.quiz-intro h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.quiz-intro p { color: var(--text-muted); font-size: 0.95rem; max-width: 440px; margin: 0 auto 24px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn--primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 4px 20px rgba(0,200,83,0.3);
}
.btn--primary:hover  { background: #00e060; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,200,83,0.4); }
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover { background: var(--bg-card2); border-color: var(--green-dark); }

.btn--full { width: 100%; }

/* ─── Progress Bar ─────────────────────────────────────────── */
.progress-bar-wrap {
  margin-bottom: 20px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.progress-track {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ─── Question Card ────────────────────────────────────────── */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.question-text {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.option-btn {
  width: 100%;
  text-align: left;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  gap: 12px;
}
.option-btn:hover:not(:disabled) {
  border-color: var(--green-dark);
  background: rgba(0,200,83,0.06);
}
.option-btn .option-letter {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.option-btn.correct {
  border-color: var(--green);
  background: rgba(0,200,83,0.14);
  color: var(--green);
}
.option-btn.correct .option-letter { background: var(--green); color: #000; }

.option-btn.wrong {
  border-color: #f44336;
  background: rgba(244,67,54,0.1);
  color: #f44336;
}
.option-btn.wrong .option-letter { background: #f44336; color: #fff; }

.option-btn:disabled { cursor: default; }

/* ─── Answer Feedback ──────────────────────────────────────── */
.feedback-bar {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.feedback-bar.show { display: flex; align-items: center; gap: 8px; }
.feedback-bar.correct { background: rgba(0,200,83,0.14); color: var(--green); }
.feedback-bar.wrong   { background: rgba(244,67,54,0.1);  color: #f44336; }

.next-btn-wrap { margin-top: 18px; }

/* ─── Score Screen ─────────────────────────────────────────── */
.score-screen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}
.score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--pct, 0%), var(--bg-card2) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}
.score-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--bg-card);
}
.score-ring-inner {
  position: relative;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.score-screen h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.score-screen .score-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.score-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ─── Career Path: Intro rules ─────────────────────────────── */
.intro-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 300px;
  margin: 0 auto 28px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.intro-rules li { display: flex; align-items: center; gap: 10px; }
.rule-pts {
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  font-size: 0.85rem;
}
.rule-pts--zero { color: var(--text-muted); }

/* ─── Career Path: Quiz layout ─────────────────────────────── */
.career-score-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0,200,83,0.12);
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 99px;
}

.cq-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cq-counter {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Mystery Card ─────────────────────────────────────────── */
.mystery-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.mystery-card {
  width: 140px;
  height: 190px;
  background: linear-gradient(160deg, #1c2130 0%, #141820 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.mystery-card--correct {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(0,200,83,0.3);
}
.mystery-card--wrong {
  border-color: #f44336;
  box-shadow: 0 8px 32px rgba(244,67,54,0.25);
}
.mystery-card--skip {
  border-color: rgba(255,255,255,0.2);
}

/* Unknown (pre-guess) state */
.mystery-unknown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mystery-q-mark {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  line-height: 1;
}

/* Revealed state — fills the card */
.mystery-revealed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: fadeReveal 0.4s ease;
}
@keyframes fadeReveal {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.mystery-photo {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top center;
  display: none;
}

.mystery-name-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  /* no photo: centred over the whole card */
  position: absolute;
  inset: 0;
  justify-content: center;
  padding: 10px;
}
/* photo loaded: pin to bottom as caption strip */
.mystery-revealed.has-photo .mystery-name-overlay {
  position: static;
  inset: unset;
  flex-shrink: 0;
  justify-content: flex-start;
  padding: 5px 6px 8px;
  background: rgba(0,0,0,0.72);
}

.mystery-initials {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.mystery-revealed.has-photo .mystery-initials { display: none; }
.mystery-nationality { font-size: 1.5rem; line-height: 1; }
.mystery-player-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.mystery-card--correct .mystery-player-name { color: var(--green); }
.mystery-card--wrong   .mystery-player-name { color: #f97070; }

/* ─── Club Path ────────────────────────────────────────────── */
.club-path-outer {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px 20px;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.club-path-outer::-webkit-scrollbar { display: none; }

.club-path-track {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  padding: 2px 16px;
  margin: 0 auto;
}

.club-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 28px;
  opacity: 0.5;
}

.club-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 82px;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.club-badge-card--hidden { opacity: 0.35; }
.club-badge-card--active .club-badge-img-wrap {
  box-shadow: 0 0 0 2px var(--green), 0 4px 16px rgba(0,200,83,0.25);
}

.club-badge-img-wrap {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 0.25s ease;
}
.club-badge-img-wrap--mystery {
  background: var(--bg-card2);
  border: 1.5px dashed var(--border);
}

.club-badge-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.club-badge-abbrev {
  font-size: 0.85rem;
  font-weight: 900;
  color: #333;
  letter-spacing: -0.5px;
}
.club-badge-img-wrap--mystery .club-badge-abbrev { color: var(--text-muted); }

.club-mystery-q {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.4;
}

.club-badge-name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  max-width: 80px;
  word-break: break-word;
}
.club-badge-name--hidden { color: var(--text-muted); opacity: 0.4; }

.club-badge-year {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}
.club-badge-year--hidden { opacity: 0.3; }

/* ─── Clue Dots ────────────────────────────────────────────── */
.clue-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
.clue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s ease, transform 0.25s ease;
}
.clue-dot--filled {
  background: var(--green);
  transform: scale(1.15);
}

/* ─── Points available ─────────────────────────────────────── */
.pts-available {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 1.2em;
}
.pts-available strong { color: var(--green); }

/* ─── Guess row ────────────────────────────────────────────── */
.guess-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.guess-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.guess-input:focus  { border-color: var(--green-dark); }
.guess-input:disabled { opacity: 0.5; }
.guess-input::placeholder { color: var(--text-muted); font-weight: 400; }

/* ─── Secondary actions ────────────────────────────────────── */
.secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.secondary-sep { color: var(--text-muted); font-size: 0.8rem; }

.secondary-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 2px;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.secondary-btn:hover:not(:disabled) { color: var(--text); }
.secondary-btn:disabled { opacity: 0.3; cursor: default; }
.secondary-btn--danger:hover:not(:disabled) { color: #f44336; }

/* ─── Result banner ────────────────────────────────────────── */
.cp-result-banner {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
  animation: fadeReveal 0.3s ease;
}
.cp-result-banner--correct { background: rgba(0,200,83,0.14); color: var(--green); }
.cp-result-banner--wrong   { background: rgba(244,67,54,0.1);  color: #f44336; }
.cp-result-banner--skip    { background: rgba(255,255,255,0.05); color: var(--text-muted); }

/* ─── Header profile chip ──────────────────────────────────── */
.header-profile {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px 10px 4px 6px;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.header-profile:hover { border-color: var(--green-dark); color: var(--text); }
.chip-avatar { font-size: 1rem; line-height: 1; }
.chip-name   { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Profile page — app-style layout ─────────────────────── */
.profile-body {
  background: var(--bg);
  min-height: 100dvh;
}

.pf-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pf-back {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.pf-back:hover { color: var(--green); }
.pf-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text);
  pointer-events: none;
}
.pf-gear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-gear:hover { color: var(--text); }

.pf-scroll {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 60px;
}

/* Setup card */
.pf-setup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 20px;
  text-align: center;
}
.pf-setup-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  transition: background 0.3s ease;
}
.pf-setup-title { font-size: 1.4rem; font-weight: 900; }
.pf-setup-sub   { font-size: 0.875rem; color: var(--text-muted); max-width: 300px; }

.pf-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.pf-input:focus { border-color: var(--green-dark); }
.pf-input::placeholder { color: var(--text-muted); font-weight: 400; }

/* User card */
.pf-user-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.pf-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.pf-user-info { flex: 1; min-width: 0; }
.pf-user-name {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-user-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.pf-signout-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-signout-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

.pf-transfer-link {
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px 14px;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
.pf-transfer-link:hover { text-decoration: underline; }

/* Section labels */
.pf-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #4a5068;
  margin: 20px 0 8px 4px;
}

/* List card rows */
.pf-list-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.pf-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-list-row:hover { background: rgba(255,255,255,0.03); }
.pf-list-row--static { cursor: default; }
.pf-list-row--static:hover { background: none; }
.pf-list-row--noborder { border-bottom: none; }
.pf-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.pf-row-icon--green { background: #1a3a27; color: var(--green); }
.pf-row-icon--dark  { background: #1a1f2a; color: #8899aa; }
.pf-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-row-title { font-size: 0.9rem; font-weight: 700; }
.pf-row-sub   { font-size: 0.75rem; color: var(--text-muted); }
.pf-row-arrow { color: var(--text-muted); font-size: 1.2rem; font-weight: 300; }

/* Edit panel */
.pf-edit-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.pf-edit-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* Stats banner */
.pf-stats-banner {
  background: linear-gradient(135deg, #0d2a18 0%, #0a1f12 100%);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: 14px;
  margin: 20px 0 0;
  overflow: hidden;
}
.pf-stats-banner-inner { padding: 16px; }
.pf-stats-banner-label {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 12px;
}
.pf-stats-banner-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.pf-stats-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.pf-stats-pill-num {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.pf-stats-pill-lbl {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-align: center;
}
.pf-stats-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Games hub */
.pf-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pf-game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-game-card:hover { background: var(--bg-card2); border-color: rgba(255,255,255,0.12); }
.pf-game-icon { font-size: 1.6rem; }
.pf-game-name { font-size: 0.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.pf-game-detail { font-size: 0.72rem; color: var(--text-muted); }

/* Recent results */
.pf-result-score { font-size: 0.85rem; font-weight: 800; color: var(--green); }

/* Danger row */
.pf-plus-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 24px;
  border-radius: 14px;
  background: #1a1400;
  border: 1px solid #3a2a00;
  padding: 18px 20px;
}
.pf-plus-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pf-plus-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #c9960a;
  letter-spacing: 0.5px;
}
.pf-plus-sub {
  font-size: 0.75rem;
  color: #7a6020;
}
.pf-plus-btn {
  background: #c9960a;
  color: #1a1000;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-plus-btn:hover { background: #e0aa10; }

.pf-danger-row { text-align: center; padding: 32px 0 12px; }
.pf-danger-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-danger-btn:hover { color: #f44336; }

.pf-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 40px;
}
.pf-footer-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  transition: color var(--transition);
}
.pf-footer-link:hover { color: var(--text-muted); }
.pf-footer-sep { font-size: 0.75rem; color: #333; }

/* ── Guess the Badge ─────────────────────────────────────────── */
.gtb-badge-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0 20px;
}
.gtb-badge-frame {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gtb-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.gtb-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #aaa;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 6px;
}

/* ── Guess the XI ────────────────────────────────────────────── */
.gte-pitch-wrap {
  max-width: 100%;
  margin: 16px auto 0;
}
.gte-pitch {
  background-color: #2d7d2d;
  background-image: url('../images/pitch-bg.png');
  background-size: 100% 100%;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
  min-height: 400px;
  justify-content: space-around;
}
.gte-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.gte-player {
  width: 50px;
  height: 62px;
  flex-shrink: 0;
  perspective: 300px;
  position: relative;
  overflow: visible;
}

/* ── Flip card ─────────────────────────────────────────────── */
.gte-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.gte-card-inner.flipped {
  transform: rotateY(180deg);
}
.gte-card-front,
.gte-card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
}
.gte-card-front {
  background: rgba(8, 13, 28, 0.88);
  border: 1.5px solid rgba(255,255,255,0.14);
}
.gte-card-back {
  transform: rotateY(180deg);
  background: #0d1020;
  border: 2px solid rgba(0, 200, 83, 0.7);
  padding: 0;
  overflow: hidden;
}

/* Player face photo on card back — silhouette shows when photo hasn't loaded */
.gte-card-back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Ccircle cx='50' cy='32' r='20' fill='rgba(255,255,255,0.13)'/%3E%3Cellipse cx='50' cy='96' rx='30' ry='32' fill='rgba(255,255,255,0.13)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
}
.gte-player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
  border-radius: 6px;
}
.gte-player-photo.loaded { display: block; }

/* Fallback pos badge shown when no photo loads */
.gte-card-back .gte-pos {
  font-size: 0.55rem;
  opacity: 0.7;
}

/* Name label — sits below the flip card, outside the 3D context */
.gte-player-name {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.72);
  padding: 2px 5px;
  border-radius: 4px;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gte-player-name.visible {
  opacity: 1;
}
.gte-flag {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
}
.gte-pos {
  font-size: 0.52rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.7);
  letter-spacing: 0.4px;
  line-height: 1;
}
.gte-club-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-card2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.gte-club-badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.gte-club-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.gte-input-wrap {
  max-width: 420px;
  margin: 16px auto 0;
}

/* Export modal */
.pf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.pf-modal {
  background: #161a22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px 20px 16px 16px;
  padding: 24px 20px 20px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pf-modal-title { font-size: 1.1rem; font-weight: 900; }
.pf-modal-sub   { font-size: 0.82rem; color: var(--text-muted); }
.pf-modal-code {
  background: #0d0f14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  resize: none;
  height: 80px;
  width: 100%;
}
.pf-modal-close {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  padding: 4px;
}
.pf-privacy-modal {
  background: #161c1a;
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: min(360px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.pf-privacy-shield {
  margin-bottom: 18px;
}
.pf-privacy-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text);
  margin: 0 0 20px;
  text-align: center;
}
.pf-privacy-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
  margin-bottom: 28px;
}
.pf-privacy-body strong { color: var(--text); font-weight: 700; }
.pf-privacy-got-it {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: #2ecc40;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.pf-privacy-got-it:hover { background: #27ae35; }

/* ── Commentary Quiz ─────────────────────────────────────────── */
.cmq-player-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 24px 0 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cmq-player-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cmq-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  user-select: none;
}
.cmq-play-btn:hover  { transform: scale(1.07); background: var(--green-dark); }
.cmq-play-btn:active { background: var(--green-dark); transform: scale(0.97); outline: none; }
.cmq-play-btn:focus  { outline: none; }
.cmq-play-btn.playing {
  background: var(--green-dark);
  animation: cmq-pulse 1.6s ease-in-out infinite;
}
@keyframes cmq-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0.55); }
  60%       { box-shadow: 0 0 0 18px rgba(0,200,83,0); }
}
.cmq-play-icon {
  transform: translateX(2px);
  line-height: 1;
  display: block;
  pointer-events: none;
}
.cmq-play-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  padding-left: 4px;
}
.cmq-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmq-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.cmq-progress-track:hover { background: rgba(255,255,255,0.18); }
.cmq-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 3px;
  pointer-events: none;
}
.cmq-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
  white-space: nowrap;
}
.cmq-prompt {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ── Quote Quiz ──────────────────────────────────────────────── */
.qq-quote-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 24px 20px;
  margin: 16px 0 20px;
  position: relative;
}
.qq-open-mark,
.qq-close-mark {
  display: block;
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--green);
  font-family: Georgia, serif;
  opacity: 0.7;
}
.qq-close-mark {
  text-align: right;
  margin-top: 10px;
  line-height: 0;
}
.qq-quote-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  text-align: center;
  margin: 8px 0 4px;
}

/* ── Guess the Player ────────────────────────────────────────── */
.gtp-wrap {
  max-width: 460px;
  margin: 16px auto 24px;
}
.gtp-img-container {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  background: #111519;
  border-radius: 12px;
  overflow: hidden;
}
.gtp-moment-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Small oval that blurs only the player's face */
.gtp-face-blur {
  position: absolute;
  border-radius: 50%;
  /* backdrop-filter blurs whatever the image shows behind this element */
  backdrop-filter: blur(22px) brightness(0.92);
  -webkit-backdrop-filter: blur(22px) brightness(0.92);
  /* Soft feathered edge so it blends naturally into the photo */
  box-shadow: 0 0 18px 14px rgba(13,15,20,0.55);
  z-index: 1;
  pointer-events: none;
}
/* Transition only on the way OUT (reveal), so it snaps on instantly for each new question */
.gtp-face-blur.revealed {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ─── Top Ten — List Select ─────────────────────────────────── */
.tt-ls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 560px) {
  .tt-ls-grid { grid-template-columns: repeat(2, 1fr); }
}
.tt-ls-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  cursor: pointer;
  text-align: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.tt-ls-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-glow);
  opacity: 0;
  transition: opacity var(--transition);
}
.tt-ls-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,200,83,0.12);
}
.tt-ls-card:hover::before { opacity: 1; }
.tt-ls-card--done {
  border-color: rgba(0,200,83,0.35);
}
.tt-ls-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}
.tt-ls-pts {
  align-self: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(0,200,83,0.12);
  border-radius: 20px;
  padding: 2px 10px;
}
.tt-ls-arrow {
  display: none;
}
.tt-ls-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

/* ─── Top Ten ───────────────────────────────────────────────── */
.tt-header {
  text-align: center;
  margin: 4px 0 12px;
}
.tt-prompt {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.tt-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tt-found-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.tt-found-count {
  color: var(--green);
  font-weight: 700;
}

/* Table */
.tt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tt-row {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s ease;
}
.tt-row:last-child {
  border-bottom: none;
}
.tt-row--found {
  background: rgba(0, 200, 83, 0.07);
}
.tt-row td {
  padding: 6px 8px;
  vertical-align: middle;
  text-align: left;
}

/* Rank */
.tt-rank-cell {
  width: 26px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-left: 10px !important;
}

/* Flag */
.tt-flag-cell {
  width: 40px;
}
.tt-flag {
  width: 32px;
  height: auto;
  border-radius: 3px;
  display: block;
}

/* Name */
.tt-name-cell {
  font-size: 0.85rem;
}
.tt-placeholder {
  color: rgba(255,255,255,0.2);
  font-style: italic;
  letter-spacing: 1px;
}
.tt-found-name {
  font-weight: 700;
  color: var(--green);
}
.tt-revealed-name {
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* Input shake on wrong */
@keyframes tt-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.guess-input.tt-error {
  border-color: #e53935;
  animation: tt-shake 0.35s ease;
}

/* ─── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 400px) {
  .quiz-intro { padding: 24px 16px; }
  .question-card { padding: 18px 14px; }
  .score-screen { padding: 28px 16px; }
  .tt-found-name { font-size: 0.78rem; }
}

/* ─── Bottom Navigation ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13,15,20,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  height: 58px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a:hover,
.bottom-nav a.active { color: var(--green); }
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.header-profile { display: none; }
body.has-bottom-nav main,
body.has-bottom-nav .pf-scroll { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
body.has-bottom-nav .site-footer { display: none; }

/* Desktop: compact floating pill */
@media (min-width: 700px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 400px;
    height: 50px;
    bottom: 20px;
    border-top: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    padding-bottom: 0;
  }
  .bottom-nav a { gap: 3px; font-size: 0.55rem; }
  .nav-icon { width: 18px; height: 18px; }
  body.has-bottom-nav main,
  body.has-bottom-nav .pf-scroll { padding-bottom: 90px; }
}

/* ─── Home: Sections ───────────────────────────────────────── */
.home-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  margin-bottom: 28px;
}
.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.home-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.home-section-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  transition: opacity var(--transition);
}
.home-section-link:hover { opacity: 0.75; }
.home-coming-soon { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding: 0 4px; margin: 0; opacity: 0.5; }
.unlock-msg { font-size: 0.9rem; font-weight: 700; color: var(--green); background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.3); border-radius: var(--radius-sm); padding: 10px 16px; margin: 8px 0 0; text-align: center; }

/* ─── Quiz card badge (HOT / NEW) ──────────────────────────── */
.quiz-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 1;
}
.quiz-badge--hot { background: rgba(255,80,0,0.18); color: #ff6b35; }
.quiz-badge--new { background: rgba(0,200,83,0.18); color: var(--green); }

/* ─── Home: 1v1 CTA card ───────────────────────────────────── */
.v1-home-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #0d1f38 0%, #0a1e12 100%);
  border: 1px solid rgba(0,200,83,0.22);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.v1-home-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,200,83,0.12), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.v1-home-cta:hover { border-color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,200,83,0.15); }
.v1-home-cta:hover::before { opacity: 1; }
.v1-home-cta-icon { font-size: 2.4rem; flex-shrink: 0; }
.v1-home-cta-body { flex: 1; }
.v1-home-cta-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.v1-home-cta-sub { font-size: 0.85rem; color: var(--text-muted); }
.v1-home-cta-arrow { color: var(--green); font-size: 1.4rem; transition: transform var(--transition); }
.v1-home-cta:hover .v1-home-cta-arrow { transform: translateX(4px); }

/* ─── 1v1 Mode Select ──────────────────────────────────────── */
.v1-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 400px;
  margin: 28px auto 0;
}
.v1-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 14px 22px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  font-family: var(--font);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.v1-mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--green-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.v1-mode-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,200,83,0.12);
}
.v1-mode-card:hover::before { opacity: 1; }
.v1-mode-card--soon {
  opacity: 0.55;
  cursor: default;
}
.v1-mode-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.v1-mode-card--soon:hover::before { opacity: 0; }
.v1-mode-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
}
.v1-mode-icon svg { width: 100%; height: 100%; }
.v1-mode-card--soon .v1-mode-icon { color: var(--text-muted); }
.v1-mode-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.v1-mode-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.v1-mode-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
}
/* Coming Soon features list */
.v1-soon-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px auto 28px;
  max-width: 340px;
  text-align: left;
}
.v1-soon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── 1v1 Page ─────────────────────────────────────────────── */
.v1-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 80px;
  overflow-x: hidden;
}
.v1-player-intro-card {
  text-align: center;
  padding: 40px 20px;
}
.v1-player-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin: 0 auto 20px;
}
.v1-player-badge--p1 { background: rgba(77,159,255,0.2); color: #4d9fff; border: 2px solid rgba(77,159,255,0.4); }
.v1-player-badge--p2 { background: rgba(0,200,83,0.2); color: var(--green); border: 2px solid rgba(0,200,83,0.4); }
.v1-player-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.v1-player-label--p1 { background: rgba(77,159,255,0.15); color: #4d9fff; }
.v1-player-label--p2 { background: rgba(0,200,83,0.15); color: var(--green); }
/* Quiz topbar reuse */
.v1-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 8px;
}
/* Answer options */
.v1-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.v1-option-btn {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.v1-option-btn:hover:not(:disabled) {
  border-color: var(--green-dark);
  background: rgba(0,200,83,0.06);
}
.v1-option-btn--correct {
  border-color: var(--green) !important;
  background: rgba(0,200,83,0.15) !important;
  color: var(--green) !important;
  font-weight: 700;
}
.v1-option-btn--wrong {
  border-color: #e53935 !important;
  background: rgba(229,57,53,0.1) !important;
  color: #e57373 !important;
}
/* Handover screen */
.v1-handover {
  text-align: center;
  padding: 36px 20px;
}
.v1-handover-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.v1-handover-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v1-ho-num { font-size: 3rem; font-weight: 900; color: var(--green); line-height: 1; }
.v1-ho-name { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.v1-vs { font-size: 1rem; font-weight: 900; color: var(--text-muted); }
/* Results screen */
.v1-results-header { text-align: center; margin-bottom: 24px; }
.v1-scores-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}
.v1-score-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v1-score-card--p1 { border-color: rgba(77,159,255,0.3); }
.v1-score-card--p2 { border-color: rgba(0,200,83,0.3); }
.v1-score-card--winner { box-shadow: 0 0 0 2px var(--green); background: rgba(0,200,83,0.06); }
.v1-score-num { font-size: 2.8rem; font-weight: 900; line-height: 1; }
.v1-score-card--p1 .v1-score-num { color: #4d9fff; }
.v1-score-card--p2 .v1-score-num { color: var(--green); }
.v1-score-name { font-size: 0.88rem; font-weight: 700; color: var(--text-muted); }
.v1-winner-msg {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--text);
}

/* ── Daily Quiz preview card (quizzes.html) ──────────────────── */
.qcp--daily {
  background: linear-gradient(145deg, #091828 0%, #091e10 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.qcp-daily-inner { text-align: center; }
.qcp-daily-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green);
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: 20px;
  padding: 2px 7px;
  margin-bottom: 5px;
}
.qcp-daily-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.qcp-daily-sub {
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   DAILY QUIZ – Home card
   ════════════════════════════════════════════════════════════ */
.dq-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #0e1a2e 0%, #091420 60%, #0a1d10 100%);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  gap: 16px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.dq-home-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0,200,83,0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.dq-home-card:hover {
  border-color: rgba(0,200,83,0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,200,83,0.14);
}
.dq-home-card:hover::before { opacity: 1; }

.dq-home-card-left { flex: 1; min-width: 0; }
.dq-home-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green);
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: 20px;
  padding: 2px 9px;
  margin-bottom: 6px;
}
.dq-home-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.dq-home-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.dq-home-meta { margin-top: 10px; }
.dq-home-status {
  font-size: 0.82rem;
  font-weight: 800;
}
.dq-home-status--available { color: var(--green); }
.dq-home-status--done { color: var(--text-muted); }

.dq-home-right { flex-shrink: 0; }
.dq-home-progress-ring {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dq-home-progress-ring svg {
  width: 56px;
  height: 56px;
  position: absolute;
  top: 0;
  left: 0;
  transition: stroke-dashoffset 0.8s ease;
}
#dq-ring-circle { transition: stroke-dashoffset 0.8s ease; }
.dq-home-ring-score {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   DAILY QUIZ – Quiz page (daily-quiz.html)
   ════════════════════════════════════════════════════════════ */

/* Intro */
.dq-daily-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green);
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.dq-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.dq-rule {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.dq-rule-icon { font-size: 1.1rem; }

.dq-scoring-key {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
}
.dq-score-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}
.dq-score-tier span { font-weight: 600; color: var(--text-muted); font-size: 0.75rem; }
.dq-score-tier--1 { background: rgba(0,200,83,0.07); color: #00c853; border: 1px solid rgba(0,200,83,0.2); }
.dq-score-tier--2 { background: rgba(255,180,0,0.07); color: #ffb400; border: 1px solid rgba(255,180,0,0.2); }
.dq-score-tier--3 { background: rgba(255,100,0,0.07); color: #ff6400; border: 1px solid rgba(255,100,0,0.2); }
.dq-score-tier--4 { background: rgba(220,50,50,0.07); color: #e03232; border: 1px solid rgba(220,50,50,0.2); }

.dq-already-played {
  background: var(--bg-card2);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 16px;
}
.dq-ap-title { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.dq-ap-score { font-size: 1.4rem; font-weight: 900; color: var(--green); }
.dq-ap-next  { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.dq-ap-countdown { font-size: 1.2rem; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; margin-top: 4px; }

.dq-start-btn { width: 100%; margin-bottom: 10px; font-size: 1rem; }
.dq-lb-link   { display: block; text-align: center; }

/* Progress bar */
.dq-topbar { margin-bottom: 20px; }
.dq-progress-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.dq-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.35s ease;
  width: 0%;
}
.dq-topbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dq-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
}
.dq-tier-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 20px;
}
.dq-tier-badge.tier-easy   { background: rgba(0,200,83,0.12);   color: #00c853; }
.dq-tier-badge.tier-medium { background: rgba(255,180,0,0.12);  color: #ffb400; }
.dq-tier-badge.tier-hard   { background: rgba(255,100,0,0.12);  color: #ff6400; }
.dq-tier-badge.tier-expert { background: rgba(220,50,50,0.12);  color: #e03232; }

/* Question card */
.dq-question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.dq-q-type {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.dq-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

/* Quote block */
.dq-quote-block {
  margin-top: 14px;
  border-left: 3px solid var(--green);
  padding-left: 14px;
  position: relative;
}
.dq-quote-mark {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  opacity: 0.25;
  line-height: 0.6;
  position: absolute;
  top: 0;
  left: 8px;
}
.dq-quote-text {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  padding-left: 16px;
}

/* Options */
.dq-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.dq-option {
  width: 100%;
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.1s;
}
.dq-option:hover:not(:disabled) {
  border-color: var(--green-dark);
  background: rgba(0,200,83,0.06);
  transform: translateX(3px);
}
.dq-option--correct {
  background: rgba(0,200,83,0.14);
  border-color: var(--green);
  color: #00ff6a;
}
.dq-option--wrong {
  background: rgba(220,50,50,0.12);
  border-color: #e03232;
  color: #ff6a6a;
}

/* Result banner — daily quiz uses the global .cp-result-banner--correct / --wrong */

/* Badge image in daily quiz */
.dq-q-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.dq-q-badge-frame {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  background: #0e0e20;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.dq-q-badge-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.6s ease, transform-origin 0.6s ease;
}
.dq-q-badge-hint {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 20px;
  pointer-events: none;
}
.dq-q-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
}

/* Player photo in daily quiz */
.dq-q-player-wrap {
  margin: 0 -20px 16px;
  height: 240px;
  overflow: hidden;
  background: #0e0e14;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dq-q-player-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s ease;
}

/* 1v1 XI pitch — scrollable within the card so width stays consistent */
#v1-xi-wrap .gte-pitch-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#v1-xi-wrap .gte-pitch {
  min-width: 320px;
}

/* Player facts question */
.dq-facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.dq-fact-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* Career path in daily quiz uses .mystery-wrap / .club-path-outer
   from the career-path game — no extra CSS needed here. */

/* Score breakdown */
.dq-breakdown {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}
.dq-bd-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 12px 16px 8px;
}
.dq-bd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.dq-bd-tier {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 20px;
  flex-shrink: 0;
  width: 68px;
  text-align: center;
}
.dq-bd-tier.tier-easy   { background: rgba(0,200,83,0.1);   color: #00c853; }
.dq-bd-tier.tier-medium { background: rgba(255,180,0,0.1);  color: #ffb400; }
.dq-bd-tier.tier-hard   { background: rgba(255,100,0,0.1);  color: #ff6400; }
.dq-bd-tier.tier-expert { background: rgba(220,50,50,0.1);  color: #e03232; }
.dq-bd-result { flex: 1; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.dq-bd-pts    { font-size: 0.9rem; font-weight: 800; color: var(--green); }

/* Leaderboard section */
.dq-lb-section { margin-top: 32px; }
.dq-lb-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.dq-lb-tab {
  background: var(--bg-card2);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.dq-lb-tab:hover { border-color: var(--green-dark); color: var(--text); }
.dq-lb-tab--active {
  background: rgba(0,200,83,0.1);
  border-color: rgba(0,200,83,0.4);
  color: var(--green);
}
.dq-lb-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 20px 0;
  text-align: center;
}
.dq-lb-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.dq-lb-row--top { border-color: rgba(0,200,83,0.2); background: rgba(0,200,83,0.04); }
.dq-lb-rank {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}
.dq-lb-name  { font-size: 0.88rem; font-weight: 800; color: var(--text); grid-column: 2; grid-row: 1; }
.dq-lb-date  { font-size: 0.7rem; color: var(--text-muted); grid-column: 2; grid-row: 2; }
.dq-lb-score {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--green);
  grid-column: 3;
  grid-row: 1 / 3;
  text-align: right;
  white-space: nowrap;
}
.dq-lb-score small { font-size: 0.65rem; font-weight: 600; color: var(--text-muted); }
.dq-lb-bar-wrap {
  grid-column: 1 / 5;
  grid-row: 3;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}
.dq-lb-bar { height: 100%; background: var(--green); border-radius: 99px; opacity: 0.5; transition: width 0.5s ease; }

.dq-final-header { text-align: center; margin-bottom: 20px; }
.dq-final-header .score-ring { margin: 12px auto 16px; }

