/* Study games (lib/games.js). Site tokens only, so dark mode and the course
   accent come for free. The one loud thing is the live r readout; the plot,
   the panel and the notes stay quiet around it. */

.game-head { margin-bottom: var(--sp-3); }
.game-head .lede, .game-head p { max-width: 62ch; }

.game {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  min-height: 560px; /* holds the space before the module mounts */
  --rs-key: var(--accent);
  --rs-pick: var(--warn);
  --rs-group2: var(--brand-text);
}
.game[data-phase] { min-height: 0; }

.rs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rs-modes { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.rs-mode { font: inherit; font-weight: 700; font-size: var(--fs-2); padding: 7px 14px; min-height: 40px; border: 0; background: var(--card); color: var(--body); cursor: pointer; }
.rs-mode + .rs-mode { border-left: 1.5px solid var(--line-strong); }
.rs-mode[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rs-mode[aria-pressed="true"] { color: var(--page); } }
:root[data-theme="dark"] .rs-mode[aria-pressed="true"] { color: var(--page); }
.rs-stats { display: flex; gap: 18px; }
.rs-stat { display: flex; flex-direction: column; line-height: 1.2; }
.rs-stat[hidden] { display: none; }
.rs-k { font-size: var(--fs-1); color: var(--muted); }
.rs-v { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.2em; display: inline-flex; align-items: center; gap: 4px; }
.rs-life { width: 11px; height: 11px; border-radius: 999px; border: 1.5px solid var(--line-strong); }
.rs-life.is-on { background: var(--accent); border-color: var(--accent); }

.rs-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-top: 14px; align-items: start; }
.rs-board { min-width: 0; }
.rs-plot { display: block; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rs-axis { stroke: var(--line-strong); stroke-width: 0.5; }
.rs-axlabel { fill: var(--muted); font-size: 4px; font-family: var(--sans); font-style: italic; }
.rs-dot { fill: var(--ink); fill-opacity: 0.78; }
.rs-dot.is-group2 { fill: var(--rs-group2); }
.rs-fit { stroke: var(--accent); stroke-width: 0.7; stroke-dasharray: 2 1.5; }
.rs-ring { fill: none; stroke-width: 0.8; }
.rs-ring.is-key { stroke: var(--rs-key); }
.rs-ring.is-pick { stroke: var(--rs-pick); stroke-dasharray: 1.4 1; }
.game[data-kind="drop"][data-phase="guess"] .rs-plot { cursor: crosshair; }
.rs-kind { min-height: 1.6em; margin: var(--sp-2) 0 0; text-align: center; font-weight: 700; color: var(--ink); font-size: var(--fs-2); }

.rs-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rs-panel [hidden] { display: none !important; }
.rs-readout { display: block; font-size: var(--fs-7); font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.rs-slider-wrap { position: relative; padding-top: 4px; }
.rs-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; position: relative; z-index: 2; }
.rs-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.rs-slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.rs-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 999px; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--accent); }
.rs-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 999px; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 0 0 1.5px var(--accent); }
.rs-slider:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.rs-ends { display: flex; justify-content: space-between; font-size: var(--fs-2); color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 6px; }
/* After the guess: the stretch between the guess and the true r, and a tick at the truth. */
.rs-gap { position: absolute; left: 15px; right: 15px; top: 23px; height: 6px; pointer-events: none; z-index: 3; visibility: hidden; }
.rs-gap.is-shown { visibility: visible; }
.rs-gap-fill { position: absolute; top: 0; height: 6px; background: var(--good); border-radius: 999px; min-width: 2px; }
.rs-gap.is-far .rs-gap-fill { background: var(--bad); }
.rs-gap-true { position: absolute; top: -10px; width: 4px; height: 26px; margin-left: -2px; background: var(--ink); border-radius: 2px; }

