@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Backgrounds */
  --bg: #000000;
  --raised: #181818;
  --raised-2: #1f1f1f;
  --selection: #272727;
  --line-strong: #313131;
  /* Ciel's own gray tokens, from DesignSystem.swift */
  --text: #f0f0f0;
  --accent: #ebebeb;
  --secondary: #9e9e9e;
  --border: #4d4d4d;
  --line: #1f1f1f;

  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --slow: 700ms;
  --quick: 300ms;
  --content: 1120px;
  --measure: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-900);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 14px;
  color: var(--text);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin: 0 var(--s-25);
  padding: 0 var(--s-50);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  vertical-align: 2px;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: var(--s-75);
  left: var(--s-75);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  transform: translateY(-200%);
  transition: transform var(--quick) var(--ease);
}

.skip:focus-visible {
  transform: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: 9999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  transition:
    background-color var(--quick) var(--ease),
    transform var(--quick) var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  border-radius: 9999px;
}

.btn-sm {
  font-size: 14px;
  line-height: 20px;
}

/* Navigation */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  width: max-content;
  margin: var(--s-300) auto 0;
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  background: rgba(24, 24, 24, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  pointer-events: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.nav-brand img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: var(--s-300);
}

.nav-links a,
.nav-icon {
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
  transition: color var(--quick) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current],
.nav-icon:hover {
  color: var(--text);
}

.burger {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--slow) var(--ease);
}

.burger span:first-child {
  transform: translateY(-4px);
}

.burger span:last-child {
  transform: translateY(4px);
}

.burger[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  padding: var(--s-900) var(--s-300);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}

.menu[hidden] {
  display: none;
}

.menu.open {
  opacity: 1;
}

.menu ul {
  display: grid;
  gap: var(--s-300);
}

.menu li {
  overflow: hidden;
}

.menu a {
  display: block;
  font-size: 30px;
  font-weight: 600;
  line-height: 36px;
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

.menu.open a {
  opacity: 1;
  transform: none;
}

.menu li:nth-child(1) a { transition-delay: 100ms; }
.menu li:nth-child(2) a { transition-delay: 150ms; }
.menu li:nth-child(3) a { transition-delay: 200ms; }
.menu li:nth-child(4) a { transition-delay: 250ms; }
.menu li:nth-child(5) a { transition-delay: 300ms; }

/* Scroll reveal */

.js .reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(64px);
  transition:
    opacity 900ms var(--ease),
    filter 900ms var(--ease),
    transform 900ms var(--ease);
}

.js .reveal.in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Hero */

main > section {
  padding: var(--s-900) var(--s-300) 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: var(--measure);
  margin-top: var(--s-700);
  padding-bottom: var(--s-50);
  background: linear-gradient(90deg, #ffffff, #9b9b9b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: var(--measure);
  margin-top: var(--s-300);
  color: var(--secondary);
  font-size: 18px;
  line-height: 28px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-200);
  margin-top: var(--s-500);
}

.proof {
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

/* Demo stage */

.stage {
  position: relative;
  width: 100%;
  max-width: var(--content);
  aspect-ratio: 16 / 10;
  margin-top: var(--s-700);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--raised);
  text-align: left;
  isolation: isolate;
}

.stage-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menubar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-200);
  height: 24px;
  padding: 0 var(--s-200);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.menubar svg {
  width: 12px;
  height: 12px;
}

.menubar-ciel {
  margin-left: auto;
  border-radius: 4px;
}

.area {
  position: absolute;
  inset: 24px 0 0;
}

.win {
  position: absolute;
  left: 18%;
  top: 30%;
  width: 52%;
  height: 58%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--raised);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  transform-origin: 50% 100%;
  transition:
    left var(--slow) var(--ease),
    top var(--slow) var(--ease),
    width var(--slow) var(--ease),
    height var(--slow) var(--ease),
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

.win.minimized {
  opacity: 0;
  transform: translateY(24px) scale(0.2);
}

.win.pop {
  animation: pop var(--slow) var(--ease);
}

@keyframes pop {
  from {
    opacity: 0.4;
    transform: scale(0.96);
  }
}

.win-bar {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  height: 32px;
  padding: 0 var(--s-100);
  background: var(--raised-2);
}

.win-bar i {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--line-strong);
}

