/* Game Night site: one dark "night table" look shared by Home, Support and Privacy.
   The player colors are the only light; type is Nunito for display and Atkinson Hyperlegible
   for reading. */

/* Both fonts are served from assets/fonts/ under the SIL Open Font License (licenses beside the
   files). They are the files Google Fonts served in November 2026, split by character range the
   same way, so a browser downloads only the ranges a page uses. Nunito is one variable file
   covering 800 and 900. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("assets/fonts/nunito-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("assets/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("assets/fonts/nunito-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --table: #07060d;
  --felt: #12101d;
  --felt-raised: #181526;
  --line: rgba(244, 243, 255, 0.10);
  --ink: #f4f3ff;
  --dim: rgba(244, 243, 255, 0.72);
  --amber: #f8aa0c;
  --sky: #46bbf3;
  --rose: #fc4b8c;
  --mint: #3fe0a5;
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--table); color: var(--ink); font-family: var(--body); line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1120px; margin: 0 auto; }
.inner.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #120f00; padding: 8px 14px; border-radius: 999px; font: 800 0.95rem var(--display); z-index: 10; }
.skip:focus { left: 12px; }

/* Header and footer, the same on every page */
header.top { padding-block: 18px; }
header.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 800 1.1rem var(--display); }
nav.links { display: flex; gap: 20px; font: 700 0.95rem var(--display); }
nav.links a { color: var(--dim); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
nav.links a:hover { color: var(--ink); }
nav.links a[aria-current="page"] { color: var(--ink); border-color: var(--rose); }
footer.site { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--dim); font-size: 0.92rem; }
footer.site .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .ack { flex-basis: 100%; margin: 4px 0 0; font-size: 0.85rem; }
footer.site .ack span { color: var(--ink); }
.brand picture { display: contents; }

/* The App Store badge slot: Apple's official badge artwork replaces the placeholder text. */
/* Apple's official badge, unmodified; Apple asks for clear space of a quarter of its height around it. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { display: block; width: auto; height: 50px; }
/* Apple allows one badge per layout, so later calls to action are plain links. */
.store-link { font: 800 1.05rem var(--display); color: var(--amber); text-underline-offset: 4px; }
.store-link:hover { color: var(--ink); }

/* Home */
.hero { position: relative; overflow: hidden; padding-block: 40px 80px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(28rem 28rem at 72% 38%, rgba(252, 75, 140, 0.22), transparent 70%),
    radial-gradient(22rem 22rem at 58% 72%, rgba(70, 187, 243, 0.16), transparent 70%),
    radial-gradient(20rem 20rem at 86% 70%, rgba(248, 170, 12, 0.16), transparent 70%); }
