:root {
  --tunnel-ink: #12151c;
  --hall-steel: #2a3344;
  --yolk-neon: #ffe566;
  --signal-lime: #b8f23a;
  --brake-red: #ff3d4a;
  --mist-lane: #dce4f0;
  --glow-cyan: #5eead4;
  --ink-soft: #9aa8bc;
  --surface: #1a2030;
  --header-h: 72px;
  --gutter: 1.25rem;
  --font-head: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 14px;
  --glow-yolk: 0 0 12px rgba(255, 229, 102, 0.55), 0 0 28px rgba(255, 229, 102, 0.25);
  --glow-lime: 0 0 12px rgba(184, 242, 58, 0.45), 0 0 24px rgba(184, 242, 58, 0.2);
  --glow-cyan-soft: 0 0 14px rgba(94, 234, 212, 0.4);
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-btn-morph::before { animation: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--mist-lane);
  background-color: var(--tunnel-ink);
  background-image:
    radial-gradient(ellipse 900px 480px at 12% -8%, rgba(255, 229, 102, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 420px at 92% 8%, rgba(94, 234, 212, 0.1), transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 38px,
      rgba(255, 229, 102, 0.035) 38px,
      rgba(255, 229, 102, 0.035) 40px
    ),
    linear-gradient(180deg, #0e1118 0%, var(--tunnel-ink) 40%, #151a26 100%);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a {
  color: var(--glow-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--yolk-neon); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: #fff;
  line-height: 1.2;
  font-weight: 700;
}

.layout-wrap {
  width: min(1140px, 100%);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  min-width: 0;
}

.layout-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(18, 21, 28, 0.92);
  border-bottom: 1px solid rgba(255, 229, 102, 0.18);
  box-shadow: 0 0 24px rgba(255, 229, 102, 0.08);
  backdrop-filter: blur(10px);
}

.layout-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0.75rem;
}

.layout-main {
  flex: 1;
  padding-top: var(--header-h);
}

.layout-footer {
  margin-top: auto;
  padding: 3rem 0 1.5rem;
  background: var(--surface);
  border-top: 1px solid rgba(94, 234, 212, 0.15);
  box-shadow: 0 0 40px rgba(94, 234, 212, 0.06);
}

.module-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.module-logo span { color: var(--yolk-neon); text-shadow: var(--glow-yolk); }
.module-logo:hover { color: var(--signal-lime); }

.module-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--yolk-neon);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glow-yolk);
}
.module-burger span {
  display: block;
  height: 2px;
  background: var(--yolk-neon);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.module-burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.module-burger.is-active span:nth-child(2) { opacity: 0; }
.module-burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.module-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.module-nav a {
  color: var(--mist-lane);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.module-nav a:hover { color: var(--yolk-neon); }

.module-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.module-btn-morph {
  position: relative;
  overflow: hidden;
  color: var(--tunnel-ink);
  background: var(--yolk-neon);
  border-color: var(--yolk-neon);
  box-shadow: var(--glow-yolk);
}
.module-btn-morph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s ease-in-out infinite;
}
.module-btn-morph:hover {
  background: transparent;
  color: var(--yolk-neon);
  border-color: var(--yolk-neon);
}
.module-btn-ghost {
  color: var(--glow-cyan);
  background: transparent;
  border-color: var(--glow-cyan);
  box-shadow: var(--glow-cyan-soft);
}
.module-btn-ghost:hover {
  background: var(--glow-cyan);
  color: var(--tunnel-ink);
}

@keyframes sheen {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.module-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
}

.module-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #243044 0%, #12151c 62%, #0a0c11 100%);
}

