:root {
  color-scheme: dark;
  --ink: #171719;
  --panel: #fff1d6;
  --paper: #ffe6bd;
  --muted: #7d705f;
  --line: #252326;
  --pink: #f06f9d;
  --orange: #ff8b5f;
  --yellow: #ffd66b;
  --teal: #31b6aa;
  --green: #79bd77;
  --blue: #4aa8c7;
  --purple: #8a74df;
  --white: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--line);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 107, 0.22) 0 110px, transparent 112px),
    radial-gradient(circle at 88% 16%, rgba(49, 182, 170, 0.2) 0 140px, transparent 142px),
    radial-gradient(circle at 50% 106%, rgba(240, 111, 157, 0.16) 0 260px, transparent 262px),
    repeating-radial-gradient(circle at 82% 92%, transparent 0 18px, rgba(255, 250, 240, 0.04) 18px 20px),
    #141417;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(255, 241, 214, 0.08) 54% 55%, transparent 55%),
    radial-gradient(circle at 22px 22px, rgba(255, 250, 240, 0.12) 1.2px, transparent 1.4px) 0 0 / 44px 44px;
}

button,
input {
  font: inherit;
}

a {
  color: var(--teal);
  font-weight: 850;
}

button,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--line);
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--line);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

button:active,
.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--line);
}

button:disabled {
  color: rgba(37, 35, 38, 0.48);
  background: #d5c9b6;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: 0 3px 0 rgba(37, 35, 38, 0.52);
}

.button.quiet {
  color: var(--white);
  background: #24232d;
}

input {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--line);
  background: var(--white);
  outline: none;
}

input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(240, 111, 157, 0.22);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--white);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(58px, 10vw, 116px);
  line-height: 0.82;
  letter-spacing: 0;
  max-width: 10ch;
  text-shadow:
    4px 0 0 var(--pink),
    8px 0 0 var(--orange),
    12px 0 0 var(--purple);
}

h2 {
  color: var(--white);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.95;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.music-kit {
  display: none;
}

.shell,
.submit-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 36px auto;
}

.shell {
  display: grid;
  grid-template-columns: minmax(360px, 490px) minmax(520px, 1fr);
  gap: 32px;
}

.submit-shell {
  width: min(920px, calc(100vw - 32px));
}

.control-panel,
.preview-panel,
.viewer-panel {
  position: relative;
  min-width: 0;
}

.topline,
.preview-head,
.overlay header,
.song-head,
.song-foot,
.actions,
#mock-form,
.viewer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topline {
  position: relative;
  align-items: flex-start;
  min-height: 230px;
  padding: 10px 0 38px;
}

.topline::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 42px;
  width: 230px;
  height: 122px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 31% 52%, var(--line) 0 20px, var(--panel) 21px 28px, transparent 29px),
    radial-gradient(circle at 69% 52%, var(--line) 0 20px, var(--panel) 21px 28px, transparent 29px),
    linear-gradient(var(--panel) 0 35%, var(--pink) 35% 64%, var(--paper) 64%);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.25);
  opacity: 0.92;
  transform: rotate(5deg);
}

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

.eyebrow,
#state-label {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status,
.section-head strong,
.preview-head strong,
.overlay header strong {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--line);
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--line);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status.on {
  background: var(--green);
}

.viewer-card {
  justify-content: flex-start;
  margin: 0 0 24px;
  padding: 14px 18px;
  color: var(--white);
  background:
    linear-gradient(90deg, #24232d 0 calc(100% - 120px), var(--pink) calc(100% - 120px) calc(100% - 76px), #24232d calc(100% - 76px));
  border-radius: 999px;
}

.viewer-card strong,
.viewer-card span {
  display: block;
}

.viewer-card span,
.notice,
.hint,
.error {
  color: var(--muted);
  font-size: 13px;
}

.viewer-card span {
  color: rgba(255, 250, 240, 0.72);
}

.guest-card {
  background:
    linear-gradient(90deg, #24232d 0 calc(100% - 96px), var(--yellow) calc(100% - 96px) calc(100% - 52px), #24232d calc(100% - 52px));
}

.guest-card strong {
  color: var(--yellow);
}

.avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
}

.guest-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--line);
  background: var(--yellow);
  font-weight: 950;
}

.notice {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 14px;
  color: var(--line);
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 850;
}

.notice.warning {
  background: var(--orange);
}

