/* GrappleMind interactive guide pages. Tokens match the landing page (index.html); see DESIGN.md.
   Everything reads without JavaScript; guide.js only adds state (checks, pickers, the replay strip). */
:root {
  color-scheme: dark;
  --ground: #0d1925; --ground-top: #14273b;
  --raised-top: #193048; --raised: #122436;
  --panel-top: #1c3f62; --panel-bottom: #0f1f30;
  --brand: #2f6db0; --brand-deep: #255d95; --brand-ink: #90bfee;
  --brand-soft: rgba(100, 160, 220, 0.18); --brand-glow: rgba(60, 130, 200, 0.42);
  --ink: #ffffff; --ink-soft: #e0eaf4; --ink-muted: #c0d0e0; --ink-subtle: #a3b6c9; --on-pill: #0f1f30;
  --line: rgba(255, 255, 255, 0.14); --line-strong: rgba(255, 255, 255, 0.24);
  --glass: rgba(255, 255, 255, 0.06); --well: rgba(5, 12, 20, 0.35);
  --warm: #f39a52; --mark: #f08a3c; --warm-glow: rgba(243, 140, 60, 0.55); --warm-edge: rgba(246, 176, 116, 0.55);
  --warm-soft: rgba(243, 154, 82, 0.16);
  --focus: #ffd24a; --danger: #ff9b9b;
  /* Event marks, from the app's Glow tokens (ev-*-mark): used only for ticks on a match strip. */
  --ev-guardpass: #f26d04; --ev-sweepatt: #009bdf; --ev-subatt: #8b5cf6; --ev-takedown: #b98c00;
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --radius-card: 22px; --radius-panel: 30px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft);
  background: radial-gradient(1100px 620px at 50% -140px, rgba(60, 130, 200, 0.42), rgba(60, 130, 200, 0) 70%),
    linear-gradient(var(--ground-top) 0, var(--ground) 900px) var(--ground);
  overflow-x: clip;
}
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, .tick:has(input:focus-visible) {
  outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 12px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); text-wrap: balance; margin: 0; }
p { margin: 0; }
strong { color: var(--ink); }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reading progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--brand-ink), var(--warm)); }

/* Top bar */
.top { position: sticky; top: 0; z-index: 30; background: rgba(13, 25, 37, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.6px; }
.join {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9375rem;
  height: 44px; padding-inline: 20px; box-shadow: 0 0 0 1px var(--warm-edge), 0 0 32px var(--warm-glow);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.join:active { transform: scale(.97); }
.top .join { gap: 0; }
.join--big { height: 64px; padding-inline: 40px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }

/* Page grid: contents rail + article */
.guide { max-width: 1120px; margin-inline: auto; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 68px; z-index: 20; margin-inline: -16px; padding: 10px 16px;
  background: rgba(13, 25, 37, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toc__title { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc ol::-webkit-scrollbar { display: none; }
.toc a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding-inline: 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: 0.875rem; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; }
.toc a span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-subtle); }
.toc a.is-here { background: var(--brand-soft); border-color: var(--brand-ink); color: var(--ink); }
.toc a.is-done span { color: var(--brand-ink); }
.toc--top { display: block; }
article { min-width: 0; padding-block: 28px 24px; }
@media (min-width: 1060px) {
  .guide { grid-template-columns: 230px minmax(0, 720px); gap: 64px; justify-content: center; }
  .toc { top: 96px; align-self: start; margin: 40px 0 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .toc__title { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 12px; }
  .toc ol { flex-direction: column; gap: 2px; overflow: visible; }
  .toc a { height: auto; min-height: 40px; padding: 8px 12px; border-radius: 14px; background: none; border-color: transparent; white-space: normal; line-height: 1.3; color: var(--ink-muted); }
  .toc a:hover { color: var(--ink); background: var(--glass); }
  .toc a.is-here { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.4); }
  article { padding-top: 40px; }
}

/* Hero */
.crumbs { font-size: 0.875rem; color: var(--ink-subtle); }
.crumbs a { color: var(--ink-subtle); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 12px 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }
.pill b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.answer { position: relative; padding: 22px 24px 20px; border-radius: var(--radius-card); overflow: hidden;
  background: radial-gradient(420px 200px at 0% 0%, rgba(100, 160, 220, 0.28), rgba(100, 160, 220, 0) 70%), linear-gradient(180deg, var(--raised-top), var(--raised));
  border: 1px solid rgba(144, 191, 238, 0.38); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); }
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 12px var(--warm-glow); }
.answer .lead { margin-top: 10px; font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
.byline { margin-top: 14px; font-size: 0.875rem; color: var(--ink-subtle); }

/* Sections */
article { counter-reset: sec; }
.sec { scroll-margin-top: 130px; padding-top: 52px; }
@media (min-width: 1060px) { .sec { scroll-margin-top: 90px; } }
.sec > h2 { counter-increment: sec; font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 14px; }
.sec > h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; color: var(--warm); }
.sec > p { margin-top: 12px; }
.sec > p:first-of-type { margin-top: 0; }
.sec > * + .tool, .sec > * + .cards, .sec > * + .steps, .sec > * + .note, .sec > * + .check { margin-top: 18px; }
.sec > .tool + p, .sec > .cards + p, .sec > .steps + p, .sec > .check + p, .sec > .note + p { margin-top: 16px; }
h3 { font-size: 1.15rem; line-height: 1.25; }

