:root {
  /* Tailwind palette values used by the original */
  --gray-950: #030712;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-250: #d4dbe5;
  --slate-200: #e2e8f0;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-400: #fbbf24;
  --font-pixel: "Press Start 2P", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--gray-950);
  min-height: 100vh;
}

/* ---------- Fixed background ---------- */
.bg-slider {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--gray-950);
  overflow: hidden;
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2500ms ease-in-out;
  background-size: cover;
  background-position: center;
}
/* Active scene sits at 50% opacity over the dark base */
.slide.is-active { opacity: 0.5; }

.slide-1 { background-image: url("img/bg/img1.png"); }
.slide-2 { background-image: url("img/bg/img2.png"); }
.slide-3 { background-image: url("img/bg/img3.png"); }
.slide-4 { background-image: url("img/bg/img4.png"); }
.slide-5 { background-image: url("img/bg/img5.png"); }
.slide-6 { background-image: url("img/bg/img6.png"); }

/* Dark vertical gradient over the scenes */
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.70) 0%,
    rgba(3, 7, 18, 0.40) 50%,
    rgba(3, 7, 18, 0.80) 100%
  );
}

/* ---------- Foreground layer ---------- */
.layer {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Header / white pill nav ---------- */
.site-header {
  display: flex;
  justify-content: center;
  padding: 16px clamp(12px, 4vw, 24px);
}
.nav-bar {
  width: 100%;
  max-width: 64rem;
  height: 64px;
  background: #fff;
  border: 2px solid var(--slate-800);
  border-radius: 999px;
  box-shadow: 0 4px 0 0 var(--slate-800);
  padding: 0 clamp(8px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.15s ease;
}
.logo:hover .logo-img { transform: rotate(-4deg); }
.brand {
  font-family: var(--font-pixel);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--slate-800);
  user-select: none;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.nav-x) {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-600);
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-links a:not(.nav-x):hover {
  color: var(--slate-800);
  background: #f1f5f9;
}

.nav-x {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--slate-600);
  color: var(--amber-400);
  box-shadow: 2px 2px 0 0 #000;
  transition: background 0.15s ease;
}
.nav-x:hover { background: var(--slate-700); }
.nav-x:active { transform: translateY(1px); box-shadow: none; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vh, 80px) 20px;
}
.hero-inner { max-width: 700px; }

.hero h1 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5));
}
.hero h1 .accent {
  color: var(--emerald-400);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.tagline {
  margin-top: 24px;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* Stats pill */
.stats {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--slate-900);
  border: 1px solid var(--slate-700);
  border-radius: 999px;
  box-shadow: 2px 2px 0 0 #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stats strong { color: var(--emerald-400); }
.stats .sep { color: var(--slate-700); }

.ping {
  position: relative;
  display: inline-flex;
  height: 10px;
  width: 10px;
}
.ping-anim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald-400);
  opacity: 0.75;
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.ping-dot {
  position: relative;
  display: inline-flex;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--emerald-500);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Play buttons card */
.play-card {
  margin-top: 28px;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-play {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  border: 2px solid #020617;
  border-radius: 16px;
  box-shadow: 4px 4px 0 0 #000;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-play:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 0 #000;
}
.btn-play-now {
  padding: 14px 16px;
  background: #f97316;
}
.btn-play-now:hover { background: #ea580c; }
.btn-play-guest {
  padding: 10px 16px;
  background: var(--slate-800);
  color: #f1f5f9;
}
.btn-play-guest:hover { background: var(--slate-700); }
.play-note {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.1);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.copyright {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  text-align: center;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--slate-700);
  border-radius: 12px;
  box-shadow: 2px 2px 0 0 #000;
  color: var(--slate-200);
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-family: var(--font-sans);
}
.ca-pill:hover { border-color: rgba(16, 185, 129, 0.6); }
.ca-pill:active { transform: translateY(1px); box-shadow: none; }
.ca-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-400);
  flex-shrink: 0;
}
.ca-pill code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-ico { color: var(--slate-400); flex-shrink: 0; }
.ca-pill:hover .copy-ico { color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .brand { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--slate-800);
    border: none;
    border-radius: 8px;
    padding: 9px;
    cursor: pointer;
  }
  .nav-toggle span { width: 18px; height: 2.5px; background: #fff; border-radius: 2px; }
  .nav-links {
    position: absolute;
    top: 84px;
    right: clamp(12px, 4vw, 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    border: 2px solid var(--slate-800);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 4px 0 0 var(--slate-800);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a:not(.nav-x) { text-align: center; }
  .nav-x { margin: 4px auto 0; }
  .ca-pill code { font-size: 9px; }
}
