:root{--font-scale:1}html[data-font=large]{--font-scale:1.15}html[data-font=xlarge]{--font-scale:1.3}body{font-size:calc(15px * var(--font-scale))}.button,.tool,.nav,.word-chip{font-size:calc(13px * var(--font-scale))}.intro,dialog p,dialog li,.preview-instructions,.promo-copy p{font-size:calc(14px * var(--font-scale))}.board-note,.privacy-note,.game-hud,.game-header p,.card-copy p{font-size:calc(12px * var(--font-scale))}h1{font-size:calc(clamp(32px,3.5vw,48px) * var(--font-scale))}.game-header h1{font-size:calc(25px * var(--font-scale))}.promo-copy h2{font-size:calc(clamp(25px,3vw,36px) * var(--font-scale))}.cell{font-size:clamp(18px,calc(5cqi * var(--font-scale)),32px)}.letter{font-size:clamp(14px,calc(4.4cqi * var(--font-scale)),27px)}.top-actions{flex-wrap:wrap;justify-content:flex-end}.topbar{height:auto;min-height:89px;padding-block:12px}.top-actions .button{font-size:calc(12px * var(--font-scale))}.preferences-form{display:grid;gap:18px}.preferences-form>label{display:grid;gap:8px}.preferences-form select,.preferences-form input[type=time]{min-height:48px;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}.preference-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:48px}.preference-toggle input{width:24px;height:24px;flex-shrink:0;accent-color:var(--green-deep)}.notification-choices{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px}.streak-emblem{font:48px var(--serif);text-align:center;padding:20px;color:var(--green-deep)}.hits-illustration{display:block;width:100%;height:155px;object-fit:contain;margin:8px auto 16px}.hits-list{padding:0;list-style:none;display:grid;gap:12px}.hits-list li{padding:12px;border-radius:10px;background:var(--paper)}.connect-board{position:relative;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--card)}.connect-board button{border-radius:0;border:1px solid var(--line);background:transparent!important;position:relative;z-index:2;font-size:20px}.connect-board button .endpoint{border:3px solid var(--ink);border-radius:50%;width:65%;height:65%;margin:auto;display:grid;place-items:center;color:#273329;font-weight:700;background:var(--pair)}.connect-board button.active-dot .endpoint{box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--ink)}.connect-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.connect-lines polyline{fill:none;stroke-width:.24;stroke-linecap:round;stroke-linejoin:round}.connect-progress{font-size:13px;margin:12px 0}.preview-hit{width:100%;margin-top:12px}.connect-board button:active{transform:none}.game-screen[data-preview-game] .preview-actions{margin-top:12px}
html[data-theme=dark]{color-scheme:dark;--paper:#202722;--card:#2a332c;--ink:#eef0e5;--muted:#bdc8b6;--line:#4b594d;--green:#344837;--green-deep:#bacda7;--blue:#32434a;--clay:#493e35;--yellow:#4b4733;background:var(--paper);color:var(--ink)}
[data-theme=dark] .sidebar{background:#242d26}[data-theme=dark] .nav{color:var(--muted)}[data-theme=dark] .nav.active{background:#3c4c3a;color:var(--ink)}[data-theme=dark] .button.primary{background:#c8d6bb;border-color:#c8d6bb;color:#233024}[data-theme=dark] .button:hover{background:#3a453b}[data-theme=dark] .button.primary:hover{background:#d5e0ca}[data-theme=dark] .sage,[data-theme=dark] .summary-card,[data-theme=dark] .friend-card{background:#303d31}[data-theme=dark] .card-meta,[data-theme=dark] .friend-card p,[data-theme=dark] .hero p{color:var(--muted)}[data-theme=dark] .promo-daily{background:#304434}[data-theme=dark] .promo-pass{background:#494331}[data-theme=dark] .promo-games{background:#2f444b}[data-theme=dark] .promo-friends{background:#483a35}[data-theme=dark] .promo-arrow{background:#2b342def;color:var(--ink);border-color:var(--line)}[data-theme=dark] .pill{border-color:#72816b}[data-theme=dark] .sudoku-board,[data-theme=dark] .word-board{background:#263129;border-color:#899d7c}[data-theme=dark] .cell{color:#bed9f0;border-color:#4b5d4b}[data-theme=dark] .cell.given{color:var(--ink)}[data-theme=dark] .cell.related{background:#303e31}[data-theme=dark] .cell.same{background:#40523e}[data-theme=dark] .cell.selected{background:#536e49}[data-theme=dark] .notes-grid{color:#b1cadb}[data-theme=dark] .letter{color:var(--ink);border-color:#44564a}[data-theme=dark] .letter.found{background:#45624b;color:#eef2e8}[data-theme=dark] .letter.trace{background:#425d70}[data-theme=dark] .number-pad button{background:#3c4e38;color:var(--ink);border-color:var(--line)}[data-theme=dark] .memory-card{background:#514438;color:#e4cbb8}[data-theme=dark] .memory-card.revealed{background:#695644;color:#fff2e4}[data-theme=dark] .memory-card.matched{background:#3f573b;color:#e5efd7}[data-theme=dark] .memory-card .back-symbol{color:#c9b7a6}[data-theme=dark] .mini-board button{background:#394738;color:var(--ink)}[data-theme=dark] .mini-board button:disabled{background:transparent}[data-theme=dark] .pause-overlay{background:#29382c}[data-theme=dark] .skeleton{background:#3b473c}[data-theme=dark] .preview-numbers,[data-theme=dark] .preview-memory span{background:#354433;color:var(--ink)}[data-theme=dark] .preview-letters{color:#c3d7e1}[data-theme=dark] .storage-warning{background:#554b30}[data-theme=dark] #toast{background:#d5dfc9;color:#202c22}
@media(max-width:680px){.top-actions{justify-content:space-between}.top-actions .button{padding:8px;min-height:44px}.topbar{min-height:64px}.top-label{display:none}.top-actions [data-streak]{order:4}.top-actions [data-preferences]{order:5}.promo-slide{min-height:0}.game-header h1{font-size:calc(23px * var(--font-scale))}.card-copy h3{font-size:calc(22px * var(--font-scale))}html[data-font=xlarge] .game-card{grid-template-columns:76px minmax(0,1fr)}html[data-font=xlarge] .promo-slide{padding-inline:22px}.hits-illustration{height:135px}}

/* Compact header: stable order and touch targets. */
.topbar{gap:12px;min-height:72px;padding-block:10px}.top-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:6px;min-width:0;margin-left:auto}.top-actions .button{order:0;min-height:44px;padding:8px 12px;gap:6px;white-space:nowrap}.top-actions [data-social=profile]{max-width:140px;min-width:44px}.top-actions [data-streak],.top-actions [data-preferences]{order:0}.top-actions .header-settings>span:first-child{font-size:20px;line-height:1}.preview-cards .stop-card .card-meta{margin-top:auto}
@media(max-width:680px){.topbar{min-height:64px}.top-actions{width:100%;justify-content:flex-end;gap:4px}.top-actions .button{padding:8px;flex-shrink:0;font-size:calc(11px * var(--font-scale))}.top-actions [data-social=profile]{margin-right:auto;flex:1 1 60px;min-width:44px;max-width:130px}.top-actions .header-caption{display:none}.top-actions .header-settings,.top-actions .install{width:44px;padding:8px}.top-actions .install svg{display:block;width:19px;height:19px}.top-actions [data-streak],.top-actions [data-preferences]{order:0}}
.top-actions .button{min-width:44px}

.card-art .game-image{display:block;width:100%;height:100%;object-fit:contain;padding:10px}.card-art:has(.game-image){position:relative}.card-art .card-tag{position:absolute;left:12px;top:8px;z-index:1}.stop-form{display:grid;gap:16px;max-width:560px;margin:20px auto}.stop-form label{display:grid;gap:6px}.stop-form input{width:100%;min-height:48px;padding:12px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:10px}.stop-results{display:grid;gap:10px}.stop-results article{padding:10px;background:var(--paper);border-radius:10px}.stop-results p{margin:6px 0}@media(max-width:680px){.card-art .game-image{padding:4px}.card-art .card-tag{display:none}}
