:root{--bg:#1e5bb8;--fg:#fff;--ink:#17233a;--muted:#6b7a90;--accent:#1e5bb8;--tile-empty:#ffffff4d;--tile:#fff;--flash:#ffd54f;--good:#2e7d32;--bad:#c62828;-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:18px}:root.big{font-size:22px}*{box-sizing:border-box;margin:0}html,body{height:100%;height:100dvh;overflow:hidden}html{background:var(--bg)}body{background:var(--bg);color:var(--fg);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#app{height:100%}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;background:0 0;border:0}button:disabled{cursor:default}.screen{height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);flex-direction:column;display:flex;position:relative}.bar{align-items:center;gap:8px;min-height:60px;padding:8px 16px;display:flex}.bar .coins{padding-right:8px}.bar h2{text-align:center;flex:1;font-size:1.2rem}.icon{flex:none;justify-content:center;align-items:center;width:48px;height:48px;font-size:2rem;line-height:1;display:flex}.coins{justify-content:flex-end;align-items:center;gap:6px;min-width:48px;font-size:1.1rem;display:flex}.coin{background:#ffca28;border:2px solid #f9a825;border-radius:50%;width:.9em;height:.9em}.btn{background:#ffffff2e;border-radius:14px;width:min(80vw,320px);min-height:56px;margin:8px auto;font-size:1.15rem;font-weight:600;display:block}.btn.primary{background:var(--tile);color:var(--ink)}.btn:active,.row:active,.chapter:active,.lv:active,.round:active{opacity:.7}.scroll{-webkit-overflow-scrolling:touch;flex:1;padding:8px 16px 24px;overflow-y:auto}.home{align-items:center;gap:4px;overflow-y:auto}.home>:first-child{margin-top:auto}.home>:last-child{margin-bottom:auto}.home h1{letter-spacing:.04em;margin-bottom:4px;font-size:2.6rem}.home .coins{margin-bottom:24px}.big-btn{min-height:84px;font-size:1.6rem}.big-btn small{color:var(--muted);font-size:.9rem;font-weight:500;display:block}.chapter{background:var(--c);border:2px solid #ffffff80;border-radius:12px;justify-content:space-between;align-items:center;width:100%;min-height:56px;margin-bottom:8px;padding:0 16px;font-weight:600;display:flex}.chapter.locked{opacity:.45}.levels{grid-template-columns:repeat(5,1fr);gap:8px;margin:0 0 12px;display:grid}.lv{background:var(--tile);min-height:52px;color:var(--ink);border-radius:10px;font-size:1.05rem;font-weight:700}.lv.done{background:#ffffffbf}.lv.cur{outline:3px solid var(--flash)}.lv.locked{background:var(--tile-empty);color:var(--fg)}.row{text-align:left;background:#ffffff2e;border-radius:12px;justify-content:space-between;align-items:center;width:100%;min-height:60px;margin-bottom:8px;padding:0 16px;font-size:1.05rem;display:flex}.row.danger{background:#0003}.about{margin-top:24px;line-height:1.5}.about h3{margin-bottom:8px}.about p{margin-bottom:12px}.support a{color:inherit;text-underline-offset:3px;font-weight:700;text-decoration:underline}.credits{opacity:.85;font-size:.8rem}.board{flex:1;justify-content:center;align-items:center;min-height:0;padding:8px;display:flex}.loading{text-align:center;padding:16px}.grid{--cell:40px;display:grid}.cell{width:var(--cell);height:var(--cell);border-radius:calc(var(--cell) * .16);background:var(--tile-empty);color:var(--ink);font-weight:700;font-size:calc(var(--cell) * .62);line-height:var(--cell);text-align:center;transition:background-color .15s}.cell.open{background:var(--tile)}.cell.hint{background:var(--tile);color:var(--muted)}.cell.flash{background:var(--flash);transition:none}.preview{flex:none;justify-content:center;align-items:center;height:44px;display:flex}#preview{visibility:hidden;background:var(--tile);color:var(--ink);letter-spacing:.06em;border-radius:24px;padding:6px 18px;font-size:1.4rem;font-weight:700}#preview.show{visibility:visible}#preview.good{color:var(--good)}#preview.bad{color:var(--bad);animation:.15s linear shake}#preview.muted{color:var(--muted)}@keyframes shake{25%{transform:translate(-6px)}75%{transform:translate(6px)}}.controls{flex:none;justify-content:center;padding:0 16px 20px;display:flex;position:relative}.round{background:#ffffff38;border-radius:50%;flex-direction:column;width:60px;height:60px;font-size:1.8rem;font-weight:700;position:absolute;bottom:12px}.round[data-a=shuffle]{left:20px}.round[data-a=hint]{right:20px}.round small{font-size:.7rem;font-weight:600}.wheel{touch-action:none;background:#ffffffeb;border-radius:50%;position:relative}.wheel svg{pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0}.wheel polyline{fill:none;stroke:var(--bg);stroke-linecap:round;stroke-linejoin:round}.letter{width:calc(var(--lr) * 2);height:calc(var(--lr) * 2);color:var(--ink);font-size:calc(var(--lr) * 1.25);font-weight:700;line-height:calc(var(--lr) * 2);text-align:center;pointer-events:none;border-radius:50%;position:absolute;top:0;left:0}.letter.on{background:var(--bg);color:var(--fg)}.overlay{z-index:10;background:#00000073;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:-25vh;bottom:-25vh;left:-25vw;right:-25vw}.dialog{background:var(--bg);text-align:center;border:2px solid #fff9;border-radius:18px;width:min(100vw - 32px,360px);padding:24px 16px 16px}.dialog h2{margin-bottom:8px;font-size:1.8rem}.dialog p{margin-bottom:16px}.dialog .btn{width:100%}.update{z-index:20;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));background:var(--ink);color:var(--fg);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:8px 8px 8px 16px;font-weight:600;display:flex;position:fixed}.update .btn{width:auto;min-height:48px;margin:0;padding:0 18px}.install{text-align:center;background:#0003;border-radius:14px;width:min(100vw - 32px,360px);margin-top:16px;padding:14px 16px 8px;font-size:.9rem;line-height:1.45}.install p{margin-bottom:12px}.install .btn{width:100%;margin:0 0 4px}.install .later{opacity:.85;min-height:44px;padding:0 16px;font-size:.95rem;text-decoration:underline}.share{vertical-align:-.2em;width:1.2em;height:1.2em}
