/* SORTVERSE website. Colours, type and shapes follow the game's own palette. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg-top: #6a3df2;
  --bg-bottom: #2a1895;
  --ink: #241466;
  --ink-soft: #4a3d8f;
  --sunny: #ffd60a;
  --sunny-dark: #e0a800;
  --pink: #ff4fa3;
  --pink-dark: #d42c80;
  --aqua: #22d3ee;
  --aqua-dark: #0e9fb8;
  --mint: #3ddc97;
  --mint-dark: #1fa870;
  --ball-red: #ff4757;
  --ball-orange: #ff9f1a;
  --ball-lemon: #ffe14d;
  --ball-green: #45d86b;
  --ball-sky: #29c6f2;
  --ball-blue: #3b5bff;
  --ball-orchid: #b65cff;
  --ball-pink: #ff7ec0;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --radius: 28px;
  --gutter: 16px;
  --max: 1120px;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 126, 192, 0.22) 0 120px, transparent 121px),
    radial-gradient(circle at 88% 32%, rgba(41, 198, 242, 0.18) 0 160px, transparent 161px),
    radial-gradient(circle at 20% 78%, rgba(182, 92, 255, 0.2) 0 140px, transparent 141px),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--sunny);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff3a6;
}

:focus-visible {
  outline: 3px solid var(--sunny);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sunny);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(42, 24, 149, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.brand:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* Mobile menu: only collapsed when JavaScript is running (html.js), so
   every link stays reachable without it. */
@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 0.2s ease;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before {
    position: absolute;
    top: -6px;
  }

  .nav-toggle-bars::after {
    position: absolute;
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header-row {
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 12px;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
  }

  .js .site-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 1.125rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--sunny);
  box-shadow: 0 6px 0 var(--sunny-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--sunny-dark);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--sunny-dark);
}

.btn-pink {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 6px 0 var(--pink-dark);
}

.btn-pink:hover {
  color: #fff;
  box-shadow: 0 8px 0 var(--pink-dark);
}

/* Store "coming soon" pills: not links, never look clickable. */
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  line-height: 1.15;
}

.store-pill img {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-pill small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sunny);
}

.store-pill strong {
  font-size: 1.125rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------- balls */

.ball {
  --c: var(--ball-red);
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  /* Fallback for browsers without color-mix() (Safari < 16.2, Firefox < 113). */
  background:
    radial-gradient(ellipse 34% 22% at 38% 22%, rgba(255, 255, 255, 0.85) 0 60%, transparent 62%),
    radial-gradient(circle at 50% 55%, var(--c) 0 55%, var(--c) 100%);
  box-shadow: 0 0.12em 0.3em rgba(0, 0, 0, 0.25);
  background:
    radial-gradient(ellipse 34% 22% at 38% 22%, rgba(255, 255, 255, 0.85) 0 60%, transparent 62%),
    radial-gradient(circle at 50% 55%, var(--c) 0 55%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  box-shadow: 0 0.12em 0.3em color-mix(in srgb, var(--c) 55%, transparent);
}

.b-red { --c: var(--ball-red); }
.b-orange { --c: var(--ball-orange); }
.b-lemon { --c: var(--ball-lemon); }
.b-green { --c: var(--ball-green); }
.b-sky { --c: var(--ball-sky); }
.b-blue { --c: var(--ball-blue); }
.b-orchid { --c: var(--ball-orchid); }
.b-pink { --c: var(--ball-pink); }

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

.hero {
  position: relative;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .hero {
    padding: 72px 0 96px;
  }
}

.wordmark {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.1rem, 13vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.wordmark span {
  display: inline-block;
  text-shadow: 0 0.06em 0 var(--ink), 0 0.1em 0.18em rgba(20, 8, 70, 0.45);
}

.wordmark span:nth-child(odd) {
  transform: translateY(0.04em) rotate(-3deg);
}

.wordmark span:nth-child(even) {
  transform: translateY(-0.03em) rotate(2deg);
}

.tagline {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.4vw, 2.25rem);
  line-height: 1.15;
  color: var(--sunny);
}

.lead {
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 440px;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(300px, 72vw);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a2a9e, #1a0f5e);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18) inset,
    0 30px 60px rgba(10, 4, 50, 0.55);
  transform: rotate(3deg);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.float {
  position: absolute;
  z-index: 3;
  font-size: 58px;
}

.float.f1 { top: 6%; left: 6%; font-size: 64px; }
.float.f2 { top: 2%; right: 10%; font-size: 40px; }
.float.f3 { bottom: 16%; left: 2%; font-size: 46px; }
.float.f4 { bottom: 4%; right: 6%; font-size: 70px; }
.float.f5 { top: 46%; right: 0; font-size: 34px; }

@media (prefers-reduced-motion: no-preference) {
  .float {
    animation: bob 5s ease-in-out infinite;
  }

  .float.f2 { animation-delay: -1.2s; animation-duration: 6s; }
  .float.f3 { animation-delay: -2.4s; animation-duration: 5.5s; }
  .float.f4 { animation-delay: -0.6s; animation-duration: 6.5s; }
  .float.f5 { animation-delay: -3s; }

  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
}

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

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 40em;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--text-soft);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sunny);
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* How to play */

.step {
  position: relative;
  text-align: center;
}

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sunny);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25rem;
  box-shadow: 0 4px 0 var(--sunny-dark);
}

