/* V3: a familiar little arcade, with clearer paths into a game. */
.hero-content>p{max-width:31em;line-height:1.9}.hero-content>.hero-secondary{display:inline-flex;margin:14px 0 0 14px;border:0;background:none;color:#52664b;font-weight:700;cursor:pointer;padding:10px 0}
.library-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0 22px}.game-search-label{display:flex;align-items:center;gap:12px;flex:1;min-width:230px;max-width:580px;background:#fffdf6;border:1px solid #d9ddca;border-radius:16px;padding:4px 16px;box-shadow:0 4px 0 #dce1ce42}.game-search-label>span:first-child{font-size:30px;color:#6d805f}.game-search-label input{min-width:0;width:100%;padding:12px 0;background:none;border:0;outline:0;font:inherit;color:#354734}.game-search-label:focus-within{outline:2px solid #809365;outline-offset:3px}.search-shortcut{font:10px ui-monospace,monospace;letter-spacing:.1em;color:#6f7b64;white-space:nowrap}.library-views{display:flex;gap:4px;border-radius:14px;padding:4px;background:#e9ecdd}.library-views button{border:0;border-radius:11px;padding:10px 13px;font:inherit;font-size:13px;cursor:pointer;background:transparent;color:#53604c;white-space:nowrap}.library-views button.selected{background:#fffdf4;box-shadow:0 2px 8px #43533012;color:#354d32;font-weight:750}.clear-library{border:0;background:transparent;text-decoration:underline;color:#687958;cursor:pointer;font:inherit;font-size:12px}.catalog-empty{padding:40px 20px;border:1px dashed #bdc7a6;background:#f5f6e9;border-radius:18px;text-align:center;color:#637257}.compact-card{position:relative;min-width:0}.compact-game-button{padding-right:42px}.favorite-game{position:absolute;top:11px;right:9px;z-index:1;display:grid;place-items:center;width:36px;height:36px;border:1px solid #d7dfc8;border-radius:50%;background:#fffdf3;color:#6b8057;font-size:22px;cursor:pointer;touch-action:manipulation}.favorite-game[aria-pressed=true]{color:#b86c57;background:#fff1e8;border-color:#e5c2ad}.favorite-game:hover{transform:translateY(-2px)}.compact-play{display:none}
.play-heading-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.focus-game{border:1px solid #d5dcc7;background:#fffdf4;border-radius:12px;padding:10px 14px;color:#4d6546;font:inherit;font-size:13px;cursor:pointer}.play-primary-controls{display:grid;gap:8px;margin-top:14px}.play-primary-controls button{margin:0;min-height:46px}.play-panel{min-width:0}.play-sidebar{min-width:0}.stage{isolation:isolate}.personal-result{font-size:13px!important;padding:10px 14px;background:#e7eed7;color:#53664a;border-radius:10px}.sokoban-tools{display:flex;gap:8px;flex-wrap:wrap;padding:8px 16px 16px}.sokoban-tools button{font-size:12px;min-height:42px}.sokoban-tools p{flex-basis:100%;font-size:12px;color:#748168;margin:0;line-height:1.7}.sokoban-grid{background:#e7dcc9;border:8px solid #d3c5ad;gap:3px;padding:7px;box-shadow:inset 0 1px 5px #66523918}.sokoban-grid .classic-cell{border-radius:5px;position:relative}.sokoban-grid .wall{background:linear-gradient(135deg,#a7b69b,#7e9473);box-shadow:inset 0 3px 0 #c2cfb4,inset -2px -3px 0 #687e5e}.sokoban-grid .floor,.sokoban-grid .target,.sokoban-grid .worker{background:#f8f0df;border-color:#e6dac6}.sokoban-grid .crate{background:linear-gradient(135deg,#e6b86c,#c58c47);color:#fff3d0;box-shadow:inset 0 0 0 3px #bd844b,inset 0 0 0 5px #f3cf91}.sokoban-grid .crate.home{background:#91ad76;box-shadow:inset 0 0 0 3px #688b56,inset 0 0 0 5px #c2d5a9}.sokoban-grid .worker{color:#497866;box-shadow:inset 0 -4px 0 #d3e0c4}.sokoban-grid .hint-cell{outline:3px solid #cc9a42;outline-offset:1px;z-index:1}.sokoban-grid .hint-cell:after{content:'✦';position:absolute;right:1px;top:0;color:#926817;font-size:12px}.sokoban-grid .target{color:#b6a17d}
.shooter-upgrade{position:absolute;inset:0;z-index:12;background:#0b172ae8;display:grid;place-items:center;padding:16px;backdrop-filter:blur(5px)}.shooter-upgrade-card{width:min(520px,100%);color:#d9f4f2;text-align:center}.shooter-upgrade-card .section-kicker{color:#89cfcb;font-size:10px}.shooter-upgrade-card h2{font-size:23px;margin:12px 0}.shooter-upgrade-card>p{font-size:13px;color:#b4cbcd}.shooter-upgrade-card button{display:grid;grid-template-columns:38px 1fr;column-gap:12px;width:100%;margin:9px 0;padding:14px 16px;text-align:left;border:1px solid #517b83;background:#183442;color:#e7fbf1;border-radius:13px;cursor:pointer}.shooter-upgrade-card button:focus-visible{outline:3px solid #ffc685}.shooter-upgrade-card button>span{grid-row:span 2;font-size:25px;align-self:center}.shooter-upgrade-card button strong{font-size:15px}.shooter-upgrade-card button small{color:#c4d9d9;font-size:12px;margin-top:5px;line-height:1.6}.shooter-upgrade-card button:hover{background:#234856;border-color:#91d4d1}.shooter-build{margin:0;padding:7px 15px;background:#172b39;color:#a9d7d3;font-size:12px;line-height:1.7}
.wheel-preferences{padding:18px 22px;border-top:1px solid #dfe3cf;grid-column:1/-1;background:#f7f8ee;border-radius:0 0 24px 24px}.wheel-preferences p{display:grid;gap:6px;margin:0 0 12px}.wheel-preferences p strong{font-size:14px;color:#506344}.wheel-preferences p small{font-size:12px;color:#718064}.wheel-preference-actions{display:flex;gap:8px;flex-wrap:wrap}.wheel-preference-actions button,.wheel-favorites button{border:1px solid #d5dfc6;border-radius:10px;background:#fffdf5;color:#566c49;padding:9px 12px;font:inherit;font-size:12px;cursor:pointer;min-height:40px}.wheel-favorites{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.wheel-favorites button{background:#edf1df;font-size:11px}.comfort-timer-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13px;margin-top:18px}.comfort-timer-row select{font:inherit;color:#4d6347;background:#fbfcf3;border:1px solid #d8dfcb;border-radius:9px;padding:8px}.comfort-timer-row small{flex-basis:100%;font-size:11px;color:#7c876c}.web-backup-panel{padding:20px;border:1px solid #dde2cf;border-radius:14px;margin-top:20px;background:#f7f8ed}.web-backup-panel h3{font-size:16px;margin:0 0 8px}.web-backup-panel p{font-size:12px;line-height:1.8;color:#6e7b5e}.local-tool-buttons{display:flex;flex-wrap:wrap;gap:8px}.backup-preview-dialog{width:min(500px,calc(100vw - 28px));max-height:88dvh;overflow:auto}.backup-preview-dialog dl{display:grid;grid-template-columns:85px 1fr;gap:12px;margin:20px 0;font-size:13px;line-height:1.7}.backup-preview-dialog dt{color:#7e896c}.backup-preview-dialog dd{margin:0;overflow-wrap:anywhere}.backup-preview-dialog>p{font-size:12px;line-height:1.8;color:#6b775d}.backup-preview-actions{display:flex;justify-content:flex-end;gap:10px}.home-sync-note[data-sync-state=synced]{color:#486f50}.home-sync-note[data-sync-state=offline]{color:#9a6440}.history-entry:not([open]){content-visibility:auto;contain-intrinsic-size:auto 80px}.compact-card{content-visibility:auto;contain-intrinsic-size:auto 255px}
.game-view:fullscreen{max-width:none;width:100%;height:100%;overflow:auto;background:#f6f3e8;padding:16px max(18px,calc((100vw - 1160px)/2))}.game-focused .site-header,.game-focused .site-footer{display:none}.game-focused #game-view{max-width:1180px;margin:auto;padding-top:12px}.game-focused .game-title{margin:12px 0}.game-focused .game-breadcrumb,.game-focused #game-description,.game-focused .game-bottom-note{display:none}.game-focused .play-layout{align-items:start}.game-focused .play-panel{max-height:none}
@media(max-width:760px){.library-toolbar{gap:10px}.game-search-label{max-width:none;flex-basis:100%}.library-views{flex:1}.library-views button{flex:1;padding:10px 6px}.search-shortcut{font-size:8px}.compact-game-button{padding-right:30px}.favorite-game{width:32px;height:32px;right:7px;top:7px}.game-heading{gap:8px}.game-breadcrumb{display:none}.focus-game{padding:9px 11px;font-size:12px}.play-layout{display:flex;flex-direction:column;gap:14px}.play-panel,.play-sidebar{width:100%}.play-sidebar{display:grid;grid-template-columns:1fr;gap:12px}.settings-panel{display:contents}.settings-panel>h2,.settings-panel>#mode-description,.settings-panel>#difficulty-description{margin:0}.play-primary-controls{display:grid;grid-template-columns:1fr 1fr;order:-1;position:sticky;bottom:10px;background:#f6f5e9f0;backdrop-filter:blur(10px);padding:8px;border-radius:15px;z-index:15;box-shadow:0 4px 24px #4d613626;margin:0}.play-primary-controls button{font-size:13px}.settings-panel>#brick-settings{background:#fffdf4;padding:12px;border-radius:12px}.instructions-panel{margin:0}.shooter-controls{min-height:100px}.touch-pad button{min-height:50px;min-width:50px;touch-action:none}.game-view{padding-left:12px;padding-right:12px}.game-title h1{font-size:27px}.sokoban-tools{padding:8px 10px 12px}.sokoban-tools button{flex:1}.shooter-upgrade-card h2{font-size:20px}.shooter-upgrade-card button{padding:11px 12px}.wheel-preferences{padding:16px}.backup-preview-actions button{flex:1;font-size:13px}.game-focused .play-sidebar .personal-record,.game-focused .play-sidebar .game-friends,.game-focused .play-sidebar .sidebar-note{display:none}.game-focused .play-panel{margin:0}.game-focused .stage{max-height:72dvh}.game-focused .stage canvas{max-height:70dvh;object-fit:contain}.game-focused .play-primary-controls{position:static}.game-view:fullscreen{padding:10px}.hero-content>.hero-secondary{margin-left:0}}
@media(max-width:420px){.search-shortcut{display:none}.collection-heading{align-items:flex-start;gap:12px}.collection-heading .filters{flex-wrap:wrap}.shooter-upgrade-card button small{font-size:11px}.focus-game{padding:9px}.wheel-preference-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.favorite-game:hover{transform:none}}

.history-entry>summary{list-style:none;cursor:pointer;display:flex;gap:22px;align-items:center;width:100%}.history-entry>summary::-webkit-details-marker{display:none}.history-entry>summary:after{content:'＋';margin-left:auto;color:#72865b}.history-entry[open]>summary:after{content:'－'}.history-entry>summary h3{margin-bottom:0}.history-entry>.history-details{margin:18px 0 0 84px;font-size:13px;line-height:1.9;color:#657258}.history-entry:has(>summary){display:block}.history-entry:first-child{border:1px solid #b8c99d;background:#f5f8e9;border-radius:18px;padding:22px}.history-summary:focus-visible{outline:2px solid #819b65;outline-offset:6px}
@media(max-width:760px){.history-entry>.history-details{margin-left:20px}.history-entry>summary{gap:14px}}

.play-panel>.play-primary-controls{grid-template-columns:1fr 1fr;padding:12px 16px;margin:0;background:#f1f4e7;border-bottom:1px solid #dce3cc;border-radius:20px 20px 0 0;box-shadow:none;position:static}.game-focused .stage{max-height:none}.game-focused .stage canvas{max-height:none;max-width:min(100%,calc(70dvh * var(--canvas-ratio,1)));height:auto;object-fit:fill}.game-focused .stage{display:flex;justify-content:center}.game-focused .stage-overlay,.game-focused .shooter-upgrade{position:absolute;display:grid}.game-focused .stage-overlay[hidden],.game-focused .shooter-upgrade[hidden]{display:none}
@media(max-width:760px){body:not([data-edition=lite]) .hero{overflow:hidden}body:not([data-edition=lite]) .hero-content>p{width:100%;max-width:none;font-size:11px;line-height:1.85}.play-panel>.play-primary-controls{padding:10px;margin:0;position:static;border-radius:16px 16px 0 0}.game-view .stage-footer{padding:10px}.play-heading-actions{gap:6px}}
@media(orientation:landscape) and (max-height:500px){.game-focused #game-view{max-width:none}.game-focused .game-title{display:none}.game-focused .play-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:12px}.game-focused .play-heading-actions{margin-left:auto}.game-focused .stage canvas{max-width:min(100%,calc(58dvh * var(--canvas-ratio,1)))}.game-focused .touch-pad button{min-height:40px;min-width:44px}.game-focused .instructions-panel{display:none}}
