:root{color-scheme:dark;--ink:#111019;--panel:#191721;--paper:#fff0d9;--muted:#b0a8a7;--ember:#ffad72;--orange:#ee7445;--mint:#a6dfc7;--line:#ffffff21;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);font-family:'Trebuchet MS',Arial,'Microsoft YaHei','PingFang SC','Noto Sans CJK SC',sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--ink);color:var(--paper);overflow:hidden}button,a,input{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button{border:0}button,a{-webkit-tap-highlight-color:transparent}button svg{pointer-events:none}[hidden]{display:none!important}#game{position:relative;isolation:isolate;width:100%;height:100dvh;min-height:300px;overflow:hidden;background:#101018}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none;outline:none;image-rendering:pixelated}#shade{pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,9,17,.92),rgba(9,9,17,.66) 38%,rgba(9,9,17,.12) 80%);transition:opacity .3s}body[data-mode=playing] #shade{opacity:0}body[data-mode=reward] #shade,body[data-mode=end] #shade{background:#0c0b14c9}#topbar{position:absolute;z-index:10;inset:calc(18px + var(--safe-top)) 28px auto;display:flex;align-items:center;gap:24px;pointer-events:none}.wordmark{pointer-events:auto;color:var(--paper);font-weight:900;font-size:21px;letter-spacing:-2px;text-decoration:none;white-space:nowrap}.sigil{color:var(--orange);font-size:16px;display:inline-block;margin:0 5px}.tools{display:flex;gap:6px;margin-left:auto;pointer-events:auto}.icon-button{position:relative;width:42px;height:42px;display:grid;place-items:center;background:#15121cc7;border:1px solid var(--line);font-size:24px;border-radius:5px;transition:background .15s,border-color .15s}.icon-button:hover{background:#39303b;border-color:#ffd4a16e}.slash{position:absolute;width:24px;height:1px;rotate:-45deg;background:var(--paper)}.icon-button[data-active=true] .slash{display:none}#run-hud{display:flex;align-items:center;justify-content:space-between;flex:1;gap:18px}.vitals{display:flex;align-items:center;gap:12px;background:#13101ab0;padding:10px 14px;border-radius:5px}#hearts{display:flex;gap:5px}.heart{width:17px;height:16px;background:#f29577;clip-path:polygon(0 13%,26% 0,50% 20%,73% 0,100% 13%,100% 48%,50% 100%,0 48%)}.heart.empty{background:#634b57}.ember-symbol{color:var(--ember);font-size:13px;margin-left:-7px}#ember-count{font-size:14px;color:var(--paper);font-variant-numeric:tabular-nums}#room-strip{display:flex;gap:6px;background:#13101aa6;padding:12px 14px;border-radius:5px}.room-node{height:8px;width:20px;transform:skewX(-16deg);background:#635668}.room-node.past{background:var(--mint)}.room-node.current{background:var(--ember);box-shadow:0 0 12px #ff8c5966}.room-node.boss{width:12px;transform:rotate(45deg);margin:0 5px}.screen{position:absolute;inset:0;z-index:5}.title-screen{display:flex;align-items:center;padding:90px 7vw 85px}.title-content{width:min(490px,48vw)}.eyebrow{font-size:10px;letter-spacing:2.6px;line-height:1.6;font-weight:bold;color:var(--ember);margin:0 0 18px;display:flex;gap:10px;align-items:center}.eyebrow>.eyebrow-rule{width:26px;height:1px;background:var(--orange)}h1{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(72px,9.5vw,144px);font-weight:900;letter-spacing:1px;line-height:.87;margin:0 0 25px;text-shadow:0 5px 0 #412631,0 11px 32px #0008}h1>span{color:var(--ember)}.title-copy{font-size:15px;color:#d6c8bd;line-height:1.6;margin:0 0 28px}.loadout-label{font-size:9px;letter-spacing:2px;color:var(--muted);margin:0 0 9px;display:flex;justify-content:space-between;max-width:370px}#unlocks-caption{letter-spacing:.6px;color:var(--mint)}.weapon-options{display:flex;gap:7px;margin-bottom:14px;max-width:370px}.weapon-choice{background:#19141fd6;border:1px solid #5c4859;padding:11px 9px;flex:1;text-align:left;border-radius:3px;font-size:10px;line-height:1.3;display:flex;align-items:center;gap:7px;min-height:49px}.weapon-choice[aria-pressed=true]{background:#4b3030;border-color:var(--ember);color:var(--ember)}.weapon-choice[aria-disabled=true]{opacity:.5;cursor:pointer}.weapon-choice .weapon-icon{font-size:18px}.weapon-choice small{font-size:9px;color:#c3b0ad;display:block;margin-top:3px}.primary-button{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;width:100%;max-width:370px;padding:14px 22px;background:var(--ember);color:#211823;font-weight:bold;font-size:16px;border:1px solid #ffd5a7;border-bottom:4px solid #b85c3b;border-radius:3px;box-shadow:0 8px 22px #0005;transition:background .15s,translate .15s}.primary-button:hover{background:#ffc395;translate:0 -2px}.primary-button:active{translate:0 1px}.secondary-button{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:370px;min-height:43px;margin-top:10px;padding:10px 20px;background:#1f342bc9;border:1px solid #72a58c;color:var(--mint);font-size:13px;border-radius:3px}#load-message{font-size:10px;color:#ab9d9d;line-height:1.6;margin:10px 0 16px;max-width:370px}.title-stats{display:flex;gap:26px;font-size:10px;letter-spacing:1px;color:#9a9195}.title-stats strong{display:block;font-size:18px;letter-spacing:0;color:var(--paper);margin-bottom:4px;font-variant-numeric:tabular-nums}.title-foot{position:absolute;left:7vw;right:36px;bottom:25px;display:flex;align-items:center;gap:20px;font-size:9px;letter-spacing:1px;color:#b6a6a5}.title-foot>span{margin-right:auto}.title-foot b{color:#bd7355;padding:0 9px}.text-button{padding:10px 0;background:transparent;color:#c6b8b5;font-size:12px;border-bottom:1px solid transparent}.text-button:hover{color:var(--ember);border-color:var(--orange)}#combat-ui{pointer-events:none;position:absolute;inset:0;z-index:3}.room-banner{text-align:center;position:absolute;left:50%;top:17%;transform:translateX(-50%);color:var(--paper);font-size:clamp(18px,3vw,32px);font-family:Impact,'Arial Black',sans-serif;letter-spacing:2px;text-shadow:0 2px 8px #000;transition:opacity .4s}.room-banner:empty{opacity:0}#boss-hud{position:absolute;top:calc(77px + var(--safe-top));left:50%;transform:translateX(-50%);width:min(420px,48vw);text-align:center}#boss-name{font-size:10px;letter-spacing:2px;color:#f7c2ae;text-shadow:0 2px 5px #000}.boss-track{height:7px;background:#291b2ce0;border:1px solid #a47a715c;margin-top:7px;padding:1px}.boss-track>div{background:linear-gradient(90deg,#b84f54,#ed9473);height:100%;transition:width .1s}.objective{position:absolute;bottom:85px;left:50%;transform:translateX(-50%);color:#eadcc9;font-size:12px;letter-spacing:.2px;max-width:500px;text-align:center;text-shadow:0 2px 6px #000;background:#121019c9;padding:9px 15px;border-radius:3px;line-height:1.5}.objective:empty{display:none}.build-strip{display:flex;gap:7px;position:absolute;left:26px;bottom:26px;max-width:45vw;flex-wrap:wrap}.build-icon{display:grid;place-items:center;position:relative;width:35px;height:35px;border:1px solid #c3a18366;background:#14131be0;color:var(--ember);border-radius:3px;pointer-events:auto;font-size:19px}.build-icon small{position:absolute;right:2px;bottom:1px;font-size:9px;color:white}.abilities{position:absolute;bottom:24px;right:28px;display:flex;gap:10px;pointer-events:auto}.ability{width:64px;height:66px;border:1px solid #917376;background:#19131de8;border-radius:4px;position:relative;overflow:hidden;display:grid;place-items:center;align-content:center;gap:2px}.ability>span{font-size:25px;line-height:1}.ability strong{font-size:8px;letter-spacing:1px}.ability kbd{font-size:8px;color:var(--muted);font-family:inherit}.ability i{position:absolute;background:#0b0a11a6;inset:auto 0 0;height:0;pointer-events:none}.ability[data-ready=true]{border-color:var(--ember);color:var(--ember)}#touch-controls{display:none}.reward-screen,.end-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:95px 6vw 35px}.reward-heading{text-align:center;margin-bottom:28px}.reward-heading .eyebrow{justify-content:center;margin-bottom:10px}h2{font-family:Georgia,serif;letter-spacing:-1px;font-weight:normal;font-size:48px;line-height:1.1;margin:0 0 15px}.reward-heading>p:last-child{font-size:13px;color:#c4b6b1;margin:0}.relic-choices{display:grid;grid-template-columns:repeat(3,minmax(0,245px));gap:18px;align-items:stretch}.relic-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:275px;padding:22px;background:linear-gradient(145deg,#39303be8,#191823f5);border:1px solid #80707980;border-top:3px solid var(--card-color,var(--ember));border-radius:5px;position:relative;transition:translate .16s,border-color .16s,background .16s;box-shadow:0 12px 30px #0004}.relic-card:hover{translate:0 -6px;background:linear-gradient(145deg,#4b3644,#23202c);border-color:var(--card-color,var(--ember))}.relic-icon{display:grid;place-items:center;width:59px;height:59px;background:#110e1999;border:1px solid #cfab874d;color:var(--card-color,var(--ember));font-size:32px;border-radius:5px;margin-bottom:24px;box-shadow:0 0 30px #0002}.relic-tag{color:var(--card-color,var(--ember));font-size:9px;letter-spacing:1.4px;font-weight:bold;text-transform:uppercase;margin-bottom:9px}.relic-name{font-size:20px;margin-bottom:10px;font-family:Georgia,serif}.relic-desc{font-size:12px;line-height:1.6;color:#c6bab9;flex:1}.relic-level{font-size:9px;margin-top:18px;color:#ac9d9d;letter-spacing:1px}.relic-key{position:absolute;top:16px;right:17px;font-size:10px;color:#bfa6a5;border:1px solid #ac8d8d55;padding:3px 6px}.choice-hint{font-size:9px;letter-spacing:2px;color:#9f8e95;margin-top:22px}.end-content{text-align:center;max-width:620px;width:100%}.end-content>.eyebrow{justify-content:center}.end-content>h2{font-size:clamp(40px,5vw,68px);color:var(--ember)}#end-copy{color:#c9b8b2;font-size:14px;line-height:1.6}.end-stats{display:flex;justify-content:center;gap:36px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:23px 0;margin:27px 0;font-size:10px;color:#aa989a;letter-spacing:1px}.end-stats strong{display:block;font-size:31px;color:var(--paper);margin-bottom:6px;font-weight:normal;letter-spacing:0}.end-content>.primary-button{margin:24px auto 8px}.unlock-note{padding:10px;color:var(--mint);font-size:12px}.end-content>.text-button{font-size:13px}#toast{position:absolute;z-index:40;bottom:calc(24px + var(--safe-bottom));left:50%;transform:translateX(-50%);background:#2a202ceF;border:1px solid #b5836a;color:#ffe1bb;padding:12px 20px;border-radius:5px;text-align:center;max-width:min(540px,90vw);font-size:12px;line-height:1.6;box-shadow:0 6px 20px #0005;pointer-events:none}dialog{color:var(--paper);background:#1e1924;border:1px solid #7e6064;border-radius:8px;box-shadow:0 24px 80px #000b;padding:28px;width:min(510px,92vw);max-height:86dvh;overflow:auto}dialog::backdrop{background:#090910bc;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head .eyebrow{margin:0}.dialog-head .icon-button{width:32px;height:32px;font-size:22px}dialog h2{margin-top:15px;font-size:42px}#menu-body{font-size:13px;color:#cbbdbc;line-height:1.65}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line)}.setting-row label{cursor:pointer;display:flex;flex-direction:column;gap:3px}.setting-row small{color:#a18f98;font-size:10px}.setting-row input{accent-color:var(--ember);width:19px;height:19px}.menu-actions{margin-top:23px;display:flex;flex-direction:column;align-items:center;gap:7px}.menu-actions .primary-button{max-width:100%;justify-content:center}.save-actions{display:flex;gap:12px;margin:14px 0}.save-actions button{background:#3b2d3b;border:1px solid #79606a;padding:9px 16px;border-radius:3px;font-size:12px}.save-status{font-size:11px;color:var(--mint);overflow-wrap:anywhere}.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.controls-grid span{font-size:11px}.controls-grid b{display:block;color:var(--ember);font-size:12px;margin-bottom:3px}.menu-prose{font-size:12px}a{color:var(--mint)}.credits-links{padding-left:18px}.credits-links li{margin-bottom:10px}.warning-box{border:1px solid #bc6957;background:#3b252b;padding:14px;border-radius:4px;color:#ffd0b8}.warning-box button{margin-top:10px;display:block;padding:10px;background:#d79571;color:#211922}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (pointer:coarse){#touch-controls{display:block;position:absolute;bottom:calc(22px + var(--safe-bottom));left:24px;right:24px;display:flex;justify-content:space-between;pointer-events:none}.stick{pointer-events:auto;touch-action:none;position:relative;width:120px;height:120px;border:1px solid #d6b89742;border-radius:50%;background:#19121d45;display:grid;place-items:center}.stick:before{content:'';position:absolute;inset:18px;border:1px solid #d6b8971c;border-radius:50%}.stick>i{width:45px;height:45px;border-radius:50%;background:#c6a89122;border:1px solid #d6b89760;position:absolute;pointer-events:none}.stick>span{position:absolute;bottom:15px;font-size:7px;letter-spacing:1.3px;color:#cbbfa8a0;pointer-events:none}.stick.active{border-color:#ffc58d9e}.abilities{bottom:calc(165px + var(--safe-bottom));right:23px;gap:9px}.ability{width:55px;height:56px}.ability kbd{display:none}.objective{bottom:calc(160px + var(--safe-bottom));max-width:65vw;font-size:11px}.build-strip{bottom:calc(170px + var(--safe-bottom));left:22px;max-width:40vw;gap:5px}.build-icon{width:28px;height:28px;font-size:16px}.title-foot>span{display:none}.title-foot{justify-content:center}.title-foot .text-button{padding:12px}button{min-height:44px}.icon-button{width:44px;height:44px}}
@media (max-width:700px){#topbar{inset:calc(12px + var(--safe-top)) 14px auto;gap:12px}.wordmark{font-size:17px;letter-spacing:-1px}.sigil{font-size:12px;margin:0 3px}.tools{gap:4px}.icon-button{width:36px;height:36px;font-size:21px;min-height:36px}.title-screen{align-items:center;padding:86px 8vw 72px}.title-content{width:min(390px,90vw)}h1{font-size:clamp(72px,17vw,122px);line-height:.9}.eyebrow{font-size:8px;letter-spacing:1.7px}.title-copy{font-size:13px;margin-bottom:22px}.title-stats{gap:28px}.title-foot{left:8vw;right:8vw;bottom:calc(10px + var(--safe-bottom))}.title-foot>span{display:none}.title-foot .text-button{font-size:11px}#shade{background:linear-gradient(90deg,#0d0b16ef,#0c0b14b0 70%,#100d167a)}#run-hud{gap:8px;flex-wrap:wrap}.vitals{padding:8px 9px;gap:8px}#hearts{gap:3px}.heart{width:12px;height:12px}#room-strip{gap:4px;padding:5px 8px;position:absolute;top:48px;left:0}.room-node{width:15px;height:5px}.room-node.boss{width:7px;margin:0 3px}#ember-count{font-size:11px}.ember-symbol{font-size:9px;margin-left:-3px}body:not([data-mode=title]) .wordmark{display:none}#boss-hud{top:calc(73px + var(--safe-top));width:65vw}#boss-name{font-size:8px}.boss-track{height:6px}.reward-screen{padding:100px 18px 24px;justify-content:center}.reward-heading{margin-bottom:20px}h2{font-size:36px}.reward-heading>p:last-child{font-size:11px}.relic-choices{grid-template-columns:1fr;gap:10px;width:min(420px,100%)}.relic-card{min-height:108px;padding:15px 18px 14px 79px;display:block;border-top-width:1px;border-left:3px solid var(--card-color,var(--ember))}.relic-icon{position:absolute;left:14px;top:23px;width:47px;height:47px;font-size:27px;margin:0}.relic-tag{font-size:8px;display:block;margin-bottom:6px}.relic-name{font-size:18px;display:block;margin-bottom:5px}.relic-desc{font-size:10px;line-height:1.55;display:block;padding-right:7px}.relic-level{position:absolute;top:17px;right:16px;font-size:8px;margin:0}.relic-key{display:none}.choice-hint{margin:14px 0 0;font-size:8px}.end-screen{padding:85px 28px 35px}.end-stats{gap:20px;font-size:8px}.end-stats strong{font-size:27px}.room-banner{top:21%;font-size:23px}.objective{font-size:10px}.title-content #load-message{font-size:9px}.weapon-choice{font-size:9px;padding:9px 7px}.weapon-choice small{font-size:8px}.weapon-choice .weapon-icon{font-size:17px}dialog{padding:22px}dialog h2{font-size:35px}.dialog-head .eyebrow{font-size:8px}}
@media (max-height:640px) and (min-width:701px){.title-screen{padding-top:75px;padding-bottom:60px}h1{font-size:78px;margin-bottom:15px}.title-copy{margin-bottom:15px;font-size:12px}.title-content{width:410px}.title-stats{display:none}.eyebrow{margin-bottom:12px}.primary-button{min-height:49px}.title-foot{bottom:12px}.title-copy br{display:none}.reward-screen{padding-top:70px}.relic-card{min-height:238px;padding:17px}.relic-icon{margin-bottom:13px;width:43px;height:43px;font-size:24px}.reward-heading{margin-bottom:16px}.reward-heading h2{font-size:36px}.end-stats{padding:16px;margin:16px 0}.end-content>h2{font-size:48px}}
@media (max-height:650px) and (max-width:700px){.title-screen{padding-top:65px;padding-bottom:50px}h1{font-size:65px;margin-bottom:15px}.title-copy{font-size:11px;margin-bottom:15px}.title-stats{display:none}.primary-button{min-height:48px}.eyebrow{margin-bottom:12px}.title-content #load-message{margin-bottom:6px}.reward-screen{padding-top:65px;padding-bottom:12px}.reward-heading{margin-bottom:12px}.reward-heading h2{font-size:29px;margin-bottom:8px}.relic-card{min-height:92px;padding-top:11px;padding-bottom:10px}.relic-icon{top:19px}.relic-tag{margin-bottom:4px}.relic-name{font-size:16px}.choice-hint{display:none}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media (pointer:coarse){.objective{top:calc(107px + var(--safe-top));bottom:auto;max-width:70vw;width:max-content;pointer-events:none}.room-banner{top:24%}}
@media (pointer:coarse){.tools .icon-button{width:44px;height:44px;min-height:44px}.room-banner{top:32%}}
@media (pointer:coarse) and (max-height:500px){#touch-controls{bottom:calc(13px + var(--safe-bottom));left:18px;right:18px}.stick{width:86px;height:86px}.stick>i{width:34px;height:34px}.stick>span{font-size:6px;bottom:9px}.abilities{bottom:calc(110px + var(--safe-bottom));right:18px;gap:7px}.ability{width:49px;height:49px}.ability>span{font-size:22px}.objective{top:76px;font-size:9px;padding:7px 11px}.room-banner{top:37%;font-size:21px}.build-strip{bottom:120px}.build-icon{width:25px;height:25px}}
@media (max-height:500px) and (min-width:701px){.title-screen{padding:75px 7vw 50px;align-items:center}.title-content{width:100%;min-height:235px;padding-left:50%;position:relative}.title-content>.eyebrow{position:absolute;left:0;top:5px;font-size:8px;letter-spacing:1.6px}.title-content>h1{position:absolute;left:0;top:35px;font-size:70px;margin:0}.title-content>.title-copy{position:absolute;left:0;top:168px;width:43%;font-size:11px;margin:0;line-height:1.5}.title-content .loadout-label{margin-top:2px;font-size:8px}.title-content .weapon-options{margin-bottom:11px}.title-content .weapon-choice{min-height:44px;padding:8px}.title-content>.primary-button{min-height:46px;font-size:13px;padding:10px 15px}.title-content>.secondary-button{min-height:39px;font-size:11px;padding:8px 14px;margin-top:8px}.title-content #load-message{font-size:8px;line-height:1.4;margin:8px 0 0}.title-foot{bottom:8px;left:7vw;right:7vw;justify-content:flex-end}.title-foot>span{display:none}.title-foot>.text-button{font-size:10px;padding:8px;min-height:32px}.title-stats{display:none}}

/* Keep Chinese labels readable without changing the artwork or combat geometry. */
.language-button{font-size:12px;font-weight:bold;letter-spacing:.5px;flex-shrink:0}
.dialog-tools{display:flex;gap:8px;align-items:center}
.dialog-head .dialog-tools .icon-button{width:44px;height:44px;min-height:44px}
.dialog-head .dialog-tools .language-button{font-size:12px}
h2,.relic-name{font-family:Georgia,'Noto Serif SC','Songti SC','SimSun',serif}
.room-banner{font-family:Impact,'Arial Black','Microsoft YaHei','PingFang SC',sans-serif}
:lang(zh-CN) .eyebrow,:lang(zh-CN) .loadout-label,:lang(zh-CN) .relic-tag,:lang(zh-CN) .choice-hint{letter-spacing:.08em}
:lang(zh-CN) .eyebrow,:lang(zh-CN) .loadout-label{font-size:11px}
:lang(zh-CN) .weapon-choice{font-size:12px}
:lang(zh-CN) .weapon-choice small{font-size:10px}
:lang(zh-CN) .ability strong{font-size:10px;letter-spacing:.08em}
:lang(zh-CN) .stick>span{font-size:9px;letter-spacing:.08em}
:lang(zh-CN) .title-stats,:lang(zh-CN) .end-stats{letter-spacing:.04em}
@media(max-width:700px){.tools .language-button{font-size:12px}:lang(zh-CN) .eyebrow,:lang(zh-CN) .loadout-label{font-size:10px}:lang(zh-CN) .weapon-choice{font-size:11px}:lang(zh-CN) .weapon-choice small{font-size:9px}:lang(zh-CN) .relic-desc{font-size:12px}:lang(zh-CN) .relic-tag{font-size:10px}:lang(zh-CN) .choice-hint{font-size:10px}}
/* On narrow phones the language control occupies the free end of the progress row. */
@media(max-width:420px){#topbar{gap:8px}.vitals{padding-inline:7px;gap:6px}#hearts{flex-shrink:0}#language-toggle{position:absolute;top:48px;right:0;width:44px;height:44px;min-height:44px}#boss-hud{width:calc(100vw - 140px)}}

/* World interactions stay separate from aiming, movement and ability controls. */
#adventure-ui{position:absolute;bottom:calc(24px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:min(300px,45vw);display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none}
#quest-status{margin:0;padding:5px 9px;color:var(--mint);font-size:11px;line-height:1.4;text-align:center;background:#132020d9;border-radius:3px;text-wrap:balance}
#quest-status:empty{display:none}
#interact-button{min-height:44px;max-width:100%;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #a4d4ab;background:#193029ed;box-shadow:0 4px 12px #0007;border-radius:4px;color:#d9f6cb;font-size:12px;line-height:1.35;pointer-events:auto}
#interact-button:hover{background:#2b4b39;border-color:#e1f5b7}
#interact-button kbd{font-family:inherit;font-size:10px;color:#adcdaf;border:1px solid #80a883;padding:2px 4px;border-radius:2px}
@media(pointer:coarse) and (min-height:501px){#adventure-ui{left:20px;bottom:calc(150px + var(--safe-bottom));transform:none;width:min(220px,calc(100vw - 176px));align-items:stretch}#interact-button{padding:8px;font-size:11px}#interact-button kbd{display:none}#quest-status{font-size:10px;padding:5px 6px}.build-strip{bottom:calc(245px + var(--safe-bottom))}}
@media(pointer:coarse) and (max-height:500px){#adventure-ui{bottom:calc(15px + var(--safe-bottom));width:min(320px,45vw);gap:4px}#quest-status{font-size:10px;padding:4px 8px}#interact-button{padding:7px 12px;font-size:11px}#interact-button kbd{display:none}}
/* Short landscape rewards start below the persistent HUD and retain all three descriptions. */
@media(max-height:500px) and (min-width:701px){.reward-screen{padding:76px 25px 12px;justify-content:flex-start;overflow-y:auto}.reward-heading{margin-bottom:12px}.reward-heading .eyebrow{display:none}.reward-heading h2{font-size:29px;line-height:1.1;margin-bottom:6px}.reward-heading>p:last-child{font-size:11px;line-height:1.35}.relic-choices{grid-template-columns:repeat(3,minmax(0,245px));gap:14px;width:min(100%,763px)}.relic-card{min-height:202px;padding:14px}.relic-icon{width:33px;height:33px;font-size:23px;margin-bottom:9px}.relic-tag{font-size:8px;margin-bottom:6px}.relic-name{font-size:18px;margin-bottom:7px}.relic-desc{font-size:11px;line-height:1.5}.relic-level{margin-top:11px;font-size:8px}.relic-key{top:12px;right:12px}.choice-hint{margin:9px 0 0;font-size:8px}}

.act-node{display:flex;gap:4px;align-items:center}.act-node+.act-node{margin-left:7px}.act-node .room-node{display:block;width:10px;height:7px}.act-node .room-node.boss{width:7px;height:7px;margin:0 2px}#room-strip:has(.act-node){gap:0}
@media(max-width:700px){.act-node{gap:3px}.act-node+.act-node{margin-left:8px}.act-node .room-node{width:6px;height:5px}.act-node .room-node.boss{width:5px;height:5px;margin:0 1px}#room-strip:has(.act-node){padding:6px 8px}}

/* Discoveries use legible, stable information separate from combat warnings. */
#discovery-panel{position:absolute;top:118px;left:28px;width:264px;padding:12px 14px;border:1px solid #b18e52;border-left:3px solid #efc57b;border-radius:4px;background:linear-gradient(115deg,#171811f2,#111820ed);box-shadow:0 4px 14px #0006;pointer-events:none;text-wrap:pretty;color:#fff1d7}
#discovery-panel[data-tone=mint]{border-color:#659686;border-left-color:#b9efd9}
#discovery-panel[data-tone=violet]{border-color:#9d87b3;border-left-color:#dfc1ff}
#discovery-panel[data-near=true]{background:#1b251ef5;border-left-width:4px}
#discovery-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;color:#d9ba85;margin-bottom:5px}
#discovery-title{display:block;font-size:17px;line-height:1.35}
#discovery-detail{margin:7px 0 4px;font-size:14px;line-height:1.55;color:#f5e8cf}
#discovery-hint{font-size:12px;line-height:1.5;color:#bdcfc6}
#interact-button{min-height:50px;padding:12px 18px;font-size:15px;font-weight:750;border:2px solid #d1efc5;color:#f2ffe8;background:#244435f5;box-shadow:0 0 0 3px #0a171ac9,0 5px 16px #0007}
#interact-button kbd{font-size:13px;padding:3px 6px;color:#e9ffdf}
#quest-status{font-size:13px;color:#e0ffe6;padding:7px 10px;line-height:1.5;border:1px solid #486d5d}
#toast{font-size:15px;line-height:1.6;background:#151c24f5;border-color:#b9b18e;color:#fff1d9;max-width:min(640px,calc(100vw - 32px));padding:12px 16px}
@media(max-width:700px){#discovery-panel{top:115px;left:14px;width:min(230px,calc(100vw - 28px));padding:9px 11px}#discovery-title{font-size:15px}#discovery-detail{font-size:13px;margin:4px 0}#discovery-kicker{font-size:10px;margin-bottom:4px}#discovery-hint{font-size:12px}#toast{font-size:14px}}
@media(pointer:coarse) and (min-height:501px){#adventure-ui{left:14px;width:calc(100vw - 168px);max-width:230px;bottom:calc(158px + var(--safe-bottom))}#interact-button{font-size:14px;min-height:52px;padding:10px 8px}#quest-status{font-size:12px}.build-strip{bottom:calc(278px + var(--safe-bottom))}#toast{bottom:calc(282px + var(--safe-bottom));padding:9px 12px}}
@media(max-height:500px){#discovery-panel{top:112px;left:14px;width:220px;padding:8px 10px}#discovery-title{font-size:14px}#discovery-detail{font-size:12px;margin:3px 0}#discovery-kicker{display:none}#discovery-hint{font-size:11px}#toast{max-width:50vw;font-size:13px}}
@media(pointer:coarse) and (max-height:500px){#adventure-ui{bottom:calc(12px + var(--safe-bottom));width:38vw}#interact-button{font-size:14px;min-height:46px;padding:8px 12px}#quest-status{font-size:12px}}
