@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&display=swap');

:root {
  --rhythm-ink: #07191c;
  --rhythm-deep: #0d3036;
  --rhythm-paper: #f3ead7;
  --rhythm-gold: #d9a83e;
  --rhythm-gold-light: #f0c96a;
  --rhythm-red: #9b352f;
  --rhythm-mono: 'DM Mono', monospace;
}

body.rhythm-page {
  min-height: 100%;
  background: var(--rhythm-ink);
}

.rhythm-page button,
.rhythm-page input,
.rhythm-page summary {
  -webkit-tap-highlight-color: transparent;
}

.game-intro {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background: var(--rhythm-ink);
  isolation: isolate;
}

.game-intro__portrait,
.result-screen__portrait,
.performance__portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 30%;
}

.game-intro__portrait {
  z-index: -4;
  filter: saturate(.86) contrast(1.04) brightness(.62);
  transform: scale(1.015);
}

.game-intro__veil {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(7, 25, 28, .98) 0 27%, rgba(7, 25, 28, .73) 48%, rgba(7, 25, 28, .42) 68%, rgba(7, 25, 28, .82) 100%),
    linear-gradient(0deg, rgba(7, 25, 28, .98), transparent 35% 72%, rgba(7, 25, 28, .78));
}

.game-intro__veil::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .4;
  background: repeating-linear-gradient(90deg, transparent 0 7.9%, rgba(240, 201, 106, .08) 8%, transparent 8.1% 16%);
}

.game-intro__strings {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.game-intro__strings i {
  position: absolute;
  right: -8vw;
  left: -8vw;
  top: calc(22% + var(--string, 0) * 12%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 106, .32), transparent);
  transform: rotate(-3deg);
  transform-origin: center;
}

.game-intro__strings i:nth-child(2) { --string: 1; }
.game-intro__strings i:nth-child(3) { --string: 2; }
.game-intro__strings i:nth-child(4) { --string: 3; }
.game-intro__strings i:nth-child(5) { --string: 4; }

