/* ── PuzzlHaus — UI v2 ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;700&display=swap');

/* ── Font tokens ─────────────────────────────────────────────────── */
:root {
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius:       10px;
}

/* ── 3-theme system: soft (default) | dark | pretty ─────────────── */
:root, :root[data-theme="soft"] {
  --bg:        #F6F4EE;
  --bg2:       #FFFFFF;
  --bg3:       #ECE8DF;
  --text:      #14202E;
  --muted:     #4A5568;
  --accent:    #0D6E6D;
  --accent-fg: #FFFFFF;
  --accent2:   #E89B1C;
  --accent3:   #B23A6E;
  --border:    #D6D2C8;
  --success:   #2E8B6E;
  --error:     #C44A22;
  --shadow:    0 1px 3px rgba(20,32,46,0.08);
  /* Legacy aliases so older inline styles keep working */
  --green:     #2E8B6E;
  --red:       #C44A22;
  --yellow:    #E89B1C;
  --tile:      #FFFFFF;
}
:root[data-theme="dark"] {
  --bg:        #0D1117;
  --bg2:       #1A1F26;
  --bg3:       #252B33;
  --text:      #F0F0F0;
  --muted:     #BFC7D2;
  --accent:    #FFD23F;
  --accent-fg: #14202E;
  --accent2:   #6FE0B4;
  --accent3:   #FF7AA8;
  --border:    #313842;
  --success:   #6FE0B4;
  --error:     #FF8866;
  --shadow:    0 1px 3px rgba(0,0,0,0.45);
  --green:     #6FE0B4;
  --red:       #FF8866;
  --yellow:    #FFD23F;
  --tile:      #1A1F26;
}
:root[data-theme="pretty"] {
  --bg:        #FFF4F2;
  --bg2:       #FFFFFF;
  --bg3:       #FCE3DC;
  --text:      #2A1230;
  --muted:     #5F4B5A;
  --accent:    #B23A6E;
  --accent-fg: #FFFFFF;
  --accent2:   #D9712C;
  --accent3:   #6D4A86;
  --border:    #F4D3CD;
  --success:   #4A8E72;
  --error:     #A6303E;
  --shadow:    0 1px 3px rgba(42,18,48,0.08);
  --green:     #4A8E72;
  --red:       #A6303E;
  --yellow:    #D9712C;
  --tile:      #FFFFFF;
}

