.run-timer{position:absolute;top:22px;left:50%;transform:translateX(-50%);text-align:center;text-shadow:0 2px 5px #000}.run-timer span{display:block;letter-spacing:4px;font-size:8px;color:#eee5b7}.run-timer b{display:block;font:30px Georgia;margin:3px}.run-timer small{font-size:8px;color:#d1dbb5}.auto-attack{font-size:11px;color:#d4c993;margin:0 12px}.auto-attack small{display:block;font-size:8px;color:#899b79;margin-top:7px}.combat>#dodge{font-size:11px;min-width:66px}#dodge small{display:block;color:#b4c68d;font-size:9px;margin-top:6px}.build{display:flex;gap:5px;margin-left:6px;max-width:170px;flex-wrap:wrap}.build span{border:1px solid #9eaa6655;font-size:9px;padding:4px;color:#c4d1a5}.dpad>div{display:flex;flex-direction:column;gap:3px}.dpad>div>button{height:28px;min-width:40px;position:relative;padding:0 8px 5px;font-size:15px}.dpad>div kbd{font-size:6px;bottom:0}.dpad>button{height:58px}.level-card{width:min(680px,94%);padding:20px}.level-card h2{font-size:26px;letter-spacing:3px;font-weight:400;margin:10px}.level-card>p{font-size:10px;color:#adbc9d}#choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:23px}#choices>button{padding:20px 12px;background:linear-gradient(#394a31,#243526);border:1px solid #b8b47a99;min-height:165px;display:flex;flex-direction:column;align-items:center;gap:14px;box-shadow:0 8px 25px #0003}#choices>button:hover{background:#526044;transform:translateY(-3px)}#choices .symbol{font-size:30px;color:#e1d09a}#choices strong{font-size:14px;letter-spacing:1px;font-weight:500}#choices small{font-size:10px;line-height:1.7;color:#acbe9b}#choices em{font-size:8px;font-style:normal;color:#dbcf9e}#joystick{position:absolute;border:1px solid #f1e8b86b;background:#12271a55;border-radius:50%;width:100px;height:100px;pointer-events:none;z-index:3}#joystick i{position:absolute;width:38px;height:38px;border-radius:50%;border:1px solid #e5dbac;background:#d5d2a444;left:30px;top:30px}.game-stage{cursor:crosshair}.game-stage button{cursor:pointer}.bossbar{top:122px}.game-stage:fullscreen{height:100svh}.scene-tag{pointer-events:none}.level-card .eyebrow{font-size:9px}
@media(max-width:800px){.run-timer{top:13px}.run-timer b{font-size:25px}.run-timer small{font-size:7px}.auto-attack{font-size:9px;margin:0 3px}.auto-attack small{display:none}.build{max-width:75px}.build span{font-size:8px;padding:3px}.combat>#dodge{min-width:52px}.dpad>div>button{height:25px;min-width:33px}.dpad>button{height:53px}.bossbar{top:107px}}
@media(max-width:580px){.run-timer{top:86px;left:55px}.run-timer span,.run-timer small{display:none}.run-timer b{font-size:22px}.game-stage{height:440px}#choices{gap:6px;margin-top:12px}#choices>button{padding:14px 8px;gap:10px;min-height:170px}#choices strong{font-size:12px}#choices small{font-size:9px}.level-card{padding:8px}.level-card h2{font-size:22px}.build{max-width:150px}.action-bar{padding:8px 10px}.combat{justify-content:space-between}.auto-attack{font-size:11px}.bossbar{top:150px}.scene-tag{bottom:18px}.route{top:83px}.hud-right{align-items:flex-end}.player-panel{transform:scale(.8)}#toast{top:30%}}
@media(max-height:600px) and (orientation:landscape){.game-stage{height:calc(100svh - 112px)}.run-timer{top:8px;left:50%}.run-timer b{font-size:22px}.run-timer small{display:none}.run-timer span{font-size:6px}.dpad>div>button{height:26px;min-width:36px}.dpad>button{height:55px}.combat{gap:7px}.auto-attack{font-size:10px}.build{max-width:170px}.bossbar{top:65px}.level-card{padding:6px}.level-card h2{font-size:20px;margin:6px}.level-card>p{margin:5px}#choices{margin-top:8px}#choices>button{min-height:100px;padding:10px;gap:7px}#choices .symbol{font-size:23px}#choices small{font-size:9px}.veil{backdrop-filter:blur(1px)}}

.learned-bar{display:flex;align-items:center;gap:14px;padding:10px 18px;background:#16251ff2;border-top:1px solid #a7b58344;min-width:0}.skill-bar-heading{font-size:11px;white-space:nowrap;color:#d4c993;font-weight:500}.learned-skills{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;min-width:0;scrollbar-width:thin;flex:1}.learned-skill{flex:0 0 100px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:20px 18px;column-gap:6px;align-items:center;padding:5px 7px;background:#31402d;border:1px solid #a7b58366;border-radius:4px;outline-offset:2px}.learned-skill img{grid-row:1/3;width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.learned-skill span{font-size:11px;white-space:nowrap;color:#edf1d2}.learned-skill b{font-size:11px;color:#f5d882;font-weight:500}.skills-empty{font-size:11px;color:#aabb9f}@media(max-width:580px){.learned-bar{gap:8px;padding:6px 9px}.skill-bar-heading{font-size:10px}.learned-skill{flex-basis:93px;padding:3px 5px}.skills-empty{font-size:10px}}

#choices .symbol img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.learned-bar[hidden]{display:none}

#potion-icon{width:20px;height:24px;object-fit:contain;vertical-align:middle;image-rendering:pixelated;margin-right:4px}.forge-row img{float:left;width:32px;height:32px;object-fit:contain;image-rendering:pixelated;margin-right:10px}

#item-status{color:#bce9d2;font-size:11px;margin-left:8px;white-space:nowrap}

#bestiary{width:900px;max-width:calc(100vw - 20px);max-height:92svh;overflow:auto;background:#211b3b;color:#eee}#bestiary>button[data-close]{float:right}.bestiary-layout{display:grid;grid-template-columns:220px 1fr;gap:20px;margin:16px 0}#bestiary-list{max-height:65svh;overflow:auto}.bestiary-entry{display:block;width:100%;text-align:left;padding:10px;font-size:12px;border-radius:0}.bestiary-entry[aria-pressed=true]{background:#5b5289}#bestiary-detail canvas{image-rendering:pixelated;float:right;width:120px;height:120px;max-width:40%;object-fit:contain;margin:0 0 8px 12px}#bestiary-detail dl{display:grid;grid-template-columns:120px 1fr;gap:9px;font-size:13px;line-height:1.7}#bestiary-detail dd{margin:0}.bestiary-note{font-size:11px;line-height:1.8;color:#b5aecb}#bestiary-detail>button,#bestiary-claim-all{width:100%;font-size:12px;padding:12px}@media(max-width:600px){.bestiary-layout{grid-template-columns:1fr}#bestiary-list{max-height:160px}#bestiary-detail dl{grid-template-columns:100px 1fr}}

@media(max-width:600px){#bestiary-detail canvas{float:none;width:104px;height:104px;max-width:100%;margin:0 auto 8px}}