.game-intro__content {
  display: grid;
  min-height: calc(100svh - var(--solano-header) - clamp(6rem, 14vw, 11rem));
  align-items: end;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.game-intro__copy {
  align-self: center;
  padding-top: 2rem;
}

.game-intro__copy h1 {
  max-width: 7.5ch;
  margin-bottom: 1.6rem;
  color: var(--rhythm-paper);
  font-size: clamp(4.5rem, 11vw, 9.5rem);
  line-height: .72;
  text-shadow: 0 .12em .45em rgba(0, 0, 0, .34);
}

.game-intro__copy h1 em {
  color: var(--rhythm-gold-light);
  font-weight: 500;
}

.game-intro__lead {
  max-width: 42rem;
  margin: 0;
  color: rgba(243, 234, 215, .82);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.game-intro__how {
  display: grid;
  gap: .45rem;
  margin-top: 2rem;
  color: rgba(243, 234, 215, .7);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.game-intro__how span {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.game-intro__how b {
  color: var(--rhythm-gold-light);
  font-family: var(--rhythm-mono);
  font-weight: 500;
}

.setlist {
  width: 100%;
  align-self: center;
  border-top: 3px solid var(--rhythm-gold);
  background: rgba(7, 25, 28, .92);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}

.setlist__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(240, 201, 106, .2);
}

.setlist__label,
.setlist__count {
  margin: 0 0 .3rem;
  color: var(--rhythm-gold-light);
  font-family: var(--rhythm-mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.setlist__heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: .9;
}

.setlist__count {
  margin: 0;
  color: rgba(243, 234, 215, .5);
}

.track-list {
  counter-reset: tracks;
}

.track-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 6.25rem;
  grid-template-columns: 2.5rem 1fr 2.4rem;
  align-items: center;
  gap: .8rem;
  border: 0;
  border-bottom: 1px solid rgba(243, 234, 215, .12);
  background: transparent;
  color: var(--rhythm-paper);
  padding: 1rem 1.35rem;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, padding-left .18s ease;
}

.track-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rhythm-gold);
  transform: scaleY(0);
  transition: transform .18s ease;
}

.track-card:hover,
.track-card.is-selected {
  background: rgba(240, 201, 106, .09);
}

.track-card.is-selected {
  padding-left: 1.7rem;
}

.track-card.is-selected::before {
  transform: scaleY(1);
}

.track-card__number {
  color: rgba(243, 234, 215, .42);
  font-family: var(--rhythm-mono);
  font-size: .7rem;
}

.track-card__body {
  display: grid;
}

.track-card__body small,
.track-card__body span {
  color: rgba(243, 234, 215, .52);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.track-card__body strong {
  margin: .16rem 0 .22rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1;
}

.track-card__play {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(240, 201, 106, .4);
  border-radius: 50%;
  color: var(--rhythm-gold-light);
  font-size: .7rem;
}

.track-card.is-selected .track-card__play {
  background: var(--rhythm-gold);
  color: var(--rhythm-ink);
}

.difficulty-picker {
  min-width: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(243, 234, 215, .12);
  padding: 1.2rem 1.35rem .95rem;
}

.difficulty-picker legend {
  padding: 0;
  color: var(--rhythm-gold-light);
  font-family: var(--rhythm-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.difficulty-picker__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: .65rem;
}

.difficulty-picker__options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.difficulty-picker__options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.difficulty-picker__options span {
  display: grid;
  min-height: 3.7rem;
  align-content: center;
  border: 1px solid rgba(243, 234, 215, .16);
  padding: .55rem .65rem;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.difficulty-picker__options b,
.difficulty-picker__options small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.difficulty-picker__options b {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.difficulty-picker__options small {
  overflow: visible;
  color: rgba(243, 234, 215, .5);
  font-size: .57rem;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.difficulty-picker__options input:checked + span {
  border-color: var(--rhythm-gold);
  background: var(--rhythm-gold);
  color: var(--rhythm-ink);
}

.difficulty-picker__options input:checked + span small {
  color: rgba(7, 25, 28, .72);
}

.difficulty-picker__options input:focus-visible + span {
  outline: 3px solid var(--rhythm-paper);
  outline-offset: 3px;
}

.difficulty-picker > p {
  margin: .7rem 0 0;
  color: rgba(243, 234, 215, .55);
  font-size: .62rem;
  line-height: 1.45;
}

.start-button {
  display: flex;
  width: calc(100% - 2.7rem);
  min-height: 4.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  margin: 1.35rem;
  background: var(--rhythm-gold);
  color: var(--rhythm-ink);
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.start-button:hover {
  background: var(--rhythm-gold-light);
  transform: translateY(-2px);
}

.start-button span {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.start-button small {
  max-width: 48%;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: right;
}

.setlist__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 0 1.35rem 1.2rem;
}

.setlist__tools p {
  margin: 0;
  color: rgba(243, 234, 215, .45);
  font-size: .68rem;
}

.settings-toggle,
.loading-cancel {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(240, 201, 106, .55);
  background: transparent;
  color: var(--rhythm-gold-light);
  padding: .45rem 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
}

.settings {
  border-top: 1px solid rgba(240, 201, 106, .18);
  padding: .5rem 1.35rem 1.35rem;
  background: rgba(0, 0, 0, .15);
}

.setting-row,
.setting-check {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(243, 234, 215, .09);
}

.setting-row > span,
.setting-check > span {
  display: grid;
}

.setting-row b,
.setting-check b {
  font-size: .8rem;
}

.setting-row small,
.setting-check small {
  color: rgba(243, 234, 215, .5);
  font-size: .66rem;
}

.setting-row .setting-hint {
  max-width: 33rem;
  margin-top: .28rem;
  color: rgba(243, 234, 215, .4);
  font-size: .58rem;
  line-height: 1.35;
}

.setting-row input[type='range'] {
  width: min(10rem, 40vw);
  accent-color: var(--rhythm-gold);
}

.setting-check {
  justify-content: flex-start;
  padding-top: .65rem;
  border: 0;
}

.setting-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--rhythm-gold);
}

.local-track {
  border-top: 1px solid rgba(243, 234, 215, .1);
  color: rgba(243, 234, 215, .6);
  padding: .9rem 1.35rem 1.2rem;
  font-size: .72rem;
}

.local-track summary {
  min-height: 2.5rem;
  cursor: pointer;
}

.file-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(240, 201, 106, .45);
  color: var(--rhythm-gold-light);
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-credit {
  position: absolute;
  right: 1rem;
  bottom: .65rem;
  z-index: 2;
  margin: 0;
  color: rgba(243, 234, 215, .46);
  font-size: .6rem;
}

/* Loading */
.loading-screen,
.result-screen,
.performance {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.loading-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  background: var(--rhythm-ink);
  padding: 2rem;
  text-align: center;
}

.loading-screen::before,
.loading-screen::after {
  content: '';
  position: absolute;
  width: min(80vw, 48rem);
  height: min(80vw, 48rem);
  border: 1px solid rgba(240, 201, 106, .12);
  border-radius: 50%;
}

.loading-screen::after {
  width: min(55vw, 31rem);
  height: min(55vw, 31rem);
}

.loading-screen > * {
  position: relative;
  z-index: 1;
}

.loading-screen .eyebrow {
  justify-content: center;
}

.loading-screen h2 {
  max-width: 12ch;
  margin-bottom: .8rem;
  font-size: clamp(3rem, 10vw, 6.5rem);
}

.loading-screen > p:not(.eyebrow) {
  margin: 0;
  color: rgba(243, 234, 215, .7);
}

.loading-screen__detail {
  min-height: 1.5rem;
  font-family: var(--rhythm-mono);
  font-size: .65rem;
}

.loading-screen__pulse {
  display: flex;
  height: 4rem;
  align-items: center;
  gap: .32rem;
  margin-bottom: 1rem;
}

.loading-screen__pulse i {
  width: .22rem;
  height: 24%;
  background: var(--rhythm-gold-light);
  animation: equalize .8s ease-in-out infinite alternate;
}

.loading-screen__pulse i:nth-child(2) { animation-delay: -.2s; }
.loading-screen__pulse i:nth-child(3) { animation-delay: -.55s; }
.loading-screen__pulse i:nth-child(4) { animation-delay: -.35s; }
.loading-screen__pulse i:nth-child(5) { animation-delay: -.65s; }

@keyframes equalize {
  to { height: 100%; }
}

.loading-progress {
  width: min(28rem, 80vw);
  height: 3px;
  margin: 1.5rem 0 .8rem;
  overflow: hidden;
  background: rgba(243, 234, 215, .15);
}

.loading-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rhythm-gold);
  transition: width .12s linear;
}

.loading-cancel {
  margin-top: 2rem;
}

/* Performance */
.performance {
  overflow: hidden;
  background: #02090b;
  isolation: isolate;
  touch-action: none;
}

.performance__portrait {
  z-index: -4;
  object-position: 50% 28%;
  filter: saturate(.92) contrast(1.1) brightness(.52);
  transform: scale(1.03);
}

.performance::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 9, 11, .86), transparent 28% 70%, rgba(2, 9, 11, .86)),
    linear-gradient(0deg, rgba(2, 9, 11, .96), transparent 50%, rgba(2, 9, 11, .68));
}