.module-hero-tunnel {
  position: absolute;
  left: 50%;
  top: 8%;
  width: min(920px, 140vw);
  height: 78%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 42% 55% at 50% 48%, rgba(255, 229, 102, 0.09) 0%, transparent 58%),
    linear-gradient(90deg, #0a0c11 0%, transparent 18%, transparent 82%, #0a0c11 100%),
    linear-gradient(180deg, rgba(10, 12, 17, 0.35) 0%, transparent 28%, transparent 70%, #0a0c11 100%);
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  box-shadow:
    inset 0 0 0 2px rgba(255, 229, 102, 0.12),
    inset 0 -40px 80px rgba(0, 0, 0, 0.55);
}

.module-hero-tunnel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 28%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22) 0%, transparent 70%);
  filter: blur(2px);
  animation: portalBreath 5s ease-in-out infinite;
}

.module-hero-road {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 160%;
  max-width: 1600px;
  height: 58%;
  transform: translateX(-50%) perspective(520px) rotateX(58deg);
  transform-origin: center top;
  background:
    linear-gradient(90deg, transparent 0%, rgba(18, 21, 28, 0.95) 12%, #1c2433 50%, rgba(18, 21, 28, 0.95) 88%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      #151a24 0,
      #151a24 46%,
      #ffe566 46%,
      #ffe566 47%,
      #151a24 47%,
      #151a24 53%,
      #ffe566 53%,
      #ffe566 54%,
      #151a24 54%,
      #151a24 100%
    );
  background-blend-mode: normal;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  opacity: 0.95;
}

.module-hero-road::before,
.module-hero-road::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--signal-lime), transparent);
  box-shadow: 0 0 18px rgba(184, 242, 58, 0.45);
  opacity: 0.55;
}
.module-hero-road::before { left: 18%; }
.module-hero-road::after { right: 18%; }

.module-hero-dash {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 18%;
  margin-left: -5px;
  border-radius: 3px;
  background: var(--yolk-neon);
  box-shadow: 0 0 16px rgba(255, 229, 102, 0.7);
  animation: dashRush 2.4s linear infinite;
  opacity: 0.9;
}
.module-hero-dash:nth-child(1) { top: 8%; animation-delay: 0s; }
.module-hero-dash:nth-child(2) { top: 38%; animation-delay: -0.8s; }
.module-hero-dash:nth-child(3) { top: 68%; animation-delay: -1.6s; }

.module-hero-glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(640px, 80vw);
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 229, 102, 0.22), transparent 70%);
  filter: blur(8px);
  animation: portalBreath 5s ease-in-out infinite;
}

@keyframes dashRush {
  0% { transform: translateY(-30%) scaleY(0.6); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 0.85; }
  100% { transform: translateY(140%) scaleY(1.3); opacity: 0; }
}

@keyframes portalBreath {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.module-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 1.5rem 0;
}

.module-brand-mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.92;
  margin: 0 0 1.1rem;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}
.module-brand-mark em {
  font-style: normal;
  color: var(--yolk-neon);
  text-shadow: var(--glow-yolk);
}

.module-hero-title {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--mist-lane);
  max-width: 22ch;
}

.module-hero-lead {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 34rem;
  line-height: 1.6;
}

.module-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .module-hero-dash,
  .module-hero-glow,
  .module-hero-tunnel::before { animation: none !important; }
}

@media (max-width: 700px) {
  .module-hero {
    align-items: end;
    min-height: calc(100svh - var(--header-h));
    padding-bottom: 3rem;
  }
  .module-hero-road {
    height: 46%;
    bottom: -4%;
  }
  .module-hero-copy {
    max-width: 100%;
  }
}

.module-section {
  padding: 4rem 0;
}
.module-section.is-alt {
  background: rgba(42, 51, 68, 0.35);
  border-block: 1px solid rgba(255, 229, 102, 0.08);
}

.module-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
}
.module-section-sub {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.module-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.module-game-card {
  background: var(--surface);
  border: 1px solid rgba(255, 229, 102, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--glow-yolk);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(184, 242, 58, 0.45), 0 0 36px rgba(255, 229, 102, 0.2);
}

.module-game-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.module-game-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--hall-steel);
}
.module-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.module-game-card:hover .module-game-thumb img { transform: scale(1.05); }

