@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Karla:wght@400;500;600;700&display=swap");

:root {
  --linen: #f4f0e6;
  --leaf: #2f4a3c;
  --leaf-2: #4d6b5a;
  --clay: #c45c38;
  --clay-2: #a3482b;
  --mist: #d7e2d6;
  --ink: #243028;
  --mute: #5d6b62;
  --card: #fffdf8;
  --max: 1180px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Karla", system-ui, sans-serif;
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(196, 92, 56, 0.12), transparent 50%),
    radial-gradient(700px 380px at 100% 0%, rgba(47, 74, 60, 0.12), transparent 46%),
    var(--linen);
  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.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
p { color: var(--mute); margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
[hidden] { display: none !important; }

.mast {
  position: sticky; top: 10px; z-index: 40; padding: 10px 0 0;
}
.mast-in {
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--linen) 86%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(47, 74, 60, 0.16);
  border-radius: 999px;
  padding: 8px 10px 8px 14px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 1rem; white-space: nowrap; }
.brand small { font-weight: 500; opacity: .75; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
nav.primary { display: flex; flex: 1; justify-content: center; gap: 18px; font-weight: 600; font-size: 0.92rem; }
.mast-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; margin-left: auto; }
.mast-actions [data-auth-guest],
.mast-actions [data-auth-user] { display: flex; gap: 8px; align-items: center; }
.burger {
  display: none; border: 0; background: transparent; width: 40px; height: 40px; cursor: pointer;
  flex-shrink: 0; padding: 0;
}
.burger span { display: block; height: 2px; background: var(--leaf); margin: 6px 10px; border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn-ink { background: var(--leaf); color: #f4f0e6; }
.btn-ink:hover { background: var(--clay); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(47, 74, 60, 0.35); }
.btn-ghost:hover { border-color: var(--leaf); }
.btn-clay { background: var(--clay); color: #fff; }
.player-name {
  background: var(--mist); color: var(--leaf); padding: 8px 14px; border-radius: 999px; font-weight: 700;
}

.hero { padding: 42px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.hero-kicker { color: var(--clay); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: 460px; object-fit: cover; border-radius: 40% 28% 42% 30% / 32% 40% 28% 44%; box-shadow: 0 30px 60px rgba(47, 74, 60, 0.18); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--leaf); }
.stats span { font-size: 0.85rem; }

.ticker { overflow: hidden; margin: 10px 0 0; color: var(--leaf); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; }
.ticker-track { display: flex; gap: 36px; width: max-content; animation: marq 26s linear infinite; padding: 10px 0; }
@keyframes marq { to { transform: translateX(-50%); } }

.section { padding: 70px 0; }
.eyebrow { color: var(--clay); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.74rem; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game {
  background: var(--card); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 16px 40px rgba(47, 74, 60, 0.1);
  display: flex; flex-direction: column;
}
.game img { width: 100%; height: 220px; object-fit: cover; }
.game-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game .btn { margin-top: auto; align-self: flex-start; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.split img { width: 100%; height: 430px; object-fit: cover; border-radius: 32px 80px 32px 80px; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); }
.checks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); position: absolute; left: 0; top: 14px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { background: var(--card); border-radius: 24px; padding: 20px; box-shadow: 0 10px 28px rgba(47, 74, 60, 0.08); }
.value b { display: block; font-family: var(--display); font-size: 1.35rem; margin-bottom: 6px; }

.cta-band { position: relative; min-height: 300px; color: #f4f0e6; overflow: hidden; border-radius: 40px; margin: 10px auto 70px; width: min(var(--max), calc(100% - 36px)); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42); }
.cta-band .inner { position: relative; z-index: 1; padding: 56px 40px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }

.page-hero { padding: 48px 0 10px; }
.prose { max-width: 68ch; padding: 24px 0 80px; }
.form { display: grid; gap: 12px; max-width: 28rem; }
.form input, .form textarea { width: 100%; border: 1px solid rgba(47, 74, 60, 0.25); border-radius: 16px; padding: 12px; font: inherit; background: var(--card); }

.site-foot { background: var(--leaf); color: #e7efe6; padding: 40px 0 24px; }
.site-foot a { color: inherit; }
.foot-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.foot-brand img { width: 34px; height: 34px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.disc { opacity: 0.85; font-size: 0.88rem; max-width: 80ch; }
.age-pill { display: inline-flex; width: 34px; height: 34px; border: 1.5px solid #e7efe6; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; margin-right: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(36, 48, 40, 0.45); 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(--card); border-radius: 28px; padding: 24px; position: relative; box-shadow: 0 30px 60px rgba(47, 74, 60, 0.22); }
.close-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(47, 74, 60, 0.2); background: #fff; cursor: pointer; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: 999px; padding: 4px; margin: 4px 40px 16px 0; }
.tabs button { border: 0; background: transparent; min-height: 38px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.tabs button.is-on { background: linear-gradient(90deg, var(--leaf), var(--clay)); 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: 1px solid rgba(47, 74, 60, 0.2); border-radius: 14px; 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-radius: 12px; border: 1px solid rgba(47, 74, 60, 0.2); background: #fff; cursor: pointer; font-weight: 800; }
.mark:has(input:checked) { background: var(--clay); color: #fff; border-color: var(--clay); }
.mark input { display: none; }
.consent { display: flex; gap: 8px; font-size: 0.9rem; margin: 8px 0 14px; }
.auth-error { color: var(--clay); font-size: 0.88rem; }
.switch-line { text-align: center; margin-top: 12px; }
.switch-line button { background: none; border: 0; color: var(--clay); font-weight: 700; cursor: pointer; text-decoration: underline; font: inherit; }
.age-box, .cookie-box { width: min(520px, 100%); background: var(--card); border-radius: 28px; padding: 24px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--card); border-radius: 22px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 16px 40px rgba(47, 74, 60, 0.16); }

@media (max-width: 980px) {
  .mast-in { flex-wrap: wrap; border-radius: 24px; gap: 8px 10px; }
  .brand { order: 1; }
  .mast-actions { order: 2; margin-left: auto; }
  .burger { display: inline-block; order: 3; }
  nav.primary {
    display: none;
    order: 4;
    flex: 1 0 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    padding: 4px 6px 8px;
  }
  nav.primary.is-open { display: flex; }
  nav.primary a { padding: 10px 8px; border-radius: 12px; }
  nav.primary a:hover,
  nav.primary a[aria-current="page"] { background: var(--mist); }
  .brand small { display: none; }
  .mast-actions .btn { min-height: 38px; padding: 0 12px; font-size: 0.86rem; }
  .hero-grid, .split, .games, .values { grid-template-columns: 1fr; }
  .hero-art img, .split img { height: 260px; }
  .cta-band .inner { padding: 36px 20px; }
}
@media (max-width: 480px) {
  .mast { top: 6px; padding-top: 6px; }
  .mast-in { padding: 7px 8px 7px 10px; min-height: 56px; }
  .brand img { width: 32px; height: 32px; }
  .brand b { font-size: 0.86rem; }
  .mast-actions [data-open-auth="login"] { display: none; }
  .burger { width: 36px; height: 36px; }
}
