:root {
  --bg: #13071d;
  --bg-2: #21102c;
  --panel: #2b1731;
  --panel-2: #3b1e2c;
  --text: #fff2dd;
  --muted: #d7a999;
  --orange: #ff9b3f;
  --red: #9e2637;
  --violet: #6b2fb9;
  --cyan: #21e7ff;
  --magenta: #ff3fd1;
  --gold: #ffe175;
  --line: #0a0510;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 63, 209, 0.18), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(33, 231, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, #12071b, #1d0b21 36%, #110815);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.is-loaded .reveal {
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.crt {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0.17;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 4px),
    radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.38));
  mix-blend-mode: soft-light;
}

@media (hover: none), (pointer: coarse) {
  .crt { display: none; }
}

@supports not (mix-blend-mode: soft-light) {
  .crt { display: none; }
}

.pixel-cursor {
  pointer-events: none;
  position: fixed;
  z-index: 95;
  width: 14px;
  height: 14px;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.pixel-cursor.is-visible { opacity: 1; }
.pixel-cursor.is-press { background: var(--magenta); border-color: var(--gold); }

.site-header {
  position: fixed;
  inset: 14px 14px auto;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  background: rgba(19, 7, 29, 0.78);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 3px rgba(255, 225, 117, 0.18), 0 18px 44px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-logo img { width: 120px; image-rendering: auto; }

.header-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--muted);
}

.header-nav a:hover, .header-cta:hover { color: var(--cyan); }
.header-cta { font-family: var(--pixel); font-size: 9px; color: var(--gold); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 18px 80px;
  overflow: hidden;
}

.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; transform: translateY(calc(var(--parallax, 0) * 0.12px)) scale(1.04); }
.hero-overlay { background: linear-gradient(180deg, rgba(16, 4, 26, 0.42), rgba(16, 4, 26, 0.9)), radial-gradient(circle at 50% 52%, rgba(255, 155, 63, 0.22), transparent 34rem); }

.hero-content { position: relative; width: min(100%, 1040px); display: grid; justify-items: center; text-align: center; }
.hero-logo { width: min(360px, 76vw); margin-bottom: 22px; filter: drop-shadow(0 0 18px rgba(33, 231, 255, 0.8)); }
.kicker { margin: 0 0 18px; color: var(--cyan); font-family: var(--pixel); font-size: clamp(10px, 1.4vw, 13px); line-height: 1.8; text-transform: uppercase; }

