:root {
  color-scheme: dark;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: #050505;
  color: #f3f1eb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --black: #050505;
  --white: #f3f1eb;
  --line: rgb(243 241 235 / 28%);
  --quiet: rgb(243 241 235 / 58%);
  --blue: rgb(0 166 230);
  /* Tamaño de "música" e "ilustraciones" en la portada. */
  --section-title-size: clamp(1.6rem, 3vw, 2.5rem);
  /* Un solo espacio para todo: entre tarjetas (en horizontal y vertical) y
     entre las tarjetas y los bordes de la página. */
  --page-gap: clamp(1rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
  color: var(--white);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- portada ---------- */

.home-page {
  min-height: 100svh;
  overflow: hidden;
}

.cover {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.primary-link {
  position: absolute;
  top: 50%;
  z-index: 2;
  border: 0;
  padding: 0.6rem 0;
  background: transparent;
  color: var(--white);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: var(--section-title-size);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

/* Al pasar el mouse sobre "música" van apareciendo, de a una, notas musicales
   del color del fondo (♩ ♪ ♫ ♬) que tapan la palabra, hasta fundirla por
   completo con el negro (lo hace script.js: initNotes). */
.primary-link--music {
  transition: opacity 180ms ease, color 180ms ease;
}

.primary-link--music.is-fading {
  color: var(--black);
  transition: opacity 180ms ease, color 1000ms ease-in-out;
}

.note-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.note {
  position: absolute;
  color: var(--black);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Music", "Apple Symbols", "DejaVu Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 1px var(--black);
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg));
  user-select: none;
  animation: note-in 130ms ease-out;
}

@keyframes note-in {
  from {
    opacity: 0;
    scale: 0.5;
  }
}

.primary-link:focus-visible,
.page-back:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.35rem;
}

.primary-link--music {
  left: 28%;
  /* Margen vertical en em: así las notas del efecto (que también se miden en
     em) caen siempre sobre las letras, sea cual sea el tamaño del texto. */
  padding-block: 0.5em;
}

.primary-link--illustrations {
  /* 28% menos 2,5 cm: la palabra más larga corre a la derecha para que la
     composición quede simétrica con "música". Para ajustar, cambiá los 2.5cm. */
  right: calc(28% - 2.5cm);
}

/* Al pasar el mouse, "ilustraciones" se resquebraja: grieta.js la parte en
   pedazos (.shard, copias de la palabra recortadas con clip-path) que se
   separan de a poco, desde un punto de impacto hacia afuera. Si el script no
   corrió, no pasa nada: el enlace queda normal. */
.primary-link--illustrations .shard {
  position: absolute;
  inset: 0;
  padding: inherit;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  clip-path: var(--clip);
}

.primary-link--illustrations.has-shards:hover .shatter__text {
  visibility: hidden;
}

.primary-link--illustrations.has-shards:hover .shard {
  visibility: visible;
  animation: shard-break 1000ms cubic-bezier(0.2, 0.8, 0.3, 1) var(--delay) both;
}

@keyframes shard-break {
  0% {
    transform: scale(0.985);
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.985);
    opacity: var(--op);
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-link--illustrations .shard {
    display: none;
  }

  .primary-link--illustrations:hover {
    opacity: 0.7;
  }
}

.signature {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(1.5rem, 5vw, 4rem);
  left: clamp(1.5rem, 4vw, 4rem);
  z-index: 2;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.signature h1 {
  margin: 0;
  /* 1 cm a la izquierda del centro (con el botón de contacto adentro). */
  translate: -1cm 0;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.site-contact {
  border: 0;
  padding: 0.35rem 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 220ms ease;
}

.site-contact:hover,
.site-contact:focus-visible {
  color: #000;
}

.site-contact:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.3rem;
}

/* ---------- paneles ---------- */

.floating-panel {
  position: fixed;
  z-index: 20;
  margin: 0;
}

.floating-panel[hidden] {
  display: none;
}

.contact-panel {
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  border: 1px solid rgb(243 241 235 / 22%);
  padding: 0;
  overflow: auto;
  background: rgb(7 7 7 / 96%);
  color: var(--white);
}

.contact-panel__inner {
  /* Menos relleno abajo: el botón de enviar queda más cerca del borde inferior. */
  padding: clamp(1rem, 2.2vw, 1.3rem) clamp(1rem, 2.2vw, 1.3rem) clamp(0.2rem, 0.8vw, 0.45rem);
}

.contact-panel__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0.8rem;
}

/* «contacto»: sencillo pero con estilo, en la letra de la página. */
.contact-title {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

.contact-title__word {
  display: inline-block;
  padding: 0.1rem 0;
  font-family: inherit;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  letter-spacing: 0;
  color: var(--white);
}

/* «contacto» y la pregunta están «impresos»: sin la barrita de texto ni
   selección al pasar el mouse. */
.contact-panel__header h2,
.contact-intro {
  cursor: default;
}


.contact-panel__header h2 {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
}

.contact-panel__close {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.contact-panel__close:hover {
  color: var(--white);
}

/* La pregunta cabe en un solo renglón; en pantallas muy angostas puede partirse. */
.contact-intro {
  margin: 1rem auto 1.05rem;
  color: rgb(243 241 235 / 76%);
  font-size: 0.93rem;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 32rem) {
  .contact-intro {
    white-space: normal;
  }
}

/* "propuesta de proyecto" es un botón: con el mouse encima se subrayan las tres
   palabras y aparece un "?" que acompaña al mouse (lo mueve proyectos.js); al
   hacer clic se abre el panel con los tipos de proyectos. En pantallas
   táctiles no hay "encima": el subrayado punteado indica que se puede tocar. */
.contact-projects {
  display: inline;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

.contact-projects:hover,
.contact-projects:focus-visible {
  color: var(--white);
  text-decoration-color: currentColor;
}

@media (hover: none) {
  .contact-projects {
    text-decoration-style: dotted;
    text-decoration-color: rgb(243 241 235 / 45%);
  }
}

.cursor-question {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 0 0 6px rgb(0 0 0 / 85%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  will-change: transform;
}

.cursor-question.is-on {
  opacity: 1;
}

/* Panel "¿Qué tipo de proyectos podemos realizar?": arriba y al centro, en la
   zona libre sobre "música" e "ilustraciones". En pantallas angostas se abre
   como una hoja que ocupa casi toda la ventana. */
.projects-panel {
  position: fixed;
  top: clamp(1rem, 4vh, 2.5rem);
  left: 50%;
  z-index: 18;
  width: min(52rem, calc(100vw - 2rem));
  max-height: calc(50svh - clamp(1rem, 4vh, 2.5rem) - 4rem);
  overflow-y: auto;
  border: 1px solid rgb(243 241 235 / 22%);
  border-radius: 0.5rem;
  padding: clamp(1rem, 2.2vw, 1.4rem) clamp(1.1rem, 2.6vw, 1.6rem);
  background: rgb(7 7 7 / 96%);
  color: rgb(243 241 235 / 78%);
  font-size: 0.98rem;
  line-height: 1.55;
  translate: -50% 0;
  scrollbar-width: thin;
  animation: projects-in 220ms ease;
}

.projects-panel h2 {
  margin: 0.9rem 2rem 1.3rem;
  color: var(--white);
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;
}

/* El título cae desde el centro hacia las dos puntas, en arco (lo arma
   proyectos.js, letra por letra). En pantallas angostas, donde no entra en un
   renglón, vuelve a ser texto normal (.is-flat). */
.projects-panel h2.is-arc {
  padding-bottom: 0.7em;
  white-space: nowrap;
}

.projects-panel h2.is-arc.is-flat {
  padding-bottom: 0;
  white-space: normal;
}

.arc-letter {
  display: inline-block;
  white-space: pre;
  transform: translateY(var(--arc-y, 0)) rotate(var(--arc-r, 0deg));
  transform-origin: 50% 70%;
}

.is-flat .arc-letter {
  display: inline;
  transform: none;
}

/* El título de cada tipo de proyecto va centrado, en negrita, sobre su texto. */
.projects-panel h3 {
  margin: 0 0 0.25rem;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.projects-panel p {
  margin: 0 0 0.9rem;
}

.projects-panel .projects-panel__closing {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  font-weight: 400;
  text-align: center;
}

.projects-panel__close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.projects-panel__close:hover,
.projects-panel__close:focus-visible {
  color: var(--white);
}

@keyframes projects-in {
  from {
    opacity: 0;
    translate: -50% -0.6rem;
  }

  to {
    opacity: 1;
    translate: -50% 0;
  }
}

@media (max-width: 60rem) {
  .projects-panel {
    top: 1rem;
    z-index: 30;
    max-height: calc(100svh - 2rem);
  }
}

.contact-form {
  display: grid;
  gap: 0.6rem;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  border: 1px solid rgb(243 241 235 / 20%);
  border-radius: 0;
  padding: 0.6rem 0.8rem;
  background: rgb(255 255 255 / 3%);
  color: var(--white);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 180ms ease;
}

.contact-field input {
  text-align: center;
}

.contact-field textarea {
  min-height: 4.6rem;
  resize: vertical;
  /* Al medio, como el resto del cuadro. */
  text-align: center;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgb(243 241 235 / 42%);
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--white);
}

.contact-submit {
  justify-self: center;
  width: fit-content;
  /* Un poco más abajo: el mismo aire arriba y abajo del botón. */
  margin-top: 0.45rem;
  border: 1px solid rgb(243 241 235 / 34%);
  padding: 0.85rem 1.2rem;
  background: transparent;
  color: var(--white);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.contact-submit:hover {
  background: var(--white);
  color: var(--black);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.45;
}

/* Sin mensaje, la línea de estado no ocupa lugar (así el botón queda más abajo). */
.contact-status:empty {
  min-height: 0;
  margin-top: -0.6rem;
}

.contact-status {
  min-height: 1em;
  margin: 0;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.contact-panel__close:focus-visible,
.contact-submit:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.35rem;
}

/* ---------- ilustraciones ---------- */

.inner-page {
  min-height: 100svh;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem) var(--page-gap) clamp(4rem, 10vw, 9rem);
}

.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: var(--section-title-size);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-back {
  width: fit-content;
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0.4rem 0.6rem;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  letter-spacing: 0.08em;
  /* 1 cm más abajo (solo el enlace; el resto de la página no se mueve). */
  translate: 0 1cm;
  transition: color 180ms ease;
}

/* Con un dibujo ampliado, "volver" no se asoma detrás del visor. */
body:has(.viewer[open]) .page-back {
  visibility: hidden;
}

.page-back:hover {
  color: var(--white);
}

/* Tres por fila, de izquierda a derecha y luego la fila de abajo. Las columnas
   reparten el ancho por igual y el espacio entre tarjetas es el mismo que el de
   los bordes, así la composición queda simétrica. */
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--page-gap);
  align-items: start;
}

.illustration-card {
  margin: 0;
}

/* Todas las miniaturas viven en una caja con la misma proporción (2:1, muy
   cerca de la forma de los dibujos actuales) y cada dibujo se ve ENTERO, sin
   recortes ni deformaciones. El fondo de la caja es transparente, así que lo
   que sobra no se ve como una barra. Para cajas más altas o más bajas, cambiá
   el aspect-ratio. */
.illustration-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 180ms ease;
}

.illustration-link:hover {
  opacity: 0.85;
}

/* "cover" llena toda la caja sin deformar el dibujo (recorta apenas los bordes).
   Si preferís ver el dibujo entero, usá "contain" (aparecerán barras). */
.illustration-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* El dibujo marcado con el teclado muestra una línea blanca SOBRE el dibujo. */
.illustration-link:focus-visible {
  outline: none;
}

.illustration-link:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid var(--white);
  pointer-events: none;
}

.illustration-card figcaption {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
}


/* ---------- música ---------- */

/* Bloques compactos, de izquierda a derecha, alineados en filas. Con
   space-evenly el espacio entre bloques y el de los bordes de la página es el
   mismo, y el espacio vertical entre filas se calcula igual (por eso la página
   de música no lleva margen lateral propio). En pantallas grandes (desde
   116 rem, unos 1856 px) van cuatro por fila con bloques de 27 rem; con menos
   ancho, tres por fila con bloques de 29 rem (desde 96 rem), después dos
   (desde 64 rem) y después uno. */
.track-list {
  --track-w: 27rem;
  --cols: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), min(var(--track-w), 100%));
  justify-content: space-evenly;
  row-gap: clamp(
    1.5rem,
    calc((min(100vw, 120rem) - var(--cols) * var(--track-w)) / (var(--cols) + 1)),
    9rem
  );
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
}

.page-shell:has(.track-list) {
  padding-inline: 0;
}

@media (max-width: 116rem) {
  .track-list {
    --track-w: 29rem;
    --cols: 3;
  }
}

@media (max-width: 96rem) {
  .track-list {
    --cols: 2;
  }
}

@media (max-width: 64rem) {
  .track-list {
    --cols: 1;
    row-gap: clamp(1.5rem, 5vw, 3rem);
  }

  .page-shell:has(.track-list) {
    padding-inline: var(--page-gap);
  }
}

/* La silueta (--shape) la calcula musica.js para cada pista a partir de su id,
   el largo del título y la duración. El relleno siempre supera lo que las
   curvas recortan en las esquinas, así nada queda cortado. */
.track {
  --shape: 1.4rem 0.9rem 1.6rem 1rem / 1rem 1.3rem 0.9rem 1.4rem;
  --pad-bottom: clamp(1.2rem, 3vw, 1.4rem);
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--shape);
  padding: clamp(0.85rem, 2.4vw, 1.05rem) clamp(1rem, 2.8vw, 1.25rem) var(--pad-bottom);
  background: var(--black);
  transition: border-color 180ms ease, box-shadow 180ms ease, border-radius 600ms ease;
}

.track.is-playing {
  border-color: rgb(243 241 235 / 48%);
}

.track.is-dragging {
  z-index: 3;
  border-color: var(--white);
  box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 70%);
  transition: none;
  will-change: transform;
}

.track-list.is-sorting {
  user-select: none;
}

.track__handle {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  border: 0;
  padding: 0.2rem 0.3rem;
  background: transparent;
  color: rgb(243 241 235 / 34%);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: -0.1em;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  transition: color 180ms ease;
}

.track__handle:hover,
.track.is-dragging .track__handle {
  color: var(--white);
}

.track.is-dragging .track__handle {
  cursor: grabbing;
}

.track__shop {
  display: inline-flex;
  gap: 0.6rem;
  font-size: 0.96rem;
  /* Más abajo, a la altura del play y del blob. */
  transform: translateY(0.45rem);
}

/* Zona de clic más grande que el texto, sin mover nada de lugar. */
.track__shop a {
  padding: 0.55rem 0.4rem;
  margin: -0.55rem -0.4rem;
}

/* Esquina de abajo a la derecha, siempre visible (también al desplazar la
   página): los discos del mezclador arriba de "donar", y YouTube a la derecha
   de "donar". */
.corner-links {
  position: fixed;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 3.5vw, 2.5rem);
  z-index: 18;
  display: grid;
  grid-template-areas:
    ". stage synth ."
    ". discs radio ."
    "heads donate youtube dollar";
  /* La tercera columna espera al «$» (cuando «donar» se vuelve serpientes). */
  grid-template-columns: auto auto auto 1.7rem;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.7rem;
}

.corner-links .donate-button {
  grid-area: donate;
}

.corner-links .youtube-button {
  grid-area: youtube;
}

/* Solo el cuadrado con el logo de YouTube (negro, con un contorno blanco sutil)
   y el triángulo de play en blanco; sin recuadro exterior. */
.youtube-button {
  display: grid;
  place-items: center;
  padding: 0.25rem;
}

.youtube-button svg {
  width: 2.2rem;
  height: auto;
  overflow: visible;
}

