/* The soundcheck uses the room's screenprint and ink palette. */
#soundcheck {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 76% 50%, #3b2837, #281c29 70%);
  color: var(--paper);
}
#soundcheck::backdrop { background: var(--ink); }
html:has(#soundcheck[open]) { overflow: hidden; }
.entry-shell {
  max-width: 1220px;
  margin: auto;
  padding: 0 clamp(20px, 4vw, 54px);
}
.entry-mast {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
#soundcheckAudio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  background: transparent;
  padding: 5px 12px;
  min-height: 38px;
  color: var(--paper);
  border-color: #8d6a7b;
}
.entry-levels { display: inline-flex; gap: 2px; align-items: center; height: 15px; }
.entry-levels i { width: 2px; background: var(--orange); height: 52%; }
.entry-levels i:nth-child(2) { height: 100%; }
.entry-levels i:nth-child(3) { height: 74%; }
#soundcheckAudio[aria-pressed="false"] .entry-levels i { height: 2px; background: var(--muted); }
.entry-stage {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(26px, 6vw, 84px);
  min-height: calc(100svh - 76px);
  padding: clamp(32px, 8vh, 84px) 6px clamp(44px, 10vh, 100px);
}
.entry-copy .kicker { margin: 0 0 22px; }
#soundcheckTitle {
  color: var(--paper);
  font-size: clamp(6rem, 10.8vw, 9.8rem);
  line-height: .79;
  letter-spacing: -.087em;
  margin: 0;
}
#soundcheckTitle span { color: var(--orange); }
#soundcheckHelp {
  max-width: 31ch;
  margin: clamp(20px, 3.4vh, 38px) 0 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.5;
}
#soundcheckEnter {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}
#soundcheckEnter:hover { background: #ffad7f; }
#soundcheckEnter:focus-visible, .entry-strings button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
.entry-instrument {
  width: 100%;
  max-width: 560px;
  justify-self: center;
  transform: rotate(1.5deg);
  border: 1px solid #180f19;
  background: #30212f;
  box-shadow: 6px 7px 0 #160e18, 7px 8px 0 #6b4e5f;
}
.entry-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(148px, 17vw, 228px);
  background: #dca7bb radial-gradient(#ac758f .9px, transparent 1.2px) 0 0 / 4px 4px;
}
.entry-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 113deg at 15% 116%, #301e30 0deg 3deg, transparent 3.2deg 12deg);
  clip-path: polygon(0 6%, 46% 100%, 0 100%);
}
.entry-art img {
  width: 87%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 1%;
  object-fit: contain;
  transform: rotate(-5deg);
  filter: drop-shadow(2px 3px 0 #442d40);
  user-select: none;
  pointer-events: none;
}
.entry-deck { padding: 14px clamp(12px, 2.3vw, 28px) 15px; border-top: 3px solid #1f1722; }
.entry-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 5px;
  font: 700 .68rem/1.5 ui-monospace, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--pink);
}
.entry-key-hint { color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.entry-strings {
  position: relative;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.entry-strings::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 8px 0 34px;
  background: linear-gradient(90deg, transparent 18%, #745567 18% 18.6%, transparent 18.6% 48%, #745567 48% 48.6%, transparent 48.6% 75%, #745567 75% 75.6%, transparent 75.6%);
  opacity: .5;
}
.entry-strings button {
  position: relative;
  width: 100%;
  height: clamp(25px, 3.8vh, 36px);
  min-height: 0;
  border: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
  color: var(--paper);
  font: 700 .8rem/1 ui-monospace, monospace;
  cursor: crosshair;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  --gauge: 1.3px;
  --wire: #e6ccc0;
}
.entry-strings button:nth-child(2) { --gauge: 1.15px; }
.entry-strings button:nth-child(3) { --gauge: 1px; }
.entry-strings button:nth-child(4) { --gauge: .85px; }
.entry-strings button:nth-child(5) { --gauge: .7px; }
.entry-strings button:nth-child(6) { --gauge: .6px; }
.entry-strings button i {
  position: absolute;
  left: 34px;
  right: 0;
  height: 18px;
  top: calc(50% - 9px);
  background: var(--wire);
  clip-path: polygon(0 calc(50% - var(--gauge)), 100% calc(50% - var(--gauge)), 100% calc(50% + var(--gauge)), 0 calc(50% + var(--gauge)));
  pointer-events: none;
}
.entry-strings button::after {
  content: "";
  position: absolute;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wire);
}
.entry-strings button:is(:focus-visible, .is-ringing) { color: var(--orange); --wire: var(--orange); }
@media (hover: hover) {
  .entry-strings button:hover { color: var(--orange); --wire: var(--orange); }
}
@media (pointer: coarse) { .entry-key-hint { display: none; } }
#replaySoundcheck {
  margin-top: 10px;
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 5px 2px;
  font-size: .85rem;
}
#replaySoundcheck:hover { color: var(--paper); }
#replaySoundcheck span { color: var(--pink); margin-right: .25em; }
@media (max-width: 680px) {
  .entry-mast { min-height: 59px; }
  .entry-stage {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 27px;
    padding: 32px 2px 32px;
  }
  .entry-copy .kicker { margin-bottom: 12px; }
  #soundcheckTitle { font-size: clamp(3.6rem, 12.8vw, 6.1rem); line-height: .87; white-space: nowrap; }
  #soundcheckTitle br { display: none; }
  #soundcheckHelp { margin: 14px 0; max-width: 38ch; font-size: .98rem; }
  #soundcheckEnter { min-height: 43px; }
  .entry-instrument { max-width: 520px; transform: rotate(1deg); }
  .entry-art { height: clamp(100px, 24vw, 143px); }
  .entry-art img { right: 4%; width: 83%; }
  .entry-deck { padding: 10px 15px 12px; }
  .entry-strings button { height: 29px; }
}
