/* Live HUD only; the Quest's diegetic panels remain unchanged. */
#game.playing :is(#vitals,#minimap,#activeSpell:not(:empty)){
 background:linear-gradient(140deg,#301f19ef,#1b1217f2 80%);
 border:1px solid #b78b55;border-radius:5px;
 box-shadow:0 5px 21px #0008,inset 0 0 0 2px #21150f,inset 0 0 0 3px #91654277;
}
#game.playing :is(#vitals,#minimap,#activeSpell:not(:empty))::after{
 content:"";position:absolute;inset:-4px;border:13px solid transparent;
 border-image:url("./assets/share/erduim-bronze-frame.svg") 38 stretch;pointer-events:none;
}
#game.playing :is(#vitals,#minimapLabel,#activeSpell,.desktopActionCluster button){font-family:Georgia,"Times New Roman",serif;}
#game.playing #minimapLabel{padding-top:.08rem;color:#f4d39a}
#game.playing #minimapCanvas{border-color:#98785479;background:#100d11}
#game.playing #vitals .meter label{letter-spacing:.02em}
#game.playing #vitals progress{box-shadow:0 0 0 1px #a97050,inset 0 0 4px #000;background:#351e1b}
#game.playing #vitals progress::-webkit-progress-value{background:linear-gradient(#f99b85,#a83d42)}
#game.playing #vitals progress::-moz-progress-bar{background:linear-gradient(#f99b85,#a83d42)}
#game.playing #activeSpell{color:#fff0d7}
#game.playing .desktopActionCluster button{
 background:radial-gradient(ellipse at 50% 12%,#684127,#231716 75%);
 border-color:#c99e69;color:#f6d7a3;
 box-shadow:0 2px 6px #0009,inset 0 0 0 2px #2c1b14,inset 0 0 0 3px #9b6a48;
}
#game.playing .desktopActionCluster button:focus-visible{outline:2px solid #ffe6a3}
@media(min-width:700px) and (min-height:400px){
 #game.playing.desktop-play #controls .desktopActionCluster{
  border:2px solid #be925d;
  background:radial-gradient(circle,#ad7650 0 9%,#593224 10% 11%,#26191bf2 12% 41%,#ae85546e 41.5%,#30201cf5 42% 66%,#241717fa 67%);
  box-shadow:inset 0 0 0 2px #241810,inset 0 0 0 3px #b17d48,0 5px 22px #0009;
 }
}

/* Keyboard shortcuts: anchored below the scene like an old role-playing game belt.
   Actual desktop mouse/keyboard mode, not viewport dimensions, decides presence. */
#pcHotbar:not([hidden]){
 --cell:clamp(26px,4.0vw,46px);
 position:absolute;z-index:6;bottom:max(22px,env(safe-area-inset-bottom));left:50%;
 transform:translateX(-50%);display:flex;gap:clamp(2px,.35vw,6px);
 padding:6px 9px 5px;border:1px solid #ba9156;border-radius:4px;
 background:linear-gradient(#3b241b,#150f14);box-shadow:0 4px 18px #000b,inset 0 0 0 2px #1c1211,inset 0 0 0 3px #86613880;
 isolation:isolate;
}
#pcHotbar::after{content:"";position:absolute;inset:-5px;border:11px solid transparent;border-image:url("./assets/share/erduim-bronze-frame.svg") 38 stretch;pointer-events:none;z-index:-1}
#pcHotbar button{
 --tone:#dbbd7d;position:relative;width:var(--cell);height:calc(var(--cell) - 2px);
 padding:0;min-width:0;display:grid;place-items:center;margin:0;
 border:1px solid #9d744d;border-radius:3px;color:var(--tone);
 background:radial-gradient(ellipse at 50% 70%,color-mix(in srgb,var(--tone) 25%,#221413),#131018 80%);
 box-shadow:inset 0 0 0 1px #251714,0 1px 3px #000c;
}
#pcHotbar button[data-tone=ember]{--tone:#ffae65}
#pcHotbar button[data-tone=sky]{--tone:#6cc7fc}
#pcHotbar button[data-tone=ice]{--tone:#a1e4ff}
#pcHotbar button[data-tone=violet]{--tone:#bba5ff}
#pcHotbar button[data-tone=ash]{--tone:#8c7466}
#pcHotbar button[aria-pressed=true]{border-color:#ffe1a2;box-shadow:inset 0 0 8px #ffd48175,0 0 6px #e9b770a0}
#pcHotbar button:disabled{opacity:.49;cursor:default}
#pcHotbar button:focus-visible{outline:2px solid #f9db9a;outline-offset:1px}
#pcHotbar kbd{position:absolute;top:-13px;left:50%;transform:translateX(-50%);border-radius:50%;width:18px;height:18px;display:grid;place-items:center;color:#f3dba6;border:1px solid #9e7950;background:#211715;font:12px Georgia,serif;padding:0}
#pcHotbar small{position:absolute;bottom:0;right:2px;color:#ffe8bb;font-size:10px;text-shadow:1px 1px #140d08}
#pcHotbar .hudIcon{width:55%;height:55%;filter:drop-shadow(0 0 4px currentColor)}
#pcHotbar .hotbarGlyph{font:clamp(16px,2vw,26px) Georgia,serif;text-shadow:0 0 7px currentColor}
@media(max-width:1050px){#pcHotbar:not([hidden]){bottom:max(118px,calc(env(safe-area-inset-bottom) + 106px));}}
@media(max-height:480px){#pcHotbar:not([hidden]){bottom:max(67px,calc(env(safe-area-inset-bottom) + 57px));}}
@media(max-width:420px){#pcHotbar:not([hidden]){--cell:clamp(18px,7vw,30px);}}
