:root{--key: var(--paper-2);--key-ink: var(--ink);--key-out: #5c5675;--key-out-ink: #cfcbe0;--moss-edge: #1f5a3d;--roof: #b5532f;--roof-edge: #833819;--wall: #d9b47a;--wall-edge: #a37a42}@media(prefers-color-scheme:dark){:root{--key: #36304f;--key-ink: #f4f2fb;--key-out: #0e0b18;--key-out-ink: #57527a;--moss-edge: #2f7f58;--roof: #c4643d;--roof-edge: #7d3416;--wall: #b8925b;--wall-edge: #7c5a2c}}.app.headliner{display:flex;flex-direction:column;min-height:calc(100dvh - 70px);padding-bottom:calc(12px + env(safe-area-inset-bottom))}.category{display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 10px;border-radius:999px;background:var(--ink);color:var(--paper);font-weight:700;font-size:15px}.category-emoji{font-size:16px;line-height:1}.shed-pic{margin:16px auto 0;display:grid;justify-items:center}.roof{display:grid;justify-items:center;gap:3px}.roof-row{display:flex;gap:3px}.shingle{width:30px;height:16px;border-radius:4px;background:var(--roof);box-shadow:0 2px 0 var(--roof-edge)}.shingle.gone{background:none;box-shadow:inset 0 0 0 1.5px var(--line)}.shingle.falling{animation:fall .7s ease-in forwards}@keyframes fall{0%{transform:none;opacity:1}to{transform:translateY(60px) rotate(38deg);opacity:0}}.shed-body{position:relative;width:84px;height:34px;margin-top:3px;border-radius:3px 3px 0 0;background:var(--wall);box-shadow:inset 0 -3px 0 var(--wall-edge)}.shed-door{position:absolute;left:50%;bottom:0;width:18px;height:24px;transform:translate(-50%);border-radius:3px 3px 0 0;background:var(--wall-edge)}.title-board{--cell: min(40px, calc((min(100vw, 520px) - 32px - (var(--long) - 1) * 4px) / var(--long)));margin:22px auto 0;display:flex;flex-wrap:wrap;justify-content:center;column-gap:calc(var(--cell) * .6);row-gap:10px;max-width:520px}.word{display:flex;gap:4px}.tile{width:var(--cell);height:calc(var(--cell) * 1.18);display:grid;place-items:center;border-radius:6px;background:var(--paper-2);box-shadow:inset 0 -2.5px 0 var(--line);font-family:var(--slab);font-size:calc(var(--cell) * .58);line-height:1;color:var(--birch-ink);user-select:none}.tile.shown{background:var(--birch);box-shadow:0 3px 0 var(--birch-edge)}.tile.missed{background:var(--paper-2);color:var(--ink-soft);box-shadow:inset 0 0 0 1.5px var(--line)}.tile.punct{width:auto;min-width:calc(var(--cell) * .35);background:none;box-shadow:none;color:var(--ink)}.tile.flip{animation:tile-flip .42s ease both}@keyframes tile-flip{0%{transform:rotateX(90deg)}to{transform:none}}.hint{margin:18px 0 0;text-align:center;color:var(--ink-soft);font-size:15px;min-height:1.5em}.hint.open{color:var(--ink);font-size:16px}.hint strong{font-weight:700}.controls{margin-top:auto;padding-top:18px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.controls[hidden]{display:none}.solve-row{text-align:center}.solve-open{min-height:40px;font-size:15px}.solve-form{display:flex;gap:8px;max-width:460px;margin:0 auto}.solve-input{flex:1;min-width:0;min-height:44px;padding:0 14px;border-radius:999px;border:1.5px solid var(--ink);background:var(--sheet);color:var(--ink);font:inherit;font-weight:700;text-transform:uppercase}.solve-input::placeholder{text-transform:none;font-weight:400;color:var(--ink-soft)}.solve-form .btn{min-height:44px;padding:0 16px;flex:none}.solve-form .solve-cancel{width:44px;padding:0;font-size:22px;line-height:1}.solve-note{margin:6px 0 0;font-size:14px;color:var(--ink-soft)}.hd-keys{display:grid;gap:8px;user-select:none}.hd-keyrow{display:flex;justify-content:center;gap:6px}.hd-key{flex:1 1 0;max-width:44px;height:56px;padding:0;border:0;border-radius:8px;background:var(--key);box-shadow:inset 0 0 0 1.5px var(--line);color:var(--key-ink);font-weight:700;font-size:18px;cursor:pointer;touch-action:manipulation}.hd-key:active{transform:translateY(1px)}.hd-key:disabled{cursor:default}.hd-key[data-mark=hit]{background:var(--moss);color:#fff;box-shadow:none}.hd-key[data-mark=miss]{background:var(--key-out);color:var(--key-out-ink);box-shadow:none}.done[hidden]{display:none}.hx-title{display:flex;gap:4px;margin:12px 0 14px;flex-wrap:wrap}.hx-title .tile{--cell: 30px}.hx-title .gap{width:14px}.dist-row.narrow{grid-template-columns:20px 1fr}.dist-bar.today{background:var(--amber)}
