.sound-mixer-page {
  background: #f5f1e9;
  color: #17231e;
}
.mixer-kicker {
  margin: 0 0 0.8rem;
  color: #6d594d;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mixer-hero {
  min-height: 470px;
  padding: calc(76px + clamp(2rem, 4vw, 3.5rem)) clamp(1.2rem, 8vw, 9rem)
    clamp(2.2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(192, 218, 203, 0.86), transparent 29%),
    radial-gradient(circle at 8% 92%, rgba(244, 221, 184, 0.75), transparent 28%),
    #f7f3ea;
}
.mixer-hero h1 {
  max-width: 12ch;
  margin: 0.7rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 6.4vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
}
.mixer-hero h1 em {
  color: #17634f;
  font-weight: 400;
}
.mixer-deck {
  max-width: 44rem;
  color: #4c5c53;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}
.mixer-answer {
  max-width: 48rem;
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 3px solid #17634f;
  color: #4c5c53;
  font-size: 0.92rem;
  line-height: 1.55;
}
.hero-rings {
  width: min(100%, 320px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-rings span {
  position: absolute;
  width: 92%;
  height: 70%;
  border: 1px solid rgba(23, 59, 50, 0.18);
  border-radius: 50%;
}
.hero-rings span:nth-child(2) {
  rotate: 58deg;
  width: 82%;
}
.hero-rings span:nth-child(3) {
  rotate: 112deg;
  width: 68%;
}
.hero-rings strong {
  z-index: 1;
  max-width: 8ch;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.3rem);
  font-weight: 400;
  line-height: 0.85;
}
.mixer-section,
.mixer-wrap {
  max-width: 1180px;
  margin: auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.2rem;
}
.preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.preset-row button {
  padding: 0.8rem;
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.preset-row button:hover,
.preset-row button:focus-visible,
.preset-row button[aria-pressed="true"] {
  border-color: #f2df65;
  background: rgba(242, 223, 101, 0.12);
}
.preset-row span {
  color: #afbeb5;
  font-size: 0.64rem;
}
.preset-row strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
}
.mixer-wrap {
  max-width: 1240px;
  margin: clamp(1rem, 3vw, 2.5rem) auto;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border-radius: 34px;
  background: #173b32;
  color: #fff;
  box-shadow: 0 36px 90px rgba(19, 48, 40, 0.16);
}
.mixer-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.mixer-wrap .mixer-kicker {
  color: #c6d5cc;
}
.mixer-topline h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.mix-state {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  align-items: center;
  min-width: 175px;
}
.mix-state strong,
.mix-state small {
  display: block;
}
.mix-state small {
  color: #adbbb3;
  font-size: 0.68rem;
}
.mix-pulse {
  grid-row: 1 / 3;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #7f968b;
}
.mixer-start-row {
  margin: 1.5rem 0 1rem;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.control-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #c6d5cc;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.transport-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}
.console-options {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: end;
}
.channel-heading {
  margin-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #afbeb5;
  font-size: 0.68rem;
}
.channel-heading .control-label { margin: 0; }
.is-playing .mix-pulse {
  background: #f2df65;
  box-shadow: 0 0 0 7px rgba(242, 223, 101, calc(0.1 + var(--mix-density) * 0.18));
  animation: mixer-pulse 1.8s ease-in-out infinite;
}
@keyframes mixer-pulse {
  50% { transform: scale(0.75); }
}
.mixer-channels {
  margin: 0.75rem 0 1rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 0.75rem;
}
.mixer-channel {
  min-height: 285px;
  padding: 0.85rem 0.65rem;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.mixer-channel.has-level {
  border-color: rgba(242, 223, 101, 0.42);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.channel-mark {
  min-height: 34px;
  color: #f2df65;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}
.mixer-channel strong {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
}
.mixer-channel small {
  min-height: 36px;
  margin-top: 0.35rem;
  color: #afbeb5;
  font-size: 0.62rem;
  line-height: 1.35;
}
.mixer-channel input {
  width: 9px;
  height: 112px;
  margin: 0.65rem 0;
  accent-color: #f2df65;
  cursor: ns-resize;
  direction: rtl;
  writing-mode: vertical-lr;
}
.mixer-channel output {
  min-width: 52px;
  padding: 0.42rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
}
.mixer-console {
  min-width: 0;
}
.console-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: #afbeb5;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.console-field > div {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.console-field input {
  width: min(260px, 100%);
  accent-color: #f2df65;
}
.console-field output {
  min-width: 38px;
  font-size: 0.72rem;
}
.console-field select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #294b42;
  color: #fff;
  padding: 0.7rem;
}
.mix-start,
.mix-secondary {
  min-height: 42px;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.mix-start {
  background: #f2df65;
  color: #173b32;
}
.mix-secondary {
  background: #f7f3ea;
  color: #173b32;
}
.mixer-utilities {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}
.mixer-utilities button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #c6d5cc;
  cursor: pointer;
  font-size: 0.7rem;
}
.mix-status {
  min-height: 1.5em;
  margin: 0 0 0.5rem;
  color: #c6d5cc;
  font-size: 0.75rem;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.method-grid article {
  padding: 1rem;
  border: 1px solid rgba(23, 59, 50, 0.14);
  border-radius: 18px;
  background: #fff;
}
.method-grid span {
  color: #8c5948;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.method-grid h3 {
  margin: 0.35rem 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}
.method-grid p,
.help-content p {
  color: #4c5c53;
  line-height: 1.65;
}
.mixer-help {
  max-width: 980px;
}
.mixer-help details {
  border-top: 1px solid rgba(23, 59, 50, 0.18);
}
.mixer-help details:last-of-type {
  border-bottom: 1px solid rgba(23, 59, 50, 0.18);
}
.mixer-help summary {
  padding: 1.2rem 2.5rem 1.2rem 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.mixer-help summary::-webkit-details-marker { display: none; }
.mixer-help summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--sans);
  font-size: 1.5rem;
}
.mixer-help details[open] summary::after { content: "−"; }
.help-content {
  padding: 0 0 1.4rem;
}
.help-content > p {
  max-width: 780px;
}
.mixer-help a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.mixer-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mixer-next a {
  padding: 1.5rem;
  border-radius: 18px;
  background: #e4eafd;
}
.mixer-next span,
.mixer-next strong {
  display: block;
}
.mixer-next span {
  margin-bottom: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mixer-next strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}
@media (max-width: 1050px) {
  .mixer-channels { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
}
@media (max-width: 820px) {
  .mixer-hero { grid-template-columns: 1fr; }
  .hero-rings { display: none; }
  .mixer-start-row { grid-template-columns: 1fr; }
  .channel-heading > span:last-child { display: none; }
  .mixer-channels { grid-template-columns: 1fr; gap: 0.42rem; }
  .mixer-channel,
  .mixer-channel:last-child {
    min-height: 76px;
    padding: 0.7rem;
    grid-column: auto;
    grid-template-columns: 34px minmax(120px, 0.65fr) minmax(180px, 1fr) 42px;
    grid-template-rows: 1fr 1fr;
    gap: 0 0.7rem;
    align-items: center;
    justify-items: stretch;
    text-align: left;
  }
  .mixer-channel.has-level { transform: none; }
  .channel-mark { grid-row: 1 / 3; min-height: 0; font-size: 1.55rem; text-align: center; }
  .mixer-channel strong { grid-column: 2; grid-row: 1; margin: 0; font-family: var(--sans); font-size: 0.78rem; font-weight: 700; }
  .mixer-channel small { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; font-size: 0.54rem; }
  .mixer-channel input {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 100%;
    height: auto;
    margin: 0;
    direction: ltr;
    writing-mode: horizontal-tb;
    cursor: ew-resize;
  }
  .mixer-channel output { grid-column: 4; grid-row: 1 / 3; min-width: 0; padding: 0.35rem; text-align: center; }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mixer-hero { padding: 6.4rem 1rem 2rem; min-height: auto; }
  .mixer-hero h1 { font-size: 3.45rem; }
  .mixer-answer { font-size: 0.85rem; }
  .mixer-wrap { margin: 0.6rem; padding: 1.15rem 0.7rem; border-radius: 22px; }
  .mixer-topline { align-items: start; gap: 0.75rem; }
  .mixer-topline h2 { font-size: 2.35rem; }
  .mix-state { min-width: 118px; }
  .mixer-start-row { padding: 0.75rem; }
  .preset-row { gap: 0.35rem; }
  .preset-row button { padding: 0.65rem 0.5rem; }
  .preset-row strong { font-family: var(--sans); font-size: 0.73rem; font-weight: 700; }
  .preset-row span { display: none; }
  .transport-row { grid-template-columns: 1fr 0.55fr; }
  .console-options { grid-template-columns: 1fr 104px; }
  .console-field select { width: 100%; }
  .mixer-channel,
  .mixer-channel:last-child {
    grid-template-columns: 34px minmax(92px, 0.7fr) minmax(100px, 1fr) 42px;
  }
  .mixer-utilities { justify-content: space-between; margin-bottom: 0.2rem; }
  .mixer-help { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .mixer-next { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing .mix-pulse { animation: none; }
  .mixer-channel { transition: none; }
}
