@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Quicksand:wght@600;700&display=swap");

:root {
  --header-height: 76px;
  --asphalt-ink: #1a2332;
  --yolk-flare: #f5c518;
  --coop-green: #3d8b6e;
  --feather-white: #f2f5f8;
  --hazard-amber: #e89b2d;
  --barn-wine: #a63d40;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --ink: #e8eef5;
  --ink-soft: #b7c3d1;
  --page-gutter: clamp(1rem, 3vw, 1.75rem);
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.35rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --radius: 16px;
  --blur: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--asphalt-ink);
  background-image:
    linear-gradient(160deg, rgba(61, 139, 110, 0.18), transparent 42%),
    linear-gradient(340deg, rgba(245, 197, 24, 0.12), transparent 38%),
    radial-gradient(ellipse at 70% 10%, rgba(232, 155, 45, 0.16), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 46px,
      rgba(242, 245, 248, 0.035) 46px,
      rgba(242, 245, 248, 0.035) 48px
    );
}

body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4,
.module-section-title,
.module-brand,
.module-footer-brand {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
ul, ol { margin: 0; padding: 0; }
a { color: var(--yolk-flare); text-decoration-thickness: 2px; }
a:hover { color: var(--hazard-amber); }
img, svg, iframe { max-width: 100%; display: block; }

.l-wrap {
  width: min(1120px, 100% - 2 * var(--page-gutter));
  margin-inline: auto;
}

.layout-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: rgba(26, 35, 50, 0.72);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid rgba(242, 245, 248, 0.08);
}
.layout-header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.module-brand {
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--ink);
}
.module-brand span { color: var(--yolk-flare); }
.module-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.module-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.module-nav a:hover { color: var(--yolk-flare); }
.module-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 245, 248, 0.18);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.module-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.module-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.module-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.module-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.module-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.module-hero-title {
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.module-hero-lead {
  max-width: 62ch;
  margin-bottom: var(--space-lg);
  font-size: 1.08rem;
}

.module-section {
  padding: var(--space-xl) 0;
}
.module-section-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin-bottom: 4rem;
}

.module-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}
.module-game-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.module-game-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.module-game-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  flex: 1;
}
.module-game-title { font-size: 1.2rem; }
.module-game-text { font-size: 0.95rem; flex: 1; }

.module-perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.module-perk {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.module-perk h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.module-faq { display: grid; gap: var(--space-sm); }
.module-faq-item {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.module-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: var(--space-md);
  cursor: pointer;
}
.module-faq-a {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--ink-soft);
}
.module-faq-item.is-open .module-faq-a { display: block; }

.module-cta { padding: 0 0 var(--space-xl); }
.module-cta-box {
  background: linear-gradient(135deg, rgba(61, 139, 110, 0.35), rgba(245, 197, 24, 0.18));
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.16);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}
.module-cta-box h2 { margin-bottom: var(--space-sm); }
.module-cta-box p { margin-bottom: var(--space-md); max-width: 58ch; }

.module-page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 var(--space-lg);
}
.module-page-hero h1 { margin-bottom: var(--space-md); font-size: clamp(1.9rem, 4vw, 2.8rem); }

.module-prose {
  max-width: 72ch;
}
.module-prose h2 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.45rem;
}
.module-prose h3 {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 1.2rem;
}
.module-prose p + p { margin-top: var(--space-md); }
.module-prose ul, .module-prose ol {
  margin: var(--space-md) 0;
  padding-left: 1.25rem;
}
.module-prose li { margin-bottom: 0.45rem; }

.module-blog-list {
  display: grid;
  gap: var(--space-md);
}
.module-blog-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.module-blog-card h2 {
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}
.module-blog-card p { margin-bottom: var(--space-md); }

.module-form {
  display: grid;
  gap: var(--space-md);
  max-width: 560px;
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.14);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.module-field { display: grid; gap: 0.4rem; }
.module-field label { font-weight: 700; color: var(--ink); }
.module-field input,
.module-field textarea {
  width: 100%;
  border: 1px solid rgba(242, 245, 248, 0.18);
  border-radius: 10px;
  background: rgba(26, 35, 50, 0.55);
  color: var(--ink);
  font: inherit;
  padding: 0.75rem 0.9rem;
}
.module-field textarea { min-height: 140px; resize: vertical; }
.module-form-success {
  display: none;
  margin-top: var(--space-md);
  color: var(--coop-green);
  font-weight: 700;
}
.module-form-success.is-visible { display: block; }

.module-steps {
  display: grid;
  gap: var(--space-md);
}
.module-step {
  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.module-step h3 { margin-bottom: var(--space-sm); }

.module-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.module-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 197, 24, 0.18);
  color: var(--yolk-flare);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.layout-footer {
  margin-top: auto;
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(242, 245, 248, 0.08);
  background: rgba(14, 20, 30, 0.55);
  backdrop-filter: blur(var(--blur));
}
.module-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.module-footer-brand {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}
.module-footer-col h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}
.module-footer-col ul { list-style: none; }
.module-footer-col li { margin-bottom: 0.4rem; }
.module-footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}
.module-footer-col a:hover { color: var(--yolk-flare); }
.module-footer-copy {
  font-size: 0.88rem;
  color: rgba(183, 195, 209, 0.85);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  color: var(--asphalt-ink);
  background: linear-gradient(135deg, var(--yolk-flare), var(--hazard-amber));
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); color: var(--asphalt-ink); }
.btn:active { transform: translateY(1px); }
.btn--small { padding: 0.55rem 0.95rem; font-size: 0.92rem; }
.btn--play,
.btn--hero {
  width: fit-content;
  margin-top: auto;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(242, 245, 248, 0.28);
}
.btn--ghost:hover { color: var(--yolk-flare); border-color: var(--yolk-flare); filter: none; }
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.55s linear;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

.module-cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(360px, calc(100vw - 2rem));
  background: rgba(26, 35, 50, 0.88);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(242, 245, 248, 0.16);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.module-cookie p {
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
}

.module-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(6px);
}
.module-modal.is-open { display: flex; }
.module-modal-panel {
  width: min(960px, 100%);
  background: rgba(26, 35, 50, 0.95);
  border: 1px solid rgba(242, 245, 248, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.module-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(242, 245, 248, 0.1);
}
.module-modal-title {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  color: var(--ink);
}
.module-modal-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--glass-strong);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}
.module-modal-frame {
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
  background: #000;
}
.module-modal-fallback {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .module-perk-grid,
  .module-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .module-nav-toggle { display: inline-flex; }
  .module-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(26, 35, 50, 0.96);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid rgba(242, 245, 248, 0.1);
  }
  .module-nav.is-open { display: flex; }
  .module-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(242, 245, 248, 0.08);
  }
}
