@font-face {
  font-family: 'Press Start 2P';
  src: url('../assets/fonts/press-start-2p.woff2') format('woff2');
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Soft sky gradient behind the transparent canvas */
body { background: linear-gradient(180deg, #a9d7f0 0%, #c9ecd9 55%, #b7e3c0 100%); }

#game { position: fixed; inset: 0; }
#game canvas { display: block; }

/* ---------- Top HUD bar ---------- */
.hud-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(15, 19, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 10px; }

.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  letter-spacing: 4px;
  color: #f2ead8;
}

.beta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #10151f;
  background: linear-gradient(135deg, #e9c268, #cfa04a);
  padding: 3px 8px;
  border-radius: 999px;
}

.nav { display: flex; align-items: center; gap: 18px; }

.nav-link {
  color: #c7cede;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-link:hover { color: #ffffff; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn svg { width: 17px; height: 17px; fill: #c7cede; transition: fill 0.15s; }
.icon-btn:hover svg { fill: #ffffff; }

.connect-btn {
  padding: 9px 22px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #241a06;
  background: linear-gradient(135deg, #f0c463, #d9a53f);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(217, 165, 63, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.connect-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 165, 63, 0.45);
}

/* ---------- Controls hint ---------- */
/* ---------- Crate (seasonal case) ---------- */
.mcrate .modal-body { display: grid; gap: 10px; }
#crate-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; max-height: 200px; overflow-y: auto; }
.crate-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; background: rgba(16,18,22,0.85); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; font-size: 6px; color: #b8c0d0; text-align: center; }
.crate-cell img { width: 40px; height: 40px; image-rendering: auto; }
.crate-cell .pct { color: #f0c463; font-size: 7px; }
.crate-cell.rar-rare { border-color: rgba(58,122,216,0.6); }
.crate-cell.rar-epic { border-color: rgba(176,77,240,0.6); }
.crate-cell.rar-legendary { border-color: rgba(240,196,99,0.7); }
.crate-cell.rar-mythic { border-color: transparent; background: linear-gradient(rgba(16,18,22,0.9), rgba(16,18,22,0.9)) padding-box, linear-gradient(120deg, #ff4040, #f0c463, #4ade4a, #3a7ad8, #b04df0) border-box; animation: mythic-border 3s linear infinite; }
#crate-strip-wrap { position: relative; height: 108px; overflow: hidden; border: 2px solid rgba(240,196,99,0.45); border-radius: 10px; background: rgba(10,12,16,0.85); }
#crate-strip { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; will-change: transform; }
.strip-card { flex: 0 0 84px; height: 92px; margin: 0 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(22,26,34,0.95); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; font-size: 6px; color: #cfd6e0; text-align: center; padding: 2px; }
.strip-card img { width: 44px; height: 44px; }
.strip-card.win { border-color: #f0c463; box-shadow: 0 0 18px rgba(240,196,99,0.65); transform: scale(1.08); }
.crate-pointer { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #f0c463; z-index: 2; box-shadow: 0 0 10px rgba(240,196,99,0.8); }
.crate-pointer::before { content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #f0c463; }
.crate-pointer::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-bottom-color: #f0c463; }
.crate-actions { display: flex; gap: 8px; }
.crate-actions .dev-btn { flex: 1; margin: 0; }
#crate-result { text-align: center; font-size: 10px; color: #ffd94d; letter-spacing: 1px; padding: 8px; background: rgba(240,196,99,0.08); border: 1px solid rgba(240,196,99,0.35); border-radius: 8px; }

/* ---------- gift button + modal ---------- */
#gift-btn { position: absolute; right: 0; bottom: -46px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(20,24,31,0.9); border: 2px solid rgba(240,196,99,0.5); cursor: pointer; transition: transform 0.15s, border-color 0.15s; padding: 0; }
#gift-btn:hover { transform: scale(1.1); border-color: #f0c463; }
.mgift .modal-body { display: grid; gap: 10px; }
#gift-result { min-height: 14px; text-align: center; }

/* ---------- chat (zone rooms, roblox-style) ---------- */
#chat-wrap { position: fixed; left: 18px; bottom: 156px; width: 360px; max-width: 46vw; z-index: 60; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
#chat-log { display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.chat-line { font-size: 8px; line-height: 1.6; color: #e6ecf5; text-shadow: 1px 1px 0 rgba(0,0,0,0.9); background: rgba(15,19,28,0.7); border: 1px solid rgba(255,255,255,0.08); border-left: 2px solid rgba(111,214,200,0.55); border-radius: 7px; padding: 4px 9px; opacity: 0.96; transition: opacity 0.6s; overflow-wrap: anywhere; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chat-line.old { opacity: 0.35; }
.chat-line .cn { color: #6fd6c8; }
.chat-line .clv { display: inline-block; color: #f0c463; background: rgba(240,196,99,0.13); border: 1px solid rgba(240,196,99,0.4); border-radius: 4px; padding: 1px 4px; margin-right: 5px; font-size: 6px; letter-spacing: 1px; vertical-align: 1px; }
.chat-line.mine { border-left-color: rgba(240,196,99,0.75); }
.chat-line.mine .cn { color: #f0c463; }
.chat-line.sys { color: #8a93a6; font-style: italic; border-left-color: rgba(255,255,255,0.16); }
#chat-bar { display: flex; align-items: center; gap: 7px; background: rgba(15,19,28,0.82); border: 1px solid rgba(111,214,200,0.45); border-radius: 9px; padding: 7px 9px; pointer-events: auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
#chat-room { font-size: 7px; color: #6fd6c8; letter-spacing: 1px; flex-shrink: 0; border-right: 1px solid rgba(111,214,200,0.3); padding-right: 7px; }
#chat-input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #e6ecf5; font-family: inherit; font-size: 8px; }
#chat-hint { font-size: 6px; color: #6a7386; letter-spacing: 1px; text-shadow: 1px 1px 0 rgba(0,0,0,0.8); }
#chat-wrap.hidden-hint #chat-hint { display: none; }

.hint {
  position: fixed;
  left: 18px;
  bottom: 16px;
  z-index: 10;
  color: #eaf2ff;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.7;
  background: rgba(15, 19, 28, 0.55);
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Hotbar (Minecraft-style) ---------- */
#hotbar-wrap {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

#item-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s;
}
#item-name.show { opacity: 1; }

#hotbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 19, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

.slot {
  width: 52px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: border-color 0.1s, transform 0.1s, box-shadow 0.1s;
}
.slot.selected {
  border-color: #f0c463;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(240, 196, 99, 0.45);
  z-index: 1;
}
.slot.pulse { animation: slot-pulse 0.35s; }
@keyframes slot-pulse {
  50% { transform: scale(1.22); border-color: #f0c463; box-shadow: 0 0 14px rgba(240, 196, 99, 0.6); }
}
.slot svg, .slot img { width: 32px; height: 32px; image-rendering: pixelated; }

.slot .key {
  position: absolute;
  top: 2px;
  left: 5px;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.45);
}
.slot .count {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

/* drag & drop (hotbar + inventory share these) */
.slot[draggable="true"], .inv-slot[draggable="true"] { cursor: grab; }
.slot.drag-src, .inv-slot.drag-src { opacity: 0.35; }
.slot.drag-over, .inv-slot.drag-over {
  border-color: #f0c463;
  box-shadow: 0 0 12px rgba(240, 196, 99, 0.65);
  transform: scale(1.08);
  z-index: 1;
}

/* ---------- Economy HUD: copper (top-left) + energy (above hotbar) ---------- */
#economy-hud {
  position: fixed;
  top: 62px;
  left: 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
#copper-display {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #dca54a;
  background: rgba(10,12,16,0.82);
  border: 1px solid rgba(220,165,74,0.5);
  border-radius: 5px;
  padding: 5px 10px;
  text-shadow: 0 0 8px rgba(220,165,74,0.3);
}
#token-display {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #6fd6c8;
  background: rgba(10,12,16,0.82);
  border: 1px solid rgba(111,214,200,0.45);
  border-radius: 5px;
  padding: 5px 10px;
  text-shadow: 0 0 8px rgba(111,214,200,0.3);
}

/* ---------- Bank wallet strip (on-chain balance) ---------- */
#bank-wallet { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 10px 0; padding: 8px 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(111,214,200,0.25); border-radius: 6px; font-size: 8px; color: #b0c0c0; }
#bank-wallet b { color: #6fd6c8; font-weight: normal; }
.bw-row { display: flex; align-items: center; gap: 5px; }
.bx-note { font-size: 7px; color: #8a93a6; line-height: 1.8; text-align: left; }
.bx-inputrow { display: flex; gap: 6px; }
.bx-inputrow input {
  flex: 1; min-width: 0;
  background: rgba(10,14,20,0.85); color: #cfd6e0;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px;
  font-family: inherit; font-size: 8px; padding: 8px;
}
.bx-inputrow input:focus { outline: none; border-color: #6fd6c8; }
.bx-inputrow .dev-btn { width: auto; margin: 0; padding: 8px 14px; font-size: 8px; }
.hud-bar-row {
  width: 300px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hud-bar-row .bar-label {
  width: 52px;
  text-align: right;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #d8cfb0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
  flex: 0 0 auto;
}
.hud-bar-row .bar-track {
  flex: 1;
  height: 14px;
  background: rgba(10,12,16,0.7);
  border: 1px solid rgba(220,220,220,0.35);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
#health-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, #c23a2e, #f06a4a);
  transition: width 0.3s ease;
  border-radius: 3px;
}
#energy-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, #4da84d, #7ed87e);
  transition: width 0.3s ease;
  border-radius: 3px;
}
#health-txt, #energy-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #f2f2e8;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ---------- Shop/order cards: horizontal rows (icon | content | action) ---------- */
.wo-card {
  background: rgba(16,18,22,0.85);
  border: 1px solid rgba(240,196,99,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-width: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.wo-card:hover { border-color: rgba(240,196,99,0.5); }
.wo-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.wo-icon img { width: 44px; height: 44px; image-rendering: pixelated; }
.wo-main { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.wo-act { flex: 0 0 108px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.wo-act .dev-btn, .wo-act .wo-btn { width: 100%; min-width: 0; font-size: 9px; margin: 0; }
.wo-act button:disabled { opacity: 0.45; }
.wo-title { font-size:10px; color:#f0c463; margin-bottom:5px; letter-spacing:1px; }
.wo-inputs { font-size:8px; color:#b0c0c0; margin-bottom:5px; line-height:2.1; }
.wo-ing { display:inline-flex; align-items:center; gap:4px; margin:2px 10px 2px 0; white-space:nowrap; }
.wo-ing img { width:16px; height:16px; image-rendering:pixelated; }
.wo-ing.ok { color:#8ee04a; }
.wo-ing.miss { color:#f06050; }
.wo-reward { font-size:8px; color:#9ed87a; display:flex; align-items:center; gap:4px; flex-wrap:wrap; letter-spacing:0.5px; }
.wo-reward img { width:14px; height:14px; image-rendering:pixelated; }
.wo-durbar { width:100px; height:8px; background:rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.15); border-radius:4px; overflow:hidden; display:inline-block; vertical-align:middle; margin-right:8px; }
.wo-durbar > div { height:100%; }

/* modal section headers with side rules */
.modal-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; color: #f0c463; letter-spacing: 1px;
  margin: 4px 0 10px;
}
.modal-sub::before, .modal-sub::after { content: ''; flex: 1; height: 1px; background: rgba(240,196,99,0.25); }

/* single-column card lists (rows, not cramped grid cells) */
#wo-list, #smith-recipes, #foreman-shop, #miner-shop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}
#wo-list .modal-sub, #smith-recipes .modal-sub, #foreman-shop .modal-sub, #miner-shop .modal-sub,
#smith-recipes .modal-note, #foreman-shop .modal-note, #miner-shop .modal-note { grid-column: 1 / -1; margin-bottom: 0; }
.wo-card.wo-hot { border-color: #f0c463; box-shadow: 0 0 12px rgba(240,196,99,0.25); }
.wo-hot-tag { color:#f0c463; font-size:9px; margin-left:6px; }
#wo-timer { margin-bottom: 8px; }

/* bank deposit chips */
#bank-deposit { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; width:100%; }
.bank-chip {
  display:flex; align-items:center; gap:5px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:7px; padding:5px 8px;
  font-size:8px; color:#cfd6e0; cursor:pointer;
  font-family: inherit;
  transition: border-color 0.1s, background 0.1s;
}
.bank-chip:hover { border-color:#4ade4a; background: rgba(74,222,74,0.1); }
.bank-chip img { width:16px; height:16px; image-rendering:pixelated; }
.bank-empty { font-size:8px; color:#8a93a6; }

/* ---------- Minimap + compass (top-right) ---------- */
#minimap-wrap {
  position: fixed;
  top: 70px;
  right: 18px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#minimap {
  display: block;
  border-radius: 50%;
  border: 3px solid rgba(15, 19, 28, 0.85);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(15, 19, 28, 0.55);
}

#coords {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #eaf2ff;
  background: rgba(15, 19, 28, 0.55);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Dev menu + map editor ---------- */
.hidden { display: none !important; }

.dev-panel {
  position: fixed;
  top: 70px;
  left: 18px;
  z-index: 30;
  width: 196px;
  background: rgba(15, 19, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Press Start 2P', monospace;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dev-title {
  color: #f0c463;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.dev-btn {
  display: block;
  width: 100%;
  padding: 10px 8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f0c463, #d9a53f);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 9px;
  color: #241a06;
  cursor: pointer;
  transition: filter 0.12s;
}
.dev-btn:hover { filter: brightness(1.12); }
.dev-btn:disabled { filter: grayscale(0.75) brightness(0.7); cursor: default; }
.dev-btn.subtle { background: rgba(255, 255, 255, 0.08); color: #c7cede; }
.dev-btn:last-child { margin-bottom: 0; }

/* dev level setters */
.dev-sec {
  font-size: 8px;
  color: #8a93a6;
  letter-spacing: 1px;
  margin: 12px 0 8px;
  text-align: center;
}
.dev-lv {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 8px;
  color: #cfd6e0;
}
.dev-lv span { flex: 1; }
.dev-lv input {
  width: 58px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 9px;
  padding: 5px 6px;
}
.dev-lv input:focus { outline: none; border-color: #f0c463; }
.dev-lv input::-webkit-inner-spin-button { opacity: 1; }
.dev-lv .dev-btn { width: auto; margin-bottom: 0; padding: 6px 9px; font-size: 8px; }
.dev-lv select {
  flex: 2;
  min-width: 0;
  background: rgba(10, 14, 20, 0.85);
  color: #cfd6e0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-family: inherit;
  font-size: 7px;
  padding: 6px 4px;
}
.dev-lv select:focus { outline: none; border-color: #f0c463; }

/* bank slot grid */
.dv-give-grid {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.dv-give-grid .slot { width: 60px; height: 60px; }
.dv-give-grid .slot img { width: 36px; height: 36px; }

#me-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.me-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 7px;
  color: #eaf2ff;
  transition: border-color 0.1s, background 0.1s;
}
.me-item:hover { background: rgba(255, 255, 255, 0.12); }
.me-item.sel { border-color: #f0c463; background: rgba(240, 196, 99, 0.12); }
.me-item .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }

.me-row { display: flex; gap: 6px; }
.me-row .dev-btn { margin-bottom: 0; }

.me-info {
  font-size: 7px;
  color: #8a93a6;
  line-height: 1.9;
  margin-top: 10px;
  text-align: center;
}

/* ---------- Building modals (casino / auction) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: 'Press Start 2P', monospace;
}

.modal-panel {
  width: 480px;                       /* default: simple/text modals */
  max-width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: rgba(15, 19, 28, 0.95);
  animation: modal-pop 0.18s ease-out;
  box-sizing: border-box;
}
.modal-panel * { box-sizing: border-box; }
.modal-panel.mfish { width: min(680px, 94vw); }   /* shop/economy modals */
.modal-panel.minv, .minv.modal-panel { width: min(760px, 94vw); }
.modal-panel.mspin { width: 460px; }
@keyframes modal-pop { from { transform: scale(0.9); opacity: 0; } }
/* long modals scroll inside the panel — the head stays pinned, no browser zoom needed */
.modal-panel > .modal-head { flex: 0 0 auto; }
.modal-panel > .modal-body,
.modal-panel > .shop-body,
.modal-panel > .spin-body,
.modal-panel > .inv-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 196, 99, 0.4) transparent;
}
.modal-panel ::-webkit-scrollbar { width: 8px; }
.modal-panel ::-webkit-scrollbar-track { background: transparent; }
.modal-panel ::-webkit-scrollbar-thumb { background: rgba(240, 196, 99, 0.35); border-radius: 4px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(240, 196, 99, 0.18);
}
.modal-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcasino .modal-head { background: linear-gradient(135deg, #8a3030, #5a1e1e); color: #f0c463; }
.mauction .modal-head { background: linear-gradient(135deg, #6a4a2e, #4a3320); color: #f2ead8; }

/* ---------- Auction house (browse / sell / mine / claims) ---------- */
.mauction.modal-panel { width: min(860px, 96vw); }
.auc-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.auc-pane { display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.auc-tabs { display: flex; gap: 6px; }
.auc-tab {
  flex: 1; padding: 9px 4px; font-family: inherit; font-size: 8px; letter-spacing: 1px;
  background: rgba(20, 24, 32, 0.9); color: #9aa4b8; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer; position: relative;
}
.auc-tab.on { color: #f2e3c0; border-color: rgba(240,196,99,0.55); background: rgba(60,45,25,0.65); }
.auc-tab:hover:not(.on) { color: #d8dfeb; }
.auc-badge {
  position: absolute; top: -7px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  background: #c23a2e; color: #fff; border-radius: 9px; font-size: 8px; line-height: 18px;
  text-align: center; box-shadow: 0 0 8px rgba(194,58,46,0.7);
}
.auc-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auc-input {
  font-family: inherit; font-size: 9px; color: #e8ecf4; background: rgba(12,15,20,0.9);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 7px; padding: 8px 10px; outline: none;
}
.auc-input:focus { border-color: rgba(240,196,99,0.6); }
#auc-search { flex: 1 1 180px; }
.auc-select { cursor: pointer; }
.auc-chips { display: flex; gap: 5px; }
.auc-chip {
  font-family: inherit; font-size: 8px; padding: 7px 10px; cursor: pointer; border-radius: 7px;
  background: rgba(20,24,32,0.9); color: #9aa4b8; border: 1px solid rgba(255,255,255,0.12);
}
.auc-chip.on { color: #f0c463; border-color: rgba(240,196,99,0.6); }
.auc-chip-token.on { color: #6fd6c8; border-color: rgba(111,214,200,0.6); }
.auc-usd { font-size: 8px; color: #8a93a6; letter-spacing: 1px; min-height: 10px; }
.auc-usd b { color: #6fd6c8; }
.auc-list { display: flex; flex-direction: column; gap: 8px; }
.auc-empty { text-align: center; color: #8a93a6; font-size: 9px; padding: 34px 0; letter-spacing: 1px; }
.auc-price { text-align: right; display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.auc-price .p-main { color: #f0c463; font-size: 10px; }
.auc-price .p-main.tok { color: #6fd6c8; }
.auc-price .p-usd { color: #8a93a6; font-size: 7px; }
.auc-price .p-time { font-size: 7px; color: #6b7489; }
.auc-meta { color: #8a93a6; font-size: 7px; margin-top: 3px; }
.auc-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.auc-page-btn { padding: 7px 14px; font-size: 8px; }
#auc-pageinfo { font-size: 8px; color: #9aa4b8; letter-spacing: 1px; }
.auc-sell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 7px; }
.auc-sell-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px;
  background: rgba(16,18,22,0.85); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  cursor: pointer; font-size: 7px; color: #b8c0d0; text-align: center;
}
.auc-sell-cell img { width: 34px; height: 34px; image-rendering: pixelated; }
.auc-sell-cell.rar-rare { border-color: rgba(58,122,216,0.6); }
.auc-sell-cell.rar-epic { border-color: rgba(176,77,240,0.6); }
.auc-sell-cell.rar-legendary { border-color: rgba(240,196,99,0.7); }
.auc-sell-cell.rar-mythic { border-color: transparent; background:
  linear-gradient(rgba(16,18,22,0.9), rgba(16,18,22,0.9)) padding-box,
  linear-gradient(120deg, #ff4040, #f0c463, #4ade4a, #3a7ad8, #b04df0) border-box;
  animation: mythic-border 3s linear infinite; }
.auc-sell-cell.on { border-color: rgba(240,196,99,0.7); background: rgba(60,45,25,0.55); color: #f2e3c0; }
.auc-sell-cell .n { color: #8a93a6; }
.auc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auc-label { display: flex; flex-direction: column; gap: 5px; font-size: 8px; color: #c8cfdd; letter-spacing: 1px; }
.auc-label input { width: 100%; box-sizing: border-box; }
.auc-dim { color: #6b7489; font-size: 7px; }
.auc-summary {
  font-size: 8px; color: #d8cfb0; background: rgba(20,24,32,0.8);
  border: 1px dashed rgba(240,196,99,0.3); border-radius: 8px; padding: 10px 12px; line-height: 1.8;
}
.auc-big-btn { width: 100%; padding: 12px; font-size: 10px; letter-spacing: 2px; }
.auc-lockcard {
  background: rgba(14,28,30,0.85); border: 1px solid rgba(111,214,200,0.4); border-radius: 10px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.auc-lockcard .lk-title { color: #6fd6c8; font-size: 9px; letter-spacing: 1px; }
.auc-lockcard .lk-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 8px; color: #c8d4d0; }
.auc-lockcard code {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(0,0,0,0.4); padding: 6px 8px; border-radius: 6px; color: #a8e6dc; font-size: 8px;
}
.auc-lockcard .lk-warn { color: #f0c463; font-size: 7px; line-height: 1.7; }
.auc-qtyrow { display: flex; gap: 6px; align-items: stretch; }
.auc-qtyrow .auc-input { flex: 1; min-width: 0; }
#auc-sell-maxbtn { flex: 0 0 auto; width: auto; align-self: stretch; margin: 0; padding: 0 12px; font-size: 7px; letter-spacing: 1px; line-height: 1; border-radius: 7px; }
.auc-status { font-size: 7px; padding: 3px 7px; border-radius: 6px; letter-spacing: 1px; }
.auc-status.st-active { background: rgba(74,160,80,0.18); color: #8ee04a; }
.auc-status.st-locked { background: rgba(240,196,99,0.15); color: #f0c463; }
.auc-status.st-sold { background: rgba(111,214,200,0.14); color: #6fd6c8; }
.auc-status.st-closed { background: rgba(120,128,144,0.16); color: #8a93a6; }
.auc-tab-tok.on { color: #6fd6c8; border-color: rgba(111,214,200,0.55); background: rgba(20,40,42,0.65); }

/* ---------- Casino (jackpot rooms) ---------- */
.mcasino.modal-panel { width: min(760px, 95vw); }
.cas-pot {
  background: linear-gradient(160deg, rgba(60,25,25,0.85), rgba(30,14,16,0.9));
  border: 1px solid rgba(240,196,99,0.35); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 7px; align-items: center;
}
.cas-pot-tok { background: linear-gradient(160deg, rgba(16,42,44,0.85), rgba(10,22,24,0.9)); border-color: rgba(111,214,200,0.4); }
.cas-pot-label { font-size: 8px; letter-spacing: 2px; color: #c8b490; }
.cas-pot-tok .cas-pot-label { color: #9fd8ce; }
.cas-round-id { color: #6b7489; }
.cas-pot-value { font-size: 22px; color: #f0c463; text-shadow: 0 0 18px rgba(240,196,99,0.45); letter-spacing: 1px; }
.cas-pot-tok .cas-pot-value { color: #6fd6c8; text-shadow: 0 0 18px rgba(111,214,200,0.45); }
.cas-pot-usd { font-size: 8px; color: #8a93a6; margin-top: -4px; }
.cas-timer { width: 100%; height: 8px; background: rgba(0,0,0,0.5); border-radius: 4px; overflow: hidden; }
.cas-timer-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #f0c463, #e08a3c); transition: width 0.2s linear; }
.cas-pot-tok .cas-timer-fill { background: linear-gradient(90deg, #6fd6c8, #3c9ae0); }
.cas-fee { font-size: 7px; color: #8a93a6; letter-spacing: 1px; }
.cas-bets { display: flex; flex-direction: column; gap: 5px; }
.cas-bet-row {
  display: flex; align-items: center; gap: 8px; font-size: 8px; padding: 6px 10px;
  background: rgba(16,18,22,0.85); border: 1px solid rgba(255,255,255,0.1); border-radius: 7px;
}
.cas-bet-row .cb-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.cas-bet-row .cb-name { color: #e8ecf4; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cas-bet-row .cb-amt { color: #f0c463; }
.cas-pot-tok ~ .cas-bets .cas-bet-row .cb-amt, .cb-amt.tok { color: #6fd6c8; }
.cas-bet-row .cb-pct { color: #8a93a6; }
.cas-bet-row.cb-mine { border-color: rgba(240,196,99,0.5); }
.cas-mine { font-size: 8px; color: #d8cfb0; text-align: center; letter-spacing: 1px; min-height: 10px; }
.cas-fair { font-size: 6px; color: #5a6274; line-height: 1.8; word-break: break-all; }
.cas-history { display: flex; flex-direction: column; gap: 4px; }
.cas-hist-row { display: flex; justify-content: space-between; font-size: 7px; color: #8a93a6; padding: 5px 9px; background: rgba(12,15,20,0.7); border-radius: 6px; }
.cas-hist-row b { color: #d8cfb0; }
#cas-t-instr { color: #8ef0e2 !important; font-size: 8px; line-height: 1.8; letter-spacing: 0.5px; }
.cas-strip-wrap {
  position: relative; height: 64px; overflow: hidden; border-radius: 10px;
  background: rgba(8,10,14,0.9); border: 1px solid rgba(240,196,99,0.4);
}
.cas-pointer {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; z-index: 2;
  background: #f0c463; box-shadow: 0 0 10px rgba(240,196,99,0.9);
}
.cas-pointer::before {
  content: ''; position: absolute; top: -1px; left: -5px; border: 6px solid transparent; border-top: 8px solid #f0c463;
}
.cas-strip { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; will-change: transform; }
.cas-seg {
  height: 48px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
  font-size: 8px; color: rgba(255,255,255,0.95); white-space: nowrap;
  border: 2px solid rgba(0,0,0,0.45); border-radius: 8px; margin: 0 1px; box-sizing: border-box;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.28), inset 0 -6px 12px rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.5);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}
.cas-seg span { overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.cas-seg-mine { outline: 2px solid #ffe9b0; outline-offset: -2px; box-shadow: 0 0 16px rgba(255,233,176,0.65), inset 0 2px 0 rgba(255,255,255,0.4) !important; }
.cas-seg-lose { filter: brightness(0.3) saturate(0.5); transition: filter 0.5s; }
.cas-seg-win { animation: cas-win-pulse 0.55s ease-in-out infinite alternate; z-index: 1; }
@keyframes cas-win-pulse {
  from { filter: brightness(1.25); transform: scale(1.0); box-shadow: 0 0 14px rgba(240,196,99,0.8), inset 0 2px 0 rgba(255,255,255,0.4); }
  to   { filter: brightness(1.7);  transform: scale(1.08); box-shadow: 0 0 30px rgba(240,196,99,1), inset 0 2px 0 rgba(255,255,255,0.55); }
}
.cas-win-splash {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(10,12,16,0.55), rgba(10,12,16,0.88));
  color: #f0c463; font-size: 13px; letter-spacing: 2px; line-height: 2;
  text-shadow: 0 0 18px rgba(240,196,99,0.9), 2px 2px 0 rgba(0,0,0,0.8);
  animation: cas-splash-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.cas-win-splash span { font-size: 15px; color: #ffe9b0; }
.cas-win-splash small { font-size: 7px; color: #9aa4b8; letter-spacing: 1px; }
@keyframes cas-splash-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cas-bet-row { animation: cas-bet-in 0.25s ease-out; }
@keyframes cas-bet-in { from { transform: translateY(-6px); opacity: 0; } }

/* ---------- inline currency icons (copper coin / token logo circle) ---------- */
.coin-ic, .tok-ic {
  display: inline-block; vertical-align: -3px; image-rendering: pixelated;
  width: 18px; height: 18px; border-radius: 0;
}
.tok-ic { border-radius: 50%; object-fit: cover; box-shadow: 0 0 4px rgba(111,214,200,0.5); }
#copper-display .coin-ic, #token-display .tok-ic { width: 22px; height: 22px; }
.mhouse .modal-head { background: linear-gradient(135deg, #3f7a4a, #2a5a3a); color: #eaffea; }
.mmail .modal-head { background: linear-gradient(135deg, #3a6a9a, #2a4a6e); color: #e8f2ff; }
.mspin .modal-head { background: linear-gradient(135deg, #8a5a2e, #b0762e); color: #ffe9b0; }
.mfish .modal-head { background: linear-gradient(135deg, #2e7a8a, #1e5a6a); color: #d8f4ff; }
.mcrate .modal-head { background: linear-gradient(135deg, #1e7a5a, #155a6a); color: #ffffff; text-shadow: 1px 1px 0 rgba(0,0,0,0.45); }
.mgift .modal-head { background: linear-gradient(135deg, #8a6a2e, #6a4f1e); color: #ffffff; text-shadow: 1px 1px 0 rgba(0,0,0,0.45); }
.mmail .modal-sub, .mspin .modal-sub { color: #9fc8f0; }
.mspin .modal-sub { color: #ffe9b0; }

/* ---------- Shop bodies + unified shop cards (Old Finn & co.) ---------- */
.shop-body { padding: 16px 18px; display: grid; justify-items: stretch; gap: 10px; }
.shop-card {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: rgba(16, 18, 22, 0.85);
  border: 1px solid rgba(126, 200, 224, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}
.shop-icon {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 6px;
  image-rendering: pixelated;
}
.shop-info { flex: 1; min-width: 0; text-align: left; }
.shop-name { font-size: 10px; color: #f0c463; letter-spacing: 1px; margin-bottom: 6px; }
.shop-stats { font-size: 8px; color: #8a93a6; line-height: 2; margin-bottom: 8px; }
.shop-cost { display: flex; gap: 12px; font-size: 9px; color: #fff; }
.shop-cost span { display: flex; align-items: center; gap: 5px; }
.shop-cost img { width: 16px; height: 16px; image-rendering: pixelated; }
.shop-body .modal-note { text-align: center; line-height: 2; }
.wo-act #btn-buyrod, .wo-act #btn-cook { width: 100%; margin: 0; box-shadow: none; }
.wo-act #btn-buyrod:active:not(:disabled), .wo-act #btn-cook:active:not(:disabled) { transform: translateY(2px); }

/* ---------- Free spin wheel ---------- */
.spin-body { padding: 22px 20px 18px; display: grid; justify-items: center; gap: 12px; }

.spin-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, #f0c463, #8a6a2e);
  box-shadow: 0 0 26px rgba(240, 196, 99, 0.35), inset 0 0 12px rgba(0, 0, 0, 0.4);
}
#spin-canvas {
  width: 300px;
  height: 300px;
  display: block;
  border-radius: 50%;
  background: #14181f;
}
.spin-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 24px solid #f0c463;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  z-index: 1;
}
#spin-btn {
  width: 200px;
  font-size: 11px;
  padding: 12px 8px;
  margin-bottom: 0;
  box-shadow: 0 4px 0 #8a6a2e;
}
#spin-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a2e; }

.modal-x {
  background: rgba(0, 0, 0, 0.25);
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.modal-x:hover { background: rgba(0, 0, 0, 0.45); }

.modal-body { padding: 34px 20px 28px; text-align: center; }

.modal-big { font-size: 22px; color: #fff; letter-spacing: 2px; margin-bottom: 16px; }
.blink { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.55; } }

.modal-sub { font-size: 9px; color: #f0c463; letter-spacing: 1px; margin-bottom: 10px; }
.mauction .modal-sub { color: #d9c49a; }
.mhouse .modal-sub { color: #9fe8a9; }

.modal-note { font-size: 7px; color: #8a93a6; }

/* ---------- Inventory modal ---------- */
.minv .modal-head { background: linear-gradient(135deg, #8a6a2e, #6a4f1e); color: #ffe9b0; }
.minv .modal-panel, .modal-panel.minv { width: 700px; }

/* inventory is a docked side panel: no blur, no dim, hotbar stays usable */
#inventory-modal {
  pointer-events: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  place-items: center end;
  padding-right: 22px;
}
#inventory-modal .modal-panel { pointer-events: auto; }

.inv-flex { display: flex; gap: 16px; align-items: flex-start; }
.inv-char { flex-shrink: 0; }
#inv-char-canvas {
  display: block;
  width: 200px;
  height: 280px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(240, 196, 99, 0.12), transparent 65%),
    rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(240, 196, 99, 0.3);
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}
#inv-char-canvas:active { cursor: grabbing; }
.inv-char-hint {
  text-align: center;
  font-size: 6px;
  color: #8a93a6;
  margin-top: 8px;
  letter-spacing: 1px;
}
/* equipment slots under the character preview */
#inv-equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; width: 200px; }
.eq-slot {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.10); border-radius: 8px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.eq-slot:hover { border-color: rgba(240,196,99,0.5); }
.eq-slot .eq-label { font-size: 6px; color: #6a7386; letter-spacing: 1px; text-align: center; padding: 0 2px; }
.eq-slot.filled .eq-label { position: absolute; bottom: 2px; left: 0; right: 0; color: #cfd6e0; font-size: 5px; }
.eq-slot.filled img { width: 82%; height: 82%; object-fit: contain; image-rendering: auto; margin-bottom: 8px; }
.eq-slot.filled.rar-common { border-color: #b8c0c8; background: rgba(184,192,200,0.08); }
.eq-slot.filled.rar-rare { border-color: #3a7ad8; background: rgba(58,122,216,0.10); }
.eq-slot.filled.rar-epic { border-color: #b04df0; background: rgba(176,77,240,0.10); }
.eq-slot.filled.rar-legendary { border-color: #f0c463; background: rgba(240,196,99,0.12); }
.eq-slot.filled.rar-mythic { border-color: transparent; background:
  linear-gradient(rgba(20,24,31,0.85), rgba(20,24,31,0.85)) padding-box,
  linear-gradient(120deg, #ff4040, #f0c463, #4ade4a, #3a7ad8, #b04df0) border-box;
  animation: mythic-border 3s linear infinite; }
@keyframes mythic-border { to { filter: hue-rotate(360deg); } }
.rar-mythic-txt {
  background: linear-gradient(90deg, #ff4040, #f0c463, #4ade4a, #3a7ad8, #b04df0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: mythic-border 3s linear infinite;
}
.inv-right { flex: 1; min-width: 0; }

/* ---------- Character creation ---------- */
#charcreate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 110, 60, 0.35), transparent 60%),
    linear-gradient(180deg, #12181f 0%, #0c1016 100%);
  font-family: 'Press Start 2P', monospace;
}
#charcreate.hidden { display: none; }

.cc-panel {
  background: rgba(15, 19, 28, 0.95);
  border: 2px solid rgba(240, 196, 99, 0.35);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  padding: 22px 26px;
  animation: modal-pop 0.25s ease-out;
}
.cc-title {
  text-align: center;
  font-size: 15px;
  letter-spacing: 3px;
  color: #f0c463;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}
.cc-main { display: flex; gap: 22px; }

.cc-preview-wrap { position: relative; }
#cc-canvas {
  display: block;
  width: 280px;
  height: 360px;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(240, 196, 99, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(90, 140, 200, 0.14), rgba(255, 255, 255, 0.03));
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  cursor: grab;
  touch-action: none;
}
#cc-canvas:active { cursor: grabbing; }
.cc-drag-hint {
  text-align: center;
  font-size: 6px;
  color: #8a93a6;
  margin-top: 8px;
  letter-spacing: 1px;
}

.cc-controls { width: 300px; display: flex; flex-direction: column; }

#cc-name {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  padding: 10px;
  margin-bottom: 16px;
}
#cc-name:focus { outline: none; border-color: #f0c463; }
#cc-name::placeholder { color: #5a6068; }

#cc-name { margin-bottom: 4px; }
#cc-name-status {
  min-height: 14px;
  font-size: 7px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
}
#cc-name-status.ok { color: #4ade4a; }
#cc-name-status.bad { color: #e04a4a; }
#cc-name-status.checking { color: #8a93a6; }

#cc-pass, .lp-controls input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 2px;
  text-align: center;
  padding: 10px;
  margin-bottom: 16px;
}
#cc-pass:focus, .lp-controls input:focus { outline: none; border-color: #f0c463; }
#cc-pass::placeholder, .lp-controls input::placeholder { color: #5a6068; }
#cc-pass.hidden-field { display: none; }

#cc-gologin { text-align: center; font-size: 7px; color: #8a93a6; margin-top: 10px; letter-spacing: 1px; }
#cc-gologin a { color: #f0c463; text-decoration: none; cursor: pointer; }
#cc-gologin a:hover { text-decoration: underline; }

#loginpanel {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(74, 110, 60, 0.35), transparent 60%),
    linear-gradient(180deg, #12181f 0%, #0c1016 100%);
  font-family: 'Press Start 2P', monospace;
}
#loginpanel.hidden { display: none; }
.lp-controls { width: 340px; display: flex; flex-direction: column; }
#lp-status { min-height: 16px; font-size: 7px; letter-spacing: 1px; text-align: center; margin: 10px 0 0; }
#lp-status.bad { color: #e04a4a; }
#lp-status.checking { color: #8a93a6; }

/* ---------- landing page ---------- */
#landing {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: /* the live town renders behind — a dark vignette keeps the text king */
    radial-gradient(ellipse at 50% 30%, rgba(74, 110, 60, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(18, 24, 31, 0.66) 0%, rgba(12, 16, 22, 0.86) 100%);
  font-family: 'Press Start 2P', monospace;
}
#landing.hidden { display: none; }
.land-cards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 780px; margin-top: 4px; padding: 0 16px; }
.land-card { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 12px 18px; background: rgba(15, 19, 28, 0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 150px; }
.lc-t { font-size: 8px; letter-spacing: 2px; }
.lc-t.gold { color: #f0c463; }
.lc-t.teal { color: #6fd6c8; }
.lc-d { font-size: 6px; letter-spacing: 1px; color: #8a93a6; text-align: center; line-height: 1.7; }

/* ---------- staking desk (banker) ---------- */
.stake-form { display: flex; flex-direction: column; gap: 8px; }
.stake-curs { display: flex; gap: 6px; }
.stake-durs { display: flex; gap: 6px; }
.stake-dur {
  flex: 1; font-family: inherit; font-size: 8px; padding: 8px 4px 6px; cursor: pointer;
  background: rgba(20,26,34,0.85); color: #aeb8c8; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.stake-dur span { color: #8ee04a; font-size: 8px; }
.stake-dur.on { border-color: rgba(232,182,76,0.7); color: #e8b64c; background: rgba(40,34,20,0.85); }
#stake-list { display: flex; flex-direction: column; gap: 6px; max-height: 34vh; overflow-y: auto; }
.stake-row { background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px; }
.stake-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 8px; color: #d8dfeb; margin-bottom: 6px; }
.stake-top .wo-btn { padding: 5px 10px; font-size: 8px; }
.stake-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.stake-bar div { height: 100%; background: linear-gradient(90deg, #4a90d9, #8ee04a); border-radius: 4px; }
.stake-done { color: #6a7688; font-size: 7px; letter-spacing: 1px; }
.stake-lock { color: #f0c463; font-size: 7px; letter-spacing: 0.5px; }

/* ---------- tomb loot panel + inventory context menu ---------- */
.mloot.modal-panel { width: min(420px, 92vw); }
#loot-list { max-height: 46vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.loot-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 6px 8px;
}
.loot-row img { width: 26px; height: 26px; image-rendering: pixelated; }
.loot-row span { flex: 1; font-size: 8px; color: #d8dfeb; letter-spacing: 0.5px; }
.loot-row .loot-take { padding: 5px 10px; font-size: 8px; }
.loot-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center; }
#ctx-menu {
  position: fixed; z-index: 130; display: flex; flex-direction: column; gap: 2px;
  background: rgba(12,15,20,0.97); border: 2px solid #2a3040; border-radius: 8px; padding: 4px;
  font-family: 'Press Start 2P', monospace; box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}
#ctx-menu.hidden { display: none; }
.ctx-opt {
  font-family: inherit; font-size: 8px; text-align: left; padding: 8px 12px; cursor: pointer;
  background: transparent; color: #d8dfeb; border: none; border-radius: 5px; letter-spacing: 1px;
}
.ctx-opt:hover { background: rgba(232,182,76,0.16); color: #e8b64c; }

/* ---------- loading spinners ---------- */
@keyframes spin-rot { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 11px; height: 11px;
  border: 2px solid rgba(232, 182, 76, 0.25);
  border-top-color: #e8b64c;
  border-radius: 50%;
  animation: spin-rot 0.7s linear infinite;
  vertical-align: -1px;
  margin-right: 7px;
}
.spinner-big { width: 42px; height: 42px; border-width: 4px; margin: 0; }
#boot-gate {
  position: fixed; inset: 0; z-index: 999;
  background: #0b0d10;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  font-family: 'Press Start 2P', monospace;
}
#boot-gate.hidden { display: none; }
#boot-gate .boot-txt { color: #e8b64c; font-size: 10px; letter-spacing: 3px; animation: blink 1.2s steps(2) infinite; }
.land-title {
  font-size: 44px;
  letter-spacing: 10px;
  color: #f0c463;
  text-shadow: 0 0 30px rgba(240, 196, 99, 0.45), 4px 4px 0 rgba(0, 0, 0, 0.6);
  animation: land-title-glow 3.2s ease-in-out infinite;
}
@keyframes land-title-glow {
  0%, 100% { text-shadow: 0 0 30px rgba(240,196,99,0.45), 4px 4px 0 rgba(0,0,0,0.6); }
  50% { text-shadow: 0 0 48px rgba(240,196,99,0.8), 4px 4px 0 rgba(0,0,0,0.6); }
}
.land-sub { font-size: 10px; letter-spacing: 5px; color: #8a93a6; }
.land-desc { font-size: 8px; line-height: 2; letter-spacing: 1px; color: #b8c0d0; text-align: center; margin-bottom: 8px; }
#land-play {
  width: auto;
  font-size: 13px;
  padding: 15px 64px;
  box-shadow: 0 5px 0 #8a6a2e;
}
#land-play:active { transform: translateY(3px); box-shadow: 0 2px 0 #8a6a2e; }
.land-online { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 2px; color: #8a93a6; }
.land-online b { color: #e6ecf5; font-weight: normal; }
.land-ca { font-size: 8px; letter-spacing: 1px; color: #6fd6c8; cursor: copy; padding: 6px 12px; background: rgba(15,19,28,0.7); border: 1px solid rgba(111,214,200,0.3); border-radius: 8px; max-width: 88vw; overflow-wrap: anywhere; text-align: center; transition: border-color 0.15s; }
.land-ca:hover { border-color: rgba(111,214,200,0.7); }
.land-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade4a; box-shadow: 0 0 8px rgba(74,222,74,0.8); animation: land-dot-pulse 1.6s ease-in-out infinite; }
@keyframes land-dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.land-social { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.land-docs { font-size: 9px; letter-spacing: 2px; color: #c7cede; text-decoration: none; padding: 8px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; transition: color 0.15s, border-color 0.15s; }
.land-docs:hover { color: #ffffff; border-color: rgba(240,196,99,0.5); }
.land-foot { font-size: 7px; letter-spacing: 3px; color: #5a6068; margin-top: 22px; }

/* ---------- top-bar wallet chip (logged in) ---------- */
#wallet-chip { display: flex; align-items: center; gap: 9px; }
#wallet-chip.hidden { display: none; }
#wallet-addr { font-family: 'Press Start 2P', monospace; font-size: 9px; letter-spacing: 1px; color: #f0c463; text-shadow: 1px 1px 0 rgba(0,0,0,0.6); }

/* ---------- wallet modal (Kintara-style) ---------- */
#loginpanel {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(3px);
  font-family: 'Press Start 2P', monospace;
}
#loginpanel.hidden { display: none; }
.wm {
  width: 380px;
  max-width: 94vw;
  background: #15161c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  padding: 18px;
  animation: modal-pop 0.22s ease-out;
}
.wm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f2f2f2;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding: 0 4px;
}
#wm-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #8a93a6;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#wm-close:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.wm-search input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  color: #fff;
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 13px 14px;
  margin-bottom: 10px;
}
.wm-search input:focus { outline: none; border-color: rgba(240, 196, 99, 0.5); }
.wm-search input::placeholder { color: #5a6068; }

#wallet-list {
  max-height: 402px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.wallet-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  color: #f2f2f2;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 1px;
}
.wallet-row:hover { background: rgba(255, 255, 255, 0.05); }
.wallet-row:disabled { opacity: 0.5; cursor: default; }
.wallet-row .wicon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: bold;
  overflow: hidden;
}
.wallet-row .wicon img { width: 100%; height: 100%; object-fit: cover; }
.wallet-row .wname { flex: 1; }
.wallet-row .installed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 6px;
  color: #4ade4a;
  background: rgba(74, 222, 74, 0.12);
  border-radius: 20px;
  padding: 5px 10px;
}
.wallet-row .installed::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade4a; }
.wallet-row .chev { color: #5a6068; font-size: 14px; padding-right: 4px; }
.wallet-row.notinst .wicon { filter: grayscale(0.75); opacity: 0.5; }
.wallet-row.notinst .wname { color: #8a93a6; }
.wm-foot {
  text-align: center;
  font-size: 6px;
  color: #5a6068;
  letter-spacing: 1px;
  margin-top: 14px;
  line-height: 1.8;
}


#cc-play:disabled, #lp-login:disabled { opacity: 0.45; cursor: default; transform: none !important; }

/* ---------- admin alert banner (server messages / motd) ---------- */
#admin-alert {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 150;
  max-width: min(720px, 92vw);
  padding: 14px 26px;
  background: rgba(15, 19, 28, 0.96);
  border: 2px solid rgba(240, 196, 99, 0.65);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(240, 196, 99, 0.18);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #f0c463;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.2);
  pointer-events: none;
}
#admin-alert.show { transform: translate(-50%, 0); }
#admin-alert.hidden { display: none; }



.cc-row { margin-bottom: 12px; }
.cc-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cc-label { font-size: 9px; color: #c7cede; letter-spacing: 1px; }
.cc-sel { display: flex; align-items: center; gap: 8px; }
.cc-opt {
  min-width: 86px;
  text-align: center;
  font-size: 8px;
  color: #f0c463;
}
.cc-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 1;
}
.cc-arrow:hover { background: rgba(240, 196, 99, 0.25); border-color: #f0c463; }

.cc-swatches { display: flex; gap: 6px; }
.cc-sw {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s, border-color 0.1s;
}
.cc-sw:hover { transform: scale(1.12); }
.cc-sw.sel { border-color: #f0c463; box-shadow: 0 0 8px rgba(240, 196, 99, 0.55); transform: scale(1.12); }

.cc-btns { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
.cc-btns .dev-btn { margin-bottom: 0; }
#cc-play { flex: 1.4; font-size: 12px; padding: 13px 8px; box-shadow: 0 4px 0 #8a6a2e; }
#cc-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a6a2e; }
#cc-random { flex: 1; }

/* player level + skills progress */
#inv-progress { display: grid; gap: 8px; margin-bottom: 16px; }
.prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
}
.prog-row img { width: 26px; height: 26px; image-rendering: pixelated; }
.prog-star { width: 26px; text-align: center; color: #f0c463; font-size: 14px; }
.prog-info { flex: 1; min-width: 0; }
.prog-top {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #cfd6e0;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.prog-bar { height: 8px; background: rgba(0, 0, 0, 0.45); border-radius: 4px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 4px; transition: width 0.25s ease-out; }

.inv-body { padding: 18px 18px 14px; }

#inv-grid {
  display: grid;
  grid-template-columns: repeat(5, 64px);
  gap: 10px;
  justify-content: center;
}

.inv-slot {
  width: 64px;
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.inv-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 196, 99, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.inv-slot.filled {
  background: rgba(240, 196, 99, 0.08);
  border-color: rgba(240, 196, 99, 0.35);
}
.inv-slot img { width: 40px; height: 40px; image-rendering: pixelated; }
.inv-slot .count {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.inv-hint {
  text-align: center;
  font-size: 7px;
  line-height: 2;
  color: #8a93a6;
  margin-top: 10px;
}

/* placeholder (coming-soon) modals share the kit's panel + glow title */
.modal-big { text-shadow: 0 0 18px rgba(240, 196, 99, 0.45); }

/* ---------- Combat feedback ---------- */
#damage-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 30, 30, 0.5) 100%);
}
#damage-flash.show { animation: dmg-flash 0.45s ease-out; }
@keyframes dmg-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

#death-banner {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 119;
  font-family: 'Press Start 2P', monospace;
  font-size: 26px;
  letter-spacing: 3px;
  color: #e04040;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
}
#death-banner.show { animation: banner 2.4s ease-out; }
@keyframes banner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* level-up / skill-up toast — ABOVE the modal layer (100/101) so alerts are
   never buried under a modal's blur; still below the boot gate (999) */
#toast {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #f0c463;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { animation: toast-pop 1.7s ease-out; }
@keyframes toast-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.8); }
  12% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* pickup popups (item icon + amount, above the hotbar) */
#pickups {
  position: fixed;
  bottom: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 34;
  display: flex;
  flex-direction: column-reverse; /* newest closest to the hotbar */
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.pickup {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  padding: 6px 12px 6px 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  animation: pickup-in 0.25s ease-out;
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}
.pickup img { width: 22px; height: 22px; image-rendering: pixelated; }
.pickup.out { opacity: 0; transform: translateY(-18px); }
@keyframes pickup-in {
  from { opacity: 0; transform: translateY(10px) scale(0.8); }
}

/* current zone indicator (wilderness / safe zone) */
#zone-label {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 8px 14px;
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}
#zone-label.hidden { display: none; }
