/* Sightrep styles. Every value comes from css/tokens.css. */

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-body)/var(--leading-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; text-align: inherit; }
:focus-visible { outline: 2px solid var(--side-text); outline-offset: 3px; }
.icon { flex: none; display: block; }

/* Logo versions: white+lime on dark, black on light/outdoor */
.on-light { display: none !important; }
:root[data-appearance="light"] .on-dark, :root[data-appearance="outdoor"] .on-dark { display: none !important; }
:root[data-appearance="light"] .on-light, :root[data-appearance="outdoor"] .on-light { display: block !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-appearance]) .on-dark { display: none !important; }
  :root:not([data-appearance]) .on-light { display: block !important; }
}

/* Type helpers */
.caption { font-size: var(--text-caption); line-height: 1.4; color: var(--muted); }
.screen-title {
  font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display);
  font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; text-wrap: balance;
}
.status { min-height: 1.5em; color: var(--good); font-weight: 600; }

/* ---------- Screens + motion ---------- */
.screen {
  display: none;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + var(--space-4)) calc(env(safe-area-inset-right) + var(--gutter))
           calc(env(safe-area-inset-bottom) + var(--space-4)) calc(env(safe-area-inset-left) + var(--gutter));
  flex-direction: column;
  gap: var(--space-5);
}
.screen.is-active { display: flex; }
.screen.enter-fwd { animation: enter-fwd var(--dur-base) var(--ease-out); }
.screen.enter-back { animation: enter-back var(--dur-base) var(--ease-out); }
@keyframes enter-fwd { from { transform: translateX(var(--slide)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes enter-back { from { transform: translateX(calc(-1 * var(--slide))); opacity: 0; } to { transform: none; opacity: 1; } }
.screen__foot {
  position: sticky; bottom: 0; margin-top: auto; z-index: 2;
  padding-top: var(--space-3); padding-bottom: calc(env(safe-area-inset-bottom) + var(--space-2));
  margin-bottom: calc(-1 * (env(safe-area-inset-bottom) + var(--space-4)));
  background: var(--bg);
  display: grid; gap: var(--space-3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap-primary); padding: 0 var(--space-5);
  border-radius: var(--radius-m); border: var(--line-w) solid transparent;
  font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display);
  font-size: 1.25rem; letter-spacing: 0.01em; text-transform: uppercase; text-align: center; line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--side); color: var(--side-ink); border-color: var(--accent-border); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line); }
:root[data-appearance="outdoor"] .btn--secondary { border-color: var(--line-strong); }
.btn--block { width: 100%; }
.btn--big { min-height: 64px; font-size: 1.5rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link-btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-1);
  font-weight: 600; color: var(--text);
}
.link-btn .icon { color: var(--muted); }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--text); }
.icon-btn:active { background: var(--raised); }

/* ---------- Safety waiver (js/waiver.js): the first screen until accepted ---------- */
/* One phone-height column: the text scrolls in its box, the boxes and button stay in view. */
.screen--waiver.is-active { height: 100dvh; gap: var(--space-3); }
.waiver__head { display: grid; gap: var(--space-2); }
.waiver__logo .logo { height: 28px; width: auto; }
.waiver__head .screen-title { margin-top: var(--space-2); font-size: clamp(1.625rem, 7.2vw, 2.75rem); white-space: nowrap; }
.waiver__intro { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.waiver__text {
  flex: 1 1 0; min-height: 9rem; overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: var(--space-4);
  padding: var(--space-4); border-radius: var(--radius-m);
  background: var(--surface); border: var(--line-w) solid var(--line);
}
.waiver__section { display: grid; gap: var(--space-1); }
.waiver__section h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.waiver__section p { font-size: 1rem; line-height: 1.5; }
.waiver__meta { color: var(--muted); font-size: var(--text-caption); }
.waiver__full { justify-self: start; align-self: flex-start; margin-top: calc(-1 * var(--space-2)); color: var(--side-text); }
.waiver__checks { display: grid; }
.waiver__check {
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3);
  min-height: var(--tap); padding-block: var(--space-2); cursor: pointer;
  font-size: 0.9375rem; line-height: 1.35; font-weight: 500;
}
.waiver__check input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0; cursor: pointer;
  width: 28px; height: 28px; border-radius: var(--radius-s);
  border: 2px solid var(--line-strong); background: var(--surface);
}
.waiver__check input::before { content: ""; position: absolute; inset: -10px; }   /* 48px tap target */
.waiver__check input:checked { background: var(--side); border-color: var(--side); }
:root[data-appearance="outdoor"] .waiver__check input:checked { border-color: var(--line-strong); }
.waiver__check input:checked::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 14px;
  border: solid var(--side-ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
/* The full text, over everything (from the waiver, About and Settings). */
.waiver-full {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg);
  padding: calc(env(safe-area-inset-top) + var(--space-4)) calc(env(safe-area-inset-right) + var(--gutter))
           calc(env(safe-area-inset-bottom) + var(--space-4)) calc(env(safe-area-inset-left) + var(--gutter));
}
.waiver-full__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: var(--space-4); padding-bottom: var(--space-4); }
.waiver-full__foot { padding-top: var(--space-3); border-top: var(--line-w) solid var(--line); }

/* ---------- Home ---------- */
.home__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
/* The wordmark, as text until the Sightrep logo files arrive: "rep" in the accent. */
.home__brand { display: grid; gap: 6px; padding-top: var(--space-1); }
.home__logo .logo { height: 34px; width: auto; }
.home__tagline { color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.home__nav { display: flex; margin-right: calc(-1 * var(--space-2)); }
.banner__btn {
  width: 100%; min-height: var(--tap); display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-m); background: var(--raised); color: var(--text); font-weight: 600;
}
.banner[hidden] { display: none; }
/* The old address only: "Sightrep has a new home" (js/brand.js movedFrom). */
.moved { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-m); background: var(--raised); border-left: 4px solid var(--side); }
.moved[hidden] { display: none; }
.moved__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.moved__title b { color: var(--side-text); }
.moved__text { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.moved .btn { font-size: 1.0625rem; padding-inline: var(--space-4); }
.home__sides { margin-top: auto; display: grid; gap: var(--space-4); }
/* A side: header row (opens the side), one-line description, preset, run last. */
.side {
  display: grid; gap: var(--space-3); padding: var(--space-2) var(--space-4) var(--space-4);
  border-radius: var(--radius-m); background: var(--surface); border: var(--line-w) solid var(--line);
  border-left: 4px solid var(--side);
}
:root[data-appearance="outdoor"] .side { border-left-color: var(--line); border-left-width: 6px; }
.side__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); min-height: 56px; text-align: left; }
.side__head > .icon { color: var(--muted); }
.side__icon { width: 40px; height: 40px; border-radius: var(--radius-s); display: grid; place-items: center; background: var(--side); color: var(--side-ink); }
.side__name { display: grid; gap: 2px; }
.side__name strong {
  font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900;
  font-size: var(--text-title); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em;
}
.side__name span { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.side__desc { color: var(--muted); line-height: 1.4; }
.side .btn { font-size: 1.0625rem; padding-inline: var(--space-4); }
.side__desc b { color: var(--text); font-weight: 600; }
.side-tag {
  display: inline-flex; align-items: center; gap: var(--space-2); justify-self: start;
  font: 700 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text);
}
.home__foot { text-align: center; color: var(--muted); font-size: var(--text-caption); line-height: 1.4; }

/* ---------- Navigation header (settings, About) ---------- */
.nav { display: grid; gap: var(--space-2); }
.nav__back { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap); margin-left: calc(-1 * var(--space-2)); padding-right: var(--space-2); font-weight: 600; justify-self: start; }
.nav__title {
  font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display);
  font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase;
}

