
:root {
  --bg: #0a0b10;
  --surface: #11131c;
  --surface-hover: #191c29;
  --text: #f4f4fb;
  --muted: #9295a9;
  --purple: #a78bfa;
  --mint: #8af0cc;
  --border: rgba(255,255,255,.09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
body, button, input { font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
::selection { background: var(--purple); color: #0a0b10; }

.ambient {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: #8657ff; top: 170px; left: -200px; }
.ambient-two { background: #38d9aa; top: 700px; right: -250px; }

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 max(5%, calc((100% - 1400px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(10,11,16,.85);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 17px "Space Grotesk", sans-serif;
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.brand-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), #7250db);
  border-radius: 11px;
  color: white;
  font-size: 22px;
  box-shadow: 0 0 25px #8b5cf633;
}
.brand-accent { color: var(--purple); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 13px; color: var(--muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.header-cta {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}
.header-cta:hover { border-color: var(--purple); background: #a78bfa12; }
.header-cta span { color: var(--mint); margin-left: 7px; }

.container { width: min(1320px, 90%); margin: 0 auto; }

.hero {
  min-height: 445px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 55px;
  padding: 65px 0 70px;
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 16px;
}
.live-dot, .meta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  box-shadow: 0 0 12px #8af0cc88;
}
h1, h2, p { margin-top: 0; }
h1, .section-heading h2, .bottom-banner h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -1.7px;
}
h1 { font-size: clamp(40px, 5.1vw, 68px); line-height: 1.08; margin-bottom: 22px; }
.gradient-text {
  background: linear-gradient(100deg, #c7b6ff, #a78bfa 48%, #8af0cc 105%);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-description { max-width: 420px; color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 27px; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #11101b;
  padding: 14px 19px;
  font-weight: 700;
  font-size: 12px;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}
.primary-button:hover {
  transform: translateY(-3px);
  background: #b8a5ff;
  box-shadow: 0 9px 35px #a78bfa28;
}
.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 27px; font-size: 10px; color: var(--muted); }
.hero-meta .meta-dot { width: 6px; height: 6px; }

.hero-art {
  height: 350px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background: #171426;
  border: 1px solid #ffffff12;
}
.hero-art-image {
  position: absolute;
  inset: 0;
  background: url("assets/images/spoiler.webp") center 48% / cover;
  filter: saturate(.8);
  transform: scale(1.02);
}
.hero-art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0b14ef, #0b0b1480 48%, #0b0b1418),
              linear-gradient(0deg, #0a0b10b0, transparent 60%);
}
.hero-art-content { position: absolute; left: 32px; bottom: 30px; z-index: 2; }
.art-label { color: var(--mint); font-size: 9px; letter-spacing: 2px; font-weight: 700; }
.hero-art-content h2 { font: 700 37px/1.1 "Space Grotesk", sans-serif; letter-spacing: -1px; margin: 13px 0 10px; }
.hero-art-content p { color: #c1bfd1; font-size: 11px; margin: 0; }
.art-orbit { position: absolute; border: 1px solid #b5a0ff45; border-radius: 50%; transform: rotate(-28deg); pointer-events: none; }
.orbit-one { width: 310px; height: 100px; right: -55px; top: 65px; }
.orbit-two { width: 370px; height: 150px; right: -75px; top: 45px; border-color: #8af0cc35; }
.art-glow { position: absolute; width: 170px; height: 170px; border-radius: 50%; background: #a78bfa33; filter: blur(60px); right: 10%; top: 18%; }
.floating-chip {
  position: absolute;
  z-index: 3;
  padding: 11px 13px;
  border-radius: 10px;
  background: #171724cc;
  border: 1px solid #ffffff20;
  backdrop-filter: blur(12px);
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 700;
}
.chip-top { top: 23px; right: 20px; color: var(--mint); }
.chip-bottom { right: 20px; bottom: 24px; }
.chip-bottom span { margin-left: 8px; color: var(--purple); }

.collection-section { padding: 25px 0 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { font-size: clamp(25px, 3vw, 35px); margin: 0; }
.collection-count { color: var(--muted); font-size: 11px; padding-bottom: 6px; }

.discovery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--border);
  background: #11121a;
  border-radius: 12px;
  overflow-x: auto;
  max-width: 100%;
}
.tab {
  flex-shrink: 0;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}
.tab:hover { color: var(--text); background: #ffffff06; }
.tab.active {
  color: #eee8ff;
  background: #a78bfa19;
  border-color: #a78bfa35;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 310px;
  min-width: 180px;
  padding: 0 12px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #11121a;
  transition: border .2s;
}
.search-box:focus-within { border-color: #a78bfa88; }
.search-icon { color: var(--purple); font-size: 25px; line-height: 1; }
.search-box input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 11px;
}
.search-box input::placeholder { color: #777a8b; }
.search-box kbd { color: #74778b; font-size: 10px; white-space: nowrap; }
.search-status { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.search-status:empty { display: none; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}
.game-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #a78bfa55;
  box-shadow: 0 16px 40px #0004;
}
.game-image-wrap { position: relative; overflow: hidden; aspect-ratio: 1.24 / 1; background: #1a1b27; }
.game-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.game-card:hover .game-image { transform: scale(1.06); }
.game-image-wrap::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, #11131c80);
  pointer-events: none;
}
.game-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: #0a0b10c9;
  border: 1px solid #ffffff18;
  backdrop-filter: blur(8px);
  color: var(--mint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
}
.game-body { padding: 15px; }
.game-category { font-size: 9px; color: var(--purple); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 7px; }
.game-title { font: 600 16px "Space Grotesk", sans-serif; margin: 0 0 7px; line-height: 1.3; }
.game-description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}
.game-meta { display: flex; justify-content: space-between; gap: 8px; margin: 13px 0; color: var(--muted); font-size: 10px; }
.game-meta .plays { color: #d4d2e4; }
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 1px solid #a78bfa55;
  border-radius: 9px;
  background: #a78bfa13;
  color: #d4c7ff;
  padding: 11px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.download-button:hover { background: var(--purple); color: #0b0b12; }
.download-button:disabled { opacity: .6; cursor: wait; }

.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}
.loading-state span { color: var(--mint); }

.genre-section { padding: 55px 0 12px; }
.genre-heading { margin-bottom: 22px; }
.genre-heading p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.muted-heading { color: #77798c; }
.genre-icon { color: var(--mint); margin-right: 5px; }
.swiper-controls { display: flex; gap: 8px; }
.arrow-button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #141620;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: .2s;
}
.arrow-button:hover { background: var(--purple); color: #11101b; }
.swiper-track {
  display: grid;
  grid-auto-columns: 245px;
  grid-auto-flow: column;
  gap: 17px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 3px 2px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #393448 transparent;
}
.swiper-track .game-card { scroll-snap-align: start; }
.swiper-track .game-image-wrap { aspect-ratio: 1.35 / 1; }
.swiper-track::-webkit-scrollbar { height: 5px; }
.swiper-track::-webkit-scrollbar-thumb { background: #393448; border-radius: 10px; }
.swiper-track:empty { display: none; }

.bottom-banner {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 70px 0 55px;
  padding: 30px;
  border: 1px solid #a78bfa2b;
  border-radius: 20px;
  background: radial-gradient(ellipse at 10% 20%, #a78bfa15, transparent 50%), #11121a;
}
.banner-symbol {
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #a78bfa44;
  border-radius: 15px;
  background: #a78bfa14;
  color: var(--purple);
  font-size: 29px;
}
.bottom-banner .eyebrow { margin-bottom: 8px; }
.bottom-banner h2 { font-size: 23px; margin: 0 0 7px; letter-spacing: -.7px; }
.bottom-banner p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.bottom-banner .primary-button { margin-left: auto; flex-shrink: 0; }

.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 25px 5%;
  border-top: 1px solid var(--border);
}
.footer-brand { font-size: 14px; }
.footer-brand .brand-icon { width: 29px; height: 29px; font-size: 18px; border-radius: 9px; }
.footer p, .footer-copy { color: var(--muted); font-size: 10px; margin: 0; }

@media (min-width: 1450px) {
  .hero { min-height: 490px; }
  .hero-art { height: 390px; }
}
@media (max-width: 1000px) {
  .main-nav { gap: 16px; }
  .hero { gap: 30px; }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art { height: 320px; }
}
@media (max-width: 700px) {
  .topbar { height: 65px; padding: 0 5%; }
  .main-nav { display: none; }
  .brand { font-size: 15px; }
  .header-cta { font-size: 10px; padding: 9px 10px; }
  .container { width: 90%; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 52px 0 40px; }
  h1 { font-size: clamp(42px, 11vw, 62px); }
  .hero-art { height: 300px; }
  .hero-art-content h2 { font-size: 32px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 27px; }
  .discovery-toolbar { align-items: stretch; }
  .tabs { width: 100%; }
  .tab { padding: 10px 12px; }
  .search-box { max-width: none; width: 100%; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-body { padding: 11px; }
  .game-title { font-size: 14px; }
  .game-description { font-size: 10px; }
  .game-meta { font-size: 9px; }
  .download-button { font-size: 10px; padding: 10px 6px; }
  .swiper-track { grid-auto-columns: minmax(0, 1fr); grid-auto-columns: 220px; gap: 12px; }
  .genre-section { padding-top: 40px; }
  .genre-heading p { max-width: 250px; line-height: 1.7; }
  .arrow-button { width: 34px; height: 34px; }
  .bottom-banner { padding: 22px; gap: 15px; flex-wrap: wrap; margin: 45px 0; }
  .banner-symbol { width: 45px; height: 45px; }
  .bottom-banner h2 { font-size: 20px; }
  .bottom-banner .primary-button { margin-left: 0; }
  .footer { justify-content: flex-start; gap: 12px 25px; }
  .footer p { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .featured-grid { grid-template-columns: 1fr; }
  .game-image-wrap { aspect-ratio: 1.5 / 1; }
  .tab { padding: 9px 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
