/* Chopcity Web — production UI */
:root {
  --bg: #0a0810;
  --bg2: #120e1a;
  --card: rgba(18, 12, 28, 0.92);
  --line: rgba(232, 197, 71, 0.18);
  --text: #f2eef8;
  --muted: #9a92a8;
  --gold: #e8c547;
  --gold2: #f5d76e;
  --purple: #9b6dff;
  --ok: #3dffd0;
  --err: #ff6b7a;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --nav-h: 58px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--font);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(180,60,120,.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 30%, rgba(90,40,160,.4), transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 80%, rgba(200,80,40,.2), transparent 45%),
    linear-gradient(180deg, #1a0a24 0%, #0c0614 40%, #08040e 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107, 63, 199, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(232, 197, 71, 0.06), transparent 50%),
    linear-gradient(180deg, #0c0914 0%, #0a0810 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff; }
#coin-field {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
#coin-field .coin {
  position: absolute; width: 28px; height: 28px; pointer-events: auto; cursor: pointer;
  opacity: 0.5; transition: opacity .35s, transform .35s;
  filter: drop-shadow(0 0 6px rgba(232,197,71,.45));
  animation: coinFloat 14s ease-in-out infinite;
}
#coin-field .coin:hover { opacity: .9; transform: scale(1.12); }
#coin-field .coin.pop { opacity: 0; transform: scale(.3) rotate(40deg); pointer-events: none; }
@keyframes coinFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
.nav,.wrap,.chat-dock,.hero,.section,footer,.dash-layout { position: relative; z-index: 2; }
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; background: rgba(8,5,14,.88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; color: var(--text); }
.nav-brand img { height: 32px; width: auto; display: block; }
.nav-brand span {
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--gold2), #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .84rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold2); background: rgba(232,197,71,.08); }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--gold2); border-radius: 8px; padding: 6px 10px; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: rgba(8,4,14,.98);
    padding: 10px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 96px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: .9rem;
  cursor: pointer; font-family: inherit; border: 1px solid rgba(232,197,71,.55);
  background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a1200;
  text-decoration: none; box-shadow: 0 4px 16px rgba(232,197,71,.25);
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--gold2); box-shadow: none; }
.btn-ghost:hover { background: rgba(232,197,71,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-sm { padding: 7px 12px; font-size: .8rem; }
.btn-danger {
  border-color: rgba(255,107,122,.5);
  background: linear-gradient(180deg, #ff8a96, #e04a5a); color: #1a0508;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.topic { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.topic-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(232,197,71,.12); border: 1px solid rgba(232,197,71,.35);
  font-size: 1.15rem; flex-shrink: 0;
}
.topic h1, .topic h2 { margin: 0; font-size: 1.4rem; color: var(--gold2); }
.topic p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature {
  padding: 18px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); transition: .2s; display: block; color: inherit;
}
.feature:hover { border-color: rgba(232,197,71,.4); transform: translateY(-2px); }
.feature .ico { font-size: 1.35rem; margin-bottom: 8px; }
.feature h3 { margin: 0 0 6px; color: var(--gold2); font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: .88rem; }
.muted { color: var(--muted); } .gold { color: var(--gold2); } .center { text-align: center; }
.small { font-size: .82rem; }
input, select, textarea {
  width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(8,4,14,.9); color: var(--text);
  font: inherit; margin: 6px 0 12px;
}
textarea { min-height: 90px; resize: vertical; max-width: 100%; }
label { font-size: .8rem; color: var(--muted); font-weight: 600; display: block; }
.alert { display: none; padding: 10px 12px; border-radius: 9px; margin-bottom: 12px; font-size: .9rem; }
.alert.err { display: block; background: rgba(255,80,100,.12); border: 1px solid rgba(255,80,100,.35); color: #ffb0b8; }
.alert.ok { display: block; background: rgba(61,255,168,.08); border: 1px solid rgba(61,255,168,.28); color: #b0ffd8; }
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 28px 0 12px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero-title img { max-width: min(420px, 100%); height: auto; display: block; filter: drop-shadow(0 4px 20px rgba(0,0,0,.5)); }
.hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 420px; margin: 14px 0 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art .poster-stage {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 3/4; max-height: 420px; background: #120a1a;
}
.hero-art .poster-stage .bg { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.hero-art .poster-stage .walk {
  /* isolated character over poster — not a second full poster */
  position: absolute; bottom: 2%; left: 8%;
  height: 48%; width: auto; max-width: 42%;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.75));
  animation: walkBob 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes walkBob {
  0%,100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-7px) translateX(3px); }
}
/* optional ground walk strip below hero */
.char-ground-walk {
  position: fixed; bottom: 12px; left: 4vw; z-index: 3;
  height: min(22vh, 160px); width: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.55));
  opacity: 0; transition: opacity .6s;
}
.char-ground-walk.show { opacity: 1; }
.char-ground-walk.walking {
  animation: stroll 14s linear infinite;
}
@keyframes stroll {
  0% { left: 4vw; transform: scaleX(1); }
  45% { left: 70vw; transform: scaleX(1); }
  50% { left: 70vw; transform: scaleX(-1); }
  95% { left: 4vw; transform: scaleX(-1); }
  100% { left: 4vw; transform: scaleX(1); }
}
.section { margin: 36px 0; }
.section h2 { margin: 0 0 6px; font-size: 1.25rem; color: var(--gold2); }
.section .lead { color: var(--muted); margin: 0 0 16px; font-size: .92rem; }
.live-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .live-stats { grid-template-columns: 1fr 1fr; } }
.live-stats .s {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.live-stats .s b { display: block; font-size: 1.45rem; color: var(--gold2); font-variant-numeric: tabular-nums; }
.live-stats .s span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hub-shell { max-width: 960px; margin: 0 auto; }
.hub-panel {
  background: rgba(14,10,22,.96); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 16px;
}
.hub-panel h3 {
  margin: 0 0 12px; font-size: 1.05rem; color: var(--gold2);
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0; }
.stat-row .k { font-size: .78rem; color: var(--muted); display: block; }
.stat-row .v { font-size: 1.15rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
table.data th { color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tr:hover td { background: rgba(232,197,71,.04); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(155,109,255,.2); color: #d4c0ff; border: 1px solid rgba(155,109,255,.35);
}
.badge.ok { background: rgba(61,255,168,.12); color: #9effd8; border-color: rgba(61,255,168,.3); }
.badge.warn { background: rgba(232,197,71,.12); color: var(--gold2); border-color: rgba(232,197,71,.35); }
.badge.err { background: rgba(255,107,122,.12); color: #ffb0b8; border-color: rgba(255,107,122,.35); }
.dash-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px;
  max-width: 1200px; margin: 0 auto; padding: 20px 16px 80px;
}
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; height: fit-content; position: sticky; top: calc(var(--nav-h) + 12px);
}
.dash-side a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted);
  font-size: .88rem; font-weight: 600; margin-bottom: 2px;
}
.dash-side a:hover, .dash-side a.active { background: rgba(232,197,71,.1); color: var(--gold2); }
.dash-side .side-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin: 12px 0 6px; padding: 0 10px;
}
.dash-main { min-width: 0; }
.chat-dock {
  position: fixed; left: 14px; bottom: 14px; z-index: 50;
  width: min(360px, calc(100vw - 28px)); font-size: .88rem;
}
.chat-dock.collapsed .chat-body { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #1a1428, #120e1c);
  border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  padding: 8px 12px; cursor: pointer; user-select: none;
}
.chat-head strong { color: var(--gold2); font-size: .9rem; }
.chat-head .badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  display: inline-block; margin-right: 6px; box-shadow: 0 0 8px var(--ok);
}
.chat-body {
  background: rgba(10,8,16,.97); border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 12px 12px; overflow: hidden; box-shadow: var(--shadow);
}
.chat-tabs { display: flex; border-bottom: 1px solid var(--line); }
.chat-tabs button {
  flex: 1; background: transparent; border: none; color: var(--muted);
  font: inherit; font-weight: 600; font-size: .78rem; padding: 8px 4px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.chat-tabs button.active {
  color: var(--gold2); border-bottom-color: var(--gold); background: rgba(232,197,71,.06);
}
.chat-pane { display: none; height: 260px; flex-direction: column; }
.chat-pane.active { display: flex; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px; font-size: .82rem; }
.chat-msg {
  margin-bottom: 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.04);
}
.chat-msg .who { font-size: .7rem; color: var(--gold2); font-weight: 700; margin-bottom: 2px; }
.chat-msg .when { float: right; color: var(--muted); font-weight: 400; font-size: .65rem; }
.chat-msg.admin .who { color: var(--purple); }
.chat-compose { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; margin: 0; max-width: none; padding: 8px 10px; font-size: .84rem; }
.chat-compose button {
  flex-shrink: 0; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(232,197,71,.5);
  background: var(--gold); color: #1a1200; font-weight: 700; cursor: pointer;
  font-family: inherit; font-size: .8rem;
}
.ticket-list { max-height: 120px; overflow-y: auto; border-bottom: 1px solid var(--line); padding: 6px; }
.ticket-list button {
  display: block; width: 100%; text-align: left; background: transparent; border: none;
  color: var(--muted); font: inherit; font-size: .78rem; padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.ticket-list button:hover, .ticket-list button.active { background: rgba(232,197,71,.1); color: var(--gold2); }
footer {
  text-align: center; padding: 24px 16px 40px; color: var(--muted); font-size: .8rem;
  border-top: 1px solid var(--line); margin-top: 40px;
}
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.monitor-grid .m {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center;
}
.monitor-grid .m b { display: block; font-size: 1.5rem; color: var(--gold2); font-variant-numeric: tabular-nums; }
.monitor-grid .m span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }

/* —— Access gate modal (smooth cyber warning) —— */
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
}
.gate-overlay.show { opacity: 1; pointer-events: auto; }
.gate-card {
  width: min(420px, calc(100vw - 32px));
  background: linear-gradient(165deg, #1a1228 0%, #0e0a16 100%);
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(155, 109, 255, 0.12);
  transform: translateY(18px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  text-align: center;
}
.gate-overlay.show .gate-card { transform: translateY(0) scale(1); }
.gate-card .gate-ico {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(232,197,71,.1);
  border: 1px solid rgba(232,197,71,.35);
  display: grid; place-items: center;
  font-size: 1.6rem;
  animation: gatePulse 2s ease-in-out infinite;
}
@keyframes gatePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,197,71,.35); }
  50% { box-shadow: 0 0 0 12px rgba(232,197,71,0); }
}
.gate-card h3 { margin: 0 0 8px; color: var(--gold2); font-size: 1.2rem; }
.gate-card p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.gate-card .gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hub-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.hub-tabs button {
  background: transparent; border: 1px solid transparent;
  color: var(--muted); font: inherit; font-weight: 600; font-size: .84rem;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
}
.hub-tabs button:hover { color: var(--gold2); background: rgba(232,197,71,.06); }
.hub-tabs button.on {
  color: #1a1200; background: linear-gradient(180deg, var(--gold2), var(--gold));
  border-color: rgba(232,197,71,.5);
}
.hub-view { display: none; }
.hub-view.on { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lock-banner {
  background: rgba(255,107,122,.1); border: 1px solid rgba(255,107,122,.3);
  color: #ffb0b8; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem;
}

/* —— Storm FX (GPU-friendly: opacity/transform only) —— */
.lightning-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; contain: strict;
}
.lightning-flash {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 40% at 35% 15%, rgba(255,255,255,.5), transparent 60%);
  opacity: 0;
  transform: translateZ(0);
  animation: flashA 11s steps(1, end) infinite;
  will-change: opacity;
}
.lightning-flash.f2 {
  background: radial-gradient(ellipse 40% 35% at 75% 35%, rgba(210,225,255,.35), transparent 55%);
  animation: flashB 14s steps(1, end) infinite;
  animation-delay: 4s;
}
/* Single lightweight bolt — no multi-layer box-shadow */
.lightning-bolt {
  position: absolute; width: 2px; height: 28vh; left: 24%; top: -2%;
  background: linear-gradient(180deg, #fff 0%, rgba(180,200,255,.15) 100%);
  opacity: 0;
  transform: skewX(-10deg) translateZ(0);
  animation: boltA 11s steps(1, end) infinite;
  will-change: opacity;
}
.lightning-bolt.b2 {
  left: 66%; height: 34vh;
  animation: boltB 14s steps(1, end) infinite;
  animation-delay: 4.2s;
}
@keyframes flashA {
  0%, 91%, 100% { opacity: 0; }
  92% { opacity: 0.45; }
  93% { opacity: 0.08; }
  94% { opacity: 0.3; }
  95% { opacity: 0; }
}
@keyframes flashB {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: 0.28; }
  92% { opacity: 0; }
  93% { opacity: 0.18; }
  94% { opacity: 0; }
}
@keyframes boltA {
  0%, 91%, 100% { opacity: 0; }
  92%, 94% { opacity: 0.85; }
  95% { opacity: 0; }
}
@keyframes boltB {
  0%, 90%, 100% { opacity: 0; }
  91%, 93% { opacity: 0.75; }
  94% { opacity: 0; }
}
/* Static soft haze — no continuous filter:blur animation cost */
.clouds {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.25; contain: strict;
  background:
    radial-gradient(ellipse 40% 20% at 20% 10%, rgba(90,70,120,.4), transparent 70%),
    radial-gradient(ellipse 35% 18% at 70% 25%, rgba(70,50,100,.3), transparent 70%);
}
.cloud { display: none; } /* legacy nodes ignored */
.grid-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.03; contain: strict;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: translateZ(0);
}
/* Pause all decorative motion when tab hidden or user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lightning-flash, .lightning-bolt, #coin-field .coin, .char-ground-walk {
    animation: none !important;
  }
  .lightning-flash, .lightning-bolt { opacity: 0 !important; }
}
body.fx-paused .lightning-flash,
body.fx-paused .lightning-bolt,
body.fx-paused #coin-field .coin {
  animation-play-state: paused !important;
}

/* Gun blast call coins from character */
.runner-stage {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden;
}
.runner-stage .runner {
  position: absolute; bottom: 8%; left: -20%;
  height: min(42vh, 280px); width: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.6));
  transition: none;
}
.runner-stage .runner.run {
  animation: runAcross 2.4s ease-in forwards;
}
@keyframes runAcross {
  0% { left: -25%; transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { left: 110%; transform: translateY(0); }
}
.call-burst {
  position: absolute; font-size: 1.4rem; color: #f5d76e;
  text-shadow: 0 0 10px rgba(232,197,71,.9);
  animation: burstOut 1.4s ease-out forwards;
  opacity: 0;
}
@keyframes burstOut {
  0% { opacity: 1; transform: translate(0,0) scale(.6); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); }
}
.gun-coin {
  position: absolute; width: 28px; height: 28px; pointer-events: none;
  animation: gunCoin 1.5s ease-out forwards;
  filter: drop-shadow(0 0 8px rgba(232,197,71,.8));
}
@keyframes gunCoin {
  0% { opacity: 1; transform: translate(0,0) scale(.4) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(120deg); }
}