/* Cards: a list whose items start with a bold title */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; counter-reset: card; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.cards > li { counter-increment: card; position: relative; margin: 0; padding: 18px 20px 18px; border-radius: 20px;
  background: linear-gradient(180deg, var(--raised-top), var(--raised)); border: 1px solid var(--line); font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft);
  transition: transform 200ms var(--ease-out), border-color 200ms ease; }
.cards > li::before { content: counter(card, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-subtle); margin-bottom: 8px; }
.cards > li > strong:first-child { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 6px; }
@media (hover: hover) and (pointer: fine) { .cards > li:hover { transform: translateY(-3px); border-color: rgba(144, 191, 238, 0.5); } }

/* A highlighted sentence or short section */
.note { padding: 18px 20px; border-radius: 20px; background: var(--warm-soft); border: 1px solid rgba(243, 154, 82, 0.4); color: var(--ink); }
.note p + p { margin-top: 10px; }
.note--calm { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.4); }

/* Numbered steps on a rail */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 56px; margin: 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem; color: var(--ink); background: var(--brand); box-shadow: 0 8px 22px rgba(47, 109, 176, 0.5); }
.steps > li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; border-radius: 2px; background: linear-gradient(var(--brand-ink), rgba(144, 191, 238, 0.1)); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; }

/* Tools: interactive panels */
.tool { border-radius: var(--radius-panel); padding: 20px; background: linear-gradient(170deg, var(--raised), var(--ground)); border: 1px solid rgba(144, 191, 238, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3); }
.tool__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.tool__hint { font-size: 0.875rem; color: var(--ink-subtle); }
.reset { background: none; border: 0; padding: 6px 8px; margin: -6px -8px; color: var(--ink-subtle); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 8px; }
.reset:hover { color: var(--ink); }
.count { font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-muted); }
.count b { color: var(--ink); font-weight: 600; }
.meter { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 14px; }
.meter i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--brand-ink), var(--warm)); border-radius: inherit; transition: width .3s var(--ease-out); }

/* Checklist */
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check > li { margin: 0; }
.tick { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; cursor: pointer; background: var(--glass); border: 1px solid var(--line);
  transition: background .15s, border-color .15s, transform 160ms var(--ease-out); line-height: 1.5; }
.tick:active { transform: scale(.99); }
.tick input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.box svg { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease-out); }
.tick:has(input:checked) { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.55); }
.tick:has(input:checked) .box { background: var(--brand); border-color: var(--brand-ink); }
.tick:has(input:checked) .box svg { opacity: 1; transform: none; }
.done-note { margin-top: 12px; font-size: 0.9375rem; font-weight: 600; color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) { .tick:hover { border-color: var(--line-strong); } }

/* Picker: chips that show one item at a time */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-soft); font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1.25;
  transition: background .15s, border-color .15s, color .15s, transform 160ms var(--ease-out); }
.chip:active { transform: scale(.97); }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-ink); color: var(--ink); }
.picker__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.picker__items > li { margin: 0; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.picker__items > li > strong:first-child { display: block; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 6px; }
.js .picker__items > li { display: none; animation: rise 260ms var(--ease-out); background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.45); }
.js .picker__items > li.is-on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Replay strip (the app's match timeline, simplified) */
.replay__strip { position: relative; height: 136px; border-radius: 18px; background: var(--well); border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px; }
.replay__mid { position: absolute; left: 14px; right: 14px; top: 68px; height: 1px; background: var(--line-strong); }
.replay__side { position: absolute; left: 14px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); }
.replay__side--you { top: 10px; color: var(--brand-ink); }
.replay__side--them { bottom: 10px; }
.rt { position: absolute; width: 6px; border-radius: 2px; background: var(--c, var(--ink-subtle)); transform: translateX(-50%); transition: opacity .3s, height .3s var(--ease-out), box-shadow .3s; }
.rt--up { bottom: 68px; height: 14px; }
.rt--down { top: 69px; height: 14px; }
.rt--key.rt--up, .rt--key.rt--down { height: 24px; }
.replay__band { position: absolute; top: 34px; bottom: 34px; border-radius: 10px; background: rgba(243, 154, 82, 0.18); border: 1px dashed rgba(243, 154, 82, 0.6); opacity: 0; transition: opacity .3s; }
.replay__head { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--ink); border-radius: 2px; left: 2%; opacity: 0; }
.replay__tag { position: absolute; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line-strong);
  font-size: 0.75rem; font-weight: 700; color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.replay[data-step="1"] .replay__head { opacity: 1; animation: sweep 2.6s linear infinite; }
