:root {
  --bg: #0b0612;
  --wall-top: #241029;
  --wall-bottom: #150a1c;
  --text: #f6f1ff;
  --cream: #f3ead8;
  --muted: #b9aecb;
  --red: #ff3b3b;
  --violet: #8b3dff;
  --cyan: #3de0ff;
  --gold: #e3c27a;
  --gold-grad: linear-gradient(135deg, #7a5a22 0%, #f3d98b 22%, #a47c30 45%, #f6e3a1 70%, #7a5a22 100%);
  --grad: linear-gradient(90deg, var(--red), var(--violet));
  --topbar: 64px;
  --floor: 15vh;
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 30px rgba(139, 61, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 59, 59, 0.4); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-big { padding: 17px 38px; font-size: 1.15rem; }
.btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(16px, 3vw);
  background: linear-gradient(to bottom, rgba(8, 4, 12, 0.92), rgba(8, 4, 12, 0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227, 194, 122, 0.2);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.brand img { border-radius: 50%; border: 1px solid var(--gold); }
.rooms-nav { display: flex; gap: 26px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.rooms-nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.rooms-nav a:hover, .rooms-nav a.active { color: var(--gold); border-color: var(--gold); }

/* ===== Hall: sticky viewport, track moves sideways ===== */
.hall-view {
  height: 100vh;
  height: 100svh;
  overflow-x: auto;       /* no-JS fallback: plain horizontal scroll */
  overflow-y: hidden;
}
.walk .hall-view { position: sticky; top: 0; overflow: hidden; }

.track {
  position: relative;
  display: flex;
  height: 100%;
  width: max-content;
  padding: var(--topbar) 0 var(--floor);
  will-change: transform;
  /* wall: wainscot panels + ambient brand glow */
  background:
    radial-gradient(ellipse 40vw 60vh at 0% 30%, rgba(255, 59, 59, 0.22), transparent 70%),
    radial-gradient(ellipse 40vw 60vh at 100% 30%, rgba(139, 61, 255, 0.28), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 318px, rgba(255, 255, 255, 0.025) 318px 320px, rgba(0, 0, 0, 0.25) 320px 322px),
    linear-gradient(to bottom, var(--wall-top), var(--wall-bottom));
}
/* ceiling rail */
.track::before {
  content: "";
  position: absolute;
  inset: var(--topbar) 0 auto 0;
  height: 6px;
  background: linear-gradient(to bottom, #0a050d, #1b0e20);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
/* polished floor with baseboard */
.track::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--floor);
  border-top: 6px solid #0c060f;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 180px),
    linear-gradient(to bottom, rgba(139, 61, 255, 0.18), transparent 60%),
    linear-gradient(to bottom, #2a1812, #120a08);
}

/* ===== Rooms ===== */
.room {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 5vw;
}
/* ceiling spotlight */
.lit::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 140%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 45% 75% at 50% 0%, rgba(255, 236, 200, 0.16), transparent 70%);
  pointer-events: none;
}
.lit::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 46px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#2b2230, #0d0910);
  box-shadow: 0 6px 18px rgba(255, 236, 200, 0.45);
}
.lit-cyan::before { background: radial-gradient(ellipse 45% 75% at 50% 0%, rgba(61, 224, 255, 0.14), transparent 70%); }
.lit-cyan::after { box-shadow: 0 6px 18px rgba(61, 224, 255, 0.6); }

.eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold); }

/* ===== Entrance ===== */
.room-entrance { padding: 0 8vw 0 6vw; width: 100vw; }
.entrance { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 820px; }
.entrance-logo {
  width: clamp(84px, 14vh, 140px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 50px rgba(139, 61, 255, 0.55), 0 0 0 6px rgba(227, 194, 122, 0.15);
  margin-bottom: 2vh;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.1; }
h1 {
  margin: 1vh 0;
  font-size: clamp(2.6rem, min(8vw, 10vh), 5.6rem);
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(227, 194, 122, 0.25));
}
.ticker { font-weight: 800; letter-spacing: 0.12em; font-size: clamp(1rem, 2.4vh, 1.3rem); }

