:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--paper:#f4eee2;--page:#fffcf5;--ink:#2b211b;--muted:#6e5d4e;--line:#ddd0b8;--hover:#ebe2d0;--accent:#8a3b1f;--accent-ink:#fffaf2;--tip:#f7ecd5;--danger:#a3261b;--serif:Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;color:var(--ink);background:var(--paper);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--paper:#1b1714;--page:#25201b;--ink:#eee4d3;--muted:#b3a38f;--line:#463b32;--hover:#322a24;--accent:#e0885f;--accent-ink:#1b1714;--tip:#2e2620;--danger:#f08a7e}}*{box-sizing:border-box}body{margin:0}a{color:var(--accent)}.app{grid-template-columns:19rem minmax(0,1fr);align-items:start;gap:2.5rem;max-width:76rem;margin:0 auto;padding:2rem 1.5rem 3rem;display:grid}.panel{flex-direction:column;gap:1.5rem;display:flex;position:sticky;top:2rem}@media (width<=52rem){.app{grid-template-columns:minmax(0,1fr);gap:1.5rem;padding:1.25rem 1rem 2.5rem}.panel{position:static}}.brand h1{font-family:var(--serif);margin:0;font-size:1.9rem;line-height:1.15}.brand p{color:var(--muted);margin:.25rem 0 0}.controls{flex-direction:column;gap:1.1rem;display:flex}fieldset{border:0;min-width:0;margin:0;padding:0}legend.label{margin-bottom:.35rem}fieldset>.hint{margin-top:.35rem;display:block}.field{flex-direction:column;gap:.35rem;display:flex}.label{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:0;font-size:.75rem;font-weight:650}.hint{color:var(--muted);font-size:.85rem;line-height:1.35}input,select,textarea,button{font:inherit;color:var(--ink);background:var(--page);border:1px solid var(--line);border-radius:6px}input,select,textarea{padding:.4rem .55rem}textarea{resize:vertical}.row{gap:.5rem;display:flex}.row>:first-child{flex:1;min-width:0}.row .pattern{width:6.5rem}button,a.button{cursor:pointer;padding:.45rem .95rem}a.button{font:inherit;color:var(--ink);background:var(--page);border:1px solid var(--line);border-radius:6px;text-decoration:none}button:hover,a.button:hover{background:var(--hover)}button:disabled,a.button[aria-disabled=true]{opacity:.5;cursor:default;pointer-events:none}button.link{color:var(--accent);text-underline-offset:.15em;background:0 0;border:0;padding:0;font-size:.9rem;text-decoration:underline}button.link:hover{background:0 0;text-decoration-thickness:2px}button.quiet{background:0 0;border-color:#0000}button.quiet:hover{background:var(--hover)}:is(button,input,select,textarea,a,summary):focus-visible,.segmented input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.segmented{border:1px solid var(--line);border-radius:6px;display:flex;overflow:hidden}.segmented label{cursor:pointer;flex:1}.segmented label+label{border-left:1px solid var(--line)}.segmented input{opacity:0;pointer-events:none;position:absolute}.segmented span{text-align:center;white-space:nowrap;background:var(--page);padding:.4rem .3rem;font-size:.9rem;display:block}.segmented label:hover span{background:var(--hover)}.segmented input:checked+span{color:var(--accent-ink);background:var(--accent)}.checks{flex-direction:column;gap:.4rem;display:flex}.check{cursor:pointer;align-items:center;gap:.5rem;font-size:.95rem;display:flex}.check input{accent-color:var(--accent);margin:0}.check-row .hint{margin:.15rem 0 0 1.55rem;display:block}.more{border-top:1px solid var(--line);padding-top:.75rem}.more>summary{cursor:pointer;color:var(--accent);font-size:.95rem}.more-options{flex-direction:column;gap:1.1rem;margin-top:1rem;display:flex}.reroll-row{align-items:center;gap:.75rem;display:flex}.reroll{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}.reroll:hover{background:var(--accent);filter:brightness(1.1)}.seed{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.85rem}.about{border-top:1px solid var(--line);color:var(--muted);padding-top:1rem;font-size:.85rem}.about p{margin:0 0 .5rem}.below-text{display:none}@media (width<=52rem){.beside-text{display:none}.below-text{display:block}}.output{max-width:46rem}.output-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;margin-bottom:.75rem;display:flex}.count{color:var(--muted);margin:0;font-size:.9rem}.actions{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.status{color:var(--muted);font-size:.9rem}.actions>.status:empty{margin-inline-end:-.5rem}.page{background:var(--page);border:1px solid var(--line);border-radius:10px;max-width:46rem;padding:2rem 2.25rem;box-shadow:0 1px 2px #0000000a,0 8px 24px #3c28140f}.message{color:var(--muted);margin:0}.message button{margin-left:.5rem}.page[aria-busy=true]{opacity:.6}.source{max-width:46rem;color:var(--muted);margin:.75rem 0 0;font-size:.85rem}.spare{color:var(--muted)}.tile-word.spare .tile{box-shadow:none;border-style:dashed}.label-row{justify-content:space-between;align-items:baseline;gap:.5rem;display:flex}.label-row button.link{font-size:.8rem}.masked{-webkit-text-security:disc;text-security:disc}.arrangements .use{letter-spacing:0;color:var(--accent);opacity:0;margin-left:auto;padding:.05rem .45rem;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:.72rem;line-height:1.5}.arrangements li:hover .use,.arrangements .use:focus-visible{opacity:1}@media (hover:none){.arrangements .use{opacity:.8}}.puzzle{background:var(--page);border:1px solid var(--accent);border-radius:10px;flex-direction:column;gap:.75rem;max-width:46rem;margin-bottom:1.5rem;padding:1rem 1.25rem 1.25rem;display:flex}.puzzle-bar{justify-content:space-between;align-items:center;gap:1rem;display:flex}.puzzle-bar h2{font-family:var(--serif);margin:0;font-size:1.3rem}.puzzle-facts{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.5rem 1rem;margin:0;display:grid}.puzzle-facts dt{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-size:.75rem;font-weight:650}.puzzle-facts dd{font-family:var(--serif);letter-spacing:.08em;margin:0;font-size:1.15rem}.puzzle-facts .clue .tiles{font-size:1.25rem}.readout,.puzzle .problem{margin:0;font-size:.95rem}.puzzle .problem{color:var(--danger)}.others h3,.others .hint,.others .message{margin:0 0 .35rem}.others[aria-busy=true]{opacity:.6}.other-answers{flex-wrap:wrap;gap:.35rem 1.25rem;margin:0;padding:0;list-style:none;display:flex}.other-answers .check{font-family:var(--serif);letter-spacing:.05em}.badge{letter-spacing:0;color:var(--accent-ink);background:var(--accent);border-radius:999px;padding:0 .4rem;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:.7rem}.puzzle-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.75rem 1rem;display:grid}@media (width<=40rem){.puzzle-fields{grid-template-columns:minmax(0,1fr)}}.hints>summary{cursor:pointer;color:var(--accent);font-size:.95rem}.hints ol{margin:.5rem 0 0;padding-left:1.75rem}.hints code{font-family:var(--serif);letter-spacing:.05em;white-space:pre}.puzzle-actions{flex-wrap:wrap;gap:.5rem;display:flex}.in-stele h3{margin:0 0 .35rem}.stele-choices{flex-wrap:wrap;align-items:flex-end;gap:.5rem .75rem;margin-bottom:.5rem;display:flex}.in-stele .hint,.in-stele .notice{margin:0}.pieces h3{margin:0 0 .35rem}.pieces .field{align-items:flex-start}.piece-list{flex-direction:column;gap:.5rem;margin:.75rem 0 .5rem;padding-left:1.75rem;display:flex}.piece-list li{padding-left:.25rem}.piece-list li::marker{color:var(--muted);font-size:.85rem}.piece-list li>.tiles{vertical-align:middle}.piece-actions{vertical-align:middle;flex-wrap:wrap;gap:.35rem;margin-left:.75rem;display:inline-flex}.piece-actions button,.piece-actions a.button{padding:.25rem .6rem;font-size:.85rem}.pieces .hint{margin:0}.tile.blank{background:var(--page);box-shadow:none;border-style:dashed}.show-players{width:min(70rem,100vw - 2rem);max-width:none;height:calc(100vh - 2rem);max-height:none;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:12px;margin:auto;padding:0 1.5rem 2rem;overflow:auto}.show-players::backdrop{background:#140e0a99}.show-bar{z-index:1;background:var(--paper);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1.5rem;padding:1rem 0 .75rem;display:flex;position:sticky;top:0}.show-bar h2{font-family:var(--serif);margin:0 auto 0 0;font-size:1.4rem}.show-size{gap:.3rem;display:flex}.show-body{font-family:var(--serif);text-align:center;flex-direction:column;align-items:center;gap:1.5rem;display:flex}.show-body .riddle{max-width:30em;margin:0;font-size:.6em;font-style:italic}.show-body .tiles{justify-content:center;gap:.3em .9em}.show-body .tile-word{gap:.2em}.show-hint{font-size:.7em}.show-answer{font-size:.8em}.show-answer p{margin:0}.show-answer .answer{letter-spacing:.1em;text-transform:uppercase;font-weight:650}@media (width<=52rem){.show-players{border-radius:0;width:100vw;height:100vh;padding:0 1rem 1.5rem}}.puzzle-actions .status{color:var(--muted);font-size:.9rem}.player{flex-direction:column;gap:1.5rem;max-width:46rem;margin:0 auto;padding:2rem 1.25rem 3rem;display:flex}.player-brand h1{font-family:var(--serif);margin:0;font-size:1.9rem}.solve{flex-direction:column;gap:1.25rem;display:flex}.solve .riddle{font-family:var(--serif);margin:0;font-size:1.3rem;font-style:italic}.player-clue{font-family:var(--serif);letter-spacing:.1em;flex-wrap:wrap;align-items:baseline;gap:.25rem .75rem;font-size:1.2rem;display:flex}.player-tiles{touch-action:none;flex-wrap:wrap;gap:.4rem;display:flex}.player-tiles .tile{min-width:2.8rem;height:2.8rem;font-family:var(--serif);cursor:grab;-webkit-user-select:none;user-select:none;padding:0 .3rem;font-size:1.5rem}.player-tiles .tile.picked{outline:3px solid var(--accent);outline-offset:1px;transform:translateY(-3px)}.player-tiles.solved .tile{color:var(--accent-ink);background:var(--accent);border-color:var(--accent);opacity:1;cursor:default}.solved-line{font-family:var(--serif);color:var(--accent);margin:0;font-size:1.6rem}.player-actions{flex-wrap:wrap;gap:.5rem;display:flex}.player-hint .tiles{font-family:var(--serif);font-size:1.2rem}.print-sheet{display:none}@media print{:root,body{background:#fff}#root{display:none!important}.print-sheet{color:#000;background:#fff;display:block}@page{margin:12mm}}.print-note{color:#555;margin:0 0 6mm;font:10pt system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.print-tiles{flex-wrap:wrap;display:flex}.print-tile{width:25mm;height:25mm;font-family:var(--serif);break-inside:avoid;border:.3mm dashed #777;place-items:center;margin:0 -.3mm -.3mm 0;font-size:16mm;display:grid}.print-card{width:150mm;font-family:var(--serif);text-align:center;border:.6mm solid #000;border-radius:3mm;margin:0 auto;padding:10mm 12mm}.print-riddle{margin:0 0 6mm;font-size:14pt;font-style:italic}.print-clue{letter-spacing:.2em;margin:0;font-size:26pt}.hand{flex-direction:column;gap:1rem;display:flex}.hand .field input{font-family:var(--serif);font-size:1.15rem}.bank{flex-wrap:wrap;align-items:center;gap:.5rem .75rem;min-height:2.2rem;display:flex}.bank p{color:var(--muted);margin:0}.bank .tiles{font-family:var(--serif);font-size:1.05rem}.bank .problem{color:var(--danger)}.bank .done{color:var(--accent);font-weight:650}.preview .page{font-family:var(--serif);letter-spacing:.1em;font-size:1.3rem}.suggestions{flex-direction:column;gap:1rem;display:flex}.suggestions[aria-busy=true]{opacity:.6}.suggestion-group h2{margin:0 0 .4rem}.suggestion-list{flex-wrap:wrap;gap:.4rem;display:flex}.suggestion{font-family:var(--serif);letter-spacing:.05em;padding:.25rem .6rem;font-size:.95rem}.notice{background:var(--tip);border-radius:8px;max-width:46rem;margin-bottom:.75rem;padding:.75rem 1rem;font-size:.95rem}.notice p{margin:0}.notice p+p{margin-top:.35rem}.arrangements{counter-reset:arrangement;columns:3 12rem;font-family:var(--serif);letter-spacing:.1em;column-gap:2rem;margin:0;padding:0;font-size:1.15rem;line-height:1.9;list-style:none}.arrangements li{counter-increment:arrangement;overflow-wrap:anywhere;break-inside:avoid;align-items:baseline;gap:.75rem;display:flex}.arrangements li:before{content:counter(arrangement);text-align:right;font-variant-numeric:tabular-nums;letter-spacing:0;min-width:1.4rem;color:var(--muted);flex:none;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:.75rem}.spaced{white-space:pre-wrap}.tiles{flex-wrap:wrap;gap:.25rem .9rem;padding:.2rem 0;display:inline-flex}.tile-word{flex-wrap:wrap;gap:.25rem;display:inline-flex}.tile{letter-spacing:0;background:var(--paper);border:1px solid var(--line);min-width:1.7em;height:1.7em;box-shadow:0 1px 0 var(--line);border-radius:4px;place-items:center;padding:0 .15em;line-height:1;display:inline-grid}@media (width<=52rem){.page{padding:1.25rem}}
