:root {
  --ink: #080808;
  --panel: #121212;
  --panel-high: #181818;
  --line: #2b2b28;
  --text: #f5f3ec;
  --muted: #9b9a92;
  --yellow: #ffd21c;
  --orange: #ff7a00;
  --ease: 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 210, 28, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--ink);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 22px 28px 150px;
}

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  display: flex;
  justify-content: space-between;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 8vw, 140px);
  align-items: end;
}

.hero h1 {
  margin: 0;
  max-width: 960px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(64px, 9vw, 148px);
  font-stretch: condensed;
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: var(--yellow);
}

.hero__copy {
  padding-bottom: 6px;
}

.hero__copy p {
  margin: 0 0 32px;
  color: #d7d5cd;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.scale-key {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.scale-key b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border: 1px solid #514f43;
  color: var(--yellow);
}

.voices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.voice-card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 38px);
  background: var(--panel);
  transition: background var(--ease), transform var(--ease);
}

.voice-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--yellow), var(--orange));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}

.voice-card:hover {
  z-index: 1;
  background: var(--panel-high);
}

.voice-card:hover::after,
.voice-card.is-rated::after {
  transform: scaleY(1);
}

.voice-card.is-unavailable {
  opacity: 0.58;
}

.voice-card.is-unavailable:hover {
  background: var(--panel);
}

.voice-card__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.voice-number {
  color: var(--yellow);
}

.voice-card h2 {
  margin: 48px 0 32px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(28px, 2.6vw, 42px);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.player {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #343430;
  background: #0c0c0c;
  transition: border-color var(--ease), transform var(--ease);
}

.player:hover {
  border-color: #5a5746;
  transform: translateY(-2px);
}

.play-button {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: #0a0a08;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  transition: background var(--ease), transform var(--ease);
}

.play-button:hover:not(:disabled) {
  background: var(--orange);
  transform: scale(1.06);
}

.play-button:disabled {
  background: #34342f;
  color: #77776e;
  cursor: not-allowed;
}

.player__body {
  min-width: 0;
  flex: 1;
}

.player__range {
  --progress: 0%;
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--yellow) var(--progress), #363632 var(--progress));
  cursor: pointer;
}

.player__range:disabled {
  cursor: default;
}

.player__range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  appearance: none;
  border: 2px solid #0c0c0c;
  border-radius: 50%;
  background: var(--yellow);
}

.player__range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #0c0c0c;
  border-radius: 50%;
  background: var(--yellow);
}

.player__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: #85857e;
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rating-fieldset {
  min-width: 0;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
}

.rating-fieldset:disabled {
  opacity: 0.45;
}

.rating-fieldset legend {
  margin-bottom: 12px;
  color: #c9c7bf;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
}

.rating-scale button {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 1px solid #3b3a35;
  background: transparent;
  color: #b6b4ac;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
}

.rating-scale button:hover {
  z-index: 1;
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-3px);
}

.rating-scale button.is-selected {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #080808;
  transform: translateY(-3px);
}

.rating-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #6f6f69;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.submit-dock {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 22px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: min(1444px, calc(100% - 56px));
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
  border: 1px solid #444239;
  background: rgba(15, 15, 14, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45);
}

.submit-dock > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.submit-dock__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.submit-dock strong {
  color: var(--yellow);
  font-size: 28px;
}

.submit-dock small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.submit-dock button,
.success button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  background: var(--yellow);
  color: #080808;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--ease), transform var(--ease);
}

.submit-dock button:hover:not(:disabled),
.success button:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.submit-dock button:disabled {
  background: #30302c;
  color: #85857e;
  cursor: not-allowed;
}

.submit-dock__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.submit-message {
  max-width: 360px;
  color: #ff8478;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.success {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: start;
  padding: 80px 0;
}

.success__mark {
  margin-bottom: 28px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.success h2 {
  max-width: 900px;
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(54px, 8vw, 120px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

.success p {
  margin: 24px 0 42px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1080px) {
  .hero {
    min-height: 64vh;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__copy {
    max-width: 640px;
  }

  .voices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  main {
    padding: 14px 14px 128px;
  }

  .hero {
    min-height: auto;
    padding: 8px 0 48px;
  }

  .hero__content {
    margin-top: 86px;
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(50px, 17vw, 78px);
    line-height: 0.84;
  }

  .hero__copy p {
    font-size: 16px;
  }

  .voices {
    grid-template-columns: 1fr;
  }

  .voice-card {
    padding: 24px 20px 28px;
  }

  .voice-card h2 {
    margin: 36px 0 24px;
  }

  .rating-scale {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .rating-scale button {
    aspect-ratio: auto;
    min-height: 44px;
  }

  .submit-dock {
    right: 14px;
    bottom: 12px;
    left: 14px;
    width: calc(100% - 28px);
    padding: 8px;
  }

  .submit-dock__label,
  .submit-dock small {
    display: none;
  }

  .submit-dock strong {
    min-width: 42px;
    padding-left: 8px;
    font-size: 25px;
  }

  .submit-dock button {
    flex: 1;
    gap: 16px;
    min-height: 54px;
    padding: 0 16px;
    font-size: 11px;
  }

  .submit-dock__action {
    min-width: 0;
    flex: 1;
    gap: 8px;
  }

  .submit-message {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    max-width: none;
    padding: 10px 12px;
    background: #251310;
    text-align: center;
  }

  .player__meta span:first-child {
    display: none;
  }

  .player__meta {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

[hidden] {
  display: none !important;
}

body.is-complete main {
  min-height: 100svh;
}

.success {
  min-height: 100svh;
}

.success button {
  min-width: min(320px, 100%);
  cursor: pointer;
}

.sending-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
}

.sending-overlay__panel {
  width: min(620px, 100%);
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid #484638;
  background: #0d0d0c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.sending-overlay__mark {
  display: block;
  margin-bottom: 22px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sending-overlay strong {
  display: block;
  max-width: 520px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}

.sending-overlay p {
  max-width: 480px;
  margin: 28px 0 36px;
  color: var(--muted);
  line-height: 1.5;
}

.sending-overlay__pulse {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #292824;
}

.sending-overlay__pulse::after {
  display: block;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  content: "";
  animation: sending-pulse 1s ease-in-out infinite alternate;
}

body.is-sending {
  overflow: hidden;
}

@keyframes sending-pulse {
  from { transform: translateX(0); }
  to { transform: translateX(194%); }
}

@media (max-width: 640px) {
  .success {
    align-content: center;
    min-height: 100svh;
    padding: 42px 0;
  }

  .success h2 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .sending-overlay {
    padding: 14px;
  }

  .sending-overlay__panel {
    padding: 34px 24px;
  }
}
