﻿:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #173835;
  background: #e9f2ee;
  --ink: #173835;
  --deep: #102e2e;
  --pine: #20534d;
  --soft: #dceee4;
  --orange: #f7a46d;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; }






h1 { margin: 0; font-size: clamp(1.25rem, 3.3vw, 2.15rem); letter-spacing: -.042em; line-height: 1.03; }


a { color: #174e49; text-underline-offset: .21em; }
button { font: inherit; color: inherit; min-width: 44px; min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #924321; outline-offset: 3px; }
[hidden] { display: none !important; }
.desk {
  --stage-rail: max(var(--site-rail), env(safe-area-inset-left));
  --stage-top: env(safe-area-inset-top);
  --game-pad: clamp(12px, 2.4vw, 36px);
  --options-width: min(100%, 480px);
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100dvh; min-height: 490px;
  padding-inline: var(--stage-rail) env(safe-area-inset-right);
  padding-block-start: var(--stage-top);
  isolation: isolate; overflow: hidden;
  background: #bdd9cd; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none;
}
.desk:focus { outline: none; }
.desk button { touch-action: manipulation; }
.desk-head {
  flex: none; min-height: 66px; display: flex; align-items: center; justify-content: space-between;
  padding: 8px calc(var(--game-pad) + 52px) 8px var(--game-pad);
  border-bottom: 2px solid #224743; gap: .45rem;
  color: #e9f6ec;
  background: repeating-linear-gradient(90deg, #d2f3dd07 0 1px, transparent 1px 5px),
    linear-gradient(175deg, #255551, #183d3b 80%);
}
.edition, .desk-tools, .entry-actions, .rank-line, .receipt-title { display: flex; align-items: center; gap: .65rem; }
.edition strong { white-space: nowrap; font-size: 1.04rem; letter-spacing: -.025em; }
.edition time { white-space: nowrap; color: #c0ddd0; font: .9rem var(--mono); margin-inline-start: .45rem; }
.pilot {
  width: 10px; height: 10px; flex: none; border: 1px solid #9de7ba; border-radius: 50%;
  background: #adffd0; box-shadow: 0 0 0 4px #a0efbb20, 0 0 13px #b4ffd58c;
}
.desk-tools { gap: .45rem; }
.utility {
  border-radius: 7px; border: 1px solid #82a49b; background: #163d3b; color: #eff8ed;
  padding: 0 .98rem; font-size: .94rem; font-weight: 680;
}
.utility:hover, .utility.held { background: #376b5e; }
.utility:focus-visible, .entry-actions [data-act="submit"]:focus-visible { outline-color: #eca673; }
.utility.pause { font-family: var(--mono); padding-inline: 0; }
.utility.pause span { font-size: 1.15rem; }
.desk-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, 29%); }
.console {
  position: relative; display: grid; min-width: 0; min-height: 0;
  grid-template-rows: clamp(86px, 13dvh, 124px) minmax(0, 1fr) clamp(67px, 10dvh, 90px);
  background: radial-gradient(ellipse at 38% 27%, #edf8ec 0, #cee7d9 35%, transparent 76%),
    repeating-linear-gradient(90deg, #3e74640d 0 1px, transparent 1px 5px),
    linear-gradient(140deg, #cce5d8, #a4cbbd 66%, #78a99a);
}
.readout {
  width: min(88%, 710px); align-self: stretch; justify-self: center; display: grid; align-content: center;
  text-align: center; overflow: hidden; margin: clamp(10px, 2.2dvh, 24px) 0 0;
  background: repeating-linear-gradient(0deg,#c8ffe809 0 1px,transparent 1px 5px), radial-gradient(ellipse at 50% 40%, #234f48, #102d2c 80%);
  color: #f1fff0; border: 2px solid #163b36; border-radius: 12px;
  box-shadow: inset 0 2px 6px #0009, 0 2px #e8fff18c, 0 0 0 3px #4e7e6c45;
}
.draft {
  min-width: 0; min-height: 1.12em; font: 800 clamp(1.6rem, 4.65dvh, 3.25rem)/1.07 var(--mono);
  letter-spacing: .035em; white-space: nowrap;
}
.draft.empty { font: 620 clamp(1.3rem, 3.7dvh, 2.45rem)/1.25 system-ui, sans-serif; letter-spacing: -.035em; color: #e0f6e8; }
.draft.long-word { font-size: clamp(.85rem, 3.2vw, 2.2rem); letter-spacing: -.015em; }
.core-ink { color: #ffc595; }
.feedback { color: #c5e1d3; margin: .28rem 5px 0; min-height: 1.32em; font: 550 clamp(.78rem, 1.7dvh, 1rem)/1.25 system-ui, sans-serif; }
.feedback.error { color: #ffbaaa; }
.feedback.success { color: #b4f7bd; }
.readout:has(.coaching) .draft.empty { display: none; }
.readout .feedback.coaching { margin: 0 .65rem; color: #ffe0bf; font-size: .9rem; }
.key-field {
  position: relative; display: block; width: min(92%, 840px); justify-self: center;
  container-type: size; touch-action: none;
}
.key-art { position: absolute; inset: 0; pointer-events: none; }
.key-art svg { width: 100%; height: 100%; fill: none; stroke: #386e61; stroke-width: 1.6; opacity: .58; }
.key-art circle { stroke-dasharray: 1.2 4; stroke-width: 1.6; }
.key-art .bus { opacity: .55; }
.key-art .via { fill: #e6f4e3; stroke-width: 2.2; }
.letter {
  --size: clamp(44px, min(19cqi, 30cqb), 134px);
  position: absolute; transform: translate(-50%,-50%); top: var(--y); left: var(--x);
  display: grid; place-items: center; width: var(--size); height: var(--size); padding: 0;
  border-radius: 50%; border: 2px solid #23524d; color: #143937;
  background: radial-gradient(circle at 34% 24%, #f5fff0 0, #e0f1df 45%, #aacdbd 88%);
  font: 750 clamp(1.65rem, 5.2dvh, 3.8rem)/1 var(--mono);
  box-shadow: inset 0 0 0 4px #f4fff177, inset 0 -7px #365b3c23, 0 5px 0 -1px #32635b, 0 8px 0 #2a534d70, 0 12px 17px #1f42324a;
  transition: box-shadow 110ms, translate 110ms, filter 110ms;
}
.letter:hover { filter: brightness(1.05); }
.letter.held {
  translate: 0 3px;
  box-shadow: inset 0 0 0 4px #f4fff160, inset 0 -4px #365b3c23, 0 2px 0 #32635b, 0 4px 8px #1f42324a;
}
.slot-0,.slot-1,.slot-2 { --x: 25%; }
.slot-3,.slot-4,.slot-5 { --x: 75%; }
.slot-0,.slot-3 { --y: 17%; }
.slot-1,.slot-4 { --y: 50%; }
.slot-2,.slot-5 { --y: 83%; }
.core {
  --x: 50%; --y: 50%; --size: clamp(60px, min(26cqi, 49cqb), 180px);
  color: #492518; border-color: #884024;
  background: radial-gradient(circle at 34% 26%, #ffcc9a 2%, #f2a270 47%, #d9794a 95%);
  font-size: clamp(2.15rem, 8dvh, 5rem);
  box-shadow: inset 0 0 0 5px #ffe0ad9c, inset 0 -8px #9a462041, 0 6px 0 #9c5737, 0 10px 0 #653e3360, 0 16px 27px #31493853;
}
.core::after { position: absolute; content: ""; inset: -11px; border: 1px solid #84573eaa; border-radius: 50%; pointer-events: none; }
.core.held { box-shadow: inset 0 0 0 5px #ffe0ad9c, inset 0 -5px #9a462041, 0 3px 0 #9c5737, 0 6px 9px #31493853; }
.entry-actions {
  width: min(88%, 640px); justify-self: center; display: grid; grid-template-columns: 1fr 1.14fr 1fr;
  align-content: center; gap: clamp(6px, 1vw, 12px); padding: 0 0 4px;
}
.entry-actions button {
  position: relative; display: flex; align-items: center; justify-content: center; gap: .43rem;
  padding: .3rem .5rem; min-height: clamp(44px, 6.5dvh, 60px); border: 1px solid #366b5f; border-radius: 8px;
  background: linear-gradient(#e9f7e9, #bedccf); box-shadow: 0 3px 0 #48786d;
  font-size: clamp(.86rem, 2.1dvh, 1.1rem); font-weight: 720; white-space: nowrap;
}
.entry-actions button:hover { filter: brightness(1.06); }
.entry-actions button.held { translate: 0 2px; box-shadow: 0 1px 0 #48786d; }
.entry-actions [data-act="submit"] { background: linear-gradient(#2c665a,#204e47); color: #f4fff1; border-color: #19493e; box-shadow: 0 3px #123e38; }
.entry-actions svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ledger {
  display: flex; flex-direction: column; gap: clamp(12px, 2.2dvh, 26px); min-width: 0; min-height: 0;
  padding: clamp(13px, 2.35vw, 36px);
  background: linear-gradient(94deg,#1d503f33,transparent 12%), linear-gradient(165deg,#c1dbcc,#8fbcac);
  border-left: 2px solid #325c51;
}
@media (min-width: 901px) {
  .ledger .receipt { flex: 1 1 auto; }
  .ledger .receipt::after {
    content: ""; flex: 1 0 0; min-height: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, #5b7f6334 0 1px, transparent 1px 34px);
    margin-inline: .85rem;
  }
}
.meter { display: grid; align-content: center; gap: .6rem; }
.rank-line,.receipt-title { justify-content: space-between; }
.rank-line strong { font-size: clamp(1.15rem, 2.3vw, 1.9rem); letter-spacing: -.04em; line-height: 1.08; }
.rank-line span { flex: none; font: 700 clamp(.87rem, 1.4vw, 1.1rem) var(--mono); }
.track { height: 11px; position: relative; background: #487567; border: 1px solid #305d51; border-radius: 10px; overflow: hidden; }
#fill { display: block; height: 100%; background: #f9b37e; width: 0; transition: width 240ms ease-out; }
#markers { position: absolute; inset: 0; }
#markers span { position: absolute; height: 100%; width: 2px; background: #e1f3de; }
#target { margin: 0; font-size: .96rem; font-weight: 630; }
.receipt {
  position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; flex: 0 1 auto;
  background: repeating-linear-gradient(0deg, #2b554809 0 1px, transparent 1px 5px), #f1f3df;
  border: 1px solid #597c6c; border-radius: 9px;
  box-shadow: 0 4px 0 #40695635, 0 9px 16px #2c5b4c22;
}
.receipt-title {
  flex: none; width: 100%; padding: 0 .9rem; border: 0; border-bottom: 1px dashed #789486;
  background: #e4ebd5; font-weight: 730; text-align: left;
}
.receipt-title:hover, .receipt-title.held { background: #d3e2ca; }
.receipt-title:focus-visible { outline-offset: -4px; }
.receipt-title strong { margin-inline-start: .45rem; color: #375e4b; font: 700 .9rem var(--mono); }
.receipt-title svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
#word-log, .history-list { padding: .15rem .85rem .25rem; margin: 0; list-style: none; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#word-log li, .history-list li { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 5px; border-bottom: 1px solid #4d72602e; font: 650 .97rem var(--mono); text-transform: uppercase; }
#word-log li:last-child, .history-list li:last-child { border-bottom-color: transparent; }
#word-log li span, .history-list li span { overflow-wrap: anywhere; }
#word-log li strong, .history-list li strong { color: #3a6351; flex: none; }
.pangram-mark { color: #90451f; }
#log-empty { margin: .88rem 1rem; color: #446657; font-size: .91rem; }
.shade {
  position: absolute; z-index: 4;
  inset: var(--stage-top) env(safe-area-inset-right) var(--stage-bottom, 0px) var(--stage-rail);
  display: grid;
  place-items: center; padding: 15px; background: #123d36b8;
}

.panel {
  width: min(100%, 430px); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: clamp(16px, 2.4vw, 35px); border: 2px solid #6f9e89; border-radius: 15px;
  color: #f1fbef;
  background: repeating-linear-gradient(0deg,#c7ffe906 0 1px,transparent 1px 4px), linear-gradient(144deg,#20534c,#102e30 70%);
  box-shadow: 0 5px 0 #0f2929, 0 15px 40px #07282777, inset 0 0 0 4px #99ccb317;
}
.panel:focus { outline: none; }

.panel h2 { margin: 0; font-size: clamp(1.55rem, 3.5vw, 2.8rem); line-height: 1.02; letter-spacing: -.055em; }
.panel p { max-width: 33ch; margin: .62rem 0 1rem; color: #d1e8d9; line-height: 1.4; }
.panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: .82rem; }
.panel button {
  padding: .43rem .85rem; border: 1px solid #8bb2a0; border-radius: 7px;
  background: #214841; color: #f1fbef; font-weight: 680;
}
.panel button:focus-visible { outline-color: #e9a978; }
.panel button:hover, .panel button.held { background: #37685a; }
.panel .primary, .panel .primary:hover { color: #342719; background: #ffc088; border-color: #ffd5a9; box-shadow: 0 3px #ae6038; }


.panel [data-act="play"] { min-width: 0; min-height: 53px; font-size: 1.04rem; }
.panel .daily-status { margin-block: .9rem 0; color: #c9efda; font-size: .9rem; }



.panel[data-panel="result"] p { max-width: none; margin-block: .55rem; }
.panel .result-target { font-weight: 700; color: #ffdaa8; }
.result-stamp {
  float: right; display: grid; place-items: center; margin: 0 0 .4rem .7rem; width: 44px; height: 44px;
  border: 1px solid #e3b585; border-radius: 50%; color: #ffd6ab;
  box-shadow: 0 0 0 5px #dca97921, inset 0 0 17px #dca97937;
}
.result-stamp path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }

.desk[data-mode="won"] .panel { border-color: #efb778; animation: gain-signal 280ms cubic-bezier(.16,.76,.35,1) both; }
.desk[data-mode="won"] .result-stamp { background: #af69397a; }
.desk[data-mode="won"] .console { animation: light-desk 390ms ease-out both; }
@keyframes gain-signal { from { transform: scale(.965); } to { transform: scale(1); } }
@keyframes light-desk { from { filter: saturate(1.4) brightness(1.25); } to { filter: none; } }
.sparks { position: absolute; z-index: 3; top: 49%; left: 36%; pointer-events: none; }
.desk[data-mode="won"] .sparks { z-index: 5; }
.sparks i {
  position: absolute; width: 7px; height: 7px; border-radius: 2px; opacity: 0;
  background: #fbc08a; animation: spark 590ms var(--delay) ease-out both;
}
.sparks i:nth-child(3n) { background: #ddffcf; }
@keyframes spark {
  12% { opacity: .94; }
  to { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(100deg); }
}
.settings-grid, .hint-grid, .goal-list { display: grid; gap: 7px; margin-top: .85rem; }
.settings-grid,.hint-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.settings-grid .toggle, .goal-list button { display: flex; align-items: center; justify-content: space-between; gap: .45rem; text-align: left; }
.toggle span { flex: none; white-space: nowrap; color: #d5f9cb; font: .82rem var(--mono); }
.toggle[aria-pressed="false"] span { color: #d5d9ce; }
.goal-list button { flex-wrap: wrap; }
.goal-list button span { font-size: .79rem; font-weight: 500; }
.goal-list [aria-pressed="true"] { border-color: #ffbd87; color: #ffe0bf; }
.hint-grid > span { border: 1px solid #729b8a; border-radius: 7px; padding: .55rem .7rem; font: 650 .96rem var(--mono); }
.hint-grid > span b { color: #ffd1a6; margin-right: .4rem; }
.panel:is([data-panel="archive"], [data-panel="practice"], [data-panel="history"]) { display: flex; flex-direction: column; }
.archive-list { display: grid; gap: 5px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 3px; }
.archive-row { display: flex; justify-content: space-between; align-items: center; gap: .55rem; text-align: left; }
.archive-row span { color: #d1e8d9; font-size: .9rem; text-align: end; }
.catalog-pages {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: .35rem; align-items: center; margin-bottom: .45rem;
}
.catalog-pages button { padding-inline: .35rem; overflow-wrap: anywhere; font-size: .9rem; }
.catalog-position { color: #ffe0bf; font-weight: 720; font-size: .9rem; text-align: center; }
.history-list { color: var(--ink); background: #f1f3df; border-radius: 7px; padding: .3rem .85rem; }
.history-list:focus-visible { outline-color: #e9a978; }
.history-list li { min-height: 39px; }
.panel:is([data-panel="archive"], [data-panel="practice"], [data-panel="history"]) .panel-actions { flex: none; }







:root:not([lang="en"]) .panel button { overflow-wrap: anywhere; }
:root:not([lang="en"]) .panel .toggle { flex-wrap: wrap; }


.hint-grid button { min-width: 0; }

.story {
  width: min(100%, 1150px); margin-inline: auto; padding: clamp(1.7rem, 5vw, 5rem) clamp(18px, 5vw, 82px);
  font-size: 1.045rem; line-height: 1.65;
}
.story h2 { line-height: 1.1; font-size: clamp(1.5rem, 4vw, 2.22rem); letter-spacing: -.045em; margin: 1.6em 0 .45em; }
.story h3 { font-size: 1.1rem; margin: 1.2em 0 .1em; }
.story p { margin: .65em 0; }
.story li { margin: .5em 0; }

.story kbd { font: 700 .89em var(--mono); background: #d3e6dc; border-radius: 4px; padding: .06em .32em; }




.play-link { display: inline-flex; min-height: 48px; align-items: center; background: #234e44; color: #f1fff1; border-radius: 7px; padding: .5rem 1rem; font-weight: 700; text-decoration: none; }

:root {
  --site-rail: clamp(148px, 12vw, 177px);
  --site-dock: calc(52px + env(safe-area-inset-bottom));
  --site-title: calc(47px + env(safe-area-inset-top));
  --metal: repeating-linear-gradient(0deg, #d6ffe609 0 1px, transparent 1px 5px),
    linear-gradient(150deg, #214b44, #112e2c 80%);
}
body {
  background: repeating-linear-gradient(0deg, #285a4810 0 1px, transparent 1px 5px),
    repeating-linear-gradient(91deg, #fffff255 0 1px, transparent 1px 7px), #e3ebe0;
}
h1, h2, h3 { font-family: var(--mono); overflow-wrap: anywhere; }
.site-head {
  position: fixed; z-index: 8; inset: 0 auto 0 0; width: var(--site-rail);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(24px, env(safe-area-inset-top)) 12px max(21px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: var(--metal); color: #edf9ef; border-inline-end: 1px solid #6b9687;
  box-shadow: inset -4px 0 #09272255;
}
.brand {
  display: grid; align-content: start; gap: .85rem;
  font: 800 1.13rem/1.14 var(--mono); color: inherit; text-decoration: none;
}
.brand::before {
  content: ""; width: 42px; height: 7px; border-radius: 10px;
  background: #ffb882; box-shadow: 22px 0 0 -2px #70968a;
}
.brand h1 { font-size: clamp(1.05rem, 1.45vw, 1.3rem); max-inline-size: 15ch; }
.brand h1 span { color: #b6d6c6; }
.site-controls { display: grid; gap: .5rem; }
.site-controls a, .language-switch summary {
  display: flex; align-items: center; min-height: 44px; padding: .4rem .59rem;
  color: #edf9ef; font-size: .9rem; font-weight: 680;
}
.site-controls .header-link { border-block: 1px solid #7fa69a70; text-decoration: none; }
.site-controls a:hover, .language-switch summary:hover, .language-switch[open] summary { background-color: #3a6659; }
.site-head :focus-visible { outline-color: #f4bb8a; outline-offset: -2px; }
.language-switch { position: relative; }
.language-switch summary {
  justify-content: space-between; gap: .5rem; border: 1px solid #7d9d90;
  border-radius: 3px; cursor: pointer; list-style: none;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  content: ""; inline-size: .45rem; block-size: .45rem; flex: none;
  border: solid currentColor; border-width: 1px 1px 0 0; rotate: -45deg;
}
.language-switch[open] summary::after { rotate: 135deg; }
.language-links {
  position: absolute; z-index: 1; bottom: calc(100% + 6px); inset-inline-start: 0;
  width: max(100%, 135px); max-height: calc(100dvh - 106px); overflow: auto;
  padding: 4px; background: #173b34; border: 1px solid #82a69a; box-shadow: 0 6px 14px #163a3870;
}
.language-links a { text-decoration: none; }
.language-links [aria-current="page"] { color: #ffd2ac; }
.screen-tools {
  position: absolute; z-index: 6; top: calc(11px + var(--stage-top));
  right: calc(var(--game-pad) + env(safe-area-inset-right));
}
.screen-toggle { display: grid; place-items: center; padding: 0; }
.screen-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.screen-exit, [aria-pressed="true"] .screen-enter { display: none; }
[aria-pressed="true"] .screen-exit { display: initial; }
html[data-game-expanded], html[data-game-expanded] body { overflow: hidden; overscroll-behavior: none; }
html[data-game-expanded] .site-head, html[data-game-expanded] .story, html[data-game-expanded] .site-foot { visibility: hidden; }
.desk:fullscreen, .desk.screen-fixed {
  --stage-rail: env(safe-area-inset-left, 0px);
  --stage-top: env(safe-area-inset-top, 0px);
  --stage-bottom: env(safe-area-inset-bottom, 0px);
  width: 100%; height: 100dvh; min-height: 0;
  padding-block-end: var(--stage-bottom);
}
.desk.screen-fixed { position: fixed; z-index: 20; inset: 0; }

.console { background: radial-gradient(ellipse at 42% 25%, #f0fbeb 0, #cee7d9 32%, transparent 76%),
  repeating-linear-gradient(90deg, #3e746416 0 1px, transparent 1px 5px),
  linear-gradient(150deg, #d3ebe0, #a4cbbd 66%, #78a99a); }
.desk-body { grid-template-columns: minmax(0, 1fr) minmax(230px, 31%); }
.draft { font-size: clamp(1.55rem, 4.65dvh, 3.25rem); }
.draft.empty { font-family: var(--mono); }
.draft.long-word { font-size: clamp(.9rem, 3.2vw, 2.2rem); }
.key-art { overflow: hidden; }
.letter { font-size: max(1.47rem, calc(var(--size) * .46)); }
.letter.core { font-size: max(1.9rem, calc(var(--size) * .48)); }
.letter:focus-visible { z-index: 1; }
.entry-actions button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.entry-actions button span { min-width: 0; }
.rank-line strong, .receipt-title strong { font-family: var(--mono); }
.ledger {
  padding: clamp(14px, 2.65vw, 40px);
  background: repeating-linear-gradient(90deg, #194c3f13 0 1px, transparent 1px 5px),
    linear-gradient(96deg, #31635342, transparent 12%), linear-gradient(143deg, #d5e8d8, #8cb4a5);
}
.goal-list button span, .toggle span { font-size: .875rem; }
.panel { width: var(--options-width); }
.panel h2 { font-size: clamp(1.38rem, 2.65vw, 2.6rem); letter-spacing: -.055em; }
.panel .panel-actions button { min-width: 0; }

/* The starter plate occupies its own band beneath the live letter preview. */
.desk:has([data-panel="menu"]) { --menu-band: clamp(160px, 23dvh, 202px); }
.desk:has([data-panel="menu"]) .desk-body {
  grid-template-columns: minmax(0, 1fr); padding-bottom: var(--menu-band);
}
.desk:has([data-panel="menu"]) .console { grid-template-rows: 1fr; }
.desk:has([data-panel="menu"]) :is(.desk-tools, .readout, .entry-actions, .ledger) { display: none; }
.shade:has([data-panel="menu"]) {
  place-items: end stretch; padding: 0; background: transparent; pointer-events: none;
}
.panel[data-panel="menu"] {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(248px, .7fr); gap: .35rem clamp(14px, 4vw, 64px);
  align-content: center; align-items: center; width: 100%;
  min-height: var(--menu-band); padding: 16px clamp(18px, 5vw, 80px);
  border: 0; border-top: 3px solid #789b87; border-radius: 0; box-shadow: inset 0 3px #fff5d5a0;
  color: #1c3e36; pointer-events: auto;
  background: repeating-linear-gradient(0deg, #46765a10 0 1px, transparent 1px 5px), #edf0d9;
}
.panel[data-panel="menu"] p { margin: .55rem 0 0; color: #34584b; }
.panel[data-panel="menu"] .start-copy p { max-width: 42ch; }
.panel[data-panel="menu"] .panel-actions {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin: 0;
}
.panel[data-panel="menu"] [data-act="play"] { grid-column: 1 / -1; }
.panel[data-panel="menu"] .daily-status { grid-column: 1 / -1; max-width: none; font-size: .9rem; }

/* Pause has a separate settings bank and a column of round actions. */
.panel[data-panel="paused"] {
  width: min(100%, 690px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(132px, .49fr);
  gap: 14px 22px; border-radius: 5px; background: var(--metal);
  border: 1px solid #bddcc7; box-shadow: 0 0 0 5px #11332e, 0 14px 40px #0e312ba1;
}
.panel[data-panel="paused"] h2 { grid-column: 1 / -1; padding-bottom: .48rem; border-block-end: 1px solid #8eb6a090; }
.panel[data-panel="paused"] :is(.settings-grid, .panel-actions) { margin: 0; }
.panel[data-panel="paused"] .panel-actions { display: grid; align-content: start; }
.panel[data-panel="paused"] .toggle { min-width: 0; }

/* Results print onto the ledger with a perforated edge. */
.shade:has([data-panel="result"]) {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 31%); place-items: stretch;
  padding: 0; background: #234a3c35;
}
.panel[data-panel="result"] {
  position: relative; display: flex; flex-direction: column; justify-content: safe center; align-self: stretch;
  grid-column: 2; width: 100%; gap: .65rem; padding: clamp(12px, 2.5vw, 36px);
  border: 0; border-radius: 0; box-shadow: inset 1px 0 #2c5146;
  color: #1c3e36;
  background: radial-gradient(circle, #76968d 0 2.3px, transparent 2.8px) left 5px top 0 / 12px 19px repeat-y,
    repeating-linear-gradient(0deg, #42695410 0 1px, transparent 1px 6px), #f1efd9;
}
.panel[data-panel="result"] h2 { margin: 0; }
.panel[data-panel="result"] p { color: #32594d; }
.panel[data-panel="result"] .panel-actions { margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.panel[data-panel="result"] .panel-actions :is([data-act="continue"], .primary) { grid-column: 1 / -1; }
.panel[data-panel="result"] .result-target { color: #6a3d25; }
.panel .result-stamp, .desk[data-mode="won"] .result-stamp {
  color: #813d1e; background: #ffca95; border-color: #aa633d; padding: 0;
}
.panel .result-stamp:is(:hover, .held) { background: #ffb078; }
.desk[data-mode="won"] .shade:has([data-panel="result"]) { background: #ebb56d27; }
.desk[data-mode="won"] .panel[data-panel="result"] { animation: print-result 260ms ease-out both; }
@keyframes print-result { from { translate: 0 7px; opacity: .8; } to { translate: none; opacity: 1; } }

.story, .site-foot { margin-inline-start: max(var(--site-rail), calc((100% - 1150px + var(--site-rail)) / 2)); }
.story { width: min(calc(100% - var(--site-rail)), 1150px); }
.story h2, .story h3 { margin: 0; }
.story-spread {
  display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr); align-items: start;
  column-gap: clamp(14px, 4vw, 58px); padding: clamp(18px, 3.4vw, 44px) 0;
  border-block-start: 1px solid #8aa99b;
}
.story-copy { min-width: 0; }
.story-copy > :first-child { margin-block-start: 0; }
.story-copy > :last-child { margin-block-end: 0; }
.story-copy ul { padding-inline-start: 1.15em; }
.story-lead .story-copy { grid-column: 2; }
.story-lead .story-copy > p:first-child { font-size: clamp(1.05rem, 1.65vw, 1.32rem); font-weight: 650; }
.article-page .story nav { margin-bottom: 1.45rem; font-size: .95rem; }
.article-page .story h1 { font-size: clamp(1.65rem, 3.5vw, 3.9rem); }
.article-page .story.shell { margin-inline: auto; }
.site-foot {
  position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between;
  min-height: 132px; margin-inline-start: var(--site-rail); padding: 1.2rem clamp(18px, 5vw, 80px);
  gap: 12px; color: #f1fff3; background: var(--metal);
}
.site-foot::before, .site-foot::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(100%, 530px); height: 88%; left: 50%; bottom: 0; translate: -50% 0;
}
.site-foot::before {
  background: #091f20; clip-path: polygon(0 100%, 8% 52%, 24% 52%, 30% 20%, 67% 20%, 73% 52%, 92% 52%, 100% 100%);
}
.site-foot::after {
  background:
    radial-gradient(circle at 50% 67%, #3c6154 0 19px, transparent 20px),
    radial-gradient(circle at 38% 48%, #315247 0 9px, transparent 10px),
    radial-gradient(circle at 38% 67%, #315247 0 9px, transparent 10px),
    radial-gradient(circle at 38% 86%, #315247 0 9px, transparent 10px),
    radial-gradient(circle at 62% 48%, #315247 0 9px, transparent 10px),
    radial-gradient(circle at 62% 67%, #315247 0 9px, transparent 10px),
    radial-gradient(circle at 62% 86%, #315247 0 9px, transparent 10px);
}
.site-foot > span { font: 800 1rem var(--mono); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 .85rem; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; color: #effff2; }
.site-foot a:focus-visible { outline-color: #fec096; }

@media (max-width: 900px) {
  :root { --site-rail: 0px; }
  body { padding-bottom: var(--site-dock); }
  .site-head {
    position: static; width: auto; height: var(--site-title); display: block; padding: 0;
    color: #e9f8ee; background: #15362f; border: 0; box-shadow: none;
  }
  .site-head .brand {
    height: 100%; display: flex; align-items: center; gap: .65rem; padding: env(safe-area-inset-top) 12px 0;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .brand::before { width: 20px; height: 5px; box-shadow: none; flex: none; }
  .brand h1 { max-inline-size: none; font-size: clamp(1.05rem, 4.65vw, 1.31rem); }
  .site-controls {
    position: fixed; z-index: 8; inset: auto 0 0; grid-template-columns: 1fr 1fr; align-items: center;
    padding: 4px max(8px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--metal); box-shadow: 0 -1px #689183;
  }
  .site-controls .header-link { border: 0; justify-content: center; }
  .language-links { inset-inline-end: 0; inset-inline-start: auto; width: 100%; }
  .desk { --game-pad: 8px; --stage-top: 0px; height: calc(100dvh - var(--site-title) - var(--site-dock)); min-height: 518px; }
  .desk-head { min-height: 54px; padding-block: 4px; }
  .screen-tools { top: calc(5px + var(--stage-top)); }
  .edition { display: grid; grid-template-columns: 7px minmax(0, auto); gap: .05rem .3rem; }
  .edition strong { font-size: .875rem; white-space: normal; line-height: 1.12; }
  .edition time { grid-column: 2; font-size: .78rem; margin: 0; }
  .pilot { width: 7px; height: 7px; }
  .desk-tools { gap: 4px; }
  .utility { font-size: .875rem; padding-inline: .5rem; }
  .screen-toggle { padding: 0; }
  .console { grid-template-rows: clamp(59px, 10dvh, 85px) minmax(0, 1fr) 55px; }
  .readout { width: 93%; margin-top: 7px; }
  .draft.empty { font-size: clamp(1.12rem, 3.7dvh, 1.86rem); }
  .feedback { font-size: .875rem; }
  .key-field { width: min(98%, 670px); }
  .core::after { inset: -6px; }
  .entry-actions { width: 94%; }
  .entry-actions svg { width: 16px; height: 16px; }
  .entry-actions button { min-height: 44px; }
  .ledger { padding: .49rem .66rem; gap: .42rem; }
  .meter { gap: .28rem; }
  .rank-line strong { font-size: 1.12rem; }
  .track { height: 8px; }
  #target, #log-empty, #word-log li { font-size: .875rem; }
  .receipt-title { font-size: .9rem; padding-inline: .6rem; }
  #log-empty { margin: .23rem .52rem; }
  #word-log { padding: 0 .55rem; }
  #word-log li { min-height: 25px; }
  .sparks { left: 50%; top: 41%; }
}

@media (max-width: 900px) and (orientation: portrait), (max-width: 620px) {
  .desk-body { display: flex; flex-direction: column; }
  .console { flex: 1; }
  .ledger {
    flex: none; height: clamp(180px, 22dvh, 197px);
    border-left: 0; border-top: 2px solid #507a6e;
  }
  .desk:has([data-panel="menu"]) { --menu-band: 207px; }
  .panel[data-panel="menu"] {
    grid-template-columns: 1fr; gap: .55rem; padding: 12px 15px;
    min-height: var(--menu-band);
  }
  .panel[data-panel="menu"] .panel-actions { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }
  .panel[data-panel="menu"] [data-act="play"] { grid-column: auto; min-height: 50px; }
  .panel[data-panel="menu"] .daily-status { margin-top: 0; }
  .panel[data-panel="menu"] button { padding-inline: .35rem; }
  .panel[data-panel="paused"] { grid-template-columns: 1fr; gap: .7rem; }
  .panel[data-panel="paused"] .panel-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel[data-panel="paused"] [data-act="resume"] { grid-column: 1 / -1; }
  .shade:has([data-panel="result"]) { display: flex; align-items: end; }
  .panel[data-panel="result"] {
    align-self: end; justify-content: flex-start; padding: 12px 13px 10px 24px;
    border-top: 2px solid #789b87; width: 100%; max-height: 68%;
  }
  .panel[data-panel="result"] .panel-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px;
  }
  .panel[data-panel="result"] .panel-actions button { padding-inline: .35rem; }
  .desk:has([data-panel="result"]) :is(.ledger, .entry-actions) { visibility: hidden; }
  .story-spread { grid-template-columns: minmax(0, .56fr) minmax(0, 1.44fr); gap: 12px; }
  .story h2 { font-size: clamp(1.15rem, 4.28vw, 1.85rem); }
  .story { padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .story-lead .story-copy { grid-column: 1 / -1; }
  .article-page .story-lead .story-copy { grid-column: 2; }
  .article-page .story-lead h1 { font-size: clamp(1.05rem, 4.65vw, 1.65rem); }
  .site-foot { align-items: start; flex-direction: column; gap: 3px; }
}

@media (orientation: landscape) and (max-height: 540px) and (min-width: 530px) {
  :root { --site-title: calc(41px + env(safe-area-inset-top)); --site-dock: calc(48px + env(safe-area-inset-bottom)); }
  .site-controls { padding-block: 2px calc(2px + env(safe-area-inset-bottom)); }
  .desk { min-height: 290px; }
  .desk-head { min-height: 48px; padding-block: 2px; }
  .screen-tools { top: calc(2px + var(--stage-top)); }
  .console { grid-template-rows: 54px minmax(0, 1fr) 51px; }
  .readout { margin-top: 4px; }
  .draft.empty { font-size: 1.12rem; }
  .feedback { margin-top: .13rem; }
  .ledger { height: auto; }
  .panel { padding: 11px 15px; }
  .panel h2 { font-size: clamp(1.28rem, 3vw, 1.75rem); }
  .panel:is([data-panel="archive"], [data-panel="practice"]) { width: min(100%, 520px); }
  .panel:is([data-panel="archive"], [data-panel="practice"]) p { margin: .35rem 0 .5rem; }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk:has([data-panel="menu"]) .desk-body { grid-template-columns: minmax(0, 1fr) minmax(245px, 36%); padding-bottom: 0; }
  .shade:has([data-panel="menu"]) { grid-template-columns: minmax(0, 1fr) minmax(245px, 36%); align-items: stretch; padding-top: 48px; }
  .panel[data-panel="menu"] { grid-column: 2; grid-template-columns: 1fr; gap: .4rem; min-height: 0; padding: 10px 13px; border: 0; border-left: 2px solid #86a694; }
  .panel[data-panel="menu"] p { margin-top: .24rem; }
  .panel[data-panel="menu"] .daily-status { margin-top: 0; }
  .desk-body, .shade:has([data-panel="result"]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 34%); }
  .panel[data-panel="result"] { align-self: stretch; max-height: 100%; }
  .panel[data-panel="result"] { gap: .3rem; padding: 9px 10px 9px 21px; }
  .panel[data-panel="result"] p { margin-block: .32rem; }
  .panel[data-panel="result"] .panel-actions { gap: 5px; }
  .panel[data-panel="result"] button { font-size: .9rem; line-height: 1.15; padding: .3rem .38rem; }
}
@media (max-width: 340px) {
  .desk-tools .utility { padding-inline: .28rem; }
  .desk-head { gap: .15rem; --game-pad: 5px; }
  .edition strong { font-size: .79rem; }
}
.less-motion *, .less-motion *::after, .less-motion *::before { animation-duration: 0s !important; transition-duration: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation-duration: 0s !important; transition-duration: 0s !important; }
}
