:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#fbf5ea;--bg-deco:#f4ead8;--surface:#fff;--surface-2:#f7f0e3;--surface-3:#efe5d3;--ink:#2e2935;--ink-soft:#625a6c;--ink-faint:#8f8698;--line:#e5d9c5;--line-strong:#cdbfa8;--accent:#d9774f;--accent-soft:#fbe2d6;--accent-ink:#fff;--focus:#3d7bd9;--danger:#c8443f;--danger-soft:#fbe0de;--ok:#3f9a6b;--ok-soft:#dcf2e5;--highlight:#fff2c7;--mint:#a8dcc6;--sky:#afd2f2;--lemon:#f5dc8b;--lilac:#cdbcee;--peach:#f8c2a6;--rose:#f3b0c0;--sage:#c7d9a4;--sand:#e8d2ae;--radius-s:8px;--radius:14px;--radius-l:22px;--shadow-s:0 1px 2px #5c421e14, 0 2px 6px #5c421e0f;--shadow:0 2px 4px #5c421e12, 0 10px 26px #5c421e14;--shadow-l:0 6px 12px #3c28141f, 0 24px 60px #3c281429;--font:ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;--font-mono:ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;--dur:.16s;--tap:44px}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#1d1a22;--bg-deco:#242029;--surface:#2a2631;--surface-2:#322d3a;--surface-3:#3b3544;--ink:#f4eee6;--ink-soft:#c3b9cc;--ink-faint:#9990a3;--line:#443d4e;--line-strong:#5a5166;--accent:#ee9772;--accent-soft:#4a3228;--accent-ink:#231a16;--focus:#86b2f5;--danger:#f08a84;--danger-soft:#4a2626;--ok:#7fd1a6;--ok-soft:#22402f;--highlight:#4b4326;--mint:#3f7563;--sky:#3e6488;--lemon:#7d6b2e;--lilac:#5f5089;--peach:#8a563d;--rose:#86475a;--sage:#5b6d3c;--sand:#75603f;--shadow-s:0 1px 2px #0000004d;--shadow:0 2px 6px #0000004d, 0 10px 26px #00000040;--shadow-l:0 8px 20px #0006, 0 24px 60px #0006}:root[data-motion=reduce]{--dur:0s}@media (prefers-reduced-motion:reduce){:root:not([data-motion=full]){--dur:0s}}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--ink);font-family:var(--font);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;margin:0;font-size:16px;line-height:1.45}body{overscroll-behavior:none}#app{flex-direction:column;min-height:100%;display:flex}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}h1,h2,h3{margin:0;line-height:1.2}p{margin:0 0 .6em}a{color:var(--accent)}.btn{min-height:var(--tap);border:1.5px solid var(--line-strong);background:var(--surface);color:var(--ink);white-space:nowrap;box-shadow:var(--shadow-s);transition:transform var(--dur) ease, background var(--dur) ease, box-shadow var(--dur) ease;touch-action:manipulation;-webkit-user-select:none;user-select:none;border-radius:999px;justify-content:center;align-items:center;gap:.45em;padding:0 1.05em;font-size:.95rem;font-weight:600;display:inline-flex}.btn:hover:not(:disabled){background:var(--surface-2)}.btn:active:not(:disabled){box-shadow:none;transform:translateY(1px)scale(.98)}.btn:disabled{opacity:.45;cursor:default}.btn svg{flex:none;width:1.2em;height:1.2em}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-primary:hover:not(:disabled){background:var(--accent);filter:brightness(1.05)}.btn-danger{color:var(--danger);border-color:var(--danger)}.btn-ghost{box-shadow:none;background:0 0;border-color:#0000}.btn-ghost:hover:not(:disabled){background:var(--surface-2)}.btn-icon{width:var(--tap);padding:0}.btn-small{min-height:34px;padding:0 .8em;font-size:.85rem}.btn[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent)}.segmented{background:var(--surface-3);border-radius:999px;gap:2px;padding:3px;display:inline-flex}.segmented button{min-height:38px;color:var(--ink-soft);background:0 0;border:0;border-radius:999px;padding:0 1em;font-size:.9rem;font-weight:600}.segmented button[aria-checked=true],.segmented button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-s)}.new-game-label{color:var(--ink-soft);margin:.9em 0 .35em;font-size:.85rem;font-weight:600}.chip{background:var(--surface-3);color:var(--ink-soft);border-radius:999px;align-items:center;gap:.35em;padding:.2em .7em;font-size:.8rem;font-weight:600;display:inline-flex}.chip svg{width:1em;height:1em}.chip-ok{background:var(--ok-soft);color:var(--ok)}.chip-warn{background:var(--highlight);color:var(--ink)}.card{background:var(--surface);border-radius:var(--radius-l);box-shadow:var(--shadow);border:1px solid var(--line)}dialog.sheet{border-radius:var(--radius-l);background:var(--surface);color:var(--ink);box-shadow:var(--shadow-l);border:0;width:min(460px,100vw - 24px);max-height:calc(100dvh - 32px);padding:0}dialog.sheet::backdrop{background:#23191459}dialog.sheet[open]{animation:pop var(--dur) ease-out}.sheet-body{max-height:calc(100dvh - 32px);padding:22px 22px 18px;overflow:auto}.sheet-body h2{margin-bottom:.6em;font-size:1.3rem}.sheet-body ul{margin:.3em 0 .9em;padding-left:1.2em}.sheet-body li{margin-bottom:.3em}.sheet-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}@keyframes pop{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}.toasts{pointer-events:none;z-index:50;justify-items:center;gap:8px;padding:0 12px;display:grid;position:fixed;bottom:14px;left:0;right:0}.toast{pointer-events:auto;background:var(--ink);color:var(--bg);box-shadow:var(--shadow);max-width:100%;animation:rise var(--dur) ease-out;border-radius:999px;align-items:center;gap:10px;padding:10px 16px;font-size:.9rem;font-weight:600;display:flex}.toast button{color:inherit;background:0 0;border:0;padding:4px;font-weight:700;text-decoration:underline}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.home{width:100%;max-width:1080px;margin:0 auto;padding:18px 16px 40px}.home-top{align-items:center;gap:12px;margin-bottom:18px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brand svg{width:44px;height:44px}.brand h1{letter-spacing:-.02em;font-size:1.9rem;font-weight:800}.home-top .spacer{flex:1}.home-intro{color:var(--ink-soft);margin:0 0 18px}.game-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:16px;display:grid}.game-card{flex-direction:column;display:flex;overflow:hidden}.game-card .thumb{aspect-ratio:16/9;background:var(--card-accent,var(--mint));place-items:center;display:grid;position:relative;overflow:hidden}.game-card .thumb svg{width:100%;height:100%}.game-card .info{flex-direction:column;flex:1;gap:8px;padding:14px 16px 16px;display:flex}.game-card h2{font-size:1.25rem}.game-card .tagline{color:var(--ink-soft);margin:0;font-size:.92rem}.game-card .resume{color:var(--ink-soft);font-size:.85rem}.game-card .actions{flex-wrap:wrap;gap:8px;margin-top:auto;display:flex}.game-card .warn{color:var(--danger);font-size:.85rem}.offline-chip{white-space:nowrap}.page{width:100%;max-width:720px;margin:0 auto;padding:14px 16px 40px}.page-top{align-items:center;gap:8px;margin-bottom:12px;display:flex}.page-top h1{font-size:1.5rem}.settings-section{margin-bottom:14px;padding:16px 18px}.settings-section h2{margin-bottom:10px;font-size:1.05rem}.setting-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-row .label{font-weight:600}.setting-row .hint{color:var(--ink-soft);font-size:.85rem;font-weight:400;display:block}.meta-list{grid-template-columns:auto 1fr;gap:4px 14px;margin:0;font-size:.9rem;display:grid}.meta-list dt{color:var(--ink-soft)}.meta-list dd{font-family:var(--font-mono);word-break:break-all;margin:0}.switch{background:var(--line-strong);width:52px;height:30px;transition:background var(--dur);border:0;border-radius:999px;flex:none;position:relative}.switch:after{content:"";width:24px;height:24px;box-shadow:var(--shadow-s);transition:transform var(--dur);background:#fff;border-radius:50%;position:absolute;top:3px;left:3px}.switch[aria-checked=true]{background:var(--ok)}.switch[aria-checked=true]:after{transform:translate(22px)}.game{flex-direction:column;flex:1;width:100%;max-width:1200px;min-height:100dvh;margin:0 auto;display:flex}.game-bar{align-items:center;gap:6px;padding:8px 10px 4px;display:flex}.game-bar h1{white-space:nowrap;text-overflow:ellipsis;font-size:1.15rem;font-weight:800;overflow:hidden}.game-bar .title{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.game-status{min-height:30px;color:var(--ink-soft);flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:2px 12px 6px;font-size:.92rem;display:flex}.game-main{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;min-height:0;padding:4px 10px;display:flex}.game-tools{padding:6px 10px calc(12px + env(safe-area-inset-bottom));flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.game-message{text-align:center;min-height:1.6em;color:var(--ink-soft);max-width:640px;padding:0 12px;font-size:.92rem}.game-message.error{color:var(--danger)}.busy{color:var(--ink-soft);text-align:center;place-items:center;gap:12px;padding:40px;display:grid}.spinner{border:4px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:34px;height:34px;animation:.9s linear infinite spin}:root[data-motion=reduce] .spinner{animation-duration:3s}@keyframes spin{to{transform:rotate(360deg)}}.end-emoji{margin-bottom:6px;font-size:2.6rem;line-height:1}.end-stats{color:var(--ink-soft)}.kbd{font-family:var(--font-mono);border:1px solid var(--line-strong);background:var(--surface-2);border-radius:5px;padding:.05em .4em;font-size:.8em}@media (min-width:900px){.game-bar{padding:14px 18px 6px}.game-bar h1{font-size:1.35rem}}@media (max-width:480px){.game-bar{gap:2px;padding:6px 6px 2px}.game-bar .btn-icon{width:40px}.game-bar .new-label{display:none}.game-bar .btn-primary{width:44px;padding:0}.game-bar h1{font-size:1.05rem}}.install-card{align-items:center;gap:12px;margin-bottom:16px;padding:12px 12px 12px 16px;display:flex}.install-card .install-icon{width:28px;height:28px;color:var(--accent);flex:none}.install-card .install-text{color:var(--ink-soft);flex-direction:column;flex:1;font-size:.9rem;display:flex}.install-card .install-text strong{color:var(--ink);font-size:1rem}.pcard{width:var(--card-w,58px);aspect-ratio:5/7;color:#2e2935;-webkit-user-select:none;user-select:none;background:#fffdf8;border:1px solid #cfc6b8;border-radius:8px;flex:none;display:inline-grid;position:relative;box-shadow:0 2px 5px #0000002e}.pcard.red{color:#c8433a}.pcard .corner{justify-items:center;font-size:15px;line-height:1;display:grid;position:absolute;top:4px;left:5px}.pcard .corner b{font-weight:800}.pcard .centre{place-self:center;margin-top:12px}.pcard.back{background:#3a6ea5;border-color:#2c5380}.pcard.back svg{width:100%;height:100%}.pcard.win{box-shadow:0 0 0 3px var(--ok), 0 2px 5px #0000002e}.pcard.dim{opacity:.55}.pcard.small{--card-w:46px}.pcard.small .corner{font-size:12px}.pcard.small .centre svg{width:22px;height:22px}.deal-in{animation:pop var(--dur) ease-out}
