/* Chico Sánchez MC — portfolio de cintas
   Escena: habitación de ladrillo en Nueva York, estanterías y radiocasete. */

:root {
  --cream: #f3e8d0;
  --paper: #efe3cb;
  --ink: #131110;
  --brick: #b5432a;
  --teal: #2f8f8a;
  --mustard: #e0a12a;
  --magenta: #c0357a;
  --wood-a: #6b4326;
  --wood-b: #a3743f;
  --wood-c: #4a2d18;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --hand: "Permanent Marker", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #0b0a09;
  color: var(--cream);
  font-family: var(--mono);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- escena */

.room { position: fixed; inset: 0; z-index: 0; }

.room__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(1.05) contrast(1.04);
  animation: roomIn 1.6s ease-out both;
}

.room__lamp {
  position: absolute; inset: 0;
  background:
    radial-gradient(38vw 60vh at 14% 22%, rgba(255, 196, 110, .28), transparent 70%),
    radial-gradient(50vw 50vh at 78% 30%, rgba(120, 190, 255, .10), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.room__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 34%, rgba(8, 6, 5, .72) 100%),
    linear-gradient(to top, rgba(8, 6, 5, .82), transparent 42%);
  pointer-events: none;
}

.room__grain {
  position: absolute; inset: 0;
  opacity: .12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@keyframes roomIn {
  from { transform: scale(1.06); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------- cabecera */

.marquee {
  position: fixed;
  top: clamp(14px, 3.4vh, 42px);
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  padding: 0 16px;
}

.marquee__kicker {
  margin: 0 0 6px;
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(243, 232, 208, .66);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.marquee__name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 5.4vw, 68px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #f7efdc;
  transform: skewX(-4deg);
  text-shadow:
    0 1px 0 #6d3a20,
    0 3px 0 #3a1f10,
    0 6px 18px rgba(0, 0, 0, .85),
    0 0 44px rgba(224, 161, 42, .28);
  -webkit-text-stroke: 1px rgba(20, 14, 10, .55);
}

.marquee__name em {
  font-family: var(--hand);
  font-style: normal;
  color: var(--mustard);
  -webkit-text-stroke: 0;
  letter-spacing: .02em;
  text-shadow: 0 3px 0 #7a3f0f, 0 0 30px rgba(224, 161, 42, .5);
}

.sticker {
  pointer-events: auto;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mustard);
  border: 0;
  border-radius: 2px 6px 3px 5px;
  padding: 7px 14px;
  cursor: pointer;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45);
  transition: transform .15s ease, background .15s ease;
}

.sticker:hover { transform: rotate(1deg) translateY(-2px); background: #f0b545; }
.sticker:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ------------------------------------------------------------------ stage */

.room-ui {
  position: relative;
  z-index: 2;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 64px);
  padding: 13vh 2vw 10vh;
}

/* --------------------------------------------------------------- estantería */

.shelf {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4.4vh, 46px);
  padding: 0 0 14px;
  width: clamp(190px, 19vw, 296px);
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .55));
}

.shelf--a { align-self: center; }
.shelf--b { align-self: center; }

.shelf__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(3px, .55vw, 9px);
  padding: 0 12px;
  min-height: clamp(112px, 12.4vh, 150px);
}

/* tabla de madera bajo cada fila */
.shelf__row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 13px;
  border-radius: 2px;
  background:
    linear-gradient(to bottom, #7a5530, #4a2f19 55%, #2c1b0e),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .16) 0 2px, transparent 2px 9px);
  box-shadow: 0 5px 9px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 220, 170, .18);
}

.shelf__row::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: -14px;
  height: 10px;
  background: rgba(0, 0, 0, .38);
  filter: blur(7px);
}

.shelf__tag {
  position: absolute;
  top: -22px;
  right: 8px;
  font-family: var(--hand);
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(243, 232, 208, .72);
  transform: rotate(-2deg);
}

/* -------------------------------------------------------------- las cintas */
/* Cada lomo es el canto de una caja de cassette: el plástico transparente por
   fuera, la J-card de color por dentro y la etiqueta de papel con el título. */

.spine {
  position: relative;
  width: clamp(30px, 3.1vw, 46px);
  height: clamp(96px, 11vh, 138px);
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateY(calc(var(--lift, 0px) + var(--dy, 0px))) rotate(var(--tilt, 0deg));
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), filter .2s ease;
}

