/* Spetz Workshop · repair3d: the 3D repair guide's stage and player (.r3-*).
   Linked only by pages that use js/workshop/repair3d-kit.js. Tokens come from workshop.css.
   No drop shadows, no gradients on UI surfaces, spacing from the 4px scale only. */

.r3-page { overflow-x: clip; }

/* ── the stage: the poster first, the live canvas fades in over it ── */
.r3-stage {
  position: relative; margin-top: var(--space-lg);
  margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw;
  height: 70vh; height: 70svh; min-height: 440px; max-height: 860px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  overflow: hidden; isolation: isolate; scroll-margin-top: var(--bar-h);
}
@media (min-width: 900px) { .r3-stage { scroll-margin-top: 64px; } }
.r3-view { position: absolute; inset: 0; }
.r3-stage { container-type: inline-size; }
@container (max-width: 860px) { .r3-hint .r3-hint__desk { display: none; } .r3-hint .r3-hint__phone { display: inline; } .r3-bar .r3-btn--icon .r3-btn__l { display: none; } .r3-stage .r3-bar .r3-btn--icon { width: 40px; padding: 0; justify-content: center; } }
@container (max-width: 640px) { .r3-bar .r3-btn--range > span:not(.mdi) { display: none; } }
.r3-poster, .r3-poster img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.r3-poster img { object-fit: cover; object-position: 50% 50%; transition: opacity 500ms ease-out; }
.r3-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 500ms ease-out; cursor: grab; outline-offset: -3px; }
.r3-canvas:active { cursor: grabbing; }
.r3-stage.is-live .r3-canvas { opacity: 1; }
.r3-stage.is-live .r3-poster img { opacity: 0; transition-delay: 200ms; }

/* ── the work area: the stage and the step panel together, so the steps are never hidden under the model ──
   Desktop (1024+): side by side, one screen tall; the panel scrolls on its own and its nav stays at its foot.
   Phone and tablet: the stage stays pinned under the bar while the step card scrolls up beneath it, and the nav
   stays pinned at the foot of the screen, both only while the steps are on screen.                              */