.settings-hint {
  color: rgba(255, 250, 240, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.wide {
  grid-column: 1 / -1;
}

.actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 4px;
}

.mock-box,
.bracket-panel {
  position: relative;
  margin-top: 24px;
  padding: 24px;
  color: var(--line);
  background: rgba(255, 241, 214, 0.96);
  border-radius: 42px;
}

.mock-box::before,
.bracket-panel::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -7px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--teal));
}

.mock-box::after,
.bracket-panel::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel) 0 9px, transparent 10px),
    repeating-radial-gradient(circle, rgba(37, 35, 38, 0.18) 0 6px, transparent 6px 10px);
  opacity: 0.5;
}

.section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-head h2,
.preview-head h2 {
  color: var(--line);
  text-shadow: none;
}

.search-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 18px;
}

.spotify-results {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.spotify-result {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--line);
  background: var(--white);
  border-radius: 999px;
}

.spotify-result::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pink);
  transform: translate(-50%, -50%);
  opacity: 0.45;
}

.spotify-result.is-added {
  background: #d8cfbd;
}

.spotify-result form {
  margin: 0;
}

.spotify-result img,
.cover-placeholder {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background:
    radial-gradient(circle, var(--panel) 0 8px, var(--pink) 9px 15px, transparent 16px),
    repeating-radial-gradient(circle, var(--line) 0 7px, #34323b 7px 10px);
}

.spotify-result strong,
.spotify-result span,
.spotify-result em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-result strong {
  font-size: 17px;
}

.spotify-result span,
.spotify-result em,
.search-message {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.search-message,
.empty-row,
.empty {
  padding: 15px 16px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.68);
  border-radius: 28px;
  font-weight: 800;
}

.song-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.song-actions audio {
  width: min(260px, 100%);
  height: 34px;
}

.no-snippet {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bracket-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bracket-targets span {
  display: inline-flex;
  min-width: 40px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--line);
  background: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.bracket-targets .current {
  background: var(--teal);
}

.compact-actions {
  margin-top: 14px;
}

.submissions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-height: 390px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.submissions li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--line);
  background: var(--white);
  border-radius: 999px;
}

.submissions span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--line);
  background: var(--yellow);
  font-weight: 850;
}

.submissions strong,
.submissions em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submissions em,
.submissions small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.submissions a {
  color: var(--teal);
  font-size: 12px;
}

.submissions form {
  margin: 0;
}

.submissions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.viewer-requests .capacity-row {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.viewer-requests .capacity-row span {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.preview-head {
  align-items: flex-start;
  margin: 10px 0 20px;
}

.songs {
  display: grid;
  gap: 14px;
}

.song {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: var(--line);
  background:
    linear-gradient(90deg, transparent 0 34%, var(--pink) 34% 64%, transparent 64%),
    var(--panel);
  border-radius: 28px;
}

.song::before,
.song::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--panel) 0 9px, var(--line) 10px 15px, transparent 16px),
    rgba(37, 35, 38, 0.18);
  transform: translateY(-50%);
  opacity: 0.55;
}

.song::before {
  left: 22px;
}

.song::after {
  right: 22px;
}

.song-b {
  background:
    linear-gradient(90deg, transparent 0 34%, var(--teal) 34% 64%, transparent 64%),
    #d9f0eb;
}

.song-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.song-head strong {
  display: block;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
}

.song-cover {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  object-fit: cover;
}

.song-head a {
  display: inline-flex;
  margin-top: 7px;
  font-size: 12px;
}

.song-head span,
.song-foot {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.song-head b {
  min-width: 58px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--line);
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--line);
  font-size: 30px;
}

.meter {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  margin: 15px 0 10px;
  background: rgba(255, 250, 240, 0.75);
}

.meter i {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  transition: width 320ms ease;
  background: var(--orange);
}

.song-b .meter i {
  background: var(--teal);
}

.song-foot {
  position: relative;
  z-index: 1;
}

.vote-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.vote-buttons .button {
  min-height: 58px;
  font-size: 18px;
}

.vote-buttons .vote-a,
.advance-actions .vote-a {
  background: var(--orange);
}

.vote-buttons .vote-b,
.advance-actions .vote-b {
  background: var(--teal);
}

.advance-actions {
  margin-top: 14px;
}

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 16px 2px 4px;
}

.bracket-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.65);
  border-radius: 28px;
}

.bracket-empty strong {
  color: var(--line);
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 10px;
}

