:root {
  --ink: #13342f;
  --ink-soft: #41615b;
  --canvas: #f5f3eb;
  --paper: #fffef9;
  --line: #d9ddd2;
  --forest: #173d36;
  --forest-2: #245549;
  --moss: #a8c967;
  --moss-deep: #47723f;
  --sun: #ecbd55;
  --clay: #c55f49;
  --match: #e0f3cb;
  --match-ink: #225c3d;
  --shadow: 0 12px 34px rgba(25, 55, 45, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background-color: var(--canvas); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, input:focus-visible, summary:focus-visible, .board-scroll:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 30; padding: .75rem 1rem; border-radius: .5rem; color: #fff; background: var(--forest); }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.loading-screen, .load-error { display: grid; min-height: 100vh; place-content: center; text-align: center; padding: 2rem; color: var(--ink-soft); }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(23, 61, 54, .97); box-shadow: 0 2px 12px rgba(17, 45, 39, .16); }
.header-inner { display: flex; width: min(1160px, calc(100% - 2rem)); min-height: 68px; align-items: center; justify-content: space-between; gap: 1rem; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: .6rem; padding: 0; border: 0; color: #fff; background: transparent; text-align: left; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.18rem; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .05rem; font-size: .58rem; letter-spacing: .18em; font-weight: 800; color: var(--moss); }
.site-header nav { display: flex; align-items: center; gap: .1rem; }
.nav-button { border: 0; border-radius: .5rem; padding: .55rem .5rem; color: rgba(255,255,255,.8); background: transparent; font-size: .81rem; font-weight: 700; }
.nav-button:hover, .nav-button.is-active { color: var(--forest); background: var(--moss); }

.page-shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.notice { margin-bottom: 1.2rem; padding: .85rem 1rem; border: 0; outline: 0; border-radius: .25rem .7rem .7rem .25rem; color: #254b31; background: #e9f2d9; font-weight: 700; box-shadow: none; }
.eyebrow { margin: 0 0 .45rem; color: var(--moss-deep); font-size: .7rem; font-weight: 900; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1, h2 { color: var(--forest); letter-spacing: -.04em; }
h1 { margin-bottom: .65rem; font-family: Georgia, serif; font-size: clamp(2rem, 7vw, 3.3rem); line-height: 1; }
h2 { margin-bottom: .5rem; font-size: 1.25rem; }
p { line-height: 1.5; }

.puzzle-intro { display: grid; gap: 1.25rem; align-items: end; padding: 1.1rem 0 1.6rem; }
.puzzle-intro > div > p:not(.eyebrow) { max-width: 36rem; margin-bottom: 0; color: var(--ink-soft); }
.date-card { display: grid; gap: .35rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,254,249,.73); box-shadow: 0 7px 19px rgba(25,55,45,.06); }
.date-card > span { color: var(--ink-soft); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.date-card > strong { font-size: .98rem; }
.puzzle-intro.is-archive { border-left: 4px solid var(--sun); padding-left: 1rem; }

.series-banner { display: flex; gap: .85rem; align-items: flex-start; margin: 0 0 1.25rem; padding: 1rem; border: 1px solid #bedb8a; border-radius: .85rem; color: #1e5138; background: linear-gradient(100deg, #f4ffe5, #e2f2bf); box-shadow: 0 6px 16px rgba(63,105,46,.08); }
.series-banner > span { font-size: 1.65rem; color: var(--moss-deep); }.series-banner strong { font-size: .8rem; letter-spacing: .08em; }.series-banner p { margin: .22rem 0 0; font-size: .9rem; }

.guess-panel { position: relative; z-index: 3; margin: 0 0 1.55rem; padding: 1.05rem; border: 1px solid rgba(26,71,59,.14); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.guess-status { display: flex; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }.guess-status h2 { margin: 0; font-size: 1.25rem; }.guess-status .eyebrow { margin-bottom: .25rem; }
.guess-combobox { position: relative; }.search-input-wrap { display: flex; min-height: 3.25rem; align-items: center; gap: .65rem; padding: 0 .8rem; border: 1.5px solid #aebdb1; border-radius: .7rem; background: #fff; }.search-input-wrap:focus-within { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(79,127,98,.18); }.search-input-wrap > span { font-size: 1.35rem; color: var(--forest-2); }.search-input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }.search-input-wrap input::placeholder { color: #72857c; }.clear-search { width: 1.6rem; height: 1.6rem; border: 0; border-radius: 50%; color: #fff; background: var(--forest-2); line-height: 1; }
.autocomplete-options { position: absolute; top: calc(100% + .28rem); right: 0; left: 0; max-height: min(24rem, 55vh); overflow-y: auto; border: 1px solid #aebdb1; border-radius: .7rem; background: #fffefb; box-shadow: 0 16px 28px rgba(18,52,43,.2); }.autocomplete-options[hidden] { display: none; }
.cache-option { display: flex; width: 100%; min-height: 3.8rem; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem .8rem; border: 0; border-bottom: 1px solid #e6e9e2; color: var(--ink); background: transparent; text-align: left; }.cache-option:last-child { border-bottom: 0; }.cache-option:not(:disabled):hover, .cache-option.active { background: #edf5df; }.cache-option:disabled { color: #6d7d75; background: #f4f4ef; }.cache-option strong, .cache-option small { display: block; }.cache-option strong { line-height: 1.2; }.cache-option small { margin-top: .2rem; color: var(--ink-soft); font-size: .76rem; }.cache-option em { flex: 0 0 auto; padding: .24rem .42rem; border-radius: .4rem; color: #6d6254; background: #e9e4d9; font-size: .67rem; font-style: normal; font-weight: 800; }.no-options { padding: 1rem; color: var(--ink-soft); }
.primary-button { min-height: 2.85rem; margin-top: .8rem; padding: .55rem 1rem; border: 0; border-radius: .58rem; color: #fff; background: var(--forest); box-shadow: 0 4px 0 #092921; font-weight: 800; }.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--forest-2); }.primary-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #092921; }.primary-button:disabled { color: #849188; background: #dfe4da; box-shadow: none; }.input-hint { margin: .85rem 0 0; color: var(--ink-soft); font-size: .79rem; }

.comparison-section { margin-top: 1.75rem; }.board-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }.board-heading h2 { margin-bottom: 0; }.board-heading p:last-child { margin: 0; color: var(--ink-soft); font-size: .74rem; text-align: right; }.board-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); box-shadow: 0 7px 20px rgba(25,55,45,.05); }table { width: 100%; min-width: 930px; border-collapse: separate; border-spacing: 0; }th, td { padding: .7rem .58rem; border-bottom: 1px solid #e5e8df; text-align: center; vertical-align: middle; }thead th { position: sticky; top: 0; z-index: 2; color: #6a7d74; background: #eef1e9; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; }thead th:first-child, .guess-context { position: sticky; left: 0; z-index: 3; text-align: left; }thead th:first-child { background: #e4eadf; }.guess-context { min-width: 190px; max-width: 220px; background: #fffef9; }.guess-context strong, .guess-context small, .guess-context em { display: block; }.guess-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }.guess-context small { margin-top: .18rem; color: var(--ink-soft); font-size: .71rem; }.guess-context em { margin-top: .3rem; color: #536d58; font-size: .65rem; font-style: normal; font-weight: 800; }.guess-row:last-child td, .guess-row:last-child th { border-bottom: 0; }.guess-row { animation: row-in .32s ease both; animation-delay: calc(var(--row-index) * 30ms); }td { min-width: 93px; color: #405c54; font-size: .79rem; font-weight: 750; }td[data-state="exact"] { color: var(--match-ink); background: var(--match); }td[data-state="relative"] { color: #305846; background: #f2f6eb; }.feedback-marker { display: inline-grid; width: 1.05rem; height: 1.05rem; place-items: center; margin-right: .18rem; border-radius: 50%; color: #6c7f75; background: #e6ebe4; font-size: .72rem; }td[data-state="exact"] .feedback-marker { color: #fff; background: var(--match-ink); }td[data-state="relative"] .feedback-marker { color: #fff; background: var(--moss-deep); }

.completion { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.5rem; padding: 1.15rem; border: 0; outline: 0; border-radius: 1rem; background: transparent; box-shadow: none; }.completion.win, .completion.loss { border: 0; outline: 0; background: transparent; box-shadow: none; }.completion h2 { margin-bottom: .35rem; }.completion p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: .88rem; }.answer-name { margin: .4rem 0 0; color: var(--forest); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }.answer-code { margin: .1rem 0 .65rem; color: var(--moss-deep); font-size: .82rem; font-weight: 900; letter-spacing: .09em; }
.coordinates-card { display: grid; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem; border: 1px solid #c7d8a4; border-radius: 1rem; background: #f5fbe9; }.coordinates-card h2 { margin-bottom: .2rem; }.coordinates-card p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); font-size: .86rem; }.coordinates-card details { align-self: center; }.coordinates-card summary { cursor: pointer; color: var(--forest); font-weight: 850; }.coordinates-card code { display: block; max-width: 100%; margin-top: .65rem; overflow-wrap: anywhere; padding: .65rem; border-radius: .45rem; color: #314b40; background: #e4eed3; font-size: .8rem; }.catalog-note { margin: 1.2rem 0 0; color: #6b8077; font-size: .73rem; text-align: center; }

.stats-page { max-width: 740px; }.stats-caption { color: var(--ink-soft); }.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.5rem 0; }.stat-grid > div { display: grid; gap: .25rem; min-height: 6.5rem; align-content: center; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }.stat-grid span { color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.stat-grid strong { color: var(--forest); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }.distribution { margin-top: 1.4rem; padding: 1.1rem; border-radius: .85rem; background: #e8eee2; }.distribution h2 { margin-bottom: .15rem; }.distribution > p { color: var(--ink-soft); font-size: .8rem; }.distribution-row { display: grid; grid-template-columns: 1.4rem 1fr; align-items: center; gap: .5rem; margin-top: .45rem; font-size: .8rem; font-weight: 800; }.distribution-row > div { position: relative; height: 1.65rem; border-radius: .25rem; background: #fffefa; overflow: hidden; }.distribution-row i { display: block; min-width: 0; height: 100%; background: var(--forest-2); }.distribution-row b { position: absolute; top: .23rem; left: .5rem; color: #254138; }

dialog { width: min(620px, calc(100% - 2rem)); max-height: min(85vh, 700px); overflow-y: auto; border: 0; border-radius: 1rem; padding: 1.5rem; color: var(--ink); background: #fffef9; box-shadow: 0 24px 70px rgba(12,43,35,.34); }dialog::backdrop { background: rgba(10,35,29,.62); }dialog dl { margin: 1.2rem 0; }dialog dl > div { padding: .75rem 0; border-top: 1px solid var(--line); }dialog dt { color: var(--forest); font-weight: 850; }dialog dd { margin: .25rem 0 0; color: var(--ink-soft); line-height: 1.45; }dialog dd em { color: var(--forest); font-style: normal; font-weight: 800; }

.debug-panel { margin-top: 2.5rem; padding: 1rem; border: 2px dashed #b4563e; border-radius: .8rem; color: #582e25; background: #fff2eb; }.debug-panel h2 { margin-bottom: .25rem; color: #793c2e; }.debug-panel > div > p:not(.eyebrow) { max-width: 44rem; margin-bottom: 1rem; font-size: .82rem; }.debug-grid { display: grid; gap: .6rem; }.debug-grid label, .debug-inspect label { display: grid; gap: .25rem; color: #64382d; font-size: .76rem; font-weight: 800; }.debug-panel input { min-height: 2.35rem; padding: .4rem .5rem; border: 1px solid #c98e7d; border-radius: .4rem; color: var(--ink); background: #fffefa; }.debug-panel button { min-height: 2.3rem; border: 1px solid #a65340; border-radius: .4rem; color: #6c3024; background: #fffbf7; font-weight: 800; }.debug-panel button:hover { background: #f9d9ce; }.debug-inspect { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: end; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5b9aa; }.debug-inspect label { grid-column: 1 / -1; }.debug-inspect output { grid-column: 1 / -1; min-height: 2rem; padding: .6rem; border-radius: .4rem; color: #603126; background: #ffe5dc; font-size: .78rem; overflow-wrap: anywhere; }

@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 680px) { .header-inner { min-height: 76px; }.nav-button { padding: .58rem .75rem; font-size: .88rem; }.puzzle-intro { grid-template-columns: 1fr auto; }.date-card { min-width: 225px; }.guess-panel { padding: 1.3rem; }.guess-status h2 { font-size: 1.45rem; }.stat-grid { grid-template-columns: repeat(4, 1fr); }.coordinates-card { grid-template-columns: 1fr auto; align-items: center; }.debug-grid { grid-template-columns: 1fr 1fr; }.debug-grid button { align-self: end; } }
@media (max-width: 420px) { .header-inner { width: calc(100% - 1rem); }.page-shell { width: calc(100% - 1rem); }.brand strong { font-size: 1rem; }.nav-button { padding: .5rem .34rem; font-size: .73rem; }.guess-status { align-items: start; flex-direction: column; }.completion { padding: 1rem; }.board-heading { align-items: start; flex-direction: column; }.board-heading p:last-child { text-align: left; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Daily game revision: compact field-notes framing and a tile-first board. */
body { background: #f4edd9; }
.site-header { position: sticky; top: 0; border-bottom: 3px solid #a6c96a; background: #153e37; box-shadow: none; }
.header-inner { width: min(1060px, calc(100% - 1.5rem)); min-height: 58px; }
.brand strong { font-size: 1.04rem; }.brand small { font-size: .54rem; }
.nav-button { border-radius: 2px; padding: .45rem .55rem; font-size: .76rem; }
.page-shell { width: min(1060px, calc(100% - 1.5rem)); padding: 1.35rem 0 3rem; }
.notice { margin: 0 0 .9rem; border-radius: 0; box-shadow: none; font-size: .86rem; }
.eyebrow { margin-bottom: .28rem; font-size: .63rem; letter-spacing: .16em; }
h1 { margin-bottom: 0; font-size: clamp(1.85rem, 5vw, 2.65rem); letter-spacing: -.055em; }
h2 { font-size: 1.08rem; }

.puzzle-intro { grid-template-columns: 1fr auto; gap: 1rem; padding: .2rem 0 .95rem; border-bottom: 1px solid #c6cbb9; }
.puzzle-intro > div > p:not(.eyebrow) { margin: .3rem 0 0; color: #5e7068; font-size: .82rem; }
.puzzle-intro.is-archive { padding-left: .7rem; border-left: 3px solid var(--sun); }
.puzzle-intro.is-test { border-left: 3px solid var(--clay); padding-left: .7rem; }
.date-card { display: flex; min-width: auto; align-items: center; justify-content: end; gap: .45rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: right; }
.date-card > span { color: #6a776f; font-size: .65rem; }.date-card > strong { font-size: .75rem; }
.test-mode-banner { display: flex; align-items: center; gap: .65rem; margin: .85rem 0; padding: .6rem .75rem; border: 1px solid #d09a84; border-left: 5px solid var(--clay); background: #fff0e7; color: #6d382b; font-size: .77rem; }.test-mode-banner strong { font-size: .65rem; letter-spacing: .13em; }

.guess-panel { position: relative; z-index: 20; overflow: visible; margin: 1rem 0 1.15rem; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.guess-status { display: block; margin: 0 0 .5rem; }.guess-status .eyebrow { margin-bottom: .08rem; }.guess-status h2 { margin: 0; color: var(--forest); font-size: 1rem; letter-spacing: -.02em; }
.guess-combobox { z-index: 30; }.search-input-wrap { min-height: 3.15rem; border: 2px solid #214b42; border-radius: 3px; background: #fffdf5; }.search-input-wrap:focus-within { border-color: #214b42; box-shadow: 4px 4px 0 #b6cc87; }.search-input-wrap > span { color: #214b42; }.clear-search { border-radius: 2px; }
.autocomplete-options { z-index: 100; max-height: min(29rem, 58vh); border: 2px solid #214b42; border-radius: 0; background: #fffdf5; box-shadow: 7px 8px 0 rgba(37, 72, 59, .24); overscroll-behavior: contain; }
.cache-option { min-height: 3.55rem; padding: .62rem .8rem; border-bottom-color: #d9ddd1; background: #fffdf5; }.cache-option:not(:disabled):hover, .cache-option.active { background: #dcecbf; box-shadow: inset 4px 0 0 #447543; }.cache-option:disabled { background: #edede6; }.cache-option strong { font-size: .86rem; }.cache-option em { border-radius: 2px; }
.primary-button { min-height: 2.7rem; margin-top: .65rem; border-radius: 2px; padding: .5rem .92rem; box-shadow: 3px 3px 0 #092921; }.primary-button:active:not(:disabled) { box-shadow: 1px 1px 0 #092921; }

.comparison-section { position: relative; z-index: 1; margin-top: 1rem; }.board-heading { display: block; margin-bottom: .45rem; }.board-heading .eyebrow { margin-bottom: .08rem; }.board-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }.board-scroll { overflow-x: auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-color: #587464 #daddcf; scrollbar-width: thin; }
table { min-width: 900px; border-collapse: separate; border-spacing: 4px; }th, td { border: 0; }thead th { position: static; padding: .2rem .25rem .35rem; color: #53675e; background: transparent; font-size: .61rem; text-align: center; }thead th:first-child, .guess-context { position: static; }thead th:first-child { background: transparent; text-align: left; }.guess-context { min-width: 195px; max-width: 220px; padding: .68rem .75rem; border: 1px solid #b8c1b4; background: #fffdf5; text-align: left; }.guess-context strong { font-size: .82rem; }.guess-context small { color: #53675e; }.guess-context em { color: #3d7052; }.guess-row:last-child td, .guess-row:last-child th { border-bottom: 0; }.guess-row { animation: row-in .22s ease both; }
td { min-width: 78px; height: 70px; padding: .48rem .34rem; border: 1px solid #c5ccc0; color: #29463d; background: #e8ebe2; font-size: .8rem; font-weight: 800; }td[data-state="exact"] { border-color: #4b814c; color: #fff; background: #5f9754; }td[data-state="relative"] { border-color: #c9b26c; color: #594b24; background: #f3e8c7; }td[data-state="relative"] span { font-size: .97rem; }td:last-child span { font-size: .95rem; }

.series-banner { margin: .85rem 0; border-radius: 0; border-color: #a8cd77; border-left: 5px solid var(--moss-deep); background: #edf7d9; box-shadow: none; }.completion { border-radius: 0; box-shadow: none; }.completion.win { background: #e4f2ce; }.coordinates-card { border-radius: 0; box-shadow: none; }
.stats-page .stat-grid > div, .distribution, dialog { border-radius: 2px; box-shadow: none; }

@media (max-width: 679px) {
  .header-inner { width: calc(100% - 1rem); min-height: 54px; }.page-shell { width: calc(100% - 1rem); padding-top: 1rem; }.brand { gap: 0; }.brand strong { font-size: .88rem; }.brand small { font-size: .47rem; }.site-header nav { gap: 0; }.nav-button { padding: .4rem .31rem; font-size: .69rem; }
  .puzzle-intro { grid-template-columns: 1fr; gap: .55rem; }.date-card { justify-content: start; text-align: left; }.guess-panel { margin-top: .8rem; }.autocomplete-options { max-height: min(27rem, 62vh); }table { min-width: 840px; border-spacing: 3px; }.guess-context { min-width: 175px; }.guess-context strong { white-space: normal; }.board-scroll { padding-bottom: .28rem; }td { min-width: 74px; height: 66px; font-size: .75rem; }
}

/* Archive collection: dense, tappable challenge tiles rather than a date control. */
.archive-grid-page { padding: .2rem 0 1rem; }
.archive-grid-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .85rem; border-bottom: 1px solid #c6cbb9; }
.archive-grid-heading h1 { font-size: clamp(1.5rem, 4vw, 2.05rem); letter-spacing: -.04em; }
.archive-progress { margin: 0; white-space: nowrap; color: #53675e; font-size: .84rem; }
.archive-progress strong { color: #214b42; font-size: 1rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.7rem, 1fr)); gap: .48rem; }
.archive-tile { position: relative; display: flex; min-height: 3.65rem; align-items: center; justify-content: center; gap: .25rem; border: 2px solid #173e36; border-radius: 2px; color: #f7f2e2; background: #315148; box-shadow: 2px 2px 0 rgba(9, 41, 33, .28); font-family: inherit; font-size: .82rem; font-weight: 850; letter-spacing: -.02em; line-height: 1; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.archive-tile:hover { filter: brightness(1.09); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(9, 41, 33, .28); }
.archive-tile:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(9, 41, 33, .28); }
.archive-tile:focus-visible { z-index: 1; outline: 3px solid #18231d; outline-offset: 3px; }
.archive-tile.is-completed { border-color: #9c7419; color: #382a08; background: #d9ae3e; box-shadow: 2px 2px 0 rgba(109, 77, 6, .26); }
.archive-tile.is-lost { border-color: #613832; color: #fff4eb; background: #80524b; box-shadow: 2px 2px 0 rgba(81, 37, 32, .22); }
.archive-tile.is-in_progress { border-color: #365649; color: #edf6dd; background: #547063; }
.archive-tile.is-selected { z-index: 1; outline: 3px solid #173e36; outline-offset: 3px; }
.archive-tile-number { font-variant-numeric: tabular-nums; }
.archive-empty { margin: 1rem 0; color: #5e7068; }
.archive-back { align-self: center; border: 1px solid #78906c; border-radius: 2px; padding: .48rem .6rem; color: #214b42; background: #fffdf5; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.archive-back:hover { color: #fff; border-color: #214b42; background: #214b42; }
.archive-puzzle-date { color: #214b42 !important; font-weight: 800; }

@media (max-width: 679px) {
  .archive-grid-heading { align-items: start; flex-direction: column; gap: .38rem; margin-bottom: .8rem; }.archive-grid { grid-template-columns: repeat(auto-fill, minmax(3.35rem, 1fr)); gap: .4rem; }.archive-tile { min-height: 3.45rem; }.archive-back { align-self: start; }
}

/* Game-first refinement: the eight clue rows are the primary visual surface. */
.brand { gap: 0; }
.date-card { gap: .28rem; }
.series-banner { display: block; margin: .8rem 0; padding: .62rem .75rem; border: 1px solid #a8cd77; border-left: 4px solid #47723f; color: #214b42; background: #edf7d9; }
.series-banner strong { font-size: .68rem; letter-spacing: .13em; }.series-banner p { margin: .18rem 0 0; font-size: .79rem; }

.guess-panel { z-index: 30; margin: .85rem 0 1rem; }
.guess-combobox { position: relative; z-index: 40; }
.autocomplete-options { z-index: 100; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; padding-bottom: .4rem; border: 2px solid #214b42; border-radius: 2px; background: #fffdf5; box-shadow: 7px 8px 0 rgba(37,72,59,.24); scrollbar-gutter: stable; }
.cache-option:last-of-type { border-bottom: 1px solid #d9ddd1; }

.comparison-section { z-index: 1; margin-top: .95rem; }
.board-heading { margin-bottom: .48rem; }.board-heading h2 { font-size: 1.28rem; }
.board-scroll { overflow-x: auto; padding-bottom: .18rem; }
.board-scroll table { width: 100%; min-width: 1050px; border-spacing: .42rem; table-layout: fixed; }
.col-guess { width: 23%; }.col-cacher, .col-type { width: 12%; }.col-difficulty, .col-terrain { width: 7%; }.col-size { width: 9%; }.col-placed { width: 9.5%; }.col-distance { width: 11%; }.col-direction { width: 9.5%; }
.board-scroll th, .board-scroll td { padding: 0; border: 0; }
.board-scroll thead th { padding: .1rem .26rem .32rem; color: #53675e; background: transparent; font-size: .61rem; }
.board-tile { --tile-bg: #fffdf6; --tile-border: #e0e2d6; --tile-ink: #29463d; min-width: 0; height: 4.35rem; padding: .58rem .48rem; border: 1px solid var(--tile-border); color: var(--tile-ink); background: var(--tile-bg); font-size: .79rem; font-weight: 800; text-align: center; vertical-align: middle; }
.board-tile[data-state="exact"] { --tile-bg: #5f9754; --tile-border: #4b814c; --tile-ink: #fff; }
.board-tile[data-state="relative"], .board-tile[data-state="neutral"] { --tile-bg: #fffdf6; --tile-border: #e0e2d6; --tile-ink: #29463d; }
td.board-tile[data-state], th.board-tile[data-state] { border-color: var(--tile-border); color: var(--tile-ink); background: var(--tile-bg); }
.board-tile span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
th.board-tile.guess-context { min-width: 0; max-width: none; padding: .62rem .72rem; background: var(--tile-bg); color: var(--tile-ink); text-align: left; }
.guess-context strong { color: inherit; font-size: .85rem; }.guess-context small { color: inherit; opacity: .78; }.guess-context em { color: inherit; opacity: .84; }
.board-tile.is-empty { --tile-bg: #f7f6ee; --tile-border: #e5e6db; --tile-ink: transparent; }
.empty-row .board-tile { height: 4.35rem; }
.guess-row { animation: none; }
.board-tile.is-revealing { transform-style: preserve-3d; will-change: transform, background-color; animation: tile-flip 460ms cubic-bezier(.25,.9,.3,1) both; animation-delay: calc(var(--reveal-index) * 210ms); }

@keyframes tile-flip {
  0% { color: transparent; background: #dfe5dc; transform: perspective(520px) rotateX(0deg); }
  46% { color: transparent; background: #dfe5dc; transform: perspective(520px) rotateX(-88deg); }
  54% { color: var(--tile-ink); background: var(--tile-bg); transform: perspective(520px) rotateX(-88deg); }
  100% { color: var(--tile-ink); background: var(--tile-bg); transform: perspective(520px) rotateX(0deg); }
}

.completion { display: block; margin: .95rem 0 1.1rem; padding: .9rem 0 .95rem; border: 0; outline: 0; border-radius: 0; background: transparent; box-shadow: none; }.completion.win, .completion.loss { border: 0; outline: 0; background: transparent; box-shadow: none; }.completion h2 { margin-bottom: .28rem; }

@media (max-width: 760px) {
  .board-scroll { overflow: visible; padding: 0; }.board-scroll table { display: table; width: 100%; min-width: 0; border-spacing: 0; table-layout: auto; }.board-scroll colgroup { display: none; }.board-scroll thead { display: none; }.board-scroll tbody { display: grid; gap: .68rem; }.board-scroll tr.guess-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .34rem; }.board-scroll .board-tile { display: grid; height: auto; min-height: 3.45rem; align-content: center; justify-items: start; padding: .48rem .55rem; text-align: left; }.board-scroll .board-tile::before { content: attr(data-label); margin-bottom: .16rem; color: #5b7166; font-size: .57rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.board-scroll .guess-context { grid-column: 1 / -1; min-width: 0; max-width: none; min-height: 4rem; }.board-scroll .guess-context::before { display: none; }.board-scroll .guess-context strong { overflow: visible; white-space: normal; font-size: .9rem; }.board-scroll .board-tile[data-state="exact"]::before { color: rgba(255,255,255,.78); }.board-scroll .empty-row .board-tile { min-height: 2rem; }.board-scroll .empty-row .board-tile::before { visibility: hidden; }.board-scroll .empty-row .guess-context { min-height: 2.5rem; }
}

/* Focused branding and feedback cleanup. */
.brand strong { font-size: 1.1rem; }
.brand small { font-size: .48rem; letter-spacing: .13em; }
.notice { margin: 0 0 .72rem; padding: .5rem .7rem; border: 0; outline: 0; border-radius: 0; color: #345143; background: rgba(226, 239, 210, .7); box-shadow: none; font-size: .78rem; font-weight: 700; }
.puzzle-intro.is-archive { border-bottom: 0; }

/* Private Which Cache? owner tools remain distinct from the player board. */
.owner-body { background: #f4edd9; color: #173d36; }
.owner-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1.25rem, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #d5d8cd; background: #fffdf6; }
.owner-brand { color: inherit; font-weight: 800; text-decoration: none; letter-spacing: .035em; }
.owner-nav { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.owner-nav button { border: 0; border-radius: .35rem; padding: .5rem .65rem; color: #31524c; background: transparent; font: inherit; cursor: pointer; }
.owner-nav button.is-active, .owner-nav button:hover { color: #173d36; background: #dce9df; }
.owner-shell { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 3rem; }
.owner-login { display: grid; min-height: 100vh; place-items: center; }
.owner-login .owner-card { width: min(480px, 100%); }
.owner-page > h1 { margin-top: 0; }
.owner-card { display: grid; gap: .8rem; padding: 1.1rem; margin: 1rem 0; border: 1px solid #d5d8cd; border-radius: .7rem; background: #fffdf6; }
.owner-card h2, .owner-card p { margin: 0; }
.owner-form { display: grid; gap: .75rem; }
.owner-inline-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.owner-coordinate-field { grid-column: 1 / span 2; }
.owner-coordinate-preview, .owner-coordinate-error { grid-column: 1 / -1; margin: -.2rem 0 0; font-size: .82rem; }
.owner-coordinate-preview { display: grid; gap: .14rem; color: #345143; }
.owner-coordinate-preview small { color: #5c706a; }
.owner-coordinate-error { color: #7a1f18; }
.owner-grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.owner-field { display: grid; gap: .28rem; font-size: .86rem; font-weight: 700; }
.owner-form input, .owner-form select, .owner-filter-bar input, .owner-filter-bar select { width: 100%; box-sizing: border-box; padding: .58rem .65rem; border: 1px solid #bfc8bd; border-radius: .35rem; color: #173d36; background: #fff; font: inherit; }
.owner-field input[type="checkbox"] { width: auto; min-height: 1.2rem; }
.owner-actions { display: flex; gap: .6rem; align-items: center; }
.owner-filter-bar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0; }
.owner-filter-bar input { min-width: 220px; flex: 1 1 280px; }
.owner-filter-bar select { min-width: 145px; flex: 0 1 190px; }
.owner-filter-bar button, .owner-actions button, .owner-table button, .owner-card > button, .owner-series-list button { padding: .5rem .7rem; border: 1px solid #9eaea3; border-radius: .35rem; color: #173d36; background: #fffdf6; font: inherit; cursor: pointer; }
.owner-notice, .owner-error { padding: .7rem .85rem; border-radius: .45rem; }
.owner-notice { color: #164a33; background: #dce9df; }
.owner-error { color: #7a1f18; background: #f8ded8; }
.owner-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0; }
.owner-metrics div { display: grid; gap: .2rem; padding: .9rem; border: 1px solid #d5d8cd; border-radius: .6rem; background: #fffdf6; }
.owner-metrics span { color: #5c706a; font-size: .82rem; }
.owner-metrics strong { font-size: 1.45rem; }
.owner-table-scroll { overflow-x: auto; border: 1px solid #d5d8cd; border-radius: .6rem; background: #fffdf6; }
.owner-table { width: 100%; min-width: 960px; border-collapse: collapse; font-size: .87rem; }

/* Topographic artwork uses cover so every viewport is filled without distortion. */
body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background-color: #f4edd9;
}

body:not(.owner-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("./topographic-map-background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .028;
  pointer-events: none;
}

.wordmark-question { color: var(--sun); }

.puzzle-intro,
.puzzle-intro.is-archive {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 1.2rem 0 1.35rem;
  border: 0;
  text-align: center;
}
.puzzle-intro-copy { display: grid; justify-items: center; }
.puzzle-intro .puzzle-date {
  margin: 0 0 .5rem;
  color: #214b42;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.35;
}
.puzzle-intro h1 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: .97;
  letter-spacing: -.065em;
}
.puzzle-intro .puzzle-subtitle {
  max-width: 33rem;
  margin: .8rem 0 0;
  color: #526960;
  font-size: .96rem;
}
.puzzle-intro.is-archive { padding-top: 1.4rem; }
.puzzle-intro.is-archive h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
.puzzle-intro .archive-puzzle-date { margin: .58rem 0 0; color: #214b42 !important; font-size: .9rem; font-weight: 800; }
.puzzle-intro .archive-practice { margin: .42rem 0 0; color: #5e7068; font-size: .83rem; }
.puzzle-intro .archive-back { position: absolute; top: 1.35rem; left: 0; align-self: auto; }

.series-banner {
  margin: .05rem 0 1rem;
  padding: .65rem .8rem;
  border: 1px solid #b9d48d;
  border-left: 4px solid #47723f;
  background: rgba(237, 247, 217, .82);
}
.series-banner .series-name { margin: .24rem 0 0; color: #214b42; font-family: Georgia, serif; font-size: 1rem; font-weight: 700; }
.series-banner p:last-child { margin-top: .18rem; }

.guess-panel { margin: .8rem 0 1.35rem; }
.guess-status { margin-bottom: .68rem; }
.comparison-section { margin-top: 1.25rem; }
.board-heading { margin-bottom: .64rem; }

.board-tile { --tile-bg: #fffdf5; --tile-border: #cfd7ca; }
.board-tile[data-state="relative"], .board-tile[data-state="neutral"] { --tile-bg: #fffdf5; --tile-border: #cfd7ca; }
.board-tile.is-empty { --tile-bg: #fffefa; --tile-border: #e4e7df; }
.guess-context em { color: #805e19; font-weight: 900; }
.cache-option em { color: #385d3e; background: #e5f1cd; }

.board-tile.is-revealing {
  animation-duration: 580ms;
  animation-delay: calc(var(--reveal-index) * 95ms);
}

@media (max-width: 679px) {
  .puzzle-intro, .puzzle-intro.is-archive { padding: 1rem 0 1.1rem; }
  .puzzle-intro h1 { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .puzzle-intro.is-archive h1 { font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .puzzle-intro .puzzle-date { max-width: 100%; font-size: .59rem; letter-spacing: .13em; }
  .puzzle-intro .puzzle-subtitle { margin-top: .65rem; font-size: .9rem; }
  .puzzle-intro .archive-back { position: static; margin: .9rem auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  .board-tile.is-revealing { animation: none; transform: none; }
}
.owner-table th, .owner-table td { padding: .65rem .7rem; border-bottom: 1px solid #e1e4dc; text-align: left; vertical-align: top; }
.owner-table th { background: #edf1e9; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.owner-table td:last-child { white-space: nowrap; }
.owner-table td:last-child button + button { margin-left: .35rem; }
.owner-series-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.owner-series-list .owner-card { margin: 0; }

@media (max-width: 760px) {
  .owner-header { align-items: flex-start; flex-direction: column; }
  .owner-shell { width: min(100% - 1.5rem, 1180px); padding-top: 1.25rem; }
  .owner-inline-form, .owner-grid-form, .owner-metrics { grid-template-columns: 1fr; }
  .owner-coordinate-field { grid-column: auto; }
  .owner-filter-bar { align-items: stretch; }
  .owner-filter-bar input, .owner-filter-bar select { min-width: 0; flex-basis: 100%; }
}

/* Continuous cache catalog and owner difficulty analytics. */
.autocomplete-options { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cache-option { display: block; min-height: 3.45rem; padding: .58rem .8rem; }
.cache-option-copy { display: block; min-width: 0; }
.cache-option strong { overflow-wrap: anywhere; white-space: normal; }
.cache-option small.cache-option-meta { display: block; margin-top: .22rem; color: #53675e; font-size: .76rem; line-height: 1.25; }
.cache-option em { display: inline-block; margin-top: .34rem; }
.owner-analytics { gap: 1.1rem; }
.owner-analytics-block { display: grid; gap: .72rem; padding-top: .35rem; border-top: 1px solid #dfe4da; }
.owner-analytics-block h3 { margin: 0; font-size: 1rem; }
.owner-analytics-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.owner-distribution { display: grid; gap: .45rem; }
.owner-distribution-row { display: grid; grid-template-columns: minmax(5.5rem, auto) minmax(7rem, 1fr) minmax(5rem, auto); gap: .6rem; align-items: center; font-size: .82rem; }
.owner-distribution-row > div { height: .8rem; overflow: hidden; border-radius: 999px; background: #e6ebe3; }
.owner-distribution-row i { display: block; height: 100%; border-radius: inherit; background: #47723f; }
.owner-distribution-row strong { text-align: right; font-size: .78rem; }
.owner-analytics-table { min-width: 1160px; }
.owner-analytics-table details { min-width: 7.5rem; }
.owner-analytics-table details p { margin: .45rem 0 0; white-space: nowrap; color: #53675e; font-size: .76rem; }
@media (max-width: 679px) {
  .cache-option { min-height: 3.35rem; padding: .56rem .68rem; }
  .cache-option strong { font-size: .84rem; }
  .cache-option small.cache-option-meta { font-size: .72rem; }
  .owner-distribution-row { grid-template-columns: 1fr minmax(6rem, 1fr); }
  .owner-distribution-row strong { grid-column: 1 / -1; text-align: left; }
}