/* Ultimatum — playultimatum.us
   One glowing thing (the neon logo). Everything else: black, off-white, grays, one purple. */

:root {
  --black: #15141a;   /* soft charcoal background */
  --panel: #1e1d24;   /* pop-ups only */
  --line: #33313b;
  --white: #f7f8f8;   /* headlines, buttons */
  --soft: #d0d6e0;    /* things you should still notice */
  --muted: #8a8f98;   /* descriptions, fine print */
  --neon: #c84bff;    /* taken from the logo's glow */

  /* One typeface: Inter. Big text uses its display cut. */
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); color: var(--black); padding: 8px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 17px/1 var(--body);
  text-decoration: none; border-radius: 999px;
  /* see-through, with a thin neon line like the logo's tubing */
  border: 1.5px solid var(--neon);
  background: transparent; color: var(--white);
  box-shadow: 0 0 10px rgba(200, 75, 255, .28), inset 0 0 8px rgba(200, 75, 255, .12);
  transition: background-color .15s, box-shadow .15s;
}
.button:hover {
  background: rgba(200, 75, 255, .1);
  box-shadow: 0 0 16px rgba(200, 75, 255, .45), inset 0 0 10px rgba(200, 75, 255, .2);
}
.button svg { width: 18px; height: 18px; flex: none; color: var(--neon); }
.button--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.button--ghost { border-color: var(--line); box-shadow: none; }
.button--ghost:hover { border-color: var(--white); background: transparent; box-shadow: none; }

.link { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--black) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, var(--black));
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; padding: 8px 0; transition: opacity .25s, visibility .25s; }
/* the logo file has a black background; let the page color show through it */
.brand img, .footer-top img { mix-blend-mode: screen; }
.brand img { height: 30px; width: auto; }
/* Homepage: the big neon sign is the logo, so the small one waits until it scrolls away */
.site-header.sign-in-view .brand { opacity: 0; visibility: hidden; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: 16px; }
.nav a:not(.button):hover { color: var(--white); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--white);
  font: 600 15px/1 var(--body); padding: 10px 16px; border-radius: 999px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 72px 0 104px; }
.sign { width: min(760px, 100%); margin: 0 auto 28px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 7.4vw, 92px); line-height: .95; letter-spacing: .005em;
  max-width: 20ch; margin: 0 auto;
  text-wrap: balance;
}
.hero .lead { color: var(--muted); font-size: 20px; max-width: 46ch; margin: 24px auto 0; }
.downloads { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.hero .fine { color: var(--muted); font-size: 15px; margin-top: 18px; }

@media (prefers-reduced-motion: no-preference) {
  .sign { animation: flicker-on 1.6s steps(1, end) .25s both; }
}
@keyframes flicker-on {
  0%   { opacity: 0; }
  12%  { opacity: .85; }
  18%  { opacity: .1; }
  30%  { opacity: 1; }
  36%  { opacity: .35; }
  44%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; scroll-margin-top: 68px; }
.section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 6vw, 76px); line-height: .95; letter-spacing: .005em;
  max-width: 18ch;
}
.section .intro { color: var(--muted); font-size: 20px; max-width: 52ch; margin-top: 18px; }
.anchor { display: block; position: relative; top: -68px; visibility: hidden; }

/* How it works — a real sequence, so it gets numbers */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-weight: 300;
  font-size: 96px; line-height: .8; color: var(--neon); margin-bottom: 20px;
}
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 32ch; }
.aside { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); max-width: 62ch; }
.aside strong { color: var(--white); font-weight: 600; }

/* Ways to play — a list you tap, not a grid of cards */
.plays { margin-top: 48px; border-top: 1px solid var(--line); }
.plays li { border-bottom: 1px solid var(--line); }
.play {
  width: 100%; display: grid; grid-template-columns: minmax(200px, 1fr) 2fr auto; align-items: center; gap: 24px;
  padding: 28px 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
.play h3 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; transition: color .15s; }
.play p { color: var(--muted); }
.play .open {
  font-size: 15px; font-weight: 600; color: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; white-space: nowrap; transition: border-color .15s;
}
.play:hover h3, .play:focus-visible h3 { color: var(--neon); }
.play:hover .open { border-color: var(--neon); }