.performance__lights {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .72;
  background:
    radial-gradient(ellipse at 18% 0, rgba(47, 143, 132, .42), transparent 32%),
    radial-gradient(ellipse at 82% 0, rgba(155, 53, 47, .42), transparent 32%),
    radial-gradient(ellipse at 50% 12%, rgba(217, 168, 62, .2), transparent 30%);
  animation: stage-lights 4s ease-in-out infinite alternate;
}

@keyframes stage-lights {
  to { opacity: 1; filter: hue-rotate(8deg); }
}

#palco {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.game-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--rhythm-paper);
  font-family: var(--rhythm-mono);
  pointer-events: none;
}

.game-hud button {
  pointer-events: auto;
}

.song-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: rgba(243, 234, 215, .12);
}

.song-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--rhythm-gold-light);
  box-shadow: 0 0 1rem rgba(240, 201, 106, .65);
}

.game-hud__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: clamp(.7rem, 2vw, 2rem);
  padding: calc(.9rem + env(safe-area-inset-top)) clamp(.8rem, 2.5vw, 2rem) 3rem;
  background: linear-gradient(180deg, rgba(2, 9, 11, .88), transparent);
}

.now-playing,
.score-block {
  display: grid;
}

.now-playing span,
.score-block span,
.stage-meter > span,
.combo-block span {
  color: rgba(243, 234, 215, .55);
  font-size: .58rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.now-playing strong {
  overflow: hidden;
  max-width: min(40vw, 26rem);
  color: var(--rhythm-gold-light);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing small {
  margin-top: .22rem;
  color: rgba(243, 234, 215, .52);
  font-size: .57rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.score-block {
  text-align: right;
}

.score-block strong {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: .05em;
}

.leave-button {
  min-width: 3.5rem;
  min-height: 44px;
  border: 1px solid rgba(243, 234, 215, .3);
  background: rgba(2, 9, 11, .52);
  color: var(--rhythm-paper);
  padding: .45rem .7rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.stage-meter {
  position: absolute;
  top: 50%;
  left: clamp(.7rem, 2.4vw, 2rem);
  display: grid;
  justify-items: center;
  gap: .55rem;
  transform: translateY(-50%);
}

.stage-meter > span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stage-meter > div {
  position: relative;
  width: .55rem;
  height: min(32vh, 14rem);
  overflow: hidden;
  border: 1px solid rgba(243, 234, 215, .22);
  background: rgba(2, 9, 11, .62);
}

.stage-meter i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 50%;
  background: linear-gradient(0deg, var(--rhythm-red), var(--rhythm-gold), #3fae72);
  transition: height .18s ease;
}

.combo-block {
  position: absolute;
  right: clamp(.8rem, 3vw, 2.4rem);
  top: 48%;
  display: grid;
  justify-items: end;
  transform: translateY(-50%);
  text-align: right;
}

.combo-block strong {
  color: var(--rhythm-gold-light);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .75;
  text-shadow: 0 0 1.5rem rgba(217, 168, 62, .35);
}

.combo-block b {
  margin-top: .4rem;
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
}

.fret-legend {
  position: absolute;
  right: 50%;
  bottom: calc(.75rem + env(safe-area-inset-bottom));
  display: grid;
  width: min(78vw, 44rem);
  grid-template-columns: repeat(var(--lane-count, 4), 1fr);
  transform: translateX(50%);
}

.fret-legend span {
  display: grid;
  place-items: center;
}

.fret-legend kbd {
  display: grid;
  width: clamp(2.1rem, 5vw, 3rem);
  height: clamp(2.1rem, 5vw, 3rem);
  place-items: center;
  border: 2px solid var(--lane);
  border-radius: 50%;
  background: rgba(2, 9, 11, .68);
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--lane) 35%, transparent);
  color: #fff;
  font-family: var(--rhythm-mono);
  font-size: .75rem;
}

/* Results */
.result-screen {
  display: grid;
  place-items: center;
  overflow: auto;
  background: var(--rhythm-ink);
  padding: 2rem 1rem;
  isolation: isolate;
}

.result-screen__portrait {
  z-index: -3;
  filter: grayscale(.22) saturate(.72) brightness(.3);
}

.result-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(7, 25, 28, .96), rgba(7, 25, 28, .7));
}

