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

:root {
  --hide: #241612;
  --panel: #31201b;
  --parchment: #f1e4cc;
  --forest: #6b8f71;
  --brass: #c2a25a;
  --ink: #f1e4cc;
  --mute: #cbbba4;
  --max: 1080px;
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(194, 162, 90, 0.12), transparent 55%),
    var(--hide);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0 0 0.55em; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
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: 0; z-index: 40;
  background: linear-gradient(#2a1a15, #241612);
  border-bottom: 1px solid rgba(194, 162, 90, 0.35);
}
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); }
.brand img { width: 38px; height: 38px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand small { font-family: var(--body); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
nav.primary { display: flex; gap: 16px; font-size: 0.9rem; }
nav.primary a { text-decoration: none; }
nav.primary a:hover { color: var(--brass); }
.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: 1px solid var(--brass); width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--parchment); margin: 6px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 2px; cursor: pointer; font: inherit; font-weight: 700;
  border: 1px solid var(--brass);
}
.btn-ink { background: var(--brass); color: #241612; }
.btn-ink:hover { background: var(--forest); border-color: var(--forest); color: #f1e4cc; }
.btn-ghost { background: transparent; color: var(--parchment); }
.btn-ghost:hover { background: var(--brass); color: #241612; }
.player-name { border: 1px solid var(--brass); color: var(--brass); padding: 8px 12px; font-family: var(--display); }

.hero { padding: 56px 0 20px; text-align: center; }
.hero-grid { display: grid; gap: 24px; }
.hero-kicker { color: var(--brass); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; font-weight: 700; }
.hero .lede { max-width: 58ch; margin-inline: auto; }
.hero-art { max-width: 860px; margin: 10px auto 0; }
.hero-art img { width: 100%; height: 380px; object-fit: cover; border: 8px solid #3a2620; box-shadow: 0 0 0 1px var(--brass); }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.stats { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.stats strong { display: block; font-family: var(--display); color: var(--brass); font-size: 1.4rem; }

.ticker { overflow: hidden; border-top: 1px solid rgba(194, 162, 90, 0.3); border-bottom: 1px solid rgba(194, 162, 90, 0.3); color: var(--brass); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.72rem; }
.ticker-track { display: flex; gap: 36px; width: max-content; animation: marq 30s linear infinite; padding: 10px 0; }
@keyframes marq { to { transform: translateX(-50%); } }

.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 28px; }
.eyebrow { color: var(--forest); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.74rem; font-weight: 700; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game {
  background: var(--panel);
  border: 1px solid rgba(194, 162, 90, 0.28);
  display: flex; flex-direction: column;
}
.game img { width: 100%; height: 210px; object-fit: cover; }
.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: 0.95fr 1.05fr; gap: 32px; align-items: center; text-align: left; }
.split img { width: 100%; height: 420px; object-fit: cover; border: 8px solid #3a2620; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 8px 0 8px 22px; position: relative; color: var(--parchment); }
.checks li::before { content: "¶"; position: absolute; left: 0; color: var(--brass); }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { background: var(--panel); padding: 18px; border-top: 2px solid var(--forest); }
.value b { display: block; font-family: var(--display); margin-bottom: 6px; color: var(--parchment); }

.cta-band { position: relative; min-height: 280px; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.28); }
.cta-band .wrap { position: relative; z-index: 1; padding: 64px 0; text-align: center; }
.cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: 48px 0 8px; text-align: center; }
.prose { max-width: 68ch; margin-inline: auto; padding: 20px 0 80px; }
.form { display: grid; gap: 12px; max-width: 28rem; margin-inline: auto; }
.form input, .form textarea { width: 100%; border: 1px solid var(--brass); background: var(--panel); color: var(--parchment); padding: 12px; font: inherit; }

.site-foot { border-top: 1px solid rgba(194, 162, 90, 0.3); padding: 36px 0 20px; text-align: center; }
.site-foot a { color: var(--parchment); }
.foot-brand { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 14px; font-family: var(--display); }
.foot-brand img { width: 32px; height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; margin-bottom: 14px; }
.disc { font-size: 0.86rem; max-width: 76ch; margin-inline: auto; }
.age-pill { display: inline-flex; width: 34px; height: 34px; border: 1px solid var(--brass); color: var(--brass); align-items: center; justify-content: center; font-weight: 800; margin-right: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(12, 8, 6, 0.72); display: none; align-items: center; justify-content: center; z-index: 70; padding: 20px; }
.overlay.is-open { display: flex; }
.modal { width: min(440px, 100%); background: #2c1d18; border: 1px solid var(--brass); padding: 22px; position: relative; }
.close-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; background: transparent; border: 1px solid var(--brass); color: var(--parchment); cursor: pointer; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 40px 16px 0; border: 1px solid var(--brass); }
.tabs button { border: 0; background: transparent; min-height: 40px; color: var(--parchment); font-weight: 700; cursor: pointer; }
.tabs button.is-on { background: var(--brass); color: #241612; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.field input { min-height: 44px; border: 1px solid rgba(194, 162, 90, 0.4); background: #241612; color: var(--parchment); 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: 1px solid var(--brass); background: #241612; color: var(--parchment); cursor: pointer; font-weight: 800; }
.mark:has(input:checked) { background: var(--forest); border-color: var(--forest); }
.mark input { display: none; }
.consent { display: flex; gap: 8px; font-size: 0.9rem; margin: 8px 0 14px; }
.auth-error { color: #e07a5f; font-size: 0.88rem; }
.switch-line { text-align: center; margin-top: 12px; }
.switch-line button { background: none; border: 0; color: var(--brass); font-weight: 700; cursor: pointer; text-decoration: underline; font: inherit; }
.age-box, .cookie-box { width: min(520px, 100%); background: #2c1d18; border: 1px solid var(--brass); padding: 24px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: #2c1d18; border: 1px solid var(--brass); padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 900px) {
  .split, .games, .values { grid-template-columns: 1fr; }
  nav.primary { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #2a1a15; flex-direction: column; padding: 14px 20px 18px; }
  nav.primary.is-open { display: flex; }
  .burger { display: inline-block; }
  .hero-art img, .split img { height: 240px; }
  .brand small { display: none; }
}
