:root{color-scheme:dark;--game-accent:#b5a1ff;--game-ink:#f7f8ff;--game-muted:#aab2c8;--game-panel:#121725eb;--game-line:#ffffff20;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0b1020}button{font:inherit;touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid var(--game-accent);outline-offset:4px}.game-ui{position:fixed;inset:0;z-index:10;pointer-events:none;color:var(--game-ink);font-family:Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.5;user-select:none}.game-ui [hidden]{display:none!important}.game-top{position:absolute;inset:0 0 auto;padding:14px 18px;display:flex;align-items:center;gap:16px;background:linear-gradient(#080d19ee,#080d1988,transparent);min-height:84px}.game-logo{font-size:12px;letter-spacing:.14em;font-weight:700;color:#d4d8e7;white-space:nowrap}.game-logo b{color:var(--game-accent);font-size:18px;vertical-align:middle;margin-right:7px}.game-metrics{display:flex;gap:0;margin:0 auto;min-width:0}.game-metric{min-width:100px;padding:0 20px;border-left:1px solid var(--game-line)}.game-metric:first-child{border:0}.game-metric dt{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--game-muted);font-weight:600}.game-metric dd{margin:1px 0 0;font-size:25px;font-weight:650;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:-.04em}.game-top-actions{display:flex;gap:8px}.game-icon-btn{pointer-events:auto;display:grid;place-items:center;background:#172034bd;border:1px solid var(--game-line);border-radius:12px;min-width:42px;min-height:42px;color:#e9edfa;cursor:pointer;backdrop-filter:blur(12px)}.game-icon-btn:hover{background:#29334c}.game-icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.game-overlay{position:absolute;inset:0;display:grid;place-items:center;padding:24px;pointer-events:auto;background:linear-gradient(140deg,#070c17b3,#0e152e99);backdrop-filter:blur(7px)}.game-dialog{width:min(490px,100%);max-height:100%;overflow:auto;border:1px solid #ffffff25;border-radius:24px;padding:32px;background:linear-gradient(145deg,#1c2333f7,#101625f7);box-shadow:0 30px 100px #0007;position:relative;text-align:left}.game-dialog::before{content:"";position:absolute;left:32px;right:32px;top:0;height:2px;background:linear-gradient(90deg,transparent,var(--game-accent),transparent)}.game-emblem{width:52px;height:52px;border-radius:16px;background:color-mix(in srgb,var(--game-accent) 15%,transparent);border:1px solid color-mix(in srgb,var(--game-accent) 35%,transparent);display:grid;place-items:center;color:var(--game-accent);margin-bottom:20px;transform:rotate(-5deg)}.game-emblem svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.5}.game-kicker{font-size:11px;letter-spacing:.15em;color:var(--game-accent);text-transform:uppercase;margin:0 0 9px;font-weight:700}.game-dialog h1{font-size:clamp(28px,4.5vw,43px);font-weight:650;line-height:1.06;letter-spacing:-.055em;margin:0 0 14px;color:#fff}.game-description{font-size:15px;color:#b8c2d7;line-height:1.65;margin:0 0 22px;max-width:390px}.game-instructions{display:grid;gap:10px;margin:0 0 24px;padding:16px 0;border-top:1px solid var(--game-line);border-bottom:1px solid var(--game-line)}.game-instruction{display:flex;gap:12px;align-items:center;font-size:13px;color:#c7cee0}.game-instruction kbd{display:inline-flex;justify-content:center;align-items:center;background:#ffffff0a;border:1px solid #ffffff1a;border-bottom-width:2px;min-width:64px;min-height:29px;border-radius:6px;font-size:11px;color:#eef1fc;font-family:inherit;padding:3px 8px;white-space:nowrap}.game-primary,.game-secondary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:100%;border-radius:11px;font-size:14px;font-weight:650;cursor:pointer;pointer-events:auto;transition:background .15s,transform .15s}.game-primary{background:var(--game-accent);color:#101422;border:1px solid transparent}.game-primary:hover{background:color-mix(in srgb,var(--game-accent) 83%,white);transform:translateY(-1px)}.game-secondary{margin-top:10px;color:#e4eafa;background:#ffffff08;border:1px solid var(--game-line)}.game-secondary:hover{background:#ffffff12}.game-local-note{margin:16px 0 0;font-size:11px;color:#8c98b3;text-align:center}.game-footer{position:absolute;inset:auto 18px 14px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.game-status{font-size:12px;color:#e1e8f9;background:#0e1424bd;border:1px solid #ffffff15;border-radius:9px;padding:9px 13px;max-width:460px;backdrop-filter:blur(12px)}.game-controls{display:flex;gap:8px;pointer-events:auto;flex-wrap:wrap;justify-content:flex-end;max-width:80%}.game-control{display:flex;align-items:center;justify-content:center;gap:7px;background:#121a2ddd;border:1px solid #ffffff25;border-radius:10px;min-width:56px;min-height:44px;padding:9px 13px;color:#eef3ff;font-size:12px;font-weight:600;cursor:pointer;touch-action:none;backdrop-filter:blur(12px)}.game-control:active,.game-control.is-active{background:var(--game-accent);color:#111725;border-color:var(--game-accent)}.game-control.is-strong{background:var(--game-accent);color:#101422;border-color:transparent}.game-control kbd{font-family:inherit;font-size:10px;color:#a2adc8;border:1px solid #ffffff25;border-radius:4px;min-width:21px;padding:1px 4px}.game-control.is-strong kbd{color:#30354b;border-color:#20253830}.game-progress{position:absolute;top:82px;left:20px;right:20px;height:3px;border-radius:3px;background:#ffffff12;overflow:hidden}.game-progress span{height:100%;display:block;background:var(--game-accent);transition:width .15s}.game-tools{pointer-events:auto;position:absolute;right:18px;top:80px;width:min(300px,calc(100% - 36px));max-height:calc(100% - 170px);overflow:auto;padding:20px;background:#101625f5;border:1px solid #ffffff28;border-radius:16px;box-shadow:0 16px 60px #0006;backdrop-filter:blur(20px)}.game-tools h2{font-size:15px;margin:0 0 16px}.game-tool-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;min-height:42px;border-top:1px solid #ffffff10;padding:8px 0;color:#cbd3e7}.game-tool-row button{background:#ffffff0c;color:#e5eaf8;border:1px solid var(--game-line);border-radius:7px;padding:7px 10px;cursor:pointer;font-size:12px}.game-tool-row button:disabled{opacity:.4;cursor:default}.game-tool-row small{color:var(--game-muted)}.game-result-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0}.game-result-metrics>div{padding:15px;background:#ffffff05;border:1px solid #ffffff12;border-radius:10px}.game-result-metrics span{display:block;color:var(--game-muted);font-size:11px;text-transform:uppercase;letter-spacing:.1em}.game-result-metrics strong{font-size:27px;font-weight:600;letter-spacing:-.04em}.game-ui[data-phase="ready"] .game-footer,.game-ui[data-phase="paused"] .game-footer,.game-ui[data-phase="ended"] .game-footer{visibility:hidden}.game-ui[data-phase="ready"] .game-top,.game-ui[data-phase="ended"] .game-top{opacity:.5}.game-ui[data-phase="ready"] .game-top-actions,.game-ui[data-phase="ended"] .game-top-actions{visibility:hidden}.game-ui[data-phase="paused"] .game-primary{margin-top:18px}.game-ui[data-phase="playing"] .game-overlay{display:none}.game-ui[data-phase="paused"] .game-emblem,.game-ui[data-phase="ended"] .game-instructions{display:none}.game-ui[data-phase="paused"] .game-instructions{margin-bottom:0}.game-ui[data-phase="paused"] .game-dialog h1{font-size:35px}.game-ui[data-phase="ready"] .game-result-metrics{display:none}.game-ui[data-phase="ready"] .game-secondary{display:none}.game-ui[data-phase="ended"] .game-kicker{color:var(--game-accent)}.game-ui[data-phase="paused"] .game-description{display:none}
@media(max-width:650px){.game-top{padding:12px 12px 18px;gap:8px;min-height:76px}.game-logo{display:none}.game-metrics{margin:0 auto 0 0;flex:1;justify-content:space-around}.game-metric{min-width:0;padding:0 11px}.game-metric dt{font-size:9px;letter-spacing:.06em}.game-metric dd{font-size:23px}.game-top-actions{gap:6px}.game-icon-btn{min-width:36px;min-height:36px;border-radius:10px}.game-overlay{padding:16px}.game-dialog{padding:24px;border-radius:20px;width:min(410px,100%)}.game-dialog::before{left:24px;right:24px}.game-emblem{width:43px;height:43px;border-radius:13px;margin-bottom:16px}.game-dialog h1{font-size:33px}.game-description{font-size:14px;margin-bottom:16px;line-height:1.55}.game-kicker{font-size:10px}.game-instructions{gap:9px;margin-bottom:18px;padding:13px 0}.game-instruction{font-size:12px;gap:10px}.game-instruction kbd{font-size:10px;min-width:57px;min-height:25px}.game-primary,.game-secondary{min-height:45px}.game-local-note{font-size:10px;margin-top:12px}.game-footer{left:12px;right:12px;bottom:12px;flex-direction:column;align-items:stretch;gap:8px}.game-controls{max-width:100%;justify-content:center;gap:6px}.game-control{min-height:43px;padding:9px 11px;min-width:50px;font-size:12px;border-radius:9px;flex:1;white-space:nowrap}.game-control kbd{display:none}.game-status{font-size:11px;max-width:none;padding:7px 10px;text-align:center}.game-progress{top:74px;left:12px;right:12px}.game-tools{top:74px;right:12px;width:calc(100% - 24px);max-height:calc(100% - 170px)}.game-result-metrics{margin:16px 0}.game-result-metrics strong{font-size:24px}.game-ui[data-game="luma-cafe"] .game-controls{display:grid;grid-template-columns:repeat(5,1fr)}.game-ui[data-game="luma-cafe"] .game-control{padding:7px 3px;min-width:0;font-size:10px}.game-ui[data-game="orbita-blocks"] .game-controls{display:grid;grid-template-columns:repeat(4,1fr)}.game-ui[data-game="orbita-blocks"] .game-control{min-width:0;padding:8px 4px;font-size:11px}}
@media(max-height:600px){.game-dialog{padding:20px;width:min(570px,100%)}.game-emblem,.game-local-note{display:none}.game-dialog h1{font-size:29px;margin-bottom:8px}.game-description{font-size:13px;margin-bottom:12px}.game-instructions{display:flex;flex-wrap:wrap;gap:8px 16px;padding:10px 0;margin-bottom:12px}.game-instruction{font-size:11px}.game-primary,.game-secondary{min-height:40px}.game-result-metrics{margin:12px 0}.game-top{padding:9px 12px;min-height:65px}.game-metric dd{font-size:20px}.game-footer{bottom:9px}.game-progress{top:62px}.game-status{display:none}.game-tools{top:65px;max-height:calc(100% - 135px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
.game-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:52px}.game-ui-enabled>canvas{outline:none}

@media(max-height:600px){.game-ui[data-game="luma-cafe"] .game-status{display:block}}
