/* Cinta Regalo PWA — Estilo acogedor inspirado en Winnie the Pooh (miel, crema, rojo cálido y madera) */

:root {
  --bg: #fbf5e6;
  --bg-accent: #f3e6cc;
  --surface: #fffaf0;
  --surface-2: #f6ebd5;
  --border: #e0cca8;
  --cream: #fffcf5;
  --text: #3a2a1d;
  --text-muted: #785f48;
  --accent: #c94a38;       /* Rojo camiseta de Pooh */
  --accent-hover: #b43e2d;
  --honey: #e5a93c;        /* Miel dorada */
  --honey-soft: #fae7be;
  --sage: #6f8f6b;         /* Verde bosque suave */
  --wood: #8c5e3c;
  --ok: #4d7d52;
  --warn: #b37417;
  --err: #b83b3b;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  height: 100%;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: radial-gradient(circle at top center, #fffaf0 0%, var(--bg) 55%, var(--bg-accent) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.modal-open .bottom-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-reordering {
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: none;
}

.app-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(14px + var(--safe-top)) 16px calc(98px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cabecera */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand-sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.jcard-pill-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8 0%, #fae7be 100%);
  border: 1.5px solid #d9a441;
  color: #6b4308;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 0 #c99738;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.jcard-pill-btn:active {
  transform: translateY(1.5px);
  box-shadow: 0 0.5px 0 #c99738;
}

.status-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.pill.ok {
  color: #2f5934;
  background: #e3f2e4;
  border-color: #a9cfa9;
}

.pill.warn {
  color: #7c4d0c;
  background: #fdf0cf;
  border-color: #e4be73;
}

.pill.err {
  color: #8a2626;
  background: #fce4e4;
  border-color: #e5a3a3;
}

/* Aviso de instalación */
.banner {
  background: #fff3d6;
  border: 1.5px solid #e5b75b;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #5a3c12;
  box-shadow: 0 4px 12px rgba(140, 94, 60, 0.08);
}

.banner strong {
  display: block;
  margin-bottom: 4px;
  color: #3d2608;
}

.hidden {
  display: none !important;
}

/* Tarjeta del cassette */
.cassette-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(120, 88, 52, 0.11);
  transition: box-shadow 0.35s ease;
}

.cassette-card.is-playing {
  box-shadow: 0 12px 30px rgba(201, 74, 56, 0.16), 0 0 0 1px rgba(229, 169, 60, 0.35);
}

