:root {
  --g: #39ff9a;
  --g2: #b6ff3d;
  --p: #ff2ec8;
  --p2: #ff6ad5;
  --c: #7fe8ff;
  --gold: #ffd166;
  --ink: #03110c;
  --panel: rgba(6, 14, 18, 0.78);
  --line: rgba(57, 255, 154, 0.35);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  color: #f4fff8;
  font: 600 15px/1.4 Rajdhani, system-ui, sans-serif;
  background: #02080a;
}
button, a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Night jungle wash over real tropical stills (existing public assets). */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 10, 14, 0.42) 0%, rgba(2, 8, 12, 0.55) 40%, rgba(1, 6, 8, 0.78) 100%),
    url('/rooms/beachfront-bungalow.png') center 30% / cover no-repeat;
  filter: saturate(1.35) contrast(1.08);
}
.bg::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 42% at 8% 18%, rgba(255, 46, 200, 0.38), transparent 58%),
    radial-gradient(ellipse 48% 38% at 92% 8%, rgba(57, 255, 154, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(0, 20, 18, 0.92), transparent 50%);
}
.bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    url('/splash/paradise-hero.png') left 20% / 58% auto no-repeat;
  opacity: 0.22;
  mix-blend-mode: screen;
  filter: hue-rotate(80deg) saturate(1.6) brightness(0.55);
}
.mist {
  position: fixed; inset: auto 0 0; height: 38vh; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 18, 22, 0.55) 40%, rgba(2, 8, 10, 0.88));
}

#gl {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  width: 100%; height: 100%; display: block;
}

.page { position: relative; z-index: 5; padding-bottom: 48px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: calc(10px + var(--safe-t)) 22px 10px;
  background: linear-gradient(180deg, rgba(4, 8, 12, 0.92), rgba(4, 8, 12, 0.72));
  border-bottom: 1px solid rgba(255, 46, 200, 0.25);
  backdrop-filter: blur(16px);
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 10px var(--p)); }
.brand b {
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.14em;
  font-size: 15px;
}
.brand small {
  display: block;
  color: var(--p2);
  font: 700 8px/1.1 Rajdhani, sans-serif;
  letter-spacing: 0.22em;
}
.links {
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
}
.links a {
  text-decoration: none;
  padding: 8px 12px;
  font: 700 12px/1 Orbitron, sans-serif;
  letter-spacing: 0.14em;
  color: #d7ffe8;
  opacity: 0.78;
  border-radius: 999px;
}
.links a:hover, .links a.on {
  opacity: 1;
  color: #fff;
  text-shadow: 0 0 12px var(--g);
}
.links a.on { background: rgba(57, 255, 154, 0.12); }
.tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: grid; place-items: center;
}
.ghost, .solid {
  min-height: 40px; border-radius: 12px; padding: 0 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
  font: 800 11px/1 Orbitron, sans-serif; text-decoration: none;
  display: inline-grid; place-items: center;
}
.ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
}
.solid {
  border: 0;
  background: linear-gradient(90deg, var(--p), #ff7ae0);
  color: #1a0414;
  box-shadow: 0 0 18px rgba(255, 46, 200, 0.45);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 18px 22px 6px;
  display: grid;
  grid-template-columns: 180px 1fr 280px;
  gap: 12px;
  align-items: start;
}
.neon-sign {
  font-family: Pacifico, cursive;
  color: var(--p2);
  text-shadow: 0 0 8px var(--p), 0 0 22px var(--p);
  line-height: 1.05;
  transform: rotate(-8deg);
  margin-top: 18px;
}
.neon-sign.right {
  text-align: right;
  transform: rotate(7deg);
  margin-top: 8px;
  color: #ff8aef;
}
.neon-sign b { display: block; font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; }
.hero-center { text-align: center; padding-top: 6px; }
.hero-center h1 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(28px, 4.6vw, 58px);
  letter-spacing: 0.04em;
  font-weight: 900;
  color: #edfff4;
  -webkit-text-stroke: 1.4px var(--g);
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.85), 0 0 28px rgba(57, 255, 154, 0.45);
}
.hero-center p {
  margin: 6px 0 14px;
  letter-spacing: 0.34em;
  font-size: 12px;
  color: var(--c);
  text-transform: uppercase;
}
.pills {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.pill { width: 92px; text-align: center; }
.pill i {
  width: 44px; height: 44px; margin: 0 auto 6px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.2), transparent 45%),
    rgba(8, 20, 18, 0.7);
  border: 1.5px solid color-mix(in srgb, var(--a, var(--g)) 70%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--a, var(--g)) 45%, transparent);
  color: var(--a, var(--g));
}
.pill span {
  display: block;
  font: 700 10px/1.2 Rajdhani, sans-serif;
  letter-spacing: 0.04em;
  color: #d4ffe6;
}
.poster {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 46, 200, 0.45);
  box-shadow: 0 0 28px rgba(255, 46, 200, 0.22);
  background: #041018;
  min-height: 132px;
  position: relative;
}
.poster img {
  width: 100%; height: 132px; object-fit: cover; filter: saturate(1.3) contrast(1.1);
}
.poster figcaption {
  position: absolute; left: 10px; bottom: 8px;
  font-family: Orbitron, sans-serif; font-size: 11px; letter-spacing: 0.16em;
  text-shadow: 0 0 10px #000;
}
.poster em {
  position: absolute; right: 10px; top: 8px;
  font: 700 9px/1 Pacifico, cursive;
  color: var(--p2);
  font-style: normal;
  text-shadow: 0 0 10px var(--p);
}