.r3-work { margin-top: var(--space-lg); }
.r3-work > .r3-stage { margin-top: 0; }
@media (max-width: 1023px) {
  .r3-work > .r3-stage { position: sticky; top: var(--bar-h); z-index: 5; height: 42vh; height: 42svh; min-height: 280px; max-height: 560px; }
  .r3-work > .r3-player { padding-top: var(--space-xs); }
  .r3-work .r3-nav { margin-inline: calc(-1 * var(--space-md)); padding-left: var(--space-md); padding-right: var(--space-md); }
}
@media (min-width: 900px) and (max-width: 1023px) { .r3-work > .r3-stage { top: 64px; } }
@media (max-width: 899px) {
  /* HandyMate's bubble (fixed, bottom right) docks in the nav's right end, like the tool pages' action bar */
  body.has-hmate .r3-work .r3-nav { padding-right: calc(56px + var(--space-md) + var(--space-sm)); }
}
@media (min-width: 1024px) {
  .r3-work { --r3-gut: max(var(--space-lg), calc((100vw - var(--wrap)) / 2 + var(--space-md)));
    display: grid; grid-template-columns: minmax(0, 1fr) calc(400px + var(--r3-gut));
    margin-inline: calc(50% - 50vw); width: 100vw; height: clamp(540px, calc(100vh - 64px - var(--space-lg)), 780px);
    border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
  .r3-work > .r3-stage { margin: 0; width: auto; max-width: none; height: auto; min-height: 0; max-height: none; border: 0; scroll-margin-top: 64px; }
  .r3-work > .r3-player { margin: 0; min-height: 0; overflow-y: auto; background: var(--paper); border-left: 1px solid var(--line-2);
    padding: var(--space-lg) var(--r3-gut) 0 var(--space-lg); }
  .r3-work .r3-top, .r3-work .r3-bar { padding-left: var(--space-md); padding-right: var(--space-md); }
  .r3-work .r3-btn--range input { width: 72px; }
  .r3-work .r3-card { padding: var(--space-md); flex-shrink: 0; }
  .r3-work .r3-card__title { font-size: 20px; }
  .r3-work .r3-nav { padding-bottom: var(--space-lg); }
  /* the bubble sits over the panel's foot when the gutter is narrower than it */
  body.has-hmate .r3-work .r3-nav { padding-right: max(0px, calc(56px + var(--space-md) + var(--space-sm) - var(--r3-gut))); }
  .r3-work .r3-btn { height: 40px; padding: 0 var(--space-tight); font-size: 14px; gap: var(--space-xs); }
}
/* without WebGL there is no player: the poster and the text steps, one under the other */
.r3-work:has(.r3-stage.is-fallback) { display: block; height: auto; width: auto; margin-inline: 0; border: 0; }
.r3-work:has(.r3-stage.is-fallback) > .r3-stage { position: relative; top: auto; margin-inline: calc(50% - 50vw); width: 100vw; height: 60vh; height: 60svh; min-height: 400px; }

/* ── controls over the stage ── */
.r3-top, .r3-bar { position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: var(--space-sm);
  padding: 0 max(var(--space-md), calc((100vw - var(--wrap)) / 2 + var(--space-md))); pointer-events: none; }
.r3-top { top: var(--space-md); justify-content: space-between; }
.r3-bar { bottom: var(--space-md); flex-wrap: wrap; }
.r3-top > *, .r3-bar > * { pointer-events: auto; }

.r3-seg { display: inline-flex; padding: var(--space-xs); gap: var(--space-xs); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-btn); }
.r3-seg button { display: inline-flex; align-items: center; gap: var(--space-xs); height: 36px; padding: 0 var(--space-tight); border: 0; border-radius: 7px 2px 7px 2px; background: transparent;
  font: 600 14px/1 var(--font-sans); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background 150ms ease-out, color 150ms ease-out; }
.r3-seg button:hover { background: rgba(11, 20, 38, 0.06); }
.r3-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.r3-seg button[disabled] { opacity: 0.4; cursor: default; }
.r3-seg button[disabled]:hover { background: transparent; }

.r3-btn { display: inline-flex; align-items: center; gap: var(--space-sm); height: 44px; padding: 0 var(--space-md); border-radius: var(--r-btn);
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background 150ms ease-out, color 150ms ease-out, transform 120ms ease-out; }
.r3-btn:hover { background: var(--sand-tint); }
button.r3-btn:active { transform: scale(0.97); }
.r3-btn--main { background: var(--teal); color: var(--on-teal); }
.r3-btn--main:hover { background: var(--teal-hi); }
.r3-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.r3-btn--range { cursor: default; }
.r3-btn--range:hover { background: var(--surface); }
.r3-btn--range input { width: 96px; height: 24px; margin: 0; accent-color: var(--teal-d); cursor: pointer; }

.r3-hint { margin: 0; display: inline-flex; align-items: center; gap: var(--space-xs); height: 32px; padding: 0 var(--space-tight); border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  font: 500 13px/1 var(--font-sans); color: var(--muted); pointer-events: none !important; white-space: nowrap; transition: opacity 500ms ease-out; }
.r3-hint__phone { display: none; }
.r3-stage:not(.is-live) .r3-hint, .r3-stage.is-quiet .r3-hint { opacity: 0; }

