
:root {color-scheme:dark; background:#09080a; color:#eee0cb}
#shell {background:#100d13; border-color:#584132; box-shadow:0 0 75px #050405}
#panel h1 {color:#f1d5a1; text-shadow:0 2px 14px #8d4b3880}
header small,.row.sub {color:#c9ac89}
#hud .bar {background:#361c24; border:1px solid #62403a}
#hp {background:linear-gradient(90deg,#681c32,#c6404e,#ee8170); box-shadow:0 0 12px #e72e4f72}
#room-progress {accent-color:#d8a26d}
#overlay {background:radial-gradient(ellipse at 50% 45%,#2b1c276e,#0a080cf5)}
#panel {color:#e6d9c8; scrollbar-color:#806042 #1a131b}
#panel p,footer {color:#cbbaa9}
#panel button,.header-actions button {background:linear-gradient(#2e2227,#171117); border-color:#75583f; color:#f3dbb3; border-radius:2px}
#panel button:hover,.header-actions button:hover {border-color:#e1ba83; box-shadow:0 0 14px #cb936034}
button:focus-visible {outline:2px solid #ffcf8f; outline-offset:2px}
.damage-number {font:800 clamp(21px,5.2cqw,31px)/1.05 Georgia,serif; color:#fff0d8; white-space:nowrap; text-align:center; font-variant-numeric:tabular-nums; text-shadow:0 2px 2px #000,0 0 4px #000}
.damage-number small {display:block; font:700 12px/1.2 system-ui; letter-spacing:.06em}
.damage-number.critical-damage {font-size:clamp(32px,8cqw,48px); color:#ffb154; text-shadow:0 2px 3px #210900,0 0 10px #ec651b}
.damage-number.lucky-damage {font-size:clamp(40px,9.8cqw,60px); color:#a7ffe2; text-shadow:0 2px 3px #001b15,0 0 12px #12bd8d}
.damage-number.player-damage {color:#ff777f}
/* Keep the combat area visible above the player. */
#hud #hint{margin:3px 0 2px}
#hud #enemybar{margin-top:5px}
#hud #room-progress{height:4px}
header b{line-height:1.1}
header small{display:block;margin-top:3px}

header {
 inset:0 0 auto; padding:8px 5% 7px; min-height:8.1%;
 border-block:1px solid #826b53;
 background:
  linear-gradient(90deg,#0c080be8 0%,#0c080b38 45%,#0c080b15 57%,#0c080bce 85%),
  url(masthead-art.jpg) center 37% / 100% auto no-repeat #070709;
 box-shadow:inset 0 0 0 2px #0e0b0b,inset 0 0 0 3px #5b4637,0 3px 10px #000b;
}
header b {font-family:Georgia, "Songti SC", SimSun, serif; color:#e6d7c3; letter-spacing:.13em}
header small {color:#bfb09f}
#hud {
 inset:9% 0 auto; border-block:1px solid #795a42; padding:5px 5%;
 background:linear-gradient(180deg,#0c0b0eea,#100d13bd);
 box-shadow:inset 0 1px #ba927463,inset 0 -1px #67534380,0 4px 15px #0007;
}
#hunt-stick {
 border:1px solid #948575;
 background:radial-gradient(circle,#7c6b6152,#18151ac4 66%,#100f14de);
 box-shadow:inset 0 0 0 2px #62524556,0 3px 12px #000a;
}
#hunt-stick i {
 background:radial-gradient(circle at 39% 34%,#96908b,#484046 66%,#21191f);
 border:1px solid #afa08d;
 box-shadow:0 1px 5px #000a,inset 0 0 0 2px #ffffff16;
}

.boss-active #enemybar {
 width:100%; margin:4px 0 0; padding:4px 0 0;
 display:grid; grid-template-columns:max-content 1fr; align-items:center; column-gap:8px;
 border:0; border-top:1px solid #88654a75; border-radius:0; background:none;
}
.boss-active #enemybar[hidden] {display:none}
.boss-active #enemybar .bar {height:5px;margin:0}
.boss-active #enemyname {font-size:10px}
.boss-active #bossaction,.boss-active #enemytraits {grid-column:1/-1;min-height:0}
#enemytraits:empty,#bossaction:empty {display:none}

.hud-status {
 display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
 row-gap:2px; column-gap:8px;
}
.hud-status .row {gap:6px}
.hud-status #wallet-gold {margin:0 0 0 auto;white-space:nowrap}
.hud-meters {
 display:grid; grid-template-columns:1fr .87fr; gap:10px;
 align-items:center; padding:4px 0 2px;
}
.hud-meters .bar {margin:0}
.hud-meters .room-progress-label {margin:0 0 1px;gap:3px}
.hud-meters .room-progress-label span {white-space:nowrap}
.hud-skills {display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.hud-next #combo:empty {display:none}
.hud-next {flex:1;min-width:116px}
.hud-next #hint {margin:0}
.hud-next #combo {color:#d9bd95;font-size:9px}
.hud-next #skill-progress {margin-top:2px;height:3px}


#controls {inset:auto 5% 5% 5%}
#hunt-stick {left:0;transform:none;width:clamp(82px,25cqw,132px)}
#hunt-stick.dragging {transform:translate(-50%,-50%)}
#controls #nodes {
 position:absolute; right:0; bottom:6px;
 width:min(58%,226px); justify-content:flex-end; gap:5px;
}
#controls .god-slot {
 box-sizing:border-box; position:relative; justify-content:center;
 width:clamp(32px,10.8cqw,49px); aspect-ratio:1; padding:3px;
 border:1px solid #9e8163; border-radius:50%;
 background:radial-gradient(circle,#2f2431,#100e13 63%,#080709);
 box-shadow:inset 0 0 0 2px #5a453955,0 3px 9px #0007;
}
#controls .god-slot.next {
 border-color:#e6b77b;
 box-shadow:inset 0 0 0 2px #67431e8f,0 0 13px #dda4554e;
}
#controls .god-slot-icon {width:100%;height:auto;aspect-ratio:1}
#controls .god-slot img {border-radius:50%;opacity:.88}
#controls .god-slot-name {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
#controls .god-slot small {
 bottom:-2px;right:-1px;min-width:12px;padding:0 1px;
 color:#f7dfb8;background:#20181c;border:1px solid #846449;border-radius:4px;
 text-align:center;
}
.damage-number:not(.player-damage) {font-style:italic}

header::before,header::after {
 content:"";position:absolute;inset:3px auto auto 3px;width:12px;height:12px;
 border:1px solid #b8936d;border-right:0;border-bottom:0;
 pointer-events:none;
}
header::after {inset:auto 3px 3px auto;transform:rotate(180deg)}
footer {
 inset:auto 0 0;
 padding:4px 6px;
 background:linear-gradient(transparent,#0b080acb);
 color:#c7b99e;
}

.equipment-art {
 display:block; width:clamp(52px,13cqw,86px); aspect-ratio:1; margin-inline:auto;
 background: #131316 url('equipment-atlas.png') var(--gear-x,0%) var(--gear-y,0%) / 300% 300% no-repeat;
 border-radius:4px;
}
.equipment-robe,.equipment-gloves,.equipment-tide {--gear-x:50%}
.equipment-charm,.equipment-boots,.equipment-ember {--gear-x:100%}
.equipment-ring,.equipment-gloves,.equipment-boots {--gear-y:50%}
.equipment-moon,.equipment-tide,.equipment-ember {--gear-y:100%}
.staff-art:has(.equipment-art)::before,.staff-art:has(.equipment-art)::after {display:none}
.staff-art .equipment-art {width:100%;max-width:86px}
.ground-drop .equipment-art {width:100%;height:100%}
