/* ==========================================================================
   Krillocity Current
   An independent field guide to the Krillocity answer race.
   Design system: shallow-water blues, paper white, coral signals.
   Original stylesheet; no publisher UI or artwork is reproduced.
   ========================================================================== */

/* ---------- 01. Tokens -------------------------------------------------- */
:root {
  --ink: #062b42;
  --ink-2: #0b3a55;
  --body: #294f63;
  --muted: #5b7787;
  --faint: #7e98a6;

  --paper: #f7fcff;
  --white: #ffffff;
  --foam: #eefaff;

  --sky-50: #f0faff;
  --sky-100: #dff4ff;
  --sky-200: #bce9fb;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-700: #0f766e;

  --deep: #062f4f;
  --deep-2: #074366;

  --coral: #fb7185;
  --coral-dark: #e11d48;
  --coral-soft: #fff1f4;
  --amber: #f5b74e;
  --amber-soft: #fff8e8;

  --line: rgba(7, 58, 84, 0.12);
  --line-strong: rgba(7, 58, 84, 0.2);
  --line-light: rgba(255, 255, 255, 0.18);

  --radius-xs: 9px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-xs: 0 1px 2px rgba(5, 45, 66, 0.05);
  --shadow-sm: 0 10px 30px -22px rgba(5, 45, 66, 0.35);
  --shadow: 0 28px 72px -44px rgba(4, 46, 70, 0.55);
  --shadow-lg: 0 44px 100px -56px rgba(4, 46, 70, 0.65);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(0.8rem, 0.77rem + 0.12vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.07rem);
  --step-1: clamp(1.14rem, 1.06rem + 0.35vw, 1.34rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.65vw, 2.9rem);
  --step-4: clamp(2.4rem, 1.65rem + 3.2vw, 4.45rem);

  --shell: 1220px;
  --gutter: clamp(18px, 3.8vw, 34px);
  --header-h: 74px;
}

/* ---------- 02. Reset & base ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--body);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 88% -160px, rgba(203, 242, 255, 0.9), transparent 68%),
    radial-gradient(900px 460px at -10% 2%, rgba(213, 249, 241, 0.65), transparent 65%);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.05em;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

em {
  font-style: normal;
}

a {
  color: var(--sky-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

li {
  margin: 0.34em 0;
}

li::marker {
  color: var(--teal-500);
}

hr {
  height: 1px;
  border: 0;
  margin: 2.4em 0;
  background: var(--line);
}

::selection {
  background: #bdefff;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky-400);
  outline-offset: 3px;
  border-radius: 5px;
}

[hidden] {
  display: none !important;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

/* ---------- 03. Layout helpers ----------------------------------------- */
.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

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

