/* /css/core.css */
/* Brain Brunch: shared styles for every page. Light theme by default, dark via [data-theme="dark"] on <html>. */
:root {
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-2: #EEF1F7;
  --line: #D9DFEA;
  --text: #14213A;
  --muted: #55627A;
  --accent: #F5C542;
  --accent-ink: #14213A;
  --select: #2D5BD0;
  --board: #2D5BD0;
  --hole: #F7F5EF;
  --red: #E5484D;
  --yellow: #F5C542;
  --ok: #1B8A5E;
  --warn: #B4540A;
  --shadow: 0 1px 2px rgba(20, 33, 58, .06), 0 8px 24px rgba(20, 33, 58, .07);
  --radius: 18px;
  --display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1B2D;
  --surface: #182A44;
  --surface-2: #132238;
  --line: #2A4064;
  --text: #F4F1E8;
  --muted: #A9B6CC;
  --select: #F5C542;
  --hole: #0F1B2D;
  --ok: #4FD1A5;
  --warn: #F5A15B;
  --shadow: none;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
a:hover { color: var(--select); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
p { margin: 0; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--select); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--select); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; }
.logo:hover { color: inherit; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-weight: 500; }
.nav a { text-decoration: none; padding: 8px 0; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--select); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); background: #F0B92A; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.btn-outline:hover { color: var(--text); background: var(--surface-2); }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--line); border-radius: 12px; }
.btn-quiet:hover { color: var(--text); border-color: var(--select); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--body); font-size: 16px; font-weight: 700; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; }
.hero .lead { color: var(--muted); font-size: 19px; max-width: 540px; }
.hero-art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section > h2 { font-size: 32px; font-weight: 800; margin-bottom: 22px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 26px; }
.feature-art { flex: 0 0 168px; height: 144px; border-radius: 14px; background: var(--board); display: flex; align-items: center; justify-content: center; }
.feature-body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.soon { border-style: dashed; box-shadow: none; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.soon h3 { font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step-num { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--select); margin-bottom: 6px; }
.step h3 { font-family: var(--body); font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; color: var(--muted); font-size: 14px; }
.ad-slot { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; min-height: 90px; }
.ad-slot.box { min-height: 250px; }
.page-head { padding-top: 40px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.page-head h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 24px 0 30px; max-width: 100%; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 19px; margin-bottom: 12px; padding: 0; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .box {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 18px; border-radius: 16px; background: var(--surface);
  border: 2px solid var(--line); transition: border-color .15s ease;
}
.choice:hover .box { border-color: var(--muted); }
.choice input:checked + .box { border-color: var(--select); background: var(--surface-2); box-shadow: 0 0 0 1px var(--select); }
.choice input:focus-visible + .box { outline: 3px solid var(--select); outline-offset: 2px; }
.choice .name { font-family: var(--display); font-size: 22px; font-weight: 800; }
.choice .desc { color: var(--muted); font-size: 14px; }
.pips { display: flex; gap: 4px; margin-bottom: 6px; }
.pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pips i.on { background: var(--select); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill .box { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 600; }
.option-groups { display: flex; flex-wrap: wrap; gap: 0 40px; }
.field { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.field label { font-weight: 700; }
.input {
  min-height: 50px; padding: 0 16px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
.input:focus { border-color: var(--select); outline: none; }
.code-input { text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 24px; }
.lobby-grid .card { display: flex; flex-direction: column; gap: 14px; }
.lobby-grid h2 { font-size: 26px; }
.form-error { color: var(--warn); font-weight: 600; min-height: 1.5em; }
@keyframes drop {
  0%   { transform: translateY(var(--fall, -300%)); animation-timing-function: cubic-bezier(.5, 0, 1, 1); }
  62%  { transform: translateY(0); animation-timing-function: ease-out; }
  76%  { transform: translateY(-14%); animation-timing-function: ease-in; }
  88%  { transform: translateY(0); animation-timing-function: ease-out; }
  94%  { transform: translateY(-4%); animation-timing-function: ease-in; }
  100% { transform: translateY(0); }
}
@keyframes winpulse { 50% { transform: scale(.88); } }
@keyframes pulse { 50% { transform: scale(.9); } }
@keyframes shake { 0%, 100% { translate: 0; } 20% { translate: -9px 0; } 40% { translate: 8px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--select); }
#sound-toggle .icon-off { display: none; }
#sound-toggle[aria-pressed="false"] .icon-on { display: none; }
#sound-toggle[aria-pressed="false"] .icon-off { display: block; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.play-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; }
.play-head h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); }
.dot.wait { background: var(--accent); }
.play-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 18px; padding-bottom: 48px; }
.play-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.play-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.status { font-size: 20px; font-weight: 700; text-align: center; min-height: 1.5em; }
.status[data-tone="good"] { color: var(--ok); }
.status[data-tone="bad"] { color: var(--warn); }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid transparent; position: relative; }
.player.active { border-color: var(--select); background: var(--surface-2); }
.player .pname { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .pmeta { margin-left: auto; color: var(--muted); font-size: 14px; white-space: nowrap; }
.reaction {
  position: absolute; right: 10px; top: -14px; padding: 4px 10px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.reaction.show { opacity: 1; transform: none; }
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-grid .btn { padding: 0 10px; }
.score-row { display: flex; justify-content: space-between; gap: 10px; }
.share-code {
  align-self: flex-start; padding: 4px 0; border: 0; background: transparent; color: var(--text);
  font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: .14em; cursor: pointer;
}
.share-code:hover { color: var(--select); }
.share-code:focus-visible { outline: 3px solid var(--select); outline-offset: 4px; border-radius: 4px; }
.share-link { width: 100%; font-size: 14px; }
.share-preview { align-self: stretch; max-width: 560px; margin: 4px auto 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; text-align: left; white-space: pre-wrap; word-break: break-word; }
.qr-toggle { align-self: flex-start; padding: 2px 0; border: 0; background: transparent; color: var(--select); font: inherit; font-weight: 700; cursor: pointer; }
.qr-toggle:hover { text-decoration: underline; }
.qr-toggle:focus-visible { outline: 3px solid var(--select); outline-offset: 4px; border-radius: 4px; }
.qr-panel { text-align: center; padding: 14px; border-radius: 14px; background: #fff; color: #153c2f; }
.qr-panel svg { display: block; width: min(100%, 220px); height: auto; margin: 0 auto 8px; }
.react-row { display: flex; flex-wrap: wrap; gap: 8px; }
.react-row .btn { min-height: 44px; padding: 0 14px; font-weight: 500; }
.notice { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 40px 20px; }
body:not(.mode-cpu) .only-cpu { display: none !important; }
body:not(.mode-online) .only-online { display: none !important; }
:root { --match-bg: #1B8A5E; --match-ink: #FFFFFF; --rail: #C9A46A; }
:root[data-theme="dark"] { --match-bg: #4FD1A5; --match-ink: #0F1B2D; --rail: #8C6E45; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); }
.ladder-page { max-width: 600px; padding-bottom: 40px; }
.ladder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 24px; }
.ladder-head h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; }
.ladder-head h1 .muted { font-weight: 600; }
.archive-note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ladder-goal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 14px; font-size: 18px; }
.rung-tag { position: absolute; right: calc(100% + 30px); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
@keyframes tilepop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes goalpop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-4deg); } 100% { transform: none; } }
.ladder-msg { text-align: center; min-height: 1.6em; font-weight: 600; margin: 4px 0; }
.ladder-msg[data-tone="bad"] { color: var(--warn); }
.ladder-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ladder-controls .btn { min-height: 44px; padding: 0 16px; }
.keyboard { display: flex; flex-direction: column; gap: 6px; user-select: none; -webkit-user-select: none; }
.kb-row { display: flex; justify-content: center; gap: 5px; }
.key {
  flex: 1 1 0; max-width: 46px; min-width: 0; height: 52px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; padding: 0;
  box-shadow: 0 2px 0 var(--line); touch-action: manipulation;
}
.key:hover { border-color: var(--select); }
.key:active { transform: translateY(1px); }
.key.dead { opacity: .35; }
.key.goal-letter:not(.dead) { background: var(--match-bg); color: var(--match-ink); border-color: var(--match-bg); }
.result { margin-top: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.result h2 { font-size: 28px; font-weight: 800; }
dialog { border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--surface); color: var(--text); width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(10, 18, 32, .55); }
.dialog-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.dialog-body h2 { font-size: 26px; font-weight: 800; }
.dialog-body h3 { font-family: var(--body); font-size: 16px; }
.dialog-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dialog-body .btn { align-self: flex-start; }
.example { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--display); font-weight: 800; letter-spacing: .08em; }
.example span { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.example b { color: var(--match-bg); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.stat-grid div { display: flex; flex-direction: column; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.stat-grid strong { font-family: var(--display); font-size: 30px; }
.stat-grid span { font-size: 13px; color: var(--muted); }
.dist-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.dist-bar { display: block; }
.dist-fill { display: block; min-width: 24px; padding: 2px 8px; border-radius: 6px; background: var(--select); color: var(--surface); font-weight: 700; text-align: right; font-size: 13px; }
:root[data-theme="dark"] .dist-fill { color: #0F1B2D; }
.archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 40px; }
.archive-item { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.archive-item:hover { border-color: var(--select); color: inherit; }
.archive-item strong { font-family: var(--display); font-size: 20px; }
.archive-item .state { font-size: 13px; font-weight: 700; }
.archive-item .state.done { color: var(--ok); }
.daily-card { display: flex; flex-direction: column; gap: 14px; }
.daily-words { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .1em; }
.daily-words .w { padding: 6px 12px; border-radius: 10px; background: var(--surface-2); border: 2px solid var(--line); }
.prose { max-width: 720px; padding-top: 32px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: 40px; font-weight: 800; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 22px; }
.prose pre { white-space: pre-wrap; font-size: 13px; background: var(--surface-2); padding: 14px; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 520px) {
  .rung-tag { display: none; }
}
.game-page { max-width: 640px; padding-bottom: 40px; }
.game-page.wide { max-width: 920px; }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 24px; margin-bottom: 14px; }
.game-head h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 800; }
.game-head h1 .muted { font-weight: 600; }
.game-head .eyebrow { margin-bottom: 2px; }
.loading { text-align: center; padding: 48px 0; }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.timer { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.game-msg { text-align: center; min-height: 1.6em; font-weight: 600; margin: 8px 0; }
.game-msg[data-tone="bad"] { color: var(--warn); }
.game-msg[data-tone="good"] { color: var(--ok); }
.score-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
#r-extra:empty { display: none; }
@keyframes wave { 50% { transform: scale(.82); background: var(--match-bg); color: var(--match-ink); } }
:root[data-theme="dark"] #ng-notes[aria-pressed="true"] { color: #0F1B2D; }
.seg-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-btn[aria-pressed="true"] .sw.fill { background: var(--accent-ink); }
@media (max-width: 640px) {
  .site-header .wrap { gap: 6px 12px; padding-top: 10px; padding-bottom: 8px; }
  .site-header .nav { display: contents; }
  .site-header .theme-toggle { order: 1; margin-left: auto; }
  .site-header .nav::before { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .site-header .nav a { order: 3; padding: 6px 0; margin-right: 14px; font-size: 15px; }
}
.key.wide { max-width: 64px; flex-grow: 1.5; }
.hub-hero { padding-top: 48px; padding-bottom: 24px; }
.hub-hero-text { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.hub-hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.hub-hero .lead { color: var(--muted); font-size: 19px; }
.hub-progress { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.hub-bar { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.hub-bar span { display: block; height: 100%; width: 0; background: var(--match-bg); border-radius: 999px; transition: width .6s ease; }
.hub-progress p { font-weight: 700; }
.hub-section { padding-top: 32px; padding-bottom: 8px; scroll-margin-top: 12px; }
.hub-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.hub-section-head h2 { font-size: 28px; font-weight: 800; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hub-card { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .12s ease, border-color .12s ease; }
.hub-card:hover { transform: translateY(-2px); border-color: var(--select); color: var(--text); }
.hub-card.is-done { background: var(--surface-2); }
.hub-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--select) 14%, var(--surface)); color: var(--select); }
.hub-icon svg { width: 40px; height: 40px; }
.hub-icon.hub-quad { background: transparent; }
.hub-icon.hub-quad svg { width: 52px; height: 52px; }
.hub-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-name { font-family: var(--display); font-size: 21px; font-weight: 800; }
.hub-blurb { color: var(--muted); font-size: 15px; }
.hub-status { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--select); }
.hub-status.done { color: var(--ok); }
.archive-tabs { flex-wrap: wrap; border-radius: 18px; }
:root {
  --tile-top: linear-gradient(180deg, #FFFFFF 0%, #F2F4FA 100%);
  --tile-edge: #C7CFDF;
  --tile-ink: #14213A;
  --tray: linear-gradient(160deg, #3B69DD 0%, #2650C4 55%, #1E43AA 100%);
  --tray-edge: #17368A;
  --slot: #E9EDF6;
  --glow-a: rgba(45, 91, 208, .16);
  --glow-b: rgba(245, 197, 66, .22);
  --glow-c: rgba(229, 72, 77, .10);
  --lift: 0 2px 0 var(--tile-edge), 0 6px 14px rgba(20, 33, 58, .10);
}
:root[data-theme="dark"] {
  --tile-top: linear-gradient(180deg, #2A4268 0%, #1F3456 100%);
  --tile-edge: #0B1729;
  --tile-ink: #F4F1E8;
  --tray: linear-gradient(160deg, #2C56C9 0%, #1F45A8 55%, #183886 100%);
  --tray-edge: #0E2460;
  --slot: #13233D;
  --glow-a: rgba(79, 129, 255, .20);
  --glow-b: rgba(245, 197, 66, .10);
  --glow-c: rgba(229, 72, 77, .08);
  --lift: 0 2px 0 var(--tile-edge), 0 8px 18px rgba(0, 0, 0, .35);
}
.site-header { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.card { box-shadow: var(--lift); }
.btn-primary { box-shadow: 0 3px 0 #C99A14, 0 8px 16px rgba(245, 197, 66, .25); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #C99A14; }
.btn-quiet { background: var(--tile-top); box-shadow: 0 2px 0 var(--tile-edge); }
.btn-quiet:active { transform: translateY(2px); box-shadow: none; }
.tilt-stage { perspective: 1100px; }
.tilt-board, .tilt-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .35s ease-out; will-change: transform; }
.tilt-card { position: relative; overflow: hidden; }
.tilt-card::after { /* glossy light that follows the pointer */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: var(--go, .6); transition: opacity .3s;
}
.flip-in { animation: flipin .55s cubic-bezier(.2, .9, .3, 1.15) both; }
@keyframes flipin { from { transform: perspective(900px) rotateY(-70deg) translateZ(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.jump { animation: jump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jump { 30% { transform: translateY(-14px) rotateX(10deg); } 60% { transform: translateY(2px); } }
.key { background: var(--tile-top); color: var(--tile-ink); border: 0; box-shadow: 0 3px 0 var(--tile-edge), 0 5px 10px rgba(20, 33, 58, .10); border-radius: 10px; transition: transform .06s, box-shadow .06s; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 var(--tile-edge); }
.key.goal-letter:not(.dead) { box-shadow: 0 3px 0 #116343, 0 5px 10px rgba(27, 138, 94, .3); }
:root[data-theme="dark"] .tile.match { background: linear-gradient(180deg, #6DE0B8, #3FC495); color: #0F1B2D; box-shadow: 0 4px 0 #1F8F67, 0 8px 16px rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .ng-cell.given { background: linear-gradient(180deg, #344E78, #2A4166); }
:root[data-theme="dark"] .ng-cell.peer { background: color-mix(in srgb, var(--select) 14%, #22385A); }
:root[data-theme="dark"] .ng-cell.same { background: color-mix(in srgb, var(--select) 26%, #22385A); }
:root[data-theme="dark"] .cw-cell.word { background: color-mix(in srgb, var(--select) 30%, #22385A); }
:root[data-theme="dark"] .pl-cell.on { background: linear-gradient(180deg, #F6D06A, #E2AE2A); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.hub-card { border: 0; box-shadow: var(--lift); }
.hub-card:hover { transform: translateY(-4px); }
.hub-icon { background: linear-gradient(160deg, #4B78EA, #2449B3); color: #fff; box-shadow: 0 3px 0 #17368A, 0 8px 16px rgba(45, 91, 208, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hub-icon.hub-mischief, .hub-icon.hub-ninegrid { background: linear-gradient(160deg, #F6C94B, #E09E16); color: #3A2600; box-shadow: 0 3px 0 #A86F05, 0 8px 16px rgba(224, 158, 22, .3), inset 0 1px 0 rgba(255, 255, 255, .4); }
.hub-icon.hub-riddle, .hub-icon.hub-logicgrid, .hub-icon.hub-picture, .hub-icon.hub-next { background: linear-gradient(160deg, #F07178, #D6363D); box-shadow: 0 3px 0 #8E1F23, 0 8px 16px rgba(214, 54, 61, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hub-icon.hub-quad { background: transparent; box-shadow: none; }
.hub-card.is-done .hub-icon { filter: saturate(.6); }
.badge-shelf { display: flex; flex-wrap: wrap; gap: 12px; }
.medal { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.medal .coin {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #FFF4C4, #F5C542 45%, #C99A14 100%);
  box-shadow: 0 4px 0 #9C7408, 0 10px 18px rgba(201, 154, 20, .35), inset 0 -4px 6px rgba(0, 0, 0, .15);
}
.medal.silver .coin { background: radial-gradient(circle at 35% 30%, #FFFFFF, #CFD7E6 45%, #93A0B8 100%); box-shadow: 0 4px 0 #6C7A94, 0 10px 18px rgba(108, 122, 148, .3); }
.medal.bronze .coin { background: radial-gradient(circle at 35% 30%, #FFE0C2, #E09A5B 45%, #A9622A 100%); box-shadow: 0 4px 0 #7D461B, 0 10px 18px rgba(169, 98, 42, .3); }
.medal.locked .coin { background: var(--slot); box-shadow: inset 0 0 0 2px var(--line); filter: grayscale(1); opacity: .55; }
.medal.new .coin { animation: coinspin 1.2s ease both; }
@keyframes coinspin { 0% { transform: rotateY(0) scale(.4); } 60% { transform: rotateY(540deg) scale(1.15); } 100% { transform: rotateY(720deg) scale(1); } }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(140%); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 700; box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .coin { width: 40px; height: 40px; font-size: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #FFF4C4, #F5C542 45%, #C99A14 100%); animation: coinspin 1.2s ease both; }
.result .streak-flame { font-size: 34px; display: inline-block; animation: flame 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flame { 50% { transform: scale(1.12) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) {
  .tilt-board, .tilt-card { transform: none !important; transition: none; }
  .flip-in, .jump, .medal.new .coin, .toast .coin, .result .streak-flame { animation: none; }
}
:root[data-theme="dark"] .ng-cell.boxalt:not(.sel):not(.peer):not(.same):not(.clash) { background: linear-gradient(180deg, #2E3F5E, #26364F); }
.tilt-card::after { background: radial-gradient(380px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .10), transparent 50%); opacity: var(--go, 0); }
:root[data-theme="dark"] .tilt-card::after { background: radial-gradient(380px circle at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, .06), transparent 50%); }
.tilt-board { transform-style: flat; transform: perspective(1100px) rotateX(var(--rx, 0deg)); }
.tilt-card { transform-style: flat; }
.hub-icon.hub-board { background: linear-gradient(160deg, #2FB487, #12795A); color: #fff; box-shadow: 0 3px 0 #0B5A41, 0 8px 16px rgba(18, 121, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.hub-card.is-soon { opacity: .62; box-shadow: none; border: 1px dashed var(--line); background: transparent; }
.hub-card.is-soon:hover { transform: none; }
.hub-card.is-soon .hub-status { color: var(--muted); }
@keyframes pc-pop { from { transform: scale(.35) translateY(-30%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes pc-flip { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(90deg) scale(1.12); } 100% { transform: rotateY(0) scale(1); } }
@keyframes pc-out { to { transform: scale(1.5); opacity: 0; } }
@keyframes hint-glow { from { box-shadow: 0 0 0 0 rgba(245, 197, 66, .0); } to { box-shadow: 0 0 0 5px rgba(245, 197, 66, .9); } }
@keyframes win-glow { to { box-shadow: 0 2px 0 var(--edge), 0 0 0 4px #F5C542, 0 0 16px 4px rgba(245, 197, 66, .7); } }
@keyframes line-in { from { transform: scale(.2); } }
@keyframes rm-wobble { 50% { transform: rotate(-8deg) scale(1.05); } }
@keyframes sow { 0% { transform: none; } 40% { transform: scale(1.1); box-shadow: inset 0 5px 10px rgba(0, 0, 0, .5), 0 0 0 4px rgba(245, 197, 66, .9); } 100% { transform: none; } }
@keyframes capt { 40% { box-shadow: inset 0 5px 10px rgba(0, 0, 0, .5), 0 0 0 5px #E5484D; } }
/* Progress dots (used by several daily games) */
.nx-dots { display: flex; gap: 8px; }
.nx-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.nx-dot.right { background: var(--match-bg); }
.nx-dot.wrong { background: var(--warn); }

/* =====================================================================
   FROSTED AURORA: soft colored light drifting behind frosted-glass panels.
   Big panels blur what is behind them; small tiles use see-through glass
   without blur (much lighter on phones).
   ===================================================================== */
:root {
  --bg: #EDF2FA;
  --surface-2: rgba(255, 255, 255, .55);
  --line: rgba(20, 33, 58, .12);
  --muted: #46536B;
  --glass: rgba(255, 255, 255, .5);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 44px rgba(40, 62, 120, .13);
  --glass-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, .95), 0 30px 60px rgba(40, 62, 120, .22);
  --chip: rgba(255, 255, 255, .62);
  --track: rgba(20, 33, 58, .1);
  --au1: #86C8FF; --au2: #FFC6A6; --au3: #93EFCB; --au4: #CDB8FF;
  --au-strength: .78;
  --tile-top: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(242, 245, 252, .88) 100%);
  --tile-edge: rgba(150, 165, 200, .55);
  --slot: rgba(255, 255, 255, .5);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 0 var(--tile-edge), 0 10px 22px rgba(40, 62, 120, .12);
  --radius: 24px;
  --tray: linear-gradient(160deg, rgba(72, 116, 232, .8) 0%, rgba(38, 80, 196, .86) 55%, rgba(30, 67, 170, .92) 100%);
}
:root[data-theme="dark"] {
  --bg: #0A1226;
  --surface: #16223D;
  --surface-2: rgba(40, 58, 98, .55);
  --line: rgba(170, 195, 255, .16);
  --muted: #B3C0D8;
  --glass: rgba(24, 36, 66, .5);
  --glass-strong: rgba(22, 34, 62, .8);
  --glass-edge: rgba(170, 195, 255, .2);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 44px rgba(0, 0, 0, .45);
  --glass-shadow-hi: inset 0 1px 0 rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .55);
  --chip: rgba(30, 44, 78, .65);
  --track: rgba(255, 255, 255, .12);
  --au1: #2856D6; --au2: #7E3556; --au3: #0F7E62; --au4: #4A2C98;
  --au-strength: .7;
  --tile-top: linear-gradient(180deg, rgba(52, 76, 120, .92) 0%, rgba(36, 56, 94, .9) 100%);
  --tile-edge: rgba(6, 12, 26, .8);
  --slot: rgba(20, 32, 58, .6);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 0 var(--tile-edge), 0 10px 22px rgba(0, 0, 0, .4);
}

/* The aurora: four pre-blurred lights that slowly drift (only transform animates, so it stays cheap). */
body { background: var(--bg); }
body::before, body::after {
  content: ''; position: fixed; z-index: -1; pointer-events: none; inset: -15vmax;
  opacity: var(--au-strength);
  will-change: transform;
}
body::before {
  background:
    radial-gradient(38vmax 38vmax at 12% 10%, var(--au1), transparent 70%),
    radial-gradient(34vmax 34vmax at 92% 30%, var(--au2), transparent 70%);
  animation: aurora-a 34s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(40vmax 40vmax at 45% 95%, var(--au3), transparent 70%),
    radial-gradient(30vmax 30vmax at 85% 85%, var(--au4), transparent 70%);
  animation: aurora-b 42s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(6vmax, 4vmax) scale(1.12) rotate(4deg); } }
@keyframes aurora-b { to { transform: translate(-5vmax, -6vmax) scale(.92) rotate(-5deg); } }

/* Glass building blocks */
.glass, .card, .panel, dialog {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.card, .panel { border-radius: var(--radius); }
dialog { background: var(--glass-strong); border-radius: 26px; box-shadow: var(--glass-shadow-hi); }
dialog::backdrop { background: rgba(10, 18, 40, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.glass-chip, .badge, .chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--glass-edge); font-weight: 600; font-size: 14px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.glass-chip svg { width: 18px; height: 18px; }

/* Header: a floating glass bar */
.site-header { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 12px 12px 0; position: relative; z-index: 5; }
.site-header .wrap {
  max-width: 1200px; padding: 10px 12px 10px 18px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.nav { gap: 2px 4px; }
.nav a { padding: 8px 12px; border-radius: 12px; transition: background .15s; }
.nav a:hover { background: var(--chip); color: var(--text); }
.theme-toggle, .icon-btn { background: var(--chip); border: 1px solid var(--glass-edge); transition: transform .2s; }
.theme-toggle:hover, .icon-btn:hover { transform: rotate(-10deg) scale(1.05); border-color: var(--glass-edge); }
@media (max-width: 640px) {
  .site-header { padding: 8px 8px 0; }
  .site-header .wrap { padding: 8px 10px 6px 14px; justify-content: flex-start; gap: 4px 2px; }
  .site-header .nav a { padding: 6px 8px; margin-right: 2px; }
}
.site-footer { border: 0; margin-top: 32px; padding: 0 12px 12px; }
.site-footer .wrap { max-width: 1200px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-edge); padding: 18px 22px; }

/* Buttons */
.btn-primary { background: linear-gradient(180deg, #FFD964, #F5C542); box-shadow: 0 4px 0 #C99A14, 0 12px 26px rgba(245, 197, 66, .4), inset 0 1px 0 rgba(255, 255, 255, .6); transition: transform .15s, box-shadow .15s; }
.btn-primary:hover { background: linear-gradient(180deg, #FFDE74, #F5C542); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #C99A14; }
.btn-quiet { background: var(--chip); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 var(--tile-edge); }
.btn-outline { border-color: var(--glass-edge); background: var(--chip); }
.btn-outline:hover { background: var(--glass-strong); }
.tabs { background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tab[aria-selected="true"] { background: linear-gradient(180deg, #FFD964, #F5C542); box-shadow: 0 2px 0 #C99A14; }
.choice .box { background: var(--glass); border: 2px solid var(--glass-edge); box-shadow: var(--glass-shadow); transition: transform .2s, border-color .15s; }
.choice:hover .box { transform: translateY(-3px); border-color: var(--glass-edge); }
.choice input:checked + .box { background: var(--glass-strong); border-color: var(--select); box-shadow: 0 0 0 1px var(--select), var(--glass-shadow); }
.input { background: var(--glass-strong); border: 2px solid var(--glass-edge); }
.archive-item { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: 18px; transition: transform .2s; }
.archive-item:hover { transform: translateY(-3px); border-color: var(--glass-edge); }
.player.active { background: var(--glass-strong); }
.stat-grid div { background: var(--chip); border: 1px solid var(--glass-edge); }
.ad-slot { border-color: var(--glass-edge); background: var(--glass); }
.toast { background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-edge); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--glass-shadow-hi); }
.xp-toast .xp-coin { width: auto; min-width: 44px; padding: 0 10px; font-size: 15px; font-weight: 800; color: #0B3D2A; border-radius: 999px; background: linear-gradient(180deg, #8FF0C8, #2FB487); }

/* XP bar (home dashboard + result cards) */
.xp-bar { display: block; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.xp-bar.big { height: 14px; }
.xp-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #8FF0C8, #2FB487 60%, #1B8A5E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); transition: width .8s cubic-bezier(.3, 1.3, .5, 1); }
.r-progress { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(360px, 100%); margin: 6px auto 0; font-size: 14px; }
.r-progress .xp-bar { width: 100%; }
.r-level { font-weight: 800; }
.chest-cta { margin-top: 6px; }

/* ---------- Home ---------- */
.home { padding-bottom: 12px; }
.home-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; padding-top: 28px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 12px 4px; }
.hero-copy h1 { font-size: clamp(42px, 6.4vw, 72px); font-weight: 800; line-height: 1.0; letter-spacing: -.02em; }
.hero-copy .lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta { border-radius: 18px; }
.cta svg { width: 20px; height: 20px; }
.today-card { flex: 1 1 440px; min-width: 0; border-radius: 30px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.today-head h2 { font-size: 26px; font-weight: 800; }
.today-head .glass-chip { color: var(--muted); font-weight: 700; padding: 4px 12px; font-size: 13px; }
.today-body { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.ring { position: relative; width: 164px; height: 164px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--track); stroke-width: 11; }
.ring-prog { fill: none; stroke: url(#ringg); stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.3, 1.3, .5, 1); }
.ring-label { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; text-align: center; line-height: 1; }
.ring-label strong { font-family: var(--display); font-size: 44px; font-weight: 800; }
.ring-label small { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--muted); align-self: flex-end; padding-bottom: 4px; }
.ring-label span { flex-basis: 100%; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.today-stats { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.streak-row { display: flex; align-items: center; gap: 12px; }
.streak-row .flame { width: 46px; height: 46px; flex: none; transform-origin: 50% 90%; animation: flick 1.6s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scale(1.08) rotate(3deg); } }
.big { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.level-row { display: flex; flex-direction: column; gap: 6px; }
.level-line { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.level-line .muted { font-variant-numeric: tabular-nums; }
.today-body { flex: 1; }
.today-dots { margin-top: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(20px, 1fr)); gap: 6px; }
.tdot { height: 10px; border-radius: 999px; background: var(--track); transition: background .4s, transform .2s; }
.tdot:hover { transform: scaleY(1.6); }
.tdot.on { background: linear-gradient(90deg, #5FA8FF, #2D5BD0); }

.hooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-top: 22px; }
.hook-card { border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hook-card h2 { font-size: 22px; font-weight: 800; }
.hook-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hook-top svg { width: 24px; height: 24px; color: #B4540A; }
.eyebrow.warm { color: #B4540A; }
:root[data-theme="dark"] .eyebrow.warm, :root[data-theme="dark"] .hook-top svg { color: #F5A15B; }
.chest-card { flex-direction: row; align-items: center; gap: 16px; }
.chest-art { flex: none; width: 104px; }
.chest-svg { width: 104px; height: 96px; overflow: visible; }
.hook-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hook-body .btn { align-self: flex-start; min-height: 44px; }
.chest-glowball, .chest-coin { opacity: 0; transition: opacity .4s; }
.chest-card[data-state="ready"] .chest-svg { animation: chest-glow 2.2s ease-in-out infinite alternate, chest-wiggle 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.chest-card[data-state="ready"] .chest-glowball { opacity: .45; }
@keyframes chest-glow { to { filter: drop-shadow(0 0 22px rgba(245, 197, 66, .9)); } }
@keyframes chest-wiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-5deg); } 90% { transform: rotate(5deg); } 95% { transform: rotate(-3deg); } }
.chest-card[data-state="opened"] .chest-lid { transform: rotate(-28deg) translate(-4px, -6px); transform-origin: 10px 40px; }
.chest-card[data-state="opened"] .chest-coin, .chest-card[data-state="opened"] .chest-glowball { opacity: .9; }
.chest-card[data-state="opened"] .chest-glowball { opacity: .35; }
.chest-card.just-opened .chest-lid { animation: lid-open .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.chest-card.just-opened .chest-coin { animation: coin-rise .9s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes lid-open { from { transform: none; } }
@keyframes coin-rise { from { transform: translateY(14px); opacity: 0; } }
.weekly-bar { display: grid; grid-template-columns: repeat(var(--segs, 5), minmax(0, 1fr)); gap: 6px; }
.weekly-bar span { height: 30px; border-radius: 10px; background: var(--track); }
.weekly-bar span.on { background: linear-gradient(160deg, #FFB46B, #F07A1E); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #B4540A; }
.badge-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.badge-mini .medal { width: auto; }
.shelf-card { border-radius: 26px; padding: 22px; }

.search-row { position: relative; padding-top: 28px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 18px; max-width: 520px; min-height: 54px; cursor: text; }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; outline: none; min-height: 50px; }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--select), var(--glass-shadow); }
.search-results { position: absolute; z-index: 10; top: calc(100% + 6px); left: 20px; width: min(520px, calc(100% - 40px)); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; background: var(--glass-strong); }
.search-results p { padding: 10px 12px; }
.search-hit { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.search-hit:hover, .search-hit:focus-visible { background: var(--chip); color: inherit; }
.search-hit span { font-size: 14px; }

.hub-section { padding-top: 34px; scroll-margin-top: 16px; }
.hub-section-head { align-items: baseline; }
.hub-section-head h2, .cat-page .hub-section-head h1 { font-size: 34px; font-weight: 800; }
.see-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--select); }
.see-all svg { width: 18px; height: 18px; }
.cat-page .page-head { padding-top: 24px; padding-bottom: 0; }

/* Glass game tiles that tilt toward you */
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tiles-grid.tiles-board { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gtile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px; min-width: 0;
  border-radius: 26px; text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38));
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  transform: perspective(900px) rotateX(0) rotateY(0); transition: transform .35s cubic-bezier(.2, .9, .25, 1.2), box-shadow .35s;
}
:root[data-theme="dark"] .gtile { background: linear-gradient(160deg, rgba(40, 58, 98, .62), rgba(24, 36, 66, .5)); }
.gtile:hover { color: var(--text); transform: perspective(900px) rotateX(7deg) rotateY(-5deg) translateY(-8px); box-shadow: var(--glass-shadow-hi); }
.gtile:active { transform: perspective(900px) rotateX(2deg) translateY(-2px) scale(.98); }
.gtile .shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .16) 100%); opacity: .7; transition: transform .5s, opacity .5s; }
:root[data-theme="dark"] .gtile .shine { opacity: .18; }
.gtile:hover .shine { transform: translateX(16%); opacity: 1; }
:root[data-theme="dark"] .gtile:hover .shine { opacity: .3; }
.gtile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.orb {
  position: relative; flex: none; width: 62px; height: 62px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(160deg, var(--o1), var(--o2));
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -6px 12px rgba(0, 0, 0, .18), 0 10px 22px rgba(20, 33, 58, .22);
  transition: transform .35s cubic-bezier(.2, .9, .25, 1.3);
}
.orb svg { position: relative; z-index: 1; width: 36px; height: 36px; }
.orb::after { content: ''; position: absolute; left: 12%; right: 12%; top: 6%; height: 38%; border-radius: 14px 14px 40% 40%; background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); }
.gtile:hover .orb { transform: scale(1.08) rotate(-4deg); }
.gtile-board .orb { width: 54px; height: 54px; border-radius: 50%; }
.gtile-board .orb svg { width: 30px; height: 30px; }
.done-mark { display: none; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(160deg, #4FD1A5, #1B8A5E); box-shadow: 0 0 0 4px rgba(79, 209, 165, .25), 0 6px 14px rgba(27, 138, 94, .35); }
.done-mark svg { width: 18px; height: 18px; }
.gtile.is-done .done-mark { display: flex; animation: pop-in .45s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes pop-in { from { transform: scale(.2); opacity: 0; } }
.gtile-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gtile-name { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.gtile-board .gtile-name { font-size: 19px; }
.gtile-blurb { font-size: 14px; color: var(--muted); }
.gtile-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; }
.gtile-foot .hub-status { margin: 0; color: var(--select); }
.gtile-foot .hub-status.done { color: var(--ok); }
.xp-chip { padding: 3px 10px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); white-space: nowrap; font-size: 12px; }
.gtile.is-soon { opacity: .6; border-style: dashed; box-shadow: none; }
.gtile.is-soon:hover { transform: none; }
.gtile.is-soon .hub-status { color: var(--muted); }


/* Phones: compact two-column tiles, centered dashboard */
@media (max-width: 560px) {
  .home-hero { padding-top: 18px; }
  .today-card { padding: 20px; }
  .today-body { justify-content: center; }
  .tiles-grid, .tiles-grid.tiles-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gtile { padding: 14px; border-radius: 22px; gap: 4px; }
  .gtile .orb { width: 48px; height: 48px; border-radius: 16px; }
  .gtile .orb svg { width: 28px; height: 28px; }
  .gtile-board .orb { border-radius: 50%; }
  .gtile-name, .gtile-board .gtile-name { font-size: 17px; }
  .gtile-blurb { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .gtile-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .done-mark { width: 28px; height: 28px; }
  .hub-section-head h2 { font-size: 28px; }
  .chest-art, .chest-svg { width: 84px; }
  .chest-svg { height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .streak-row .flame, .chest-card[data-state="ready"] .chest-svg { animation: none; }
  .gtile, .gtile:hover { transform: none; }
}
/* XP toasts drop in from the top so they never cover badge toasts at the bottom. */
.toast.xp-toast { bottom: auto; top: 18px; transform: translateX(-50%) translateY(-180%); }
.toast.xp-toast.show { transform: translateX(-50%) translateY(0); }

/* =====================================================================
   HEADER: glass logo that tilts toward the pointer, glossy 3D name,
   a gliding glass highlight in the menu, and the streak chip.
   ===================================================================== */
.site-header .wrap { position: relative; }
.logo { gap: 12px; perspective: 500px; isolation: isolate; }
.logo-tile {
  --rx: 0deg; --ry: 0deg; --gx: 50%;
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at var(--gx) 0%, #9CCBFF 0%, rgba(156, 203, 255, 0) 55%), linear-gradient(150deg, #5FA8FF 0%, #3F7BEA 45%, #2D5BD0 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 -4px 8px rgba(10, 30, 90, .35), 0 3px 0 #1E43AA, 0 10px 18px rgba(45, 91, 208, .35);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .25s ease-out;
}
.logo:hover .logo-tile { transition: transform .08s linear; }
.logo-gloss { position: absolute; overflow: hidden; left: 8%; right: 8%; top: 4%; height: 46%; border-radius: 10px 10px 50% 50%; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, .05)); }
.logo-gloss::after { content: ''; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%); transform: translateX(-70%); animation: logo-sweep 7s ease-in-out 1.2s infinite; }
@keyframes logo-sweep { 0%, 78% { transform: translateX(-70%); } 92%, 100% { transform: translateX(70%); } }
.logo-egg { position: relative; transform: translateZ(14px); filter: drop-shadow(0 2px 2px rgba(10, 30, 90, .35)); transition: transform .3s; }
.logo-yolk { transform-origin: 17.6px 17.2px; transform-box: view-box; }
.logo:hover .logo-egg { animation: egg-wobble .9s ease-in-out; }
.logo:hover .logo-yolk { animation: yolk-jiggle .9s ease-in-out; }
.logo-tile.boing { animation: logo-boing .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes egg-wobble { 0%, 100% { transform: translateZ(14px) rotate(0); } 20% { transform: translateZ(14px) rotate(-10deg) scale(1.05); } 45% { transform: translateZ(14px) rotate(8deg); } 70% { transform: translateZ(14px) rotate(-4deg); } }
@keyframes yolk-jiggle { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.12, .9); } 50% { transform: scale(.94, 1.08); } 75% { transform: scale(1.04, .97); } }
@keyframes logo-boing { 40% { transform: scale(.86); } }

.logo-word { display: inline-flex; gap: .26em; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.lw { position: relative; display: inline-block; padding-bottom: 4px; color: transparent; -webkit-background-clip: text; background-clip: text; }
.lw-a { background-image: linear-gradient(180deg, #8EC4FF 0%, #5B95F5 46%, #2D5BD0 54%, #4A80EC 100%); }
.lw-b { background-image: linear-gradient(180deg, #FFE38F 0%, #F7C948 46%, #E0A010 54%, #F2B731 100%); }
/* the extruded "3D" edge sits behind each word */
.lw::before { content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1; color: #1E43AA;
  text-shadow: 0 1px 0 #2650C4, 0 2px 0 #1E43AA, 0 3px 0 #17368A, 0 5px 8px rgba(20, 33, 58, .28); }
.lw-b::before { color: #B7820C; text-shadow: 0 1px 0 #C99A14, 0 2px 0 #B7820C, 0 3px 0 #94680A, 0 5px 8px rgba(20, 33, 58, .28); }
/* a glint that slides across the letters */
.lw::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: transparent; -webkit-background-clip: text; background-clip: text; pointer-events: none;
  background-image: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%); background-size: 300% 100%; background-position: 120% 0; animation: word-glint 7s ease-in-out 1.4s infinite; }
.lw-b::after { animation-delay: 1.6s; }
@keyframes word-glint { 0%, 76% { background-position: 120% 0; } 94%, 100% { background-position: -20% 0; } }
.logo-word { transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.logo:hover .logo-word { transform: translateY(-2px) scale(1.03); }
.nav-short { display: none; }
:root[data-theme="dark"] .lw::before { color: #0E2460; text-shadow: 0 1px 0 #17368A, 0 2px 0 #0E2460, 0 3px 0 #0A1A48, 0 5px 10px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .lw-b::before { color: #7A5508; text-shadow: 0 1px 0 #94680A, 0 2px 0 #7A5508, 0 3px 0 #5E4106, 0 5px 10px rgba(0, 0, 0, .5); }

/* menu highlight */
.nav { position: relative; }
.nav a { position: relative; z-index: 1; transition: color .2s; }
.nav a:hover { background: none; }
.nav-ink { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 12px; opacity: 0; pointer-events: none;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 4px 12px rgba(40, 62, 120, .14);
  transition: transform .35s cubic-bezier(.3, .9, .3, 1.15), width .35s cubic-bezier(.3, .9, .3, 1.15), opacity .2s; }
:root[data-theme="dark"] .nav-ink { background: rgba(120, 150, 230, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.nav-ink.on { opacity: 1; }
.nav a.is-here { font-weight: 700; }
.nav a.nudge::after { content: ''; position: absolute; top: 5px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--glass-strong); animation: nudge-pulse 2s ease-out infinite; }
@keyframes nudge-pulse { 0% { box-shadow: 0 0 0 2px var(--glass-strong), 0 0 0 2px rgba(229, 72, 77, .5); } 70%, 100% { box-shadow: 0 0 0 2px var(--glass-strong), 0 0 0 9px rgba(229, 72, 77, 0); } }

/* streak + level chip */
.hdr-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 0 8px; padding: 6px 12px 6px 9px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 240, 214, .7)); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(234, 106, 18, .16); transition: transform .2s; }
.hdr-chip[hidden] { display: none; }
.hdr-chip:hover { color: var(--text); transform: translateY(-2px); }
.hdr-chip b { font-variant-numeric: tabular-nums; }
.hdr-lv { padding-left: 7px; margin-left: 1px; border-left: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.hdr-fire { display: inline-block; transform-origin: 50% 90%; animation: fire-flicker 2.4s ease-in-out infinite; }
@keyframes fire-flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08, .95) rotate(-4deg); } 60% { transform: scale(.96, 1.06) rotate(3deg); } }
.hdr-chip.at-risk { animation: chip-pulse 1.8s ease-in-out infinite; }
.hdr-chip.fresh .hdr-fire { filter: grayscale(.6); }
@keyframes chip-pulse { 50% { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(234, 106, 18, .22); } }
:root[data-theme="dark"] .hdr-chip { background: linear-gradient(180deg, rgba(60, 80, 130, .7), rgba(90, 60, 40, .55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

@media (max-width: 640px) {
  .logo-tile { width: 36px; height: 36px; border-radius: 11px; }
  .logo-egg { width: 22px; height: 22px; }
  .logo-word { font-size: 21px; }
  .site-header .nav a.hdr-chip { order: 1; margin: 0 6px 0 auto; padding: 5px 10px 5px 8px; font-size: 13px; }
  .site-header .nav a.hdr-chip:not([hidden]) ~ .theme-toggle { margin-left: 0; }
  .site-header .nav { position: static; }
  .site-header .nav a[data-cat] { padding: 6px 6px; margin-right: 0; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
}
@media (max-width: 380px) { .hdr-lv { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo-gloss::after, .lw::after, .hdr-fire, .hdr-chip.at-risk, .nav a.nudge::after, .logo:hover .logo-egg, .logo:hover .logo-yolk { animation: none; }
  .lw::after { display: none; }
}

/* On-screen keyboard (word games) */
.kbd { display: flex; flex-direction: column; gap: 6px; margin: 16px auto 0; max-width: 520px; user-select: none; -webkit-user-select: none; }
.kbd-row { display: flex; justify-content: center; gap: 5px; }
.kbd-key { flex: 1 1 0; min-width: 0; max-width: 46px; height: 52px; border-radius: 10px; border: 1px solid var(--glass-edge); background: var(--tile-top); color: var(--text);
  font: 700 15px var(--body); box-shadow: var(--lift); cursor: pointer; transition: transform .08s, background .2s, color .2s; }
.kbd-key.wide { flex: 1.6 1 0; max-width: 76px; font-size: 13px; }
.kbd-key:active { transform: translateY(2px); }
.kbd-key.hit { background: linear-gradient(170deg, #6FA8FF, #2D5BD0); color: #fff; border-color: transparent; }
.kbd-key.near { background: linear-gradient(170deg, #FFB48A, #EE6A33); color: #fff; border-color: transparent; }
.kbd-key.miss { background: rgba(70, 80, 100, .35); color: rgba(255, 255, 255, .85); border-color: transparent; box-shadow: none; }
:root[data-theme="dark"] .kbd-key.miss { background: rgba(10, 16, 30, .6); color: rgba(255, 255, 255, .45); }
@media (max-width: 400px) { .kbd-key { height: 48px; font-size: 14px; } .kbd-row { gap: 4px; } }

/* Latin-square number grids (Sign Grid, Number Pens) */
.lt-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; width: min(100%, 440px); margin: 6px auto 0; padding: 12px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); }
.lt-grid.gaps { gap: 0; }
.lt-cell { position: relative; aspect-ratio: 1; margin: 0; padding: 0; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--tile-top); box-shadow: var(--lift); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lt-v { font: 800 clamp(20px, 6vw, 30px) var(--display); }
.lt-cell.given .lt-v { color: var(--select); }
.lt-cell.peer { background: color-mix(in srgb, var(--select) 8%, transparent); }
.lt-cell.sel { background: linear-gradient(170deg, #FFE38F, #F5C542); color: #14213A; }
.lt-cell.bad .lt-v { color: #E5484D; }
.lt-cell.solved { background: linear-gradient(170deg, #9FE8C8, #1B8A5E); color: #fff; border-color: transparent; }
.lt-cell.solved .lt-v { color: #fff; }
.lt-notes { display: grid; grid-template-columns: repeat(3, 1fr); width: 86%; height: 86%; }
.lt-notes i { font: 700 clamp(8px, 2.2vw, 11px) var(--body); font-style: normal; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.lt-slot { display: flex; align-items: center; justify-content: center; font: 800 clamp(14px, 4vw, 20px) var(--display); color: var(--muted); }
.lt-pad { display: flex; justify-content: center; gap: 8px; margin: 14px auto 0; flex-wrap: wrap; }
.lt-key { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--glass-edge); background: var(--tile-top); box-shadow: var(--lift); font: 800 22px var(--display); color: var(--text); cursor: pointer; }
.lt-key.full { opacity: .35; }
.lt-tools { display: flex; justify-content: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lt-tools .btn.on { background: linear-gradient(180deg, #FFD964, #F5C542); }

/* Compact whole catalog cards; icons retain their original responsive sizes. */
.tiles-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tiles-grid.tiles-board { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gtile { padding: 16px; gap: 4px; border-radius: 23px; }
.gtile-top { margin-bottom: 4px; }
.gtile-foot { padding-top: 6px; }
@media (max-width: 560px) {
  .tiles-grid, .tiles-grid.tiles-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gtile { padding: 10px; gap: 3px; border-radius: 19px; }
  .gtile-top { margin-bottom: 2px; }
  .gtile-foot { padding-top: 4px; gap: 4px; }
}

/* Short game hooks stay visible on compact cards, including phones. */
.gtile-blurb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.35; }
@media(max-width:560px){
 .gtile-blurb { font-size:12px; line-height:1.3; }
 .gtile-foot { flex-direction:row; align-items:center; font-size:11px; gap:4px; }
 .gtile-foot .xp-chip { font-size:10px; padding:2px 6px; }
}
/* Let each short hook finish naturally rather than cutting off its invitation. */
.gtile-blurb { display:block; -webkit-line-clamp:unset; overflow:visible; }


/* /css/forest.css */
/* Forest & Cream. Final presentation layer: rules, input IDs and game colors are retained. */
:root{--bg:#faf7ef;--surface:#fffdf7;--surface-2:#ede9dd;--text:#103c2f;--muted:#53634f;--line:#d5d4c3;--select:#176344;--accent:#176344;--accent-ink:#fffdf7;--ok:#176344;--warn:#8b4a19;--radius:16px;--display:'DM Sans','Segoe UI',sans-serif;--body:'DM Sans','Segoe UI',sans-serif;--forest:#103c2f;--sage:#829979;--wood:#bf945d;--cream:#faf7ef;--glass:#fffdf7;--glass-strong:#fffdf7;--glass-edge:#ffffff;--glass-shadow:inset 0 2px 1px #fff,0 4px 0 #d3cbb8,0 11px 20px #514b3420;--glass-shadow-hi:inset 0 2px 1px #fff,0 6px 0 #c7c0ac,0 16px 28px #514b3430;--chip:#eeeee3;--tile-top:#fffdf7;--tile-ink:#103c2f;--tile-edge:#c3c7b2;--slot:#e8ecdf;--lift:inset 0 1px 1px #fff,0 4px 0 #c3c7b2,0 9px 14px #343e2620;--space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-6:48px;--motion-card:180ms;--motion-press:120ms;--ease-out:cubic-bezier(.2,.7,.3,1)}
:root[data-theme=dark]{--bg:#14251e;--surface:#21392d;--surface-2:#294233;--text:#f5f0df;--muted:#bac7ad;--line:#54644f;--select:#b7d3a8;--accent:#b7d3a8;--accent-ink:#122e22;--ok:#b7d3a8;--warn:#e8b37c;--glass:#21392d;--glass-strong:#294233;--glass-edge:#57664f;--glass-shadow:inset 0 1px 0 #ffffff20,0 4px 0 #0c2016,0 10px 22px #0003;--glass-shadow-hi:inset 0 1px 0 #ffffff26,0 5px 0 #0c2016,0 16px 28px #0004;--chip:#294233;--tile-top:#344c3a;--tile-ink:#f5f0df;--tile-edge:#122b1d;--slot:#172d22;--lift:inset 0 1px 1px #ffffff20,0 4px 0 #112b1d,0 9px 14px #0003}
body{background:var(--bg);font-family:var(--body)}body:before,body:after{display:none!important}h1,h2,h3{font-family:var(--display);font-weight:800;letter-spacing:-.035em;text-wrap:balance}a{color:inherit}a:hover{color:var(--select)}.wrap{max-width:1160px}.site-header.forest-header{padding:0;background:transparent;border:0;box-shadow:none;position:relative}.forest-header .wrap{padding:25px 24px 21px;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;max-width:1160px;gap:16px}.forest-logo{font:800 25px var(--display);letter-spacing:-1px;gap:11px;min-height:44px}.forest-cube{width:36px;height:40px;flex:none;filter:drop-shadow(0 4px 3px #4e4a3229)}.forest-header .nav{gap:18px}.forest-header .nav a{padding:10px 5px;border-radius:4px;font-size:14px;min-height:44px;display:flex;align-items:center}.forest-header .nav a:hover{background:none;text-decoration:underline;text-underline-offset:6px}.forest-header .theme-toggle{background:var(--surface);border:1px solid var(--glass-edge);color:var(--text);box-shadow:inset 0 2px 0 #ffffff66,0 3px 0 #b9b6a144,0 6px 10px #4d452a24;width:44px;height:44px;transition:transform var(--motion-press)}.forest-header .theme-toggle:hover{transform:translateY(-1px)}.forest-header .theme-toggle:active{transform:translateY(2px)}.forest-header .theme-toggle svg{width:20px;height:20px}.forest-footer{padding:0;margin:36px 20px 0;background:none;border:0}.forest-footer .wrap{border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;backdrop-filter:none;padding:22px 0;max-width:1112px;display:flex;align-items:center;justify-content:space-between;gap:22px}.forest-footer-brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-weight:800;letter-spacing:-.4px}.forest-footer-brand .forest-cube{width:25px;height:28px}.forest-footer .footer-links{display:flex;gap:22px;flex-wrap:wrap;font-size:12px}.forest-footer a{min-height:44px;display:inline-flex;align-items:center}.forest-home{padding-bottom:10px}.forest-intro{padding:20px 24px 23px}.forest-intro h1{font-size:clamp(34px,4.3vw,48px);line-height:1.1;letter-spacing:-1.8px;margin:0 0 12px;max-width:900px}.forest-intro p{font-size:20px;line-height:1.3;color:var(--muted);max-width:680px}.forest-categories{padding:0 24px}.forest-categories>.eyebrow{font:700 12px var(--body);letter-spacing:2px;margin:0 0 15px;color:var(--text)}.forest-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.forest-category{position:relative;isolation:isolate;display:flex;align-items:center;min-height:238px;padding:28px 26px;text-decoration:none;border:1px solid #fff;border-radius:14px;background:linear-gradient(145deg,#fffdf8,#f2ecdf);box-shadow:inset 0 2px 0 #fff,0 4px 0 #c7bfaa,0 13px 22px #49432c26;transition:transform var(--motion-card) var(--ease-out),box-shadow var(--motion-card),border-color var(--motion-card);overflow:visible}.forest-category-copy{position:relative;z-index:2;width:53%;pointer-events:none}.forest-category h3{font-size:clamp(25px,2.8vw,35px);line-height:1.05;letter-spacing:-1.1px;margin:0 0 10px;white-space:nowrap}.forest-category-description{display:block;min-height:46px;font-size:16px;line-height:1.3;color:#465c49;max-width:220px}.forest-explore{display:inline-flex;align-items:center;justify-content:center;gap:17px;min-width:133px;min-height:47px;margin-top:14px;padding:10px 17px;background:linear-gradient(#216547,#0b3b29);border:1px solid #538368;border-radius:10px;color:#fffdf4;box-shadow:inset 0 2px 0 #ffffff44,0 4px 0 #062d1f,0 7px 10px #1d392d34;font-weight:700;font-size:15px;transition:transform var(--motion-press),box-shadow var(--motion-press)}.forest-explore svg{width:18px;height:18px}.forest-category img{position:absolute;width:61%;height:116%;right:-4%;top:-8%;object-fit:contain;pointer-events:none;filter:drop-shadow(6px 14px 9px #4c422b30);transition:transform var(--motion-card) var(--ease-out);z-index:1}.forest-word img{width:59%;right:-2%}.forest-logic img,.forest-teasers img{width:58%;right:-2%;top:-7%}.forest-board img{width:61%;right:-4%;top:-5%}.forest-category:hover,.forest-category:focus-visible{color:var(--text);border-color:#397953;transform:translateY(-3px);box-shadow:inset 0 2px 0 #fff,0 5px 0 #a4ad91,0 17px 26px #49432c30}.forest-category:hover img,.forest-category:focus-visible img{transform:rotate(-2deg) translateY(-3px)}.forest-category:active{transform:translateY(2px)}.forest-category:active .forest-explore{transform:translateY(3px);box-shadow:inset 0 1px 0 #ffffff22,0 1px 0 #062d1f,0 2px 4px #1d392d34}.forest-secondary{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-top:28px;font-size:13px;color:var(--muted)}.forest-secondary a{display:flex;gap:8px;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}.forest-secondary svg{width:15px;height:15px}.forest-library-intro{padding-top:28px;padding-bottom:12px;position:relative}.forest-library-intro h1{font-size:clamp(30px,4vw,43px);margin:18px 0 10px}.forest-library-intro .search-box{margin-top:24px;max-width:500px;box-shadow:none;border:1px solid var(--line);background:var(--surface);min-height:52px;padding:10px 16px}.forest-category-nav{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.forest-category-nav a{border:1px solid var(--line);padding:10px 16px;border-radius:8px;text-decoration:none;min-height:44px}.forest-category-nav a:hover{background:var(--slot)}.forest-library .hub-section{padding-top:36px}.hub-section-head{align-items:baseline}.hub-section-head p{font-size:15px}.cat-page{padding-top:12px}.hub-section-head h1{font-size:40px}.tiles-grid{gap:20px}.gtile,.hub-card{background:linear-gradient(145deg,var(--surface),var(--surface-2));border:1px solid var(--glass-edge);border-radius:14px;box-shadow:var(--glass-shadow);backdrop-filter:none;-webkit-backdrop-filter:none;transition:transform var(--motion-card),box-shadow var(--motion-card)}:root[data-theme=dark] .gtile{background:linear-gradient(145deg,var(--surface),var(--surface-2))}.gtile{padding:22px 20px;gap:9px;min-height:216px}.gtile:hover,.gtile:focus-visible{transform:translateY(-3px);box-shadow:var(--glass-shadow-hi)}.gtile:active{transform:translateY(2px)}.gtile .shine{display:none}.gtile .orb,.gtile-board .orb{width:48px;height:48px;border-radius:12px;background:linear-gradient(145deg,#a4b999,#47735b)!important;border:1px solid #b2c6a6;color:#fffdf0;box-shadow:inset 0 2px 1px #ffffff77,inset 0 -4px 6px #1a3d3030,0 3px 0 #244d38,0 7px 10px #304d3420}.gtile:nth-child(3n+2) .orb{background:linear-gradient(145deg,#f3e8c8,#bd9b67)!important;color:#123b2a;border-color:#f9efda;box-shadow:inset 0 2px 1px #fff,0 3px 0 #a98954,0 7px 10px #76604320}.gtile:nth-child(3n+3) .orb{background:linear-gradient(145deg,#709778,#174f37)!important}.gtile .orb:after{opacity:.3}.gtile .orb svg{width:29px;height:29px}.gtile:hover .orb{transform:rotate(-3deg)}.gtile .gtile-name{font-size:20px;letter-spacing:-.5px}.gtile-blurb{font-size:14px;line-height:1.5;color:var(--muted)}.gtile-foot{align-items:center;font-size:12px;gap:9px;padding-top:8px}.gtile-foot .hub-status{color:var(--select);font-weight:700}.xp-chip{border:0;border-radius:5px;background:var(--chip);font-size:11px;font-weight:500;white-space:normal;text-align:center;color:var(--muted);box-shadow:none}.glass,.card,.panel,dialog{backdrop-filter:none;-webkit-backdrop-filter:none}.btn{min-height:44px;cursor:pointer;transition:transform var(--motion-press),box-shadow var(--motion-press);font-family:var(--body);border-radius:9px}.btn-primary{background:linear-gradient(#22684b,#0e432f)!important;color:#fffdf5!important;border:1px solid #477c5e!important;box-shadow:inset 0 2px 0 #ffffff33,0 3px 0 #062e1d,0 6px 10px #2d492d25!important}.btn-primary:hover{background:linear-gradient(#2b7354,#15513a)!important}.btn-primary:active{transform:translateY(3px);box-shadow:inset 0 1px 0 #ffffff22,0 0 0 #062e1d!important}.btn-outline,.btn-quiet{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:0 2px 0 var(--tile-edge)!important}.btn-outline:active,.btn-quiet:active{transform:translateY(2px);box-shadow:none!important}.btn:disabled{cursor:default;opacity:.55}.input,select,input[type=text],input[type=number]{background:var(--surface);border:1px solid var(--line);color:var(--text);border-radius:9px}.input:focus{border-color:var(--select)}.game-page,.ch-page,.tt-page,.board-page{padding-top:26px}.game-head h1,.ch-page h1{font-size:clamp(30px,4vw,43px)}.game-head{margin-bottom:22px}.head-tools .icon-btn{background:var(--surface);border:1px solid var(--line);box-shadow:0 2px 0 var(--tile-edge);min-width:44px;min-height:44px}.theme-toggle:hover,.icon-btn:hover{transform:translateY(-1px)}.ch-stage,:root[data-theme=dark] .ch-stage{background:linear-gradient(145deg,var(--surface),var(--surface-2));box-shadow:var(--glass-shadow);border-color:var(--glass-edge)}.ch-controls{border-radius:14px}.ch-glass,.ch-token,:root[data-theme=dark] .ch-glass,:root[data-theme=dark] .ch-token{background:linear-gradient(145deg,var(--surface),var(--surface-2));border-color:var(--glass-edge);box-shadow:var(--lift);color:var(--text)}.ch-token.selected,:root[data-theme=dark] .ch-token.selected{background:linear-gradient(145deg,#a3bd97,#628469);color:#0d3221;border-color:#c4d8b5}.ch-token:hover:not(:disabled){box-shadow:var(--glass-shadow-hi)}.ch-vessel .fill{background:linear-gradient(135deg,#b3cba1,#648c68)}.ch-vessel{border-color:#a3b89a;background:var(--surface)}.ch-hint{background:var(--chip);border-left:3px solid var(--wood)}.ch-controls select{min-height:44px}.ch-repairs input{border:1px solid var(--line)}.ch-feedback.good{color:var(--ok)}.tt-arena,.tt-desk{background:var(--surface);box-shadow:var(--glass-shadow);border-color:var(--glass-edge)}.dm-table,:root[data-theme=dark] .dm-table{background:var(--slot);border-color:var(--line)}.domino,:root[data-theme=dark] .domino{background:linear-gradient(145deg,var(--surface),var(--surface-2));border-color:var(--glass-edge);box-shadow:var(--lift);color:var(--text)}.bg-board,:root[data-theme=dark] .bg-board{background:linear-gradient(145deg,#ddc89e,#a78c5d);border-color:#f7e7c3}.go-board,:root[data-theme=dark] .go-board{background:linear-gradient(145deg,#e2cca5,#c4aa7a);border-color:#f7e7c3}.tt-seat,:root[data-theme=dark] .tt-seat{background:var(--surface-2);border-color:var(--line)}.glass-play .gp-stage{background:var(--surface);box-shadow:var(--glass-shadow);border-color:var(--glass-edge)}.logo-gloss,.nav-ink{display:none!important}.logo-tile,.logo-word .lw,.hdr-fire,.result .streak-flame{animation:none!important}.tilt-card,.tilt-board{transform:none!important}.tilt-card:after{display:none!important}.forest-home .forest-category:focus-visible{outline:3px solid var(--select);outline-offset:5px}:focus-visible{outline:3px solid var(--select);outline-offset:4px}.forest-home .forest-explore{pointer-events:none}
:root[data-theme=dark] .forest-category{background:linear-gradient(145deg,#2a4130,#21382a);border-color:#526b4b;box-shadow:inset 0 1px 0 #ffffff20,0 4px 0 #102518,0 13px 22px #0003}:root[data-theme=dark] .forest-category-description{color:#c2cfb5}:root[data-theme=dark] .forest-category:hover{border-color:#b3cc9e}:root[data-theme=dark] .forest-explore{background:linear-gradient(#c2d8a8,#91ac7a);color:#143a26;border-color:#c6d9b6;box-shadow:inset 0 2px 0 #ffffff44,0 4px 0 #576f43,0 7px 10px #10261844}:root[data-theme=dark] .btn-primary{background:linear-gradient(#bfd6a6,#8ea975)!important;color:#122e22!important;border-color:#c6d9b6!important;box-shadow:inset 0 2px 0 #ffffff44,0 3px 0 #587340!important}:root[data-theme=dark] .btn-primary:hover{background:linear-gradient(#cce0b7,#a5bf8d)!important}
@media(min-width:1400px){.forest-intro{padding-top:28px}.forest-category{min-height:252px}}
@media(max-width:950px){.forest-category{min-height:218px;padding:23px 20px}.forest-category h3{font-size:28px}.forest-category-description{font-size:14px;max-width:175px}.forest-category-grid{gap:22px}.forest-category img{width:57%;right:-2%}.forest-category-copy{width:56%}.forest-explore{min-width:118px;min-height:45px;font-size:14px}.forest-footer .wrap{align-items:flex-start}.forest-footer .footer-links{gap:8px 18px;justify-content:flex-end;max-width:440px}.gtile{padding:20px 16px}.gtile-foot{flex-wrap:wrap}}
@media(max-width:700px){.forest-header .wrap{padding:20px;gap:10px;flex-wrap:nowrap}.forest-logo{font-size:21px;letter-spacing:-.8px}.forest-logo .forest-cube{width:29px;height:33px}.forest-header .nav{gap:12px}.forest-header .nav a{font-size:13px}.forest-header .nav a[href='/about']{display:none}.forest-intro{padding:18px 20px 25px}.forest-intro h1{font-size:36px;line-height:1.07;letter-spacing:-1.2px;max-width:500px}.forest-intro p{font-size:17px;max-width:490px;line-height:1.45}.desktop-break{display:none}.forest-categories{padding:0 20px}.forest-category-grid{grid-template-columns:1fr;gap:24px}.forest-category{min-height:214px;padding:25px 22px}.forest-category h3{font-size:30px}.forest-category-description{font-size:15px}.forest-category img{width:56%;height:113%;right:-2%;top:-6%}.forest-category-copy{width:55%}.forest-explore{margin-top:15px;min-width:125px}.forest-secondary{padding-top:26px;gap:4px}.forest-secondary a{font-size:12px}.forest-footer .wrap{display:block;padding:20px 0}.forest-footer .footer-links{margin-top:9px;justify-content:flex-start;gap:4px 20px;max-width:none}.gtile,.gtile-board{min-height:215px;padding:18px 14px;border-radius:12px}.gtile .orb{width:43px;height:43px;border-radius:10px}.gtile .gtile-name{font-size:18px}.gtile-blurb{font-size:13px;-webkit-line-clamp:3}.gtile-foot{align-items:flex-start;gap:6px;font-size:12px}.hub-section-head{display:block}.hub-section-head h1{font-size:34px}.hub-section-head p{margin-top:8px}.tiles-grid{gap:16px}.forest-library-intro{padding-top:12px}.forest-library-intro h1{font-size:33px}.forest-category-nav{gap:8px}.forest-category-nav a{padding:10px 13px;font-size:13px}}
@media(max-width:380px){.forest-logo{font-size:19px}.forest-header .nav{gap:8px}.forest-intro h1{font-size:34px}.forest-category h3{font-size:28px}.forest-category{padding-left:18px}.forest-category img{width:55%;right:-2%}.forest-category-description{max-width:160px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.forest-category:hover,.forest-category:focus-visible,.forest-category:hover img,.forest-category:focus-visible img,.gtile:hover,.gtile:hover .orb{transform:none!important}}
:root{--board:#23573f;--tray:linear-gradient(145deg,#cbaa74,#a17b4d);--tray-edge:#7a5b35}.forest-play{display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px;color:var(--select);margin-top:auto;padding-top:5px}.forest-play svg{width:17px;height:17px}.gtile-foot{margin-top:0;border-top:1px solid var(--line);opacity:.9}.forest-breadcrumb{display:flex;gap:9px;align-items:center;font-size:13px;color:var(--muted);margin-bottom:22px;flex-wrap:wrap}.forest-breadcrumb a{min-height:30px;display:flex;align-items:center;text-underline-offset:4px}.ng-cell.given,:root[data-theme=dark] .ng-cell.given{background:var(--surface-2);color:var(--text)}.bg-tray{background:linear-gradient(145deg,#d6b07b,#a58250);border-color:#f6e6c9;box-shadow:inset 0 2px 0 #fff9,0 8px 0 #795c36,0 19px 30px #4b412530;backdrop-filter:none;-webkit-backdrop-filter:none}.bt-stage{border-color:var(--line)}
/* Override the former compact header's display:contents and child ordering. */
.forest-breadcrumb{gap:8px!important;font-size:12px!important;margin-bottom:4px!important}.forest-breadcrumb a{min-height:24px!important}.game-page>.forest-breadcrumb+.game-head{padding-top:2px}
.forest-header .nav{display:flex!important;flex:none;align-items:center}.forest-header .forest-logo{white-space:nowrap;flex:none}.forest-header .nav a{order:0;white-space:nowrap}.forest-header .nav .theme-toggle{order:0;width:44px!important;height:44px!important;min-width:44px;flex:none;margin:0}
:root{--control-border:#819076}:root[data-theme=dark]{--control-border:#93a986}.input,select,input[type=text],input[type=number],.ch-controls select,.ch-repairs input{border-color:var(--control-border)}.btn-outline,.btn-quiet{border-color:var(--control-border)!important}
.forest-header .wrap{justify-content:space-between!important}@media(min-width:701px) and (max-width:900px){.forest-category-grid{grid-template-columns:1fr}.forest-category{min-height:228px}.forest-category h3{font-size:34px}.forest-category img{width:48%;right:0}.forest-category-description{font-size:16px;max-width:280px}}
.ch-token.selected,:root[data-theme=dark] .ch-token.selected{background:linear-gradient(145deg,#c4d8b5,#9bb78f);color:#103c2f;border-color:#d9e6cc}
/* Category art stays within its card; button arrow is fixed-size and contained. */
.forest-category{overflow:hidden;isolation:isolate}.forest-category-copy{z-index:2;min-width:0}.forest-category img{max-width:55%;height:100%;top:0;right:0;object-fit:contain;z-index:1}.forest-explore{box-sizing:border-box;width:max-content;max-width:100%;min-width:0;gap:14px;padding:12px 20px;white-space:nowrap;overflow:hidden;flex-shrink:0}.forest-explore svg{display:block;flex:0 0 18px;width:18px;height:18px;max-width:18px;max-height:18px}
@media(max-width:400px){.forest-category{min-height:226px;padding:22px 16px}.forest-category-copy{width:58%}.forest-category h3{font-size:25px;white-space:normal}.forest-category img{max-width:48%;right:0}.forest-explore{font-size:13px;padding:11px 14px;gap:10px}}

.footer-family-note{max-width:1112px;margin:-8px auto 0;padding:0 18px 22px;color:var(--muted);font-size:12px;line-height:1.5;text-align:center}


.forest-intro .forest-value-props{font-size:15px;color:var(--muted);margin:18px 0 0;max-width:680px}
.forest-value-props b{color:var(--text)}
.forest-hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}.forest-hero-actions .btn{white-space:nowrap;flex:none}.forest-hero-actions .btn svg{display:block;flex:none;width:20px;height:20px}
.forest-intro .forest-new-here{font-size:15px;margin-top:14px;max-width:680px}
.hdr-search{position:relative;flex:1 1 240px;max-width:320px;min-width:0;margin-left:auto}
.hdr-search .search-box{min-height:44px;padding:0 12px;gap:8px;border-radius:22px;max-width:none}
.hdr-search .search-box svg{width:18px;height:18px}
.hdr-search .search-box input{font-size:15px;min-height:40px}
.hdr-search .search-results{left:0;width:100%;min-width:280px}
@media(max-width:700px){.hdr-search{order:3;flex:1 1 100%;max-width:none;margin-left:0}.hdr-search .search-results{min-width:0}}



.forest-brain img{width:54%;right:0;top:4%}.hub-group-head{font-size:20px;margin:30px 0 12px;display:flex;align-items:baseline;gap:10px}.hub-group-head .muted{font-size:13px;font-weight:600}.hub-group-nav{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 6px}.hub-group-nav a{border:1px solid var(--line);padding:9px 14px;border-radius:8px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;font-size:14px}.hub-group-nav a:hover{background:var(--slot)}
.hub-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:10px 0 6px}.hub-filters .chip{border:1px solid var(--line);background:var(--surface);color:var(--text);padding:9px 14px;border-radius:999px;min-height:44px;font:600 14px var(--body);cursor:pointer}.hub-filters .chip:hover{background:var(--slot)}.hub-filters .chip.is-on{background:#0e432f;color:#fffdf5;border-color:#477c5e}.gtile[hidden],.tiles-grid[hidden],.hub-group-head[hidden]{display:none!important}
.forest-home .forest-category h3{font-size:clamp(30px,3.2vw,40px);white-space:normal}.forest-home .forest-category-description{font-size:18px;max-width:250px}@media(max-width:700px){.forest-home .forest-category h3{font-size:30px}.forest-home .forest-category-description{font-size:16px;max-width:none}}

/* Brain Rush: category marked Coming soon */
.forest-soon-chip{background:linear-gradient(#e9c65f,#c99a2e);border-color:#f3dc92;color:#3a2606;box-shadow:inset 0 2px 0 #ffffff66,0 4px 0 #8a6416,0 7px 10px #5a3f0e30;min-width:0;gap:0;pointer-events:none}
.forest-rush:hover .forest-soon-chip,.forest-rush:active .forest-soon-chip,.forest-memorylane:hover .forest-soon-chip,.forest-memorylane:active .forest-soon-chip{transform:none}
.forest-category .forest-soon-chip{background:linear-gradient(#e9c65f,#c99a2e);border-color:#f3dc92;color:#3a2606;box-shadow:inset 0 2px 0 #ffffff66,0 4px 0 #8a6416,0 7px 10px #5a3f0e30;min-width:0;gap:0;pointer-events:none}

:root[data-palette] .forest-category .forest-soon-chip,:root[data-theme=dark] .forest-category .forest-soon-chip{background:linear-gradient(#e9c65f,#c99a2e)!important;border-color:#f3dc92!important;color:#3a2606!important}
@media(min-width:701px){.forest-langlab .forest-category-copy{width:50%}.forest-langlab .forest-category img{max-width:46%}}
/* Language Lab + Throwback Trivia: keep the heading clear of the artwork at every width */
.forest-langlab .forest-category-copy,.forest-memorylane .forest-category-copy{width:50%}
.forest-langlab .forest-category img,.forest-memorylane .forest-category img{width:46%;max-width:46%;right:0}
.forest-home .forest-langlab h3,.forest-home .forest-memorylane h3{font-size:clamp(24px,2.5vw,34px);white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){.forest-home .forest-langlab h3,.forest-home .forest-memorylane h3{font-size:clamp(22px,6.4vw,28px)}.forest-langlab .forest-category-copy,.forest-memorylane .forest-category-copy{width:52%}.forest-langlab .forest-category img,.forest-memorylane .forest-category img{width:44%;max-width:44%}}

/* /css/color-modes.css */
/* Three independent palettes, each with an airy day and a lighter night treatment. */
:root,[data-palette=forest]{--mode-bg:#faf7ef;--mode-surface:#fffdf7;--mode-surface2:#ede9dd;--mode-ink:#103c2f;--mode-muted:#53634f;--mode-line:#d5d4c3;--action-hi:#276e4e;--action-lo:#10452f;--action-edge:#0b3522;--action-border:#538568;--action-ink:#fffdf5;--mode-soft:#e4edda;--mode-soft-edge:#a1b890;--mode-selection:#b9d0a6;--mode-selection-ink:#123b29;--puzzle-fill:#739868;--mode-rim:#c6c8b3;--mode-shade:#514b3426;--mode-focus:#176344;--mode-input:#819076;--mode-honey:#c39a64;--mode-tray-hi:#dfc390;--mode-tray-lo:#b28c58;--mode-tray-edge:#7a5b35}
:root[data-palette=ocean]{--mode-bg:#f3faf9;--mode-surface:#ffffff;--mode-surface2:#e5f0ef;--mode-ink:#123342;--mode-muted:#486570;--mode-line:#bfd5d5;--action-hi:#16808d;--action-lo:#005b69;--action-edge:#00444f;--action-border:#499eaa;--action-ink:#ffffff;--mode-soft:#d6eeee;--mode-soft-edge:#94bdc1;--mode-selection:#a4d6d6;--mode-selection-ink:#113c46;--puzzle-fill:#4399a4;--mode-rim:#aabfc0;--mode-shade:#254a5528;--mode-focus:#006776;--mode-input:#718e93;--mode-honey:#cbb28a;--mode-tray-hi:#c4dedd;--mode-tray-lo:#86b0b1;--mode-tray-edge:#527f84}
:root[data-palette=terracotta]{--mode-bg:#fcf6ed;--mode-surface:#fffaf2;--mode-surface2:#f0e2d0;--mode-ink:#48291e;--mode-muted:#795747;--mode-line:#dac8b1;--action-hi:#b84f30;--action-lo:#8c321d;--action-edge:#692416;--action-border:#ce7956;--action-ink:#fffaf3;--mode-soft:#f1dfc7;--mode-soft-edge:#c8aa89;--mode-selection:#e9c69f;--mode-selection-ink:#48291e;--puzzle-fill:#b86640;--mode-rim:#cbb297;--mode-shade:#6a402730;--mode-focus:#9d3d22;--mode-input:#a18168;--mode-honey:#be8f5d;--mode-tray-hi:#e4c59b;--mode-tray-lo:#c28d5e;--mode-tray-edge:#8d5938}
:root[data-theme=dark][data-palette=forest]{--mode-bg:#30473c;--mode-surface:#405c4c;--mode-surface2:#496653;--mode-ink:#fff9e9;--mode-muted:#e0e9d6;--mode-line:#82967c;--action-hi:#cee2b8;--action-lo:#b0cd97;--action-edge:#73905f;--action-border:#deedcb;--action-ink:#163421;--mode-soft:#526d55;--mode-soft-edge:#8da280;--mode-selection:#c1d9ab;--mode-selection-ink:#173923;--puzzle-fill:#a7c28f;--mode-rim:#203d2d;--mode-shade:#132e2450;--mode-focus:#e1f1c9;--mode-input:#a9b9a0;--mode-tray-hi:#a1ad88;--mode-tray-lo:#73866a;--mode-tray-edge:#425d43}
:root[data-theme=dark][data-palette=ocean]{--mode-bg:#2a4652;--mode-surface:#365965;--mode-surface2:#406672;--mode-ink:#f2ffff;--mode-muted:#d7edf0;--mode-line:#7fabb3;--action-hi:#bce6e5;--action-lo:#96ced1;--action-edge:#4d909b;--action-border:#d6f0ef;--action-ink:#133842;--mode-soft:#456c76;--mode-soft-edge:#82afb7;--mode-selection:#b4dfe0;--mode-selection-ink:#123a45;--puzzle-fill:#91cdd0;--mode-rim:#1c3e49;--mode-shade:#112d3850;--mode-focus:#c2f2f0;--mode-input:#a5c9cf;--mode-tray-hi:#87b6bb;--mode-tray-lo:#5c8c95;--mode-tray-edge:#2e5d69}
:root[data-theme=dark][data-palette=terracotta]{--mode-bg:#503e38;--mode-surface:#674d41;--mode-surface2:#735647;--mode-ink:#fff9eb;--mode-muted:#f2dfcd;--mode-line:#ae8e77;--action-hi:#f2cda6;--action-lo:#e6b88b;--action-edge:#aa764d;--action-border:#ffe1be;--action-ink:#48291e;--mode-soft:#7d604d;--mode-soft-edge:#b99778;--mode-selection:#f0c99f;--mode-selection-ink:#48291e;--puzzle-fill:#e1ac7d;--mode-rim:#3e2d26;--mode-shade:#2b181550;--mode-focus:#ffdab3;--mode-input:#d2b39a;--mode-tray-hi:#c4a07d;--mode-tray-lo:#9e7655;--mode-tray-edge:#654735}
:root[data-palette]{--bg:var(--mode-bg);--surface:var(--mode-surface);--surface-2:var(--mode-surface2);--text:var(--mode-ink);--muted:var(--mode-muted);--line:var(--mode-line);--select:var(--mode-focus);--accent:var(--action-lo);--accent-ink:var(--action-ink);--forest:var(--mode-ink);--chip:var(--mode-soft);--slot:var(--mode-soft);--glass:var(--mode-surface);--glass-strong:var(--mode-surface);--glass-edge:color-mix(in srgb,var(--mode-surface) 65%,white);--tile-top:var(--mode-surface);--tile-ink:var(--mode-ink);--tile-edge:var(--mode-rim);--control-border:var(--mode-input);--board:var(--action-lo);--tray:linear-gradient(145deg,var(--mode-tray-hi),var(--mode-tray-lo));--tray-edge:var(--mode-tray-edge);--glass-shadow:inset 0 2px 0 #ffffff55,0 4px 0 var(--mode-rim),0 12px 22px var(--mode-shade);--glass-shadow-hi:inset 0 2px 0 #ffffff77,0 6px 0 var(--mode-rim),0 17px 28px var(--mode-shade);--lift:inset 0 2px 0 #ffffff55,0 4px 0 var(--mode-rim),0 9px 15px var(--mode-shade);--ok:#176344}
:root[data-theme=dark][data-palette]{--ok:#dcf0c7;color-scheme:dark}
.forest-header .palette-bar{padding-top:0;padding-bottom:12px;justify-content:flex-end!important;gap:12px}.palette-title{font-size:12px;color:var(--muted);margin-right:4px}.palette-choices{display:flex;gap:8px}.palette-choices button{min-height:44px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--control-border);border-radius:9px;padding:8px 12px;background:var(--surface);color:var(--text);font:600 12px var(--body);cursor:pointer;box-shadow:inset 0 1px 0 #ffffff66,0 2px 0 var(--mode-rim);transition:transform 120ms,background 180ms,box-shadow 180ms}.palette-choices button[aria-pressed=true]{background:var(--mode-soft);border:2px solid var(--select);padding:7px 11px;box-shadow:inset 0 1px 0 #ffffff55,0 3px 0 var(--mode-rim)}.palette-choices button:hover{transform:translateY(-2px)}.palette-choices button:active{transform:translateY(2px);box-shadow:none}.palette-swatch{width:16px;height:16px;flex:none;border-radius:50%;box-shadow:inset 0 1px 1px #ffffff99,0 1px 2px #0003;border:1px solid #ffffff88}.swatch-forest{background:linear-gradient(135deg,#98b587,#19452e)}.swatch-ocean{background:linear-gradient(135deg,#9bd7d6,#006676)}.swatch-terracotta{background:linear-gradient(135deg,#edc99e,#aa4228)}.palette-check{visibility:hidden;font-size:12px}.palette-choices [aria-pressed=true] .palette-check{visibility:visible}.palette-short{display:none}
:root[data-palette] .forest-category,:root[data-theme=dark][data-palette] .forest-category{background:linear-gradient(145deg,var(--surface),var(--surface-2));border-color:var(--glass-edge);box-shadow:var(--glass-shadow)}:root[data-palette] .forest-category:hover,:root[data-palette] .forest-category:focus-visible{border-color:var(--select);box-shadow:var(--glass-shadow-hi)}:root[data-palette] .forest-category-description{color:var(--muted)}:root[data-palette] .forest-explore,:root[data-palette] .btn-primary{background:linear-gradient(var(--action-hi),var(--action-lo))!important;color:var(--action-ink)!important;border-color:var(--action-border)!important;box-shadow:inset 0 2px 0 #ffffff44,0 4px 0 var(--action-edge),0 8px 12px var(--mode-shade)!important}:root[data-palette] .btn-primary:hover{background:linear-gradient(color-mix(in srgb,var(--action-hi) 88%,white),var(--action-lo))!important}:root[data-palette] .btn-primary:active,:root[data-palette] .forest-category:active .forest-explore{box-shadow:inset 0 1px 0 #ffffff33,0 1px 0 var(--action-edge)!important}:root[data-palette] .gtile .orb{background:linear-gradient(145deg,var(--puzzle-fill),var(--action-lo))!important;border-color:var(--action-border);color:var(--action-ink);box-shadow:inset 0 2px 0 #ffffff77,0 3px 0 var(--action-edge),0 8px 12px var(--mode-shade)}:root[data-palette] .gtile:nth-child(3n+2) .orb{background:linear-gradient(145deg,#f8efd8,var(--mode-honey))!important;color:#14372c;border-color:#fff6df;box-shadow:inset 0 2px 0 #fff,0 3px 0 #a4875e,0 8px 12px var(--mode-shade)}:root[data-palette] .ch-token.selected{background:linear-gradient(145deg,color-mix(in srgb,var(--mode-selection) 80%,white),var(--mode-selection));color:var(--mode-selection-ink);border-color:var(--mode-soft-edge)}:root[data-palette] .ch-vessel .fill{background:linear-gradient(135deg,color-mix(in srgb,var(--puzzle-fill) 65%,white),var(--puzzle-fill))}:root[data-palette] .ch-vessel{border-color:var(--control-border);box-shadow:inset 3px 0 5px #ffffff66,0 5px 0 var(--mode-rim),0 13px 20px var(--mode-shade)}:root[data-palette] .bg-tray,:root[data-palette] .bg-board,:root[data-palette] .go-board{background:var(--tray);border-color:color-mix(in srgb,var(--mode-tray-hi) 75%,white);box-shadow:inset 0 2px 0 #ffffff66,0 7px 0 var(--tray-edge),0 18px 26px var(--mode-shade)}:root[data-palette] .bt-timebar span{background:linear-gradient(90deg,var(--puzzle-fill),var(--action-lo))}:root[data-palette] .bt-timebar.low span{background:linear-gradient(90deg,#f7c472,#c44739)}:root[data-palette] .wk-step.now,:root[data-palette] .wk-step.done,:root[data-palette] .wk-ic{background:linear-gradient(145deg,var(--action-hi),var(--action-lo));color:var(--action-ink)}:root[data-palette] .forest-cube path[fill="#23513d"]{fill:var(--action-hi)}:root[data-palette] .forest-cube path[fill="#123c2d"]{fill:var(--action-lo)}:root[data-palette] .forest-cube path[fill="#759477"]{fill:var(--puzzle-fill)}
/* Meaningful game states and team colors retain their identities. Palette affects material/rims. */
:root[data-palette] .ch-token:focus-visible,:root[data-palette] .domino:focus-visible,:root[data-palette] .ng-cell:focus-visible{outline:3px solid var(--select);outline-offset:3px}:root[data-palette] .domino.selected{outline-color:var(--select)}:root[data-palette] .ng-key{box-shadow:inset 0 1px 0 #ffffff55,0 3px 0 var(--mode-rim),0 6px 9px var(--mode-shade)}:root[data-palette] .ng-key:active{transform:translateY(2px);box-shadow:0 1px 0 var(--mode-rim)}:root[data-palette] .ch-token:hover:not(:disabled){transform:translateY(-3px) rotate(-1deg);box-shadow:var(--glass-shadow-hi)}:root[data-palette] .ch-token:active:not(:disabled){transform:translateY(2px)}
@media(max-width:700px){.forest-header .palette-bar{padding:0 20px 10px;justify-content:center!important;flex-wrap:wrap}.palette-title{display:none}.palette-choices{width:100%;gap:8px}.palette-choices button{flex:1;min-width:0;padding:8px;gap:6px}.palette-choices button[aria-pressed=true]{padding:7px}.palette-full{display:none}.palette-short{display:inline}.palette-swatch{width:14px;height:14px}.palette-check{font-size:10px}.forest-header .wrap:first-child{padding-bottom:16px}}
@media(prefers-reduced-motion:reduce){.palette-choices button{transition:none}.palette-choices button:hover,:root[data-palette] .ch-token:hover:not(:disabled){transform:none}}
@keyframes mode-feedback-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:no-preference){.ch-feedback:not(:empty){animation:mode-feedback-in 180ms ease-out}.ch-display .ch-glass{animation:mode-feedback-in 180ms ease-out}}
/* Card Flash: theme the actual playing cards, leaving success/error/reveal states intact. */
:root[data-palette] .cf-card:not(.ok):not(.bad):not(.show) .cf-front{background:linear-gradient(145deg,var(--action-hi),var(--action-lo));color:var(--action-ink);box-shadow:inset 0 2px 1px #ffffff77,0 4px 0 var(--action-edge),0 10px 16px var(--mode-shade)}:root[data-palette] .cf-back::after{background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--puzzle-fill) 70%,white),var(--action-lo));box-shadow:inset 0 2px 1px #ffffff77,0 2px 3px var(--mode-shade)}

/* /css/game-depth.css */
/* Raised, readable playing surfaces. No perspective distortion or overlays over hit targets. */
.game-head .head-tools #quit-game{flex:0 0 auto;white-space:nowrap}
.game-session-tools{display:flex;justify-content:flex-end;margin:0 0 16px;gap:12px}.game-session-tools .btn{min-height:44px}.quit-dialog{max-width:490px;width:calc(100% - 32px);padding:28px;border:1px solid var(--glass-edge);border-radius:22px;background:linear-gradient(145deg,var(--surface),var(--surface-2));color:var(--text);box-shadow:inset 0 2px #ffffff55,0 8px 0 var(--tile-edge),0 24px 65px #0005}.quit-dialog::backdrop{background:#10241dcc;backdrop-filter:blur(5px)}.quit-dialog p{line-height:1.65;color:var(--muted);margin:16px 0 24px}.quit-dialog .btn-row{flex-wrap:wrap}
.game-depth :is(.tp-board,.be-board,.ns-board,.ss-board,.h5-board,.cl-board,.pl-board,.mc-board,.sq-board,.ct-board,.sh-board,.cg-board,.lf-board,.il-board,.wc-grid,.cc-grid,.cw-grid,.ng-grid,.lg-gridwrap,.ws-board,.ch-stage,.bt-stage,.bg-tray,.tt-arena,.rs-board,.board-wrap){box-shadow:inset 0 2px 2px #ffffff66,inset 0 -3px 7px #13291e18,0 7px 0 var(--tile-edge),0 13px 0 -3px var(--line),0 22px 30px #16291d26;border-color:var(--glass-edge)}
.game-depth :is(.bt-stage,.ch-stage){background:linear-gradient(155deg,var(--surface),var(--surface-2));border-radius:22px}
.game-depth :is(.bg-grid,.ml-board,.go-board,.bg-board,.dm-table){box-shadow:inset 0 3px 5px #fff7,inset 0 -5px 10px #33261433,0 5px 0 var(--tray-edge,#6e593d),0 12px 18px #17291e30}
/* Inlaid mill lines, concave sockets and polished domed counters. */
.game-depth .ml-board{background:radial-gradient(ellipse at 24% 10%,#fff2,transparent 65%),repeating-linear-gradient(4deg,#ffffff09 0 1px,transparent 1px 9px),linear-gradient(145deg,#efd6a4,#c69b5e)}
.game-depth .ml-lines{filter:drop-shadow(0 1px 0 #fff9) drop-shadow(0 -1px 1px #563d2470)}
.game-depth .ml-pt::before{background:radial-gradient(circle at 60% 75%,#b78b48,#5e421f);box-shadow:inset 0 2px 3px #382c1b80,0 1px 1px #fff9}
.game-depth .my-turn .ml-pt.can:not(:has(.pc))::before{background:radial-gradient(circle at 35% 25%,#ffecac,#daa62b);box-shadow:inset 0 1px 1px #fff9,0 0 0 4px #e6bd5744,0 3px 4px #3a2e2033}
.game-depth .pc{background:radial-gradient(circle at 32% 24%,var(--hi),var(--base) 43%,var(--lo) 85%);box-shadow:inset 0 2px 2px #ffffff99,inset 0 -3px 5px #0002,0 4px 0 var(--edge),0 8px 9px #0004}
/* Hidden Rank Strategy: subtle frosted panes instead of flat grey squares. Team hues stay unchanged. */
.game-depth .sk-sq.a{background:linear-gradient(140deg,color-mix(in srgb,var(--surface) 85%,#fff),color-mix(in srgb,var(--surface-2) 85%,#719eac));box-shadow:inset 1px 1px #ffffff55,inset -1px -1px #203d4926}
.game-depth .sk-sq.b{background:linear-gradient(140deg,color-mix(in srgb,var(--surface-2) 70%,#8fa5a8),color-mix(in srgb,var(--slot) 70%,#779197));box-shadow:inset 1px 1px #ffffff33,inset -1px -1px #203d4933}
.game-depth .sk-sq.cloudy{background:linear-gradient(145deg,#65777f,#374d5b);box-shadow:inset 0 3px 6px #17283666}
.game-depth .sk-pc{filter:drop-shadow(0 3px 2px #13233340)}
/* Go retains a solid warm playing surface: hairline engravings and dimensional stones. */
.game-depth .go-board{background:radial-gradient(ellipse at 25% 10%,#fff3,transparent 60%),repeating-linear-gradient(3deg,#ffffff08 0 1px,transparent 1px 8px),linear-gradient(145deg,#e9d4ab,#be965f);border:1px solid #f8e5bf}
.game-depth .go-cell{filter:drop-shadow(0 1px 0 #fff3)}
.game-depth .go-cell .stone{box-shadow:inset 0 2px 3px #cce3ff66,inset 0 -3px 5px #0005,0 4px 0 #152538,0 8px 8px #17273755}
.game-depth .go-cell .stone.white{box-shadow:inset 0 2px 3px #fff,inset 0 -3px 5px #a3afbd66,0 4px 0 #99a6b6,0 8px 8px #17273755}
/* Light edge bevels keep dense number/word grids readable at phone size. */
.game-depth :is(.ng-cell,.cw-cell,.cc-cell,.ns-cell,.wc-tile,.ch-token,.tp-cell){box-shadow:inset 0 1px 0 #ffffff66,inset 0 -2px 2px #10281c1a}
.game-depth :is(.ch-token,.domino,.bg-die){box-shadow:inset 0 2px 2px #ffffff77,inset 0 -2px 4px #0002,0 4px 0 var(--tile-edge),0 8px 10px #17291e26}
@media(hover:hover){.game-depth :is(.ch-token,.domino,.bg-die):enabled:hover{filter:brightness(1.06)}.game-depth :is(.ng-cell,.cw-cell,.cc-cell,.ns-cell,.tp-cell):enabled:hover{box-shadow:inset 0 2px 3px #fff7,inset 0 0 0 2px var(--select)}}
.game-depth :is(.ch-token,.domino,.bg-die):enabled:active{translate:0 2px}
:root[data-theme=dark] .game-depth :is(.bg-tray,.tt-arena,.ch-stage,.bt-stage){box-shadow:inset 0 2px 2px #ffffff22,inset 0 -3px 8px #0002,0 7px 0 var(--tile-edge),0 20px 30px #0003}
@media(prefers-reduced-motion:reduce){.game-depth *{scroll-behavior:auto!important}.game-depth :is(.ch-token,.domino,.bg-die):enabled:active{translate:none}}
.game-depth :is(#np-grid,#cs-grid,#sg-grid,.rd-card,.nx-card,.mm-card,.gf-board,.cf-board){box-shadow:inset 0 2px 2px #ffffff66,inset 0 -3px 6px #13291e18,0 6px 0 var(--tile-edge),0 18px 25px #16291d26;border-color:var(--glass-edge)}
.game-depth :is(.np-cell,.cs-cell,.sg-cell){box-shadow:inset 0 1px 0 #ffffff77,inset 0 -2px 3px #10281c22}
.game-depth :is(.gf-tile,.gf-pad,.it-pad,.ns-pad,.ss-pad,.ls-tile):not(.correct):not(.wrong){box-shadow:inset 0 2px 2px #ffffff77,inset 0 -3px 5px #0002,0 4px 0 var(--tile-edge),0 8px 10px #17291e26}
.game-depth :is(.ladder,.lo-orbit,.bx-board,.pp-board,.hx-board,.sp-board,.rd-board){border-radius:18px;box-shadow:inset 0 2px 2px #ffffff55,inset 0 -3px 5px #18332222,0 5px 0 var(--tile-edge),0 12px 20px #17291e26}
@media(max-width:600px){.forest-header>.wrap:first-child{flex-wrap:wrap}.forest-header .nav{margin-left:auto;gap:8px;flex-wrap:wrap;max-width:100%;justify-content:flex-end}.forest-header #global-sound-toggle{padding:9px 12px;min-height:44px}}
@media(max-width:380px){.forest-header .nav{width:100%}}
@media(max-width:600px){.game-depth .game-head{flex-wrap:wrap}.game-depth .head-tools{flex-wrap:wrap;max-width:100%}}
/* Animate the countdown badge, not a full-width overlay (which caused sideways scrolling). */
.game-depth .bt-count{width:160px;height:160px;max-width:75%;inset:0;margin:auto}

/* Solid material depth from the approved concept, without idle or hover dancing. */
.game-depth .bx-dot{background:radial-gradient(circle at 30% 22%,#b4d2e4,#476579 45%,#142b40 80%);box-shadow:inset 0 1px 1px #fff9,0 4px 0 #122437,0 7px 6px #0004;transform:translateZ(9px)}
.game-depth .bx-line:not(.on)::before{background:linear-gradient(180deg,#fff4db,#d4bf8f);box-shadow:inset 0 1px #fff,0 3px 0 #ae915e,0 5px 6px #372a2033}
.game-depth .ml-pt .pc{filter:drop-shadow(0 6px 4px #49301640)}
.game-depth .ch-sq{box-shadow:inset 1px 1px #ffffff66,inset -1px -2px #24324630}
.game-depth .ch-pc svg{filter:drop-shadow(0 1px 0 #7b756b) drop-shadow(0 3px 0 #4b4841) drop-shadow(2px 6px 3px #19232e70)}
.game-depth .ch-pc.w svg{filter:drop-shadow(0 1px 0 #d9d0b7) drop-shadow(0 3px 0 #aaa18b) drop-shadow(2px 6px 3px #19232e70)}
/* Every game family gets an actual dimensional play surface, not just a card outline. */
.game-depth :is(.bt-stage,.ch-stage,.rd-card,.mm-card,.nx-card,.ladder,.lo-orbit){background:radial-gradient(ellipse at 18% 0%,#ffffff25,transparent 65%),linear-gradient(150deg,var(--surface),var(--surface-2));border:1px solid var(--glass-edge);border-radius:20px;box-shadow:inset 0 2px 2px #ffffff77,inset 0 -4px 7px #13291e20,0 6px 0 var(--tile-edge),0 18px 26px #16291d26}
.game-depth :is(.bg-tray,.board-wrap,.rs-board,.tt-arena){box-shadow:inset 0 3px 2px #ffffff99,inset 0 -4px 6px #32251930,0 7px 0 var(--tray-edge,var(--tile-edge)),0 11px 0 -2px var(--tile-edge),0 24px 30px #17291e33}
.game-depth :is(.bg-grid,.bx-board,.ml-board,.rd-grid,.gf-field,.gf-tray){box-shadow:inset 0 2px 3px #fff6,inset 0 -4px 6px #17291e33,0 4px 0 var(--tile-edge),0 10px 16px #17291e26}
.game-depth :is(.ng-cell,.lt-cell,.cw-cell,.cc-cell,.ns-cell,.tp-cell,.pl-cell,.gf-card,.cf-card,.ls-tile,.gf-choice,.wc-tile,.ch-token){box-shadow:inset 1px 2px 2px #ffffff66,inset -1px -2px 3px #13291e26,0 2px 0 var(--tile-edge)}
.game-depth :is(.ch-sq,.jk-sq,.of-cell,.pn-cell){box-shadow:inset 1px 1px #ffffff55,inset -1px -2px #142a3326}
.game-depth .hx-cell{background-image:linear-gradient(145deg,#ffffff22,transparent 40%,#00000022);box-shadow:inset 0 2px 2px #ffffff66,inset 0 -5px 4px #142a3333}
.game-depth .hx-cell::after{background:linear-gradient(145deg,#ffffff44,transparent 65%);filter:none;pointer-events:none}
.game-depth .sp-tri{filter:drop-shadow(0 2px 1px #57482c66)}
.game-depth .pp-stones i{box-shadow:inset 0 1px 1px #fff9,0 2px 0 #3c281e66,0 4px 3px #21170e55}
.game-depth :is(.gf-sphere,.gf-bead){box-shadow:inset 0 2px 2px #ffffff88,inset -3px -4px 5px #14374f55,0 3px 0 #214d6355,0 6px 6px #112f4140}
/* Fixed boards; feedback lives on the objects, so aiming stays stable. */
@media(hover:hover){.game-depth :is(.ch-sq.can,.ml-pt.can,.bg-cell.can,.sp-hole.can):hover :is(.pc,.ch-pc){filter:brightness(1.12) drop-shadow(0 4px 3px #142a3344)}.game-depth :is(.gf-choice,.gf-pad,.gf-tile,.cf-card,.wc-tile,.ch-token):enabled:hover{filter:brightness(1.06);outline:2px solid var(--select);outline-offset:2px}}
.game-depth :is(.gf-choice,.gf-pad,.gf-tile,.cf-card,.wc-tile,.ch-token):enabled:active{translate:0 2px;filter:brightness(.96)}
.game-depth :is(.ch-sq,.ml-pt,.bg-cell):active :is(.pc,.ch-pc){scale:.96}
@media(prefers-reduced-motion:reduce){.game-depth :is(.gf-choice,.gf-pad,.gf-tile,.cf-card,.wc-tile,.ch-token):enabled:active{translate:none}.game-depth :is(.ch-sq,.ml-pt,.bg-cell):active :is(.pc,.ch-pc){scale:none}}
.game-depth .hx-cell{background-image:linear-gradient(145deg,var(--surface),var(--surface-2))}
.game-depth .ch-sq.sel{box-shadow:inset 0 0 0 4px #f5c542,inset 0 -3px 4px #0002}
/* Quit sits in the title row (game-session.js); keep that row tight and on one line where it fits */
.game-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.game-titlebar h1{margin-block:0;min-width:0}
.game-titlebar #quit-game,.head-tools #quit-game{min-height:40px;padding-inline:16px;flex:0 0 auto;white-space:nowrap}
.game-head{padding-top:6px!important;margin-bottom:14px!important}.play-head{padding-top:8px}.forest-breadcrumb{margin-bottom:6px}

/* /css/header-refinement.css */
/* One compact color control and a tactile header across every page. */
.forest-header .wrap:first-child{align-items:center;overflow:visible}
.forest-header .nav{gap:9px;flex-wrap:wrap;justify-content:flex-end}
.forest-header .nav>a{padding:9px 13px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(155deg,color-mix(in srgb,var(--surface) 88%,white),var(--surface-2));box-shadow:inset 0 2px 1px #ffffff9c,0 3px 0 var(--mode-rim),0 7px 12px var(--mode-shade);font-weight:700;text-decoration:none;transition:transform 150ms ease,box-shadow 150ms ease,background 150ms ease}
.forest-header .nav>a:hover,.forest-header .nav>a:focus-visible{background:linear-gradient(155deg,var(--surface),var(--mode-soft));color:var(--text);text-decoration:none;transform:translateY(-2px);box-shadow:inset 0 2px 1px #ffffffa0,0 5px 0 var(--mode-rim),0 11px 16px var(--mode-shade)}
.forest-header .nav>a:active{transform:translateY(2px);box-shadow:inset 0 1px 1px #ffffff80,0 1px 0 var(--mode-rim),0 3px 6px var(--mode-shade)}
.forest-header .nav .theme-toggle{margin:0}
.forest-header .forest-logo{display:inline-flex;align-items:center;gap:10px;text-decoration:none;perspective:500px}
.forest-header .forest-logo:hover{color:var(--text)}
.forest-header .brand-mark{position:relative;display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid color-mix(in srgb,var(--mode-rim) 70%,white);border-radius:13px;background:linear-gradient(145deg,#ffffffca,var(--mode-soft) 75%,var(--mode-surface2));box-shadow:inset 0 2px 1px #ffffffdd,inset 0 -2px 4px #00000012,0 4px 0 var(--mode-rim),0 9px 13px var(--mode-shade);transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-style:preserve-3d;transition:transform 220ms ease,box-shadow 220ms ease}
.forest-header .brand-mark:before{content:"";position:absolute;inset:2px;border-radius:11px;background:radial-gradient(circle at var(--gx,25%) 5%,#ffffffae,transparent 55%);pointer-events:none}
.forest-header .brand-mark .forest-cube{position:relative;width:34px;height:37px;transform:translateZ(12px);filter:drop-shadow(1px 5px 2px #0004)}
.forest-header .brand-name{font-weight:800;letter-spacing:-.045em;text-shadow:0 1px 0 color-mix(in srgb,var(--surface) 80%,white),1px 2px 0 color-mix(in srgb,var(--mode-rim) 40%,transparent),2px 4px 5px var(--mode-shade)}
.forest-header .forest-logo:hover .brand-mark,.forest-header .forest-logo:focus-visible .brand-mark{box-shadow:inset 0 2px 1px #ffffffee,inset 0 -2px 4px #00000012,0 6px 0 var(--mode-rim),0 13px 18px var(--mode-shade)}
.forest-header .palette-menu{position:relative;flex:none;z-index:30;font:700 13px var(--body);color:var(--text)}
.forest-header .palette-trigger{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--control-border);border-radius:50%;background:linear-gradient(155deg,color-mix(in srgb,var(--surface) 85%,white),var(--surface-2));box-shadow:inset 0 2px 1px #ffffff9c,0 3px 0 var(--mode-rim),0 7px 12px var(--mode-shade);cursor:pointer;list-style:none;transition:transform 150ms ease,box-shadow 150ms ease}
.forest-header .palette-trigger::-webkit-details-marker{display:none}
.forest-header .palette-trigger:hover,.forest-header .palette-trigger:focus-visible{transform:translateY(-2px);box-shadow:inset 0 2px 1px #ffffffaa,0 5px 0 var(--mode-rim),0 11px 16px var(--mode-shade)}
.forest-header .palette-trigger:active{transform:translateY(2px);box-shadow:inset 0 1px 1px #ffffff80,0 1px 0 var(--mode-rim)}
.forest-header .palette-chevron{margin-left:auto;transition:transform 150ms ease}
.forest-header .palette-menu[open] .palette-chevron{transform:rotate(180deg)}
.forest-header .palette-current-swatch{width:20px;height:20px;margin:0}
.forest-header .header-sound-toggle{width:44px;height:44px;min-width:44px;margin:0}
.forest-header .header-sound-toggle .icon-off{display:none}
.forest-header .header-sound-toggle[aria-pressed=false] .icon-on{display:none}
.forest-header .header-sound-toggle[aria-pressed=false] .icon-off{display:block}
.forest-header .palette-choices{position:absolute;top:calc(100% + 9px);right:0;display:flex;flex-direction:column;width:211px;gap:5px;padding:7px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:inset 0 2px 1px #ffffffaa,0 4px 0 var(--mode-rim),0 16px 30px var(--mode-shade)}
.forest-header .palette-choices button{width:100%;justify-content:flex-start;white-space:nowrap;min-height:42px;box-shadow:none}
.forest-header .palette-choices button[aria-pressed=true]{box-shadow:inset 0 1px 0 #ffffff88}
.forest-header .palette-choices .palette-full{display:inline}
.forest-header .palette-choices .palette-short{display:none}
.forest-header .palette-choices .palette-check{margin-left:auto}
:root[data-theme=dark] .forest-header .nav>a,:root[data-theme=dark] .forest-header .palette-trigger,:root[data-theme=dark] .forest-header .brand-mark{box-shadow:inset 0 2px 1px #ffffff3a,0 3px 0 var(--mode-rim),0 7px 12px var(--mode-shade)}
@media(max-width:900px){.forest-header .wrap:first-child{flex-wrap:wrap}.forest-header .nav{margin-left:auto}.forest-header .nav>a{font-size:13px}}
@media(max-width:700px){.forest-header .wrap:first-child{padding-bottom:14px}.forest-header .nav{width:auto;margin-left:auto;justify-content:flex-end;gap:7px}.forest-header .forest-logo{margin-right:auto}.forest-header .brand-mark{width:42px;height:42px}.forest-header .brand-mark .forest-cube{width:30px;height:33px}.forest-header .palette-trigger,.forest-header .header-sound-toggle{width:42px;height:42px;min-width:42px}.forest-header .palette-choices{right:0}.forest-header .nav .theme-toggle{width:42px!important;height:42px!important;min-width:42px}}
@media(max-width:390px){.forest-header .nav{gap:5px}}
@media(prefers-reduced-motion:reduce){.forest-header .nav>a,.forest-header .palette-trigger,.forest-header .brand-mark,.forest-header .palette-chevron{transition:none}.forest-header .nav>a:hover,.forest-header .palette-trigger:hover{transform:none}}

/* /css/header-menu.css */
/* Category menu in the header: a sliding tile, hopping letters, a dropdown that pops in. */
.forest-header .cats{display:flex;align-items:center;gap:2px;font:600 15px var(--body,'DM Sans',system-ui,sans-serif);position:relative;isolation:isolate;margin-left:10px;flex:none}
.forest-header .cats>a,.forest-header .cats .more>button{position:relative;z-index:1;display:inline-block;text-decoration:none;padding:8px 10px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;cursor:pointer;white-space:nowrap;box-shadow:none;transition:color .2s}
.forest-header .cats>a:hover,.forest-header .cats>a:focus-visible,.forest-header .cats>a.cur,.forest-header .cats .more>button:hover,.forest-header .cats .more>button[aria-expanded=true]{color:var(--text);background:none;transform:none;box-shadow:none}
.forest-header .cats>a.cur{font-weight:800}
.forest-header .cats .ink{position:absolute;left:0;top:0;width:0;height:0;border-radius:999px;z-index:0;opacity:0;pointer-events:none;background:linear-gradient(145deg,color-mix(in srgb,var(--surface,#fffdf7) 55%,var(--mode-soft,#f3dfae)),var(--mode-soft,#f3dfae));box-shadow:0 3px 0 var(--mode-rim,#c9b88f),0 8px 12px var(--mode-shade,#5c3f1c26);transition:transform .5s cubic-bezier(.34,1.56,.64,1),width .5s cubic-bezier(.34,1.56,.64,1),height .3s,opacity .3s}
.forest-header .cats .ch{display:inline-block}
.forest-header .cats a:hover .ch,.forest-header .cats a:focus-visible .ch{animation:hdr-hop .5s calc(var(--i)*35ms) both}
@keyframes hdr-hop{0%,100%{transform:none}40%{transform:translateY(-6px) rotate(-5deg)}70%{transform:translateY(1px)}}
.forest-header .cats .more{position:relative}
.forest-header .cats .more>button{display:inline-flex;align-items:center}
.forest-header .cats .more>button svg{margin-left:5px;flex:none;transition:transform .3s cubic-bezier(.34,1.56,.64,1)}
.forest-header .cats .more>button[aria-expanded=true] svg{transform:rotate(180deg)}
.forest-header .cats .menu{position:absolute;top:calc(100% + 10px);left:0;z-index:40;min-width:200px;padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 14px 30px #0b1c1633;transform-origin:top left}
.forest-header .cats .menu:not([hidden]){animation:hdr-menu .3s cubic-bezier(.34,1.56,.64,1)}
.forest-header .cats .menu a,.forest-header .cats .menu .soonitem{display:block;padding:9px 12px;border-radius:10px;color:var(--text);text-decoration:none;font-weight:600;animation:hdr-tile .45s cubic-bezier(.34,1.56,.64,1) both}
.forest-header .cats .menu .soonitem{color:var(--muted);cursor:default;display:flex;align-items:center;justify-content:space-between;gap:12px}
.forest-header .cats .menu .soonitem em{font-style:normal;font-size:11px;font-weight:800;color:#3a2606;background:linear-gradient(#e9c65f,#c99a2e);border-radius:999px;padding:3px 9px;animation:hdr-twinkle 2.4s infinite}
@keyframes hdr-twinkle{50%{transform:scale(1.1) rotate(-3deg)}}
.forest-header .cats .menu>:nth-child(2){animation-delay:.05s}.forest-header .cats .menu>:nth-child(3){animation-delay:.1s}.forest-header .cats .menu>:nth-child(4){animation-delay:.15s}.forest-header .cats .menu>:nth-child(5){animation-delay:.2s}.forest-header .cats .menu>:nth-child(6){animation-delay:.25s}
.forest-header .cats .menu a:hover,.forest-header .cats .menu a:focus-visible{background:var(--mode-soft,#f3dfae)}
.forest-header .cats .menu a .soon{font-size:12px;color:var(--muted);margin-left:6px}
@keyframes hdr-menu{from{transform:scale(.9) translateY(-6px)}to{transform:none}}
@keyframes hdr-tile{from{transform:translateY(-14px) rotate(-4deg) scale(.9);opacity:0}to{transform:none;opacity:1}}
@media(min-width:1181px){.forest-header .wrap:first-child{flex-wrap:nowrap!important}.forest-header .hdr-search{flex:0 1 200px;min-width:150px;margin-left:12px}}
@media(max-width:1180px){
  .forest-header .wrap:first-child{flex-wrap:wrap!important}
  .forest-header .cats{order:3;width:100%;margin-left:0;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .forest-header .cats::-webkit-scrollbar{display:none}
  .forest-header .cats .more{display:none}
  .forest-header .cats .xtra{display:inline-block}
}
@media(min-width:1181px){.forest-header .cats .xtra{display:none}}
@media(prefers-reduced-motion:reduce){.forest-header .cats .menu .soonitem em{animation:none}.forest-header .cats .ink,.forest-header .cats .menu,.forest-header .cats .menu a{animation:none!important;transition:none!important}.forest-header .cats a:hover .ch{animation:none}}

/* search as an icon that opens on click, and the My list heart */
.forest-header .hdr-search{flex:none!important;width:44px;height:44px;max-width:none;min-width:0!important;margin-left:auto!important;position:relative;z-index:35}
.forest-header .hdr-search .search-box{position:absolute;right:0;top:0;width:44px;min-height:44px;height:44px;padding:0;gap:0;justify-content:center;overflow:hidden;cursor:pointer;transition:width .35s cubic-bezier(.34,1.2,.5,1),padding .25s}
.forest-header .hdr-search .search-box input{flex:0 0 0;width:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0;opacity:0;transition:opacity .2s}
.forest-header .hdr-search .search-box svg{flex:none;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
.forest-header .hdr-search .search-box:hover svg{transform:rotate(-14deg) scale(1.12)}
.forest-header .hdr-search:focus-within .search-box,.forest-header .hdr-search.has-q .search-box{width:min(280px,calc(100vw - 40px));padding:0 14px;gap:8px;justify-content:flex-start;cursor:text}
.forest-header .hdr-search:focus-within .search-box input,.forest-header .hdr-search.has-q .search-box input{flex:1 1 auto;width:auto!important;opacity:1}
.forest-header .hdr-search .search-results{left:auto;right:0;width:min(340px,calc(100vw - 40px))}
.forest-header .hdr-list{position:relative;flex:none;width:44px;height:44px;margin-left:10px;border:1px solid var(--control-border,var(--line));border-radius:50%;background:var(--surface);color:var(--text);display:grid;place-items:center;text-decoration:none;transition:transform .2s cubic-bezier(.34,1.56,.64,1)}
.forest-header .hdr-list:hover,.forest-header .hdr-list:focus-visible{transform:translateY(-2px) scale(1.06)}
.forest-header .hdr-list svg{transition:transform .3s}
.forest-header .hdr-list.has svg{color:#d7364a}.forest-header .hdr-list.has svg path{fill:currentColor}
.forest-header .hdr-list.bump svg{animation:hdr-beat .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes hdr-beat{0%{transform:scale(1)}35%{transform:scale(1.45) rotate(-8deg)}100%{transform:none}}
.forest-header .hdr-count{position:absolute;top:-4px;right:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d7364a;color:#fff;font:800 11px/19px var(--body,system-ui);text-align:center}
.forest-header .hdr-count[hidden]{display:none}
@media(hover:none){.forest-header .hdr-list{display:none}}
@media(max-width:1180px){.forest-header .hdr-search{order:2}.forest-header .hdr-list{order:2}}

/* /css/real-cards.css */
/* Realistic game cards: a tabletop close-up of each puzzle on top, one clear Play button below. Used by .gtile-real. */
.gtile.gtile-real{padding:0!important;gap:0;min-height:0;border-radius:14px;background:var(--surface)!important;border:1px solid var(--line);box-shadow:0 1px 2px #2a24140f,0 10px 26px #2a241419}
.gtile.gtile-real:hover,.gtile.gtile-real:focus-visible{transform:translateY(-3px);box-shadow:0 2px 4px #2a241414,0 18px 34px #2a241426}
:root[data-theme=dark] .gtile.gtile-real{border-color:#3b5443;box-shadow:0 1px 2px #0003,0 10px 26px #0005}
.gtile-real .done-mark,.gtile-real .shine{display:none!important}
.real-scene{position:relative;display:flex;align-items:center;justify-content:center;height:168px;overflow:hidden;isolation:isolate;container-type:inline-size;border-bottom:1px solid #00000014}
.real-scene:before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at 28% 0%,#fff3d84d,transparent 60%),radial-gradient(ellipse at 50% 120%,#0000002e,transparent 60%)}
.real-scene:after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:url(/art/grain.svg);opacity:.22;mix-blend-mode:overlay}
.real-art{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;transition:transform .4s var(--ease-out,ease),filter .3s}
.gtile-real:hover .real-art{transform:scale(1.04)}
@container (max-width:250px){.real-art{zoom:.84}}
@container (max-width:200px){.real-art{zoom:.66}}
@container (max-width:175px){.real-art{zoom:.56}}
.gtile.gtile-real{container-type:inline-size}
@container (max-width:235px){.real-foot{flex-direction:column;align-items:stretch}.real-play{justify-content:center}.real-meta{flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;text-align:left}.real-meta>*{white-space:nowrap}}
.real-body{display:flex;flex-direction:column;gap:7px;padding:16px 18px 18px;flex:1}
.real-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px}
.real-play{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border-radius:10px;background:#0e432f;color:#fffdf5;font-weight:700;font-size:14px;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff22,0 4px 10px #0e432f40;transition:transform var(--motion-press,.12s)}
.real-play svg{width:16px;height:16px}
.gtile-real:active .real-play{transform:translateY(2px)}
:root[data-theme=dark] .real-play{background:#bfd6a6;color:#122e22}
.real-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;color:var(--muted);text-align:right}
.real-meta .hub-status{font-weight:700;color:var(--select)}
.real-meta .xp-chip{background:none!important;padding:0;font-size:12px}
.real-stamp{display:none;position:absolute;z-index:4;top:12px;right:12px;padding:6px 12px;border-radius:999px;background:#fffdf7;color:#0e432f;font-weight:700;font-size:12px;box-shadow:0 4px 10px #0004}
.gtile-real.is-done .real-art,.gtile-real.is-soon .real-art{filter:saturate(.5) brightness(.8)}
.gtile-real.is-done .real-stamp,.gtile-real.is-soon .real-stamp{display:block}
.gtile-real.is-done .real-play{background:transparent;color:var(--text);border:1px solid var(--control-border,#819076);box-shadow:none}
@media(max-width:700px){.real-scene{height:132px}.real-body{padding:13px 13px 14px}.real-foot{flex-direction:column;align-items:stretch}.real-play{justify-content:center}.real-meta{flex-direction:row;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;text-align:left}.real-meta>*{white-space:nowrap}}
/* Surfaces (all scoped to .real-scene so game pages are never affected) */
.real-scene.bg-walnut{background:repeating-linear-gradient(92deg,#ffffff08 0 2px,transparent 2px 9px),linear-gradient(180deg,#5d3c25,#3b2415)}
.real-scene.bg-oak{background:repeating-linear-gradient(178deg,#ffffff0f 0 3px,transparent 3px 11px),linear-gradient(170deg,#caa576,#a27e50)}
.real-scene.bg-linen{background:repeating-linear-gradient(0deg,#ffffff0d 0 1px,transparent 1px 3px),repeating-linear-gradient(90deg,#0000000a 0 1px,transparent 1px 3px),linear-gradient(160deg,#d8c7a6,#b59c74)}
.real-scene.bg-felt{background:radial-gradient(ellipse at 40% 30%,#2f6e4e,#143826 80%)}
.real-scene.bg-slate{background:radial-gradient(ellipse at 40% 20%,#4b5651,#252c29 85%)}
.real-scene.bg-attic{background:repeating-linear-gradient(90deg,#00000026 0 2px,transparent 2px 58px),repeating-linear-gradient(91deg,#ffffff0a 0 2px,transparent 2px 7px),linear-gradient(175deg,#8a6a48,#5a4029)}
/* Letter tiles */
.real-scene .rt{display:inline-flex;align-items:center;justify-content:center;width:40px;height:44px;border-radius:5px;font:700 23px Georgia,'Times New Roman',serif;color:#2b2216;background:linear-gradient(170deg,#fffaf0,#e7dcc4);box-shadow:inset 0 1px 0 #fff,inset 0 -3px 0 #c9b893,0 2px 2px #0000004d,0 8px 12px #00000059}
.real-scene .rt.sm{width:31px;height:35px;font-size:18px}
.real-scene .rt.xs{width:30px;height:30px;font-size:16px;border-radius:4px;box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 #c9b893,0 2px 2px #0000004d,0 5px 8px #0000004d}
.real-scene .rt.g{background:linear-gradient(170deg,#e3eed9,#a9c39a)}
.real-scene .rt.y{background:linear-gradient(170deg,#fbe9c4,#d8b06c)}
.real-scene .rt.slot{background:#1f130a;box-shadow:inset 0 3px 6px #000a,0 1px 0 #ffffff1f}
.real-scene .rack{display:flex;gap:7px;padding:11px 11px 13px;border-radius:8px;background:linear-gradient(#4a2e1b,#2e1b0f);box-shadow:inset 0 2px 3px #0008,0 1px 0 #ffffff1a}
.real-scene .rack.tight{gap:4px;padding:9px}
.real-scene .rack.flat{padding:0;background:none;box-shadow:none;gap:4px}
/* Index cards */
.real-scene .icard{display:block;min-width:112px;padding:6px 10px;text-align:center;font:700 16px Georgia,serif;letter-spacing:3px;color:#2b2216;background:linear-gradient(175deg,#fffdf6,#efe6d2);border-radius:3px;box-shadow:0 1px 1px #0003,0 6px 10px #00000038}
.real-scene .icard u{color:#a3321f;text-decoration-thickness:2px;text-underline-offset:3px}
.real-scene .icard.faint{color:#8a7a5c}
.real-scene .icard.mini{min-width:0;height:34px;display:flex;align-items:center;justify-content:center;padding:0 2px;font:700 9.5px var(--body);letter-spacing:.6px}
.real-scene .icard.mid{min-width:0;font-size:13px;letter-spacing:1.5px;padding:8px 10px}
.real-scene .icard.wide{font:italic 600 14px Georgia,serif;letter-spacing:0;padding:10px 14px;max-width:210px}
.real-scene .icard.pick{background:linear-gradient(175deg,#e3eed9,#b5cda6);transform:translateY(-3px);box-shadow:0 2px 2px #0004,0 10px 14px #0006}
.real-scene .icard.odd{outline:2px solid #a3321f;outline-offset:3px;border-radius:40%/30%}
.real-scene .icard.good{color:#1e5a3c}.real-scene .icard.bad{color:#7a6a55}.real-scene .icard.bad s{text-decoration-color:#a3321f;text-decoration-thickness:2px}
.real-scene .stack,.real-scene .col{display:flex;flex-direction:column;align-items:center;gap:7px}
.real-scene .col.tight{gap:4px}
.real-scene .cgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:254px}
.real-scene .cgrid.two{grid-template-columns:repeat(2,minmax(0,1fr));width:220px;gap:9px}
.real-scene .scatter{display:flex;gap:6px}
.real-scene .blocks{display:flex;align-items:center;gap:6px}
.real-scene .blk-w{padding:9px 10px;border-radius:4px;font:800 15px var(--body);letter-spacing:1px;color:#f6ead2;background:repeating-linear-gradient(95deg,#ffffff0d 0 2px,transparent 2px 6px),linear-gradient(170deg,#9a6a3e,#6a4425);box-shadow:inset 0 1px 0 #ffffff33,inset 0 -3px 0 #4a2c15,0 6px 10px #0005}
.real-scene .plus{font:700 18px var(--body);color:#4b3a24}.real-scene .plus.light{color:#d9e6d0}
/* Paper */
.real-scene .paper{position:relative;display:block;padding:10px;background:linear-gradient(175deg,#f6f1e6,#e6dfcf);box-shadow:0 2px 3px #0000002e,0 14px 20px #0000003d}
.real-scene .paper.tilt{transform:rotate(-4deg)}.real-scene .paper.tilt-r{transform:rotate(3deg)}
.real-scene .xgrid{display:grid;gap:1px;background:#222;border:1.5px solid #222}
.real-scene .xgrid .gc{position:relative;height:var(--cell);display:flex;align-items:center;justify-content:center;background:#f7f3ea;font:600 15px 'Segoe Print','Bradley Hand','Noteworthy',Georgia,serif;color:#2a3a6e}
.real-scene .xgrid .gc small{position:absolute;top:0;left:2px;font:600 7px var(--body);color:#333}
.real-scene .xgrid .gc.blk{background:#1d1d1d}
.real-scene .xgrid.search{background:none;border:0;gap:1px}.real-scene .xgrid.search .gc{background:none;font:600 13px Georgia,serif;color:#2b2216}
.real-scene .mark{position:absolute;height:19px;border-radius:10px;background:#f2d24b66;mix-blend-mode:multiply}
.real-scene .mark.ring{background:none;border:2px solid #2a3a6ecc;mix-blend-mode:normal}
.real-scene .skeystrip{display:flex;gap:4px;margin-top:8px}
.real-scene .skeystrip span,.real-scene .cw span{display:flex;flex-direction:column;align-items:center;min-width:16px;font:700 13px Georgia,serif;color:#2b2216}
.real-scene .skeystrip small,.real-scene .cw small{font:600 8px var(--body);color:#6a5d48;border-top:1px solid #6a5d48;padding-top:1px;min-width:14px;text-align:center}
.real-scene .paper.strip{display:flex;gap:9px;padding:12px 11px 10px;transform:rotate(-2deg)}
.real-scene .cw{display:flex;gap:2px}.real-scene .cw b{display:block;min-height:17px;font:600 15px 'Segoe Print','Bradley Hand',Georgia,serif;color:#2a3a6e}
.real-scene .paper.page{width:200px;padding:14px 16px 16px;transform:rotate(-2deg)}
.real-scene .def{display:block;margin-top:6px;font:13px/1.35 Georgia,serif;color:#3a3226}
.real-scene .lens{position:absolute;right:-18px;bottom:-22px;width:58px;height:58px;border-radius:50%;border:6px solid #3d3326;background:radial-gradient(circle at 35% 30%,#ffffff8c,#ffffff1a 60%);box-shadow:0 8px 12px #0005}
.real-scene .lens:after{content:'';position:absolute;right:-26px;bottom:-14px;width:30px;height:10px;border-radius:5px;background:#2b2218;transform:rotate(40deg)}
.real-scene .pencil{font:600 17px 'Segoe Print','Bradley Hand','Noteworthy',Georgia,serif;color:#2a3a6e}
.real-scene .pencil.ink{font-size:22px;letter-spacing:4px;color:#3a3226}
.real-scene .note{display:block;padding:5px 12px;background:#fdf7e3;transform:rotate(-2deg);box-shadow:0 3px 6px #0004}
.real-scene .note .pencil{font-size:13px}
.real-scene .trail{position:relative;display:grid;grid-template-columns:repeat(4,30px);gap:4px}
.real-scene .orbit{position:relative;width:150px;height:150px}
.real-scene .orbit:after{content:'';position:absolute;left:50%;top:50%;width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;border:2px dashed #d9e6d088}
@media(prefers-reduced-motion:reduce){.real-scene .gtile-real:hover .real-art{transform:none}}
/* Numbers scenes */
.real-scene .chalk{display:flex;flex-direction:column;gap:6px;font:600 21px 'Segoe Print','Bradley Hand','Noteworthy',Georgia,serif;color:#f1efe6;text-shadow:0 0 1px #fff8,0 0 6px #ffffff33;opacity:.92}
.real-scene .chalk .box{display:inline-block;width:22px;height:22px;margin:0 4px;vertical-align:-3px;border:2px solid #f1efe6cc;border-radius:3px}
.real-scene .ngrid{display:grid;gap:1px;background:#222;border:1.5px solid #222}
.real-scene .ngrid .gc{position:relative;height:var(--cell);display:flex;align-items:center;justify-content:center;background:#f7f3ea;font:600 16px 'Segoe Print','Bradley Hand','Noteworthy',Georgia,serif;color:#2a3a6e}
.real-scene .ngrid .gc.blk{background:#1d1d1d}
.real-scene .ngrid.sudoku{gap:0;background:#f7f3ea;border-width:2px}.real-scene .ngrid.sudoku .gc{font:600 9px Georgia,serif;color:#222;box-shadow:inset -.5px -.5px 0 #9993}.real-scene .ngrid.sudoku .br{border-right:1.5px solid #222}.real-scene .ngrid.sudoku .bb{border-bottom:1.5px solid #222}
.real-scene .ngrid.kakuro .clue{background:linear-gradient(to top right,#3a3a3a 49%,#bbb 50%,#3a3a3a 51%)}
.real-scene .kakuro small{position:absolute;font:700 10px var(--body);color:#fff}.real-scene .kakuro .dn{right:4px;top:3px}.real-scene .kakuro .rt-c{left:4px;bottom:3px}
.real-scene .ngrid.pens{gap:0;background:#f7f3ea;border-width:2.5px}.real-scene .pens .gc{border:1px dashed #9998}.real-scene .pens .gc small{position:absolute;top:1px;left:3px;font:700 8px var(--body);color:#333}.real-scene .pens .pr{border-right:2.5px solid #222}.real-scene .pens .pt{border-top:2.5px solid #222}
.real-scene .ngrid.trailgrid{gap:1px;background:#999}
.real-scene .tline{position:absolute;left:11px;top:11px;width:108px;height:108px;pointer-events:none}.real-scene .tline polyline{fill:none;stroke:#2a3a6e;stroke-width:2;stroke-linejoin:round;opacity:.55}
.real-scene .die{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:7px;width:52px;height:52px;box-sizing:border-box;border-radius:10px;background:linear-gradient(150deg,#fffdf6,#e2dccb);box-shadow:inset 0 -3px 0 #c9c1ab,0 3px 3px #0005,0 10px 14px #0006}
.real-scene .die:nth-child(2){transform:rotate(14deg) translateY(8px)}
.real-scene .die i{border-radius:50%}.real-scene .die i.on{background:radial-gradient(circle at 40% 35%,#555,#111)}
.real-scene .coin{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;font:800 15px Georgia,serif;color:#5a4314;background:radial-gradient(circle at 35% 30%,#f6e3a8,#c79a3c 70%);box-shadow:inset 0 0 0 3px #b48a33,inset 0 0 0 5px #f3dc9a,0 3px 3px #0005,0 8px 12px #0005}
.real-scene .coin.gold{width:54px;height:54px;font-size:18px}
.real-scene .jar{position:relative;width:86px;height:112px;border-radius:14px 14px 18px 18px;background:linear-gradient(90deg,#ffffff38,#ffffff12 40%,#ffffff2e 80%);border:2px solid #ffffff73;box-shadow:inset 0 -6px 10px #0002,0 10px 16px #0004;overflow:hidden}
.real-scene .jar:before{content:'';position:absolute;left:-2px;right:-2px;top:-2px;height:14px;background:linear-gradient(#8a7a63,#5a4c38);border-radius:6px}
.real-scene .jar i{position:absolute;width:10px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#c27a46,#6e3a19)}
.real-scene .fbar{display:flex;width:230px;height:46px;border-radius:4px;overflow:hidden;box-shadow:0 3px 3px #0004,0 10px 14px #0005}
.real-scene .fbar span{display:flex;align-items:center;justify-content:center;font:700 18px Georgia,serif;color:#f6ead2;box-shadow:inset -2px 0 0 #0004,inset 0 1px 0 #ffffff33}
.real-scene .fbar span:nth-child(1){background:linear-gradient(170deg,#9a6a3e,#6a4425)}.real-scene .fbar span:nth-child(2){background:linear-gradient(170deg,#b48a55,#80603a)}.real-scene .fbar span:nth-child(3){background:linear-gradient(170deg,#6f8a5e,#4a6440)}
.real-scene .paper.links{width:200px;height:120px;padding:0;transform:rotate(-2deg)}.real-scene .links svg{position:absolute;inset:0;width:200px;height:110px}.real-scene .links path{stroke:#2a3a6e;stroke-width:1.5;opacity:.6}
.real-scene .links b{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;border:1.5px solid #2a3a6e;background:#f7f3ea;font:600 13px Georgia,serif;color:#2a3a6e}
.real-scene .pencil.big{font-size:30px;color:#2a3a6e}.real-scene .pencil.small{font-size:13px}.real-scene .big-q{font-size:30px!important;padding:6px 22px!important}
.real-scene .signs{display:block;line-height:1.7;text-align:center}.real-scene .signs b{font:700 16px var(--body);color:#a3321f;margin:0 4px}.real-scene .signs .pencil{font-size:20px}
.real-scene .watch{position:relative;width:62px;height:62px;border-radius:50%;background:radial-gradient(circle,#fbf8ef 60%,#c9c3b2 62%,#8d8676 72%,#d9d3c3 80%);box-shadow:0 8px 12px #0005}
.real-scene .watch:before{content:'';position:absolute;left:50%;top:-8px;width:10px;height:9px;transform:translateX(-50%);border-radius:2px;background:#8d8676}
.real-scene .watch i{position:absolute;left:50%;top:50%;width:2px;height:22px;background:#a3321f;transform-origin:50% 100%;transform:translate(-50%,-100%) rotate(40deg)}
.real-scene .paper.graph{width:160px;height:126px;padding:0;transform:rotate(-2deg)}.real-scene .graph svg{position:absolute;left:8px;top:3px;width:120px;height:120px}
.real-scene .graph .g{stroke:#7aa1c4;stroke-width:.6;opacity:.6}.real-scene .graph .ax{stroke:#333;stroke-width:1.2}.real-scene .graph .l1{stroke:#2a3a6e;stroke-width:2}.real-scene .graph .l2{stroke:#a3321f;stroke-width:2}.real-scene .graph circle{fill:#1d1d1d}
.real-scene .graph .eq{position:absolute;right:-6px;top:-14px;padding:3px 7px;background:#fdf7e3;transform:rotate(4deg);box-shadow:0 3px 6px #0003;line-height:1.3}
.real-scene .pencil s,.real-scene .paper s{text-decoration-color:#a3321f;text-decoration-thickness:2px}
/* Logic & Spatial scenes */
.real-scene.bg-grass{background:repeating-linear-gradient(80deg,#ffffff0a 0 1px,transparent 1px 4px),radial-gradient(ellipse at 40% 30%,#6b8f4e,#38552a 85%)}
.real-scene.bg-water{background:radial-gradient(ellipse at 30% 20%,#ffffff40,transparent 50%),repeating-linear-gradient(170deg,#ffffff12 0 2px,transparent 2px 12px),linear-gradient(160deg,#4f8fa8,#21566f)}
.real-scene.bg-stone{background:repeating-linear-gradient(0deg,#0003 0 2px,transparent 2px 34px),repeating-linear-gradient(90deg,#0003 0 2px,transparent 2px 34px),linear-gradient(160deg,#8d877c,#5e594f)}
.real-scene .ngrid.camp,.real-scene .ngrid.garden{gap:2px;background:#2b4320;border:3px solid #6a4a2a;border-radius:3px}
.real-scene .camp .gc,.real-scene .garden .gc{background:linear-gradient(160deg,#7aa05a,#5a7f3f)}
.real-scene .garden .gc:nth-child(odd){background:linear-gradient(160deg,#86ab66,#628848)}
.real-scene .garden .gc{font-size:21px;color:#e8c14a;text-shadow:0 1px 0 #7a5a10,0 3px 4px #0006}
.real-scene .tent{width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:16px solid #d2793a;filter:drop-shadow(0 3px 2px #0006)}
.real-scene .tree{width:18px;height:18px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#3f7a3a,#1a3d1a);box-shadow:0 3px 3px #0006}
.real-scene .stone{position:absolute;width:26px;height:26px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff7,transparent 40%),var(--s);box-shadow:inset 0 -3px 4px #0005,0 4px 6px #0007}
.real-scene .turn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:30px;color:#e8d6b0aa}
.real-scene .gears{position:relative;width:200px;height:120px}
.real-scene .gear{position:absolute;border-radius:50%;background:radial-gradient(circle,#2d2a24 0 12%,transparent 13%),radial-gradient(circle,transparent 0 58%,#0000 59%),repeating-conic-gradient(#c79a3c 0 calc(var(--t)/2),transparent 0 var(--t));-webkit-mask:radial-gradient(circle,#000 0 70%,transparent 71%),repeating-conic-gradient(#000 0 calc(var(--t)/2),transparent 0 var(--t));filter:drop-shadow(0 6px 5px #0008)}
.real-scene .gear:after{content:'';position:absolute;inset:16%;border-radius:50%;background:radial-gradient(circle,#2d2a24 0 14%,transparent 15%),radial-gradient(circle at 35% 30%,#f3d78a,#b0832d 70%);box-shadow:inset 0 0 0 3px #8f6a22}
.real-scene .ngrid.dots{gap:1px;background:none;border:0}.real-scene .dots .gc{background:none;color:#2a3a6e;box-shadow:inset 1px 1px 0 #2a3a6e33}
.real-scene .isles{position:relative;width:230px;height:140px}
.real-scene .isles b{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f3e2b6,#c9a56a);font:700 14px Georgia,serif;color:#3a2a14;box-shadow:0 0 0 3px #e8d3a0aa,0 4px 6px #0006}
.real-scene .isles i{position:absolute;background:repeating-linear-gradient(90deg,#8a5a30 0 5px,#6a4220 5px 6px);box-shadow:0 2px 3px #0006}
.real-scene .isles i[style*="height:50px"]{background:repeating-linear-gradient(0deg,#8a5a30 0 5px,#6a4220 5px 6px)}
.real-scene .paper.illusion{width:200px;height:110px;padding:0;overflow:visible;transform:rotate(-2deg)}
.real-scene .stripes{position:absolute;inset:0;background:repeating-linear-gradient(45deg,#2b2216 0 3px,#f6f1e6 3px 7px)}
.real-scene .hide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:900 52px var(--body);letter-spacing:4px;color:transparent;background:repeating-linear-gradient(-45deg,#7a3a1a 0 3px,#f6f1e6 3px 7px);-webkit-background-clip:text;background-clip:text}
.real-scene .lgrid{display:grid;grid-template-columns:repeat(4,34px);gap:10px}
.real-scene .lgrid i{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#6e6a5f,#2e2c27);box-shadow:inset 0 -3px 4px #0007,0 4px 6px #0007}
.real-scene .lgrid i.lit{background:radial-gradient(circle at 45% 40%,#fff6d0,#f2b544 45%,#a5561a);box-shadow:0 0 18px #f4b54599,0 0 40px #f4b54544}
.real-scene .svg-fill,.real-scene .jig{width:220px;height:130px}
.real-scene .jig path{stroke:#00000040;stroke-width:1;filter:drop-shadow(0 4px 4px #0006)}
.real-scene .jig .pc0{fill:#6f9a77}.real-scene .jig .pc1{fill:#c79c62}.real-scene .jig .pc2{fill:#4e7aa0}
.real-scene .ngrid.lgrid-p .gc{font:600 11px var(--body);color:#2a3a6e}.real-scene .ngrid.lgrid-p .gc:nth-child(-n+4),.real-scene .ngrid.lgrid-p .gc:nth-child(4n+1){font:700 10px var(--body);color:#333;background:#ece5d4}
.real-scene .court{display:grid;grid-template-columns:repeat(4,30px);gap:3px;padding:6px;background:#0002}
.real-scene .court i{height:30px;background:linear-gradient(160deg,#9a948a,#77716a);box-shadow:inset 0 1px 0 #fff3}
.real-scene .court i.glow{background:radial-gradient(circle,#f8d78a,#c99a50)}
.real-scene .court i.lamp{background:radial-gradient(circle at 50% 45%,#fffbe0 0 18%,#f2b544 32%,#c99a50 70%);box-shadow:0 0 16px #f4b545aa}
.real-scene .domino{display:flex;width:120px;height:44px;border-radius:7px;overflow:hidden;background:#1d1d1d;box-shadow:0 3px 3px #0006,0 10px 14px #0006}
.real-scene .domino b{flex:1;display:flex;align-items:center;justify-content:center;font:800 24px var(--body);color:#fff;border-right:2px solid #0006}
.real-scene .domino .pos{background:linear-gradient(160deg,#c24a36,#8a2a1c)}.real-scene .domino .neg{background:linear-gradient(160deg,#4a7aa8,#244c74)}
.real-scene .tri{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 18px 10px;background:linear-gradient(170deg,#b48a55,#80603a);clip-path:polygon(50% 0,100% 100%,0 100%);width:190px}
.real-scene .tri span{display:flex;gap:9px}
.real-scene .tri i{width:18px;height:18px;border-radius:50%}
.real-scene .tri .hole{background:radial-gradient(circle at 50% 60%,#2a1a0c,#4a3018);box-shadow:inset 0 2px 3px #000a}
.real-scene .tri .peg{background:radial-gradient(circle at 35% 30%,#f6e3b8,#c08a4a 70%);box-shadow:0 3px 3px #0007}
.real-scene .lot{position:relative;overflow:hidden;width:184px;height:124px;background:repeating-linear-gradient(0deg,#ffffff14 0 1px,transparent 1px 40px),repeating-linear-gradient(90deg,#ffffff14 0 1px,transparent 1px 38px),#3a403d;border:4px solid #8d8676;border-radius:4px;box-shadow:inset 0 3px 6px #0008}
.real-scene .lot .car{position:absolute;height:32px;border-radius:6px;background:linear-gradient(160deg,#e4dccb,#a8a08e);box-shadow:inset 0 -3px 0 #0003,0 4px 6px #0008}
.real-scene .lot .car.red{background:linear-gradient(160deg,#d85a40,#9a2a1a)}
.real-scene .exit{position:absolute;right:-30px;top:52px;font:800 9px var(--body);letter-spacing:1px;color:#e8d6b0;transform:rotate(90deg)}
.real-scene .beakers{align-items:flex-end;gap:14px}
.real-scene .beaker{position:relative;width:46px;border:2px solid #ffffffb0;border-top:0;border-radius:0 0 8px 8px;background:#ffffff26;box-shadow:inset 6px 0 8px #ffffff40,0 8px 10px #0004;overflow:hidden}
.real-scene .beaker i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#7fb6d6cc,#3f7ea3dd)}
.real-scene .beaker small{position:absolute;left:50%;top:6px;transform:translateX(-50%);font:700 13px var(--body);color:#3a3226}
.real-scene .ngrid.nono{gap:1px;background:#999}.real-scene .nono .gc{font:700 10px var(--body);color:#333;word-spacing:4px}.real-scene .nono .gc:nth-child(-n+4),.real-scene .nono .gc:nth-child(4n+1){background:#ece5d4}.real-scene .nono .fill{background:#2b2b2b!important}
.real-scene .ngrid.safe .gc{font:700 14px var(--body);color:#2a5d8a}
.real-scene .paper.parch{background:radial-gradient(ellipse at 50% 50%,#f3e5c0,#d9c08a);width:210px}
.real-scene .paper.parch .pencil{font-size:17px;line-height:1.35;color:#3a2a14}
.real-scene .tan{width:220px;height:120px}.real-scene .tan path{stroke:#00000033;filter:drop-shadow(0 4px 4px #0005)}.real-scene .tan .sh{fill:#2b2b2b;filter:none;opacity:.85}.real-scene .tan .w1{fill:#b48a55}.real-scene .tan .w2{fill:#7d5a34}.real-scene .tan .w3{fill:#9a6a3e}
.real-scene .paper.opart{width:130px;height:130px;padding:6px;transform:rotate(-2deg)}
.real-scene .rings{display:block;width:100%;height:100%;border-radius:50%;background:repeating-radial-gradient(circle,#1d1d1d 0 6px,#f6f1e6 6px 12px);-webkit-mask:repeating-conic-gradient(#000 0 15deg,#000c 15deg 30deg)}
.real-scene .dial{position:relative;width:76px;height:76px;border-radius:50%;background:repeating-conic-gradient(#ddd 0 1deg,transparent 1deg 9deg),radial-gradient(circle,#3a3a3a 0 38%,#9a9a9a 39%,#5a5a5a 70%,#c8c8c8 72%,#6a6a6a 80%);box-shadow:0 8px 12px #0008}
.real-scene .dial i{position:absolute;left:50%;top:4px;width:3px;height:12px;transform:translateX(-50%);background:#c24a36}
.real-scene .wheel{display:flex;align-items:center;justify-content:center;width:30px;height:22px;border-radius:3px;font:700 15px Georgia,serif;color:#222;background:linear-gradient(#bbb,#fff 45%,#fff 55%,#999);box-shadow:0 2px 3px #0007}
/* Memory & Focus scenes */
.real-scene .tray{position:relative;width:104px;height:84px;border-radius:10px;background:linear-gradient(170deg,#9a6a3e,#6a4425);box-shadow:inset 0 3px 6px #0007,inset 0 0 0 4px #b8875a,0 8px 12px #0005}
.real-scene .tray i{position:absolute;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff9,transparent 40%),#2f5f8f;box-shadow:0 2px 2px #0007}
.real-scene .counter{position:relative;width:104px;height:92px;border-radius:4px;background:radial-gradient(ellipse at 30% 20%,#fff,#e6e2da 70%),#eee;box-shadow:0 6px 10px #0005;overflow:hidden}
.real-scene .counter:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(120deg,transparent 0 18px,#9993 18px 19px,transparent 19px 40px)}
.real-scene .counter i{position:absolute;transform:translate(-50%,-50%);box-shadow:0 3px 4px #0005;border-radius:50%}
.real-scene .counter .cup{width:20px;height:20px;background:radial-gradient(circle,#6b3e1e 0 45%,#fff 47%)}.real-scene .counter .bowl{width:30px;height:30px;background:radial-gradient(circle,#c5d9e6 0 55%,#2f5f8f 57%)}.real-scene .counter .lemon{width:18px;height:14px;background:radial-gradient(circle at 35% 30%,#fff5a0,#e8c11a)}
.real-scene .cardgrid{display:grid;grid-template-columns:repeat(3,48px);gap:10px}
.real-scene .cardgrid i{display:flex;align-items:center;justify-content:center;height:64px;border-radius:5px;background:repeating-linear-gradient(45deg,#7a2a22 0 4px,#8f372c 4px 8px);box-shadow:inset 0 0 0 3px #f6f1e6,0 4px 6px #0006}
.real-scene .cardgrid i.face{background:#fbf8f0;color:#2f5f8f;font-size:24px;font-style:normal;transform:rotate(-4deg)}
.real-scene .notepad{background:repeating-linear-gradient(180deg,transparent 0 21px,#9bb6d1 21px 22px),#fdfbf3;line-height:22px}
.real-scene .sticky{position:absolute;right:-26px;bottom:-24px;width:96px;padding:6px;background:#f4e27a;transform:rotate(5deg);box-shadow:0 4px 6px #0004;line-height:1.2}
.real-scene .mjar{position:relative;display:flex;align-items:center;justify-content:center;width:56px;height:80px;border-radius:10px 10px 14px 14px;background:linear-gradient(90deg,#ffffff4d,#ffffff1a 40%,#ffffff40);border:2px solid #ffffff99;box-shadow:0 8px 12px #0004}
.real-scene .mjar b{position:absolute;top:-12px;left:4px;right:4px;height:14px;border-radius:4px;background:linear-gradient(180deg,var(--lid),#0006);box-shadow:inset 0 2px 0 #fff4}
.real-scene .mjar small{padding:3px 4px;background:#fbf6e8;font:800 9px var(--body);letter-spacing:.5px;color:#2b2216;box-shadow:0 1px 2px #0003}
.real-scene .icard.cue{background:#0e432f;color:#f6ead2;font:800 11px var(--body);letter-spacing:1.5px}
.real-scene .icard.sym b{font-size:22px}
.real-scene .flash{position:relative;width:200px;height:120px;border-radius:6px;background:#111;box-shadow:inset 0 0 30px #0009,0 8px 12px #0007}
.real-scene .flash .wide{position:absolute;left:50%;top:50%;width:64px;height:30px;transform:translate(-50%,-50%);background:#f2efe6;box-shadow:0 0 14px #fff6}
.real-scene .flash .diamond{position:absolute;left:24px;top:18px;width:14px;height:14px;transform:rotate(45deg);background:#f2b544;box-shadow:0 0 10px #f2b544aa}
.real-scene .pads{display:grid;grid-template-columns:repeat(3,40px);gap:8px;padding:10px;border-radius:10px;background:#1d201f;box-shadow:0 8px 12px #0007}
.real-scene .pads i{height:40px;border-radius:8px;background:linear-gradient(160deg,#4a4f4c,#2e3230);box-shadow:inset 0 -3px 0 #0006,inset 0 1px 0 #fff2}
.real-scene .pads i.on{background:radial-gradient(circle,#c7f0d0,#4fb873 70%);box-shadow:0 0 16px #4fb873aa}
.real-scene .spheres{position:relative;width:200px;height:120px}
.real-scene .spheres i{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#bcc4cc 30%,#5f6870 80%);box-shadow:0 6px 8px #0007}
.real-scene .spheres i.gold{background:radial-gradient(circle at 35% 30%,#fff8d8,#e8c14a 35%,#8a6a10 85%);box-shadow:0 0 12px #e8c14a88,0 6px 8px #0007}
.real-scene .shapes{width:220px;height:110px}.real-scene .shapes path{filter:drop-shadow(0 4px 4px #0005)}.real-scene .shapes .w1{fill:#9a6a3e}.real-scene .shapes .w2{fill:#b48a55}.real-scene .shapes text{font:700 26px Georgia,serif;fill:#4b3a24}
.real-scene .rail{display:flex;gap:10px;padding-top:12px;border-top:6px solid #b8b8b0;box-shadow:inset 0 2px 0 #fff6}
.real-scene .ticket{display:flex;flex-direction:column;align-items:center;gap:2px;width:58px;padding:8px 4px 14px;background:#fdfbf3;box-shadow:0 6px 8px #0006;clip-path:polygon(0 0,100% 0,100% 92%,88% 100%,75% 92%,62% 100%,50% 92%,38% 100%,25% 92%,12% 100%,0 92%)}
.real-scene .ticket b{font:800 12px var(--body);color:#a3321f}
.real-scene .symgrid{display:grid;grid-template-columns:repeat(4,30px);gap:4px;padding:12px}.real-scene .symgrid b{display:flex;align-items:center;justify-content:center;height:28px;font:700 21px Georgia,serif;color:#2b2216}
.real-scene .symgrid b.hit{box-shadow:0 0 0 2px #a3321f;border-radius:50%}
.real-scene .paper.score{line-height:21px}
.real-scene .watch.mini{position:absolute;right:-22px;bottom:-18px;width:48px;height:48px}
.real-scene .split{gap:22px}.real-scene .split .chalk{font-size:22px;align-items:center}
/* Mystery scenes */
.real-scene.bg-darkwood{background:repeating-linear-gradient(91deg,#ffffff08 0 2px,transparent 2px 10px),radial-gradient(ellipse at 45% 35%,#6a4a32,#1c120b 85%)}
.real-scene.bg-cork{background:radial-gradient(circle at 20% 30%,#0000001a 0 2px,transparent 3px) 0 0/9px 9px,radial-gradient(circle at 70% 60%,#ffffff1a 0 1.5px,transparent 2px) 0 0/7px 7px,linear-gradient(160deg,#c59a62,#9a7042)}
.real-scene.bg-spot{background:radial-gradient(ellipse at 50% 40%,#5a5247 0,#2a2622 45%,#0e0d0c 85%)}
.real-scene.bg-gallery{background:radial-gradient(ellipse at 50% -10%,#fff4dc66,transparent 60%),linear-gradient(180deg,#5b2a2a,#3c1a1a 70%,#2b1414)}
.real-scene.bg-velvet{background:repeating-linear-gradient(90deg,#0000001f 0 3px,transparent 3px 14px),radial-gradient(ellipse at 40% 30%,#3d2a52,#1a1024 85%)}
.real-scene.bg-door{background:repeating-linear-gradient(90deg,#00000033 0 2px,transparent 2px 64px),repeating-linear-gradient(92deg,#ffffff08 0 2px,transparent 2px 8px),linear-gradient(170deg,#6a4026,#3e2414)}
.real-scene.bg-lineup{background:repeating-linear-gradient(180deg,#ffffff38 0 1px,transparent 1px 22px),linear-gradient(180deg,#5f6a70,#3c454a)}
.real-scene .envs{position:relative;width:240px;height:110px}
.real-scene .env{position:absolute;top:22px;width:96px;height:62px;border-radius:2px;background:linear-gradient(160deg,#3a3a3e,#161618);box-shadow:inset 0 0 0 1px #ffffff26,0 6px 10px #000a;transform-origin:50% 120%}
.real-scene .env:has(.wax){z-index:5;top:14px}
.real-scene .env:before{content:'';position:absolute;inset:0 0 auto;height:34px;background:linear-gradient(160deg,#333336,#1b1b1d);clip-path:polygon(0 0,100% 0,50% 100%)}
.real-scene .wax{position:absolute;left:50%;top:26px;width:20px;height:20px;transform:translateX(-50%);border-radius:48% 52% 45% 55%;background:radial-gradient(circle at 35% 30%,#e06a5a,#8a1a12 70%);box-shadow:0 2px 3px #000a}
.real-scene .board-pins{position:relative;display:flex;gap:12px;align-items:flex-start;padding-top:6px}
.real-scene .board-pins svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.real-scene .board-pins path{fill:none;stroke:#b0261c;stroke-width:1.6}
.real-scene .snap{position:relative;display:flex;flex-direction:column;align-items:center;padding:5px 5px 4px;background:#f7f4ec;box-shadow:0 5px 8px #0006}
.real-scene .snap:before{content:'';position:absolute;top:-4px;left:50%;width:9px;height:9px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle at 35% 30%,#f07a6a,#9a1a12);box-shadow:0 2px 2px #0006;z-index:1}
.real-scene .snap i{display:block;width:56px;height:52px;background:linear-gradient(180deg,#8d97a0,#4f5860)}
.real-scene .snap i.p1,.real-scene .snap i.p2,.real-scene .snap i.p3{background:radial-gradient(ellipse 30% 26% at 50% 40%,#2a2f33 0 98%,transparent 100%),radial-gradient(ellipse 48% 40% at 50% 104%,#2a2f33 0 98%,transparent 100%),linear-gradient(180deg,#a7b0b6,#6c767d)}
.real-scene .snap i.p2{filter:sepia(.4)}.real-scene .snap i.p3{filter:hue-rotate(40deg)}
.real-scene .snap small{font:600 9px 'Segoe Print','Bradley Hand',Georgia,serif;color:#2a3a6e;margin-top:2px}
.real-scene .tag{position:absolute;right:-6px;bottom:-26px;padding:3px 8px;background:#fdf7e3;transform:rotate(4deg);box-shadow:0 3px 5px #0004}
.real-scene .snap i.still{width:84px;height:66px;background:radial-gradient(circle 9px at 26% 58%,#e8e2d2 0 90%,#0000 100%),radial-gradient(circle 13px at 62% 40%,#f3f0e8 0 70%,#6b5a3e 72% 100%,#0000 100%),linear-gradient(180deg,#3d3a35 0 62%,#7a5a3a 62%)}
.real-scene .snap i.still.alt{background:radial-gradient(circle 9px at 26% 58%,#b0402c 0 90%,#0000 100%),radial-gradient(circle 13px at 62% 40%,#f3f0e8 0 70%,#6b5a3e 72% 100%,#0000 100%),linear-gradient(180deg,#3d3a35 0 62%,#7a5a3a 62%)}
.real-scene .folders{position:relative;width:220px;height:120px}
.real-scene .folder{position:absolute;width:160px;height:100px;border-radius:2px 6px 2px 2px;background:linear-gradient(170deg,#e3c98f,#c8a865);box-shadow:0 6px 10px #0005}
.real-scene .folder:before{content:'';position:absolute;top:-12px;left:12px;width:60px;height:14px;border-radius:4px 4px 0 0;background:#e3c98f}
.real-scene .folder b{position:absolute;top:-10px;left:18px;font:700 10px var(--body);color:#4b3a24}
.real-scene .folder.f1{left:4px;top:8px;transform:rotate(-5deg);filter:brightness(.88)}.real-scene .folder.f2{left:52px;top:18px;transform:rotate(3deg)}
.real-scene .stamp{position:absolute;left:28px;top:36px;padding:2px 8px;border:2.5px solid #b0261ccc;border-radius:3px;font:900 16px var(--body);letter-spacing:2px;color:#b0261ccc;transform:rotate(-10deg)}
.real-scene .cassette{position:relative;display:flex;gap:44px;justify-content:center;align-items:center;width:150px;height:92px;border-radius:7px;background:linear-gradient(170deg,#3a3a3c,#1e1e20);box-shadow:inset 0 1px 0 #fff2,0 8px 12px #000a}
.real-scene .cassette:before{content:'';position:absolute;left:16px;right:16px;top:12px;height:36px;border-radius:4px;background:#e9e3d2}
.real-scene .cassette i{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;background:repeating-conic-gradient(#fff 0 30deg,#ccc 30deg 60deg);box-shadow:0 0 0 4px #5a3a20,inset 0 0 0 7px #2a2a2a;margin-top:-14px}
.real-scene .cassette b{position:absolute;bottom:10px;font:700 8px var(--body);letter-spacing:1px;color:#ddd}
.real-scene .frame{position:relative;padding:10px;background:linear-gradient(135deg,#f3d78a,#a77a24 45%,#e9c66a 60%,#8a6418);box-shadow:inset 0 0 0 2px #6a4a10,0 10px 16px #000a}
.real-scene .canvas{position:relative;display:block;width:150px;height:96px;overflow:hidden;background:linear-gradient(180deg,#9fb6c4,#e6d6b0 70%)}
.real-scene .canvas .hill{position:absolute;left:-20%;right:-20%;bottom:-40%;height:90%;border-radius:50%;background:radial-gradient(ellipse at 40% 20%,#6f8a4e,#3f5a2e)}
.real-scene .canvas .sun{position:absolute;right:26px;top:14px;width:20px;height:20px;border-radius:50%;background:#f3d78a;box-shadow:0 0 14px #f3d78a}
.real-scene .canvas small{position:absolute;right:6px;bottom:4px;font:italic 700 9px Georgia,serif;color:#2a1a0a}
.real-scene .lens.sig{right:-26px;bottom:-26px}
.real-scene .letter-card{display:flex;align-items:center;justify-content:center;width:44px;height:58px;background:#fbf8f0;font:800 34px Georgia,serif;color:#2b2216;box-shadow:0 6px 8px #0007}
.real-scene .mirror{display:flex;align-items:center;justify-content:center;width:84px;height:108px;border-radius:50%;background:radial-gradient(ellipse at 35% 25%,#ffffffcc,#cfd6dc 35%,#7f8a93 80%);box-shadow:0 0 0 7px #c9a24a,0 0 0 9px #7a5a14,0 10px 16px #000a}
.real-scene .refl{font:800 34px Georgia,serif;color:#2b2216aa;transform:scaleX(-1)}
.real-scene .escutcheon{position:relative;width:54px;height:104px;border-radius:27px;background:radial-gradient(ellipse at 35% 20%,#f3d78a,#a77a24 70%);box-shadow:inset 0 0 0 3px #8a6418,0 8px 12px #000a}
.real-scene .escutcheon i{position:absolute;left:50%;top:34px;width:16px;height:16px;transform:translateX(-50%);border-radius:50%;background:#120a04;box-shadow:0 14px 0 -3px #120a04}
.real-scene .escutcheon i:after{content:'';position:absolute;left:4px;top:10px;width:8px;height:20px;background:#120a04}
.real-scene .skey{position:relative;width:140px;height:50px;transform:rotate(-12deg);filter:drop-shadow(0 6px 5px #000a)}
.real-scene .skey i{position:absolute;background:linear-gradient(180deg,#e9c66a,#8a6418)}
.real-scene .skey .bow{left:0;top:5px;width:40px;height:40px;box-sizing:border-box;border-radius:50%;background:none;border:9px solid #c9a24a;box-shadow:inset 0 2px 3px #0006,0 0 0 1px #8a6418}
.real-scene .skey .shaft{left:36px;top:20px;width:96px;height:10px;border-radius:3px}.real-scene .skey .bit{left:110px;top:28px;width:20px;height:18px;clip-path:polygon(0 0,100% 0,100% 100%,60% 100%,60% 55%,30% 55%,30% 100%,0 100%)}
.real-scene .museum{position:relative;display:flex;gap:16px;align-items:flex-start;padding-bottom:34px}
.real-scene .mini-art{width:52px;height:64px;box-shadow:0 0 0 5px #c9a24a,0 0 0 6px #6a4a10,0 8px 12px #000a}
.real-scene .mini-art.a1{background:radial-gradient(circle at 50% 40%,#d8b06c,#6a4425)}.real-scene .mini-art.a2{width:44px;height:52px;margin-top:6px;background:linear-gradient(160deg,#4a6f8f,#c9d6de)}.real-scene .mini-art.a3{background:linear-gradient(180deg,#7a8f5e 0 55%,#c9a24a 55%)}
.real-scene .rope{position:absolute;left:-10px;right:-10px;bottom:0;height:34px}
.real-scene .rope:before{content:'';position:absolute;left:10px;right:10px;top:4px;height:16px;border-bottom:5px solid #8a1a1a;border-radius:0 0 50% 50%}
.real-scene .rope i{position:absolute;bottom:0;width:7px;height:34px;border-radius:3px;background:linear-gradient(90deg,#8a6418,#f3d78a,#8a6418)}.real-scene .rope i:first-child{left:4px}.real-scene .rope i:last-child{right:4px}
.real-scene .pocketwatch{position:relative;width:92px;height:92px;border-radius:50%;background:radial-gradient(circle,#fbf6e6 0 62%,#c9a24a 64%,#8a6418 74%,#f3d78a 78%,#8a6418 86%);box-shadow:0 8px 14px #000a}
.real-scene .pocketwatch:before{content:'';position:absolute;left:50%;top:-14px;width:18px;height:16px;transform:translateX(-50%);border-radius:50% 50% 4px 4px;border:4px solid #c9a24a;border-bottom:0}
.real-scene .pocketwatch i{position:absolute;left:50%;bottom:50%;width:3px;background:#2b2216;transform-origin:50% 100%;border-radius:2px}
.real-scene .pocketwatch .h{height:22px;transform:translateX(-50%) rotate(275deg)}.real-scene .pocketwatch .m{height:32px;transform:translateX(-50%) rotate(72deg)}
.real-scene .lineup{display:flex;gap:22px;align-items:flex-end;height:130px}
.real-scene .sil{position:relative;display:block;width:44px;filter:drop-shadow(0 4px 4px #0006)}
.real-scene .sil:before{content:'';position:absolute;left:50%;top:0;width:28px;height:30px;transform:translateX(-50%);border-radius:50%;background:#1c2226}
.real-scene .sil:after{content:'';position:absolute;left:0;right:0;top:32px;bottom:0;border-radius:20px 20px 4px 4px;background:#1c2226}
.real-scene .sil.s1{height:108px}.real-scene .sil.s2{height:122px}.real-scene .sil.s3{height:100px}
.real-scene .sil b{z-index:1;position:absolute;left:50%;bottom:30px;transform:translateX(-50%);padding:1px 6px;background:#f6f1e6;font:800 11px var(--body);color:#1c2226}
/* Board scenes */
.real-scene .svgsc{width:230px;height:130px;filter:drop-shadow(0 8px 10px #0006)}
.real-scene .svgsc .st{stroke:#0004;stroke-width:.6}
.real-scene .svgsc .st.w{fill:url(#none);fill:#f3efe4}
.real-scene .svgsc .st.k{fill:#1c1c1c}
.real-scene .svgsc .st.r{fill:#b0402c}
.real-scene .svgsc .st.b{fill:#2f5f8f}
.real-scene .svgsc .bg-felt-r{fill:#2b5a3f;stroke:#6a4426;stroke-width:6}
.real-scene .svgsc .pt.l{fill:#e3d2ae}
.real-scene .svgsc .pt.d{fill:#8a3a22}
.real-scene .svgsc .bar{fill:#4a2c18}
.real-scene .dots-boxes{width:130px;height:100px;filter:none}
.real-scene .dots-boxes .dot{fill:#222}
.real-scene .dots-boxes .pl{fill:none;stroke:#2a3a6e;stroke-width:1.6;stroke-linecap:round}
.real-scene .dots-boxes text{font:600 13px 'Segoe Print','Bradley Hand',Georgia,serif;fill:#2a3a6e}
.real-scene .hexb .hx{fill:#e8d6b0;stroke:#7a5a34;stroke-width:1.2}
.real-scene .mill{width:130px;height:130px}
.real-scene .mill .brd{fill:#c9a46e;stroke:#6a4426;stroke-width:3}
.real-scene .mill .ln{fill:none;stroke:#4a2c18;stroke-width:2.2}
.real-scene .gob{width:130px;height:130px}
.real-scene .gob .kaya{fill:#dcb877}
.real-scene .gob .gl{stroke:#3a2a14;stroke-width:.8;fill:none}
.real-scene .stars{width:220px;height:124px}
.real-scene .stars .starb{fill:#a77a4a;stroke:#6a4426;stroke-width:3}
.real-scene .stars .hole{fill:#3a2412}
.real-scene .sdom{display:flex;width:84px;height:42px;border-radius:6px;background:linear-gradient(160deg,#fffdf6,#e6dfcd);box-shadow:inset 0 -3px 0 #c9c1ab,0 3px 3px #0005,0 10px 14px #0006}
.real-scene .sdom .half{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:6px}
.real-scene .sdom .half+.half{border-left:2px solid #00000033}
.real-scene .sdom i{border-radius:50%}
.real-scene .sdom i.p{background:radial-gradient(circle at 40% 35%,#555,#111)}
.real-scene .blocks .sdom:nth-child(2){margin:0 -16px}
.real-scene .mancala{display:flex;align-items:center;gap:6px;padding:10px;border-radius:40px;background:repeating-linear-gradient(92deg,#ffffff10 0 2px,transparent 2px 8px),linear-gradient(170deg,#b48a55,#7a5530);box-shadow:inset 0 2px 0 #fff3,0 10px 14px #0007}
.real-scene .mancala i{position:relative;display:block;border-radius:50%;background:radial-gradient(circle at 50% 40%,#4a2c14,#6a4426 75%);box-shadow:inset 0 3px 6px #000a}
.real-scene .mancala .store{width:26px;height:72px;border-radius:13px;overflow:hidden}
.real-scene .pits{display:grid;grid-template-columns:repeat(6,22px);gap:5px}
.real-scene .pits i{width:22px;height:22px}
.real-scene .mancala b{position:absolute;width:7px;height:7px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,hsl(var(--h) 55% 55%) 45%,hsl(var(--h) 55% 30%));box-shadow:0 1px 1px #0008}
.real-scene .radar{position:relative;width:118px;height:118px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 18px,#5fe39a33 18px 19px),linear-gradient(#5fe39a22,#5fe39a22) 50% 0/1px 100% no-repeat,linear-gradient(#5fe39a22,#5fe39a22) 0 50%/100% 1px no-repeat,radial-gradient(circle,#0f2a1c,#06140c);box-shadow:0 0 0 6px #3a3f3c,0 0 0 8px #1d201f,0 10px 16px #000a;overflow:hidden}
.real-scene .radar .sweep{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 40deg,#5fe39a66,transparent 70deg)}
.real-scene .radar b{position:absolute;width:7px;height:7px;border-radius:50%;background:#9ff5c4;box-shadow:0 0 8px #5fe39a}
.real-scene .radar b.hit{background:#ff8a6a;box-shadow:0 0 10px #ff6a4a}
.real-scene .ranks{display:flex;gap:8px}
.real-scene .ranks i{display:flex;align-items:center;justify-content:center;width:30px;height:46px;border-radius:3px;font:800 18px Georgia,serif;font-style:normal;color:#f6ead2;box-shadow:inset 0 -3px 0 #0004,0 6px 8px #0007}
.real-scene .ranks .red{background:repeating-linear-gradient(95deg,#ffffff12 0 2px,transparent 2px 6px),linear-gradient(170deg,#a8402c,#6a2414)}
.real-scene .ranks .blue{background:repeating-linear-gradient(95deg,#ffffff12 0 2px,transparent 2px 6px),linear-gradient(170deg,#3a6a94,#1e3e5e)}
.real-scene .ranks .up{background:linear-gradient(170deg,#f6ead2,#d8c8a6);color:#6a2414}
.real-scene .chess{display:grid;grid-template-columns:repeat(4,32px);border:6px solid #4a2c18;box-shadow:0 10px 14px #0007}
.real-scene .chess i{display:flex;align-items:center;justify-content:center;height:32px}
.real-scene .chess .lt{background:#e8d2a6}
.real-scene .chess .dk{background:#9a6a3e}
.real-scene .chess b{font:28px/1 'Segoe UI Symbol','DejaVu Sans','Noto Sans Symbols 2',serif}
.real-scene .chess .blk{color:#1c1410;text-shadow:0 2px 2px #0006}
.real-scene .chess .wht{color:#fbf6e8;text-shadow:0 0 1px #000,0 2px 2px #0008}
.real-scene .disc{display:block;width:80%;height:80%;border-radius:50%;box-shadow:inset 0 -3px 0 #0005,0 3px 3px #0007}
.real-scene .disc.r{background:radial-gradient(circle at 35% 30%,#e06a50,#8a2414)}
.real-scene .disc.k{background:radial-gradient(circle at 35% 30%,#555,#111)}
.real-scene .disc.w{background:radial-gradient(circle at 35% 30%,#fff,#cfc8b8)}
.real-scene .disc.king{box-shadow:inset 0 -3px 0 #0005,0 -4px 0 #8a2414,0 3px 3px #0007}
.real-scene .ck i{height:32px}
.real-scene .rev{display:grid;grid-template-columns:repeat(5,26px);gap:2px;padding:6px;background:#1c3a2a;border:6px solid #3a2414;box-shadow:0 10px 14px #0008}
.real-scene .rev i{display:flex;align-items:center;justify-content:center;height:26px;background:radial-gradient(circle,#2f7a50,#1f5a3a)}
.real-scene .rack4{display:grid;grid-template-columns:repeat(6,22px);gap:3px;padding:6px;border-radius:4px;background:repeating-linear-gradient(92deg,#ffffff10 0 2px,transparent 2px 8px),linear-gradient(170deg,#b48a55,#7a5530);box-shadow:0 10px 14px #0007}
.real-scene .rack4 i{display:flex;align-items:center;justify-content:center;height:22px;border-radius:50%;background:#3a2412;box-shadow:inset 0 2px 4px #000c}
.real-scene .rack4 .disc{width:92%;height:92%}
.real-scene .climbb{position:relative;display:grid;grid-template-columns:repeat(4,34px);border:4px solid #6a4426;box-shadow:0 10px 14px #0007}
.real-scene .climbb i{display:flex;align-items:flex-start;justify-content:flex-start;height:30px;padding:2px 3px;box-sizing:border-box;font:700 8px var(--body);color:#4b3a24;background:#f2e6c8}
.real-scene .climbb i:nth-child(odd){background:#e3cfa2}
.real-scene .ladder{position:absolute;left:44px;top:14px;width:16px;height:86px;transform:rotate(18deg);background:repeating-linear-gradient(180deg,transparent 0 9px,#8a5a30 9px 12px);border-left:3px solid #8a5a30;border-right:3px solid #8a5a30;filter:drop-shadow(0 3px 2px #0006)}
.real-scene .slide{position:absolute;right:16px;top:18px;width:30px;height:84px;border-radius:30px 0 30px 0;border:5px solid #c9a227;border-left-color:transparent;border-bottom-color:transparent;transform:rotate(12deg);filter:drop-shadow(0 3px 2px #0006)}
.real-scene .pawn{position:absolute;width:12px;height:18px;border-radius:50% 50% 30% 30%;background:radial-gradient(circle at 35% 25%,#fff8,transparent 40%),var(--p);box-shadow:0 3px 3px #0008}
.real-scene .clip{position:relative;padding:22px 10px 10px;border-radius:8px;background:linear-gradient(170deg,#9a6a3e,#6a4425);box-shadow:0 10px 14px #0007}
.real-scene .clip:before{content:'';position:absolute;left:50%;top:4px;width:52px;height:16px;transform:translateX(-50%);border-radius:4px;background:linear-gradient(#e3e3e3,#9a9a9a);box-shadow:0 2px 3px #0006}
.real-scene .clipboard{display:block;background:#fbfaf4;box-shadow:0 1px 2px #0003}
.real-scene .playsheet{width:150px;height:96px;filter:none}
.real-scene .playsheet .los{stroke:#999;stroke-dasharray:3 3}
.real-scene .playsheet .o{fill:none;stroke:#2a3a6e;stroke-width:1.8}
.real-scene .playsheet .x{stroke:#a3321f;stroke-width:1.8}
.real-scene .playsheet .route{fill:none;stroke:#2a3a6e;stroke-width:1.4;marker-end:none}

/* Throwback Trivia, Language Lab and Brain Rush scenes */
.real-scene .svgx{width:230px;height:130px;filter:drop-shadow(0 8px 10px #0005);overflow:visible}
.real-scene.bg-deep{background:radial-gradient(ellipse at 50% -10%,#7fd0e866,transparent 55%),linear-gradient(180deg,#1f6f8f,#0c3550 70%,#071f30)}
.real-scene.bg-sky{background:radial-gradient(circle at 80% 20%,#fff6d6aa,transparent 30%),linear-gradient(180deg,#9cc8e4,#d8e6ee)}
.real-scene.bg-night{background:radial-gradient(circle at 20% 15%,#ffffff22 0 1px,transparent 2px) 0 0/23px 19px,radial-gradient(ellipse at 50% 30%,#1d3550,#0a1424 85%)}
.real-scene.bg-soil{background:radial-gradient(circle at 30% 40%,#0000001f 0 2px,transparent 3px) 0 0/11px 9px,radial-gradient(ellipse at 40% 30%,#7a5a3a,#3e2a18 85%)}
.real-scene .real-art:has(.svgx.full){position:static;zoom:1}
.real-scene .svgx.full{position:absolute;inset:0;width:100%;height:100%;filter:none}

/* /css/word-real.css */
/* Word games: a real writer's desk. Walnut trays, ivory letter tiles, typewriter keys, ladder timber and newsprint.
   Everything is scoped to .cat-word so no other game changes. Clue colours (blue = right spot, orange = in the word) are unchanged. */
.cat-word{--wd-ivory:linear-gradient(170deg,#fffdf6,#f1e6cc 70%,#e6d6b2);--wd-ivory-edge:#c4ab7c;--wd-ink:#2a2118;--wd-walnut:repeating-linear-gradient(93deg,#ffffff07 0 2px,transparent 2px 9px),repeating-linear-gradient(88deg,#00000012 0 1px,transparent 1px 23px),linear-gradient(160deg,#6e4a2e,#4a2f1b 60%,#3a2414);--wd-brass:#c9a45a}

/* ---------- Shared typewriter keyboard ---------- */
.cat-word :is(.kbd,.keyboard){padding:14px 12px 16px;border-radius:22px;background:linear-gradient(180deg,#3a3d42,#24262a);box-shadow:inset 0 1px 0 #ffffff1f,inset 0 -4px 8px #0006,0 6px 0 #15171a,0 16px 26px #0003;width:100%;box-sizing:border-box;max-width:560px;margin-left:auto;margin-right:auto}
.cat-word :is(.kbd-key,.key){height:50px;border-radius:12px;border:0;color:#f6ecd4;font:700 16px var(--body);letter-spacing:.02em;
  background:radial-gradient(ellipse at 50% 28%,#4b4f56,#26282c 72%);
  box-shadow:inset 0 0 0 2px #b9bec4,inset 0 0 0 3.5px #4a4e54,inset 0 2px 2px #ffffff40,0 4px 0 #0c0d0f,0 6px 8px #0006;transition:transform .07s,box-shadow .07s,background .2s}
.cat-word :is(.kbd-key,.key):hover{background:radial-gradient(ellipse at 50% 28%,#575c64,#2c2e33 72%)}
.cat-word :is(.kbd-key,.key):active{transform:translateY(3px);box-shadow:inset 0 0 0 2px #b9bec4,inset 0 0 0 3.5px #4a4e54,inset 0 2px 2px #ffffff30,0 1px 0 #0c0d0f,0 2px 3px #0006}
.cat-word .kbd-key.wide{font-size:13px}
.cat-word .kbd-key.hit{background:radial-gradient(ellipse at 50% 25%,#7fb2ff,#2d5bd0 75%);color:#fff;box-shadow:inset 0 0 0 2px #dce7ff,inset 0 2px 2px #fff6,0 4px 0 #173a8f,0 6px 8px #0006}
.cat-word .kbd-key.near{background:radial-gradient(ellipse at 50% 25%,#ffc09a,#ee6a33 75%);color:#fff;box-shadow:inset 0 0 0 2px #ffe3d2,inset 0 2px 2px #fff6,0 4px 0 #9a3c14,0 6px 8px #0006}
.cat-word .kbd-key.miss{background:#1a1b1e;color:#f6ecd455;box-shadow:inset 0 0 0 2px #55595e,0 2px 0 #0c0d0f}
.cat-word .key.dead{opacity:1;background:#1a1b1e;color:#f6ecd440;box-shadow:inset 0 0 0 2px #55595e,0 2px 0 #0c0d0f}
.cat-word .key.goal-letter:not(.dead){background:radial-gradient(ellipse at 50% 25%,#6fd6a8,#1b8a5e 75%);color:#fff;box-shadow:inset 0 0 0 2px #d6f5e6,inset 0 2px 2px #fff6,0 4px 0 #0f5a3c,0 6px 8px #0006}
@media(max-width:400px){.cat-word :is(.kbd,.keyboard){padding:10px 6px 12px;border-radius:16px}.cat-word :is(.kbd-key,.key){height:46px;font-size:14px;border-radius:10px}}

/* ---------- Hidden Five: walnut tray with recessed wells and ivory / enamel tiles ---------- */
.cat-word .h5-board{gap:9px;width:min(100%,372px);padding:16px;border-radius:24px;border:0;background:var(--wd-walnut);
  box-shadow:inset 0 0 0 3px #2a1a0e,inset 0 0 0 5px #8a6440aa,inset 0 3px 6px #ffffff22,0 8px 0 #2a1a0e,0 22px 34px #1a10084d!important}
.cat-word .h5-row{gap:9px}
.cat-word .h5-tile{border:0;border-radius:12px;color:var(--wd-ink);background:linear-gradient(180deg,#2a1b10,#3a2717);box-shadow:inset 0 4px 7px #000a,inset 0 -1px 0 #ffffff1c}
.cat-word .h5-tile.current{box-shadow:inset 0 4px 7px #000a,inset 0 0 0 2px #e6c27a66}
.cat-word .h5-tile.typed{background:var(--wd-ivory);box-shadow:inset 0 2px 0 #fff,inset 0 -3px 4px #b8995e40,0 4px 0 var(--wd-ivory-edge),0 7px 9px #0006}
.cat-word .h5-tile:is(.hit,.near,.miss){box-shadow:inset 0 2px 1px #ffffff73,inset 0 -5px 8px #0003,0 4px 0 var(--edge,#0005),0 7px 10px #0006;text-shadow:0 1px 1px #0004}
.cat-word .h5-tile.hit{--edge:#173a8f;color:#fff;background:linear-gradient(165deg,#7fb2ff,#2d5bd0)}.cat-word .h5-tile.near{--edge:#9a3c14;color:#fff;background:linear-gradient(165deg,#ffc09a,#ee6a33)}
.cat-word .h5-tile.miss{--edge:#2c3240;color:#fff;background:linear-gradient(165deg,#7b8597,#4a5468)}
.cat-word .h5-tile:is(.hit,.near,.miss)::before{content:'';position:absolute;inset:4px 6px auto;height:30%;border-radius:9px 9px 40% 40%;background:linear-gradient(180deg,#ffffff4d,transparent);pointer-events:none}

/* ---------- Word Ladder: a real timber ladder against a sunlit wall ---------- */
.cat-word .ladder{--tile:clamp(44px,12vw,58px);padding:22px 0 24px;margin:0 auto;border-radius:24px;
  background:radial-gradient(ellipse at 20% 0%,#fff7e2,transparent 60%),repeating-linear-gradient(0deg,#00000008 0 1px,transparent 1px 34px),linear-gradient(180deg,#f2e7d3,#e3d3b6)}
.cat-word .ladder::before,.cat-word .ladder::after{width:16px;border-radius:5px;top:6px;bottom:6px;
  background:repeating-linear-gradient(180deg,#ffffff10 0 3px,transparent 3px 17px),linear-gradient(90deg,#7a5228,#c49158 35%,#d9a96c 50%,#9b6a36 85%,#6a4520);
  box-shadow:3px 0 0 #00000018,6px 8px 12px #0003}
.cat-word .rung::before{height:12px;margin-top:-6px;left:-30px;right:-30px;border-radius:6px;opacity:1;
  background:linear-gradient(180deg,#e0b47a,#b98648 55%,#8d5f2e);box-shadow:0 3px 4px #0003,inset 0 1px 0 #fff4}
.cat-word .tile{border:0;border-radius:11px;color:var(--wd-ink);background:var(--wd-ivory);box-shadow:inset 0 2px 0 #fff,inset 0 -3px 4px #b8995e40,0 4px 0 var(--wd-ivory-edge),0 7px 10px #0004}
.cat-word .tile.blank{background:#ffffff73;border:2px dashed #b99a6a;box-shadow:inset 0 2px 4px #0000000f}
.cat-word .tile.edit.blank,.cat-word .rung:not(.fixed):not(.goal) .tile.blank{background:#fffaf080}
.cat-word .tile.match{color:#fff;background:linear-gradient(170deg,#4fc08e,#1b8a5e);box-shadow:inset 0 2px 1px #ffffff66,inset 0 -4px 6px #0003,0 4px 0 #0f5a3c,0 7px 10px #0004}
.cat-word .rung.fixed .tile:not(.match){background:linear-gradient(170deg,#f4ead4,#e2d0a9)}
.cat-word .rung.goal:not(.reached) .tile{background:linear-gradient(170deg,#2f3a3a,#1d2525);color:#f6ecd4;box-shadow:inset 0 0 0 2px #c9a45a,0 4px 0 #0d1212,0 7px 10px #0005}
.cat-word .tile.edit.sel{box-shadow:inset 0 0 0 3px #c9a45a,0 6px 0 var(--wd-ivory-edge),0 12px 16px #0005;transform:translateY(-5px)}
:root[data-theme=dark] .cat-word .ladder{background:radial-gradient(ellipse at 20% 0%,#3a4a46,transparent 60%),linear-gradient(180deg,#22302c,#17211e)}

/* ---------- Daily Crossword: the puzzle page of a morning newspaper, filled in with a blue pen ---------- */
.cat-word .cw-layout{position:relative;gap:28px;padding:58px 30px 34px;margin-top:6px;color:#22201b;border-radius:3px;
  background:radial-gradient(circle at 18% 22%,#0000000a 0 1px,transparent 1.5px) 0 0/7px 7px,radial-gradient(ellipse at 50% 0%,#ffffff99,transparent 65%),linear-gradient(175deg,#f7f2e4,#ece3cd);
  box-shadow:0 1px 0 #fff inset,0 2px 0 #dcd0b2,0 4px 0 -1px #f2ead6,0 6px 0 -2px #d4c6a5,0 26px 40px -6px #2a1d0e40}
.cat-word .cw-layout::before{content:'THE MORNING PUZZLE';position:absolute;left:30px;right:30px;top:14px;padding-bottom:7px;font:800 21px/1 Georgia,'Times New Roman',serif;letter-spacing:.08em;color:#1c1a16;border-bottom:3px double #1c1a16;text-align:center}
.cat-word .cw-layout::after{content:'';position:absolute;right:-14px;bottom:-12px;width:150px;height:13px;border-radius:2px 7px 7px 2px;transform:rotate(-24deg);pointer-events:none;
  background:linear-gradient(90deg,#f1c6b2 0 10%,#a8a9ad 10% 17%,#e9b72f 17% 84%,#f3d9a8 84% 92%,#3a332b 92%);box-shadow:inset 0 3px 0 #ffffff55,inset 0 -3px 0 #0002,0 6px 8px #0003;clip-path:polygon(0 0,84% 0,100% 50%,84% 100%,0 100%)}
.cat-word .cw-grid{gap:1px;padding:2px;border:2px solid #1c1a16;border-radius:0;background:#1c1a16;box-shadow:0 0 0 5px #f4eedd,0 0 0 6px #1c1a1633;overflow:visible}
.cat-word .cw-cell{border-radius:0;transform:none;background:#f6f1e3;box-shadow:none}
.cat-word .cw-cell.black{background:#1c1a16}
.cat-word .cw-letter{font-family:'Patrick Hand','Segoe Print','Comic Sans MS',cursive;font-weight:400;font-size:calc(min(480px,100vw - 40px) / var(--n) * .66);color:#1f3c96;transform:rotate(-3deg);text-shadow:0 0 .5px #1f3c96}
.cat-word .cw-num{color:#3a352c;font-family:Georgia,serif;font-weight:700}
.cat-word .cw-cell.word{background:linear-gradient(transparent 18%,#cfe0f3b3 18% 82%,transparent 82%),#f6f1e3}
.cat-word .cw-cell.sel{background:linear-gradient(-2deg,transparent 10%,#ffe45ce6 12% 88%,transparent 90%),#f6f1e3;box-shadow:inset 0 0 0 2px #1f3c96;transform:none}
.cat-word .cw-cell.sel :is(.cw-letter){color:#1f3c96}.cat-word .cw-cell.sel .cw-num{color:#3a352c}
.cat-word .cw-cell.wrong .cw-letter{color:#c0392b}
.cat-word .cw-current{min-height:54px;padding:12px 16px;border-radius:2px;border:0;font:500 17px/1.35 Georgia,serif;color:#2a2118;
  background:linear-gradient(180deg,#fff7b8,#fbea84);box-shadow:0 1px 0 #fff inset,0 8px 12px -4px #3a2a0a40;transform:rotate(-.6deg)}
.cat-word .cw-current strong{color:#8a3d12;font-family:var(--body)}
.cat-word .cw-clues{padding:0 4px 0 22px;border-left:1px solid #1c1a1633;border-radius:0;background:none;box-shadow:none;font-family:Georgia,'Times New Roman',serif}
.cat-word .cw-clues h2{font:800 14px var(--body);letter-spacing:.18em;color:#1c1a16;padding-bottom:5px;border-bottom:2px solid #1c1a16;margin-bottom:6px}
.cat-word .cw-clue{border-radius:2px;padding:7px 8px;color:#2a2620}
.cat-word .cw-clue strong{font-family:var(--body);color:#1c1a16}
.cat-word .cw-clue:hover{background:#0000000a}
.cat-word .cw-clue.active{background:linear-gradient(-1deg,transparent 8%,#ffe45cd9 10% 90%,transparent 92%)}
.cat-word .cw-clue.done span{color:#8d8574;text-decoration:line-through;text-decoration-color:#1f3c9699;text-decoration-thickness:2px}
.cat-word .cw-tools .btn{background:#fffdf6;border-color:#1c1a16;color:#1c1a16;box-shadow:0 3px 0 #1c1a16}
:root[data-theme=dark] .cat-word .cw-layout{filter:brightness(.92)}
@media(max-width:720px){.cat-word .cw-layout{padding:52px 12px 26px;background-size:7px 7px,auto,auto}.cat-word .cw-layout::before{left:12px;right:12px;font-size:17px}.cat-word .cw-layout::after{display:none}.cat-word .cw-clues{border-left:0;padding:0}}
/* Bolder pass: walnut desk around the page, a red section masthead, coloured ink and markers, a coffee ring. */
.cat-word .cw-layout{border:22px solid transparent;border-image:linear-gradient(160deg,#8a5a32,#4a2c16 50%,#6a4223) 22;
  background:radial-gradient(circle at 95% 93%,transparent 34px,#a0602a2e 35px 38px,#a0602a14 39px 41px,transparent 42px),radial-gradient(circle at 18% 22%,#0000000a 0 1px,transparent 1.5px) 0 0/7px 7px,radial-gradient(ellipse at 50% 0%,#ffffffb3,transparent 65%),linear-gradient(175deg,#fbf6e8,#efe5cc);background-repeat:no-repeat,repeat,no-repeat,no-repeat;
  box-shadow:0 0 0 1px #2a1a0e,0 30px 44px -10px #2a1d0e66}
.cat-word .cw-layout::before{content:'THE MORNING PUZZLE  ·  BRAIN BRUNCH EDITION';top:12px;padding:9px 0 8px;font-size:17px;letter-spacing:.14em;color:#fffaf0;background:linear-gradient(180deg,#c2382c,#9c2a20);border:0;box-shadow:0 3px 0 #1c1a16,0 6px 0 -2px #e9b94a}
.cat-word .cw-layout::after{right:-34px;bottom:-30px;width:170px;height:15px}
.cat-word .cw-letter{color:#1b44c8}
.cat-word .cw-cell.word{background:linear-gradient(transparent 14%,#8fd6f0b3 14% 86%,transparent 86%),#f8f3e5}
.cat-word .cw-cell.sel{background:linear-gradient(-3deg,transparent 8%,#ffd23f 10% 90%,transparent 92%),#f8f3e5;box-shadow:inset 0 0 0 3px #c2382c}
.cat-word .cw-current{background:linear-gradient(180deg,#ffe066,#ffd23f);box-shadow:inset 0 -3px 0 #e6b31e,0 10px 14px -4px #3a2a0a55}
.cat-word .cw-current strong{color:#c2382c}
.cat-word .cw-clues h2{display:inline-block;align-self:flex-start;padding:5px 12px 4px;border:0;border-radius:3px;color:#fff;background:#1c7c7a;box-shadow:0 3px 0 #0f4d4c}
.cat-word .cw-clues > :nth-child(2) h2,.cat-word .cw-clues h2:nth-of-type(2){background:#e0663a;box-shadow:0 3px 0 #9a3c14}
.cat-word .cw-clue strong{color:#c2382c}
.cat-word .cw-clue.active{background:linear-gradient(-1deg,transparent 6%,#ffd23f 8% 92%,transparent 94%)}
.cat-word .cw-tools .btn{background:#fffaf0;border:2px solid #1c1a16;box-shadow:0 4px 0 #1c1a16}
.cat-word .cw-tools .btn:hover{background:#ffe066}
@media(max-width:720px){.cat-word .cw-layout{border-width:10px;border-image-slice:10}.cat-word .cw-layout::before{font-size:12px;letter-spacing:.1em;content:'THE MORNING PUZZLE'}}

/* ================= Shared desk kit for the other Word games ================= */
/* Ivory letter tiles (raised, embossed ink letters) */
.cat-word :is(.an-tile.bank,.an-tile.slot.typed,.wp-chip,.lo-tile:not(.center),.lt-cell,.ls-tile,.ch-token,.cc-code){border:0;color:var(--wd-ink);background:var(--wd-ivory);
  box-shadow:inset 0 2px 0 #fff,inset 0 -3px 4px #b8995e40,0 4px 0 var(--wd-ivory-edge),0 7px 10px #0004;text-shadow:0 1px 0 #fff}
.cat-word :is(.an-tile.bank,.wp-chip,.lo-tile,.lt-cell,.ls-tile,.ch-token,.cc-code):hover:not(:disabled){filter:brightness(1.04)}
/* Walnut trays that hold the tiles */
.cat-word :is(.an-bank,.wp-bank,.lt-board,.ls-tiles,.ch-tokens){padding:12px;border-radius:18px;background:var(--wd-walnut);box-shadow:inset 0 0 0 2px #2a1a0e,inset 0 3px 6px #0006,0 5px 0 #2a1a0e,0 14px 22px #1a10083d}
.cat-word .lt-board{gap:10px;padding:16px;width:min(100%,372px)}
/* Empty slots are carved wells in a light oak bar */
.cat-word :is(.an-slots,.wp-pyramid){padding:12px;border-radius:18px;background:repeating-linear-gradient(92deg,#ffffff12 0 2px,transparent 2px 10px),linear-gradient(170deg,#d8b98a,#b48c5a);box-shadow:inset 0 2px 0 #fff5,0 5px 0 #8a6440,0 14px 20px #1a100830}
.cat-word :is(.an-tile.slot:not(.typed):not(.done),.wp-row:is(.current,.ghost) .wp-tile:not(.typed)){border:0;background:linear-gradient(180deg,#8a6440,#a67e52);box-shadow:inset 0 3px 6px #0006}
.cat-word .wp-row.current .wp-tile.typed{border:0;color:var(--wd-ink);background:var(--wd-ivory);box-shadow:inset 0 2px 0 #fff,0 4px 0 var(--wd-ivory-edge),0 6px 8px #0004}
.cat-word :is(.an-tile.done,.wp-row.given .wp-tile,.wp-tile.new){box-shadow:inset 0 2px 1px #ffffff73,inset 0 -4px 6px #0003,0 4px 0 #0005,0 6px 9px #0004;border:0}
.cat-word .an-tile.bank.used,.cat-word .wp-chip.used{opacity:.28}
.cat-word .lt-cell.on{color:#fff;background:linear-gradient(165deg,#6fb8f0,#2c86c9);box-shadow:inset 0 2px 1px #fff7,0 4px 0 #1a5a8a,0 8px 10px #0005;text-shadow:none}
.cat-word .ch-token.selected{color:#fff;background:linear-gradient(165deg,#4fc0b4,#1c7c7a);box-shadow:inset 0 2px 1px #fff7,0 4px 0 #0f4d4c,0 8px 10px #0005;text-shadow:none}

/* Letter Orbit: brass-rimmed coins around a golden centre on a walnut turntable */
.cat-word .lo-orbit::before{content:'';position:absolute;inset:2%;border-radius:50%;background:var(--wd-walnut);box-shadow:inset 0 0 0 4px #2a1a0e,inset 0 0 0 7px #c9a45a88,inset 0 6px 14px #0007,0 8px 0 #2a1a0e,0 20px 30px #1a10084d}
.cat-word .lo-ring{border:2px dashed #e6c27a66}
.cat-word .lo-tile:not(.center){box-shadow:inset 0 0 0 3px #c9a45a,inset 0 2px 0 #fff,0 4px 0 #8a6a34,0 8px 10px #0006}
.cat-word .lo-tile.center{box-shadow:inset 0 0 0 3px #fff4c4,0 5px 0 #8a5a0a,0 0 0 8px #ffc94a33,0 12px 16px #0006}

/* Word Clusters: cream word cards on green baize */
.cat-word .wc-grid{padding:14px;border-radius:20px;background:radial-gradient(ellipse at 40% 20%,#3a7a56,#1c4a33 85%);box-shadow:inset 0 0 0 3px #6a4426,inset 0 0 0 6px #2a1a0e,inset 0 6px 14px #0006,0 8px 0 #2a1a0e,0 20px 30px #1a10084d}
.cat-word .wc-tile{border:0;border-radius:8px;color:var(--wd-ink);background:linear-gradient(175deg,#fffdf6,#efe5cd);font-family:var(--body);letter-spacing:.04em;box-shadow:inset 0 -2px 0 #0000000d,0 3px 0 #c4ab7c,0 7px 10px #0005}
.cat-word .wc-tile.picked{color:#fffaf0;background:linear-gradient(175deg,#3e4a63,#232b3d);box-shadow:inset 0 0 0 2px #c9a45a,0 3px 0 #0d1220,0 10px 14px #0006}

/* Word Search: newsprint puzzle with yellow highlighter, framed in walnut */
.cat-word .ws-board{border:0;border-radius:3px;padding:16px;background:radial-gradient(circle at 18% 22%,#0000000a 0 1px,transparent 1.5px) 0 0/7px 7px,linear-gradient(175deg,#fbf6e8,#efe5cc);box-shadow:0 0 0 14px #5e3a1f,0 0 0 16px #2a1a0e,0 24px 36px 10px #2a1d0e4d;margin-top:22px;margin-bottom:22px}
.cat-word .ws-cell{font-family:Georgia,'Times New Roman',serif;color:#1c1a16}
.cat-word .ws-cell.sel{background:#ffd23fcc}
.cat-word .ws-words li{border-radius:3px;background:#fffaf0;box-shadow:0 2px 0 #d9cdb4;font-family:Georgia,serif;color:#2a2118}
.cat-word .ws-words li.got{text-decoration:line-through;text-decoration-color:#1b44c8;text-decoration-thickness:2px;opacity:.75}

/* Cipher Cross: a code sheet in a walnut frame */
.cat-word .cc-grid{padding:14px;border-radius:6px;background:linear-gradient(175deg,#fbf6e8,#efe5cc);box-shadow:0 0 0 12px #5e3a1f,0 0 0 14px #2a1a0e,0 22px 34px 8px #2a1d0e4d;margin-top:16px;margin-bottom:22px}
.cat-word .cc-cell:not(.empty){border-radius:2px;background:#fffdf6;box-shadow:inset 0 0 0 1px #1c1a1640,0 1px 0 #d9cdb4}
.cat-word .cc-letter{font-family:'Courier New',Courier,monospace;font-weight:700;color:#1b44c8}
.cat-word :is(.cc-cell,.cc-code).sel{background:linear-gradient(-3deg,transparent 8%,#ffd23f 10% 90%,transparent 92%),#fffdf6}
.cat-word .cc-cell.solved{background:linear-gradient(170deg,#ffb3cc,#d6366b)}
.cat-word .cc-cell.solved .cc-letter{color:#fff}

/* Secret Saying: a typewritten telegram */
.cat-word .ss-board{border:0;border-radius:3px;padding:46px 18px 22px;position:relative;background:repeating-linear-gradient(180deg,transparent 0 33px,#c9a45a33 33px 34px),linear-gradient(175deg,#fdf3d2,#f1dfae);box-shadow:0 2px 0 #d9c38a,0 22px 34px #2a1d0e40}
.cat-word .ss-board::before{content:'TELEGRAM  ·  DECODE THE MESSAGE';position:absolute;left:18px;right:18px;top:12px;font:800 12px/1 var(--body);letter-spacing:.22em;color:#8a3d12;border-bottom:2px solid #8a3d12;padding-bottom:6px;text-align:center}
.cat-word .ss-guess{font-family:'Courier New',Courier,monospace;color:#1c1a16;background:#fffaf0aa;border-radius:3px}
.cat-word .ss-box.sel .ss-guess{background:#ffd23f;color:#1c1a16}

/* Quiz games (Root Words, Saying Sense, Spell Sleuth): a lined index card with typed answers */
.cat-word :is(.rw-card,.sw-card,.rs-card){border:0;border-radius:4px;padding:26px 22px 22px;background:repeating-linear-gradient(180deg,transparent 0 29px,#9fb7d14d 29px 30px),#fffdf6;
  box-shadow:0 1px 0 #e9e0cc,0 3px 0 -1px #f7f1e2,0 5px 0 -2px #e2d7bf,0 22px 32px #2a1d0e33;transform:rotate(-.5deg)}
.cat-word :is(.rw-card,.sw-card,.rs-card) :is(h2,h3,p){font-family:Georgia,'Times New Roman',serif;color:#1c1a16}
.cat-word :is(.rw-prompt,.sw-prompt,.rs-prompt){padding-bottom:12px;margin-bottom:14px;border-bottom:2px solid #e07a7a;font-family:Georgia,'Times New Roman',serif;color:#1c1a16}
.cat-word :is(.rw-opt,.sw-opt,.rs-opt){border:0;border-radius:6px;color:var(--wd-ink);font-family:Georgia,serif;font-size:17px;background:var(--wd-ivory);box-shadow:inset 0 2px 0 #fff,0 3px 0 var(--wd-ivory-edge),0 6px 9px #0003}
.cat-word :is(.rw-opt,.sw-opt,.rs-opt):hover:not(:disabled){background:linear-gradient(-2deg,transparent 8%,#ffe066 10% 90%,transparent 92%),#fffdf6}
.cat-word :is(.rw-opt,.sw-opt,.rs-opt).right{color:#fff;background:linear-gradient(165deg,#6fcf97,#2e8b57);box-shadow:0 3px 0 #1d5c39,0 6px 9px #0003}
.cat-word :is(.rw-opt,.sw-opt,.rs-opt).wrong{color:#fff;background:linear-gradient(165deg,#f0907a,#c2452d);box-shadow:0 3px 0 #7a2716,0 6px 9px #0003}

/* Practice challenges (Definition Detective, Word Misfit, Word Assembly, Missing Letter): a case sheet on a clipboard */
.cat-word.ch-page .ch-stage{border-radius:10px;overflow:visible;margin-top:26px;padding-top:clamp(40px,6vw,56px);background:repeating-linear-gradient(180deg,transparent 0 31px,#9fb7d140 31px 32px),linear-gradient(175deg,#fffdf6,#f4ecd8);
  box-shadow:0 0 0 12px #6a4426,0 0 0 14px #2a1a0e,0 24px 36px 8px #2a1d0e40}
.cat-word.ch-page .ch-stage::after{content:'';position:absolute;top:-22px;left:50%;width:120px;height:28px;margin-left:-60px;border-radius:6px 6px 10px 10px;background:linear-gradient(180deg,#e6e9ec,#9aa2a8);box-shadow:inset 0 2px 0 #fff,0 4px 6px #0005;pointer-events:none}
.cat-word.ch-page .ch-stage h2{font-family:Georgia,'Times New Roman',serif;color:#1c1a16}
.cat-word.ch-page .ch-glass{border:0;border-radius:6px;background:var(--wd-ivory);box-shadow:inset 0 2px 0 #fff,0 4px 0 var(--wd-ivory-edge),0 8px 12px #0003}

/* Word Builder: the brain-workout stage becomes a walnut desk */
.cat-word.bt-page .bt-stage{background:radial-gradient(ellipse at 50% 0%,#ffffff1a,transparent 60%),var(--wd-walnut);box-shadow:inset 0 0 0 3px #2a1a0e,inset 0 0 0 6px #8a6440aa,0 8px 0 #2a1a0e,0 22px 34px #1a10084d;color:#f6ecd4}
.cat-word.bt-page .bt-stage :is(.ls-word,.ls-msg){color:#f6ecd4}
.cat-word .ls-tiles{background:none;box-shadow:none}
@media(prefers-reduced-motion:reduce){.cat-word :is(.kbd-key,.key,.tile){transition:none}}

/* /css/numbers-real.css */
/* Numbers games: a real maths classroom. Slate chalkboards in oak frames, graph paper, calculator keys and abacus beads.
   Everything is scoped to .cat-numbers so no other game changes. Game-state colours (selected, solved, wrong) keep their meaning. */
.cat-numbers{--nm-oak:repeating-linear-gradient(92deg,#ffffff12 0 2px,transparent 2px 10px),linear-gradient(170deg,#c99a62,#9a6b3a);--nm-oak-edge:#6e4a26;
  --nm-slate:radial-gradient(ellipse at 30% 10%,#ffffff14,transparent 55%),radial-gradient(circle at 70% 60%,#ffffff08 0 1px,transparent 2px) 0 0/9px 9px,linear-gradient(170deg,#2f4a3c,#1d3128);
  --nm-graph:linear-gradient(#5b8fc433 1px,transparent 1px) 0 0/12px 12px,linear-gradient(90deg,#5b8fc433 1px,transparent 1px) 0 0/12px 12px,linear-gradient(#5b8fc44d 1px,transparent 1px) 0 0/60px 60px,linear-gradient(90deg,#5b8fc44d 1px,transparent 1px) 0 0/60px 60px,#fbfaf3;
  --nm-chalk:#f4f1e6;--nm-key:linear-gradient(180deg,#fdfaf1,#e8e1cf)}

/* ---------- Calculator keypads ---------- */
.cat-numbers .lt-pad{width:fit-content;max-width:100%;box-sizing:border-box}
.cat-numbers :is(.ng-pad,.lt-pad){padding:12px;border-radius:18px;background:linear-gradient(180deg,#d4d8dc,#9ea5ab);box-shadow:inset 0 1px 0 #fff,inset 0 -3px 6px #0003,0 5px 0 #6c7378,0 14px 22px #0003}
.cat-numbers :is(.ng-key,.lt-key){border:0;border-radius:10px;color:#1f2a2e;background:var(--nm-key);font-family:var(--display);
  box-shadow:inset 0 2px 0 #fff,inset 0 -3px 3px #0000001a,0 4px 0 #8e8778,0 6px 8px #0004;transition:transform .07s,box-shadow .07s}
.cat-numbers :is(.ng-key,.lt-key):active{transform:translateY(3px);box-shadow:inset 0 2px 0 #fff,0 1px 0 #8e8778,0 2px 3px #0004}
.cat-numbers :is(.ng-key.done,.lt-key.full){opacity:.4}

/* ---------- Grid puzzles on graph paper, held in an oak frame ---------- */
.cat-numbers :is(.ng-grid,#np-grid,#sg-grid,#cs-grid,.ct-board,.ns-board){border:0;border-radius:4px;background:var(--nm-graph);
  box-shadow:0 0 0 12px #b07f4b,0 0 0 14px var(--nm-oak-edge),inset 0 0 0 1px #0000001a,0 26px 36px 10px #2a1d0e40!important;margin-top:18px;margin-bottom:22px}
.cat-numbers .ng-grid{padding:6px;gap:2px}
.cat-numbers .ng-cell{background:#fffef8cc;box-shadow:inset 0 0 0 1px #1c2a3a1f}
.cat-numbers .ng-cell.boxalt:not(.sel):not(.peer):not(.same):not(.clash){background:#eef3faee}
.cat-numbers .ng-cell.given{color:#14213a;background:#f3efe2}
.cat-numbers .ng-cell.user{color:#1b44c8}
.cat-numbers :is(.ng-cell,.lt-cell).sel{background:linear-gradient(-3deg,transparent 6%,#ffd23f 8% 92%,transparent 94%),#fffef8}
.cat-numbers :is(#np-grid,#sg-grid,#cs-grid) .lt-cell{border-radius:3px;background:#fffef8d9;box-shadow:inset 0 0 0 1px #1c2a3a26}
.cat-numbers :is(#np-grid,#sg-grid,#cs-grid) .lt-cell.given .lt-v{color:#14213a}
.cat-numbers :is(#np-grid,#sg-grid,#cs-grid) .lt-v{color:#1b44c8}
.cat-numbers .cs-block{background:linear-gradient(170deg,#2f4a3c,#1d3128);color:var(--nm-chalk)}

/* Count Trail: polished abacus beads on graph paper */
.cat-numbers .ct-cell:not(:empty){border:0;color:#2a1a0e;background:radial-gradient(circle at 35% 28%,#fff8e6,#e9cf9c 45%,#b98a4c);box-shadow:inset 0 -3px 5px #0003,0 3px 0 #7a5528,0 6px 8px #0004}
.cat-numbers .ct-cell.given{color:#fff;background:radial-gradient(circle at 35% 28%,#ff9a7a,#c2382c 55%,#7a1d14);box-shadow:inset 0 -3px 5px #0004,0 3px 0 #5a140e,0 6px 8px #0004;text-shadow:0 1px 1px #0006}
.cat-numbers .ct-cell.sel{background:radial-gradient(circle at 35% 28%,#fff6c4,#ffd23f 55%,#c99a0a);color:#2a1a0e}
.cat-numbers .ct-cell.solved:not(:empty){color:#fff;background:radial-gradient(circle at 35% 28%,#9fe8c8,#1b8a5e 55%,#0f5a3c);text-shadow:0 1px 1px #0006}
.cat-numbers .ct-cell:empty{border-color:#5b8fc466;background:#ffffff80}
.cat-numbers .ct-lines line{stroke:#7a5528}

/* Number Selection: brass counters */
.cat-numbers .ns-cell{border:0;color:#2a1a0e;background:var(--nm-key)!important;box-shadow:inset 0 2px 0 #fff,0 3px 0 #8e8778,0 6px 8px #0003}

.cat-numbers .ns-cell.removed{background:#d9d3c2!important;box-shadow:inset 0 2px 4px #0002;color:#8a8272}
/* ---------- Tile games in oak trays ---------- */
.cat-numbers :is(.mc-board,.be-board,.ss-board){border:0;background:var(--nm-oak)!important;box-shadow:inset 0 2px 0 #fff5,inset 0 -4px 8px #0003,0 6px 0 var(--nm-oak-edge),0 22px 32px #2a1d0e40!important}
.cat-numbers .mc-bg .mc-cell{background:#6e4a26a6;box-shadow:inset 0 3px 6px #0006;border-radius:12px}
.cat-numbers .mc-tile{box-shadow:inset 0 2px 0 #ffffffaa,inset 0 -4px 6px #0002,0 4px 0 #0005,0 8px 10px #0004}
.cat-numbers :is(.be-tile,.ss-tile){border:0;color:#1f2a2e;background:var(--nm-key);box-shadow:inset 0 2px 0 #fff,0 4px 0 #8e8778,0 7px 9px #0004}
.cat-numbers .be-slot{border:2px dashed #6e4a26;background:#fffaf0b3;color:#1b44c8}
.cat-numbers .be-slot.sel{background:#ffd23f;border-style:solid}
.cat-numbers .ss-tile.sel{background:linear-gradient(170deg,#ffe38f,#f5c542)}
.cat-numbers .ss-op{border:0;color:#fff;background:linear-gradient(180deg,#e08a3a,#b8611c);box-shadow:inset 0 2px 0 #fff5,0 3px 0 #7a3d0c}
.cat-numbers .ss-op.on{background:linear-gradient(180deg,#3a8fd0,#1f5c96);box-shadow:inset 0 2px 0 #fff5,0 3px 0 #123a63}

/* ---------- Chalkboards: challenge games, Math Mischief and Mental Arithmetic ---------- */
.cat-numbers:is(.ch-page) .ch-stage,.cat-numbers .mm-card,.cat-numbers.bt-page .bt-stage{border:0;color:var(--nm-chalk);background:var(--nm-slate);
  box-shadow:inset 0 0 30px #0006,0 0 0 12px #b07f4b,0 0 0 14px var(--nm-oak-edge),0 26px 38px 10px #1a100840!important}
.cat-numbers:is(.ch-page) .ch-stage{margin:28px 0 40px}
.cat-numbers:is(.ch-page) .ch-stage::after{content:'';position:absolute;left:-12px;right:-12px;bottom:-26px;height:14px;border-radius:3px;background:linear-gradient(180deg,#c99a62,#8a5f30);box-shadow:0 5px 8px #0004;pointer-events:none}
.cat-numbers:is(.ch-page) .ch-stage{overflow:visible}
.cat-numbers:is(.ch-page) .ch-stage :is(h2,label,li,p,.ch-meta,.ch-note,.ch-feedback,.ch-clues){color:var(--nm-chalk);text-shadow:0 0 1px #ffffff80}
.cat-numbers:is(.ch-page) .ch-glass{border:2px dashed #f4f1e6aa;background:#ffffff0d;box-shadow:none;color:#fff7c2;text-shadow:0 0 2px #fff7c299}
.cat-numbers:is(.ch-page) .ch-token{border:0;color:#2a1a0e;background:radial-gradient(circle at 35% 25%,#fff8e6,#e9cf9c 55%,#c49a5c);box-shadow:inset 0 2px 0 #fff,0 4px 0 #7a5528,0 8px 10px #0005}
.cat-numbers:is(.ch-page) .ch-token.selected{color:#fff;background:radial-gradient(circle at 35% 25%,#9ad7ff,#2c86c9 60%,#1a5a8a);box-shadow:inset 0 2px 0 #fff6,0 4px 0 #123a63,0 8px 10px #0005}
.cat-numbers:is(.ch-page) .ch-stage :is(input,select){background:#fffef8;color:#14213a}
.cat-numbers:is(.ch-page) .ch-stage .ch-display + *{color:var(--nm-chalk)}
.cat-numbers .mm-card{padding:26px}
.cat-numbers .mm-q{color:var(--nm-chalk);text-shadow:0 0 1px #ffffff99}
.cat-numbers .mm-card :is(.eyebrow,p,label,.mm-unit,.mm-explain){color:#e8e3d0}
.cat-numbers .mm-input{background:#fffef8;color:#14213a}
.cat-numbers.bt-page .bt-stage :not(button):not(input){color:var(--nm-chalk);text-shadow:0 0 2px #ffffff80}
.cat-numbers.bt-page .ns-btn{border:0;color:#1f2a2e;background:var(--nm-key);box-shadow:inset 0 2px 0 #fff,0 4px 0 #8e8778,0 6px 8px #0005}
:root[data-theme=dark] .cat-numbers :is(.ng-grid,#np-grid,#sg-grid,#cs-grid,.ct-board,.ns-board){filter:brightness(.93)}
@media(max-width:600px){.cat-numbers :is(.ng-grid,#np-grid,#sg-grid,#cs-grid,.ct-board,.ns-board),.cat-numbers:is(.ch-page) .ch-stage,.cat-numbers .mm-card,.cat-numbers.bt-page .bt-stage{box-shadow:0 0 0 7px #b07f4b,0 0 0 8px var(--nm-oak-edge),0 18px 26px #1a100833!important}.cat-numbers:is(.ch-page) .ch-stage::after{left:-7px;right:-7px;bottom:-20px}}
@media(prefers-reduced-motion:reduce){.cat-numbers :is(.ng-key,.lt-key){transition:none}}
.cat-numbers.bt-page .bt-count{color:#fff7c2!important;text-shadow:0 0 6px #fff7c266}
.cat-numbers .be-tile{background:var(--nm-key)!important;color:#1f2a2e!important}

/* /css/logic-real.css */
/* Logic games: a puzzle cabinet. Boards sit on navy leather inside polished brass bezels; paper puzzles become
   detective notebooks, sea charts and parchment cards. Scoped to .cat-logic; boards that already look real
   (Clockwork, Lantern Flip, Courtyard Lanterns, Park & Slide, the illusion games) are left as they are. */
.cat-logic{--lg-brass:linear-gradient(145deg,#f3d88f,#b8892e 40%,#e6c46a 60%,#8a6418);--lg-leather:radial-gradient(ellipse at 30% 15%,#ffffff12,transparent 55%),radial-gradient(circle at 60% 40%,#ffffff06 0 1px,transparent 2px) 0 0/5px 5px,linear-gradient(165deg,#25364f,#141f30);
  --lg-porcelain:linear-gradient(170deg,#fffefb,#ece9e1);--lg-parch:radial-gradient(ellipse at 20% 10%,#fff9e8,transparent 60%),radial-gradient(circle at 80% 90%,#c9a45a33,transparent 50%),linear-gradient(170deg,#f6ecd2,#e7d6ae)}

/* ---------- Brass-bezel cabinet frame for board puzzles ---------- */
.cat-logic :is(.tp-board,.cg-board,.sq-board,.sh-board,.pl-board,.il-board,.cl-board){position:relative;border:0!important;border-radius:16px;
  box-shadow:0 0 0 4px #6a4a12,0 0 0 9px #d8b55e,0 0 0 10px #6a4a12,0 0 0 22px #1b2a40,0 0 0 23px #0b121d,0 30px 44px 16px #0b121d40!important;margin:30px auto 38px}
.cat-logic .tp-board{background:var(--lg-leather)!important;padding:18px}
.cat-logic .tp-board :is(.tp-caption,.tp-total,.tp-goal,.tp-goal small,.tp-vessel-name,.tp-vessel small,.tp-amount){color:#efe6cc}
.cat-logic .tp-total strong{color:#ffe3a0}
.cat-logic .tp-cell{border:0;background:var(--lg-porcelain);box-shadow:inset 0 2px 0 #fff,inset 0 -3px 4px #0000001c,0 3px 0 #9da3ad,0 6px 8px #0005}
.cat-logic .tp-cell:disabled{opacity:1}
.cat-logic .camp-cell.grass{background:linear-gradient(170deg,#9ccf6a,#5f9a35)}
.cat-logic .camp-cell.tree,.cat-logic .camp-cell.tent{box-shadow:inset 0 2px 0 #fff8,0 3px 0 #3f6d2a,0 6px 8px #0005}
.cat-logic .peg-hole{background:radial-gradient(circle,#0b121d 0 38%,transparent 40%),radial-gradient(circle at 50% 45%,#3a2a1a,#1b120a)!important;box-shadow:inset 0 3px 6px #000a,0 1px 0 #ffffff1a!important;border:0!important}
.cat-logic .tp-peg{background:radial-gradient(circle at 34% 28%,#ffffff 0 8%,#d6b4ff 18%,#7a3fc0 60%,#3d1a6a)!important;box-shadow:0 4px 6px #0007,inset 0 -3px 4px #0004!important}
.cat-logic .peg-hole.selected .tp-peg{box-shadow:0 0 0 4px #ffd23f,0 6px 10px #0008!important}
.cat-logic .tp-vessel{color:#efe6cc}

/* Crown Garden: the coloured gardens get a soft linen texture */
.cat-logic .cg-board{background:#0b121d!important;padding:6px}
.cat-logic .cg-cell{background-image:repeating-linear-gradient(45deg,#ffffff1a 0 2px,transparent 2px 6px)}

/* Safe Squares and Shape Shadows inside the cabinet */
.cat-logic .sq-board{padding:10px;background:var(--lg-leather)!important}
.cat-logic .sh-board{background:var(--lg-parch)!important}

/* Picture Logic: engineering paper */
.cat-logic .pl-board{background:#fbfaf3!important}

/* Island Links: an old sea chart */
.cat-logic .il-board{background:radial-gradient(circle at 88% 12%,transparent 0 26px,#8a5a2a55 27px 28px,transparent 29px),linear-gradient(#2c5d7a1a 1px,transparent 1px) 0 0/40px 40px,linear-gradient(90deg,#2c5d7a1a 1px,transparent 1px) 0 0/40px 40px,radial-gradient(ellipse at 50% 50%,#bfe0e6,#8cc0cf 70%,#6fa6b8)!important}

/* Corral Loop: a cork pinboard */
.cat-logic .cl-board{background:radial-gradient(circle at 20% 30%,#0000001a 0 2px,transparent 3px) 0 0/9px 9px,radial-gradient(circle at 70% 60%,#ffffff1f 0 1.5px,transparent 2px) 0 0/7px 7px,linear-gradient(160deg,#d3a76a,#a97a44)!important;color:#2a1a0e}

/* Logic Grid: a detective's notebook */
.cat-logic .lg-gridwrap{border:0;border-radius:4px;background:repeating-linear-gradient(180deg,transparent 0 27px,#9fb7d140 27px 28px),linear-gradient(90deg,transparent 30px,#e07a7a88 30px 32px,transparent 32px),#fffdf6;
  box-shadow:0 1px 0 #e9e0cc,0 3px 0 -1px #f7f1e2,0 5px 0 -2px #e2d7bf,0 22px 32px #2a1d0e33!important}
.cat-logic .lg-cell button.yes{color:#1b8a5e}
.cat-logic .lg-cell button.no{color:#c0392b}

/* Riddle and What's Next: parchment cards with a wax seal */
.cat-logic :is(.rd-card,.nx-card){position:relative;border:0;border-radius:6px;background:var(--lg-parch)!important;color:#2a1d10;
  box-shadow:inset 0 0 40px #a0743833,0 2px 0 #d9c38a,0 24px 36px #2a1d0e40!important}
.cat-logic :is(.rd-card,.nx-card)::after{content:'';position:absolute;right:18px;top:-14px;width:38px;height:38px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 38% 32%,#e86a5a,#a8261c 60%,#6a140e);box-shadow:inset 0 0 0 5px #ffffff1f,inset 0 -3px 4px #0005,0 4px 6px #0005}
.cat-logic :is(.rd-card,.nx-card) :is(h2,h3,p,.eyebrow){font-family:Georgia,'Times New Roman',serif;color:#2a1d10}

/* Vault Code: a brushed-steel safe door */
.cat-logic .vc-vault{border:0;border-radius:14px;background:repeating-linear-gradient(90deg,#ffffff14 0 1px,transparent 1px 3px),linear-gradient(170deg,#b9c0c6,#7e868d);box-shadow:inset 0 0 0 3px #5a6168,inset 0 2px 0 #fff8,0 6px 0 #3e444a,0 18px 26px #0005}
.cat-logic .vc-pad{width:fit-content;max-width:100%;box-sizing:border-box;margin-left:auto;margin-right:auto;padding:14px;border-radius:16px;background:linear-gradient(170deg,#3a3f45,#202428);box-shadow:inset 0 1px 0 #ffffff26,0 6px 0 #0f1113,0 16px 24px #0004}
.cat-logic .vc-key{border:0;color:#1d2226;background:radial-gradient(circle at 40% 30%,#ffffff,#c9ced3 60%,#9aa2a8);box-shadow:inset 0 -3px 4px #0003,0 4px 0 #4a5056,0 7px 9px #0006}
.cat-logic .vc-key.crossed{opacity:.35}

/* Jigsaw: a framed board on a wooden table */
.cat-logic .j-board-frame{box-shadow:0 0 0 10px #8a5a32,0 0 0 12px #4a2c16,0 24px 34px 8px #2a1d0e40}

:root[data-theme=dark] .cat-logic :is(.lg-gridwrap,.rd-card,.nx-card){filter:brightness(.92)}
@media(max-width:600px){.cat-logic :is(.tp-board,.cg-board,.sq-board,.sh-board,.pl-board,.il-board,.cl-board){box-shadow:0 0 0 3px #6a4a12,0 0 0 7px #d8b55e,0 0 0 8px #6a4a12,0 18px 26px #0b121d33!important;margin:18px auto 24px}}

/* /css/brain-real.css */
/* Memory & Focus: a games-room card table. Green baize inside a padded leather rail, real playing cards,
   ivory pads and billiard-ball spheres. Scoped to .cat-brain; right/wrong feedback colours keep their meaning. */
.cat-brain{--bn-felt:radial-gradient(ellipse at 50% 30%,#ffffff14,transparent 60%),radial-gradient(circle at 30% 40%,#00000012 0 1px,transparent 1.5px) 0 0/4px 4px,radial-gradient(ellipse at 50% 40%,#2f7a52,#17462e 90%);
  --bn-card:linear-gradient(170deg,#fffefb,#f0ece2);--bn-ink:#1d2b26}

/* The table */
.cat-brain .bt-stage{border:0;color:#f4efe0;background:var(--bn-felt)!important;
  box-shadow:inset 0 0 40px #0007,inset 0 0 0 3px #0f2e1e,0 0 0 14px #4a2616,0 0 0 16px #2a140a,0 0 0 18px #c9a45a,0 0 0 19px #6a4a12,0 28px 40px 14px #1a100840!important;margin:24px 0 34px}
.cat-brain .bt-stage :is(.bt-info,.gf-message,.cc-msg,.cc-cap){color:#f4efe0;text-shadow:0 1px 1px #0006}
.cat-brain .bt-count{color:#ffe08a!important;text-shadow:0 3px 0 #0005}
.cat-brain :is(.gf-board,.gf-card,.gf-field,.gf-trays,.cf-board,.gf-spot-field){background:transparent!important;border:0!important;box-shadow:none!important}

/* Cards, pads and tiles become ivory playing cards */
.cat-brain :is(.gf-pad,.gf-tile,.gf-choice,.gf-tray,.gf-target,.gf-cue,.gf-key,.it-btn,.ss-btn,.ss-target,.it-word,.jl-jar,.ou-dish){border:0!important;color:var(--bn-ink);background:var(--bn-card)!important;
  box-shadow:inset 0 0 0 1px #00000014,inset 0 0 0 5px #fffefb,inset 0 0 0 6px #c9a45a66,0 3px 0 #b9b2a0,0 8px 12px #0006!important;border-radius:10px}
.cat-brain :is(.gf-pad,.gf-tile,.gf-choice,.it-btn,.ss-btn,.gf-key):not(:disabled):hover{transform:translateY(-2px)}
.cat-brain .gf-pad.lit{background:radial-gradient(circle at 50% 40%,#fff6c4,#ffd23f 70%)!important;box-shadow:inset 0 0 0 5px #fffefb,0 0 0 4px #ffd23f88,0 0 24px #ffd23f99,0 8px 12px #0006!important}
.cat-brain .cf-back{background:repeating-linear-gradient(45deg,#ffffff22 0 2px,transparent 2px 7px),repeating-linear-gradient(-45deg,#ffffff22 0 2px,transparent 2px 7px),linear-gradient(160deg,#b0402c,#7a2216)!important;border:4px solid #fffefb!important;box-shadow:0 3px 0 #b9b2a0,0 8px 12px #0006!important}
.cat-brain .cf-front{background:var(--bn-card)!important;box-shadow:inset 0 0 0 5px #fffefb,inset 0 0 0 6px #c9a45a66,0 3px 0 #b9b2a0,0 8px 12px #0006!important}

/* Sphere Tracking: billiard balls on the baize */
.cat-brain .gf-sphere{border:0!important;background:radial-gradient(circle at 34% 28%,#fff 0 9%,#f2efe6 18%,#cfc9b8 62%,#8f8a7a)!important;box-shadow:0 6px 8px #0007,inset 0 -4px 6px #0003!important}
.cat-brain .gf-sphere:is(.marked,.selected){background:radial-gradient(circle at 34% 28%,#fff 0 9%,#ff9a7a 18%,#c2382c 62%,#6a140e)!important}

/* Bead Comparison: wooden trays with glass beads */
.cat-brain .gf-tray{background:linear-gradient(170deg,#c99a62,#9a6b3a)!important;box-shadow:inset 0 4px 8px #0005,0 4px 0 #6e4a26,0 10px 14px #0006!important}
.cat-brain .gf-bead{background:radial-gradient(circle at 34% 28%,#fff,#9ad7ff 30%,#2c86c9 70%,#174a7a)!important;box-shadow:0 2px 3px #0006}

/* Feedback stays obvious */
.cat-brain :is(.gf-ok,.cf-card.ok .cf-front,.jl-jar.ok){box-shadow:inset 0 0 0 4px #2e8b57,0 0 0 4px #6fcf9788,0 8px 12px #0006!important}
.cat-brain :is(.gf-bad,.cf-card.bad .cf-front,.jl-jar.bad){box-shadow:inset 0 0 0 4px #c2452d,0 0 0 4px #f0907a88,0 8px 12px #0006!important}

/* Workout intro and between-game cards: a leather-bound scorecard */
.cat-brain .bt-card{border:0;background:linear-gradient(170deg,#fffdf6,#f4ecd8);box-shadow:0 0 0 8px #4a2616,0 0 0 9px #c9a45a,0 22px 32px 6px #1a100833}
@media(max-width:600px){.cat-brain .bt-stage{box-shadow:inset 0 0 30px #0007,0 0 0 8px #4a2616,0 0 0 9px #c9a45a,0 18px 26px #1a100840!important;margin:16px 0 24px}}
.cat-brain :is(.it-rule,.jl-rule,.ou-rule){background:#fffefb!important;color:var(--bn-ink)!important;box-shadow:0 2px 0 #b9b2a0,0 4px 8px #0005}
.cat-brain .cf-back::after{background:radial-gradient(circle,#f3d27a 0 30%,#b8862e 60%,transparent 64%)!important}

/* v2: real wood rail, brass corner studs, overhead lamp, brass scoreboard, poker-chip pads */
.cat-brain .bt-stage{border:16px solid transparent!important;border-radius:26px;
  background:radial-gradient(ellipse 70% 55% at 50% 0%,#fff3c41f,transparent 70%) padding-box,
    radial-gradient(circle at 30% 40%,#00000014 0 1px,transparent 1.5px) 0 0/4px 4px padding-box,
    radial-gradient(ellipse at 50% 40%,#2f7a52,#17462e 90%) padding-box,
    repeating-linear-gradient(92deg,#ffffff0d 0 2px,transparent 2px 9px,#0000001a 9px 11px,transparent 11px 19px) border-box,
    linear-gradient(170deg,#7a3f22,#4a2412 45%,#6b361c 70%,#3a1c0e) border-box!important;
  box-shadow:inset 0 0 40px #0008,inset 0 0 0 2px #0f2e1e,0 0 0 2px #c9a45a,0 0 0 3px #6a4a12,0 26px 36px 8px #1a100845!important}
.cat-brain .bt-stage::before{content:"";position:absolute;inset:-12px;pointer-events:none;border-radius:20px;
  background:radial-gradient(circle,#fff6d0 0 1px,#d9b45e 2px,#8a6420 5px,transparent 5.5px) 0 0/12px 12px no-repeat,
    radial-gradient(circle,#fff6d0 0 1px,#d9b45e 2px,#8a6420 5px,transparent 5.5px) 100% 0/12px 12px no-repeat,
    radial-gradient(circle,#fff6d0 0 1px,#d9b45e 2px,#8a6420 5px,transparent 5.5px) 0 100%/12px 12px no-repeat,
    radial-gradient(circle,#fff6d0 0 1px,#d9b45e 2px,#8a6420 5px,transparent 5.5px) 100% 100%/12px 12px no-repeat}
.cat-brain .bt-play{background:linear-gradient(170deg,#fffdf6,#f3ead4)!important}
.cat-brain .bt-score{min-width:64px;text-align:center;padding:2px 14px;border-radius:10px;color:#ffd970;background:linear-gradient(180deg,#24140b,#3a2414);
  box-shadow:inset 0 2px 6px #000a,0 0 0 2px #c9a45a,0 0 0 3px #6a4a12;text-shadow:0 0 10px #ffc94a88}
.cat-brain .bt-timebar{height:10px!important;border-radius:6px;background:linear-gradient(180deg,#2a1a10,#4a3020)!important;box-shadow:inset 0 2px 3px #000a,0 0 0 1px #c9a45a}
.cat-brain .bt-timebar span{background:linear-gradient(180deg,#ffe9a8,#d9a83a 50%,#9a6e1c)!important;border-radius:6px}
.cat-brain .bt-timebar.low span{background:linear-gradient(180deg,#ffb4a0,#d0452d 50%,#8a2216)!important}

/* Pad Sequence: casino-style chips (generic, unbranded) */
.cat-brain .gf-pad{border-radius:50%!important;font-weight:800;font-size:1.3em;color:#2a1a10!important;
  background:radial-gradient(circle,#fffdf6 0 44%,var(--bnc,#c2382c) 45% 52%,transparent 53%),
    repeating-conic-gradient(var(--bnc,#c2382c) 0 22deg,#fffdf6 22deg 30deg),var(--bnc,#c2382c)!important;
  box-shadow:inset 0 0 0 4px #00000022,0 4px 0 #0005,0 9px 12px #0007!important}
.cat-brain .gf-pad:nth-child(3n+2){--bnc:#2457a8}.cat-brain .gf-pad:nth-child(3n){--bnc:#1f7a4a}
.cat-brain .gf-pad:nth-child(n+4):nth-child(-n+6){--bnc:#202020}
.cat-brain .gf-pad.lit{background:radial-gradient(circle,#fff6c4 0 44%,#ffd23f 45% 52%,transparent 53%),repeating-conic-gradient(#ffd23f 0 22deg,#fff6c4 22deg 30deg)!important;
  box-shadow:0 0 0 5px #ffd23f99,0 0 30px #ffd23f,0 9px 12px #0007!important;transform:translateY(-3px)}
.cat-brain .gf-pad.gf-ok{box-shadow:0 0 0 5px #6fcf97,0 9px 12px #0007!important}
.cat-brain .gf-pad.gf-bad{box-shadow:0 0 0 5px #f0907a,0 9px 12px #0007!important}
@media(max-width:600px){.cat-brain .bt-stage{border-width:9px!important}.cat-brain .bt-stage::before{inset:-7px}}

/* /css/throwback-real.css */

/* Throwback Trivia: a wood-panel 1970s TV set. The question glows on a curved CRT screen, with channel knobs and a
   speaker grille, and every answer is a cassette tape. Generic retro styling with no brand marks. Scoped to .cat-memorylane. */
.cat-memorylane{--tb-wood:repeating-linear-gradient(91deg,#ffffff08 0 3px,transparent 3px 11px,#00000018 11px 13px,transparent 13px 23px),linear-gradient(170deg,#7a4424,#4a2412 55%,#6b3a1c);
  --tb-retro:linear-gradient(180deg,#f2a93b 0 25%,#e86a2a 25% 50%,#c2382c 50% 75%,#7a2a5a 75%);
  --tb-reels:radial-gradient(circle at 30% 100%,#d9d9d9 0 4px,#2a2a2e 4.5px 9px,transparent 9.5px),radial-gradient(circle at 70% 100%,#d9d9d9 0 4px,#2a2a2e 4.5px 9px,transparent 9.5px),linear-gradient(180deg,#3a3a40,#1e1e22)}

/* Cabinet */
.cat-memorylane .ml-card{position:relative;border:0!important;color:#f6ead2;background:var(--tb-wood)!important;padding:26px 150px 30px 26px!important;border-radius:22px;
  box-shadow:inset 0 2px 0 #ffffff22,inset 0 -6px 12px #0006,0 0 0 3px #2a1408,0 40px 40px 0 #2a140840!important}
/* Control panel: two chrome knobs over a speaker grille */
.cat-memorylane .ml-card::before{content:"";position:absolute;top:24px;right:24px;bottom:24px;width:104px;border-radius:12px;pointer-events:none;
  background:radial-gradient(circle,#2a2a2a 0 4px,transparent 5px) 50% 40px/56px 56px no-repeat,
    radial-gradient(circle,transparent 0 24px,#00000055 25px 28px,transparent 29px) 50% 40px/56px 56px no-repeat,
    conic-gradient(#f4f4f4,#8a8a8a,#f6f6f6,#777,#ddd,#888,#f4f4f4) 50% 40px/56px 56px no-repeat,
    radial-gradient(circle,#2a2a2a 0 4px,transparent 5px) 50% 112px/56px 56px no-repeat,
    radial-gradient(circle,transparent 0 24px,#00000055 25px 28px,transparent 29px) 50% 112px/56px 56px no-repeat,
    conic-gradient(from 60deg,#f4f4f4,#8a8a8a,#f6f6f6,#777,#ddd,#888,#f4f4f4) 50% 112px/56px 56px no-repeat,
    repeating-linear-gradient(0deg,#1a0e06 0 3px,#6a4a2a 3px 6px) 50% calc(100% - 14px)/76px calc(100% - 200px) no-repeat,
    linear-gradient(180deg,#d9c7a0,#a8925f);
  box-shadow:inset 0 0 0 2px #6a4a2a,inset 0 3px 6px #fff6,0 2px 6px #0006}
.cat-memorylane .ml-card .eyebrow{display:inline-block;margin:0 0 12px;padding:3px 10px;border-radius:4px;color:#2a1408!important;background:linear-gradient(180deg,#f4f4f4,#b9b9b9 50%,#e2e2e2);box-shadow:inset 0 1px 0 #fff8,0 2px 4px #0006;letter-spacing:.12em}
/* CRT screen */
.cat-memorylane .ml-card h2{position:relative;margin:4px 12px 26px;padding:30px 28px;border-radius:30px/40px;color:#eafcff!important;
  text-shadow:0 0 6px #7fe7ff,0 0 18px #3ab4e8,2px 0 0 #ff3b6b55,-2px 0 0 #3bd1ff55;
  background:repeating-linear-gradient(0deg,#0000 0 2px,#00000055 2px 3px),radial-gradient(ellipse at 40% 30%,#3b5a7a,#14202e 60%,#05080c);
  box-shadow:inset 0 0 40px #000c,inset 0 0 0 2px #000,0 0 0 10px #1a1a1a,0 0 0 12px #c9a45a,0 0 30px 14px #3ab4e833;animation:tb-flicker 5s infinite}
.cat-memorylane .ml-card h2::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(ellipse 60% 40% at 30% 20%,#ffffff26,transparent 70%)}
@keyframes tb-flicker{0%,96%,100%{filter:none}97%{filter:brightness(1.25)}98%{filter:brightness(.85)}}

/* Answers: cassette tapes */
.cat-memorylane .ml-options{counter-reset:tb;gap:16px!important}
.cat-memorylane .ml-option{counter-increment:tb;position:relative;min-height:78px;padding:24px 20px 32px!important;border:0!important;border-radius:10px!important;text-align:left;
  color:#2a1408!important;font-family:'Patrick Hand',var(--display),cursive;font-size:1.25em;font-weight:400;line-height:1.15;
  background:linear-gradient(#fffaf0,#f3e8cf) 10px 8px/calc(100% - 20px) calc(100% - 28px) no-repeat,var(--tb-reels)!important;
  box-shadow:inset 0 0 0 1px #ffffff22,0 5px 0 #0b0b0d,0 10px 14px #0008!important;transition:transform .12s,box-shadow .12s}
.cat-memorylane .ml-option::before{content:"SIDE " counter(tb,upper-alpha);position:absolute;left:10px;right:10px;top:8px;height:12px;padding-left:8px;
  font:800 9px/12px var(--display,system-ui);letter-spacing:.18em;color:#fffaf0;background:var(--tb-retro);border-radius:2px 2px 0 0}
.cat-memorylane .ml-option::after{content:"";position:absolute;left:50%;bottom:5px;width:46%;max-width:180px;height:15px;transform:translateX(-50%);border-radius:8px;
  background:radial-gradient(circle at 18% 50%,#f4f4f4 0 3px,#4a3a2a 3.5px 6px,transparent 6.5px),radial-gradient(circle at 82% 50%,#f4f4f4 0 3px,#4a3a2a 3.5px 6px,transparent 6.5px),linear-gradient(90deg,#5a3a22,#7a5232 50%,#5a3a22);
  box-shadow:inset 0 0 0 2px #0b0b0d}
.cat-memorylane .ml-option:hover:not(:disabled){transform:translateY(-3px) rotate(-.6deg)}
.cat-memorylane .ml-option:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #0b0b0d,0 3px 6px #0008!important}
.cat-memorylane .ml-option.picked{box-shadow:0 0 0 3px #f2a93b,0 5px 0 #0b0b0d,0 0 20px #f2a93b99!important}
.cat-memorylane .ml-option.correct{background:linear-gradient(#e8fbe9,#c6eccd) 10px 8px/calc(100% - 20px) calc(100% - 28px) no-repeat,var(--tb-reels)!important;box-shadow:0 0 0 4px #3aa86a,0 0 22px #3aa86a99,0 5px 0 #0b0b0d!important}
.cat-memorylane .ml-option.wrong{background:linear-gradient(#fde6e0,#f3c3b6) 10px 8px/calc(100% - 20px) calc(100% - 28px) no-repeat,var(--tb-reels)!important;box-shadow:0 0 0 4px #c2452d,0 5px 0 #0b0b0d!important}
.cat-memorylane .ml-card :is(p,.muted,legend,label):not(.eyebrow){color:#f6ead2}
.cat-memorylane .ml-verdict{color:#ffd98a!important}
@media(max-width:700px){.cat-memorylane .ml-card{padding:20px 16px 24px!important}.cat-memorylane .ml-card::before{display:none}}
@media(prefers-reduced-motion:reduce){.cat-memorylane .ml-card h2{animation:none}}
.cat-memorylane .ml-card:not(:has(h2:not([hidden]))){padding-right:26px!important}
.cat-memorylane .ml-card:not(:has(h2:not([hidden])))::before{display:none}
/* TV legs */
.cat-memorylane .ml-card:has(h2:not([hidden])){margin-bottom:34px}
.cat-memorylane .ml-card:has(h2:not([hidden]))::after{content:"";position:absolute;left:8%;right:8%;bottom:-26px;height:26px;pointer-events:none;
  background:linear-gradient(100deg,transparent 0 2%,#2a1408 2% 6%,transparent 6%) left/50% 100% no-repeat,linear-gradient(80deg,transparent 0 94%,#2a1408 94% 98%,transparent 98%) right/50% 100% no-repeat}

/* /css/langlab-real.css */

/* Language Lab: an airmail parcel and travel journal. A striped airmail border, visa-stamp language picks,
   a boarding-pass progress strip and a paper-clipped polaroid. Generic, no postal or airline marks. Scoped to .cat-langlab. */
.cat-langlab{--ll-air:repeating-linear-gradient(135deg,#c2382c 0 14px,#fffdf7 14px 22px,#1f4fa0 22px 36px,#fffdf7 36px 44px)}

/* The parcel: airmail stripes around a dotted journal page */
.cat-langlab .ll-card{position:relative;border:12px solid transparent!important;color:#2b2a26;border-radius:10px;
  background:radial-gradient(circle,#b7a98a55 1px,transparent 1.5px) 0 0/18px 18px padding-box,linear-gradient(170deg,#fffaf0,#f4ead4) padding-box,var(--ll-air) border-box!important;
  box-shadow:inset 0 0 0 1px #00000014,0 24px 34px 2px #3a2a1440!important}
/* Postmark in the corner */
.cat-langlab .ll-card::after{content:"";position:absolute;top:-38px;right:-34px;width:86px;height:86px;border-radius:50%;pointer-events:none;opacity:.55;transform:rotate(-14deg);
  background:repeating-linear-gradient(0deg,transparent 0 9px,#2b2a26 9px 11px) 120% 50%/60% 46% no-repeat;
  box-shadow:inset 0 0 0 3px #2b2a26,inset 0 0 0 9px transparent,inset 0 0 0 10px #2b2a26}
/* Washi tape */
.cat-langlab .ll-card::before{content:"";position:absolute;top:-22px;left:30px;width:120px;height:26px;pointer-events:none;opacity:.92;transform:rotate(-5deg);
  background:repeating-linear-gradient(45deg,#ffffff55 0 6px,transparent 6px 12px),#e8a0a0;box-shadow:0 2px 3px #0002}
.cat-langlab .ll-h{font-family:'Patrick Hand',var(--display),cursive;font-size:1.8em;color:#1f3b6e}

/* Language picks: visa stamps in coloured ink, each with a dashed seal */
.cat-langlab .ll-lang{--ink:#1f4fa0;position:relative;overflow:hidden;border:0!important;color:var(--ink)!important;background:#fffdf7!important;border-radius:14px!important;
  box-shadow:inset 0 0 0 3px var(--ink),inset 0 0 0 6px #fffdf7,inset 0 0 0 7px var(--ink),0 6px 12px #3a2a1426!important;transform:rotate(-1.4deg);transition:transform .18s}
.cat-langlab .ll-lang:nth-child(2n){transform:rotate(1.4deg)}
.cat-langlab .ll-lang::after{content:"";position:absolute;right:-16px;bottom:-16px;width:70px;height:70px;border-radius:50%;border:3px dashed var(--ink);opacity:.35;pointer-events:none}
.cat-langlab .ll-lang:nth-child(2){--ink:#b0302a}.cat-langlab .ll-lang:nth-child(3){--ink:#1f7a4a}.cat-langlab .ll-lang:nth-child(4){--ink:#6a3aa0}
.cat-langlab .ll-lang:nth-child(5){--ink:#b0661a}.cat-langlab .ll-lang:nth-child(6){--ink:#a0234f}
.cat-langlab .ll-lang strong{letter-spacing:.08em;text-transform:uppercase}
.cat-langlab :is(.ll-lang,.ll-lesson):is(:hover,:focus-visible){transform:rotate(0) scale(1.04)}
.cat-langlab :is(.ll-native,.ll-sub){color:inherit;opacity:.8}
.cat-langlab .ll-lang.is-done::after{opacity:.9;border-style:solid;background:radial-gradient(circle,var(--ink) 0 6px,transparent 7px)}
.cat-langlab .ll-lesson{border:0!important;background:#fffdf7!important;box-shadow:inset 0 0 0 2px #1f4fa0,inset 0 0 0 4px #fffdf7,inset 0 0 0 5px #1f4fa077,0 4px 10px #3a2a1426!important}

/* Progress: a boarding-pass strip with perforations */
.cat-langlab .ll-steps{gap:0!important;padding:4px!important;border-radius:10px;background:#1f3b6e;box-shadow:0 4px 10px #3a2a1433}
.cat-langlab .ll-steps li{position:relative;border-radius:6px!important;background:#fffdf7!important;color:#6b6250!important;letter-spacing:.12em;text-transform:uppercase;font-size:11px!important}
.cat-langlab .ll-steps li+li{border-left:2px dashed #1f3b6e}
.cat-langlab .ll-steps li.on{background:#f2c94c!important;color:#1f3b6e!important}
.cat-langlab .ll-steps li.done{background:#e6f0e8!important;color:#1f7a4a!important}
.cat-langlab .ll-steps li.done::after{content:" ✓"}

/* Word card: a polaroid held by a paper clip */
.cat-langlab .ll-flash{position:relative;background:#fff!important;padding:18px 16px 24px!important;border-radius:4px;transform:rotate(-1.2deg);box-shadow:0 2px 0 #e8e2d4,0 16px 26px #3a2a1440!important}
.cat-langlab .ll-flash::before{content:"";position:absolute;top:-16px;left:34px;width:16px;height:46px;border:3px solid #9aa3ad;border-radius:9px;pointer-events:none;box-shadow:inset 0 0 0 3px transparent,1px 1px 2px #0003}
.cat-langlab .ll-flash .ll-pic{background:linear-gradient(170deg,#eaf2f6,#d9e6ec);border-radius:2px}
.cat-langlab .ll-word{font-family:'Patrick Hand',var(--display),cursive;color:#1f3b6e}

/* Answer tiles: airmail postcards */
.cat-langlab :is(.ll-tile,.ll-choice){border:5px solid transparent!important;border-radius:6px!important;color:#2b2a26;
  background:linear-gradient(#fffdf7,#fffdf7) padding-box,var(--ll-air) border-box!important;box-shadow:0 4px 10px #3a2a1426!important}
.cat-langlab .ll-tile.sel{box-shadow:0 0 0 3px #f2c94c,0 4px 10px #3a2a1426!important}
.cat-langlab :is(.ll-tile,.ll-choice).ok{background:linear-gradient(#e6f7ea,#e6f7ea) padding-box,linear-gradient(#2e8b57,#2e8b57) border-box!important}
.cat-langlab :is(.ll-tile,.ll-choice).bad{background:linear-gradient(#fbe3dd,#fbe3dd) padding-box,linear-gradient(#c2452d,#c2452d) border-box!important}
@media(max-width:600px){.cat-langlab .ll-card::after{width:60px;height:60px;right:10px}}

/* /css/board-real.css */
/* Board Games: the page layout stays as designed. Only the boards themselves get more realistic:
   hardwood frames with a real cast shadow, maple-and-walnut chess, green felt for Reversi, and a paper pad for Dots and Boxes. */

/* Hardwood frame around every board tray */
.cat-board .bg-tray{border:0!important;
  background:repeating-linear-gradient(92deg,#ffffff0c 0 2px,transparent 2px 9px,#0000001a 9px 11px,transparent 11px 21px),linear-gradient(150deg,#b07a46,#7a4a26 55%,#9a6436)!important;
  box-shadow:inset 0 2px 1px #ffffff55,inset 0 -3px 4px #00000040,inset 0 0 0 1px #4a2a1288,0 6px 0 #5a3418,0 9px 0 #3e220e,0 26px 30px -6px #2a140873!important}

/* Chess: maple and walnut inlay */
.cat-board .ch-sq.lt{background:repeating-linear-gradient(100deg,#ffffff14 0 2px,transparent 2px 7px),linear-gradient(160deg,#f1dcb4,#e2c48e)!important}
.cat-board .ch-sq.dk{background:repeating-linear-gradient(100deg,#ffffff0d 0 2px,transparent 2px 7px),linear-gradient(160deg,#9a6438,#7a4a26)!important}

/* Reversi: green felt */
.cat-board .of-board{gap:2px!important;padding:2px!important;background:#123a24!important;border-radius:6px}
.cat-board .of-board .bg-cell{border-radius:2px!important;border:0!important;background:radial-gradient(circle at 30% 30%,#00000010 0 1px,transparent 1.5px) 0 0/4px 4px,linear-gradient(160deg,#2f7a52,#226040)!important}

/* Dots and Boxes: drawn on a squared paper pad, with pencil-lead dots */
.cat-board .bx-board{border-radius:4px;background:repeating-linear-gradient(0deg,#7fa6c94d 0 1px,transparent 1px 14px),repeating-linear-gradient(90deg,#7fa6c94d 0 1px,transparent 1px 14px),#fdfbf4!important;
  box-shadow:inset 0 0 0 1px #00000012}
.cat-board .bx-dot{background:radial-gradient(circle at 35% 30%,#8a8f96,#2a2d33 70%)!important;box-shadow:0 1px 0 #0004!important}

/* /css/mystery-real.css */

/* Mystery & Mind Games: a detective's desk at midnight. Venetian-blind light on the wall, manila case folders,
   typed index-card evidence, pinned polaroid suspects and a red rubber stamp. Fonts are OFL. Scoped to .cat-mystery. */
.cat-mystery{--ms-type:'Courier Prime','Courier New',monospace;--ms-hand:'Patrick Hand',var(--display),cursive}

/* The room */
main.cat-mystery{position:relative;box-shadow:0 0 0 100vmax #131116;clip-path:inset(0 -100vmax);padding-bottom:40px;
  background:linear-gradient(115deg,transparent 0 30%,#ffd9a00d 30% 34%,transparent 34% 37%,#ffd9a00d 37% 41%,transparent 41% 44%,#ffd9a00d 44% 48%,transparent 48% 51%,#ffd9a00d 51% 55%,transparent 55%),
    radial-gradient(ellipse 50% 420px at 70% 260px,#ffcf8a1f,transparent 70%),#131116}
.cat-mystery :is(h1,.my-blurb,.forest-breadcrumb,.forest-breadcrumb a,.eyebrow,.muted,p):not(.my-desk *){color:#efe4cf!important}
.cat-mystery h1{font-family:var(--ms-type);letter-spacing:-.01em;text-shadow:0 2px 10px #000}

/* The case folder */
.cat-mystery .my-desk{overflow:visible;margin-top:44px;border:0;border-radius:4px 10px 10px 10px;color:#2b2116;
  background:radial-gradient(ellipse at 80% 10%,#ffffff26,transparent 50%),repeating-linear-gradient(93deg,#00000006 0 2px,transparent 2px 5px),linear-gradient(170deg,#e4c88c,#cfae6c 60%,#c29e5c);
  box-shadow:inset 0 0 0 1px #9a7a3a55,0 3px 0 #b8975a,0 6px 0 #a58447,0 34px 50px 6px #000c}
.cat-mystery .my-desk::before{content:"";inset:auto;left:0;top:-30px;width:230px;height:32px;border:0;border-radius:10px 14px 0 0;
  background:linear-gradient(170deg,#e9cf96,#dcbd7e);box-shadow:inset 0 1px 0 #ffffff55;clip-path:polygon(0 100%,0 18%,4% 0,92% 0,100% 100%)}
.cat-mystery .my-desk::after{content:"";position:absolute;top:-30px;left:26px;width:150px;height:14px;margin-top:9px;pointer-events:none;
  background:repeating-linear-gradient(90deg,#2b211633 0 1px,transparent 1px 9px);opacity:.6}
.cat-mystery .my-file-head{color:#6a4f22;font-family:var(--ms-type);font-weight:700}
.cat-mystery #file-stamp{display:inline-block;padding:4px 12px;color:#b0241a;border:3px solid #b0241a;border-radius:6px;transform:rotate(-7deg);font-size:14px;letter-spacing:.2em;
  font-family:var(--ms-type);font-weight:700;opacity:.85;mix-blend-mode:multiply;
  -webkit-mask:radial-gradient(circle at 30% 40%,#000 0 60%,#000c 70%) ,linear-gradient(#000,#000)}
.cat-mystery .my-desk :is(h2,h3){font-family:var(--ms-type);color:#2b2116!important}
.cat-mystery .my-desk h2{font-size:clamp(24px,3.4vw,34px)}
.cat-mystery .my-desk :is(p,span,b,li){color:#3a2c1c}

/* Evidence: typed index card under a paper clip */
.cat-mystery .my-evidence,.cat-mystery .my-study{position:relative;border-radius:2px;color:#2b2116;font-family:var(--ms-type);transform:rotate(-.5deg);
  background:linear-gradient(180deg,transparent 0 34px,#e0525240 34px 36px,transparent 36px),repeating-linear-gradient(180deg,transparent 0 23px,#7fa6c94d 23px 24px) 0 36px/100% calc(100% - 36px) no-repeat,#fdfbf4!important;
  box-shadow:0 1px 0 #d8d0bc,0 10px 16px #3a2a1440!important}
.cat-mystery .my-evidence::after{content:"";position:absolute;top:-14px;right:34px;width:14px;height:44px;border:3px solid #8d959e;border-radius:8px;pointer-events:none;box-shadow:1px 2px 2px #0003}
.cat-mystery .my-evidence h3{letter-spacing:.2em;text-transform:uppercase;font-size:13px}

/* Options: pinned polaroids */
.cat-mystery .my-options{gap:16px!important;padding-top:10px}
.cat-mystery .my-option{position:relative;border:0!important;border-radius:3px!important;padding:10px 10px 12px!important;color:#2b2116!important;cursor:pointer;transform:rotate(-1.5deg);
  background:linear-gradient(170deg,#3a3440,#16131a) 10px 10px/calc(100% - 20px) 66px no-repeat,#fbf8f0!important;
  box-shadow:0 2px 0 #d8d0bc,0 12px 16px #0007!important;transition:transform .15s,box-shadow .15s}
.cat-mystery .my-option:nth-child(2n){transform:rotate(1.6deg)}
.cat-mystery .my-option:nth-child(3n){transform:rotate(-.4deg)}
.cat-mystery .my-option::before{content:"";position:absolute;top:-7px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;z-index:2;
  background:radial-gradient(circle at 35% 30%,#ff9a8a,#c2251a 55%,#6a0e08);box-shadow:0 3px 3px #0007}
.cat-mystery .my-option i{height:66px;display:grid;place-items:center;color:#f0cf7a!important;text-shadow:0 0 12px #f0cf7a66;font-size:34px}
.cat-mystery .my-option b{display:block;margin-top:8px;font-family:var(--ms-hand);font-size:1.2em;font-weight:400;color:#1f2a4a!important}
.cat-mystery .my-option span{font-family:var(--ms-type);font-size:10.5px;color:#5a4a36!important}
.cat-mystery .my-option:hover{transform:rotate(0) translateY(-4px) scale(1.03);z-index:1}
.cat-mystery .my-option.selected{outline:0;transform:rotate(0) scale(1.04);z-index:1;
  box-shadow:0 0 0 4px #fbf8f0,0 0 0 7px #c2251a,0 16px 22px #000a!important;background:linear-gradient(170deg,#3a3440,#16131a) 10px 10px/calc(100% - 20px) 66px no-repeat,#fff6e0!important}
.cat-mystery .my-option.ruled-out{opacity:.55;text-decoration:none}
.cat-mystery .my-option.ruled-out::after{content:"";position:absolute;inset:8px;pointer-events:none;
  background:linear-gradient(45deg,transparent calc(50% - 3px),#c2251acc calc(50% - 3px) calc(50% + 3px),transparent calc(50% + 3px)),linear-gradient(-45deg,transparent calc(50% - 3px),#c2251acc calc(50% - 3px) calc(50% + 3px),transparent calc(50% + 3px))}

/* Actions: a red rubber stamp and a pencil-note hint */
.cat-mystery #submit{font-family:var(--ms-type);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#fff4ec;border:0;border-radius:6px;
  background:linear-gradient(180deg,#c2342a,#8a1c14);box-shadow:inset 0 0 0 2px #fff4ec55,0 4px 0 #5a0e08,0 8px 12px #0006}
.cat-mystery #submit:disabled{filter:saturate(.5) brightness(.9);opacity:.75}
.cat-mystery #hint{font-family:var(--ms-hand);font-size:1.1em;background:#fff3a8;color:#3a2c1c;border:0;transform:rotate(-1deg);box-shadow:0 6px 10px #3a2a1433}
.cat-mystery .my-feedback{font-family:var(--ms-type);color:#7a1a12!important}
.cat-mystery .my-solved,.cat-mystery .my-solved *{color:#2b2116}
.cat-mystery .my-desk .btn:not(#submit):not(#hint){border-color:#6a4f22}

/* Each case type gets its own tab colour */
.cat-mystery .my-desk[data-style=memory]::before{background:linear-gradient(170deg,#b9d0de,#9ab8cc)}
.cat-mystery .my-desk[data-style=forensic]::before{background:linear-gradient(170deg,#e9a98a,#d98a6a)}
.cat-mystery .my-desk[data-style=mirror]::before{background:linear-gradient(170deg,#c9b8e0,#ab98cc)}
.cat-mystery .my-desk[data-style=interview]::before{background:linear-gradient(170deg,#b6d6a8,#94bf84)}
@media(max-width:700px){.cat-mystery .my-desk::before{width:150px}.cat-mystery .my-option{transform:none!important}}
.cat-mystery .my-evidence li span{background:#2b2116!important;color:#fdfbf4!important;font-family:var(--ms-type)}
.cat-mystery .my-evidence::after{top:-24px}