.step-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  height: 150px;
  margin: 18px 0 16px;
}

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

/* A small CSS tube, like the app's rounded glass tubes. */
.tube {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3px;
  width: 44px;
  height: 128px;
  padding: 5px 0;
  border-radius: 12px 12px 24px 24px;
  background: rgba(36, 20, 102, 0.55);
  border: 2.5px solid rgba(255, 255, 255, 0.55);
  font-size: 30px;
}

.tube.lifted .ball:last-child {
  transform: translateY(-34px);
}

.tube.done {
  border-color: var(--mint);
  box-shadow: 0 0 18px rgba(61, 220, 151, 0.55);
}

.arrow {
  align-self: center;
  width: 34px;
  height: 34px;
  color: var(--sunny);
}

.world-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.world-dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.world-dot svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

/* Worlds */

.world {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 22px 40px rgba(10, 4, 50, 0.35);
}

/* The app's world gradients, under a 40% ink layer so white text meets
   WCAG AA contrast (4.5:1) on the light end of each gradient. */
.world { --shade: linear-gradient(rgba(27, 13, 92, 0.4), rgba(27, 13, 92, 0.4)); }
.world.garden { background: var(--shade), linear-gradient(145deg, #2fc58a, #1e8f86); }
.world.caverns { background: var(--shade), linear-gradient(145deg, #2fb8e8, #4a3bd6); }
.world.comet { background: var(--shade), linear-gradient(145deg, #ff6fa8, #9b3fd6); }

.world-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.world-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.world-icon svg {
  width: 34px;
  height: 34px;
}

.world-levels {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
  font-weight: 800;
}

.world h3 {
  font-size: 1.875rem;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.world p {
  color: rgba(255, 255, 255, 0.92);
}

.world .in-game {
  font-style: italic;
  font-size: 0.9375rem;
}

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

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.875rem;
  font-weight: 800;
}

.world-balls {
  position: absolute;
  right: -8px;
  bottom: -10px;
  display: flex;
  gap: 4px;
  font-size: 40px;
  opacity: 0.9;
  pointer-events: none;
}

.world-body {
  position: relative;
  z-index: 1;
  padding-bottom: 36px;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .features { grid-template-columns: repeat(3, 1fr); }

  /* Ten features: centre the last one instead of leaving it alone on the left. */
  .feature:last-child:nth-child(3n + 1) { grid-column: 2; }
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
}

.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  color: var(--ink);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.fi-sunny { background: var(--sunny); }
.fi-pink { background: var(--pink); color: #fff; }
.fi-aqua { background: var(--aqua); }
.fi-mint { background: var(--mint); }

.feature h3 {
  margin: 2px 0 4px;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Coming soon */

.soon {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 24px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 214, 10, 0.25) 0 110px, transparent 111px),
    linear-gradient(135deg, rgba(255, 79, 163, 0.35), rgba(34, 211, 238, 0.25));
  border: 1px solid var(--glass-line);
}

@media (min-width: 860px) {
  .soon {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 48px;
  }
}

.soon-phones {
  display: flex;
  justify-content: center;
}

.soon-phones .phone {
  width: min(220px, 58vw);
  transform: rotate(-4deg);
}

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

.site-footer {
  margin-top: 40px;
  padding: 48px 0 40px;
  background: rgba(20, 10, 70, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin-bottom: 10px;
  font-size: 1.125rem;
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 6px;
}

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

/* Stand-alone list links get at least a 24px tap target (WCAG 2.2, 2.5.8);
   links inside sentences are exempt. */
.site-footer li a,
.toc a,
.doc td a {
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
}

.site-footer a:hover {
  color: #fff;
}

.fine-print {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
}

/* -------------------------------------------------- document pages */

.doc-hero {
  padding: 48px 0 24px;
  text-align: center;
}

.doc-hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.doc-hero p {
  max-width: 36em;
  margin: 0 auto;
  color: var(--text-soft);
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18), 0 24px 48px rgba(10, 4, 50, 0.35);
}

@media (min-width: 700px) {
  .doc {
    padding: 44px 52px;
  }
}

.doc h2 {
  margin-top: 1.6em;
  font-size: 1.75rem;
  color: var(--ink);
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin-top: 1.4em;
  font-size: 1.25rem;
  color: var(--ink);
}

.doc a {
  color: #5b2bd6;
  font-weight: 700;
}

.doc a:hover {
  color: var(--pink-dark);
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc strong {
  font-weight: 800;
}

.doc table {
  width: 100%;
  margin: 0 0 1.2em;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3ddf7;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: #f3f0ff;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

.table-scroll table {
  margin: 0;
}

.doc td,
.doc th {
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .doc th,
  .doc td {
    padding: 8px 6px;
    font-size: 0.875rem;
  }
}

.doc .meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.notice {
  margin: 0 0 1.4em;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f3f0ff;
  border-left: 6px solid var(--bg-top);
}

.notice.draft {
  background: #fff6cc;
  border-left-color: var(--sunny-dark);
}

/* Placeholders the owner must fill before publishing. Easy to find:
   search the source for "REQUIRES OWNER CONFIRMATION". */
.confirm {
  padding: 1px 6px;
  border-radius: 6px;
  background: #ffe1ef;
  color: #9c1457;
  font-weight: 800;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.doc .steps {
  counter-reset: step;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  margin-bottom: 12px;
  padding: 14px 16px 14px 62px;
  border-radius: 18px;
  background: #f6f3ff;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sunny);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.125rem;
  box-shadow: 0 3px 0 var(--sunny-dark);
}

.ui {
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--sunny);
  color: var(--ink) !important;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--sunny-dark);
  word-break: break-all;
}

.toc {
  margin: 0 0 1.6em;
  padding: 16px 20px;
  border-radius: 18px;
  background: #f6f3ff;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 1.4em;
}

@media (min-width: 640px) {
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.help-card {
  padding: 18px;
  border-radius: 18px;
  background: #f6f3ff;
}

.help-card h3 {
  margin-top: 0;
}

.help-card p:last-child {
  margin-bottom: 0;
}

details {
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f6f3ff;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details[open] summary {
  margin-bottom: 8px;
}

/* ------------------------------------------------------ reveal motion */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .doc {
    box-shadow: none;
    padding: 0;
  }
}