.win-title {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  margin: 0 auto;
  padding-right: var(--s-700);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.win-title svg {
  width: 14px;
  height: 14px;
}

.win-body {
  display: grid;
  align-content: start;
  gap: var(--s-100);
  padding: var(--s-300);
}

.skel {
  height: 12px;
  border-radius: 4px;
  background: var(--raised-2);
}

.w40 { width: 40%; }
.w60 { width: 60%; }
.w80 { width: 80%; }

/* Launcher, after Ciel's own layout: 640 wide, 68 tall when empty, 44 point rows */

.launcher {
  position: absolute;
  left: 50%;
  top: 20%;
  z-index: 2;
  width: min(57%, 640px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  transition: opacity 200ms var(--ease);
}

.launcher.closed {
  opacity: 0;
  pointer-events: none;
}

.launcher-top {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  height: 68px;
  padding: 0 var(--s-200) 0 var(--s-300);
  cursor: text;
}

.launcher-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--text);
  font: inherit;
  font-size: 20px;
  line-height: 28px;
}

.launcher-input::selection {
  background: var(--selection);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-200);
  border: 0;
  border-radius: 9999px;
  background: var(--raised);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background-color var(--quick) var(--ease);
}

.chip[hidden] {
  display: none;
}

.chip:hover {
  background: var(--raised-2);
}

.chip:active {
  transform: scale(0.98);
}

.chip span {
  color: var(--secondary);
}

.results {
  display: grid;
  gap: var(--s-50);
  max-height: calc(7 * 44px + 6 * 4px + 2 * 8px);
  padding: var(--s-75);
  overflow-y: auto;
  scrollbar-width: none;
  background:
    linear-gradient(var(--line), var(--line)) var(--s-300) 0 / calc(100% - 2 * var(--s-300)) 1px no-repeat;
}

.results[hidden] {
  display: none;
}

.row {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  height: 44px;
  padding: 0 var(--s-100) 0 var(--s-75);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  cursor: default;
  transition: background-color 120ms var(--ease);
}

.row[aria-selected="true"] {
  border-color: var(--line-strong);
  background: var(--selection);
}

.row.pressed {
  transform: translateY(1px);
}

.tile {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--raised-2);
  color: var(--accent);
}

.tile svg {
  width: 16px;
  height: 16px;
}

.tile.shape {
  background: transparent;
  color: var(--secondary);
}

.tile.shape svg {
  width: 28px;
  height: 20px;
}

.row-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-key {
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

.row:not([aria-selected="true"]) .row-key.ret,
.launcher.cmd .row-key.ret,
.launcher:not(.cmd) .row-key.num {
  display: none;
}

.hud {
  position: absolute;
  left: 50%;
  bottom: var(--s-400);
  z-index: 3;
  padding: var(--s-75) var(--s-200);
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition:
    opacity var(--quick) var(--ease),
    transform var(--quick) var(--ease);
  pointer-events: none;
}

.hud.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Stats */

.stats dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-200);
  max-width: var(--content);
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: var(--s-75);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat dd {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 30px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: -0.02em;
}

.stat dt {
  color: var(--secondary);
  text-wrap: pretty;
  font-size: 14px;
  line-height: 20px;
}

/* Tagline reveal */

.tagline {
  display: flex;
  justify-content: center;
}

main > .tagline {
  padding-top: var(--s-900);
}

.tagline-text {
  max-width: var(--measure);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tagline-text .w {
  color: rgba(240, 240, 240, 0.28);
  transition: color var(--slow) var(--ease);
}

.tagline-text .w.on {
  color: var(--text);
}

/* Sections */

.section-title {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 36px;
  line-height: 40px;
  letter-spacing: -0.02em;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-200);
  max-width: var(--content);
  margin: var(--s-600) auto 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  grid-column: span 2;
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition:
    border-color var(--quick) var(--ease),
    transform var(--slow) var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card-wide {
  grid-column: span 3;
  gap: var(--s-300);
}

.card-copy {
  display: grid;
  gap: var(--s-75);
}

.card h3 {
  font-size: 18px;
  line-height: 28px;
}

.card p {
  color: var(--secondary);
}

.card-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin-bottom: var(--s-200);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

.card-art svg {
  width: 40px;
  height: 40px;
}

.mini-results {
  display: grid;
  gap: var(--s-50);
  margin-top: auto;
  padding: var(--s-75);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mini-results li {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: var(--s-100);
  height: 44px;
  padding: 0 var(--s-100);
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
}

.mini-results li:first-child {
  background: var(--raised);
}

.mini-results code {
  color: var(--secondary);
}

.mini-results span {
  display: flex;
  align-items: center;
  gap: var(--s-75);
}

.mini-results svg {
  width: 16px;
  height: 16px;
}

.shapes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-75);
  margin-top: auto;
}

