:root {
  --ink: #05050f;
  --ink-soft: #0d0b22;
  --panel: rgba(16, 13, 39, 0.82);
  --panel-solid: #12102b;
  --line: rgba(157, 139, 255, 0.22);
  --paper: #f8f7ff;
  --muted: #aaa6c4;
  --violet: #7957ff;
  --violet-bright: #a48cff;
  --orange: #ff532f;
  --orange-light: #ff9369;
  --cyan: #42d9ff;
  --max-width: 1180px;
  --display: "Avenir Next Condensed", "DIN Condensed", "Franklin Gothic Condensed", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 2%, rgba(94, 49, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(255, 83, 47, 0.08), transparent 24rem),
    var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 0.4rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 15, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 4.75rem;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(164, 140, 255, 0.45);
  border-radius: 0.8rem;
  box-shadow: 0 0 24px rgba(121, 87, 255, 0.35);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 1.55rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: min(780px, calc(100svh - 4.75rem));
  padding-block: 5rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 9vw, 8.5rem);
  letter-spacing: -0.065em;
}

h1 .accent {
  color: var(--orange);
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 38rem;
  margin: 0;
  color: #cbc7df;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(255, 83, 47, 0.23);
}

.button-primary:hover {
  box-shadow: 0 15px 38px rgba(255, 83, 47, 0.38);
}

.button-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}

.status-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-art {
  position: relative;
}

.hero-art::before {
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  content: "";
  background: rgba(88, 43, 255, 0.45);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(164, 140, 255, 0.34);
  border-radius: 1.4rem;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.62), 0 0 50px rgba(96, 50, 255, 0.16);
  transform: rotate(1.3deg);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.now-playing {
  position: absolute;
  right: -1rem;
  bottom: -1.25rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  width: min(18rem, 72%);
  padding: 0.9rem 1rem;
  background: rgba(10, 8, 27, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.equalizer {
  display: flex;
  gap: 3px;
  align-items: center;
  width: 2rem;
  height: 2rem;
}

.equalizer i {
  width: 3px;
  height: 45%;
  background: var(--orange);
  border-radius: 99px;
  animation: pulse 820ms ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) { animation-delay: -300ms; height: 80%; }
.equalizer i:nth-child(3) { animation-delay: -520ms; height: 60%; }
.equalizer i:nth-child(4) { animation-delay: -180ms; height: 90%; }

.now-playing strong,
.now-playing small {
  display: block;
}

.now-playing strong {
  font-size: 0.87rem;
}

.now-playing small {
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes pulse {
  to { height: 18%; }
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.game-card {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(145deg, rgba(22, 17, 54, 0.95), rgba(7, 6, 20, 0.95));
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.game-card::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 18rem;
  height: 18rem;
  content: "";
  border: 2.5rem solid rgba(121, 87, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 1.6rem rgba(121, 87, 255, 0.045), 0 0 0 4rem rgba(121, 87, 255, 0.025);
}

.game-card:nth-child(2)::after {
  border-color: rgba(255, 83, 47, 0.09);
  box-shadow: 0 0 0 1.6rem rgba(255, 83, 47, 0.04), 0 0 0 4rem rgba(255, 83, 47, 0.02);
}

.card-number {
  display: block;
  margin-bottom: 5rem;
  color: var(--violet-bright);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.game-card:nth-child(2) .card-number {
  color: var(--orange-light);
}

.game-card p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: 2.2rem;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.step span {
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 5rem);
  background: var(--orange);
  border-radius: 1.25rem;
}

.cta-panel::after {
  position: absolute;
  top: -65%;
  right: -5%;
  width: 28rem;
  height: 28rem;
  content: "";
  border: 4rem solid rgba(5, 5, 15, 0.12);
  border-radius: 50%;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 9ch;
  margin-bottom: 1.4rem;
  color: white;
}

.cta-panel p {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.84);
}

.cta-panel .button {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: white;
}

.legal-hero {
  padding-block: clamp(4rem, 9vw, 7rem) 3rem;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 13ch;
  font-size: clamp(3.3rem, 7vw, 6.7rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 46rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  padding-block: 3rem 7rem;
}

.legal-nav {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 0.55rem;
}

.legal-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--paper);
}

.legal-content section {
  padding-block: 0 2.25rem;
  scroll-margin-top: 7rem;
}

.legal-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.legal-content p,
.legal-content li {
  color: #c8c5d6;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.2rem;
}

.legal-content li + li {
  margin-top: 0.55rem;
}

.notice {
  padding: 1.2rem 1.35rem;
  color: #ddd9f0;
  background: rgba(121, 87, 255, 0.1);
  border: 1px solid rgba(164, 140, 255, 0.35);
  border-radius: 0.8rem;
}

.notice strong {
  color: white;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.contact-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.3rem 2.5rem 1.3rem 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 1.2rem;
  right: 0;
  color: var(--orange);
  font-size: 1.5rem;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 44rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-block: 3rem;
}

.footer-tagline {
  max-width: 24rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.3rem;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  color: #726e89;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 1rem;
    background: rgba(5, 5, 15, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    padding: 0.65rem 0.4rem;
  }

  .hero,
  .section-heading,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-block: 4rem 5rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-art {
    width: min(100%, 42rem);
  }

  .section-heading {
    gap: 0.5rem;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .hero {
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 5.5rem);
  }

  .game-grid,
  .steps,
  .footer-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 22rem;
  }

  .card-number {
    margin-bottom: 3.5rem;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .now-playing {
    right: 0.6rem;
    bottom: -2.3rem;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
