/* Overgrown City FULL demo: combat HUD on top of the free kit's screens (ui.css) */
#game canvas{cursor:crosshair}
@media (pointer:fine){#game canvas{cursor:url(full/cross64.png) 32 32, crosshair}}
.wpn{position:absolute;left:50%;bottom:86px;transform:translateX(-50%);width:250px;height:92px;background:url(ui/weapon_panel.png) center/100% 100% no-repeat;pointer-events:none}
.wpn > img{position:absolute;left:22px;right:22px;top:16px;bottom:30px;width:calc(100% - 44px);height:46px;object-fit:contain;filter:drop-shadow(0 2px 2px #000a)}
.wpn .ammo{position:absolute;left:50%;bottom:-20px;transform:translateX(-50%);width:150px;height:40px;background:url(ui/ammo_plate.png) center/100% 100% no-repeat;display:flex;align-items:center;padding-left:44px;font-size:18px}
.wpn .ammo img{position:absolute;left:2px;top:50%;width:38px;height:38px;transform:translateY(-50%)}
.wpn .ammo small{margin-left:4px;font-size:12px;color:var(--ink-dim)}
.wpn.reload > img{animation:spin .25s linear infinite alternate;opacity:.6}
@keyframes spin{to{transform:rotate(-12deg)}}
.slot.locked img{filter:grayscale(1) brightness(.5)}
.slot img.w{inset:10px 6px;width:54px;height:46px;object-fit:contain}
.acts .col{display:flex;flex-direction:column;gap:8px}
.acts .ic.sm{--ic:60px}
.wave-banner{position:absolute;left:50%;top:26%;transform:translate(-50%,-50%) scale(.6);width:min(680px,92vw);height:96px;background:url(ui/wave_banner.png) center/100% 100% no-repeat;
  display:flex;align-items:center;justify-content:center;font-size:30px;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none}
.wave-banner.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.dmg{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 120px 40px #b0141400;transition:box-shadow .35s}
.dmg.on{box-shadow:inset 0 0 120px 40px #b01414aa;transition:none}
.dmg.low{box-shadow:inset 0 0 160px 30px #b0141455}
.center{text-align:center}.big{font-size:22px;color:var(--ink)}
.pick{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.who{width:180px;border:0;padding:8px 8px 14px;cursor:pointer;background:url(ui/perk_card.png) center/100% 100% no-repeat;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .1s}
.who:hover{transform:translateY(-3px);filter:brightness(1.1)}
.who canvas{width:120px;height:150px}.who b{font-size:20px}.who small{color:var(--ink-dim);font-size:12px;padding:0 10px}
.panel-wrap.wide .panel{width:min(760px,94vw)}
.cards{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.card{width:190px;height:265px;border:0;padding:24px 18px 18px;cursor:pointer;background:url(ui/perk_card.png) center/100% 100% no-repeat;color:var(--ink);
  display:flex;flex-direction:column;align-items:center;text-align:center;transition:transform .1s}
.card:hover{transform:translateY(-4px);filter:brightness(1.12)}
.card img{width:74px;height:74px;margin:4px 0 22px}
.card b{font:16px var(--title);text-transform:uppercase;letter-spacing:.04em}
.card small{margin-top:6px;color:var(--ink-dim);font-size:13px}
.medal{width:120px;height:120px;margin:0 auto;background:center/contain no-repeat}
@media (max-width:760px){.wpn{bottom:150px;width:190px;height:70px}.wpn > img{height:34px;top:12px}.acts .ic.sm{--ic:48px}.card{width:150px;height:215px;padding:18px 12px}.card img{width:56px;height:56px;margin-bottom:14px}}
#hud > .dmg,#hud > .wave-banner,#hud > .toast,#hud > .wpn{pointer-events:none}
/* short landscape phones */
@media (max-height:520px){
  .wpn{bottom:auto;top:10px;width:170px;height:62px}.wpn > img{height:28px;top:10px;left:16px;right:16px;width:calc(100% - 32px)}
  .wpn .ammo{width:112px;height:30px;font-size:14px;bottom:-14px;padding-left:34px}.wpn .ammo img{width:28px;height:28px}
  .hud-top{top:auto;bottom:64px;left:12px;transform:none;flex-direction:column;gap:4px}.hud-top .res{width:100px;height:30px;font-size:14px;padding-left:34px}.hud-top .res img{width:30px;height:30px}
  .hotbar{gap:4px;bottom:6px}.hotbar .slot{width:46px;height:46px}.slot img.w{inset:8px 4px;width:38px;height:30px}.slot span{font-size:10px;right:6px;bottom:3px}
  .joy{width:112px;height:112px;left:10px;bottom:10px}.joy b{width:52px;height:52px;margin:-26px 0 0 -26px}
  .acts{right:10px;bottom:10px;gap:6px}.acts .ic.big{--ic:84px}.acts .ic.mid{--ic:58px}.acts .ic.sm{--ic:44px}
  .minimap{width:104px;height:104px;top:58px}.hud-tr .ic{--ic:40px}.portrait{width:64px;height:64px}.stats{width:170px}
  .wave-banner{height:64px;font-size:20px;top:30%}
}
