/* BUILD & RIDE website, phone first. No external requests.
   The headings use the game's own Open Sans Bold, declared in fonts.css (linked by the pages that allow fonts);
   without it they fall back to the system font, which the text uses anyway. */

:root {
  color-scheme: dark;
  --bg: #0b0620;
  --bg-2: #120a2e;
  --bg-top: #1b0d42;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --line: rgba(140, 205, 255, 0.17);
  --text: #f4efff;
  --muted: #c3b8e3;
  --cyan: #45e3f2;
  --pink: #ff4f9a;
  --gold: #ffc24f;
  --violet: #a978ff;
  --ink: #1a0b33;
  --radius: 20px;
  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 60px;
  --display: "Open Sans Site", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* accent colours: the modes keep the same colour on their cards and on the screenshots */
.c-cyan { --accent: var(--cyan); --accent-soft: rgba(69, 227, 242, 0.13); }
.c-pink { --accent: var(--pink); --accent-soft: rgba(255, 79, 154, 0.14); }
.c-gold { --accent: var(--gold); --accent-soft: rgba(255, 194, 79, 0.13); }
.c-violet { --accent: var(--violet); --accent-soft: rgba(169, 120, 255, 0.15); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 1rem/1.65 var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% 0, rgba(169, 120, 255, 0.22), transparent 70%),
    radial-gradient(700px 480px at 5% 0, rgba(255, 79, 154, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg) 760px);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* a quiet field of stars behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.2px 1.2px at 24px 36px, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 150px 92px, rgba(255, 255, 255, 0.85) 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 96px 170px, rgba(200, 240, 255, 0.9) 50%, transparent 52%),
    radial-gradient(1px 1px at 236px 214px, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 310px 48px, rgba(255, 220, 240, 0.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 200px 130px, rgba(255, 255, 255, 0.6) 50%, transparent 52%);
  background-size: 340px 260px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8ff1fa;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  z-index: 40;
}

/* dark text on the gold label in every state (a:hover would otherwise make it light cyan on gold) */
.skip:hover,
.skip:active,
.skip:focus {
  color: var(--ink);
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 6, 32, 0.88);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 1rem/1 var(--display);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(69, 227, 242, 0.35), 0 0 16px rgba(255, 79, 154, 0.35);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .lang a {
  margin-left: 6px;
  color: var(--text);
  border: 1px solid var(--line);
}

/* on phones the header keeps the name and the language; the page itself is the menu */
.nav .sect {
  display: none;
}

@media (min-width: 700px) {
  .nav .sect {
    display: block;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 0 56px;
  text-align: center;
}

/* a neon floor that runs to the horizon behind the collage */
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -60%;
  right: -60%;
  bottom: 0;
  height: 44%;
  background-image:
    linear-gradient(rgba(69, 227, 242, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 227, 242, 0.6) 1px, transparent 1px);
  background-size: 56px 34px;
  background-position: center bottom;
  transform: perspective(360px) rotateX(58deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, 0.6) 40%, transparent 88%);
  mask-image: linear-gradient(to top, #000 0, rgba(0, 0, 0, 0.6) 40%, transparent 88%);
  opacity: 0.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(69, 227, 242, 0.35);
  background: rgba(69, 227, 242, 0.08);
  color: var(--cyan);
  font: 700 0.75rem/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark {
  margin: 0;
  font: 700 clamp(3.4rem, 16.5vw, 7.6rem)/0.98 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--gold);
  filter: drop-shadow(0 0 22px rgba(255, 79, 154, 0.38));
}

.wordmark span {
  display: block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark {
    background: linear-gradient(180deg, #ffd977 8%, #ffb14d 42%, #ff7a86 62%, #ff4f9a 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tagline {
  margin: 14px 0 0;
  font: 700 clamp(1.35rem, 5.6vw, 2.1rem)/1.2 var(--display);
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(69, 227, 242, 0.45);
}

.lead {
  max-width: 40rem;
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: var(--text);
}

.note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* the collage, framed like a glowing screen, with the sun rising behind it */
.showcase {
  position: relative;
  isolation: isolate;
  max-width: 1160px;
  margin: calc(13% + 26px) auto 0;
}

.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -28%);
  background: linear-gradient(180deg, #ffe08a 0%, #ffb347 30%, #ff7a7f 60%, #ff4f9a 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 15%, transparent 15% 17%, #000 17% 21%, transparent 21% 24%, #000 24% 27%, transparent 27% 31%, #000 31%);
  mask-image: linear-gradient(180deg, #000 0 15%, transparent 15% 17%, #000 17% 21%, transparent 21% 24%, #000 24% 27%, transparent 27% 31%, #000 31%);
}

.frame {
  padding: 3px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 45%, var(--pink));
  box-shadow: 0 30px 80px -24px rgba(255, 79, 154, 0.6), 0 0 90px rgba(169, 120, 255, 0.3);
}

.frame img {
  width: 100%;
  border-radius: 16px;
  background: var(--bg-2);
}

/* ------------------------------------------------------------------ buttons */

.cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 360px;
  margin: 26px auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--display);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(90deg, var(--gold), var(--pink));
  box-shadow: 0 8px 28px rgba(255, 79, 154, 0.35);
}

