/* The Story (Watertight journey Phase 1, 28 Nov 2026; full-height colour cards 28 Nov). Palette only: baize green, cream, light green, ink. */
body.inStory { overflow: hidden; }
/* the page-enter animation leaves an identity transform that would make the fixed story relative to #view */
body.inStory .view.enter { animation: none; transform: none; }
.stStory { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); color: var(--text); padding-top: var(--sa-t, 0px); }
.stoHead { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; }
.stoCount { font: 700 15px var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.stoSkip { font: 600 15px var(--font-ui); color: var(--brand-text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.stoSkip:hover { text-decoration: underline; }
.stoProg { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.stoProg i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 2px; transition: width 0.25s var(--ease); }
.stoStage { position: relative; flex: 1; min-height: 0; display: flex; }
.stoTrack { flex: 1; min-width: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.stoTrack::-webkit-scrollbar { display: none; }
.stoSlide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 4px 16px 20px; display: flex; }
.stoCard { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.stoCard > :first-child { margin-block: auto; }   /* centred when short, scrolls from the top when tall */
.stoCard.lv { padding: 0; background: transparent; box-shadow: none; }
.stoCard.lv .card { box-shadow: none; }
.stoIn { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stoEye { color: var(--brand-text); }
.stoBig { font: 700 34px/1.05 var(--font-num); letter-spacing: 0.005em; text-wrap: balance; }
.stoText { font-size: 22px; line-height: 1.32; font-weight: 600; text-wrap: pretty; }
.stoText.muted { color: var(--text-2); font-weight: 500; }
.stoIn .fine { font-size: 14.5px; color: var(--text-2); }
.stoScore { display: flex; align-items: baseline; gap: 10px; }
.stoScore b { font: 700 64px/1 var(--font-num); color: var(--brand-text); }
.stoScore span { font-size: 17px; color: var(--text-2); }
.stoBar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.stoBar i { display: block; height: 100%; width: var(--w); background: var(--brand); border-radius: 5px; }
.stoBar.early i { background: repeating-linear-gradient(135deg, var(--brand) 0 8px, color-mix(in srgb, var(--brand) 55%, var(--surface)) 8px 14px); }
.stoBits { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.stoTable { width: 100%; max-width: 520px; align-self: center; }
.stoTable svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.stoReplay { display: flex; flex-direction: column; gap: 8px; }
.stoKey { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--text-2); margin: 0; }
.stoKey i { display: inline-block; width: 22px; height: 0; border-top: 4px solid var(--text); border-radius: 2px; }
.stoKey i.b { border-top: 4px dashed var(--brand); margin-left: 8px; }
.stoCard .stLevel { box-shadow: none; }

/* the gate (card 4) */
.stoGate { gap: 12px; }
.stoGateH { font: 700 28px/1.1 var(--font-num); text-transform: none; letter-spacing: 0.005em; text-wrap: balance; }
.stoPeek { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stoPeek li { position: relative; padding: 9px 14px; border-radius: 14px; background: var(--surface-2); filter: blur(5px); opacity: calc(0.9 - var(--i, 0) * 0.16); user-select: none; }
.stoPeek li span { font-weight: 700; font-size: 17px; }
.stoGateForm .save { box-shadow: none; padding: 0; background: transparent; border: 0; }
.stoGateForm .check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; margin: 4px 0 10px; }
.stoGateForm .check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.stoSlide.nudge .stoCard { animation: stoNudge 0.35s var(--ease); }
@keyframes stoNudge { 20% { transform: translateX(-8px); } 55% { transform: translateX(6px); } 100% { transform: none; } }

/* awards */
.stoBadges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.stoBadge { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); }
.stoBadge.on { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--brand); }
.stoBadgeIc { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--line-3); }
.stoBadge.on .stoBadgeIc { background: var(--brand); box-shadow: none; color: var(--on-brand); }
.stoBadgeIc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stoBadgeTx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stoBadgeTx b { font-size: 16.5px; }
.stoBadgeTx small { font-size: 14px; }

/* you play like */
.stoLegend .stLegend { box-shadow: none; padding: 0; background: transparent; }

/* the plan */
.stoPlanH { font: 700 30px/1.08 var(--font-num); text-transform: none; letter-spacing: 0.005em; text-wrap: balance; }
.stoRoad { display: flex; align-items: center; gap: 12px; font: 700 34px/1 var(--font-num); margin: 0; }
.stoRoad b { padding: 6px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); }
.stoTo { color: var(--text-2); }
.stoSteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stoStep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 700; font-size: 17px; }
.stoStep.on { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.stoStep.locked { filter: blur(5px); opacity: 0.7; user-select: none; }
.stoStep .stPlanN { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 15px; flex: none; }
.stoGo { text-decoration: none; min-height: 56px; font-size: 18px; }
.stoSum { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }

/* arrows */
.stoArrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--line); cursor: pointer; display: none; place-items: center; }
.stoArrow:disabled { opacity: 0.35; cursor: default; }
.stoArrow:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.stoArrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stoPrev { left: 14px; } .stoNext { right: 14px; }
@media (hover: hover) and (min-width: 700px) { .stoArrow { display: grid; } }