h1, h2, h3 { margin: 0; font-family: var(--pixel); letter-spacing: 0; text-wrap: balance; }
h1 { max-width: 1020px; color: var(--gold); font-size: clamp(28px, 5vw, 66px); line-height: 1.2; text-shadow: 4px 4px 0 var(--line), 0 0 24px rgba(255, 155, 63, 0.55); }
h2 { max-width: 1040px; font-size: clamp(24px, 4vw, 52px); line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.55; }
p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.hero-copy { max-width: 760px; margin: 24px auto 26px; color: #ffe9ca; font-size: clamp(17px, 2vw, 22px); }

.arcade-window, .terminal, .image-card, .inventory-card, .monitor, .waitlist-panel, .room-card {
  border: 4px solid var(--line);
  box-shadow: 0 0 0 3px rgba(255, 225, 117, 0.22), 8px 8px 0 rgba(0, 0, 0, 0.42), inset 0 0 34px rgba(255, 155, 63, 0.06);
}

.countdown { width: min(100%, 780px); padding: 18px; background: rgba(19, 7, 29, 0.82); }
.window-label { display: block; margin-bottom: 14px; font-family: var(--pixel); font-size: 9px; color: var(--magenta); text-transform: uppercase; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-grid span { display: grid; gap: 8px; padding: 14px 10px; background: #0d0715; border: 2px solid rgba(33, 231, 255, 0.68); }
.countdown-grid strong { font-family: var(--pixel); color: var(--cyan); font-size: clamp(18px, 4vw, 36px); text-shadow: 0 0 18px rgba(33, 231, 255, 0.85); }
.countdown-grid small { font-family: var(--pixel); font-size: 8px; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.pixel-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 15px 18px 13px; background: var(--cyan); border: 3px solid var(--line); box-shadow: 0 6px 0 var(--line), 0 0 22px rgba(33, 231, 255, 0.55); color: #081018; font-family: var(--pixel); font-size: 10px; line-height: 1.6; text-transform: uppercase; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.pixel-button:hover { transform: translateY(4px); box-shadow: 0 2px 0 var(--line), 0 0 28px rgba(255, 63, 209, 0.6); background: var(--magenta); }
.pixel-button--ghost { background: #22122b; color: var(--cyan); }

.section { width: min(100%, 1240px); margin: 0 auto; padding: clamp(76px, 10vw, 144px) 18px; }
.section-head { display: grid; gap: 12px; margin-bottom: 34px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr); gap: 26px; align-items: center; }
.terminal { padding: clamp(22px, 4vw, 44px); background: linear-gradient(180deg, rgba(43, 23, 49, 0.96), rgba(21, 10, 28, 0.96)); }
.terminal p + p { margin-top: 18px; }
.image-card, .room-card { margin: 0; overflow: hidden; background: var(--panel); }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-card figcaption, .room-card figcaption { padding: 14px; background: #120816; color: var(--gold); font-family: var(--pixel); font-size: 9px; line-height: 1.7; }

.inventory-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.inventory-card { min-height: 320px; padding: 20px; display: grid; align-content: start; gap: 14px; background: linear-gradient(180deg, #321739, #1a0d23); color: var(--text); text-align: left; cursor: pointer; }
.inventory-card:hover, .inventory-card.is-selected { transform: translateY(-6px); background: linear-gradient(180deg, #4b1850, #241433); box-shadow: 0 0 0 3px rgba(33, 231, 255, 0.3), 8px 8px 0 rgba(0, 0, 0, 0.5), 0 0 28px rgba(255, 63, 209, 0.36); }
.slot-icon { width: 72px; height: 72px; display: grid; place-items: center; background: #0f0817; border: 3px solid var(--line); color: var(--cyan); font-size: 30px; box-shadow: inset 0 0 18px rgba(33, 231, 255, 0.22); }
.slot-id { color: var(--magenta); font-family: var(--pixel); font-size: 8px; }
.inventory-card p { font-size: 15px; }

.rooms { width: 100%; max-width: none; overflow: hidden; }
.room-track { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 16px; }
.room-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.level-map { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.level-map::before { content: ""; position: absolute; left: 18px; top: 20px; bottom: 20px; width: 8px; background: repeating-linear-gradient(180deg, var(--orange) 0 16px, #35162a 16px 28px); box-shadow: 0 0 18px rgba(255, 155, 63, 0.6); }
.level-map li { position: relative; margin-left: 54px; padding: 22px 22px 22px 28px; background: rgba(43, 23, 49, 0.72); border: 3px solid var(--line); opacity: 0.58; }
.level-map li::before { content: ""; position: absolute; left: -48px; top: 28px; width: 26px; height: 26px; background: #211025; border: 4px solid var(--line); box-shadow: 0 0 0 3px #412139; }
.level-map li.is-active, .level-map li.is-next { opacity: 1; }
.level-map li.is-active::before { background: var(--cyan); box-shadow: 0 0 0 3px #412139, 0 0 24px var(--cyan); }
.level-map li.is-next::before { background: var(--magenta); box-shadow: 0 0 0 3px #412139, 0 0 24px var(--magenta); }
.level-map span { display: block; margin-bottom: 8px; color: var(--cyan); font-family: var(--pixel); font-size: 8px; }
.level-map strong { display: block; margin-bottom: 8px; color: var(--gold); font-family: var(--pixel); font-size: 14px; line-height: 1.6; }

.monitor { padding: 16px; background: #0d0715; }
.monitor-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px 16px; color: var(--cyan); font-family: var(--pixel); font-size: 9px; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.social-grid a { position: relative; display: block; overflow: hidden; border: 3px solid #050308; }
.social-grid a::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px); }
.social-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.35s ease; }
.social-grid a:hover img { transform: scale(1.06); }
.monitor-button { margin-top: 18px; }

.waitlist-panel { display: grid; gap: 20px; justify-items: start; padding: clamp(24px, 5vw, 58px); background: linear-gradient(135deg, rgba(255, 63, 209, 0.18), transparent 40%), linear-gradient(180deg, #2d1739, #150a20); }
.waitlist-panel p { max-width: 760px; }

.site-footer { position: relative; min-height: 280px; display: grid; justify-items: center; gap: 18px; padding: 58px 18px 92px; overflow: hidden; background: #08040d; border-top: 4px solid var(--line); text-align: center; }
.site-footer img { width: 180px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; color: var(--gold); font-family: var(--pixel); font-size: 9px; }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { font-family: var(--pixel); font-size: 9px; }
.site-footer .legal-note { max-width: 760px; color: var(--muted); font-family: var(--sans); font-size: 14px; }

.footer-cat { position: absolute; left: -80px; bottom: 24px; width: 54px; height: 34px; background: #050308; border: 4px solid var(--cyan); box-shadow: 0 0 14px var(--cyan); animation: catwalk 12s linear infinite; }
.footer-cat::before { content: ""; position: absolute; left: 6px; top: -18px; width: 28px; height: 24px; background: #050308; border: 4px solid var(--cyan); clip-path: polygon(0 100%, 0 32%, 22% 0, 42% 32%, 68% 32%, 88% 0, 100% 32%, 100% 100%); }
.footer-cat::after { content: ""; position: absolute; right: -22px; top: 6px; width: 26px; height: 12px; border-top: 4px solid var(--cyan); border-right: 4px solid var(--cyan); border-radius: 0 12px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes catwalk { 0% { transform: translateX(0); } 100% { transform: translateX(calc(100vw + 140px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .pixel-cursor { display: none; }
}

@media (max-width: 1050px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-track, .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; }
  .header-nav { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { inset: 8px 8px auto; }
  .header-logo img { width: 96px; }
  .hero { padding-top: 112px; }
  .inventory-grid, .room-track, .social-grid { grid-template-columns: 1fr; }
  .inventory-card { min-height: 260px; }
  .pixel-button { width: 100%; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-size: 24px;
  color: var(--cyan);
  cursor: pointer;
}

@media (min-width: 821px) { .mobile-menu { display: contents; } }

@media (max-width: 820px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .mobile-menu-btn { display: block; }
  .mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 16px));
    background: #13071d;
    border: 3px solid var(--line);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu.is-open .header-nav { display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .mobile-menu.is-open .header-nav a { font-size: 14px; }
}
