/* ==========================================================================
   Carrom Clash — shared site styles
   Zero third-party requests: system fonts, inline SVG, no frameworks, no JS.
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-deep: #070b17;
  --card: #141a33;
  --card-hi: #1a2244;
  --line: rgb(154 163 199 / 0.18);
  --line-strong: rgb(154 163 199 / 0.34);
  --text: #e8ecff;
  --text-soft: #c9d0ee;
  --muted: #9aa3c7;
  --gold: #ffb020;
  --orange: #ff6a3d;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --violet: #a78bfa;
  --ink: #1b0d02;
  --grad: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --gutter: 16px;
  --a: 255 176 32; /* accent colour channels, set by .accent-* classes */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

html {
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle radial glows behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 100% 0%, rgb(255 106 61 / 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 15%, rgb(34 211 238 / 0.12), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgb(244 114 182 / 0.1), transparent 70%);
}

main { display: block; flex: 1 0 auto; }

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

h1, h2, h3, h4 { color: var(--text); text-wrap: balance; }
p { text-wrap: pretty; }

a {
  color: var(--cyan);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
a:hover { color: #67e8f9; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Gradient text (falls back to solid gold) */
.grad-text { color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Accent colours (RGB channels) used by cards, icons and rules */
.accent-gold   { --a: 255 176 32; }
.accent-orange { --a: 255 106 61; }
.accent-cyan   { --a: 34 211 238; }
.accent-pink   { --a: 244 114 182; }
.accent-violet { --a: 167 139 250; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgb(11 16 32 / 0.55);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 12px;
}
.brand:hover { color: var(--text); }
.brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgb(255 140 48 / 0.35);
}

.site-nav { width: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.site-nav a.nav-play { color: var(--cyan); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgb(255 176 32 / 0.14);
  box-shadow: inset 0 0 0 1px rgb(255 176 32 / 0.4);
}

@media (max-width: 359px) {
  .site-nav a { padding-inline: 0.35rem; font-size: 0.8125rem; }
}
@media (min-width: 720px) {
  .site-nav { width: auto; }
  .site-nav ul { gap: 0.35rem; }
  .site-nav a { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-icon { flex: none; width: 20px; height: 20px; }

.btn-primary {
  color: var(--ink);
  background: var(--grad);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 10px 30px -8px rgb(255 106 61 / 0.7),
    0 0 36px rgb(255 176 32 / 0.3);
}
.btn-primary:hover {
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 14px 36px -8px rgb(255 106 61 / 0.85),
    0 0 52px rgb(255 176 32 / 0.45);
}

.btn-secondary {
  color: var(--text);
  background: rgb(34 211 238 / 0.08);
  border-color: rgb(34 211 238 / 0.7);
  box-shadow: 0 0 28px rgb(34 211 238 / 0.2), inset 0 0 14px rgb(34 211 238 / 0.08);
}
.btn-secondary:hover {
  color: var(--text);
  background: rgb(34 211 238 / 0.16);
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgb(34 211 238 / 0.38), inset 0 0 14px rgb(34 211 238 / 0.12);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 559px) {
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- Hero ---------- */

.hero {
  overflow-x: clip;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 8vw, 5.5rem);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 2.75rem;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border: 1px solid rgb(34 211 238 / 0.32);
  border-radius: 999px;
  background: rgb(34 211 238 / 0.08);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}
.pill-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgb(34 211 238 / 0.2), 0 0 12px var(--cyan);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.25rem, 15vw, 6.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-title-1,
.hero-title-2 {
  display: block;
  width: fit-content;
}
.hero-title-1 {
  text-shadow: 0 0.06em 0 rgb(0 0 0 / 0.35), 0 0 0.45em rgb(34 211 238 / 0.28);
}
.hero-title-2 {
  padding: 0.02em 0.04em 0.08em 0;
  filter: drop-shadow(0 0.05em 0 rgb(122 36 0 / 0.55)) drop-shadow(0 0 0.35em rgb(255 106 61 / 0.4));
}

.tagline {
  margin: 1.1rem 0 0;
  font-size: clamp(1.3rem, 4.6vw, 1.75rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.t-cyan { color: var(--cyan); }
.t-gold { color: var(--gold); }
.t-pink { color: var(--pink); }

.lead {
  max-width: 34rem;
  margin: 1rem 0 1.75rem;
  color: var(--text-soft);
  font-size: 1.075rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Board illustration */
.hero-art {
  position: relative;
  isolation: isolate;
  width: min(88%, 460px);
  margin-inline: auto;
}
.hero-art::before {
  /* glow */
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 120 50 / 0.42), rgb(34 211 238 / 0.18) 50%, transparent 70%);
  filter: blur(28px);
}
.hero-art::after {
  /* ground shadow */
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -7%;
  height: 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.6), transparent);
}
.board {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 5rem); }

.section-alt {
  background: linear-gradient(180deg, transparent, rgb(20 26 51 / 0.55) 12%, rgb(20 26 51 / 0.55) 88%, transparent);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-size: clamp(1.9rem, 6.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.section-sub {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.075rem;
}
.sub-title {
  margin: 3rem 0 1.25rem;
  font-size: 1.3rem;
  font-weight: 900;
  text-align: center;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0) 60%), var(--card);
  box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.65);
}
.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
.card p { margin: 0; color: var(--muted); }

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Features */
.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: linear-gradient(135deg, rgb(var(--a) / 0.24), rgb(var(--a) / 0.08));
  box-shadow: inset 0 0 0 1px rgb(var(--a) / 0.45), 0 0 26px rgb(var(--a) / 0.2);
  font-size: 1.65rem;
  line-height: 1;
}

/* Power-ups */
.power-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.power-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-color: rgb(var(--a) / 0.38);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(var(--a) / 0.16), transparent 60%),
    var(--card);
}
.power-card h3 { color: rgb(var(--a)); font-size: 1.25rem; }
.power-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(var(--a) / 0.6), rgb(var(--a) / 0.12) 72%);
  box-shadow: 0 0 0 1px rgb(var(--a) / 0.55), 0 0 30px rgb(var(--a) / 0.45);
  font-size: 1.9rem;
  line-height: 1;
}
@media (min-width: 600px) {
  .power-grid { grid-template-columns: repeat(2, 1fr); }
  .power-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .power-grid { grid-template-columns: repeat(5, 1fr); }
  .power-card { flex-direction: column; }
  .power-card:last-child { grid-column: auto; }
  .power-icon { width: 68px; height: 68px; font-size: 2.1rem; }
}

