:root{color-scheme:light;--paper: #efe7d8;--ink: #1c2430;--muted: #5c675c;--card: #fffdf8;--line: #ddcfb6;--coral: #e15a3a;--coral-ink: #fff;--tile: #f7f1e4;--tw: #d4543a;--dw: #1f8a70;--tl: #e2a123;--dl: #7f97b8;--start: #f0c36a;font-family:Trebuchet MS,Segoe UI,sans-serif}:root[data-theme=dark]{color-scheme:dark;--paper: #141820;--ink: #f6f1e6;--muted: #b7c0b4;--card: #1c2230;--line: #31384a;--coral: #ff7a59;--coral-ink: #1c120e;--tile: #2a3142;--tw: #a84332;--dw: #1c6d59;--tl: #a67a1d;--dl: #4d6280;--start: #b08a3e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);overflow-x:hidden}button{font:inherit;color:inherit;cursor:pointer}h1,h2,p{margin:0}h1{font-size:1.6rem;letter-spacing:-.03em}.shell{width:min(100%,560px);margin:0 auto;padding:12px 12px calc(16px + env(safe-area-inset-bottom));min-height:100dvh}.top,.row{display:flex;align-items:center;gap:8px}.top{justify-content:space-between;margin-bottom:12px}.grow{flex:1}.stack{display:grid;gap:10px}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:14px}.muted{color:var(--muted)}.eyebrow{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.primary,.ghost,.tiny{border-radius:999px;border:1px solid transparent;min-height:46px;padding:0 14px;font-weight:800}.primary{background:var(--coral);color:var(--coral-ink)}.stack>.primary{width:100%}.ghost,.tiny{background:transparent;border-color:var(--line)}.tiny{min-height:40px}.logo{width:48px;height:48px;border:0;border-radius:14px;background:#1c2430;color:#f6f1e6;font-weight:800}.coins{font-weight:800;background:var(--card);border:1px solid var(--line);border-radius:999px;padding:8px 12px}.diffs{display:flex;gap:8px}.diffs button.on{background:var(--ink);color:var(--paper)}.board-wrap{width:min(100%,520px);margin:0 auto}.grid{container-type:inline-size;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:2px;touch-action:manipulation}.sq{aspect-ratio:1;border:0;border-radius:4px;background:#3c4658;color:#f6f1e6;padding:0;font-weight:800;font-size:calc((100cqi - 28px) / 15 * .46);position:relative;line-height:1}.sq.tw{background:var(--tw)}.sq.dw{background:var(--dw)}.sq.tl{background:var(--tl);color:#1c2430}.sq.dl{background:var(--dl)}.sq.start{background:var(--start);color:#1c2430}.sq.filled{background:var(--tile);color:var(--ink);box-shadow:inset 0 0 0 1px #c8b89a}.sq.pending{outline:2px solid var(--coral)}.sq .value,.rack-tile .value{position:absolute;right:2px;bottom:1px;font-size:.42em;font-weight:800}.sq .mark{font-size:.42em;font-weight:800;letter-spacing:0}.rack{display:flex;gap:6px;justify-content:center;min-height:58px;margin:10px 0;flex-wrap:wrap}.rack-tile{width:44px;height:52px;border-radius:8px;border:0;background:var(--tile);color:var(--ink);font-weight:800;font-size:1.35rem;position:relative;box-shadow:0 2px #c8b89a}.rack-tile.on,.sq.hot{outline:3px solid var(--coral)}.dog-tile:before{content:"";position:absolute;left:3px;top:3px;width:6px;height:6px;border-radius:99px;background:#e2b15a}.tools{display:flex;flex-wrap:wrap;gap:6px}.tools .tiny{flex:1}.preview{min-height:1.3em;font-weight:800;text-align:center}.overlay,.sheet-ad{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#12151c80;display:grid;align-items:end;justify-content:center;padding:12px}.sheet-ad{z-index:80;align-items:center}.sheet{width:min(100%,440px)}.letters{display:flex;flex-wrap:wrap;gap:4px}.letters button{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:var(--card);font-weight:800}.dog{width:72px;height:52px}#toast{position:fixed;left:50%;bottom:16px;transform:translate(-50%);background:#1c2430;color:#f6f1e6;border-radius:999px;padding:10px 14px;z-index:70;max-width:calc(100% - 24px);pointer-events:none}.linkish{background:none;border:0;color:var(--dw);font-weight:800;min-height:44px}.log{display:grid;gap:4px;max-height:120px;overflow:auto}@media(min-width:900px){.shell.wide{width:min(100%,920px);display:grid;grid-template-columns:minmax(0,520px) 280px;gap:16px;align-items:start}.shell.wide .top{grid-column:1 / -1}}.more-games{margin-top:14px}.more-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.more-row a{flex:0 0 auto;text-decoration:none;font-weight:800;font-size:.85rem;border:1px solid var(--line);border-radius:999px;padding:8px 10px;color:inherit}
