/* Grow a Garden — Robinhood-style lime / near-black theme */

:root {
  --lime: #ccff00;
  --lime-dim: #a8d400;
  --bg: #0a0a0a;
  --card: #141414;
  --card-hi: #1c1c1c;
  --border: #262626;
  --border-lime: rgba(204, 255, 0, 0.35);
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --gold: #ffd54a;
  --radius: 16px;
  --radius-sm: 12px;
}

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

body {
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--lime);
  line-height: 1;
  font-size: 22px;
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.brand-name {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 20px;
  text-transform: uppercase;
}
.brand-accent { color: var(--lime); }

.wallet { text-align: right; }
.wallet-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.wallet-amount {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--lime);
  line-height: 1.1;
}

/* --- Layout --- */
.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.panel-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 700;
}
.panel-hint {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.panel-hint.flash { color: var(--lime); font-weight: 600; }

/* --- Garden grid --- */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-hi);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  font-family: inherit;
  transition: border-color 0.15s, transform 0.08s, box-shadow 0.2s;
}
.plot:active { transform: scale(0.97); }

.plot.empty {
  border-style: dashed;
  border-color: var(--border);
}
.plot.empty:hover { border-color: var(--border-lime); }

.plot-emoji { font-size: clamp(30px, 7vw, 46px); line-height: 1; }

.plot-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.plot.ready .plot-status { color: var(--bg); }