.bracket-round h3 {
  margin: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bracket-matches {
  display: grid;
  gap: 10px;
}

.bracket-match {
  display: grid;
  overflow: hidden;
  color: var(--line);
  background: var(--white);
  border-radius: 22px;
}

.bracket-match.active {
  background: #ffe1eb;
}

.bracket-match div {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
}

.bracket-match div + div {
  border-top: 2px dashed rgba(37, 35, 38, 0.14);
}

.bracket-match span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bracket-match .winner span {
  color: var(--line);
}

.chat-test {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.hint {
  margin-top: 12px;
  font-weight: 800;
}

#mock-form {
  margin-top: 14px;
}

.champion {
  padding: 24px;
  color: var(--line);
  background: var(--yellow);
  border-radius: 28px;
}

.champion span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.champion strong {
  display: block;
  margin-top: 8px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.9;
}

.champion em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.messages {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 250, 240, 0.72);
  font-size: 13px;
  font-weight: 750;
}

.messages li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages .vote {
  color: var(--teal);
}

.error {
  margin-top: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.overlay-link {
  display: inline-flex;
  margin-top: 18px;
}

.control-page .shell {
  width: min(1260px, calc(100vw - 48px));
  grid-template-columns: minmax(360px, 420px) minmax(520px, 1fr);
  gap: 30px;
  margin: 28px auto;
}

.control-page .topline {
  min-height: 116px;
  padding: 0 0 20px;
}

.control-page .topline::before {
  right: 12px;
  bottom: 18px;
  width: 140px;
  height: 76px;
  opacity: 0.34;
  transform: rotate(4deg);
}

.control-page .topline h1 {
  font-size: clamp(44px, 7vw, 76px);
  max-width: 7ch;
}

.control-page .form-grid {
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.control-page label {
  color: rgba(255, 250, 240, 0.82);
}

.control-page input {
  min-height: 44px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 3px solid rgba(255, 250, 240, 0.45);
  border-radius: 0;
  box-shadow: none;
}

.control-page input:focus {
  border-color: var(--yellow);
  box-shadow: none;
}

.control-page button,
.control-page .button {
  border: 0;
  border-radius: 0;
  clip-path: polygon(7% 0, 100% 7%, 94% 100%, 0 88%);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.control-page .button.quiet {
  color: var(--white);
  background: #24232d;
}

.control-page .mock-box,
.control-page .bracket-panel {
  margin-top: 28px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.control-page .mock-box::before,
.control-page .mock-box::after,
.control-page .bracket-panel::before,
.control-page .bracket-panel::after {
  display: none;
}

.control-page .section-head h2,
.control-page .preview-head h2 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 42px);
  text-shadow:
    3px 0 0 var(--pink),
    6px 0 0 var(--orange),
    9px 0 0 var(--purple);
}

.control-page .section-head strong,
.control-page .preview-head strong {
  border: 0;
  padding: 0;
  color: var(--yellow);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

.control-page .preview-head {
  margin: 4px 0 14px;
}

.control-page .search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
}

.control-page .spotify-result,
.control-page .submissions li,
.control-page .bracket-empty,
.control-page .bracket-match {
  color: var(--white);
  background: transparent;
  border-radius: 0;
}

.control-page .spotify-result {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 12px 0;
}

.control-page .spotify-result::before {
  display: none;
}

.control-page .spotify-result strong,
.control-page .submissions strong {
  color: var(--white);
}

.control-page .spotify-result span,
.control-page .spotify-result em,
.control-page .submissions em,
.control-page .submissions small,
.control-page .bracket-empty span,
.control-page .bracket-match span {
  color: rgba(255, 250, 240, 0.68);
}

.control-page .submissions {
  gap: 0;
  max-height: 440px;
  margin-top: 12px;
}

.control-page .submissions li {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 62px;
  padding: 10px 0 12px 58px;
}

.control-page .submissions li::after {
  content: "";
  position: absolute;
  left: 58px;
  right: 20%;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), transparent);
  transform: rotate(-0.6deg);
  opacity: 0.8;
}

.control-page .submissions span {
  position: absolute;
  left: 0;
  top: 9px;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle, var(--panel) 0 7px, transparent 8px),
    repeating-radial-gradient(circle, #171719 0 6px, #33313a 6px 9px);
  color: var(--yellow);
  box-shadow: 4px 4px 0 var(--pink);
}

.control-page .submissions a {
  color: var(--teal);
}

.control-page .empty-row,
.control-page .empty,
.control-page .search-message {
  color: rgba(255, 250, 240, 0.7);
  background: transparent;
  border-radius: 0;
  padding: 12px 0;
}

