/* ==========================================================================
   Shared site shell styles
   Every page loads this file. Games add their own <style> for the board.
   ========================================================================== */

:root {
  --bg: #f5f2ec;
  --bg-2: #ece7de;
  --surface: #ffffff;
  --surface-2: #f8f6f2;
  --text: #1c232b;
  --muted: #5d6670;
  --line: #ddd6ca;
  --accent: #23735f;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe8;
  --warm: #c4512f;
  --gold: #d79a1e;
  --danger: #b83a2e;
  --shadow: 0 1px 2px rgba(30, 25, 15, .06), 0 4px 14px rgba(30, 25, 15, .07);
  --shadow-lg: 0 10px 40px rgba(20, 15, 5, .22);
  --radius: 14px;
  --radius-sm: 9px;
  --felt-1: #2f7a59;
  --felt-2: #1f5a41;
  --header-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161b;
    --bg-2: #171d23;
    --surface: #1b2229;
    --surface-2: #222a32;
    --text: #e7ebee;
    --muted: #9aa5af;
    --line: #2e3842;
    --accent: #4fb596;
    --accent-ink: #08140f;
    --accent-soft: #1d3a31;
    --warm: #e2774f;
    --gold: #e6b345;
    --danger: #e0645a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --felt-1: #255f47;
    --felt-2: #173f2f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161b;
  --bg-2: #171d23;
  --surface: #1b2229;
  --surface-2: #222a32;
  --text: #e7ebee;
  --muted: #9aa5af;
  --line: #2e3842;
  --accent: #4fb596;
  --accent-ink: #08140f;
  --accent-soft: #1d3a31;
  --warm: #e2774f;
  --gold: #e6b345;
  --danger: #e0645a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --felt-1: #255f47;
  --felt-2: #173f2f;
  color-scheme: dark;
}