/* ---------- Native-style settings ---------- */
.groups { display: grid; gap: var(--space-6); }
.group { display: grid; gap: var(--space-2); }
.group__title { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.group__rows { border-top: var(--line-w) solid var(--line); border-bottom: var(--line-w) solid var(--line); }
.setting {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-2) var(--space-3);
  min-height: 60px; padding-block: var(--space-3);
}
.setting + .setting { border-top: var(--line-w) solid var(--line); }
.setting__label { font-weight: 600; }
.setting__hint { grid-column: 1 / -1; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.setting--stack { grid-template-columns: 1fr; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 11px; background: var(--raised); }
:root[data-appearance="outdoor"] .seg { box-shadow: inset 0 0 0 2px #000; }
.seg button {
  min-height: var(--tap); min-width: 56px; padding: 0 var(--space-3); border-radius: 9px;
  font-weight: 600; font-size: 0.9375rem; color: var(--muted); text-align: center; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg--fill { display: grid; width: 100%; }
.seg--fill button { min-width: 0; padding: 0 var(--space-1); }
.seg--two { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.seg--three { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }

.switch { position: relative; width: 52px; height: 32px; border-radius: 16px; background: var(--raised); border: var(--line-w) solid var(--line); flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform var(--dur-fast) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--side); border-color: var(--accent-border); }
:root:not([data-appearance="outdoor"]) .switch[aria-checked="true"] { border-color: var(--side); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--side-ink); }
/* a 48px hit area around the 32px switch */
.switch::before { content: ""; position: absolute; inset: -8px; }

.stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.stepper button { width: var(--tap); height: var(--tap); border-radius: 50%; border: var(--line-w) solid var(--line); background: var(--surface); display: grid; place-items: center; }
.stepper button[disabled] { opacity: 0.35; }
.stepper output { min-width: 3.5ch; text-align: center; font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: var(--weight-num); font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.slider { display: grid; grid-template-columns: 1fr 4.5em; align-items: center; gap: var(--space-3); }
.slider input { width: 100%; height: var(--tap); accent-color: var(--side-text); }
.slider output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Side menus (FOCUS, MOVE): one row per session ---------- */
#focus-hub, #move-hub { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.hub-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding-block: var(--space-3); text-align: left; }
.hub-row + .hub-row { border-top: var(--line-w) solid var(--line); }
.hub-row__text { display: grid; gap: 2px; min-width: 0; }
.hub-row__text strong { font-weight: 600; }
.hub-row__text small { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.hub-row__meta { color: var(--muted); font-weight: 600; white-space: nowrap; }
.hub-row > .icon { color: var(--side-text); }

/* ---------- Lists (About, summaries) ---------- */
.list { list-style: none; border-top: var(--line-w) solid var(--line); border-bottom: var(--line-w) solid var(--line); }
.list__row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-3); min-height: 56px; padding-block: var(--space-3); width: 100%; }
.list__row + .list__row { border-top: var(--line-w) solid var(--line); }
.list__label { font-weight: 600; }
.list__row--button { grid-template-columns: 1fr auto; text-align: left; }
.list__row--button .icon { color: var(--muted); }

.about { display: grid; gap: var(--space-5); }
.about__logo .logo { width: 150px; height: auto; }
.about__lead { font-size: var(--text-title); line-height: 1.3; font-weight: 600; max-width: 30ch; }
.about__text { color: var(--muted); max-width: 60ch; }
.about__text b { color: var(--text); font-weight: 600; }
.about__side { display: grid; gap: var(--space-3); padding-left: var(--space-4); border-left: 4px solid var(--side); }
.about__why { display: grid; gap: var(--space-1); }
.about__why dt { font-weight: 700; margin-top: var(--space-2); }
.about__why dd { color: var(--muted); line-height: 1.45; }
.about__research { display: grid; gap: var(--space-3); }
.about__points { list-style: none; display: grid; gap: var(--space-3); color: var(--muted); line-height: 1.45; }
.about__points b { color: var(--text); font-weight: 600; }
.about__sources { padding-left: var(--space-5); display: grid; color: var(--muted); }
.about__sources a { display: flex; align-items: center; min-height: var(--tap); color: var(--side-text); text-decoration: underline; text-underline-offset: 3px; line-height: 1.35; }
:root[data-appearance="outdoor"] .about__side { border-left-color: var(--line); }

/* ---------- Drill screen: cue + thin progress only ---------- */
.screen--drill { gap: 0; position: relative; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.hud { flex: none; margin-inline: calc(-1 * var(--gutter)); }
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--side); transition: width 250ms linear; }
:root[data-appearance="outdoor"] .progress__fill { background: #000; }
.hud__row { display: flex; align-items: center; gap: var(--space-3); padding: 0 var(--space-2) 0 var(--gutter); }
.hud__block, .hud__time { font: 600 var(--text-caption)/1 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.hud__block { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud__pause { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--muted); }
.hud__safety { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); padding: 0 var(--gutter) 2px; font: 600 var(--text-caption)/1.3 var(--font-body); color: var(--muted); }
.hud__safety[hidden], .screen--drill:has(.howto) .hud__safety { display: none; }   /* the how-to card shows it itself */
.hud__safety span { display: inline-flex; align-items: center; gap: 4px; }
.stage { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-bottom: var(--space-3); }

.pause {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3);
  padding: var(--space-7) var(--gutter) calc(env(safe-area-inset-bottom) + var(--space-5));
  background: var(--overlay);
}
.pause[hidden] { display: none; }
.pause__title { margin-bottom: auto; margin-top: auto; text-align: center; font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: var(--text-score); text-transform: uppercase; }

/* ---------- Summary (FOCUS sessions + MOVE drills) ---------- */
.sum { display: grid; gap: var(--space-5); }
.sum__kicker { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.sum__title { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: var(--text-score); line-height: var(--leading-display); text-transform: uppercase; }
.sum__meta { color: var(--muted); }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: var(--line-w) solid var(--line); border-bottom: var(--line-w) solid var(--line); }
.tile { padding: var(--space-4) var(--space-2) var(--space-4) 0; }
.tile + .tile { padding-left: var(--space-3); border-left: var(--line-w) solid var(--line); }
.tile__value { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: var(--weight-num); font-size: clamp(2.25rem, 11vw, 3rem); line-height: 0.95; font-variant-numeric: tabular-nums; }
.tile__unit { margin-left: 2px; font-size: 0.45em; color: var(--muted); }
.tile__label { margin-top: var(--space-2); font: 600 var(--text-caption)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.sum__note { line-height: 1.4; }
.sum__note b { font-weight: 700; }
.sum__rows { list-style: none; border-top: var(--line-w) solid var(--line); }
.sum__rows li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 56px; padding-block: var(--space-2); border-bottom: var(--line-w) solid var(--line); font-weight: 600; }
.row__name small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-caption); font-weight: 500; }
.row__val { flex: none; font-variant-numeric: tabular-nums; color: var(--text); }
.row__val--done { color: var(--muted); font-weight: 500; }
.sum__foot, .sum__seed { color: var(--muted); font-size: var(--text-caption); line-height: 1.4; }
.head { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line-w) solid var(--line); border-bottom: var(--line-w) solid var(--line); }
.head__item { position: relative; padding: var(--space-3) var(--space-2) var(--space-3) 0; }
.head__item + .head__item { padding-left: var(--space-3); border-left: var(--line-w) solid var(--line); }
.head__label { font: 600 var(--text-caption)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.head__value { margin-top: var(--space-1); font-weight: 700; font-size: var(--text-title); line-height: 1.15; }
.head__value small { color: var(--muted); font-size: var(--text-caption); font-weight: 600; text-transform: uppercase; }
.sum__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.sum__logo { width: 34px; height: auto; }
.lb-nav { position: relative; }
.lb-title__logo { position: absolute; right: 0; top: 6px; width: 34px; height: auto; }

/* ---------- First-run guide (bottom sheet) ---------- */
.guide { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; background: var(--scrim); }
.guide__card {
  width: 100%; max-width: 560px; margin: 0 auto; max-height: 92dvh; overflow: auto;
  display: grid; gap: var(--space-4); padding: var(--space-5) var(--gutter) calc(env(safe-area-inset-bottom) + var(--space-4));
  background: var(--surface); border-radius: 20px 20px 0 0; border-top: var(--line-w) solid var(--line);
  animation: sheet-up var(--dur-slow) var(--ease-out);
}
@keyframes sheet-up { from { transform: translateY(var(--slide)); opacity: 0; } to { transform: none; opacity: 1; } }
.guide__step { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.guide__title { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display); font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; }
.guide__body { display: grid; gap: var(--space-3); line-height: 1.45; }
.guide__body b { font-weight: 700; }
.guide__muted { color: var(--muted); font-size: 0.9375rem; }
.guide__blocks { list-style: none; border-top: var(--line-w) solid var(--line); }
.guide__blocks li { display: grid; grid-template-columns: 6.5em 1fr; gap: var(--space-3); padding-block: var(--space-3); border-bottom: var(--line-w) solid var(--line); }
.guide__blocks b { font-weight: 700; }
.guide__blocks span { color: var(--muted); }
.guide__modes { display: grid; border-top: var(--line-w) solid var(--line); }
.guide__modes > div { display: grid; gap: var(--space-2); padding-block: var(--space-3); border-bottom: var(--line-w) solid var(--line); }
.guide__modes p { color: var(--muted); }
.guide__modes p b { color: var(--text); font-weight: 600; }
.guide__nav { display: grid; grid-template-columns: 1fr 2fr; gap: var(--space-3); }

/* ---------- Readiness check ---------- */
#screen-check { justify-content: flex-end; }
.check { display: grid; gap: var(--space-4); }
.check__kicker { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.check__title { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display); font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; }
.check__skip { justify-self: center; justify-content: center; min-width: var(--tap); padding: 0 var(--space-3); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--surface); border: var(--line-w) solid var(--line); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.04em; }
.chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-appearance="outdoor"] .chip[aria-checked="true"] { border-color: #000; }

/* ---------- How-to card + countdown ---------- */
.howto { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; padding-top: var(--space-4); }
.howto__kicker { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.howto__title { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display); font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; text-wrap: balance; }
.howto__rule { font-size: 1.1875rem; font-weight: 500; line-height: 1.4; max-width: 28ch; }
.howto__demo { width: 100%; display: grid; place-items: center; margin-block: var(--space-2); }
.safety-note { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.howto__soon { color: var(--muted); font-weight: 600; }
.howto__timer { align-self: stretch; height: 3px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.howto__timer i { display: block; height: 100%; background: var(--side); transform-origin: left; animation: howto-timer linear forwards; }
@keyframes howto-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .howto__timer i { animation: none; } }
.howto .btn { margin-top: auto; }

.count { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); background: var(--bg); }
.count__label { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-text); }
.count__num { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: clamp(8rem, 46vw, 15rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* mini examples on the how-to card (a little phone showing the cue) */
.mini { display: grid; justify-items: center; gap: var(--space-2); }
.mini__phone { position: relative; width: 168px; padding: var(--space-2); border-radius: 18px; background: var(--cue-bg); border: var(--line-w) solid var(--line); display: grid; gap: 6px; color: var(--cue-fg); }
.mini__cue { position: relative; height: 92px; border-radius: 10px; overflow: hidden; display: grid; place-items: stretch; background: var(--cue-bg); }
.mini__pad { display: grid; gap: 4px; }
.mini__pad--colors, .mini__pad--oddeven { grid-template-columns: 1fr 1fr; }
.mini__btn { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; border-radius: 6px; background: var(--c); color: var(--ink); font: 700 0.6875rem var(--font-body); letter-spacing: 0.04em; }
.mini__btn b { font-size: 0.6875rem; }
.mini__cap { font-weight: 600; min-height: 1.4em; }
.mc { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; }
.mc--fill { background: var(--c); color: var(--ink); font-size: 2.5rem; }
.mc--word { color: var(--c); font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-size: 1.875rem; }
.mc--text { color: var(--cue-fg); font-size: 1.375rem; text-align: center; line-height: 1.1; padding: 0 6px; }
.mc--text small { display: block; font-size: 0.75rem; color: var(--cue-muted); margin-top: 4px; }
.mc--periph { position: relative; }
.mc__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cue-fg); box-shadow: 0 0 0 3px var(--cue-bg), 0 0 0 5px var(--cue-accent); }
.mc__flash { position: absolute; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; background: var(--c); color: var(--ink); animation: mini-flash 3s steps(1) infinite; }
.mc__flash--right { right: 6px; top: calc(50% - 13px); }
.mc__flash--top { top: 6px; left: calc(50% - 13px); }
@keyframes mini-flash { 0%, 10% { opacity: 0; } 12%, 40% { opacity: 1; } 42%, 100% { opacity: 0; } }
.mini .is-answer.is-tapped { animation: mini-tap 0.9s ease-out 2; position: relative; z-index: 1; }
@keyframes mini-tap {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.95); transform: scale(1); }
  30% { transform: scale(0.92); }
  100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); transform: scale(1); }
}
.mini__cue.is-hold.is-tapped::after {
  content: 'HOLD'; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.6); color: #fff; font: 800 1rem var(--font-body); letter-spacing: 0.08em;
}
.mini__cue.is-hold.is-tapped { animation: none; }
.mini__phone--eyes { height: 120px; }
.mini__dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cue-accent); }
.mini__dot--pursuit { top: calc(50% - 7px); animation: mini-pursuit 2.4s ease-in-out infinite alternate; }
@keyframes mini-pursuit { from { left: 10px; } to { left: calc(100% - 24px); } }
.mini__target { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--cue-fg); color: var(--cue-bg); display: grid; place-items: center; font-style: normal; font-size: 0.9rem; animation: mini-saccade 3.2s steps(1) infinite; }
@keyframes mini-saccade { 0% { left: 8px; top: 8px; } 25% { left: calc(100% - 34px); top: 46px; } 50% { left: 66px; top: calc(100% - 34px); } 75% { left: 8px; top: 60px; } }
.mini__phone--gaze { display: grid; place-items: center; }
.mini__letter { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-size: 3rem; font-weight: 900; color: var(--cue-fg); }
.mini__head { position: absolute; bottom: 8px; left: calc(50% - 30px); width: 60px; height: 4px; border-radius: 2px; background: var(--cue-accent); animation: mini-head 1s ease-in-out infinite alternate; }
@keyframes mini-head { from { transform: translateX(-22px); } to { transform: translateX(22px); } }