.skip-link {
  position: absolute;
  left: 18px;
  top: -64px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 14px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--light {
  color: #a9f2e7;
}

.lede {
  max-width: 62ch;
  color: var(--body);
  font-size: var(--step-1);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.section-lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.small {
  font-size: 0.88rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: -0.01em;
}

.nowrap {
  white-space: nowrap;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.15em;
}

/* ---------- 04. Buttons & pills ---------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    color 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ink);
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: linear-gradient(120deg, var(--sky-500), var(--teal-500) 60%, var(--sky-600));
  background-size: 160% 100%;
  color: #fff;
  box-shadow: 0 16px 34px -20px rgba(2, 132, 199, 0.85);
}

.button--primary:hover {
  background-position: 80% 0;
  color: #fff;
  box-shadow: 0 20px 40px -20px rgba(2, 132, 199, 0.95);
}

.button--ink {
  background: var(--ink);
  color: #fff;
}

.button--ink:hover {
  background: var(--deep-2);
  color: #fff;
}

.button--coral {
  background: var(--coral);
  color: #4b0b18;
}

.button--coral:hover {
  background: #ff8da0;
  color: #3d0712;
}

.button--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--sky-300);
  background: #fff;
}

.button--light {
  border-color: transparent;
  background: #fff9ec;
  color: var(--ink);
}

.button--light:hover {
  background: #fff;
  color: var(--ink);
}

.button--wide {
  width: 100%;
}

.button--small {
  min-height: 40px;
  padding: 8px 15px;
  font-size: 0.87rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.play-disc {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #3f0b16;
}

.play-disc svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pill--live {
  border-color: rgba(20, 184, 166, 0.28);
  background: #e8fbf7;
  color: var(--teal-700);
}

.pill--warm {
  border-color: rgba(245, 183, 78, 0.34);
  background: var(--amber-soft);
  color: #7b4b00;
}

.pill--dark {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.08);
  color: #dff7ff;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

/* ---------- 05. Utility bar & header ----------------------------------- */
.utility-bar {
  background: var(--deep);
  color: #b9e8f8;
  font-size: 0.76rem;
  letter-spacing: 0.015em;
}

.utility-bar__inner {
  display: flex;
  min-height: 33px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.utility-bar p {
  margin: 0;
}

.utility-bar a {
  color: #e2f9ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 249, 255, 0.28);
}

.utility-bar a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.utility-bar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8ccbe0;
  white-space: nowrap;
}

.utility-bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-300);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(7, 58, 84, 0.08);
  background: rgba(249, 254, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

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

.brand__mark {
  width: 41px;
  height: 41px;
  filter: drop-shadow(0 6px 12px rgba(3, 105, 161, 0.18));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.brand__tag {
  margin-top: 5px;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.89rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.primary-nav a:hover {
  background: var(--sky-50);
  color: var(--sky-700);
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  background: #e7f8ff;
  color: var(--ink);
}

.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateX(-50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-play {
  min-height: 42px;
  padding: 9px 17px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
  content: "";
}

.nav-toggle span {
  position: relative;
}

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

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

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

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

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

/* ---------- 06. Hero ---------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 58px) 0 clamp(42px, 5vw, 64px);
  background:
    radial-gradient(760px 460px at 92% 8%, rgba(175, 238, 255, 0.72), transparent 70%),
    radial-gradient(620px 440px at 8% 28%, rgba(213, 250, 240, 0.78), transparent 68%),
    linear-gradient(180deg, #f5fdff 0%, #eaf9ff 60%, #f9fdff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    repeating-radial-gradient(ellipse at 80% 20%, transparent 0 42px, rgba(14, 116, 144, 0.08) 43px 44px),
    linear-gradient(115deg, transparent 49.8%, rgba(14, 116, 144, 0.05) 50%, transparent 50.2%);
  mask-image: linear-gradient(180deg, #000, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -270px;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(3, 105, 161, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(3, 105, 161, 0.035),
    0 0 0 140px rgba(3, 105, 161, 0.025);
  pointer-events: none;
}

.hero > .shell {
  position: relative;
  z-index: 1;
}

.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  align-items: end;
  gap: clamp(28px, 4.5vw, 68px);
  padding-bottom: clamp(26px, 3.2vw, 38px);
}

.hero__heading {
  min-width: 0;
}

.hero__support {
  padding-bottom: 4px;
}

.hero__heading .eyebrow {
  margin-bottom: 13px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 4.6vw, 4.65rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.hero h1 .hero__accent {
  display: block;
  background: linear-gradient(105deg, var(--sky-600) 5%, var(--teal-500) 55%, var(--sky-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 48ch;
  margin-bottom: 20px;
  color: #2f5a6f;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.62;
}

.hero__actions {
  margin-bottom: 18px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-400);
}

.hero__meta strong {
  color: var(--ink);
  font-weight: 700;
}

/* Game panel */
.play-panel {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(3, 105, 161, 0.18);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 44px 90px -52px rgba(3, 60, 88, 0.72),
    0 0 0 8px rgba(255, 255, 255, 0.34);
}

.play-panel__bar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 12px 10px;
}

.play-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.play-panel__title .live-dot {
  width: 6px;
  height: 6px;
}

.play-panel__source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.play-panel__source:hover {
  color: var(--sky-700);
}

.game-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #04283e;
  isolation: isolate;
}

.game-stage[aria-busy="true"] {
  cursor: progress;
}

.game-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 36px) clamp(24px, 4.2vw, 54px);
  color: #fff;
  background:
    radial-gradient(70% 80% at 72% 8%, rgba(94, 234, 212, 0.4), transparent 65%),
    radial-gradient(80% 60% at 12% 16%, rgba(56, 189, 248, 0.55), transparent 68%),
    linear-gradient(160deg, #073e5c 0%, #075985 44%, #0e7490 100%);
}

.game-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background:
    linear-gradient(180deg, transparent 54%, rgba(1, 24, 39, 0.55) 100%),
    repeating-radial-gradient(ellipse at 70% 10%, transparent 0 30px, rgba(202, 249, 255, 0.13) 31px 32px);
}

.game-poster::after {
  content: "";
  position: absolute;
  inset: auto -10% -52% -10%;
  height: 74%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(5, 69, 92, 0.1), rgba(1, 31, 47, 0.72));
  transform: perspective(300px) rotateX(26deg);
}

.poster-top,
.poster-main,
.poster-foot {
  position: relative;
  z-index: 3;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.poster-main {
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: 24px 0;
  text-align: left;
}

.poster-main p {
  margin: 0;
}

.poster-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px !important;
  color: #c6f4ff;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.poster-headline {
  max-width: 12ch;
  margin: 0 0 12px;
  color: #fffdf6;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.01;
}

.poster-copy {
  max-width: 50ch;
  color: #c4eef9;
  font-size: 1rem;
  line-height: 1.55;
}

.poster-start {
  margin-top: 24px;
}

.poster-start .button {
  min-height: 54px;
  padding: 14px 24px;
  font-size: 1rem;
}