.youtube-button rect {
  fill: var(--black);
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke 180ms ease;
}

.youtube-button path {
  fill: rgb(243 241 235 / 92%);
}

.youtube-button:hover rect,
.youtube-button:focus-visible rect {
  stroke: rgb(243 241 235 / 70%);
}

.youtube-button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.3rem;
}

.donate-button {
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.55rem 1.15rem;
  background: rgb(5 5 5 / 88%);
  color: var(--white);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: border-color 180ms ease;
}

.donate-button:hover,
.donate-button:focus-visible {
  border-color: rgb(243 241 235 / 70%);
}

.donate-button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.3rem;
}

.track__toggle {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-inline: 0;
  /* Más abajo que el volumen y la "o", pero sin pasar del borde del bloque:
     baja hasta dejar 0.45rem libres contra el borde inferior. */
  align-self: flex-end;
  margin-bottom: calc(0.45rem - var(--pad-bottom));
  border: 1px solid rgb(243 241 235 / 40%);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.track__toggle:hover {
  border-color: var(--white);
}

.track.is-playing .track__toggle {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* triángulo de play */
.track__icon {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.4rem solid transparent;
  border-bottom: 0.4rem solid transparent;
  border-left: 0.66rem solid currentColor;
}

/* dos barras de pausa */
.track.is-playing .track__icon {
  width: 0.6rem;
  height: 0.78rem;
  margin-left: 0;
  border: 0;
  border-right: 0.19rem solid currentColor;
  border-left: 0.19rem solid currentColor;
}

.track__body {
  flex: 1;
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.track__title {
  margin: 0;
  overflow: hidden;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track__seek {
  --progress: 0%;
  width: 100%;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.track__seek::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(
    to right,
    var(--white) var(--progress),
    var(--line) var(--progress)
  );
}

.track__seek::-moz-range-track {
  height: 1px;
  background: var(--line);
}

.track__seek::-moz-range-progress {
  height: 1px;
  background: var(--white);
}

.track__seek::-webkit-slider-thumb {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: calc(-0.275rem + 0.5px);
  border: 0;
  border-radius: 50%;
  background: var(--white);
  appearance: none;
}

.track__seek::-moz-range-thumb {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

.track.has-error .track__time {
  color: rgb(243 241 235 / 42%);
}

.track__time {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: -0.35rem 0 0;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* Los cuatro elementos (volumen/paneo, play, blob y bandcamp) quedan separados
   por espacios iguales, así el blob está centrado entre el play y bandcamp. */
.track__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 0.8rem;
}

.track__mix {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.track__pan {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.track__pan-side,
.track__fader-label {
  color: rgb(243 241 235 / 42%);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
}

/* perilla de paneo: el trazo marca la posición (-135° = L, 135° = R) */
.track__knob {
  --angle: 0deg;
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgb(243 241 235 / 40%);
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  transform: rotate(var(--angle));
  transition: border-color 180ms ease;
}

.track__knob::after {
  content: "";
  position: absolute;
  top: 0.24rem;
  left: 50%;
  width: 1px;
  height: 0.62rem;
  background: var(--white);
  transform: translateX(-50%);
}

.track__knob:hover {
  border-color: var(--white);
}

.track__fader {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* "vol" es un botón: silencia la canción (tachado y atenuado) o la reactiva. */
.track__fader-label[role="button"] {
  margin: -0.5rem -0.4rem;
  padding: 0.5rem 0.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: color 180ms ease;
}

.track__fader-label[role="button"]:hover {
  color: var(--white);
}

.track__fader-label[role="button"]:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 1px;
}

.track__fader.is-muted .track__fader-label {
  color: rgb(243 241 235 / 30%);
  text-decoration: line-through;
}

.track__volume {
  --progress: 50%;
  width: 4.5rem;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.track__volume::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(
    to right,
    var(--white) var(--progress),
    var(--line) var(--progress)
  );
}

.track__volume::-moz-range-track {
  height: 1px;
  background: var(--line);
}

.track__volume::-moz-range-progress {
  height: 1px;
  background: var(--white);
}

/* tapa circular, un poco más grande que la de la barra de posición */
.track__volume::-webkit-slider-thumb {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: calc(-0.4rem + 0.5px);
  border: 0;
  border-radius: 50%;
  background: var(--white);
  appearance: none;
}

.track__volume::-moz-range-thumb {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
}

.track__links {
  display: contents;
  margin: 0;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.track__links a {
  transition: color 180ms ease;
}

.track__links a:hover {
  color: var(--white);
}

.track__toggle:focus-visible,
.track__handle:focus-visible,
.track__knob:focus-visible,
.track__links a:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.35rem;
}

.track__seek:focus-visible,
.track__volume:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 0.2rem;
}

/* ---------- "o" para ocultar y modo colapsado ---------- */

/* El bloque entero se agarra con el mouse (o con presión larga en pantallas
   táctiles) desde cualquier zona libre. Los controles conservan su cursor. */
.track {
  cursor: grab;
  user-select: none;
  -webkit-touch-callout: none;
}

.track a,
.track button,
.track input {
  cursor: pointer;
}

.track__knob {
  cursor: ns-resize;
}

.track.is-dragging,
.track.is-dragging * {
  cursor: grabbing;
}

/* La "o": un salpicón de pintura negra (SVG) con un relieve blanco muy sutil que
   lo deja verse sobre el fondo. El translateY lo baja hasta alinearlo con el
   botón de play. La zona de toque es más grande que el dibujo. */
.track__hide {
  display: inline-grid;
  place-items: center;
  margin: -0.35rem -0.45rem;
  border: 0;
  padding: 0.35rem 0.45rem;
  background: transparent;
  color: inherit;
  transform: translate(0.6rem, 0.45rem);
}

.track__splat {
  display: block;
  width: 2.4rem;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 38%))
    drop-shadow(0 0 4px rgb(243 241 235 / 7%));
  transition: filter 450ms ease;
}

.track__splat path,
.track__splat circle {
  fill: var(--black);
  stroke: rgb(243 241 235 / 24%);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.track__hide:hover .track__splat {
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 55%))
    drop-shadow(0 0 5px rgb(243 241 235 / 10%));
}

.track__blob {
  opacity: 0;
}

.track__splat-body,
.track__blob {
  transition: opacity 450ms ease;
}

.track__drop {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 450ms ease-in, opacity 450ms ease-in;
}

.track__hide:hover {
  color: var(--white);
}

.track__hide:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.1rem;
}

.track > *,
.track__body > *,
.track__controls > *,
.track__links > *,
.track__shop {
  transition: opacity 400ms ease;
}

/* Oculto: el bloque se reduce a la "o". Conserva su lugar en la lista (lo
   resuelve musica.js con márgenes) para que las demás pistas no se corran. */
.track.is-collapsed,
.track.is-collapsed.is-playing,
.track.is-collapsed.is-dragging {
  justify-self: start;
  align-self: start;
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.track.is-collapsed > :not(.track__body),
.track.is-collapsed .track__body > :not(.track__controls),
.track.is-collapsed .track__controls > :not(.track__links),
.track.is-collapsed .track__links > :not(.track__hide) {
  display: none;
}

/* Con el bloque oculto, las gotas se juntan hacia adentro y el salpicón se
   transforma en un blob liso, del mismo estilo (negro con relieve blanco
   sutil), sin nada adentro y de tamaño parecido. Se puede mover, o tocar otra
   vez para que vuelva el bloque. */
.track.is-collapsed .track__hide {
  margin: -0.35rem -0.45rem;
}

.track.is-collapsed .track__splat {
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 52%))
    drop-shadow(0 0 6px rgb(243 241 235 / 13%));
}

.track.is-collapsed .track__drop {
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(0.2);
}

.track.is-collapsed .track__splat-body {
  opacity: 0;
}

.track.is-collapsed .track__blob {
  opacity: 1;
}

/* Si la canción suena mientras el bloque está oculto, el salpicón se junta en el
   blob y se transforma en una cara: dos de sus gotas (las que están a los
   costados) viajan hasta el blob y se convierten en los ojos (.track__drop--eye;
   la gota crece hasta el tamaño del ojo). El ojo mantiene los colores del
   blob —negro con un contorno blanco muy sutil— y suma un puntito blanco en
   el medio. El parpadeo lo dispara musica.js en momentos al azar para cada
   cara: los ojos se cierran del todo (despacio), aparece un párpado y se abren. */
.track__splat .track__dot {
  fill: rgb(243 241 235 / 95%);
  stroke: none;
  opacity: 0;
  transition: opacity 250ms ease;
}

.track__splat .track__lid {
  fill: none;
  stroke: rgb(243 241 235 / 75%);
  stroke-width: 0.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleX(0.9);
  transition: opacity 260ms ease, transform 260ms ease;
}

.track__blink {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 450ms ease-in-out;
}

.track.is-collapsed.is-playing .track__drop--eye,
.track.is-collapsed.is-standing .track__drop--eye,
.track.is-collapsed.is-lifted .track__drop--eye {
  opacity: 1;
  transform: translate(var(--ex), var(--ey)) scale(var(--es));
  stroke: rgb(243 241 235 / 36%);
  transition: transform 700ms ease-in-out, opacity 400ms ease, stroke 500ms ease;
}

.track.is-collapsed.is-playing .track__dot,
.track.is-collapsed.is-standing .track__dot,
.track.is-collapsed.is-lifted .track__dot {
  opacity: 1;
  transition: opacity 400ms ease 550ms;
}

/* Los ojos se cierran hacia el medio y se angostan un poco: queda una línea
   fina (el párpado) que enseguida casi desaparece (.is-shut, lo agrega
   musica.js a mitad del parpadeo) y vuelve a aparecer al abrirse. */
.track.is-blinking .track__blink {
  transform: scale(0.7, 0.02);
}

.track.is-blinking .track__lid {
  opacity: 0.8;
  transform: scaleX(0.7);
  transition: opacity 200ms ease 150ms, transform 260ms ease;
}

.track.is-blinking.is-shut .track__lid {
  opacity: 0.12;
  transform: scaleX(0.35);
  transition: opacity 260ms ease, transform 260ms ease;
}

/* ---------- dibujo ampliado ---------- */

.viewer {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
}

.viewer:focus,
.viewer:focus-visible,
.viewer__image:focus,
.viewer__image:focus-visible {
  outline: none;
}

.viewer[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.viewer::backdrop {
  background: rgb(5 5 5 / 98%);
}

.viewer__image {
  --half-width: 2600px;
  --ratio: 2.12;
  display: block;
  /* Mismo tamaño para todos los dibujos: hasta 78% del ancho o 82% del alto
     de la ventana. Si cambiás estos valores, cambiá también ZOOM_DEFAULT en
     ilustraciones.js. */
  width: min(var(--half-width), 78vw, calc(82svh * var(--ratio)));
  height: auto;
  cursor: zoom-out;
  animation: viewer-grow 200ms ease;
}

.viewer.is-minimizing .viewer__image {
  animation: viewer-shrink 180ms ease forwards;
}

.viewer.is-minimizing::backdrop {
  opacity: 0;
  transition: opacity 180ms ease;
}

@keyframes viewer-grow {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes viewer-shrink {
  to {
    opacity: 0;
    transform: scale(0.6);
  }
}

.viewer__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  border: 0;
  padding: 0.25rem;
  background: transparent;
  color: var(--quiet);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease;
}

.viewer__close:hover {
  color: var(--white);
}

.viewer__close:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.35rem;
}

/* Con el título más grande, las dos palabras no entran una al lado de la otra
   en pantallas angostas: se apilan en el centro. */
@media (max-width: 60rem) {
  .primary-link--music,
  .primary-link--illustrations {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .primary-link--music {
    top: 42%;
  }

  .primary-link--illustrations {
    top: 58%;
  }
}

@media (max-width: 40rem) {
  .page-header {
    margin-bottom: 4rem;
  }

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

  /* En el celular el zoom aprovecha casi toda la pantalla
     (debe coincidir con ZOOM_SMALL_SCREEN en ilustraciones.js). */
  .viewer__image {
    width: min(var(--half-width), 96vw, calc(88svh * var(--ratio)));
  }
}

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

/* Barrita de carga (la crea carga.js en música e ilustraciones): arriba, en el
   centro, solo si la carga tarda; se llena según lo que ya se descargó. */
.load-bar {
  position: fixed;
  top: clamp(0.9rem, 2.5vw, 1.6rem);
  left: 50%;
  z-index: 50;
  width: min(16rem, 40vw);
  height: 2px;
  border-radius: 2px;
  background: rgb(243 241 235 / 14%);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 400ms ease;
}

.load-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgb(243 241 235 / 78%);
  transition: width 300ms ease;
}

.load-bar.is-done {
  opacity: 0;
}

/* Con "música" e "ilustraciones" apiladas en el centro, la firma también va
   centrada (sin el corrimiento de 1 cm de la versión de escritorio). */
@media (max-width: 60rem) {
  .signature h1 {
    translate: none;
  }
}

/* ---------- muñequito de palitos (el blob con cara, musica.js) ---------- */

/* Capa que cubre la ventana, sin recibir clics: ahí se dibujan los palitos que
   cuelgan del blob (cuerpo, dos brazos, dos piernas). */
.ragdoll-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ragdoll {
  opacity: 0;
  transition: opacity 300ms ease;
}

.ragdoll.is-on {
  opacity: 1;
  transition: opacity 120ms ease;
}

/* Mismo estilo que la cabeza: palitos negros con un contorno blanco muy sutil
   (las líneas .ragdoll__edge van debajo) y el mismo relieve blanco. */
.ragdoll {
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 52%))
    drop-shadow(0 0 6px rgb(243 241 235 / 13%));
}

.ragdoll line {
  fill: none;
  stroke-linecap: round;
}

.ragdoll__edge {
  stroke: rgb(243 241 235 / 24%);
  stroke-width: 3.6;
}

.ragdoll__fill {
  stroke: var(--black);
  stroke-width: 2.4;
}

/* ---------- "granito de arena" (portada, script.js) ---------- */

/* Entre "música" e "ilustraciones": invisible hasta que el mouse pasa por
   encima. Entonces aparece el punto y caen granitos hasta la línea de la firma. */
.sand-spot {
  position: fixed;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  translate: -50% -50%;
}

.sand-spot::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transition: opacity 260ms ease;
}

.sand-spot.is-on::after {
  opacity: 0.9;
}

/* Lienzo donde caen y se acumulan los granos (script.js). */
.sand-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- mezclador (mezclador.js) ---------- */

/* Lo único con un poquito de color en un sitio blanco y negro. */
.mixer-panel,
.kbd,
.mixer-discs {
  --mix-red: #ff5d5d;
  --mix-amber: #ffb84d;
  --mix-orange: #ff8a1f;
  --mix-green: #5be3a0;
  --mix-cyan: #4cc9f0;
  --mix-magenta: #e86bd0;
  --mix-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
}

/* Los dos discos, acostados uno al lado del otro (celeste a la izquierda,
   naranja a la derecha), encima de "donar". Son un solo botón: abren y cierran
   la bandeja. Giran mientras está cerrada. */
.mixer-discs {
  position: relative;
  grid-area: discs;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  padding: 0.2rem;
  background: transparent;
  cursor: pointer;
}

.mixer-disc {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  overflow: visible;
  transition: filter 180ms ease;
}

.mixer-discs:hover .mixer-disc {
  filter: brightness(1.15);
}

/* Mientras se baja el mezclador (la primera vez), giran despacio. */
.mixer-discs.is-loading {
  cursor: progress;
}

.mixer-discs.is-loading .mixer-disc {
  animation: mixer-spin 4s linear infinite;
}

