#cheat-experiments{margin-top:18px;padding:14px;border:1px solid #76634b;border-radius:8px}
#cheat-experiments summary{cursor:pointer;color:#e9cf94;margin-bottom:12px}
#cheat-experiments label{display:flex;gap:10px;align-items:center}
#cheat-experiments input{width:20px;height:20px;accent-color:#c9a866}
#dungeon-spawn-notice{position:fixed;top:90px;left:50%;transform:translateX(-50%);z-index:40;max-width:calc(100vw - 40px);padding:12px 18px;background:#302a26f5;border:1px solid #b9975a;border-radius:8px;color:#efd9ae;font:14px/1.4 system-ui,sans-serif;pointer-events:none;text-align:center}
#dungeon-spawn-notice[hidden]{display:none}
#dungeon-room{width:min(880px,calc(100vw - 24px));max-width:880px;padding:20px;background:#29232d;color:#efd9ae;border:2px solid #8b7557;max-height:calc(100dvh - 20px);overflow:auto;box-sizing:border-box}
#dungeon-room::backdrop{background:#11121bcc}
.dungeon-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}
.dungeon-heading .menu-eyebrow{font:11px/1.4 system-ui,sans-serif;letter-spacing:2px;color:#c4a877;margin:0 0 8px}
#dungeon-title{font-size:20px;margin:0 0 12px}
#dungeon-progress{white-space:nowrap;font:13px system-ui,sans-serif}
#dungeon-vitals{font:14px/1.5 system-ui,sans-serif;padding:8px 0 12px;color:#e4cbb2}
#dungeon-canvas-wrap{border:2px solid #6c5851;background:#201d28}
#dungeon-canvas-wrap canvas{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none}
#dungeon-message{min-height:38px;font:14px/1.45 system-ui,sans-serif;margin:12px 0}
.dungeon-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dungeon-actions button{min-height:44px;font:13px/1.3 system-ui,sans-serif;padding:9px}
.dungeon-actions button[hidden]{display:none}
@media(max-width:520px){#dungeon-room{padding:12px}.dungeon-heading{gap:8px}#dungeon-title{font-size:16px}.dungeon-heading .menu-eyebrow{font-size:9px;letter-spacing:1px}#dungeon-vitals{font-size:12px}.dungeon-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-height:560px) and (min-width:600px){#dungeon-room{width:780px}#dungeon-canvas-wrap{width:66%;float:left;margin-right:14px}.dungeon-actions{display:flex;flex-wrap:wrap}.dungeon-actions button{flex:1 1 100px}#dungeon-message{min-height:0}}

#dungeon-vitals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}
.dungeon-vital label{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}
.dungeon-vital progress{display:block;width:100%;height:12px;border:1px solid #846e67;appearance:none;background:#352c37;border-radius:0;overflow:hidden}
.dungeon-vital progress::-webkit-progress-bar{background:#352c37}
#dungeon-health::-webkit-progress-value{background:#df5f69}
#dungeon-health::-moz-progress-bar{background:#df5f69}
#dungeon-stamina::-webkit-progress-value{background:#e6c74e}
#dungeon-stamina::-moz-progress-bar{background:#e6c74e}
#dungeon-enemy-count{grid-column:1/-1;font-size:12px;color:#bbaa9d}
#dungeon-leave .upgrade-alert{display:inline-block;vertical-align:middle;margin-left:5px;color:#99ff8d;background:#254b31;border:2px solid #72dc79;text-shadow:1px 2px #142b1b;font-size:18px;line-height:1;font-weight:900;padding:1px 5px;box-shadow:2px 2px 0 #142b1b}

.dungeon-skills{display:grid;grid-template-columns:repeat(3,48px);gap:6px;margin:0 auto 10px;width:max-content;max-width:100%}
.dungeon-skills button{position:relative;min-height:34px;display:flex;align-items:center;justify-content:center;gap:5px;padding:4px 6px;border-width:1px;font:13px/1.3 system-ui,sans-serif}
.dungeon-skills svg{width:18px;height:18px;flex:0 0 18px}
.dungeon-skills button[aria-pressed="true"]{outline:2px solid #e4c17a;background:#574733}
@media(max-width:520px){.dungeon-skills button{font-size:12px;padding:4px}.dungeon-skills svg{width:16px;height:16px;flex-basis:16px}}

.dungeon-skills button[data-locked="true"]{background:#343438;border-color:#68666a;color:#969398;opacity:.65;box-shadow:none;cursor:default}

.dungeon-skill-key{position:absolute;right:3px;bottom:1px;font:10px/1 system-ui;color:inherit;pointer-events:none}
.dungeon-skill-cooldown{position:absolute;inset:0;display:grid;place-items:center;background:#24232fce;font:bold 16px system-ui;pointer-events:none}
.dungeon-skills button[data-locked="true"] svg{filter:grayscale(1)}

#dungeon-canvas-wrap{position:relative}
#dungeon-exit-arrow{position:absolute;right:2%;top:62%;width:44px;height:44px;min-height:0;padding:8px;border:0;background:transparent;box-shadow:none;color:#f6d887;cursor:pointer}
#dungeon-exit-arrow svg{display:block;width:100%;height:100%;shape-rendering:crispEdges}
#dungeon-exit-arrow:hover,#dungeon-exit-arrow:focus-visible{background:#342d24cc;outline:2px solid #f6d887}
#dungeon-exit-arrow[hidden]{display:none}
#dungeon-exit-arrow:disabled{opacity:.4;cursor:default}