.poster-fine {
  color: #a9d9e8;
  font-size: 0.7rem;
  line-height: 1.45;
}


.poster-fine a {
  color: #d8f7ff;
}

.poster-wave {
  position: absolute;
  top: 17%;
  right: -4%;
  z-index: 1;
  width: 43%;
  opacity: 0.46;
  transform: rotate(-8deg);
}

.poster-wave svg {
  width: 100%;
  height: auto;
}

.game-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  border: 0;
  background: #04283e;
}

.game-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: #e6fbff;
  background: rgba(3, 35, 53, 0.86);
  text-align: center;
}

.game-loading p {
  margin: 0;
  font-size: 0.9rem;
}

.loader-ring {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--teal-300);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.game-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 3px;
}

.game-tools .button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.game-status {
  margin: 5px 7px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.game-status a {
  color: var(--sky-700);
}

.hero__side-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero__side-note svg {
  width: 15px;
  height: 15px;
  color: var(--teal-600, #0d9488);
  flex: 0 0 auto;
}

/* ---------- 07. Fact strip --------------------------------------------- */
.fact-strip {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  border-top: 1px solid rgba(7, 58, 84, 0.08);
  border-bottom: 1px solid rgba(7, 58, 84, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.fact-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  border-right: 0;
}

.fact__value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.36rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fact__label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.fact__icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--sky-50);
  color: var(--sky-700);
}

.fact__icon svg {
  width: 17px;
  height: 17px;
}

/* ---------- 08. Sections ----------------------------------------------- */
.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section--tight {
  padding: clamp(48px, 6vw, 72px) 0;
}

.section--tint {
  background:
    radial-gradient(800px 360px at 92% 0%, rgba(199, 244, 255, 0.62), transparent 64%),
    linear-gradient(180deg, #f0fbff, #f8fdff);
  border-top: 1px solid rgba(7, 58, 84, 0.06);
  border-bottom: 1px solid rgba(7, 58, 84, 0.06);
}

.section--deep {
  position: relative;
  overflow: hidden;
  color: #d7f2fb;
  background:
    radial-gradient(720px 460px at 85% 0%, rgba(20, 184, 166, 0.24), transparent 66%),
    radial-gradient(600px 420px at 6% 100%, rgba(14, 165, 233, 0.24), transparent 66%),
    linear-gradient(145deg, #04263c 0%, #063a58 48%, #07546f 100%);
}

.section--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: repeating-radial-gradient(
    ellipse at 82% 20%,
    transparent 0 48px,
    rgba(179, 241, 255, 0.14) 49px 50px
  );
  pointer-events: none;
}

.section--deep > .shell {
  position: relative;
  z-index: 1;
}

.section--deep h2,
.section--deep h3 {
  color: #fffdf6;
}

.section--deep .section-lede,
.section--deep p {
  color: #c5e8f3;
}

.section--deep a {
  color: #a9f2e7;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  align-items: end;
  gap: 28px 56px;
  margin-bottom: clamp(32px, 4vw, 46px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 2.85rem);
}

.section-head .section-lede {
  margin: 0 0 4px;
}

.section-head--center {
  display: block;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 40px;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .section-lede {
  margin-inline: auto;
}

.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.section-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sky-700);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 105, 161, 0.24);
  padding-bottom: 1px;
}

.text-link::after {
  content: "→";
  transition: transform 0.16s ease;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ---------- 09. Grids & cards ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 66px);
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.split--wide-right {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.split--top {
  align-items: start;
}

.split__copy h2 {
  margin-bottom: 18px;
}

.split__copy h3 {
  margin-top: 26px;
}

.split__copy .button-row {
  margin-top: 26px;
}

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

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

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 15px 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.84rem;
}

.feature-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #e8faff, #e5fbf6);
  color: var(--sky-700);
  border: 1px solid rgba(14, 165, 233, 0.12);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__num {
  position: absolute;
  top: 22px;
  right: 23px;
  color: rgba(7, 58, 84, 0.22);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.feature-card--accent {
  border-color: rgba(20, 184, 166, 0.22);
  background: linear-gradient(160deg, #f1fffd, #ffffff 60%);
}

.feature-card--warm {
  border-color: rgba(245, 183, 78, 0.26);
  background: linear-gradient(160deg, #fffbf1, #ffffff 64%);
}

.feature-card--deep {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #d6f0f9;
}

.feature-card--deep h3 {
  color: #fffdf6;
}

.feature-card--deep p {
  color: #bfe3ef;
}

.feature-card--deep .feature-card__icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #a9f2e7;
}

.feature-card--deep .text-link {
  color: #a9f2e7;
}

/* ---------- 10. Figures & media ---------------------------------------- */
.figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(7, 58, 84, 0.14);
  border-radius: var(--radius-lg);
  background: #dff4fc;
  box-shadow: var(--shadow);
}

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.figure figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 17px 13px;
  border-top: 1px solid rgba(7, 58, 84, 0.1);
  background: #fbfeff;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.figure figcaption span {
  display: inline-block;
}

