.little-little-panel {
  --ll-text-soft: color-mix(in srgb, var(--scene-accent-soft, rgba(235, 224, 210, 0.68)) 76%, var(--text-muted, rgba(235, 224, 210, 0.68)));
  --ll-warm: color-mix(in srgb, var(--scene-accent, #f0b66d) 82%, #f0b66d);
  --ll-warm-strong: color-mix(in srgb, var(--scene-accent-soft, #ffd28c) 78%, #ffd28c);
  --ll-teal: color-mix(in srgb, var(--scene-accent-2, #78d2c2) 86%, #78d2c2);
  --ll-rose: color-mix(in srgb, var(--scene-accent, #d78b9a) 46%, #d78b9a);
  --ll-ink: #3b302a;
  --ll-bubble: color-mix(in srgb, var(--scene-accent-soft, rgba(255, 240, 216, 0.96)) 14%, rgba(255, 255, 255, 0.1));
  --ll-bubble-text: var(--text-primary, rgba(248, 244, 255, 0.92));
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  width: min(100%, 470px);
  max-width: 100%;
  min-height: 120px;
  margin: 8px 0 18px;
  padding: 0;
  overflow: visible;
  pointer-events: none;
  transition: transform 0.28s ease, margin 0.28s ease, width 0.28s ease;
}

.little-little-copy {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: min(310px, calc(100% - 138px));
}

.little-little-status-title[hidden] {
  display: none;
}

.little-little-speech {
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--scene-accent, #9b7cf7) 32%, transparent);
  border-radius: 13px 13px 13px 5px;
  color: var(--ll-bubble-text);
  background: var(--ll-bubble);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.little-little-stage {
  position: relative;
  z-index: 3;
  flex: 0 0 124px;
  width: 124px;
  height: 116px;
  overflow: visible;
}

.little-little-pet-slot {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 230px;
  height: 230px;
  transform: scale(0.5);
  transform-origin: 0 0;
}

.little-little-props {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.little-little-debug {
  position: static;
  z-index: 5;
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 100%;
  gap: 5px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 0;
  pointer-events: auto;
}

.little-little-debug[hidden] {
  display: none;
}

.little-little-debug button {
  flex: 0 0 auto;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--scene-accent, #9b7cf7) 28%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--music-scene-button-soft, rgba(255, 255, 255, 0.045)) 78%, transparent);
  color: var(--ll-text-soft);
  font-size: 10px;
  font-weight: 780;
  cursor: pointer;
}

.little-little-debug button.is-active {
  border-color: color-mix(in srgb, var(--scene-accent, #9b7cf7) 76%, transparent);
  background: var(--ll-warm-strong);
  color: #171416;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-companion-copy {
  justify-content: center;
  gap: 5px;
  padding-block: 2px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-companion {
  min-height: 372px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-scene-switcher {
  margin-bottom: 10px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-kicker {
  margin-bottom: 5px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-companion-copy h2 {
  margin-bottom: 7px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-dialogue {
  gap: 6px;
  margin-bottom: 8px;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) #homeSceneLineTwo {
  display: none;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-dialogue p {
  padding: 7px 11px;
  font-size: 13.5px;
  line-height: 1.42;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-quick-actions {
  margin-top: 0;
}

#app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-quick-actions button {
  min-height: 32px;
}

.little-little-panel.ll-state-morning,
.little-little-panel.ll-state-night {
  align-self: stretch;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 16px;
}

.little-little-panel.ll-state-night {
  transform: translateY(7px);
}

.little-little-panel.ll-state-finding {
  align-self: flex-end;
  justify-content: flex-end;
  margin-top: 14px;
  margin-bottom: 6px;
  transform: translateY(18px);
}

.little-little-panel.ll-state-comfort,
.little-little-panel.ll-state-rainy {
  align-self: flex-start;
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 34px;
  transform: translate(-8px, 22px);
}

.little-little-panel.ll-state-rainy {
  transform: translate(-10px, 28px);
}

.little-little-panel.ll-state-liked {
  position: fixed;
  left: var(--ll-liked-left, 142px);
  top: var(--ll-liked-top, 342px);
  z-index: 1250;
  flex-wrap: nowrap;
  width: 340px;
  max-width: calc(100vw - 32px);
  min-height: 104px;
  margin: 0;
  padding: 4px 0;
  gap: 8px 10px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.24));
}

.little-little-panel.ll-state-liked .little-little-stage {
  flex-basis: 108px;
  width: 108px;
  height: 100px;
}

.little-little-panel.ll-state-liked .little-little-pet-slot {
  transform: scale(0.46);
}

.little-little-panel.ll-state-liked .little-little-copy {
  max-width: min(218px, calc(100% - 118px));
}

.little-little-panel.ll-state-liked .little-little-speech {
  background: color-mix(in srgb, var(--scene-accent-soft, rgba(255, 240, 216, 0.96)) 18%, rgba(255, 255, 255, 0.14));
  font-size: 12.8px;
  line-height: 1.36;
}

.scene-prop {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.sun-prop {
  left: 4px;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ll-warm-strong);
  box-shadow: 0 0 24px rgba(255, 210, 140, 0.56);
}

.sun-prop::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px dashed rgba(255, 210, 140, 0.58);
  border-radius: 50%;
  animation: ll-prop-spin 8s linear infinite;
}

.moon-prop {
  left: 8px;
  top: 7px;
  color: var(--ll-warm-strong);
  font-size: 24px;
  font-weight: 900;
  animation: ll-prop-float 2.6s ease-in-out infinite;
}

.moon-prop::before {
  content: "zZ";
}

.search-prop {
  right: -8px;
  top: 2px;
  width: 25px;
  height: 25px;
  border: 4px solid var(--ll-teal);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(120, 210, 194, 0.35);
  animation: ll-search-pulse 1.1s ease-in-out infinite;
}

.search-prop::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 15px;
  height: 5px;
  border-radius: 7px;
  background: var(--ll-teal);
  transform: rotate(43deg);
}

.beam-prop {
  left: 6px;
  bottom: 30px;
  width: 72px;
  height: 32px;
  border-radius: 60px;
  background: linear-gradient(90deg, rgba(120, 210, 194, 0), rgba(120, 210, 194, 0.25));
  transform-origin: 100% 50%;
  animation: ll-beam-sweep 1.4s ease-in-out infinite;
}

.heart-prop {
  left: 2px;
  top: 40px;
  color: #ff9faf;
  font-size: 30px;
  text-shadow: 0 0 24px rgba(255, 159, 175, 0.5);
  animation: ll-heart-pop 1.2s ease-in-out infinite;
}

.heart-prop::before {
  content: "♥";
}

.spark-prop {
  right: -4px;
  top: 8px;
  color: var(--ll-warm-strong);
  font-size: 22px;
  animation: ll-spark-burst 1.2s ease-in-out infinite;
}

.spark-prop::before {
  content: "✦";
}

.blanket-prop {
  left: 20px;
  bottom: 15px;
  width: 78px;
  height: 27px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(120deg, rgba(255, 210, 140, 0.48), rgba(216, 142, 156, 0.38));
  box-shadow: 0 0 24px rgba(255, 210, 140, 0.2);
  animation: ll-blanket-breathe 2.8s ease-in-out infinite;
}

.rain-prop {
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: rgba(154, 205, 234, 0.58);
  animation: ll-rain-fall 1.25s linear infinite;
}

.rain-prop:nth-child(1) {
  left: 8px;
  top: 8px;
}

.rain-prop:nth-child(2) {
  right: 4px;
  top: 24px;
  animation-delay: 0.36s;
}

.rain-prop:nth-child(3) {
  left: 44px;
  top: 2px;
  animation-delay: 0.72s;
}

.check-prop {
  left: 4px;
  top: 34px;
  color: var(--ll-teal);
  font-size: 32px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(120, 210, 194, 0.4);
  animation: ll-check-pop 1.7s ease-in-out infinite;
}

.check-prop::before {
  content: "✓";
}

.plus-prop {
  right: -2px;
  top: 2px;
  color: var(--ll-warm-strong);
  font-size: 34px;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 210, 140, 0.42);
  animation: ll-plus-wave 2.2s ease-in-out infinite;
}

.plus-prop::before {
  content: "+";
}

.friend-prop {
  right: -36px;
  bottom: -36px;
  width: 230px;
  height: 230px;
  transform: scale(0.24);
  transform-origin: 100% 100%;
  opacity: 0.9;
  filter: hue-rotate(18deg) saturate(0.9);
  animation: ll-friend-peek 2.2s ease-in-out infinite;
}

.little-little {
  position: absolute;
  inset: 0;
  width: 230px;
  height: 230px;
  transform-origin: 50% 70%;
  animation: ll-pet-idle 3.2s ease-in-out infinite;
}

.pet-aura {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.28), rgba(216, 142, 156, 0.14) 38%, rgba(120, 210, 194, 0.08) 58%, transparent 72%);
  animation: ll-aura-breathe 2.8s ease-in-out infinite;
}

.pet-shadow {
  position: absolute;
  left: 62px;
  bottom: 22px;
  width: 108px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
  filter: blur(2px);
  animation: ll-shadow-breathe 3.2s ease-in-out infinite;
}

.pet-cloud {
  position: absolute;
  left: 42px;
  top: 160px;
  width: 48px;
  height: 28px;
  border-radius: 24px;
  background: #d8d2c8;
  box-shadow: 34px -7px 0 8px #d8d2c8, 72px 1px 0 #d8d2c8;
  opacity: 0.85;
}

.pet-body {
  position: absolute;
  left: 59px;
  top: 60px;
  width: 112px;
  height: 116px;
  border-radius: 50px 50px 36px 36px;
  background: linear-gradient(145deg, #f3c67f 0%, #e4a989 48%, #d78b9a 100%);
  box-shadow:
    inset -12px -14px 0 rgba(120, 60, 70, 0.18),
    inset 11px 10px 0 rgba(255, 248, 224, 0.18),
    0 0 0 6px var(--ll-ink),
    0 0 50px rgba(255, 198, 127, 0.25),
    0 24px 42px rgba(0, 0, 0, 0.32);
}

.pet-ear {
  position: absolute;
  top: 40px;
  width: 38px;
  height: 48px;
  background: linear-gradient(145deg, #f1c17f, #d68b9a);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 5px 0 var(--ll-ink));
  transform-origin: 50% 100%;
  animation: ll-ear-left 4.2s ease-in-out infinite;
}

.pet-ear.left {
  left: 63px;
}

.pet-ear.right {
  right: 63px;
  animation-name: ll-ear-right;
  animation-delay: 0.8s;
}

.pet-inner-ear {
  position: absolute;
  top: 55px;
  width: 18px;
  height: 22px;
  background: rgba(255, 210, 205, 0.48);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pet-inner-ear.left {
  left: 73px;
  transform: rotate(-9deg);
}

.pet-inner-ear.right {
  right: 73px;
  transform: rotate(9deg);
}

.pet-eyes {
  position: absolute;
  left: 78px;
  top: 101px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #15110f;
  box-shadow: 64px 0 0 #15110f;
  animation: ll-blink 4.4s steps(1, end) infinite;
}

.pet-nose {
  position: absolute;
  left: 106px;
  top: 119px;
  width: 17px;
  height: 5px;
  border-radius: 8px;
  background: #805c4c;
}

.pet-blush {
  position: absolute;
  left: 68px;
  top: 120px;
  width: 13px;
  height: 5px;
  border-radius: 8px;
  background: rgba(255, 150, 166, 0.45);
  box-shadow: 82px 0 0 rgba(255, 150, 166, 0.42);
}

.pet-collar {
  position: absolute;
  left: 79px;
  top: 153px;
  width: 72px;
  height: 15px;
  border-radius: 0 0 20px 20px;
  background: var(--ll-warm);
  box-shadow: inset 0 -5px 0 rgba(110, 66, 30, 0.26);
}

.pet-collar-dot {
  position: absolute;
  left: 109px;
  top: 153px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ll-teal);
  box-shadow: 0 0 0 3px var(--ll-ink);
}

.pet-name-tag {
  position: absolute;
  left: 144px;
  top: 56px;
  z-index: 2;
  display: grid;
  gap: 1px;
  padding: 5px 6px;
  border-radius: 8px;
  color: #172120;
  background: var(--ll-teal);
  box-shadow: 0 0 0 3px var(--ll-ink), 0 8px 20px rgba(0, 0, 0, 0.24);
  font-size: 8px;
  font-weight: 900;
  line-height: 0.86;
  text-align: center;
  animation: ll-tag-bob 2.9s ease-in-out infinite;
}

.pet-antenna {
  position: absolute;
  left: 113px;
  top: 24px;
  width: 4px;
  height: 34px;
  background: var(--ll-teal);
  box-shadow: 0 0 0 2px #263432;
  transform-origin: 50% 100%;
  animation: ll-antenna-sway 1.8s ease-in-out infinite;
}

.pet-antenna::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ll-warm-strong);
  box-shadow: 0 0 20px rgba(255, 210, 140, 0.78);
}

.pet-wave {
  position: absolute;
  border: 2px solid rgba(120, 210, 194, 0.52);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 38px 0 0;
  animation: ll-wave-expand 1.9s ease-out infinite;
}

.pet-wave.one {
  left: 119px;
  top: 23px;
  width: 34px;
  height: 34px;
}

.pet-wave.two {
  left: 125px;
  top: 13px;
  width: 54px;
  height: 54px;
  animation-delay: 0.22s;
}

.pet-note {
  position: absolute;
  color: var(--ll-warm-strong);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255, 210, 140, 0.5);
  animation: ll-note-drift 2.6s ease-in-out infinite;
}

.pet-note.one {
  left: 34px;
  top: 112px;
  font-size: 25px;
}

.pet-note.two {
  right: 36px;
  top: 76px;
  font-size: 24px;
  animation-delay: 0.5s;
}

.pet-note.three {
  left: 73px;
  top: 31px;
  color: var(--ll-teal);
  font-size: 22px;
  animation-delay: 0.85s;
}

.pet-note.one::before,
.pet-note.three::before {
  content: "♪";
}

.pet-note.two::before {
  content: "♫";
}

.ll-state-morning .little-little {
  animation-name: ll-wake-stretch;
}

.ll-state-morning .pet-body {
  animation: ll-morning-body 2s ease-in-out infinite;
}

.ll-state-morning .pet-ear {
  animation-duration: 1.8s;
}

.ll-state-night .little-little {
  animation-name: ll-sleepy-sink;
  animation-duration: 4.8s;
}

.ll-state-night .pet-eyes {
  animation: ll-sleep-eyes 4.8s steps(1, end) infinite;
}

.ll-state-night .pet-aura {
  animation-duration: 4.8s;
}

.ll-state-finding .little-little {
  animation-name: ll-radar-scan;
  animation-duration: 1.25s;
}

.ll-state-finding .pet-antenna,
.ll-state-finding .pet-wave {
  animation-duration: 0.8s;
}

.ll-state-liked .little-little {
  animation-name: ll-happy-hop-turn;
  animation-duration: 1.1s;
}

.ll-state-liked .pet-blush {
  animation: ll-blush-pop 1.1s ease-in-out infinite;
}

.ll-state-comfort .little-little {
  animation-name: ll-comfort-scoot;
  animation-duration: 3.6s;
}

.ll-state-comfort .pet-aura {
  animation-duration: 3.5s;
}

.ll-state-rainy .little-little {
  animation-name: ll-rain-huddle;
  animation-duration: 4.2s;
}

.ll-state-rainy .pet-ear.left {
  animation: ll-rain-ear-left 4.2s ease-in-out infinite;
}

.ll-state-rainy .pet-ear.right {
  animation: ll-rain-ear-right 4.2s ease-in-out infinite;
}

.ll-state-saved .little-little {
  animation-name: ll-saved-nod;
  animation-duration: 1.7s;
}

.ll-state-saved .pet-collar-dot {
  animation: ll-dot-flash 1.7s ease-in-out infinite;
}

.ll-state-invite .little-little {
  animation-name: ll-invite-turn;
  animation-duration: 2.2s;
}

.ll-state-invite .pet-name-tag {
  animation: ll-tag-wave 2.2s ease-in-out infinite;
}

@keyframes ll-pet-idle {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes ll-aura-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes ll-shadow-breathe {
  0%, 100% { transform: scale(1); opacity: 0.34; }
  50% { transform: scale(0.82); opacity: 0.21; }
}

@keyframes ll-ear-left {
  0%, 82%, 100% { transform: rotate(-9deg); }
  86% { transform: rotate(-18deg); }
  90% { transform: rotate(4deg); }
}

@keyframes ll-ear-right {
  0%, 82%, 100% { transform: rotate(9deg); }
  86% { transform: rotate(18deg); }
  90% { transform: rotate(-4deg); }
}

@keyframes ll-blink {
  0%, 88%, 100% { height: 10px; }
  90%, 94% { height: 2px; transform: translateY(4px); }
}

@keyframes ll-antenna-sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}

@keyframes ll-wave-expand {
  0% { transform: scale(0.72); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes ll-note-drift {
  0%, 100% { transform: translateY(0); opacity: 0.38; }
  45% { transform: translateY(-13px); opacity: 1; }
}

@keyframes ll-tag-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ll-wake-stretch {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25% { transform: scale(1.08, 0.92) translateY(10px) rotate(-4deg); }
  48% { transform: scale(0.96, 1.14) translateY(-25px) rotate(4deg); }
  70% { transform: translateY(-2px); }
}

@keyframes ll-morning-body {
  0%, 100% { border-radius: 50px 50px 36px 36px; }
  30% { border-radius: 54px 54px 30px 30px; }
  55% { border-radius: 46px 46px 40px 40px; }
}

@keyframes ll-sleepy-sink {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.96; }
  50% { transform: translateY(10px) scale(1.04); opacity: 1; }
}

@keyframes ll-sleep-eyes {
  0%, 100% { height: 2px; transform: translateY(4px); }
  70% { height: 2px; transform: translateY(4px); }
  75%, 80% { height: 10px; transform: translateY(0); }
}

@keyframes ll-radar-scan {
  0%, 100% { transform: translateX(-16px) rotate(-8deg); }
  35% { transform: translateX(16px) rotate(7deg); }
  70% { transform: translateX(4px) rotate(0deg); }
}

@keyframes ll-happy-hop-turn {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: scale(1.08, 0.96) translateY(-27px) rotate(-8deg); }
  68% { transform: translateY(-8px) rotate(7deg); }
}

@keyframes ll-blush-pop {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes ll-comfort-scoot {
  0%, 100% { transform: translateX(0) scale(1.02); }
  35% { transform: translateX(-22px) scale(1.1); }
  70% { transform: translateX(-12px) scale(1.07); }
}

@keyframes ll-rain-huddle {
  0%, 100% { transform: scale(1, 0.96) translateY(9px) rotate(-2deg); }
  50% { transform: scale(0.96, 0.94) translateX(-5px) translateY(11px) rotate(2deg); }
}

@keyframes ll-rain-ear-left {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(-18deg); }
}

@keyframes ll-rain-ear-right {
  0%, 100% { transform: rotate(24deg); }
  50% { transform: rotate(18deg); }
}

@keyframes ll-saved-nod {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(9px); }
  58% { transform: translateY(-4px); }
}

@keyframes ll-dot-flash {
  0%, 100% { background: var(--ll-teal); }
  50% { background: var(--ll-warm-strong); }
}

@keyframes ll-invite-turn {
  0%, 100% { transform: translateX(0) rotate(0); }
  45% { transform: translateX(-20px) rotate(-8deg); }
  70% { transform: translateX(-12px) rotate(-4deg); }
}

@keyframes ll-prop-spin {
  to { transform: rotate(360deg); }
}

@keyframes ll-prop-float {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-12px); opacity: 1; }
}

@keyframes ll-search-pulse {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.08); }
}

@keyframes ll-beam-sweep {
  0%, 100% { transform: rotate(-18deg); opacity: 0.25; }
  50% { transform: rotate(18deg); opacity: 0.7; }
}

@keyframes ll-heart-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes ll-spark-burst {
  0%, 100% { transform: scale(0.5) rotate(0); opacity: 0.35; }
  45% { transform: scale(1.25) rotate(18deg); opacity: 1; }
}

@keyframes ll-blanket-breathe {
  0%, 100% { transform: translateY(0); opacity: 0.58; }
  50% { transform: translateY(-4px); opacity: 0.76; }
}

@keyframes ll-rain-fall {
  0% { transform: translateY(-22px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

@keyframes ll-check-pop {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  45% { transform: scale(1.18); opacity: 1; }
}

@keyframes ll-plus-wave {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(12deg); }
}

@keyframes ll-friend-peek {
  0%, 100% { transform: scale(0.24) translateX(18px); opacity: 0.45; }
  50% { transform: scale(0.24) translateX(0); opacity: 0.9; }
}

@keyframes ll-tag-wave {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-7deg); }
}

@media (max-width: 900px) {
  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .main-content {
    flex-direction: column;
    overflow: hidden;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode):not(.has-active-track) .player-section {
    display: none;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .chat-section {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .chat-container {
    min-height: 0;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-companion {
    display: grid;
    min-height: 0;
    margin: 10px 12px 0;
    padding: 12px;
    gap: 12px;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-scene-stage {
    min-height: 176px;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-scene-switcher {
    max-width: 100%;
    overflow-x: auto;
  }

  #app.little-little-enabled:not(.queue-mode):not(.schedule-mode):not(.settings-mode) .home-dialogue {
    margin-bottom: 10px;
  }

  .little-little-panel {
    width: 100%;
    min-height: 96px;
    margin-bottom: 12px;
    gap: 6px 8px;
  }

  .little-little-panel.ll-state-finding,
  .little-little-panel.ll-state-comfort,
  .little-little-panel.ll-state-rainy,
  .little-little-panel.ll-state-night {
    transform: translateY(4px);
  }

  .little-little-panel.ll-state-rainy {
    transform: translateY(6px);
  }

  .little-little-panel.ll-state-liked {
    position: fixed;
    left: var(--ll-liked-left, 24px);
    top: var(--ll-liked-top, 116px);
    z-index: 1250;
    width: 340px;
    max-width: calc(100vw - 32px);
    min-height: 96px;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.22));
  }

  .little-little-copy {
    max-width: min(260px, calc(100% - 104px));
  }

  .little-little-speech {
    padding: 8px 10px;
    font-size: 13px;
  }

  .little-little-stage {
    flex-basis: 96px;
    width: 96px;
    height: 88px;
  }

  .little-little-pet-slot {
    transform: scale(0.41);
  }

  .little-little-debug {
    max-height: 52px;
    overflow: auto;
  }

  .little-little-debug button {
    min-height: 22px;
    padding: 0 6px;
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  .little-little-panel {
    align-items: flex-end;
    min-height: 94px;
  }

  .little-little-stage {
    flex-basis: 88px;
    width: 88px;
    height: 82px;
  }

  .little-little-pet-slot {
    transform: scale(0.38);
  }

  .little-little-copy {
    max-width: calc(100% - 96px);
  }

  .little-little-speech {
    font-size: 12px;
    line-height: 1.32;
  }

  .friend-prop {
    right: 26px;
  }
}

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