/* The real-round player (/round/ and the home page's #round section). Uses the site's tokens from /style.css. */
.rr-page .shell { padding-inline: clamp(16px, 4.5vw, 64px); }
.rr-intro { padding-block: clamp(28px, 5vw, 56px) 18px; }
.rr-kicker { font-size: var(--t-small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; }
.rr-intro h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.4rem); line-height: 1.05; max-width: 18ch;
}
.rr-lede { font-size: var(--t-lede); color: var(--ink); max-width: 46ch; margin-top: 14px; }
.rr-honest { font-size: .95rem; color: var(--ink-dim); max-width: 60ch; margin-top: 10px; }

.rr-player-wrap { padding-bottom: clamp(40px, 6vw, 80px); }
.rr-player {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; min-width: 0;
}

/* -- the sound bar ---------------------------------------------------- */
.rr-bar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 10px 18px;
  padding: 8px 10px 10px; margin-bottom: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s);
}
.rr-mute {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px;
  font: 600 .86rem/1 var(--sans); cursor: pointer;
}
.rr-mute:hover { border-color: var(--ink-dim); }
.rr-mute svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-mute .rr-off { display: none; }
.rr-mute[aria-pressed=true] { border-color: var(--accent-2); color: var(--accent-2); }
.rr-mute[aria-pressed=true] .rr-on { display: none; }
.rr-mute[aria-pressed=true] .rr-off { display: inline; }
.rr-slider { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; min-width: 0; }
.rr-slider-name { font-size: var(--t-label); font-weight: 600; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.rr-slider input[type=range] { width: 100%; min-width: 0; height: 32px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.rr-mix-ends {
  grid-column: 2; display: flex; justify-content: space-between; gap: 6px;
  font-size: var(--t-label); color: var(--ink-dim); margin-top: -4px; white-space: nowrap;
}
.rr-mixer[data-end=bench] .rr-mix-ends span:first-child,
.rr-mixer[data-end=both] .rr-mix-ends span:nth-child(2),
.rr-mixer[data-end=down] .rr-mix-ends span:last-child { color: var(--accent); font-weight: 600; }

/* -- the two pictures ------------------------------------------------ */
/* desktop: whole target | close-up side by side (same height), what the unit said underneath */
.rr-views {
  display: grid; grid-template-columns: minmax(0, 1.7778fr) minmax(0, 1fr); gap: 12px;
  grid-template-areas: "wide close" "say say"; align-items: start;
}
.rr-view { margin: 0; min-width: 0; }
.rr-wide { grid-area: wide; }
.rr-close { grid-area: close; }
.rr-views .rr-callout { grid-area: say; margin-top: 0; }
.rr-frame { position: relative; overflow: hidden; background: #000; border-radius: var(--radius-s); }
.rr-wide .rr-frame { aspect-ratio: 16 / 9; }
.rr-close .rr-frame { aspect-ratio: 1 / 1; }
.rr-frame video, .rr-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rr-frame video { object-fit: cover; opacity: 0; }
.rr-frame video.is-front { opacity: 1; }
.rr-frame canvas { pointer-events: none; }
.rr-view figcaption { font-size: var(--t-label); color: var(--ink-mute); margin-top: 6px; }
.rr-chip {
  position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px 9px; background: rgba(10, 12, 14, .78); border-radius: 10px; color: #fff;
  font: 700 clamp(1.05rem, 2.4vw, 1.35rem)/1.1 var(--sans); letter-spacing: -.01em;
}
.rr-chip[hidden] { display: none; }
.rr-chip .rr-chip-load { font-size: .7em; font-weight: 600; color: #e8eaec; }
.rr-chip .rr-chip-speed { font-size: .78em; font-weight: 700; color: #ffeb3b; font-variant-numeric: tabular-nums; }
.rr-chip .rr-chip-speed:empty { display: none; }

/* -- what the unit says, and the buttons ------------------------------ */
.rr-callout {
  margin-top: 12px; min-height: 5.6em; padding: 12px 18px 14px;
  background: var(--bg-2); border-left: 2px solid var(--accent); border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.rr-callout > span { font-size: var(--t-label); font-weight: 600; color: var(--ink-mute); }
.rr-callout p {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.22; letter-spacing: -.015em; margin-top: 4px;
}
.rr-actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px;
}
.rr-count { font-size: .9rem; font-weight: 600; color: var(--ink-dim); min-width: 8.5em; text-align: right; font-variant-numeric: tabular-nums; }
.rr-shoot { min-width: 180px; min-height: 56px; font-size: 1.1rem; }
.rr-shoot[aria-disabled=true] { opacity: .6; cursor: progress; transform: none; }
.rr-restart[hidden] { display: none; }
.rr-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; margin-top: 6px; }
/* back one shot: present, but quieter than Shoot */
.rr-prev {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--ink-dim); border: 1px solid var(--line-2); border-radius: var(--radius-s); cursor: pointer;
}
.rr-prev:hover:not(:disabled) { color: var(--ink); border-color: var(--ink-mute); }
.rr-prev:disabled { opacity: .35; cursor: default; }
.rr-prev svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rr-style-pick { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--ink-dim); min-height: 44px; }
.rr-style-pick select {
  min-height: 36px; max-width: 13.5em; padding: 4px 8px; font: 500 var(--t-small)/1.2 var(--sans);
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-s);
}
.rr-auto { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-dim); cursor: pointer; min-height: 44px; }
.rr-auto input { width: 18px; height: 18px; accent-color: var(--accent); }
.rr-note { font-size: .82rem; color: var(--ink-mute); text-align: center; max-width: 64ch; margin: 14px auto 0; }
.rr-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 12px; font-size: var(--t-small); }

/* -- phone: the pictures stack, the Shoot button stays under the thumb -- */
@media (max-width: 760px) {
  .rr-player { padding: 10px; }
  .rr-bar { grid-template-columns: auto minmax(0, 1fr); padding: 6px 8px 8px; gap: 4px 12px; }
  .rr-mixer { grid-column: 1 / -1; }
  .rr-bar { margin-bottom: 8px; }
  .rr-bar .rr-slider-name { font-size: var(--t-label); }
  .rr-mute { min-height: 40px; padding: 6px 12px; }
  /* phone: whole target, what the unit said, close-up, stacked at full width */
  .rr-views { grid-template-columns: minmax(0, 1fr); grid-template-areas: "wide" "say" "close"; gap: 8px; }
  .rr-view figcaption { display: none; }
  .rr-views .rr-callout { min-height: 0; padding: 8px 12px 10px; }
  .rr-callout > span { font-size: var(--t-label); }
  .rr-callout p { font-size: 1.12rem; min-height: 2.44em; }
  .rr-actions {
    position: sticky; bottom: 0; z-index: 5; flex-wrap: nowrap; margin: 8px -10px 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(23, 28, 32, .96); border-top: 1px solid var(--line); gap: 10px;
  }
  .rr-count { min-width: 0; width: 4.2em; flex: none; text-align: left; font-size: var(--t-label); line-height: 1.2; }
  .rr-shoot { flex: 1 1 auto; min-width: 0; min-height: 52px; }
  .rr-restart { flex: none; }
  .rr-extra { margin-top: 4px; }
}
@media (max-width: 380px) {
  .rr-mix-ends { font-size: var(--t-label); }
}