@keyframes sweep { from { left: 2%; } to { left: 98%; } }
.replay[data-step="2"] .rt:not(.rt--decided), .replay[data-step="3"] .rt:not(.rt--decided), .replay[data-step="4"] .rt:not(.rt--almost) { opacity: .25; }
.replay[data-step="2"] .rt--decided, .replay[data-step="3"] .rt--decided { height: 40px; box-shadow: 0 0 18px var(--c); }
.replay[data-step="2"] .replay__tag--decided { opacity: 1; }
.replay[data-step="3"] .replay__band { opacity: 1; }
.replay[data-step="3"] .replay__tag--before { opacity: 1; }
.replay[data-step="4"] .rt--almost { height: 30px; box-shadow: 0 0 14px var(--c); }
.replay[data-step="4"] .replay__tag--almost { opacity: 1; }
.replay__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: rs; }
.replay__steps > li { counter-increment: rs; position: relative; margin: 0; padding: 12px 14px 12px 52px; border-radius: 16px; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.replay__steps > li::before { content: counter(rs); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; background: var(--glass); border: 1px solid var(--line-strong); color: var(--ink); transition: background .15s; }
.js .replay__steps > li { cursor: pointer; }
.replay__steps > li[aria-current="step"] { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.5); }
.replay__steps > li[aria-current="step"]::before { background: var(--brand); border-color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { .replay[data-step="1"] .replay__head { animation: none; left: 50%; } }

/* Camera diagram */
.cam { display: grid; gap: 14px; }
.cam__fig { margin: 0; border-radius: 18px; background: var(--well); border: 1px solid var(--line); overflow: hidden; }
.cam__fig svg { display: block; width: 100%; height: auto; }
.cam svg [data-rule] { transition: opacity .25s; }
.cam.has-pick svg [data-rule]:not(.is-on) { opacity: .15; }
.cam__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: cr; }
.cam__rules > li { counter-increment: cr; position: relative; margin: 0; padding: 12px 14px 12px 52px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); line-height: 1.5; transition: background .15s, border-color .15s; }
.cam__rules > li::before { content: counter(cr); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--on-pill); background: var(--warm); }
.js .cam__rules > li { cursor: pointer; }
.cam__rules > li.is-on { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.55); }
@media (min-width: 760px) { .cam__rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Scouting sheet */
.sheet { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sheet__cols { display: flex; justify-content: flex-end; gap: 6px; padding: 0 14px 2px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-subtle); }
.sheet__cols span { width: 40px; text-align: center; }
.sheet__cols span:first-child { width: auto; margin-right: auto; }
.row { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.row__text { line-height: 1.5; font-size: 0.97rem; }
.row__text strong { font-family: var(--font-display); font-size: 1.05rem; }
.row__seen { display: flex; gap: 6px; }
.seen { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1.5px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-subtle); transition: background .15s, border-color .15s, color .15s, transform 160ms var(--ease-out); }
.seen:active { transform: scale(.94); }
.seen input { position: absolute; opacity: 0; pointer-events: none; }
.seen:has(input:checked) { background: var(--brand); border-color: var(--brand-ink); color: var(--ink); }
.seen:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.row__tag { grid-column: 1 / -1; display: none; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.row.is-once .row__tag { display: inline-block; background: rgba(255, 255, 255, 0.1); color: var(--ink-muted); }
.row.is-pattern { background: var(--warm-soft); border-color: rgba(243, 154, 82, 0.55); }
.row.is-pattern .row__tag { display: inline-block; background: var(--warm); color: var(--on-pill); }
.no-js .row__seen, .no-js .sheet__cols { display: none; }

/* Journal note */
.journal { position: relative; padding: 20px 20px 18px; border-radius: 20px; background: #f5f1e6; color: #1d2733; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); transform: rotate(-0.6deg); }
.journal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.journal__title { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #0f1f30; }
.journal__date { font-family: var(--font-mono); font-size: 0.8125rem; color: #5a6878; }
.journal ul { list-style: none; margin: 0; padding: 0; }
.journal li { margin: 0; padding: 10px 0 18px; border-bottom: 1.5px solid rgba(29, 39, 51, 0.16); }
.journal li strong { color: #0f1f30; }
.journal .copy { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: #0f1f30; color: #fff; font: inherit; font-size: 0.875rem; font-weight: 700; }
.no-js .journal .copy { display: none; }

/* The product, drawn the way the app draws it */
.app { display: grid; gap: 18px; margin-top: 18px; padding: 20px; border-radius: var(--radius-panel);
  background: radial-gradient(360px 200px at 100% 0%, rgba(100, 160, 220, 0.25), rgba(100, 160, 220, 0) 70%), linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  border: 1px solid rgba(144, 191, 238, 0.4); }
.app p { color: var(--ink-soft); }
.app__screen { border-radius: 22px; padding: 14px; background: rgba(5, 12, 20, 0.5); border: 1px solid var(--line); display: grid; gap: 8px; }
.app__title { font-size: 0.75rem; font-weight: 700; color: var(--ink-subtle); }
.mo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--glass); font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
.mo time { font-family: var(--font-mono); font-weight: 500; color: var(--ink-muted); min-width: 34px; }
.mo i { width: 4px; height: 18px; border-radius: 2px; background: var(--c); flex: none; }
.mo span { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--ink-subtle); }
.mo.is-on { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.task { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--brand); font-size: 0.8125rem; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .app { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding: 24px; } }

/* Questions */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.faq details[open] { background: var(--brand-soft); border-color: rgba(144, 191, 238, 0.45); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); font-size: 1.25rem; color: var(--ink-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { font-size: 1.05rem; }
.faq details p { padding: 0 20px 18px; color: var(--ink-muted); }

/* Keep reading + final call */
.related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 56px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 20px; text-decoration: none; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, var(--raised-top), var(--raised)); border: 1px solid var(--line); transition: border-color .2s, transform 200ms var(--ease-out); }
.related a::after { content: "\2192"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); color: var(--brand-ink); }
.related__label { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle); }
@media (hover: hover) and (pointer: fine) { .related a:hover { transform: translateY(-3px); border-color: rgba(144, 191, 238, 0.55); } .join:hover { transform: scale(1.03); } }
.final { margin: 56px auto 40px; max-width: 1120px; padding-inline: 16px; }
.final__panel { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: radial-gradient(700px 300px at 50% 0%, var(--brand-glow), rgba(100, 160, 220, 0) 70%), linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); border: 1px solid var(--line-strong); }
.final h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 16em; }
.final p { color: var(--ink-muted); max-width: 32em; }
.final .join { margin-top: 8px; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 28px 16px 48px; max-width: 1200px; margin: 0 auto; color: var(--ink-subtle); font-size: 0.9375rem; border-top: 1px solid var(--line); }
.foot b { font-family: var(--font-display); color: var(--ink); }
.foot a { color: var(--ink-subtle); }