/* Only real links react to the mouse. The coming-soon label is a <span>: it keeps its colours, has no hover
   state and no pointer. (A plain ".btn:hover" used to give it the dark text of the gradient button on its
   transparent background, so the label disappeared.) */
a.btn:hover,
a.btn:active {
  color: var(--ink);
  filter: brightness(1.08);
}

.btn-soon {
  color: var(--text);
  background: rgba(255, 194, 79, 0.06);
  border: 2px dashed rgba(255, 194, 79, 0.75);
  box-shadow: none;
  cursor: default;
}

.btn-ghost {
  color: var(--cyan);
  background: transparent;
  border-color: rgba(69, 227, 242, 0.6);
  box-shadow: 0 0 22px rgba(69, 227, 242, 0.16);
}

a.btn-ghost:hover,
a.btn-ghost:active {
  color: #8ff1fa;
  background: rgba(69, 227, 242, 0.08);
  filter: none;
}

@media (min-width: 640px) {
  .cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: 72px 0 0;
}

.section-head {
  max-width: 46rem;
  margin: 0 0 28px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font: 700 0.78rem/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font: 700 clamp(1.8rem, 1.15rem + 2.8vw, 2.8rem)/1.15 var(--display);
  text-wrap: balance;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
}

.sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

/* the three steps */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
}

.step-no {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--accent);
  font: 700 0.8rem/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step h3 {
  margin: 16px 0 6px;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--accent);
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* the modes */
.modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode {
  position: relative;
  flex: 1 1 100%;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mode::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

.mode .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.mode h3 {
  margin: 14px 0 2px;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--accent);
}

.mode .mode-tag {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
}

.mode p {
  margin: 0;
  color: var(--muted);
}

/* the screenshots: a row to swipe on phones, a grid on wider screens */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 14px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 227, 242, 0.55) transparent;
}

.gallery > li {
  min-width: 0;
  scroll-snap-align: start;
}