/* Quietos y con la bandeja cerrada, giran; al abrirla se detienen (donde estén). */
.mixer-discs .mixer-disc--amber {
  animation: mixer-spin 2.6s linear infinite;
}

.mixer-discs .mixer-disc--cyan {
  animation: mixer-spin 3.2s linear infinite reverse;
}

.mixer-discs.is-open .mixer-disc {
  animation-play-state: paused;
}

.mixer-discs:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.2rem;
  border-radius: 0.4rem;
}

/* Cerrado y con algo sonando: un puntito verde. */
.mixer-discs__dot {
  position: absolute;
  top: 0.1rem;
  right: -0.15rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mix-green);
  box-shadow: 0 0 6px rgb(91 227 160 / 70%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.mixer-discs.has-sound .mixer-discs__dot {
  opacity: 1;
}

@keyframes mixer-spin {
  to {
    transform: rotate(1turn);
  }
}

/* La bandeja: a la izquierda del grupo discos + donar + YouTube, con el borde
   de abajo a la altura de "donar". Los colores la rodean como borde. El ancho
   es el justo; crece hacia la izquierda cuando aparecen las cabezas. */
.mixer-panel {
  position: absolute;
  right: calc(100% + 2rem);
  bottom: 0;
  display: grid;
  gap: 0.7rem;
  width: max-content;
  border: 1.5px solid transparent;
  border-radius: 0.6rem;
  padding: 0.8rem 0.85rem;
  background:
    linear-gradient(rgb(8 8 8 / 97%), rgb(8 8 8 / 97%)) padding-box,
    linear-gradient(
      120deg,
      var(--mix-red),
      var(--mix-amber),
      var(--mix-green),
      var(--mix-cyan),
      var(--mix-magenta)
    ) border-box;
  color: rgb(243 241 235 / 78%);
  font-family: var(--mix-mono);
  font-size: 0.74rem;
  line-height: 1.3;
  animation: mixer-in 220ms ease;
}

.mixer-panel.is-grabbed,
.mixer-panel.is-grabbed .mixer-extras {
  cursor: grabbing;
}

.mixer-panel[hidden] {
  display: none;
}

@keyframes mixer-in {
  from {
    opacity: 0;
    translate: 0.4rem 0;
  }
}

.mixer-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

:is(.mixer-panel, .kbd) button {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.35rem 0.65rem;
  background: rgb(5 5 5 / 88%);
  color: var(--white);
  font-family: var(--mix-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, opacity 160ms ease;
}

:is(.mixer-panel, .kbd) button:hover:not(:disabled) {
  border-color: rgb(243 241 235 / 70%);
}

:is(.mixer-panel, .kbd) button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 2px;
}

:is(.mixer-panel, .kbd) button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Error: el botón se pone rojo un momento y dice una palabra corta. */
:is(.mixer-panel, .kbd) button.is-error,
:is(.mixer-panel, .kbd) button.is-error:hover {
  border-color: var(--mix-red);
  background: rgb(255 93 93 / 14%);
  color: var(--mix-red);
}

/* Cartelito flotante con la explicación (se va solo). */
.mixer-toast {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.6rem);
  max-width: min(22rem, 80vw);
  margin: 0;
  border: 1px solid rgb(255 93 93 / 55%);
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: rgb(8 8 8 / 96%);
  color: var(--white);
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0;
  translate: 0 0.3rem;
  pointer-events: none;
  transition: opacity 220ms ease, translate 220ms ease;
}

.mixer-toast.is-shown {
  opacity: 1;
  translate: 0 0;
}

.mixer-toast:empty {
  display: none;
}

/* Fila 1: fuentes. */
.mixer-panel .mixer-up {
  width: 1.15rem;
  min-height: 2.1rem;
  padding: 0;
  font-size: 0.8rem;
}

.mixer-panel .mixer-up.is-error {
  width: auto;
  padding: 0 0.5rem;
}

.mixer-panel .mixer-file-play {
  min-width: 2rem;
  padding: 0 0.5rem;
  color: var(--mix-amber);
}

.mixer-panel .mixer-rec {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-color: rgb(255 93 93 / 55%);
  border-radius: 50%;
  padding: 0;
}

.mixer-rec::before {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  background: var(--mix-red);
}

.mixer-panel .mixer-rec.is-error {
  width: auto;
  border-radius: 0.3rem;
  padding: 0 0.5rem;
}

.mixer-rec.is-error::before {
  display: none;
}

.mixer-panel .mixer-rec.is-on {
  border-color: var(--mix-red);
  box-shadow: 0 0 10px rgb(255 93 93 / 45%);
}

.mixer-rec.is-on::before {
  animation: mixer-beat 1s ease-in-out infinite;
}

@keyframes mixer-beat {
  50% {
    opacity: 0.4;
    scale: 0.8;
  }
}

.mixer-panel .mixer-tab {
  flex: 1;
}

.mixer-panel .mixer-tab.is-on {
  border-color: var(--mix-cyan);
  color: var(--mix-cyan);
  box-shadow: 0 0 10px rgb(76 201 240 / 25%);
}

.mixer-panel .mixer-tab.is-unavailable:not(.is-error) {
  color: rgb(243 241 235 / 45%);
}

/* Fila 2: tres barras; el nombre de cada una la silencia. */
.mixer-row--bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.mixer-bar {
  --bar: var(--mix-amber);
  display: grid;
  gap: 0.2rem;
  justify-items: start;
}

.mixer-bar--tab {
  --bar: var(--mix-cyan);
}

.mixer-bar--mic {
  --bar: var(--mix-red);
}

.mixer-panel .mixer-bar__name {
  min-height: 0;
  border: 0;
  padding: 0.15rem 0;
  background: transparent;
  color: var(--bar);
  font-size: 0.68rem;
  white-space: nowrap;
}

.mixer-bar.is-muted .mixer-bar__name {
  color: rgb(243 241 235 / 32%);
  text-decoration: line-through;
}

.mixer-bar input {
  --progress: 80%;
  width: 100%;
  min-width: 4.5rem;
  height: 1rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.mixer-bar input::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--bar) var(--progress), rgb(243 241 235 / 18%) var(--progress));
}

.mixer-bar input::-moz-range-track {
  height: 2px;
  background: linear-gradient(to right, var(--bar) var(--progress), rgb(243 241 235 / 18%) var(--progress));
}

.mixer-bar input::-webkit-slider-thumb {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: calc(-0.35rem + 1px);
  border: 1px solid var(--bar);
  border-radius: 50%;
  background: var(--black);
  appearance: none;
}

.mixer-bar input::-moz-range-thumb {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid var(--bar);
  border-radius: 50%;
  background: var(--black);
}

.mixer-bar.is-muted input::-webkit-slider-runnable-track {
  background: rgb(243 241 235 / 14%);
}

.mixer-bar.is-muted input::-moz-range-track {
  background: rgb(243 241 235 / 14%);
}

.mixer-bar input:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 2px;
}

/* Fila 3: sin · ■ · ↩ · [cabezas] · cronía · loop · ⇩ */
.mixer-panel .mixer-sin {
  min-width: 3.1rem;
  border-color: rgb(255 184 77 / 55%);
  color: var(--mix-amber);
  box-shadow: 0 0 0 1px rgb(255 184 77 / 10%), 0 3px 10px rgb(255 184 77 / 22%);
}

.mixer-panel .mixer-sin:hover:not(:disabled) {
  border-color: var(--mix-amber);
}

.mixer-panel .mixer-sin.is-recording {
  border-color: var(--mix-amber);
  padding: 0 0.6rem;
}

/* Mientras graba, en vez de "sin": un anillo ámbar con un arco que gira y un
   punto rojo que late. */
.mixer-sin__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin: auto;
}

.mixer-sin__arc {
  transform-origin: 12px 12px;
  animation: mixer-spin 1.1s linear infinite;
}

.mixer-sin__dot {
  transform-origin: 12px 12px;
  animation: mixer-beat 0.9s ease-in-out infinite;
}

.mixer-panel .mixer-stop,
.mixer-panel .mixer-undo,
.mixer-panel .mixer-download {
  min-width: 2rem;
  padding: 0 0.45rem;
}

.mixer-panel .mixer-stop {
  position: relative;
  color: var(--mix-red);
}

/* Mantener ■: un anillo rojo que se llena en 2 segundos. */
.mixer-stop::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 0.45rem;
  background: conic-gradient(var(--mix-red) calc(var(--hold, 0) * 1turn), transparent 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
  pointer-events: none;
}