.nav,.wrap,.hero,footer,.spa-shell,.chat-dock,.gate-overlay,.topup-overlay{position:relative;z-index:5;}

/* —— Wallpaper under all content —— */
body.chop-wall {
  background-color: #06040c !important;
  background-image:
    linear-gradient(180deg, rgba(6,4,12,.88) 0%, rgba(6,4,12,.92) 50%, rgba(4,2,10,.95) 100%),
    url('/assets/wallpaper-city.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
/* Readable surfaces — never transparent over busy FX */
.wrap, .spa-shell, .hub-shell, .hub-panel, .card, .feature, .step-card,
.topic, .spa-side, .lounge-side, .topup-modal, .gate-card {
  position: relative;
  z-index: 5;
}
.hub-panel, .card, .feature, .step-card, .spa-side, .lounge-side {
  background: rgba(12, 8, 20, 0.94) !important;
  backdrop-filter: blur(8px);
}
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 4, 14, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand-text, a.nav-brand-text {
  font-weight: 900; letter-spacing: .12em; font-size: 1.12rem;
  color: #e8c547; text-decoration: none;
  transition: color .25s, text-shadow .25s, transform .25s;
  display: inline-block;
}
.nav-brand-text:hover, a.nav-brand-text:hover {
  color: #fff6c8;
  text-shadow: 0 0 12px rgba(232,197,71,.85), 0 0 28px rgba(232,197,71,.45);
  transform: scale(1.04);
}
.nav-links a {
  opacity: .88; transition: color .2s, opacity .2s;
}
.nav-links a:hover { color: var(--gold2); opacity: 1; }
.nav-links a.active { color: var(--gold2); opacity: 1; }
.nav-crumb {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 8px;
  font-size: .82rem;
}
.nav-crumb a { color: var(--muted); }
.nav-crumb a:hover { color: var(--gold2); }

/* Header layout: logo | links | balance + profile */
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; flex-wrap: nowrap;
}
.nav-logo-circle {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(232,197,71,.45);
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 12px rgba(232,197,71,.2);
  transition: transform .2s, box-shadow .2s;
}
.nav-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-circle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(232,197,71,.55);
}
.nav-brand-text {
  margin-right: 8px; flex-shrink: 0;
}
.nav-links {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  flex: 1; justify-content: flex-start;
  min-width: 0;
}
.nav-right {
  display: flex; align-items: center; gap: 12px;
  margin-left: auto; flex-shrink: 0;
}
.nav-bal {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 8px 4px 6px;
}
.nav-bal img { width: 22px; height: 22px; }
.nav-bal-amt { font-weight: 700; font-size: .88rem; color: var(--gold2); font-variant-numeric: tabular-nums; }
.nav-bal-plus {
  width: 24px; height: 24px; border-radius: 50%; border: none;
  background: var(--gold2); color: #1a1008; font-weight: 900; cursor: pointer;
  line-height: 1; font-size: 1rem;
}
.nav-bal-plus:hover { filter: brightness(1.1); }
.nav-profile { position: relative; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(232,197,71,.15); border: 1px solid rgba(232,197,71,.4);
  display: grid; place-items: center; cursor: pointer; position: relative;
  overflow: hidden; font-size: .72rem; font-weight: 800; color: var(--gold2);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-avatar .pres {
  position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid #0c0614;
}
.pres.online { background: #3dff90; }
.pres.away { background: #e8c547; }
.pres.busy { background: #ff6b7a; }
.pres.offline { background: #666; }
.nav-profile-menu {
  display: none; position: absolute; right: 0; top: 44px; z-index: 80;
  width: 180px; background: rgba(14,10,22,.98); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.nav-profile-menu.show { display: block; }
.nav-profile-menu .npm-head {
  font-size: .78rem; color: var(--gold2); padding: 4px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.nav-profile-menu button, .nav-profile-menu a {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--muted); font: inherit; font-size: .85rem; padding: 8px; border-radius: 6px; cursor: pointer;
  text-decoration: none;
}
.nav-profile-menu button:hover, .nav-profile-menu a:hover { background: rgba(232,197,71,.1); color: var(--text); }

/* Chat dock — every page, non-blocking */
.chat-dock {
  position: fixed; right: 14px; bottom: 14px; z-index: 40;
  width: min(340px, calc(100vw - 24px));
  background: rgba(12, 8, 20, 0.96);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  overflow: hidden;
}
.chat-dock.mini .chat-dock-body { display: none; }
.chat-dock-bar {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  background: rgba(0,0,0,.35); border-bottom: 1px solid var(--line);
}
.cd-tab {
  background: transparent; border: none; color: var(--muted);
  font: inherit; font-size: .8rem; font-weight: 600; padding: 6px 10px;
  border-radius: 6px; cursor: pointer;
}
.cd-tab.on { background: rgba(232,197,71,.12); color: var(--gold2); }
.cd-min {
  margin-left: auto; background: transparent; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
}
.chat-dock-body { height: 260px; display: flex; flex-direction: column; }
.cd-pane { display: none; flex: 1; flex-direction: column; min-height: 0; }
.cd-pane.on { display: flex; }
.cd-pane .chat-msgs { flex: 1; overflow-y: auto; padding: 8px; }
.cd-pane .chat-compose {
  display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line);
}
.cd-pane .chat-compose input {
  flex: 1; margin: 0; max-width: none; padding: 8px;
}
.cd-pane .chat-compose button {
  background: var(--gold2); color: #1a1008; border: none; border-radius: 8px;
  padding: 8px 12px; font-weight: 700; cursor: pointer;
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 56px; left: 0; right: 0; background: rgba(8,4,14,.98);
    padding: 12px; border-bottom: 1px solid var(--line);
  }
  .nav { position: relative; }
}


/* City wallpaper from poster aesthetic */
body.chop-wall {
  background-color: #0a0612 !important;
  background-image:
    linear-gradient(180deg, rgba(10,6,18,.82) 0%, rgba(8,4,14,.88) 40%, rgba(6,3,12,.92) 100%),
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(120,40,140,.35), transparent 60%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(180,50,80,.2), transparent 50%),
    url('/assets/chopcity-poster.jpg') !important;
  background-size: auto, auto, auto, cover !important;
  background-position: center, center, center, center 30% !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

/* Solid readable panels over wallpaper */
.wrap, .hub-shell, .spa-shell main, .spa-side {
  position: relative; z-index: 5;
}
.hub-panel, .card, .feature, .step-card, .spa-side, .topic {
  background: rgba(10, 6, 18, 0.92) !important;
  border: 1px solid rgba(232,197,71,.18) !important;
  backdrop-filter: blur(10px);
}

/* Welcome intro */
.welcome-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #06030c;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity .8s ease, visibility .8s;
}
.welcome-overlay.hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.welcome-stage {
  position: relative; width: min(520px, 92vw); aspect-ratio: 3/4;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(232,197,71,.35);
  box-shadow: 0 0 60px rgba(120,40,160,.4);
}
.welcome-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .6s;
}
.welcome-stage img.on { opacity: 1; }
.welcome-stage .w-char {
  position: absolute; bottom: 4%; left: 10%; height: 45%; width: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.7));
  animation: wBob 1.2s ease-in-out infinite;
}
@keyframes wBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.welcome-caption {
  margin-top: 20px; color: #e8c547; font-weight: 800;
  letter-spacing: .08em; font-size: 1.1rem; text-align: center;
  min-height: 1.5em;
}
.welcome-skip {
  margin-top: 16px; background: transparent; border: 1px solid rgba(232,197,71,.4);
  color: #e8c547; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit;
}
.welcome-skip:hover { background: rgba(232,197,71,.12); }

