@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;500;700&family=Playfair+Display:wght@700;800&display=swap");

:root {
  --header-height: 78px;
  --sky-cobalt: #2b5f9e;
  --runway-charcoal: #243040;
  --beacon-coral: #e85d4c;
  --cloud-ivory: #eef3f8;
  --lift-teal: #2a9d8f;
  --altimeter-gold: #d4a017;
  --panel: #f4f7fb;
  --ink: #1c2733;
  --ink-soft: #445466;
  --shadow-dark: #c5ceda;
  --shadow-light: #ffffff;
  --space-xs: 0.5rem;
  --space-sm: 0.85rem;
  --space-md: 1.35rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;
  --page-gutter: clamp(1rem, 3vw, 1.75rem);
  --radius: 18px;
  --neu-out: 10px 10px 22px var(--shadow-dark), -8px -8px 18px var(--shadow-light);
  --neu-in: inset 6px 6px 14px var(--shadow-dark), inset -6px -6px 14px var(--shadow-light);
}

*, *::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: Lato, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background-color: var(--cloud-ivory);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(43, 95, 158, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(42, 157, 143, 0.1), transparent 36%),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(36, 48, 64, 0.035) 28px, rgba(36, 48, 64, 0.035) 29px);
}

body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4,
.section__title,
.brand,
.site-footer__brand {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
ul, ol { margin: 0; padding: 0; }
a { color: var(--sky-cobalt); text-decoration-thickness: 2px; }
a:hover { color: var(--beacon-coral); }
img, svg, iframe { max-width: 100%; display: block; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: rgba(238, 243, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 48, 64, 0.08);
}
.site-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--sky-cobalt); }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-header__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-header__nav a:hover { color: var(--sky-cobalt); }
.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--neu-out);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.site-header__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--runway-charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle.is-active span:nth-child(2) { opacity: 0; }
.site-header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--space-lg);
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.hero__lead {
  max-width: 58ch;
  margin-bottom: var(--space-lg);
  font-size: 1.12rem;
}

.section {
  padding: var(--space-xl) 0;
}
.section__title {
  margin-bottom: 4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.game-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.game-card__title { font-size: 1.25rem; }
.game-card__text { font-size: 0.98rem; }

.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.perk {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: 1.4rem 1.35rem;
}
.perk h3 { margin-bottom: 0.55rem; font-size: 1.15rem; }

.faq { display: grid; gap: 0.9rem; }
.faq__item {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 1.05rem 1.2rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.faq__a {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
}
.faq__item.is-open .faq__a { display: block; }

.cta {
  padding: 0 0 var(--space-xl);
}
.cta__box {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
}
.cta__box h2 { margin-bottom: 0.75rem; }
.cta__box p { margin-bottom: 1.25rem; max-width: 52ch; margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #3a74b8 0%, var(--sky-cobalt) 55%, #1f4a7d 100%);
  box-shadow: 0 4px 0 #17375c, 0 8px 16px rgba(36, 48, 64, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #17375c, 0 3px 8px rgba(36, 48, 64, 0.16);
}
.btn--play {
  background: linear-gradient(180deg, #37b3a4 0%, var(--lift-teal) 55%, #1f7a6f 100%);
  box-shadow: 0 4px 0 #155950, 0 8px 16px rgba(36, 48, 64, 0.18);
  margin-top: auto;
  align-self: flex-start;
}
.btn--play:active { box-shadow: 0 1px 0 #155950, 0 3px 8px rgba(36, 48, 64, 0.16); }
.btn--hero {
  background: linear-gradient(180deg, #f07a6c 0%, var(--beacon-coral) 55%, #c44536 100%);
  box-shadow: 0 4px 0 #8f2f24, 0 8px 16px rgba(36, 48, 64, 0.18);
}
.btn--hero:active { box-shadow: 0 1px 0 #8f2f24, 0 3px 8px rgba(36, 48, 64, 0.16); }
.btn--small { padding: 0.55rem 0.95rem; font-size: 0.92rem; }

.page-hero {
  padding: clamp(2rem, 5vw, 3.2rem) 0 var(--space-md);
}
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: var(--space-md); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.prose h2 { margin: 1.8rem 0 0.7rem; font-size: 1.4rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.contact-card, .form-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.form-grid { display: grid; gap: 0.9rem; }
.form-grid label { display: grid; gap: 0.35rem; font-weight: 700; color: var(--ink); }
.form-grid input, .form-grid textarea {
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--cloud-ivory);
  box-shadow: var(--neu-in);
  color: var(--ink);
}
.form-success { display: none; margin-top: 0.8rem; color: var(--lift-teal); font-weight: 700; }
.form-success.is-visible { display: block; }

.blog-list { display: grid; gap: 1.1rem; }
.blog-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: 1.3rem 1.35rem;
}
.blog-card h2 { margin-bottom: 0.45rem; font-size: 1.3rem; }
.blog-card p { margin-bottom: 0.9rem; }

.article-page { padding: var(--space-lg) 0 var(--space-xl); flex: 1; }
.article-header { margin-bottom: 1.5rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(43, 95, 158, 0.12);
  color: var(--sky-cobalt);
  font-weight: 700;
}
.article-content h2 { margin: 1.7rem 0 0.7rem; }
.article-content p { margin-bottom: 1rem; }

.site-footer {
  margin-top: auto;
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--runway-charcoal);
  color: rgba(238, 243, 248, 0.82);
}
.site-footer a { color: #9ec5ef; text-decoration: none; }
.site-footer a:hover { color: var(--altimeter-gold); }
.site-footer__brand { color: #fff; margin-bottom: 0.5rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer__col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  font-family: Lato, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer__col ul { list-style: none; display: grid; gap: 0.35rem; }
.site-footer__copy {
  border-top: 1px solid rgba(238, 243, 248, 0.12);
  padding-top: 1rem;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(360px, calc(100% - 2rem));
  background: var(--panel);
  color: var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.play-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(28, 39, 51, 0.72);
}
.play-modal.is-open { display: flex; }
.play-modal__panel {
  width: min(1100px, 100%);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--neu-out);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
}
.play-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--runway-charcoal);
  color: #fff;
}
.play-modal__title { font-weight: 700; }
.play-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.play-modal__frame {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #000;
}
.play-modal__fallback {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .perk-grid, .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header__toggle { display: inline-flex; }
  .site-header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cloud-ivory);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 12px 24px rgba(36, 48, 64, 0.12);
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a { padding: 0.75rem 0.35rem; border-bottom: 1px solid rgba(36, 48, 64, 0.08); }
}