.module-game-body { padding: 1rem 1.1rem 1.2rem; }
.module-game-name {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}
.module-game-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.module-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.module-feature-title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--signal-lime);
  text-shadow: var(--glow-lime);
}
.module-feature-text {
  margin: 0;
  color: var(--ink-soft);
}

.module-faq { display: grid; gap: 0.75rem; }
.module-faq-item {
  background: var(--surface);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.module-faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.module-faq-a {
  display: none;
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
}
.module-faq-item.is-open .module-faq-a { display: block; }
.module-faq-item.is-open {
  box-shadow: var(--glow-cyan-soft);
  border-color: var(--glow-cyan);
}

.module-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 229, 102, 0.35);
  background: linear-gradient(135deg, rgba(255, 229, 102, 0.08), rgba(94, 234, 212, 0.08));
  box-shadow: var(--glow-yolk);
}
.module-cta h2 { margin: 0 0 0.5rem; }
.module-cta p { margin: 0 0 1.25rem; color: var(--ink-soft); }

.module-page-head { margin-bottom: 2rem; }
.module-page-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
}
.module-page-lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.module-prose { max-width: 720px; }
.module-prose h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: var(--yolk-neon);
}
.module-prose p { color: var(--ink-soft); }
.module-prose ul { color: var(--ink-soft); padding-left: 1.2rem; }

.module-blog-list {
  display: grid;
  gap: 1.25rem;
}
.module-blog-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid rgba(255, 229, 102, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 16px rgba(255, 229, 102, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-blog-card:hover {
  border-color: var(--signal-lime);
  box-shadow: var(--glow-lime);
}
.module-blog-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}
.module-blog-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.module-form {
  display: grid;
  gap: 1rem;
  max-width: 520px;
}
.module-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-family: var(--font-head);
}
.module-form input,
.module-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: var(--surface);
  color: #fff;
  font: inherit;
}
.module-form input:focus,
.module-form textarea:focus {
  outline: none;
  border-color: var(--yolk-neon);
  box-shadow: var(--glow-yolk);
}
.module-form-status {
  color: var(--signal-lime);
  font-weight: 700;
}

.module-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.module-footer-heading {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--yolk-neon);
}
.layout-footer p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.module-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.module-footer-nav a {
  color: var(--mist-lane);
  text-decoration: none;
  font-weight: 600;
}
.module-footer-nav a:hover { color: var(--yolk-neon); }
.module-footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.module-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(380px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--yolk-neon);
  border-radius: var(--radius);
  box-shadow: var(--glow-yolk);
  display: grid;
  gap: 0.75rem;
}
.module-cookie-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.module-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.module-modal.is-open { display: flex; }
.module-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.82);
}
.module-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--tunnel-ink);
  border: 1px solid var(--yolk-neon);
  border-radius: var(--radius);
  box-shadow: var(--glow-yolk);
  overflow: hidden;
}
.module-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 229, 102, 0.2);
}
.module-modal-title {
  margin: 0;
  font-size: 1.1rem;
}
.module-modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--glow-cyan);
  border-radius: 10px;
  background: transparent;
  color: var(--glow-cyan);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--glow-cyan-soft);
}
.module-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

.module-steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.module-step {
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.4rem;
  background: var(--surface);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius);
}
.module-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yolk-neon);
  color: var(--tunnel-ink);
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: var(--glow-yolk);
}
.module-step h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.module-step p { margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) {
  .module-features,
  .module-footer-grid { grid-template-columns: 1fr; }
  .module-burger { display: flex; }
  .module-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(18, 21, 28, 0.98);
    border-bottom: 1px solid rgba(255, 229, 102, 0.2);
    gap: 0.25rem;
  }
  .module-nav.is-open { display: flex; }
  .module-nav a { padding: 0.75rem 0.5rem; }
}