/* Entrances, only when guide.js is running */
.js .rv { transform: translateY(14px); transition: transform .6s var(--ease-out); }
.js .rv.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: none; }
  .picker__items > li { animation: none; }
}
@media (max-width: 760px) {
  .top { position: relative; }
  .top__row { min-height: 60px; }
  .toc { top: 0; }
  .sec { scroll-margin-top: 70px; }
  .top .join { height: 40px; padding-inline: 14px; font-size: 0.875rem; }
  .brand__name { font-size: 1.25rem; }
  .tool { padding: 16px; border-radius: 24px; }
  .answer { padding: 18px 18px 16px; }
  .answer .lead { font-size: 1.0625rem; }
  .join--big { width: 100%; height: 60px; padding-inline: 20px; font-size: 1.15rem; }
}
@media (max-width: 420px) { .top .join .long { display: none; } }

/* Two panels side by side (offence and defence, before and after) */
.split { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin-top: 18px; }
.split > div { padding: 20px; border-radius: 22px; background: linear-gradient(180deg, var(--raised-top), var(--raised)); border: 1px solid var(--line); }
.split > div:first-child { border-top: 3px solid var(--warm); }
.split > div:last-child { border-top: 3px solid var(--brand-ink); }
.split h3 { margin-bottom: 10px; }
.split ul { margin: 0 0 14px; padding-inline-start: 1.2em; }
.split li { margin: 6px 0; }
.split li::marker { color: var(--warm); }
.split > div:last-child li::marker { color: var(--brand-ink); }
.split p { padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-muted); }

