:root{color-scheme:dark;--bg:#10141f;--surface:#1a2130;--line:#30394c;--muted:#9eaabe;--text:#f1f4fb;--blue:#76b6ff;--orange:#f5aa68;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button,label.file-button{cursor:pointer}button{border:0}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,label:focus-within,summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}[hidden]{display:none!important}.launcher{max-width:1000px;margin:auto;padding:0 34px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:27px 0;border-bottom:1px solid var(--line);gap:15px}.brand{display:flex;align-items:center;gap:11px;font-size:13px;letter-spacing:.12em;font-weight:750}.brand small{display:block;letter-spacing:.05em;font-size:9px;color:var(--muted);font-weight:400;margin-top:4px}.connection{font-size:10px;letter-spacing:.03em;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:7px 11px;white-space:nowrap}.connection.is-offline{color:var(--orange)}.hero{text-align:center;padding:48px 0 35px}.eyebrow{font-size:9px;letter-spacing:.16em;color:var(--muted);font-weight:650;margin:0 0 12px}.title-logo{display:block;width:min(100%,430px);height:auto;margin:22px auto 4px;filter:drop-shadow(0 10px 30px #0005)}h1{font-size:37px;letter-spacing:-.055em;margin:14px 0 10px}h2{letter-spacing:-.035em}.hero-description{font-size:14px;line-height:1.8;color:var(--muted);margin:0}.facts{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:23px}.facts span{font-size:10px;background:#1b2231;border:1px solid #2a3548;border-radius:7px;padding:7px 10px}.home-tip{display:flex;gap:17px;padding:20px 22px;margin-bottom:20px;background:#203047;border:1px solid #365278;border-radius:17px;font-size:12px}.tip-symbol{font-size:26px;color:var(--blue)}.home-tip strong{display:block;margin:2px 0 7px}.home-tip p{line-height:1.75;color:#b8cbe5;margin:0}.install-card{background:linear-gradient(130deg,#202b40,var(--surface) 75%);border:1px solid var(--line);padding:29px;border-radius:23px;box-shadow:0 15px 45px #0002}.install-heading{display:flex;align-items:center;gap:15px}.install-heading>.version-tag{margin-left:auto;font-size:10px;color:var(--muted);border:1px solid #3a455c;border-radius:7px;padding:5px 7px}.install-heading .eyebrow{font-size:8px;margin-bottom:4px;color:var(--blue)}.install-heading h2{margin:0;font-size:22px}.install-heading p:last-child{font-size:10px;margin:6px 0 0;color:var(--muted)}.status-row{display:flex;align-items:center;gap:9px;margin-top:28px;font-size:13px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--orange)}.is-ready .status-dot{background:#81d7ba}.status-detail{font-size:12px;color:var(--muted);line-height:1.7;margin:9px 0 20px}.actions,.save-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:18px;border-radius:11px;font-size:12px;line-height:1.4;font-weight:650;padding:13px 18px;text-align:center}.primary{background:#378df0;color:#fff;box-shadow:0 6px 16px #1384f01a}.primary:hover:not(:disabled){background:#519df5}.secondary{background:#252e40;color:#d8e4f4;border:1px solid #3c485d}.text-button{background:none;color:var(--blue);font-size:11px;padding:10px 2px}.install-note{font-size:10px;color:#8d9ab1;line-height:1.8;margin:17px 0 0}.download-progress{margin:17px 0 23px}progress{appearance:none;-webkit-appearance:none;border:0;width:100%;height:6px;border-radius:4px;background:#35415a;overflow:hidden}progress::-webkit-progress-bar{background:#35415a}progress::-webkit-progress-value{background:var(--blue)}progress::-moz-progress-bar{background:var(--blue)}.download-progress>div{display:flex;justify-content:space-between;margin-top:8px;gap:10px;font-size:10px;color:var(--muted)}.error,.game-alert{background:#412a29;border:1px solid #794c43;color:#ffd4bd;border-radius:10px;padding:13px;font-size:12px;line-height:1.7}.save-section{padding:40px 0 32px;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.section-heading h2{font-size:23px;margin:0}.section-heading .eyebrow{margin-bottom:8px}.local-badge{font-size:9px;white-space:nowrap;color:#96d9c4;border:1px solid #38534c;border-radius:7px;padding:6px 9px}.section-description{font-size:12px;color:var(--muted);line-height:1.8;margin:14px 0}.save-status{font-size:11px;color:#c4cee0;margin:15px 0}.save-warning{font-size:10px;color:var(--muted);line-height:1.8;margin:18px 0 0}.file-button{font:inherit;font-size:12px}.help-section{padding:15px 0}.help-section details{border-bottom:1px solid var(--line);padding:18px 0}.help-section summary{display:flex;justify-content:space-between;font-size:12px;cursor:pointer;list-style:none}.help-section summary::-webkit-details-marker{display:none}.help-section summary>span{color:var(--muted)}.help-section p,.help-section ol{font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:0}.help-section ol{padding-left:20px}footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:13px;padding:24px 0 35px;font-size:10px;color:var(--muted)}footer>span{font-weight:650;letter-spacing:.08em}footer small{font-size:9px;font-weight:400;letter-spacing:0;margin-left:6px}footer p{width:100%;font-size:9px;line-height:1.7;margin:0}footer a{color:var(--blue)}.game-view{position:fixed;inset:0;width:100%;height:100%;height:100dvh;z-index:10;background:#000}.game-view iframe{border:0;width:100%;height:100%;display:block}.exit-game{position:absolute;z-index:12;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));padding:7px 10px;font-size:10px;color:#f3f7ff;background:#142033a6;border:1px solid #ffffff30;border-radius:20px;backdrop-filter:blur(5px)}.game-alert{position:absolute;z-index:13;top:50px;left:15px;right:15px;pointer-events:none}body.playing{overflow:hidden}dialog{max-width:440px;width:calc(100% - 40px);border:1px solid var(--line);border-radius:20px;padding:28px;background:#1a2334;color:var(--text)}dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}dialog h2{font-size:23px;margin:10px 0}dialog p:not(.eyebrow){font-size:12px;line-height:1.9;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}@media(min-width:800px){.launcher{max-width:850px}.hero{padding-top:52px}.install-card{padding:34px}.actions>.primary{min-width:180px}}@media(max-width:520px){.launcher{padding:0 20px}.topbar{padding:23px 0}.hero{padding:36px 0 29px}.hero>.eyebrow{font-size:8px;letter-spacing:.12em}.title-logo{max-width:330px;margin-top:20px}h1{font-size:30px}.hero-description{font-size:12px}.facts{gap:5px}.facts span{font-size:8px;padding:6px 8px}.install-card{padding:23px 20px}.install-heading{gap:11px}.install-heading>img{width:47px;height:47px}.install-heading h2{font-size:19px}.install-heading .eyebrow{font-size:7px}.status-row{font-size:12px}.status-detail{font-size:11px}.actions>.primary{flex:1}.install-note{font-size:9px}.section-heading h2{font-size:21px}.section-description{font-size:11px}.save-actions>.secondary{flex:1;gap:8px;font-size:11px;padding:12px}.local-badge{font-size:8px}.home-tip{padding:17px;gap:12px;font-size:11px}footer small{display:block;margin:5px 0 0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Reserve the native status bar, cutout and home indicator in installed iOS PWAs. */
:root{--page-gutter:34px}
.launcher{padding:env(safe-area-inset-top,0px) max(var(--page-gutter),env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(var(--page-gutter),env(safe-area-inset-left,0px))}
@media(max-width:520px){:root{--page-gutter:20px}}
.archive-steps{margin:17px 0 20px;border-top:1px solid var(--line);padding-top:14px;font-size:12px;line-height:1.8;color:var(--muted)}
.archive-steps p{margin:10px 0}.archive-steps strong{color:var(--text);margin-right:5px}.archive-steps .status-detail{font-size:10px;margin:8px 0 15px}
.game-view{inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);width:auto;height:auto}
.game-stage{position:absolute;inset:0;width:100%;height:100%}
.game-stage .exit-game{top:8px;right:8px}
.safari-download-notice{padding:14px 16px;margin:12px 0 16px;border:1px solid #365278;border-radius:12px;background:#203047;color:#b8cbe5}
.safari-download-notice strong{display:block;color:var(--text);font-size:12px;line-height:1.8}
.safari-download-notice p{font-size:11px;line-height:1.8;margin:7px 0 0}