/* ---------- Breathing (Settle / Lock In) ---------- */
.breathe { --orb: var(--cone-blue); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; }
.breathe--lockin { --orb: var(--accent); }
.breathe__ring { position: relative; width: min(84vw, 50dvh); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.breathe__guide, .breathe__orb { position: absolute; inset: 0; border-radius: 50%; }
.breathe__guide { border: 2px dashed var(--line); }
.breathe__orb { background: var(--orb); transform: scale(0.42); will-change: transform; }
/* The number inverts against whatever is behind it, so it reads on the orb and on the page. */
.breathe__count { position: relative; font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: clamp(5rem, 32vw, 9.5rem); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; mix-blend-mode: difference; }
.breathe__word { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; }
.breathe__sub { min-height: 2.8em; color: var(--muted); font-weight: 500; line-height: 1.4; }
.breathe.is-intro .breathe__orb { opacity: 0.3; }
.breathe.is-final .breathe__word { color: var(--accent-text); }
.breathe.is-final .breathe__count { display: none; }
.breathe__cueword { color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.breathe__cueword b { color: var(--text); font-weight: 800; }
.breathe__cueword[hidden] { display: none; }
.breathe.is-final .breathe__cueword { color: var(--text); font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: var(--text-score); font-weight: 900; letter-spacing: 0; line-height: 1; }
.breathe.is-final .breathe__sub { order: 3; }

/* ---------- Eye drills ---------- */
.eyes { --dot: 44px; position: relative; flex: 1; overflow: hidden; }
.eyes__center { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  background: linear-gradient(var(--line), var(--line)) center / 100% 2px no-repeat, linear-gradient(var(--line), var(--line)) center / 2px 100% no-repeat; }
.eyes__dot, .eyes__target { position: absolute; left: 0; top: 0; width: var(--dot); height: var(--dot); border-radius: 50%; will-change: transform; }
.eyes__dot { background: var(--accent); box-shadow: 0 0 0 var(--line-w) var(--accent-border); }
.eyes__target { display: grid; place-items: center; background: var(--text); color: var(--bg); font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-size: calc(var(--dot) * 0.68); font-weight: 900; line-height: 1; }
.eyes__target[hidden] { display: none; }
.gaze { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-2); position: relative; }
.gaze__dir { font: 700 var(--text-body) var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-text); text-align: center; }
.gaze__field { position: relative; flex: 1; width: 100%; display: grid; place-items: center; }
.gaze__letter { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-size: clamp(9rem, 55vw, 18rem); font-weight: 900; line-height: 1; }
.gaze__beat { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--raised); transition: background 100ms; }
.gaze[data-axis="h"] .gaze__beat--a { left: 4px; top: calc(50% - 10px); }
.gaze[data-axis="h"] .gaze__beat--b { right: 4px; top: calc(50% - 10px); }
.gaze[data-axis="v"] .gaze__beat--a { top: 4px; left: calc(50% - 10px); }
.gaze[data-axis="v"] .gaze__beat--b { bottom: 4px; left: calc(50% - 10px); }
.gaze[data-beat="0"] .gaze__beat--a, .gaze[data-beat="1"] .gaze__beat--b { background: var(--accent-text); }
.viz { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--space-5); }
.viz__theme { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); text-align: center; }
.viz__line { font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 600; line-height: 1.25; text-align: center; min-height: 6em; display: grid; place-items: center; text-wrap: balance; }
.viz__dots { display: flex; justify-content: center; gap: var(--space-2); }
.viz__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.viz__dots i.is-on { background: var(--text); }