/* Pop-ups */
dialog.round {
  width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); color: var(--white);
}
dialog.round::backdrop { background: rgba(0, 0, 0, .78); }
.round-inner { padding: 36px 36px 40px; }
.round-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 20px; }
.round-head h3 { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: .95; }
.close {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: none; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer;
}
.close:hover { border-color: var(--white); }
.round h4 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 28px 0 10px; }
.round .setup { font-size: 19px; }
.beats { counter-reset: beat; }
.beats li { counter-increment: beat; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.beats li::before { content: counter(beat); font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--muted); line-height: 1.3; }
.beats b { color: var(--neon); font-weight: 600; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.controls dt { font-weight: 600; }
.controls dd { color: var(--muted); font-size: 16px; }
.example { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--neon); font-size: 19px; font-style: italic; }

/* For businesses — tabs */
.tabs { display: flex; gap: 32px; margin-top: 48px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  background: none; border: 0; color: var(--muted); font: 600 18px/1 var(--body);
  padding: 0 0 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--neon); }
.panel { padding: 40px 0 8px; }
.panel[hidden] { display: none; }
.panel h3 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.panel > p { color: var(--muted); max-width: 60ch; margin-top: 12px; }
.panel .beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-top: 28px; }
.panel .beats li { grid-template-columns: 1fr; gap: 4px; border-top: 2px solid var(--line); padding-top: 14px; }
.business-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.business-cta p { color: var(--muted); }

/* FAQ */
.faq { margin-top: 48px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 20px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; color: var(--neon); }
.faq summary:hover { color: var(--neon); }
.faq details p { color: var(--muted); max-width: 64ch; padding: 0 0 26px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; scroll-margin-top: 68px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-top img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-top p { color: var(--muted); font-size: 16px; }
.footer-top h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.footer-top ul li + li { margin-top: 2px; }
.footer-top ul a { display: inline-block; padding: 8px 0; text-decoration: none; }
.footer-top p .link { display: inline-block; padding: 6px 0; }
.footer-top ul a:hover { color: var(--neon); }
.footer-top ul a.social { display: inline-flex; align-items: center; gap: 10px; }
.footer-top ul a.social img { width: 20px; height: 20px; margin: 0; flex: none; }
/* Official store badges in the footer: shown exactly as Apple and Google provide them,
   same height (40px, Apple's onscreen minimum), with a quarter of their height as clear space */
.footer-top ul.badges { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-top ul.badges li + li { margin-top: 0; }
.footer-top ul.badges a.store { display: block; padding: 0; border-radius: 7px; }
.footer-top ul.badges a.store img { display: block; height: 40px; width: auto; margin: 0; }
.footer-bottom { margin-top: 56px; color: var(--muted); font-size: 14px; }
.credits { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 70ch; }

/* ---------- Plain pages (Terms, not found) ---------- */
.page { padding: 72px 0 104px; }
.page .wrap { max-width: 760px; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: .95; }
.page .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 16px; }
.page .back:hover { color: var(--white); }
.terms h2 { font-family: var(--body); font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
.terms p { color: var(--muted); }
.missing p { color: var(--muted); font-size: 20px; margin: 20px 0 36px; }

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.button) { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--white); padding: 10px 0; }
  .nav .button { margin-top: 14px; min-height: 52px; font-size: 17px; }
  .hero { padding: 40px 0 80px; }
  .hero h1 { line-height: 1; }
  .hero .lead { font-size: 18px; }
  .downloads .button { flex: 1 1 100%; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .steps li::before { font-size: 72px; margin-bottom: 12px; }
  .play { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .play h3 { font-size: 34px; }
  .play .open { justify-self: start; margin-top: 10px; }
  .round-inner { padding: 26px 22px 30px; }
  .round-head h3 { font-size: 38px; }
  .controls { grid-template-columns: 1fr; }
  .tabs { gap: 24px; }
  .panel h3 { font-size: 36px; }
  .panel .beats { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  @media (max-width: 340px) { .footer-top > div:nth-child(2) { grid-column: 1 / -1; } .footer-top ul.badges { flex-direction: row; flex-wrap: wrap; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Dot screen (try-out A: full width) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--black); } /* page color inside, so the sign's black blends away */
/* light from the sign spilling onto the wall behind it */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 30%, rgba(200, 75, 255, .20), transparent 70%);
}
/* the screen: a fine grid of dark dots, only visible where there's light */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0, 0, 0, .7) 0.8px, transparent 1.3px);
  background-size: 3px 3px;
  opacity: var(--screen, .4);
  /* fade the dots out toward the bottom so the section has no hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.hero h1, .hero .lead, .hero .downloads, .hero .fine { position: relative; z-index: 2; }
/* the logo file has a black background; let the glow behind show through it */
.sign { position: relative; z-index: 0; mix-blend-mode: screen; }

