:root {
  --bg: #0b0c10;
  --bg-elevated: #12141a;
  --panel: #1a1d26;
  --panel-hover: #222632;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --yellow: #f7e14a;
  --yellow-ink: #1a1600;
  --accent: #5b8cff;
  --radius: 10px;
  --nav-h: 64px;
  --max: 1280px;
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(91, 140, 255, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 0%, rgba(247, 225, 74, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(145deg, #f7e14a 0%, #f0b429 45%, #5b8cff 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: 8px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  max-width: 280px;
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.search svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search input::placeholder {
  color: var(--muted);
}

.nav-chip {
  display: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(247, 225, 74, 0.12);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Main ---------- */

.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 80px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-viewport {
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: clamp(280px, 38vw, 420px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  padding: clamp(24px, 4vw, 48px);
  background: #151820;
  overflow: hidden;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0.55) 48%, rgba(8, 9, 14, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 9, 14, 0.55), transparent 50%);
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-desc {
  margin: 0 0 22px;
  color: #d5dae6;
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 38ch;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(247, 225, 74, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hero-cta-disabled {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  box-shadow: none;
  cursor: default;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero art themes */
.hero-slide.art-ghost .hero-visual {
  background:
    radial-gradient(circle at 72% 42%, rgba(238, 244, 255, 0.35) 0 8%, transparent 9%),
    radial-gradient(circle at 78% 38%, rgba(180, 200, 255, 0.25) 0 5%, transparent 6%),
    linear-gradient(180deg, #1a1035 0%, #3a1f6e 40%, #0d1b2a 70%, #14261a 100%);
}

.hero-slide.art-ghost .hero-visual::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: min(42%, 280px);
  aspect-ratio: 0.75;
  background:
    radial-gradient(ellipse 55% 35% at 50% 18%, #eef4ff 0 70%, transparent 71%),
    radial-gradient(ellipse 70% 55% at 50% 48%, #dfe8ff 0 68%, transparent 69%),
    radial-gradient(ellipse 80% 40% at 50% 78%, #c9d6ff 0 60%, transparent 61%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  opacity: 0.95;
  animation: floaty 4s ease-in-out infinite;
}

.hero-slide.art-ninja .hero-visual {
  background:
    radial-gradient(circle at 70% 55%, rgba(255, 80, 80, 0.35), transparent 40%),
    linear-gradient(160deg, #1a0a10, #3a1020 50%, #0a1520);
}

.hero-slide.art-rocket .hero-visual {
  background:
    radial-gradient(circle at 75% 40%, rgba(120, 200, 255, 0.35), transparent 35%),
    linear-gradient(200deg, #061428, #12305a 55%, #0a2038);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(247, 225, 74, 0.2);
}

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

/* ---------- Rows ---------- */

.row {
  margin-bottom: 28px;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}

.row-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.row-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.row-scroller::-webkit-scrollbar {
  height: 6px;
}

.row-scroller::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* ---------- Tiles ---------- */

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.tile:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(247, 225, 74, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.tile-disabled {
  opacity: 0.72;
  cursor: default;
}

.tile-hidden {
  display: none;
}

.tile-art {
  aspect-ratio: 16 / 10;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.tile-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(10, 12, 18, 0.55));
}

.art-lunar {
  background:
    radial-gradient(circle at 72% 28%, #e8eef8 0 9%, transparent 10%),
    radial-gradient(circle at 30% 22%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 55% 18%, #fff 0 1.2px, transparent 2px),
    linear-gradient(180deg, #050814 0%, #1a2250 48%, #e8eef8 48%, #c5d0e4 100%);
}

.art-lunar::before {
  content: "";
  position: absolute;
  left: 28%;
  bottom: 18%;
  width: 34%;
  height: 22%;
  background: linear-gradient(180deg, #dfe7f5, #9aa8c0);
  border-radius: 8px 10px 6px 6px;
  box-shadow: 0 10px 0 -4px #3a4254;
}

.hero-slide.art-lunar .hero-visual {
  background:
    radial-gradient(circle at 78% 32%, rgba(232, 238, 248, 0.9) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 60% 14%, #fff 0 1.5px, transparent 2px),
    linear-gradient(180deg, #050814 0%, #1a2250 55%, #e8eef8 55%, #c5d0e4 100%);
}

.hero-slide.art-lunar .hero-visual::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: min(36%, 220px);
  aspect-ratio: 1.4;
  background:
    linear-gradient(180deg, #7ec8ff 0 30%, transparent 31%),
    linear-gradient(180deg, #dfe7f5, #a8b4c8);
  border-radius: 14px;
  clip-path: polygon(8% 40%, 35% 18%, 78% 18%, 95% 40%, 95% 78%, 8% 78%);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
  animation: floaty 4s ease-in-out infinite;
}

.art-ghost {
  background:
    radial-gradient(circle at 62% 40%, #eef4ff 0 7%, transparent 8%),
    radial-gradient(circle at 68% 36%, rgba(200, 220, 255, 0.5) 0 4%, transparent 5%),
    linear-gradient(180deg, #241447, #4a2780 45%, #163024);
}

.art-ninja {
  background:
    linear-gradient(135deg, #2a0d18, #6b1d2e 50%, #1a2030),
    radial-gradient(circle at 70% 40%, rgba(255, 90, 90, 0.4), transparent 40%);
  background-blend-mode: screen, normal;
}

.art-ninja::before {
  content: "";
  position: absolute;
  inset: 22% 28% 18% 45%;
  background: linear-gradient(180deg, #111, #333);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
  opacity: 0.85;
}

.art-rocket {
  background:
    radial-gradient(circle at 30% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 50% 70%, #fff 0 1.5px, transparent 2px),
    linear-gradient(200deg, #071225, #1a3a6e 60%, #0d2748);
}

.art-rocket::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 18%;
  width: 18%;
  height: 55%;
  background: linear-gradient(180deg, #f7e14a, #ff8a3d 70%, transparent);
  border-radius: 40% 40% 20% 20%;
  transform: rotate(-18deg);
  opacity: 0.9;
}

.art-safari {
  background: linear-gradient(160deg, #1d3a18, #6a9a3a 45%, #c4a35a 80%, #8b5a2b);
}

.art-safari::before {
  content: "";
  position: absolute;
  left: 20%;
  bottom: 18%;
  width: 60%;
  height: 28%;
  background: #2f6b2a;
  border-radius: 50% 50% 40% 40%;
  box-shadow: 18px -20px 0 -6px #3f8a35, -16px -10px 0 -8px #4a9a40;
}

.art-moons {
  background:
    radial-gradient(circle at 68% 38%, #f5f0d8 0 14%, transparent 15%),
    radial-gradient(circle at 40% 55%, #c9d4ff 0 8%, transparent 9%),
    linear-gradient(180deg, #050814, #1a1450 70%, #2a1840);
}

.art-sum {
  background:
    linear-gradient(135deg, #102018, #1e4d38 50%, #0e2a40);
}

.art-sum::before {
  content: "12+7";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  color: rgba(247, 225, 74, 0.9);
}

.art-rhyme {
  background: linear-gradient(145deg, #2a1840, #5a2a6e 50%, #1a2848);
}

.art-rhyme::before {
  content: "cat · hat";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tile-badge.play {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.tile-badge.soon {
  background: rgba(0, 0, 0, 0.55);
  color: #d0d6e4;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tile-meta {
  padding: 10px 12px 12px;
}

.tile-title {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.2;
  margin-bottom: 3px;
}

.tile-sub {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Promo strip ---------- */

.promo {
  margin: 40px 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.promo-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  min-height: 180px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
}

.promo-card.wide {
  background:
    linear-gradient(120deg, rgba(8, 10, 16, 0.85), rgba(8, 10, 16, 0.25)),
    linear-gradient(135deg, #1e2a4a, #3a1f55 50%, #1a3040);
}

.promo-card.side {
  background:
    linear-gradient(160deg, rgba(8, 10, 16, 0.8), rgba(8, 10, 16, 0.2)),
    linear-gradient(200deg, #203018, #3a5020);
}

.promo-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.promo-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.promo-text {
  margin: 0;
  color: #d0d6e4;
  max-width: 36ch;
  line-height: 1.4;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: #090a0e;
  padding: 36px 28px 28px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

.footer-note {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.45;
  font-size: 0.92rem;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-cols h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-cols a {
  display: block;
  margin-bottom: 8px;
  color: #d8deea;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-cols a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-chip {
    display: inline-flex;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 340px;
  }

  .promo {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 0 14px;
    gap: 12px;
  }

  .main {
    padding: 14px 14px 64px;
  }

  .search {
    min-width: 0;
    max-width: none;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .row-scroller {
    grid-auto-columns: minmax(168px, 78vw);
    gap: 10px;
  }

  .hero {
    border-radius: 12px;
  }

  .footer {
    padding: 28px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track,
  .tile,
  .hero-cta,
  .hero-slide.art-ghost .hero-visual::after {
    transition: none;
    animation: none;
  }
}
