/* blueblooth.brazh.me. Dark only, as the game is. Every colour is a token here, taken from the app: the night and the
   panel (Theme.background, Theme.panel), the radar's blue and its glow (Theme.accent, Theme.glow), and the five
   rarities (Rarity.color). Headings are Nunito, the nearest free cousin of the app's rounded numbers; text is the
   system's own face, which on an iPhone is the app's. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --night: #050a17;
  --panel: #121a2b;
  --rule: rgb(160 190 255 / .12);
  --ink: #eef4ff;
  --ink-2: #a3b2cc;
  --ink-3: #74849f;
  --accent: #459eff;
  --glow: #6bdbff;
  --common: #9eb0cc;
  --uncommon: #40db99;
  --rare: #4d94ff;
  --epic: #ba73ff;
  --legendary: #ffc440;
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  /* The intro's light: the radar's blue, glowing from where the radar sits. */
  background: radial-gradient(900px 640px at 50% 360px, rgb(69 158 255 / .17), transparent 70%) no-repeat, var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p a, li a, .foot a { color: var(--glow); text-decoration-thickness: 1px; text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, summary { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 2; padding: 10px 14px; border-radius: 10px;
  background: var(--panel); color: var(--ink); }
.skip:focus { top: 12px; }

/* Header: the droplet and the name, and the two pages a visitor comes for besides this one. */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 850 1.25rem/1 var(--display); letter-spacing: -.01em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.top nav a:hover { color: var(--ink); }

/* Hero: the app's own intro, live. The radar's catch scene loops above the title and its line, all centred. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 4px 72px; }
.radar { position: relative; width: min(100%, 540px); aspect-ratio: 1; }
.radar video { width: 100%; height: auto; aspect-ratio: 1;
  /* The disk and its halo, plus the caption chip on its rim; the square around them goes. */
  -webkit-mask: radial-gradient(circle closest-side, #000 93%, transparent 100%),
                radial-gradient(25% 6.5% at 50% 94%, #000 72%, transparent 100%);
  mask: radial-gradient(circle closest-side, #000 93%, transparent 100%),
        radial-gradient(25% 6.5% at 50% 94%, #000 72%, transparent 100%); }
.pause { position: absolute; right: 3%; bottom: 3%; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 1px solid rgb(255 255 255 / .14); border-radius: 50%; background: rgb(255 255 255 / .07);
  color: var(--ink-2); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pause:hover { color: var(--ink); background: rgb(255 255 255 / .12); }
.pause[hidden] { display: none; }
.pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
  stroke-linejoin: round; }
.pause .tri { display: none; fill: currentColor; stroke-width: 1.4; }
.pause[aria-pressed="true"] .tri { display: block; }
.pause[aria-pressed="true"] .bars { display: none; }
.hero h1 { margin-top: 6px; max-width: 12em; font-weight: 900; font-size: clamp(2.25rem, 1.1rem + 4.6vw, 4.25rem);
  line-height: 1.04; letter-spacing: -.02em; }
.lede { margin-top: 16px; max-width: 30em; color: var(--glow); font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.4; }
.hero .soon, .hero .store { margin-top: 32px; }

/* Not a button: where the game will be. A blip of the radar's glow before the words. */
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgb(69 158 255 / .12); border: 1px solid rgb(107 219 255 / .25); color: var(--glow);
  font: 750 .9375rem/1.2 var(--display); }
.soon::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--glow);
  box-shadow: 0 0 10px 2px rgb(107 219 255 / .6); }
.store { display: inline-block; }
.store img { height: 52px; width: auto; }

/* Sections: a heading, a line at most, then the thing itself. */
.part { padding-block: 64px; }
.part h2 { font-weight: 850; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; }
.line { margin-top: 10px; color: var(--ink-2); font-size: 1.125rem; }
@media (min-width: 820px) { .part { padding-block: 88px; } }

/* How it plays: the app's three tabs, each a piece of its screen that fades out where the screen goes on. On a
   phone they scroll sideways, the next one peeking in. */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 300px); gap: 20px; margin: 32px -16px 0;
  padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { scroll-snap-align: start; }
.tab img { width: 100%; height: auto; border-radius: 26px 26px 0 0; background: var(--panel);
  -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); }
.tab h3 { margin-top: 6px; font-weight: 850; font-size: 1.375rem; }
.tab p { margin-top: 4px; max-width: 22em; color: var(--ink-2); }
@media (min-width: 820px) {
  .tabs { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 40px 0 0;
    padding: 0; overflow: visible; }
}

/* Five rarities: a ladder of the radar's blips, growing and warming from common to legendary along one line. */
.ladder { --line: linear-gradient(90deg, var(--common), var(--uncommon), var(--rare), var(--epic), var(--legendary));
  position: relative; display: grid; gap: 22px; margin-top: 32px; padding: 0 0 0 40px; list-style: none; }
.ladder::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, var(--common), var(--uncommon), var(--rare), var(--epic), var(--legendary));
  opacity: .45; }
.ladder li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.blip { position: absolute; left: -27px; top: 50%; translate: -50% -50%; width: var(--s, 14px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 10%, var(--c) 48%, color-mix(in srgb, var(--c) 55%, #000) 100%);
  box-shadow: 0 0 14px 3px color-mix(in srgb, var(--c) 50%, transparent); }
.ladder li:nth-child(1) { --s: 12px; }
.ladder li:nth-child(2) { --s: 14px; }
.ladder li:nth-child(3) { --s: 16px; }
.ladder li:nth-child(4) { --s: 19px; }
.ladder li:nth-child(5) { --s: 23px; }
.ladder strong { color: var(--c); font: 850 1.3rem/1.2 var(--display); }
.pts { color: var(--ink-3); font-size: .9375rem; }
.eg { flex-basis: 100%; color: var(--ink); }
@media (min-width: 820px) {
  .ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 40px; padding: 48px 0 0; }
  .ladder::before { left: 10%; right: 10%; top: 23px; bottom: auto; width: auto; height: 2px; background: var(--line); }
  .ladder li { flex-direction: column; align-items: center; text-align: center; row-gap: 2px; }
  .blip { left: 50%; top: -25px; }
  .eg { flex-basis: auto; margin-top: 6px; }
}

/* Help: questions that open in place. */
.qa { margin-top: 28px; max-width: 46rem; border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  font-weight: 750; font-size: 1.1875rem; line-height: 1.3; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--ink-3);
  border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -3px; transition: rotate .2s, translate .2s; }
.qa details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.qa details p { padding-bottom: 20px; max-width: 40em; color: var(--ink-2); }

/* The end: Blooth, and where to get the game. */
.get .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.blooth { width: 112px; height: 112px; filter: drop-shadow(0 12px 32px rgb(69 158 255 / .45)); }
.get h2 { margin-top: 20px; }
.get .soon, .get .store { margin-top: 22px; }
.needs { margin-top: 14px; color: var(--ink-3); font-size: .9375rem; }

.foot { border-top: 1px solid var(--rule); }
.foot .wrap { padding-block: 28px 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin-top: 10px; color: var(--ink-3); font-size: .875rem; }

/* The privacy policy and the 404: one column of text. */
.doc .wrap { max-width: 42rem; padding-block: 32px 80px; }
.doc h1 { font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -.015em; }
.doc .updated { margin-top: 10px; color: var(--ink-3); font-size: .9375rem; }
.doc .short { margin-top: 22px; font-size: 1.1875rem; line-height: 1.5; }
.doc h2 { margin-top: 40px; font-weight: 800; font-size: 1.375rem; line-height: 1.25; }
.doc h2 + p, .doc h2 + ul { margin-top: 10px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--glow); }

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