/* ---------- Reaction + brain drills ---------- */
.rx { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rx__strip { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 40px; margin-bottom: var(--space-2); }
.rx__rule { font: 700 0.9375rem/1.2 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.rx__count { flex: none; color: var(--muted); font: 600 var(--text-caption) var(--font-body); font-variant-numeric: tabular-nums; }
.rx__cue { position: relative; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; border-radius: var(--radius-m); overflow: hidden; background: var(--cue-bg); }
.rx__fix { width: 14px; height: 14px; border-radius: 50%; background: var(--cue-muted); }
.rx__fix--lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; background: var(--cue-fg); box-shadow: 0 0 0 6px var(--cue-bg), 0 0 0 9px var(--cue-accent); }
.rx__fb { flex: none; height: 44px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.rx__fb.is-ok { color: var(--good); }
.rx__fb.is-bad { color: var(--bad); }
.rx__fb.is-hint { color: var(--text); }
.rx__hint { flex: none; padding-block: var(--space-2); text-align: center; color: var(--muted); font: 600 var(--text-label) var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; }

.cue { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1); }
.cue--fill { background: var(--c); color: var(--ink); }
.cue__shape { font-size: clamp(5rem, 30vw, 10rem); line-height: 1; }
.cue__shape--xl { font-size: clamp(8rem, 50vw, 16rem); }
.cue__label { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: clamp(2.25rem, 11vw, 3.75rem); font-weight: 900; letter-spacing: 0.02em; line-height: 1; }
.cue--stroop { background: var(--cue-bg); color: var(--c); }
.stroop__word { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-size: clamp(3.5rem, 20vw, 7rem); font-weight: 900; line-height: 1; }
.stroop__shape { font-size: 2.5rem; line-height: 1; }
.cue--periph { background: var(--cue-bg); }
.flash { --size: 76px; position: absolute; width: var(--size); height: var(--size); border-radius: 18px; display: grid; place-items: center; background: var(--c); color: var(--ink); font-size: calc(var(--size) * 0.55); font-weight: 900; line-height: 1; }
.flash--lure { background: none; color: var(--cue-fg); font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); }

.pad { flex: none; display: grid; gap: var(--space-2); }
.pad--colors, .pad--oddeven { grid-template-columns: 1fr 1fr; }
.pad--colors .pad__btn { min-height: max(84px, 11dvh); }
.pad--oddeven .pad__btn { min-height: max(108px, 15dvh); }
.pad__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--radius-m); background: var(--c); color: var(--ink); font: 700 1.0625rem var(--font-body); letter-spacing: 0.06em; touch-action: none; }
.pad--oddeven .pad__label { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: 2rem; font-weight: 900; }
.pad__btn:active { filter: brightness(1.15); transform: scale(0.97); }
.pad__shape { font-size: 1.5rem; line-height: 1; }
.pad__btn.is-hint { animation: pad-hint 0.9s ease-in-out infinite; }