.cassette-bay {
  position: relative;
  border-radius: 20px;
  padding: 5px;
  background: linear-gradient(180deg, #3b2719 0%, #573b27 55%, #442d1d 100%);
  box-shadow:
    inset 0 4px 12px rgba(20, 10, 4, 0.55),
    0 1px 0 rgba(255, 252, 240, 0.8);
  perspective: 1100px;
  overflow: visible;
  z-index: 2;
}

.cassette-bay.is-swapping {
  overflow: hidden;
}

.cassette-bay::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 10px;
  height: 10px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 18% 50%, #8f7255 0 3px, transparent 3.5px),
    radial-gradient(circle at 82% 50%, #8f7255 0 3px, transparent 3.5px),
    linear-gradient(90deg, transparent 26%, rgba(168, 134, 98, 0.35) 26%, rgba(168, 134, 98, 0.35) 74%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.cassette-flipper {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cassette-flipper.is-flipped {
  transform: rotateY(180deg);
}

.cassette-shell {
  position: relative;
  background: linear-gradient(175deg, #f0be59 0%, #dda034 62%, #cc8f27 100%);
  border: 2px solid #b0761f;
  border-radius: 16px;
  padding: 13px;
  box-shadow:
    inset 0 2px 0 rgba(255, 250, 230, 0.55),
    inset 0 -3px 0 rgba(130, 80, 18, 0.25),
    0 5px 14px rgba(32, 18, 6, 0.38);
  will-change: transform, opacity;
}

.cassette-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.cassette-shell.cassette-face-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg) translateZ(1px);
}

.cassette-flipper.is-flipped .cassette-face-front {
  pointer-events: none;
}

.cassette-shell.cassette-face-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: rotateY(180deg) translateZ(1px);
  pointer-events: none;
  padding: 8px;
  background: linear-gradient(165deg, #4f3320 0%, #372215 58%, #28180e 100%);
  border-color: #c8963e;
  box-shadow:
    inset 0 2px 0 rgba(255, 224, 150, 0.28),
    inset 0 -3px 0 rgba(18, 9, 4, 0.55),
    0 5px 14px rgba(24, 12, 4, 0.45);
  display: flex;
  flex-direction: column;
}

.cassette-flipper.is-flipped .cassette-shell.cassette-face-back {
  pointer-events: auto;
  z-index: 3;
}

.cassette-flipper.is-ejecting {
  animation: cassetteEject 0.25s cubic-bezier(0.45, 0, 0.85, 0.35) forwards;
}

.cassette-flipper.is-inserting {
  animation: cassetteInsert 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cassette-flipper.is-inserting .reel {
  animation: reelTension 0.38s ease-out;
}

@keyframes cassetteEject {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  45% {
    transform: translateY(-18px) scale(0.98) rotate(-1deg);
    opacity: 0.92;
  }
  100% {
    transform: translateY(-64px) scale(0.93) rotate(-2deg);
    opacity: 0;
  }
}

@keyframes cassetteInsert {
  0% {
    transform: translateY(-64px) scale(0.94) rotate(1.5deg);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  78% {
    transform: translateY(4px) scale(1.005) rotate(0deg);
    opacity: 1;
  }
  90% {
    transform: translateY(-1.5px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes reelTension {
  from { transform: rotate(-38deg); }
  to { transform: rotate(0deg); }
}

.screw {
  position: absolute;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f9e4b3 0%, #a57024 72%, #7d5015 100%);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.35);
  z-index: 6;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.screw-btn::after {
  content: "";
  position: absolute;
  inset: -12px;
}

.screw-btn.is-unscrewed {
  transform: rotate(135deg) scale(1.22);
  background: radial-gradient(circle at 35% 35%, #fff9dc 0%, #f5c044 70%, #c8861e 100%);
  box-shadow: 0 0 8px rgba(255, 214, 92, 0.95), 0 0 2px #fff;
}

.screw-btn.is-solved {
  pointer-events: none;
  cursor: default;
}

.screw-tl { top: 4px; left: 4px; }
.screw-tr { top: 4px; right: 4px; }
.screw-bl { bottom: 4px; left: 4px; }
.screw-br { bottom: 4px; right: 4px; }

.label-header-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mini-deck-chip {
  appearance: none;
  border: 1px solid #d5b482;
  background: #f9ebd0;
  color: #6b4308;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.mini-deck-chip-dark {
  border-color: rgba(242, 198, 109, 0.55);
  background: rgba(242, 198, 109, 0.16);
  color: #f9dea0;
}

.cassette-label {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 23px,
      rgba(165, 132, 92, 0.13) 23px,
      rgba(165, 132, 92, 0.13) 24px
    ),
    var(--cream);
  color: var(--text);
  border-radius: 11px;
  overflow: hidden;
  padding-bottom: 12px;
  border: 1px solid rgba(140, 94, 60, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cassette-stripe {
  height: 12px;
  background: var(--accent);
  transition: background 0.3s ease;
}

.cassette-stripe-2 {
  height: 5px;
  background: var(--honey);
}

.label-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 12px 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c6a4a;
}

.label-track-title {
  padding: 0 12px;
  font-size: 1.08rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.label-track-meta {
  padding: 2px 12px 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-window {
  margin: 0 14px;
  height: 60px;
  border-radius: 30px;
  background: linear-gradient(180deg, #352318 0%, #4b3322 50%, #3a261a 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: relative;
  border: 2px solid #6b4c35;
  overflow: hidden;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.45);
}

.tape-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 252, 240, 0.14) 0%, rgba(255, 252, 240, 0.04) 40%, transparent 55%);
  pointer-events: none;
  z-index: 4;
}

.tape-ribbon {
  position: absolute;
  left: 56px;
  right: 56px;
  height: 16px;
  background: repeating-linear-gradient(90deg, #5d3e29 0 10px, #462e1e 10px 20px);
  border-radius: 3px;
  opacity: 0.85;
  z-index: 1;
}

.reel-pack {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.reel-tape {
  position: absolute;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle,
      #2a1a10 0 2px,
      #3b2518 2px 4px
    );
  border: 1px solid rgba(110, 76, 48, 0.45);
  transition: width 0.4s linear, height 0.4s linear;
  z-index: 1;
}

.reel-tape-left {
  width: calc(40px + (1 - var(--tape-progress, 0)) * 26px);
  height: calc(40px + (1 - var(--tape-progress, 0)) * 26px);
}

.reel-tape-right {
  width: calc(40px + var(--tape-progress, 0) * 26px);
  height: calc(40px + var(--tape-progress, 0) * 26px);
}

.reel {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid #7d5b40;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(45, 30, 18, 0.4);
}

.reel::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #463122;
  box-shadow:
    0 -9px 0 -4px #463122,
    0 9px 0 -4px #463122,
    -9px 0 0 -4px #463122,
    9px 0 0 -4px #463122,
    6px -6px 0 -4.5px #463122,
    -6px 6px 0 -4.5px #463122;
}

.is-playing .reel {
  animation: spin 2.6s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .reel {
    animation: none;
  }
}

.cassette-note {
  margin: 12px 2px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Controles de reproducción */
.seek-row {
  margin-top: 14px;
}

.seek-slider {
  width: 100%;
  accent-color: var(--accent);
  height: 28px;
  cursor: pointer;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.controls-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}

/* Botones mecánicos táctiles de pletina de cassette */
.deck-tray {
  margin-top: 12px;
  padding: 8px 8px 11px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e7d7bc 0%, #f1e4cc 100%);
  border: 1.5px solid #d5bfa0;
  box-shadow:
    inset 0 3px 6px rgba(96, 66, 36, 0.16),
    0 1px 0 rgba(255, 253, 245, 0.85);
}

.deck-controls {
  margin-top: 0;
  gap: 7px;
  align-items: stretch;
}

.deck-btn {
  position: relative;
  appearance: none;
  border: 1.5px solid #cbb493;
  background: linear-gradient(180deg, #fffdf8 0%, #f3e6cf 58%, #ead9bc 100%);
  color: var(--text);
  border-radius: 12px;
  min-height: 54px;
  padding: 8px 4px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow:
    0 4px 0 #bea47e,
    0 6px 10px rgba(72, 46, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.08s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.08s ease, background 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.deck-btn-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.deck-btn:active:not(:disabled) {
  transform: translateY(3.5px);
  box-shadow:
    0 0.5px 0 #bea47e,
    0 1px 3px rgba(72, 46, 20, 0.16),
    inset 0 2px 4px rgba(96, 66, 36, 0.14);
}

.deck-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.deck-btn-toggle.active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #fdf0cc 0%, #f5dfa2 100%);
  border-color: #d69f38;
  color: #6b4308;
  box-shadow:
    0 2px 0 #b98628,
    0 3px 6px rgba(107, 67, 8, 0.16),
    inset 0 1px 2px rgba(255, 250, 230, 0.7);
}

.deck-btn-toggle.active:active:not(:disabled) {
  transform: translateY(3.5px);
  box-shadow:
    0 0.5px 0 #b98628,
    inset 0 2px 4px rgba(107, 67, 8, 0.18);
}

.deck-btn-play {
  min-height: 58px;
  border-radius: 14px;
  border-color: #9e3223;
  background: linear-gradient(180deg, #db5845 0%, #c94a38 55%, #b63d2c 100%);
  color: #fffdf9;
  box-shadow:
    0 5px 0 #8a291c,
    0 7px 14px rgba(140, 40, 24, 0.28),
    inset 0 1px 0 rgba(255, 215, 205, 0.5);
}

.deck-btn-play:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #8a291c,
    0 2px 4px rgba(140, 40, 24, 0.24),
    inset 0 2px 5px rgba(80, 18, 10, 0.26);
}

.is-playing .deck-btn-play {
  transform: translateY(2px);
  background: linear-gradient(180deg, #cf4a37 0%, #b93d2b 100%);
  box-shadow:
    0 3px 0 #8a291c,
    0 4px 10px rgba(160, 45, 26, 0.26),
    inset 0 1px 3px rgba(255, 210, 196, 0.35);
}

.is-playing .deck-btn-play:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #8a291c,
    inset 0 2px 5px rgba(80, 18, 10, 0.28);
}

.play-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
}

.deck-led {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(110, 82, 54, 0.24);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.deck-btn-toggle.active .deck-led {
  background: #f6b62e;
  box-shadow: 0 0 6px rgba(246, 182, 46, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.deck-led-play {
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: rgba(88, 22, 14, 0.45);
}

.is-playing .deck-led-play {
  background: #9ef08a;
  box-shadow: 0 0 8px rgba(158, 240, 138, 0.95), 0 0 2px #fff;
  animation: ledPulse 1.8s ease-in-out infinite;
}

@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.58; }
}

.btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 14px;
  min-height: 46px;
  padding: 10px 8px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.08s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent-hover);
  color: #fffdf9;
  box-shadow: 0 3px 10px rgba(201, 74, 56, 0.25);
}

.btn-play {
  min-height: 54px;
  font-size: 0.96rem;
  border-radius: 16px;
}

.btn-toggle.active {
  background: var(--honey-soft);
  border-color: var(--honey);
  color: #6b4308;
}

.playback-message {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* Tarjetas y secciones */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: 0 6px 18px rgba(120, 88, 52, 0.07);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--text);
}

.card p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Listas / Cintas */
.playlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.playlist-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.playlist-card.active {
  border-color: var(--accent);
  background: #fff2de;
  box-shadow: 0 3px 10px rgba(201, 74, 56, 0.1);
}

.playlist-art {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  color: var(--text);
  font-weight: 800;
  font-size: 0.65rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-top: 9px solid var(--accent);
}

.playlist-info {
  min-width: 0;
  flex: 1;
}

.playlist-name {
  font-weight: 800;
  font-size: 0.96rem;
}

.playlist-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lista de pistas */
.track-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--text);
  min-height: 54px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.track-item.is-holding {
  transform: scale(0.985);
  background: #f9e6c4;
  border-color: var(--honey);
}

.track-item.active {
  border-color: var(--accent);
  background: #fff0da;
}

.track-num {
  width: 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.track-meta {
  min-width: 0;
  flex: 1;
}

.track-title {
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-dur {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Botones y notas */
.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-row .btn {
  flex: 1 1 140px;
}

.helper-note {
  font-size: 0.81rem;
  color: var(--text-muted);
  background: #f9efda;
  border-left: 3.5px solid var(--honey);
  padding: 9px 11px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Diagnósticos */
.diag-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.84rem;
}

.diag-key {
  color: var(--text-muted);
}

.diag-val {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.log-box {
  background: #fdf8ec;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #4a3728;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Barra de navegación inferior: fijada de forma estable en iOS */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  background: rgba(255, 250, 240, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border);
  padding: 8px 12px calc(8px + var(--safe-bottom));
  z-index: 100;
  transition: opacity 0.12s ease;
}

.bottom-nav-inner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.nav-btn.active {
  background: var(--honey-soft);
  border-color: var(--honey);
  color: var(--text);
}

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

/* Cabecera de sección y botones compactos */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-compact {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 12px;
  white-space: nowrap;
}

.btn-icon-pill.active {
  background: var(--honey-soft);
  border-color: var(--honey);
  color: #6b4308;
}

.search-bar-wrap {
  position: relative;
  margin: 6px 0 10px;
}

.search-input-with-clear {
  padding-right: 40px;
}

.search-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-subtle {
  background: var(--cream);
  border-style: dashed;
}

.manage-tracks-list {
  margin-top: 10px;
  max-height: 52vh;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.manage-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid rgba(224, 204, 168, 0.75);
}

.manage-track-meta {
  min-width: 0;
  flex: 1;
}

.manage-track-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-track-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manage-track-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.manage-track-actions .playlist-action-btn {
  min-width: 52px;
  min-height: 32px;
}

.btn-danger {
  background: var(--err);
  border-color: #972b2b;
  color: #fffdf9;
}

.playlist-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.playlist-row .playlist-card {
  flex: 1;
  min-width: 0;
}

.playlist-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.playlist-action-btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 10px;
  min-height: 34px;
  min-width: 58px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.playlist-action-btn.danger {
  color: var(--err);
  border-color: #e5b8b8;
  background: #fff4f4;
}

.playlist-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--honey-soft);
  color: #6b4308;
  vertical-align: middle;
}

/* Fila de pista con edición opcional y arrastre para reordenar */
.track-li {
  list-style: none;
  transition: opacity 0.12s ease;
}

.track-li.is-dragging-source {
  opacity: 0.32;
  border: 1.5px dashed var(--accent);
  border-radius: 14px;
  background: #fff4df;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-row .track-item {
  flex: 1;
  min-width: 0;
}

.track-edit-btn {
  appearance: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 12px;
  width: 38px;
  min-height: 44px;
  font-size: 0.94rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reorder-hint {
  margin: -4px 0 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.drag-ghost {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  margin: 0;
  list-style: none;
  border-radius: 15px;
  background: #fff2dc;
  box-shadow: 0 16px 34px rgba(58, 42, 29, 0.28);
  transform: scale(1.03);
  opacity: 0.97;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.drag-ghost .track-item {
  border-color: var(--accent);
  background: #fff2dc;
  transform: none;
}

/* Modales */
.modal-backdrop {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 300;
  background: rgba(45, 30, 18, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px calc(12px + var(--safe-bottom));
  overscroll-behavior: contain;
}

#modal-track-editor,
#modal-confirm-delete {
  z-index: 320;
}

@media (min-width: 560px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(45, 30, 18, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-sheet-sm {
  max-height: 100%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--text);
}

.icon-btn {
  appearance: none;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.modal-footer .btn {
  flex: 1;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 5px;
}

input,
textarea,
select {
  font-size: 16px;
}

.text-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
}

.color-swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.swatch.active {
  border-color: var(--text);
  transform: scale(1.1);
}

.picker-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 6px;
}

.picker-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.track-picker-list {
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  -webkit-overflow-scrolling: touch;
}

.picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}

.picker-item.selected {
  background: #fff0da;
}

.picker-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.picker-item-meta {
  min-width: 0;
  flex: 1;
}

.picker-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- EXPERIENCIA REGALO (PRIMERA APERTURA) + LIBRETO DESPLEGABLE (J-CARD) --- */
.gift-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 248, 224, 0.98) 0%, #f8ebd0 54%, #edd6ae 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) 18px calc(24px + var(--safe-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: giftOverlayIn 0.35s ease;
}

.gift-overlay.is-closing {
  animation: giftOverlayOut 0.32s ease forwards;
}

@keyframes giftOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes giftOverlayOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.03); }
}

/* Fase 1: Sobre / Caja de regalo */
.unboxing-stage {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gift-box-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 8px;
  width: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
}

.gift-envelope {
  position: relative;
  width: 248px;
  height: 170px;
  border-radius: 18px;
  background: linear-gradient(165deg, #fffaf0 0%, #f5e5c6 100%);
  border: 2px solid #d9be92;
  box-shadow:
    0 18px 36px rgba(105, 68, 28, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  margin-bottom: 26px;
  perspective: 800px;
  transition: transform 0.2s ease;
}

.gift-box-btn:active .gift-envelope {
  transform: scale(0.97);
}

.gift-ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 22px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #b83d2c 0%, #d4523f 50%, #b83d2c 100%);
  box-shadow: 0 0 6px rgba(140, 42, 26, 0.22);
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.gift-ribbon-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 22px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #ebb343 0%, #d89828 100%);
  box-shadow: 0 2px 5px rgba(120, 80, 20, 0.18);
  z-index: 1;
  transition: opacity 0.35s ease;
}

.gift-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  background: linear-gradient(180deg, #fffdf7 0%, #f3e0bc 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transform-origin: top center;
  z-index: 3;
  filter: drop-shadow(0 4px 4px rgba(110, 72, 34, 0.16));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gift-mini-tape {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 156px;
  height: 92px;
  transform: translateX(-50%) translateY(12px);
  border-radius: 10px;
  background: linear-gradient(175deg, #f0be59 0%, #d8982a 100%);
  border: 2px solid #b0761f;
  box-shadow: 0 6px 14px rgba(90, 55, 18, 0.22);
  z-index: 2;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 8px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.mini-tape-stripe {
  width: 100%;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
  margin-bottom: 14px;
}

.mini-tape-holes {
  display: flex;
  gap: 32px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #463122;
}

.mini-tape-holes i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid #7d5b40;
}

.gift-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e4624f 0%, #c94a38 55%, #9d2f20 100%);
  border: 3px solid #f7c96d;
  color: #fffaf0;
  display: grid;
  place-items: center;
  z-index: 5;
  box-shadow: 0 6px 14px rgba(135, 38, 24, 0.35);
  animation: sealPulse 2.2s ease-in-out infinite;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

@keyframes sealPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.07); }
}

.unboxing-stage.is-opening .gift-seal {
  animation: none;
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 0;
}

.unboxing-stage.is-opening .gift-ribbon-v,
.unboxing-stage.is-opening .gift-ribbon-h {
  opacity: 0;
}

.unboxing-stage.is-opening .gift-flap {
  transform: rotateX(165deg);
}

.unboxing-stage.is-opening .gift-mini-tape {
  opacity: 1;
  transform: translateX(-50%) translateY(-44px);
}

.unboxing-heading {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.unboxing-sub {
  margin: 7px 0 18px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-muted);
}

.unboxing-tap-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #db5845 0%, #c14230 100%);
  color: #fffdf9;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1.5px solid #9e3223;
  box-shadow: 0 4px 0 #8a291c, 0 8px 18px rgba(158, 50, 35, 0.25);
}

/* Fase 2: Libreto desplegable tipo J-Card */
.jcard-stage {
  width: 100%;
  max-width: 420px;
  perspective: 1100px;
}

.jcard-booklet {
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(72, 46, 20, 0.26);
  transform-style: preserve-3d;
}

.jcard-panel {
  background: var(--cream);
  border-left: 1.5px solid #d9c39f;
  border-right: 1.5px solid #d9c39f;
}

.jcard-spine {
  padding: 11px 16px;
  border-top: 1.5px solid #d9c39f;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: linear-gradient(180deg, #f3e4c7 0%, #ead6b0 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px dashed rgba(140, 94, 60, 0.35);
  box-shadow: inset 0 -6px 10px -8px rgba(80, 50, 20, 0.35);
  transform-origin: bottom center;
}

.jcard-spine-code {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7c5c3e;
  text-transform: uppercase;
}

.jcard-spine-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

.jcard-main {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0px,
      transparent 27px,
      rgba(165, 132, 92, 0.14) 27px,
      rgba(165, 132, 92, 0.14) 28px
    ),
    #fffdf7;
  overflow: hidden;
}

.jcard-stripe {
  height: 10px;
  background: var(--accent);
}

.jcard-stripe-thin {
  height: 4px;
  background: var(--honey);
}

.jcard-content {
  padding: 18px 20px 20px;
}

.jcard-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.jcard-title {
  margin: 0 0 12px;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--text);
}

.jcard-body {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #463222;
  white-space: pre-line;
}

.jcard-signature {
  margin-top: 16px;
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--wood);
  text-align: right;
}

.jcard-flap {
  padding: 14px 18px 16px;
  border-top: 1px dashed rgba(140, 94, 60, 0.35);
  border-bottom: 1.5px solid #d9c39f;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  background: linear-gradient(180deg, #f9efda 0%, #f2e2c2 100%);
  box-shadow: inset 0 6px 10px -8px rgba(80, 50, 20, 0.3);
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jcard-enter-btn {
  width: 100%;
  min-height: 48px;
  font-size: 0.94rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 #8a291c, 0 6px 14px rgba(140, 40, 24, 0.22);
}

.jcard-enter-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8a291c;
}

.jcard-replay-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.jcard-booklet.is-unfolding {
  animation: jcardPopIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.jcard-booklet.is-unfolding .jcard-spine {
  animation: jcardFoldTop 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.jcard-booklet.is-unfolding .jcard-flap {
  animation: jcardFoldBottom 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes jcardPopIn {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jcardFoldTop {
  from { transform: rotateX(-78deg); opacity: 0.4; }
  to { transform: rotateX(0deg); opacity: 1; }
}

@keyframes jcardFoldBottom {
  from { transform: rotateX(78deg); opacity: 0.4; }
  to { transform: rotateX(0deg); opacity: 1; }
}

/* --- OSITO PEEKER, CARA B, TINTA INVISIBLE Y PERSONALIZADOR LOCAL --- */
.bear-peeker-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
  margin-bottom: -14px;
  z-index: 4;
  pointer-events: none;
}

.bear-peeker-stage.is-entering {
  animation: bearPopUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bearPopUp {
  0% { opacity: 0; transform: translateY(38px) scale(0.84); }
  65% { opacity: 1; transform: translateY(-5px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.bear-peeker-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  pointer-events: auto;
}

.bear-peeker-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
  line-height: 0;
}

.bear-honey-hotspot {
  display: none;
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 38px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  border-radius: 50%;
}

.bear-mode-calm .bear-honey-hotspot {
  display: block;
}

.bear-peeker-svg {
  width: 132px;
  height: 77px;
  overflow: visible;
  display: block;
}

.bear-paws-overlay {
  position: relative;
  z-index: 6;
  width: 72px;
  display: flex;
  justify-content: space-between;
  margin-top: -7px;
  pointer-events: none;
}

.bear-paw {
  width: 18px;
  height: 12px;
  border-radius: 50%;
  background: #f6c35a;
  border: 2px solid #5a3818;
  box-shadow: 0 2px 4px rgba(45, 25, 8, 0.28);
}

.bear-speech-bubble {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  width: max-content;
  max-width: min(290px, calc(100% - 16px));
  text-align: center;
  background: #fffdf7;
  color: var(--text);
  border: 1.5px solid #d9b47a;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.32;
  box-shadow: 0 8px 20px rgba(72, 46, 20, 0.18);
  opacity: 0;
  transform: translate(-50%, 6px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 20;
}

.bear-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -5px;
  width: 10px;
  height: 10px;
  background: #fffdf7;
  border-right: 1.5px solid #d9b47a;
  border-bottom: 1.5px solid #d9b47a;
  transform: rotate(45deg);
}

.bear-speech-bubble.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes bearBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(1.6px) scaleY(0.985); }
}

@keyframes bearDance {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  25% { transform: translateY(-5px) rotate(0deg); }
  50% { transform: translateY(0) rotate(3deg); }
  75% { transform: translateY(-4px) rotate(0deg); }
}

@keyframes bearRock {
  0%, 100% { transform: translateY(0) rotate(-5deg) scale(1); }
  25% { transform: translateY(-6.5px) rotate(2deg) scale(1.03); }
  50% { transform: translateY(0.5px) rotate(5deg) scale(0.98); }
  75% { transform: translateY(-6px) rotate(-2deg) scale(1.03); }
}

@keyframes bearGroove {
  0%, 100% { transform: translateX(-3px) translateY(0) rotate(-4deg); }
  25% { transform: translateX(0) translateY(-4.5px) rotate(0deg); }
  50% { transform: translateX(3px) translateY(0) rotate(4deg); }
  75% { transform: translateX(0) translateY(-4.5px) rotate(0deg); }
}

@keyframes bearSway {
  0%, 100% { transform: rotate(-3.5deg) translateY(0); }
  50% { transform: rotate(3.5deg) translateY(-1.5px); }
}

@keyframes bearRetroNod {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  40% { transform: translateY(-3px) rotate(2.5deg); }
  70% { transform: translateY(1.2px) rotate(-1deg); }
}

@keyframes bearHop {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-11px) scale(1.06); }
  72% { transform: translateY(1px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes bearPetWiggle {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-8px) rotate(-8deg) scale(1.07); }
  45% { transform: translateY(-10px) rotate(8deg) scale(1.08); }
  70% { transform: translateY(-5px) rotate(-5deg) scale(1.04); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes bearPerk {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-5.5px) rotate(5deg) scale(1.04); }
  70% { transform: translateY(0.5px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes bearWake {
  0% { transform: translateY(2px) scaleY(0.92) scaleX(1.04); }
  45% { transform: translateY(-8px) scaleY(1.08) scaleX(0.96); }
  80% { transform: translateY(1px) scaleY(0.98) scaleX(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes bearDuckDown {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  32% { transform: translateY(34px) scale(0.88); opacity: 0; }
  68% { transform: translateY(34px) scale(0.88); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes bearEarTwitchL {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-11deg); }
  92% { transform: rotate(4deg); }
  96% { transform: rotate(-6deg); }
}

@keyframes bearEarTwitchR {
  0%, 86%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(11deg); }
  94% { transform: rotate(-4deg); }
  98% { transform: rotate(6deg); }
}

@keyframes bearPawTap {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-3.5px) rotate(-6deg); }
  70% { transform: translateY(0.8px) rotate(2deg); }
}

@keyframes bearFloatUp {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-15px) scale(1.06); }
}

@keyframes bearPetHeartPop {
  0% { opacity: 0; transform: translateY(8px) scale(0.5); }
  25% { opacity: 1; transform: translateY(-4px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-22px) scale(0.95); }
}

@keyframes bearBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

@keyframes bearBaton {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(22deg); }
}

.bear-body { transform-origin: center bottom; }
.bear-ear { transform-box: fill-box; transform-origin: center bottom; }
.bear-ear-left { animation: bearEarTwitchL 7.5s ease-in-out infinite; }
.bear-ear-right { animation: bearEarTwitchR 9.2s ease-in-out infinite 1.8s; }
.bear-eyes { animation: bearBlink 4.6s infinite; transform-box: fill-box; transform-origin: center; }
.bear-eyes-sleep,
.bear-eyes-happy,
.bear-pet-hearts,
.bear-sparkle-burst,
.bear-munch-fx { display: none; }
.bear-acc, .bear-fx { display: none; }

/* Pausado / dormilón + modo nocturno tras las 23:00 */
.bear-mode-paused .bear-body { animation: bearBreathe 3.2s ease-in-out infinite; }
.bear-mode-paused .bear-eyes-open { display: none; }
.bear-mode-paused .bear-eyes-sleep { display: inline; }
.bear-mode-paused .bear-fx-zzz { display: block; animation: bearFloatUp 2.6s ease-in-out infinite; }
.bear-mode-night .bear-acc-nightcap { display: block; }
.bear-mode-night .bear-fx-moon { display: block; animation: bearFloatUp 3.2s ease-in-out infinite 0.5s; }

/* Pop en Español / Todas las Canciones */
.bear-mode-playing .bear-body { animation: bearDance 0.78s ease-in-out infinite; }
.bear-mode-playing .bear-acc-headphones,
.bear-mode-playing .bear-fx-notes { display: block; }
.bear-mode-playing .bear-fx-notes { animation: bearFloatUp 1.5s ease-out infinite; }
.bear-mode-playing .bear-paw-left { animation: bearPawTap 0.78s ease-in-out infinite; }
.bear-mode-playing .bear-paw-right { animation: bearPawTap 0.78s ease-in-out infinite 0.39s; }

/* A Todo Volumen! (Rockstar) */
.bear-mode-rock .bear-body { animation: bearRock 0.62s ease-in-out infinite; }
.bear-mode-rock .bear-acc-headphones,
.bear-mode-rock .bear-acc-rock-shades,
.bear-mode-rock .bear-fx-stars { display: block; }
.bear-mode-rock .bear-fx-stars { animation: bearFloatUp 1.25s ease-out infinite; }
.bear-mode-rock .bear-paw-left { animation: bearPawTap 0.62s ease-in-out infinite; }
.bear-mode-rock .bear-paw-right { animation: bearPawTap 0.62s ease-in-out infinite 0.31s; }

/* Para Bailar (Groove disco/pop) */
.bear-mode-dance .bear-body { animation: bearGroove 0.72s ease-in-out infinite; }
.bear-mode-dance .bear-acc-headphones,
.bear-mode-dance .bear-fx-stars { display: block; }
.bear-mode-dance .bear-fx-stars { animation: bearFloatUp 1.35s ease-out infinite; }
.bear-mode-dance .bear-paw-left { animation: bearPawTap 0.72s ease-in-out infinite; }
.bear-mode-dance .bear-paw-right { animation: bearPawTap 0.72s ease-in-out infinite 0.36s; }

/* A Toda Balada (Emotivo con corazones) */
.bear-mode-ballad .bear-body { animation: bearSway 2.2s ease-in-out infinite; }
.bear-mode-ballad .bear-eyes-open { display: none; }
.bear-mode-ballad .bear-eyes-happy { display: inline; }
.bear-mode-ballad .bear-cheeks ellipse { opacity: 0.82; }
.bear-mode-ballad .bear-fx-hearts { display: block; animation: bearFloatUp 2.1s ease-out infinite; }
.bear-mode-ballad .bear-paw-left { animation: bearPawTap 2.2s ease-in-out infinite; }
.bear-mode-ballad .bear-paw-right { animation: bearPawTap 2.2s ease-in-out infinite 1.1s; }

/* Música Tranquila (Acogedor con tarrito de miel) */
.bear-mode-calm .bear-body { animation: bearSway 2.6s ease-in-out infinite; }
.bear-mode-calm .bear-acc-honey,
.bear-mode-calm .bear-fx-notes { display: block; }
.bear-mode-calm .bear-fx-notes { animation: bearFloatUp 2.4s ease-out infinite; }
.bear-mode-calm .bear-paw-left { animation: bearPawTap 2.6s ease-in-out infinite; }

/* Regreso al Pasado (Gafitas redondas vintage) */
.bear-mode-retro .bear-body { animation: bearRetroNod 1.15s ease-in-out infinite; }
.bear-mode-retro .bear-acc-retro-shades,
.bear-mode-retro .bear-fx-sparkle { display: block; }
.bear-mode-retro .bear-fx-sparkle { animation: bearFloatUp 1.85s ease-out infinite; }
.bear-mode-retro .bear-paw-left { animation: bearPawTap 1.15s ease-in-out infinite; }
.bear-mode-retro .bear-paw-right { animation: bearPawTap 1.15s ease-in-out infinite 0.57s; }

/* Villancicos (Navidad) */
.bear-mode-villancicos .bear-body { animation: bearDance 0.94s ease-in-out infinite; }
.bear-mode-villancicos .bear-acc-santa,
.bear-mode-villancicos .bear-fx-snow { display: block; }
.bear-mode-villancicos .bear-fx-snow { animation: bearFloatUp 1.9s ease-out infinite; }
.bear-mode-villancicos .bear-paw-left { animation: bearPawTap 0.94s ease-in-out infinite; }
.bear-mode-villancicos .bear-paw-right { animation: bearPawTap 0.94s ease-in-out infinite 0.47s; }

/* Música Clásica (Director de orquesta con pajarita y batuta) */
.bear-mode-clasica .bear-body { animation: bearSway 2.5s ease-in-out infinite; }
.bear-mode-clasica .bear-acc-classical,
.bear-mode-clasica .bear-fx-notes { display: block; }
.bear-mode-clasica .bear-fx-notes { animation: bearFloatUp 2.3s ease-out infinite; }
.bear-mode-clasica .bear-baton { animation: bearBaton 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: left bottom; }

/* Reacciones interactivas puntuales */
.bear-peeker-stage.is-hopping .bear-peeker-svg {
  animation: bearHop 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.bear-peeker-stage.is-perking .bear-peeker-svg {
  animation: bearPerk 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.bear-peeker-stage.is-waking .bear-peeker-svg {
  animation: bearWake 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.bear-peeker-stage.is-ducking .bear-peeker-wrap,
.bear-peeker-stage.is-ducking .bear-paws-overlay {
  animation: bearDuckDown 0.66s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bearMunch {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-4px) rotate(6deg) scale(1.04, 0.96); }
  40% { transform: translateY(1px) rotate(3deg) scale(0.97, 1.04); }
  60% { transform: translateY(-4px) rotate(7deg) scale(1.05, 0.96); }
  80% { transform: translateY(1px) rotate(2deg) scale(0.98, 1.03); }
}

@keyframes bearSparklePop {
  0% { opacity: 0; transform: translateY(6px) scale(0.4) rotate(-25deg); }
  30% { opacity: 1; transform: translateY(-6px) scale(1.2) rotate(12deg); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.85) rotate(35deg); }
}

.bear-peeker-stage.is-munching .bear-peeker-svg {
  animation: bearMunch 0.85s ease-in-out;
}

.bear-peeker-stage.is-munching .bear-eyes-open,
.bear-peeker-stage.is-munching .bear-eyes-sleep {
  display: none !important;
}

.bear-peeker-stage.is-munching .bear-eyes-happy {
  display: inline !important;
}

.bear-peeker-stage.is-munching .bear-cheeks ellipse {
  opacity: 0.92;
}

.bear-peeker-stage.is-munching .bear-munch-fx {
  display: block;
  animation: bearPetHeartPop 1.05s ease-out forwards;
}

.bear-peeker-stage.is-sparkling .bear-peeker-svg {
  animation: bearHop 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.bear-peeker-stage.is-sparkling .bear-eyes-open,
.bear-peeker-stage.is-sparkling .bear-eyes-sleep {
  display: none !important;
}

.bear-peeker-stage.is-sparkling .bear-eyes-happy {
  display: inline !important;
}

.bear-peeker-stage.is-sparkling .bear-sparkle-burst {
  display: block;
}

.bear-peeker-stage.is-sparkling .sp-s1 { animation: bearSparklePop 1.15s ease-out forwards; }
.bear-peeker-stage.is-sparkling .sp-s2 { animation: bearSparklePop 1.15s ease-out 0.1s forwards; }
.bear-peeker-stage.is-sparkling .sp-s3 { animation: bearSparklePop 1.15s ease-out 0.18s forwards; }
.bear-peeker-stage.is-sparkling .sp-s4 { animation: bearSparklePop 1.15s ease-out 0.25s forwards; }

.bear-peeker-stage.is-petted .bear-peeker-svg {
  animation: bearPetWiggle 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.bear-peeker-stage.is-petted .bear-eyes-open,
.bear-peeker-stage.is-petted .bear-eyes-sleep {
  display: none !important;
}

.bear-peeker-stage.is-petted .bear-eyes-happy {
  display: inline !important;
}

.bear-peeker-stage.is-petted .bear-cheeks ellipse {
  opacity: 0.95;
  fill: #e05263;
}

.bear-peeker-stage.is-petted .bear-pet-hearts {
  display: block;
}

.bear-peeker-stage.is-petted .pet-h1 { animation: bearPetHeartPop 0.95s ease-out forwards; }
.bear-peeker-stage.is-petted .pet-h2 { animation: bearPetHeartPop 0.95s ease-out 0.1s forwards; }
.bear-peeker-stage.is-petted .pet-h3 { animation: bearPetHeartPop 0.95s ease-out 0.2s forwards; }

/* Cara B interior y cerradura mecánica */
.carab-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 11px;
  border: 1px solid rgba(242, 198, 109, 0.35);
  background: radial-gradient(circle at 50% 20%, rgba(120, 78, 36, 0.35) 0%, rgba(28, 16, 9, 0.55) 100%);
  padding: 7px 10px;
  color: #fdf0d5;
  overflow: hidden;
}

.carab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.carab-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f3c463;
}

.carab-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.carab-body-celebrate {
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.counter-lock {
  display: flex;
  gap: 9px;
  padding: 4px 10px;
  border-radius: 11px;
  background: rgba(16, 9, 4, 0.55);
  border: 1.5px solid rgba(232, 184, 88, 0.45);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.6);
}

.counter-lock.is-shaking {
  animation: lockShake 0.38s ease;
}

@keyframes lockShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.counter-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.wheel-step {
  appearance: none;
  border: none;
  background: transparent;
  color: #e9bf6c;
  font-size: 0.58rem;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
}

.wheel-val {
  appearance: none;
  width: 31px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid #c9963a;
  background: linear-gradient(180deg, #fffaf0 0%, #f0dfc0 50%, #e5ce9f 100%);
  color: #2f1d0e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.04rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(0, 0, 0, 0.35);
}

.carab-actions {
  display: flex;
  gap: 7px;
  width: 100%;
  justify-content: center;
}

.carab-btn {
  appearance: none;
  border: 1px solid rgba(242, 198, 109, 0.45);
  background: rgba(255, 244, 218, 0.12);
  color: #fdf0d5;
  border-radius: 9px;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.carab-btn-gold {
  background: linear-gradient(180deg, #f2c25b 0%, #d4972a 100%);
  border-color: #ffe094;
  color: #2d1b0c;
  box-shadow: 0 2px 8px rgba(212, 151, 42, 0.35);
}

.carab-feedback {
  font-size: 0.68rem;
  line-height: 1.2;
  color: #f6c978;
  min-height: 1em;
  text-align: center;
}

.carab-unlocked-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffe18f;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(242, 194, 91, 0.16);
  border: 1px solid rgba(255, 225, 143, 0.5);
}

.carab-unlocked-text {
  margin: 2px 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #f6e4c4;
  text-align: center;
}

/* Celebración de LEDs al desbloquear 1974 */
.cassette-card.is-celebrating .deck-led {
  background: #ffe066 !important;
  box-shadow: 0 0 12px #ffd43b, 0 0 4px #fff !important;
}

/* Tinta invisible en el J-Card */
.jcard-secret-box {
  position: relative;
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px dashed rgba(201, 142, 48, 0.45);
  background:
    radial-gradient(
      circle 74px at var(--glow-x, -120px) var(--glow-y, -120px),
      rgba(255, 224, 130, 0.65) 0%,
      rgba(255, 232, 165, 0.18) 55%,
      transparent 100%
    ),
    rgba(250, 236, 200, 0.35);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.jcard-secret-prompt {
  font-size: 0.74rem;
  font-weight: 700;
  color: #a67c3c;
  text-align: center;
  transition: opacity 0.3s ease;
}

.jcard-secret-text {
  margin-top: 4px;
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #8c5210;
  text-align: center;
  opacity: 0.04;
  filter: blur(2.5px);
  transition: opacity 0.45s ease, filter 0.45s ease;
}

.jcard-secret-box.is-peeking .jcard-secret-text {
  opacity: 0.85;
  filter: blur(0px);
}

.jcard-secret-box.is-revealed {
  border-color: #d99b2e;
  background: linear-gradient(180deg, #fff5d4 0%, #fae6b2 100%);
  touch-action: auto;
}

.jcard-secret-box.is-revealed .jcard-secret-prompt {
  opacity: 0.55;
  font-size: 0.7rem;
}

.jcard-secret-box.is-revealed .jcard-secret-text {
  opacity: 1;
  filter: none;
}

/* Modal de las 4 pistas */
.riddles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.riddle-card {
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--cream);
  border: 1.5px solid var(--border);
}

.riddle-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.riddle-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.riddle-rule {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wood);
  text-align: right;
}

.riddle-text {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

/* Personalizador local */
.custom-textarea {
  min-height: 92px;
  resize: vertical;
}

.custom-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text);
  cursor: pointer;
}

.custom-check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .cassette-flipper.is-ejecting,
  .cassette-flipper.is-inserting,
  .cassette-flipper.is-inserting .reel,
  .is-playing .deck-led-play,
  .gift-seal,
  .jcard-booklet.is-unfolding,
  .jcard-booklet.is-unfolding .jcard-spine,
  .jcard-booklet.is-unfolding .jcard-flap,
  .bear-body,
  .bear-ear,
  .bear-paw,
  .bear-eyes,
  .bear-fx,
  .bear-baton,
  .pet-h,
  .sp-s,
  .bear-munch-fx,
  .bear-peeker-stage.is-entering,
  .bear-peeker-stage.is-hopping .bear-peeker-svg,
  .bear-peeker-stage.is-perking .bear-peeker-svg,
  .bear-peeker-stage.is-waking .bear-peeker-svg,
  .bear-peeker-stage.is-petted .bear-peeker-svg,
  .bear-peeker-stage.is-munching .bear-peeker-svg,
  .bear-peeker-stage.is-sparkling .bear-peeker-svg,
  .bear-peeker-stage.is-ducking .bear-peeker-wrap,
  .bear-peeker-stage.is-ducking .bear-paws-overlay {
    animation: none !important;
  }
}