/* Table color choices (Settings > Table color) */
:root[data-felt="blue"]     { --felt-1: #2b5f8a; --felt-2: #1c4263; }
:root[data-felt="burgundy"] { --felt-1: #7c2e3a; --felt-2: #561e28; }
:root[data-felt="slate"]    { --felt-1: #4a5866; --felt-2: #323d48; }
:root[data-felt="sand"]     { --felt-1: #b58a55; --felt-2: #8d6a3e; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
img, svg { display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before { transition: none !important; animation: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand-mark { width: 32px; height: 32px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--bg-2); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.header-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.streak-chip {
  display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14px;
  padding: 5px 10px; border-radius: 999px; background: var(--bg-2); color: var(--text);
  text-decoration: none;
}
.streak-chip svg { width: 16px; height: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }

/* Small phones: keep the full name, the streak and all header buttons on one line */
@media (max-width: 430px) {
  .site-header .inner { gap: 8px; padding: 0 10px; }
  .brand { gap: 6px; font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-tools { gap: 2px; }
  .icon-btn { width: 34px; height: 34px; }
  .icon-btn svg { width: 20px; height: 20px; }
  .streak-chip { padding: 4px 7px; font-size: 13px; gap: 3px; }
}
@media (max-width: 345px) { .brand { font-size: 14px; } .brand-mark { width: 22px; height: 22px; } }
@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .brand small { display: none; }
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; margin: 0;
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav a { padding: 12px; font-size: 16px; }
}

/* ---------- Layout ---------- */
.page { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px 40px; }
.content { max-width: 760px; }
.content p, .content li { color: var(--muted); }
.content h2 { margin-top: 1.4em; font-size: 22px; }
.content h3 { margin-top: 1.2em; font-size: 17px; }

/* ---------- Ad slots ----------
   Reserved space so ads never push the game around when they load.
   Placeholders show while ADS.enabled is false (see site.js). */
.ad-slot { display: flex; align-items: center; justify-content: center; margin: 12px auto; overflow: hidden; }
.ad-slot.placeholder {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px 11px);
}
.ad-top { width: 728px; max-width: 100%; height: 90px; }
.ad-side { width: 300px; height: 250px; margin: 0 0 16px; }
.ad-bottom { width: 728px; max-width: 100%; height: 90px; margin-top: 28px; }
@media (max-width: 760px) {
  .ad-top, .ad-bottom { width: 320px; height: 50px; }
}
.ads-off .ad-slot { display: none; }

/* ---------- Buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 650; font-size: 15px;
  cursor: pointer; text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--line) 50%, var(--muted)); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 14px; }

.seg {
  display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px;
}
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-weight: 650; font-size: 14px; color: var(--muted); min-height: 32px;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

select.select {
  font: inherit; font-weight: 600; font-size: 14px; padding: 7px 30px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 38px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}

/* ---------- Game page frame ---------- */
@media (max-width: 600px) {
  .toolbar { gap: 6px; }
  .toolbar .btn:not(.primary):has(svg) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .toolbar .btn:not(.primary):has(svg) { padding: 8px 11px; }
  .game-head h1 { font-size: 22px; }
  .stat-pill { padding: 4px 10px; font-size: 13px; }
}
.game-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start;
}
@media (max-width: 1060px) { .game-layout { grid-template-columns: minmax(0, 1fr); } .game-side { display: none; } }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.game-head h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.game-head .tagline { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.status-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums; font-family: var(--font-num);
}
.stat-pill .lbl { color: var(--muted); font-weight: 600; font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.toolbar .spacer { flex: 1; }
.game-stage { position: relative; }
.felt {
  background: radial-gradient(ellipse at 50% 20%, var(--felt-1), var(--felt-2));
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), var(--shadow);
}

.side-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px;
}
.side-box h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-grid div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.stat-grid b { display: block; font-size: 20px; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.stat-grid span { font-size: 13px; color: var(--muted); }
.more-games { display: grid; gap: 6px; }
.more-games a {
  display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-weight: 600;
}
.more-games a:hover { background: var(--bg-2); }
.more-games .mini-icon { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }

/* ---------- Home page ---------- */
.hero { padding: 28px 0 8px; display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -.03em; margin: 0 0 8px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 560px; }
.daily-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 8px;
}
.daily-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform .15s;
}
.daily-card:hover { transform: translateY(-2px); }
.daily-card .mini-icon { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.daily-card b { display: block; }
.daily-card span { font-size: 13px; color: var(--muted); }
.daily-card .done { color: var(--accent); font-weight: 700; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 12px; }
.section-title h2 { font-size: 22px; margin: 0; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 16px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.game-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.game-card .art { aspect-ratio: 16 / 10; display: block; }
.game-card .art svg { width: 100%; height: 100%; }
.game-card .info { padding: 12px 14px 14px; }
.game-card h3 { font-size: 18px; margin: 0 0 2px; }
.game-card p { margin: 0; color: var(--muted); font-size: 14px; }
.game-card .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.game-card .best { font-size: 13px; color: var(--accent); font-weight: 650; margin-top: 6px; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: 24px 16px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Modal & toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 14, 18, .5); z-index: 200;
  display: grid; place-items: center; padding: 16px; animation: fadeIn .15s;
}
.modal {
  background: var(--surface); color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg);
  width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; animation: pop .18s;
}
.modal h2 { font-size: 22px; margin: 0 0 6px; }
.modal p { color: var(--muted); margin: 0 0 12px; }
.modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal .big-result { font-size: 40px; text-align: center; margin: 6px 0 2px; }
.modal .result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 4px; }
.modal .result-grid div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.modal .result-grid b { display: block; font-size: 20px; font-family: var(--font-num); }
.modal .result-grid span { font-size: 12px; color: var(--muted); }
.modal .new-best { text-align: center; color: var(--gold); font-weight: 800; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setting-row:first-of-type { border-top: 0; }
.setting-row label { font-weight: 600; }
.setting-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.swatches { display: flex; gap: 6px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }

.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); animation: toastIn .2s; text-align: center;
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 250; }