/* Memory Sequence: the pad dims while the sequence plays; one color lights at a time. */
.memo .pad__btn { transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.memo[data-phase="watch"] .pad__btn { opacity: 0.28; pointer-events: none; }
.memo .pad__btn.is-lit { opacity: 1; transform: scale(1.04); box-shadow: inset 0 0 0 4px var(--cue-fg); }
.memo__state { color: var(--cue-fg); font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: min(11vw, 3.25rem); letter-spacing: 0.02em; text-align: center; }
.memo__steps { color: var(--cue-muted); font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; min-height: 1.5em; }
.memo .rx__cue { align-content: center; gap: var(--space-2); }
@keyframes pad-hint { 0%, 100% { box-shadow: 0 0 0 0 var(--text); } 50% { box-shadow: 0 0 0 6px transparent; transform: scale(1.03); } }

.cue--math { background: var(--cue-bg); color: var(--cue-fg); padding: 0 var(--gutter); }
.math__q { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-size: clamp(4rem, 22vw, 7.5rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }


/* ---------- Cone Drill: setup ---------- */
/* Containers fill the screen so each sticky footer sits at the bottom. */
#cd-setup, #cd-signals, #cd-layout, #cd-done { flex: 1; display: flex; flex-direction: column; gap: var(--space-5); }
.cset { display: grid; gap: var(--space-6); padding-bottom: var(--space-2); }
.cset__sub { color: var(--muted); }
.notice { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--warn-bg); color: var(--warn-text); font-weight: 600; line-height: 1.35; }
.notice .icon { margin-top: 1px; }
.cerr { color: var(--bad); font-weight: 600; text-align: center; }
.expander { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3); width: 100%; min-height: 60px; padding-block: var(--space-3); text-align: left; }
.expander .icon { color: var(--muted); transition: transform var(--dur-base) var(--ease-out); }
.expander[aria-expanded="true"] .icon { transform: rotate(180deg); }
.expander__sum { display: block; color: var(--muted); font-weight: 500; font-size: 0.9375rem; margin-top: 2px; }
.expander + .expand { animation: expand var(--dur-base) var(--ease-out); }
@keyframes expand { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cpick-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; text-align: left; }
.cpick-row__chip { width: 32px; height: 32px; border-radius: var(--radius-s); display: grid; place-items: center; background: var(--c); color: var(--ink); font-size: 0.9rem; border: 1px solid var(--line); }
.cpick-row__name { font-weight: 600; }
.cpick-row__value { color: var(--muted); display: inline-flex; align-items: center; gap: var(--space-1); }
.cpick__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); padding-bottom: var(--space-3); }
.swatch { aspect-ratio: 1; min-height: var(--tap); border-radius: var(--radius-s); background: var(--c); color: var(--ink); font-size: 1.125rem; border: 1px solid var(--line); display: grid; place-items: center; }
.swatch[aria-pressed="true"] { outline: 3px solid var(--text); outline-offset: 2px; }
.swatch[disabled] { opacity: 0.18; }
.compass { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 64px); gap: var(--space-2); justify-content: center; padding-block: var(--space-2); }
.compass__dir { border-radius: var(--radius-m); background: var(--surface); border: var(--line-w) solid var(--line); color: var(--muted); display: grid; place-items: center; }
.compass__dir[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.compass__dir--FL { grid-area: 1 / 1; } .compass__dir--F { grid-area: 1 / 2; } .compass__dir--FR { grid-area: 1 / 3; }
.compass__dir--L { grid-area: 2 / 1; } .compass__dir--R { grid-area: 2 / 3; }
.compass__dir--BL { grid-area: 3 / 1; } .compass__dir--B { grid-area: 3 / 2; } .compass__dir--BR { grid-area: 3 / 3; }
.compass__you { grid-area: 2 / 2; display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--muted); color: var(--muted); font: 600 var(--text-caption) var(--font-body); text-transform: uppercase; }
.cset__est { text-align: center; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Cone Drill: layout helper ---------- */
.clay { display: grid; gap: var(--space-5); }
.clay__how { line-height: 1.45; }
.lay { width: 100%; max-width: 420px; max-height: 46dvh; justify-self: center; border-radius: var(--radius-m); border: var(--line-w) solid var(--line); background: var(--surface); }
.lay__line { stroke: var(--muted); }
.lay__ring { stroke: var(--side-text); }
.lay__phone { fill: var(--raised); stroke: var(--line); }
.lay__small { fill: var(--text); font: 700 11px var(--font-body); letter-spacing: 0.04em; }
.lay__tiny { fill: var(--muted); font: 600 9px var(--font-body); }
.lay__dist { fill: var(--side-text); font: 800 14px var(--font-body); }
.lay__you { fill: var(--side-text); font: 800 10px var(--font-body); letter-spacing: 0.06em; }
.lay__cone { stroke: var(--text); stroke-width: 2; }
.lay__num { fill: #000; font: 800 24px var(--font-num); font-variant-numeric: tabular-nums; }
.lay__arrowglyph { color: #000; }
.lay__arrowglyph .icon { stroke-width: 2.75; }

/* ---------- Cone Drill: running (cue canvas stays pure) ---------- */
.cd { position: relative; flex: 1; display: flex; margin: 0 calc(-1 * var(--gutter)) calc(-1 * var(--space-3)); }
.cd__stage { position: relative; flex: 1; overflow: hidden; background: var(--cue-bg); }
.cd__cue { position: absolute; inset: 0; }
.cd__cue.is-placed { --cd-size: min(52vw, 32dvh); inset: auto; width: var(--cd-size); height: var(--cd-size); transform: translate(-50%, -50%); }
.cd--peripheral .cd__cue.is-placed { --cd-size: min(40vw, 24dvh); }
.cd__dot { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cue-fg); box-shadow: 0 0 0 7px var(--cue-bg), 0 0 0 11px var(--cue-accent); z-index: 1; }
.cdf { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.is-placed .cdf { border-radius: 18px; }
.cdf--color { background: var(--c); color: var(--ink); }
.cdf--dark { box-shadow: inset 0 0 0 10px #fff; }
.cdf__shape { font-size: min(44vw, 28dvh); line-height: 1; }
.cdf__label { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: min(15vw, 9dvh); font-weight: 900; letter-spacing: 0.02em; line-height: 1; }
.is-placed .cdf__shape { font-size: calc(var(--cd-size) * 0.45); }
.is-placed .cdf__label { font-size: calc(var(--cd-size) * 0.15); }
.cdf--arrow { background: var(--cue-bg); }
.cdf__arrow { width: min(84vw, 56dvh); height: auto; fill: var(--cue-fg); }
.is-placed .cdf__arrow { width: 92%; }
.cdf--number { background: var(--cue-bg); color: var(--cue-fg); }
.cdf--number span { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-size: min(80vw, 52dvh); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cdf--one span { font-size: min(150vw, 62dvh); }   /* one digit: as big as the screen allows (js/cone/render.js NUMBER_SIZE) */
.is-placed .cdf--number { background: var(--cue-fg); color: var(--cue-bg); }
.is-placed .cdf--number span { font-size: calc(var(--cd-size) * 0.8); }
.cdf--hold { background: #6b6b6b; color: #fff; }
.cdf--hold span { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: min(18vw, 11dvh); font-weight: 900; }
.cdf--hold .icon { width: min(36vw, 22dvh); height: auto; }
.is-placed .cdf--hold span { font-size: calc(var(--cd-size) * 0.2); }
.is-placed .cdf--hold .icon { width: calc(var(--cd-size) * 0.4); }
.cd__rest { position: absolute; inset: 0; z-index: 3; background: var(--bg); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4) var(--gutter); overflow-y: auto; }
.cd__rest-label { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.cd__rest-time { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-size: min(30vw, 17dvh); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cd__rest-next { font-weight: 600; font-size: var(--text-title); }
/* "Too fast / Just right / Too slow": big targets for tired hands. */
.tune { display: grid; gap: var(--space-2); width: 100%; max-width: 420px; margin-top: var(--space-3); }
.tune__ask { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); text-align: center; }
.tune__btn {
  min-height: 64px; border-radius: var(--radius-m); border: var(--line-w) solid var(--line); background: var(--surface); color: var(--text); text-align: center;
  font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display); font-size: 1.25rem; text-transform: uppercase;
}
.tune__btn[aria-checked="true"] { background: var(--side); color: var(--side-ink); border-color: var(--side); }
:root[data-appearance="outdoor"] .tune__btn[aria-checked="true"] { border-color: var(--line); }
.tune__note { min-height: 1.4em; color: var(--muted); text-align: center; font-weight: 600; }
.sum .tune { max-width: none; }
.timing__sum { font-weight: 600; line-height: 1.4; }
.cdone__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.cdone__row .btn { padding-inline: var(--space-3); font-size: 1rem; font-variation-settings: normal; }

/* ---------- Leaderboard: name entry, reveal, board, coach tools ---------- */
#lb-name, #lb-board, #lb-coach { flex: 1; display: flex; flex-direction: column; gap: var(--space-5); }
.lbn { display: grid; gap: var(--space-3); align-content: start; }
.lbn__label { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
.lbn__score, .lbr__total { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: var(--text-score); line-height: 0.95; font-variant-numeric: tabular-nums; }
.lbn__detail { color: var(--muted); line-height: 1.4; }
.lbn__input {
  width: 100%; min-height: 56px; padding: 0 var(--space-4); border-radius: var(--radius-m);
  border: var(--line-w) solid var(--line); background: var(--surface); color: var(--text);
  font: 700 1.375rem var(--font-body); letter-spacing: 0.02em;
}
.lbn__input:focus { outline: 2px solid var(--side-text); outline-offset: 2px; }
.lbn__suggest { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lbn__hint { min-height: 1.4em; color: var(--muted); font-weight: 600; }
.lbn__hint.is-bad { color: var(--bad); }
.lbr__name { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: var(--text-display); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.lbr__add { font: 800 var(--text-title) var(--font-body); color: var(--side-text); font-variant-numeric: tabular-nums; }
.lbr__rank { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-title); animation: lb-rise var(--dur-slow) var(--ease-out); }
.lbr__pos { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lbr__move { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-pill); background: var(--raised); font-size: var(--text-body); }
.lbr__move.is-up { background: var(--side); color: var(--side-ink); }
.lbr__best { justify-self: start; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font: 800 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; animation: lb-rise var(--dur-slow) var(--ease-out); }
@keyframes lb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lb-note { margin-top: calc(-1 * var(--space-2)); line-height: 1.4; }
.lb-body { display: grid; gap: var(--space-3); }
.lb-list { list-style: none; border-top: var(--line-w) solid var(--line); }
.lb-list--me { border-top-style: dashed; }
.lb-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--space-3); min-height: 60px; padding-block: var(--space-2); border-bottom: var(--line-w) solid var(--line); }
.lb-row__rank { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--muted); }
.lb-row--1 .lb-row__rank { background: var(--side); color: var(--side-ink); }
.lb-row--2 .lb-row__rank, .lb-row--3 .lb-row__rank { background: var(--raised); color: var(--text); }
:root[data-appearance="outdoor"] .lb-row--1 .lb-row__rank { box-shadow: inset 0 0 0 2px #000; }
.lb-row__name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.lb-row__name small { display: block; margin-top: 2px; font-weight: 500; font-size: var(--text-caption); color: var(--muted); }
.lb-row__score { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 800; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.lb-row.is-me .lb-row__name { color: var(--side-text); }
.lb-empty { padding-block: var(--space-6); color: var(--muted); text-align: center; line-height: 1.4; }
.lb-coach, .lb-link { align-self: center; justify-self: center; }
.lb-select { width: 100%; min-height: 56px; padding: 0 var(--space-3); border-radius: var(--radius-m); border: var(--line-w) solid var(--line); background: var(--surface); color: var(--text); font: 600 var(--text-body) var(--font-body); }
.lb-scores { list-style: none; }
.lb-scores li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-3); min-height: var(--tap); border-bottom: var(--line-w) solid var(--line); font-variant-numeric: tabular-nums; }

/* ---------- My Routine + Quiet Eye ---------- */
#mr-builder { flex: 1; display: flex; flex-direction: column; gap: var(--space-5); }
.mr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; padding: var(--space-5) var(--gutter); }
.mr__kicker { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.mr__big { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: clamp(2.25rem, 12vw, 4rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.mr__sub { color: var(--muted); font-size: var(--text-title); }
.mr--go .mr__big { font-size: clamp(5rem, 34vw, 10rem); color: var(--side-text); }
.qe { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.qe__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.qe__ring circle { fill: none; stroke: var(--side); stroke-width: 6; stroke-dasharray: 277; stroke-dashoffset: 277; animation: qe-lock linear forwards; }
@keyframes qe-lock { to { stroke-dashoffset: 0; } }
.qe__dot { width: 34px; height: 34px; border-radius: 50%; background: var(--cue-fg); display: grid; place-items: center; }
.mr .qe__dot { background: var(--text); }
.qe__symbol { color: var(--cue-bg); font-size: 1.1rem; line-height: 1; }
.qe--mini { width: 64px; height: 64px; margin: auto; }
.qe--mini .qe__dot { width: 18px; height: 18px; }
.qe--field { position: absolute; transform: translate(-50%, -50%); }
.qe--field[hidden] { display: none; }
.qe__lure { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cue-muted); opacity: 0; }
.qe--busy .qe__lure { opacity: 1; animation: qe-orbit 3s linear infinite; }
.qe--busy .qe__lure--b { animation-duration: 4.2s; animation-direction: reverse; }
.qe--busy .qe__lure--c { animation-duration: 5.4s; }
@keyframes qe-orbit { from { transform: rotate(0deg) translateX(84px) rotate(0deg); } to { transform: rotate(360deg) translateX(84px) rotate(-360deg); } }
.pad__btn--plain { background: var(--surface); color: var(--text); border: var(--line-w) solid var(--line); }
.pad__btn--plain .pad__shape { font-size: 2rem; }
.pad__btn--plain[disabled] { opacity: 0.4; }
@media (prefers-reduced-motion: reduce) { .qe--busy .qe__lure { animation: none; } }

/* ---------- Visual skills (Near-Far, Target Capture, Perception Span) + Object Tracking ---------- */
/* Low contrast: the cue fades toward the background (js/lib/contrast.js sets --cue-strength). */
.rx__cue .cue--fill, .rx__cue .flash { opacity: var(--cue-strength, 1); }
/* Occlusion (Training only): only the target hides; nothing else on screen changes. */
.is-occluded, .mot__field.is-occluded .mot__dot { visibility: hidden; }
.flash--ring { background: none; color: var(--cue-fg); border-radius: 0; }
.ring { display: block; width: 100%; height: 100%; }
.ring path { fill: none; stroke: currentColor; stroke-width: 2; }
.pad--plain { grid-template-columns: 1fr 1fr; }
.pad--plain .pad__btn { min-height: max(72px, 10dvh); }
.pad__btn--plain .ring { width: 44px; height: 44px; }
.nf .rx__cue > * { grid-area: 1 / 1; }
.nf__far { display: grid; justify-items: center; gap: var(--space-1); color: var(--cue-accent); text-align: center; }
.nf__far b { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: clamp(3rem, 18vw, 5rem); line-height: 1; }
.nf__far span { color: var(--cue-fg); font-weight: 600; }
.nf__far[hidden], .nf__letter[hidden] { display: none; }
.nf__letter { color: var(--cue-fg); font-weight: 700; line-height: 1; }
.sp__grid { --n: 3; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; padding: 10px; }
.sp__cell { position: relative; border-radius: 10px; border: 2px solid var(--cue-muted); touch-action: none; }
.sp__cell::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; }
.sp__cell.is-lit::after { background: var(--cue-fg); }
.sp__cell.is-picked { border-color: var(--cue-accent); }
.sp__cell.is-picked::after, .sp__cell.is-right::after { background: var(--cue-accent); }
.sp__cell.is-missed::after { box-shadow: inset 0 0 0 3px var(--cue-fg); }
.sp__cell.is-wrong::after { background: var(--cue-muted); }
.mot__field { touch-action: none; }
.mot__dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--cue-fg); will-change: transform; }
.mot__dot.is-target, .mot__dot.is-right { background: var(--cue-accent); }
.mot__dot.is-picked { box-shadow: 0 0 0 3px var(--cue-bg), 0 0 0 6px var(--cue-accent); }
.mot__dot.is-missed { background: none; box-shadow: inset 0 0 0 4px var(--cue-accent); }
.mot__dot.is-wrong { background: var(--cue-muted); }
.mini__ring { position: absolute; right: 12px; top: 22px; width: 22px; height: 22px; color: var(--cue-fg); animation: mini-flash 3s steps(1) infinite; }
.mini__phone--nf { place-items: center; }
.mini__far, .mini__near { grid-area: 1 / 1; font-weight: 900; animation: mini-nf 3s steps(1) infinite; }
.mini__far { color: var(--cue-accent); font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-size: 1.75rem; }
.mini__near { color: var(--cue-fg); font-size: 0.875rem; animation-delay: -1.5s; }
@keyframes mini-nf { 0% { opacity: 1; } 50% { opacity: 0; } }
.mini__grid { display: grid; grid-template-columns: repeat(3, 18px); gap: 4px; margin: auto; }
.mini__grid i { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--cue-muted); }
.mini__grid i:nth-child(2), .mini__grid i:nth-child(4), .mini__grid i:nth-child(9) { background: var(--cue-fg); }
.mini__mot { position: absolute; inset: 0; }
.mini__mot i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cue-fg); animation: mini-mot 2.6s ease-in-out infinite alternate; }
.mini__mot i:nth-child(1) { left: 20px; top: 20px; background: var(--cue-accent); }
.mini__mot i:nth-child(2) { left: 110px; top: 30px; animation-direction: alternate-reverse; }
.mini__mot i:nth-child(3) { left: 40px; top: 80px; animation-duration: 3.1s; }
.mini__mot i:nth-child(4) { left: 120px; top: 84px; animation-duration: 2.2s; animation-direction: alternate-reverse; }
@keyframes mini-mot { from { transform: translate(0, 0); } to { transform: translate(-24px, -14px); } }
@media (prefers-reduced-motion: reduce) { .mini__mot i { animation: none; } }