/* desktop: the current card centred, its neighbours blurred */
@media (min-width: 900px) {
  .stoTrack { padding-inline: calc(50% - 230px); }
  .stoSlide { flex: 0 0 460px; padding: 6px 12px 28px; cursor: default; }
  .stoSlide:not(.cur) { cursor: pointer; }
  .stoSlide .stoCard { transition: transform 0.3s var(--ease), filter 0.3s var(--ease), opacity 0.3s var(--ease); }
  .stoSlide:not(.cur) .stoCard { filter: blur(6px); opacity: 0.55; transform: scale(0.94); }
  .stoHead { max-width: 560px; margin: 0 auto; width: 100%; }
  .stoPrev { left: calc(50% - 330px); } .stoNext { right: calc(50% - 330px); }
}
@media (prefers-reduced-motion: reduce) { .stoProg i, .stoSlide .stoCard { transition: none; } .stoSlide.nudge .stoCard { animation: none; } }
@media (max-width: 380px) { .stoBig { font-size: 30px; } .stoText { font-size: 20px; } }

/* guest summary: locked blocks behind the one inline gate */
.stSumGate { display: flex; flex-direction: column; gap: 12px; }
.stLockedBlk { user-select: none; pointer-events: none; }
.stLockedTitle { filter: blur(5px); }
.stLockedBar { height: 12px; border-radius: 6px; background: var(--surface-2); margin-top: 10px; filter: blur(2px); }
.stLockedBar.short { width: 60%; }

/* ===== full-height colour cards (story redesign) =====
   Each card is the screen under the "x of N" bar and carries one colour treatment (data-tone). The treatment re-points the colour tokens, so the
   level block, the legend, the gate form, the badges and the plan all follow it. Text colours are picked for WCAG AA on their own background. */