/* "Simplified diagram": shown while the cut-away is open */
.r3-note { position: absolute; z-index: 3; left: 50%; top: var(--space-md); transform: translateX(-50%); margin: 0; display: none; align-items: center; gap: var(--space-xs); height: 32px; padding: 0 var(--space-tight);
  border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.r3-stage.is-section .r3-note { display: inline-flex; }
.r3-stage.is-section .r3-hint { display: none; }

/* part names: a card on the part someone tapped, and a dot per part when Labels is on */
.r3-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.r3-tag, .r3-dot { position: absolute; left: 0; top: 0; will-change: transform; }
.r3-tag__card { position: absolute; left: var(--space-tight); bottom: var(--space-tight); width: max-content; max-width: min(280px, 70vw); padding: var(--space-tight) var(--space-xl) var(--space-tight) var(--space-tight);
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-tile); pointer-events: auto; font: 400 14px/1.4 var(--font-sans); color: var(--ink); }
.r3-tag::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); border: 1.5px solid var(--ink); }
.r3-tag__card b { display: block; font: 700 15px/1.25 var(--font-title); letter-spacing: -0.01em; }
.r3-tag__card p { margin: var(--space-xs) 0 0; color: var(--muted); }
.r3-tag__card .r3-tag__price { font: 600 12px/1.3 var(--font-mono); color: var(--teal-d); }
.r3-tag__x { position: absolute; top: var(--space-xs); right: var(--space-xs); width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; }
.r3-tag__x:hover { color: var(--ink); background: rgba(11, 20, 38, 0.06); }
.r3-dot { display: inline-flex; align-items: center; gap: var(--space-xs); margin: -9px 0 0 -9px; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; font: 600 12px/1 var(--font-sans); color: var(--ink); }
.r3-dot i { width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 1.5px solid var(--ink); flex-shrink: 0; }
.r3-dot span { padding: var(--space-xs) var(--space-sm); background: var(--surface); border: 1px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.r3-dot:hover span { background: var(--teal-tint); }

/* ── the player under the stage ── */
.r3-player { margin-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-tight); }
.r3-counters { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r3-counters b { color: var(--ink); font-weight: 600; }
.r3-counters i { font-style: normal; margin: 0 var(--space-sm); color: var(--muted-2); }
.r3-ibtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-width: 44px; height: 44px; padding: 0 var(--space-sm); border-radius: var(--r-btn); border: 1.5px solid var(--ink);
  background: var(--surface); color: var(--ink); font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 150ms ease-out, transform 120ms ease-out; }
.r3-ibtn:hover { background: var(--sand-tint); }
.r3-ibtn:active { transform: scale(0.97); }
.r3-ibtn[disabled] { opacity: 0.35; pointer-events: none; }
.r3-ibtn--play { padding: 0 var(--space-md) 0 var(--space-tight); }
.r3-ibtn--play[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
/* Next: the main button. Locked by the safety gate it turns into a dashed "Tick the box first" that points at the box. */
.r3-next { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); height: 48px; padding: 0 var(--space-md);
  border: 1.5px solid var(--ink); border-radius: var(--r-btn); background: var(--teal); color: var(--on-teal); font: 700 16px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
  transition: background 150ms ease-out, color 150ms ease-out, transform 120ms ease-out; }
.r3-next:hover { background: var(--teal-hi); }
.r3-next:active { transform: scale(0.98); }
.r3-next.is-locked { background: var(--surface); color: var(--ink); border-style: dashed; }
.r3-next.is-locked:hover { background: var(--teal-tint); }
.r3-next.is-done { background: var(--ink); color: var(--paper); }
.r3-nav { position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; gap: var(--space-sm); margin-top: auto;
  padding: var(--space-tight) 0 calc(var(--space-tight) + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line-2); }