.control-page .bracket-targets span {
  border: 0;
  color: var(--white);
  background: transparent;
  box-shadow: 0 3px 0 var(--pink);
}

.control-page .bracket-targets .current {
  color: var(--line);
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--pink);
}

.control-page .compact-actions {
  margin-top: 12px;
}

.control-page .preview-panel .songs {
  gap: 12px;
}

.control-page .preview-panel .song {
  min-height: 0;
  padding: 14px;
  color: var(--white);
  background: transparent;
  border-radius: 0;
}

.control-page .preview-panel .song::before,
.control-page .preview-panel .song::after {
  display: none;
}

.control-page .preview-panel .song-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
}

.control-page .preview-panel .song-cover {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.control-page .preview-panel .song-head strong {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1;
}

.control-page .preview-panel .song-head b {
  min-width: 50px;
  min-height: 50px;
  font-size: 24px;
  border: 0;
  box-shadow:
    4px 4px 0 var(--pink),
    8px 8px 0 var(--purple);
}

.control-page .preview-panel .song-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.control-page .preview-panel .song-actions audio {
  width: min(220px, 100%);
  height: 34px;
}

.control-page .preview-panel .meter {
  height: 8px;
  margin: 10px 0 6px;
  background: transparent;
}

.control-page .preview-panel .meter i {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.control-page .preview-panel .song-foot {
  color: rgba(255, 250, 240, 0.68);
  font-size: 12px;
}

.control-page .preview-panel .song-b .meter i {
  background: linear-gradient(90deg, var(--teal), var(--yellow));
}

.control-page .bracket-panel {
  margin-top: 14px;
}

.control-page .vote-buttons {
  margin-top: 14px;
}

.control-page .messages {
  max-height: 180px;
  overflow: auto;
}

.overlay-page {
  min-height: 100vh;
  background: transparent;
}

.overlay-page::before {
  display: none;
}

.overlay-showcase {
  position: fixed;
  left: 50%;
  bottom: 24px;
  width: min(980px, calc(100vw - 120px));
  display: grid;
  gap: 24px;
  transform: translateX(-50%);
}

.overlay-choice {
  display: grid;
  gap: 4px;
}

.overlay-choice-label {
  width: fit-content;
  margin-left: 36px;
  padding: 0;
  color: var(--yellow);
  background: transparent;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-bar {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(240px, 300px) minmax(250px, 1fr);
  align-items: center;
  column-gap: 34px;
  min-height: 76px;
  overflow: visible;
  color: var(--white);
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.24));
}

.bar-song,
.bar-center,
.score-pocket {
  position: relative;
  z-index: 1;
}

.bar-song {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.bar-song-a {
  grid-template-columns: 42px minmax(0, 1fr) 46px;
}

.bar-song-b {
  grid-template-columns: 46px minmax(0, 1fr) 42px;
  text-align: right;
}

.bar-cover {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  background:
    radial-gradient(circle, var(--panel) 0 8px, var(--pink) 9px 15px, transparent 16px),
    repeating-radial-gradient(circle, var(--line) 0 7px, #34323b 7px 10px);
}

.bar-copy {
  min-width: 0;
}

.bar-copy strong,
.bar-copy span,
.bar-center strong,
.bar-center span,
.bar-center em,
.score-pocket strong,
.score-pocket span,
.score-pocket em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-copy strong {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--white);
  font-size: 23px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.75);
}

.bar-copy span,
.bar-center span,
.bar-center em,
.score-pocket span,
.score-pocket em {
  color: rgba(255, 250, 240, 0.74);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.bar-song b,
.score-pocket b {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--line);
  background: var(--yellow);
  border: 0;
  border-radius: 50%;
  box-shadow:
    4px 4px 0 var(--pink),
    8px 8px 0 var(--purple);
  font-size: 22px;
  font-weight: 950;
}

.bar-center {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: 58px;
  padding: 7px 16px;
  color: var(--line);
  background: rgba(255, 241, 214, 0.96);
  clip-path: polygon(4% 9%, 94% 0, 100% 82%, 10% 100%, 0 44%);
  text-align: center;
}

.bar-center strong,
.score-pocket strong {
  max-width: 100%;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--line);
  font-size: 28px;
  line-height: 1;
  text-shadow: none;
}

.bar-center span,
.bar-center em {
  color: var(--muted);
}

.cassette-bar {
  padding: 8px 18px;
}

.cassette-bar::before,
.cassette-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
}

.cassette-bar::before {
  top: 6px;
  width: 260px;
  height: 14px;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--teal), var(--purple));
  transform: translateX(-50%) rotate(-8deg);
}