.spine__case {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 2px 4px 4px 2px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, .42) 0%,
      rgba(255, 255, 255, .10) 8%,
      rgba(255, 255, 255, .02) 24%,
      rgba(255, 255, 255, .13) 54%,
      rgba(255, 255, 255, .03) 76%,
      rgba(255, 255, 255, .28) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .64),
    0 7px 11px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .28),
    inset 1px 0 0 rgba(255, 255, 255, .2);
  transition: filter .2s ease, box-shadow .28s ease;
}

/* El canto del plástico, arriba y abajo. */
.spine__case::before,
.spine__case::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .04));
  border-radius: 2px 4px 0 0;
  pointer-events: none;
}

.spine__case::before { top: 0; }
.spine__case::after { bottom: 0; transform: scaleY(-1); border-radius: 0 0 4px 2px; }

.spine__jcard {
  position: absolute;
  inset: 6px 3px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 1px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .26) 0 14%, rgba(255, 255, 255, 0) 26% 70%, rgba(255, 255, 255, .14) 88%),
    linear-gradient(180deg, color-mix(in srgb, var(--c1, #3a3a3f) 86%, #fff) 0%, var(--c1, #3a3a3f) 9%, var(--c2, #111) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .45);
}

.spine__label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin: 9px 0 8px;
  padding: 6px 4px;
  width: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px),
    var(--paper);
  color: #1b1712;
  font-family: var(--hand);
  font-size: clamp(9px, .9vw, 11.5px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-align: center;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: break-word;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--c1, #3a3a3f) 70%, #000),
    0 1px 3px rgba(0, 0, 0, .45);
}

.spine:hover .spine__case,
.spine:focus-visible .spine__case {
  filter: brightness(1.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    0 18px 24px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 255, 255, .7),
    inset 0 -1px 0 rgba(255, 255, 255, .4);
}

.spine:hover,
.spine:focus-visible { --lift: -14px; }

.spine:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

.spine.is-out {
  --lift: -34px;
  opacity: .25;
  transition: transform .3s ease, opacity .3s ease;
}

/* Cintas de relleno: caja cerrada, sin etiqueta. */
.spine.is-blank { cursor: default; }
.spine.is-blank .spine__jcard {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .2) 0 12%, rgba(255, 255, 255, 0) 24% 74%, rgba(255, 255, 255, .12) 88%),
    linear-gradient(180deg, var(--c1, #333), var(--c2, #111));
}
.spine.is-blank:hover { --lift: 0; }
.spine.is-blank:hover .spine__case { filter: none; }

/* --------------------------------------------------------------- radiocasete */

.boombox-wrap {
  flex: 0 1 660px;
  width: min(660px, 54vw);
  align-self: end;
  margin-bottom: -1vh;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .6));
}

.boombox { display: block; width: 100%; height: auto; overflow: visible; }

.lcd {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  fill: #93d97f;
}

