@font-face {
  font-family: Inter;
  src: url('./assets/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./assets/bricolage-grotesque-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #23312e;
  background: #f8f7f2;
  --ink: #23312e;
  --forest: #23312e;
  --muted: #5e6963;
  --line: #d9ddd2;
  --paper: #fffdf7;
  --leaf: #edf0e5;
  --citrus: #d9ef76;
  --coral: #f3a28c;
  --gold: #d9ef76;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
::selection { color: var(--ink); background: var(--citrus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.shell { max-width: 1120px; margin: auto; padding: 0 32px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 104px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; font-family: var(--display); font-size: 2.45rem; font-weight: 800; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.wordmark-dot { color: #b14f34; }
.mark { display: block; width: 44px; height: 44px; flex: none; }
nav { display: flex; align-items: center; gap: 6px; }
.tab, .help, .button { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: .86rem; font-weight: 700; line-height: 1.35; }
.tab[aria-current="page"] { background: var(--ink); color: var(--paper); }
.help { min-width: 44px; padding-inline: 10px; border-color: var(--line); border-radius: 50%; font-family: var(--display); font-size: 1.05rem; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 1px 18px; }
.intro-title { color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; }
.intro > p { font-family: var(--display); font-size: .94rem; font-weight: 650; letter-spacing: -.025em; }

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 26px 32px 25px; border: 1px solid #c7dc6b; border-radius: 24px; background: var(--citrus); color: var(--ink); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 330px; height: 330px; right: -135px; bottom: -160px; border: 40px solid #c5dd64; border-radius: 48%; transform: rotate(-25deg); pointer-events: none; opacity: .65; }
.hero-top, .edition, .meter { display: flex; align-items: center; }
.hero-top { flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding-bottom: 20px; border-bottom: 1px solid #23312e2b; }
.edition { gap: 10px; flex-wrap: wrap; font-size: .71rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
#edition { padding: 6px 10px; border: 1px solid #23312e35; border-radius: 7px; }
.edition time { color: #475333; }
.meter { gap: 10px; margin-left: auto; font-size: .78rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.meter > strong { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; }
.meter > span:first-of-type { margin-left: -2px; color: #475333; font-size: .7rem; }
#move-count { padding-left: 9px; border-left: 1px solid #23312e35; }
.pips { display: inline-flex; gap: 4px; }
.pip { width: 9px; height: 9px; border: 1px solid #637238; border-radius: 3px; }
.pip.used { background: var(--ink); border-color: var(--ink); }
.round-clock { display: flex; align-items: baseline; gap: 7px; padding-left: 18px; border-left: 1px solid #23312e35; font-variant-numeric: tabular-nums; }
.round-clock > span:first-child { font-size: .72rem; color: #475333; }
#round-timer { min-width: 5.3ch; font-family: var(--display); font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
#round-timer[data-state="untimed"] { min-width: 1ch; }
.endpoints { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 28px; margin-top: 28px; }
.endpoint { min-width: 0; }
.endpoint > span { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #475333; font-size: .74rem; font-weight: 650; }
.endpoint > span::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.destination > span::before { background: var(--coral); }
.endpoint strong { display: block; font-family: var(--display); font-size: clamp(2rem, 5.2vw, 3.8rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; overflow-wrap: anywhere; }
.direction { display: grid; place-items: center; align-self: end; height: 64px; margin-bottom: 2px; }
.direction svg { width: 48px; height: 24px; }
.instructions { display: flex; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; margin-top: 24px; line-height: 1.55; }
.instructions strong { font-family: var(--display); font-size: 1.06rem; font-weight: 750; letter-spacing: -.025em; }
.instructions > span { max-width: 620px; color: #46512f; font-size: .8rem; }
.daily-status { margin: 12px 2px 0; color: var(--muted); font-size: .74rem; line-height: 1.6; }
#daily-availability { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; padding: 16px; background: var(--leaf); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#daily-service-status { margin-bottom: 16px; padding: 16px; border: 1px solid #d7b39e; border-radius: 12px; background: #fff1e6; font-size: .86rem; line-height: 1.6; }

.board { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.play-panel, .route-panel { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: 20px; }
.play-panel { background: var(--paper); box-shadow: 0 3px 0 #e8e9df; }
.route-panel { background: #f0f1e9; }
.panel-eyebrow { margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
#game:not([data-state="playing"]) .panel-eyebrow { display: none; }
h2, h3 { font-family: var(--display); }
h2 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.045em; line-height: 1.2; }
#play-title { font-size: 1.9rem; }
#play-title:focus { outline: none; }
.description { margin-top: 9px; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.choices { display: grid; gap: 10px; margin-top: 22px; }
.choice { display: flex; width: 100%; min-width: 0; justify-content: space-between; align-items: center; gap: 16px; min-height: 84px; padding: 16px 18px; border: 1px solid #d4dacb; border-radius: 13px; background: #fffdf7; text-align: left; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice > span:first-child { min-width: 0; }
.choice:disabled { cursor: not-allowed; background: #eeeee7; border-style: dashed; border-color: #aeb6a3; color: #5e6963; }
.choice:disabled .choice-arrow { border-color: #b8bfae; color: #65705d; }
.choice-state { display: block; margin-top: 8px; font-size: .72rem; font-weight: 700; color: #6b4737; }
.round-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 17px; }
.back-button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; font-size: .78rem; }
.back-button:disabled { cursor: default; color: #697261; background: #f0f1e9; border-color: var(--line); }
.turn-cost { padding-left: 7px; border-left: 1px solid var(--line); font-size: .69rem; font-weight: 500; }
.route-hint { flex: 1 1 220px; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.route-hint:empty { display: none; }
.turn-count { margin-top: 9px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.rules-update-status { margin-bottom: 16px; padding: 16px; border: 1px solid #b9cc78; border-radius: 12px; background: #eaf5bc; font-size: .84rem; line-height: 1.6; }
.replay-status { margin-bottom: 16px; padding: 15px 18px; border: 1px solid #c4ceba; border-radius: 12px; background: var(--leaf); font-size: .84rem; line-height: 1.6; }
.choice:not(:disabled):active { background: #eef3d5; border-color: var(--ink); }
.choice strong { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 750; letter-spacing: -.025em; overflow-wrap: anywhere; }
.fact { display: block; margin-top: 5px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.choice-arrow { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border: 1px solid #d5dcc8; border-radius: 50%; color: var(--ink); font-size: 1.05rem; }
.route-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.route-heading h2 { font-size: 1.3rem; }
.route-heading svg { width: 24px; height: 24px; color: #687951; }
.trail { display: grid; gap: 20px; margin: 23px 0 0; padding: 0; list-style: none; }
.trail li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 32px; }
.trail li + li::before { content: ''; position: absolute; left: 14px; top: -20px; height: 20px; border-left: 1.5px solid #b6c1ab; }
.trail .pending::before { border-left-style: dashed; }
.trail .dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #bac4ae; border-radius: 50%; background: var(--paper); font-size: .72rem; font-weight: 750; }
.trail .current .dot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trail .pending .dot { border-style: dashed; background: transparent; font-size: 1rem; }
.trail .reached .dot { background: var(--citrus); color: var(--ink); border-color: #9db64e; }
.trail .topic { font-weight: 650; font-size: .9rem; overflow-wrap: anywhere; }
.trail small { display: block; margin-top: 3px; font-size: .68rem; font-weight: 500; color: var(--muted); }
.trail .route-fact { font-size: .77rem; font-weight: 400; line-height: 1.5; margin-top: 7px; }

.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button { border-color: #cdd5c4; background: var(--paper); }
.button.primary { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.share-actions { display: flex; gap: 9px; width: 100%; }
.share-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; }
.share-actions svg { width: 18px; height: 18px; flex: none; }
.share-actions .primary { flex: 1; }
.finish-summary { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 22px; background: var(--leaf); }
.finish-summary[data-result="won"] { border-color: #c2d86c; background: #eaf5bc; }
.finish-summary[data-tier="silver"] { border-color: #bdc6b5; background: #edf0e5; }
.finish-summary[data-tier="bronze"] { border-color: #d5bda5; background: #f5ebdf; }
.finish-badge { font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.035em; }
.finish-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin: 20px 0 14px; }
.finish-stats .result-points { grid-column: 1 / -1; padding-bottom: 14px; border-bottom: 1px solid #bdcf83; }
.finish-stats .result-points strong { font-size: 3rem; }
.finish-stats span { display: block; color: #4c583b; font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; }
.finish-stats strong { display: block; margin-top: 4px; font-family: var(--display); font-size: clamp(1.75rem, 6vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#result-time { overflow-wrap: anywhere; }
.finish-summary p { position: relative; z-index: 1; margin: 0; font-size: .83rem; line-height: 1.55; }
.finish-summary.celebrate { animation: win-pop .45s ease-out; }
.win-sparks { position: absolute; inset: 0; pointer-events: none; }
.win-sparks i { position: absolute; top: 45%; left: 50%; width: 8px; height: 8px; border-radius: 2px; background: #b65e43; opacity: 0; }
.celebrate .win-sparks i { animation: win-spark 1s ease-out both; }
.win-sparks i:nth-child(1) { --x: -150px; --y: -70px; }
.win-sparks i:nth-child(2) { --x: -95px; --y: -100px; background: var(--ink); }
.win-sparks i:nth-child(3) { --x: -45px; --y: -90px; }
.win-sparks i:nth-child(4) { --x: 45px; --y: -110px; background: var(--ink); }
.win-sparks i:nth-child(5) { --x: 100px; --y: -80px; }
.win-sparks i:nth-child(6) { --x: 150px; --y: -65px; background: var(--ink); }
@keyframes win-pop { from { transform: scale(.97); } to { transform: scale(1); } }
@keyframes win-spark { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(220deg); } }
.copy-status:empty { display: none; }
.copy-status { margin-top: 12px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
textarea { width: 100%; padding: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.solution { margin-top: 22px; padding: 20px; border-radius: 12px; background: var(--leaf); }
.solution h3 { font-size: 1.1rem; }
.solution ol { margin: 12px 0 0; padding-left: 22px; }
.solution li { margin-top: 11px; line-height: 1.5; }
.solution li::marker { color: var(--muted); font-size: .8rem; }

a { color: var(--ink); text-underline-offset: 3px; }
a.wordmark, a.tab, a.button { text-decoration: none; }
a.tab, a.button { display: inline-flex; align-items: center; justify-content: center; }
.about-game { max-width: 760px; margin: 46px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.about-game h2 { font-size: 1.35rem; }
.about-game p { margin-top: 13px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; font-size: .76rem; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 25px 1px 32px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.footer > span:first-child { font-family: var(--display); font-size: 1rem; font-weight: 750; color: var(--ink); white-space: nowrap; }
.footer .footer-credit { margin-left: 4px; font-family: Inter, sans-serif; font-size: .68rem; font-weight: 400; color: var(--muted); }
.article { max-width: 790px; padding: 42px 0 32px; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 650; }
.article-title { margin-top: 16px; font-family: var(--display); font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.04; overflow-wrap: anywhere; }
.article-intro { margin-top: 24px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.article h2 { margin-top: 36px; }
.article p:not(.eyebrow):not(.article-intro) { margin-top: 16px; font-size: .95rem; line-height: 1.8; }
.article li { margin-top: 10px; line-height: 1.7; }
.worked-route { margin-top: 24px; padding: 22px 24px 22px 48px; border: 1px solid #c8dc78; border-radius: 14px; background: #eaf5bc; }
.article-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 12px; }
.article details { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.article summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.comparison { overflow-x: auto; margin-top: 24px; }
.comparison table { width: 100%; min-width: 490px; border-collapse: collapse; text-align: left; font-size: .87rem; line-height: 1.65; }
.comparison caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
.comparison th, .comparison td { padding: 14px; border: 1px solid var(--line); vertical-align: top; }
.comparison th { background: var(--leaf); }
.practice-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 24px; }
.practice-link { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; }
.practice-link strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.025em; }
.practice-link span:not([aria-hidden]) { display: block; margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.noscript { padding: 16px; }

dialog { width: min(500px, calc(100% - 28px)); max-height: min(760px, calc(100% - 28px)); padding: 26px; border: 1px solid #bac6a9; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 80px #101c2540; }
dialog::backdrop { background: #1e2a27ad; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-head .button { min-height: 40px; padding: 8px 12px; font-size: .76rem; }
dialog h3 { margin-top: 25px; font-size: 1.15rem; letter-spacing: -.025em; }
dialog h3 + p { margin-top: 7px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
#archive-empty { margin-top: 12px; font-size: .84rem; color: var(--muted); line-height: 1.6; }
.rules { margin-bottom: 0; padding-left: 22px; color: var(--muted); font-size: .89rem; line-height: 1.7; }
.rules li + li { margin-top: 12px; }
.tutorial-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.dialog-mark { width: 32px; height: 32px; }
.tutorial-title { margin-top: 24px; font-size: 2rem; }
.tutorial-instruction { margin-top: 12px; color: var(--muted); font-size: .89rem; line-height: 1.65; }
.tutorial-route { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 17px; border: 1px solid #c8dc78; border-radius: 12px; background: #eaf5bc; font-family: var(--display); font-weight: 700; }
.tutorial-route strong { color: var(--ink); }
.tutorial-launch { margin-top: 18px; width: 100%; }
.tutorial-feedback { margin-top: 14px; color: var(--muted); font-size: .83rem; line-height: 1.6; }
.tutorial-feedback:empty { display: none; }

@media (hover: hover) and (pointer: fine) {
  .tab:not([aria-current="page"]):hover, .help:hover, .button:not(:disabled):hover { background: var(--leaf); border-color: #b5c29d; }
  .choice:not(:disabled):hover, .practice-link:hover { background: #f2f7df; border-color: #8d9f68; box-shadow: 0 2px 0 #cad7b1; }
  .choice:not(:disabled):hover .choice-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .button.primary:hover { background: #3b5045; border-color: #3b5045; }
}
@media (max-width: 670px) {
  .shell { padding-inline: 16px; }
  .masthead { min-height: 80px; gap: 8px; }
  .wordmark { font-size: 1.95rem; gap: 8px; }
  .mark { width: 36px; height: 36px; }
  nav { gap: 3px; }
  .tab, .help { min-height: 40px; padding: 9px 11px; font-size: .78rem; }
  .help { min-width: 36px; width: 36px; padding-inline: 6px; }
  .intro { padding: 17px 0 15px; gap: 10px; }
  .intro-title { font-size: .62rem; letter-spacing: .055em; }
  .intro > p { font-size: .76rem; white-space: nowrap; }
  .hero { padding: 20px; border-radius: 20px; }
  .hero-top { padding-bottom: 16px; gap: 10px 12px; }
  .edition { gap: 7px; font-size: .65rem; }
  #edition { padding: 5px 7px; }
  .meter { gap: 7px; font-size: .7rem; }
  .meter > strong { font-size: 1.2rem; }
  .pips { gap: 3px; }
  .pip { width: 7px; height: 7px; border-radius: 2px; }
  .round-clock { padding-left: 0; border-left: 0; }
  .round-clock > span:first-child { font-size: .68rem; }
  #round-timer { font-size: 1.05rem; }
  .endpoints { margin-top: 22px; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 10px; }
  .endpoint > span { margin-bottom: 9px; font-size: .68rem; }
  .endpoint strong { font-size: clamp(1.1rem, 5.7vw, 2.2rem); letter-spacing: -.055em; }
  .direction { height: 34px; margin-bottom: -2px; }
  .direction svg { width: 29px; }
  .instructions { gap: 6px; margin-top: 22px; }
  .instructions strong { display: block; width: 100%; font-size: 1.05rem; }
  .instructions > span { font-size: .77rem; line-height: 1.65; }
  .daily-status { margin-top: 11px; font-size: .69rem; }
  .board { grid-template-columns: 1fr; margin-top: 19px; gap: 16px; }
  .play-panel, .route-panel { padding: 21px; border-radius: 17px; }
  .panel-eyebrow { font-size: .63rem; }
  #play-title { font-size: 1.65rem; }
  .description { font-size: .82rem; }
  .choices { margin-top: 18px; }
  .choice { min-height: 83px; padding: 15px; gap: 12px; }
  .choice strong { font-size: 1.13rem; }
  .fact { font-size: .79rem; }
  .choice-arrow { width: 29px; height: 29px; }
  .route-heading h2 { font-size: 1.25rem; }
  .trail { margin-top: 20px; }
  .finish-summary { padding: 20px; }
  .share-actions .button { padding-inline: 11px; font-size: .79rem; }
  .actions > .button { font-size: .76rem; padding-inline: 12px; }
  .about-game { margin-top: 34px; }
  .about-game h2 { font-size: 1.35rem; }
  .footer { flex-wrap: wrap; gap: 8px; }
  dialog { padding: 21px; border-radius: 20px; }
  .tutorial-title { font-size: 1.8rem; }
  .article { padding-top: 30px; }
}
@media (max-width: 370px) {
  .shell { padding-inline: 14px; }
  .wordmark { font-size: 1.65rem; gap: 6px; }
  .mark { width: 29px; height: 29px; }
  .tab { padding-inline: 8px; }
  .help { width: 32px; min-width: 32px; }
  .intro { flex-wrap: wrap; gap: 4px; }
  .intro > p { font-size: .74rem; }
  .hero { padding: 17px; }
  .pips { display: none; }
  .endpoints { gap: 7px; grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr); }
  .direction svg { width: 24px; }
  .play-panel, .route-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
 .usage-setting { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; }
 .usage-setting input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: #183e2d; }
/* Compact play layout: the choices are the primary content on phones. */
.hero { max-width: 720px; margin: 18px auto 0; padding: 18px 20px; border-radius: 18px; }
.hero::after { display: none; }
.hero-top { gap: 8px; padding-bottom: 10px; }
.hero-top > #move-count { padding: 0; border: 0; font-size: .72rem; font-variant-numeric: tabular-nums; }
#edition { padding: 0; border: 0; }
.endpoints { gap: 12px; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); margin-top: 14px; }
.endpoint > span { margin-bottom: 5px; font-size: .7rem; }
.endpoint strong { font-size: clamp(1.2rem, 5.2vw, 2rem); line-height: 1.12; }
.direction { height: 36px; }
.direction svg { width: 26px; }
.hero-stats { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.hero-stats .meter { margin: 0; gap: 6px; }
.hero-stats .round-clock { width: auto; flex: 0 0 auto; padding: 0; margin: 0; border: 0; }
.daily-status { max-width: 720px; margin: 0 auto; }
.board { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 14px auto 0; gap: 12px; }
.play-panel { padding: 18px; box-shadow: none; container-type: inline-size; }
#game[data-state="playing"] .play-panel { padding: 0; border: 0; border-radius: 0; background: transparent; }
#game[data-state="playing"] #play-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#game[data-state="playing"] #play-description { margin: 0; font-size: .85rem; }
.choices { gap: 8px; margin-top: 14px; }
.choice { min-height: 72px; padding: 12px 14px; }
/* Size columns to the available panel width, including larger text settings. */
#choices { grid-template-columns: minmax(0, 1fr); }
#choices .choice { align-items: flex-start; justify-content: flex-start; min-height: 80px; padding: 12px; }
#choices .choice > span:first-child { display: block; }
#choices .choice strong { font-size: 1.08rem; line-height: 1.2; }
#choices .fact { font-size: .8rem; line-height: 1.45; }
#choices .choice-arrow { display: none; }
@container (min-width: 19rem) {
  #choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #choices .choice { min-height: 108px; }
}
@container (min-width: 40rem) {
  #choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.round-controls:has(> button[hidden]):has(.route-hint:empty) { display: none; }
.route-panel { padding: 0; }
.route-panel summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.route-panel summary::-webkit-details-marker { display: none; }
.route-panel summary::after { content: '+'; }
.route-panel details[open] > summary::after { content: '−'; }
.route-panel .trail { margin: 0; padding: 6px 18px 18px; }
.schedule-details { max-width: 720px; margin: 12px auto 0; color: var(--muted); font-size: .75rem; }
.schedule-details summary, .about-game summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.about-game { margin-top: 22px; padding-top: 12px; }
.about-game summary { color: var(--muted); font-size: .85rem; font-weight: 650; }
#score-breakdown { margin-bottom: 8px; font-weight: 650; }
.game-active #site-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#site-title { margin-top: 18px; }