.rs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-go { min-width: 11rem; min-height: 48px; font-size: var(--fs-3); }
.rs-result:empty { display: none; }
.rs-result p { margin: 0 0 var(--sp-2); }
.rs-truth { display: flex; align-items: baseline; gap: 12px; }
.rs-truth-r { font-size: var(--fs-5); font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-points { font-weight: 750; color: var(--good); font-variant-numeric: tabular-nums; }
.rs-points.is-zero { color: var(--muted); }
.rs-readout.is-locked { color: var(--muted); font-size: var(--fs-5); }
.rs-verdict { color: var(--body); }
.rs-why { padding: 8px 12px; border-left: 3px solid var(--good); background: var(--good-tint); color: var(--ink); border-radius: 0 6px 6px 0; }
.rs-why.is-far { border-left-color: var(--bad); background: var(--bad-tint); }
.rs-muted { color: var(--muted); font-size: var(--fs-2); }

.rs-stem { margin: 0; font-weight: 700; color: var(--ink); }
.rs-choices { display: flex; flex-direction: column; gap: 8px; }
.rs-choice { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; font-size: var(--fs-2); line-height: 1.45; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--card); color: var(--body); cursor: pointer; }
.rs-choice:hover:not(:disabled) { border-color: var(--brand); }
.rs-choice:disabled { cursor: default; }
.rs-choice.is-right { border-color: var(--good); background: var(--good-tint); color: var(--ink); }
.rs-choice.is-wrong { border-color: var(--bad); background: var(--bad-tint); color: var(--ink); }
.rs-letter { font-weight: 800; color: var(--accent); min-width: 1.1em; }

.rs-end-title { margin: 0; font-size: var(--fs-5); }
.rs-end p { margin: var(--sp-2) 0; }
.rs-share { margin: var(--sp-3) 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--page); font: var(--fs-2)/1.5 var(--sans); white-space: pre-wrap; color: var(--ink); }

.game-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: var(--sp-2); }
.game-notes ol, .game-notes ul { padding-left: 1.2em; }
.game-notes li + li { margin-top: var(--sp-1); }

@media (max-width: 760px) {
  .game-head { margin-bottom: var(--sp-2); }
  .game-head h1 { margin-bottom: var(--sp-1); }
  .game-head p { margin: 0; font-size: var(--fs-2); }
  .game { padding: 10px; min-height: 620px; }
  .rs-bar { flex-wrap: nowrap; padding-bottom: 8px; gap: 8px; }
  .rs-mode { padding: 6px 10px; font-size: var(--fs-2); min-height: 38px; }
  .rs-stats { gap: 12px; }
  .rs-stat.rs-hide-sm { display: none; }
  .rs-main { grid-template-columns: 1fr; gap: 6px; padding-top: 8px; }
  /* Plot, readout and slider on one phone screen: the plot gives way first. */
  .rs-plot { max-width: max(240px, min(100%, calc(100svh - 544px))); }
  .rs-kind { min-height: 0; margin-top: var(--sp-1); }
  .rs-kind:empty { display: none; }
  /* Readout and button share a row so the plot, slider and button fit one screen. */
  .rs-panel { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "read act" "slide slide" "check check" "res res" "end end"; gap: 6px 12px; align-items: center; }
  .rs-guess { display: contents; }
  .rs-readout { grid-area: read; font-size: var(--fs-6); }
  .rs-slider-wrap { grid-area: slide; }
  .rs-check { grid-area: check; }
  .rs-result { grid-area: res; }
  .rs-actions { grid-area: act; }
  .rs-end { grid-area: end; }
  .rs-go { min-width: 9rem; }
  .game-notes { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rs-gap-fill { transition: none; } }

/* Price War Mart (assets/js/games/price-war-mart.js). The loud things are the
   day's profit and the price readouts; the charts stay in the house hairlines,
   with the course accent for demand and marginal revenue and the warning color
   for marginal cost. */
.game[data-game="price-war-mart"] { --pw-mc: var(--warn); --pw-gain: var(--accent); }
.pw-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pw-modes { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.pw-mode { font: inherit; font-weight: 700; font-size: var(--fs-2); padding: 7px 14px; min-height: 40px; border: 0; background: var(--card); color: var(--body); cursor: pointer; }
.pw-mode + .pw-mode { border-left: 1.5px solid var(--line-strong); }
.pw-mode[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pw-mode[aria-pressed="true"] { color: var(--page); } }
:root[data-theme="dark"] .pw-mode[aria-pressed="true"] { color: var(--page); }
.pw-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pw-stat { display: flex; flex-direction: column; line-height: 1.2; }
.pw-k { font-size: var(--fs-1); color: var(--muted); }
.pw-v { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 1.2em; }

.pw-stage { padding-top: 14px; }
.pw-head { margin-bottom: var(--sp-3); }
.pw-title { margin: 0 0 var(--sp-1); font-size: var(--fs-4); }
.pw-sub { margin: 0 0 var(--sp-2); color: var(--body); max-width: 70ch; }
.pw-h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-3); }
.pw-news { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 6px; }
.pw-news-item { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 10px; color: var(--body); }
.pw-news-item.is-rival, .pw-news-item.is-supplier, .pw-news-item.is-glut { border-left-color: var(--pw-mc); color: var(--ink); font-weight: 600; }
.pw-news-item.is-entry { border-left-color: var(--accent); }