.ca-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vh;
  width: min(760px, 88vw);
  margin-top: 3vh;
  padding: 2.4vh 20px;
  border-radius: 6px;
  background: var(--gold-grad);
  color: #2a1a05;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.25), inset 0 0 0 7px rgba(90, 60, 15, 0.35);
}
.ca-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.25em; }
.ca-value {
  max-width: 100%;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2.2vw, 1.6rem);
  overflow-wrap: anywhere;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ca-copy {
  padding: 10px 30px;
  border: 0;
  border-radius: 999px;
  background: #1a0e20;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.ca-copy:hover { transform: translateY(-2px); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 3vh; }

.walk-hint {
  position: absolute;
  right: 3vw;
  bottom: calc(var(--floor) + 2vh);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.walk-hint span { display: inline-block; color: var(--gold); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

/* ===== Framed artworks ===== */
.artwork { display: flex; align-items: flex-end; gap: 28px; }
.frame {
  display: block;
  width: min(calc(58vh * 1.5), 72vw);
  padding: clamp(10px, 1.6vh, 18px);
  border: 0;
  background: var(--gold-grad);
  box-shadow:
    0 35px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    inset 0 0 0 5px rgba(80, 55, 15, 0.5);
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.frame:hover { transform: translateY(-4px); box-shadow: 0 45px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(227, 194, 122, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.35), inset 0 0 0 5px rgba(80, 55, 15, 0.5); }
.frame-dark {
  background: linear-gradient(135deg, #0e0a10, #3a2f3e 30%, #121014 55%, #2c2430 80%, #0b080c);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.65), inset 0 0 0 2px rgba(227, 194, 122, 0.55), inset 0 0 0 5px rgba(0, 0, 0, 0.5);
}
.mat {
  display: block;
  padding: clamp(10px, 2.2vh, 24px);
  background: #efe7da;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45);
}
.mat img { width: 100%; height: auto; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.35); }
.artwork-wide .frame { width: min(calc(40vh * 3), 78vw); }

.placard {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 220px;
  flex: none;
  padding: 14px 16px;
  background: #f4efe6;
  color: #231a22;
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.placard-no { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: #8a6a2b; }
.placard strong { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.placard em { color: #6b5f6a; font-size: 0.75rem; }

/* ===== Museum plaques ===== */
.plaque {
  position: relative;
  width: min(600px, 84vw);
  max-height: calc(100% - 6vh);
  overflow-y: auto;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 3vw, 40px);
  background: linear-gradient(160deg, #1c1020, #0e0812);
  color: var(--cream);
  border: 1px solid var(--gold);
  outline: 1px solid rgba(227, 194, 122, 0.35);
  outline-offset: -9px;
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6);
}
.plaque-label { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 8px; }
.plaque h2 { font-size: clamp(1.8rem, 4.5vh, 2.6rem); margin-bottom: 12px; }
.plaque h3 { font-size: 1.7rem; margin-bottom: 14px; }
.plaque p { color: #d9cfe0; }
.plaque .btn { margin-top: 20px; }
.plaque-small { width: min(440px, 80vw); }
.plaque-phase { width: min(340px, 76vw); }
.plaque-phase ul { list-style: none; display: grid; gap: 10px; color: #d9cfe0; }
.plaque-phase li { padding-left: 26px; position: relative; }
.plaque-phase li::before { content: "🐾"; position: absolute; left: 0; font-size: 0.85rem; }

.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 20px; }
.crew dt { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; }
.crew dd { color: #b9aec3; font-size: 0.9rem; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 10px; background: rgba(227, 194, 122, 0.25); }
.stats div { display: flex; flex-direction: column; padding: 18px 12px; background: #150c19; text-align: center; }
.stats strong { font-family: var(--serif); font-size: clamp(1.2rem, 3vh, 1.6rem); color: var(--gold); }
.stats span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; color: #d9cfe0; font-size: 0.95rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 800;
  color: var(--gold);
}
.steps strong { color: var(--cream); }

/* ===== Exhibition screen (DexScreener) ===== */
.exhibit-screen {
  width: min(calc(60vh * 1.6), 86vw);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(145deg, #1b1f2e, #07080d);
  border: 1px solid rgba(61, 224, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(139, 61, 255, 0.4),
    0 0 40px rgba(61, 224, 255, 0.25),
    0 0 90px rgba(139, 61, 255, 0.25),
    0 35px 60px rgba(0, 0, 0, 0.7);
}
.screen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.screen-head a { margin-left: auto; color: var(--muted); text-transform: none; letter-spacing: 0; }
.screen-head a:hover { color: var(--cyan); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 10px #ff3b5c; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.screen-body { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #050608; }
.screen-body iframe { width: 100%; height: 100%; border: 0; }
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 60px rgba(61, 224, 255, 0.12);
}

/* ===== Exit / gift shop ===== */
.room-exit { min-width: 90vw; }
.exit { display: flex; flex-direction: column; align-items: center; gap: 2.4vh; text-align: center; }
.exit h2 { font-size: clamp(2.2rem, 7vh, 4rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.socials { display: flex; gap: 14px; }
.social {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(227, 194, 122, 0.5);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}
.social:hover { background: var(--grad); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-title { font-family: var(--serif); font-size: 1.2rem; color: var(--muted); }
.back-link { font-size: 0.85rem; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

/* ===== Floor map ===== */
.floor-map {
  position: fixed;
  left: 50%;
  bottom: 3vh;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(420px, 70vw);
  transform: translateX(-50%);
  pointer-events: none;
}
.floor-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold); text-shadow: 0 1px 6px #000; }
.floor-bar { width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.floor-bar span { display: block; height: 100%; width: 0; background: var(--grad); }

/* ===== Lightbox ===== */
.lightbox {
  margin: auto;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(5, 2, 8, 0.92); backdrop-filter: blur(6px); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(1200px, 84vw); }
.lightbox img { max-height: 76vh; width: auto; border: 6px solid #efe7da; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); }
.lightbox figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.lightbox figcaption strong { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.lightbox figcaption span { color: var(--muted); max-width: 560px; }
.lb-close, .lb-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 194, 122, 0.5);
  border-radius: 50%;
  background: rgba(20, 12, 24, 0.85);
  color: var(--gold);
  cursor: pointer;
}
.lb-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.6rem; }
.lb-nav { flex: none; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140px);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 700;
  transition: transform 0.25s ease;
  z-index: 30;
}
.toast.show { transform: translate(-50%, 0); }

/* ===== Smaller screens ===== */
@media (max-width: 960px) {
  .rooms-nav { display: none; }
}
@media (max-width: 720px) {
  :root { --topbar: 56px; --floor: 11vh; }
  .brand span { display: none; }
  .room { padding: 0 7vw; }
  .artwork { flex-direction: column; align-items: center; gap: 16px; }
  .frame, .artwork-wide .frame { width: 84vw; }
  .placard { width: 84vw; }
  .crew { grid-template-columns: 1fr; gap: 10px; }
  .room-entrance { padding: 0 5vw; }
  .ca-plate { width: 90vw; }
  .eyebrow { letter-spacing: 0.14em; font-size: 0.7rem; }
  .btn-big { padding: 14px 26px; font-size: 1rem; }
  .walk-hint { display: none; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox figure { max-width: 94vw; }
  .lightbox img { max-height: 60vh; }
}
@media (max-height: 640px) {
  .entrance-logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .walk-hint span, .live-dot { animation: none; }
  .frame, .btn { transition: none; }
}