.stoCard { --card-bg: #FAFAF7; background: var(--card-bg); color: var(--text); box-shadow: none; }
.stoCard[data-tone="green"] { --card-bg: #0E6B43; --text: #FFFFFF; --text-2: #F1F8F4; --text-3: #F1F8F4; --brand-text: #FAFAF7; --brand: #FAFAF7; --on-brand: #0E6B43; --brand-soft: rgba(255,255,255,.16); --surface: #0A5535; --surface-2: rgba(255,255,255,.07); --surface-3: rgba(255,255,255,.22); --line: rgba(255,255,255,.3); --line-2: rgba(255,255,255,.3); --line-3: rgba(255,255,255,.4); }
.stoCard[data-tone="deep"] { --card-bg: #083D27; --text: #FFFFFF; --text-2: #DDEDE3; --text-3: #DDEDE3; --brand-text: #BFE8D0; --brand: #E6F1EA; --on-brand: #083D27; --brand-soft: rgba(255,255,255,.14); --surface: #0A5535; --surface-2: rgba(255,255,255,.1); --surface-3: rgba(255,255,255,.2); --line: rgba(255,255,255,.28); --line-2: rgba(255,255,255,.28); --line-3: rgba(255,255,255,.4); }
.stoCard[data-tone="cream"] { --card-bg: #FAFAF7; --text: #14201A; --text-2: #4A5750; --text-3: #4A5750; --brand-text: #0E6B43; --brand: #0E6B43; --on-brand: #FFFFFF; --brand-soft: #E6F1EA; --surface: #FFFFFF; --surface-2: #EEF2EE; --surface-3: #E6F1EA; --line: #DDE3DD; --line-2: #CFE4D8; --line-3: #A9B6AE; }
.stoCard[data-tone="mint"] { --card-bg: #E6F1EA; --text: #14201A; --text-2: #3C4A43; --text-3: #3C4A43; --brand-text: #0A5535; --brand: #0E6B43; --on-brand: #FFFFFF; --brand-soft: #FAFAF7; --surface: #FAFAF7; --surface-2: #F3F8F5; --surface-3: #CFE4D8; --line: #BCD5C6; --line-2: #BCD5C6; --line-3: #8FB09E; }
.stoCard[data-tone="ink"] { --card-bg: #14201A; --text: #F6F8F5; --text-2: #C9D4CD; --text-3: #C9D4CD; --brand-text: #BFE8D0; --brand: #E6F1EA; --on-brand: #14201A; --brand-soft: rgba(191,232,208,.16); --surface: #1E2E25; --surface-2: rgba(255,255,255,.09); --surface-3: rgba(255,255,255,.18); --line: rgba(255,255,255,.22); --line-2: rgba(255,255,255,.22); --line-3: rgba(255,255,255,.35); }
.stoCard .stLevel, .stoCard .stLegend { background: transparent; box-shadow: none; padding: 0; color: inherit; border: 0; }
.stoCard.lv { padding: 24px 20px; background: var(--card-bg); }
.stoCard .stEyebrow, .stoEye { color: var(--brand-text); }

/* phone: the card IS the screen, edge to edge */
.stoSlide { padding: 0; }
.stoCard { border-radius: 0; padding: 26px 20px 34px; gap: 0; }
.stoCard > :first-child { margin-block: auto; }
.stoIn { gap: 16px; }
.stoEye { font-size: 14px; letter-spacing: .08em; }
.stoHuge { margin: 0; font: 800 clamp(84px, 30vw, 132px)/.92 var(--font-num); letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stoHuge.word { font-size: clamp(44px, 14vw, 72px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.stoScore b.stoHuge { font-size: clamp(110px, 38vw, 160px); color: var(--text); }
.stoScore { align-items: flex-end; }
.stoScore span { color: var(--text-2); font-size: 18px; padding-bottom: 12px; }
.stoBig { font: 800 clamp(30px, 9vw, 42px)/1.05 var(--font-num); }
.stoText { font-size: 22px; font-weight: 600; }
.stoText.stoLead { font: 800 clamp(30px, 9vw, 40px)/1.08 var(--font-num); letter-spacing: -0.015em; }
.stoBar { height: 14px; border-radius: 7px; background: var(--surface-3); }
.stoBar i { background: var(--text); border-radius: 7px; }
.stoBar.early i { background: repeating-linear-gradient(135deg, var(--text) 0 8px, color-mix(in srgb, var(--text) 50%, transparent) 8px 14px); }
.stoBits { font-size: 18px; }
.stoTable { max-width: none; width: 100%; margin-top: 4px; }
.stoTable svg { border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.stoKey i { border-top-color: var(--text); }
.stoKey i.b { border-top-color: var(--text); }
.stoIn .fine, .stoCard .fine { color: var(--text-2); font-size: 15px; }
.stoEarly, .stoCard .stEarlyTag, .stoCard .stEarly { background: var(--brand-soft); color: var(--text); }

/* the level card: the level name is the card */
.stoCard.lv .stLevel { flex: 1; justify-content: center; gap: 10px; }
.stoCard .stLvWrap { flex-direction: column; align-items: stretch; gap: 22px; }
.stoCard .stLvLab { color: var(--text-2); font-size: 19px; }
.stoCard .stLv, .stoCard h1.stLv { font: 800 clamp(72px, 24vw, 120px)/.95 var(--font-num); letter-spacing: -0.035em; color: var(--text); overflow-wrap: anywhere; }
.stoCard .stTouch { max-width: none; min-width: 0; padding: 16px 18px; border: 2px dashed var(--line-3); border-radius: 18px; background: var(--surface-2); }
.stoCard .stTouchLab { color: var(--brand-text); font-size: 15px; }
.stoCard .stTouchName, .stoCard .stTouchVal { color: var(--text); }
.stoCard .stTouchName { font-size: 17px; }
.stoCard .stTouchVal { font-size: 64px; font-weight: 800; }
.stoCard .stTouch small { color: var(--text-2); font-size: 15px; }
.stoCard .stNote { color: var(--text-2); font-size: 16px; margin-top: 8px; }

/* you play like: the player's name is the card, the photo large and round, the credit visible */
.stoLegend { gap: 10px; }
.stoCard .stLgTop { gap: 12px; }
.stoCard .stTrList { gap: 8px; }
.stoLegend > .fine { display: none; }   /* the match note is already inside the block */
.stoCard .stLegend { gap: 18px; }
.stoCard .stLgTop { flex-direction: column; align-items: flex-start; gap: 16px; }
.stoCard .stLgPhoto { width: min(50vw, 200px); height: min(50vw, 200px); box-shadow: 0 0 0 5px var(--brand-soft); }
.stoCard .stLgPhoto.none { font-size: 90px; }
.stoCard .stLgLab { color: var(--brand-text); font-size: 16px; }
.stoCard .stLgName, .stoCard h2.stLgName { font: 800 clamp(44px, 13.5vw, 70px)/.98 var(--font-num); letter-spacing: -0.03em; color: var(--text); }
.stoCard .stLgNick { color: var(--text-2); font-size: 18px; }
.stoCard .stTrLab { color: var(--text-2); font-size: 15px; }
.stoCard .stTrName { color: var(--text); }
.stoCard .stTrRow { color: var(--text-2); }
.stoCard .stTrRow i { background: var(--text); height: 10px; border-radius: 5px; }
.stoCard .stTrRow i.them { background: var(--text-2); opacity: .6; }
.stoCard .stTrRow b { color: var(--text); }
.stoCard .stLgFine, .stoCard .stCredit { color: var(--text-2); font-size: 14px; }
.stoCard .stCredit { overflow-wrap: anywhere; }

/* gate and plan */
.stoGateH { font: 800 clamp(32px, 9.5vw, 44px)/1.05 var(--font-num); letter-spacing: -0.02em; }
.stoPeek li { background: var(--surface-2); }
.stoGateForm .save { color: var(--text); }
.stoPlanH { font: 800 clamp(30px, 9vw, 40px)/1.06 var(--font-num); letter-spacing: -0.02em; }
.stoRoad { font-size: clamp(40px, 12vw, 64px); font-weight: 800; flex-wrap: wrap; letter-spacing: -0.03em; }
.stoRoad b { background: var(--brand-soft); color: var(--text); }
.stoStep { background: var(--surface-2); }
.stoStep.on { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--text); }
.stoStep .stPlanN { background: var(--text); color: var(--card-bg, var(--surface)); }
.stoBadge { background: var(--surface-2); color: var(--text-2); }
.stoBadge.on { background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
/* 3 Dec 2026: --card-bg exists only inside a story slide (.stoCard); on the Snooker Card page (.stBadgesSum) it was undefined, so the tick took
   the text colour of its own disc: a plain black disc in light, a blank pale one in dark. The page surface stands in there. */
.stoBadge.on .stoBadgeIc { background: var(--text); color: var(--card-bg, var(--surface)); }
.stoBadgeIc { background: var(--surface-3); box-shadow: inset 0 0 0 2px var(--line-3); }
.stoArrow { background: var(--surface); }

/* desktop: a centred tall card with blurred neighbours, same colour treatments */
@media (min-width: 900px) {
  .stoSlide { flex: 0 0 460px; padding: 6px 12px 28px; }
  .stoCard { border-radius: 26px; box-shadow: var(--shadow-lg); padding: 32px 28px; }
  .stoCard.lv { padding: 32px 28px; }
  .stoHuge { font-size: 120px; }
  .stoHuge.word { font-size: 60px; }
  .stoScore b.stoHuge { font-size: 140px; }
  .stoCard .stLv, .stoCard h1.stLv { font-size: 100px; }
  .stoCard .stLgPhoto { width: 150px; height: 150px; }
  .stoCard .stLgName, .stoCard h2.stLgName { font-size: 54px; }
  .stoRoad { font-size: 46px; }
  .stoCard { padding-block: 24px; }
  .stoCard.lv { padding-block: 24px; }
  .stoText.stoLead { font-size: 34px; }
}

/* ===== 29 Nov 2026: safe areas in both orientations (iPhone landscape: notch on the left or right) and an iPhone-proof "Skip to summary" ===== */
/* the insets as variables (the tests inject notch sizes through them) */
.stStory { --st-l: env(safe-area-inset-left, 0px); --st-r: env(safe-area-inset-right, 0px); --st-b: env(safe-area-inset-bottom, 0px); --st-t: env(safe-area-inset-top, 0px); padding-top: var(--st-t); }
.stoHead { padding-left: max(16px, var(--st-l)); padding-right: max(16px, var(--st-r)); }
.stoProg { left: max(16px, var(--st-l)); right: max(16px, var(--st-r)); }
.stoSkip { position: relative; z-index: 3; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(14, 107, 67, 0.15); border-radius: 10px; }
.stoSkip:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
/* phones: the card stays full-bleed (its colour runs under the notch and the home bar); its CONTENT clears the insets */
.stoCard, .stoCard.lv { padding-left: max(20px, calc(var(--st-l) + 12px)); padding-right: max(20px, calc(var(--st-r) + 12px)); padding-bottom: max(34px, calc(var(--st-b) + 16px)); }
.stoPrev { left: max(14px, var(--st-l)); } .stoNext { right: max(14px, var(--st-r)); }
@media (min-width: 900px) { .stoSlide { padding: 6px 12px max(28px, var(--st-b)); } .stoCard, .stoCard.lv { padding: 24px 28px; } .stoPrev { left: calc(50% - 330px); } .stoNext { right: calc(50% - 330px); } }

/* ===== story cards v2 (v4 results): one huge number, one plain sentence, the table diagram as the hero ===== */
.s2Story .stoIn { gap: 12px; }
.s2Name { font: 800 32px/1.08 var(--font-num); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.s2Hero { display: flex; align-items: center; gap: 14px; }
.s2Num { display: flex; align-items: baseline; gap: 2px; margin: 0; flex: none; }
.s2Num b { font: 800 68px/0.95 var(--font-num); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.s2Unit { font: 800 30px/1 var(--font-num); margin-left: 2px; }
.s2Side { font: 700 18px/1.25 var(--font-ui); margin: 0; text-wrap: balance; }
.s2Find { font-size: 19px; line-height: 1.32; margin: 0; }
.s2Real { font-weight: 700; font-size: 16px; margin: 0; color: var(--brand-text); }
.s2Extra { font-size: 15.5px; margin: 0; color: var(--text-2); }
.s2Mean { font-size: 15.5px; line-height: 1.4; color: var(--text-2); margin: 0; }
.s2Keep { font-size: 15px; color: var(--text-2); margin: 0; }
.s2Src { margin: 0; font-size: 13px !important; }
.s2Pic { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px rgba(8, 40, 25, 0.18); background: #0F5A36; aspect-ratio: 1 / 1; }
.s2Pic svg { display: block; width: 100%; height: 100%; }
.s2Pair, .s2Trio { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.s2Trio { grid-template-columns: 1fr 1fr 1fr; }
.s2Tile { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s2Tile .s2Pic { aspect-ratio: 0.82 / 1; }
.s2Trio .s2Pic { aspect-ratio: 0.75 / 1; }
.s2Tile figcaption { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: 14px; }
.s2Tile figcaption .off { color: #A3421A; font-weight: 700; }
.s2Tile figcaption .ok { color: var(--brand-text); font-weight: 700; }
.stoCard[data-tone="green"] .s2Tile figcaption .off, .stoCard[data-tone="ink"] .s2Tile figcaption .off, .stoCard[data-tone="deep"] .s2Tile figcaption .off { color: #FFB38F; }
.s2Key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; color: var(--text-2); margin: 0; }
.s2Key i { display: inline-block; width: 22px; height: 0; border-top: 4px solid #F0703A; border-radius: 2px; }
.s2Key i.right { border-top: 4px dashed var(--text-2); margin-left: 6px; }
.s2Key i.ring { width: 14px; height: 14px; border: 3px dashed var(--text-2); border-radius: 50%; }
.s2Fix { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--brand-soft); margin-top: 2px; }
.s2FixN { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font: 800 16px var(--font-num); }
.s2FixTx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s2FixTx b { font-size: 15.5px; }
.s2FixTx small { font-size: 13.5px; color: var(--text-2); }
/* cover */
.s2Level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.s2Pill { padding: 6px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 800 17px var(--font-ui); }
.s2Level .s2Num b { font-size: 56px; }
.s2Grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.s2Grid li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 12px; background: var(--surface-2); }
.s2Grid li i { font: 800 16px var(--font-num); font-style: normal; }
.s2Grid li small { font-size: 12px; color: var(--text-2); }
.s2Grid li.in { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.s2Ask { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.s2AskLab { font-weight: 700; font-size: 16px; }
.s2AskRow { display: flex; gap: 8px; }
.s2AskRow input { flex: 1; min-width: 0; min-height: 44px; font-size: 16px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--surface); color: var(--text); }
.s2AskRow .btn { min-height: 44px; }
.s2Priv, .s2AskMsg { margin: 0; font-size: 13px !important; }
/* pace */
.s2Pace { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.s2Pace li { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 10px; align-items: center; }
.s2PaceName { display: flex; flex-direction: column; min-width: 0; }
.s2PaceName b { font-size: 15px; }
.s2PaceName small { font-size: 12.5px; color: var(--text-2); }
.s2PaceBar { position: relative; height: 12px; border-radius: 6px; background: var(--surface-3); }
.s2PaceBar .one, .s2PaceBar .hardline { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-2); left: 33.3%; }
.s2PaceBar .hardline { left: 63.3%; background: #F0703A; }
.s2PaceBar em { position: absolute; top: 50%; left: var(--x); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.s2Pace li.hard .s2PaceBar em { background: #F0703A; }
.s2PaceV { font: 800 17px var(--font-num); font-variant-numeric: tabular-nums; }
.s2Pace li.hard .s2PaceV, .s2Pace li.hard small { color: #A3421A; }
.stoCard[data-tone="green"] .s2Pace li.hard .s2PaceV, .stoCard[data-tone="ink"] .s2Pace li.hard .s2PaceV, .stoCard[data-tone="deep"] .s2Pace li.hard .s2PaceV, .stoCard[data-tone="green"] .s2Pace li.hard small, .stoCard[data-tone="ink"] .s2Pace li.hard small, .stoCard[data-tone="deep"] .s2Pace li.hard small { color: #FFB38F; }
/* the diagrams draw in as the card opens (about 1 s), then sit still */
.stoSlide .s2Pic .drw:not(.dash) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.stoSlide .s2Pic .dash, .stoSlide .s2Pic .fadein, .stoSlide .s2Pic .chip { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .stoSlide.cur:not([data-played="1"]) .s2Pic .drw:not(.dash), .stoSlide.cur .s2Pic .drw:not(.dash) { animation: s2Draw 0.7s var(--ease) both; }
  .stoSlide.cur .s2Pic .drw.d2 { animation-delay: 0.45s; }
  .stoSlide.cur .s2Pic .dash { animation: s2Fade 0.5s 0.1s var(--ease) both; }
  .stoSlide.cur .s2Pic .fadein { animation: s2Fade 0.4s 0.6s var(--ease) both; }
  .stoSlide.cur .s2Pic .fadein.late { animation-delay: 0.9s; }
  .stoSlide.cur .s2Pic .chip { animation: s2Fade 0.3s 1s var(--ease) both; }
}
@keyframes s2Draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes s2Fade { from { opacity: 0; } to { opacity: 1; } }
/* poster sheet */
.s2PosterBox .s2Sizes { display: flex; gap: 8px; justify-content: center; }
.s2PosterImg { max-height: 58vh; width: auto !important; height: auto; max-width: 100%; align-self: center; border-radius: 12px; }
/* landscape phones: the cards use the width (two columns where the content allows) */
@media (orientation: landscape) and (max-height: 500px) {
  .s2Num b { font-size: 48px; } .s2Name { font-size: 26px; }
  .s2Pair { max-width: 520px; } .s2Trio { max-width: 620px; }
  .s2Story .stoIn > .s2Pic { max-width: 360px; align-self: center; }
}
.s2Story .stEarlyTag { align-self: flex-start; }

/* 3 Dec 2026 (training steps visible): plan steps are never blurred; a locked step shows a small lock instead */
.stoStep.locked { filter: none; opacity: 1; user-select: auto; }
.stoStep.locked::after, .k3Steps li.blur::after { content: ''; flex: none; width: 16px; height: 16px; margin-left: auto; background: currentColor; opacity: 0.75; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1.5a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V8a5 5 0 0 1 10 0v2h1.5a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-13a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm2 0h6V8a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
