/* Chess the Origins: shared structure for every page style.
   Each style sets the variables and adds its own look on top. */
:root {
  --bg: #fff; --ink: #111; --muted: #555; --line: rgba(0,0,0,.14);
  --accent: #2f6e8e; --accent-ink: #fff; --field: #fff; --field-ink: #111; --field-line: rgba(0,0,0,.25);
  --r-btn: 999px; --r-field: 999px; --focus: #2f6e8e;
  --font-body: system-ui, sans-serif; --font-display: Georgia, serif;
  --pad: clamp(20px, 5vw, 56px);
  --maxw: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-btn); font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; min-height: 46px; font-size: 15px; }
.btn-block { width: 100%; }

/* Sign-up form */
.signup { width: 100%; }
.signup-row { display: flex; gap: 8px; }
.field { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 20px; border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--field); color: var(--field-ink); font: inherit; font-size: 16px; }
.field::placeholder { color: color-mix(in srgb, var(--field-ink) 52%, transparent); }
.field[aria-invalid="true"] { border-color: #c2412d; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.consent.is-missing span { color: #c2412d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 0; margin-top: 8px; font-size: 14px; color: #c2412d; }
.form-msg:empty { display: none; }
@media (max-width: 560px) { .signup-row { flex-direction: column; } .signup-row .btn { width: 100%; } }

/* After joining */
.joined { outline: none; }
.joined-title { font-size: 22px; margin-bottom: 6px; }
.joined p + p, .joined .survey { margin-top: 12px; }
.joined-small { font-size: 13px; color: var(--muted); }
.joined-note { font-size: 15px; color: var(--muted); }
.survey-q { font-weight: 600; margin: 6px 0 10px; }
.survey-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; text-align: center; font-size: 15px; }
.opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.survey .btn-quiet { margin-top: 12px; }
.reserve-offer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.reserve-offer h4 { font-size: 18px; margin-bottom: 6px; }
.reserve-offer .btn { margin: 12px 0 8px; }

/* Spots */
.spots-line { font-size: 14px; margin-bottom: 6px; }
.spots-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.spots-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* Film controls */
.film-ctl { position: absolute; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.film-ctl svg { width: 18px; height: 18px; }
.film-ctl .i-play, .film-ctl.is-paused .i-pause { display: none; }
.film-ctl.is-paused .i-play { display: block; }
.film-ctl .i-on, .film-ctl.is-on .i-off { display: none; }
.film-ctl.is-on .i-on { display: block; }

/* Sticky button on phones */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .3s ease; pointer-events: none; }
.sticky-cta.is-on { transform: none; pointer-events: auto; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* Cookie choice */
.cookie { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: #1c1c1a; color: #f1efe9; font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.cookie a { color: inherit; }
.cookie-actions { display: flex; gap: 8px; margin-top: 12px; }
.cookie-actions .btn { flex: 1; min-height: 44px; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .rv.is-in { opacity: 1; transform: none; }