@property --hold {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.mixer-stop.is-holding::after {
  animation: mixer-hold 6s linear forwards;
}

@keyframes mixer-hold {
  to {
    --hold: 1;
  }
}

.mixer-panel .mixer-download.is-blocked {
  color: rgb(243 241 235 / 35%);
  border-style: dashed;
}

/* «invocar»: sutil y quieto, relieve naranja más apagado que «sin», texto
   naranja saturado. */
.mixer-panel .mixer-invoke {
  border-color: rgb(255 138 31 / 32%);
  color: var(--mix-orange);
  box-shadow: 0 2px 7px rgb(255 138 31 / 12%);
}

.mixer-panel .mixer-invoke:hover:not(:disabled) {
  border-color: rgb(255 138 31 / 70%);
}

/* El círculo grande (en lugar de «extras»): abre y cierra las fuentes y las
   barras. Lleno = abiertas. */
.mixer-panel .mixer-extras {
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
}

.mixer-extras__circle {
  width: 2rem;
  height: 2rem;
  border: 1.5px solid rgb(243 241 235 / 70%);
  border-radius: 50%;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.mixer-panel .mixer-extras:hover .mixer-extras__circle {
  border-color: var(--white);
}

.mixer-panel .mixer-extras.is-on .mixer-extras__circle {
  background: rgb(243 241 235 / 85%);
}

/* «invocar» prendido: titila un poco. */
.mixer-panel .mixer-invoke.is-armed {
  animation: mixer-flicker 1.6s ease-in-out infinite;
}

@keyframes mixer-flicker {
  0%,
  100% {
    opacity: 1;
  }

  30% {
    opacity: 0.55;
  }

  36% {
    opacity: 0.95;
  }

  60% {
    opacity: 0.7;
  }
}

.mixer-panel.is-compact .mixer-row--sources,
.mixer-panel.is-compact .mixer-row--bars {
  display: none;
}

.mixer-panel .mixer-loop.is-on {
  border-color: var(--mix-green);
  color: var(--mix-green);
  box-shadow: 0 0 10px rgb(91 227 160 / 22%);
}

/* Las tres cabezas: en píxeles, sin contorno, latiendo apenas con el pulso. */
.mixer-heads {
  --bob: 0px;
  position: absolute;
  right: calc(100% + 1.4rem);
  bottom: 0.2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.7rem;
  animation: mixer-heads-in 900ms ease;
}

/* Cada una flota sola, a su ritmo. */
.mixer-head {
  animation: mixer-head-float 5.2s ease-in-out infinite;
}

.mixer-head--stone {
  animation-duration: 6.4s;
  animation-delay: -2.1s;
}

.mixer-head--cloud {
  animation-duration: 4.6s;
  animation-delay: -3.4s;
}

@keyframes mixer-head-float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  30% {
    transform: translate(-3px, -5px) rotate(-2deg);
  }

  65% {
    transform: translate(2px, -2px) rotate(1.5deg);
  }
}

@keyframes mixer-heads-in {
  from {
    opacity: 0;
    translate: 14px 0;
  }
}

/* Abajo de cada cabeza: volumen y estilo (el estilo arranca en el medio). */
:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"] {
  display: block;
  width: 76px;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(90deg, var(--head-tint, rgb(243 241 235 / 70%)) var(--progress, 50%), rgb(243 241 235 / 16%) var(--progress, 50%));
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"]::-moz-range-track {
  height: 3px;
  background: linear-gradient(90deg, var(--head-tint, rgb(243 241 235 / 70%)) var(--progress, 50%), rgb(243 241 235 / 16%) var(--progress, 50%));
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"]::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--head-tint, #f3f1eb);
  appearance: none;
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: var(--head-tint, #f3f1eb);
}

/* El estilo, con una marquita en el medio (su sonido de siempre). */
:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__style {
  --head-tint: #e86bd0;
  background: linear-gradient(rgb(243 241 235 / 35%), rgb(243 241 235 / 35%)) 50% 50% / 1px 7px no-repeat;
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__style::-webkit-slider-runnable-track {
  background: rgb(243 241 235 / 16%);
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__style::-moz-range-track {
  background: rgb(243 241 235 / 16%);
}

.mixer-head--elf {
  --head-tint: #39ff6a;
}

.mixer-head--stone {
  --head-tint: #c9ccd2;
}

.mixer-head--cloud {
  --head-tint: #9fdcea;
}

/* «sigue», arriba de la piedra. */
:is(.mixer-panel, .mixer-float) .mixer-head__keep {
  position: absolute;
  bottom: calc(100% - 0.12rem);
  left: 50%;
  min-height: 0;
  border: 1px solid rgb(243 241 235 / 22%);
  border-radius: 0.3rem;
  padding: 0.1rem 0.4rem;
  background: transparent;
  color: rgb(243 241 235 / 55%);
  font-size: 0.62rem;
  translate: -50% 0;
}

:is(.mixer-panel, .mixer-float) .mixer-head__keep[aria-pressed="true"] {
  border-color: #ffb84d;
  color: #ffb84d;
  box-shadow: 0 0 8px rgb(255 184 77 / 25%);
}

/* El dibujito que las llama. */
:is(.mixer-panel, .mixer-float) .mixer-summon {
  display: grid;
  place-items: center;
  min-height: 0;
  border: 1px solid rgb(243 241 235 / 18%);
  border-radius: 0.3rem;
  padding: 0.3rem 0.4rem;
  background: transparent;
}

.mixer-summon svg {
  display: block;
  width: 30px;
  height: 12px;
  image-rendering: pixelated;
}

:is(.mixer-panel, .mixer-float) .mixer-summon:hover,
:is(.mixer-panel, .mixer-float) .mixer-summon[aria-pressed="false"] {
  border-color: rgb(243 241 235 / 45%);
}

:is(.mixer-panel, .mixer-float) .mixer-summon[aria-pressed="false"] svg {
  filter: drop-shadow(0 0 4px rgb(57 255 106 / 45%));
}

.mixer-heads[hidden] {
  display: none;
}

.mixer-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

/* El ■ chiquito abajo de cada cabeza: la calla. */
:is(.mixer-panel, .mixer-float) .mixer-head__stop {
  min-width: 3.2rem;
  min-height: 2.2rem;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: rgb(243 241 235 / 55%);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

:is(.mixer-panel, .mixer-float) .mixer-head__stop:hover {
  color: var(--mix-red);
}

:is(.mixer-panel, .mixer-float) .mixer-head__button {
  display: block;
  width: 64px;
  height: 64px;
  min-height: 0;
  border: 0;
  border-radius: 0.3rem;
  padding: 0;
  background: transparent;
}

.mixer-head canvas {
  display: block;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  translate: 0 var(--bob);
  transition: translate 80ms ease-out;
}

.mixer-head--cloud canvas {
  translate: 0 0;
}

/* La piedra cae al tocarla. */
.mixer-head__button.is-falling canvas {
  animation: mixer-fall 900ms cubic-bezier(0.3, 0, 0.3, 1);
}

@keyframes mixer-fall {
  18% {
    translate: 0 7px;
    scale: 1.06 0.9;
  }

  32% {
    translate: 0 4px;
    scale: 1;
  }

  44% {
    translate: 0 7px;
  }
}

/* Globitos del duende. */
.mixer-bubble {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  border: 1px solid rgb(243 241 235 / 70%);
  border-radius: 0.5rem;
  padding: 0.15rem 0.45rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.66rem;
  white-space: nowrap;
  translate: -50% 0;
  animation: mixer-bubble 1.9s ease forwards;
  pointer-events: none;
}

.mixer-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 40%;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgb(243 241 235 / 70%);
  border-bottom: 1px solid rgb(243 241 235 / 70%);
  background: var(--black);
  translate: 0 -3px;
  rotate: 45deg;
}

@keyframes mixer-bubble {
  0% {
    opacity: 0;
    translate: -50% 4px;
  }

  12%,
  80% {
    opacity: 1;
    translate: -50% 0;
  }

  100% {
    opacity: 0;
  }
}

/* Notitas que salen cuando canta la nube. */
.mixer-note {
  position: absolute;
  top: 6px;
  right: 4px;
  font-size: 0.8rem;
  line-height: 1;
  pointer-events: none;
  animation: mixer-note 1.6s ease-out forwards;
}

@keyframes mixer-note {
  from {
    opacity: 0;
    translate: 0 0;
  }

  15% {
    opacity: 1;
  }

  to {
    opacity: 0;
    translate: var(--drift, 6px) -34px;
  }
}

/* Pantallas angostas: la bandeja va arriba del grupo, casi a todo el ancho. */
@media (max-width: 48rem) {
  .mixer-panel {
    position: fixed;
    right: 0.6rem;
    bottom: var(--lift, 9rem);
    left: 0.6rem;
    width: auto;
  }

  .mixer-row--loop {
    flex-wrap: wrap;
  }

  /* En pantallas angostas flotan arriba de la bandeja, en fila. */
  .mixer-heads {
    right: auto;
    bottom: calc(100% + 0.8rem);
    left: 0;
    flex-direction: row;
  }

  .mixer-toast {
    right: 0;
    left: 0;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mixer-discs .mixer-disc,
  .mixer-rec.is-on::before,
  .mixer-sin__arc,
  .mixer-sin__dot,
  .mixer-head,
  .mixer-head__button.is-falling canvas,
  .mixer-panel .mixer-invoke.is-armed,
  .mixer-note {
    animation: none;
  }
}

/* ---------- fundido entre secciones (navegacion.js) ---------- */

body > main.is-leaving {
  opacity: 0;
  transition: opacity 120ms ease;
}

body > main.is-entering {
  animation: page-in 260ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
}

/* ---------- página 404 ---------- */

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  padding: var(--page-gap);
  text-align: center;
}

.not-found img {
  width: min(42rem, 88vw);
  height: auto;
}

.not-found p {
  margin: 0;
  color: var(--quiet);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.not-found a {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.12em;
  text-decoration: none;
}

.not-found a:hover,
.not-found a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

@media (prefers-reduced-motion: reduce) {
  body > main.is-leaving,
  body > main.is-entering {
    transition: none;
    animation: none;
  }
}

/* ---------- radio (musica.js) ---------- */

/* Una radio vieja, arriba de YouTube (a la derecha de los discos). Mismo
   estilo que los discos: líneas finas y un toque de color (madera y la aguja
   roja). Prendida: la aguja tiembla y la punta de la antena se enciende. */
.radio-button {
  grid-area: radio;
  justify-self: start;
  align-self: end;
  margin-bottom: 0.6rem;
  display: block;
  border: 0;
  padding: 0.2rem;
  background: transparent;
  cursor: pointer;
}

.radio-button svg {
  display: block;
  width: 5.2rem;
  height: auto;
  overflow: visible;
  transition: filter 180ms ease;
}

.radio-button:hover svg {
  filter: brightness(1.2);
}

.radio-button:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.2rem;
  border-radius: 0.4rem;
}

.radio-button__body {
  fill: #0a0a0a;
  stroke: rgb(243 241 235 / 30%);
  stroke-width: 1;
}

.radio-button__handle,
.radio-button__base {
  fill: #0a0a0a;
  stroke: rgb(243 241 235 / 30%);
  stroke-width: 0.8;
}

.radio-button__antenna {
  stroke: rgb(243 241 235 / 45%);
  stroke-width: 1;
  stroke-linecap: round;
}

.radio-button__tip {
  fill: rgb(243 241 235 / 45%);
  transition: fill 200ms ease;
}

.radio-button__dial {
  fill: #050505;
  stroke: rgb(243 241 235 / 22%);
  stroke-width: 0.6;
}

.radio-button__ticks line {
  stroke: rgb(243 241 235 / 32%);
  stroke-width: 0.5;
}

.radio-button__needle {
  stroke: #ff5d5d;
  stroke-width: 0.9;
  stroke-linecap: round;
}

.radio-button__grille line {
  stroke: #8a5a32;
  stroke-width: 1;
}

.radio-button__panel {
  fill: #5a3a20;
  stroke: #8a5a32;
  stroke-width: 0.5;
}

.radio-button__knob {
  fill: none;
  stroke: rgb(243 241 235 / 70%);
  stroke-width: 0.7;
}

.radio-button__plate {
  fill: rgb(243 241 235 / 35%);
}

.radio-button.is-on .radio-button__tip {
  fill: #5be3a0;
  filter: drop-shadow(0 0 2px rgb(91 227 160 / 80%));
}

.radio-button.is-on .radio-button__needle {
  animation: radio-tremble 0.35s steps(2) infinite;
}

@keyframes radio-tremble {
  50% {
    translate: 0.5px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radio-button.is-on .radio-button__needle {
    animation: none;
  }
}

/* ---------- aventura (aventura.js) ---------- */

/* La «o» de «volver»: cuando un blob se acerca (con «invocar» prendido), se va
   iluminando con colores adentro hasta volverse un portal. */
.page-back__o {
  --glow: 0;
  --portal: 0;
  position: relative;
  display: inline-block;
  isolation: isolate;
  text-shadow: 0 0 calc(var(--glow) * 14px) rgb(243 241 235 / calc(var(--glow) * 85%));
  color: color-mix(in srgb, var(--white) calc(var(--glow) * 100%), currentColor);
}

.page-back__o::before {
  content: "";
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: -1;
  width: var(--size, 0px);
  height: var(--size, 0px);
  border-radius: 50%;
  background: conic-gradient(#ff5d5d, #ffb84d, #5be3a0, #4cc9f0, #e86bd0, #ff5d5d);
  opacity: var(--glow);
  /* (Un poquito a la izquierda: tapa bien la «v» sin tocar «ver».) */
  translate: calc(-50% - 0.035em) -50%;
  transition: width 0.4s linear, height 0.4s linear, opacity 1s ease;
  animation: aventura-swirl 1.6s linear infinite;
  pointer-events: none;
}

.page-back__o.is-portal::before {
  box-shadow: 0 0 12px 3px rgb(232 107 208 / 45%);
}

@keyframes aventura-swirl {
  to {
    rotate: 1turn;
  }
}

/* El blob entra al portal: se encoge girando. */
.track.is-traveling:not(.is-spiraling) .track__splat {
  animation: aventura-travel 900ms ease-in forwards;
}

@keyframes aventura-travel {
  to {
    opacity: 0;
    scale: 0.05;
    rotate: 2turn;
  }
}

/* Portada: la piedra (y después piedra-araña) sobre la línea de la firma. */
.aventura-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* El mismo blob de música: negro, con el contorno blanco sutil y sus ojos. */
.aventura-stone {
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 38%))
    drop-shadow(0 0 4px rgb(243 241 235 / 7%));
}

.aventura-stone__body {
  fill: var(--black);
}

.aventura-stone__eyeball {
  fill: var(--black);
  stroke: rgb(243 241 235 / 36%);
  stroke-width: 1;
}

.aventura-stone__dot {
  fill: rgb(243 241 235 / 95%);
}

.aventura-stone__lid {
  fill: none;
  stroke: rgb(243 241 235 / 75%);
  stroke-width: 1;
  stroke-linecap: round;
}

.aventura-stone .is-hidden {
  display: none;
}

/* Patas de araña: mismo estilo que el muñequito de palitos. */
.aventura-limbs {
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 52%))
    drop-shadow(0 0 6px rgb(243 241 235 / 13%));
}

.aventura-limbs line {
  fill: none;
  stroke-linecap: round;
}

.aventura-limb__edge {
  stroke: rgb(243 241 235 / 24%);
  stroke-width: 3.4;
}

.aventura-limb__fill {
  stroke: var(--black);
  stroke-width: 2.2;
}

.aventura-dust__grain {
  fill: rgb(190 184 168);
}

.aventura-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
}

.aventura-hit.is-awake {
  cursor: grab;
}

.aventura-hit:focus {
  outline: none;
}

.aventura-hit:focus-visible {
  outline: none;
  stroke: rgb(243 241 235 / 60%);
  stroke-dasharray: 3 3;
}

/* El reproductor de su canción, arriba en el medio de la portada. */
.aventura-song {
  position: absolute;
  top: clamp(1rem, 4vh, 2.5rem);
  left: 50%;
  z-index: 4;
  width: min(27rem, calc(100vw - 2rem));
  opacity: 0;
  translate: -50% -0.6rem;
  transition: opacity 600ms ease, translate 600ms ease;
}

.aventura-song.is-shown {
  opacity: 1;
  translate: -50% 0;
}

.aventura-song .track {
  cursor: default;
}

.aventura-song .track__hide.is-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- juego (/juego/) ---------- */

/* El dibujo ocupa toda la pantalla que puede (sin deformarse), nítido. */
.game-page {
  background: #000;
}

.game-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 0;
}

.game-back.page-back {
  position: fixed;
  top: 0.4rem;
  left: 0.6rem;
  z-index: 5;
  margin: 0;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  translate: none;
  opacity: 0.55;
}

.game-back.page-back:hover,
.game-back.page-back:focus-visible {
  opacity: 1;
}

/* Mientras dura la partida no hay salida: «volver» aparece al terminar. */
.game-back.page-back.is-locked {
  opacity: 0;
  pointer-events: none;
}

.game-back.page-back {
  transition: opacity 0.8s ease;
}

.game-stage {
  position: relative;
  width: min(100vw, calc(100dvh * 5604 / 3200));
  aspect-ratio: 5604 / 3200;
}

.game-stage__image {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.game-stage.is-arriving {
  animation: game-arrive 1.4s ease-out;
}

@keyframes game-arrive {
  from {
    opacity: 0;
    filter: brightness(2.2);
  }
}

/* START en el medio, titilando como un neón viejo que falla. */
.game-start {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  translate: -50% -50%;
  animation: game-flicker 5.3s steps(1) infinite;
}

.game-start svg {
  display: block;
  width: 100%;
  height: auto;
}

.game-start:focus-visible {
  outline: 1px solid #fff200;
  outline-offset: 0.4rem;
}

/* «otro»: más chico y gris, apagado. */
.game-start.game-again {
  width: 13%;
  animation: none;
  opacity: 0.85;
}

.game-start.game-again:hover {
  opacity: 1;
}

.game-start.game-again:focus-visible {
  outline-color: #9a9a96;
}

@keyframes game-flicker {
  0%,
  100% {
    opacity: 1;
  }

  8% {
    opacity: 0.86;
  }

  9% {
    opacity: 1;
  }

  31% {
    opacity: 0.12;
  }

  32% {
    opacity: 1;
  }

  33% {
    opacity: 0.25;
  }

  34.5% {
    opacity: 1;
  }

  57% {
    opacity: 0.92;
    translate: -50.4% -50%;
  }

  58% {
    opacity: 1;
    translate: -50% -50%;
  }

  76% {
    opacity: 0.05;
  }

  78% {
    opacity: 0.6;
  }

  79% {
    opacity: 0.08;
  }

  81% {
    opacity: 1;
  }
}

.game-stage.is-pressed .game-start {
  animation: game-press 260ms steps(2);
}

@keyframes game-press {
  50% {
    translate: -50% calc(-50% + 3px);
    filter: brightness(1.3);
  }
}

/* El juego en marcha: el lienzo tapa al dibujo (que es el mismo, ya separado). */
.game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.game-stage.is-playing .game-stage__image {
  visibility: hidden;
}

.game-stage.is-over .game-canvas {
  animation: game-over 1.2s ease-in forwards;
}

@keyframes game-over {
  to {
    filter: grayscale(1) brightness(0.4);
  }
}

.game-hint {
  position: absolute;
  bottom: 1.2%;
  left: 50%;
  margin: 0;
  color: rgb(243 241 235 / 55%);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  letter-spacing: 0.06em;
  translate: -50% 0;
  white-space: nowrap;
  pointer-events: none;
}

.game-start[hidden],
.game-blob[hidden] {
  display: none;
}

/* El final: Blob mirando el ocaso. */
.ocaso {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: #050505;
}

.illustration-link .ocaso {
  position: absolute;
  z-index: 0;
}

.ocaso svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ocaso__blob {
  fill: var(--black);
  stroke: rgb(243 241 235 / 50%);
  stroke-width: 1.2;
}

.ocaso__limbs line {
  stroke: var(--black);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.ocaso__figure {
  filter: drop-shadow(-0.8px -0.8px 0 rgb(243 241 235 / 45%));
}

.ocaso__eyes circle {
  fill: var(--black);
  stroke: rgb(243 241 235 / 40%);
}

.ocaso__dots circle {
  fill: rgb(243 241 235 / 95%);
}

.ocaso__back {
  opacity: 0;
}

.ocaso__front,
.ocaso__back {
  transition: opacity 500ms ease;
}

.ocaso.is-turned .ocaso__front,
.ocaso.is-still .ocaso__front {
  opacity: 0;
}

.ocaso.is-turned .ocaso__back,
.ocaso.is-still .ocaso__back {
  opacity: 1;
}

/* Al final se sienta con las piernas cruzadas. */
.ocaso__sit {
  opacity: 0;
  transition: opacity 600ms ease;
}

.ocaso.is-sitting .ocaso__back {
  opacity: 0;
}

.ocaso.is-sitting .ocaso__sit {
  opacity: 1;
}

/* El cielo del final (lo mueve el reloj, ver aventura.js). Al ganar aparece
   de a poco; después ya está. */
.ocaso__sky {
  opacity: 0;
  transition: opacity 7s ease-in;
}

.ocaso.is-dusk .ocaso__sky,
.ocaso.is-still .ocaso__sky {
  opacity: 1;
}

.ocaso__sun,
.ocaso__moon,
.ocaso__glow-front,
.ocaso__glow-back,
.ocaso__stars {
  transition: opacity 20s linear;
}

.ocaso__stars circle {
  fill: #f3f1eb;
}

/* A la mañana, Blob sentado mira hacia nosotros (el sol sale de este lado). */
.ocaso__sit-front {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.ocaso.is-sitting.is-morning .ocaso__sit {
  opacity: 0;
}

.ocaso.is-sitting.is-morning .ocaso__sit-front {
  opacity: 1;
}

/* Blob, entre el tanque verde (abajo en el medio) y la primera torre amarilla. */
/* «volver» a la izquierda de Blob asomado. */
.game-stage .game-peek-back.page-back {
  position: absolute;
  bottom: 1%;
  left: 0.8%;
  z-index: 4;
  margin: 0;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  translate: none;
  opacity: 0.6;
}

.game-stage .game-peek-back.page-back:hover {
  opacity: 1;
}

.game-peek-back[hidden] {
  display: none;
}

.game-blob {
  position: absolute;
  z-index: 3;
  left: 6.6%;
  bottom: -0.6%;
  width: 4.2%;
  cursor: pointer;
  animation: game-peek 7s ease-in-out infinite;
}

/* Al tocarlo: retumba y parpadea (los ojos casi desaparecen). */
.game-blob.is-blinking .game-blob__eyes,
.game-blob.is-blinking .game-blob__dots {
  animation: game-blink 650ms ease;
}

.game-blob.is-blinking .game-blob__svg {
  animation: game-thump 420ms ease-out;
}

@keyframes game-blink {
  20%,
  60% {
    opacity: 0.05;
    transform: scaleY(0.15);
  }
}

@keyframes game-thump {
  25% {
    translate: -1px 2px;
    scale: 1.05 0.94;
  }

  55% {
    translate: 1px -1px;
  }
}

.game-blob__eyes,
.game-blob__dots {
  transform-box: fill-box;
  transform-origin: center;
}

/* «- otra -» en el lugar del aviso. */
.game-hint .game-again-inline {
  border: 0;
  padding: 0.2rem 0.6rem;
  background: transparent;
  color: rgb(243 241 235 / 70%);
  font: inherit;
  letter-spacing: 0.12em;
  cursor: pointer;
  pointer-events: auto;
}

.game-hint .game-again-inline:hover {
  color: var(--white);
}

/* Se asoma: sube apenas, mira, baja un poquito. */
@keyframes game-peek {
  0%,
  100% {
    translate: 0 18%;
  }

  40%,
  70% {
    translate: 0 0;
  }
}

.game-blob__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(-0.7px -0.7px 0 rgb(243 241 235 / 52%))
    drop-shadow(0 0 4px rgb(243 241 235 / 10%));
}

.game-blob__body {
  fill: var(--black);
}

.game-blob__limbs line {
  stroke: var(--black);
  stroke-width: 4;
  stroke-linecap: round;
}

.game-blob__eyes circle {
  fill: var(--black);
  stroke: rgb(243 241 235 / 36%);
  stroke-width: 1;
}

.game-blob__dots circle {
  fill: rgb(243 241 235 / 95%);
}

@media (prefers-reduced-motion: reduce) {
  .page-back__o::before,
  .game-start,
  .track.is-traveling .track__splat {
    animation: none;
  }
}

/* Dibujos que se muestran con su archivo original, nítidos (bloques sin
   suavizar): por ahora, «back in the game». */
.viewer__image.is-crisp {
  image-rendering: pixelated;
}

/* La mano de ppHayy que apaga la radio: negra, con las uñas blancas y el
   contorno blanco sutil de siempre. Pasa por detrás de la esquina. */
.radio-hand {
  position: fixed;
  z-index: 17;
  pointer-events: none;
  transform-origin: 20% 20%;
}

.radio-hand svg {
  display: block;
  overflow: visible;
}

/* El contorno (un filtro SVG en el conjunto) rodea la mano entera: así no se
   ve la unión de los dedos. */
.radio-hand__part {
  transform-box: view-box;
}

.radio-hand__skin {
  fill: var(--black);
}

/* Lo blanco del dibujo (uñas y astillas): solo del lado de las uñas. */
.radio-hand__ink {
  display: none;
  fill: rgb(243 241 235 / 96%);
}

.radio-hand.is-back .radio-hand__ink {
  display: inline;
}

/* Y del lado de la palma, sus pliegues; del otro lado no. */
.radio-hand.is-back .radio-hand__lines,
.radio-hand.is-back .radio-hand__pad {
  display: none;
}

.radio-button.is-pressed svg {
  translate: -1px 1px;
}

/* La línea de la firma, agrietada (y, si se rompió, con el agujero). */
.line-crack {
  position: fixed;
  z-index: 3;
  width: 120px;
  height: 30px;
  overflow: visible;
  pointer-events: none;
}

.line-crack__shard {
  stroke: rgb(243 241 235 / 45%);
  stroke-width: 1;
  stroke-linecap: square;
}

.line-crack__fissure {
  fill: none;
  stroke: var(--black);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-crack__chip,
.line-crack__hole {
  fill: var(--black);
}

/* «invocar» tapado por dos cortinas rojas de tela mientras dura la vida de un
   blob. Se cierran despacio desde los costados, con pliegues y un vaivén. */
.mixer-invoke-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}

/* La tela (y el botón): se aprieta cuando los corchetes entran. */
.mixer-cloth {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.3rem;
  transform: scaleX(var(--cloth, 1));
  transition: transform 60ms linear;
}

.mixer-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 35%), transparent 18%),
    repeating-linear-gradient(90deg, #7a0d16 0 3px, #b3162a 3px 6px, #d3263a 6px 7px, #8f111e 7px 10px);
  box-shadow: inset 0 -6px 8px rgb(0 0 0 / 35%);
  pointer-events: none;
}