.pw-shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.pw-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: var(--card); min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pw-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pw-name { margin: 0; font-size: var(--fs-3); }
.pw-cost { font-size: var(--fs-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.pw-shift, .pw-legend, .pw-note { margin: 0; font-size: var(--fs-2); color: var(--body); }
.pw-legend, .pw-note { color: var(--muted); }
.pw-result { font-weight: 800; font-size: var(--fs-4); font-variant-numeric: tabular-nums; }
.pw-result.is-gain { color: var(--pw-gain); }
.pw-result.is-loss { color: var(--pw-mc); }

.pw-chartbox { min-height: 0; }
.pw-chart { display: block; width: 100%; height: auto; aspect-ratio: 100 / 64; }
.pw-axis { stroke: var(--line-strong); stroke-width: 0.4; }
.pw-axlabel { fill: var(--muted); font-size: 3.4px; font-family: var(--sans); font-style: italic; }
.pw-tick { fill: var(--muted); font-size: 2.8px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.pw-tag { font-size: 3px; font-family: var(--sans); font-weight: 700; }
.pw-tag.is-demand, .pw-tag.is-mr { fill: var(--accent); }
.pw-tag.is-mc { fill: var(--pw-mc); }
.pw-demand { stroke: var(--accent); stroke-width: 0.7; }
.pw-mr { stroke: var(--accent); stroke-width: 0.55; stroke-dasharray: 1.6 1.1; }
.pw-mc { stroke: var(--pw-mc); stroke-width: 0.55; }
.pw-pick { stroke: var(--ink); stroke-width: 0.35; stroke-dasharray: 0.8 0.8; opacity: 0.7; }
.pw-dot { fill: var(--ink); fill-opacity: 0.85; }
.pw-dot.is-old { fill: var(--muted); fill-opacity: 0.5; }
.pw-dot.is-pick { fill: var(--accent); fill-opacity: 1; }
.pw-rev { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 0.35; }
.pw-rev.is-before { fill: var(--muted); fill-opacity: 0.1; stroke: var(--muted); stroke-dasharray: 1 0.8; }
.pw-col { fill: var(--line-strong); }
.pw-col.is-hired { fill: var(--accent); fill-opacity: 0.8; }

.pw-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-price { font-size: var(--fs-5); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.pw-step { font: inherit; font-size: var(--fs-4); font-weight: 700; width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); cursor: pointer; }
.pw-step:focus-visible, .pw-choice:focus-visible, .pw-mode:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pw-range { width: 100%; height: 36px; accent-color: var(--accent); margin: 0; }

.pw-table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); font-variant-numeric: tabular-nums; }
.pw-table th, .pw-table td { text-align: right; padding: 3px 6px; border-bottom: 1px solid var(--line); }
.pw-table th:first-child, .pw-table td:first-child { text-align: left; }
.pw-table th { font-weight: 700; color: var(--muted); font-size: var(--fs-1); }
.pw-table tr.is-picked td { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-weight: 700; }
.pw-kitchen { grid-column: 1 / -1; }
.pw-kitchen .pw-table { max-width: 420px; }

.pw-shop { margin-top: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.pw-shop summary { font-weight: 750; color: var(--ink); cursor: pointer; }
.pw-shop-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 10px; }
.pw-up { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.pw-up-text { flex: 1 1 260px; font-size: var(--fs-2); }
.pw-up-text strong { color: var(--ink); }
.pw-owned { font-weight: 700; color: var(--accent); }
.pw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-4); }
.pw-open, .pw-next { min-height: 48px; font-size: var(--fs-3); }

