@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --foam: #f6f3ec;
  --navy: #0d3b56;
  --navy-2: #16557a;
  --sea: #2a9d8f;
  --sand: #e9c46a;
  --ink: #16324a;
  --mute: #4f6b7a;
  --card: #fff;
  --max: 1140px;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 18px, rgba(13, 59, 86, 0.03) 19px),
    var(--foam);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 0.45em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
p { color: var(--mute); margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
[hidden] { display: none !important; }

.mast {
  background: var(--navy);
  color: #f6f3ec;
  position: sticky; top: 0; z-index: 40;
  box-shadow: inset 0 -6px 0 var(--sand);
}
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { width: 40px; height: 40px; background: #f6f3ec; border-radius: 50%; padding: 4px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-weight: 500; opacity: .8; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
nav.primary { display: flex; gap: 16px; font-weight: 600; }
.mast-actions { display: flex; gap: 8px; align-items: center; }
.mast-actions [data-auth-guest],
.mast-actions [data-auth-user] { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: transparent; border: 0; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #f6f3ec; margin: 6px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 8px 8px 18px 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn-ink { background: var(--sea); color: #07312c; }
.btn-ink:hover { background: var(--sand); }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; }
.mast .btn-ghost { color: #f6f3ec; }
.player-name { background: var(--sand); color: var(--navy); padding: 8px 12px; border-radius: 8px; font-weight: 800; }

.hero { padding: 48px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.hero-kicker { color: var(--sea); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; }
.hero-art img { width: 100%; height: 420px; object-fit: cover; border-radius: 18px 60px 18px 18px; border: 4px solid var(--navy); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.stats { display: flex; gap: 0; border: 2px dashed var(--navy); }
.stats div { padding: 12px 14px; border-right: 2px dashed var(--navy); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--navy); }

.ticker { overflow: hidden; background: var(--sand); color: var(--navy); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.ticker-track { display: flex; gap: 32px; width: max-content; animation: marq 24s linear infinite; padding: 9px 0; }
@keyframes marq { to { transform: translateX(-50%); } }

.section { padding: 70px 0; }
.eyebrow { color: var(--sea); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 16px 16px 28px 16px;
  box-shadow: 6px 6px 0 var(--navy);
  display: flex; flex-direction: column; overflow: hidden;
}
.game img { width: 100%; height: 210px; object-fit: cover; border-bottom: 2px solid var(--navy); }
.game-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game .btn { margin-top: auto; align-self: flex-start; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 20px; border: 4px solid var(--sea); }
.checks { list-style: none; padding: 0; }
.checks li { padding: 8px 0 8px 28px; position: relative; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 3px solid var(--sea); border-bottom: 3px solid var(--sea); transform: rotate(-45deg); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { background: #fff; border-top: 6px solid var(--sea); padding: 16px; box-shadow: 0 10px 24px rgba(13, 59, 86, 0.08); }
.value b { display: block; font-family: var(--display); font-size: 1.2rem; margin-bottom: 6px; }

.cta-band { position: relative; min-height: 280px; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 18px, var(--sea) 18px 36px); opacity: 0.18; z-index: 1; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.cta-band .wrap { position: relative; z-index: 2; padding: 64px 0; color: #f6f3ec; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }

.page-hero { padding: 48px 0 12px; }
.prose { max-width: 68ch; padding: 20px 0 80px; }
.form { display: grid; gap: 12px; max-width: 28rem; }
.form input, .form textarea { width: 100%; border: 2px solid var(--navy); border-radius: 10px; padding: 12px; font: inherit; }

.site-foot { background: var(--navy); color: #eaf4f2; padding: 36px 0 20px; }
.site-foot a { color: inherit; }
.foot-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 14px; }
.disc { font-size: 0.86rem; opacity: 0.88; max-width: 80ch; }
.age-pill { display: inline-flex; width: 34px; height: 34px; border: 2px solid #eaf4f2; border-radius: 6px; align-items: center; justify-content: center; font-weight: 800; margin-right: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(13, 59, 86, 0.5); display: none; align-items: center; justify-content: center; z-index: 70; padding: 20px; }
.overlay.is-open { display: flex; }
.modal { width: min(440px, 100%); background: var(--foam); border: 3px solid var(--navy); border-radius: 18px; padding: 22px; position: relative; }
.close-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 2px solid var(--navy); background: #fff; border-radius: 8px; cursor: pointer; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 40px 16px 0; background: #e4eee8; border-radius: 12px; padding: 4px; }
.tabs button { border: 0; background: transparent; min-height: 38px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.tabs button.is-on { background: var(--navy); color: #fff; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.field input { min-height: 44px; border: 2px solid var(--navy); border-radius: 10px; padding: 0 12px; font: inherit; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.marks { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.mark { width: 40px; height: 40px; border: 2px solid var(--navy); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 800; }
.mark:has(input:checked) { background: var(--sea); border-color: var(--sea); }
.mark input { display: none; }
.consent { display: flex; gap: 8px; font-size: 0.9rem; margin: 8px 0 14px; }
.auth-error { color: #9b2226; font-size: 0.88rem; }
.switch-line { text-align: center; margin-top: 12px; }
.switch-line button { background: none; border: 0; color: var(--sea); font-weight: 700; cursor: pointer; text-decoration: underline; font: inherit; }
.age-box, .cookie-box { width: min(520px, 100%); background: var(--foam); border: 3px solid var(--navy); border-radius: 18px; padding: 24px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid, .split, .games, .values { grid-template-columns: 1fr; }
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; padding: 14px 20px 20px; }
  nav.primary.is-open { display: flex; }
  .burger { display: inline-block; }
  .hero-art img, .split img { height: 240px; }
  .brand small { display: none; }
}

.skip { position: absolute; left: -999px; }
.legal-strip {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: #0d3b56;
  color: #f6f3ec;
}
.policy-box {
  margin: 20px auto 8px;
  padding: 16px 18px;
  border: 2px solid currentColor;
  font-size: 0.9rem;
}
.policy-box p { margin: 0 0 8px; color: inherit; }
.policy-box p:last-child { margin: 0; }