.figure__tag {
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.figure--tall img {
  aspect-ratio: 4 / 5;
}

.figure--wide img {
  aspect-ratio: 16 / 9;
}

.figure--flush {
  border-radius: var(--radius);
}

.figure--shadow-none {
  box-shadow: none;
}

.figure-stack {
  position: relative;
}

.figure-stack__chip {
  position: absolute;
  right: 18px;
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  background: rgba(4, 40, 62, 0.82);
  color: #e9fcff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.figure-stack__chip strong {
  color: #fff;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-card__body {
  padding: 18px 19px 20px;
}

.media-card__body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.media-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Video facade */
.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 78% 10%, rgba(94, 234, 212, 0.45), transparent 65%),
    radial-gradient(70% 80% at 10% 84%, rgba(251, 113, 133, 0.32), transparent 65%),
    linear-gradient(135deg, #06324c, #075e79 58%, #0b7c86);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(ellipse at 74% 20%, transparent 0 32px, rgba(203, 247, 255, 0.15) 33px 34px),
    linear-gradient(180deg, transparent 40%, rgba(1, 22, 36, 0.58));
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-launch {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.video-launch:hover .video-play {
  transform: scale(1.06);
  background: #fff;
}

.video-play {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: transform 0.18s ease, background 0.18s ease;
}

.video-play svg {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}

.video-launch__kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
  color: #b5f2ff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.video-launch__title {
  position: relative;
  z-index: 1;
  max-width: 25ch;
  margin: 0 0 8px;
  color: #fffdf6;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.video-launch__meta {
  position: relative;
  z-index: 1;
  max-width: 52ch;
  margin: 0;
  color: #c4eaf4;
  font-size: 0.82rem;
  line-height: 1.5;
}

.video-caption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ---------- 11. Steps, ladder, course ---------------------------------- */
.step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: race-step;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 15px;
  margin: 0;
  padding: 0 0 25px;
  counter-increment: race-step;
}

.step-list li::before {
  content: counter(race-step, decimal-leading-zero);
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 13px;
  background: linear-gradient(145deg, #ecfbff, #e7fbf7);
  color: var(--sky-700);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-list li::after {
  content: "";
  position: absolute;
  top: 49px;
  left: 21px;
  width: 1px;
  height: calc(100% - 42px);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), transparent);
}

.step-list li:last-child {
  padding-bottom: 0;
}

.step-list li:last-child::after {
  display: none;
}

.step-list h3 {
  margin: 4px 0 5px;
  font-size: 1.04rem;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.step-list--dark li::before {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: #b6f6ed;
}

.step-list--dark p {
  color: #b9dfeb;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tier-table caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}

.tier-table th,
.tier-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.tier-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.tier-table tr:last-child td {
  border-bottom: 0;
}

.tier-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--tier, var(--sky-500));
}

.tier-table .tier-distance {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.tier-meter {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--tier, var(--sky-500)), color-mix(in srgb, var(--tier, var(--sky-500)) 30%, white));
  max-width: 160px;
}