/* La forma de cada cortina: arriba llega primero (--ct) y abajo la sigue
   (--cb); mezclador.js los mueve (setCurtains). */
.mixer-curtain--left {
  left: 0;
  transform-origin: left top;
  clip-path: polygon(0 0, calc(var(--ct, 0) * 100%) 0, calc(var(--cb, 0) * 100%) 100%, 0 100%);
}

.mixer-curtain--right {
  right: 0;
  transform-origin: right top;
  clip-path: polygon(100% 0, calc(100% - var(--ct, 0) * 100%) 0, calc(100% - var(--cb, 0) * 100%) 100%, 100% 100%);
}

.mixer-invoke-wrap.is-shut .mixer-curtain {
  animation: mixer-curtain-sway 3.2s ease-in-out infinite;
}

/* Los hilos que tiran de las cortinas, por el riel de arriba. */
.mixer-string {
  position: absolute;
  top: 1px;
  z-index: 2;
  height: 1px;
  width: calc(var(--ct, 0) * 51%);
  background: rgb(243 241 235 / 55%);
  opacity: calc(var(--ct, 0) * 4);
  pointer-events: none;
}

.mixer-string--left {
  left: 0;
}

.mixer-string--right {
  right: 0;
}

.mixer-invoke-wrap.is-shut .mixer-string {
  opacity: 0.35;
}

.mixer-invoke-wrap.is-shut .mixer-invoke {
  visibility: hidden;
}

@keyframes mixer-curtain-sway {
  50% {
    transform: skewX(1.2deg);
  }
}

/* Las cortinas negras que tapan toda la página antes del juego. */
html > .curtains {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.curtains__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 12%),
    repeating-linear-gradient(90deg, #050505 0 14px, #121212 14px 26px, #0a0a0a 26px 40px);
  box-shadow: 0 0 30px rgb(0 0 0 / 80%);
  transition: transform 1.6s cubic-bezier(0.55, 0.05, 0.25, 1);
}

.curtains__panel--left {
  left: 0;
  transform: translateX(-102%);
}

.curtains__panel--right {
  right: 0;
  transform: translateX(102%);
}

html > .curtains.is-closed .curtains__panel {
  transform: translateX(0);
}