.plot.growing { border-color: var(--border-lime); }
.plot.ready {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime), 0 0 24px rgba(204, 255, 0, 0.35);
  background: var(--lime);
}
.plot.ready .plot-emoji { animation: bob 1s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mutation badge (top-right of a ready plot) */
.plot-badge {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 16px;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
}

/* --- Gold / Rainbow ready plots --- */
.plot.ready.mut-gold {
  background: radial-gradient(circle at 50% 35%, #ffe27a, #f5b800);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(255, 200, 60, 0.55);
}
.plot.ready.mut-rainbow {
  background:
    linear-gradient(#151515, #151515) padding-box,
    linear-gradient(120deg, #ff5b5b, #ffd54a, #6bff8f, #5bc8ff, #b06bff) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 26px rgba(160, 110, 255, 0.5);
  animation: rainbow-glow 3s linear infinite;
}
.plot.ready.mut-rainbow .plot-status { color: var(--lime); }
.plot.ready.mut-rainbow .plot-badge { animation: spin 2.5s linear infinite; }

@keyframes rainbow-glow {
  0%   { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Sparkle particles (only shown on Gold / Rainbow ready plots) --- */
.plot-sparkles { display: none; }
.plot.ready.mut-gold .plot-sparkles,
.plot.ready.mut-rainbow .plot-sparkles {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.plot-sparkles i {
  position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  opacity: 0;
  /* 4-point star shape via a conic-ish glow */
  background: #fff;
  box-shadow: 0 0 6px 2px currentColor;
  animation: twinkle 1.6s ease-in-out infinite;
}
.plot.ready.mut-gold .plot-sparkles i    { color: #fff2b0; }
.plot.ready.mut-rainbow .plot-sparkles i { color: #ffffff; }

/* Scatter the six particles and stagger their twinkle */
.plot-sparkles i:nth-child(1) { left: 18%; top: 20%; animation-delay: 0s; }
.plot-sparkles i:nth-child(2) { left: 74%; top: 26%; animation-delay: 0.5s; }
.plot-sparkles i:nth-child(3) { left: 30%; top: 68%; animation-delay: 0.9s; }
.plot-sparkles i:nth-child(4) { left: 82%; top: 62%; animation-delay: 0.3s; }
.plot-sparkles i:nth-child(5) { left: 52%; top: 14%; animation-delay: 1.2s; }
.plot-sparkles i:nth-child(6) { left: 12%; top: 50%; animation-delay: 0.7s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1.1); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .plot.ready .plot-emoji,
  .plot.ready.mut-rainbow,
  .plot.ready.mut-rainbow .plot-badge,
  .plot-sparkles i { animation: none; }
  .plot-sparkles i { opacity: 0.9; }
}

.plot-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
}
.plot-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lime);
  transition: width 0.25s linear;
}
.plot.ready .plot-progress { display: none; }

/* --- Sidebar --- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }

/* --- Shop --- */
.shop-list { display: flex; flex-direction: column; gap: 10px; }

.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.shop-item:hover { border-color: var(--border-lime); }
.shop-item.selected {
  border-color: var(--lime);
  background: rgba(204, 255, 0, 0.08);
  box-shadow: 0 0 0 1px var(--lime);
}
.shop-item.unaffordable { opacity: 0.45; }

.shop-emoji { font-size: 26px; line-height: 1; }
.shop-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.shop-name { font-weight: 700; font-size: 15px; }
.shop-meta { font-size: 11px; color: var(--muted); }
.shop-cost {
  font-weight: 800;
  color: var(--lime);
  font-size: 15px;
  white-space: nowrap;
}

/* --- Inventory --- */
.inventory-value {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.inventory-list { display: flex; flex-direction: column; gap: 8px; }
.inventory-empty { font-size: 13px; color: var(--muted); padding: 8px 0; }

.inv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.inv-emoji { position: relative; font-size: 24px; line-height: 1; }
.inv-badge {
  position: absolute;
  top: -6px; right: -10px;
  font-size: 13px;
}
.inv-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.inv-name { font-weight: 600; font-size: 14px; }
.inv-value { font-size: 11px; color: var(--muted); }
.inv-count { font-weight: 700; color: var(--muted); font-size: 14px; }

/* Mutation accents */
.inv-item.mut-wet     { border-color: rgba(80, 180, 255, 0.5); }
.inv-item.mut-wet     .inv-name { color: #7fc7ff; }
.inv-item.mut-gold    { border-color: rgba(255, 213, 74, 0.55); }
.inv-item.mut-gold    .inv-name { color: var(--gold); }
.inv-item.mut-rainbow {
  border-color: transparent;
  background:
    linear-gradient(var(--card-hi), var(--card-hi)) padding-box,
    linear-gradient(90deg, #ff5b5b, #ffd54a, #6bff8f, #5bc8ff, #b06bff) border-box;
  border: 1px solid transparent;
}
.inv-item.mut-rainbow .inv-name {
  background: linear-gradient(90deg, #ff5b5b, #ffd54a, #6bff8f, #5bc8ff, #b06bff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* --- Buttons --- */
.btn {
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 9px 16px;
  font-size: 13px;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--lime);
  color: var(--bg);
}
.btn-primary:hover:not(:disabled) { background: #d9ff33; }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-lime); }

/* --- Footer --- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 6px;
}

/* Global hidden helper (beats display:flex on toggled views) */
[hidden] { display: none !important; }

/* --- Top bar right cluster --- */
.topbar-right { display: flex; align-items: center; gap: 16px; }
.brand-sm .brand-name { font-size: 16px; }
.brand-sm .brand-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 18px; }

/* ============ LANDING ============ */
.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-bottom: 20px;
  /* Faint blueprint grid + top glow so it never reads as flat black */
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(204, 255, 0, 0.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(255, 255, 255, 0.018) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(255, 255, 255, 0.018) 43px 44px);
}

/* WebGL nebula — bottom-most layer of the landing */
.shader-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Darkened isometric city skyline behind the landing hero */
.city-backdrop {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 82vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  /* fade the skyline out toward the top so it melts into the nebula */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 92%);
  mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 92%);
}
.city-backdrop .cb-svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Canvas particle field (haze + spores + money bills with physics) */
.lp-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Blurred depth orbs — parallaxed at different rates by scroll.js */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb-1 {
  width: 420px; height: 420px;
  top: -110px; left: -80px;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.16), transparent 70%);
}
.orb-2 {
  width: 540px; height: 540px;
  top: 38%; right: -180px;
  background: radial-gradient(circle, rgba(150, 255, 0, 0.10), transparent 70%);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--lime), #9dff3d);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.6);
  z-index: 300;
}

/* Reveal-on-scroll (applied only by JS, so no-JS keeps content visible) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* Keep all landing content above the particle field */
.landing-nav, .hero, .lp-section, .pin-section, .lp-cta-band, .lp-footer {
  position: relative;
  z-index: 1;
}
.hero { will-change: transform, opacity; }

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hero {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
}
.hero-inner {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 16px;
}

/* Live isometric grow room in the hero */
.hero-stage-wrap { position: relative; }
.hero-stage,
.pin-stage {
  background: radial-gradient(ellipse at 50% 40%, rgba(204, 255, 0, 0.05), transparent 62%), #0d0d0d;
  border: 1px solid var(--border-lime);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.75), 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hr-svg { display: block; width: 100%; height: auto; }

.hero-stage-tag {
  position: absolute;
  top: 16px; right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  pointer-events: none;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Floating "+$" inside the demo rooms */
.hr-cash {
  fill: var(--lime);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  animation: hrfloat 0.85s ease-out forwards;
}
.hr-coin { font-size: 10px; }
@keyframes hrfloat {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-18px); opacity: 0; }
}

/* ============ PINNED SCROLL SEQUENCE ============ */
/* 220vh => 120vh of pinned travel => ~40vh per step. Brisk, not a slog. */
.pin-section { height: 220vh; }
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pin-stage-wrap { position: relative; }
.pin-progress {
  margin-top: 14px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pin-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(204, 255, 0, 0.6);
}
.pin-heading { text-align: left; margin-bottom: 24px; }
.pin-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.pin-step {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  opacity: 0.36;
  transition: opacity 0.35s, border-color 0.35s, background 0.35s, transform 0.35s;
}
.pin-step.active {
  opacity: 1;
  border-color: var(--border-lime);
  background: rgba(204, 255, 0, 0.06);
  transform: translateX(5px);
}
.pin-num { font-size: 20px; font-weight: 800; color: var(--lime); min-width: 34px; }
.pin-step-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.pin-step-text { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-cash { align-self: stretch; }
  .pin-section { height: auto; }
  .pin-sticky {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pin-heading { text-align: center; }
  .pin-step { opacity: 1; }
}
/* Subtle lime spotlight behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90%);
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(204, 255, 0, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-greeting {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.linkbtn {
  background: none;
  border: none;
  color: var(--lime);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 2px;
}

.hero-title {
  font-size: clamp(48px, 12vw, 116px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.92;
  text-transform: uppercase;
}
.hero-title .accent {
  color: var(--lime);
  text-shadow: 0 0 40px rgba(204, 255, 0, 0.35);
}

.hero-tagline {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 540px;
}

.hero-cash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius);
  padding: 18px 40px;
  margin-top: 6px;
}
.cash-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}
.cash-amount {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 800;
  color: var(--lime);
  line-height: 1.05;
}
.cash-sub { font-size: 12px; color: var(--muted); }

.hero-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.rank-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.rank-value { font-size: 18px; font-weight: 800; color: var(--lime); white-space: nowrap; }
.hero-rank:hover .rank-label { color: var(--text); }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.btn-lg { padding: 15px 30px; font-size: 15px; border-radius: 12px; }

.hero-disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border-lime);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(204, 255, 0, 0.08);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ LANDING SECTIONS ============ */
.lp-section { width: 100%; max-width: 1000px; margin: 0 auto; }

.lp-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-align: center;
}
.lp-heading-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

/* Stats dashboard */
.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lp-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}
.lp-tile-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.lp-tile-value { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; color: var(--lime); }

/* Generic cards (how-it-works + features) */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.lp-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.15s, border-color 0.15s;
  overflow: hidden;
}
.lp-card:hover { transform: translateY(-3px); border-color: var(--border-lime); }
.lp-step-num {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 26px;
  font-weight: 800;
  color: rgba(204, 255, 0, 0.16);
}
.lp-card-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.lp-card-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.lp-card-text { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Strain showcase */
.lp-strains {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.lp-strain {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.lp-strain:hover { transform: translateY(-3px); border-color: var(--border-lime); }
.lp-strain-emoji { font-size: 30px; }
.lp-strain-name { font-weight: 700; font-size: 14px; }
.lp-strain-rate { font-size: 12px; color: var(--lime); font-weight: 700; }
.lp-strain-cost { font-size: 12px; color: var(--muted); }

/* CTA band */
.lp-cta-band {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background:
    linear-gradient(120deg, rgba(204, 255, 0, 0.14), rgba(204, 255, 0, 0.03)),
    var(--card);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.lp-band-title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; text-transform: uppercase; }
.lp-band-text { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Footer */
.lp-footer {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.lp-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lp-footer-note { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-footer, .lp-footer-right { align-items: center; text-align: center; }
  .lp-footer-right { align-items: center; }
  .lp-cta-band { flex-direction: column; text-align: center; }
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: column; }
}

@media (max-width: 560px) {
  .landing-nav { justify-content: center; }
  .nav-actions { justify-content: center; }
  .hero-cash { padding: 16px 28px; }
}

/* ============ GAME VIEW ============ */
.game-view {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Same texture language as the landing so the game isn't flat black */
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(204, 255, 0, 0.07), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(255, 255, 255, 0.015) 43px 44px),
    repeating-linear-gradient(90deg, transparent 0 43px, rgba(255, 255, 255, 0.015) 43px 44px);
}
/* Keep game content above the flying-money layer */
.game-view > .topbar,
.game-view > .layout,
.game-view > .footer { position: relative; z-index: 1; }

/* WebGL nebula behind the game, visible through the glass panels */
.game-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Frosted-glass panels so the nebula reads through them */
.game-view .panel,
.game-view .topbar {
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  border-color: rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}
/* Hairline lime gradient along the top edge of each panel */
.game-view .panel::before,
.game-view .topbar::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(204, 255, 0, 0.5), transparent);
}

/* Cash readout flashes when the balance goes up */
.wallet-amount.bump { animation: cashbump 0.4s ease-out; }
@keyframes cashbump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); text-shadow: 0 0 24px rgba(204, 255, 0, 0.7); }
  100% { transform: scale(1); }
}

