/* Combat-first HUD keeps the tiny-planet canvas and original pixel assets. */
.walk-header .pocket { gap: .7rem; }
#dungeon .dungeon-hud { border-color: #8b745e; background: linear-gradient(135deg,rgba(19,29,25,.94),rgba(36,29,30,.91)); }
#dungeon-wave { color: #f3e7b8; }
#dungeon-buffs span { color: #d9c4ef; }
#dungeon-food .food-note { max-width: 60ch; }
#dungeon-food .arc-quest { margin: .4rem 0 1rem; padding: .65rem .85rem; border: 1px solid #8b745e; background: #1b2521; color: #f3e7b8; }
#dungeon-food .arc-gear-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
#dungeon-food .arc-gear-row button { text-align: left; min-height: 5rem; }
#dungeon-food .arc-inventory { display:grid; grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.5rem; }
#dungeon-food .arc-inventory button { text-align:left; min-height:3.5rem; }
@media(max-width:500px){ #dungeon-food .arc-gear-row{grid-template-columns:1fr;} .walk-header .pocket{gap:.35rem;} }
/* Keep the forest visible above the frog: separate readable cards, no opaque bar. */
#dungeon .dungeon-hud{top:58px;left:12px;right:12px;display:flex;align-items:flex-start;justify-content:flex-start;gap:7px;background:none;border:0;box-shadow:none}
#dungeon .dungeon-hud>div{min-width:0;padding:6px 9px;background:#171f22dc;border:1px solid #b39a70a0;box-shadow:0 4px 15px #08151b88}
#dungeon .dungeon-hud>div:first-child{width:210px}
#dungeon .dungeon-hud>div:nth-child(2){width:160px}
#dungeon .dungeon-hud strong{font-size:20px}
#dungeon .dungeon-hud button{min-height:38px;padding:4px 12px;background:#20282acb}
#dungeon-dodge{margin-left:auto}
#dungeon-food-slots{display:block}
#dungeon-food-slots .arc-quest{font:13px/1.4 var(--wizard-copy);color:#e8d6a8}
@media(max-width:650px){#dungeon .dungeon-hud{top:53px;left:8px;right:8px;gap:5px}#dungeon .dungeon-hud>div:first-child{width:51%;max-width:200px}#dungeon .dungeon-hud>div:nth-child(2){width:43%;max-width:170px;margin-left:0}#dungeon .dungeon-hud strong{font-size:16px}#dungeon-dodge{margin-left:0}}
@media(max-height:500px){#dungeon .dungeon-hud{top:45px;left:105px;right:8px}#dungeon .dungeon-hud>div:first-child{width:170px}#dungeon .dungeon-hud>div:nth-child(2){width:142px}}

.arc-preview{align-self:center;margin-left:.5rem;color:#e8d6a8;font:11px/1.1 system-ui;letter-spacing:.08em;white-space:nowrap;opacity:.78}
@media(max-width:650px){.arc-preview{display:none}}
#arc-resume:not([hidden]){position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px;background:#061515b8}
#arc-resume>div{width:min(440px,100%);padding:24px;border:1px solid #b39a70;background:#1b2224f5;box-shadow:0 10px 45px #061015cc;text-align:center}
#arc-resume h2{margin:.45rem 0;font:32px/1 'Jacquard 12',serif;color:#f3e7b8}
#arc-resume p{font:17px/1.2 'Jacquard 12',serif;color:#e7dfcb}
#arc-resume button{min-height:46px;padding:8px 20px}

/* Combat UI: display lettering for headings, readable copy and controls. */
body.in-dungeon #app{font-family:var(--wizard-copy)}
body.in-dungeon .wordmark,.arc-missions h3{font-family:var(--wizard-display)}
body.in-dungeon .fishing-panel .eyebrow{font:600 11px/1.2 var(--wizard-copy);letter-spacing:.02em;text-transform:none}
body.in-dungeon .fishing-panel button{font-family:var(--wizard-copy)}
body.in-dungeon #panel.story-panel{bottom:auto;height:auto;max-height:calc(100dvh - 120px)}
#dungeon .dungeon-hud{align-items:flex-start;gap:6px;max-width:100%;font-family:var(--wizard-copy)}
#dungeon .dungeon-hud>div{border-radius:8px;background:#172326de;backdrop-filter:blur(5px)}
#dungeon .dungeon-hud>div:first-child{width:195px}
#dungeon .dungeon-hud>div:nth-child(2){width:160px}
#dungeon .dungeon-hud strong{font:22px/1 'Jacquard 12',Georgia,serif;text-transform:none}
#dungeon .dungeon-hud small{font:12px/1.25 var(--wizard-copy);color:#e5e6d5}
#dungeon #dungeon-gold{font:600 12px/1.2 var(--wizard-copy);color:#cbd8c2}
#dungeon #dungeon-objective{display:block;margin-top:3px;color:#fff0c1}
#dungeon #dungeon-buffs{margin-top:6px}
#dungeon #dungeon-buffs span{font:11px/1.2 var(--wizard-copy)}
#dungeon .dungeon-hud button,#dungeon-menu{font:600 13px/1.2 var(--wizard-copy);white-space:nowrap}
#dungeon .dungeon-hud button.arc-pack-new,#dungeon-menu.arc-pack-new{border-color:#f1d18c;color:#ffe2a3;box-shadow:0 0 0 2px #f1d18c33}
#dungeon-menu.arc-pack-new{background:#343047}
#dungeon-food,#dungeon-food button,#dungeon-food p,#dungeon-food small,#dungeon-result p,#dungeon-result button{font-family:var(--wizard-copy)}
#dungeon-food .eyebrow{text-transform:none;letter-spacing:.02em;font-size:12px}
#dungeon-food .food-note{font-size:13px;line-height:1.4}
#dungeon-food-slots .arc-quest{font:13px/1.4 var(--wizard-copy);padding:9px 11px}
.arc-missions{display:grid;gap:8px;margin:12px 0;max-height:38vh;overflow:auto;touch-action:pan-y}.arc-missions h3{margin:2px 0 4px;color:#f6dfaa}.arc-mission{display:grid;gap:2px;padding:9px 11px;border:1px solid #826d68;border-radius:9px;background:#1b2928;color:#f5e9cc}.arc-mission.complete{border-color:#7cae81;background:#20392e}.arc-mission strong{font-size:14px}.arc-mission span,.arc-mission small{font-size:12px;line-height:1.35}.arc-mission small{color:#bde4b5}
.arc-story-log{display:grid;gap:8px;margin:16px 0}.arc-story-log h3{margin:0;color:#f6dfaa}.arc-story-log .arc-mission{border-color:#b89964;background:#26342d}.arc-story-log .arc-mission span{line-height:1.5}.story-next{padding:10px 12px;border-left:3px solid #b8dd86;background:#24362f;color:#eff5d2}.story-controls{font-size:12px;line-height:1.5}
.arc-mission.current{border-color:#e2bd75;background:#31322b;box-shadow:inset 3px 0 #e2bd75}
.journey-links{margin-top:18px;font-size:12px}
.journey-links summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:inherit}
#panel .journey-links .save-note{color:#4b4939!important;font-size:12px!important;line-height:1.45}
#panel .journey-links a,#panel .journey-links button{display:inline-flex;align-items:center;min-height:44px;margin:4px 3px 4px 0;padding:8px 10px;border:1px solid #847353;border-radius:6px;background:#eee0b7;color:#302d23;font:600 12px/1.25 var(--wizard-copy,system-ui);text-decoration:none}
#panel .journey-links a:focus-visible,#panel .journey-links button:focus-visible{outline:2px solid #2d5963;outline-offset:2px}
#arc-journey-cue{position:absolute;z-index:5;left:22px;bottom:max(174px,calc(env(safe-area-inset-bottom) + 150px));width:max-content;max-width:min(245px,calc(100vw - 160px));margin:0;padding:7px 9px;border:1px solid #dac48a9e;border-radius:7px;background:#1b3332eb;color:#fff2cf;font:600 11px/1.3 var(--wizard-copy,system-ui);pointer-events:none;box-shadow:0 2px 9px #102a2a80}
body.panel-open #arc-journey-cue,body.dungeon-pack-open #arc-journey-cue,body.dungeon-defeated #arc-journey-cue{display:none}
@media(max-width:650px){#arc-journey-cue{left:10px;bottom:max(165px,calc(env(safe-area-inset-bottom) + 143px));max-width:min(215px,calc(100vw - 155px))}}
@media(max-height:500px){#arc-journey-cue{bottom:137px}}
#dungeon-food .arc-gear{width:100%;max-height:none;border:0;padding:0;background:none;box-shadow:none}
#dungeon-food-list{max-height:none;overflow:visible}
#arc-resume p{font:15px/1.45 var(--wizard-copy)}
#dungeon-food .dungeon-food-head .eyebrow,#dungeon-food>h3{display:none}
#dungeon-food .dungeon-food-head{margin-bottom:8px}
#dungeon-food-list .arc-gear .arc-card strong{font:700 14px/1.3 var(--wizard-copy)}
#dungeon-food-list .arc-gear .arc-pending strong{font:700 13px/1.35 var(--wizard-copy)}
#dungeon-food-list .arc-gear .arc-actions button:not(.arc-sell):not(.arc-cancel){color:#17372d;background:#a9dc82;border:1px solid #bce89a}
#dungeon-food-list .arc-gear .arc-upgrades button{color:#ecf3da;background:#30483f;border:1px solid #a9dc8277}
#dungeon-food-list .arc-gear .arc-upgrades button:disabled{opacity:.75;color:#d6e0cc}
#dungeon-food .arc-grid:has(.arc-equipped){grid-template-columns:repeat(3,minmax(0,1fr))}
#dungeon-food .arc-equipped{align-content:start;min-height:84px}
@media(max-width:650px){#dungeon-food .arc-grid:has(.arc-equipped){grid-template-columns:1fr}#dungeon-food .arc-equipped{min-height:0}}
@media(max-width:650px){#dungeon .dungeon-hud{top:100px;left:8px;right:8px;gap:5px}#dungeon .dungeon-hud>div:first-child{width:min(48%,190px)}#dungeon .dungeon-hud>div:nth-child(2){width:min(43%,150px)}#dungeon .dungeon-hud strong{font-size:17px}#dungeon .dungeon-hud small{font-size:11px}#dungeon-dodge,#dungeon-special{font:600 13px/1.2 var(--wizard-copy)!important}#dungeon-menu{font-size:12px;width:76px;height:48px}#dungeon-food{width:calc(100vw - 16px);padding:12px}#dungeon-food .arc-gear{max-height:none}}
@media(max-height:500px){#dungeon .dungeon-hud{top:54px;left:105px;right:8px}#dungeon .dungeon-hud>div:first-child{width:155px}#dungeon .dungeon-hud>div:nth-child(2){width:120px}#dungeon .dungeon-hud strong{font-size:17px}#dungeon #dungeon-buffs{display:none}#dungeon-food{max-height:calc(100dvh - 8px)}}
@media(max-height:500px){#dungeon-special{right:126px}#dungeon-dodge{right:8px}}

/* Focused forest HUD and character sheet. */
#dungeon .dungeon-hud{top:66px;left:14px;right:14px;gap:8px;align-items:flex-start}
#dungeon .dungeon-hud>div.arc-vitals,#dungeon .dungeon-hud>div.arc-objective{padding:10px 12px;border:1px solid #cbbd897d;border-radius:11px;background:linear-gradient(140deg,#142526ed,#203630d9);box-shadow:0 8px 25px #07151299;backdrop-filter:blur(7px)}
#dungeon .dungeon-hud>div.arc-vitals{width:215px;flex:none}
#dungeon .dungeon-hud>div.arc-objective{width:min(260px,27vw);min-height:96px}
#dungeon .dungeon-hud strong{font:26px/1 var(--wizard-display,'Jacquard 12',serif);color:#ffe6b0}
#dungeon .arc-vitals small{display:block;margin-top:4px;color:#f1eee0;font:600 11px/1.2 var(--wizard-copy,system-ui)}
#dungeon .health-track,#dungeon .mana-track,#dungeon .arc-hud-xp{height:8px;margin:4px 0;border:1px solid #e8dbac66;border-radius:8px;background:#0a181a;overflow:hidden}
#dungeon .health-track span{background:linear-gradient(90deg,#d16768,#ffa084)}
#dungeon .mana-track span{background:linear-gradient(90deg,#68b4dd,#b7edf1)}
#dungeon .arc-hud-xp span{display:block;height:100%;background:linear-gradient(90deg,#9f7dd9,#f4cd86);transition:width .3s}
#dungeon .arc-hud-kicker{display:block;color:#bcd5bc;font:700 11px/1 var(--wizard-copy,system-ui)}
#dungeon #dungeon-gold{display:block;margin:5px 0 7px;color:#ffe2a7;font:26px/1 var(--wizard-display,'Jacquard 12',serif)}
#dungeon #dungeon-objective{color:#f5f0df;font:600 12px/1.35 var(--wizard-copy,system-ui)}
#dungeon #dungeon-buffs{margin-top:7px}
#dungeon #dungeon-buffs span{padding:3px 6px;border:1px solid #c8acd477;border-radius:5px;background:#8c6d9a3b;color:#f2ddff}
#dungeon .dungeon-hud>div.arc-combat-actions{display:flex;width:auto;gap:6px;margin-left:auto;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
#dungeon .arc-combat-actions button{min-height:42px;padding:8px 11px;border:1px solid #d9cda387;border-radius:8px;background:#1a2c2be8;color:#fff1cb;font:700 12px var(--wizard-copy,system-ui)}
#dungeon .arc-combat-actions button:focus-visible,#dungeon-menu:focus-visible{outline:3px solid #fff2ac;outline-offset:2px}
#arc-level-reward:not([hidden]){position:absolute;z-index:8;top:28%;left:50%;transform:translateX(-50%);display:grid;gap:3px;min-width:215px;padding:15px 20px;border:1px solid #ffe1a2;border-radius:10px;background:linear-gradient(140deg,#274539ef,#513d57ef);box-shadow:0 0 0 5px #f5dfac29,0 15px 40px #071719bd;color:#fff4d6;text-align:center;pointer-events:none;animation:arc-level-enter .35s ease-out}
#arc-level-reward strong{font:39px/1 var(--wizard-display,'Jacquard 12',serif)}
#arc-level-reward small,#arc-level-reward span{font:600 12px/1.35 var(--wizard-copy,system-ui)}
@keyframes arc-level-enter{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translate(-50%,0)}}
#dungeon-food{width:min(760px,calc(100vw - 28px));max-height:calc(100dvh - 24px);padding:20px 24px;border:1px solid #cbbc8d;border-radius:15px;background:linear-gradient(145deg,#17272afc,#26342dfb);box-shadow:0 24px 80px #041313e8}
#dungeon-food .dungeon-food-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0}
#dungeon-food .dungeon-food-head h2{margin:0;color:#ffe6b3;font:38px/1 var(--wizard-display,'Jacquard 12',serif)}
#dungeon-food .dungeon-food-head button{position:static;flex:none;min-height:42px;padding:8px 12px;border:1px solid #d5be84;border-radius:8px;background:#334840;color:#fff1cf;font:700 12px var(--wizard-copy,system-ui)}
#dungeon-food .food-note{margin:4px 0 10px;color:#c9ddca;font:12px/1.4 var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear{width:100%;max-height:none;overflow:visible;padding:0;border:0;background:none;box-shadow:none}
#dungeon-food-slots{margin:0 0 12px}
#dungeon-food-slots .arc-quest{margin:0;padding:9px 12px;border-radius:8px;background:#826f4130;color:#f5e5b8}
#dungeon-food .arc-gear h2{font:30px/1 var(--wizard-display,'Jacquard 12',serif)}
#dungeon-food .arc-gear h3{margin:20px 0 6px;font:27px/1 var(--wizard-display,'Jacquard 12',serif);color:#f9e3b1}
#dungeon-food .arc-gear .arc-level{padding:5px 9px;border:1px solid #d2b977;border-radius:30px;color:#ffe6b1;font:700 12px var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-build-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0 3px}
#dungeon-food .arc-gear .arc-build-stat{padding:9px;border:1px solid #abc2a466;border-radius:8px;background:#2b403a}
#dungeon-food .arc-gear .arc-build-stat strong{display:block;color:#ffedc4;font:700 17px var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-build-stat small{color:#d4e3ce;font:11px var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-xp{height:8px;background:#102022}
#dungeon-food .arc-gear .arc-xp span{background:linear-gradient(90deg,#a17fd9,#f1ca86)}
#dungeon-food .arc-gear .arc-wealth{color:#d7e1d3;font-size:12px}
#dungeon-food .arc-gear .arc-equipped-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#dungeon-food .arc-gear .arc-equipped{min-height:92px;padding:12px;border:1px solid #b4c7ac77;border-radius:10px;background:#30463f}
#dungeon-food .arc-gear .arc-equipped[data-role=focus]{border-top:3px solid #e4aa70}
#dungeon-food .arc-gear .arc-equipped[data-role=robe]{border-top:3px solid #85c1db}
#dungeon-food .arc-gear .arc-equipped[data-role=charm]{border-top:3px solid #c79bdd}
#dungeon-food .arc-gear .arc-card strong{font:700 14px/1.25 var(--wizard-copy,system-ui);color:#fff2d5}
#dungeon-food .arc-gear .arc-card small,#dungeon-food .arc-gear .arc-card em{font:12px/1.35 var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-slot{color:#f3dca5!important}
#dungeon-food .arc-gear .arc-bag-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#dungeon-food .arc-gear .arc-bag-grid .arc-card{min-height:84px;border:1px solid #acc4ae69;background:#2b403c}
#dungeon-food .arc-gear .arc-bag-grid .arc-card[data-rarity=rare]{border-color:#c29cdb}
#dungeon-food .arc-gear .arc-bag-grid .arc-card[data-rarity=uncommon]{border-color:#81c6a9}
#dungeon-food .arc-gear .arc-duplicate,#dungeon-food .arc-gear .arc-waiting{padding:12px;border:1px solid #d9bf838f;border-radius:9px;background:#655b3b4f}
#dungeon-food .arc-gear .arc-duplicate .arc-card{background:#40524b;color:#fff0cf}
#dungeon-food .arc-gear .arc-upgrades{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#dungeon-food .arc-gear .arc-training-option{display:grid;gap:5px;padding:9px;border:1px solid #a8bda36e;border-radius:9px;background:#2b403c}
#dungeon-food .arc-gear .arc-training-option small{color:#d2e1d1;font:12px/1.3 var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear button:focus-visible,#dungeon-food .dungeon-food-head button:focus-visible{outline:3px solid #fff0ac;outline-offset:2px}
@media(max-width:760px){#dungeon .dungeon-hud{top:100px;left:8px;right:8px;gap:5px}#dungeon .dungeon-hud>div.arc-vitals{width:47vw;padding:7px 9px}#dungeon .dungeon-hud>div.arc-objective{width:43vw;min-height:0;padding:7px 9px}#dungeon .dungeon-hud strong{font-size:20px}#dungeon #dungeon-gold{font-size:20px}#dungeon #dungeon-objective{font-size:10px}#dungeon .arc-vitals small{font-size:10px}#dungeon .dungeon-hud>div.arc-combat-actions{display:contents!important}#dungeon .arc-combat-actions #dungeon-pack{display:none!important}#dungeon-menu{display:block;position:fixed;right:14px;bottom:max(22px,env(safe-area-inset-bottom));width:80px;height:48px;border:1px solid #ead39c;border-radius:8px;background:#345044;color:#fff1c7;font:700 13px var(--wizard-copy,system-ui)}#dungeon-dodge,#dungeon-special{display:block;position:fixed;right:14px;min-width:80px;min-height:48px;font:700 12px var(--wizard-copy,system-ui)!important}#dungeon-dodge{bottom:80px}#dungeon-special{bottom:138px}#dungeon-food{width:calc(100vw - 16px);padding:15px}#dungeon-food .arc-gear .arc-bag-grid{grid-template-columns:1fr}}
@media(max-width:530px){#dungeon .dungeon-hud strong{font-size:18px}#dungeon #dungeon-gold{font-size:17px}#dungeon #dungeon-buffs span{font-size:10px;padding:2px 5px}#dungeon-food .dungeon-food-head h2{font-size:31px}#dungeon-food .arc-gear .arc-build-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#dungeon-food .arc-gear .arc-equipped-grid{grid-template-columns:1fr}#dungeon-food .arc-gear .arc-equipped{min-height:63px}#dungeon-food .arc-gear .arc-upgrades{grid-template-columns:1fr}}
@media(max-height:500px){#dungeon .dungeon-hud{top:54px;left:105px}#dungeon .dungeon-hud>div.arc-vitals{width:175px}#dungeon .dungeon-hud>div.arc-objective{width:150px}#dungeon-food{max-height:calc(100dvh - 8px)}}
@media(prefers-reduced-motion:reduce){#arc-level-reward:not([hidden]){animation:none}#dungeon .arc-hud-xp span{transition:none}}

/* Clear the play field: status in one corner, context in the journal. */
body.in-dungeon .walk-header{inset:10px 10px auto auto;width:auto;z-index:7;gap:5px;flex-wrap:nowrap}
body.in-dungeon .walk-header .wordmark,body.in-dungeon .walk-header .pocket{display:none}
body.in-dungeon .walk-header>button{width:40px;min-height:40px;border-radius:9px;font-size:20px}
#dungeon .dungeon-hud{top:10px;left:10px;right:auto;display:block;width:auto}
#dungeon .dungeon-hud>div.arc-vitals{width:168px;min-width:0;min-height:0;padding:7px 9px;border-radius:9px;background:#142729d9;box-shadow:0 4px 14px #07161977}
#dungeon .arc-vitals strong{display:inline;color:#fff1ce;font:700 13px/1.2 var(--wizard-copy,system-ui)}
#dungeon .arc-vitals .arc-vital-label{display:inline}
#dungeon .arc-vitals .arc-vital-label small{display:inline;margin-left:7px;color:#fff4dc;font:600 11px/1.2 var(--wizard-copy,system-ui)}
#dungeon .arc-vitals .arc-vital-label:has(#dungeon-mana),#dungeon .arc-vitals .arc-vital-label:has(#dungeon-xp-label){display:none}
#dungeon .arc-vitals .health-track,#dungeon .arc-vitals .mana-track{height:5px;margin:5px 0 0;border:0;border-radius:5px}
#dungeon .arc-vitals .mana-track{height:3px;margin-top:3px}
#dungeon .arc-vitals .arc-hud-xp,#dungeon .arc-objective{display:none}
#dungeon .dungeon-hud>div.arc-combat-actions{position:fixed;right:12px;bottom:max(14px,env(safe-area-inset-bottom));display:flex;gap:6px;width:auto;margin:0}
#dungeon .arc-combat-actions button{width:74px;min-width:0;min-height:42px;padding:6px;border-radius:9px;background:#17292ad1;font:700 12px/1.15 var(--wizard-copy,system-ui)}
body.in-dungeon #toast{top:65px}
body.dungeon-pack-open #arc-magic-trigger,body.dungeon-defeated #arc-magic-trigger,body.panel-open #arc-magic-trigger{visibility:hidden;pointer-events:none}
@media(max-width:760px){
 body.in-dungeon .walk-header{inset:10px 8px auto auto}
 #dungeon .dungeon-hud{top:10px;left:8px;right:auto}
 #dungeon .dungeon-hud>div.arc-vitals{width:145px;padding:6px 8px}
 #dungeon .arc-vitals strong{font-size:12px}
 #dungeon .arc-vitals .arc-vital-label small{font-size:10px;margin-left:4px}
 #dungeon .dungeon-hud>div.arc-combat-actions{display:contents!important}
 #dungeon .arc-combat-actions #dungeon-pack{display:none!important}
 #dungeon-dodge,#dungeon-special,#dungeon-menu{position:fixed;z-index:6;display:block;width:54px;min-width:54px;height:50px;min-height:50px;padding:4px;border:1px solid #d9c694a3;border-radius:9px;background:#213d3ddc;color:#fff0ca;font:700 11px/1.1 var(--wizard-copy,system-ui)!important}
 #dungeon-dodge{right:70px;bottom:max(74px,calc(env(safe-area-inset-bottom) + 68px))}
 #dungeon-special{right:10px;bottom:max(74px,calc(env(safe-area-inset-bottom) + 68px))}
 #dungeon-menu{right:10px;bottom:max(16px,env(safe-area-inset-bottom))}
 body.in-dungeon #toast{top:64px}
}
@media(max-height:500px){#dungeon .dungeon-hud{top:8px;left:8px}body.in-dungeon .walk-header{inset:8px 8px auto auto}#dungeon-dodge{bottom:70px}#dungeon-special{bottom:70px}#dungeon-menu{bottom:10px}}

@media(max-width:760px){#dungeon .arc-combat-actions #dungeon-dodge,#dungeon .arc-combat-actions #dungeon-special{width:54px;min-width:54px}}
@media(min-width:761px) and (max-height:500px){#dungeon .arc-combat-actions #dungeon-dodge{right:172px;bottom:10px}#dungeon .arc-combat-actions #dungeon-special{right:92px;bottom:10px}#dungeon .arc-combat-actions #dungeon-pack{right:12px;bottom:10px}}
@media(min-width:761px) and (max-height:500px){#dungeon .arc-combat-actions #dungeon-pack{position:fixed}}
/* Character-centered equipment screen. Item icons are drawn in arc-gear-ui.js. */
#dungeon-food .arc-gear .arc-character-screen{position:relative;display:grid;grid-template-columns:minmax(145px,1fr) minmax(190px,1.5fr) minmax(145px,1fr);align-items:center;gap:10px;min-height:278px;margin:13px 0 12px;padding:16px;border:1px solid #9eaa8a88;border-radius:12px;background:radial-gradient(ellipse at 50% 65%,#56745759 0,#263e3b 38%,#14272c 80%);overflow:hidden}
#dungeon-food .arc-gear .arc-character-screen:before{content:'';position:absolute;inset:8px;border:1px solid #ddc88a25;border-radius:8px;pointer-events:none}
#dungeon-food .arc-gear .arc-character-left,#dungeon-food .arc-gear .arc-character-right{position:relative;z-index:2;display:grid;gap:16px}
#dungeon-food .arc-gear .arc-character-portrait{position:relative;display:grid;place-items:center;min-height:244px;isolation:isolate}
#dungeon-food .arc-gear .arc-character-halo{position:absolute;z-index:-1;width:190px;height:190px;border:1px solid #e4cc7e78;border-radius:50%;background:radial-gradient(circle,#a1ae7760 0,#8cb58820 45%,transparent 70%);box-shadow:0 0 0 12px #e7ce7920,0 0 0 25px #e7ce790c}
#dungeon-food .arc-gear .arc-character-sprite{width:160px;height:160px;margin:2px 0 0;background:url('/assets/frog-wizard/frog-atlas.png') left top/800% 200% no-repeat;image-rendering:pixelated;filter:drop-shadow(0 13px 3px #0717199c);transform:scale(1.04)}
#dungeon-food .arc-gear .arc-character-caption{position:absolute;bottom:3px;margin:0;color:#e6d8b6;font:600 11px/1.3 var(--wizard-copy,system-ui);text-align:center}
#dungeon-food .arc-gear .arc-gear-slot{display:flex;align-items:center;gap:7px;width:100%;min-width:0;min-height:82px;padding:8px;border:1px solid #c7ba8c88;border-radius:9px;background:#172c30e8;color:#f5ecd3;text-align:left;white-space:normal;box-shadow:inset 0 1px #ffffff16}
#dungeon-food .arc-gear .arc-gear-slot[data-selected=true]{border-color:#f0d384;background:#3d4d40;box-shadow:0 0 0 2px #e3c2704d,inset 0 1px #ffffff33}
#dungeon-food .arc-gear .arc-gear-slot[data-role=focus] .arc-slot-icon{border-color:#dfa771}
#dungeon-food .arc-gear .arc-gear-slot[data-role=robe] .arc-slot-icon{border-color:#8ebdd1}
#dungeon-food .arc-gear .arc-gear-slot[data-role=charm] .arc-slot-icon{border-color:#c399d0}
#dungeon-food .arc-gear .arc-slot-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border:2px solid;border-radius:6px;background:#0f2429}
#dungeon-food .arc-gear .arc-item-icon{display:block;width:40px;height:40px;flex:none;image-rendering:pixelated}
#dungeon-food .arc-gear .arc-slot-copy{display:grid;gap:3px;min-width:0}
#dungeon-food .arc-gear .arc-slot-copy small{color:#c6d9d0;font:600 11px/1.2 var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-slot-copy strong{overflow-wrap:anywhere;color:#fff1cd;font:700 13px/1.2 var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-slot-arrow{margin-left:auto;color:#e2ce9a;font-size:21px}
#dungeon-food .arc-gear .arc-slot-panel{padding:4px 0 5px}
#dungeon-food .arc-gear .arc-slot-panel h3{margin-top:8px}
#dungeon-food .arc-gear .arc-slot-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#dungeon-food .arc-gear .arc-slot-options .arc-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-content:start;align-items:start;min-height:136px;padding:10px;border:1px solid #a9bfaa80;border-radius:8px;background:#263c3b}
#dungeon-food .arc-gear .arc-slot-options .arc-card[data-rarity=uncommon]{border-color:#83cab0}
#dungeon-food .arc-gear .arc-slot-options .arc-card[data-rarity=rare]{border-color:#c79bdc}
#dungeon-food .arc-gear .arc-slot-options .arc-card .arc-item-icon{width:42px;height:42px;padding:2px;border:1px solid #d8cda459;border-radius:5px;background:#10262a}
#dungeon-food .arc-gear .arc-slot-options .arc-card>div:first-of-type{min-width:0;flex:auto}
#dungeon-food .arc-gear .arc-slot-options .arc-card .arc-actions{grid-column:1/-1;margin-top:7px}
#dungeon-food .arc-gear .arc-slot-options .arc-card em{color:#addca6}
#dungeon-food .arc-gear .arc-slot-options .arc-card.arc-equipped{background:#34483d}
#dungeon-food .arc-gear .arc-slot-options .arc-card.arc-equipped:after{content:'In use';grid-column:1/-1;justify-self:start;margin-top:7px;padding:3px 8px;border-radius:20px;background:#b8d69d;color:#18362b;font:700 11px var(--wizard-copy,system-ui)}
#dungeon-food .arc-gear .arc-build-summary{margin-top:6px}
@media(max-width:630px){#dungeon-food .arc-gear .arc-character-screen{grid-template-columns:minmax(89px,1fr) minmax(110px,1.2fr) minmax(89px,1fr);gap:4px;min-height:225px;padding:8px}#dungeon-food .arc-gear .arc-character-portrait{min-height:205px}#dungeon-food .arc-gear .arc-character-halo{width:115px;height:115px}#dungeon-food .arc-gear .arc-character-sprite{width:116px;height:116px}#dungeon-food .arc-gear .arc-gear-slot{display:grid;justify-items:center;gap:2px;min-height:72px;padding:5px;text-align:center}#dungeon-food .arc-gear .arc-slot-icon{width:39px;height:39px}#dungeon-food .arc-gear .arc-item-icon{width:33px;height:33px}#dungeon-food .arc-gear .arc-slot-copy small{font-size:10px}#dungeon-food .arc-gear .arc-slot-copy strong{font-size:11px}#dungeon-food .arc-gear .arc-slot-arrow{display:none}#dungeon-food .arc-gear .arc-character-caption{font-size:10px}#dungeon-food .arc-gear .arc-slot-options{grid-template-columns:1fr}}
@media(max-width:390px){#dungeon-food .arc-gear .arc-character-screen{grid-template-columns:85px minmax(94px,1fr) 85px;padding:5px}#dungeon-food .arc-gear .arc-character-sprite{width:100px;height:100px}#dungeon-food .arc-gear .arc-character-halo{width:100px;height:100px}}
/* Pack screens behave like game menus: one task and one focus at a time. */
#dungeon-food{width:min(900px,calc(100vw - 18px));background:radial-gradient(circle at 50% 22%,#314a43,#15292b 58%,#101d25);border:2px solid #bfa774;box-shadow:inset 0 0 0 3px #172d2c,0 20px 70px #071214ef}
#dungeon-food .food-note:empty{display:none}
#dungeon-food .arc-view[hidden],#dungeon-food-slots[hidden]{display:none!important}
#dungeon-food .arc-pack-tabs{display:flex;gap:0;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;margin:0 0 13px;border-bottom:2px solid #7c8469;white-space:nowrap}
#dungeon-food .arc-pack-tabs button{flex:1 0 auto;min-height:48px;padding:8px 13px;border:0;border-radius:0;background:transparent;color:#d2c8a7;font:25px/1 var(--wizard-display,'Jacquard 12',serif)}
#dungeon-food .arc-pack-tabs button[aria-current=page]{color:#fff1bd;background:linear-gradient(transparent 55%,#a68d5440);box-shadow:inset 0 -4px #e7cc83}
#dungeon-food .arc-pack-tabs button:hover{color:#fff1bd}
#dungeon-food .arc-character-screen{min-height:310px;margin:8px 0 10px;border:0;border-radius:0;background:radial-gradient(ellipse at center,#647c5863 0,#2a443b35 35%,transparent 72%)}
#dungeon-food .arc-character-screen:before{border:0}
#dungeon-food .arc-character-halo{border-color:#dec88248;box-shadow:0 0 0 14px #e7ce790e,0 0 0 30px #e7ce7908}
#dungeon-food .arc-gear-slot{border-radius:3px;background:linear-gradient(90deg,#273d3ada,#152727e6);border-color:#a8946e8c}
#dungeon-food .arc-gear-slot[data-selected=true]{background:#4b523c;border-color:#ffe2a0}
#dungeon-food .arc-build-summary{display:flex;justify-content:center;flex-wrap:wrap;gap:0;margin:8px 0 3px}
#dungeon-food .arc-gear .arc-build-stat{flex:1;min-width:100px;padding:5px 12px;border:0;border-right:1px solid #a699746e;border-radius:0;background:none;text-align:center}
#dungeon-food .arc-gear .arc-build-stat:last-child{border-right:0}
#dungeon-food .arc-gear .arc-build-stat strong{font:28px/1 var(--wizard-display,'Jacquard 12',serif);color:#ffe6a9}
#dungeon-food .arc-gear .arc-build-stat small{font-size:11px;color:#d4dacb}
#dungeon-food .arc-slot-panel{margin-top:8px}
#dungeon-food .arc-slot-panel .arc-bag-help{margin:8px 0!important;text-align:center;color:#c9d2bd}
#dungeon-food .arc-view[data-slot-open=true] .arc-character-screen{min-height:188px}
#dungeon-food .arc-view[data-slot-open=true] .arc-character-portrait{min-height:170px}
#dungeon-food .arc-view[data-slot-open=true] .arc-character-sprite{width:120px;height:120px}
#dungeon-food .arc-view[data-slot-open=true] .arc-character-halo{width:138px;height:138px}
#dungeon-food .arc-view[data-slot-open=true] .arc-character-caption{display:none}
#dungeon-food .arc-view[data-slot-open=true] .arc-gear-slot{min-height:61px}
#dungeon-food .arc-view[data-slot-open=true] .arc-slot-panel h3{margin:9px 0}
#dungeon-food .arc-slot-options .arc-card{border-radius:3px}
#dungeon-food .arc-view[data-view=backpack] .arc-bag-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#dungeon-food .arc-view[data-view=backpack] .arc-card{border-radius:3px}
#dungeon-food-slots{padding:8px 0}
#dungeon-food-slots .arc-quest{max-width:68ch;margin:0 0 10px;padding:12px;border-left:3px solid #d8bb79;border-radius:0;background:#243630}
@media(max-width:620px){#dungeon-food{padding:12px;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px)}#dungeon-food .arc-pack-tabs{margin:0 -6px 10px}#dungeon-food .arc-pack-tabs button{flex:none;font-size:22px;min-height:48px;padding:9px 12px}#dungeon-food .arc-character-screen{min-height:236px}#dungeon-food .arc-view[data-slot-open=true] .arc-character-screen{min-height:190px}#dungeon-food .arc-view[data-view=backpack] .arc-bag-grid{grid-template-columns:1fr}#dungeon-food .arc-gear .arc-build-stat{min-width:50%;border-bottom:1px solid #a699744a}#dungeon-food .arc-gear .arc-build-stat:nth-child(even){border-right:0}}
#dungeon-food .arc-view[data-slot-open=true] .arc-build-summary,#dungeon-food .arc-view[data-slot-open=true] .arc-xp,#dungeon-food .arc-view[data-slot-open=true] .arc-wealth{display:none}
@media(max-width:620px){#dungeon-food .arc-pack-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;border-bottom:0;gap:3px}#dungeon-food .arc-pack-tabs button{width:100%;min-height:44px;padding:7px 8px;border:1px solid #9f946f78;font-size:21px;text-align:center}#dungeon-food .arc-pack-tabs button[aria-current=page]{border-color:#e6c780;box-shadow:inset 0 -3px #e7cc83}}
body.in-dungeon .walk-header #show-journal{font:700 12px/1 var(--wizard-copy,system-ui)}

/* Exploration guidance occupies a small corner and leaves the sphere in play. */
#arc-minimap{position:fixed;z-index:6;top:62px;right:12px;display:grid;justify-items:center;gap:3px;width:130px;padding:5px;border:1px solid #d9c694aa;border-radius:9px;background:#12252be8;color:#fff0ca;box-shadow:0 5px 18px #07151daa;cursor:pointer;font:700 10px/1.2 var(--wizard-copy,system-ui)}
#arc-minimap[hidden]{display:none}
body.panel-open #arc-minimap,body.dungeon-pack-open #arc-minimap{display:none}
#arc-minimap canvas{display:block;width:116px;height:116px;border-radius:5px;image-rendering:pixelated}
#arc-minimap-goal{display:block;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#arc-minimap:focus-visible{outline:3px solid #fff2ac;outline-offset:2px}
.map-explain{font:12px/1.4 var(--wizard-copy,system-ui);color:#dbe1c7}
.arc-route-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:9px 0 13px;padding-left:18px;color:#dbe6d5;font:12px/1.3 var(--wizard-copy,system-ui)}
.arc-route-list .current{color:#ffe3a5;font-weight:700}.arc-route-list .unknown{color:#99a8a3}
@media(max-width:760px){#arc-minimap{top:65px;right:8px;width:108px;padding:4px}#arc-minimap canvas{width:98px;height:98px}#arc-minimap-goal{max-width:98px;font-size:9px}}
@media(max-height:500px){#arc-minimap{top:55px;width:104px}#arc-minimap canvas{width:94px;height:94px}}

/* Level progress stays visible above play without restoring the large HUD cards. */
#dungeon .arc-xp-strip{position:fixed;z-index:6;top:max(8px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(410px,calc(100vw - 490px));min-width:190px;display:grid;gap:3px;pointer-events:none}
#dungeon .arc-xp-strip small{color:#fff0cc;text-align:center;text-shadow:0 2px 4px #0a171c,0 0 8px #0a171c;font:700 11px/1.1 var(--wizard-copy,system-ui)}
#dungeon .arc-xp-strip .arc-hud-xp{height:9px;margin:0;border:1px solid #f2dfbd;border-radius:8px;background:#12252c;overflow:hidden;box-shadow:0 2px 8px #071619b3}
#dungeon .arc-xp-strip .arc-hud-xp span{display:block;height:100%;background:linear-gradient(90deg,#9e8bd9,#e5c78c);transition:width .25s ease-out}
body.panel-open #dungeon .arc-xp-strip,body.dungeon-pack-open #dungeon .arc-xp-strip,body.dungeon-defeated #dungeon .arc-xp-strip{display:none}
@media(max-width:760px){#dungeon .arc-xp-strip{top:calc(max(8px,env(safe-area-inset-top)) + 54px);left:8px;right:124px;transform:none;width:auto;min-width:0}#dungeon .arc-xp-strip small{font-size:10px;text-align:left}body.in-dungeon #toast{top:92px}}
@media(max-height:500px){#dungeon .arc-xp-strip{top:calc(max(6px,env(safe-area-inset-top)) + 47px)}}
@media(prefers-reduced-motion:reduce){#dungeon .arc-xp-strip .arc-hud-xp span{transition:none}}

/* One field book for story, character, explored map, and play notes. */
body.in-dungeon #panel,body.in-dungeon #dungeon-food{box-sizing:border-box;left:50%;right:auto;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(860px,calc(100vw - 28px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border:3px solid #9c794b;border-radius:9px;box-shadow:inset 0 0 0 2px #dac18b,0 22px 75px #071618e8}
body.in-dungeon #panel{padding:22px 32px 28px;background:linear-gradient(90deg,#927b5755 0 2%,transparent 4% 96%,#927b5755 98%),repeating-linear-gradient(0deg,#e9ddb9 0 27px,#e5d7b1 28px 29px);color:#2c352f}
body.in-dungeon #panel:before,body.in-dungeon #dungeon-food:before{content:'';position:sticky;display:block;top:-22px;height:7px;margin:-22px -32px 15px;background:repeating-linear-gradient(90deg,#4d533f 0 12px,#a68c60 12px 20px);z-index:1}
body.in-dungeon #dungeon-food{padding:22px 30px 28px;background:linear-gradient(90deg,#0a242a,#28443d 3% 97%,#0a242a);color:#f7ead0}
body.in-dungeon #dungeon-food:before{margin:-22px -30px 15px}
.field-book-heading{display:grid;gap:2px;padding-right:54px}.field-book-heading strong{font:32px/1 var(--wizard-display,'Jacquard 12',serif);color:#344738}
body.in-dungeon #panel .eyebrow{color:#6d5938}.field-book-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:13px 0 20px;border-bottom:2px solid #977a4e;padding:0 4px}
.field-book-tabs button{position:relative;min-height:46px;padding:6px 7px;border:1px solid #967f55;border-bottom:0;border-radius:7px 7px 0 0;background:#bca374;color:#342c21;font:25px/1 var(--wizard-display,'Jacquard 12',serif);white-space:nowrap}
.field-book-tabs button[aria-current=page]{background:#f3e7c7;color:#263a2e;box-shadow:inset 0 3px #608060}
#dungeon-food .field-book-tabs button{background:#30493f;color:#e4d2a4;border-color:#b49b6c}
#dungeon-food .field-book-tabs button[aria-current=page]{background:#e5d5a6;color:#20362c}
.field-book-tabs button:focus-visible{outline:3px solid #a2d688;outline-offset:2px}
body.in-dungeon #panel .close{position:sticky;z-index:3;top:0;right:auto;float:right;margin:0 0 2px 8px;border:1px solid #795f3e;border-radius:4px;background:#e8d5a8;color:#3e3828}
body.in-dungeon #panel h2{color:#354738;text-shadow:none}
body.in-dungeon #panel p,body.in-dungeon #panel .map-explain,body.in-dungeon #panel .arc-route-list{color:#3c463a}
body.in-dungeon #panel .arc-route-list .unknown{color:#73796b}
body.in-dungeon #panel .arc-route-list .current{color:#70521e}
.journey-feature{display:grid;gap:8px;margin:14px 0;padding:14px 16px;border:2px solid #92784d;border-radius:7px;background:linear-gradient(135deg,#e8dcaf,#f2e7c8);box-shadow:inset 0 0 0 2px #f7edce}
.journey-feature strong{font:27px/1.1 var(--wizard-display,'Jacquard 12',serif);color:#354936}
.journey-feature p{margin:0;max-width:64ch}
.journey-feature button,.journey-feature a{justify-self:start;min-height:44px;padding:8px 14px;border:1px solid #5c6745;border-radius:5px;background:#45664e;color:#fff4d5!important;font-weight:700;text-decoration:none}
.journey-feature .journey-current{font-weight:700;color:#4d6045}
body.in-dungeon #panel button:not(.close):not(.field-book-tabs button){border:1px solid #84734e;background:#e7d9b3;color:#2f3e32}
body.in-dungeon #panel a{color:#3a5c57}
body.in-dungeon #panel .journey-feature button,body.in-dungeon #panel .journey-feature a{background:#45664e;color:#fff4d5}
body.in-dungeon #panel .story-next,body.in-dungeon #panel .arc-quest{border-left:3px solid #648568;background:#d4c89f7a;color:#344536}
body.in-dungeon #panel .report-map{max-width:100%}
body.in-dungeon #dungeon-food .dungeon-food-head .eyebrow{display:block;color:#d6c798}
body.in-dungeon #dungeon-food .dungeon-food-head{flex-wrap:wrap}
body.in-dungeon #dungeon-food .dungeon-food-head h2{margin-right:auto}
@media(max-width:620px){body.in-dungeon #panel,body.in-dungeon #dungeon-food{top:calc(env(safe-area-inset-top) + 6px);left:6px;right:6px;bottom:calc(env(safe-area-inset-bottom) + 6px);width:auto;max-height:none;transform:none;padding:16px 14px 22px}body.in-dungeon #panel:before,body.in-dungeon #dungeon-food:before{margin:-16px -14px 12px;top:-16px}body.in-dungeon #panel .close{top:0;right:auto}body.in-dungeon #dungeon-food .dungeon-food-head h2{font-size:29px}.field-book-heading strong{font-size:27px}.field-book-tabs{gap:2px;margin:11px -3px 15px;padding:0}.field-book-tabs button{min-height:46px;padding:6px 2px;font-size:20px}body.in-dungeon #dungeon-food .arc-pack-tabs{margin-top:2px}}
@media(max-height:500px){body.in-dungeon #panel,body.in-dungeon #dungeon-food{top:6px;bottom:6px;max-height:none;transform:translateX(-50%)}.field-book-tabs{margin:6px 0 10px}body.in-dungeon #panel:before,body.in-dungeon #dungeon-food:before{display:none}}
@media(max-width:620px) and (max-height:500px){body.in-dungeon #panel,body.in-dungeon #dungeon-food{left:6px;right:6px;transform:none}}
body.in-dungeon #panel,body.in-dungeon #dungeon-food{z-index:16}
body.in-dungeon #panel h3{color:#46563f}
body.in-dungeon #panel .arc-journal-entry,body.in-dungeon #panel .arc-mission{color:#f5ead3}

/* Portrait-led field status: compact outlines leave the play field open. */
body.in-dungeon .walk-header .pocket{
  position:fixed;top:10px;left:205px;z-index:7;display:grid;gap:4px;
  width:max-content;min-width:54px;margin:0;padding:0;border:0;border-radius:0;background:none;
  color:#fff0ce;box-shadow:none;
}
body.in-dungeon .walk-header .pocket span:first-child{display:none}
body.in-dungeon .walk-header .pocket span{
  display:flex;align-items:center;justify-content:center;gap:3px;
  min-height:27px;padding:3px 4px;border:1px solid #c6ac71bb;border-radius:5px;
  background:#142729cf;color:#e9d298;font:700 11px/1 var(--wizard-copy,system-ui);
  box-shadow:0 2px 7px #08181780;
}
body.in-dungeon .walk-header .pocket strong{color:#fff3d3;font:700 11px/1 var(--wizard-copy,system-ui)}
#dungeon .dungeon-hud{top:10px;left:10px}
#dungeon .dungeon-hud>div.arc-vitals{
  display:grid;grid-template-columns:53px 1fr;grid-template-rows:18px 15px 5px 15px 4px;
  column-gap:8px;row-gap:2px;width:189px;min-height:0;padding:0;border:0;
  border-radius:0;background:none;box-shadow:none;backdrop-filter:none;
}
#dungeon .arc-hud-portrait{
  grid-column:1;grid-row:1 / -1;display:block;width:53px;height:53px;
  border:3px solid #d5b87a;border-radius:5px;
  background:#304a3d url('/assets/frog-wizard/frog-atlas.png') left top/800% 200% no-repeat;
  image-rendering:pixelated;box-shadow:inset 0 0 0 2px #4b3422,0 2px 8px #061819a8;
}
#dungeon .arc-vitals #dungeon-wave{
  grid-column:2;grid-row:1;display:block;align-self:center;margin:0;
  color:#fff1ce;font:700 12px/1 var(--wizard-copy,system-ui);text-shadow:0 2px 3px #0c1d1c;
}
#dungeon .arc-vitals .arc-vital-label{grid-column:2;display:block;min-width:0}
#dungeon .arc-vitals .arc-vital-label:has(#dungeon-health){grid-row:2}
#dungeon .arc-vitals .arc-vital-label:has(#dungeon-mana){grid-row:4;display:block}
#dungeon .arc-vitals .arc-vital-label small{
  display:block;margin:0;color:#fff1d7;font:700 9px/1 var(--wizard-copy,system-ui);
  white-space:nowrap;text-shadow:0 1px 3px #0b1b1b;
}
#dungeon .arc-vitals .health-track,#dungeon .arc-vitals .mana-track{
  grid-column:2;height:5px;margin:0;border:1px solid #0c1b1b;border-radius:3px;
  background:#0b1719;box-shadow:0 0 0 1px #c5b37d88;
}
#dungeon .arc-vitals .health-track{grid-row:3}
#dungeon .arc-vitals .mana-track{grid-row:5;height:4px}
@media(max-width:760px){
  #dungeon .dungeon-hud{top:8px;left:8px}
  #dungeon .dungeon-hud>div.arc-vitals{width:145px;grid-template-columns:43px 1fr;column-gap:6px}
  #dungeon .arc-hud-portrait{width:43px;height:43px}
  #dungeon .arc-vitals #dungeon-wave{font-size:11px}
  #dungeon .arc-vitals .arc-vital-label small{font-size:8px}
  body.in-dungeon .walk-header .pocket{top:8px;left:160px;min-width:43px;max-width:74px}
  body.in-dungeon .walk-header .pocket span{min-height:27px;font-size:10px}
  #dungeon .arc-xp-strip{top:calc(max(8px,env(safe-area-inset-top)) + 78px)}
}
@media(max-height:500px){
  body.in-dungeon .walk-header .pocket{top:8px}
  #dungeon .arc-xp-strip{top:calc(max(6px,env(safe-area-inset-top)) + 57px)}
}

@media(min-width:761px) and (max-height:500px){
  #dungeon .arc-xp-strip{top:max(8px,env(safe-area-inset-top));left:calc(50% + 18px)}
}

/* Short accepted-hit receipt beside the compact health display. */
.arc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#arc-damage-cue{position:fixed;z-index:7;top:78px;left:10px;max-width:min(270px,calc(100vw - 145px));margin:0;padding:5px 8px;border:1px solid #d99479;border-radius:5px;background:#291c1de8;color:#ffe2c6;box-shadow:0 2px 8px #06181999;font:700 11px/1.25 var(--wizard-copy,system-ui);pointer-events:none}
#arc-damage-cue[hidden]{display:none!important}
body.panel-open #arc-damage-cue,body.dungeon-pack-open #arc-damage-cue,body.dungeon-defeated #arc-damage-cue{display:none}
@media(max-width:760px){#arc-damage-cue{top:calc(max(8px,env(safe-area-inset-top)) + 125px);left:8px;max-width:min(238px,calc(100vw - 145px))}}
@media(max-height:500px){#arc-damage-cue{top:calc(max(8px,env(safe-area-inset-top)) + 77px)}}

/* Temporary route exists only inside the explored field-book map. */
.report-map .map-home-route{fill:none;stroke:#f5d18c;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:5 4;paint-order:stroke;filter:drop-shadow(0 1px 1px #132b2b)}
.map-home-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0}
.map-home-controls p{margin:0;font:700 12px/1.3 var(--wizard-copy,system-ui)}
.map-home-controls button{min-height:42px}
