@font-face{font-family:Lilita;src:url('assets/lilita-one.ttf') format('truetype');font-display:swap}
@font-face{font-family:Nunito;src:url('assets/nunito-extra-bold.ttf') format('truetype');font-weight:500 900;font-display:swap}
:root{--ink:#233e36;--cream:#fff5d8;--paper:#f4efd9;--muted:#d5dec3;--gold:#e6c779;--aqua:#7ce1ca;--danger:#c95651;--display:Lilita,Georgia,serif;--body:Nunito,'Trebuchet MS',sans-serif;--panel-shadow:0 24px 72px #102b2a66}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:#bfd5bc;color:var(--cream);font-family:var(--body);font-size:14px;font-weight:800;user-select:none;-webkit-user-select:none;touch-action:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #75e1cf;outline-offset:5px}button{transition:background .16s,transform .16s,color .16s}button:active:not(:disabled){transform:translateY(2px)}::selection{color:var(--ink);background:var(--gold)}[hidden]{display:none!important}svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}#world{position:fixed;inset:0;width:100%;height:100%;display:block;outline:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#183c33a6 0%,#183c3359 29%,transparent 59%),linear-gradient(0deg,#183c3359,transparent 22%);transition:opacity .5s}.playing .vignette{opacity:0}.topbar{position:fixed;left:40px;right:36px;top:max(25px,env(safe-area-inset-top));display:flex;align-items:center;justify-content:space-between;z-index:5;pointer-events:none}.topbar>*{pointer-events:auto}.wordmark{display:flex;align-items:center;gap:9px;color:var(--cream);text-decoration:none;font-size:12px;letter-spacing:2px;text-shadow:0 2px 8px #1c423e88}.wordmark svg{width:25px;height:25px;color:var(--gold)}.top-actions{display:flex;gap:8px}.icon-button{width:38px;height:38px;border:1px solid #fff4d744;border-radius:50%;background:#21423c80;display:grid;place-items:center}.icon-button:hover{background:#365950}.icon-button svg{width:18px;height:18px}.playing .wordmark{visibility:hidden}.playing .topbar{left:auto;top:24px}.menu{position:fixed;top:50%;left:7%;width:365px;transform:translateY(-47%);z-index:3}.title-lockup{position:relative;width:300px;text-align:center;color:var(--cream);font-family:var(--display);line-height:.84;text-shadow:0 5px 18px #173c3440}.title-relic{font-size:91px;letter-spacing:5px}.title-wilds{font-size:102px;letter-spacing:0}.title-rule{display:flex;align-items:center;gap:14px;padding:15px 28px 5px;color:var(--gold)}.title-rule i{height:1px;flex:1;background:currentColor}.title-rule svg{width:22px;height:22px}.menu h1{font-family:var(--display);font-size:26px;font-weight:400;margin:22px 0 11px;letter-spacing:.1px}.menu-intro{font-size:14px;font-weight:700;color:#ecedd7;line-height:1.65;margin:0}.hero-select{border:0;padding:0;margin:27px 0 17px}.hero-select legend{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;margin:0 0 11px;color:#e7e9ce}.hero-options{display:flex;gap:9px}.hero-option{width:106px;height:80px;border:1px solid #dfdfb742;border-radius:10px;background:#1b423b70;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}.hero-option svg{width:21px;height:21px;margin-bottom:3px;color:var(--gold)}.hero-option b{font-size:13px}.hero-option small{font-size:9px;font-weight:700;color:#dfdec8}.hero-option:hover{background:#335e50}.hero-option.selected{background:var(--paper);color:var(--ink);border-color:var(--paper)}.hero-option.selected svg{color:#4b7e6b}.hero-option.selected small{color:#5c6c52}#hero-perk{font-size:11px;color:#e5e7c8;margin:9px 0 0}.primary-button{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:25px;border:0;border-radius:8px;background:var(--gold);color:#263d32;padding:14px 22px;font-size:15px;font-weight:900;box-shadow:0 6px 20px #17382f26}.primary-button:hover{background:#f1d797}.menu-content>.primary-button{width:336px}.primary-button svg{width:20px;height:20px}.run-note{display:flex;gap:7px;align-items:center;font-size:10px;color:#e3e7cc;margin:12px 0 0}.run-note svg{width:13px;height:13px}.best-note{min-height:13px;font-size:10px;color:var(--gold);margin-top:8px}.menu-landmark{position:fixed;right:10%;bottom:19%;display:flex;align-items:center;gap:13px;z-index:2;text-shadow:0 2px 9px #153c335c}.location-line{height:37px;width:1px;background:var(--cream)}.menu-landmark b{display:block;font-size:11px;letter-spacing:2.5px}.menu-landmark small{display:block;font-size:11px;margin-top:6px;color:#f3f0d9}.menu-footer{position:fixed;bottom:25px;left:40px;right:36px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#f2f0d5;z-index:4}.menu-footer button{border:0;background:none;display:flex;gap:8px;align-items:center;padding:8px 0;font-size:11px}.menu-footer svg{width:16px;height:16px}.hud{pointer-events:none;position:fixed;inset:0;z-index:3;text-shadow:0 2px 7px #18382a66}.hud-left{position:absolute;left:30px;top:26px;width:190px}.health-label{display:flex;align-items:center;gap:8px;font-size:13px}.health-label svg{width:18px;height:18px;fill:#e47868;stroke:#ffe9ce}.health-track,.stamina-track{height:9px;margin-top:7px;background:#203f38b3;border:1px solid #fff1cc70;border-radius:7px;overflow:hidden}.health-track>div{height:100%;width:100%;background:#ed8972;transition:width .15s}.stamina-track{height:4px;margin-top:5px;border:0;background:#193d3999;width:100px}.stamina-track>div{height:100%;background:#a8e092}.hud-left p{font-size:12px;margin:10px 0 0;letter-spacing:.5px}.hud-center{position:absolute;top:22px;left:50%;transform:translateX(-50%);text-align:center}#timer{font-size:36px;font-family:var(--display);font-variant-numeric:tabular-nums;letter-spacing:2px}.hud-center p{font-size:8px;letter-spacing:1.8px;margin:4px 0 8px;color:#f8f0d1}#kill-count{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px}#kill-count svg{width:13px;height:13px}.hud-right{position:absolute;right:30px;top:79px;text-align:right}.map-button{border:1px solid #fff2d044;background:#1b403baa;border-radius:7px;display:flex;align-items:center;gap:9px;padding:9px 11px;font-size:11px;pointer-events:auto}.map-button:hover{background:#345a4e}.map-button svg{width:17px;height:17px}.shrine-count{display:flex;gap:7px;align-items:center;justify-content:flex-end;font-size:10px;margin-top:11px}.shrine-count svg{width:14px;height:14px;color:var(--gold)}kbd{font:800 9px var(--body);display:inline-flex;justify-content:center;align-items:center;border:1px solid #fff2d05e;border-radius:4px;padding:3px 5px;min-width:20px;white-space:nowrap}.xp-panel{position:absolute;top:0;left:0;right:0;display:flex;gap:9px;align-items:center;justify-content:center;font-size:9px;background:#1b3d38;line-height:14px;padding:0 15px}.xp-track{height:4px;position:absolute;top:14px;left:0;right:0;background:#23483c}.xp-track>div{height:100%;background:#aee8bc;width:0;transition:width .2s}#xp-label{color:#c1d4b7}.loadout{position:absolute;bottom:67px;left:30px;display:flex;gap:8px}.weapon-slot{width:48px;height:52px;background:#203e37db;border:1px solid #e5d5a25e;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:var(--gold)}.weapon-slot svg{width:22px;height:22px}.weapon-slot small{font-size:8px;letter-spacing:2px}.weapon-slot.evolved{color:#a4eada;border-color:#a4eada}.dash-status{position:absolute;bottom:69px;right:30px;display:flex;align-items:center;gap:8px;font-size:10px}.dash-status svg{width:17px;height:17px}.desktop-controls{position:absolute;left:30px;bottom:25px;display:flex;gap:22px;font-size:10px;color:#f1f1d8}.desktop-controls>span{display:flex;align-items:center;gap:7px}.boss-hud{position:fixed;z-index:4;top:125px;left:50%;transform:translateX(-50%);width:min(420px,65vw);text-align:center;text-shadow:0 2px 7px #18382a66}.boss-hud b{font-size:10px;letter-spacing:2.5px}.boss-hud>div{height:8px;background:#263b45;border:1px solid #e4b7a38c;margin-top:7px;border-radius:5px;overflow:hidden}.boss-hud span{display:block;height:100%;background:#ce7873;width:100%}.interaction{position:fixed;bottom:130px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:7px;background:#213e36eb;color:var(--cream);font-size:12px;white-space:nowrap}.interaction kbd{color:var(--gold);font-size:12px}.interaction button{display:none;background:var(--gold);color:var(--ink);border:0;padding:6px 10px;border-radius:5px}.toast{position:fixed;top:110px;left:50%;transform:translate(-50%,-8px);z-index:20;background:#203e37eb;color:var(--cream);padding:12px 22px;border-radius:7px;font-size:12px;max-width:85vw;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}#damage-flash{position:fixed;inset:0;pointer-events:none;box-shadow:inset 0 0 110px #dc564b;opacity:0;z-index:2}.realm-announcement{position:fixed;left:50%;top:34%;transform:translate(-50%,5px);text-align:center;pointer-events:none;opacity:0;transition:opacity .6s,transform .6s;width:90%;z-index:4;text-shadow:0 3px 16px #112f3680}.realm-announcement.visible{opacity:1;transform:translate(-50%,0)}.realm-announcement>span{font-family:Georgia,serif;font-size:44px;letter-spacing:2px;display:block}.realm-announcement small{display:block;margin-top:12px;font-size:12px;font-style:italic}.modal{border:0;border-radius:14px;background:var(--paper);color:var(--ink);padding:38px;box-shadow:var(--panel-shadow);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;text-align:center;touch-action:pan-y}.modal::backdrop{background:#102e2bd1}.modal h2{font-family:Georgia,serif;font-weight:400;font-size:32px;letter-spacing:-.7px;margin:12px 0}.modal>p{color:#5a6b5b;font-size:13px;line-height:1.6;margin:10px auto 26px}.modal-ornament{color:#8c793e;display:inline-flex;justify-content:center}.modal-ornament svg{width:31px;height:31px}.modal-hint{display:block;font-size:10px;color:#596d5a;line-height:1.7;margin-top:20px}.upgrade-modal{width:850px}.upgrade-options{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;text-align:left}.upgrade-choice{border:1px solid #b9c4a7;border-radius:9px;background:#e9ead5;color:var(--ink);min-height:215px;padding:20px 17px;position:relative;text-align:left;display:flex;flex-direction:column;align-items:flex-start}.upgrade-choice:hover{background:#dfe7cd;border-color:#5a8573;transform:translateY(-3px)}.upgrade-choice>svg{width:35px;height:35px;color:#467c6b;margin-bottom:20px}.upgrade-choice .upgrade-kind{font-size:8px;letter-spacing:1.6px;color:#5d705c}.upgrade-choice h3{font-family:var(--display);font-size:23px;font-weight:400;margin:7px 0 8px}.upgrade-choice p{font-size:11px;font-weight:700;line-height:1.55;margin:0;color:#536852}.upgrade-choice .rank{margin-top:auto;padding-top:14px;font-size:9px;color:#6c794f}.upgrade-choice kbd{position:absolute;top:17px;right:15px;border-color:#acb49a;color:#6d7b5e}.upgrade-choice.evolution{background:#dce7ce;border-color:#74a48d}.compact-modal{width:420px}.compact-modal>.primary-button,.end-modal>.primary-button{width:100%;margin-top:27px}.text-button{display:block;margin:15px auto 0;background:none;border:0;color:#4e6b57;padding:5px 8px;font-size:12px;text-decoration:underline;text-underline-offset:4px}.text-button:hover{color:#263e31}.close-button{position:absolute;right:16px;top:16px;display:grid;place-items:center;border:0;border-radius:50%;width:30px;height:30px;color:#49634e;background:#dfe4cc}.close-button:hover{background:#cdd8b9}.close-button svg{width:16px;height:16px}.map-modal{width:820px;padding:30px 35px}.map-modal h2{margin-bottom:8px}.map-modal>p{margin:8px 0 5px}.realm-map{position:relative;height:360px;margin:5px auto 0;max-width:650px}.realm-map>svg{position:absolute;inset:0;width:100%;height:100%;stroke:#b9c2a3;stroke-width:1;pointer-events:none}.realm-node{position:absolute;transform:translate(-50%,-50%);background:transparent;border:0;padding:6px;width:155px;text-align:center;color:var(--ink)}.realm-node:active{transform:translate(-50%,-50%)!important}.realm-node>.realm-orb{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;background:var(--realm-color);margin:0 auto 7px;border:3px solid var(--paper);outline:1px solid #7e917c}.realm-node.current>.realm-orb{outline:3px solid #477a66;outline-offset:3px}.realm-orb svg{width:23px;height:23px;color:#263f3c}.realm-node b{display:block;font-size:11px}.realm-node small{display:block;font-size:8px;color:#5c7056;margin-top:3px}.map-legend{display:flex;gap:7px;align-items:center;justify-content:center;font-size:9px;flex-wrap:wrap;color:#4e674f}.map-legend>span{display:flex;align-items:center;gap:4px}.map-legend>svg{width:13px;height:13px;margin-left:10px}.map-dot{height:7px;width:7px;border:1px solid #778d6c;border-radius:50%;display:inline-block}.map-dot.current{background:#477a66}.help-modal{width:760px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px 34px;text-align:left;margin:30px 0}.help-grid>div>svg{color:#6d8d5b;width:25px;height:25px}.help-grid h3{font-family:var(--display);font-size:20px;font-weight:400;margin:8px 0}.help-grid p{font-size:12px;font-weight:700;line-height:1.6;color:#536852;margin:0}.key-guide{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;font-size:10px;line-height:2}.key-guide kbd{border-color:#97aa88;color:#3b5c41}.secondary-button{padding:11px 20px;background:var(--ink);color:var(--cream);border:0;border-radius:7px;margin-top:15px}.secondary-button:hover{background:#426c56}.end-modal{width:510px}.end-stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:24px;gap:14px}.end-stats strong{font-family:var(--display);font-size:30px;font-weight:400;display:block}.end-stats span{display:block;font-size:9px;color:#5c7056;margin-top:5px}.end-record{font-size:11px!important;color:#617848!important;margin:20px 0 0!important}.error-screen{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;background:var(--paper);color:var(--ink);z-index:100;padding:30px;text-align:center}.error-screen h1{font:40px Georgia,serif}.error-screen p{max-width:500px;line-height:1.7}.error-screen button{margin-top:20px}.touch-controls{position:fixed;inset:0;pointer-events:none;z-index:6}.joystick{position:absolute;left:32px;bottom:55px;width:112px;height:112px;border-radius:50%;border:1px solid #f8edc766;background:#234f3c4d;pointer-events:auto;touch-action:none}.joystick>div{position:absolute;left:34px;top:34px;width:44px;height:44px;border-radius:50%;background:#f1edd4aa;border:1px solid #fff6d9aa}.touch-actions{position:absolute;right:25px;bottom:56px;display:flex;align-items:flex-end;gap:12px}.touch-actions button{width:65px;height:65px;border-radius:50%;background:#234a3db3;border:1px solid #f7edca77;pointer-events:auto;touch-action:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.touch-actions small{font-size:8px}.touch-actions svg{width:23px;height:23px}
@media(hover:none),(pointer:coarse){.desktop-controls,.dash-status{display:none}.touch-controls:not([hidden]){display:block}.interaction button{display:block}.interaction>kbd{display:none}.loadout{bottom:188px}.interaction{bottom:185px}.map-button kbd{display:none}}
@media(max-width:800px){.topbar{left:22px;right:20px;top:20px}.menu{left:7%;width:330px}.title-relic{font-size:79px}.title-wilds{font-size:89px}.title-lockup{width:270px}.menu h1{font-size:24px;margin-top:16px}.hero-select{margin-top:20px}.menu-landmark{right:6%;bottom:18%}.menu-footer{left:22px;right:20px}.hud-right{right:20px}.hud-left{left:20px;width:150px}.desktop-controls{left:20px;gap:12px;font-size:9px}.loadout{left:20px}.dash-status{right:20px}.upgrade-modal{padding:25px}.modal h2{font-size:28px}.upgrade-choice{padding:17px 13px}.upgrade-choice h3{font-size:21px}.realm-announcement>span{font-size:35px}}
@media(max-width:560px){.menu{left:24px;top:49%;transform:translateY(-44%);width:calc(100% - 48px)}.title-lockup{width:220px;text-align:center}.title-relic{font-size:64px}.title-wilds{font-size:73px}.title-rule{padding:12px 20px 0}.title-rule svg{width:17px;height:17px}.menu h1{font-size:22px;margin:18px 0 9px}.menu-intro{font-size:12px;line-height:1.65}.hero-select{margin:21px 0 15px}.hero-select legend{font-size:9px;margin-bottom:9px}.hero-option{height:67px;width:calc((100vw - 66px)/3);max-width:110px}.hero-option svg{width:17px;height:17px;margin-bottom:1px}.hero-option small{font-size:8px}.hero-option b{font-size:12px}.menu-content>.primary-button{width:min(348px,100%);min-height:49px;font-size:14px}.run-note{font-size:9px}.menu-landmark{right:22px;bottom:13%;display:none}.menu-footer{font-size:9px;bottom:14px;left:24px;right:24px}.menu-footer>span{display:none}.menu-footer button{font-size:10px}.wordmark{font-size:10px;letter-spacing:1.4px}.wordmark svg{width:20px;height:20px}.icon-button{width:32px;height:32px}.top-actions{gap:6px}.icon-button svg{width:15px;height:15px}#fullscreen-button{display:none}.hud-left{left:15px;top:26px;width:115px}.health-label{font-size:11px}.health-track{height:7px}.hud-left p{font-size:10px}.hud-center{top:28px}#timer{font-size:28px}.hud-center p{font-size:6px;letter-spacing:.8px;max-width:120px;line-height:1.6}.hud-right{top:82px;right:15px}.map-button{padding:7px;font-size:9px;gap:5px}.map-button svg{width:14px;height:14px}.shrine-count{font-size:8px;gap:3px}.shrine-count svg{width:11px;height:11px}.playing .topbar{right:15px;top:28px}.loadout{left:15px;gap:5px}.weapon-slot{width:36px;height:42px}.weapon-slot svg{width:19px;height:19px}.weapon-slot small{font-size:7px;letter-spacing:1px}.boss-hud{top:142px;width:75vw}.boss-hud b{font-size:8px}.modal{padding:28px 22px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.modal h2{font-size:26px;letter-spacing:-.6px}.modal>p{font-size:12px;margin-bottom:20px}.upgrade-modal{padding:25px 18px}.upgrade-options{grid-template-columns:1fr;gap:9px}.upgrade-choice{min-height:96px;display:grid;grid-template-columns:32px 1fr;column-gap:13px;padding:13px 16px}.upgrade-choice>svg{grid-column:1;grid-row:1/5;margin:10px 0 0;width:28px;height:28px}.upgrade-choice .upgrade-kind{font-size:7px;grid-column:2}.upgrade-choice h3{font-size:20px;margin:3px 0;grid-column:2}.upgrade-choice p{font-size:10px;grid-column:2;padding-right:9px}.upgrade-choice .rank{padding-top:5px;grid-column:2;font-size:8px}.upgrade-choice kbd{top:12px;right:12px;font-size:8px}.modal-hint{font-size:9px;margin-top:15px}.map-modal{padding:28px 12px}.map-modal h2{font-size:24px}.map-modal>p{font-size:11px;padding:0 16px}.realm-map{height:330px}.realm-node{width:105px}.realm-node b{font-size:9px}.realm-node small{font-size:7px}.realm-node>.realm-orb{width:40px;height:40px}.realm-orb svg{width:19px;height:19px}.map-legend{font-size:8px;gap:5px;line-height:1.7}.help-grid{gap:20px 14px;margin:20px 0}.help-grid h3{font-size:18px}.help-grid p{font-size:11px}.key-guide{font-size:9px;gap:6px 12px}.end-stats{gap:8px}.end-stats strong{font-size:26px}.end-stats span{font-size:8px}.realm-announcement>span{font-size:30px}.realm-announcement small{font-size:10px}.interaction{font-size:10px;gap:6px;max-width:95vw}.toast{font-size:11px;padding:11px 15px;top:120px}.joystick{left:23px;bottom:43px}.touch-actions{right:20px;bottom:45px}}
@media(max-height:700px) and (min-width:561px){.menu{transform:translateY(-45%)}.title-relic{font-size:63px}.title-wilds{font-size:71px}.title-lockup{width:215px}.title-rule{padding:10px 20px 0}.menu h1{font-size:22px;margin-top:15px}.hero-select{margin-top:15px;margin-bottom:12px}.hero-option{height:65px}.menu-intro{font-size:12px}.menu-content>.primary-button{min-height:46px}.run-note{font-size:9px}}
@media(max-height:640px) and (max-width:560px){.menu{top:49%}.title-lockup{width:185px}.title-relic{font-size:52px}.title-wilds{font-size:61px}.title-rule{padding-top:8px}.menu h1{margin-top:12px;font-size:20px}.hero-select{margin-top:12px;margin-bottom:10px}.hero-option{height:57px}.menu-intro{font-size:11px}.best-note{margin-top:4px}.run-note{margin-top:8px}.menu-footer{bottom:6px}}
@media(max-width:560px){body:not(.playing) .vignette{background:linear-gradient(90deg,#173d32b8 0%,#173d3280 48%,#173d3220 100%),linear-gradient(0deg,#173d3270,transparent 40%)}.menu-intro,.hero-select legend,#hero-perk,.run-note{color:#fff8df}.hero-option small{color:#f6f1db}.hero-option.selected small{color:#4a624c}}
.hud-left{padding:11px 14px;background:#1b3e35ed;border-radius:9px;width:218px;left:18px;top:23px}.hud-center{background:#1b3e35ed;border-radius:9px;padding:5px 16px 8px}.shrine-count{background:#1b3e35ed;padding:6px 9px;border-radius:5px;display:inline-flex}.desktop-controls,.dash-status{background:#1b3e35ed;border-radius:6px;padding:8px 11px}.desktop-controls{left:18px;bottom:18px}.dash-status{right:20px;bottom:63px}.realm-announcement{width:max-content;max-width:90vw;padding:18px 26px;background:#1b3e35ed;border-radius:9px;text-shadow:none}.realm-announcement>span{font-size:38px}.boss-hud{top:178px;background:#1b3e35ed;padding:10px 14px;border-radius:7px}.toast{top:128px}.hud-center p{color:#fff5d8}.shrine-count{color:#fff5d8}
@media(max-width:800px){.hud-left{width:178px;left:10px;padding:10px 12px}.realm-announcement>span{font-size:32px}}
@media(max-width:560px){.hud-left{width:124px;left:7px;top:26px;padding:9px 10px}.hud-center{padding:3px 9px 7px}.hud-center p{max-width:104px}.health-label{font-size:10px}.hud-left p{font-size:9px}.hud-right{top:85px}.shrine-count{font-size:8px;padding:5px 7px}.realm-announcement{padding:14px 18px;width:90vw}.realm-announcement>span{font-size:28px}.realm-announcement small{font-size:10px;line-height:1.6}.toast{top:137px}.boss-hud{top:191px;padding:8px 11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ZeldaBonk: pixel-art survivors interface, following the inspected reference captures. */
:root{--ink:#29283e;--paper:#fffdf8;--cream:#fffdf4;--gold:#edca76;--panel-shadow:0 22px 65px #1b23465e}
#world{image-rendering:pixelated}.hero-option{height:112px;background:#243c49c9}.hero-option>img{width:41px;height:55px;image-rendering:pixelated;object-fit:contain;margin:-4px 0 0}.hero-option.selected{background:#fffaf0;color:#2f3549}.hero-option b{font-family:var(--display);font-size:17px;font-weight:400}.hero-option small{font-size:9px}.hero-option.selected small{color:#57606c}.hero-select{margin-top:19px}.title-relic{font-size:90px;color:#f3d378;letter-spacing:2px}.title-wilds{font-size:112px;color:#fffdf8;letter-spacing:4px}.menu h1{margin-top:18px}.menu-footer>span{font-size:9px}
.playing .topbar{top:auto;bottom:23px;right:25px}.playing .icon-button{background:#292c46df;border-color:#fff8e0aa}.hud{text-shadow:none;color:#2c2a42}.hud-left{background:#fffcf4f5;box-shadow:0 6px 22px #20333830;width:218px;top:25px;left:22px;padding:12px 15px;border-radius:15px}.player-profile{display:flex;align-items:center;gap:11px;margin-bottom:9px}.player-profile img{width:45px;height:58px;object-fit:contain;image-rendering:pixelated;margin:-6px 0}.player-profile strong{font:23px var(--display);display:block}.player-profile small{font-size:9px;color:#5d6178;display:block;margin-top:4px}.health-label{font-size:10px}.health-track{height:7px;border-color:#9896ad;background:#d9dae5}.health-track>div{background:#82b976}.stamina-track{background:#d9dae5}.stamina-track>div{background:#6db5c9}.hud-left p{font-size:10px;color:#5b5b74;margin-top:8px}.hud-center{top:27px;background:#fffcf4f5;color:#302d46;border-radius:18px;padding:7px 26px 10px;box-shadow:0 6px 22px #20333830}.hud-center p{color:#5e6177;font-size:8px}.hud-center #timer{font-size:34px}.hud-right{top:24px;right:23px;display:flex;flex-direction:column;align-items:flex-end}.hud-right>canvas{width:156px;height:156px;border-radius:50%;image-rendering:pixelated;margin-bottom:9px;filter:drop-shadow(0 4px 10px #19223a44)}.map-button{color:#34334c;background:#fffaf0f5;border:0;box-shadow:0 4px 16px #20333820}.map-button:hover{background:#f1e7ca}.map-button kbd{border-color:#aaa7bd}.shrine-count{background:#302e48ed;color:#fffaf0;padding:7px 11px;border-radius:8px}.streak{position:absolute;right:30px;top:290px;text-align:right;color:#fffdf4;text-shadow:0 3px 0 #36334f,2px 0 0 #36334f,-2px 0 0 #36334f}.streak small{font-size:10px;letter-spacing:2px;display:block}.streak strong{font:55px var(--display);display:block;margin-top:4px}.loadout{bottom:72px;left:22px;gap:7px}.weapon-slot{width:68px;height:74px;background:#fafaffef;color:#393953;border:0;border-radius:12px;box-shadow:0 4px 15px #24334a26}.weapon-slot svg{width:24px;height:24px;color:#5485a0}.weapon-slot strong{font-size:8px;max-width:62px;text-align:center;line-height:1.2}.weapon-slot small{font-size:8px;letter-spacing:0}.weapon-slot.evolved{background:#f7e2a9;color:#614b27}.ultimate-button{position:absolute;bottom:69px;left:328px;width:79px;height:79px;border:0;background:#34334ce8;border-radius:50%;pointer-events:auto;color:#fffaf0;padding:0;opacity:1!important;box-shadow:0 4px 13px #20333838}.ultimate-button>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.ultimate-track,.ultimate-charge{fill:none;stroke-width:4;stroke:#9f9db4}.ultimate-charge{stroke:#edd174;stroke-dasharray:170;stroke-dashoffset:170;transition:stroke-dashoffset .15s}.ultimate-symbol{font:30px var(--display);display:block;margin-top:2px}.ultimate-button small{position:absolute;left:50%;top:-20px;transform:translateX(-50%);white-space:nowrap;font-size:8px;padding:3px 7px;background:#34334ced;border-radius:4px}.ultimate-button.ready{background:#a88034}.ultimate-button.ready .ultimate-charge{stroke:#fff0b1}.aim-button{position:absolute;right:30px;bottom:111px;background:#302e48ed;color:#fffaf0;padding:7px 10px;border:0;border-radius:6px;font-size:10px;pointer-events:auto;display:flex;gap:7px;align-items:center}.dash-status,.desktop-controls{background:#302e48e8;color:#fffaf0}.desktop-controls{bottom:22px;padding:7px 11px}.player-health{position:absolute;transform:translateX(-50%);width:86px;height:12px;background:#5a5974;border:2px solid #fffdf8;border-radius:8px;box-shadow:0 2px 6px #17233555;overflow:hidden}.player-health>span{display:block;height:100%;background:#83d08a;width:100%}.player-health>b{position:absolute;inset:-1px 0 0;font-size:9px;color:#fff;line-height:10px;text-align:center;text-shadow:1px 1px 0 #33464d,-1px -1px 0 #33464d}.xp-panel{background:#302e48;color:#fff9e9}.xp-track{background:#605d79}.xp-track>div{background:#aad76f}.toast,.interaction{background:#34324deb;color:#fffaf0}.boss-hud{top:152px;background:#34324ded;color:#fffaf0}.realm-announcement{background:#34324deb;color:#fffaf0}.upgrade-modal h2{font-family:var(--display);font-size:38px;color:#33314d}.upgrade-choice{border:0;box-shadow:0 4px 17px #28385520;background:#fff;text-align:left;border-radius:15px;overflow:hidden;padding-top:86px;min-height:260px}.upgrade-choice>svg{position:absolute;left:0;right:0;top:0;width:100%;height:73px;padding:17px;background:#b8d1e5;color:#3a628b;margin:0}.upgrade-choice:nth-child(2)>svg{background:#ded8b8;color:#766235}.upgrade-choice:nth-child(3)>svg{background:#c4dfbe;color:#4a7653}.upgrade-choice:hover{background:#fbf8eb}.upgrade-choice h3{font-size:24px}.upgrade-choice .upgrade-kind{color:#626079}.upgrade-choice p{color:#5a5a70;font-size:12px}.upgrade-choice kbd{z-index:1;background:#ffffffd9;color:#45445e;border:0}.upgrade-choice .rank{color:#65617b}.upgrade-actions{display:flex;justify-content:center;gap:10px;margin-top:19px}.upgrade-actions button{border:0;border-radius:20px;background:#dceaf4;color:#3c5470;padding:9px 15px;font-size:11px}.upgrade-actions button:nth-child(2){background:#e9e6dc;color:#5f5b54}.upgrade-actions button:nth-child(3){background:#f4d9d5;color:#894d4d}.banish-mode .upgrade-choice{outline:2px solid #cb8e82}.modal{background:#fffdf8}.modal>p{color:#626178}.modal-hint{color:#65637a}
@media(max-width:800px){.hud-left{width:185px}.hud-center{padding:7px 17px 9px}.hud-right>canvas{width:130px;height:130px}.desktop-controls{gap:12px;font-size:9px}.desktop-controls>span:last-child{display:none}.weapon-slot{width:59px}.ultimate-button{left:290px}.hero-option{height:105px}.title-relic{font-size:76px}.title-wilds{font-size:96px}}
@media(max-width:560px){.title-relic{font-size:64px}.title-wilds{font-size:78px;letter-spacing:1px}.hero-option{height:95px}.hero-option>img{width:35px;height:47px;margin-top:-3px}.hero-option b{font-size:16px}.hero-option small{font-size:8px}.hero-select{margin:15px 0 12px}.hud-left{left:9px;top:26px;width:126px;padding:8px 10px;border-radius:12px}.player-profile{gap:5px;margin-bottom:5px}.player-profile img{width:29px;height:41px;margin:-2px 0}.player-profile strong{font-size:17px}.player-profile small{font-size:7px;max-width:60px;line-height:1.3;margin-top:2px}.hud-left p{font-size:8px}.hud-center{top:27px;padding:5px 8px 7px;width:109px;left:50%}.hud-center #timer{font-size:27px;letter-spacing:1px}.hud-center p{font-size:6px;line-height:1.4}.hud-right{top:26px;right:9px}.hud-right>canvas{width:91px;height:91px;margin-bottom:6px}.map-button{font-size:8px;padding:6px 8px;gap:4px}.shrine-count{font-size:7px;padding:5px 7px;margin-top:6px}.streak{top:214px;right:15px}.streak strong{font-size:38px}.streak small{font-size:7px}.playing .topbar{top:auto;bottom:192px;right:14px}.loadout{bottom:184px;left:14px;gap:4px}.weapon-slot{width:39px;height:49px;border-radius:8px}.weapon-slot svg{width:18px;height:18px}.weapon-slot strong{display:none}.weapon-slot small{font-size:7px}.ultimate-button{bottom:119px;left:calc(50% - 34px);width:68px;height:68px}.ultimate-symbol{font-size:25px}.ultimate-button small{font-size:7px;top:-16px}.aim-button{bottom:158px;right:15px;font-size:8px;padding:6px 8px}.aim-button kbd{font-size:7px;min-width:15px;padding:2px}.boss-hud{top:206px;padding:8px 12px}.toast{top:157px;max-width:85vw;font-size:10px}.upgrade-modal h2{font-size:28px}.upgrade-choice{min-height:100px;padding:13px 14px;grid-template-columns:38px 1fr}.upgrade-choice>svg{position:static;width:34px;height:47px;padding:5px;border-radius:7px;margin:7px 0}.upgrade-choice p{font-size:10px}.upgrade-choice h3{font-size:21px}.upgrade-actions{gap:6px;flex-wrap:wrap;margin-top:15px}.upgrade-actions button{font-size:9px;padding:8px 11px}.menu-footer>span{display:none}.player-health{width:68px;height:11px}.player-health>b{font-size:8px;line-height:9px}}
@media(max-height:700px){.hero-option{height:77px}.hero-option>img{height:35px;width:27px}.title-relic{font-size:57px}.title-wilds{font-size:73px}.hero-select{margin-top:12px}.menu h1{margin-top:12px}.hero-option b{font-size:14px}}
@media(max-width:379px){.hud-left{left:7px;width:102px;padding:8px}.player-profile{gap:4px}.player-profile img{width:24px;height:34px}.player-profile strong{font-size:16px}.player-profile small{font-size:6.5px}.hud-center{width:90px;padding:5px 6px 7px}.hud-center #timer{font-size:25px}.hud-center p{font-size:5.5px;letter-spacing:.5px}.hud-right{right:7px}.hud-right>canvas{width:78px;height:78px}.health-label{font-size:9px;gap:5px}.health-label svg{width:15px;height:15px}.hud-left p{font-size:7.5px}.joystick{left:16px;width:96px;height:96px}.joystick>div{left:26px;top:26px}.loadout{bottom:192px}.touch-actions{right:16px;gap:9px}.touch-actions button{width:60px;height:60px}.map-button{font-size:7px;padding:5px 7px}}

/* Campaign menus share the existing porcelain and indigo materials. */
:root{color-scheme:light}
input,select{font:inherit;color:var(--ink);accent-color:#648e80;caret-color:var(--ink)}
input:focus-visible,select:focus-visible{outline:3px solid #397668;outline-offset:4px}
select{padding:7px 27px 7px 10px;border:1px solid #b7b4c3;border-radius:7px;background:#fffdf8}
.modal{scrollbar-width:thin;scrollbar-color:#9e9bb0 #f0eee8;touch-action:pan-y;overscroll-behavior:contain}
.modal a{color:#345a85;text-underline-offset:3px}.modal h2{text-wrap:balance}
.modal[open]{animation:dialog-arrive .22s cubic-bezier(.16,1,.3,1)}
@keyframes dialog-arrive{from{opacity:.7;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
.run-setup{display:flex;align-items:center;gap:12px;margin-top:17px;width:336px}
.mode-select{display:flex;border-radius:8px;padding:3px;background:#292c46d9;flex:1}
.mode-select button{border:0;background:none;padding:9px 10px;flex:1;font-size:11px;border-radius:6px;color:#fffdf4}
.mode-select button.selected{background:#fffaf0;color:#393953}
.difficulty-select{font-size:9px;display:grid;gap:3px;color:#fff8df}.difficulty-select select{padding:6px;font-size:11px}
.menu{max-height:calc(100dvh - 145px);width:383px}
.menu .title-lockup{width:250px}.menu .title-relic{font-size:64px}.menu .title-wilds{font-size:80px}
.menu h1{font-size:24px;margin:12px 0 7px}.menu-intro{font-size:12px;line-height:1.5}
.hero-select{margin:14px 0 11px}.hero-option{height:83px}.hero-option>img{height:38px;width:31px}
.hero-select legend{margin-bottom:6px}.menu-content>.primary-button{min-height:48px;padding:11px 17px}
.start-secondary{margin-top:6px;background:#fffaf0;color:#36354b;min-height:38px!important;font-size:12px;padding:9px 17px!important}
.checkpoint-summary{font-size:10px;margin:7px 0;color:#fff8df}
.camp-nav{display:flex;gap:6px;margin-top:10px;width:336px}.camp-nav button{flex:1;border:0;background:#292c46e8;color:#fffdf4;border-radius:7px;padding:8px 4px;font-size:10px;display:grid;gap:3px}.camp-nav button:hover{background:#4f526b}.camp-nav span{font-size:8px;color:#f1d895}
.run-note{font-size:9px;line-height:1.5;max-width:336px;margin-top:8px}.best-note{font-size:9px;margin:5px 0 0}
.checkpoint-indicator{font-size:8px;max-width:170px;color:#fffaf0;background:#302e48ed;padding:4px 7px;border-radius:4px;margin-top:5px}
.ultimate-button{left:calc(30px + var(--weapon-count,1)*75px)}
.boss-hud small{display:block;font-size:8px;letter-spacing:1.5px;margin:4px 0 8px}
.heroes-modal{width:min(850px,94vw)}.hero-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.roster-card{position:relative;display:flex;align-items:center;flex-direction:column;padding:15px 10px;border:0;border-radius:12px;background:#eeeff3;color:#393953;text-align:center;min-width:0}
.roster-card.selected{outline:3px solid #638b78;outline-offset:-3px;background:#edf2df}.roster-card.locked{background:#e8e6e9;color:#686477}.roster-card.locked img{filter:grayscale(.8)}
.roster-card img{width:57px;height:72px;object-fit:contain;image-rendering:pixelated}.roster-card strong{font:24px var(--display);margin-top:6px}.roster-card span{font-size:9px;margin:3px 0 8px}.roster-card small{font-size:9px}.roster-card p{font-size:10px;line-height:1.5;margin:9px 0}.roster-card>b{font-size:9px;color:#355f53;margin-top:12px}.roster-card.locked>b{color:#68566a}
.camp-modal{width:min(650px,94vw)}#camp-balance{display:block;color:#6b542b;margin-top:8px}
.camp-upgrade{display:grid;grid-template-columns:30px 1fr auto;gap:16px;align-items:center;text-align:left;padding:15px 0;border-bottom:1px solid #dedbe2}
.camp-upgrade>svg{color:#648b7b}.camp-upgrade h3{font:20px var(--display);margin:0}.camp-upgrade p{font-size:11px;line-height:1.5;color:#5e5a71;margin:5px 0}.camp-upgrade small{font-size:9px;color:#69647b}.camp-upgrade button{padding:10px 12px;font-size:10px;min-width:90px}
.journal-modal{width:min(730px,94vw)}.journal-tabs{display:flex;gap:5px;margin:20px 0}.journal-tabs button{flex:1;border:0;border-radius:7px;background:#eeedf1;color:#55516b;padding:10px 5px;font-size:11px}.journal-tabs button.selected{background:#34324d;color:#fffaf0}
.journal-row{display:flex;gap:14px;align-items:center;min-height:76px;text-align:left;border-bottom:1px solid #dedbe2;padding:8px 0}.journal-row>img{width:48px;height:55px;object-fit:contain;image-rendering:pixelated}.journal-row>svg{margin:0 13px;width:22px;color:#5e8177}.journal-row>div{flex:1;min-width:0}.journal-row strong{display:block;font:20px var(--display)}.journal-row small{display:block;font-size:10px;line-height:1.5;color:#676078;margin-top:4px}.journal-row>span{font-size:9px;text-align:right;color:#5f566f;max-width:145px}
.inventory-modal{width:min(680px,94vw)}.inventory-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:22px 0}.inventory-stats>div{display:grid;gap:5px}.inventory-stats strong{font:25px var(--display)}.inventory-stats span{font-size:9px;color:#696078}.inventory-item{display:flex;align-items:center;gap:13px;text-align:left;padding:13px 0;border-top:1px solid #dedbe2}.inventory-item>svg{color:#668979}.inventory-item strong{font:20px var(--display)}.inventory-item p{font-size:10px;color:#665f75;line-height:1.5;margin:4px 0}
.settings-modal{width:min(500px,94vw)}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;padding:19px 0;border-bottom:1px solid #dedbe2;font-size:13px}.setting-row input[type=checkbox]{width:22px;height:22px}.setting-row input[type=range]{width:155px}.setting-row select{max-width:210px;font-size:11px}.save-actions{display:flex;gap:10px;margin:24px 0 16px}.save-actions button{flex:1;font-size:11px;padding:11px}.credits-modal p{line-height:1.8;text-align:left;font-size:12px}
.end-unlocks,#end-unlocks{color:#486c5d;font-size:13px;margin:15px 0}.modal .text-button{min-height:39px}
.inventory-stats>span{display:grid;gap:6px;font-size:10px;color:#696078}.inventory-stats b{font:24px var(--display);color:var(--ink)}
.inventory-modal h3{font:24px var(--display);margin:28px 0 8px}.inventory-modal>p,.inventory-modal #inventory-damage{font-size:12px;line-height:1.6;color:#5f566f}.inventory-modal .journal-row small{font-size:12px}.inventory-modal .journal-row>span{font-size:11px;flex-shrink:0}.inventory-stats{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}.damage-source{display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:9px 0;font-size:12px}.damage-source b{font-variant-numeric:tabular-nums}.damage-source meter{grid-column:1/-1;appearance:none;width:100%;height:8px;border:0;background:#ddd8e4;border-radius:4px;overflow:hidden}.damage-source meter::-webkit-meter-bar{border:0;background:#ddd8e4}.damage-source meter::-webkit-meter-optimum-value{background:#527969}.damage-source meter::-moz-meter-bar{background:#527969}
.training-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.training-fields label,.training-rival{display:grid;gap:7px;min-width:0;font-size:12px;color:#5f566f}.training-fields select,.training-fields input,.training-rival select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;border:1px solid #c9c3d1;border-radius:8px;background:#fffdf6;color:var(--ink);padding:8px 10px;font:inherit}.training-invulnerable{display:flex;align-items:center;gap:9px;font-size:12px}.training-invulnerable input{accent-color:#527969;width:18px;height:18px}.training-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:16px 0}#training-form>p,#training-status{font-size:12px;line-height:1.6;color:#5f566f}#training-status{min-height:40px}#training-dialog>.primary-button{width:100%;margin-top:14px}#training-button{margin-top:4px;min-height:36px;color:#ffebbc}
@media(max-width:420px){.inventory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-stats b{font-size:22px}.inventory-modal .journal-row{gap:8px}.inventory-modal .journal-row>svg{margin:0 4px;flex-shrink:0}.inventory-modal .journal-row>span{max-width:62px;font-size:10px}}
.realm-map{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;height:auto;min-height:330px;margin:22px 0;background:none;border:0;padding:0}
.realm-node{position:static!important;transform:none!important;width:auto;min-width:0;background:#eeedf0;border:0;border-radius:12px;padding:13px 7px;color:#39354e;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:7px}
.realm-node:hover{background:#e5e8df}.realm-node.current{outline:3px solid #648c78;outline-offset:-3px;background:#e9efdf}
.realm-node .realm-orb{width:36px;height:36px;box-shadow:none;border:0;margin:0}.realm-node .realm-orb svg{width:20px;height:20px}.realm-node b{font:18px var(--display);font-weight:400;white-space:normal;text-shadow:none}.realm-node small{font-size:8px;color:#676078;line-height:1.4;letter-spacing:0;text-shadow:none;min-height:22px}
.map-levels{display:flex;gap:3px;justify-content:center}.map-levels i{font-style:normal;font-size:8px;border-radius:4px;padding:4px 5px;background:#d9d7df;color:#625e71}.map-levels i.active{background:#3b5066;color:#fff8df}.map-levels i.complete{background:#547f67;color:#fff8df}.map-legend{flex-wrap:wrap;gap:12px}
.settings-section-title{font:23px var(--display);text-align:left;margin:28px 0 2px;color:var(--ink)}.setting-row output{margin-left:auto;font-size:10px;white-space:nowrap}.setting-row input[type=range]{flex-shrink:0;width:135px}.key-bindings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:24px}.binding-button{border:0;border-radius:8px;background:#ecebf0;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px 12px;color:#47425b;font-size:11px;min-width:0;text-align:left}.binding-button kbd{font:12px var(--body);white-space:nowrap;border:0;background:#fffdf8;color:#39354e;padding:4px 7px;min-width:31px;text-align:center;border-radius:4px}.binding-button.capturing{outline:2px solid #5d8a76;background:#e4eddf}.binding-button.capturing kbd{font-size:9px}#reset-controls-button{font-size:11px;width:100%;padding:12px}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after{animation:none!important;transition:none!important}
@media(min-width:561px) and (max-width:800px){.ultimate-button{left:calc(30px + var(--weapon-count,1)*66px)}}
@media(max-width:560px){
  .menu{width:min(355px,calc(100vw - 32px));left:18px;max-height:calc(100dvh - 122px);top:53%;padding-right:6px}
  .menu .title-lockup{width:210px}.menu .title-relic{font-size:51px}.menu .title-wilds{font-size:64px}.menu h1{font-size:22px}.menu-intro{font-size:11px}
  .run-setup,.camp-nav,.menu-content>.primary-button{width:100%}.run-setup{margin-top:11px;gap:9px}.mode-select button{padding:8px 5px}.hero-select{margin:10px 0}.hero-options{gap:7px}.hero-option{width:calc((100% - 14px)/3);height:74px}.hero-option>img{height:33px;width:27px}.hero-option small{font-size:7px}.hero-option b{font-size:15px}.hero-select legend{font-size:9px}.menu-content>.primary-button{font-size:13px;min-height:43px}.camp-nav{gap:5px;margin-top:8px}.camp-nav button{padding:7px 3px}.menu .best-note{font-size:8px}.menu-landmark{display:none}
  .loadout{display:grid;grid-template-columns:repeat(3,39px);gap:4px;bottom:192px;left:14px}.ultimate-button{left:calc(50% - 34px);bottom:113px}
  .playing .topbar{bottom:225px;right:14px}.playing .top-actions{gap:5px}.playing .icon-button{width:30px;height:30px}.playing .icon-button svg{width:15px;height:15px}
  .checkpoint-indicator{font-size:6.5px;max-width:100px}.boss-hud{top:204px;max-width:calc(100vw - 44px)}.boss-hud small{font-size:7px;margin:3px 0 6px}
  .hero-roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.roster-card{padding:12px 8px}.roster-card strong{font-size:22px}.roster-card img{height:60px;width:48px}
  .realm-map{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-height:510px}.realm-node{padding:10px 6px;gap:4px}.realm-node b{font-size:18px}.realm-node small{font-size:8px}.realm-node .realm-orb{width:27px;height:27px}.map-levels i{font-size:8px}.journal-tabs{flex-wrap:wrap}.journal-tabs button{min-width:66px}
  .setting-row input[type=range]{width:100px}.setting-row output{font-size:9px}.binding-button{font-size:10px;padding:9px}.binding-button kbd{font-size:10px;padding:4px;min-width:26px}.settings-section-title{font-size:22px}
  .camp-upgrade{grid-template-columns:22px 1fr;gap:12px}.camp-upgrade>button{grid-column:2;justify-self:start}.camp-upgrade h3{font-size:20px}.journal-tabs{gap:3px}.journal-tabs button{font-size:9px;padding:10px 4px}.journal-row{gap:9px}.journal-row strong{font-size:18px}.journal-row small{font-size:9px}.journal-row>span{max-width:83px;font-size:8px}.journal-row>img{width:38px;height:48px}.setting-row{font-size:11px;gap:10px}.setting-row select{max-width:175px;font-size:10px}.inventory-stats{gap:8px}.inventory-stats strong{font-size:22px}
}
@media(max-height:680px){.menu{top:52%;max-height:calc(100dvh - 104px)}.menu .title-lockup{width:190px}.menu .title-relic{font-size:42px}.menu .title-wilds{font-size:53px}.menu .title-rule{padding:8px 28px 2px}.menu h1{margin:8px 0 5px;font-size:20px}.hero-option{height:64px}.hero-option>img{height:27px;width:23px}.run-setup{margin-top:8px}.hero-select{margin:8px 0}.camp-nav{margin-top:6px}.menu-intro{font-size:10px}.hero-select legend{margin-bottom:4px}.menu-footer{bottom:4px}.best-note,.run-note{font-size:8px}}
@media(max-width:560px){.menu{top:max(78px,calc(env(safe-area-inset-top) + 64px));bottom:max(66px,calc(env(safe-area-inset-bottom) + 54px));transform:none;max-height:none}}

/* Landmark titles share the announcement surface; preserve room for the fight HUD. */
.realm-announcement.landmark-arrival{background:#211e38f2;border:1px solid #eee0ad70;box-shadow:0 9px 28px #140e21a1;padding:16px 24px;line-height:1.1}
.realm-announcement.landmark-arrival b{display:block;color:#f3d68b;text-transform:uppercase;font-size:9px;letter-spacing:.21em;margin:0 0 7px}
.realm-announcement.landmark-arrival>span{font-family:var(--display);letter-spacing:.02em;text-wrap:balance}
.realm-announcement.landmark-arrival small{color:#fff8df;line-height:1.4;font-style:normal;text-wrap:balance}
@media(max-width:560px){.realm-announcement.landmark-arrival{padding:14px 16px;max-width:min(85vw,380px)}.realm-announcement.landmark-arrival>span{font-size:clamp(21px,6vw,28px)}}
.boss-hud #boss-attack-cue{display:block;margin:6px 0 0;color:#fbe1a2;text-align:center;font-size:10px;letter-spacing:.08em}

.realm-picker{display:flex;align-items:center;gap:12px;width:min(336px,100%);margin-top:8px;padding:5px 7px 5px 10px;border-radius:8px;background:#292c46d9;color:#fffdf4;font-size:10px;line-height:1.3}
.realm-picker span{white-space:nowrap}
.realm-picker select{flex:1;min-width:0;min-height:33px;padding:5px 8px;font-size:11px}

.realm-picker-note{margin:5px 0 0 2px;line-height:1.45;font-size:10px;color:#fff0c9;max-width:336px}
.map-clear-modal{width:510px}
.map-clear-kicker{margin:10px 0 7px;color:#6b7346;font-size:10px;letter-spacing:.16em;text-transform:uppercase}
.map-clear-modal h2{margin-top:0;text-wrap:balance}
.map-clear-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 16px}
.map-clear-stats div{display:flex;flex-direction:column-reverse;gap:4px;min-width:0;padding:11px 1px 9px;border-top:1px solid #bcb799}
.map-clear-stats dt{font-size:10px;line-height:1.35;color:#5c7056}
.map-clear-stats dd{overflow-wrap:anywhere;margin:0;color:var(--ink);font-family:var(--display);font-weight:400;font-size:clamp(19px,4.3vw,29px);font-variant-numeric:tabular-nums;line-height:1.1}
.map-clear-next{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eae8d0;color:#31483b;text-align:left;padding:10px 13px;border-radius:8px;font-size:12px}
.map-clear-next span{font-size:9px;text-transform:uppercase;letter-spacing:.09em}
.map-clear-actions{display:flex;align-items:stretch;gap:9px;margin-top:16px}
.map-clear-actions .primary-button,.map-clear-actions .secondary-button{width:auto;margin:0;flex:1;min-height:44px;justify-content:center}
.map-clear-actions .secondary-button{flex:0 1 132px}
.modal .map-clear-status{margin:9px 0 0;color:#536548;font-size:11px}
@media(max-width:420px){.map-clear-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}.map-clear-modal{padding:20px 16px}.map-clear-actions .secondary-button{flex-basis:105px}.realm-picker-note{font-size:9px}}


/* The expanded roster uses the same hero cards and palette as the base game. */
.roster-section{margin:20px 0 24px;text-align:left}
.roster-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-bottom:1px solid #dcd6cd;padding-bottom:6px}
.roster-section-head h3{margin:0;color:#34324d;font:22px var(--display);line-height:1.15}
.roster-section-head small{color:#3f6852;font-size:10px}
.roster-section .hero-roster{margin:12px 0 0}
.roster-oot .roster-card:not(.selected){background:#e9f0e6}
.roster-card b{margin-top:auto;padding-top:9px}
.roster-card:focus-visible{outline:3px solid #426c5a;outline-offset:2px}
.training-starter{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;margin:8px 0;background:#e9f0e6;border-radius:8px;color:#3a564a;text-align:left}
.training-starter p{margin:0;font-size:11px;line-height:1.5}
.training-starter button{flex:none;min-height:38px;padding:7px 10px;font-size:10px}
@media(max-width:480px){.roster-section-head h3{font-size:19px}.training-starter{align-items:flex-start}.training-starter p{font-size:10px}}

/* Adventure recruitment is a distinct reward, not part of the damage totals. */
.modal .map-clear-recruit{padding:8px 10px;border-left:3px solid #607549;background:#e4ead3;color:#344a34;font-weight:700;text-align:left}
.saria-rescue-caption{position:fixed;left:50%;bottom:max(126px,20dvh);z-index:7;transform:translateX(-50%);display:flex;align-items:center;gap:11px;width:max-content;max-width:min(74vw,420px);padding:9px 13px;border:1px solid #b1cb815e;border-radius:10px;background:#172e29f2;color:#fff9e7;box-shadow:0 5px 18px #14241770;pointer-events:none}
.saria-rescue-caption>span{color:#bfe18b;line-height:0}
.saria-rescue-caption strong{display:block;margin-bottom:2px;color:#daedaa;font-size:11px;letter-spacing:.15em;text-transform:uppercase}
.saria-rescue-caption #saria-rescue-line{font-size:13px;line-height:1.4}
@media(max-width:560px){.saria-rescue-caption{bottom:max(103px,16dvh);padding:7px 10px}.saria-rescue-caption #saria-rescue-line{font-size:11px}}

.roster-card .hero-special-name{color:#334b40;font-weight:800;line-height:1.28}
.roster-card .hero-special-detail{max-width:25ch;margin:4px 0 10px;color:#534d62;font-size:10px;line-height:1.35}
.roster-card.locked .hero-special-detail{color:#5f596a}

/* One brief Moon Crash pulse, kept below the HUD. */
#moon-flash{position:fixed;inset:0;pointer-events:none;z-index:2;opacity:0;background:radial-gradient(ellipse at var(--flare-x,50%) var(--flare-y,50%),#fff6e4 0%,#ffeac3b3 28%,#f9dfb739 70%,transparent 100%)}

/* Native pointer lock confines the mouse; never hide the fallback cursor or menus. */
body.playing.cursor-captured #world{cursor:none}

/* Keep the full north-up view; zoom enlarges the pixel panel, not the world camera. */
.minimap-atlas{width:clamp(108px,19vw,164px);margin:0 0 6px;padding:4px;border:1px solid #8f7959;border-radius:6px;background:#202a32f5;box-shadow:0 3px 9px #211d2ba0;color:#efe1c2;text-shadow:none;text-align:left}
.minimap-atlas>figcaption{padding:0 3px 3px;font-size:8px;line-height:1.1;letter-spacing:.13em;text-transform:uppercase;font-weight:900}
.minimap-atlas>canvas{display:block;width:100%;height:auto;aspect-ratio:1;image-rendering:pixelated}
.minimap-key{list-style:none;display:grid;grid-template-columns:1.15fr .85fr;gap:1px 2px;margin:3px 0 0;padding:0 2px;color:#fff5df;font-size:9px;line-height:1.1;letter-spacing:normal}
.minimap-key>li{display:flex;align-items:center;gap:2px;white-space:nowrap}
.minimap-key canvas{width:11px;height:11px;image-rendering:pixelated;flex:none}
@media(max-width:560px){.minimap-atlas{width:clamp(98px,27vw,126px);padding:3px}.minimap-key{font-size:7px}.minimap-key canvas{width:9px;height:9px}.minimap-atlas>figcaption{font-size:7px}.minimap-key .minimap-extra{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}}
@media(hover:none) and (orientation:landscape) and (max-height:480px){.minimap-atlas{width:clamp(80px,29dvh,112px)}.minimap-atlas>figcaption,.minimap-key{display:none}}

/* Expanded view stays right-aligned and does not consume movement or camera input. */
.minimap-atlas.is-zoomed{width:clamp(176px, min(36vw,51dvh), 328px);padding:6px}
.minimap-atlas.is-zoomed>figcaption{font-size:10px}
.minimap-atlas.is-zoomed .minimap-key{font-size:11px;gap:2px 6px}
.map-button[aria-pressed="true"]{background:#e5d6ac;color:#292a39}
.map-button:focus-visible{outline:2px solid #f3d684;outline-offset:2px}
@media(max-width:560px){.minimap-atlas.is-zoomed{width:clamp(136px, min(48vw,34dvh), 240px);padding:4px}.minimap-atlas.is-zoomed .minimap-key{font-size:8px}}
@media(hover:none),(pointer:coarse){.map-button{min-height:44px}}
@media(hover:none) and (orientation:landscape) and (max-height:480px){.minimap-atlas.is-zoomed{width:clamp(120px, min(32vw,45dvh), 232px)}.minimap-atlas.is-zoomed .minimap-key{display:none}}

/* Fit the title controls in the viewport rather than scrolling the gold menu rail. */
.menu{top:max(64px,calc(env(safe-area-inset-top) + 58px));bottom:max(52px,calc(env(safe-area-inset-bottom) + 44px));max-height:none;transform:none;padding:0;overflow:clip}
.menu-content{position:absolute;top:50%;left:0;width:100%;padding:5px 12px 8px 5px;transform:translateY(-50%) scale(var(--menu-fit,1));transform-origin:left center}
@media(max-height:500px){
  .menu{top:max(54px,calc(env(safe-area-inset-top) + 48px));bottom:max(36px,calc(env(safe-area-inset-bottom) + 34px))}
  .menu .title-rule{display:none}
  .menu .title-lockup{width:144px}
  .menu .title-relic{font-size:31px}.menu .title-wilds{font-size:40px}
}