/* Lists of match moments, each with its event mark */
.marks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.marks > li { margin: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.marks > li::before { content: ""; flex: none; width: 6px; height: 28px; border-radius: 3px; background: var(--c, var(--brand-ink)); box-shadow: 0 0 14px var(--c, transparent); }

/* Stages of a process, each a card on a rail */
.stages { display: grid; gap: 12px; margin-top: 18px; }
.stage { position: relative; padding: 20px 20px 20px 22px; border-radius: 22px; background: linear-gradient(180deg, var(--raised-top), var(--raised)); border: 1px solid var(--line); }
.stage h3 { font-size: 1.25rem; margin-bottom: 8px; }
.stage p + p { margin-top: 10px; }
.stage::after { content: ""; position: absolute; left: 32px; bottom: -13px; width: 2px; height: 12px; background: var(--brand-ink); opacity: .6; }
.stage:last-child::after { display: none; }

/* Scoreboard: cards that add their points */
.score__board { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 14px; border-radius: 18px; background: var(--well); border: 1px solid var(--line-strong); }
.score__num { font-family: var(--font-mono); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.score__num small { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--ink-subtle); margin-left: 6px; }
.score__log { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--ink-subtle); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.pts > li { position: relative; margin: 0; padding: 16px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; line-height: 1.5; font-size: 0.97rem; }
.pts > li::before { content: attr(data-pts); font-family: var(--font-mono); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--warm); }
.pts > li > strong:first-child { font-family: var(--font-display); font-size: 1.1rem; }
.add { align-self: flex-start; margin-top: 8px; height: 36px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--brand-ink); background: var(--brand-soft); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: transform 160ms var(--ease-out), background .15s; }
.add:active { transform: scale(.96); }
.add:hover { background: var(--brand); }
.pts > li.is-hit { border-color: var(--warm-edge); }

/* Hold for three seconds */
.hold { display: grid; gap: 16px; align-items: center; justify-items: center; text-align: center; }
.hold__ring { position: relative; width: 168px; height: 168px; }
.hold__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hold__ring circle { fill: none; stroke-width: 10; }
.hold__track { stroke: rgba(255, 255, 255, 0.1); }
.hold__arc { stroke: var(--warm); stroke-linecap: round; stroke-dasharray: 452; stroke-dashoffset: 452; }
.hold__sec { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 2.4rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hold__btn { height: 56px; padding-inline: 28px; border-radius: 999px; border: 0; cursor: pointer; background: var(--brand); color: var(--ink); font: inherit; font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 30px rgba(47, 109, 176, 0.5); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hold__btn.is-down { transform: scale(.97); background: var(--brand-deep); }
.hold__out { min-height: 1.6em; font-weight: 700; color: var(--ink-muted); }
.hold__out.is-good { color: var(--warm); }
.no-js .hold { display: none; }

/* Escalation ladder */
.ladder { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ladder li { margin: 0; padding: 12px 10px; border-radius: 14px; text-align: center; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; color: var(--ink); background: rgba(255, 155, 155, calc(0.06 + var(--n) * 0.07)); border: 1px solid rgba(255, 155, 155, calc(0.15 + var(--n) * 0.12)); }
.ladder b { display: block; font-family: var(--font-mono); font-size: 1rem; color: var(--danger); margin-bottom: 4px; }
@media (max-width: 520px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Planner: write your own answer next to each part of the plan */
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: pl; }
.plan > li { counter-increment: pl; margin: 0; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); line-height: 1.5; }
.plan > li > strong:first-child { font-family: var(--font-display); font-size: 1.1rem; }
.plan > li > strong:first-child::before { content: counter(pl) "  "; font-family: var(--font-mono); font-size: 0.85rem; color: var(--warm); white-space: pre; }
.plan textarea { display: block; width: 100%; margin-top: 10px; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(5, 12, 20, 0.5);
  color: var(--ink); font: inherit; font-size: 0.97rem; line-height: 1.45; resize: vertical; }
.plan textarea:focus { outline: none; border-color: var(--brand-ink); }
.plan textarea::placeholder { color: var(--ink-subtle); }
.no-js .plan textarea, .no-js .plan__actions { display: none; }
.plan__actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.ghost { display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.ghost:hover { background: var(--glass); }
.score__board { position: sticky; top: 80px; z-index: 5; background: var(--ground); }
@media (max-width: 760px) { .score__board { top: 64px; } }
