/* The app's own pages: sign-in, the owner's screens, the public game and team pages. Colours come
   from /theme.css (site.json) as custom properties; nothing here spells a brand colour. The board
   is core's own stylesheet and is loaded only by the scorer page. */

:root {
  --ink: #1c2b36;
  --ink-soft: #52616c;
  --line: #d5dce3;
  --surface: #ffffff;
  --danger: #9e3b32;
  --ok: #1f6b54;
  --focus: #8a5a1f;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--text); }
h1, h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--brand); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.125rem; }
p { margin: 0 0 0.75rem; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-soft); }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + var(--safe-top)) 16px 12px; background: var(--brand); color: #fff; }
.site-head a:focus-visible { outline-color: #fff; }
.site-head a { color: inherit; text-decoration: none; font-family: var(--display); font-stretch: 88%; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.page { max-width: 34rem; margin: 0 auto; padding: 24px 16px calc(32px + var(--safe-bottom)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card > * + * { margin-top: 12px; }

label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="email"], input[type="text"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8b99a4; border-radius: 6px; background: #fff; font: inherit; font-size: 16px; color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

.status { min-height: 1.5em; margin: 0; font-size: 0.9375rem; }
.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }
.note { padding: 10px 12px; border-left: 4px solid var(--focus); background: #fbf6ee; font-size: 0.9375rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 0.1s; }
}

/* The landing page, the privacy and terms pages, and the footer links every page carries. */
.site-foot { max-width: 34rem; margin: 0 auto; padding: 0 16px calc(24px + var(--safe-bottom)); font-size: 0.875rem; color: var(--ink-soft); }
.site-foot a { color: var(--ink-soft); }
.site-foot a + a { margin-left: 16px; }
.hero { max-width: 40rem; margin: 0 auto; padding: 40px 16px 16px; }
.hero h1 { font-size: 2.25rem; }
.hero .lede { font-size: 1.25rem; margin: 12px 0 24px; }
.hero .btn { text-decoration: none; }
.hero .alt { margin-top: 12px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.points strong { display: block; color: var(--brand); }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 28px; margin-bottom: 8px; }
.prose ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
.prose li { margin-bottom: 4px; }