/* Collect button breathes while cash is waiting */
.btn-primary.ready { animation: collectpulse 1.6s ease-in-out infinite; }
@keyframes collectpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.45); }
  50%      { box-shadow: 0 0 0 7px rgba(204, 255, 0, 0); }
}

/* Money bills (canvas, with physics) burst from the pot you tap.
   Above the opaque panels but below toasts/modals, and click-through. */
.game-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* ============ ISO CITY ============ */
.city {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(204, 255, 0, 0.05), transparent 62%),
    #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.75);
}
.iso-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  user-select: none;
  -webkit-user-select: none;
}

/* Room floor */
.iso-tile {
  fill: #1a1a17;
  stroke: #2b2b26;
  stroke-width: 1;
}
.iso-tile.alt { fill: #16150f; }
/* Tiles past the current slot cap read as locked, unusable floor. */
.iso-tile.locked { fill: #0c0c0a; stroke: #171714; opacity: 0.55; }

/* Empty buildable slots */
.iso-slot { cursor: pointer; }
.slot-pad {
  fill: rgba(204, 255, 0, 0.05);
  stroke: rgba(204, 255, 0, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
  transition: fill 0.15s, stroke 0.15s;
}
.iso-slot:hover .slot-pad { fill: rgba(204, 255, 0, 0.16); stroke: var(--lime); }
.slot-plus {
  fill: rgba(204, 255, 0, 0.75);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}
.iso-slot:hover .slot-plus { fill: var(--lime); }

/* Back walls + grow lights */
.wall { stroke: #0a0a0a; stroke-width: 1; }
.wall-left { fill: #121210; }
.wall-right { fill: #17170f; }
.led {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.7));
}
.trim { fill: none; stroke: rgba(204, 255, 0, 0.25); stroke-width: 1.5; }
/* Volumetric beam + floor pool (fills come from SVG gradient defs) */
.light-beam { pointer-events: none; }
.light-pool { pointer-events: none; }
.light-cord { stroke: #333; stroke-width: 1.5; }
.light-bar { fill: #202020; stroke: #0a0a0a; stroke-width: 1; }
.light-led { fill: var(--lime); filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.9)); }

/* Wall décor */
.decor-poster { fill: #14170e; stroke: rgba(204, 255, 0, 0.35); stroke-width: 1; }
.decor-glyph { font-size: 13px; opacity: 0.65; pointer-events: none; }
.decor-vent { fill: #0f0f0d; stroke: #2a2a24; stroke-width: 1; }
.decor-slat { stroke: #2a2a24; stroke-width: 1; }
.decor-cable { fill: none; stroke: #2b2b2b; stroke-width: 1.6; }
.decor-socket { fill: #1d1d1a; stroke: #333; stroke-width: 1; }

.fan-housing { fill: #101010; stroke: #2e2e2e; stroke-width: 1.5; }
.fan-blade { fill: #2b2b2b; }
.fan-hub { fill: #444; }
.fan-blades { animation: fanspin 1.1s linear infinite; }
@keyframes fanspin { to { transform: rotate(360deg); } }

/* Dust motes drifting through the beams */
.dust {
  fill: rgba(204, 255, 0, 0.5);
  animation-name: dustdrift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  pointer-events: none;
}
@keyframes dustdrift {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.55; }
  85%  { opacity: 0.4; }
  100% { transform: translate(6px, -70px); opacity: 0; }
}

/* Pots + plants */
.iso-building { cursor: pointer; }
.iso-building:hover .leaf { filter: brightness(1.3); }
.iso-building:hover .pot-body { filter: brightness(1.25); }
.pot-shadow, .ready-halo { pointer-events: none; }
.pot-body { fill: #2a2622; stroke: #0a0a0a; stroke-width: 1; stroke-linejoin: round; }
.pot-hilite { fill: rgba(255, 255, 255, 0.05); }
.pot-rim { fill: #38322b; stroke: #0a0a0a; stroke-width: 1; }
.pot-soil { fill: #3a2a1c; }
.soil-speck { fill: #55402c; }
.plant-stem { stroke: #2f7d1e; stroke-width: 2; }
.leaf { fill: #43b02a; stroke: #2f7d1e; stroke-width: 0.75; }
.leaf.back { fill: #2c7a1c; stroke: #235f16; }
.bud { stroke: rgba(0,0,0,0.35); stroke-width: 0.5; }
.iso-building.ready .leaf { filter: brightness(1.18); }
.iso-building.ready .bud { filter: drop-shadow(0 0 3px rgba(204, 255, 0, 0.7)); }
.iso-emoji { font-size: 12px; pointer-events: none; }

.coin-circle {
  fill: var(--lime);
  stroke: #0a0a0a;
  stroke-width: 1.5;
}
.coin-text {
  fill: #0a0a0a;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}
.coin-bubble { animation: coinbob 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.coin-bubble.full { animation: coinpulse 0.9s ease-in-out infinite; }

@keyframes coinbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
@keyframes coinpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.float-cash {
  fill: var(--lime);
  font-size: 15px;
  font-weight: 800;
  pointer-events: none;
  animation: floatup 0.9s ease-out forwards;
}
.float-cash.mut-wet { fill: #7fc7ff; }
.float-cash.mut-gold { fill: var(--gold); }
.float-cash.mut-rainbow { fill: #ff8fd4; }

@keyframes floatup {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-26px); opacity: 0; }
}

/* ============ STATS PANEL ============ */
.stats-grid { display: flex; flex-direction: column; gap: 10px; }
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-value { font-weight: 800; color: var(--lime); font-size: 16px; }

/* ============ BUILD MENU ============ */
.btn-mini {
  padding: 8px 12px;
  font-size: 13px;
  background: var(--lime);
  color: var(--bg);
  border-radius: 9px;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
}
.btn-mini:hover:not(:disabled) { background: #d9ff33; }
.btn-mini:disabled { opacity: 0.4; cursor: not-allowed; }
.shop-item {
  cursor: default;
  position: relative;
  overflow: hidden;
  padding-left: 16px;
}
/* Strain-coloured accent bar down the left edge of each shop row */
.shop-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tier-color, var(--lime));
  opacity: 0.85;
}
.shop-item .owned { color: var(--lime); font-size: 12px; font-weight: 700; }

/* ============ BUY QUANTITY ============ */
.qty-group {
  display: flex;
  gap: 4px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}
.qty-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qty-btn:hover { color: var(--text); }
.qty-btn.active { background: var(--lime); color: var(--bg); }

/* ============ POT POPOVER ============ */
.pot-popover {
  position: fixed;
  z-index: 50;
  width: 250px;
  background: var(--card);
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(204, 255, 0, 0.1);
}
.pp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pp-emoji { font-size: 24px; }
.pp-name { font-weight: 800; font-size: 15px; }
.pp-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pp-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.pp-row span:last-child { color: var(--lime); font-weight: 700; }
.pot-popover .btn { width: 100%; }
.pp-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* Offline earnings figure */
.offline-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--lime);
  text-align: center;
  margin: 14px 0;
  text-shadow: 0 0 30px rgba(204, 255, 0, 0.35);
}

/* ============ CONNECTED NAV BUTTONS ============ */
.btn.connected {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(204, 255, 0, 0.08);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-note { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.4; }
.modal-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
.modal-input:focus { outline: none; border-color: var(--lime); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Leaderboard */
.lb-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.lb-row.me { border-color: var(--lime); background: rgba(204, 255, 0, 0.1); }
.lb-rank { color: var(--muted); font-weight: 700; font-size: 13px; width: 34px; }
.lb-name { flex: 1; font-weight: 600; font-size: 14px; }
.lb-worth { color: var(--lime); font-weight: 800; font-size: 14px; }

/* ============ ISO RESPONSIVE ============ */
@media (max-width: 820px) {
  .iso-svg { max-height: none; }
}

@media (max-width: 480px) {
  body { padding: 12px; gap: 12px; }
  .topbar { padding: 14px 16px; }
  .brand-name { font-size: 16px; }
  .wallet-amount { font-size: 24px; }
  .panel { padding: 16px; }
  .garden-grid { gap: 8px; }
}

/* ============ Lab upgrades panel ============ */
.upgrades-panel .upgrades-list { display: flex; flex-direction: column; gap: 10px; }
.upg-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.upg-info { display: flex; flex-direction: column; min-width: 0; }
.upg-name { font-weight: 800; color: #fff; font-size: 14px; }
.upg-tier { font-size: 12px; color: var(--muted); }
.upg-actions { display: flex; gap: 6px; }

/* ============ Growhouse switcher ============ */
.gh-select {
  background: rgba(0,0,0,0.4); color: #fff; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 6px 10px; font-family: inherit; font-weight: 700;
  font-size: 13px; cursor: pointer; max-width: 180px;
}
.gh-select:hover { border-color: var(--lime); }

/* ============ Lab upgrade tiers (visible in the iso room) ============ */
/* Lights: LED brightness/color shifts, beams get thicker, buds glow more. */
.iso-svg .led                     { stroke: rgba(204,255,0,0.55); stroke-width: 1.5; }
.iso-svg.lights-t1 .led           { stroke: rgba(180,255,90,0.85); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(204,255,0,0.6)); }
.iso-svg.lights-t2 .led           { stroke: rgba(150,255,120,0.95); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(204,255,0,0.7)); }
.iso-svg.lights-t3 .led           { stroke: rgba(120,220,255,0.95); stroke-width: 2.8; filter: drop-shadow(0 0 8px rgba(120,220,255,0.85)); }
.iso-svg.lights-t4 .led           { stroke: rgba(200,180,255,1); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(200,180,255,0.9)); }
.iso-svg.lights-t5 .led           { stroke: rgba(255,240,120,1); stroke-width: 3.4; filter: drop-shadow(0 0 14px rgba(255,240,120,1)); }

.iso-svg.lights-t1 .light-led     { fill: #d4ff40; filter: drop-shadow(0 0 6px rgba(204,255,0,1)); }
.iso-svg.lights-t2 .light-led     { fill: #a8ff5a; filter: drop-shadow(0 0 8px rgba(150,255,90,1)); }
.iso-svg.lights-t3 .light-led     { fill: #82e3ff; filter: drop-shadow(0 0 10px rgba(120,220,255,1)); }
.iso-svg.lights-t4 .light-led     { fill: #c8b4ff; filter: drop-shadow(0 0 12px rgba(200,180,255,1)); }
.iso-svg.lights-t5 .light-led     { fill: #fff08a; filter: drop-shadow(0 0 16px rgba(255,240,120,1)); }

.iso-svg.lights-t1 .light-beam    { opacity: 1.05; }
.iso-svg.lights-t2 .light-beam    { opacity: 1.2; }
.iso-svg.lights-t3 .light-beam    { opacity: 1.35; filter: url(#softBlur) hue-rotate(160deg); }
.iso-svg.lights-t4 .light-beam    { opacity: 1.4; filter: url(#softBlur) hue-rotate(220deg); }
.iso-svg.lights-t5 .light-beam    { opacity: 1.55; filter: url(#softBlur) hue-rotate(30deg) saturate(1.4); }
.iso-svg.lights-t3 .light-pool,
.iso-svg.lights-t4 .light-pool,
.iso-svg.lights-t5 .light-pool    { filter: url(#softBlur) saturate(1.4); }

.iso-svg.lights-t2 .leaf          { filter: brightness(1.12) saturate(1.15); }
.iso-svg.lights-t3 .leaf          { filter: brightness(1.22) saturate(1.25); }
.iso-svg.lights-t4 .leaf          { filter: brightness(1.32) saturate(1.35); }
.iso-svg.lights-t5 .leaf          { filter: brightness(1.42) saturate(1.5); }
.iso-svg.lights-t3 .bud           { filter: drop-shadow(0 0 4px rgba(120,220,255,0.9)); }
.iso-svg.lights-t4 .bud           { filter: drop-shadow(0 0 6px rgba(200,180,255,0.9)); }
.iso-svg.lights-t5 .bud           { filter: drop-shadow(0 0 8px rgba(255,240,120,1)); }

/* Ventilation: fan spins faster, vent grille glows, extra slats appear. */
.iso-svg.vent-t0 .fan-blades      { animation-duration: 2.4s; }
.iso-svg.vent-t1 .fan-blades      { animation-duration: 1.1s; }
.iso-svg.vent-t2 .fan-blades      { animation-duration: 0.7s; }
.iso-svg.vent-t3 .fan-blades      { animation-duration: 0.45s; }
.iso-svg.vent-t4 .fan-blades      { animation-duration: 0.25s; }
.iso-svg.vent-t2 .fan-housing     { stroke: #ccff00; filter: drop-shadow(0 0 4px rgba(204,255,0,0.6)); }
.iso-svg.vent-t3 .fan-housing     { stroke: #ccff00; filter: drop-shadow(0 0 6px rgba(204,255,0,0.75)); }
.iso-svg.vent-t4 .fan-housing     { stroke: #ff3060; filter: drop-shadow(0 0 8px rgba(255,60,90,0.85)); }
.iso-svg.vent-t2 .decor-slat      { stroke: rgba(204,255,0,0.6); }
.iso-svg.vent-t3 .decor-slat      { stroke: rgba(204,255,0,0.85); filter: drop-shadow(0 0 3px rgba(204,255,0,0.7)); }
.iso-svg.vent-t4 .decor-slat      { stroke: rgba(255,240,120,1); filter: drop-shadow(0 0 4px rgba(255,240,120,0.9)); }

/* ============ The Street: isometric SVG city ============ */
.street-main { padding: 24px; max-width: 1400px; margin: 0 auto; }
.street-panel { padding: 22px; }
.street-viewport {
  position: relative;
  margin-top: 18px;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(120,80,180,0.14), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(204,255,0,0.05), transparent 60%),
    linear-gradient(180deg, #0b0b12 0%, #050508 100%);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.st-svg {
  display: block; width: 100%; height: 640px;
  cursor: grab; touch-action: none; user-select: none;
}
.st-svg.dragging { cursor: grabbing; }

.st-controls {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.72); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 6px 8px; backdrop-filter: blur(8px);
}
.st-zbtn {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); color: #fff; font-size: 18px; font-weight: 900;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.st-zbtn:hover { background: rgba(204,255,0,0.18); border-color: var(--lime); color: var(--lime); }
.st-zoom { font-family: "Bangers", "Impact", sans-serif; letter-spacing: 1px; color: var(--lime); min-width: 46px; text-align: center; font-size: 15px; }
.st-hint {
  position: absolute; bottom: 10px; left: 14px; z-index: 3;
  font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.6px; text-transform: uppercase; pointer-events: none;
}

/* Ground / roads */
.st-ground   { fill: #0e0f16; stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.st-lane     { fill: none; stroke: rgba(255,235,120,0.16); stroke-width: 2; stroke-dasharray: 8 10; stroke-linecap: round; }
.st-ringroad { fill: none; stroke: #16171f; stroke-width: 26; stroke-linejoin: round; }
.st-ringlane { fill: none; stroke: rgba(255,235,120,0.22); stroke-width: 2; stroke-dasharray: 10 12; stroke-linejoin: round; }
.st-sidewalk { fill: #191b23; stroke: rgba(255,255,255,0.05); stroke-width: 0.75; }

/* Filler city buildings (non-interactive backdrop) */
.st-filler { pointer-events: none; }

/* Building shared bits */
.st-win { }

/* Lot buildings */
.st-lot { cursor: pointer; transition: filter .15s ease; }
.st-lot:hover { filter: brightness(1.18) drop-shadow(0 6px 14px rgba(0,0,0,0.75)); }
.st-lot.owned:hover     { filter: brightness(1.18) drop-shadow(0 0 18px rgba(204,255,0,0.7)); }
.st-lot.enemy:hover     { filter: brightness(1.18) drop-shadow(0 0 18px rgba(255,60,90,0.75)); }
.st-lot.buyable:hover   { filter: brightness(1.22) drop-shadow(0 0 14px rgba(204,255,0,0.5)); }
.st-lot.abandoned:hover { filter: brightness(1.22) drop-shadow(0 0 14px rgba(255,180,0,0.5)); }
.st-lot-glow { pointer-events: none; }
.st-roof-emoji { font-size: 17px; }
.st-label { font-family: "Bangers", "Impact", sans-serif; font-size: 12px; letter-spacing: 0.8px; fill: #fff; }
.st-sub   { font-size: 9.5px; fill: rgba(255,255,255,0.7); font-weight: 700; letter-spacing: 0.3px; }
.st-lot.owned .st-sub, .st-plaque.owned .st-sub  { fill: var(--lime); }
.st-lot.enemy .st-sub, .st-plaque.enemy .st-sub  { fill: #ffb0b8; }
.st-plaque { cursor: pointer; }
.st-plaque:hover rect { filter: brightness(1.3); }
.st-lot.enemy.tier-5 .st-roof-emoji { filter: drop-shadow(0 0 6px rgba(255,60,90,0.9)); }

/* Cars */
.st-car { pointer-events: none; }
.st-car rect { stroke: rgba(0,0,0,0.6); stroke-width: 0.5; }

/* ============ Raid modal ============ */
.raid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.raid-stats > div {
  background: rgba(255,255,255,0.05); border-radius: 8px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.rs-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.rs-value { font-weight: 800; color: #fff; font-size: 14px; }
.spinner {
  position: relative; height: 66px; margin: 14px 0;
  border-radius: 10px; overflow: hidden;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.1);
}
.spinner-track {
  position: absolute; top: 5px; left: 0; height: 56px;
  display: flex; align-items: center; will-change: transform;
}
.spinner-track .seg {
  flex: 0 0 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.spinner-track .seg.ok  { background: rgba(0,255,110,0.18); }
.spinner-track .seg.bad { background: rgba(255,60,90,0.18); }
.spinner-needle {
  position: absolute; top: -4px; bottom: -4px; left: 50%; width: 3px;
  background: var(--lime); box-shadow: 0 0 12px var(--lime); transform: translateX(-50%);
  border-radius: 2px; z-index: 2;
}
.raid-result { text-align: center; min-height: 22px; margin: 8px 0; font-weight: 800; font-size: 15px; }
.rr-win  { color: var(--lime); }
.rr-lose { color: #ff5b6a; }

.lot-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; background: rgba(255,255,255,0.05); border-radius: 10px; margin: 12px 0; }
.lot-summary > div:first-child { display: flex; gap: 12px; align-items: center; }
.lot-summary .lb-rank { font-size: 32px; }
.lot-price { font-family: "Bangers", "Impact", sans-serif; color: var(--lime); font-size: 24px; letter-spacing: 1px; }
.muted { color: var(--muted); font-size: 12px; }