/* ---------- MOVE decisions, sport calls, planned drills (js/cone/render.js) ---------- */
/* Every decision is carried by something big: no small print, nothing blinks. */
.cdf--word { background: var(--cue-bg); color: var(--cue-fg); }
.cdf--word span, .cdf__word { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-weight: 900; line-height: 1; }
.cdf--stroop .cdf__word { color: var(--ink); }
.cdf.is-opposite { box-shadow: inset 0 0 0 10vmin #000; }
.cdf.is-opposite::after { content: ""; position: absolute; inset: 2vmin; border: 6vmin dashed #fff; pointer-events: none; }
.cdf__tag { position: absolute; top: 11vmin; left: 0; right: 0; z-index: 1; text-align: center; font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: min(10vw, 6dvh); color: #fff; background: #000; padding-block: 0.08em; }
.cdf__band { position: absolute; left: 0; right: 0; top: 33%; height: 34%; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 4vw; background: #000; color: #fff; }
.cdf__band span { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: min(20vw, 14dvh); line-height: 1; }
.cdf__band .icon { width: min(24vw, 16dvh); height: auto; }
.cdf--pair { gap: 1.5vmin; background: var(--cue-fg); justify-content: stretch; }
.cdf__half { height: auto; flex: 1; min-height: 0; overflow: hidden; }
.cdf__n { position: absolute; left: 3vmin; top: 3vmin; z-index: 1; display: grid; place-items: center; width: min(14vw, 8dvh); height: min(14vw, 8dvh); border-radius: 50%; background: #000; color: #fff; font-family: var(--font-num); font-weight: 900; font-size: min(10vw, 6dvh); }
.cdf__half .cdf__shape { font-size: min(26vw, 15dvh); }
.cdf__half .cdf__label { font-size: min(10vw, 5dvh); }
.cdf__half .cdf__arrow { width: auto; height: 82%; }
.cdf__half.cdf--number span { font-size: min(44vw, 28dvh); }
.cdf--planned { background: var(--cue-bg); color: var(--cue-accent); gap: var(--space-4); }
.cdf__go { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: min(46vw, 28dvh); line-height: 1; }
.cdf__legs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); color: var(--cue-fg); font-family: var(--font-num); font-weight: 900; font-size: min(10vw, 6dvh); }
.cdf__legs span { display: inline-flex; align-items: center; gap: 2px; }
.cdf--recover span { font-size: min(11vw, 6dvh); }
.cdf__secs { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: min(44vw, 26dvh); line-height: 1; font-variant-numeric: tabular-nums; }
.is-placed .cdf.is-opposite { box-shadow: inset 0 0 0 calc(var(--cd-size) * 0.1) #000; }
.is-placed .cdf.is-opposite::after { inset: calc(var(--cd-size) * 0.02); border-width: calc(var(--cd-size) * 0.06); }
.is-placed .cdf__tag { top: calc(var(--cd-size) * 0.11); font-size: calc(var(--cd-size) * 0.09); }
.is-placed .cdf__band span { font-size: calc(var(--cd-size) * 0.16); }
.is-placed .cdf__band .icon { width: calc(var(--cd-size) * 0.2); }
.is-placed .cdf__half .cdf__shape { font-size: calc(var(--cd-size) * 0.22); }
.is-placed .cdf__half .cdf__label { font-size: calc(var(--cd-size) * 0.08); }
.dec__list { display: grid; gap: var(--space-1); padding-left: 1.1em; color: var(--muted); font-size: var(--text-caption); list-style: disc; }
.chip[disabled] { opacity: 0.4; }
.calls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.calls li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-m); background: var(--raised); }
.calls b { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: 1.25rem; }
.calls span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--text-caption); }

