/* ---------- the witch ---------- */
#witch { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; background: rgba(6, 7, 10, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#witch.open { display: flex; }
#witch .shopcard { max-width: 980px; border-color: rgba(201, 162, 255, 0.5); }
.witchrubies { color: #ff6b7d; }
.pnote { font-family: var(--f-ui); font-size: 16px; color: var(--ink-dim); }
.witchhut { position: relative; margin-top: 12px; background: #1a1410; border-radius: 16px; overflow: hidden; border: 2px solid rgba(201, 162, 255, 0.35); }
.witchscene { display: block; width: 100%; height: 230px; }
.witchsay { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: min(90%, 560px); padding: 8px 14px; border-radius: 14px; font-family: var(--f-ui); font-style: italic; font-size: 17px; color: var(--ink); background: rgba(20, 12, 30, 0.85); border: 1px solid rgba(201, 162, 255, 0.4); }
@media (max-width: 640px) { .witchsay { font-size: 13px; padding: 5px 10px; bottom: 6px; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; text-align: left; }
.potcard { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; background: linear-gradient(170deg, #241a30, #110c18); border: 2px solid var(--rc, rgba(201, 162, 255, 0.35)); }
.potcard.soldout { opacity: 0.55; }
.potcard .part { display: grid; place-items: center; height: 92px; }
.potcard .part svg { width: 80px; height: 88px; overflow: visible; }
.pname { font-family: var(--f-ui); font-size: 15px; color: var(--ink); }
.ptier, .pleft { font-family: var(--f-ui); font-size: 14px; color: var(--ink-dim); }
.ptier { color: #c9a2ff; }
.pflav { font-family: var(--f-ui); font-style: italic; font-size: 14px; color: var(--ink-dim); }
.peffects { display: flex; flex-direction: column; gap: 1px; font-family: var(--f-ui); font-size: 15px; }
.peffects .up { color: #7ee07a; } .peffects .down { color: #ff8a7a; } .peffects .gem { color: #ff6b7d; }
.pfore { font-family: var(--f-ui); font-size: 11px; color: var(--ink-dim); }
.pfore.up { color: #7ee07a; } .pfore.down { color: #ff8a7a; }
.pbuy { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pbuy .gob { flex: 1; --fs: 13px; --py: 7px; --px: 8px; white-space: nowrap; }
.pbuy .gob:disabled { filter: grayscale(0.8) brightness(0.6); cursor: not-allowed; animation: none; }
.pq { font-family: var(--f-ui); font-size: 13px; color: var(--ink); min-width: 28px; text-align: center; }
.pstash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); text-align: left; }
.pchip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 2px; border-radius: 999px; font-family: var(--f-ui); font-size: 12px; color: var(--ink); background: rgba(201, 162, 255, 0.12); border: 1px solid rgba(201, 162, 255, 0.3); }
.pchip svg { overflow: visible; }
.ipv svg.potionart { width: 64px; height: 70px; overflow: visible; }
.ipv.big svg.potionart { width: 120px; height: 132px; }
.itile.mini .ipv svg.potionart { width: 38px; height: 42px; }
/* in the Workers window */
.wpot { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(30, 20, 44, 0.45); border: 2px dashed rgba(201, 162, 255, 0.35); box-sizing: border-box; }
.wpoth { font-family: var(--f-ui); font-weight: 800; font-size: 19px; color: #c9a2ff; }
.wpotcur, .wpotrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--rc, rgba(255, 255, 255, 0.1)); }
.wpotcur { border-style: solid; box-shadow: 0 0 16px rgba(201, 162, 255, 0.18); }
.wpotcur .part svg, .wpotrow .part svg { display: block; overflow: visible; }
.wpoti { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; }
.wpota { display: flex; flex-wrap: wrap; gap: 6px; }
.pbar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.5); overflow: hidden; max-width: 260px; }
.pbar i { display: block; height: 100%; border-radius: 4px; }
.wcard .potx { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-family: var(--f-ui); font-size: 10px; vertical-align: middle; }
.wcard .potx.up { color: #0e1016; background: #7ee07a; } .wcard .potx.down { color: #2a0a06; background: #ff8a7a; }
/* the Witch tile, locked until you've a worker */
#whoami .hud-gt .tile.locked { filter: grayscale(1) brightness(0.6); }
#whoami .hud-gt .tile.locked:hover { transform: none; }
#whoami .tile .tb.lock { background: #2c2a26; border-color: #555; }
/* our own icons, and the coin and gem that stand in for the gold and ruby emoji in text */
.gi { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; line-height: 0; }
.gi svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cur-i { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -0.17em; background: center / contain no-repeat; }
/* yer goblin */
#avatar { position: fixed; inset: 0; z-index: 87; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; background: rgba(6, 7, 10, 0.88); }
#avatar.open { display: flex; }
#avatar.required .shopclose, #avatar.required .acts .chip { display: none; }
#avatar .conote { font-family: var(--f-ui); font-size: 17px; color: var(--ink-dim); margin: 6px 0 12px; }
#avpreview { flex: none; width: 170px; display: grid; place-items: center; padding: 10px; border-radius: 16px; background: radial-gradient(circle at 50% 60%, rgba(242, 182, 50, 0.2), transparent 70%); }
#avpreview svg { overflow: visible; }
svg.pgobsvg.cosmthumb, .ipv svg.pgobsvg.cosmthumb { overflow: hidden; border-radius: 8px; background: radial-gradient(circle at 50% 50%, rgba(242, 182, 50, 0.12), transparent 70%); }
.avnone { display: grid; place-items: center; width: 40px; height: 40px; font-family: var(--f-ui); font-size: 13px; color: var(--ink-dim); line-height: 1; }
.avempty { font-family: var(--f-ui); font-size: 14px; color: var(--ink-dim); align-self: center; }
#avatar .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.ipv svg.pgobsvg { width: 64px; height: 64px; overflow: visible; }
.ipv.big svg.pgobsvg { width: 130px; height: 130px; }
.itile.mini .ipv svg.pgobsvg { width: 40px; height: 40px; }
#whoami .hud-crest { position: relative; overflow: visible; }
#whoami .hud-crest .pgobsvg { overflow: visible; }
#whoami .hud-crest .hudlogo { position: absolute; right: -6px; bottom: -6px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
#whoami .tile:only-child { width: 120px; }
/* the casino */
#casino { position: fixed; inset: 0; z-index: 69; display: none; flex-direction: column; background: radial-gradient(ellipse at 50% 40%, #140c18, #05030a 75%); }
#casino.open { display: flex; }
#casino .vtop .shopclose { margin-left: auto; }
#casmap { flex: 1; min-height: 0; width: 100%; user-select: none; }
#casmap .ctable { cursor: pointer; transition: filter 0.15s; }
#casmap .ctable.hover, #casmap .ctable:hover { filter: brightness(1.18) drop-shadow(0 0 8px rgba(242, 182, 50, 0.7)); }
#casmap .csub { opacity: 0; transition: opacity 0.15s; }
#casmap .ctable:hover .csub, #casmap .ctable.hover .csub { opacity: 1; }
#casmap .caswho { cursor: pointer; }
#casmap .caswho:hover { filter: drop-shadow(0 0 4px #f2b632); }
#casbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 16px 14px; border-top: 2px solid rgba(242, 182, 50, 0.25); }
#casbar .chip { display: inline-flex; align-items: center; gap: 6px; }
#casbar .gi { width: 20px; height: 20px; }
#casbar svg.pgobsvg { overflow: visible; }
/* the War Plan */
#warplan { position: fixed; inset: 0; z-index: 69; display: none; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, #2a1e12, #080604 80%); }
#warplan.open { display: flex; }
#warplan .vtop .shopclose { margin-left: auto; }
#warmapwrap { position: relative; flex: 1; min-width: 0; display: flex; padding: 12px; }
#warmapsvg { width: 100%; height: 100%; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6)); }
#warmapsvg .wpin { cursor: pointer; transition: transform 0.15s; }
#warmapsvg .wpin.taken { cursor: default; }
#warmapsvg .wpin:not(.taken):hover path, #warmapsvg .wpin.on path { fill: #e0302a; }
#warmapsvg .wband { cursor: pointer; }
#warmapsvg .wband:hover { filter: drop-shadow(0 0 4px #f2b632); }
#wartip { position: absolute; z-index: 3; display: none; width: 270px; padding: 10px 12px; border-radius: 12px; pointer-events: none; text-align: left;
  background: rgba(20, 12, 6, 0.94); border: 2px solid #c9a03a; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); font-family: var(--f-ui); font-size: 15px; color: var(--ink); }
#wartip.show { display: block; }
#wartip b { font-family: var(--f-ui); font-size: 14px; color: var(--gold); }
#wartip .wtwho { margin: 4px 0; color: var(--ink-dim); }
#wartip .wtprog, #wartip .wtrw { margin: 4px 0; }
#warpanel { width: 380px; flex: none; overflow-y: auto; padding: 14px; border-left: 2px solid rgba(201, 160, 58, 0.3); text-align: left; }
#warpanel .hnote, #warpanel .hwarn { margin: 6px 0; font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); }
#warpanel .hwarn { color: #ffb3a0; }
#warpanel .htabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wquest { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.32); border: 2px solid rgba(201, 160, 58, 0.3); }
.wquest.on { border-color: #e0302a; box-shadow: 0 0 14px rgba(224, 48, 42, 0.25); }
.wquest.taken { opacity: 0.6; }
.wqh { font-family: var(--f-ui); font-size: 15px; color: var(--gold); }
.wqmeta, .wqrw { font-family: var(--f-ui); font-size: 15px; color: var(--ink); margin: 3px 0; }
.wqrw.gold { color: var(--gold); } .wqrw.up { color: #7ee07a; } .wqrw.down { color: #ff8a7a; }
.wskulls { color: #ff8a7a; font-weight: 800; }
.wquest.wlog.crit { border-color: rgba(242, 182, 50, 0.7); } .wquest.wlog.success { border-color: rgba(126, 224, 122, 0.5); } .wquest.wlog.defeat { border-color: rgba(255, 90, 70, 0.6); }
.wplan { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.wpick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wgobpick { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 2px solid rgba(255, 255, 255, 0.1); }
.wgobpick.on { border-color: var(--gold); background: rgba(242, 182, 50, 0.12); }
.wgobpick svg { flex: none; overflow: visible; }
.wgobpick .wgt { display: flex; flex-direction: column; min-width: 0; }
.wgobpick b { font-family: var(--f-ui); font-size: 11px; }
.wgobpick small { font-family: var(--f-ui); font-size: 12px; color: var(--ink-dim); }
.wph { font-family: var(--f-ui); font-weight: 800; font-size: 16px; color: #c9a2ff; margin-top: 2px; }
.wpots { display: flex; flex-wrap: wrap; gap: 6px; }
.wpotpick { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); background: rgba(30, 20, 44, 0.55); border: 2px solid var(--rc, rgba(201, 162, 255, 0.25)); }
.wpotpick.on { border-color: var(--gold); background: rgba(242, 182, 50, 0.14); box-shadow: 0 0 10px rgba(242, 182, 50, 0.35); }
.wpotpick svg { flex: none; overflow: visible; }
.wpotpick .wgt { display: flex; flex-direction: column; }
.wpotpick b { font-family: var(--f-ui); font-size: 11px; }
.wpotpick small { font-family: var(--f-ui); font-size: 12px; color: #7ee07a; }
.wplan select { font: inherit; color: var(--ink); background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(201, 162, 255, 0.4); border-radius: 8px; padding: 3px 6px; }
.wodds { display: flex; height: 20px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.6); }
.wodds .seg { display: grid; place-items: center; font-family: var(--f-ui); font-size: 9px; color: #0e1016; min-width: 2px; }
.wodds .crit, .woddskey .crit { background: #f2b632; } .wodds .success, .woddskey .success { background: #7ee07a; }
.wodds .fail, .woddskey .fail { background: #b8a070; } .wodds .defeat, .woddskey .defeat { background: #e0302a; color: #fff; }
.woddskey { font-family: var(--f-ui); font-size: 13px; color: var(--ink-dim); }
.woddskey span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 3px 0 8px; vertical-align: middle; }
.wqparty { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.wgob { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-ui); font-size: 14px; color: var(--ink); }
.wgob svg { overflow: visible; }
.wstones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.wstone { padding: 8px; border-radius: 12px; background: linear-gradient(180deg, rgba(20, 28, 18, 0.6), rgba(10, 14, 8, 0.8)); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center; }
.wstone.mine { border-color: rgba(242, 182, 50, 0.4); }
.wstone svg { width: 90px; height: 96px; }
.wep { font-family: var(--f-ui); font-size: 13px; color: var(--ink-dim); }
svg.warriorsvg.cosmthumb { overflow: hidden; }
.wuni .wslot .i svg.warriorsvg { width: 28px; height: 28px; display: block; }
.ipv svg.warriorsvg { width: 64px; height: 64px; }
.ipv.big svg.warriorsvg { width: 130px; height: 130px; }
.itile.mini .ipv svg.warriorsvg { width: 40px; height: 40px; }
.wcard .wlv { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; font-family: var(--f-ui); font-size: 10px; color: #0e1016; background: var(--skin); vertical-align: middle; }
.wcard .wxp { height: 5px; margin-top: 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
.wcard .wxp i { display: block; height: 100%; background: linear-gradient(90deg, #4f7a1c, #7aff2a); }
.wcard.away { border-color: rgba(224, 48, 42, 0.5); }
.wcard.away .where { color: #ff9a8a; }
@media (max-width: 860px) {
  #warplan .vbody { flex-direction: column; overflow-y: auto; }
  #warmapwrap { flex: none; height: 56vw; min-height: 240px; padding: 6px; }
  #warpanel { width: auto; border-left: none; border-top: 2px solid rgba(201, 160, 58, 0.3); overflow: visible; }
}
/* plinko and the slots */
.gamewin { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; background: rgba(6, 7, 10, 0.8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gamewin.open { display: flex; }
.gamewin .shopcard { max-width: 820px; }
.gamewin h4 { margin: 10px 0 4px; font-family: var(--f-ui); font-weight: 800; font-size: 16px; color: var(--skin); }
.gamewin .hbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.gamewin .hnote { font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); }
.gamewin .gob.big { margin-top: 12px; }
.gamewin .chip:disabled { opacity: 0.4; cursor: not-allowed; }
.gamewin .chip.on, #warpanel .htabs .chip.on { color: #2b1d02; background: var(--gold); border-color: var(--gold); }
/* The Dead Zone */
#zombie { position: fixed; inset: 0; z-index: 75; display: none; background: radial-gradient(ellipse at 50% 30%, #1d1a12, #050403 75%); }
#zombie.open { display: block; }
#zombie .zclose { position: absolute; top: 10px; right: 12px; z-index: 3; }
#zlobwrap { position: absolute; inset: 0; overflow-y: auto; padding: 40px 16px; display: flex; justify-content: center; align-items: flex-start; }
#zombie.playing #zlobwrap { display: none; }
#zlobby { max-width: 860px; width: 100%; }
#zlobby h2 { margin: 0 0 4px; }
#zlobby h3 { margin: 0 0 8px; font-family: var(--f-ui); font-size: 20px; color: var(--skin); }
#zlobby .zhead p { font-family: var(--f-ui); font-size: 16px; color: var(--ink-dim); margin: 0 0 12px; }
#zlobby .hnote { font-family: var(--f-ui); font-size: 15px; color: var(--ink-dim); margin: 8px 0; }
#zlobby .chip:disabled { opacity: 0.4; cursor: not-allowed; }
#zlobby .chip.on { color: #2b1d02; background: var(--gold); border-color: var(--gold); }
.zcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 700px) { .zcols { grid-template-columns: 1fr; } }
.zcard { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(122, 255, 42, 0.25); border-radius: 12px; padding: 12px; min-width: 0; }
.zslot { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 0 0 6px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: inherit; font: inherit; cursor: pointer; }
.zslot:hover { background: rgba(122, 255, 42, 0.1); }
.zslot.fixed { cursor: default; } .zslot.fixed:hover { background: rgba(255, 255, 255, 0.04); }
.zslot.on { border-color: var(--gold); }
.zslot.r-rare { border-color: rgba(79, 182, 255, 0.55); } .zslot.r-legendary { border-color: rgba(255, 210, 60, 0.7); }
.zslot .zst { display: flex; flex-direction: column; min-width: 0; }
.zslot .zst b { font-family: var(--f-ui); font-size: 17px; }
.zslot.r-rare .zst b { color: #4fb6ff; } .zslot.r-legendary .zst b { color: #ffd23c; }
.zslot.empty .zst b { color: var(--ink-dim); }
.zslot .zst small { color: var(--ink-dim); font-family: var(--f-ui); font-size: 14px; }
.zgi { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; color: var(--ink-dim); }
.zgi svg { width: 100%; height: 100%; }
.ipv .zgi { width: 48px; height: 48px; }
.ipv.gcardpv { overflow: visible; } .ipv.gcardpv .gcard.mini { --gw: 64px; pointer-events: none; } .ipv.big.gcardpv .gcard.mini { --gw: 150px; } .ipv.big .zgi { width: 120px; height: 120px; }
.zstats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-ui); font-size: 16px; color: var(--ink-dim); }
.zstats b { color: var(--gold); }
.zlevels { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.zlevels .zlab { font-family: var(--f-ui); font-size: 18px; }
.zlevels .zlvl { font-family: var(--f-ui); font-size: 26px; min-width: 44px; text-align: center; color: #7aff2a; }
.zpick { max-width: 520px; }
.zright { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zsquad h4 { margin: 10px 0 4px; font-family: var(--f-ui); font-size: 16px; color: var(--skin); }
.zsqrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.zsqmembers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.zsqm { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(122, 255, 42, 0.25); text-align: center; min-width: 0; }
.zsqm.empty { border-style: dashed; color: var(--ink-dim); }
.zsqm b { font-size: 14px; } .zsqm small { color: var(--ink-dim); font-family: var(--f-ui); }
.zsqinv { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.zsqinv select { flex: 1; min-width: 0; }
#zplay { position: absolute; inset: 0; display: none; }
#zombie.playing #zplay { display: block; }
#zcanvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.zhudbox { position: absolute; top: 10px; left: 12px; right: 64px; pointer-events: none; font-family: var(--f-ui); text-shadow: 0 1px 3px #000; }
.zbar { position: relative; width: min(280px, 62vw); height: 18px; border-radius: 9px; background: rgba(0, 0, 0, 0.65); border: 1px solid #000; overflow: hidden; }
.zbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#e2433a, #8a1a14); transition: width 0.15s; }
.zbar span { position: absolute; left: 8px; top: 0; font-size: 13px; line-height: 18px; color: #fff; white-space: nowrap; }
#zstat { margin-top: 4px; font-size: 15px; color: #d8d0b8; }
#zobj { margin-top: 2px; font-size: 21px; color: var(--gold); }
#zweapon { position: fixed; left: 12px; bottom: 10px; font-family: var(--f-ui); font-size: 15px; color: #d8d0b8; text-shadow: 0 1px 3px #000; pointer-events: none; }
#zstick { position: fixed; width: 100px; height: 100px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); display: none; pointer-events: none; }
#zstick.on { display: block; }
#zstick i { position: absolute; left: 30px; top: 30px; width: 40px; height: 40px; border-radius: 50%; background: rgba(122, 255, 42, 0.5); }
.ztbtn { position: fixed; display: none; width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.6); font-size: 32px; background: rgba(179, 32, 44, 0.75); color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
#zfire { right: 18px; bottom: 28px; }
/* survival */
#zbuild { right: 18px; bottom: 116px; width: 56px; height: 56px; font-size: 24px; background: rgba(138, 98, 54, 0.8); }
#ztrade { right: 84px; bottom: 96px; width: 56px; height: 56px; font-size: 24px; background: rgba(199, 125, 255, 0.7); }
#znade { right: 150px; bottom: 80px; width: 56px; height: 56px; font-size: 24px; background: rgba(63, 90, 42, 0.85); }
#zshop .zsi.tier3 { border-color: rgba(79, 182, 255, 0.6); } #zshop .zsi.tier4 { border-color: rgba(255, 210, 60, 0.7); } #zshop .zsi.tier5 { border-color: rgba(255, 90, 255, 0.8); box-shadow: 0 0 10px rgba(255, 90, 255, 0.3); }
.zsurv { display: none !important; }
@media (pointer: coarse) { #zombie.surviving .zsurv { display: block !important; } }
#zcaps { position: fixed; right: 14px; top: 110px; display: none; padding: 6px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.65); border: 1px solid #c9a03a; font-family: var(--f-ui); font-size: 15px; color: #f2b632; pointer-events: none; }
#zombie.surviving #zcaps { display: block; }
#zcaps small { display: block; font-family: var(--f-ui); font-size: 13px; color: #d8d0b8; }
#zshop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: none; width: min(560px, calc(100vw - 24px)); max-height: 80vh; overflow-y: auto; padding: 16px; border-radius: 18px;
  background: linear-gradient(170deg, #241830, #0e0812); border: 2px solid #c77dff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); color: var(--ink); font-family: var(--f-ui); }
#zshop.open { display: block; }
#zshop h3 { margin: 0 0 4px; font-family: var(--f-ui); font-size: 18px; color: #e0b0ff; }
#zshop .zsitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
#zshop .zsi { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(199, 125, 255, 0.35); font-family: var(--f-ui); font-size: 14px; }
#zshop .zsi:disabled { opacity: 0.4; cursor: not-allowed; }
#zshop .zsi .zgi { grid-row: 1 / 3; width: 34px; height: 34px; }
#zshop .zsi b { font-family: var(--f-ui); font-size: 11px; font-weight: 400; }
#zshop .zsi span { color: #f2b632; }
#zmelee { right: 104px; bottom: 18px; width: 62px; height: 62px; font-size: 26px; background: rgba(90, 90, 90, 0.75); }
@media (pointer: coarse) { .ztbtn { display: block; } #zweapon { bottom: auto; top: 96px; } }
#zend { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 20px; border-radius: 14px; background: rgba(12, 10, 6, 0.94); border: 1px solid rgba(122, 255, 42, 0.4); text-align: center; display: none; }
#zend.show { display: block; }
#zend h2 { margin: 0 0 6px; }
#zend p { font-family: var(--f-ui); font-size: 17px; color: var(--ink-dim); }
#zend .acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
