body:has(#panel:not([hidden])){color-scheme:light;background:#eff1e8;color:#263c32;--line:#bac6b7;--muted:#53675c}
.mast{background:#e9ede2;color:#344c3e;border-color:#bdc9b9}
.mast .brand span,#record,.mast-tools a{color:#3b5849}.mast-tools,.deck-controls,.deck-heading{display:flex;align-items:center;gap:14px}.mast-tools a{font-size:.88rem}
.starter-deck{margin-top:22px}.deck-heading h2{font-size:1.4rem;margin:0}.deck-heading p,.deck-controls label{font-size:.9rem;color:#53695d}
.deck-controls{flex-wrap:wrap;justify-content:flex-end}.deck-controls .go{min-height:42px}
#panel.atlas,#panel.result{max-width:1080px;padding:24px 20px}
.atlas-heading,.boss-ahead{display:flex;align-items:center;justify-content:space-between;gap:12px}.atlas-heading{margin-bottom:12px}
.atlas h1,.result h1{font:800 clamp(1.8rem,3vw,2.6rem) var(--title-type);margin:2px 0}.atlas .eyebrow,.result .eyebrow{color:#52695c}
.boss-ahead{font-size:.94rem;color:#425747}.boss-ahead span{color:#e6ae79}
.atlas-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(250px,.85fr);gap:18px;align-items:start}
.atlas-plate,.atlas-notes,.result-sheet{border:1px solid #aab7a7;box-shadow:none}
.atlas-plate{background:#e9ede3;color:#423e2f;padding:10px;border-radius:3px 12px 4px 12px}
.map-sheet{position:relative;border:1px solid #c4cdbf;isolation:isolate;background:#f2f4ea}
.map-ink{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.map-floors{display:flex;flex-direction:column-reverse;margin:0;padding:14px clamp(12px,6vw,80px) 16px 10px;list-style:none;gap:4px}
.map-floor{display:flex;align-items:center;min-height:66px}.floor-label{width:46px;text-align:center;color:#736345;font-size:.83rem}.is-current>.floor-label{color:#175741;font-weight:650}
.map-lanes{display:flex;align-items:center;justify-content:space-evenly;gap:14px;flex:1}
.map-node{position:relative;display:grid;justify-items:center;align-content:center;gap:0;font-size:.86rem;line-height:1.23;text-align:center}
.map-building{box-sizing:border-box;width:31px;height:31px;display:grid;place-items:center;border:1.5px solid #8f805b;border-radius:50%;background:#dae2d4}
.map-building i{width:15px;height:18px;background:currentColor;clip-path:polygon(0 45%,50% 0,100% 45%,88% 45%,88% 100%,58% 100%,58% 65%,40% 65%,40% 100%,12% 100%,12% 45%)}
.elite i{clip-path:polygon(0 0,34% 28%,50% 4%,67% 28%,100% 0,81% 78%,50% 100%,18% 78%)}
.boss i{clip-path:polygon(0 12%,24% 27%,50% 0,76% 27%,100% 12%,94% 75%,50% 100%,6% 75%)}
.boss .map-building{color:#783d25;border-color:#936341}.future .node-title{background:#f2f4ea;color:#5f6c5e;font-size:.78rem}
.map-node.current{min-width:108px;min-height:77px;padding:5px 12px;background:#284e3f;border:2px solid #758c74;color:#fff2ce;box-shadow:0 3px 0 #655f40;border-radius:16px 3px}
.map-node.current:hover,.map-node.current:focus-visible{background:#39674c;outline:2px solid #735c36;outline-offset:2px}.current .map-building{background:transparent;border:0;color:#ead099;height:22px}.map-node small{color:inherit;opacity:.85}
.map-node.elite.current{background:#674a38}.map-node.elite.current:hover{background:#795a3f}.map-node.boss.current{background:#493739}
.floor-label{background:#e9ede3;border-radius:2px}.map-node.past .node-title,.map-node.entry .node-title{background:#edf0e5}
.map-key{display:flex;justify-content:center;gap:22px;list-style:none;margin:10px 0 0;padding:0;font-size:.78rem}.map-key li:before{content:'';display:inline-block;width:17px;margin-right:6px;vertical-align:middle;border-top:2px solid #597662}.key-open:before{border-color:#a07642!important}.key-ahead:before{border-top-style:dashed!important}
.atlas-notes,.result-sheet{background:#f5f6ec;color:#283a2e;border-radius:4px;padding:20px}.atlas-notes h2,.atlas-notes h3{font-family:var(--title-type);margin:0}.atlas-notes h2{font-size:1.6rem}
.loadout{display:grid;gap:3px;margin:12px 0;font-size:.89rem}.loadout>div{display:flex;justify-content:space-between;gap:12px}.loadout dt{color:#526755}.loadout dd{margin:0;text-align:right}
.room-intel,.sector,.journal{padding-top:12px;margin-top:12px;border-top:1px solid #b3b797}.room-intel p,.sector,.journal{font-size:.87rem}.room-intel .tag{color:#666044}.room-intel h3{font-size:1.15rem}.room-facts,.room-prize{margin-top:7px}.room-prize{color:#48653c;font-weight:600}
.result-sheet{max-width:840px;margin:10vh auto}.result .eyebrow{color:#68593c}.result .card{background:#e5eadd;color:#263a30}.result .card small,.result .card em,.result .tag{color:#475b46}
.room-intel.highlight{box-shadow:-3px 0 #7f9680;background:#e6ebe0}
.result .go{background:#375e4c;border-color:#375e4c;color:white}
@media(max-width:760px){.atlas-grid{grid-template-columns:1fr}.mast-tools{gap:8px}.map-floors{padding-right:8px}.deck-controls{gap:6px}}
.mast-tools .other-routes {position:relative;font-size:.9rem;z-index:5}
.other-routes summary,.deck-controls summary,.run-record summary {cursor:pointer;color:#456353}
.other-routes nav {position:absolute;right:0;top:calc(100% + 10px);display:grid;min-width:9rem;padding:8px;background:#fafaf2;border:1px solid #aebcad;border-radius:5px}
.mast .other-routes nav a {display:block;padding:8px 12px;border:0;text-decoration:none}
.other-routes nav a:hover {background:#e6ece0}
.title-paths {display:flex;align-items:baseline;justify-content:flex-end;gap:22px;margin-top:30px}
.title-copy .title-paths .ascent-go {margin:0;text-decoration:none}
.title-paths button {padding:8px 0;background:none;border:0;border-bottom:1px solid #97a99b;color:#3f5e50}
.deck-controls .seed-control {margin-top:8px}
#panel .result-sheet {display:grid;grid-template-columns:minmax(200px, .85fr) minmax(290px,1.2fr);align-items:center;gap:clamp(40px,6vw,96px);max-width:1000px;margin:clamp(54px,11vh,120px) auto;padding:0 28px;border:0;background:none;box-shadow:none;word-break:keep-all}
.result .result-body .eyebrow,.atlas-heading .eyebrow {color:#526e5e;font-weight:600;font-size:1rem}
.result .result-body h1,.atlas .atlas-heading h1 {font:800 clamp(2.7rem,4.2vw,4.3rem)/1.15 var(--title-type);margin:9px 0 12px;color:#243e35;letter-spacing:-.035em}
.result .result-hp {color:#59675e;font-size:.95rem}
.result-hp strong {margin-left:5px;color:#714939;font-variant-numeric:tabular-nums}
.result-hp small {color:#45674e}
.result-art {position:relative;width:min(100%,300px);margin-top:26px}
.result-art .lift-gate {display:block;width:100%;height:auto;max-width:none}
.result-art img {position:absolute;width:22%;left:52%;bottom:-5%;height:auto}
.result .choices {margin:0}
.result .choices h2 {margin:0 0 13px;font:600 1rem/1.4 var(--hud-type);color:#496353}
.reward-options {display:grid;border-block:1px solid #99ab99}
.reward-pick {position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:15px 16px;text-align:left;border:0;background:transparent;color:#263c34}
.reward-pick+.reward-pick {border-top:1px solid #c2cebf}
.reward-pick::after {content:"";width:.48rem;height:.48rem;flex:none;border:solid #567060;border-width:2px 2px 0 0;transform:rotate(45deg)}
.reward-pick:hover,.reward-pick:focus-visible {background:#e0e9db}
.reward-pick:focus-visible,.result button:focus-visible {outline:2px solid #30695b;outline-offset:2px}
.reward-copy {display:grid;flex:1;gap:5px;line-height:1.45}
.reward-copy small {color:#526c59}.reward-copy strong {font:800 1.4rem/1.24 var(--title-type)}
.reward-copy>span {font-size:.94rem;color:#405448}.reward-copy em {font-size:.85rem;font-style:normal;color:#7c4c37}
.reward-pick img {width:76px;height:78px;object-fit:contain;flex:none}
.reward-stat {font:800 2.35rem/1 var(--title-type);color:#577965}
.reward-cost {position:absolute;right:12px;top:8px;display:flex;gap:2px}
.reward-cost i {height:6px;width:6px;background:#54785f;border-radius:1px}
.result .lost {min-height:340px}
.lost .result-art {justify-self:end;width:min(100%,345px);opacity:.83}
.result .lost button,.result .lost .run-record {font-size:.95rem}
.result .lost .go {background:#365f52;color:white;border-color:#365f52}
.result .lost .quiet {border:0;color:#496457;background:transparent}
.run-record {margin-top:26px;color:#52685a}
@media(max-width:650px){
 #panel .result-sheet {grid-template-columns:1fr;gap:24px;margin:22px auto;padding:0 8px}
 .loot .result-art {display:none}
 .lost .result-art {width:130px;justify-self:start}
 .title-paths {align-items:center;flex-wrap:wrap;gap:15px}
}