.result-card {
  width: min(48rem, 100%);
  border-top: 4px solid var(--rhythm-gold);
  background: rgba(7, 25, 28, .93);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
}

.result-card__grade {
  float: right;
  margin: -.2rem 0 1rem 1rem;
  color: var(--rhythm-gold-light);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: .68;
}

.result-card h2 {
  max-width: 9ch;
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 9vw, 5.7rem);
}

.result-card__lead {
  max-width: 48ch;
  color: rgba(243, 234, 215, .72);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0;
  border-top: 1px solid rgba(240, 201, 106, .24);
  border-left: 1px solid rgba(240, 201, 106, .24);
}

.result-stat {
  min-height: 5.5rem;
  border-right: 1px solid rgba(240, 201, 106, .24);
  border-bottom: 1px solid rgba(240, 201, 106, .24);
  padding: .8rem 1rem;
}

.result-stat strong,
.result-stat span {
  display: block;
}

.result-stat strong {
  color: var(--rhythm-gold-light);
  font-family: var(--rhythm-mono);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.result-stat span {
  color: rgba(243, 234, 215, .52);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.result-save {
  margin: -1rem 0 2rem;
  border-left: 3px solid var(--rhythm-gold);
  color: rgba(243, 234, 215, .68);
  padding-left: .9rem;
  font-size: .76rem;
}

.result-save[data-state='saved'] { border-color: #3fae72; color: #b8e6cc; }
.result-save[data-state='guest'] { border-color: var(--rhythm-gold); }
.result-save[data-state='error'] { border-color: #c94c43; color: #f2b8b2; }

.result-actions .start-button {
  width: min(22rem, 100%);
  margin: 0;
}

.rhythm-page.is-playing .accessibility-tools,
.rhythm-page.is-playing .accessibility-toolbar,
.rhythm-page.is-playing .accessibility-fab,
.rhythm-page.is-playing .public-user-area,
.rhythm-page.is-playing [data-home-passport-toggle],
.rhythm-page.is-playing #home-passport-aside,
.rhythm-page.is-playing .solano-room-header {
  display: none !important;
}

@media (min-width: 900px) {
  .game-intro__content {
    grid-template-columns: minmax(0, 1.15fr) minmax(24rem, .85fr);
  }

  .setlist {
    max-width: 34rem;
    justify-self: end;
  }

  .result-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  .game-intro {
    overflow: auto;
  }

  .game-intro__portrait {
    position: fixed;
    object-position: 52% top;
  }

  .game-intro__veil {
    position: fixed;
    background: linear-gradient(0deg, rgba(7, 25, 28, 1) 5%, rgba(7, 25, 28, .78) 57%, rgba(7, 25, 28, .45));
  }

  .game-intro__content {
    padding-top: min(34vh, 20rem);
  }

  .game-intro__copy {
    align-self: end;
  }

  .game-intro__copy h1 {
    font-size: clamp(4rem, 18vw, 7.2rem);
  }

  .setlist {
    max-width: 42rem;
  }

  .photo-credit {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 2rem, var(--solano-max));
    margin: 1rem auto 0;
  }
}

@media (max-width: 600px) {
  html body.rhythm-page:not(.is-playing) .accessibility-tools,
  html body.rhythm-page:not(.is-playing) .public-user-area--floating {
    position: absolute !important;
    top: calc(var(--solano-header) + .7rem) !important;
    bottom: auto !important;
  }

  html body.rhythm-page:not(.is-playing) .accessibility-tools {
    left: .7rem !important;
  }

  html body.rhythm-page:not(.is-playing) .public-user-area--floating {
    right: .7rem !important;
  }

  .game-intro {
    padding-top: 1rem;
  }

  .game-intro__content {
    min-height: auto;
    padding-top: 25vh;
  }

  .game-intro__copy .eyebrow {
    max-width: 23rem;
  }

  .game-intro__lead {
    font-size: .96rem;
  }

  .setlist__heading,
  .track-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .track-card.is-selected {
    padding-left: 1.25rem;
  }

  .setlist__tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .difficulty-picker__options {
    gap: .3rem;
  }

  .difficulty-picker__options span {
    min-height: 3.45rem;
    padding: .45rem;
  }

  .difficulty-picker__options small {
    font-size: .51rem;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    padding: .7rem 0;
  }

  .setting-row input[type='range'] {
    width: 100%;
  }

  .game-hud__top {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .score-block {
    position: absolute;
    top: calc(4.5rem + env(safe-area-inset-top));
    right: .85rem;
  }

  .leave-button {
    grid-column: 2;
    grid-row: 1;
  }

  .stage-meter {
    top: 43%;
  }

  .combo-block {
    top: 40%;
  }

  .fret-legend {
    width: 91vw;
  }

  .fret-legend kbd {
    font-size: 0;
  }

  .result-card__grade {
    font-size: 5rem;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .start-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen__pulse i,
  .performance__lights {
    animation: none;
  }

  .start-button,
  .track-card,
  .loading-progress i {
    transition: none;
  }
}

.high-contrast .game-intro__veil,
.high-contrast .performance::before,
.high-contrast .result-screen::before {
  opacity: 1;
}

.high-contrast .setlist,
.high-contrast .result-card {
  border: 2px solid #fff;
  background: #000;
}