.shapes span {
  display: grid;
  place-items: center;
  aspect-ratio: 7 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--line-strong);
  transition:
    color var(--slow) var(--ease),
    border-color var(--slow) var(--ease),
    background-color var(--slow) var(--ease);
}

.shapes span.on {
  border-color: var(--line-strong);
  background: var(--raised);
  color: var(--text);
}

.shapes svg {
  width: 70%;
  height: auto;
}

.guides {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 75% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 0 25% / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) 0 75% / 100% 1px no-repeat;
}

.guides i {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
}

.guides .gx {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.guides .gy {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.guides b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 16%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transform: translate(-50%, -50%);
}

.js .guides b {
  animation: snap 5600ms var(--ease) infinite;
}

.js .guides i {
  animation: guide 5600ms var(--ease) infinite;
}

@keyframes snap {
  0%, 12% { left: 34%; top: 36%; }
  30%, 62% { left: 50%; top: 50%; }
  80%, 100% { left: 34%; top: 36%; }
}

@keyframes guide {
  0%, 18% { opacity: 0.12; }
  30%, 56% { opacity: 1; }
  70%, 100% { opacity: 0.12; }
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-200);
  max-width: var(--content);
  margin: var(--s-600) auto 0;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  padding: var(--s-300);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step h3 {
  font-size: 18px;
  line-height: 28px;
}

.step p {
  color: var(--secondary);
}

.keys {
  display: flex;
  gap: var(--s-75);
  margin-bottom: var(--s-300);
}

.keys kbd {
  min-width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 12px;
  font-size: 18px;
  line-height: 28px;
  vertical-align: 0;
}

.keys kbd.wide {
  padding: 0 var(--s-200);
  font-size: 14px;
  line-height: 20px;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: var(--s-75);
  max-width: 768px;
  margin: var(--s-600) auto 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color var(--quick) var(--ease);
}

.faq details:hover,
.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-200) var(--s-300);
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  width: 16px;
  height: 16px;
  color: var(--secondary);
  transition: transform var(--slow) var(--ease);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 var(--s-300) var(--s-300);
  color: var(--secondary);
}

.faq details p a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

/* Final call to action */

.final {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

main > .final {
  padding-bottom: var(--s-900);
}

.final-icon {
  width: 128px;
  height: 128px;
  margin-bottom: var(--s-300);
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--s-400) var(--s-300) var(--s-600);
  color: var(--secondary);
  font-size: 14px;
  line-height: 20px;
}

.footer ul {
  display: flex;
  gap: var(--s-300);
}

.footer a {
  transition: color var(--quick) var(--ease);
}

.footer a:hover {
  color: var(--text);
}

/* Narrow screens */

@media (max-width: 960px) {
  .stats dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .card-wide {
    grid-column: span 6;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav {
    gap: var(--s-200);
  }

  .nav-links,
  .nav-icon {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero-title {
    font-size: 30px;
    line-height: 36px;
  }

  .tagline-text {
    font-size: 36px;
    line-height: 40px;
  }

  .section-title {
    font-size: 30px;
    line-height: 36px;
  }

  .stage {
    aspect-ratio: 4 / 5;
  }

  .launcher {
    top: 12%;
    width: 92%;
  }

  .launcher-top {
    padding-left: var(--s-200);
  }

  .win {
    left: 6%;
    top: 46%;
    width: 88%;
    height: 48%;
  }

  .shapes {
    grid-template-columns: repeat(3, 1fr);
  }

  .mini-results li {
    grid-template-columns: 80px 1fr;
    white-space: nowrap;
  }

  .hud {
    white-space: normal;
    width: max-content;
    max-width: 88%;
    text-align: center;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Privacy and 404 */

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--s-900) var(--s-300);
}

.doc .section-title {
  margin: var(--s-700) 0 var(--s-600);
  text-align: left;
}

.doc h2 {
  margin: var(--s-500) 0 var(--s-100);
  font-size: 20px;
  line-height: 28px;
}

.doc p {
  color: var(--secondary);
}

.doc p + p {
  margin-top: var(--s-200);
}

.doc a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
}

.doc code {
  word-break: break-all;
}

.lost {
  display: grid;
  place-content: center;
  gap: var(--s-600);
  min-height: 100vh;
  padding: var(--s-300);
}

.lost-launcher {
  position: static;
  width: min(640px, calc(100vw - 2 * var(--s-300)));
  transform: none;
}

.lost-launcher .launcher-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nav-links.nav-links-always {
    display: flex;
  }
}
