:root{color-scheme:dark;--ink:#f2ecda;--muted:#b1b4a9;--lime:#d9ed8a;--line:#475147;--bg:#16231e;--gold:#e9bb70}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#101d19;color:var(--ink);font-family:system-ui,sans-serif;overscroll-behavior:none}button,a{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--lime);outline-offset:3px}button.primary,button.secondary,button.quiet{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:1px solid var(--line);border-radius:9px;padding:12px 18px;font-size:13px;font-weight:750}.primary{background:var(--lime);color:#203023!important;border-color:var(--lime)!important}.secondary{background:#344637;color:#e6edcf}.quiet{color:#cbd5c1;background:transparent}button:hover:not(:disabled){filter:brightness(1.1)}p{line-height:1.6;margin-top:0}h2{margin:0;line-height:1.05;letter-spacing:-.04em}.muted{font-size:11px;line-height:1.6;color:var(--muted)}.eyebrow{font-size:9px;font-weight:850;letter-spacing:.16em;color:#d5dba7;margin:0 0 8px}.dungeon-shell{grid-template-rows:48px minmax(0,1fr);padding:8px 12px 10px;gap:8px;background:radial-gradient(ellipse at 80% 20%,#39453655,transparent 60%),#101d19}.dungeon-shell .arcade-title{font-size:14px;letter-spacing:.1em;margin-right:auto}.dungeon-shell .arcade-credit{font-size:9px;letter-spacing:0;color:#b0bfa9;margin-top:3px}.dungeon-shell .arcade-toolbar button,.dungeon-shell .arcade-toolbar a{background:#22352b;border-color:#485d47;min-height:35px;padding:7px 10px;font-size:11px}.toolbar-actions{display:flex;gap:5px}
.title-screen{display:grid;grid-template-columns:minmax(320px,.85fr) minmax(0,1.15fr);gap:38px;max-width:1240px;margin:auto;width:100%;max-height:100%;overflow:auto;align-items:center;padding:25px}.title-copy h2{font-size:clamp(37px,4.5vw,65px);margin:16px 0 23px;font-weight:850}.title-copy h2 em{font-family:Georgia,serif;font-weight:500;color:var(--lime)}.intro{font-size:14px;color:#c2c9b9;max-width:365px;margin-bottom:24px}.title-buttons{display:grid;gap:8px;max-width:380px}.lifetime-stats{display:flex;gap:20px;margin:23px 0 12px}.lifetime-stats span{font-size:10px;color:#a5b09c}.lifetime-stats strong{display:block;font-size:24px;letter-spacing:-.03em;color:#efead6;margin-bottom:3px}.title-facts{display:flex;gap:13px;font-size:8px;letter-spacing:.08em;color:#b4c396;margin-top:25px}.title-art{margin:0;min-width:0;padding:12px;background:#36452e;border:1px solid #6e7454;border-radius:19px;transform:rotate(1deg);box-shadow:0 20px 70px #0005}.title-art canvas{display:block;width:100%;border-radius:9px;aspect-ratio:4/3}.title-art figcaption{display:flex;justify-content:space-between;color:#d0d9b0;font-size:8px;font-weight:700;letter-spacing:.1em;padding:14px 4px 4px}
.game-screen{display:flex;flex-direction:column;gap:7px;min-height:0}.run-hud{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:49px;background:#213328;border:1px solid #4b5c45;border-radius:9px;padding:7px 12px}.run-hud .eyebrow{font-size:8px;margin:0 0 2px}.run-hud strong{font-size:14px}#hearts{color:#f0a68d;font-size:21px;letter-spacing:3px;line-height:1.2;max-width:270px;overflow-wrap:anywhere}.loot-hud{display:flex;gap:14px;font-size:12px;align-items:center;color:#d9dfb9}#gems{color:#a4ded3}.game-screen .arcade-play{flex:1;min-height:0}.dungeon-shell .arcade-rail{flex-direction:column}.dungeon-shell .arcade-rail #joystick-container{background:#263e31;border-color:#8eaa7b}.dungeon-shell #joystick-thumb{position:absolute;background:#d7e5a0;border-radius:50%}.dungeon-shell .arcade-rail small{color:#a4bd96;font-size:9px;letter-spacing:.15em}.dungeon-shell .arcade-rail button{width:100%!important;max-width:108px!important;min-height:52px!important;font-size:11px!important;background:#395536;border-color:#6e8756}.dungeon-shell .arcade-rail #fire{background:#e5b978;color:#30291c}.dungeon-shell .arcade-rail #jump{background:var(--lime);color:#203023}.dungeon-shell .arcade-rail #swap{font-size:10px!important;min-height:40px!important;background:#263b31}.loadout{display:flex;gap:14px;align-items:center;justify-content:space-between;min-height:42px}.loadout button{display:flex;align-items:center;gap:9px;min-height:40px;border:1px solid #667750;background:#273d2e;color:#e5dfb2;padding:7px 13px;border-radius:8px;font-size:12px}.loadout svg{width:28px;height:20px}.loadout p{font-size:10px;color:#bac9aa;margin:0;text-align:right}.loadout>span{font-size:10px;color:#a9d4bd}#ammo{font-size:11px;white-space:nowrap;color:#d9c493}.boss-hud{background:#3e3239;border:1px solid #8b6a72;border-radius:7px;padding:6px 12px}.boss-hud>div:first-child{display:flex;justify-content:space-between;gap:9px;margin-bottom:5px}.boss-hud strong{font-size:10px;letter-spacing:.1em}.boss-hud span{font-size:9px;color:#e8c2b2}.boss-track{height:5px;background:#211b21;border-radius:4px;overflow:hidden}.boss-track>span{display:block;height:100%;width:100%;background:#e9a394}
.menu-screen{max-width:1060px;width:100%;margin:auto;max-height:100%;overflow:auto;padding:20px 24px}.menu-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.menu-heading h2{font-size:38px;margin-bottom:12px}.menu-heading p:not(.eyebrow){font-size:12px;color:#bbc8ae;margin-bottom:0}.wallet{color:#addfd2;white-space:nowrap;background:#263c30;border:1px solid #567556;padding:14px 19px;border-radius:12px;font-size:19px}.upgrade-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.upgrade-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;background:#203529;border:1px solid #4d6145;padding:15px;border-radius:12px}.upgrade-icon{font-size:25px;color:#d6e69c;text-align:center}.upgrade-card h3{font-size:13px;margin:0 0 4px}.upgrade-card p{font-size:10px;color:#b7c5a9;line-height:1.5;margin:0;max-width:250px}.upgrade-card small{font-size:10px;color:#d0dd99;display:block;margin-top:6px}.upgrade-card button{font-size:11px;min-height:43px;min-width:76px;padding:8px;border-radius:8px;border:1px solid #73885c;color:#dce8bb;background:#3d5435}.upgrade-card button:not(:disabled){background:var(--lime);color:#203023}.upgrade-levels{display:flex;gap:3px;margin-top:7px}.upgrade-levels i{width:16px;height:4px;border-radius:2px;background:#485b40}.upgrade-levels i.on{background:#d5e69a}.menu-footer{display:flex;gap:12px;align-items:center;margin-top:20px}.menu-footer span{font-size:12px;color:#e7bda2}
.death-screen{display:grid;grid-template-columns:minmax(300px,470px) minmax(240px,380px);gap:60px;justify-content:center;align-items:center;min-height:0;overflow:auto;padding:25px}.death-copy h2{font-size:44px;margin:17px 0}.death-copy>p:not(.eyebrow){font-size:12px;color:#c0ccb1}.death-stats{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:18px 0;border-block:1px solid #44563d;margin:18px 0}.death-stats span{font-size:10px;color:#adbda0}.death-stats strong{display:block;font-size:22px;color:#efebce;margin-bottom:3px}.death-copy button.quiet{margin-top:8px}#sign-in{font-size:12px;color:var(--lime);display:block;margin:12px 0}.death-art{text-align:center;background:radial-gradient(ellipse,#4d633e55,transparent 70%);padding:50px 20px}.death-art>span{display:block;font-size:35px;color:#8fc6b6;transform:rotate(7deg)}.death-art strong{font-family:Georgia,serif;font-size:150px;line-height:1.3;color:#dbe49d}.death-art p{font-size:10px;letter-spacing:.17em;color:#b7c9a3;line-height:1.9}
dialog{width:min(590px,94vw);max-height:88dvh;overflow:auto;border-radius:17px;padding:26px;border:1px solid #72835b;background:#1c3226;color:var(--ink);box-shadow:0 20px 100px #0007}dialog::backdrop{background:#07120ee8}dialog h2{font-size:30px;margin:7px 0 18px}dialog p{font-size:12px;color:#c6d2b7}dialog button{margin:6px 6px 0 0}.help-options{display:flex;gap:8px;margin:14px 0}.help-options button{min-height:40px;border:1px solid #6e8257;border-radius:7px;background:#304a31;color:#e3eacb;font-size:12px;padding:8px}#scores-list{padding-left:23px}#scores-list li{padding:10px 3px;border-bottom:1px solid #435a3f;font-size:13px}#scores-list span{float:right;color:#cddd9c}[hidden]{display:none!important}
@media(max-width:850px){.title-screen{gap:20px;padding:18px}.title-copy h2{font-size:40px}.intro{font-size:12px}.title-facts{gap:8px;font-size:7px}.title-art figcaption{font-size:7px}.menu-screen{padding:15px}.upgrade-card{padding:12px;grid-template-columns:25px minmax(0,1fr) auto;gap:8px}.death-screen{gap:25px}.death-copy h2{font-size:37px}}
@media(orientation:portrait){.dungeon-shell{grid-template-rows:43px minmax(0,1fr);padding:5px 7px 8px;gap:6px}.dungeon-shell .arcade-title{font-size:10px;letter-spacing:.05em}.dungeon-shell .arcade-credit{font-size:8px}.dungeon-shell .arcade-toolbar{gap:6px}.dungeon-shell .arcade-toolbar button,.dungeon-shell .arcade-toolbar a{padding:5px 7px;font-size:9px;min-height:32px;min-width:29px}.toolbar-actions{gap:4px}#sound{display:none}.title-screen{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:23px;padding:23px 12px;overflow:auto;max-height:100%}.title-copy h2{font-size:42px;margin:13px 0 18px}.intro{max-width:none;margin-bottom:20px}.title-buttons{max-width:none}.lifetime-stats{gap:28px;margin-top:20px}.lifetime-stats strong{font-size:22px}.title-facts{margin-top:18px;font-size:8px;gap:13px}.title-art{transform:none;padding:10px}.run-hud{min-height:55px;gap:5px;padding:7px 8px;flex-wrap:wrap}.run-hud strong{font-size:11px}.run-hud .eyebrow{font-size:7px}#hearts{max-width:150px;font-size:16px;letter-spacing:1px}.loot-hud{font-size:10px;gap:10px;width:100%;justify-content:space-between}.game-screen{gap:5px}.game-screen .arcade-play{grid-template-rows:minmax(0,1fr) 108px;gap:4px}.dungeon-shell .arcade-rail{flex-direction:row;gap:5px}.dungeon-shell .arcade-left small{display:none}.dungeon-shell .arcade-right{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:54px 36px;align-content:center}.dungeon-shell .arcade-rail button{min-height:49px!important;max-width:none!important;font-size:10px!important;padding:9px!important}.dungeon-shell .arcade-rail #swap{grid-column:1/-1;min-height:32px!important;font-size:9px!important;padding:6px!important}.loadout{min-height:38px;gap:7px;flex-wrap:wrap}.loadout button{min-height:35px;font-size:10px;padding:6px 8px;gap:6px}.loadout svg{width:22px;height:16px}.loadout p{font-size:8px;flex:1;line-height:1.4}.loadout>span{display:none}.boss-hud{padding:5px 8px}.boss-hud strong{font-size:8px}.boss-hud span{font-size:8px}.menu-screen{padding:18px 8px}.menu-heading{align-items:flex-start;gap:10px;margin-bottom:17px}.menu-heading h2{font-size:31px}.menu-heading p:not(.eyebrow){font-size:10px}.wallet{font-size:14px;padding:11px;white-space:normal;max-width:110px}.upgrade-list{grid-template-columns:1fr;gap:8px}.upgrade-card{padding:13px;grid-template-columns:28px minmax(0,1fr) auto}.upgrade-card p{font-size:10px}.menu-footer{gap:8px;flex-wrap:wrap}.death-screen{display:block;padding:25px 13px}.death-copy h2{font-size:39px}.death-art{display:none}.death-stats{gap:14px}.death-copy .quiet{width:100%}dialog{padding:22px}dialog h2{font-size:28px}}
@media(orientation:landscape) and (max-height:480px){.dungeon-shell{grid-template-rows:31px minmax(0,1fr);padding:4px 7px;gap:4px}.dungeon-shell .arcade-toolbar a,.dungeon-shell .arcade-toolbar button{min-height:28px;font-size:9px;padding:4px 8px}.dungeon-shell .arcade-title{font-size:11px}.dungeon-shell .arcade-credit{font-size:8px}.title-screen{grid-template-columns:1fr 330px;padding:17px 25px;align-items:start;gap:30px}.title-copy h2{font-size:34px}.intro{margin-bottom:15px}.title-buttons{gap:6px}.title-buttons button{min-height:36px;padding:8px}.title-art{position:sticky;top:0}.lifetime-stats{margin-top:15px}.title-facts{margin-top:10px}.run-hud{min-height:35px;padding:4px 10px}.run-hud .eyebrow{font-size:6px}.run-hud strong{font-size:10px}#hearts{font-size:16px;letter-spacing:2px}.loot-hud{font-size:10px}.game-screen{gap:4px}.loadout{min-height:31px}.loadout button{min-height:28px;padding:4px 8px;font-size:10px}.loadout p{font-size:9px}.loadout svg{width:23px;height:17px}.dungeon-shell .arcade-rail button{min-height:43px!important}.dungeon-shell .arcade-rail #swap{min-height:33px!important}.boss-hud{padding:4px 9px}.boss-hud strong,.boss-hud span{font-size:8px}.menu-heading h2{font-size:28px}.upgrade-card{padding:11px}.death-screen{padding:15px;align-items:start;grid-template-columns:420px 230px;gap:25px}.death-copy h2{font-size:29px}.death-stats{margin:12px 0;padding:11px 0}.death-stats strong{font-size:18px}.death-art{padding:15px}.death-art strong{font-size:110px}}
.run-hud .eyebrow{display:block}#ammo::before{content:"";display:inline-block;width:5px;height:12px;background:#e3c383;margin-right:5px;vertical-align:-1px;clip-path:polygon(0 100%,0 28%,50% 0,100% 28%,100% 100%)}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