.lcd--time { font-size: 17px; fill: #bff0a8; }

.tiny { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; fill: rgba(200, 208, 214, .5); }

.deck__door { transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease; transform-box: view-box; transform-origin: 360px 168px; }
.deck.is-open .deck__door { transform: translateY(-88px) scaleY(.5); opacity: .25; }

.deck__tape { transition: opacity .3s ease; }

.reel {
  transform-box: view-box;
  transform-origin: var(--cx) var(--cy);
}

.is-spinning .reel { animation: reelSpin 2.4s linear infinite; }

@keyframes reelSpin { to { transform: rotate(360deg); } }

.vu__needle {
  transform-box: view-box;
  transform-origin: 311px 144px;
  transition: transform .12s linear;
}

.vu__needle[data-vu="r"] { transform-origin: 409px 144px; }

.is-playing .vu__needle { animation: vuJump 1.1s ease-in-out infinite alternate; }
.is-playing .vu__needle[data-vu="r"] { animation-duration: .86s; animation-delay: -.2s; }

@keyframes vuJump {
  0% { transform: rotate(-16deg); }
  35% { transform: rotate(6deg); }
  60% { transform: rotate(-8deg); }
  100% { transform: rotate(12deg); }
}

.btn { cursor: pointer; }
.btn rect { fill: #22252a; transition: fill .12s ease, transform .08s ease; }
.btn:hover rect { fill: #31353c; }
.btn:focus-visible rect { fill: #3d434c; stroke: var(--mustard); stroke-width: 1.5; }
.btn.is-active rect { fill: #4a3a12; }

.knob { cursor: grab; }
.knob:active { cursor: grabbing; }
.knob__mark { transition: transform .1s linear; transform-box: view-box; transform-origin: 0 0; }
.knob:focus-visible { outline: none; }
.knob:focus-visible circle[r="26"] { stroke: var(--mustard); stroke-width: 2; }

/* ------------------------------------------------------------------- cinta */

.tape {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 164px;
  z-index: 60;
  pointer-events: none;
  transform-origin: 50% 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.tape__shell {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: linear-gradient(160deg, #3a3a3d, #17181a 45%, #0d0e10);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .22);
  padding: 11px;
}

.tape__label {
  height: 58%;
  border-radius: 3px;
  background: var(--paper);
  color: #17130e;
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.05;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
}

.tape__window {
  margin-top: 10px;
  height: 34%;
  border-radius: 3px;
  background: linear-gradient(180deg, #26262a, #101113);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .8);
}

.tape__hub {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0d0e10 0 34%, #6b6a66 35% 52%, #d7d2c6 53% 66%, #2b2b2e 67%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------- estuche 3D */

.case {
  position: fixed;
  top: 50%; left: 50%;
  width: 340px;
  height: 218px;
  z-index: 55;
  transform: translate(-50%, -50%);
  perspective: 1100px;
  perspective-origin: 50% 20%;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .7));
}

.case[hidden] { display: none; }

.case__body,
.case__lid {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.case__body {
  background: linear-gradient(150deg, #2c2c30, #141416 60%, #0b0b0d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -22px 26px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
}

.case__slot {
  width: 88%;
  height: 70%;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 3px, rgba(255, 255, 255, .03) 3px 6px),
    #101012;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .85);
}

.case__lid {
  z-index: 3;
  transform-origin: 50% 0;
  transform: rotateX(0deg);
  transition: transform .6s cubic-bezier(.5, 0, .2, 1);
  background: linear-gradient(160deg, #38383c, #16171a 55%, #0c0d0f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  padding: 12px;
  backface-visibility: hidden;
}

.case.is-open .case__lid { transform: rotateX(-112deg); }

.case__jcard {
  height: 100%;
  border-radius: 4px;
  padding: 14px 16px;
  background:
    linear-gradient(180deg, var(--jc, #c9402b) 0 46px, var(--paper) 46px);
  color: #17130e;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
}

.case__side {
  margin: 0;
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .9);
}

.case__title {
  margin: 12px 0 0;
  font-family: var(--hand);
  font-size: 24px;
  line-height: .95;
}

.case__meta {
  margin: 6px 0 0;
  font-size: 10.5px;
  letter-spacing: .03em;
  color: #4b4034;
}

.case__artist {
  margin: auto 0 0;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #6b5b46;
}

/* ------------------------------------------------------------------ avisos */

.hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  padding: 7px 16px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(243, 232, 208, .82);
  background: rgba(10, 9, 8, .62);
  border: 1px solid rgba(243, 232, 208, .12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .3s ease;
}

/* Póster de Chico pegado en la pared, abajo a la izquierda. */

.poster {
  position: fixed;
  z-index: 3;
  left: 1.4vw;
  bottom: 1.6vh;
  width: clamp(112px, 8.6vw, 158px);
  margin: 0;
  padding: 7px 7px 0;
  background: #efe7d7;
  transform: rotate(-2.4deg);
  box-shadow: 0 22px 30px rgba(0, 0, 0, .62), 0 2px 0 rgba(0, 0, 0, .3);
  display: none;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06) sepia(.1);
}

.poster figcaption {
  padding: 7px 2px 9px;
  font-family: var(--display);
  font-size: clamp(9px, .78vw, 11px);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: #1b1712;
}

.poster figcaption em {
  display: block;
  margin-top: 4px;
  font-family: var(--hand);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: #7a3f0f;
}

/* cinta adhesiva en las esquinas */
.poster::before,
.poster::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 15px;
  background: rgba(232, 220, 190, .48);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22);
  pointer-events: none;
}

.poster::before { top: -7px; left: 12px; transform: rotate(-7deg); }
.poster::after { top: -7px; right: 12px; transform: rotate(6deg); }

@media (min-width: 1180px) and (min-height: 760px) { .poster { display: block; } }

/* ------------------------------------------------------------ liner notes */

.notes {
  position: fixed;
  z-index: 70;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-.6deg);
  width: min(560px, 92vw);
  max-height: 84dvh;
  overflow: auto;
  background: var(--paper);
  color: #1b1712;
  border-radius: 3px;
  box-shadow: 0 40px 70px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(0, 0, 0, .12);
  padding: 30px 32px 26px;
  animation: notesIn .28s ease-out both;
}

.notes[hidden] { display: none; }

@keyframes notesIn {
  from { opacity: 0; transform: translate(-50%, -46%) rotate(-.6deg); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-.6deg); }
}

.notes h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.notes h3 { margin: 8px 0 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

.notes p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; }

.notes hr { border: 0; border-top: 1px dashed rgba(27, 23, 18, .3); margin: 18px 0 14px; }

.notes__small { font-size: 12px; color: #4c4136; }

.notes__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

.notes__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
  background: #1b1712;
  text-decoration: none;
  border-radius: 2px;
}

.notes__links svg { width: 14px; height: 14px; flex: none; }

.notes__links a:hover { background: var(--brick); }
.notes__links a:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

/* El color de cada red, solo al pasar por encima. */
.notes__link--youtube:hover { background: #b3261e; }
.notes__link--spotify:hover { background: #1d7a46; }
.notes__link--soundcloud:hover { background: #a8481c; }
.notes__link--instagram:hover { background: #9b2f6b; }

.notes__close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 23, 18, .1);
  color: #1b1712;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notes__close:hover { background: rgba(27, 23, 18, .2); }

kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(27, 23, 18, .1);
  border-radius: 3px;
  padding: 1px 5px;
  border: 1px solid rgba(27, 23, 18, .18);
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  body { overflow-y: auto; }

  .room-ui {
    display: grid;
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "shelfA shelfB"
      "boom boom";
    align-content: center;
    align-items: end;
    justify-items: center;
    padding: 124px 14px 96px;
    gap: 34px 12px;
  }

  .shelf { width: auto; }
  .shelf--a { grid-area: shelfA; justify-self: end; }
  .shelf--b { grid-area: shelfB; justify-self: start; }
  .boombox-wrap { grid-area: boom; width: min(100%, 560px); max-width: 560px; }

  .shelf__row { min-height: 118px; gap: 3px; padding: 0 8px; }
  /* Con diez cintas las filas son de seis: el lomo se encoge con la pantalla. */
  .spine { width: clamp(21px, 4.6vw, 30px); height: 104px; }
  .spine__label { font-size: 9px; margin: 12px 0 8px; padding: 6px 3px; }
  .marquee__kicker { letter-spacing: .2em; font-size: 8.5px; }
  .imprint { display: none; }
  .case { width: min(320px, 86vw); height: 206px; }
  .tape { width: 220px; height: 138px; }
}

@media (max-height: 720px) and (min-width: 981px) {
  .room-ui { padding: 14vh 2vw 9vh; }
  .shelf__row { min-height: 124px; }
  .spine { height: 100px; }
}

/* Móvil: una estantería debajo de otra, así los lomos no se aprietan. */
@media (max-width: 560px) {
  .room-ui {
    grid-template-columns: 1fr;
    grid-template-areas:
      "shelfA"
      "shelfB"
      "boom";
    align-items: center;
    padding: 130px 12px 92px;
    gap: 46px;
  }

  .shelf--a, .shelf--b { justify-self: center; }
  .shelf__row { padding: 0 8px; gap: 4px; }
  .spine { width: 34px; }
  .spine__label { font-size: 9.5px; padding: 6px 4px; }
}

@media (max-width: 420px) {
  .shelf__row { min-height: 104px; padding: 0 5px; }
  .spine { width: 32px; height: 92px; }
  .spine__label { font-size: 8.5px; margin: 10px 0 7px; }
  .marquee__name { font-size: 30px; }
  .notes__links a { padding: 6px 10px; font-size: 10px; }
}

/* ------------------------------------------- reproductor de SoundCloud oculto */
/* El iframe suena de verdad: fuera de la vista, pero con tamaño real. */

.sc-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 320px;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
}

.sc-embed,
.yt-embed { display: block; width: 100%; height: 100%; border: 0; }

.yt-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------- movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .room__bg { animation: none; }
}