/* ── Per-site palette overrides (loaded after the default theme) ── */
/* PuzzlHaus — deep indigo + amber gold (modern arcade) */
body[data-site="puzzlhaus"][data-theme="soft"]   { --accent: #3F4FB8; --accent-fg: #FFFFFF; --accent2: #F5A623; --accent3: #18A999; }
body[data-site="puzzlhaus"][data-theme="dark"]   { --accent: #7C8FE3; --accent-fg: #0D1117; --accent2: #F5A623; --accent3: #4DD4C0; }
body[data-site="puzzlhaus"][data-theme="pretty"] { --accent: #6E4FA8; --accent-fg: #FFFFFF; --accent2: #E89B1C; --accent3: #C9789A; }

/* Bibledle — deep sapphire + gold (scripture) */
body[data-site="bibledle"][data-theme="soft"]   { --accent: #1D3A8A; --accent-fg: #FFFFFF; --accent2: #D4A24A; --accent3: #7C2D4F; }
body[data-site="bibledle"][data-theme="dark"]   { --accent: #D4A24A; --accent-fg: #0D1117; --accent2: #6FB6D9; --accent3: #E07856; }
body[data-site="bibledle"][data-theme="pretty"] { --accent: #7C2D4F; --accent-fg: #FFFFFF; --accent2: #D4A24A; --accent3: #6D4A86; }

/* FieldWordle — field green + scoreboard orange */
body[data-site="fieldwords"][data-theme="soft"]   { --accent: #2F7D3B; --accent-fg: #FFFFFF; --accent2: #E8702A; --accent3: #1B4D89; }
body[data-site="fieldwords"][data-theme="dark"]   { --accent: #6FE08A; --accent-fg: #0D1117; --accent2: #FF9A3C; --accent3: #6FB6D9; }
body[data-site="fieldwords"][data-theme="pretty"] { --accent: #C9444A; --accent-fg: #FFFFFF; --accent2: #E8702A; --accent3: #1B4D89; }

/* Letras y Palabras — terracotta + sky (Spanish warmth) */
body[data-site="letrasypalabras"][data-theme="soft"]   { --accent: #C44A22; --accent-fg: #FFFFFF; --accent2: #E8B14A; --accent3: #2B6A8E; }
body[data-site="letrasypalabras"][data-theme="dark"]   { --accent: #FF9A6E; --accent-fg: #0D1117; --accent2: #FFD23F; --accent3: #6FB6D9; }
body[data-site="letrasypalabras"][data-theme="pretty"] { --accent: #B23A6E; --accent-fg: #FFFFFF; --accent2: #E89B1C; --accent3: #6D4A86; }

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, a, [role="button"] { touch-action: manipulation; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; max-width: 100vw; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas, iframe, video { max-width: 100%; height: auto; }
* { min-width: 0; }

/* ── Theme toggle ────────────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--bg3); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 140px;
  display: none;
  z-index: 100;
}
.theme-menu[data-open="true"] { display: block; }
.theme-menu button {
  display: flex; align-items: center;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.theme-menu button:hover { background: var(--bg3); }
.theme-menu button[aria-current="true"] { background: var(--bg3); font-weight: 700; }
.theme-menu .swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid var(--border);
}

/* ── Skip to content ─────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--text); }

.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a, .header-nav button {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}
.header-nav a:hover, .header-nav button:hover {
  border-color: var(--border);
  background: var(--bg3);
}
.header-nav .btn-pro {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  font-weight: 700;
}
.header-nav .btn-pro:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Layout ──────────────────────────────────────────────────────── */
.main-content { max-width: 880px; margin: 0 auto; padding: 24px 18px; }
.page-wide    { max-width: 1180px; margin: 0 auto; padding: 24px 18px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 48px 18px 32px;
  position: relative;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 14px;
  color: var(--text);
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}
.hero-tagline { font-weight: 700; color: var(--accent) !important; }

/* ── Game card grid ──────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.game-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card:hover::before { transform: scaleX(1); }
.game-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-card-emoji { font-size: 28px; line-height: 1; }
.game-card-title { font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.game-card-desc  { font-size: 13px; color: var(--muted); line-height: 1.45; }
.game-card-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-fg);
  width: fit-content;
  letter-spacing: 1px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  letter-spacing: 0.1px;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary  { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn-primary:hover  { filter: brightness(0.92); }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover  { border-color: var(--accent); color: var(--accent); }
.btn-danger   { background: var(--error); color: #fff; border-color: var(--error); }

/* ── Game header (compact) ───────────────────────────────────── */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.game-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  line-height: 1.1;
}
.game-date {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.game-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.game-actions .btn-sm { padding: 6px 12px; font-size: 12.5px; }
.game-actions .btn-outline[aria-label="How to play"] {
  width: 32px; height: 32px; padding: 0;
  font-size: 16px; font-weight: 800;
  border-radius: 50%;
  line-height: 1;
}
.game-header > div:first-child { min-width: 0; flex: 1 1 auto; }
.game-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Endless mode widget ─────────────────────────────────────── */
.endless-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.endless-widget .endless-pts {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.endless-widget .endless-best, .endless-widget .endless-streak {
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 10px;
}
.endless-toast {
  position: fixed;
  top: 80px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--accent);
  color: var(--accent-fg);
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
  z-index: 9700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-width: 92vw;
  text-align: center;
}
.endless-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#play-another-btn {
  margin-top: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.1s, filter 0.15s;
}
#play-another-btn:hover { filter: brightness(0.92); transform: translateY(-1px); }
#play-another-btn:active { transform: translateY(0); }

/* Sport pills (fieldwordle only) */
.sport-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.sport-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 13px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.sport-pill:hover, .sport-pill.active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

.nav-leaderboard { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.nav-leaderboard .icon { font-size: 14px; line-height: 1; }
.nav-leaderboard .label { font-size: 12.5px; }
.btn-sm       { padding: 7px 14px; font-size: 13px; }
.btn-full     { width: 100%; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-input::placeholder { color: var(--muted); opacity: 0.7; }
.form-error { color: var(--error); font-size: 13px; }

/* ── Card / Box ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid;
  margin-bottom: 14px;
}
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: var(--success); color: var(--success); }
.alert-error   { background: color-mix(in srgb, var(--error) 12%, transparent); border-color: var(--error); color: var(--error); }
.alert-info    { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); color: var(--accent); }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 20px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
  background: var(--bg2);
}
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--accent); }
.site-footer .footer-links { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; font-weight: 500; }
.site-footer .footer-meta  { font-size: 12px; opacity: 0.85; }

/* ── Cookie consent ──────────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 9000;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.3s;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}
#cookie-banner.dismissed { transform: translateY(110%); }
#cookie-banner p { font-size: 13px; color: var(--text); max-width: 620px; }
#cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  max-width: 440px;
  width: min(92vw, 440px);
  max-height: min(88vh, 600px);
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: var(--text); letter-spacing: -0.3px; }
.modal p, .modal li { color: var(--text); font-size: 14.5px; line-height: 1.55; }
.modal ul { padding-left: 18px; margin: 10px 0; }
.modal li { margin-bottom: 6px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg3); border: none;
  color: var(--text); font-size: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent); color: #fff; }

/* ── Tabs ────────────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Stats grid ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.stat-num  { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--accent); }
.stat-lbl  { font-size: 11.5px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

/* ── Pro badge ───────────────────────────────────────────────────── */
.pro-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: var(--accent-fg);
  font-size: 10.5px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
}

/* ── Ad container ────────────────────────────────────────────────── */
.ad-container { margin: 20px 0; min-height: 90px; text-align: center; }
.is-pro .ad-container { display: none; }

/* ── Display font for headings ───────────────────────────────────── */
.logo, .hero h1, h1, h2 { font-family: var(--font-display); }
h2 { font-weight: 800; letter-spacing: -0.4px; }

/* ── Toast ───────────────────────────────────────────────────────── */
#wl-toast, .toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#wl-toast.show, .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .site-header { padding: 0 10px; height: 48px; }
  .logo { font-size: 16px; }
  .main-content, .page-wide { padding: 10px 10px; }
  .hero { padding: 28px 12px 20px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 38px); letter-spacing: -0.6px; }
  .hero p { font-size: 15px; }
  .games-grid { grid-template-columns: 1fr; gap: 10px; }
  .game-card { padding: 14px; }
  .game-card-title { font-size: 16px; }
  .game-card-emoji { font-size: 24px; }
  .header-nav { gap: 3px; }
  .header-nav a, .header-nav button { padding: 5px 8px; font-size: 12px; }
  /* Hide leaderboard label on small phones, keep trophy emoji */
  .nav-leaderboard .label { display: none; }
  .nav-leaderboard { padding: 6px 8px; }
  /* Hide "Theme" word, keep swatch */
  .theme-toggle { padding: 5px 8px; gap: 0; }
  .theme-toggle::after { content: ''; }
  .theme-toggle-label { display: none; }
  /* Compact auth area on mobile */
  #header-auth a, #header-auth button { padding: 5px 9px; font-size: 11.5px; }
  /* Tighter game header on mobile — one line */
  .game-header { margin-bottom: 8px; padding-bottom: 8px; gap: 8px; }
  .game-title { font-size: 18px; }
  .game-date { font-size: 11px; }
  .game-actions { gap: 4px; }
  .game-actions .btn-sm { padding: 5px 9px; font-size: 11px; }
  .game-actions .btn-outline[aria-label="How to play"] { width: 30px; height: 30px; font-size: 15px; }
  /* On mobile, hide "All games" label — footer has all games anyway */
  .game-actions a[href="/"] { display: none; }
  /* Sport pills denser on mobile */
  .sport-nav { padding: 6px 8px; gap: 5px; }
  .sport-pill { padding: 4px 10px; font-size: 11.5px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 12px; }
  .site-footer { padding: 18px 14px 24px; margin-top: 24px; }
  .site-footer .footer-links { gap: 10px; font-size: 12px; }
  .modal { padding: 22px 18px; }
  .modal h2 { font-size: 19px; }
}

/* ── Focus visible ───────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
