:root{color-scheme:dark;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f5e8ce;background:#171415;--cream: #f5e8ce;--muted: #a69891;--ember: #f59b68;--gold: #ffd498;--border: #493139;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:280px;min-height:100dvh;background:radial-gradient(ellipse at 50% 72%,#42232944,transparent 65%),#171415}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}[hidden]{display:none!important}.game-app{max-width:1330px;margin:0 auto;padding:0 38px 24px}.topbar{height:95px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #49313999}.brand{display:flex;align-items:center;gap:12px;color:var(--cream);text-decoration:none;font:700 18px/1.3 Courier New,monospace;letter-spacing:1.4px}.demon-mark{width:29px;height:34px;image-rendering:pixelated}.brand small{display:block;font:10px/1.7 Courier New,monospace;letter-spacing:2.9px;color:var(--muted)}.version{display:flex;align-items:center;gap:12px;font:10px/1 Courier New,monospace;letter-spacing:2px;color:#c3afa1}.version-dot{width:6px;height:6px;background:var(--ember);box-shadow:0 0 12px #f59b6866}.game-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,482px) minmax(175px,1fr);align-items:start;gap:44px;margin-top:27px}.eyebrow{font:10px/1.5 Courier New,monospace;letter-spacing:2.2px;color:#c99c7a}.journey-note{padding-top:60px}.journey-note h1{font:36px/1.2 Georgia,Times New Roman,serif;font-weight:400;letter-spacing:-.8px;margin:23px 0}.journey-note h1 em{color:var(--ember);font-weight:400}.journey-note p,.progress-note p{color:var(--muted);font-size:13px;line-height:1.8;max-width:230px}.aside-rule{width:45px;height:1px;margin:30px 0;background:#895444}.control-key{display:flex;gap:10px;align-items:center;font-size:11px;line-height:1.8;color:#cbbeb0;margin:18px 0}kbd{border:1px solid #5b4146;padding:6px;white-space:nowrap;color:var(--cream);font:10px monospace;box-shadow:0 2px #30242a}.mouse-symbol{font:27px Georgia,serif;color:var(--ember);width:37px;text-align:center}.journey-note .aside-tip,.progress-note .aside-tip{color:#8f817b;font-size:11px;line-height:1.8}.progress-note{padding-top:60px}.ember-stat{display:grid;grid-template-columns:30px auto;justify-content:start;align-items:center;column-gap:8px;margin:20px 0 30px}.ember-stat>span{font:32px Georgia,serif;color:var(--gold)}.ember-stat strong{font:35px/1 Georgia,serif}.ember-stat small{font-size:11px;color:var(--muted);grid-column:2;margin-top:8px}.record{display:flex;justify-content:space-between;gap:12px;max-width:205px;margin-top:19px;font-size:11px;color:var(--muted)}.record b{font:12px Courier New,monospace;color:var(--cream)}.play-shell{border:1px solid #694135;box-shadow:0 5px #261d21,0 20px 60px #0004;background:#21191f;min-width:0}.hud{padding:13px 16px 12px;background:#241c20;border-bottom:1px solid #674135}.hud-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.hud-heading strong{display:block;font-size:14px;font-weight:600;margin-top:3px}.hud-heading .eyebrow{font-size:9px;letter-spacing:1.5px}.icon-button{display:grid;place-items:center;width:35px;height:35px;border:1px solid #634346;background:#35232a;font:18px monospace}.icon-button:hover:not(:disabled){background:#58303b}.health-line{display:flex;align-items:center;gap:8px;margin-top:13px}.health-icon{width:15px;height:14px;color:#e57565}.health-icon svg{width:100%;height:100%}.health-track{height:6px;flex:1;background:#130f13;border:1px solid #56313c}#health-fill{height:100%;width:100%;background:linear-gradient(90deg,#a63e4b,#e57565);transition:width .1s}#health-fill.low{background:#ec555b}#health-value{width:66px;text-align:right;font:10px Courier New,monospace;color:#d3c1b3}.path-line{display:flex;align-items:center;gap:8px;margin-top:12px}.room-path{display:flex;align-items:center;gap:4px}.path-step{display:grid;place-items:center;font:9px monospace;width:15px;height:15px;border:1px solid #655050;color:#8a7773}.path-step.current{color:#ffddad;background:#70402e;border-color:#e89963}.path-step.done{background:#684235;border-color:#9c6750;color:#d99f79}.room-path i{height:1px;width:5px;background:#5a4146}#combat-label{font-size:9px;color:#ad9587;margin-left:auto}#run-time{font:10px monospace;color:#cdb7a5}.stage-frame{position:relative;height:min(600px,calc(100dvh - 260px));min-height:380px;background:#171418;overflow:hidden}#game-stage{width:100%;height:100%;touch-action:none}#game-stage canvas{display:block;image-rendering:pixelated}.game-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:9px;line-height:1.6;min-height:30px;padding:5px 11px;color:#9d8a7c;background:#211a1f;border-top:1px solid #4f3137}.footer-status{color:#c49a75}.boss-hud{pointer-events:none;position:absolute;top:12px;left:15%;right:15%;background:#201b20e6;padding:8px 10px;border:1px solid #bca57988;z-index:2;text-align:center}.boss-hud span{font:8px Courier New,monospace;letter-spacing:1.6px;color:#eee0b9}.boss-hud>div{height:4px;margin-top:6px;background:#5a4e49}.boss-hud i{display:block;width:100%;height:100%;background:#efd7a4}.overlay{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:22px;background:#120f15b8;backdrop-filter:blur(2px);overflow-y:auto}.panel{width:100%;max-width:386px;text-align:center;padding:24px 23px;background:linear-gradient(155deg,#38272eef,#211b23f8 66%);border:1px solid #875241;box-shadow:0 3px #1b131b,0 20px 60px #0007;position:relative;margin:auto}.panel:before,.panel:after{content:"";position:absolute;width:5px;height:5px;background:#dd9b66;top:-3px}.panel:before{left:-3px}.panel:after{right:-3px}.chapter-tag{display:flex;align-items:center;justify-content:center;gap:10px;color:#d4a483;font:10px/1.5 Courier New,monospace;letter-spacing:1.7px}.chapter-tag span{height:1px;width:26px;background:#a4684b}.hero-emblem{margin:20px auto 16px;width:80px;height:72px;display:flex;justify-content:center;align-items:center;position:relative}.hero-emblem .demon-mark{height:64px;width:57px;filter:drop-shadow(0 7px 15px #fd764e33)}.hero-emblem i{position:absolute;right:0;top:0;color:#ffd899;font:18px Georgia,serif}.panel h2{margin:15px 0 12px;font:29px/1.15 Georgia,Times New Roman,serif;letter-spacing:-.5px}.panel-description{color:#c1aea0;font-size:12px;line-height:1.75;margin:0 0 20px}.panel-description.short{font-size:11px;margin-bottom:17px}.intro-facts{color:#ddbe9e;display:flex;justify-content:center;gap:9px;align-items:center;font:10px Courier New,monospace;margin:18px 0 23px}.intro-facts i{color:#826257;font-style:normal}.hub-progress{display:flex;justify-content:center;gap:21px;font-size:10px;color:#bca393;margin:13px 0}.hub-progress b{color:#efd0a2;font-weight:500}.primary-button{display:flex;justify-content:center;align-items:center;gap:12px;border:1px solid #ffbc83;background:#db8654;color:#251821;min-height:48px;width:100%;padding:11px 14px;font:700 11px/1.5 Courier New,monospace;letter-spacing:.6px;box-shadow:inset 0 1px #ffd09b,0 3px #844833;transition:background .15s,transform .15s}.primary-button:hover:not(:disabled){background:#f6a26b;transform:translateY(-1px)}.primary-button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 1px #ffd09b,0 1px #844833}.primary-button span{font-size:18px;line-height:1}.touch-instruction{display:flex;gap:12px;align-items:center;text-align:left;margin-top:25px;padding-top:19px;border-top:1px solid #70453866}.touch-instruction p{margin:0;font-size:10px;line-height:1.7}.touch-instruction strong{color:#ddc5aa;font-weight:500}.touch-instruction span{display:block;color:#ae9588;font-size:10px}.stick-icon{border:1px solid #b17c56;width:35px;height:35px;border-radius:50%;flex-shrink:0;position:relative}.stick-icon i{position:absolute;width:12px;height:12px;background:#ca9b73;border-radius:50%;top:7px;left:16px}.mode-note{color:#a68b7e;font-size:9px;line-height:1.6;margin:16px 0 0}.loading-sigil{color:var(--gold);font:50px Georgia,serif;margin:12px 0;animation:breathe 2s ease-in-out infinite}.loading-panel p{font-size:12px;color:#cdb298}.upgrade-panel{padding:24px 18px}.upgrade-panel h2{font-size:27px}.upgrade-list{display:grid;gap:9px}.upgrade-button{display:flex;align-items:center;gap:11px;padding:12px 11px;min-height:86px;width:100%;text-align:left;background:#261d24;border:1px solid #715042;transition:background .15s,border-color .15s}.upgrade-button:hover:not(:disabled),.upgrade-button:focus-visible{background:#422b30;border-color:#e6a674}.upgrade-symbol{display:grid;place-items:center;width:31px;font:29px/1 Georgia,serif;color:#e9af7d;flex-shrink:0}.upgrade-button small{display:block;color:#c59777;font:8px/1.5 Courier New,monospace;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}.upgrade-button strong{font-size:12px;font-weight:600;display:block;margin-bottom:4px}.upgrade-button em{font-size:10px;font-style:normal;line-height:1.5;display:block;color:#bca496}.upgrade-button b{margin-left:auto;color:#cc976f;font-size:16px;font-weight:400}.result-symbol{width:53px;height:60px;display:grid;place-items:center;margin:21px auto 17px;color:#d46760;font:65px Georgia,serif}.result-symbol svg{width:40px}.result-symbol.victory{color:var(--gold);text-shadow:0 0 30px #ffd89955}.result-stats{display:flex;justify-content:center;gap:35px;margin:25px 0 18px}.result-stats strong{display:block;font:29px/1.1 Georgia,serif}.result-stats strong span{color:var(--gold);font-size:21px}.result-stats small{color:#bda188;font-size:10px;display:block;margin-top:7px}.saved-confirmation{color:#c3af8c;font-size:10px;line-height:1.6;margin-bottom:23px}.text-button{background:none;border:none;font-size:10px;color:#c4a18a;margin-top:18px;padding:5px;text-decoration:underline;text-underline-offset:4px}.pause-glyph{font:50px/1 monospace;color:#d69e6b;margin:22px 0}.error-message{border:1px solid #ad5e50;background:#6c302b44;color:#fac0a3;font-size:11px;line-height:1.7;padding:10px;margin:18px 0 0}@keyframes breathe{50%{opacity:.5;transform:scale(.9)}}@media(min-height:980px){.game-layout{margin-top:48px}.journey-note,.progress-note{padding-top:100px}}@media(max-width:1120px){.game-app{padding-left:24px;padding-right:24px}.game-layout{gap:25px;grid-template-columns:minmax(150px,1fr) minmax(0,440px) minmax(140px,1fr)}.journey-note h1{font-size:29px}.version{font-size:9px}}@media(max-width:880px){.game-layout{display:block;max-width:482px;margin:20px auto 0}.journey-note,.progress-note{display:none}.topbar{height:74px}}@media(max-width:520px){.game-app{padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}.topbar{height:56px;border:none;padding:0 14px}.brand{font-size:14px;gap:9px;letter-spacing:.7px}.brand small{font-size:8px;letter-spacing:2.2px}.brand .demon-mark{width:24px;height:29px}.version{font-size:8px;letter-spacing:1px;gap:7px}.game-layout{margin:0 auto}.play-shell{border-left:none;border-right:none;box-shadow:none}.hud{padding:10px 13px 9px}.hud-heading strong{font-size:12px}.hud-heading .eyebrow{font-size:8px}.health-line,.path-line{margin-top:10px}.stage-frame{height:calc(100dvh - 192px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:330px;max-height:720px}.game-footer{font-size:8px;min-height:28px;padding:5px 10px;gap:5px}.overlay{padding:16px}.panel{padding:22px 20px}.panel h2{font-size:27px}.hero-emblem{margin-top:16px;margin-bottom:10px}.intro-facts{margin:14px 0 18px}.touch-instruction{margin-top:22px;padding-top:17px}.mode-note{margin-top:13px}}@media(max-height:700px)and (max-width:520px){.panel{padding:18px}.hero-emblem{display:none}.panel h2{margin:13px 0 10px;font-size:25px}.panel-description{font-size:11px;margin-bottom:13px}.intro-facts{margin:12px 0 16px}.touch-instruction{margin-top:16px;padding-top:14px}.upgrade-button{min-height:70px;padding:9px}.upgrade-button strong{font-size:11px}.upgrade-button em{font-size:9px}.upgrade-list{gap:7px}.result-symbol{margin:13px auto;height:45px;font-size:50px}.result-stats{margin:17px 0 12px}.saved-confirmation{margin-bottom:17px}}@media(max-width:350px){.version{display:none}#combat-label{font-size:8px}.path-line{gap:6px}.overlay{padding:12px}.panel{padding-left:15px;padding-right:15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