/* ── Stage ── */
.stage-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 18px;
  padding: 4px 22px 10px;
  align-items: stretch;
}
.carousel {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
}
.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: end;
  min-height: 360px;
}
.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.portal {
  width: 100%;
  height: 250px;
  border-radius: 18px;
  position: relative;
}
.slot.center .portal { height: 300px; }
.slot .thumb {
  position: absolute; inset: 18px 10px 48px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.45));
  transition: opacity .3s;
  animation: petBob 2.6s ease-in-out infinite;
}
.slot.ready .thumb { opacity: 0; animation: none; }
@keyframes petBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.glow-ring {
  width: 78%;
  height: 28px;
  margin-top: -18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--a) 70%, transparent), transparent 70%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--a) 55%, transparent);
  pointer-events: none;
}
.slot.center .glow-ring {
  height: 34px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--a) 80%, transparent);
}
.plate {
  margin-top: 4px;
  min-width: 72%;
  padding: 7px 10px;
  border-radius: 999px;
  text-align: center;
  font: 800 11px/1 Orbitron, sans-serif;
  letter-spacing: 0.14em;
  background: rgba(4, 10, 12, 0.78);
  border: 1.5px solid color-mix(in srgb, var(--a) 75%, #fff 10%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--a) 35%, transparent);
}
.slot.center .plate {
  background: rgba(6, 22, 18, 0.9);
  transform: scale(1.06);
}
.arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(57, 255, 154, 0.45);
  background: rgba(4, 16, 12, 0.7);
  color: var(--g);
  font-size: 22px;
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.25);
}
.arrow:hover { background: rgba(57, 255, 154, 0.16); }

/* ── Detail ── */
.detail {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: linear-gradient(165deg, rgba(8, 22, 24, 0.88), rgba(4, 10, 14, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 0 40px rgba(57, 255, 154, 0.05);
}
.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.detail-head h2 {
  margin: 0;
  font: 900 28px/1 Orbitron, sans-serif;
  letter-spacing: 0.08em;
}
.badge {
  font: 800 10px/1 Orbitron, sans-serif;
  letter-spacing: 0.16em;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b3b00, #c9a227);
  color: #fff6d2;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.35);
}
.detail .blurb {
  margin: 8px 0 14px;
  color: #c9e8d8;
  font-weight: 500;
  font-size: 13px;
}
.stat {
  display: grid;
  grid-template-columns: 18px 78px 1fr;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  font: 700 11px/1 Orbitron, sans-serif;
  letter-spacing: 0.08em;
  color: #d7ffe8;
}
.bar {
  height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.bar > i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--g), var(--c));
  box-shadow: 0 0 10px var(--g);
  transition: width .45s ease;
}
.adopt-cta {
  width: 100%;
  margin-top: 14px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font: 800 13px/1 Orbitron, sans-serif;
  letter-spacing: 0.14em;
  color: #04140a;
  background: linear-gradient(90deg, var(--g), var(--g2));
  box-shadow: 0 0 24px rgba(57, 255, 154, 0.4);
}
.preview-3d {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--c);
  letter-spacing: 0.16em;
  font: 800 11px/1 Orbitron, sans-serif;
  text-decoration: none;
  text-align: center;
  padding: 8px 0;
}

/* ── Strip ── */
.strip-block { padding: 6px 22px 8px; }
.strip-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  margin-bottom: 8px;
}
.strip-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 12px;
  scrollbar-color: var(--g) transparent;
}
.strip-card {
  flex: 0 0 86px;
  background: none; border: 0; color: inherit; padding: 0;
  cursor: pointer;
}
.strip-card .mini {
  width: 86px; height: 86px; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,.1);
  background: rgba(6, 12, 16, 0.7);
  position: relative;
  overflow: hidden;
}
.strip-card.on .mini {
  border-color: var(--g);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.4);
}
.strip-card img {
  position: absolute; inset: 6px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.4));
  transition: opacity .25s;
  animation: petBob 2.4s ease-in-out infinite;
}
.strip-card.ready img { opacity: 0; animation: none; }
.strip-card b {
  display: block; margin-top: 6px;
  font: 800 9px/1 Orbitron, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0.85;
}
.count-card {
  margin-left: auto;
  min-width: 150px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 46, 200, 0.4);
  background: rgba(12, 6, 16, 0.75);
  text-align: right;
}
.count-card strong {
  display: block;
  font: 900 34px/1 Orbitron, sans-serif;
  color: var(--p2);
  text-shadow: 0 0 16px var(--p);
}
.count-card span {
  font: 800 10px/1.25 Orbitron, sans-serif;
  letter-spacing: 0.12em;
  color: #ffd6f2;
}