.orb-steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .orb-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .orb-steps { grid-template-columns: repeat(4, 1fr); }
}
.orb-step { padding: 1.1rem 1.2rem; }
.orb-step-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.orb-step-icon {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

/* Scoring */
.score-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .score-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: 1.5rem; }
}

.coin-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.coin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.5rem;
  text-align: center;
}
.coin {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.45);
}
.coin::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--ring);
  border-radius: 50%;
}
.coin--white { --ring: #c7b184; background: radial-gradient(circle at 35% 30%, #fffdf7, #e2d4b4 72%); }
.coin--black { --ring: #6e6e7c; background: radial-gradient(circle at 35% 30%, #5a5a66, #121216 72%); box-shadow: 0 8px 18px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.14); }
.coin--queen { --ring: #ffc2d0; background: radial-gradient(circle at 35% 30%, #ff7090, #b3122a 72%); box-shadow: 0 8px 18px rgb(0 0 0 / 0.45), 0 0 26px rgb(244 63 94 / 0.45); }
.coin-name {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}
.coin-pts {
  margin-top: 0.15rem;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
}
.coin-pts small {
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 800;
}

.rule-list {
  display: grid;
  gap: 0.75rem;
}
.rule {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}
.rule h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.rule-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(var(--a) / 0.14);
  box-shadow: inset 0 0 0 1px rgb(var(--a) / 0.45);
  font-size: 1.3rem;
  line-height: 1;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--grad);
  box-shadow: 0 0 26px rgb(255 140 40 / 0.45);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

/* Closing call to action */
.cta-band {
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgb(255 176 32 / 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 50% 0%, rgb(255 140 40 / 0.22), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgb(244 114 182 / 0.16), transparent 60%),
    var(--card);
  box-shadow: 0 0 70px -12px rgb(255 120 40 / 0.35);
  text-align: center;
}
.cta-band .section-sub { margin-bottom: 1.75rem; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Legal / text pages ---------- */

.legal { padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem); }

.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose p,
.prose li { color: var(--text-soft); }
.prose p { margin: 0 0 1rem; }
.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.35rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: clamp(1.3rem, 4.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: 1.25rem;
}
.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  scroll-margin-top: 1.25rem;
}
.prose code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9em;
}
.prose .num { color: var(--gold); }
.nowrap { white-space: nowrap; }
.prose .eyebrow { margin: 0 0 0.6rem; color: var(--cyan); }