/* ---------- Partner mode (js/cone/partner.js) ---------- */
#cd-partner { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); }
.partner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; }
.partner__label { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.partner__code { font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: min(36vw, 22dvh); line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.partner__status, .partner__wait { color: var(--muted); font-weight: 600; text-align: center; min-height: 1.5em; }
.pstand .cd__cue.is-new { animation: pstand-pop var(--dur-base) var(--ease-out); }
@keyframes pstand-pop { from { transform: scale(0.94); } to { transform: none; } }
.pstand { position: relative; }
.pstand__end { position: absolute; top: var(--space-2); right: var(--space-3); z-index: 2; min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius-pill); background: #000; color: #fff; font-weight: 700; }
.pcode { font-family: var(--font-num); font-size: 2.5rem; text-align: center; letter-spacing: 0.3em; }
.ppad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ppad--two { margin-top: var(--space-2); }
.ppad__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: max(88px, 12dvh); border-radius: var(--radius-m); background: var(--c, var(--raised)); color: var(--ink, var(--text)); border: var(--line-w) solid var(--line); font-weight: 700; }
.ppad__btn b { font-family: var(--font-display); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: 1.75rem; line-height: 1; }
.ppad__btn:active { transform: scale(0.97); }
.ppad__btn--hold { background: #6b6b6b; color: #fff; }

/* ---------- Game Day / Training (home) and Focus Check ---------- */
.fc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-5); touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
.fc__label { font: 700 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.fc__circle { width: min(64vw, 38dvh); aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--line-strong); display: grid; place-items: center; font-size: min(26vw, 15dvh); line-height: 1; color: #000; }
.fc__circle.is-go { background: #12c48b; border-color: #12c48b; }
.fc__circle.is-go::after { content: "■"; }
.fc__circle.is-nogo { background: #ff4d2e; border-color: #ff4d2e; }
.fc__circle.is-nogo::after { content: "▲"; }
.fc__msg { min-height: 1.5em; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.fc-intro__text { line-height: 1.5; }
.fc-res__note { color: var(--muted); line-height: 1.45; }
.fc-res__note b { color: var(--text); }
.fc-res__flag { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--raised); font-weight: 600; line-height: 1.4; }
.fc-res__foot { color: var(--muted); font-size: var(--text-caption); text-align: center; }

/* ---------- v4.0: presets, Advanced, touch lock, install, first run ---------- */
.btn[hidden] { display: none; }
/* Home and summary: "Run last" / "Next: Move", a label over what it runs. */
.btn--last { justify-content: flex-start; gap: var(--space-3); min-height: 64px; padding-block: var(--space-2); text-align: left; }
.btn--last > span { display: grid; gap: 3px; min-width: 0; }
.btn--last small { font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); opacity: 0.85; }
.btn--last span span { line-height: 1.15; }
.btn .icon:last-child:not(:first-child) { margin-left: auto; }

/* Each side: Game Day / Training, a note, then the presets. */
.side-note { margin-top: calc(-1 * var(--space-2)); color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.side-note b { color: var(--text); }
.feel-hint { margin-top: 0; }
.presets { display: grid; gap: var(--space-2); }
.preset {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--space-3);
  width: 100%; min-height: 64px; padding: var(--space-2) var(--space-4); text-align: left;
  border-radius: var(--radius-m); background: var(--side); color: var(--side-ink); border: var(--line-w) solid var(--accent-border);
  transition: transform var(--dur-fast) var(--ease-out);
}
.preset:active { transform: scale(0.99); }
.preset__text { display: grid; gap: 2px; min-width: 0; }
.preset__text strong { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: 900; font-size: var(--text-title); line-height: 1.05; text-transform: uppercase; }
.preset__text small { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; opacity: 0.85; }
.preset__min { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Advanced: everything that isn't a preset, closed until asked for. */
.adv { display: grid; gap: var(--space-5); margin-top: var(--space-2); border-top: var(--line-w) solid var(--line); }
.adv > summary { list-style: none; }
.adv > summary::-webkit-details-marker { display: none; }
.adv__head {
  display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); cursor: pointer;
  font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted);
}
.adv__head .icon { transition: transform var(--dur-fast) var(--ease-out); }
.adv[open] .adv__head .icon { transform: rotate(180deg); }

/* MOVE: the cones every preset uses, and the brightness reminder. */
.mcones { display: grid; gap: var(--space-2); justify-items: center; margin-top: var(--space-2); }
.mcones .group__title { justify-self: start; }
.mcones .lay { max-height: 30dvh; }
.mcones__text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 var(--space-3); color: var(--muted); font-weight: 600; text-align: center; }
.notice--sun { background: var(--raised); color: var(--text); }
.notice--pair { display: grid; gap: var(--space-2); }
.notice--pair p { display: flex; align-items: flex-start; gap: var(--space-2); }
.notice--pair .icon { margin-top: 1px; }

/* Countdown before a MOVE set: the reminder under the number. */
.count__note { max-width: 24ch; margin-top: var(--space-3); color: var(--muted); font-weight: 600; line-height: 1.35; text-align: center; }

/* Touch lock (MOVE): taps do nothing; holding a finger for 1 s pauses. */
.screen--drill.is-locked { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.hud__hold { display: none; }
.is-locked .hud__pause { display: none; }
.is-locked .hud__hold { display: block; padding-right: var(--space-2); font: 600 var(--text-caption)/1 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--muted); }
/* Shown above the finger, filling for the 1 s hold (no flashing). */
.hold-ring {
  position: fixed; z-index: 6; width: 112px; height: 112px; margin: -150px 0 0 -56px; pointer-events: none;
  display: grid; place-items: center; border-radius: 50%; border: 4px solid var(--text); background: var(--bg);
}
.hold-ring::after { content: ''; width: 100%; height: 100%; border-radius: 50%; background: var(--accent); transform: scale(0.1); animation: hold-fill 1s linear forwards; }
.hold-ring[hidden] { display: none; }
@keyframes hold-fill { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hold-ring::after { animation: none; transform: scale(0.6); } }

/* Paused: why, and a big Resume. MOVE counts back in. */
.pause__why { min-height: 1.4em; color: var(--muted); font-weight: 600; line-height: 1.4; text-align: center; }
.pause__resume { min-height: 96px; font-size: 1.75rem; }
.pause.is-counting .btn { visibility: hidden; }
.pause__count { display: block; margin-top: var(--space-3); font-family: var(--font-num); font-variation-settings: var(--wdth-narrow); font-weight: 900; font-size: clamp(6rem, 40vw, 12rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }

/* The screen may not stay awake: a tip at the bottom, for 12 s. */
.awake-tip {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom) + var(--space-4)); z-index: 4;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--warn-bg); color: var(--warn-text); font-weight: 600; line-height: 1.35;
}
.awake-tip[hidden] { display: none; }