.tier-row--plankton { --tier: #7dd3fc; }
.tier-row--clever { --tier: #2dd4bf; }
.tier-row--schooler { --tier: #38bdf8; }
.tier-row--rare { --tier: #0ea5e9; }
.tier-row--deep { --tier: #6366f1; }
.tier-row--krillion { --tier: #fb7185; }

.course-track {
  position: relative;
  margin: 28px 0 10px;
  padding: 36px 0 10px;
}

.course-track__line {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b7f3e8 0%, #69d7e8 21%, #9fdfc0 43%, #0e7490 68%, #083d61 100%);
  box-shadow: 0 0 0 1px rgba(7, 58, 84, 0.08), 0 12px 20px -16px rgba(7, 58, 84, 0.5);
}

.course-track__line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px rgba(7, 58, 84, 0.16);
}

.course-stops {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.2fr 1.7fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-stops li {
  margin: 0;
  padding: 11px 12px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.course-stops strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.course-stops li:nth-child(1) { border-top: 2px solid #7dd3fc; }
.course-stops li:nth-child(2) { border-top: 2px solid #2dd4bf; }
.course-stops li:nth-child(3) { border-top: 2px solid #0e7490; }
.course-stops li:nth-child(4) { border-top: 2px solid #062f4f; }

.course-stops--dark li {
  color: #b9dfeb;
}

.course-stops--dark strong {
  color: #fff;
}

.course-stops--dark li:nth-child(1) { border-top-color: #7dd3fc; }
.course-stops--dark li:nth-child(2) { border-top-color: #5eead4; }
.course-stops--dark li:nth-child(3) { border-top-color: #22d3ee; }
.course-stops--dark li:nth-child(4) { border-top-color: #fb7185; }

/* ---------- 12. Callouts, quick answer, quotes ------------------------- */
.quick-answer {
  position: relative;
  margin: 0 0 30px;
  padding: 24px 26px 24px 28px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfbff, #f9fffe 65%);
  box-shadow: var(--shadow-xs);
}

.quick-answer::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--sky-400), var(--teal-400));
}

.quick-answer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.62;
}

.quick-answer p + p {
  margin-top: 10px;
}

.quick-answer__label {
  display: block;
  margin-bottom: 7px;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-box {
  margin: 24px 0;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fbfeff;
}

.note-box p {
  margin: 0;
  font-size: 0.93rem;
}

.note-box p + p {
  margin-top: 8px;
}

.note-box--warm {
  border-left-color: var(--amber);
  background: #fffcf4;
}

.note-box--coral {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.note-box__label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pullquote {
  margin: 34px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--sky-300);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: clamp(1.16rem, 1.7vw, 1.4rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.pullquote p {
  margin: 0;
}

.pullquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.source-list li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  counter-increment: source;
}

.source-list li:last-child {
  border-bottom: 0;
}

.source-list li::before {
  content: "[" counter(source) "]";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--sky-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.source-list a {
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- 13. Calculator & drill ------------------------------------ */
.tool-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(203, 246, 255, 0.7), transparent 68%),
    #fff;
  box-shadow: var(--shadow-sm);
}

.tool-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.tool-card__head h3 {
  margin: 2px 0 4px;
  font-size: 1.18rem;
}

.tool-card__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.tool-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  background: #eefcf9;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 20px;
  align-items: end;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.field select,
.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fbfeff;
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--sky-500);
}

.field__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field__value {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
}

.calc-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calc-stat {
  padding: 13px 14px;
  border: 1px solid rgba(7, 58, 84, 0.1);
  border-radius: 12px;
  background: #f6fdff;
}

.calc-stat span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calc-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.calc-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.drill {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 260px at 92% 0%, rgba(94, 234, 212, 0.18), transparent 68%),
    linear-gradient(145deg, #052d47, #07546f 62%, #0e7490);
  box-shadow: var(--shadow);
}

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

.drill h3,
.drill__top h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fffdf6;
}

.drill__clock {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: 83px;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 11px;
  background: rgba(1, 27, 43, 0.34);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.drill__clock span:last-child {
  color: #9cdcee;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.drill__form {
  margin: 0;
}

.drill__prompt {
  min-height: 54px;
  margin: 0 0 14px;
  color: #fffdf6;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.drill__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.drill__controls .button {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.82rem;
}

.drill__input {
  flex: 1 1 180px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
}

.drill__input::placeholder {
  color: #93c8d8;
}

.drill__input:focus {
  outline: 2px solid var(--teal-300);
  outline-offset: 1px;
}

.drill__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #9dcfdd;
  font-size: 0.71rem;
}

.drill__meta strong {
  color: #e7fdff;
}

.drill__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.drill__list li {
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9f8ff;
  font-size: 0.72rem;
}

/* ---------- 14. Tables -------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table caption {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f5fcff;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fbfeff;
}

.data-table td strong {
  color: var(--ink);
}

.data-table--compact {
  min-width: 0;
  font-size: 0.86rem;
}

.data-table--compact th,
.data-table--compact td {
  padding: 10px 12px;
}

/* ---------- 15. FAQ ---------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.faq-item {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.03rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.faq-item p + p {
  margin-top: 8px;
}

.faq-item a {
  font-weight: 600;
}

/* ---------- 16. Author & trust ---------------------------------------- */
.author-card {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(380px 200px at 100% 0%, rgba(219, 249, 255, 0.75), transparent 70%),
    #fff;
  box-shadow: var(--shadow-xs);
}

.author-card--compact {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.author-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(7, 58, 84, 0.14);
  border-radius: 24px;
  background: #dff4fc;
}

.author-card--compact .author-card__photo {
  border-radius: 18px;
}

.author-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__body h2,
.author-card__body h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.author-card__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.author-card__body p {
  max-width: 68ch;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.author-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.author-card__links a {
  color: var(--sky-700);
  font-weight: 600;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.trust-strip__item {
  padding: 18px 20px;
  background: #fbfeff;
}

.trust-strip__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.84rem;
}

.trust-strip__item span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ---------- 17. Page hero & article ----------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 68px) 0 clamp(38px, 5vw, 56px);
  border-bottom: 1px solid rgba(7, 58, 84, 0.08);
  background:
    radial-gradient(620px 320px at 88% -10%, rgba(173, 240, 255, 0.72), transparent 68%),
    radial-gradient(500px 320px at 0% 10%, rgba(207, 250, 239, 0.62), transparent 66%),
    linear-gradient(180deg, #f3fcff, #fbfeff);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -160px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(14, 165, 233, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(14, 165, 233, 0.03), 0 0 0 104px rgba(14, 165, 233, 0.02);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.breadcrumb {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.74rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--sky-700);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink-2);
}

.page-hero h1 {
  max-width: 19ch;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4.35vw, 3.7rem);
  letter-spacing: -0.052em;
}

.page-hero__lede {
  max-width: 68ch;
  margin: 0;
  color: #31596c;
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 20px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.77rem;
}

.page-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.page-meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal-400);
}

.page-meta a {
  color: var(--ink-2);
  font-weight: 600;
}

.article-section {
  padding: clamp(44px, 6vw, 74px) 0 clamp(64px, 8vw, 96px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: start;
  gap: clamp(34px, 5vw, 72px);
}

.prose {
  min-width: 0;
  max-width: 760px;
}

.prose > h2 {
  margin: 2.15em 0 0.6em;
  font-size: clamp(1.62rem, 2.4vw, 2.08rem);
  letter-spacing: -0.035em;
}

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

.prose > h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.16rem;
}

.prose p,
.prose li {
  font-size: 1.01rem;
  line-height: 1.72;
}

.prose ul,
.prose ol {
  margin-bottom: 1.35em;
}

.prose li {
  padding-left: 0.1em;
}

.prose > .figure {
  margin: 30px 0;
}

.prose > .table-wrap {
  margin: 26px 0;
}

.prose > .note-box,
.prose > .quick-answer {
  margin: 26px 0;
}

.prose > .source-list {
  margin: 18px 0 30px;
}

.prose .callout-link {
  font-weight: 700;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-xs);
}

.toc__title {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  line-height: 1.9;
}

.toc a:hover {
  color: var(--sky-700);
  text-decoration: underline;
}

.toc__note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.article-foot {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-foot h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.article-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.related-section {
  padding: clamp(46px, 6vw, 70px) 0;
  border-top: 1px solid rgba(7, 58, 84, 0.08);
  background: #f4fcff;
}

.related-section h2 {
  margin: 0 0 22px;
  font-size: 1.55rem;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--body);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.44);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--body);
}

.related-card span {
  margin-bottom: 7px;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ---------- 18. UGC & community --------------------------------------- */
.current-section {
  padding: clamp(56px, 7vw, 86px) 0;
  border-top: 1px solid rgba(7, 58, 84, 0.08);
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(214, 249, 255, 0.75), transparent 70%),
    #fbfeff;
}

.current-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: clamp(26px, 4vw, 48px);
}

.current-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.current-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
}

.current-head p {
  max-width: 54ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-status {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.feed-status.is-error {
  color: #9f233a;
}

.empty-state {
  padding: 26px;
  border: 1px dashed rgba(7, 58, 84, 0.22);
  border-radius: var(--radius-sm);
  background: #fff;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.empty-state p {
  max-width: 58ch;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.87rem;
}

.note {
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.note + .note {
  margin-top: 11px;
}

.note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-bottom: 7px;
}

.note__author {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.note__role {
  padding: 2px 7px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 999px;
  background: #effcf9;
  color: var(--teal-700);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note__time {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.68rem;
}

.note__body {
  margin: 0;
  color: var(--body);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.note__rating {
  margin: 7px 0 0;
  color: #e08a00;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.note-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.note-form h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.note-form > p.form-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field label {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fbfeff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

.form-field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--sky-300);
  outline-offset: 1px;
  border-color: var(--sky-400);
}

.form-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-captcha__question {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4fcff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  white-space: nowrap;
}

.form-captcha input {
  flex: 1 1 100px;
}

.form-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.form-status.is-error {
  color: #a5253e;
}

.form-status.is-ok {
  color: var(--teal-700);
}

.form-fine {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.45;
}

.notes-aside {
  padding: 2px 0;
}

.notes-aside h3 {
  margin: 0 0 7px;
  font-size: 0.98rem;
}

.notes-aside p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.notes-aside ul {
  margin: 0;
  padding-left: 1.05em;
  color: var(--muted);
  font-size: 0.78rem;
}

.notes-aside li {
  margin: 4px 0;
}

.poll-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.poll-card h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.poll-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.poll-options {
  display: grid;
  gap: 8px;
}

.poll-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfeff;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.poll-option:hover:not(:disabled) {
  border-color: var(--sky-300);
  background: #f2fcff;
}

.poll-option:disabled {
  cursor: default;
  opacity: 0.82;
}

.poll-option__count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.poll-bar {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f4f8;
}

.poll-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-400), var(--teal-400));
  transition: width 0.3s ease;
}

.community-layout > div > .note-form {
  margin-top: 24px;
}

.poll-status {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.7rem;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

.community-layout > div > h2 {
  margin-top: 46px;
}

.community-layout > div > h2:first-child {
  margin-top: 0;
}

.community-aside {
  display: grid;
  gap: 15px;
  position: sticky;
  top: calc(var(--header-h) + 22px);
}

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

.house-rules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.house-rules li:last-child {
  border-bottom: 0;
}

.house-rules li::before {
  content: "✓";
  color: var(--teal-600, #0d9488);
  font-weight: 700;
}

/* ---------- 19. Guides hub -------------------------------------------- */
.guide-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-feature__media {
  position: relative;
  min-height: 340px;
  background: #dff4fc;
}

.guide-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.guide-feature__body {
  padding: clamp(26px, 4vw, 44px);
}

.guide-feature__body h2 {
  margin: 0 0 11px;
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
}

.guide-feature__body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-feature__body .button-row {
  margin-top: 22px;
}

.path-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: path;
}

.path-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  counter-increment: path;
}

.path-list li::before {
  content: counter(path);
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.path-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.path-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.path-list a {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- 20. Footer ------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 62px 0 26px;
  color: #c5e3ee;
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(20, 184, 166, 0.2), transparent 68%),
    linear-gradient(145deg, #042337, #052f47 55%, #063c55);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: repeating-radial-gradient(
    ellipse at 84% 12%,
    transparent 0 44px,
    rgba(195, 245, 255, 0.15) 45px 46px
  );
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(120px, 0.55fr));
  gap: 38px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(197, 227, 238, 0.15);
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-brand .brand__name {
  color: #fffdf6;
}

.footer-brand .brand__tag {
  color: #8bd8e8;
}

.footer-brand p {
  max-width: 44ch;
  margin: 16px 0 0;
  color: #9dc8d6;
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-col h2 {
  margin: 4px 0 13px;
  color: #e7fbff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-col li {
  margin: 0 0 8px;
}

.footer-col a {
  color: #a9d6e5;
  font-size: 0.81rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 0;
}

.footer-note p {
  max-width: 68ch;
  margin: 0;
  color: #83b4c4;
  font-size: 0.71rem;
  line-height: 1.6;
}

.footer-note a {
  color: #b9e6f2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(197, 227, 238, 0.12);
  color: #78a7b8;
  font-size: 0.7rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #b5e2ee;
}

/* ---------- 21. Motion & print ---------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .utility-bar,
  .site-header,
  .site-footer,
  .current-section,
  .related-section,
  .hero__actions,
  .game-tools,
  .game-status,
  .toc,
  .video-shell,
  .button {
    display: none !important;
  }

  .article-layout {
    display: block;
  }

  .prose {
    max-width: none;
  }

  .page-hero {
    padding: 0 0 18px;
    border: 0;
    background: #fff;
  }

  .article-section {
    padding: 18px 0;
  }

  a {
    color: #111;
    text-decoration: underline;
  }

  .figure {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* ---------- 22. Responsive -------------------------------------------- */
@media (max-width: 1120px) {
  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.84rem;
  }

  .header-play {
    padding-inline: 14px;
  }

  .hero__intro {
    gap: 36px;
  }

  .fact {
    padding-inline: 16px;
  }

  .fact__value {
    font-size: 1.2rem;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 44px;
  }
}

@media (max-width: 1100px) {
  .game-stage {
    aspect-ratio: auto;
    height: clamp(480px, calc(100vh - 130px), 860px);
    height: clamp(480px, calc(100svh - 130px), 860px);
  }
}

@media (max-width: 1100px) and (orientation: landscape) {
  .game-stage {
    height: clamp(340px, calc(100svh - 80px), 620px);
  }
}

@media (max-width: 980px) {
  .utility-bar__inner {
    min-height: 31px;
  }

  .primary-nav {
    position: fixed;
    inset: calc(var(--header-h) + 31px) 14px auto 14px;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(251, 254, 255, 0.98);
    box-shadow: 0 30px 60px -30px rgba(4, 46, 70, 0.55);
    backdrop-filter: blur(16px);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 44px;
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 0.94rem;
  }

  .primary-nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .header-play {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero__intro {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding-bottom: 26px;
  }

  .hero__heading,
  .hero__support {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 6.8vw, 4.4rem);
  }

  .play-panel {
    width: 100%;
    margin-inline: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .section-head .section-lede {
    max-width: 68ch;
  }

  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
  }

  .split__copy {
    max-width: 720px;
  }

  .split .figure {
    order: -1;
  }

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

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

  .fact:nth-child(2) {
    border-right: 0;
  }

  .fact:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
    margin-bottom: 8px;
  }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .toc a {
    padding: 3px 0;
  }

  .current-layout {
    grid-template-columns: 1fr;
  }

  .notes-aside {
    max-width: 680px;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(100px, 0.6fr));
    gap: 24px;
  }

  .guide-feature {
    grid-template-columns: 1fr;
  }

  .guide-feature__media {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 760px) {
  .utility-bar__date {
    display: none;
  }

  .utility-bar__inner {
    justify-content: center;
  }

  .utility-bar__note {
    display: none;
  }

  .brand__mark {
    width: 37px;
    height: 37px;
  }

  .brand__name {
    font-size: 1.04rem;
  }

  .brand__tag {
    font-size: 0.53rem;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .hero__meta {
    gap: 6px 14px;
    font-size: 0.76rem;
  }

  .poster-main {
    max-width: 100%;
    padding: 26px 0;
  }

  .poster-headline {
    max-width: 12ch;
    font-size: clamp(2.15rem, 7vw, 2.9rem);
  }

  .poster-copy {
    max-width: 40ch;
    font-size: 0.94rem;
  }

  .poster-start {
    margin-top: 27px;
  }

  .poster-fine {
    display: none;
  }

  .poster-wave {
    top: 12%;
    width: 55%;
    opacity: 0.24;
  }

  .play-panel {
    border-radius: 22px;
  }

  .game-stage {
    border-radius: 16px;
  }

  .fact {
    gap: 10px;
    padding: 15px 14px;
  }

  .fact__icon {
    width: 31px;
    height: 31px;
  }

  .fact__value {
    font-size: 1.05rem;
  }

  .fact__label {
    font-size: 0.71rem;
  }

  .section {
    padding: 58px 0;
  }

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

  .section-head h2 {
    font-size: 1.9rem;
  }

  .card-grid,
  .card-grid--two,
  .card-grid--three,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--four {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 21px;
  }

  .figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .figure-stack__chip {
    right: 13px;
    bottom: 65px;
    font-size: 0.58rem;
  }

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

  .author-card,
  .author-card--compact {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .author-card__photo {
    border-radius: 18px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 34px;
  }

  .page-hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.9rem);
  }

  .page-meta {
    gap: 7px 13px;
  }

  .prose > h2 {
    margin-top: 1.9em;
  }

  .prose p,
  .prose li {
    font-size: 0.98rem;
  }

  .toc {
    padding: 14px 15px;
  }

  .toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .calc-output {
    grid-template-columns: 1fr 1fr;
  }

  .community-aside {
    grid-template-columns: 1fr;
  }

  .current-head {
    display: block;
  }

  .current-head h2 {
    font-size: 1.75rem;
  }

  .course-stops {
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
  }

  .drill__top {
    align-items: flex-start;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-top: 46px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  .play-panel {
    padding: 6px;
  }

  .play-panel__bar {
    min-height: 35px;
    padding: 2px 5px 7px;
  }

  .play-panel__source {
    font-size: 0.56rem;
  }

  .game-stage {
    border-radius: 16px;
  }

  .poster-top .pill {
    font-size: 0.55rem;
    padding: 4px 7px;
  }

  .poster-kicker {
    font-size: 0.56rem;
  }

  .poster-start .button {
    min-height: 44px;
    font-size: 0.88rem;
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
  }

  .header-actions {
    gap: 5px;
  }

  .nav-toggle {
    width: 39px;
    height: 39px;
  }

  .fact-strip__grid {
    grid-template-columns: 1fr;
  }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .calc-output {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .author-card,
  .author-card--compact {
    grid-template-columns: 1fr;
  }

  .author-card__photo {
    width: 90px;
  }

  .poster-wave {
    opacity: 0.18;
  }

}

/* ---------- 23. Additions for generated guides ------------------------- */
.feed-heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.page-hero .button-row {
  margin-top: 24px;
}

.page-hero .quick-answer {
  max-width: 820px;
  margin: 24px 0 0;
}

.prose .figure {
  margin: 32px 0;
}

.prose .figure:first-child {
  margin-top: 0;
}

.prose .tier-table {
  margin: 20px 0 26px;
}

.prose .source-list + h2 {
  margin-top: 2em;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
}

.check-list {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-700);
  font-weight: 700;
}

.cross-list li::before {
  content: "×";
  color: var(--coral-dark);
  font-size: 1.1em;
  line-height: 1.4;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.mini-stats div {
  padding: 15px 16px;
  background: #fbfeff;
}

.mini-stats strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.mini-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0;
  padding: 21px 23px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #edfbff, #fafffe);
}

.article-cta p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.article-cta strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.contact-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.contact-block a {
  display: block;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-decoration: none;
}

.contact-block a:hover {
  border-color: var(--sky-300);
  text-decoration: none;
}

.contact-block strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.contact-block span {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.policy-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.policy-list li:last-child {
  border-bottom: 0;
}

.policy-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.9rem;
}

.policy-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.topic-tags li {
  margin: 0;
}

.topic-tags a {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.topic-tags a:hover {
  border-color: var(--sky-300);
  color: var(--sky-700);
  text-decoration: none;
}

@media (max-width: 760px) {
  .mini-stats,
  .contact-block {
    grid-template-columns: 1fr;
  }

  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