.cassette-bar::after {
  bottom: 5px;
  width: 230px;
  height: 12px;
  background: rgba(255, 241, 214, 0.92);
  transform: translateX(-50%) rotate(5deg);
}

.cassette-bar .bar-center span,
.cassette-bar .bar-center em,
.deck-bar .bar-center span,
.deck-bar .bar-center em {
  color: var(--muted);
}

.deck-bar {
  min-height: 78px;
  padding: 8px 18px;
  grid-template-columns: minmax(250px, 1fr) minmax(250px, 310px) minmax(250px, 1fr);
}

.deck-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 170px;
  height: 20px;
  background:
    radial-gradient(circle at 18% 50%, var(--panel) 0 8px, transparent 9px),
    radial-gradient(circle at 82% 50%, var(--panel) 0 8px, transparent 9px);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.deck-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--yellow) 0 9px, transparent 10px),
    repeating-radial-gradient(circle, #171719 0 8px, #30303a 8px 12px);
  transform: translate(-50%, -50%);
}

.score-pocket {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
}

.score-pocket > div {
  min-width: 0;
  padding: 7px 16px;
  background: rgba(255, 241, 214, 0.96);
  clip-path: polygon(3% 12%, 96% 0, 100% 78%, 8% 100%, 0 42%);
}

.score-pocket span,
.score-pocket em {
  color: var(--muted);
}

.needle-bar {
  min-height: 72px;
  padding: 8px 16px;
  grid-template-columns: minmax(250px, 1fr) minmax(240px, 300px) minmax(250px, 1fr);
}

.needle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 0;
  width: 250px;
  height: 12px;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--pink));
  border-radius: 999px;
  transform: translateX(-50%) rotate(-8deg);
}

.needle-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  z-index: 0;
  width: 4px;
  height: 52px;
  background: var(--yellow);
  border-radius: 999px;
  transform: translateX(-50%) rotate(18deg);
}

.needle-bar .bar-copy strong,
.needle-bar .bar-center strong {
  font-size: 20px;
}

.needle-bar .bar-copy span,
.needle-bar .bar-center span,
.needle-bar .bar-center em {
  color: rgba(255, 250, 240, 0.66);
}

.needle-bar .bar-song-a {
  grid-template-columns: 34px minmax(0, 1fr) 46px;
}

.needle-bar .bar-song-b {
  grid-template-columns: 46px minmax(0, 1fr) 34px;
}

.side-label {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  color: var(--line);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--pink);
  font-weight: 950;
}

.single-overlay-design .overlay-showcase {
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(720px, calc(100vw - 220px));
  transform: translateX(-50%);
}

.single-overlay-design .overlay-choice {
  display: block;
}

.single-overlay-design .overlay-choice-label {
  display: none;
}

.test-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.test-tools[hidden] {
  display: none;
}

.test-tools a {
  margin-left: auto;
}

@media (max-width: 980px) {
  .shell,
  .shell.tournament-shell {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(52px, 15vw, 92px);
  }

  .overlay-showcase,
  .single-overlay-design .overlay-showcase {
    width: min(680px, calc(100vw - 120px));
  }

  .stream-bar {
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 210px) minmax(150px, 1fr);
  }

  .bar-copy strong {
    font-size: 18px;
  }

  .bar-center strong,
  .score-pocket strong {
    font-size: 22px;
  }
}

@media (max-width: 720px) {
  .topline,
  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .topline::before {
    right: -70px;
    bottom: 20px;
    transform: scale(0.72) rotate(5deg);
  }

  .form-grid,
  .search-form,
  .chat-test,
  .submissions li,
  .spotify-result {
    grid-template-columns: 1fr;
  }

  .mock-box,
  .bracket-panel {
    padding: 20px;
    border-radius: 30px;
  }

  .song-head,
  .song-foot,
  #mock-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .vote-buttons {
    grid-template-columns: 1fr;
  }

  .overlay-showcase,
  .single-overlay-design .overlay-showcase {
    width: min(520px, calc(100vw - 56px));
  }

  .stream-bar {
    grid-template-columns: 1fr 132px 1fr;
    min-height: 70px;
    padding-inline: 8px;
  }

  .bar-song-a,
  .bar-song-b,
  .needle-bar .bar-song-a,
  .needle-bar .bar-song-b {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .bar-song-b {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .bar-cover,
  .side-label {
    display: none;
  }

  .bar-song b,
  .score-pocket b {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