.hero .inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.eyebrow { font: 800 0.8rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
h1 { font: 900 clamp(2.6rem, 6.4vw, 4.6rem)/1.02 var(--display); letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
h1 .glow { color: var(--rose); text-shadow: 0 0 28px rgba(252, 75, 140, 0.55); }
.lede { font-size: 1.2rem; color: var(--dim); max-width: 34ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.free { font: 800 0.95rem var(--display); color: var(--mint); }
.phone { justify-self: center; width: min(320px, 78vw); aspect-ratio: 886 / 1920; border-radius: 48px; padding: 10px; background: linear-gradient(160deg, #2b2840, #0c0b14); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; max-width: 100%; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; display: block; background: #000; }

section.band { padding-block: 72px; border-top: 1px solid var(--line); }
h2 { font: 900 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--display); margin: 0 0 12px; text-wrap: balance; }
.section-lede { color: var(--dim); max-width: 60ch; margin: 0 0 36px; font-size: 1.08rem; }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mode { background: var(--felt); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.mode img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; display: block; }
.mode .text { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.mode h3 { font: 900 1.35rem var(--display); margin: 0; }
.mode p { margin: 0; color: var(--dim); }
.mode.winners h3 { color: var(--rose); }
.mode.order h3 { color: var(--mint); }
.mode.order img { object-position: center 78%; }
.mode.teams h3 { color: var(--amber); }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 22px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent); border: 1px solid var(--line); }
.step b { display: block; font: 900 1.15rem var(--display); margin-bottom: 6px; }
.step p { margin: 0; color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.facts li { padding-left: 26px; position: relative; color: var(--dim); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--sky); }
.facts li:nth-child(3n+2)::before { border-color: var(--rose); }
.facts li:nth-child(3n)::before { border-color: var(--amber); }
.facts b { color: var(--ink); }
.promise { padding-block: 80px; }
.promise h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.promise p { color: var(--dim); max-width: 52ch; font-size: 1.1rem; margin: 0 0 26px; }

/* Support and Privacy */
.page-head { position: relative; overflow: hidden; padding-block: 36px 40px; }
.page-head::before { content: ""; position: absolute; inset: -40% -10% auto; height: 180%; pointer-events: none;
  background:
    radial-gradient(22rem 18rem at 82% 40%, rgba(252, 75, 140, 0.18), transparent 70%),
    radial-gradient(18rem 16rem at 66% 80%, rgba(70, 187, 243, 0.12), transparent 70%); }
.page-head .inner { position: relative; }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); margin-bottom: 10px; }
.page-head .meta { color: var(--dim); margin: 0; font-size: 1.05rem; }
.page-head .meta strong { color: var(--ink); }
.prose { padding-block: 8px 72px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 44px 0 12px; }
.prose p, .prose li { color: var(--dim); max-width: 65ch; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--sky); }
.prose ul li:nth-child(3n+2)::before { border-color: var(--rose); }
.prose ul li:nth-child(3n)::before { border-color: var(--amber); }
.prose a { color: var(--sky); }
.callout { background: var(--felt); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; display: grid; gap: 10px; margin: 0 0 8px; }
.callout strong { font: 900 1.1rem var(--display); color: var(--ink); }
.callout p { margin: 0; color: var(--dim); }
.callout.short { border-color: rgba(63, 224, 165, 0.35); background: linear-gradient(180deg, rgba(63, 224, 165, 0.08), var(--felt)); color: var(--dim); font-size: 1.08rem; }
.callout.short strong { color: var(--mint); font-size: 1.08rem; }
.email { display: inline-block; font: 700 1.05rem var(--mono); color: var(--ink); text-decoration: none; background: var(--table); border: 2px dashed var(--rose); border-radius: 12px; padding: 8px 14px; overflow-wrap: anywhere; }
.email:hover { border-style: solid; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--felt); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 16px 58px; position: relative; color: var(--dim); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--amber); display: grid; place-items: center; font: 900 0.85rem var(--display); color: var(--ink); }
.steps li:nth-child(2)::before { border-color: var(--sky); }
.steps li:nth-child(3)::before { border-color: var(--rose); }
.steps li:nth-child(4)::before { border-color: var(--mint); }
.mode-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.mode-list div { background: var(--felt); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.mode-list dt { font: 900 1.15rem var(--display); margin-bottom: 4px; }
.mode-list dd { margin: 0; color: var(--dim); }
.mode-list div:nth-child(1) dt { color: var(--rose); }
.mode-list div:nth-child(2) dt { color: var(--mint); }
.mode-list div:nth-child(3) dt { color: var(--amber); }
.mode-list.improving div { border-style: dashed; }
.mode-list.improving div dt { color: var(--ink); }
.mode-list + p { margin-top: 16px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--felt); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font: 800 1.05rem var(--display); padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--sky); }
.faq details[open] summary::after { border-color: var(--rose); background: var(--rose); }
.faq details p { margin: 0 0 16px; color: var(--dim); }

/* Missing page (404): the app's empty start screen, two dashed finger spots waiting for players,
   drawn with the fingerprint from the app icon. The glow fades out at the top and bottom. */
.empty-table { padding-block: 32px 72px; text-align: center; position: relative; overflow: hidden; }
.empty-table::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(20rem 16rem at 50% 32%, rgba(252, 75, 140, 0.16), transparent 70%),
    radial-gradient(16rem 14rem at 35% 72%, rgba(70, 187, 243, 0.10), transparent 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 80%, transparent); }
.empty-table .inner { position: relative; display: grid; justify-items: center; }
.spots { position: relative; width: 220px; height: 170px; margin: 8px 0 26px; }
.spot { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 3px dashed rgba(244, 243, 255, 0.55); display: grid; place-items: center; }
.spot::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: rgba(244, 243, 255, 0.08); }
.spot svg { position: relative; width: 44px; height: 44px; stroke: rgba(244, 243, 255, 0.7); }
.spot.one { left: 18px; top: 0; }
.spot.two { right: 18px; bottom: 0; }
.empty-table h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin-bottom: 12px; }
.empty-table .lede { margin: 0 auto 28px; max-width: 34ch; }
.ways-out { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; }

@media (max-width: 820px) {
  .hero .inner { grid-template-columns: 1fr; gap: 36px; }
  .modes, .how, .mode-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mode img { aspect-ratio: 16 / 11; }
  nav.links { gap: 14px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
