/* Find your vocal range (js/rangefinder.js; screens 52 to 61 of "Alive Jam mockups"): the start, Get set and the hiss,
   the warm-up's wave, singing with the band down and up, the light voice, your range with its songs, Hear yourself, and
   Your voice in You. */

.rf-host {
  --rf-comf: #9EDA97;
  --rf-comf-dark: #3E6B2B;
  --rf-reach: #CFE7BF;
  --rf-light: #C7D3FF;
  --rf-lilac: #829EFF;
  --rf-gold: #F6AD3B;
  --rf-sky: #76D7F4;
  --rf-card: #0A0C13;
  --rf-soft: #C9C5CE;
  --rf-mute: #A6A3AC;
  --rf-line2: rgba(241, 237, 228, .3);
  min-width: 0;
}

.rf,
.rf-you {
  --rf-comf: #9EDA97;
  --rf-comf-dark: #3E6B2B;
  --rf-reach: #CFE7BF;
  --rf-light: #C7D3FF;
  --rf-lilac: #829EFF;
  --rf-gold: #F6AD3B;
  --rf-card: #0A0C13;
  --rf-soft: #C9C5CE;
  --rf-mute: #A6A3AC;
  --rf-line2: rgba(241, 237, 228, .3);
}

.rf {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.rf-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rf-h {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.rf-h:focus {
  outline: none;
}

.rf-backto,
.rf-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--rf-soft);
  font-size: 13.5px;
}

.rf-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rf-p {
  margin: 0;
  color: var(--rf-soft);
  font-size: 14px;
  line-height: 1.45;
}

.rf-fine {
  margin: 0;
  color: var(--rf-mute);
  font-size: 12.5px;
  line-height: 1.45;
}

.rf-k {
  margin: 4px 0 0;
  color: var(--rf-mute);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.rf-ic {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rf-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rf-between {
  justify-content: space-between;
}

.rf-center {
  justify-content: center;
}

.rf-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rf-go,
.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rf-line2);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.rf-col > .rf-go,
.rf-col > .rf-btn,
.rf > .rf-go {
  width: 100%;
}

.rf-go {
  border-color: var(--starlight);
  background-color: var(--starlight);
  color: var(--space);
  font-weight: 600;
}

.rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rf-line2);
  border-radius: var(--r-pill);
  color: var(--rf-soft);
  font-size: 13px;
}

.rf-chip[aria-pressed="true"] {
  border-color: var(--starlight);
  background-color: color-mix(in srgb, var(--starlight) 10%, transparent);
  color: var(--starlight);
}

.rf-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--rf-card);
  min-width: 0;
}

.rf-bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--rf-soft);
  font-size: 13.5px;
}

.rf-bullet .rf-ic {
  margin-top: 1px;
  color: var(--rf-comf);
}

.rf-switchrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--rf-card);
}

.rf-sw-words {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rf-sw-k {
  font-size: 14.5px;
  font-weight: 600;
}

.rf-sw-sub {
  color: var(--rf-mute);
  font-size: 12.5px;
}

/* The switch: 44px to tap, drawn smaller. */
.rf-switch {
  flex: none;
  position: relative;
  width: 52px;
  height: 44px;
}

.rf-switch::before {
  content: "";
  position: absolute;
  inset: 9px 4px;
  border: 1px solid var(--rf-line2);
  border-radius: var(--r-pill);
}

.rf-switch .rf-knob {
  position: absolute;
  top: 13px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dust);
  transition: translate var(--t) ease, background-color var(--t) ease;
}

.rf-switch[aria-checked="true"]::before {
  background: var(--starlight);
  border-color: var(--starlight);
}

.rf-switch[aria-checked="true"] .rf-knob {
  background: var(--space);
  translate: 18px 0;
}

.rf-steps {
  display: flex;
  gap: 6px;
}

.rf-step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--rf-line2);
}

.rf-step.is-on {
  background: var(--starlight);
}

.rf-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding-left: 22px;
  color: var(--rf-soft);
  font-size: 13.5px;
}

.rf-tips {
  margin: 0;
  padding-left: 20px;
  color: var(--rf-soft);
  font-size: 13.5px;
}

.rf-help {
  border-color: color-mix(in srgb, var(--rf-gold) 45%, transparent);
}

.rf-help-k {
  margin: 0;
  font-weight: 600;
}