/* Chat dock — left bottom circle toggle */
.chat-dock {
  left: 14px !important; right: auto !important;
  border-radius: 14px;
}
.chat-fab {
  position: fixed; left: 14px; bottom: 14px; z-index: 41;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, #e8c547, #c9a020);
  color: #1a1008; border: none; cursor: pointer;
  font-size: 1.4rem; font-weight: 900;
  box-shadow: 0 8px 28px rgba(232,197,71,.4);
  display: grid; place-items: center;
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: scale(1.06); box-shadow: 0 10px 32px rgba(232,197,71,.55); }
.chat-fab.hidden { display: none; }
.chat-dock.hidden { display: none; }

/* Nav balance / profile polish */
.nav-bal {
  min-width: 110px;
}
.nav-avatar {
  box-shadow: 0 0 0 2px rgba(232,197,71,.25);
}
.nav-logo-circle {
  box-shadow: 0 0 16px rgba(232,197,71,.3);
}


/* Welcome splash (guests only) */
.welcome-splash {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(ellipse at 50% 30%, #2a1040, #0a0610 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #eee; text-align: center; padding: 24px;
  transition: opacity .7s ease, visibility .7s;
}
.welcome-splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.welcome-splash h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: .12em; color: #e8c547;
  margin: 0 0 8px; text-shadow: 0 0 40px rgba(232,197,71,.4);
  animation: splashPulse 2s ease-in-out infinite;
}
@keyframes splashPulse {
  0%,100% { text-shadow: 0 0 20px rgba(232,197,71,.3); }
  50% { text-shadow: 0 0 48px rgba(232,197,71,.7); }
}
.welcome-splash .ws-sub { color: #a898b8; max-width: 420px; margin: 0 0 24px; line-height: 1.5; }
.welcome-reels {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px;
}
.welcome-reel {
  width: 140px; height: 90px; border-radius: 12px;
  border: 1px solid rgba(232,197,71,.3);
  background: rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .78rem; color: #e8c547; font-weight: 700;
  animation: reelIn .6s ease backwards;
  overflow: hidden; position: relative;
}
.welcome-reel span { font-size: 1.6rem; margin-bottom: 4px; }
.welcome-reel:nth-child(1) { animation-delay: .1s; }
.welcome-reel:nth-child(2) { animation-delay: .25s; }
.welcome-reel:nth-child(3) { animation-delay: .4s; }
.welcome-reel:nth-child(4) { animation-delay: .55s; }
@keyframes reelIn {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to { opacity: 1; transform: none; }
}
.welcome-reel .bar {
  position: absolute; bottom: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #e8c547, #c44); animation: barFill 2.2s ease forwards;
}
.welcome-reel:nth-child(2) .bar { animation-delay: .3s; }
.welcome-reel:nth-child(3) .bar { animation-delay: .6s; }
.welcome-reel:nth-child(4) .bar { animation-delay: .9s; }
@keyframes barFill { to { width: 100%; } }
.welcome-splash .btn { margin-top: 8px; }

/* City wallpaper (user art) + dark veil so UI stays readable */
body.chop-wall {
  background-color: #0a0610 !important;
  background-image:
    linear-gradient(180deg, rgba(8,4,14,.72) 0%, rgba(8,4,14,.82) 40%, rgba(6,4,12,.9) 100%),
    url('/assets/wallpaper-city.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 700px) {
  body.chop-wall {
    background-image:
      linear-gradient(180deg, rgba(6,4,12,.9) 0%, rgba(4,2,10,.96) 100%),
      url('/assets/wallpaper-city-sm.jpg') !important;
  }
}
.nav-logo-circle img { object-fit: cover; }
.nav-brand-banner {
  height: 36px; width: auto; display: block;
  filter: drop-shadow(0 0 8px rgba(232,197,71,.35));
  transition: filter .25s, transform .25s;
}
.nav-brand-banner:hover {
  filter: drop-shadow(0 0 16px rgba(232,197,71,.75));
  transform: scale(1.03);
}

/* Chat FAB — bottom LEFT circle (opens Lounge/Support) */
.chat-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(232,197,71,.5);
  background: rgba(10,6,16,.92);
  padding: 0; cursor: pointer;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 0 16px rgba(232,197,71,.2);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.chat-fab img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-fab:hover, .chat-fab.open {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 24px rgba(232,197,71,.45);
}
/* Dock sits above the FAB on the left */
.chat-dock {
  left: 16px !important;
  right: auto !important;
  bottom: 80px !important;
  width: min(320px, calc(100vw - 32px));
}
.chat-dock.mini {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity .25s, transform .25s;
}
.chat-dock:not(.mini) {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity .25s, transform .25s;
}
/* Poster: single image, no walk overlay */
.hero-art .poster-stage .walk,
.char-ground-walk,
#floor-walk,
#hero-walk {
  display: none !important;
}
.hero-art .poster-stage .bg {
  width: 100%; height: 100%; object-fit: cover; display: block; opacity: 1;
}


/* interactive glow */
.btn, button.btn, .nav-links a, .feature, .nav-brand-banner, .poster-stage, .nav-avatar, .nav-bal-plus, .chat-fab {
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.btn:hover, button.btn:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(232,197,71,.35);
  transform: translateY(-1px);
}
.nav-links a:hover {
  color: #ffe9a0 !important;
  text-shadow: 0 0 10px rgba(232,197,71,.5);
}
.nav-brand-banner:hover, .poster-stage:hover {
  filter: brightness(1.08) drop-shadow(0 0 16px rgba(232,197,71,.45));
  transform: scale(1.02);
}
.poster-stage { transition: transform .25s ease, filter .25s ease; }
.feature:hover {
  border-color: rgba(232,197,71,.5);
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 20px rgba(232,197,71,.15);
  transform: translateY(-3px);
}