/* Leaderboard result on the summary, and the Offline note on the board. */
.lb-inline:empty, #done-install:empty { display: none; }
.lb-inline__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--raised); line-height: 1.4; }
.lb-inline__line > .icon { flex: none; color: var(--side-text); }
.lb-inline__line > span { flex: 1; min-width: 12ch; }
.lb-offline { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.lb-offline[hidden] { display: none; }

/* Add to Home Screen, after a finished session. */
.install-card { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface); border: var(--line-w) solid var(--line); }
.install-card__title { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.install-card__why { color: var(--muted); line-height: 1.4; }
.install-card__steps { list-style: none; display: grid; gap: var(--space-2); }
.install-card__steps li { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--space-2); line-height: 1.45; }
.install-card__steps .icon { display: inline-block; vertical-align: -4px; }


/* ---------- Eye Check (beta): js/eye/ ---------- */
/* Calibration and the camera question sit over the drill (and over Pause, for Recalibrate). */
.eyecal { position: fixed; inset: 0; z-index: 8; display: grid; align-items: end; padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + var(--space-4)); background: var(--bg); }
.eyecal[hidden] { display: none; }
.eyecal__card { display: grid; gap: var(--space-3); max-width: 480px; width: 100%; justify-self: center; }
.eyecal__card--see { position: relative; z-index: 1; padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface); border: var(--line-w) solid var(--line); }
.eyecal__kicker { display: flex; align-items: center; gap: var(--space-2); font: 600 var(--text-label)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--side-text); }
.eyecal__title { font-family: var(--font-display); font-variation-settings: var(--wdth-wide); font-weight: var(--weight-display); font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; }
.eyecal__lead { line-height: 1.45; }
.eyecal__list { display: grid; gap: var(--space-2); padding-left: 1.2em; color: var(--muted); line-height: 1.4; }
.eyecal__checks { list-style: none; display: grid; gap: var(--space-2); }
.eyecal__checks li { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--muted); }
.eyecal__checks li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); transition: background var(--dur-base) var(--ease-out); }
.eyecal__checks li.is-ok { color: var(--text); }
.eyecal__checks li.is-ok::before { background: var(--good); border-color: var(--good); }
.eyecal__tip { min-height: 1.4em; font-weight: 600; line-height: 1.4; }
.eyecal__acc { line-height: 1.45; }
/* Calibration dots: one at a time; it glides to the next spot and fills (no flashing). */
.eyecal.is-dots { align-items: start; padding-top: calc(env(safe-area-inset-top) + var(--space-4)); }
.eyecal__dotlead { text-align: center; font-weight: 600; color: var(--muted); margin-top: 22dvh; }
.eyecal__dot { position: fixed; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid var(--text); display: grid; place-items: center; transition: left 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.eyecal__dot i { width: 100%; height: 100%; border-radius: 50%; background: var(--side); transform: scale(0.15); }
.eyecal__dot.is-filling i { animation: eye-fill 1.9s linear forwards; }
@keyframes eye-fill { to { transform: scale(1); } }
.eyecal__skip { min-width: 64px; justify-content: center; position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + var(--space-4)); transform: translateX(-50%); color: var(--muted); }
/* See your gaze: a large, soft circle (never a sharp dot). Calibration only. */
.eyecal__glow { position: fixed; left: 0; top: 0; width: 160px; height: 160px; border-radius: 50%; pointer-events: none; background: var(--side); opacity: 0.35; transition: transform 0.12s linear; }
.eyecal__glow[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .eyecal__dot, .eyecal__glow { transition: none; } .eyecal__dot.is-filling i { animation-duration: 0.01s; } }

/* During a drill: the camera indicator, and a small note when tracking pauses. */
.eye-status { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-3); padding: 2px var(--gutter) 4px; font: 600 var(--text-caption)/1.3 var(--font-body); color: var(--muted); }
.eye-status[hidden] { display: none; }
.cam-badge { display: inline-flex; align-items: center; gap: 6px; }
.eye-status:not([data-camera="1"]) .cam-badge { display: none; }
.cam-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.eye-note:empty { display: none; }

/* Peripheral Flash: eyes off the center dot → it turns red and pulses slowly; the edge they glanced toward lights up (fades in, never flashes). */
.rx__edge { position: absolute; pointer-events: none; background: var(--bad); opacity: 0; transition: opacity 0.4s var(--ease-out); }
.rx[data-eyes="away"] .rx__edge { opacity: 0.85; }
.rx__edge[data-side="left"] { left: 0; top: 0; bottom: 0; width: 10px; }
.rx__edge[data-side="right"] { right: 0; top: 0; bottom: 0; width: 10px; }
.rx__edge[data-side="up"] { left: 0; right: 0; top: 0; height: 10px; }
.rx__edge[data-side="down"] { left: 0; right: 0; bottom: 0; height: 10px; }
.rx { position: relative; }
.rx__fix { transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.rx[data-eyes="away"] .rx__fix { background: var(--bad); animation: eye-pulse 1.4s ease-in-out infinite; }
@keyframes eye-pulse { 50% { transform: translate(-50%, -50%) scale(1.25); } }
.rx[data-eyes="away"] .rx__fix:not(.rx__fix--lock) { animation-name: eye-pulse-plain; }
@keyframes eye-pulse-plain { 50% { transform: scale(1.25); } }
/* Smooth Pursuit: the dot dims while the eyes fall behind. */
.eyes__dot { transition: opacity 0.35s var(--ease-out); }
.eyes__dot.is-behind { opacity: 0.4; }
/* Saccade Jumps: a small check when the eyes moved toward the number (direction only). */
.eyes__target { overflow: visible; }
.eyes__check { position: absolute; right: -14px; top: -14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--good); color: #fff; opacity: 0; transition: opacity 0.25s var(--ease-out); }
.eyes__check.is-on { opacity: 1; }
/* Quiet Eye: the target lights up while the eyes are on it. */
.qe .qe__dot { transition: box-shadow 0.3s var(--ease-out); }
.qe.is-eyes-on .qe__dot { box-shadow: 0 0 0 6px var(--side); }
@media (prefers-reduced-motion: reduce) { .rx[data-eyes="away"] .rx__fix { animation: none; } }

/* Summary: replay, heat map, stats and one tip per drill. */
.eyesum { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: var(--line-w) solid var(--line); }
.eyesum__note { color: var(--muted); font-size: var(--text-caption); line-height: 1.4; }
.eyesum__drill { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: var(--line-w) solid var(--line); }
.eyesum__title { font-weight: 700; font-size: 1.0625rem; }
.eyesum__stats { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-weight: 600; }
.eyesum__tip { line-height: 1.4; }
.eyesum__viz { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.eyesum__viz figure { display: grid; gap: var(--space-1); justify-items: center; }
.eyesum__viz canvas { border-radius: var(--radius-s); border: var(--line-w) solid var(--line); }
.eyesum__viz figcaption { color: var(--muted); font-size: var(--text-caption); }
.eyesum__ctl { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-2); }
.eyesum__ctl .btn { min-height: var(--tap); font-size: 1rem; }
.eyesum__ctl .btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