.rf-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--rf-comf);
  font-size: 13px;
}

/* ---------- the pictures ---------- */
.rf-pic {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rf-bg {
  fill: var(--rf-card);
}

.rf-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.rf-grid2 {
  stroke: var(--rf-line2);
  stroke-width: 1;
}

.rf-axis {
  fill: var(--rf-mute);
  font-family: var(--ui);
  font-size: 11px;
}

.rf-comf-band {
  fill: var(--rf-comf);
  opacity: .12;
}

.rf-dash {
  stroke: var(--rf-lilac);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: .45;
}

.rf-dash.is-band {
  opacity: .95;
}

.rf-dash-you {
  opacity: .25;
}

.rf-dash-you.is-now {
  opacity: .6;
}

.rf-dash-thin {
  stroke-width: 4;
  opacity: .5;
}

.rf-me-line {
  fill: none;
  stroke: var(--rf-gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rf-me-dot {
  fill: var(--rf-gold);
}

.rf-me-dot.is-on {
  filter: drop-shadow(0 0 6px var(--rf-gold));
}

.rf-mark {
  stroke: var(--starlight);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: .6;
}

.rf-mark-light {
  stroke: var(--rf-lilac);
}

.rf-mark-t {
  fill: var(--rf-soft);
  font-family: var(--ui);
  font-size: 11px;
}

.rf-markdot {
  fill: var(--rf-comf);
}

.rf-wave-band {
  fill: none;
  stroke: var(--rf-lilac);
  stroke-width: 14;
  stroke-linecap: round;
  opacity: .22;
}

.rf-wave-line {
  fill: none;
  stroke: var(--rf-lilac);
  stroke-width: 2;
  opacity: .7;
}

.rf-spark {
  fill: var(--rf-gold);
  animation: rf-spark 900ms ease-out forwards;
}

.rf-spark.is-still {
  animation: none;
  opacity: .7;
}

@keyframes rf-spark {
  from {
    opacity: .95;
    translate: 0 0;
  }
  to {
    opacity: 0;
    translate: -8px -10px;
  }
}

.rf-light-guide {
  fill: none;
  stroke: var(--rf-lilac);
  stroke-width: 10;
  stroke-linecap: round;
  opacity: .2;
}

.rf-light-line {
  fill: none;
  stroke: var(--rf-lilac);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rf-playhead {
  stroke: var(--starlight);
  stroke-width: 1.5;
}

/* Get set */
.rf-fig {
  fill: #232A3A;
  stroke: var(--rf-soft);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.rf-belly {
  fill: var(--rf-sky);
  opacity: .3;
}

.rf-breath {
  fill: none;
  stroke: var(--rf-sky);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.rf-plumb {
  stroke: var(--rf-gold);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: .9;
}

.rf-gold {
  fill: var(--rf-gold);
}

.rf-chair {
  fill: none;
  stroke: var(--rf-mute);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.rf-badge {
  fill: var(--starlight);
}

.rf-badge-n {
  fill: var(--space);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
}

.rf-track {
  fill: var(--line);
}

.rf-hissfill {
  fill: var(--rf-sky);
  opacity: .45;
}

.rf-bestline {
  stroke: var(--rf-gold);
  stroke-width: 2;
}

.rf-bestlabel {
  fill: var(--rf-gold);
  font-family: var(--ui);
  font-size: 10.5px;
}

.rf-hiss {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rf-hiss-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-height: 36px;
}

.rf-hiss-n {
  font-family: var(--serif);
  font-size: 30px;
}

.rf-hiss-w {
  color: var(--rf-soft);
  font-size: 13px;
}

.rf-hiss-w.is-good {
  color: var(--rf-comf);
}

.rf-hiss > .rf-btn {
  width: 100%;
}

/* Singing with the band */
.rf-bignote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  min-height: 66px;
}

.rf-big {
  color: var(--rf-gold);
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
}

.rf-big-light {
  color: var(--rf-lilac);
}

.rf-big-w {
  color: var(--rf-soft);
  font-size: 14px;
}

.rf-score {
  font-size: 14px;
  font-weight: 600;
}

/* Your range */
.rf-range {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.rf-range-big {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.1;
}

.rf-range-line {
  margin: 0;
  color: var(--rf-soft);
  font-size: 14px;
}

.rf-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid var(--rf-line2);
  border-radius: var(--r-pill);
  font-size: 14px;
}

.rf-type strong {
  font-weight: 600;
}

.rf-i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--rf-line2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.rf-typelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
}

.rf-typelist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 3px 0;
  color: var(--rf-mute);
}

.rf-typelist li.is-yours {
  color: var(--starlight);
}

.rf-tname {
  min-width: 108px;
}

.rf-tyours {
  margin-left: auto;
  color: var(--rf-comf);
  font-size: 12px;
}

.rf-namepick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rf-key {
  fill: #F1EDE4;
}

.rf-key.is-comf {
  fill: var(--rf-comf);
}

.rf-key.is-reach {
  fill: var(--rf-reach);
}

.rf-key.is-light {
  fill: var(--rf-light);
}

.rf-bkey {
  fill: #05070D;
}

.rf-bkey.is-comf {
  fill: var(--rf-comf-dark);
}

.rf-keyname {
  fill: #05070D;
  font-family: var(--ui);
  font-size: 9.5px;
}

.rf-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  color: var(--rf-mute);
  font-size: 12px;
}

.rf-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rf-sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.rf-sw.is-comf {
  background: var(--rf-comf);
}

.rf-sw.is-reach {
  background: var(--rf-reach);
}

.rf-sw.is-light {
  background: var(--rf-light);
}

.rf-hear {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.rf-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--starlight);
  color: var(--space);
}

.rf-play .rf-ic {
  fill: currentColor;
}

.rf-play-big {
  width: 64px;
  height: 64px;
}

.rf-round {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--rf-line2);
  border-radius: 50%;
}

.rf-hear-w {
  display: flex;
  flex-direction: column;
}

.rf-hear-k {
  font-size: 14.5px;
  font-weight: 600;
}

.rf-times {
  color: var(--rf-mute);
  font-size: 12.5px;
}

.rf-transport {
  gap: 14px;
}

.rf-songlist {
  gap: 0;
  padding: 2px 14px;
  list-style: none;
}

.rf-song + .rf-song {
  border-top: 1px solid var(--line);
}

.rf-song-in {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 0;
  text-align: left;
}

.rf-cover {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #171A23;
  color: var(--rf-mute);
}

.rf-song-w {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.rf-song-t {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-song-a {
  overflow: hidden;
  color: var(--rf-mute);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rf-song-k {
  flex: none;
  max-width: 42%;
  color: var(--rf-soft);
  font-size: 12.5px;
  text-align: right;
}

.rf-song.is-looking .rf-song-k,
.rf-song.is-unknown .rf-song-k {
  color: var(--rf-mute);
}

.rf-tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--rf-line2);
  border-radius: 50%;
  color: transparent;
}

.rf-pick[aria-pressed="true"] .rf-tick {
  border-color: var(--rf-comf);
  background: var(--rf-comf);
  color: var(--space);
}

.rf-res-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.rf-res-main,
.rf-res-songs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.rf-songs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rf-res-acts > * {
  flex: 1 1 auto;
}

/* 60: on a computer, the result side by side, as drawn. */
.drill[data-size="wide"]:has(.rf-host[data-step="result"]) {
  width: min(1060px, calc(100vw - 48px));
}

@media (min-width: 900px) {
  .rf-host[data-step="result"] .rf-res-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .rf-host[data-step="result"] .rf-range {
    align-items: flex-start;
    text-align: left;
  }

  .rf-host[data-step="result"] .rf-res-songs {
    padding: 18px 20px;
    border: 1px solid var(--rf-line2);
    border-radius: 18px;
    background: var(--rf-card);
  }
}

/* The song box's line (js/listensong.js) */
.rf-best-k {
  color: var(--starlight);
}

.rf-best-w {
  color: var(--starlight);
}

/* Where the song's range came from (Listen B2), under the line. */
.rf-best-from {
  display: block;
  margin-top: 2px;
  color: #F6AD3B;
  font-size: 12px;
}

/* Your voice, in You (61) */
.rf-you {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rf-you-big {
  font-family: var(--serif);
  font-size: 26px;
}

.rf-you-sub {
  color: var(--rf-soft);
  font-size: 13px;
}

.rf-you .chip {
  min-height: 44px;
  padding: 0 14px;
}

.rf-you-go {
  align-self: flex-start;
}

.rf-wrap {
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .rf-spark {
    animation: none;
  }

  .rf-switch .rf-knob {
    transition: none;
  }
}