.pw-whys { margin: var(--sp-1) 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--fs-2); color: var(--body); }
.pw-why.is-margin, .pw-why.is-hire, .pw-why.is-shutdown { color: var(--ink); }
.pw-alert { border-left: 3px solid var(--pw-mc); padding: 6px 10px; font-weight: 700; color: var(--ink); }

.pw-check { max-width: 70ch; }
.pw-stem { font-weight: 600; color: var(--ink); }
.pw-choices { display: grid; gap: 8px; }
.pw-choice { font: inherit; text-align: left; padding: 10px 12px; min-height: 44px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--body); cursor: pointer; }
.pw-choice.is-key { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.pw-choice.is-wrong { border-color: var(--pw-mc); }
.pw-feedback { margin-top: var(--sp-3); }
.pw-tier { font-weight: 800; font-size: var(--fs-3); color: var(--ink); margin: var(--sp-1) 0; }
.pw-tier.is-gold, .pw-tier.is-silver, .pw-tier.is-cleared { color: var(--accent); }
.pw-season { max-width: 520px; margin-top: var(--sp-2); }
.pw-share { font-family: var(--mono, ui-monospace, monospace); background: var(--page); border: 1px solid var(--line); border-radius: 6px; padding: 10px; white-space: pre-wrap; margin: var(--sp-2) 0; }

@media (max-width: 560px) {
  .pw-stats { gap: 6px 14px; width: 100%; }
  .pw-title { font-size: var(--fs-3); }
  .pw-shelf { grid-template-columns: minmax(0, 1fr); }
}

/* Closing time (renderReport's closeBand): the game's one animated moment.
   Shoppers file in, the profit counts up, each card flashes once. */
.pw-close { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: var(--sp-2) 0 var(--sp-2); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pw-door { flex: 1 1 280px; max-width: 520px; height: auto; aspect-ratio: 168 / 34; }
.pw-awning { fill: var(--accent); }
.pw-front { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.pw-window { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--ink); stroke-width: 0.5; }
.pw-doorway { fill: var(--ink); fill-opacity: 0.85; }
.pw-ground { stroke: var(--line-strong); stroke-width: 0.6; }
.pw-shopper { fill: var(--accent); animation: pw-walk-in 420ms ease-out both; }
@keyframes pw-walk-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.pw-close-text { display: flex; flex-direction: column; gap: 2px; }
.pw-tally { font-size: clamp(var(--fs-6), 6vw, var(--fs-7)); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pw-tally.is-gain { color: var(--accent); }
.pw-tally.is-loss { color: var(--pw-mc); }
.pw-flash { border-top: 3px solid var(--line-strong); }
.pw-flash.is-gain { border-top-color: var(--accent); animation: pw-flash-gain 900ms ease-out 1.15s both; }
.pw-flash.is-loss { border-top-color: var(--pw-mc); animation: pw-flash-loss 900ms ease-out 1.15s both; }
@keyframes pw-flash-gain { from { background: color-mix(in srgb, var(--accent) 16%, var(--card)); } to { background: var(--card); } }
@keyframes pw-flash-loss { from { background: color-mix(in srgb, var(--pw-mc) 16%, var(--card)); } to { background: var(--card); } }
@media (prefers-reduced-motion: reduce) {
  .pw-shopper, .pw-flash.is-gain, .pw-flash.is-loss { animation: none; }
}

/* Before the report (renderPredict, renderSketch). The ask carries the site's
   predict rule, a 3px top line in the course brand, as lesson predict blocks
   do. The sketch's lettered points are the one new mark: hollow until the
   student picks, then the right one fills and a dashed line rises from
   MR = MC to the demand curve. Nothing here moves on its own. */
.pw-ask { max-width: 70ch; border-top: 3px solid var(--brand); padding-top: 10px; display: grid; gap: 8px; }
.pw-ask .pw-stem { margin: 0; }
.pw-sketch { max-width: 640px; }
.pw-sketch .pw-chartbox { max-width: 560px; }
.pw-spot { cursor: pointer; }
.pw-spot-hit { fill: transparent; }
.pw-spot-dot { fill: var(--card); stroke: var(--ink); stroke-width: 0.6; }
.pw-spot-letter { fill: var(--ink); font-size: 3.4px; font-weight: 750; font-family: var(--sans); }
.pw-spot:hover .pw-spot-dot { stroke-width: 0.9; }
.pw-spot.is-key .pw-spot-dot { fill: var(--accent); stroke: var(--accent); }
.pw-spot.is-key .pw-spot-letter { fill: var(--accent); }
.pw-spot.is-wrong .pw-spot-dot { stroke: var(--pw-mc); stroke-width: 0.9; }
.pw-rise { stroke: var(--ink); stroke-width: 0.4; stroke-dasharray: 1 0.8; }
.pw-verdict { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 10px; margin: var(--sp-1) 0 var(--sp-3); max-width: 70ch; }
.pw-verdict.is-right { border-left-color: var(--accent); }
.pw-verdict.is-off { border-left-color: var(--pw-mc); }
.pw-verdict p { margin: 0; }
.pw-verdict-pick { font-weight: 700; color: var(--ink); font-size: var(--fs-2); }
.pw-verdict-text { color: var(--body); }
.pw-spot-letter { paint-order: stroke; stroke: var(--card); stroke-width: 1.1px; stroke-linejoin: round; }

/* Daily goal (set before the day, scored after the report). */
.pw-goal { margin: var(--sp-1) 0 2px; font-size: var(--fs-3); font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.pw-goal-result { margin: var(--sp-3) 0 0; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; border-left: 3px solid var(--line-strong); padding-left: 10px; }
.pw-goal-result.is-gain { border-left-color: var(--accent); }
.pw-goal-result.is-loss { border-left-color: var(--pw-mc); }

/* The drawn storefront (morning). Decoration only: no figures, no controls. */
.pw-store { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 320 / 124; margin: var(--sp-2) 0 var(--sp-3); }
.pw-awn { fill: var(--accent); }
.pw-awn.is-b { fill: var(--card); stroke: var(--accent); stroke-width: 0.6; }
.pw-sign { fill: var(--ink); }
.pw-sign-text { fill: var(--page); font-size: 9px; font-weight: 750; font-family: var(--sans); }
.pw-facade { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.pw-shelf-line { stroke: var(--line-strong); stroke-width: 0.9; }
.pw-box { fill-opacity: 0.85; }
.pw-box.is-0 { fill: var(--accent); }
.pw-box.is-1 { fill: var(--brand); }
.pw-box.is-2 { fill: var(--muted); }
.pw-box.is-3 { fill: var(--pw-mc); }
.pw-store-door { fill: var(--ink); fill-opacity: 0.85; }
.pw-counter { fill: var(--line-strong); }
.pw-loaf { fill: var(--accent); fill-opacity: 0.55; }

/* Phone pass: every target at least 44px, and the page never scrolls sideways. */
@media (max-width: 560px) {
  .pw-mode { min-height: 44px; }
  .pw-range { height: 44px; }
}