/* El portal escondido, abajo en el medio: aparece solo cuando el blob cae. */
.secret-portal {
  position: fixed;
  bottom: -13px;
  z-index: 3;
  width: 70px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 22px 6px rgb(232 107 208 / 45%);
  opacity: 0;
  scale: 0.1 0.1;
  translate: -50% 0;
  transition: opacity 400ms ease, scale 500ms cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.secret-portal::before {
  content: "";
  position: absolute;
  inset: -120% -20%;
  background: conic-gradient(#ff5d5d, #ffb84d, #5be3a0, #4cc9f0, #e86bd0, #ff5d5d);
  animation: aventura-swirl 1.2s linear infinite;
}

.secret-portal.is-open {
  opacity: 1;
  scale: 1 1;
}

@media (prefers-reduced-motion: reduce) {
  .mixer-curtain,
  .curtains__panel {
    transition-duration: 0.2s;
  }

  .mixer-invoke-wrap.is-covered .mixer-curtain,
  .secret-portal::before {
    animation: none;
  }
}

/* Un bloque que se fue por el portal (o cuyo blob murió) no se ve nunca más. */
.track[hidden] {
  display: none !important;
}

/* Sin recuadros al hacer clic con el mouse (con Tab, el marco sigue). */
html.is-pointer :focus,
html.is-pointer :focus-visible,
body > main:focus {
  outline: none;
}

html.is-pointer .aventura-hit:focus-visible {
  stroke: none;
}

/* Las tablitas blancas de Blob araña (portada). */
.aventura-plank {
  fill: rgb(243 241 235 / 82%);
  animation: aventura-plank-in 1.2s ease both;
}

@keyframes aventura-plank-in {
  from {
    opacity: 0;
  }
}

/* La charla con «a» (música, cuando ya no quedan canciones). */
.charla {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(26rem, calc(100vw - 2rem));
  height: min(24rem, 60vh);
  border: 1px solid rgb(243 241 235 / 22%);
  background: rgb(7 7 7 / 92%);
  color: var(--white);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  translate: -50% -50%;
  animation: charla-in 1.2s ease both;
}

@keyframes charla-in {
  from {
    opacity: 0;
  }
}

.charla__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 1px solid rgb(243 241 235 / 12%);
  padding: 0.55rem 0.8rem;
}

.charla__who {
  color: #39ff6a;
  font-size: 0.95rem;
}

.charla__state {
  color: rgb(243 241 235 / 45%);
  font-size: 0.68rem;
}

.charla__log {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.8rem;
  overflow-y: auto;
  list-style: none;
}

.charla__msg {
  max-width: 80%;
  line-height: 1.45;
  animation: charla-in 400ms ease both;
}

.charla__msg--a {
  align-self: flex-start;
  color: rgb(243 241 235 / 88%);
}

.charla__msg--vos {
  align-self: flex-end;
  color: rgb(243 241 235 / 60%);
  text-align: right;
}

.charla__form {
  border-top: 1px solid rgb(243 241 235 / 12%);
}

.charla__input {
  display: block;
  width: 100%;
  border: 0;
  padding: 0.7rem 0.8rem;
  background: transparent;
  color: var(--white);
  font: inherit;
  outline: none;
}

.charla__input::placeholder {
  color: rgb(243 241 235 / 35%);
}

/* La «o» con el portal del juego adentro, apagado (mientras Blob vive allá). */
.page-back__o.is-dormant::after,
.page-back__o.is-awake::after {
  content: "";
  position: absolute;
  top: 58%;
  left: 50%;
  z-index: -1;
  width: 0.36em;
  height: 0.36em;
  border-radius: 50%;
  background: conic-gradient(#3a3a3a, #1c1c1c, #4a4a4a, #222, #3a3a3a);
  opacity: 0.55;
  translate: -50% -50%;
  animation: aventura-swirl 9s linear infinite;
  pointer-events: none;
}

.page-back__o.is-awake::after {
  width: 1.2em;
  height: 1.2em;
  background: conic-gradient(#ff5d5d, #ffb84d, #5be3a0, #4cc9f0, #e86bd0, #ff5d5d);
  opacity: 1;
  transition: width 0.5s ease, height 0.5s ease;
  animation-duration: 1s;
}

/* La mano, del lado de la palma: pliegues suaves y yemas un poco más claras. */
.radio-hand__lines path {
  fill: none;
  stroke: rgb(243 241 235 / 16%);
  stroke-width: 4;
  stroke-linecap: round;
}

.radio-hand__pad {
  fill: rgb(243 241 235 / 13%);
}

/* La barra de notas/octava (abajo de todo), con su marquita en el medio. */
:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__pitch {
  --head-tint: #ffe62e;
  background: linear-gradient(rgb(243 241 235 / 35%), rgb(243 241 235 / 35%)) 50% 50% / 1px 7px no-repeat;
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__pitch::-webkit-slider-runnable-track {
  background: rgb(243 241 235 / 16%);
}

:is(.mixer-panel, .mixer-float) .mixer-head input[type="range"].mixer-head__pitch::-moz-range-track {
  background: rgb(243 241 235 / 16%);
}

/* Los textos están «impresos»: al pasar el mouse se ve la flecha, no la
   barrita (igual se pueden seleccionar arrastrando). Los campos para
   escribir siguen con su cursor de texto. */
body {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

/* Nada se puede marcar (ni se pinta de azul), salvo donde se escribe. */
input:not([type="range"]),
textarea,
[contenteditable] {
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

/* Las cabezas flotando solas (la bandeja escondida), con su botón al lado. */
/* Las cabezas sueltas: flotan donde las dejaste, con su botón abajo. */
.mixer-float {
  position: fixed;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* el botón siempre abajo; las cabezas, arriba de él */
  gap: 0.5rem;
  font-family: var(--mix-mono);
  font-size: 0.74rem;
}

.mixer-float[hidden] {
  display: none;
}

.mixer-float.is-sliding {
  transition: left 600ms ease, top 600ms ease;
}

.mixer-float .mixer-heads {
  position: static;
}

.mixer-float .mixer-heads[hidden] {
  display: none;
}

.mixer-float .mixer-summon {
  position: static;
  touch-action: none;
}

.mixer-float .mixer-summon[aria-pressed="true"] {
  opacity: 0.55;
}

.mixer-float.is-carried .mixer-summon {
  cursor: grabbing;
}

/* 3.er toque: se apaga la luz del botón (siguen sonando). */
:is(.mixer-panel, .mixer-float) .mixer-summon.is-dim {
  border-color: rgb(243 241 235 / 10%);
  opacity: 0.4;
}

:is(.mixer-panel, .mixer-float) .mixer-summon.is-dim svg {
  filter: grayscale(1) brightness(0.6);
}

/* 4.º toque: se van implosionando («plof»). */
.mixer-heads.is-imploding .mixer-head {
  animation: mixer-implode 420ms cubic-bezier(0.6, 0, 0.9, 0.4) forwards;
}

@keyframes mixer-implode {
  30% {
    transform: scale(1.12);
  }

  to {
    transform: scale(0);
    opacity: 0;
  }
}

@media (max-width: 48rem) {
  .mixer-float {
    position: fixed;
    right: 0.6rem;
    bottom: var(--lift, 9rem);
    left: 0.6rem;
    width: auto !important;
  }

  .mixer-float .mixer-heads {
    right: auto;
    bottom: 2.6rem;
    left: 0;
  }

  .mixer-float .mixer-summon {
    right: auto;
    left: 0;
  }
}

/* Las barritas de nivel del loop (adentro de «invocar», también con la tela
   roja): rojas con poco volumen, amarillas en el medio, verdes bien alto. */
.mixer-meter {
  display: flex;
  gap: 2px;
  height: 7px;
  margin: 2px 4px 3px;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.mixer-meter:focus-visible {
  outline: 1px solid rgb(243 241 235 / 35%);
  outline-offset: 2px;
}

.mixer-meter i {
  flex: 1;
  border-radius: 1px;
  background: rgb(243 241 235 / 10%);
  transition: background 120ms ease;
}

.mixer-meter i.is-on:nth-child(-n + 3) {
  background: #ff5d5d;
}

.mixer-meter i.is-on:nth-child(n + 4):nth-child(-n + 6) {
  background: #ffe62e;
}

.mixer-meter i.is-on:nth-child(n + 7) {
  background: #5be3a0;
}

/* Con la tela roja cerrada: un clic abre el teclado (brilla apenas). */
.mixer-invoke-wrap.is-shut .mixer-cloth {
  cursor: pointer;
}

.mixer-invoke-wrap.is-keyboard .mixer-cloth {
  box-shadow: 0 0 10px rgb(255 93 93 / 45%);
}

/* d, la nube del atardecer (a la izquierda del duende). */
.mixer-head--dusk {
  --head-tint: #b47ad0;
  animation-duration: 5.8s;
  animation-delay: -1.2s;
}

.mixer-head--dusk canvas {
  translate: 0 0;
}

/* La piedra casi no se mueve al tocarla: tiembla apenas desde donde la
   tocaste (un pixel), muy rápido. */
.mixer-head__button.is-hit canvas {
  animation: mixer-stone-hit 140ms ease-out;
}

@keyframes mixer-stone-hit {
  25% {
    translate: var(--nudge-x, 0) var(--nudge-y, 1px);
  }

  60% {
    translate: calc(var(--nudge-x, 0) * -0.4) calc(var(--nudge-y, 1px) * -0.4);
  }
}

/* «contacto» esconde algo: al pasar el mouse, chispitas. */

.secret-spark {
  position: fixed;
  z-index: 200;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f3f1eb;
  box-shadow: 0 0 6px 1px rgb(243 241 235 / 60%);
  pointer-events: none;
  animation: secret-spark 650ms ease-out forwards;
}

@keyframes secret-spark {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.4);
  }
}

/* El choque: justo antes de tocar la piedra, un corte a negro de un instante. */
.crash {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #000;
  pointer-events: none;
}

.crash.is-done {
  opacity: 0;
  transition: opacity 160ms ease;
}

/* La arena en que se deshizo. */
.crash-sand {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

/* El último blob: sus globitos y su desmayo (ojos cerrados para siempre). */
.blob-bubble {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  z-index: 20;
  padding: 0.3rem 0.55rem;
  border: 1.5px solid #f3f1eb;
  border-radius: 0.8rem;
  background: #f3f1eb;
  color: #050505;
  font-family: "Comic Sans MS", "Comic Neue", ui-rounded, sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
  translate: -50% 0;
  animation: blob-bubble 4.2s ease both;
  pointer-events: none;
}

.blob-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30%;
  border: 7px solid transparent;
  border-top-color: #f3f1eb;
}

@keyframes blob-bubble {
  0% {
    opacity: 0;
    scale: 0.6;
  }

  8%,
  85% {
    opacity: 1;
    scale: 1;
  }

  100% {
    opacity: 0;
  }
}

.track.is-fainted .track__drop--eye,
.track.is-fainted .track__dot {
  opacity: 0 !important;
}

.track.is-fainted .track__lid {
  opacity: 0.7 !important;
  transform: scaleX(0.7) !important;
}

.track.is-fainted .track__splat {
  rotate: 80deg;
  transition: rotate 1.4s ease-in;
}

/* La barra del volumen del loop (abajo de «invocar»). */
.mixer-panel .mixer-loop-level {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.mixer-panel .mixer-loop-level::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, #ff5d5d, #ffe62e 50%, #5be3a0) 0 0 / var(--progress, 55%) 100% no-repeat, rgb(243 241 235 / 14%);
}

.mixer-panel .mixer-loop-level::-moz-range-track {
  height: 2px;
  background: rgb(243 241 235 / 14%);
}

.mixer-panel .mixer-loop-level::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #f3f1eb;
  appearance: none;
}

.mixer-panel .mixer-loop-level::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #f3f1eb;
}

/* El teclado (61 teclas, inspirado en un Casio CT-S500). */
.kbd {
  position: fixed;
  right: auto;
  bottom: 10rem;
  z-index: 30;
  width: min(36rem, 72vw);
  border: 1px solid rgb(243 241 235 / 18%);
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem 0.6rem;
  background: #0d0d0f;
  box-shadow: 0 10px 30px rgb(0 0 0 / 60%);
  font-family: var(--mix-mono, ui-monospace, monospace);
  color: rgb(243 241 235 / 75%);
  animation: mixer-in 300ms ease;
}

.kbd[hidden] {
  display: none;
}

:is(.mixer-panel, .kbd) .kbd__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

:is(.mixer-panel, .kbd) .kbd__knob {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(243 241 235 / 35%);
  border-radius: 50%;
  padding: 0;
  background: radial-gradient(circle at 40% 35%, #2a2a2e, #111);
  cursor: pointer;
}

:is(.mixer-panel, .kbd) .kbd__knob span {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 8px;
  background: #5be3a0;
  translate: -50% 0;
  box-shadow: 0 0 6px #5be3a0;
}

:is(.mixer-panel, .kbd) .kbd__brand {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: rgb(243 241 235 / 40%);
}

:is(.mixer-panel, .kbd) .kbd__screen {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  border-radius: 0.25rem;
  padding: 0.15rem 0.35rem;
  background: #1e2a1c;
  color: #a8ff9a;
  font-size: 0.75rem;
  box-shadow: inset 0 0 6px rgb(0 0 0 / 70%);
  cursor: ns-resize;
}

:is(.mixer-panel, .kbd) .kbd__num {
  min-width: 1ch;
  font-size: 1rem;
  text-align: center;
}

:is(.mixer-panel, .kbd) .kbd__name {
  min-width: 8.5rem;
  opacity: 0.75;
}

:is(.mixer-panel, .kbd) .kbd__step,
:is(.mixer-panel, .kbd) .kbd__extra,
:is(.mixer-panel, .kbd) .kbd__knob {
  min-height: 0;
}

:is(.mixer-panel, .kbd) .kbd__step,
:is(.mixer-panel, .kbd) .kbd__extra {
  border: 0;
  padding: 0 0.2rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:is(.mixer-panel, .kbd) .kbd__extra {
  border: 1px solid rgb(243 241 235 / 25%);
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
  color: rgb(243 241 235 / 60%);
  font-size: 0.7rem;
}

:is(.mixer-panel, .kbd) .kbd__extra[aria-pressed="true"] {
  border-color: #ffb84d;
  color: #ffb84d;
}

:is(.mixer-panel, .kbd) .kbd__keys {
  position: relative;
  display: flex;
  height: 5.2rem;
  touch-action: none;
}

:is(.mixer-panel, .kbd) .kbd__key {
  min-width: 0;
  min-height: 0;
  border: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
}

:is(.mixer-panel, .kbd) .kbd__key--white {
  flex: 1;
  margin-right: 1px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(#e9e6dc, #f6f4ec);
}

:is(.mixer-panel, .kbd) .kbd__key--white.is-down {
  background: linear-gradient(#cfcbbd, #ddd9cc);
}

:is(.mixer-panel, .kbd) .kbd__key--black {
  position: absolute;
  top: 0;
  left: calc(var(--x) * (100% / var(--whites)) - (100% / var(--whites)) * 0.32);
  width: calc((100% / var(--whites)) * 0.62);
  height: 58%;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(#222, #0a0a0a);
  z-index: 2;
}

/* Las teclas que alcanzan las letras en la capa elegida: una rayita abajo. */
:is(.mixer-panel, .kbd) .kbd__key--white.is-reach {
  box-shadow: inset 0 -3px 0 rgb(91 227 160 / 55%);
}

:is(.mixer-panel, .kbd) .kbd__key--black.is-reach {
  box-shadow: inset 0 -2px 0 rgb(91 227 160 / 70%);
}


:is(.mixer-panel, .kbd) .kbd__key--black.is-down {
  background: linear-gradient(#3a3a3a, #1a1a1a);
}

@media (max-width: 48rem) {
  .kbd {
    position: fixed;
    right: 0.6rem;
    bottom: calc(var(--lift, 9rem) + 10rem);
    left: 0.6rem;
    width: auto;
  }
}

/* El circulito para apagar la página (arriba a la derecha, en todas). */
.lights-switch {
  position: fixed;
  top: 0.9rem;
  left: calc(50% - 7px);
  z-index: 400;
  width: 14px;
  height: 14px;
  border: 1px solid rgb(243 241 235 / 22%);
  border-radius: 50%;
  padding: 0;
  background: #000;
  cursor: pointer;
}

/* Siempre igual: ni al pasar el mouse ni al apretarlo cambia. */
.lights-switch:hover,
.lights-switch:active,
.lights-switch:focus-visible {
  border-color: rgb(243 241 235 / 22%);
  outline: none;
  transform: none;
}

/* Apagada: negro profundo encima de todo. */
.blackout {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  opacity: 0;
  cursor: default;
  transition: opacity 500ms ease;
}

.blackout.is-on {
  opacity: 1;
}

/* Detrás del negro no se dibuja nada (ahorro); el sonido sigue. */
html.is-dark body > :not(.blackout) {
  visibility: hidden;
}

html.is-dark *,
html.is-dark *::before,
html.is-dark *::after {
  animation-play-state: paused !important;
}

/* «invocar» es un teatrito: todo el botón es el escenario y en el medio hay
   un hombrecito de palitos con su micrófono de pie (sin la palabra). */
.mixer-panel .mixer-invoke {
  display: block;
  width: 100%;
  height: 2.3rem;
  padding: 0;
  background: radial-gradient(ellipse 38% 70% at 50% 100%, rgb(255 184 77 / 16%), transparent 70%), #070606;
}

.mixer-stage {
  display: block;
  width: 100%;
  height: 100%;
}

.mixer-stage__floor {
  stroke: rgb(255 138 31 / 38%);
  stroke-width: 0.6;
}

.mixer-stage__man {
  filter: drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 2.2px rgb(255 226 170 / 85%));
  transform-box: view-box;
  transform-origin: 31px 22.3px;
  animation: mixer-stage-sway 7s ease-in-out infinite;
}

.mixer-stage__body {
  fill: #fff8e8;
}

.mixer-stage__hair {
  fill: #050505;
}

.mixer-stage__mic {
  fill: rgb(243 241 235 / 55%);
  stroke: rgb(243 241 235 / 55%);
  stroke-width: 0.5;
  stroke-linecap: round;
}

/* Se balancea apenas y a ratos se queda quieto. */
@keyframes mixer-stage-sway {
  0%,
  22%,
  58%,
  100% {
    rotate: 0deg;
  }

  30% {
    rotate: 2.2deg;
  }

  40% {
    rotate: -1.8deg;
  }

  50% {
    rotate: 1.2deg;
  }

  72% {
    rotate: -2deg;
  }

  84% {
    rotate: 1.4deg;
  }
}

/* La barra del volumen del loop y las barritas, más abajo del escenario. */
.mixer-invoke-wrap {
  width: 7.2rem;
  gap: 0;
}

.mixer-invoke-wrap .mixer-cloth {
  display: flex;
}

.mixer-panel .mixer-loop-level {
  margin-top: 4px;
}

/* «ver», encandilado por el portal lleno. */
.page-back__ver {
  transition: opacity 2s ease;
}

.page-back.is-blinded .page-back__ver {
  opacity: 0.4;
}

/* Las perillas del teclado: capa, eco y octava (clic sube, rueda sube o baja). */
.kbd__knobs {
  display: flex;
  gap: 0.55rem;
}

:is(.mixer-panel, .kbd) .kbd__dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgb(243 241 235 / 55%);
  font-size: 0.56rem;
  line-height: 1;
}

.kbd__dial-face {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(243 241 235 / 35%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a2a2e, #111);
}

.kbd__dial-face i {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  background: #ffb84d;
  transform-origin: 1px 7px;
  rotate: var(--turn, 0deg);
  transition: rotate 120ms ease;
}

.kbd__dial-text b {
  margin-right: 0.2em;
  color: #a8ff9a;
  font-weight: 400;
}

/* El graffiti de «música» (script.js): la impresión en un negro más negro y,
   con el mouse quieto, notas y signos blancos que brotan hacia afuera y
   negros que los tapan, cada vuelta más fuerte. */
.primary-link--music .note-layer {
  overflow: visible;
}

.note.is-printed {
  color: #000;
  -webkit-text-stroke: calc(0.35px + var(--ink, 0) * 0.12px) rgb(243 241 235 / calc(13% + var(--ink, 0) * 2%));
  text-shadow:
    0 0 calc(1px + var(--ink, 0) * 1.5px) #000,
    0 0 calc(var(--ink, 0) * 4px) #000;
  animation: note-print 260ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

@keyframes note-print {
  from {
    scale: 1.12;
  }
}

.note--light {
  color: rgb(243 241 235 / calc(45% + var(--level, 0) * 11%));
  text-shadow: 0 0 calc(2px + var(--level, 0) * 2px) rgb(255 255 255 / calc(25% + var(--level, 0) * 10%));
  animation: note-sprout 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes note-sprout {
  from {
    opacity: 0;
    translate: calc(var(--dx, 0px) * -1) calc(var(--dy, 0px) * -1);
    scale: 0.4;
  }
}

.note--dark {
  color: #000;
  text-shadow: 0 0 2px #000;
}

/* Sin barra de desplazamiento en ningún lado (la página se mueve igual). */
html,
* {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

/* El agujero negro del botón de apagar: una oscuridad que crece desde él. */
.black-hole {
  position: fixed;
  inset: 0;
  z-index: 399;
  background: radial-gradient(circle var(--r, 4vmax) at var(--x) var(--y), #000 0%, #000 55%, rgb(0 0 0 / 60%) 80%, transparent 100%);
  opacity: 0;
  pointer-events: none;
}

/* El título es la manija del bloque: con el mouse encima, sus letras toman
   un poquito más de cuerpo. */
.track:not(.is-collapsed) .track__title {
  transition: text-shadow 160ms ease;
}

.track:not(.is-collapsed) .track__title:hover,
.track.is-dragging .track__title {
  text-shadow: 0.25px 0 0 currentColor, -0.25px 0 0 currentColor, 0 0 0.4px currentColor;
}

/* La forma del bloque (musica.js dibuja el contorno): pestaña con el título
   y los dos hombros de arriba hundidos. El borde y el fondo los pone el SVG. */
.track:not(.is-collapsed) {
  border-color: transparent;
  background: transparent;
  isolation: isolate;
  cursor: default;
}

.track__outline {
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.track__outline path {
  fill: var(--black);
  stroke: var(--line);
  stroke-width: 1;
  transition: stroke 180ms ease;
}

.track.is-playing .track__outline path {
  stroke: rgb(243 241 235 / 48%);
}

.track.is-dragging .track__outline path {
  stroke: var(--white);
}

.track.is-dragging {
  box-shadow: none;
}

.track.is-dragging .track__outline {
  filter: drop-shadow(0 0.8rem 1.4rem rgb(0 0 0 / 70%));
}

/* La perilla de prender: girada según el volumen del teclado. */
:is(.mixer-panel, .kbd) .kbd__knob span {
  transform-origin: 50% 9px;
  rotate: var(--turn, 0deg);
  transition: rotate 80ms linear;
}

:is(.mixer-panel, .kbd) .kbd__knob {
  cursor: ns-resize;
}

/* «+capas» y «auto»: perillas que se prenden (luz verde). */
.kbd__dial--toggle .kbd__dial-face i {
  rotate: -90deg;
  background: rgb(243 241 235 / 35%);
}

.kbd__dial--toggle[aria-pressed="true"] .kbd__dial-face i {
  rotate: 90deg;
  background: #5be3a0;
  box-shadow: 0 0 6px #5be3a0;
}

.kbd__dial--toggle[aria-pressed="true"] .kbd__dial-text {
  color: #a8ff9a;
}

/* Las teclas que toca la cabeza oculta: un poquito verdes. */
:is(.mixer-panel, .kbd) .kbd__key--white.is-auto {
  background: linear-gradient(#cfe9d6, #dff3e4);
}

:is(.mixer-panel, .kbd) .kbd__key--black.is-auto {
  background: linear-gradient(#2c4d38, #16281d);
}



/* El blob piedra que golpea la mano de la radio, agarrado y tirado. */
.track.is-bonked .track__splat {
  animation: blob-bonk 420ms ease-out;
}

@keyframes blob-bonk {
  30% {
    translate: -4px 3px;
    rotate: -8deg;
  }
}

.track.is-pinched .track__splat {
  rotate: -12deg;
  scale: 0.92;
  transition: rotate 300ms ease, scale 300ms ease;
}

.track.is-thrown .track__splat {
  rotate: calc(var(--fly, 0) * 2turn);
  scale: calc(1 - var(--fly, 0) * 0.85);
}

/* La figura habla: puntitos de luz que aparecen al lado de la cabeza; cada
   vez que se aprieta el escenario se mueve un poco más (data-talk). */
.mixer-stage__talk circle {
  fill: #fff8e8;
  opacity: 0;
}

.mixer-invoke-wrap[data-talk="1"] .mixer-stage__talk circle,
.mixer-invoke-wrap[data-talk="2"] .mixer-stage__talk circle,
.mixer-invoke-wrap[data-talk="3"] .mixer-stage__talk circle {
  animation: mixer-talk 2.4s ease-in-out infinite;
}

.mixer-stage__talk circle:nth-child(2) {
  animation-delay: 0.25s !important;
}

.mixer-stage__talk circle:nth-child(3) {
  animation-delay: 0.5s !important;
}

@keyframes mixer-talk {
  0%,
  60%,
  100% {
    opacity: 0;
  }

  20%,
  40% {
    opacity: 0.9;
  }
}

.mixer-invoke-wrap[data-talk="1"] .mixer-stage__man {
  animation: mixer-stage-sway 5s ease-in-out infinite, mixer-stage-bob 1.7s ease-in-out infinite;
}

.mixer-invoke-wrap[data-talk="2"] .mixer-stage__man,
.mixer-invoke-wrap[data-talk="3"] .mixer-stage__man {
  animation: mixer-stage-sway-more 3.2s ease-in-out infinite, mixer-stage-bob 1.2s ease-in-out infinite;
}

@keyframes mixer-stage-bob {
  50% {
    translate: 0 -0.35px;
  }
}

@keyframes mixer-stage-sway-more {
  0%,
  100% {
    rotate: 0deg;
  }

  20% {
    rotate: 4deg;
  }

  45% {
    rotate: -3.5deg;
  }

  70% {
    rotate: 2.5deg;
  }
}

/* «Ritual de iniciación»: el teatro grande en el centro de la página. */
.theater {
  --dim: 0;
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding-top: 10vh;
  background: rgb(0 0 0 / calc(var(--dim) * 22%));
  pointer-events: none;
}

.theater__box {
  position: relative;
  width: min(74vw, 64rem);
  transform-origin: center;
}

.theater__stage {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 138 31 / 40%);
  border-radius: 0.6rem;
  box-shadow: 0 0 60px rgb(0 0 0 / 80%);
}

.theater__light {
  transition: opacity 2.4s ease;
}

.theater.is-dimming .theater__light {
  opacity: 0.25;
}

.theater__fig-body {
  fill: #fff8e8;
  filter: drop-shadow(0 0 0.15px #fff) drop-shadow(0 0 0.8px rgb(255 226 170 / 80%));
  transition: filter 600ms ease, opacity 2.4s ease;
}

.theater__fig--b .theater__fig-body {
  fill: #eef6ff;
  filter: drop-shadow(0 0 0.15px #fff) drop-shadow(0 0 0.8px rgb(170 210 255 / 80%));
}

.theater__fig.is-speaking .theater__fig-body {
  filter: drop-shadow(0 0 0.3px #fff) drop-shadow(0 0 1.8px rgb(255 236 200 / 95%));
  animation: theater-speak 2.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.theater.is-dimming .theater__fig-body {
  opacity: 0.45;
}

@keyframes theater-speak {
  30% {
    rotate: 1.4deg;
  }

  65% {
    rotate: -1deg;
  }
}

.theater__title,
.theater__line {
  margin: 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  color: rgb(243 241 235 / 80%);
  opacity: 0;
  transition: opacity 900ms ease;
}

.theater__title {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgb(255 184 77 / 70%);
}



.theater__line {
  min-height: 2.4em;
  margin-top: 0.6rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-style: italic;
}

.theater__line.is-on {
  opacity: 1;
}

.theater__line--b {
  color: rgb(226 238 255 / 85%);
}

/* El blob mira fijo hacia el teatro. */
.track.is-watching .track__dot {
  translate: var(--gx, 0) var(--gy, 0);
  transition: translate 600ms ease;
}

.blob-bubble--ok {
  font-size: 1rem;
}

/* Los globitos de Blob se ven también con el bloque oculto. */
.track.is-collapsed > .blob-bubble.blob-bubble {
  display: block;
}

/* Mientras dice «ok», el blob que miraba se ve por encima del teatro. */
.track.is-spotlit {
  z-index: 310;
}

/* La tabla larga de arriba de «música»: escondida hasta que Blob se sube. */
.aventura-plank.aventura-plank--word {
  opacity: 0;
  animation: none;
  transition: opacity 500ms ease;
}

.aventura-plank.aventura-plank--word.is-shown {
  opacity: 1;
}

/* En la improvisación, la que se queda mirando el árbol o la silla brilla
   apenas más quieta. */
.theater__fig.is-admiring .theater__fig-body {
  filter: drop-shadow(0 0 0.2px #fff) drop-shadow(0 0 1.2px rgb(200 255 210 / 70%));
}

.mixer-float.is-carried {
  will-change: transform;
}

/* La piedra que le pegó a la mano: ya no se puede mover. */
.track.is-seized {
  pointer-events: none;
}

/* «donar» → serpientes: un «$» (enroscada en un palo, lleva a Cafecito) y un
   «?» (¿quetzal?). Negro con el contorno blanco sutil, como todo. */
/* El «?» queda a la izquierda de YouTube y el «$» a la derecha. */
.corner-links .snakes {
  display: contents;
}

.corner-links .snakes .snake-ask {
  grid-area: donate;
  justify-self: end;
  margin-right: -0.7rem; /* un poco más a la derecha */
}

.corner-links .snakes .donate-button.is-snake {
  grid-area: dollar;
  justify-self: start;
  margin-left: -1.2rem; /* un poco más a la izquierda */
}

.donate-button.is-leaving {
  animation: donate-away 900ms cubic-bezier(0.5, 0, 0.8, 0.4) forwards;
}

@keyframes donate-away {
  to {
    letter-spacing: -0.2em;
    opacity: 0;
    translate: 1.6rem 0;
    filter: blur(1px);
  }
}

.donate-button.is-snake,
.snake-ask {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 2.5rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.snake {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.snake__stick {
  stroke: rgb(243 241 235 / 80%);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.snake__edge,
.snake__body {
  fill: none;
  stroke-linecap: round;
}

.snake__edge {
  stroke: rgb(243 241 235 / 75%);
  stroke-width: 5;
}

.snake__body {
  stroke: #050505;
  stroke-width: 3;
}

.snake__head ellipse,
.snake__dot {
  fill: #050505;
  stroke: rgb(243 241 235 / 75%);
  stroke-width: 1;
}

.snake__eye {
  fill: #f3f1eb;
}

.snake__tongue {
  fill: none;
  stroke: #ff3b3b;
  stroke-width: 0.8;
  stroke-linecap: round;
  transform-origin: 2.6px 0.2px;
  scale: 0 1;
}

.is-hissing .snake__tongue {
  animation: snake-hiss 900ms ease;
}

@keyframes snake-hiss {
  15%,
  45% {
    scale: 0.7 1;
  }

  30% {
    scale: 0.4 1;
  }

  60%,
  100% {
    scale: 0 1;
  }
}

.donate-button.is-snake:hover .snake__edge,
.snake-ask:hover .snake__edge {
  stroke: #f3f1eb;
}

/* Al nacer: el cuerpo se dibuja de la cabeza a la cola. */
.snakes.is-born .snake__edge,
.snakes.is-born .snake__body {
  stroke-dasharray: 80;
  animation: snake-draw 1.6s ease both;
}

.snakes.is-born .snake__head,
.snakes.is-born .snake__dot,
.snakes.is-born .snake__stick {
  animation: snake-fade 1.6s ease both;
}

@keyframes snake-draw {
  from {
    stroke-dashoffset: 80;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes snake-fade {
  from {
    opacity: 0;
  }
}

/* La hoja del «?». */
/* Arriba a la derecha: a la izquierda y un poco más abajo del botón de
   apagar (sin taparlo). */
.quetzal {
  position: fixed;
  top: 1.1rem;
  right: 4.2rem;
  z-index: 60;
  width: min(22rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.8rem 1rem 0.8rem;
  background: rgb(5 5 5 / 96%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 70%);
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  color: rgb(243 241 235 / 85%);
  animation: mixer-in 300ms ease;
}

.quetzal.is-leaving {
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms ease;
}

.quetzal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: 0;
  background: transparent;
  color: rgb(243 241 235 / 60%);
  font-size: 1.1rem;
  cursor: pointer;
}

.quetzal__ask {
  margin: 0 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--white);
}

.quetzal__free {
  margin: 0 0 0.6rem;
  color: rgb(243 241 235 / 55%);
  line-height: 1.4;
}

.quetzal__text {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.45rem;
  background: #000;
  color: var(--white);
  font: inherit;
  resize: vertical;
}

.quetzal__canvas {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  touch-action: none;
  cursor: crosshair;
}

.quetzal__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.quetzal__color {
  width: 16px;
  height: 16px;
  border: 1px solid rgb(243 241 235 / 30%);
  border-radius: 2px;
  padding: 0;
  background: var(--c);
  cursor: pointer;
}

.quetzal__color.is-on {
  outline: 1px solid var(--white);
  outline-offset: 1px;
}

.quetzal__size,
.quetzal__clear,
.quetzal__send {
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  padding: 0.15rem 0.45rem;
  background: transparent;
  color: rgb(243 241 235 / 70%);
  font: inherit;
  cursor: pointer;
}

.quetzal__size.is-on {
  border-color: rgb(243 241 235 / 70%);
  color: var(--white);
}

.quetzal__code {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.quetzal__snakecode {
  width: 140px;
  height: 44px;
}

.quetzal__answer {
  width: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 0.35rem 0.45rem;
  background: #000;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.quetzal__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quetzal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.quetzal__note {
  color: rgb(243 241 235 / 45%);
  font-size: 0.7rem;
}

/* Sin aviso, no ocupa lugar. */
.quetzal__foot:has(.quetzal__note:empty) {
  display: none;
}

.quetzal__code .quetzal__send {
  margin-left: auto;
}

.quetzal__send:not(:disabled) {
  border-color: #39ff6a;
  color: #39ff6a;
}

.quetzal__send:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Lo que dice la serpiente: solo palabras, que van apareciendo hacia la
   izquierda de su boca (sin cuadrito). */
.snake-says {
  position: fixed;
  z-index: 61;
  max-width: 22rem;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
  text-align: right;
  transform-origin: center;
  text-shadow: 0 0 6px #000, 0 0 2px #000;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.snake-says.is-appearing {
  animation: snake-appear 520ms ease both;
}

@keyframes snake-appear {
  from {
    opacity: 0;
    scale: 0.4;
    filter: blur(3px);
  }
}

.snake-says.is-gone {
  opacity: 0;
}

/* Donde la serpiente pasa por detrás de un palo: un corte negro y el palo
   encima. */
.snake__gap {
  stroke: #050505;
  stroke-width: 3.4;
}

/* El «?» salta sobre su pelotita (la pelotita se aplasta un poco al caer). */
.is-hopping .snake__hopper {
  animation: snake-hop 1.1s ease;
}

.is-hopping .snake__dot {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: snake-ball 1.1s ease;
}

@keyframes snake-hop {
  0%,
  100% {
    translate: 0 0;
  }

  18% {
    translate: 0 1px;
  }

  35% {
    translate: 0 -5px;
  }

  52% {
    translate: 0 0.8px;
  }

  66% {
    translate: 0 -2.5px;
  }

  80% {
    translate: 0 0.4px;
  }
}

@keyframes snake-ball {
  0%,
  100%,
  35%,
  66% {
    scale: 1 1;
  }

  18%,
  52% {
    scale: 1.2 0.75;
  }

  80% {
    scale: 1.08 0.9;
  }
}

/* La obra: sentadas de perfil, enfrentadas, en sus sillas; paradas para
   caminar (en la improvisación). */
.theater__fig.is-sitting .theater__stand,
.theater__fig:not(.is-sitting) .theater__sit {
  display: none;
}

.theater__limb {
  stroke: #fff8e8;
  stroke-width: 1.15;
  stroke-linecap: round;
}

.theater__fig--b .theater__limb {
  stroke: #eef6ff;
}

.theater__head {
  fill: #fff8e8;
}

.theater__fig--b .theater__head {
  fill: #eef6ff;
}

.theater__fig .theater__hair {
  fill: var(--hair);
}

.theater__chair {
  fill: none;
  stroke: rgb(216 199 166 / 75%);
  stroke-width: 0.7;
  stroke-linecap: round;
}

/* Al hablar, gesticulan con la mano (la del pelo blanco, mucho más). */
.theater__arm {
  transform-box: fill-box;
  transform-origin: 0% 0%;
}

.theater__fig.is-speaking .theater__arm {
  animation: theater-gesture 1.9s ease-in-out infinite;
}

.theater__fig--a.is-speaking .theater__arm {
  animation: theater-gesture-big 1.5s ease-in-out infinite;
}

@keyframes theater-gesture {
  40% {
    rotate: -28deg;
  }

  70% {
    rotate: -12deg;
  }
}

@keyframes theater-gesture-big {
  25% {
    rotate: -55deg;
  }

  50% {
    rotate: -20deg;
  }

  75% {
    rotate: -70deg;
  }
}

.theater__fig.is-speaking .theater__head {
  animation: theater-nod 1.3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

@keyframes theater-nod {
  50% {
    translate: 0 0.25px;
  }
}

/* El globo grande, arriba de quien habla. */
.theater__bubble {
  position: absolute;
  left: var(--x, 50%);
  z-index: 2;
  max-width: min(34rem, 46%);
  border: 1.5px solid #f3f1eb;
  border-radius: 1rem;
  padding: 0.6rem 0.9rem;
  background: #f3f1eb;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.45vw, 1.25rem);
  line-height: 1.35;
  translate: -50% calc(-100% - 14px);
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.theater__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 9px solid transparent;
  border-top-color: #f3f1eb;
  translate: -50% 0;
}

.theater__bubble--a {
  translate: -78% calc(-100% - 14px);
}

.theater__bubble--a::after {
  left: 78%;
}

.theater__bubble--b {
  translate: -22% calc(-100% - 14px);
}

.theater__bubble--b::after {
  left: 22%;
}

.theater__bubble.is-on {
  opacity: 1;
}

/* El ventilador gigante de la portada (Blob araña flota en su corriente). */
.aventura-fan__stand {
  stroke: rgb(243 241 235 / 70%);
  stroke-width: 3;
  stroke-linecap: round;
}

.aventura-fan__cage {
  fill: rgb(5 5 5 / 60%);
  stroke: rgb(243 241 235 / 55%);
  stroke-width: 1.5;
}

.aventura-fan__cage--in {
  fill: none;
  stroke-dasharray: 3 4;
}

.aventura-fan__blades {
  animation: aventura-fan-spin 0.28s linear infinite;
}

.aventura-fan__blade {
  fill: rgb(243 241 235 / 22%);
  stroke: rgb(243 241 235 / 70%);
  stroke-width: 1;
}

.aventura-fan__hub {
  fill: #050505;
  stroke: rgb(243 241 235 / 80%);
  stroke-width: 1.5;
}

@keyframes aventura-fan-spin {
  to {
    rotate: 1turn;
  }
}

.aventura-fan__wind {
  stroke: rgb(243 241 235 / 35%);
  stroke-width: 1;
  stroke-linecap: round;
  animation: aventura-wind 1.4s linear infinite;
}

@keyframes aventura-wind {
  from {
    opacity: 0;
    translate: 0 0;
  }

  30% {
    opacity: 1;
  }

  to {
    opacity: 0;
    translate: -120px -40px;
  }
}

/* La telaraña. */
.aventura-silk {
  stroke: rgb(243 241 235 / 85%);
  stroke-width: 0.8;
  stroke-dasharray: 2 1.5;
  transition: opacity 150ms ease;
}

/* El cartel de la obra: centrado sobre el escenario. La primera vez,
   «conversaciones» con letras que aparecen de a una; después, el número y el
   nombre de la escena. */
.theater__card {
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 3;
  width: 90%;
  text-align: center;
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.theater__card.is-on {
  opacity: 1;
}

.theater__card p {
  margin: 0;
}

.theater__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-style: italic;
  letter-spacing: 0.12em;
  color: #fff4dc;
  text-shadow: 0 0 18px rgb(255 214 150 / 55%), 0 2px 0 rgb(0 0 0 / 60%);
}

.theater__name span {
  display: inline-block;
  opacity: 0;
}

.theater__card.is-on .theater__name span {
  animation: theater-letter 1.4s ease both;
  animation-delay: calc(var(--i) * 0.13s);
}

@keyframes theater-letter {
  from {
    opacity: 0;
    translate: 0 0.35em;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    translate: 0 calc(sin(var(--i) * 1rad) * 0.06em);
    filter: blur(0);
  }
}

.theater__scene {
  margin-top: 0.6rem !important;
  font-family: ui-monospace, monospace;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.35em;
  color: rgb(255 184 77 / 85%);
}

.theater__scene-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-style: italic;
  color: #f3f1eb;
  text-shadow: 0 0 12px rgb(0 0 0 / 80%);
}

/* El público: de espaldas, en completo silencio (alguno mueve apenas la
   cabeza cada tanto). */
.theater__person {
  fill: #0e0b0b;
  stroke: rgb(255 214 150 / 20%);
  stroke-width: 0.35;
}

.theater__person ellipse.is-moving {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: theater-listen 11s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes theater-listen {
  0%,
  86%,
  100% {
    rotate: 0deg;
  }

  91% {
    rotate: 4deg;
  }
}

/* El graffiti de «música» tapa (y es parte de «estar encima»): puede crecer
   hasta cubrir toda la pantalla. Solo el botón de apagar queda por encima. */
.primary-link--music.is-graffiti {
  z-index: 60;
}

.graffiti-hit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  translate: -50% -50%;
  cursor: default;
}

/* El aire que sube del ventilador acostado. */
.aventura-fan__air--up .aventura-fan__wind {
  animation-name: aventura-wind-up;
}

@keyframes aventura-wind-up {
  from {
    opacity: 0;
    translate: 0 0;
  }

  30% {
    opacity: 1;
  }

  to {
    opacity: 0;
    translate: 0 -110px;
  }
}

.aventura-fan__blades {
  animation-duration: 0.22s;
}

/* ---------- tanda 26 ---------- */

/* Las caritas: un bloque aparte arriba de los discos, siempre a la vista.
   Contorno más grueso: un botón de verdad. */
.corner-links .corner-summon,
.mixer-float .mixer-summon {
  display: grid;
  place-items: center;
  min-height: 0;
  border: 2px solid rgb(243 241 235 / 45%);
  border-radius: 0.45rem;
  padding: 0.42rem 0.62rem;
  background: linear-gradient(#1c1c1f, #08080a);
  /* Relieve: luz arriba, sombra abajo y un canto que lo levanta. */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    inset 0 -2px 0 rgb(0 0 0 / 70%),
    0 3px 0 #2a2a2e,
    0 4px 8px rgb(0 0 0 / 70%);
  cursor: pointer;
  transition: border-color 160ms ease, translate 120ms ease, box-shadow 120ms ease;
}

.corner-links .corner-summon svg,
.mixer-float .mixer-summon svg {
  width: 40px;
  height: 16px;
}

.corner-links .corner-summon {
  grid-area: heads;
  justify-self: end;
}

.corner-links .corner-summon:hover,
.mixer-float .mixer-summon:hover {
  border-color: rgb(243 241 235 / 75%);
}

.corner-links .corner-summon:active,
.mixer-float .mixer-summon:active {
  translate: 0 2px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 -1px 0 rgb(0 0 0 / 70%),
    0 1px 0 #2a2a2e,
    0 2px 4px rgb(0 0 0 / 70%);
}

.mixer-float .mixer-summon[aria-pressed="false"] {
  border-color: rgb(57 255 106 / 55%);
}

.mixer-float.is-carried {
  will-change: transform;
  transition: none;
}

/* El sintetizador: el tecladito suelto, a la derecha del teatro (sin marco). */
.corner-links .synth-button {
  grid-area: synth;
  justify-self: start;
  margin-left: 1rem; /* un poco más a la derecha, siempre arriba de la radio */
  display: grid;
  place-items: center;
  align-self: center;
  border: 0;
  padding: 0.2rem;
  background: transparent;
  cursor: pointer;
  transition: filter 160ms ease, translate 120ms ease;
}

.corner-links .synth-button:hover,
.corner-links .synth-button[aria-pressed="true"] {
  filter: brightness(1.4);
}

.corner-links .synth-button:active {
  translate: 0 1px;
}

/* La primera pista grabada del loop, entera, con su marcador. */
.mixer-track {
  touch-action: none;
  display: block;
  width: 100%;
  height: 1.9rem;
  border: 1px solid rgb(243 241 235 / 14%);
  border-radius: 0.3rem;
  background: #070707;
  /* Una mano con una lupita: para meterse a editar el loop con atención. */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%23000' stroke-width='4.2'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M17.2 17.2 L21.8 23.4'/%3E%3Cpath d='M19.5 25.4 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 v4.4 a3.5 3.5 0 0 1 -3.5 3.5 h-5.4 a3.5 3.5 0 0 1 -3.5 -3.5z'/%3E%3Cpath d='M19.5 28.6 q-2.7 -0.3 -2.8 1.9 q-0.1 1.8 2.8 1.7'/%3E%3C/g%3E%3Cg stroke='%23f3f1eb' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Cpath d='M17.2 17.2 L21.8 23.4'/%3E%3Cpath d='M19.5 25.4 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 a1.4 1.4 0 0 1 2.8 0 v4.4 a3.5 3.5 0 0 1 -3.5 3.5 h-5.4 a3.5 3.5 0 0 1 -3.5 -3.5z'/%3E%3Cpath d='M19.5 28.6 q-2.7 -0.3 -2.8 1.9 q-0.1 1.8 2.8 1.7'/%3E%3Cpath d='M22.3 25.4 v3.2 M25.1 25.4 v3.2 M27.9 25.4 v3.2' stroke-width='1'/%3E%3Cpath d='M9 9.5 a4 4 0 0 1 3.2 -1.6' stroke-width='1.2' stroke='%239fd8ff'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 12 12, zoom-in;
}

/* La vista grande del loop: en el medio de la pantalla, la onda quieta y los
   dos corchetes. */
.loop-big {
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
}

.loop-big[hidden] {
  display: none;
}

.loop-big__box {
  position: absolute;
  display: grid;
  gap: 0.6rem;
  width: min(64rem, 96vw);
  border: 1px solid rgb(243 241 235 / 22%);
  border-radius: 0.7rem;
  padding: 1.9rem 1rem 0.8rem;
  cursor: grab; /* se mueve agarrándolo de cualquier parte libre */
  background: #060606;
  color: rgb(243 241 235 / 70%);
  box-shadow: 0 8px 30px rgb(0 0 0 / 55%);
  pointer-events: auto;
}

.loop-big__box.is-grabbed {
  cursor: grabbing;
}

.loop-big__canvas {
  display: block;
  cursor: default;
  width: 100%;
  touch-action: none;
  outline: none;
}

.loop-big__canvas:focus-visible {
  outline: 1px solid rgb(255 184 77 / 45%);
  outline-offset: 2px;
}

.loop-big__close {
  position: absolute;
  top: 0.05rem;
  right: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  background: none;
  color: rgb(243 241 235 / 70%);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.loop-big__close:hover {
  color: #fff;
}

.loop-big__bar {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
}

.loop-big__pickwrap {
  position: relative;
}

.loop-big__pick {
  border: 1px solid rgb(243 241 235 / 30%);
  border-radius: 0.35rem;
  padding: 0.35rem 0.7rem;
  background: none;
  color: rgb(243 241 235 / 80%);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.loop-big__pick:hover,
.loop-big__pick[aria-expanded="true"] {
  border-color: rgb(243 241 235 / 65%);
  color: #fff;
}

.loop-big__menu {
  position: absolute;
  bottom: calc(100% + 0.3rem);
  left: 0;
  z-index: 2;
  display: grid;
  min-width: 11rem;
  border: 1px solid rgb(243 241 235 / 28%);
  border-radius: 0.4rem;
  padding: 0.25rem;
  background: #0b0b0b;
}

.loop-big__menu[hidden] {
  display: none;
}

.loop-big__menu button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.3rem 0.5rem;
  background: none;
  color: rgb(243 241 235 / 75%);
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
}

.loop-big__menu button:hover {
  background: rgb(243 241 235 / 10%);
}

.loop-big__menu button.is-sel {
  color: #ffd27a;
}

.loop-big__menu i {
  color: rgb(243 241 235 / 40%);
  font-style: normal;
}

.loop-big__ons {
  display: flex;
  gap: 0.5rem;
}

.loop-big__on-wrap {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.loop-big__play,
.loop-big__cut {
  width: 1.4rem;
  height: 1.2rem;
  border: 1px solid rgb(243 241 235 / 30%);
  border-radius: 0.25rem;
  padding: 0;
  background: none;
  color: rgb(243 241 235 / 75%);
  font: inherit;
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
}

.loop-big__play:hover:not(:disabled),
.loop-big__cut:hover:not(:disabled) {
  border-color: rgb(243 241 235 / 70%);
  color: #fff;
}

.loop-big__play.is-on {
  border-color: #ffd27a;
  color: #ffd27a;
}

.loop-big__play:disabled,
.loop-big__cut:disabled {
  opacity: 0.3;
  cursor: default;
}

/* La perilla de volumen de cada capa: se gira arrastrando. */
.loop-big__knob {
  position: relative;
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid rgb(243 241 235 / 55%);
  border-radius: 50%;
  cursor: ns-resize;
  touch-action: none;
  outline: none;
}

.loop-big__knob::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 0.75px);
  width: 1.5px;
  height: 50%;
  border-radius: 1px;
  background: #ffd27a;
  transform: rotate(var(--angle, 0deg));
  transform-origin: 50% 100%;
}

.loop-big__knob:focus-visible,
.loop-big__knob:hover {
  border-color: #ffd27a;
}

.loop-big__num {
  min-width: 1.2rem;
  border: 0;
  border-bottom: 1.5px solid transparent;
  padding: 0 0.2rem 1px;
  background: none;
  color: rgb(243 241 235 / 55%);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.loop-big__num:hover {
  color: #fff;
}

.loop-big__num[aria-pressed="true"] {
  border-bottom-color: #ffd27a;
  color: #ffd27a;
}

.loop-big__on {
  position: relative;
  overflow: hidden;
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid rgb(243 241 235 / 60%);
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
}

.loop-big__on[aria-pressed="true"] {
  background: #5be3a0;
  border-color: #5be3a0;
}

.loop-big__on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff5d5d;
  scale: 0;
}

.loop-big__on.is-holding::after {
  animation: loop-on-fill 800ms linear forwards;
}

@keyframes loop-on-fill {
  to {
    scale: 1;
  }
}

.mixer-synth__icon {
  display: block;
  width: 3.4rem;
  height: auto;
}

.mixer-invoke-wrap {
  width: 5.6rem;
}

/* El teatro: un botón corto, al lado de las caritas (arriba de los discos). */
.corner-links .stage-wrap {
  grid-area: stage;
  justify-self: center;
  width: 3.6rem;
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 0.35rem;
}

.stage-button {
  display: block;
  width: 100%;
  height: 2.1rem;
  border: 1px solid rgb(255 138 31 / 32%);
  border-radius: 0.35rem;
  padding: 0;
  background: radial-gradient(ellipse 38% 70% at 50% 100%, rgb(255 184 77 / 16%), transparent 70%), #070606;
  box-shadow: 0 2px 7px rgb(255 138 31 / 12%);
  cursor: pointer;
}

.stage-button:hover {
  border-color: rgb(255 138 31 / 70%);
}

.stage-wrap .mixer-curtain {
  z-index: 1;
}

.stage-wrap.is-shut .mixer-curtain {
  animation: mixer-curtain-sway 3.2s ease-in-out infinite;
}

.theater.is-show {
  background: rgb(0 0 0 / calc(var(--dim) * 22%));
  pointer-events: none;
}

/* Pausada: desaparece (vuelven las luces); espera ahí. */
.theater.is-paused {
  visibility: hidden;
  pointer-events: none;
}

/* La «o» que se abre recién cuando el blob tirado por la mano ya llega. */
.page-back__o.is-hand-portal {
  --glow: 1;
}

/* La línea doblada para abajo por el golpe, y los pedacitos de la «H». */
.line-crack__flap {
  fill: var(--white);
}

.line-crack__bit {
  fill: var(--white);
}

/* Un blob vivo llevado fuerte contra una piedra: se golpea la cabeza. */
.track.is-crashing .track__splat {
  animation: blob-crash 460ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes blob-crash {
  20% {
    translate: -5px 2px;
    scale: 1.08 0.86;
    rotate: -10deg;
  }

  55% {
    translate: 2px -1px;
    scale: 0.95 1.04;
    rotate: 5deg;
  }

  100% {
    scale: 0.9 0.9;
    filter: brightness(1.3);
  }
}

.crash-stars {
  position: fixed;
  z-index: 60;
  width: 0;
  height: 0;
  pointer-events: none;
}

.crash-stars i {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px;
  background: var(--white);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: crash-star 800ms ease-out forwards;
}

.crash-stars i:nth-child(1) { --sx: -16px; --sy: -14px; }
.crash-stars i:nth-child(2) { --sx: 14px; --sy: -18px; }
.crash-stars i:nth-child(3) { --sx: 18px; --sy: 4px; }
.crash-stars i:nth-child(4) { --sx: -12px; --sy: 8px; }

@keyframes crash-star {
  from {
    opacity: 1;
    scale: 0.6;
  }

  to {
    opacity: 0;
    translate: var(--sx) var(--sy);
    scale: 1.6;
    rotate: 90deg;
  }
}

/* El teatro: platea vacía y tarima de madera. */
.theater__seat {
  fill: #4a0e16;
  stroke: rgb(0 0 0 / 70%);
  stroke-width: 0.4;
}

.theater__seat-top {
  fill: none;
  stroke: rgb(255 160 150 / 22%);
  stroke-width: 0.5;
  stroke-linecap: round;
}

.theater__seat-arm {
  fill: #1b120d;
}

.theater__floor {
  transition: filter 2.4s ease;
}

.theater.is-dimming .theater__floor,
.theater.is-dimming .theater__seats {
  filter: brightness(0.45);
}

.theater__floor-seam {
  stroke: rgb(20 10 4 / 85%);
  stroke-width: 0.45;
}

.theater__floor-joint {
  stroke: rgb(20 10 4 / 70%);
  stroke-width: 0.35;
}

.theater__floor-grain {
  fill: none;
  stroke: rgb(30 15 6 / 35%);
  stroke-width: 0.25;
}

.theater__floor-front {
  stroke: rgb(0 0 0 / 55%);
  stroke-width: 0.5;
}

/* El botón de las cabezas va abajo de ellas, con un poco de aire. */
.mixer-float .mixer-summon {
  margin-top: 0.5rem;
}

.loop-big__menu button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* «back in the game»: el título también es una puerta al juego (¿jugar?). */
.illustration-card figcaption.has-game-title {
  position: relative;
}

.game-title {
  cursor: pointer;
}

.game-title:hover,
.game-title:focus-visible {
  color: var(--white);
}

.game-ask {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 50%;
  translate: -50% 0;
  border: 0;
  padding: 0.2rem 0.4rem;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  cursor: pointer;
  animation: snake-appear 380ms ease both;
}

.game-ask:hover,
.game-ask:focus-visible {
  color: var(--white);
}
