/* The site, in the game's look: its night, its five lane colours, its three fonts
   (app/lib/play/palette.dart, app/lib/ui/look.dart). Nothing of the house brand. */

@font-face { font-family: "Bebas Neue"; src: url("/static/fonts/BebasNeue-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; src: url("/static/fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Rubik"; font-weight: 300 900; src: url("/static/fonts/Rubik.ttf") format("truetype"); font-display: swap; }

:root {
  --pink: #FF2D78;
  --blue: #00B4FF;
  --amber: #FFB830;
  --orange: #FF6A1A;
  --purple: #9B4DFF;
  --gold: #FFBE0B;
  --warn: #FF6B5E;
  --sheet: rgba(255, 255, 255, 0.04);
  --hairline: rgba(255, 255, 255, 0.08);
  --faded: rgba(255, 255, 255, 0.62);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: #000; }

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font: 400 17px/1.55 "Rubik", system-ui, sans-serif;
  background: linear-gradient(180deg, #0A0514 0%, #15052A 46%, #000 100%) no-repeat #000;
  -webkit-text-size-adjust: 100%;
}

main, footer { width: min(100% - 40px, 960px); margin: 0 auto; }

a { color: #fff; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; line-height: 1; margin: 0; }
h3, .eyebrow, label, legend, button, .pick span {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* The name, with the title film's glow. */
.top { text-align: center; padding: clamp(36px, 9vw, 84px) 0 28px; }
.top h1 {
  font-size: clamp(64px, 17vw, 168px);
  letter-spacing: 0.03em;
  text-shadow: 0 0 22px rgba(255, 45, 120, 0.75), 0 0 70px rgba(255, 45, 120, 0.4);
}
.top h1 a { color: inherit; text-decoration: none; }
.small-top { padding-bottom: 8px; }
.small-top h1 { font-size: clamp(44px, 9vw, 72px); }
.line { margin: 18px auto 0; max-width: 30em; font-size: 19px; color: var(--faded); }
.line strong { color: #fff; font-weight: 600; }

/* Five pads, as under the game's road. */
.lanes { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.lanes i { width: clamp(34px, 9vw, 58px); height: 8px; border-radius: 3px; background: var(--pink); box-shadow: 0 0 14px currentColor; color: var(--pink); }
.lanes i:nth-child(2) { background: var(--blue); color: var(--blue); }
.lanes i:nth-child(3) { background: var(--amber); color: var(--amber); }
.lanes i:nth-child(4) { background: var(--orange); color: var(--orange); }
.lanes i:nth-child(5) { background: var(--purple); color: var(--purple); }

/* The teaser. Its still lies under the film: it is what shows until the film has loaded, and
   all that shows for a visitor who asked their system for less motion. */
.teaser {
  position: relative;
  margin: 12px auto 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: #000;
  box-shadow: 0 24px 80px rgba(155, 77, 255, 0.22);
}
.teaser img, .teaser video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser .sound {
  position: absolute; right: 12px; bottom: 12px;
  padding: 9px 14px; font-size: 13px; color: #fff; cursor: pointer;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
}
@media (max-aspect-ratio: 1/1) {
  .teaser { aspect-ratio: 9 / 16; width: min(100%, 400px, 76vh * 9 / 16); }
}
@media (prefers-reduced-motion: reduce) {
  .teaser video, .teaser .sound { display: none; }
}

/* The sign-up. */
.invite, .words { margin: clamp(40px, 8vw, 72px) auto 0; max-width: 520px; }
h2 { font-size: clamp(40px, 9vw, 56px); letter-spacing: 0.02em; }
.invite > p, .words p, .words li { color: var(--faded); }
/* After the rule above, which would grey it. */
p.eyebrow { margin: 0 0 6px; font-size: 13px; color: var(--gold); }
p.thanks { font-size: 19px; color: #fff; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--hairline); border-left: 4px solid var(--gold); border-radius: 10px; }

form { display: grid; gap: 18px; margin-top: 22px; }
label, legend { display: block; font-size: 13px; color: var(--faded); padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
legend { margin-bottom: 8px; }
input[type="text"], input[type="email"] {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  font: 400 18px/1.3 "Rubik", system-ui, sans-serif; letter-spacing: 0; color: #fff;
  background: var(--sheet); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px;
}
input[type="text"]:focus-visible, input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--gold); }

.pick { position: relative; flex: 1 1 96px; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: block; text-align: center; padding: 13px 10px; font-size: 15px; color: #fff;
  background: var(--sheet); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px;
}
.pick input:checked + span { background: rgba(0, 180, 255, 0.2); border-color: var(--blue); box-shadow: 0 0 18px rgba(0, 180, 255, 0.35); }
.pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }

button[type="submit"] {
  padding: 16px 20px; font-size: 18px; color: #fff; cursor: pointer;
  border: 0; border-radius: 12px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 10px 34px rgba(255, 45, 120, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
button[type="submit"]:hover { filter: brightness(1.1); }

.small { margin: 0; font-size: 14px; color: var(--faded); }
.wrong { margin: 18px 0 0; padding: 14px 18px 14px 34px; color: #fff; background: rgba(255, 107, 94, 0.12); border: 1px solid var(--warn); border-radius: 10px; }

/* A field for robots. No person sees it or reaches it. */
.extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The privacy page. */
.words h3 { margin: 30px 0 6px; font-size: 14px; color: #fff; }
.words ul { margin: 0; padding-left: 20px; }
.words li { margin: 4px 0; }

footer { padding: clamp(48px, 10vw, 96px) 0 36px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
footer p { margin: 4px 0; }
footer a { color: inherit; }