.shot {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.shot a {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}

.shot a:focus-visible {
  outline-offset: -4px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.shot a:hover img {
  transform: scale(1.04);
}

.shot figcaption {
  padding: 12px 14px 15px;
  line-height: 1.4;
}

.chip {
  display: table;
  margin-bottom: 7px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 700 0.72rem/1.35 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.swipe-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* also in the game */
.facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.fact .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.fact .i {
  width: 24px;
  height: 24px;
}

.fact strong {
  display: block;
  margin: 1px 0 3px;
  font: 700 1.06rem/1.3 var(--display);
}

.fact span {
  color: var(--muted);
}

/* break the list of languages between the names, not inside a Korean or Japanese one */
.fact .langs {
  word-break: keep-all;
}

/* the closing call */
.final {
  padding: 80px 0 8px;
  text-align: center;
}

.banner {
  max-width: 880px;
  margin: 0 auto 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(69, 227, 242, 0.35), 0 24px 70px -20px rgba(255, 79, 154, 0.5);
}

.banner img {
  width: 100%;
}

/* ------------------------------------------------------------------ wider screens */

@media (min-width: 640px) {
  .mode {
    flex: 0 1 calc(50% - 8px);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact.wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 720px) {
  .gallery {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .swipe-hint {
    display: none;
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: 28px;
    --header-h: 68px;
  }

  .hero {
    padding: 64px 0 88px;
  }

  .lead {
    font-size: 1.22rem;
  }

  .section {
    padding-top: 104px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1100px) {
  .mode {
    flex-basis: calc(25% - 12px);
  }

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

  /* three across; the list of languages takes the last two places of the second row */
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fact.wide {
    grid-column: span 2;
  }
}

@media (max-width: 360px) {
  .btn {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.97rem;
  }
}

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

  .shot img {
    transition: none;
  }

  .shot a:hover img {
    transform: none;
  }
}

/* ------------------------------------------------------------------ the screenshot viewer (assets/js/gallery.js) */

html.lb-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: rgba(7, 3, 20, 0.97);
  overflow: hidden;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* the dialog itself covers the whole screen */
.lightbox::backdrop {
  background: transparent;
}

.lb-bar,
.lb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.lb-bar {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 4px;
}

.lb-foot {
  padding-top: 8px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.lb-count {
  margin: 0;
  color: var(--muted);
  font: 700 0.9rem/1 var(--display);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.lb-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lb-btn .i {
  width: 24px;
  height: 24px;
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 6px var(--gutter);
  container-type: size;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

/* as large as the stage allows, always 16:9 (all the screenshots are), so the small picture shown while the
   large one loads takes the same place */
.lb-img {
  width: 100%;
  width: min(100cqw, 100cqh * 16 / 9);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-2);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 70px -20px var(--accent);
  transition: transform 0.2s ease;
  -webkit-user-drag: none;
}

.lb-img.is-dragging {
  transition: none;
}

.lb-img.from-next {
  animation: lb-from-next 0.24s ease-out;
}

.lb-img.from-prev {
  animation: lb-from-prev 0.24s ease-out;
}

@keyframes lb-from-next {
  from {
    opacity: 0.35;
    transform: translateX(36px);
  }
}

@keyframes lb-from-prev {
  from {
    opacity: 0.35;
    transform: translateX(-36px);
  }
}

.lb-stage.is-loading .lb-img {
  opacity: 0;
}

.lb-stage.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lb-spin 0.8s linear infinite;
}

@keyframes lb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* room for a caption of two lines, so the picture does not jump from one screenshot to the next */
.lb-cap {
  flex: 1;
  min-width: 0;
  min-height: 4.4rem;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.lb-cap .chip {
  margin: 0 auto 6px;
}

/* wider screens (and phones on their side): the arrows sit beside the picture */
@media (min-width: 720px) {
  .lb-stage {
    padding: 8px 92px;
  }

  .lb-prev,
  .lb-next {
    position: absolute;
    top: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
  }

  .lb-prev {
    left: max(20px, env(safe-area-inset-left));
  }

  .lb-next {
    right: max(20px, env(safe-area-inset-right));
  }

  .lb-cap {
    min-height: 0;
  }
}

/* phones on their side: little height, so the caption takes one line */
@media (max-height: 560px) {
  .lb-bar {
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: 0;
  }

  .lb-foot {
    padding-top: 4px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .lb-cap {
    min-height: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lb-cap .chip {
    display: inline-block;
    margin: 0 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-img,
  .lb-img.from-next,
  .lb-img.from-prev {
    animation: none;
    transition: none;
  }

  .lb-stage.is-loading::after {
    animation-duration: 2.4s;
  }
}

/* ------------------------------------------------------------------ the privacy policy */

.doc {
  max-width: 46rem;
  padding: 44px 0 24px;
}

.doc h1 {
  margin: 0 0 8px;
  font: 700 clamp(2rem, 1.3rem + 2.8vw, 3rem)/1.12 var(--display);
  text-shadow: 0 0 24px rgba(255, 79, 154, 0.45);
}

.doc .meta {
  margin: 0 0 26px;
  color: var(--muted);
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--gold);
}

.doc h3 {
  margin: 24px 0 6px;
  font-size: 1.12rem;
  color: var(--cyan);
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin: 5px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}

.doc .summary {
  margin: 20px 0 8px;
  background: linear-gradient(180deg, rgba(69, 227, 242, 0.07), rgba(255, 255, 255, 0.03));
  border-color: rgba(69, 227, 242, 0.28);
}

.doc .summary h2 {
  margin-top: 0;
  color: var(--cyan);
}

.doc .summary ul {
  margin: 0;
}

.doc code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 0.92em;
  color: #ffd98f;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ footer */

.foot {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot .wrap {
  display: grid;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 36px;
}

.foot p {
  margin: 0;
}

.foot .brand {
  font-size: 0.95rem;
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a {
  color: var(--muted);
}

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

.foot .small {
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .foot .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ------------------------------------------------------------------ the 404 page (its own HTML stays as it is) */

.lost {
  text-align: center;
  padding: 72px 0 40px;
}

.lost h1 {
  margin: 18px 0 8px;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 800;
}

.lost img {
  margin: 0 auto;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(69, 227, 242, 0.35), 0 0 40px rgba(255, 79, 154, 0.35);
}

.lost .cta {
  flex-direction: row;
  justify-content: center;
  max-width: none;
}
