:root{color-scheme:light;--bg:#f6f8f2;--paper:#fffefa;--ink:#2e3d2b;--muted:#708069;--green:#48633c;--line:#dfe5d6;--soft:#edf1e7;--gold:#bc8d39;--danger:#a13f32}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;padding:8px 12px;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:var(--soft);border-color:#9baa90}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #bb913d;outline-offset:3px}a{color:var(--green);text-underline-offset:4px}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#354d2c}button.quiet,.text-button{border-color:transparent;background:transparent}.text-button{padding:0;color:var(--green);text-decoration:underline;text-underline-offset:4px}.page{max-width:1320px;margin:auto;padding:0 44px}.topbar{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);min-height:79px}.home{display:flex;gap:10px;align-items:center;font:24px Georgia,serif;text-decoration:none}.breadcrumb{color:var(--muted);font-size:13px}.breadcrumb span{margin-left:16px}.nav-end{margin-left:auto;display:flex;gap:12px}.intro{display:flex;justify-content:space-between;align-items:center;margin:43px 0 30px;gap:20px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:.16em;color:var(--muted);margin:0 0 12px}h1{font:normal clamp(38px,4.5vw,60px)/1.15 Georgia,serif;letter-spacing:-.04em;margin:0}h1 em{font-weight:normal;color:var(--green)}.title-flower{display:inline-block;color:var(--gold);font:36px Georgia,serif;vertical-align:top;margin:0 0 0 14px}.subtitle{color:var(--muted);margin:13px 0 0;font-size:14px}.help-button{white-space:nowrap;background:transparent}.toolbar{display:flex;align-items:center;gap:18px;margin-bottom:20px}.history-buttons{display:flex;gap:7px}.time-group{display:flex;align-items:center;gap:13px;margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}#progress{color:var(--green)}.dot{color:#acb7a4;margin:0 7px}.game-layout{display:grid;grid-template-columns:minmax(0,1.17fr) minmax(0,1fr);gap:24px;align-items:start}.board-panel,.clues-panel{border:1px solid var(--line);background:var(--paper);border-radius:14px;padding:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.panel-heading h2{font-size:13px;font-weight:600;margin:0}.panel-heading>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}#seed-label{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.board{display:grid;grid-template-columns:24px repeat(6,minmax(0,1fr));gap:6px;align-items:stretch}.col-label,.row-label{color:var(--muted);font-size:11px;text-align:center;align-self:center}.col-label{padding-bottom:4px}.row-label{font-weight:600}.cell{background:#f1f1eb;border:1px solid #d9ded1;border-radius:5px;aspect-ratio:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:2px;padding:4px;position:relative;align-items:center;justify-items:center}.candidate{width:100%;height:100%;border:0;padding:0;border-radius:2px;background:transparent;display:grid;place-items:center;min-width:0;min-height:0}.candidate:hover:not(:disabled){background:#c7d7b9;box-shadow:0 0 0 2px #8fa77c;z-index:1}.candidate img{width:100%;max-width:23px;height:auto;display:block;pointer-events:none;border-radius:1px;image-rendering:auto}.candidate.absent{visibility:hidden}.cell.defined{padding:5px;display:flex;justify-content:center}.cell.defined img{width:100%;max-width:58px;aspect-ratio:1;border-radius:2px}.cell.given::after{content:"";position:absolute;right:3px;top:3px;width:4px;height:4px;border-radius:50%;background:var(--green)}.cell.empty{border-color:var(--danger);background:#f8e8e3}.cell.empty::before{content:"×";position:absolute;inset:0;display:grid;place-items:center;color:var(--danger);font-size:30px}.cell.changed{outline:2px solid var(--gold);outline-offset:-1px}.cell.error{outline:2px solid var(--danger);outline-offset:-1px}.board-actions{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:22px}.mode-switch{display:flex;border:1px solid var(--line);padding:3px;border-radius:8px;margin-right:auto}.mode-switch button{padding:5px 9px;border:0;background:transparent;font-size:12px}.mode-switch button[aria-pressed=true]{background:var(--green);color:white}.board-actions>.quiet{padding:7px;font-size:12px}.instruction{color:var(--muted);font-size:11px;line-height:1.7;margin:15px 0 0}.status{min-height:23px;font-size:12px;margin:12px 0 6px;color:var(--green)}.status.bad{color:var(--danger)}.board-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:13px;gap:12px;font-size:10px;color:var(--muted)}.board-bottom button{font-size:10px}.clue-intro{color:var(--muted);font-size:12px;margin:-7px 0 16px;max-width:40ch}.clue-filters{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:16px}.clue-filters button{font-size:11px;border:0;padding:5px 9px;background:transparent}.clue-filters button[aria-pressed=true]{color:var(--green);background:var(--soft)}.clue-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.clue{position:relative;min-height:78px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:#fafbf7;border:1px solid #e7ebdf;padding:10px;border-radius:7px;text-align:left}.clue:hover:not(:disabled){border-color:#9baa90}.clue.hidden-clue{opacity:.5}.clue.highlighted{border-color:var(--gold);background:#fff8e7;box-shadow:0 0 0 1px var(--gold)}.clue-images{display:flex;align-items:center;gap:5px}.clue img,.example-images img{width:29px;height:29px;border-radius:2px}.clue-symbol{color:var(--green);font:16px Georgia,serif;min-width:13px;text-align:center}.clue small{font-size:9px;color:var(--muted);margin-top:6px;line-height:1.35}.clue .clue-no{position:absolute;right:5px;top:3px;font-size:8px;color:#9eaa94}.clue-footnote{font-size:10px;color:var(--muted);margin:17px 0 0}.empty-clues{color:var(--muted);font-size:12px;grid-column:1/-1;padding:20px 0}.below-game{display:flex;justify-content:center;gap:14px;align-items:center;color:var(--muted);margin:30px 0}.sprig{font:30px Georgia,serif;color:#849b70}.below-game p{font:italic 14px/1.6 Georgia,serif}footer{padding:20px 0 28px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}footer a{color:var(--muted)}#loading{padding:100px 20px;text-align:center;color:var(--muted)}[hidden]{display:none!important}.game-paused .board-content,.game-paused .clues-content{visibility:hidden}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;max-width:590px;width:calc(100% - 32px);color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #26371e33;max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#25301c77;backdrop-filter:blur(5px)}dialog h2{font:normal 32px/1.2 Georgia,serif;margin:0 0 20px}dialog p{color:var(--muted);font-size:13px}dialog .primary{margin-top:12px}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.dialog-top .eyebrow{margin:0}.dialog-top button{font-size:11px}.help-examples{display:grid;gap:12px;margin:24px 0}.help-example{display:flex;gap:18px;align-items:center}.example-images{display:flex;align-items:center;gap:4px;min-width:125px}.example-images span{font-size:15px;color:var(--green)}.help-example p{font-size:11px;margin:0}form label{display:block;margin:20px 0 6px;font-size:12px}form input{border:1px solid var(--line);background:#fafbf7;padding:12px;width:100%;border-radius:8px;color:var(--ink)}.input-note{font-size:11px!important}.dialog-actions{display:flex;justify-content:center;gap:10px;align-items:center;margin-top:20px}.dialog-actions .primary{margin:0}.center-dialog{text-align:center;max-width:450px;padding:36px}.pause-flower{color:var(--gold);font-size:65px;display:block;line-height:1.4;margin-bottom:15px}.center-dialog h2{font-size:30px}
@media(min-width:1200px){.board{gap:8px}.cell{padding:7px;gap:4px}.candidate img{max-width:26px}}
@media(max-width:1000px){.page{padding:0 24px}.game-layout{gap:16px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.board-panel,.clues-panel{padding:16px}.board{gap:4px;grid-template-columns:16px repeat(6,minmax(0,1fr))}.cell{padding:3px;gap:1px}.clue{padding:8px}.clue img{width:24px;height:24px}.clue-images{gap:3px}.clue-symbol{min-width:9px;font-size:13px}.board-actions>.quiet{padding:5px}.mode-switch button{padding:5px 7px}}
@media(max-width:760px){.page{padding:0 18px}.topbar{min-height:64px;gap:12px}.home{font-size:21px}.nav-end{gap:0}.nav-end button{font-size:11px;padding:7px}.breadcrumb span{margin-left:7px}.intro{margin:29px 0 24px;align-items:flex-start}.eyebrow{font-size:8px;letter-spacing:.12em}h1{font-size:42px}.title-flower{font-size:26px;margin-left:8px}.subtitle{font-size:12px;max-width:35ch}.help-button{font-size:11px;padding:7px;margin-top:27px}.toolbar{gap:8px;flex-wrap:wrap}.toolbar>button{font-size:12px;padding:8px 11px}.history-buttons{gap:3px}.history-buttons button{font-size:11px;padding:8px}.time-group{font-size:11px;gap:5px}.time-group button{font-size:11px;padding:6px}.game-layout{grid-template-columns:1fr;gap:18px}.board-panel,.clues-panel{padding:18px}.board{grid-template-columns:20px repeat(6,minmax(0,1fr));gap:5px}.cell{padding:4px;gap:2px}.candidate img{max-width:26px}.board-actions{gap:5px}.board-actions>.quiet{padding:7px;font-size:12px}.mode-switch button{padding:6px 10px}.clue-list{grid-template-columns:repeat(3,minmax(0,1fr))}.clue{padding:9px;min-height:81px}.clue img{width:26px;height:26px}.clue-symbol{font-size:14px}.below-game{margin:20px 0}.below-game p{font-size:12px}footer{font-size:9px}dialog{padding:24px}.help-example{gap:10px}}
@media(max-width:480px){.time-group{margin-left:0;width:100%;justify-content:flex-end;margin-top:-1px}.toolbar{margin-bottom:14px}.time-group #progress{margin-right:auto}.intro{gap:8px}h1{font-size:35px}.title-flower{font-size:23px}.eyebrow{max-width:30ch}.help-button{font-size:10px;padding:6px;margin-top:25px}.board-panel,.clues-panel{padding:13px}.board{gap:3px;grid-template-columns:14px repeat(6,minmax(0,1fr))}.cell{padding:2px;gap:1px}.cell.defined{padding:3px}.board-actions{margin-top:16px}.mode-switch button{font-size:11px;padding:5px 7px}.board-actions>.quiet{font-size:11px;padding:5px}.clue-list{grid-template-columns:repeat(2,minmax(0,1fr))}.clue img{width:29px;height:29px}.clue-images{gap:5px}.clue-symbol{min-width:13px}.instruction{font-size:10px}.below-game{gap:9px}.below-game p{font-size:11px}.dialog-actions{flex-wrap:wrap}.help-example{align-items:flex-start}.example-images{min-width:116px}.help-example p{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Fixed viewport. Every full card uses the SAME unit; candidates use unit/3. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
.page{height:100dvh;max-width:none;padding:0 24px;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:44px;min-height:44px;flex-shrink:0}.home{font-size:20px}.nav-end button{font-size:11px;padding:5px 9px}
.intro{flex-shrink:0;margin:12px 0 14px;gap:12px}.eyebrow{font-size:8px;margin-bottom:5px}h1{font-size:38px}.title-flower{font-size:25px}.subtitle{font-size:11px;margin-top:5px}.help-button{font-size:11px;padding:6px 10px}
main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.toolbar{flex-shrink:0;margin:0 0 10px;gap:10px}.toolbar button{padding:6px 10px;font-size:12px}.time-group{font-size:12px;gap:8px;width:auto;margin:0 0 0 auto}
.game-layout{flex:1;min-height:0;gap:14px;align-items:stretch;overflow:hidden}.board-panel,.clues-panel{padding:10px;border-radius:9px;min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden}.panel-heading{min-height:18px;margin-bottom:7px;flex-shrink:0}.panel-heading h2{font-size:11px}.panel-heading>span{font-size:9px}.board-content{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
.board{flex:none;grid-template-columns:14px repeat(6,var(--tile));grid-template-rows:14px repeat(6,var(--tile));gap:4px;width:max-content;height:max-content;align-items:stretch}.col-label,.row-label{font-size:9px;padding:0}.cell{width:var(--tile);height:var(--tile);aspect-ratio:1;grid-template-columns:repeat(3,calc(var(--tile)/3));grid-template-rows:repeat(2,calc(var(--tile)/3));padding:0;gap:0;border:0;border-radius:2px;align-content:center;overflow:hidden}.candidate{width:calc(var(--tile)/3);height:calc(var(--tile)/3);border-radius:0}.candidate img{width:100%;height:100%;max-width:none;border-radius:0}.cell.defined{padding:0}.cell.defined img{width:var(--tile);height:var(--tile);max-width:none;border-radius:0}.cell.given::after{right:2px;top:2px;width:3px;height:3px}.board-actions{flex-shrink:0;margin:6px 0 0;gap:3px;flex-wrap:nowrap}.mode-switch{padding:2px;margin-right:auto}.mode-switch button{font-size:10px;padding:4px 6px}.board-actions>.quiet{font-size:10px;padding:5px}.instruction{display:none}.status{flex-shrink:0;font-size:10px;line-height:13px;height:26px;min-height:26px;overflow:hidden;margin:3px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.board-bottom{flex-shrink:0;font-size:8px;padding-top:5px;min-height:18px}.board-bottom button{font-size:8px}.clue-intro,.clue-footnote{display:none}.clue-filters{margin:0 0 8px;padding:0 0 6px;gap:5px;flex-shrink:0}.clue-filters button{font-size:10px;padding:3px 7px}.clues-content{flex:1;min-height:0;overflow:hidden}.clue-list{grid-template-columns:repeat(var(--clue-columns),calc(3 * var(--tile)));grid-auto-rows:calc(var(--tile) + 13px);gap:7px 10px;justify-content:space-between;align-content:start}.clue{width:calc(3 * var(--tile));height:calc(var(--tile) + 13px);min-height:0;max-height:none;padding:0;border:0;border-radius:1px;background:transparent;justify-content:flex-start;overflow:visible}.clue-images{display:grid;grid-template-columns:repeat(3,var(--tile));gap:0;align-items:center}.clue img{width:var(--tile);height:var(--tile);border-radius:0}.clue-symbol{display:grid;place-items:center;width:var(--tile);height:var(--tile);font-size:calc(var(--tile)*.58);line-height:1}.clue small{font-size:8px;line-height:11px;height:11px;margin:2px 0 0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.clue .clue-no{right:1px;top:1px;background:var(--paper);font-size:7px;line-height:9px;padding:0 1px}.clue.highlighted{outline:2px solid var(--gold);outline-offset:2px;box-shadow:none}.clue-pagination{height:22px;min-height:22px;display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:9px;flex-shrink:0;margin-top:5px}.clue-pagination button{padding:0 8px;font-size:13px;line-height:20px}.empty-clues{padding:8px;font-size:11px}.below-game{display:none}footer{flex-shrink:0;margin-top:7px;padding:5px 0;min-height:25px;font-size:8px;gap:8px}.page footer span{white-space:nowrap}#loading{flex:1;padding:30px 0}.portrait-layout{gap:8px}.portrait-layout .board-panel,.portrait-layout .clues-panel{padding:8px 10px}.portrait-layout .board-bottom{display:none}.portrait-layout .panel-heading{margin-bottom:2px}.portrait-layout .clue-filters{position:absolute;right:8px;top:6px;border:0;padding:0;margin:0}.portrait-layout .clues-panel{position:relative;padding-top:7px}.portrait-layout .clue-filters button{font-size:8px;padding:3px 5px}.portrait-layout .clues-content{padding-top:3px}.portrait-layout .clue-list{justify-content:space-around;row-gap:7px}.portrait-layout .clue-pagination{height:18px;min-height:18px;margin-top:3px}.portrait-layout .clue-pagination button{line-height:16px}.portrait-layout .clue small{font-size:7px}
dialog{max-height:calc(100dvh - 24px);overflow:hidden;padding:22px}dialog h2{font-size:27px;margin-bottom:14px}dialog p{font-size:12px;line-height:1.6}.dialog-top{margin-bottom:14px}.help-pagination{display:flex;align-items:center;gap:9px;margin-top:16px;font-size:11px}.help-pagination .primary{margin:0 0 0 auto}.help-examples{margin:12px 0;gap:10px}.help-example p{font-size:11px}.help-pagination button{font-size:11px;padding:6px 10px}
@media(max-width:760px){.page{padding:0 12px}.topbar{height:38px;min-height:38px}.home{font-size:18px}.breadcrumb{font-size:10px}.nav-end button{font-size:10px;padding:5px}.intro{margin:8px 0 10px;align-items:center}.intro .eyebrow{display:none}h1{font-size:30px}.title-flower{font-size:21px;margin-left:7px}.subtitle{font-size:10px;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.intro>div{min-width:0}.help-button{font-size:10px;padding:5px 7px;margin:0}.toolbar{margin-bottom:7px;gap:6px;flex-wrap:nowrap}.toolbar>button{font-size:11px;padding:5px 8px}.history-buttons{gap:3px}.history-buttons button{font-size:0;padding:3px 10px}.history-buttons button:before{font-size:17px;content:'↶'}.history-buttons #redo:before{content:'↷'}.time-group{font-size:10px;gap:4px;width:auto;margin:0 0 0 auto}.time-group .dot{display:none}.time-group button{font-size:10px;padding:4px}.time-group #progress{margin:0 3px 0 0}.page footer>span:first-child{display:none}.page footer{justify-content:center;font-size:8px;min-height:22px;margin-top:4px;padding:3px 0}.board-actions>.quiet{font-size:9px;padding:4px}.mode-switch button{font-size:9px;padding:3px 5px}.status{font-size:9px;line-height:11px;height:22px;min-height:22px;margin:2px 0}.panel-heading h2{font-size:10px}}
@media(max-height:600px){.topbar{height:32px;min-height:32px}.intro{margin:5px 0 7px}.intro .eyebrow,.subtitle{display:none}h1{font-size:27px}.toolbar{margin-bottom:6px}.toolbar button{padding:4px 8px;font-size:10px}footer{min-height:18px;margin-top:3px;padding:2px 0}.board-bottom{display:none}.board-actions{margin-top:4px}.status{height:20px;min-height:20px;font-size:8px;line-height:10px}.clue-filters{margin-bottom:5px;padding-bottom:3px}.clue-filters button{font-size:8px;padding:2px 5px}dialog{padding:16px}dialog h2{font-size:23px;margin-bottom:8px}dialog p{font-size:10px}.dialog-top{margin-bottom:8px}.help-examples{gap:6px}.help-example p{font-size:10px}.help-pagination{margin-top:8px}.pause-flower{font-size:35px;margin-bottom:5px}}
.portrait-layout #clue-count{display:none}
@media(max-height:600px){.clue small{display:none}.clue{height:var(--tile)}.clue-list{grid-auto-rows:var(--tile);row-gap:7px}}
/* Keep the chrome compact so the viewport belongs to the puzzle. */
.intro{margin:8px 0 10px}.intro .eyebrow,.intro .subtitle{display:none}.intro h1{font-size:30px}.intro .title-flower{font-size:22px}
.intro h1{white-space:nowrap}
@media(max-width:760px){.intro h1{font-size:26px}.intro .title-flower{font-size:19px;margin-left:5px}}
@media(max-width:360px){.intro h1{font-size:23px}.intro .title-flower{font-size:17px;margin-left:4px}.help-button{font-size:9px;padding:5px}}
/* Keep the last hint's removed symbols visible, red and crossed out. */
.candidate.removed-by-hint{position:relative;visibility:visible;background:#ffd0d5;box-shadow:inset 0 0 0 1px #d51f36;pointer-events:none}
.candidate.removed-by-hint img{opacity:.55;mix-blend-mode:multiply}
.candidate.removed-by-hint::after{content:"";position:absolute;left:0;top:calc(50% - 1px);width:100%;height:2px;background:#d51f36;transform:rotate(-45deg);pointer-events:none}
.cell.hint-resolved .candidate:disabled:not(.absent){opacity:1}
#lose-dialog .dialog-actions{flex-wrap:wrap}
/* Keep clue columns close together instead of spreading unused width into gaps. */
.clue-list{justify-content:start}
.portrait-layout .clue-list{justify-content:center}
/* Distinguish the confirmed survivor from the hint's red eliminated options. */
.cell.hint-resolved .hint-confirmed{background:#cfe6be;box-shadow:inset 0 0 0 2px #48633c;position:relative}
.cell.hint-resolved .hint-confirmed::after{content:'✓';position:absolute;right:0;bottom:-1px;font-size:clamp(6px,calc(var(--tile)/8),12px);line-height:1;color:#245019;background:#eaf4e3;border-radius:2px}
/* Center the tightly packed board and clue panels as a single layout. */
.game-layout{justify-content:center}
/* Use the full page width. Clue pages must never shrink the board. */
.game-layout{justify-content:stretch}
/* Original clue presentation: horizontal relations to the right, same-column
   pairs stacked underneath, and reversible order marked over triples. */
.board-panel,.clues-panel{grid-row:1}
.vertical-clues-panel{grid-column:1/-1;grid-row:2;min-height:0;padding:5px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper);display:flex;align-items:center;gap:8px;overflow:hidden;height:calc(2 * var(--tile) + 12px)}
.vertical-clue-list{display:grid;grid-auto-flow:column;grid-auto-columns:var(--tile);gap:4px;height:calc(2 * var(--tile));min-width:0;overflow:hidden}
.vertical-controls{display:flex;gap:3px;margin-left:auto;flex-shrink:0}.vertical-controls button{padding:2px 5px;font-size:11px}
.clue-list{grid-auto-rows:var(--tile);column-gap:4px;row-gap:4px}
.clue,.clue-slot{width:calc(3 * var(--tile));height:var(--tile);min-height:0;display:block}
.clue-slot{background:var(--soft);opacity:.6}
.clue.vertical-clue,.vertical-slot{width:var(--tile);height:calc(2 * var(--tile))}
.clue-images{position:relative;display:block;width:calc(3 * var(--tile));height:var(--tile)}
.clue-images>img{display:inline-block;vertical-align:top}.clue-symbol{display:inline-grid;vertical-align:top}
.same-column-images{display:flex;flex-direction:column;width:var(--tile);height:calc(2 * var(--tile))}
.vertical-clue .clue-images{width:var(--tile);height:calc(2 * var(--tile))}
.between-images{position:relative;display:flex;width:calc(3 * var(--tile));height:var(--tile)}
.between-direction{position:absolute;top:0;left:var(--tile);width:var(--tile);text-align:center;font:bold max(8px,calc(var(--tile) / 5))/1 Georgia,serif;color:#263d21;background:#fffefabb;pointer-events:none}
.example-images .same-column-images{width:29px;height:58px}.example-images .same-column-images img{flex:none}
.example-images .between-images{width:87px;height:29px}.example-images .between-direction{left:29px;width:29px;font-size:10px}
.portrait-layout .board-panel{grid-row:1}.portrait-layout .vertical-clues-panel{grid-row:2}.portrait-layout .clues-panel{grid-row:3}
.clue .between-direction{width:calc(var(--tile) * 70 / 48);height:calc(var(--tile) * 15 / 48);left:calc(var(--tile) * 37 / 48);top:0;background:none;border-radius:0}
.example-images .between-direction{width:42.3px;height:9.1px;left:22.35px;background:none}
.game-paused .vertical-clue-list{visibility:hidden}
/* Let the playing field use the full game height. The stacked clue pairs sit
   below the horizontal clues on desktop, rather than underneath the field. */
.game-layout:not(.portrait-layout) .board-panel{grid-column:1;grid-row:1 / span 2}
.game-layout:not(.portrait-layout) .clues-panel{grid-column:2;grid-row:1}
.game-layout:not(.portrait-layout) .vertical-clues-panel{grid-column:2;grid-row:2}
/* Give all six-by-six grid tracks to the cards; coordinates remain in ARIA. */
.board{grid-template-columns:repeat(6,var(--tile));grid-template-rows:repeat(6,var(--tile))}
/* All clues stay on screen; the board and clue area have independent scales.
   Within each area every full card remains the same size. */
.clues-panel,.vertical-clues-panel{--tile:var(--clue-tile)}
.clue-pagination,.vertical-controls{display:none!important}
.clue-list,.portrait-layout .clue-list{justify-content:start;gap:4px}

/* Records board */
#records-open{font-size:12px}
#record-form{max-width:300px;margin:14px auto 0;text-align:left}
#record-status{min-height:18px;font-size:11px;color:var(--green);margin:6px 0 0}
.record-table{width:100%;border-collapse:collapse;margin-top:14px;font-variant-numeric:tabular-nums}
.record-table th,.record-table td{border-bottom:1px solid var(--line);padding:7px 8px;text-align:left;font-size:12px;font-weight:inherit}
.record-table thead th{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.05em}
.record-table tbody th{text-align:right;color:var(--muted);width:22px;padding-right:0}
.record-table .record-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.record-table .record-seed{color:var(--muted)}
#records-table{overflow-x:auto}
.records-empty{color:var(--muted);font-size:12px;margin:24px 0;text-align:center}
@media(max-width:760px){#records-open{font-size:11px;padding:7px}.record-table th,.record-table td{padding:5px 6px}.record-table .record-date-col{display:none}.record-table tbody .record-date{display:none}}
@media(max-height:600px){#records-table{max-height:200px;overflow-y:auto;overflow-x:auto}}