/* ---------- Clean type (Linear-style rules) ----------
   One typeface, medium weights instead of bold, tight spacing on big text,
   gray for anything secondary. */
body { font-size: 16px; line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }

.hero h1 {
  font-weight: 590; font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.06; letter-spacing: -0.022em; max-width: 18ch;
}
.hero .lead { font-size: 18px; color: var(--muted); letter-spacing: -0.01em; }

/* Rotating dares under the headline: one shows at a time */
.hero .lead { margin-top: clamp(32px, 3.4vw, 48px); } /* more room under the bigger desktop headline */
.dares { position: relative; display: block; height: 1.5em; overflow: hidden; font-size: 26px; color: var(--white); font-weight: 510; letter-spacing: -0.018em; }
/* each dare rolls up through a one-line slot, so two never overlap */
.dare {
  position: absolute; top: 0; left: 0; right: 0; line-height: 1.5em; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.dare.is-on { opacity: 1; transform: none; }
.dare.is-out { opacity: 0; transform: translateY(-100%); }
.verdict { display: block; margin-top: 10px; font-size: 16px; color: var(--muted); }
.dare.reset { transition: none; }
/* The crowd's verdict: one pill lights up a moment after each dare lands */
.vote {
  display: inline-block; padding: 1px 11px; margin: 0 2px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s, box-shadow .3s;
}
.vote.is-lit {
  color: var(--white); border-color: var(--neon); background: rgba(200, 75, 255, .16);
  box-shadow: 0 0 14px rgba(200, 75, 255, .5), inset 0 0 8px rgba(200, 75, 255, .2);
}
.hero h1 span { white-space: nowrap; }

.section h2 {
  font-weight: 590; font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08; letter-spacing: -0.022em;
}
.section .intro { font-size: 17px; color: var(--muted); }

.steps li::before { font-family: var(--display); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 18px; }
.steps h3, .play h3, .panel h3, .round-head h3 { font-weight: 590; letter-spacing: -0.015em; }
.steps h3 { font-size: 20px; line-height: 1.3; }
.steps p, .play p, .panel > p, .faq details p, .aside { font-size: 16px; }
.aside strong { font-weight: 590; color: var(--soft); }

.play h3 { font-size: 26px; line-height: 1.15; }
.play .open { font-size: 14px; font-weight: 510; }
.panel h3 { font-size: 28px; line-height: 1.15; }
.panel .beats li { font-size: 15px; color: var(--soft); }
.beats li::before { font-family: var(--body); font-weight: 510; font-size: 14px; line-height: 1.6; }
.round-head h3 { font-size: 32px; line-height: 1.1; }
.round h4, .footer-top h2 { font-size: 13px; font-weight: 510; color: var(--muted); }
.tab { font-size: 15px; font-weight: 510; }
.faq summary { font-size: 17px; font-weight: 510; letter-spacing: -0.01em; }
.faq summary::after { font-family: var(--body); font-size: 22px; font-weight: 300; }
.button { font-size: 15px; font-weight: 510; letter-spacing: -0.005em; }
.button--small { font-size: 14px; }
.nav a:not(.button) { font-size: 14px; font-weight: 510; }
.example { font-size: 17px; font-style: normal; color: var(--soft); }
.page h1 { font-weight: 590; letter-spacing: -0.022em; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.terms h2 { font-size: 17px; font-weight: 590; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero h1 { line-height: 1.08; font-size: 48px; }
  .hero h1 span { display: block; } /* one beat per line on phones */
  .dares { font-size: clamp(18px, 5.4vw, 21px); }
  .nav a:not(.button) { font-family: var(--display); font-weight: 590; font-size: 26px; letter-spacing: -0.02em; }
  .play h3 { font-size: 24px; }
  .panel h3 { font-size: 26px; }
  .round-head h3 { font-size: 28px; }
}