/* ── Bottom ── */
.bottom {
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  gap: 16px;
  padding: 8px 22px 20px;
  align-items: stretch;
}
.panel {
  border-radius: 18px;
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
}
.panel h3 {
  margin: 0 0 10px;
  font: 800 12px/1 Orbitron, sans-serif;
  letter-spacing: 0.16em;
  color: var(--c);
}
.customize {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.customize a, .customize span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  font: 700 10px/1 Rajdhani, sans-serif;
  letter-spacing: 0.06em;
}
.customize svg { width: 22px; height: 22px; color: var(--g); }
.promo {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(4,8,12,.15), rgba(4,8,12,.55)),
    url('/racing/cars/neon-viper.webp') 90% 60% / 62% auto no-repeat,
    url('/rooms/beachfront-bungalow.png') center / cover;
}
.promo h3 {
  margin: 0;
  font: 900 clamp(18px, 2.4vw, 28px)/1.05 Orbitron, sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px var(--p);
  max-width: 16rem;
}
.promo small {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.18em;
  color: var(--c);
  font: 700 10px/1 Orbitron, sans-serif;
}
.journey ol { margin: 0; padding: 0 0 0 18px; }
.journey li { margin: 6px 0; font-weight: 600; color: #d7ffe8; }
.slogan {
  margin-top: 14px;
  font-family: Pacifico, cursive;
  font-size: 22px;
  color: var(--p2);
  text-shadow: 0 0 12px var(--p);
  transform: rotate(-6deg);
  text-align: right;
}

.review-note {
  text-align: center;
  font: 700 11px/1.4 Rajdhani, sans-serif;
  letter-spacing: 0.12em;
  color: #8fb9a8;
  opacity: 0.8;
  padding-bottom: calc(12px + var(--safe-b));
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 40;
  display: none;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  padding: 24px;
}
.lightbox.on { display: grid; place-items: center; }
.lightbox .box {
  width: min(720px, 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070c10;
}
.lightbox .portal { height: min(62vh, 520px); width: 100%; touch-action: none; cursor: grab; }
.lightbox .box footer {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
}

@media (max-width: 1100px) {
  .hero, .stage-row, .bottom { grid-template-columns: 1fr; }
  .neon-sign { display: none; }
  .poster { display: none; }
  .carousel { grid-template-columns: 44px 1fr 44px; }
  .slots { gap: 4px; }
  .portal { height: 200px; }
  .slot.center .portal { height: 240px; }
}
@media (max-width: 430px) {
  html, body { overflow-x: hidden; }
  .nav {
    grid-template-columns: 1fr auto;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .links { display: none; }
  .tools .icon-btn { display: none; }
  .page { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .hero-center h1 { font-size: 26px; }
  .pills { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .slot, .strip-card, .arrow, .adopt-cta, .preview-3d, .ghost, .solid {
    min-height: 44px;
  }
  .adopt-cta {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    z-index: 12;
  }
  .detail { max-height: none; }
  .lightbox { padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
}
.mp-adopt-confirm[hidden] { display: none; }
.mp-adopt-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(57, 255, 20, 0.22), transparent 55%),
    #03050a;
}
.mp-adopt-confirm__card {
  width: min(92vw, 420px);
  text-align: center;
  padding: 32px 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(57, 255, 136, 0.45);
  background: rgba(6, 10, 18, 0.92);
}
.mp-adopt-confirm__kicker {
  margin: 0;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #39ff88;
  font: 800 11px/1 Orbitron, system-ui, sans-serif;
}
.mp-adopt-confirm__title {
  margin: 14px 0 10px;
  font: 900 clamp(2.2rem, 8vw, 3.2rem)/1 Impact, "Arial Black", sans-serif;
  color: #fff;
}
.mp-adopt-confirm__body {
  margin: 0 0 22px;
  color: rgba(244, 255, 248, 0.82);
}
.mp-adopt-confirm__cta {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: 900 16px/1 Impact, "Arial Black", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04110a;
  background: linear-gradient(135deg, #39ff14, #7fe8ff);
  cursor: pointer;
}