/* ---------- Stats page ---------- */
.stats-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stats-table th, .stats-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.stats-table th { background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stats-table td.num { font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.table-wrap { overflow-x: auto; }

/* ---------- Favorites ---------- */
.game-card { position: relative; }
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1;
  background: rgba(20, 20, 30, .55); color: #fff; backdrop-filter: blur(2px); transition: transform .12s, background .12s;
}
.fav-btn:hover { transform: scale(1.08); background: rgba(20, 20, 30, .72); }
.fav-btn[aria-pressed="true"] { color: #ffc93c; background: rgba(20, 20, 30, .7); }
.fav-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid-head { grid-column: 1 / -1; font-size: 18px; margin: 10px 0 -4px; display: flex; align-items: center; gap: 8px; }
.grid-head:first-child { margin-top: 0; }
.grid-head small { color: var(--muted); font-weight: 600; font-size: 14px; }
.fav-mark { margin-left: auto; color: #e0a800; font-size: 16px; }
.more-all { display: block; margin-top: 10px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 6px 8px; }
.more-all:hover { text-decoration: underline; }

/* ---------- Quick game on the home page ---------- */
.quick-game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.quick-game iframe { display: block; width: 100%; height: clamp(480px, 78vh, 700px); border: 0; border-radius: calc(var(--radius) - 4px); background: transparent; }
.quick-head { display: flex; gap: 10px; align-items: center; }
.quick-head a { font-weight: 700; color: var(--accent); text-decoration: none; font-size: 15px; }
:root.embed .site-header, :root.embed .site-footer, :root.embed #site-footer, :root.embed .ad-slot, :root.embed .game-side, :root.embed .content, :root.embed .game-head h1, :root.embed .game-head .tagline, :root.embed .sol-foot { display: none !important; }
@media (max-width: 600px) { .quick-game iframe { height: clamp(420px, 64vh, 560px); } }
:root.embed body { background: transparent; min-height: 0; }
:root.embed .page { padding: 8px 8px 8px; max-width: none; }
:root.embed .game-layout { display: block; }
:root.embed .game-head { margin-top: 0; }

/* ---------- Larger text and buttons (Settings) ---------- */
:root.big-ui body { font-size: 18px; }
:root.big-ui .btn { min-height: 50px; padding: 10px 20px; font-size: 18px; }
:root.big-ui .btn svg { width: 22px; height: 22px; }
:root.big-ui .seg button { min-height: 46px; font-size: 17px; padding: 8px 16px; }
:root.big-ui .select { min-height: 50px; font-size: 17px; }
:root.big-ui .stat-pill { font-size: 18px; padding: 8px 14px; }
:root.big-ui .stat-pill .lbl { font-size: 14px; }
:root.big-ui .game-card h3 { font-size: 21px; }
:root.big-ui .game-card p { font-size: 16.5px; }
:root.big-ui .tag { font-size: 13.5px; padding: 3px 10px; }
:root.big-ui .game-card .best { font-size: 15px; }
:root.big-ui .content { font-size: 19px; }
:root.big-ui .content h2 { font-size: 30px; }
:root.big-ui .more-games a { font-size: 17px; }
:root.big-ui .more-games .mini-icon { width: 48px; height: 48px; }
:root.big-ui .stat-grid b { font-size: 26px; }
:root.big-ui .stat-grid span, :root.big-ui .stat-pill .lbl, :root.big-ui .stats-table th { font-size: 14px; }
:root.big-ui .site-header a, :root.big-ui .site-header button { font-size: 17px; }
:root.big-ui .sol-foot, :root.big-ui .daily-card span, :root.big-ui .setting-row small { font-size: 15.5px; }
:root.big-ui .fav-btn { width: 48px; height: 48px; font-size: 26px; }
:root.big-ui .modal { font-size: 18px; }

/* ---------- Instructions with More games beside them ---------- */
[hidden] { display: none !important; }
.below-game { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.below-game .content { max-width: 760px; }
.below-game #more-games { margin-top: 24px; position: sticky; top: 76px; }
@media (max-width: 1060px) { .below-game { grid-template-columns: minmax(0, 1fr); } .below-game #more-games { position: static; margin-top: 0; } }
