@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&family=Noto+Serif+KR:wght@500;600;700&display=swap');
:root{color-scheme:dark;--bg:#141713;--panel:#1c201b;--line:#343a2f;--muted:#9da491;--text:#e9e7da;--gold:#d9bc7b;--red:#d98d78;--green:#a0b997;--blue:#97b4c5;font-family:'Noto Sans KR',sans-serif;font-size:14px;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 45% 20%,#29302155,transparent 65%);min-width:320px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s;color:var(--text)}button:disabled{cursor:not-allowed;opacity:.43}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:5px}a{color:inherit;text-decoration:none}button:not(:disabled):active{transform:translateY(1px)}h1,h2,p{margin:0}h1,h2{font-weight:600}button{border:1px solid var(--line);background:transparent;border-radius:7px}.shell{max-width:1260px;padding:0 40px;margin:auto}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;letter-spacing:1.5px;font-size:17px;transition:color .18s}.brand:hover{color:var(--gold)}.brand b{font-weight:400;color:var(--gold)}.brand small{font-family:'Noto Sans KR',sans-serif;display:block;font-size:10px;color:var(--muted);letter-spacing:3px;margin-top:5px}.brand-die{font-size:43px;color:var(--gold);line-height:1}.header-actions{display:flex;align-items:center;gap:12px}.quiet{padding:9px 13px;color:#c1c5b6;background:#22271f;font-size:12px}.quiet:hover{background:#30372a;border-color:#71775b}.save-status{font-size:11px;color:var(--muted);margin-right:10px}.save-status::before{content:'•';color:#9fb487;margin-right:7px}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin:38px 0 30px;gap:16px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:var(--gold)}h1{font-family:'Noto Serif KR',serif;font-size:32px;letter-spacing:-1.2px;margin:10px 0}.subtitle{color:var(--muted);font-size:13px}.run-tag{font-size:9px;letter-spacing:1px;color:#bcc2ae;display:flex;align-items:center;gap:8px;padding-bottom:5px}.run-tag>span:last-child{margin-left:15px;color:var(--muted)}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--gold)}.route{display:flex;align-items:center;margin-bottom:26px;padding:20px 28px;background:#1a1e18;border:1px solid var(--line);border-radius:9px;gap:0}.route-stop{display:flex;align-items:center;gap:10px;color:#8e9585;font-size:11px;white-space:nowrap}.route-stop .node{width:29px;height:29px;border-radius:50%;border:1px solid #414737;display:grid;place-items:center;font-size:12px;background:#23281f}.route-stop.current{color:var(--gold)}.route-stop.current .node{border-color:var(--gold);background:#d9bc7b1a;box-shadow:0 0 0 4px #d9bc7b08}.route-stop.done{color:#b7c6a2}.route-stop.done .node{background:#34412b;border-color:#526343}.route-line{flex:1;height:1px;background:var(--line);margin:0 18px;min-width:8px}.game-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.main-column,.side-column{display:flex;flex-direction:column;gap:20px}.panel{border:1px solid var(--line);background:var(--panel);border-radius:10px;overflow:hidden}.arena{position:relative;height:365px;background:radial-gradient(ellipse at 50% 35%,#48583b33,transparent 70%),#1c201b;text-align:center;padding:22px 26px}.arena-top{display:flex;justify-content:space-between;align-items:center;text-align:left;position:relative;z-index:2}.turn-badge{font-size:10px;color:#b3bbaa;padding:5px 9px;border:1px solid var(--line);border-radius:4px}.enemy-scene{height:181px;position:relative;display:grid;place-items:center}.arch{position:absolute;width:218px;height:245px;border:1px solid #606a463a;border-radius:125px 125px 0 0;top:-3px;background:linear-gradient(#2a342029,transparent);mask-image:linear-gradient(#000 65%,transparent)}.arch-lines{position:absolute;inset:9px;border:1px solid #606a462b;border-radius:125px 125px 0 0}.arch::before,.arch::after{content:'✦';position:absolute;top:104px;font-size:10px;color:#6b7554}.arch::before{left:-5px}.arch::after{right:-5px}.enemy-art{width:155px;height:155px;position:relative;z-index:1;filter:drop-shadow(0 12px 20px #05070566);animation:float 4s ease-in-out infinite}.enemy-art svg{width:100%;height:100%;overflow:visible}.ground{width:120px;height:14px;position:absolute;background:#080b0866;filter:blur(5px);border-radius:50%;bottom:13px}.spark{position:absolute;color:#a0ab6c88}.s1{left:29%;top:52px;font-size:17px}.s2{right:27%;top:94px;font-size:25px}.s3{right:36%;top:18px;font-size:10px}.enemy-info{position:relative;z-index:2}.enemy-info>p{font-size:10px;color:var(--muted);margin-bottom:5px}.enemy-info h2{font-family:'Noto Serif KR',serif;font-size:23px;letter-spacing:-.5px}.enemy-health{display:flex;align-items:center;justify-content:center;gap:10px;margin:12px 0 0}.health-track{height:6px;background:#111710;border-radius:10px;overflow:hidden}.enemy-health .health-track{width:148px}.health-track>div{height:100%;border-radius:10px;background:var(--red);transition:width .4s}.enemy-health>span{font-size:10px;color:#bec4b2;min-width:40px;font-variant-numeric:tabular-nums}.intent{position:absolute;right:22px;bottom:20px;left:22px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#d4a18f}.intent b{font-weight:600;color:#e4b19b}.intent.heavy{color:#efb46f}.workbench{padding:23px 24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-heading h2{font-size:14px}.workbench .section-heading h2{margin-top:6px;font-size:18px;letter-spacing:-.5px}#placement-count{font-size:11px;color:var(--muted)}.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.slot{min-width:0;height:145px;border-color:#474138;background:#28251f;padding:13px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}.slot:hover{background:#373027;border-color:#a58f6f}.slot.guard{background:#222a2a;border-color:#394b4c}.slot.guard:hover{background:#2b3a3b;border-color:#789fa7}.slot.heal{background:#252d22;border-color:#3f4f37}.slot.heal:hover{background:#33422c;border-color:#89a777}.slot.ready{border-style:dashed}.slot.filled{border-style:solid}.slot-title{font-size:12px;color:var(--red);display:flex;gap:6px;align-items:center}.guard .slot-title{color:var(--blue)}.heal .slot-title{color:var(--green)}.slot-icon{font-size:15px}.slot-value{width:43px;height:43px;border:1px dashed #8d96824d;border-radius:7px;display:grid;place-items:center;margin:3px 0;font-size:21px;color:#9ca68f}.slot.filled .slot-value{background:var(--gold);border:none;color:#29261c;font-size:30px;box-shadow:0 3px 0 #9c814a}.slot small{font-size:10px;color:#b4b6a5}.slot-description{font-size:10px;color:var(--muted)}.dice-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:22px}.dice-heading p{font-size:11px;color:var(--muted);line-height:1.7}.reroll{font-size:11px;white-space:nowrap;padding:7px 9px;color:#c8cbbb}.reroll span{margin-left:6px;color:var(--gold);font-size:10px}.reroll:hover:not(:disabled){background:#333b2c;border-color:#838d68}.dice-tray{display:flex;justify-content:center;gap:24px;padding:23px 0 17px}.die{width:64px;height:64px;border-radius:11px;border:1px solid #f3e4b6;background:linear-gradient(145deg,#f3e6c2,#d4bc85);color:#38372b;box-shadow:0 5px 0 #877750,0 8px 15px #0003;position:relative;display:grid;place-items:center}.die:hover{background:#fff1c9;transform:translateY(-3px);border-color:white}.die.selected{outline:2px solid var(--gold);outline-offset:6px;transform:translateY(-3px);background:#fff0bf}.die.assigned:not(.selected){background:#58604c;border-color:#7b846b;box-shadow:0 4px 0 #343c2e;color:#dce2cc}.die-label{position:absolute;bottom:-23px;left:0;right:0;font-size:9px;color:#adb69f}.pips{display:grid;grid-template:repeat(3,9px)/repeat(3,9px);gap:5px}.pip{background:currentColor;border-radius:50%;width:8px;height:8px}.turn-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;padding-top:19px;border-top:1px solid var(--line)}.prediction{font-size:11px;color:var(--muted);line-height:1.8}.prediction b{font-weight:600;color:#d8cbaa}.primary{background:var(--gold);color:#27291e;border-color:var(--gold);font-weight:700;padding:13px 20px;font-size:12px;display:flex;justify-content:center;align-items:center;gap:28px}.primary:hover:not(:disabled){background:#edcf8b;border-color:#edcf8b;box-shadow:0 3px 18px #d9bc7b18}.primary:disabled{background:#8a805f;opacity:.6;border-color:#8a805f}.player,.relic-panel,.journal{padding:22px}.tiny-label{font-size:10px;color:var(--muted)}.player-identity{display:flex;align-items:center;gap:12px;margin:24px 0}.avatar{width:45px;height:49px;border:1px solid #6d7153;border-radius:6px;background:linear-gradient(145deg,#414b32,#293023);color:var(--gold);font-size:32px;text-align:center}.player-identity h2{font-size:13px;margin-bottom:5px}.player-identity p{font-size:9px;color:var(--muted)}.hp-label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px}.hp-label span{color:#b7c99e}.hp-label strong{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}.player-health{height:7px}.player-health>div{background:#a3ba88}.rest-note{font-size:10px;color:var(--muted);margin-top:12px}.counter{font-size:10px;color:var(--gold);background:#313727;border:1px solid #485238;padding:2px 7px;border-radius:4px}.relic-empty{min-height:128px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--muted);font-size:11px;line-height:1.8}.relic-empty>span{font-size:30px;color:#687653;margin:7px}.relic-empty small{color:#8a9480;font-size:10px}.relic-item{display:flex;gap:12px;margin-top:18px}.relic-icon{display:grid;place-items:center;flex-shrink:0;width:33px;height:36px;background:#303729;border:1px solid #4b553c;border-radius:5px;font-size:20px;color:var(--gold)}.relic-item b{font-size:11px;font-weight:500}.relic-item p{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.65}.journal-icon{font-size:18px;color:#869276}.journal ol{list-style:none;margin:20px 0 0;padding:0;max-height:190px;overflow:auto;scrollbar-width:thin;scrollbar-color:#4b553c transparent}.journal li{position:relative;padding:0 0 15px 15px;font-size:10px;line-height:1.85;color:var(--muted);border-left:1px solid #3b4433;margin-left:3px}.journal li::before{content:'';position:absolute;width:5px;height:5px;background:#657452;border-radius:50%;left:-3px;top:6px}.journal li:first-child{color:#d1d6c0}.journal li:first-child::before{background:var(--gold)}.journal li:last-child{padding-bottom:0;border-color:transparent}.side-note{text-align:center;display:flex;align-items:center;justify-content:center;gap:12px;color:#89977b;font-family:'Noto Serif KR',serif;font-size:11px;line-height:1.9;padding:5px}.side-note>span{font-size:25px;color:#a5a878}.footer{display:flex;justify-content:space-between;gap:15px;padding:24px 0 28px;margin-top:15px;color:#8d9782;font-size:10px}.footer-dot{margin:0 8px}dialog{color:var(--text);width:min(580px,calc(100% - 32px));border:1px solid #636a4b;border-radius:15px;padding:35px;background:radial-gradient(ellipse at top,#343d2c,#1c211b 70%);box-shadow:0 30px 100px #0008;max-height:88dvh;overflow:auto}dialog::backdrop{background:#080b09d9;backdrop-filter:blur(7px)}dialog[open]{animation:appear .2s ease-out}dialog h2{font-family:'Noto Serif KR',serif;font-size:24px;line-height:1.5;margin:12px 0 18px}dialog p:not(.eyebrow){color:#b9c2ad;font-size:12px;line-height:1.9;margin:12px 0}dialog ul{padding-left:20px;font-size:12px;color:#ccd1bf;line-height:2.1}dialog>.primary{width:100%;margin-top:22px}.dialog-close{position:absolute;right:15px;top:15px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.outcome-emblem{color:var(--gold);font-size:48px;text-align:center;margin-bottom:18px}.outcome-heading{text-align:center}.rewards{display:grid;gap:10px;margin-top:25px}.reward{display:flex;align-items:center;gap:15px;text-align:left;padding:18px;background:#2b3225;border:1px solid #46523b}.reward:hover{background:#3c472f;border-color:var(--gold)}.reward b{font-size:14px}.reward p{margin:5px 0 0!important;font-size:11px!important}.reward .relic-icon{width:44px;height:48px;font-size:28px}.outcome-buttons{display:flex;justify-content:center;margin-top:25px}.summary-stats{display:flex;justify-content:center;gap:35px;margin:25px 0;color:var(--muted);font-size:11px}.summary-stats b{display:block;color:var(--gold);font-size:25px;margin-bottom:5px}.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}body:has(dialog[open]){overflow:hidden}@keyframes float{50%{transform:translateY(-8px)}}@keyframes appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1400px){.shell{max-width:1320px}.arena{height:385px}.enemy-scene{height:200px}}
@media(max-width:1000px){.shell{padding:0 24px}.game-grid{grid-template-columns:minmax(0,1fr) 255px;gap:16px}.side-column,.main-column{gap:16px}.player,.relic-panel,.journal{padding:18px}.workbench{padding:20px}.route{padding:18px}.route-line{margin:0 12px}.route-stop{gap:7px}.save-status{display:none}.dice-heading{flex-wrap:wrap;justify-content:center}.dice-heading p{width:100%;text-align:center}.turn-footer{flex-direction:column}.turn-footer>.primary{width:100%}.prediction{text-align:center}.run-tag{display:none}}
@media(max-width:730px){.shell{padding:0 17px}.header{height:80px}.brand{font-size:13px;gap:8px}.brand-die{font-size:35px}.brand small{font-size:8px}.header-actions{gap:6px}.header-actions .quiet{padding:8px;font-size:11px}.intro{margin:27px 0 22px}h1{font-size:27px}.eyebrow{font-size:9px}.subtitle{font-size:12px}.route{padding:15px 12px;margin-bottom:17px}.route-stop{flex-direction:column;gap:7px;font-size:9px}.route-stop .node{width:25px;height:25px}.route-line{margin:0 8px;align-self:flex-start;margin-top:12px}.game-grid{grid-template-columns:minmax(0,1fr)}.side-column{display:grid;grid-template-columns:1fr 1fr;align-items:start}.player{grid-column:1/-1;grid-row:1;padding:17px}.player-identity{margin:12px 0}.player-identity p{font-size:10px}.player .section-heading{display:none}.rest-note{margin-top:8px}.player-identity .avatar{height:42px;width:40px;font-size:27px}.side-column .journal,.side-column .relic-panel{height:100%;padding:15px}.side-note{grid-column:1/-1}.arena{height:345px;padding:18px}.enemy-scene{height:165px}.enemy-art{width:140px;height:140px}.enemy-info h2{font-size:22px}.workbench{padding:18px}.slots{gap:8px}.slot{height:140px}.slot small{font-size:9px}.dice-heading{margin-top:17px}.dice-tray{gap:27px}.turn-footer{margin-top:25px}.footer{font-size:9px;flex-direction:column;align-items:center;gap:8px}.journal ol{max-height:160px}.relic-item{gap:8px}.relic-item .relic-icon{width:26px;height:30px;font-size:17px}.relic-item p{font-size:9px}dialog{padding:27px 22px}dialog h2{font-size:21px}.reward{padding:13px}.reward b{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Opposing actors and a staged combat timeline. */
.arena{height:auto;min-height:355px;padding-bottom:58px}.battle-stage{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:center;position:relative;margin:12px auto 14px;max-width:580px;min-height:240px}.combatant{position:relative;text-align:center;min-width:0}.fighter-art{width:145px;height:145px;margin:0 auto;position:relative;filter:drop-shadow(0 12px 14px #0005)}.fighter-art svg{width:100%;height:100%}.hero-art{animation:float 4s ease-in-out infinite}.fighter-name{font-family:'Noto Serif KR',serif;font-size:15px;margin:15px 0 12px}.fighter-hp{display:block;font-size:10px;color:#bec4b2;margin-top:7px}.hero-side>.health-track{width:130px;margin:auto}.battle-stage .enemy-info h2{font-size:19px}.battle-stage .enemy-info>p{font-size:9px}.battle-stage .enemy-health{flex-direction:column;gap:7px;margin-top:12px}.battle-stage .enemy-health .health-track{width:130px}.battle-divider{color:#8e9b75;font-size:20px;align-self:center}.battle-caption{min-height:25px;color:var(--gold);font-size:13px;line-height:1.7;text-align:center}.floating-number{position:absolute;left:0;right:0;top:22px;color:#ffd1b3;font-size:29px;font-weight:800;text-shadow:0 2px 8px #000;z-index:4;pointer-events:none}.battle-stage[data-stage="prepare"] .hero-art{animation:heal-glow .6s ease}.battle-stage[data-stage="prepare"] #hero-number{color:#c6e9a7;animation:number-rise .65s ease-out}.battle-stage[data-stage="player-attack"] .hero-art{animation:hero-strike .45s ease}.battle-stage[data-stage="enemy-hit"] .enemy-art{animation:hit-shake .4s ease}.battle-stage[data-stage="enemy-hit"] #enemy-number{animation:number-rise .65s ease-out}.battle-stage[data-stage="enemy-attack"] .enemy-art{animation:enemy-strike .45s ease}.battle-stage[data-stage="player-hit"] .hero-art{animation:hit-shake .4s ease}.battle-stage[data-stage="player-hit"] #hero-number{animation:number-rise .65s ease-out}.arena:has([data-stage="player-attack"]),.arena:has([data-stage="enemy-hit"]){border-color:#a7925b}.arena:has([data-stage="enemy-attack"]),.arena:has([data-stage="player-hit"]){border-color:#a3725d}.arena{transition:border-color .2s}
@keyframes hero-strike{45%{transform:translateX(50px) rotate(9deg)}75%{transform:translateX(40px)}}@keyframes enemy-strike{45%{transform:translateX(-50px) rotate(-9deg)}75%{transform:translateX(-40px)}}@keyframes hit-shake{20%,60%{transform:translateX(-7px);filter:brightness(1.8) drop-shadow(0 0 12px #df8a70)}40%,80%{transform:translateX(7px)}100%{transform:translateX(0)}}@keyframes heal-glow{50%{filter:brightness(1.3) drop-shadow(0 0 20px #b5dd83)}}@keyframes number-rise{from{transform:translateY(12px);opacity:0}20%{opacity:1}to{transform:translateY(-16px);opacity:1}}
@media(max-width:730px){.battle-stage{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);min-height:210px;gap:2px}.fighter-art{width:110px;height:120px}.fighter-name{font-size:12px;margin:16px 0 12px}.battle-stage .enemy-info h2{font-size:15px}.battle-stage .enemy-info>p{font-size:8px}.hero-side>.health-track,.battle-stage .enemy-health .health-track{width:90px}.battle-caption{font-size:11px}.arena{min-height:330px}.intent{font-size:10px;flex-wrap:wrap;gap:4px}.floating-number{font-size:24px}.battle-divider{font-size:15px}}
/* Chapter route and distinct encounter rewards. */
.route{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:22px}.chapter-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;color:var(--gold);margin-bottom:17px}.chapter-heading b{font-size:10px;letter-spacing:.6px}.chapter-heading>span{color:var(--muted);font-size:9px}.chapter-map+.chapter-map{border-left:1px solid var(--line);padding-left:24px}.chapter-nodes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;gap:8px}.chapter-nodes::before{content:'';height:1px;position:absolute;left:12%;right:12%;top:15px;background:var(--line)}.chapter-nodes .route-stop{position:relative;flex-direction:column;gap:7px;min-width:0;white-space:normal;text-align:center}.route-stop small{font-size:9px;color:var(--muted);line-height:1.5}.tier-elite .node{color:#e0be7d}.tier-miniboss .node{color:#d6a5db}.tier-boss .node{color:#eeb2a0}.chapter-map.locked{opacity:.5}.arena{padding-bottom:76px}.arena .intent{bottom:40px}.battle-reward{position:absolute;bottom:15px;left:15px;right:15px;color:#bac39c;font-size:10px;text-align:center}.slot.omitted{border-style:dashed;opacity:.62}.slot.omitted:hover{opacity:1}.reward small{display:block;font-size:10px;color:var(--muted);margin-bottom:4px}.reward.rare{border-color:#80658c;background:#302836}.reward.rare:hover{background:#44334e;border-color:#c49ad5}.reward.rare small{color:#d2b1e1}
@media(max-width:900px){.route{grid-template-columns:1fr;gap:20px}.chapter-map+.chapter-map{border-left:0;border-top:1px solid var(--line);padding:19px 0 0}.chapter-nodes .route-stop{font-size:10px}.chapter-heading{flex-wrap:wrap}.chapter-map.locked .route-stop small{display:none}.chapter-nodes .node{width:29px;height:29px}}
[hidden]{display:none!important}.route{display:block;padding:22px}.map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.map-toolbar h2{font-size:17px;margin:6px 0}.map-instructions{font-size:11px;color:var(--muted);line-height:1.8;margin-top:10px}.maps{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:24px}.maps .chapter-map+.chapter-map{border-left:1px solid var(--line);border-top:0;padding:0 0 0 30px}.map-canvas{position:relative;height:440px}.map-canvas>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-canvas path{stroke:#4a5540;stroke-width:1;fill:none;opacity:.8}.map-canvas path.traveled{stroke:var(--gold);stroke-width:2}.map-node{position:absolute;left:calc((var(--col) + .5)*100%/3);top:calc(var(--row)*88px);transform:translateX(-50%);width:90px;height:78px;border:0;background:#1a1e18;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px}.map-node>span{display:grid;place-items:center;width:31px;height:31px;border:1px solid #5e6a4f;border-radius:50%;background:#273120;font-size:16px;color:#c7d0b7}.map-node>b{font-size:10px;font-weight:500;color:#bdc5b3}.map-node>small{font-size:8px;color:var(--muted)}.map-node:disabled{opacity:.7;cursor:default}.map-node.available{border:1px solid #b79f68;background:#343525;box-shadow:0 0 18px #c7af6c18}.map-node.available>span{border-color:var(--gold);color:var(--gold)}.map-node.available:hover{background:#4a4b31;box-shadow:0 0 20px #c7af6c33}.map-node:not(:disabled):active{transform:translateX(-50%) translateY(1px)}.map-node.current{background:#364329;border:1px solid #8b9f66}.map-node.visited>span{background:#425338;color:#d8e8bf}.map-node.elite>span{color:#e6bc75;border-color:#9d7b44}.map-node.miniboss>span{color:#d4ade5;border-color:#9874ab}.map-node.boss>span{color:#eab09a;border-color:#b77b66}.map-node.unknown>span{color:#aad3ce;border-color:#638f8a}.map-legend{display:flex;gap:10px 19px;flex-wrap:wrap;color:var(--muted);font-size:10px;border-top:1px solid var(--line);padding-top:15px;margin-top:12px}.map-hint{padding:30px}.map-hint h2{font-family:'Noto Serif KR',serif;margin:14px 0;font-size:23px}.map-hint p:last-child{color:var(--muted);font-size:12px;line-height:1.9}.event-panel{padding:32px;text-align:center}.event-emblem{font-size:65px;color:#bccea1;margin:26px 0 16px}.event-panel h2{font-family:'Noto Serif KR',serif;font-size:26px}.event-story{font-size:13px;color:#b8c1ac;line-height:2;max-width:500px;margin:20px auto}.event-choices{display:grid;gap:12px;text-align:left;margin:28px 0}.event-choice{display:flex;flex-direction:column;gap:8px;padding:18px 20px;background:#293124;border-color:#4c5c3e;text-align:left}.event-choice:hover:not(:disabled){background:#3a452f;border-color:#a8bb80}.event-choice b{font-size:14px;color:#e0d5b7}.event-choice span{font-size:11px;color:#b8c1ab;line-height:1.8}.event-note{color:var(--muted);font-size:10px;line-height:1.8}.event-result{border:1px solid #64744b;background:#303a26;padding:20px;margin:28px 0;line-height:1.9;color:#d0dcb9}.event-panel>.primary{margin:20px auto 0}.effects-panel{padding:22px}.effect-chip{display:flex;flex-direction:column;gap:6px;padding:11px 12px;margin-top:12px;background:#3b2926;border:1px solid #705045;border-radius:6px;font-size:11px}.effect-chip b{color:#e4ac92}.effect-chip span{font-size:10px;color:#d2baab}.effect-chip.blessing{background:#303c27;border-color:#61774c}.effect-chip.blessing b,.effect-chip.blessing span{color:#c9d9ae}
@media(max-width:730px){.maps{grid-template-columns:1fr;gap:22px}.maps .chapter-map+.chapter-map{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.maps .chapter-map.locked .map-canvas{display:none}.map-node{width:78px}.map-node>small{font-size:8px}.route{padding:17px 12px}.map-instructions{font-size:10px}.map-toolbar h2{font-size:15px}.map-legend{font-size:9px;gap:9px}.effects-panel{grid-column:1/-1;padding:17px}.event-panel{padding:25px 18px}.event-panel h2{font-size:23px}.event-choice{padding:15px}.event-story{font-size:12px}}
.map-hp{margin-left:auto;font-size:12px;color:#c4d6ad;white-space:nowrap;font-variant-numeric:tabular-nums}.game-grid.exploring{grid-template-columns:1fr}.game-grid.exploring .side-column{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}.game-grid.exploring .side-note{display:none}@media(max-width:900px){.game-grid.exploring .side-column{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:730px){.map-hp{font-size:10px}.map-toolbar{gap:8px}.map-toolbar .quiet{padding:7px;font-size:10px}.map-toolbar h2{font-size:13px}.map-toolbar .eyebrow{font-size:8px}.game-grid.exploring .effects-panel{grid-column:auto}.game-grid.exploring .player{grid-column:auto;grid-row:auto}.game-grid.exploring .player-identity{flex-wrap:wrap}.game-grid.exploring .side-column{gap:12px}.game-grid.exploring .player,.game-grid.exploring .effects-panel{height:100%;padding:15px}}
/* One current-chapter map, with an explicit root and persisted random branches. */
.maps{grid-template-columns:1fr}.map-canvas{height:520px;max-width:940px;margin:auto}.map-node{top:calc(80px + var(--row)*88px)}.map-start{position:absolute;top:2px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px;background:#1a1e18;padding:0 12px;color:#b5c39f}.map-start>span{display:grid;place-items:center;font-size:27px;height:34px}.map-start>b{font-size:10px;font-weight:500}.map-start.current{color:var(--gold)}.arena{padding-bottom:112px}.intent{flex-wrap:wrap;line-height:1.6}.intent-details{width:100%;font-size:10px;color:#d0ba9f}.difficulty-summary{font-size:10px;line-height:1.9;color:var(--muted);margin-top:12px}#difficulty-dialog{width:min(800px,calc(100% - 30px))}.difficulty-cards{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:24px 0}.difficulty-card{padding:20px;text-align:left;background:#272e22;border:1px solid #515e40;display:flex;flex-direction:column;gap:7px}.difficulty-card:hover{background:#3c462e;border-color:#bbcb8a}.difficulty-card>span{font-size:26px;color:var(--gold)}.difficulty-card h3{margin:0;font-size:20px}.difficulty-card p{font-size:11px!important;line-height:1.8!important;margin:3px 0!important}.difficulty-card small{font-size:10px;color:var(--muted);line-height:1.8}.difficulty-card.hard{border-color:#8c7048;background:#342d22}.difficulty-card.hard:hover{background:#4c3d29;border-color:#d0a369}.difficulty-card.hell{border-color:#9b5f58;background:#372625}.difficulty-card.hell:hover{background:#53302c;border-color:#d99784}.difficulty-card.hell>span{color:#df9c88}@media(max-width:600px){.difficulty-cards{grid-template-columns:1fr}.difficulty-card{padding:16px}.difficulty-card h3{font-size:18px}.difficulty-card>span{font-size:21px}.map-canvas{max-width:none}.arena{padding-bottom:125px}.intent-details{font-size:9px}}
/* Persistent discovery journal and immediate relic effects. */
#journal-dialog{width:min(820px,calc(100% - 24px));max-height:88dvh;overflow-y:auto}.journal-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 12px}.journal-tabs button{flex:1;white-space:nowrap}.journal-tabs button[aria-pressed=true]{border-color:var(--gold);background:#3c402c;color:#ead6a2}#journal-progress{font-size:12px;color:var(--gold)}.journal-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.journal-entry{display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;padding:17px 8px;background:#282e23;border:1px solid #4a563c}.journal-entry>span{font-size:24px;color:var(--gold)}.journal-entry b{font-size:12px;overflow-wrap:anywhere}.journal-entry small{font-size:10px;color:var(--muted)}.journal-entry[aria-pressed=true]{border-color:var(--gold);background:#3c402c}.journal-entry.undiscovered{opacity:.5;cursor:default}.journal-detail{margin-top:20px;padding:20px;background:#20261d;border:1px solid var(--line);border-radius:9px}.journal-detail h3{font-family:'Noto Serif KR',serif;color:#e4d6af;margin-top:0}.journal-detail p,.journal-note{font-size:12px!important;line-height:1.8!important}.journal-stats{display:flex;gap:25px;color:var(--gold)}.journal-patterns{padding:0;list-style:none;display:grid;gap:9px}.journal-patterns li,.journal-patterns>div{padding:12px;background:#2c3426;border-radius:5px;font-size:12px}.journal-patterns span{display:block;margin-top:6px;font-size:11px;color:var(--muted);line-height:1.8}.acquisition{margin:0 0 20px;padding:20px;border-color:#8d7b48}.relic-receipt{display:flex;align-items:center;gap:17px;padding:16px;background:#353b28;border:1px solid #83784b;border-radius:8px;text-align:left;margin:12px 0}.acquisition .relic-receipt{margin:0}.relic-receipt small{display:block;color:var(--gold);font-size:10px;margin-bottom:7px}.relic-receipt b{display:block;font-size:15px}.relic-receipt p{margin:8px 0 0;font-size:12px;line-height:1.8;color:#d5dfbf}.journal-relic-effect{color:#d5dfbf}@media(max-width:600px){.header{flex-wrap:wrap;gap:15px}.header-actions{flex-wrap:wrap}.journal-list{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-tabs button{font-size:11px;padding:10px 7px}.journal-detail{padding:15px}.relic-receipt{padding:12px;gap:10px}.relic-receipt .relic-icon{flex-shrink:0}}
/* Keep the current status alongside the left-hand map/combat area. */
.game-grid.exploring{grid-template-columns:minmax(0,1fr) 300px}.game-grid.exploring .side-column{display:flex;flex-direction:column}.side-column{position:sticky;top:16px;align-self:start;max-height:calc(100dvh - 32px);overflow-y:auto;scrollbar-width:thin}.route{margin:0}.map-canvas{max-width:620px;height:520px}.map-instructions{margin-bottom:8px}.map-legend{display:none}.map-node{width:108px;height:80px}.maps{margin-top:16px}.map-node>span{width:29px;height:29px}.map-node>b{font-size:14px}.map-node>small{font-size:11px}.map-start>b{font-size:13px}.chapter-heading b,.chapter-heading>span{font-size:12px}.map-toolbar h2{font-size:19px}.map-instructions{font-size:13px}.map-hp{font-size:14px}.side-column .side-note{display:none}.intro{margin:22px 0}.intro h1{font-size:32px}.game-grid.exploring .effects-panel,.game-grid.exploring .player{height:auto}
/* Raise the reading sizes across existing components. */
body{font-size:16px}.eyebrow{font-size:11px}.subtitle{font-size:15px}.quiet,.primary{font-size:14px}.player-identity h2{font-size:16px}.player-identity p,.tiny-label{font-size:12px}.hp-label,.hp-label strong{font-size:15px}.rest-note,.difficulty-summary{font-size:13px;line-height:1.8}.section-heading h2{font-size:16px}.relic-item b{font-size:15px}.relic-item p{font-size:13px;line-height:1.8}.relic-empty,.relic-empty small{font-size:13px}.effect-chip,.effect-chip span{font-size:13px}.journal li{font-size:12px}.journal ol{max-height:150px}.intent{font-size:15px}.intent-details,.battle-reward{font-size:13px}.battle-caption{font-size:15px}.fighter-name{font-size:17px}.enemy-info>p,.health-text{font-size:12px}.slot-title{font-size:16px}.slot small,.slot-description{font-size:13px}.dice-heading p,.die-label,.prediction{font-size:13px}.event-choice b{font-size:17px}.event-choice span,.event-note{font-size:13px}.event-story{font-size:15px}.reward b{font-size:17px}.reward p{font-size:14px!important}.relic-receipt p{font-size:14px}.journal-entry b{font-size:15px}.journal-entry small{font-size:12px}.journal-detail p,.journal-note{font-size:14px!important}.journal-patterns li,.journal-patterns>div{font-size:14px}.journal-patterns span{font-size:13px}dialog p:not(.eyebrow),dialog ul{font-size:14px}.difficulty-card p{font-size:14px!important}.difficulty-card small{font-size:13px}.arena{min-height:470px}.battle-stage{min-height:260px}.slot{min-height:165px}.counter{font-size:13px}
@media(max-width:1000px) and (min-width:731px){.game-grid,.game-grid.exploring{grid-template-columns:minmax(0,1fr) 255px}.map-node{width:90px}.map-node>small{font-size:10px}}
@media(max-width:730px){.game-grid,.game-grid.exploring{grid-template-columns:minmax(0,1fr)}.side-column,.game-grid.exploring .side-column{position:static;max-height:none;overflow:visible;display:grid;grid-template-columns:1fr 1fr}.map-node{width:80px}.map-node>b{font-size:13px}.map-node>small{font-size:10px}.map-toolbar{flex-wrap:wrap}.map-toolbar h2{font-size:16px}.map-toolbar .eyebrow{font-size:10px}.map-toolbar .quiet,.map-hp{font-size:12px}.map-instructions{font-size:12px}.slot small,.slot-description{font-size:11px}.intent{font-size:13px}.intent-details,.battle-reward{font-size:12px}.battle-caption{font-size:13px}.arena{height:auto;min-height:430px}.header{height:auto;min-height:90px;padding:15px 0}.intro h1{font-size:27px}.intro{margin:18px 0}.relic-item p{font-size:12px}.side-column .journal,.side-column .relic-panel{height:auto}.game-grid.exploring .player{grid-column:1/-1}.game-grid.exploring .effects-panel{grid-column:1/-1}.relic-receipt p{font-size:13px}}
.die{touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.die:disabled{cursor:default}.die.drag-source{opacity:.4;cursor:grabbing}.drag-die{position:fixed;z-index:1000;pointer-events:none;transform:translate(-50%,-50%);display:grid;place-items:center;width:66px;height:66px;border-radius:13px;background:#eedda6;color:#393c2b;border:2px solid #fff0c7;box-shadow:0 12px 30px #0009;font-size:55px;line-height:1}.slot.drag-target{outline:3px solid #e6cc83;outline-offset:3px;background:#444a30;box-shadow:0 0 25px #d8bc6c44}
.mobile-status{display:none}@media(max-width:730px){.mobile-status{display:block;position:sticky;top:0;z-index:20;background:#273020f5;border:1px solid #62734a;border-radius:7px;padding:11px 12px;margin-bottom:12px;font-size:13px;line-height:1.8;color:#e4d8b5;box-shadow:0 4px 14px #0005}}
/* Four-lane exploration keeps the sidebar visible while the long map scrolls. */
.map-scroll{max-height:min(660px,70dvh);overflow:auto;scrollbar-width:thin;scrollbar-color:#788359 #20251c;padding:8px 0}.map-canvas{max-width:760px;min-width:390px}.map-node{left:calc((var(--col) + .5)*100%/var(--lanes));top:calc(80px + var(--row)*98px);width:100px}.slot{height:auto;min-height:190px;padding:12px 8px;gap:7px;justify-content:center}.slot-value{width:64px;height:64px;margin:0;flex-shrink:0}.slot.filled .slot-value{background:#eed69a;color:#302a1d;border:1px solid #f4e4b7;box-shadow:0 3px 0 #947746}.slot-value .pips,.drag-die .pips{grid-template:repeat(3,11px)/repeat(3,11px);gap:5px}.slot-value .pip,.drag-die .pip{width:11px;height:11px}.slot-title{margin:0}.slot small{line-height:1.4}.slot-description{line-height:1.3}.map-scroll:focus-within{scroll-behavior:auto}@media(max-width:730px){.map-canvas{min-width:0}.map-node{width:64px;height:86px;padding:6px 1px}.map-node>small{font-size:10px;line-height:1.3;max-width:62px;word-break:keep-all}.map-node>b{font-size:12px}.slot{min-height:180px;padding:10px 5px;gap:6px}.slot-value{width:58px;height:58px}.slot-value .pips{grid-template:repeat(3,10px)/repeat(3,10px);gap:5px}.slot-value .pip{width:10px;height:10px}}
.journal-monster-overview{display:grid;grid-template-columns:170px minmax(0,1fr);gap:22px;align-items:center;margin-bottom:24px}.journal-monster-art{width:170px;height:190px;display:grid;place-items:center;background:radial-gradient(ellipse,#46503a88,transparent 70%)}.journal-monster-art svg{width:100%;height:100%;filter:drop-shadow(0 10px 16px #0006)}.journal-monster-overview h3{margin:0 0 12px}.journal-stats{flex-wrap:wrap;gap:10px 22px}
/* Shared scroll treatment for the page, maps, journal, and status panels. */
:root{--scroll-track:#1a2119;--scroll-thumb:#687447;--scroll-hover:#ae9a62}*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:10px}::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}::-webkit-scrollbar-corner{background:var(--scroll-track)}.map-scroll,.side-column,.journal ol,dialog{scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-gutter:stable}.map-scroll{border-radius:8px;background:linear-gradient(180deg,#ffffff02,transparent 10%)}
@media(max-width:600px){.journal-monster-overview{grid-template-columns:90px minmax(0,1fr);gap:12px}.journal-monster-art{width:90px;height:130px}.journal-monster-overview h3{font-size:17px}.journal-monster-overview p{font-size:12px!important}.journal-stats{font-size:13px;gap:8px}}
/* Reading dialogs keep navigation and dismissal outside the scrolling content. */
dialog.reading-modal{padding:0;overflow:hidden;max-height:88dvh}dialog.reading-modal[open]{display:flex;flex-direction:column}.modal-header{position:relative;flex:none;padding:24px 28px 16px;border-bottom:1px solid #536040;background:#293223}.modal-header h2{margin:8px 40px 12px 0}.modal-header .eyebrow{margin-right:35px}.modal-header .dialog-close{position:absolute;right:16px;top:16px;width:38px;height:38px}.modal-header .journal-tabs{margin:12px 0 6px}.modal-header #journal-progress{margin:8px 0 0}.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 28px 28px;scrollbar-gutter:stable}.modal-body>.primary{width:100%;margin-top:20px}.modal-body .journal-note{margin-top:0}@media(max-width:600px){.modal-header{padding:18px 16px 12px}.modal-header h2{font-size:22px;margin-bottom:9px}.modal-body{padding:16px}.modal-header .journal-tabs{gap:6px}.modal-header .journal-tabs button{font-size:12px;padding:9px 6px}.modal-header #journal-progress{font-size:12px}}
#start-screen{max-width:1000px;margin:45px auto 60px}#start-screen .intro{margin:0 0 12px}#start-screen .intro h1{font-size:42px}.start-choices h2{font-family:'Noto Serif KR',serif;font-size:25px;margin:12px 0}.start-description{color:var(--muted);font-size:15px;line-height:1.8}.start-choices .difficulty-cards{grid-template-columns:repeat(2,minmax(0,1fr));margin:24px 0}.difficulty-card[aria-pressed=true]{outline:2px solid #e2c47c;outline-offset:3px;background:#41462e}.start-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.start-actions .primary{min-width:260px;font-size:16px;padding:17px 24px}#game-screen{padding-top:24px}@media(max-width:600px){#start-screen{margin:28px auto}#start-screen .intro h1{font-size:30px}.start-choices .difficulty-cards{grid-template-columns:1fr}.start-actions{align-items:stretch;flex-direction:column}.start-actions .primary{min-width:0}.start-choices h2{font-size:22px}#game-screen{padding-top:16px}}
@media(max-width:400px){.map-node{width:52px}.map-node>small{max-width:50px;font-size:10px}.map-node>b{font-size:12px}}
.map-node{width:min(100px,calc(80% / var(--lanes)))}.map-node>small{max-width:100%;word-break:keep-all;line-height:1.3}
/* Map mode must stretch flex cards just like combat mode. */
.game-grid .side-column{align-items:stretch;min-width:0}
.game-grid .side-column>.panel{width:100%;min-width:0;flex-shrink:0;padding:22px}
@media(max-width:730px){.game-grid .side-column>.panel{padding:16px}}
/* Evenly space each row's rooms; opaque labels mask routes beneath them. */
.map-canvas path{stroke:#59674a;stroke-width:1.3;stroke-linecap:round;opacity:.7;vector-effect:non-scaling-stroke}
.map-canvas path.selectable{stroke:#b9c78a;stroke-width:2;opacity:1}
.map-canvas path.traveled{stroke:var(--gold);stroke-width:2.5;opacity:1}
.map-node:disabled{opacity:1}
.map-node:not(.available):not(.current)>b{color:#aab59b}
.map-node:not(.available):not(.current)>small{color:#8f9b80}
.event-roll{display:flex;justify-content:center;align-items:center;gap:22px;padding:22px;margin:20px 0;background:#283320;border:1px solid #61724a;border-radius:12px;text-align:left}.d20-die{width:100px;height:110px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(145deg,#e6cf8c,#aa8b45);color:#24291c;clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%)}.d20-die small{font-size:12px;letter-spacing:2px;font-weight:700}.d20-die b{font-size:38px;line-height:1}.event-roll p{font-size:13px;color:#c0cba9;line-height:1.8}.event-roll.failure{background:#392a23;border-color:#8e6450}.event-roll.failure>div>b{color:#e3b194}.event-roll.success>div>b{color:#d4dfaa}.event-roll.rolling .d20-die{animation:d20-tumble .7s ease-in-out}.event-roll.rolling>div>b{color:#e4d3a5}@keyframes d20-tumble{0%{transform:rotate(-25deg) scale(.8)}30%{transform:rotate(30deg) scale(1.08)}60%{transform:rotate(-15deg)}100%{transform:rotate(0)}}@media(prefers-reduced-motion:reduce){.event-roll.rolling .d20-die{animation:none}}@media(max-width:600px){.event-roll{padding:16px 10px;gap:14px}.d20-die{width:80px;height:90px}.event-roll p{font-size:12px}}
.map-node{top:calc(130px + var(--row)*154px)}
.event-roll{flex-wrap:wrap}.check-faces{flex-basis:100%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.check-faces span{padding:6px 0;border:1px solid #48513e;border-radius:5px;background:#1e251c;text-align:center;font-size:12px;color:#7f8a72}.check-faces .passing{color:#dcebc4;background:#405532;border-color:#7b985b}.check-faces .rolled{outline:2px solid #e3c779;outline-offset:1px;font-weight:700}

.event-roll.rolling .d20-die{animation:d20-tumble .45s ease-in-out infinite}.d20-die b{font-size:44px;font-variant-numeric:tabular-nums}.effect-chip.ward,.effect-chip.renewal{background:#303c27;border-color:#61774c}.effect-chip.ward b,.effect-chip.ward span,.effect-chip.renewal b,.effect-chip.renewal span{color:#c9d9ae}@media(prefers-reduced-motion:reduce){.event-roll.rolling .d20-die{animation:none}}

.event-choice .choice-condition,.choice-summary .choice-condition{display:block;color:#e4d3a5;font-size:14px;line-height:1.7}.choice-condition>b{margin-right:8px}.choice-outcomes{display:grid;gap:8px;width:100%;margin-top:8px}.choice-outcomes>span{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px 14px;border-radius:6px;border-left:3px solid;text-align:left}.choice-outcomes .choice-success{background:#34432b;border-color:#a7c17e}.choice-outcomes .choice-failure{background:#3d2e26;border-color:#da9670}.event-choice .choice-success>b,.choice-summary .choice-success>b{color:#cee5ad;font-size:14px}.event-choice .choice-failure>b,.choice-summary .choice-failure>b{color:#f1b799;font-size:14px}.event-choice .choice-outcomes span span,.choice-summary .choice-outcomes span span{font-size:14px;line-height:1.7;color:#e0dfd2}.choice-summary{margin:22px auto;max-width:620px;text-align:left}.event-choice{width:100%}.event-choice> .choice-outcomes{display:grid}@media(max-width:480px){.choice-outcomes>span{grid-template-columns:56px minmax(0,1fr);gap:8px;padding:10px}.event-choice{padding:16px 12px}}

.event-choices{grid-template-columns:repeat(var(--choice-count),minmax(0,1fr));align-items:stretch}.event-choice{justify-content:flex-start;min-width:0}.event-choice>.choice-outcomes{margin-top:8px;padding-top:0}.event-choice>b{margin-bottom:4px}.event-choice .choice-guaranteed{font-size:14px;line-height:1.8}@media(max-width:1100px){.event-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.event-choices{grid-template-columns:1fr}}


.map-node.shrine>span{color:#c6e7ac;border-color:#819e61}.map-node.fortune>span{color:#f0d396;border-color:#b89a5a}[data-facility-leave]{display:block;margin:18px auto 0}

.check-faces{grid-template-columns:repeat(var(--face-columns,10),minmax(0,1fr))}.check-faces small{display:block;font-size:11px;margin-top:4px;color:#c4d2ad}.jackpot-target{display:inline-grid;place-items:center;min-width:48px;height:48px;margin:8px;color:#f5d183;border:1px solid #b3914c;border-radius:9px;font-size:26px}

.map-node.camp>span{color:#f0d9a0;border-color:#b59c62;background:#3a3e2c}.camp-healing{margin:22px 0;padding:18px;border:1px solid #61724a;border-radius:8px;background:#283320}.camp-healing>p{color:#cce1af}.camp-healing>button{margin:auto}

/* Wide choice rows keep conditions and outcomes readable without nested boxes. */
.event-panel .event-choices{grid-template-columns:minmax(0,1fr);gap:12px}
.event-choices .event-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:start;gap:24px;height:auto;min-height:96px;padding:16px;overflow:visible}
.event-choices .choice-heading{display:flex;flex-direction:column;gap:8px;min-width:0}
.event-choices .choice-heading>b{font-size:16px;line-height:1.5;color:#e0d5b7}
.event-choices .choice-heading .choice-condition,.event-choices .choice-condition>b{font-size:14px;line-height:1.6}
.event-choices .event-choice>.choice-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0}
.event-choices .event-choice .choice-outcomes>span,.event-choices .event-choice>.choice-guaranteed{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0;background:none;border:0;border-radius:0;min-width:0}
.event-choices .event-choice .choice-outcomes>span>b,.event-choices .choice-guaranteed>b{display:inline-block;font-size:12px;line-height:1.5;padding:2px 7px;border-radius:4px;background:#35482d;color:#d1e5b7}
.event-choices .event-choice .choice-outcomes>.choice-failure>b{background:#493128;color:#f0b69b}
.event-choices .event-choice .choice-outcomes>span>span,.event-choices .event-choice>.choice-guaranteed>span{font-size:14px;line-height:1.65;overflow:visible;word-break:keep-all;overflow-wrap:anywhere;color:#dce0d3}
.event-choices .event-choice:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:600px){
 .event-choices .event-choice{grid-template-columns:minmax(0,1fr);gap:16px}
 .event-choices .event-choice>.choice-outcomes{grid-template-columns:minmax(0,1fr);gap:12px}
 .event-choices .event-choice .choice-outcomes>span{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:start;gap:12px}
 .event-choices .event-choice .choice-outcomes>span>b{justify-self:start}
}

/* Only the map keeps a local scroll area; sidebar content follows the page. */
.game-grid .side-column{max-height:none;overflow:visible;scrollbar-gutter:auto}
.side-column .journal ol{max-height:none;overflow:visible;scrollbar-gutter:auto}
#log-toggle{padding:4px 7px;font-size:12px}
.player .difficulty-summary{margin-top:14px;color:var(--gold);font-size:14px}
.side-column .relic-empty{min-height:72px}
.effects-empty{margin-top:16px;color:var(--muted);font-size:13px}
#effects{display:grid;gap:12px;margin-top:14px}
#effects .effect-group{padding-left:10px;border-left:2px solid #75975c}
#effects .effect-group.negative{border-color:#ad7866}
#effects .effect-group-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
#effects .effect-group-heading>b{font-size:13px;color:#c3dbaa}
#effects .negative .effect-group-heading>b{color:#e7b09b}
#effects .effect-group-heading small{font-size:12px;color:var(--muted);white-space:nowrap}
#effects ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
#effects li{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13px;line-height:1.6}
#effects li>b{font-weight:500;color:#dce2d1;white-space:nowrap}
#effects li>span{color:#bec9ad;text-align:right;word-break:keep-all}
#effects .negative li>span{color:#d5b8a9}

.player>.section-heading{margin-bottom:22px}
.difficulty-label{display:inline-flex;align-items:center;gap:6px;color:var(--gold)}
.difficulty-label small{font-size:12px;white-space:nowrap}
.relic-disclosure{margin-top:12px;border:1px solid var(--line);border-radius:7px}
.relic-disclosure summary{display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer;list-style:none;border-radius:6px;transition:background .18s}
.relic-disclosure summary::-webkit-details-marker{display:none}
.relic-disclosure summary:hover{background:#343f2c}
.relic-disclosure summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.relic-disclosure summary>b{font-size:14px;line-height:1.5}
.relic-chevron{margin-left:auto;color:var(--gold)}
.relic-disclosure[open] .relic-chevron{transform:rotate(180deg)}
.relic-disclosure>p{padding:0 12px 12px;font-size:14px;line-height:1.7;color:#c4cdb8}

.blog-return{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;white-space:nowrap;transition:background .18s,border-color .18s}

.ranking-hint,.ranking-note{color:var(--muted);font-size:.9rem;line-height:1.65;margin:14px 0}
.ranking-consent{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;text-align:left}
.ranking-consent h3{margin:0 0 8px}.ranking-consent p{font-size:.9rem;line-height:1.65}
.ranking-error{color:#eea58b}.ranking-consent .outcome-buttons{display:flex;gap:10px;flex-wrap:wrap}
.ranking-consent .outcome-buttons button{flex:1 1 160px}

/* Keep navigation and signed-in identity distinct without a persistent save notice. */
.header{height:auto;min-height:100px;padding:20px 0;flex-wrap:wrap}
.header-actions{gap:18px;flex-wrap:wrap;justify-content:flex-end}
.game-tools{display:flex;align-items:center;gap:8px}
.account-area{display:flex;align-items:center;gap:14px;padding-left:18px;border-left:1px solid var(--line)}
.account-area[hidden],.account-identity[hidden]{display:none}
.account-identity{display:grid;gap:3px;min-width:0}
.account-identity small{font-size:10px;letter-spacing:1px;color:var(--muted)}
.account-identity span{font-size:13px;color:var(--gold);max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.header .quiet{font-size:12px;white-space:nowrap}
#ranking-account{background:transparent;color:var(--muted);padding:8px 10px}
@media(max-width:730px){.header{gap:16px}.header-actions{width:100%;justify-content:flex-start;gap:12px}.account-area{margin-left:auto}.header .quiet{padding:8px 10px}}
@media(max-width:440px){.account-area{width:100%;margin:0;padding:12px 0 0;border-left:0;border-top:1px solid var(--line);justify-content:space-between}.game-tools{gap:6px}.header-actions{gap:8px}.account-identity{display:flex;align-items:center;gap:8px}}

#home-screen{max-width:840px;margin:0 auto;padding:38px 0 50px}
.home-intro{text-align:center;margin-bottom:30px}.home-intro h1{margin:12px 0}.home-intro .subtitle{line-height:1.8}
.leaderboard{padding:26px}.leaderboard-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.leaderboard-heading h2{font-size:22px;margin-top:8px}.leaderboard-heading>span,.leaderboard-note{font-size:12px;color:var(--muted)}
.leaderboard-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:24px 0 12px}.leaderboard-tabs button{padding:11px 8px;font-size:14px}.leaderboard-tabs button[aria-pressed=true]{background:#39452d;border-color:var(--gold);color:var(--gold)}
.leaderboard-note{line-height:1.7}.board-message{min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;color:var(--muted);font-size:14px;padding:28px 8px}.board-message>span{font-size:32px;color:var(--gold)}.board-message small{font-size:12px}
.board-list{list-style:none;padding:0;margin:18px 0 0}.board-list li{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 10px;border-top:1px solid var(--line);font-size:14px}.board-rank{color:var(--gold);font-variant-numeric:tabular-nums}.board-player{overflow-wrap:anywhere}.board-list small{font-weight:400;color:var(--muted)}
.home-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px}.home-actions .primary{min-width:220px;font-size:15px}.home-actions .quiet{padding:14px 20px}
@media(max-width:600px){#home-screen{padding:24px 0 36px}.leaderboard{padding:18px}.leaderboard-heading{align-items:flex-start}.leaderboard-heading>span{max-width:80px;text-align:right;line-height:1.6}.home-actions{flex-wrap:wrap}.home-intro h1{font-size:28px}}

.leaderboard-tabs button:hover{background:#2b3426;border-color:#788963}.leaderboard-tabs button[aria-pressed=true]:hover{background:#455236;border-color:var(--gold)}
#ranking-account:hover{background:#30372a;color:var(--text)}.home-intro .subtitle{word-break:keep-all}

.header-brand-group{display:flex;align-items:center;gap:16px;min-width:0}
.blog-home{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:#22271f;transition:background .18s,border-color .18s}
.blog-home:hover{background:#30372a;border-color:#71775b}.blog-home img{display:block;width:32px;height:32px}
@media(max-width:440px){.header-brand-group{gap:10px}.header-brand-group .brand{gap:8px;font-size:15px;letter-spacing:1px}}

.brand-divider{display:block;flex:0 0 1px;width:1px;height:30px;background:var(--line)}

/* Mobile navigation stays out of the game viewport until requested. */
.header-menu-toggle,.mobile-blog-home{display:none}
@media(max-width:730px){
  .header{position:relative;height:64px;min-height:64px;padding:0;flex-wrap:nowrap;gap:12px;z-index:30}
  .header-brand-group .brand{font-size:14px;letter-spacing:1px;gap:8px;white-space:nowrap}
  .header-brand-group .brand-die{font-size:32px}
  .header-brand-group .brand-divider,.header-brand-group .blog-home{display:none}
  .header-menu-toggle{display:flex;align-items:center;justify-content:center;gap:6px;min-width:64px;min-height:44px;flex-shrink:0}
  .header-menu-toggle[aria-expanded="true"]{border-color:var(--gold)}
  .header-actions{display:none;position:absolute;top:calc(100% + 8px);right:0;width:min(320px,100%);padding:12px;gap:12px;border:1px solid var(--line);border-radius:10px;background:#1a1e18;box-shadow:0 12px 30px #0006}
  .header-actions.is-open{display:flex;flex-direction:column;align-items:stretch}
  .header-actions .game-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .header-actions .game-tools:has(#restart[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-actions .quiet{min-height:44px;text-align:left;font-size:13px;padding:10px 12px}
  .header-actions .account-area{width:100%;margin:0;padding:12px 0 0;border-left:0;border-top:1px solid var(--line);justify-content:space-between;gap:8px;flex-wrap:nowrap}
  .header-actions .account-identity{min-width:0;flex:1}
  .header-actions .account-identity span{min-width:0}
  .header-actions #ranking-account{flex-shrink:0}
  .header-actions .game-tools .quiet{padding:10px 6px;white-space:nowrap;text-align:center}
  .mobile-blog-home{display:flex;align-items:center;gap:10px}
}