.r3-ticks { min-width: 0; display: flex; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.r3-ticks li { flex: 1; min-width: 0; }
.r3-ticks button { position: relative; display: block; width: 100%; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.r3-ticks i { position: absolute; left: 0; right: 0; top: 6px; height: 8px; border-radius: 4px 1px 4px 1px; background: var(--line-2); transition: background 200ms ease-out; }
.r3-ticks span { position: absolute; left: 0; right: 0; top: 20px; font: 600 11px/1 var(--font-mono); text-align: center; }
.r3-ticks button:hover i { background: var(--muted-2); }
.r3-ticks .is-done i { background: var(--ink); }
.r3-ticks .is-now i { background: var(--teal); outline: 1.5px solid var(--ink); }
.r3-ticks .is-now span { color: var(--ink); }
.r3-ticks .is-locked { cursor: not-allowed; }
.r3-ticks .is-locked i { background: var(--line); }
.r3-ticks .is-locked span { color: var(--muted-2); }

.r3-card { padding: var(--space-md); display: grid; gap: var(--space-tight); }
.r3-card__head { display: flex; align-items: baseline; gap: var(--space-tight); }
.r3-num { font: 600 14px/1 var(--font-mono); color: var(--teal-d); letter-spacing: 0.06em; flex-shrink: 0; }
.r3-card__title { font: 700 22px/1.2 var(--font-title); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.r3-card__text { font-size: 16px; line-height: 1.5; margin: 0; max-width: 70ch; text-wrap: pretty; }
.r3-watch, .r3-pro li { display: flex; align-items: flex-start; gap: var(--space-sm); margin: 0; font-size: 15px; line-height: 1.45; }
.r3-watch { padding: var(--space-tight); background: var(--sand-tint); border-radius: var(--r-tile); max-width: 74ch; }
.r3-watch .mdi { color: var(--sand-d); flex-shrink: 0; }
.r3-pro { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); max-width: 74ch; }
.r3-pro li { padding: var(--space-tight); background: #fdf1ef; border: 1.5px solid #b42318; border-radius: var(--r-tile); }
.r3-pro .mdi { color: #b42318; flex-shrink: 0; }
/* the safety gate: a teal "do this" box under the instructions; ticking it opens the next steps */
.r3-gate { display: flex; align-items: flex-start; gap: var(--space-tight); max-width: 74ch; padding: var(--space-md); border: 2px solid var(--teal-d); border-radius: var(--r-tile);
  background: var(--teal-tint); cursor: pointer; transition: background 150ms ease-out, border-color 150ms ease-out; }
.r3-gate:hover { border-color: var(--ink); }
.r3-gate input { width: 28px; height: 28px; margin: 0; accent-color: var(--teal-d); flex-shrink: 0; cursor: pointer; }
.r3-gate:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.r3-gate__t { display: grid; gap: var(--space-xs); min-width: 0; }
.r3-gate__k { display: inline-flex; align-items: center; gap: var(--space-xs); font: 600 12px/1.2 var(--font-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-d); }
.r3-gate__k--on, .r3-gate:has(input:checked) .r3-gate__k { display: none; }
.r3-gate:has(input:checked) .r3-gate__k--on { display: inline-flex; }
.r3-gate b { font: 700 17px/1.3 var(--font-sans); color: var(--ink); }
.r3-gate small { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.r3-gate:has(input:checked) { background: var(--surface); border-color: var(--teal); }
.r3-watching { display: flex; align-items: flex-start; gap: var(--space-sm); margin: 0; font-size: 14px; line-height: 1.4; color: var(--teal-d); font-weight: 600; }
.r3-watching .mdi { flex-shrink: 0; }
.r3-tools { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.r3-tools li { display: inline-flex; align-items: center; gap: var(--space-xs); height: 32px; padding: 0 var(--space-tight) 0 var(--space-sm); border: 1px solid var(--line-2); border-radius: 999px; background: var(--field); font: 500 13px/1 var(--font-sans); color: var(--ink); }
.r3-tools .mdi { color: var(--teal-d); }
@keyframes r3-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes r3-flash { 0%, 60% { border-color: var(--ink); background: var(--sand-tint); } }
.r3-nudge { animation: r3-nudge 240ms ease-out 2; }
.r3-gate.r3-nudge { animation: r3-nudge 240ms ease-out 2, r3-flash 1200ms ease-out; }

@media (min-width: 900px) { .r3-card { padding: var(--space-lg); } }

/* ── under the player ── */
.r3-pick { display: grid; gap: var(--space-tight); margin-top: var(--space-md); }
@media (min-width: 700px) { .r3-pick { grid-template-columns: 1fr 1fr; } }
.r3-pick__card { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: var(--space-md); align-items: center; padding: var(--space-tight); text-align: left; cursor: pointer; border: 1.5px solid var(--line-2); background: var(--surface); font: inherit; color: inherit;
  transition: border-color 150ms ease-out, background 150ms ease-out; }
.r3-pick__card:hover { border-color: var(--ink); }
.r3-pick__card.is-on { border-color: var(--teal-d); background: var(--teal-tint); }
.r3-pick__card img { width: 132px; height: 99px; object-fit: cover; border-radius: var(--r-tile); background: var(--field); display: block; }
.r3-pick__text { display: grid; gap: var(--space-xs); padding-right: var(--space-lg); }
.r3-pick__text b { font: 700 17px/1.25 var(--font-title); letter-spacing: -0.01em; }
.r3-pick__text span { font-size: 15px; line-height: 1.4; }
.r3-pick__text small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.r3-pick__tick { position: absolute; top: var(--space-sm); right: var(--space-sm); color: var(--teal-d); visibility: hidden; }
.r3-pick__card.is-on .r3-pick__tick { visibility: visible; }
.r3-notthis { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-tight); }
.r3-notthis .mdi { flex-shrink: 0; }
.r3-notthis a { color: var(--teal-d); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.r3-shop { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.r3-shop__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xs) var(--space-md); align-items: center; padding: var(--space-tight) var(--space-md); border: 1px solid var(--line-2); border-radius: var(--r-tile); background: var(--surface); }
.r3-shop__row[hidden] { display: none; }
.r3-shop__text { display: grid; gap: var(--space-xs); }
.r3-shop__text b { font: 600 16px/1.3 var(--font-sans); }
.r3-shop__text small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.r3-shop__price { font: 600 13px/1.3 var(--font-mono); color: var(--teal-d); grid-column: 1; }
.r3-shop__add { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; font-size: 14px; }
.r3-shop__add[aria-pressed="true"] { background: var(--teal-tint); border-color: var(--teal-d); color: var(--teal-d); }
.r3-shop__save { margin-top: var(--space-md); max-width: 420px; }
.r3-shop__save:empty { display: none; }

.r3-mis { display: grid; gap: var(--space-tight); margin-top: var(--space-md); }
@media (min-width: 700px) { .r3-mis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .r3-mis { grid-template-columns: repeat(3, 1fr); } }
.r3-mis__card { padding: var(--space-md); display: grid; gap: var(--space-sm); align-content: start; }
.r3-mis__card h3 { font: 700 17px/1.25 var(--font-title); letter-spacing: -0.01em; margin: 0; }
.r3-mis__card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.r3-mis__card .ws-btn { justify-self: start; min-height: 40px; margin-top: var(--space-xs); }
.r3-mis__step { font: 600 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; margin-left: var(--space-xs); }
.r3-pro--all { margin-top: var(--space-md); max-width: none; }
@media (min-width: 800px) { .r3-pro--all { grid-template-columns: 1fr 1fr; } }
.r3-pro--all small { display: block; margin-top: var(--space-xs); font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.r3-helpful__row { display: flex; gap: var(--space-sm); margin-top: var(--space-tight); }
.r3-helpful__row .ws-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.r3-helpful__note { margin-top: var(--space-md); display: grid; gap: var(--space-sm); max-width: 520px; }
.r3-helpful__note[hidden], .r3-helpful__thanks[hidden] { display: none; }
.r3-helpful__note label { font-size: 15px; font-weight: 600; }
.r3-helpful__send { display: flex; gap: var(--space-sm); }
.r3-helpful__send input { flex: 1; min-width: 0; height: 44px; padding: 0 var(--space-tight); border: 1.5px solid var(--line-2); border-radius: var(--r-btn); background: var(--field); font: 400 16px/1 var(--font-sans); color: var(--ink); }
.r3-helpful__thanks { margin-top: var(--space-tight); color: var(--teal-d); font-weight: 600; }

.r3-static__d { border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); padding: var(--space-md); }
.r3-static__d summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); cursor: pointer; list-style: none; }
.r3-static__d summary::-webkit-details-marker { display: none; }
.r3-static__d summary .ws-h2 { margin: 0; }
.r3-static__d[open] summary .mdi { transform: rotate(180deg); }
.r3-static__list { margin: var(--space-md) 0 0; padding-left: var(--space-lg); display: grid; gap: var(--space-md); max-width: 76ch; }
.r3-static__list li::marker { font: 600 14px/1 var(--font-mono); color: var(--teal-d); }
.r3-static__list h3 { font: 700 18px/1.25 var(--font-title); letter-spacing: -0.01em; margin: 0 0 var(--space-xs); }
.r3-static__list p { margin: var(--space-xs) 0 0; font-size: 15px; line-height: 1.5; }
.r3-static__pro { color: #912018; }
.r3-stage.is-fallback + .r3-player:empty { display: none; }
/* phone and tablet: the step player sits under the stage and is drawn only once the 3D module loads (after the
   page's load), so its height is held until then, or everything under it jumps ~900 px (layout shift 0.21 on a
   phone, 2026-11-21). A little under the real height at each width; a computer has the side panel (no jump). */
@media (max-width: 1023px) { .ws-js .r3-stage:not(.is-fallback) + .r3-player:empty { min-height: 680px; } }
@media (max-width: 599px) { .ws-js .r3-stage:not(.is-fallback) + .r3-player:empty { min-height: 880px; } }

/* without WebGL the poster stays, and the 3D-only controls go */
.r3-stage.is-fallback .r3-bar, .r3-stage.is-fallback .r3-top, .r3-stage.is-fallback .r3-hint { display: none; }

@media (max-width: 760px) {
  .r3-stage { height: 60vh; height: 60svh; min-height: 400px; }
  .r3-top { top: var(--space-sm); }
  .r3-seg button { height: 32px; padding: 0 var(--space-sm); font-size: 13px; }
  .r3-seg__more { display: none; }
  .r3-hint__desk { display: none; } .r3-hint__phone { display: inline; }
  .r3-bar { bottom: var(--space-sm); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; pointer-events: auto; padding-right: var(--space-2xl);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }   /* the row fades out on the right: there is more to scroll to */
  .r3-note { top: calc(var(--space-sm) + 44px + var(--space-xs)); }
  .r3-pick__card { grid-template-columns: 96px 1fr; } .r3-pick__card img { width: 96px; height: 72px; }
  .r3-shop__row { grid-template-columns: 1fr; } .r3-shop__add { grid-column: 1; grid-row: auto; justify-self: start; }
  .r3-bar::-webkit-scrollbar { display: none; }
  .r3-btn { height: 40px; padding: 0 var(--space-tight); font-size: 14px; gap: var(--space-xs); }
  .r3-btn--range input { width: 72px; }
  .r3-ibtn--play span[data-r3-playlabel] { display: none; }
  .r3-ibtn--play { padding: 0 var(--space-sm); }
  .r3-ticks { gap: 0; }
  .r3-ticks li + li i { left: var(--space-xs); }
  .r3-ticks span { font-size: 10px; }
  .r3-card__title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .r3-canvas, .r3-poster img, .r3-btn, .r3-ibtn, .r3-hint, .r3-ticks i { transition: none; }
  .r3-nudge { animation: none; }
}

.r3-shop__save + .ws-note { margin-top: var(--space-tight); }

/* "All done" scrolls here: clear of the sticky header */
#r3-helpful { scroll-margin-top: calc(var(--bar-h) + var(--space-md)); }
@media (min-width: 900px) { #r3-helpful { scroll-margin-top: calc(64px + var(--space-md)); } }