.legal-head { margin-bottom: 1.75rem; }
.legal-head h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 8vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.prose .effective {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgb(255 176 32 / 0.32);
  border-radius: 999px;
  background: rgb(255 176 32 / 0.1);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 700;
}
.prose .lede { font-size: 1.1rem; }

.callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgb(34 211 238 / 0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(34 211 238 / 0.1), rgb(244 114 182 / 0.07));
}
.callout-warn {
  border-color: rgb(255 176 32 / 0.45);
  background: linear-gradient(135deg, rgb(255 176 32 / 0.12), rgb(255 106 61 / 0.07));
}
.prose .callout h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}
.prose .callout ul,
.prose .callout p:last-child { margin-bottom: 0; }

.toc {
  margin: 1.75rem 0 0.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.prose .toc h2 {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.prose .toc ol { margin: 0; }
.prose .toc li { margin: 0.3rem 0; break-inside: avoid; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--cyan); text-decoration: underline; }
@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 2.5rem; }
}

/* Delete-account page */
.app-facts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  margin: 0 0 2rem;
}
.app-facts div {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.app-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.app-facts dd {
  margin: 0.15rem 0 0;
  color: var(--text);
  font-weight: 800;
}

.option { margin: 1.25rem 0; padding: clamp(1.25rem, 4vw, 1.75rem); }
.prose .option h2 { margin-top: 0.4rem; }
.prose .option > :last-child { margin-bottom: 0; }
.prose .tag {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgb(var(--a) / 0.45);
  border-radius: 999px;
  background: rgb(var(--a) / 0.12);
  color: rgb(var(--a));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose .step-list {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.prose .step-list li {
  position: relative;
  min-height: 2rem;
  margin: 0.75rem 0;
  padding: 0.2rem 0 0 2.75rem;
  counter-increment: step;
}
.prose .step-list li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.prose .check-list {
  padding: 0;
  list-style: none;
}
.prose .check-list li {
  position: relative;
  padding-left: 2.1rem;
}
.prose .check-list li::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgb(34 211 238 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2322d3ee' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
  box-shadow: inset 0 0 0 1px rgb(34 211 238 / 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgb(7 11 23 / 0.7);
  padding-block: 2.25rem 1.5rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}
.footer-tag {
  max-width: 30rem;
  margin: 0.6rem 0 0;
  color: var(--muted);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }
.footer-nav a[aria-current="page"] { color: var(--gold); }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion (only when the user hasn't asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }

  .pill-dot { animation: cc-blink 2.4s ease-in-out infinite; }

  .board { animation: cc-float 7s ease-in-out infinite; }
  .hero-art::after { animation: cc-shadow 7s ease-in-out infinite; }

  .cb-orb-core {
    transform-box: fill-box;
    transform-origin: center;
    animation: cc-pulse 2.2s ease-in-out infinite;
  }
  .cb-orb-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: cc-spin 10s linear infinite;
  }
  .cb-spark {
    transform-box: fill-box;
    transform-origin: center;
    animation: cc-twinkle 2.6s ease-in-out infinite;
  }
  .cb-spark-2 { animation-delay: 1.3s; }
  .cb-aim { animation: cc-aim 0.9s linear infinite; }
}

@keyframes cc-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}
@keyframes cc-shadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.86); opacity: 0.7; }
}
@keyframes cc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes cc-spin {
  to { transform: rotate(360deg); }
}
@keyframes cc-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.1); }
}
@keyframes cc-aim {
  to { stroke-dashoffset: -16; }
}
@keyframes cc-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- Forced colours & print ---------- */

@media (forced-colors: active) {
  .grad-text { background: none; color: CanvasText; }
  .card, .callout, .toc, .app-facts div { border: 1px solid CanvasText; }
}

@media print {
  body::before,
  .skip-link,
  .site-nav,
  .footer-nav,
  .hero-art,
  .cta-row { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .grad-text { background: none !important; color: #000 !important; }
  .card, .callout, .toc, .app-facts div { background: none !important; box-shadow: none !important; border-color: #999 !important; }
  h1, h2, h3, .prose p, .prose li, .prose strong, .muted, .card p { color: #000 !important; }
  a { color: #000 !important; }
}
