:root {
    --bg-deep: #1B1C24;
    --bg-card: rgba(33, 35, 48, 0.85);
    --card-border: rgba(158, 184, 168, 0.28);
    --ui-panel-bg: rgba(22, 23, 34, 0.74);
    --ui-panel-border: rgba(184, 178, 204, 0.24);
    --ui-accent: #DFABB5;
    --ui-accent-soft: rgba(223, 171, 181, 0.28);
    --rose: #DFABB5;
    --rose-soft: #E8C5CC;
    --lavender-heart: #C8BFE7;
    --sage: #9EB8A8;
    --sage-dark: #6D8C7A;
    --sage-light: #C7DBD0;
    --cream: #F2ECE9;
    --periwinkle: #B8B2CC;
    --muted: #7C7D94;

    /* Botanical Pothos & Sanctuary Theme Variables */
    --vine-stem: #6D8C7A;
    --leaf-sage-fill: #9EB8A8;
    --leaf-sage-stroke: #6D8C7A;
    --leaf-sage-patch: #F2ECE9;
    --leaf-olive-fill: #6D8C7A;
    --leaf-olive-stroke: #536E5E;
    --leaf-olive-patch: #C7DBD0;
    --leaf-mint-fill: #C7DBD0;
    --leaf-mint-stroke: #6D8C7A;
    --leaf-mint-patch: #F2ECE9;
    --frame-dash: #9EB8A8;
}

html, body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: var(--bg-deep);
    color: var(--cream);
    font-family: 'Quicksand', 'SF Pro Rounded', ui-rounded, 'Nunito', 'Hiragino Maru Gothic ProN', 'Segoe UI Variable', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.7s ease;
}

#sanctuaryCard {
    background-color: var(--bg-card);
    border-color: var(--card-border);
    touch-action: manipulation;
    transition: background-color 0.7s ease, border-color 0.7s ease, box-shadow 0.7s ease;
}

/* Zero-Blur GPU Radial Ambient Glows, Theme Crossfade & Scene/Hearth Bounce Lighting */
.ambient-bg-glow {
    opacity: 0.9;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.ambient-bg-glow-top {
    top: 18%;
    left: 18%;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle at center, var(--glow-top, rgba(223, 171, 181, 0.16)) 0%, transparent 68%);
}
.ambient-bg-glow-bottom {
    bottom: 18%;
    right: 18%;
    width: 26rem;
    height: 26rem;
    background: radial-gradient(circle at center, var(--glow-bottom, rgba(158, 184, 168, 0.16)) 0%, transparent 68%);
}
.hearth-underglow {
    bottom: 0;
    width: 28rem;
    height: 10rem;
    background: radial-gradient(ellipse at 50% 95%, rgba(255, 168, 92, 0.34) 0%, rgba(232, 140, 118, 0.16) 44%, transparent 72%);
}
#pothosVinesParallax,
#innerFrameDashRect {
    transition: opacity 0.22s ease;
}
.pothos-vines-pending {
    opacity: 0 !important;
}
.theme-backdrop-plane {
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
#themeBackdropStack, #catStageSvg {
    will-change: transform;
}
.hearth-bounce-light {
    opacity: 0;
    transition: opacity 0.65s ease;
}
@keyframes hearthBounceFlicker {
    0%, 100% { opacity: 0.52; }
    24% { opacity: 0.78; }
    48% { opacity: 0.46; }
    72% { opacity: 0.84; }
    88% { opacity: 0.62; }
}
.hearth-bounce-light.hearth-bounce-active {
    opacity: 0.65;
    animation: hearthBounceFlicker 2.7s ease-in-out infinite;
}

/* Auxiliary Player Control Pills: Specular Translucent Glass (Outer Panel Handles Blur) */
.aux-player-pill {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 25, 36, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.17);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.aux-player-pill:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.32);
    color: var(--cream);
}
.aux-player-pill.active {
    border-color: var(--ui-accent, rgba(223, 171, 181, 0.75));
    color: var(--cream);
    box-shadow: 0 0 12px var(--ui-accent-soft, rgba(223, 171, 181, 0.3)), inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
}

/* Theme-Tinted Glass Panels & Harmonized Accents */
.sanctuary-glass-pill,
.sanctuary-player-card,
.control-deck-card,
.shortcuts-modal-card {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.08) 100%);
    background-color: var(--ui-panel-bg);
    border-color: var(--ui-panel-border);
    transition: background-color 0.65s ease, border-color 0.65s ease, box-shadow 0.45s ease;
}

#masterMuteBtn.is-muted {
    border-color: rgba(223, 171, 181, 0.85);
    color: #FFE4EA;
    background: linear-gradient(135deg, rgba(223, 171, 181, 0.28) 0%, rgba(223, 171, 181, 0.1) 100%), var(--ui-panel-bg);
    box-shadow: 0 0 12px rgba(223, 171, 181, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
}

/* Zen Mode Whisper Timer (Only visible in Zen Mode with active timer) */
.zen-whisper-timer {
    position: absolute;
    top: max(1.15rem, calc(env(safe-area-inset-top, 0px) + 0.75rem));
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    z-index: 35;
    pointer-events: none;
    opacity: 0;
    background: var(--ui-panel-bg);
    border: 1px solid var(--ui-panel-border);
    color: var(--cream);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    max-width: calc(100% - 3rem);
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.18);
    transition: opacity 0.85s ease, transform 0.85s ease, background-color 0.65s ease, border-color 0.65s ease;
}
body.zen-active .zen-whisper-timer.whisper-active {
    opacity: 0.62;
    transform: translateX(-50%) translateY(0px);
}

/* First-Visit Discovery Hint Whisper */
.first-visit-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 2px 4px 2px 10px;
    border-radius: 9999px;
    background: var(--ui-panel-bg);
    border: 1px solid var(--ui-panel-border);
    font-size: 10px;
    line-height: 1.2;
    color: var(--periwinkle);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.16);
}
.first-visit-hint.hidden {
    display: none !important;
}
.first-visit-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    line-height: 1;
    overflow: hidden;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--periwinkle);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.first-visit-close:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.12);
}

.vine-stem-path {
    stroke: var(--vine-stem);
    transition: stroke 0.7s ease;
}

/* Theme Switcher Pill Buttons - Specular Translucent Glass */
.theme-chip {
    font-size: 11.5px;
    letter-spacing: 0.025em;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    color: var(--periwinkle);
    opacity: 0.88;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(26, 28, 40, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.theme-chip:hover {
    opacity: 1;
    transform: translateY(-1px);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(38, 41, 56, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 1.5px rgba(255, 255, 255, 0.3);
}
.theme-chip.active {
    opacity: 1;
    background: linear-gradient(135deg, var(--ui-accent-soft, rgba(255, 255, 255, 0.24)) 0%, rgba(255, 255, 255, 0.08) 100%), var(--ui-panel-bg, rgba(45, 48, 65, 0.72));
    border-color: var(--ui-accent, rgba(255, 255, 255, 0.48));
    color: var(--cream);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 14px var(--ui-accent-soft, rgba(242, 236, 233, 0.24)), inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

/* Single-Row Scrollable Scene Rail */
.theme-rail-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.theme-chip-rail {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 0%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 4px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%);
}
.theme-chip-rail::-webkit-scrollbar {
    display: none;
}
.theme-chip-rail .theme-chip {
    flex-shrink: 0;
}
.theme-rail-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    color: var(--periwinkle);
    background: rgba(26, 28, 40, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.theme-rail-arrow:hover {
    color: var(--cream);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}
.theme-rail-arrow.rail-edge {
    opacity: 0.28;
    pointer-events: none;
}

/* Theme Backdrop Animations (Twinkling Stars, Sunbeams, Mist, Sakura Petals, Spores, New Scenes) */
@keyframes starTwinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 0.92; transform: scale(1.25); }
}
@keyframes starSparkle {
    0%, 100% { opacity: 0.22; transform: scale(0.72) rotate(0deg); }
    50% { opacity: 0.96; transform: scale(1.22) rotate(45deg); }
}
@keyframes sunMoteFloat {
    0% { transform: translate(0, 0); opacity: 0.25; }
    50% { transform: translate(var(--mx, 8px), var(--my, -16px)); opacity: 0.85; }
    100% { transform: translate(calc(var(--mx, 8px) * -0.5), calc(var(--my, -16px) * 1.8)); opacity: 0.2; }
}
@keyframes mistFloat {
    0%, 100% { transform: translateX(0px); opacity: 0.20; }
    50% { transform: translateX(14px); opacity: 0.38; }
}
@keyframes cloudDriftSlow {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(18px); }
}
@keyframes shootingStar {
    0% { transform: translate(-25px, -25px); opacity: 0; }
    8% { opacity: 0.95; }
    18% { transform: translate(65px, 65px); opacity: 0; }
    100% { transform: translate(65px, 65px); opacity: 0; }
}
@keyframes sporeGlowRise {
    0%, 100% { transform: translateY(0px) scale(0.9); opacity: 0.30; }
    50% { transform: translateY(-10px) scale(1.18); opacity: 0.85; }
}
@keyframes auroraWave {
    0%, 100% { transform: translateX(-10px) scaleY(0.96); opacity: 0.68; }
    50% { transform: translateX(12px) scaleY(1.06); opacity: 0.92; }
}
@keyframes fairyLightTwinkle {
    0%, 100% { opacity: 0.45; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes teaSteamRise {
    0% { transform: translate(0px, 4px) scale(0.85); opacity: 0; }
    25% { opacity: 0.62; }
    70% { transform: translate(4px, -14px) scale(1.06); opacity: 0.44; }
    100% { transform: translate(-2px, -26px) scale(1.18); opacity: 0; }
}
@keyframes lighthouseSweep {
    0%, 100% { transform: rotate(-9deg); opacity: 0.34; }
    50% { transform: rotate(9deg); opacity: 0.68; }
}
@keyframes oceanWaveDrift {
    0%, 100% { transform: translateX(-12px); }
    50% { transform: translateX(12px); }
}
@keyframes astrolabeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes auroraRayShimmer {
    0%, 100% { opacity: 0.18; transform: translateY(4px); }
    50% { opacity: 0.52; transform: translateY(-4px); }
}
@keyframes biolumPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.85; }
}
@keyframes candleFlickerSoft {
    0%, 100% { transform: scaleY(0.95) scaleX(1); opacity: 0.82; }
    35% { transform: scaleY(1.08) scaleX(0.96); opacity: 1; }
    70% { transform: scaleY(0.92) scaleX(1.03); opacity: 0.78; }
}
@keyframes lanternFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.84; }
    50% { transform: translateY(-2.5px); opacity: 0.98; }
}
@keyframes wingLanternSway {
    0%, 100% { transform: rotate(-3.2deg); }
    50% { transform: rotate(3.2deg); }
}
@keyframes wingBoatBob {
    0%, 100% { transform: translateY(0px) rotate(-1.2deg); }
    50% { transform: translateY(-3.5px) rotate(1.4deg); }
}
@keyframes wingBirdGlide {
    0% { transform: translate(0px, 0px); }
    100% { transform: translate(14px, -5px); }
}
@keyframes wingKoiGlide {
    0% { transform: translate(0px, 0px); }
    100% { transform: translate(18px, -4px); }
}
@keyframes wingVinylSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes wingOwlBlink {
    0%, 88%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(0.12); }
}
@keyframes wingCurtainSway {
    0%, 100% { transform: skewX(0deg); }
    50% { transform: skewX(1.6deg); }
}
.wing-curtain-sway {
    transform-box: fill-box;
    transform-origin: top center;
    animation: wingCurtainSway 8.5s ease-in-out infinite;
}
@keyframes wingFireFlicker {
    0%, 100% { transform: scale(1, 1); opacity: 0.86; }
    40% { transform: scale(1.06, 0.94); opacity: 1; }
    75% { transform: scale(0.95, 1.08); opacity: 0.82; }
}
.wing-fire-flicker {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: wingFireFlicker 2.2s ease-in-out infinite;
}

.star-sparkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: starSparkle 4.2s ease-in-out infinite;
}
.star-sparkle-alt {
    transform-box: fill-box;
    transform-origin: center;
    animation: starSparkle 5.4s ease-in-out 1.5s infinite;
}
.star-dot {
    transform-box: fill-box;
    transform-origin: center;
}
.sun-mote {
    animation: sunMoteFloat 5.5s ease-in-out infinite alternate;
}
.spore-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: sporeGlowRise 4.6s ease-in-out infinite alternate;
}
.aurora-ribbon {
    transform-box: fill-box;
    transform-origin: center;
    animation: auroraWave 11s ease-in-out infinite;
}
.aurora-ribbon-alt {
    transform-box: fill-box;
    transform-origin: center;
    animation: auroraWave 14s ease-in-out 2.4s infinite reverse;
}
.fairy-light-glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: fairyLightTwinkle 3.6s ease-in-out infinite;
}
.tea-steam-wisp {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: teaSteamRise 5.2s ease-in-out infinite;
}
.lighthouse-beam {
    transform-box: fill-box;
    transform-origin: left center;
    animation: lighthouseSweep 9.5s ease-in-out infinite;
}
.ocean-wave-drift {
    animation: oceanWaveDrift 8.5s ease-in-out infinite;
}
.ocean-wave-drift-alt {
    animation: oceanWaveDrift 11s ease-in-out 1.8s infinite reverse;
}
.astrolabe-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: astrolabeSpin 65s linear infinite;
}
.astrolabe-spin-rev {
    transform-box: fill-box;
    transform-origin: center;
    animation: astrolabeSpin 92s linear infinite reverse;
}
.aurora-ray-shimmer {
    animation: auroraRayShimmer 7.5s ease-in-out infinite;
}
.biolum-pulse {
    animation: biolumPulse 4.8s ease-in-out infinite;
}
.candle-flicker-soft {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: candleFlickerSoft 2.6s ease-in-out infinite;
}
.lantern-float {
    animation: lanternFloat 5.6s ease-in-out infinite;
}
.wing-lantern-sway {
    transform-box: fill-box;
    transform-origin: top center;
    animation: wingLanternSway 5.4s ease-in-out infinite;
}
.wing-boat-bob {
    transform-box: fill-box;
    transform-origin: center;
    animation: wingBoatBob 6.2s ease-in-out infinite;
}
.wing-bird-glide {
    animation: wingBirdGlide 13s ease-in-out infinite alternate;
}
.wing-koi-glide {
    animation: wingKoiGlide 12s ease-in-out infinite alternate;
}
.wing-vinyl-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: wingVinylSpin 6.5s linear infinite;
}
.wing-owl-blink {
    transform-box: fill-box;
    transform-origin: center;
    animation: wingOwlBlink 7.5s ease-in-out infinite;
}

/* Pothos Vine Gentle Breeze Animations */
@keyframes swaySlow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.2deg); }
}
@keyframes swayReverse {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2.5deg); }
}
@keyframes leafFlutter {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3.5deg) scale(1.02); }
}
.vine-sway-1 {
    transform-origin: top left;
    animation: swaySlow 7s ease-in-out infinite;
}
.vine-sway-2 {
    transform-origin: top right;
    animation: swayReverse 8.5s ease-in-out infinite;
}
.vine-sway-3 {
    transform-origin: bottom left;
    animation: swayReverse 7.5s ease-in-out infinite;
}
.vine-sway-4 {
    transform-origin: bottom right;
    animation: swaySlow 9s ease-in-out infinite;
}
.leaf-flutter {
    transform-box: fill-box;
    transform-origin: 50% 0%;
    animation: leafFlutter 5s ease-in-out infinite;
}
@keyframes vineSubSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(1.35deg); }
}
.vine-leaves-b {
    transform-origin: 0px 0px;
    animation: vineSubSway 6.2s ease-in-out infinite;
}

/* Cat Breathing & Grooming Animations */
@keyframes breathe {
    0%, 100% { transform: scaleY(1) scaleX(1) translateY(0px); }
    50% { transform: scaleY(1.035) scaleX(1.015) translateY(-3px); }
}
@keyframes earDoubleTwitchL {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-14deg) scaleY(0.95); }
    40% { transform: rotate(2deg); }
    65% { transform: rotate(-11deg) scaleY(0.96); }
    85% { transform: rotate(0deg); }
}
@keyframes earDoubleTwitchR {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(14deg) scaleY(0.95); }
    40% { transform: rotate(-2deg); }
    65% { transform: rotate(11deg) scaleY(0.96); }
    85% { transform: rotate(0deg); }
}
@keyframes tailSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(8deg); }
}
@keyframes petNuzzleWiggle {
    0%, 100% { transform: translateX(0px) rotate(0deg) scale(1.01, 0.99); }
    25% { transform: translateX(-3.5px) rotate(-1.5deg) scale(1.025, 0.98); }
    75% { transform: translateX(3.5px) rotate(1.5deg) scale(1.025, 0.98); }
}
@keyframes bodyStretchArc {
    0%, 100% { transform: scaleX(1) scaleY(1) translateY(0px); }
    25%, 75% { transform: scaleX(1.06) scaleY(0.94) translateY(4px); }
    50% { transform: scaleX(1.08) scaleY(0.92) translateY(6px); }
}
@keyframes stretchPawsForward {
    0%, 100% { transform: translateY(0px) scaleY(1); }
    30%, 75% { transform: translateY(11px) scaleY(1.22) scaleX(0.96); }
}
@keyframes yawnMouthOpen {
    0%, 100% { transform: scale(0.2); opacity: 0; }
    22%, 78% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12, 1.18); opacity: 1; }
}
@keyframes groomPawLoop {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    35% { transform: translate(-8px, -22px) rotate(-18deg); }
    65% { transform: translate(-3px, -12px) rotate(-6deg); }
}
@keyframes headBobGroom {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    35% { transform: rotate(4deg) translateY(3px); }
    65% { transform: rotate(-2deg) translateY(1px); }
}
@keyframes tongueLick {
    0%, 20%, 80%, 100% { transform: scaleY(0.2); opacity: 0; }
    40%, 60% { transform: scaleY(1.1) translateY(-2px); opacity: 1; }
}
@keyframes floatZzz {
    0% { transform: translate(0px, 0px) scale(0.7); opacity: 0; }
    25% { opacity: 0.85; }
    80% { opacity: 0.65; }
    100% { transform: translate(22px, -48px) scale(1.15); opacity: 0; }
}
@keyframes floatHeart {
    0% { transform: translateY(0px) scale(0.5); opacity: 0; }
    30% { transform: translateY(-15px) scale(1.1); opacity: 1; }
    100% { transform: translateY(-42px) scale(0.9); opacity: 0; }
}
@keyframes floatDynamicHeart {
    0% { transform: translate(0px, 0px) scale(0.4) rotate(0deg); opacity: 0; }
    20% { opacity: 0.95; transform: translate(var(--hx1, -6px), -14px) scale(1.05) rotate(-8deg); }
    65% { opacity: 0.8; transform: translate(var(--hx2, 8px), -36px) scale(1) rotate(8deg); }
    100% { opacity: 0; transform: translate(var(--hx3, -4px), -58px) scale(0.75) rotate(-4deg); }
}
@keyframes starPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.05); opacity: 1; }
}

.cat-breathe {
    transform-origin: 200px 210px;
    animation: breathe 4.2s ease-in-out infinite;
}
.cat-nuzzle {
    transform-origin: 200px 215px;
    animation: petNuzzleWiggle 0.9s ease-in-out infinite !important;
}
.cat-stretch-body {
    transform-origin: 200px 220px;
    animation: bodyStretchArc 4.4s ease-in-out infinite !important;
}
.cat-ear-l {
    transform-origin: 135px 115px;
}
.cat-ear-r {
    transform-origin: 261px 115px;
}
.ear-twitch-active-l {
    animation: earDoubleTwitchL 0.65s ease-in-out 1;
}
.ear-twitch-active-r {
    animation: earDoubleTwitchR 0.65s ease-in-out 1;
}
.cat-tail {
    transform-origin: 280px 205px;
    animation: tailSway 5.5s ease-in-out infinite;
}
.grooming-head {
    transform-origin: 198px 160px;
    animation: headBobGroom 1.25s ease-in-out infinite;
}
.grooming-paw {
    transform-origin: 162px 212px;
    animation: groomPawLoop 1.25s ease-in-out infinite;
}
.stretching-paws {
    transform-origin: 196px 220px;
    animation: stretchPawsForward 4.4s ease-in-out infinite;
}
@keyframes kneadPawLeft {
    0%, 100% { transform: translateY(-2px) scale(0.97, 1.03) rotate(-3deg); }
    50% { transform: translateY(6.5px) scale(1.06, 0.92) rotate(3deg); }
}
@keyframes kneadPawRight {
    0%, 100% { transform: translateY(6.5px) scale(1.06, 0.92) rotate(-3deg); }
    50% { transform: translateY(-2px) scale(0.97, 1.03) rotate(3deg); }
}
@keyframes kneadDimpleL {
    0%, 100% { opacity: 0.12; transform: scaleX(0.85); }
    50% { opacity: 0.78; transform: scaleX(1.12); }
}
@keyframes kneadDimpleR {
    0%, 100% { opacity: 0.78; transform: scaleX(1.12); }
    50% { opacity: 0.12; transform: scaleX(0.85); }
}
.kneading-paw-l {
    transform-origin: 156px 220px;
    animation: kneadPawLeft 1.1s ease-in-out infinite;
}
.kneading-paw-r {
    transform-origin: 236px 220px;
    animation: kneadPawRight 1.1s ease-in-out infinite;
}
.kneading-dimple-l {
    transform-origin: 156px 232px;
    animation: kneadDimpleL 1.1s ease-in-out infinite;
}
.kneading-dimple-r {
    transform-origin: 236px 232px;
    animation: kneadDimpleR 1.1s ease-in-out infinite;
}
/* Cozy Brushy Strokes Animation (Wooden Brush + Blissful Head Lean + Fur Sparkles) */
@keyframes catBrushyLean {
    0%, 100% { transform: translate(0px, 0px) scale(1, 1) rotate(0deg); }
    30% { transform: translate(-2.5px, 1.8px) scale(1.03, 0.96) rotate(-1.6deg); }
    62% { transform: translate(2px, 1.2px) scale(1.02, 0.97) rotate(1.2deg); }
}
@keyframes brushyHeadMelt {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    28% { transform: translate(-4px, 3px) rotate(-5.5deg); }
    62% { transform: translate(2.5px, 2px) rotate(3.2deg); }
}
@keyframes brushyStrokeGlide {
    0% { opacity: 0; transform: translate(62px, -38px) rotate(22deg) scale(0.92); }
    10% { opacity: 1; transform: translate(34px, -6px) rotate(14deg) scale(1); }
    22% { opacity: 1; transform: translate(-38px, 6px) rotate(-10deg) scale(1); }
    34% { opacity: 1; transform: translate(32px, -5px) rotate(14deg) scale(1); }
    46% { opacity: 1; transform: translate(-40px, 7px) rotate(-11deg) scale(1); }
    58% { opacity: 1; transform: translate(30px, -4px) rotate(13deg) scale(1); }
    70% { opacity: 1; transform: translate(-36px, 5px) rotate(-10deg) scale(1); }
    82% { opacity: 1; transform: translate(26px, -6px) rotate(12deg) scale(1); }
    92% { opacity: 0.85; transform: translate(48px, -24px) rotate(18deg) scale(0.96); }
    100% { opacity: 0; transform: translate(74px, -46px) rotate(24deg) scale(0.88); }
}
@keyframes brushyFurSparkle {
    0% { opacity: 0; transform: translateY(4px) scale(0.4) rotate(0deg); }
    30% { opacity: 0.95; transform: translateY(-6px) scale(1.08) rotate(18deg); }
    100% { opacity: 0; transform: translateY(-24px) scale(0.7) rotate(45deg); }
}
.cat-brushy-lean {
    transform-origin: 198px 220px;
    animation: catBrushyLean 1.2s ease-in-out infinite !important;
}
.brushy-head-melt {
    transform-origin: 198px 162px;
    animation: brushyHeadMelt 1.2s ease-in-out infinite;
}
.brushy-stroke-arm {
    transform-origin: 0px 0px;
    animation: brushyStrokeGlide 4.8s ease-in-out forwards;
}
.brushy-sparkle-pop {
    animation: brushyFurSparkle 1.3s ease-out forwards;
}
/* Glowing Butterfly Boop Animation (Flight Arc + Fluttering Wings + Cross-Eyed Gaze + Boop Nod) */
@keyframes butterflyFlightArc {
    0% { opacity: 0; transform: translate(-115px, -82px) rotate(-14deg) scale(0.76); }
    8% { opacity: 1; transform: translate(-64px, -42px) rotate(8deg) scale(0.95); }
    20% { opacity: 1; transform: translate(-14px, -16px) rotate(-5deg) scale(1.0); }
    26% { opacity: 1; transform: translate(0px, -4px) rotate(3deg) scale(1.0); }
    42% { opacity: 1; transform: translate(1px, -2px) rotate(-2.5deg) scale(1.0); }
    56% { opacity: 1; transform: translate(0px, -4px) rotate(2deg) scale(1.02); }
    63% { opacity: 1; transform: translate(-2px, -19px) rotate(-8deg) scale(1.05); }
    76% { opacity: 1; transform: translate(42px, -44px) rotate(12deg) scale(0.98); }
    89% { opacity: 0.9; transform: translate(90px, -74px) rotate(18deg) scale(0.88); }
    100% { opacity: 0; transform: translate(128px, -98px) rotate(24deg) scale(0.70); }
}
@keyframes butterflyWingFlapL {
    0% { transform: scaleX(1) scaleY(1) rotate(0deg); }
    100% { transform: scaleX(0.32) scaleY(1.04) rotate(8deg); }
}
@keyframes butterflyWingFlapR {
    0% { transform: scaleX(1) scaleY(1) rotate(0deg); }
    100% { transform: scaleX(0.32) scaleY(1.04) rotate(-8deg); }
}
@keyframes butterflyBoopHead {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    24% { transform: translate(-2px, -2px) rotate(-3.5deg); }
    45% { transform: translate(1px, -1px) rotate(2.5deg); }
    58% { transform: translate(0px, 3.5px) rotate(0deg); }
    72% { transform: translate(2px, -2px) rotate(3deg); }
}
@keyframes butterflyDustDrift {
    0% { opacity: 0; transform: translateY(0px) scale(0.4); }
    30% { opacity: 0.9; transform: translateY(-6px) scale(1.05); }
    100% { opacity: 0; transform: translateY(-20px) scale(0.5); }
}
.butterfly-flight-arc {
    transform-origin: 0px 0px;
    animation: butterflyFlightArc 5.1s cubic-bezier(0.37, 0, 0.63, 1) forwards;
}
.butterfly-wing-l {
    transform-origin: 0px 0px;
    animation: butterflyWingFlapL 0.24s ease-in-out infinite alternate;
}
.butterfly-wing-r {
    transform-origin: 0px 0px;
    animation: butterflyWingFlapR 0.24s ease-in-out infinite alternate;
}
.butterfly-nose-boop-head {
    transform-origin: 198px 168px;
    animation: butterflyBoopHead 5.1s ease-in-out forwards;
}
.butterfly-shimmer-dot {
    animation: butterflyDustDrift 1.6s ease-out forwards;
}
#bobaEyeLeft, #bobaEyeRight {
    transition: transform 0.35s ease;
}
.butterfly-eye-cross-l {
    transform: translate(3.5px, 3px);
}
.butterfly-eye-cross-r {
    transform: translate(-3.5px, 3px);
}
/* Cozy Knit Blanket Drape & Snuggle Purrito Animations */
@keyframes blanketDrapeIn {
    0% { opacity: 0; transform: translateY(-22px) scaleX(0.86) scaleY(0.76); }
    65% { opacity: 1; transform: translateY(3px) scaleX(1.02) scaleY(1.02); }
    100% { opacity: 1; transform: translateY(0px) scaleX(1) scaleY(1); }
}
@keyframes blanketUntuckOut {
    0% { opacity: 1; transform: translateY(0px) scale(1); }
    100% { opacity: 0; transform: translateY(-16px) scale(0.92); }
}
@keyframes blanketSnuggleWobble {
    0%, 100% { transform: scale(1, 1) rotate(0deg); }
    28% { transform: scale(1.025, 0.975) rotate(-1.8deg); }
    62% { transform: scale(1.025, 0.975) rotate(1.8deg); }
}
@keyframes blanketSparkleFloat {
    0%, 100% { opacity: 0.25; transform: translateY(2px) scale(0.85); }
    50% { opacity: 0.92; transform: translateY(-4px) scale(1.12); }
}
.blanket-drape-in {
    transform-origin: 198px 232px;
    animation: blanketDrapeIn 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.blanket-untuck-out {
    transform-origin: 198px 232px;
    animation: blanketUntuckOut 0.38s ease-in forwards;
}
.blanket-tuck-snuggle {
    transform-origin: 198px 220px;
    animation: blanketSnuggleWobble 2.6s ease-in-out 1 !important;
}
.blanket-sparkle {
    transform-origin: center;
    animation: blanketSparkleFloat 3.4s ease-in-out infinite;
}
.blanket-sparkle-1 { animation-delay: 0s; }
.blanket-sparkle-2 { animation-delay: 1.1s; }
.blanket-sparkle-3 { animation-delay: 2.2s; }
/* Guided Breathing Aura: Expands during Inhale, Contracts during Exhale */
@keyframes breathingAuraCycle {
    0% { transform: scale(0.86); opacity: 0.35; }
    50% { transform: scale(1.15); opacity: 0.90; }
    100% { transform: scale(0.86); opacity: 0.35; }
}
.breathing-aura {
    transform-origin: 198px 180px;
    will-change: transform, opacity;
}
.breathing-aura-active {
    animation: breathingAuraCycle 4.2s ease-in-out infinite;
}
/* Box Breathing (4-4-4-4 = 16s) & Sleep Calm Breathing (4-7-8 = 19s) */
@keyframes breathingAuraBox {
    0% { transform: scale(0.86); opacity: 0.35; }
    25% { transform: scale(1.15); opacity: 0.90; }
    50% { transform: scale(1.15); opacity: 0.84; }
    75% { transform: scale(0.86); opacity: 0.38; }
    100% { transform: scale(0.86); opacity: 0.35; }
}
@keyframes breathingAuraCalm {
    0% { transform: scale(0.86); opacity: 0.35; }
    21.05% { transform: scale(1.15); opacity: 0.90; }
    57.89% { transform: scale(1.15); opacity: 0.84; }
    100% { transform: scale(0.86); opacity: 0.35; }
}
.breathing-aura-active.breathing-aura-box {
    animation: breathingAuraBox 16s ease-in-out infinite;
}
.breathing-aura-active.breathing-aura-calm {
    animation: breathingAuraCalm 19s ease-in-out infinite;
}
/* Daily Ritual Stats & Streak Popover + Header Stacking */
header.sanctuary-header {
    position: relative;
    z-index: 40;
}
.ritual-stats-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 276px;
    max-width: calc(100vw - 2.25rem);
    z-index: 45;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%), var(--ui-panel-bg, rgba(22, 23, 32, 0.92));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--ui-panel-border, rgba(255, 255, 255, 0.22));
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1.5px rgba(255, 255, 255, 0.22);
}
/* Session Focus Micro-Tasks inside Ritual Stats Popover */
.micro-tasks-section {
    text-align: left;
}
.micro-task-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.micro-task-check {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    border-radius: 9999px;
    border: 1.5px solid rgba(158, 184, 168, 0.55);
    background: rgba(255, 255, 255, 0.04);
    color: transparent;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.micro-task-check.is-done {
    background: rgba(158, 184, 168, 0.34);
    border-color: #9EB8A8;
    color: #F2ECE9;
}
.micro-task-text {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    font-weight: 600;
    color: #E8E2EA;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.micro-task-text.is-done {
    text-decoration: line-through;
    color: rgba(184, 178, 204, 0.52);
}
.micro-task-del {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    border-radius: 9999px;
    border: 0;
    background: transparent;
    color: rgba(184, 178, 204, 0.65);
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.micro-task-del:hover {
    color: #DFABB5;
    background: rgba(223, 171, 181, 0.12);
}
.micro-task-input {
    background: rgba(14, 15, 24, 0.65);
    border: 1px solid rgba(184, 178, 204, 0.24);
    outline: none;
    min-height: 26px;
}
.micro-task-input:focus {
    border-color: rgba(158, 184, 168, 0.72);
}
.micro-task-add-btn {
    min-height: 26px;
    min-width: 28px;
}
.ritual-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 6px 4px;
}
.ritual-stat-value {
    font-size: 13px;
    line-height: 1.25;
}
.ritual-stat-footer {
    line-height: 1.35;
}
.settings-prefs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
    font-size: 10.5px;
}
@media (min-width: 420px) {
    .settings-prefs-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.32rem;
        font-size: 10px;
    }
    .settings-prefs-grid .wardrobe-chip {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
body.graphics-eco .ritual-stats-popover {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(24, 25, 34, 0.96);
}
.track-progress-bar {
    height: 5px;
    border-radius: 9999px;
    background: rgba(184, 178, 204, 0.20);
    cursor: pointer;
    position: relative;
    touch-action: none;
    transition: height 0.15s ease, background-color 0.2s ease;
}
.track-progress-bar:hover, .track-progress-bar.is-scrubbing {
    height: 6.5px;
    background: rgba(184, 178, 204, 0.34);
}
.track-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #9EB8A8 0%, #DFABB5 100%);
    position: relative;
    transition: width 0.15s linear, box-shadow 0.35s ease;
}
body.is-audio-playing:not(.is-master-muted) .track-progress-fill {
    box-shadow: 0 0 10px rgba(223, 171, 181, 0.44);
}
.track-progress-bar.is-scrubbing .track-progress-fill {
    transition: none;
}
.track-progress-thumb {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0.75);
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #FAF6F4;
    border: 2px solid #DFABB5;
    box-shadow: 0 0 8px rgba(223, 171, 181, 0.75);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}
.track-progress-bar:hover .track-progress-thumb,
.track-progress-bar.is-scrubbing .track-progress-thumb {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.yawning-mouth {
    transform-origin: 196px 176px;
    animation: yawnMouthOpen 4.4s ease-in-out infinite;
}
.grooming-tongue {
    transform-origin: 200px 175px;
    animation: tongueLick 1.25s ease-in-out infinite;
}
.zzz-1, .zzz-2, .zzz-3, #heartContainer path {
    transform-box: fill-box;
    transform-origin: center;
}
.zzz-1 { animation: floatZzz 4.2s ease-out infinite; }
.zzz-2 { animation: floatZzz 4.2s ease-out 1.4s infinite; }
.zzz-3 { animation: floatZzz 4.2s ease-out 2.8s infinite; }

/* Accessible Keyboard Focus Indicator (Suppressed on pointer click via :focus-visible) */
button:focus-visible,
[role="slider"]:focus-visible,
[role="tab"]:focus-visible,
input[type="range"].pastel-slider:focus-visible,
input[type="text"]:focus-visible {
    outline: 2px solid #DFABB5 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(223, 171, 181, 0.28);
}

/* Custom Welcoming Petting Cursor over Kitty */
.pettable-zone {
    cursor: grab;
    touch-action: none;
}
.pettable-zone:active, .pettable-zone.is-petting {
    cursor: grabbing;
}

.star-playing {
    animation: starPulse 2.6s ease-in-out infinite;
}

/* Custom Pastel Range Sliders (Gradient-Filled Track + Glowing Thumb) */
.volume-val-readout {
    font-variant-numeric: tabular-nums;
}
input[type="range"].pastel-slider {
    -webkit-appearance: none;
    appearance: none;
    --slider-fill-start: rgba(223, 171, 181, 0.52);
    --slider-fill-end: #F4C2CC;
    --slider-glow: rgba(223, 171, 181, 0.34);
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--slider-fill-start) 0%, var(--slider-fill-end) var(--slider-pct, 65%), rgba(184, 178, 204, 0.18) var(--slider-pct, 65%));
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}
input[type="range"].pastel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rose);
    border: 2px solid var(--cream);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 8px var(--slider-glow);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.18s ease;
}
input[type="range"].pastel-slider::-webkit-slider-thumb:hover,
input[type="range"].pastel-slider:active::-webkit-slider-thumb {
    transform: scale(1.18);
    background: var(--cream);
    box-shadow: 0 0 0 4px var(--slider-glow), 0 2px 8px rgba(0, 0, 0, 0.38);
}
input[type="range"].pastel-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rose);
    border: 2px solid var(--cream);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 8px var(--slider-glow);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.18s ease;
}
input[type="range"].pastel-slider::-moz-range-thumb:hover,
input[type="range"].pastel-slider:active::-moz-range-thumb {
    transform: scale(1.18);
    box-shadow: 0 0 0 4px var(--slider-glow), 0 2px 8px rgba(0, 0, 0, 0.38);
}
input[type="range"].pastel-slider.sage-thumb {
    --slider-fill-start: rgba(158, 184, 168, 0.52);
    --slider-fill-end: #BDD8C8;
    --slider-glow: rgba(158, 184, 168, 0.34);
}
input[type="range"].pastel-slider.sage-thumb::-webkit-slider-thumb {
    background: var(--sage);
}
input[type="range"].pastel-slider.sage-thumb::-moz-range-thumb {
    background: var(--sage);
}
input[type="range"].pastel-slider.lavender-thumb {
    --slider-fill-start: rgba(200, 191, 231, 0.52);
    --slider-fill-end: #DFD8F7;
    --slider-glow: rgba(200, 191, 231, 0.36);
}
input[type="range"].pastel-slider.lavender-thumb::-webkit-slider-thumb {
    background: var(--lavender-heart);
}
input[type="range"].pastel-slider.lavender-thumb::-moz-range-thumb {
    background: var(--lavender-heart);
}

/* Nature Ambience Pill Toggles - Specular Translucent Glass */
.nature-pill {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(26, 28, 40, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.nature-pill:hover {
    transform: translateY(-1.5px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
    color: var(--cream);
}
.nature-pill:active {
    transform: translateY(0px) scale(0.95);
}
.nature-pill.active-rain {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.35) 0%, rgba(158, 184, 168, 0.15) 100%), rgba(25, 38, 32, 0.6);
    border-color: rgba(158, 184, 168, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(158, 184, 168, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-night {
    background: linear-gradient(135deg, rgba(200, 191, 231, 0.35) 0%, rgba(200, 191, 231, 0.15) 100%), rgba(32, 28, 48, 0.6);
    border-color: rgba(200, 191, 231, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(200, 191, 231, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-fire {
    background: linear-gradient(135deg, rgba(223, 171, 181, 0.35) 0%, rgba(223, 171, 181, 0.15) 100%), rgba(45, 26, 32, 0.6);
    border-color: rgba(223, 171, 181, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(223, 171, 181, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-snow {
    background: linear-gradient(135deg, rgba(195, 222, 238, 0.35) 0%, rgba(195, 222, 238, 0.15) 100%), rgba(26, 38, 48, 0.6);
    border-color: rgba(195, 222, 238, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(195, 222, 238, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-autumn {
    background: linear-gradient(135deg, rgba(235, 175, 110, 0.35) 0%, rgba(235, 175, 110, 0.15) 100%), rgba(45, 32, 20, 0.6);
    border-color: rgba(235, 175, 110, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(235, 175, 110, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-ocean {
    background: linear-gradient(135deg, rgba(126, 214, 204, 0.35) 0%, rgba(126, 214, 204, 0.14) 100%), rgba(18, 36, 42, 0.62);
    border-color: rgba(126, 214, 204, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(126, 214, 204, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}
.nature-pill.active-brown {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.35) 0%, rgba(212, 165, 116, 0.14) 100%), rgba(42, 30, 24, 0.64);
    border-color: rgba(212, 165, 116, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(212, 165, 116, 0.30), inset 0 1px 1.5px rgba(255, 255, 255, 0.38);
}
.nature-pill.active-cafe {
    background: linear-gradient(135deg, rgba(226, 178, 162, 0.35) 0%, rgba(226, 178, 162, 0.14) 100%), rgba(48, 28, 30, 0.64);
    border-color: rgba(226, 178, 162, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(226, 178, 162, 0.30), inset 0 1px 1.5px rgba(255, 255, 255, 0.38);
}
.nature-pill.active-chimes {
    background: linear-gradient(135deg, rgba(190, 186, 245, 0.35) 0%, rgba(245, 226, 178, 0.14) 100%), rgba(30, 28, 52, 0.64);
    border-color: rgba(210, 204, 250, 0.85);
    color: #F2ECE9;
    box-shadow: 0 0 14px rgba(196, 190, 248, 0.34), inset 0 1px 1.5px rgba(255, 255, 255, 0.40);
}

/* Phase 1: Per-Layer Soundscape Balance, Local Tracks Queue & Custom Mixes */
.bond-bar-track {
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}
.bond-bar-fill {
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.bond-bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: bondBarShimmer 3.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bondBarShimmer {
    0%, 55% { transform: translateX(-100%); }
    100% { transform: translateX(120%); }
}
.bond-bar-fill.is-soulmate-max {
    background: linear-gradient(90deg, #F8D87C 0%, #FFEBC4 50%, #E2D4FA 100%) !important;
    box-shadow: 0 0 8px rgba(248, 216, 124, 0.52);
}
.soundscape-audio-toolbar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.35rem;
}
.cozy-slow-btn {
    min-height: 26px;
}
.cozy-slow-btn.active {
    background: linear-gradient(135deg, rgba(242, 188, 134, 0.34) 0%, rgba(223, 171, 181, 0.20) 100%), rgba(38, 28, 30, 0.68);
    border-color: rgba(245, 206, 152, 0.85);
    color: #FFF7EB;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(242, 188, 134, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.nature-mix-controls:not(.hidden) {
    display: flex;
}
/* Clickable Shooting-Star Wish in Night Scenes */
@keyframes shootingStarWishFlight {
    0% { transform: translate(-24px, -16px) scale(0.75); opacity: 0; }
    14% { opacity: 1; }
    80% { opacity: 0.95; }
    100% { transform: translate(195px, 68px) scale(1); opacity: 0; }
}
.shooting-star-wish-btn {
    position: absolute;
    top: 8px;
    left: 28px;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: shootingStarWishFlight 5.2s cubic-bezier(0.25, 0.65, 0.45, 1) forwards;
}
.shooting-star-wish-btn.hidden {
    display: none;
}
.shooting-star-tail {
    width: 34px;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(255, 244, 198, 0) 0%, rgba(255, 240, 178, 0.85) 100%);
    transform: rotate(19deg);
    transform-origin: right center;
}
.shooting-star-head {
    color: #FFF6CC;
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 232, 163, 0.9);
}
/* Cozy PWA Update Toast */
.pwa-update-toast {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 65;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    padding: 6px 10px 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #F2ECE9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.92);
    border: 1px solid rgba(158, 184, 168, 0.48);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.pwa-update-toast.hidden {
    display: none;
}
.pwa-toast-btn {
    border: 1px solid rgba(158, 184, 168, 0.65);
    background: rgba(158, 184, 168, 0.28);
    color: #FFFFFF;
    min-height: 24px;
    cursor: pointer;
}
.nature-layer-sliders {
    flex-shrink: 0;
    overflow: visible;
}
.nature-mix-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 22px;
    flex-shrink: 0;
    font-size: 9.5px;
    color: #B8B2CC;
}
.nature-mix-label {
    width: 5.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: #E2DCDA;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nature-mix-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(200, 191, 231, 0.52) 0%, #DFD8F7 var(--slider-pct, 100%), rgba(255, 255, 255, 0.14) var(--slider-pct, 100%));
    box-shadow: inset 0 1px 1.5px rgba(0, 0, 0, 0.30);
    outline: none;
    cursor: pointer;
}
.nature-mix-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #C8BFE7;
    border: 1.5px solid #FAF6F4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 6px rgba(200, 191, 231, 0.34);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.nature-mix-slider::-webkit-slider-thumb:hover,
.nature-mix-slider:active::-webkit-slider-thumb {
    transform: scale(1.18);
    box-shadow: 0 0 0 3px rgba(200, 191, 231, 0.32), 0 1px 5px rgba(0, 0, 0, 0.38);
}
.nature-mix-slider::-moz-range-thumb {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #C8BFE7;
    border: 1.5px solid #FAF6F4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 6px rgba(200, 191, 231, 0.34);
    cursor: pointer;
}
.nature-mix-val {
    width: 2.1rem;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #B8B2CC;
    flex-shrink: 0;
}
.local-tracks-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    max-height: 54px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.35rem;
    scrollbar-width: none;
}
.local-tracks-strip::-webkit-scrollbar {
    display: none;
}
.local-track-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    max-width: 100%;
    min-width: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0 0.25rem 0 0.45rem;
}
.local-track-chip.active {
    background: rgba(223, 171, 181, 0.22);
    border-color: rgba(223, 171, 181, 0.72);
    color: #FAF6F4;
}
.local-track-play-btn {
    min-width: 0;
    max-width: 120px;
    min-height: 22px;
    font-size: 9.5px;
    font-weight: 600;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.local-track-del-btn {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 9999px;
    font-size: 10px;
    color: #B8B2CC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.local-track-del-btn:hover {
    color: #FAF6F4;
    background: rgba(223, 171, 181, 0.28);
}
.sanctuary-player-card.is-drop-target {
    border-color: rgba(158, 184, 168, 0.9) !important;
    box-shadow: 0 0 22px rgba(158, 184, 168, 0.38), inset 0 1px 1.5px rgba(255, 255, 255, 0.35) !important;
}
.mood-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}
.custom-mix-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
}
@media (min-width: 420px) {
    .mood-presets-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.custom-mix-slot {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.15rem;
}
.custom-mix-apply-btn {
    flex: 1;
    min-width: 0;
}
.custom-mix-clear-btn {
    width: 20px;
    height: 26px;
    min-width: 20px;
    min-height: 26px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #B8B2CC;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.custom-mix-clear-btn:hover {
    color: #FAF6F4;
    border-color: rgba(223, 171, 181, 0.65);
}

/* Atmospheric Pothos Leaf Dewdrop Splash & Hearth Animations */
@keyframes raindropSplash {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0.95; }
    55% { opacity: 0.75; }
    100% { transform: translate(var(--spx, 6px), var(--spy, -12px)) scale(0.2); opacity: 0; }
}
@keyframes dewRippleExpand {
    0% { transform: scale(0.3); opacity: 0.95; }
    100% { transform: scale(2.8); opacity: 0; }
}

@keyframes hearthFlameFlicker {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scaleX(1) scaleY(1); }
    18% { opacity: 0.92; transform: translateX(-50%) scaleX(1.05) scaleY(1.07); }
    35% { opacity: 0.58; transform: translateX(-50%) scaleX(0.97) scaleY(0.96); }
    52% { opacity: 0.95; transform: translateX(-50%) scaleX(1.07) scaleY(1.10); }
    72% { opacity: 0.70; transform: translateX(-50%) scaleX(1.02) scaleY(1.03); }
    88% { opacity: 0.85; transform: translateX(-50%) scaleX(1.04) scaleY(1.06); }
}
.hearth-glow-active {
    animation: hearthFlameFlicker 2.8s ease-in-out infinite;
}

/* Centered Fireplace Animated Dancing Flame Layers (Anchored Stationarily) */
@keyframes hearthFlameOuter {
    0% { transform: scaleX(1) scaleY(1) skewX(0deg); }
    35% { transform: scaleX(1.05) scaleY(1.06) skewX(-1.2deg); }
    70% { transform: scaleX(0.95) scaleY(0.94) skewX(1.2deg); }
    100% { transform: scaleX(1.03) scaleY(1.08) skewX(-0.8deg); }
}
@keyframes hearthFlameMid {
    0% { transform: scaleX(1) scaleY(1) skewX(0deg); }
    40% { transform: scaleX(0.94) scaleY(1.06) skewX(1deg); }
    80% { transform: scaleX(1.04) scaleY(0.95) skewX(-1.2deg); }
    100% { transform: scaleX(0.98) scaleY(1.04) skewX(0.6deg); }
}
@keyframes hearthFlameCore {
    0% { transform: scaleX(1) scaleY(1); opacity: 0.92; }
    50% { transform: scaleX(1.08) scaleY(1.12); opacity: 1; }
    100% { transform: scaleX(0.94) scaleY(0.94); opacity: 0.88; }
}
@keyframes hearthFlameLick {
    0% { transform: scale(0.96) rotate(-1.5deg); }
    50% { transform: scale(1.08) rotate(2deg); }
    100% { transform: scale(0.98) rotate(-1deg); }
}
@keyframes hearthEmbersPulse {
    0%, 100% { opacity: 0.82; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.04); }
}
.hearth-flame-outer {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hearthFlameOuter 1.9s ease-in-out infinite alternate;
}
.hearth-flame-mid {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hearthFlameMid 1.5s ease-in-out infinite alternate;
}
.hearth-flame-core {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hearthFlameCore 1.2s ease-in-out infinite alternate;
}
.hearth-flame-lick-l {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hearthFlameLick 1.7s ease-in-out infinite alternate;
}
.hearth-flame-lick-r {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hearthFlameLick 1.4s ease-in-out 0.3s infinite alternate;
}
.hearth-embers-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: hearthEmbersPulse 2.4s ease-in-out infinite alternate;
}
.svg-center-origin {
    transform-box: fill-box;
    transform-origin: center;
}

/* Sakura Pond Calm Water Ripples */
@keyframes pondRipplePulse {
    0%, 100% { transform: scaleX(1) scaleY(1); opacity: 0.25; }
    50% { transform: scaleX(1.14) scaleY(1.2); opacity: 0.45; }
}
.pond-ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: pondRipplePulse 5.4s ease-in-out infinite;
}
.pond-ripple-alt {
    transform-box: fill-box;
    transform-origin: center;
    animation: pondRipplePulse 6.8s ease-in-out 2.1s infinite;
}

/* Modern Lo-Fi Player Console: Symmetrical 7-Button Hi-Fi Deck */
.track-icon-btn, .play-console-btn, .paw-console-btn {
    width: 39px;
    height: 39px;
    border-radius: 9999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
    position: relative;
}
.track-icon-btn.transport-step-btn {
    width: 34px;
    height: 34px;
    opacity: 0.92;
}
@media (min-width: 640px) {
    .track-icon-btn, .play-console-btn, .paw-console-btn {
        width: 42px;
        height: 42px;
    }
    .track-icon-btn.transport-step-btn {
        width: 36px;
        height: 36px;
    }
}

/* 3 Themed Track Symbol Buttons - Specular Translucent Glass */
.track-icon-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(26, 28, 40, 0.76);
    color: rgba(242, 236, 233, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
}
.track-icon-btn:hover {
    color: #FFF8E8;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(38, 42, 58, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.35);
    transform: translateY(-1.5px) scale(1.06);
}
.track-icon-btn:active {
    transform: translateY(0px) scale(0.93);
}
.track-icon-btn.active {
    background: linear-gradient(135deg, rgba(223, 171, 181, 0.38) 0%, rgba(200, 191, 231, 0.28) 50%, rgba(158, 184, 168, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFF8E8;
    box-shadow: 0 0 16px rgba(223, 171, 181, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}
.track-icon-btn .active-pip {
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background-color: #DFABB5;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.track-icon-btn.active .active-pip {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 6px #DFABB5;
}
body.is-audio-playing .track-icon-btn.active .active-pip {
    animation: pipPulse 1.4s ease-in-out infinite;
}
@keyframes pipPulse {
    0%, 100% { transform: scale(1); opacity: 0.78; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* Modern Tactile Play/Pause Console Disc (Glassy Crystal & GPU-Composited Rose Halo) */
.play-console-btn {
    background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95) 0%, #F8D7DE 25%, #DFABB5 55%, #C28795 100%);
    box-shadow: 0 4px 16px rgba(223, 171, 181, 0.5), inset 0 1.5px 2.5px rgba(255, 255, 255, 0.9), inset 0 -1.5px 3px rgba(0, 0, 0, 0.28);
    border: 1.2px solid rgba(255, 255, 255, 0.65);
    color: #1B1C24;
    isolation: isolate;
}
.play-console-btn::after {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(223, 171, 181, 0.55) 0%, rgba(223, 171, 181, 0.18) 55%, transparent 74%);
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    z-index: -1;
    will-change: transform, opacity;
}
.play-console-btn:hover {
    transform: translateY(-1.5px) scale(1.07);
    box-shadow: 0 6px 22px rgba(223, 171, 181, 0.7), inset 0 1.5px 2.5px #FFFFFF;
    border-color: rgba(255, 255, 255, 0.85);
}
.play-console-btn:active {
    transform: translateY(0px) scale(0.93);
}
.play-console-btn.star-playing {
    animation: playConsolePulse 2.8s ease-in-out infinite;
}
.play-console-btn.star-playing::after {
    animation: playHaloPulse 2.8s ease-in-out infinite;
}
@keyframes playConsolePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes playHaloPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.38; }
    50% { transform: scale(1.18); opacity: 0.92; }
}

/* Stylized Japanese Aesthetic Cat Paw Button (Specular Translucent Glass) */
.paw-console-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(26, 28, 40, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.2);
    color: #F2ECE9;
}
.paw-console-btn:hover {
    transform: translateY(-1.5px) scale(1.07);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(38, 42, 58, 0.65);
    border-color: rgba(223, 171, 181, 0.75);
    box-shadow: 0 0 16px rgba(223, 171, 181, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.35);
}
.paw-console-btn:active {
    transform: translateY(0px) scale(0.93);
}

/* Step 2: Interactive Pothos Leaf Physics Bounce & Spores */
@keyframes leafSpringBounce {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.18, 0.88) rotate(-14deg); }
    50% { transform: scale(0.94, 1.08) rotate(10deg); }
    75% { transform: scale(1.04, 0.98) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.pothos-interactive {
    pointer-events: auto;
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: 50% 0%;
}
.pothos-interactive.leaf-bouncing {
    animation: leafSpringBounce 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* Phase 2: Living Interactive Full-View Diorama Landmarks */
.diorama-clickable {
    pointer-events: visiblePainted;
    pointer-events: bounding-box;
    cursor: pointer;
    transition: filter 0.22s ease, opacity 0.22s ease;
}
.diorama-clickable:hover {
    filter: brightness(1.18);
}
#themeBackdropFadeLayer .diorama-clickable {
    pointer-events: none !important;
    cursor: default !important;
}
.diorama-anim-target {
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes dioramaPopPulse {
    0% { transform: scale(1); }
    32% { transform: scale(1.11) translateY(-3px); }
    65% { transform: scale(0.97); }
    100% { transform: scale(1); }
}
@keyframes dioramaSwayBurst {
    0% { transform: rotate(0deg) scale(1); }
    24% { transform: rotate(-7deg) scale(1.04); }
    52% { transform: rotate(6deg) scale(1.02); }
    78% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg) scale(1); }
}
@keyframes dioramaGlowFlare {
    0%, 100% { opacity: 1; filter: brightness(1); }
    40% { opacity: 0.92; filter: brightness(1.38); }
}
@keyframes dioramaFxFloat {
    0% { transform: translate(0px, 0px) scale(0.65); opacity: 0; }
    18% { opacity: 0.95; }
    100% { transform: translate(var(--dx, 10px), var(--dy, -44px)) scale(1.06); opacity: 0; }
}
@keyframes dioramaFxRipple {
    0% { transform: scale(0.35); opacity: 0.9; }
    100% { transform: scale(2.35); opacity: 0; }
}
@keyframes dioramaShootingStar {
    0% { transform: translate(0px, 0px) scale(0.7); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(-240px, -138px) scale(1.08); opacity: 0; }
}
.diorama-pop-pulse {
    animation: dioramaPopPulse 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.diorama-sway-burst {
    animation: dioramaSwayBurst 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.diorama-glow-flare {
    animation: dioramaGlowFlare 0.68s ease-out forwards;
}
.diorama-fx-float {
    transform-box: fill-box;
    transform-origin: center;
    animation: dioramaFxFloat 1.35s ease-out forwards;
}
.diorama-fx-ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: dioramaFxRipple 0.95s ease-out forwards;
}
.diorama-fx-star {
    transform-box: fill-box;
    transform-origin: center;
    animation: dioramaShootingStar 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatSpore {
    0% { transform: translate(0px, 0px) scale(0.4); opacity: 0; }
    20% { opacity: 0.95; transform: translate(var(--sx1, 3px), var(--sy1, -2px)) scale(1.15); }
    65% { opacity: 0.6; transform: translate(var(--sx2, 6px), var(--sy2, -4px)) scale(0.8); }
    100% { opacity: 0; transform: translate(var(--sx3, 9px), var(--sy3, -6px)) scale(0.2); }
}

/* Step 2: Zen / Screensaver Auto-Fade Mode (Fades to Invisible with Gentle Waterfall Stagger) */
.zen-fadeable {
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), filter 0.85s ease, transform 0.85s ease;
}
#controlDeck.zen-fadeable {
    transition-delay: 0.08s;
}
body.zen-active .zen-fadeable {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.985) translateY(4px);
}

/* Subtle Prismatic Rainbow Aura around Kitty during Zen Mode */
.zen-rainbow-aura {
    opacity: 0;
    transform-origin: 198px 180px;
    transition: opacity 1.25s cubic-bezier(0.4, 0, 0.2, 1), transform 1.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.92);
    will-change: transform, opacity;
}
body.zen-active .zen-rainbow-aura {
    opacity: 0.88;
    transform: scale(1.06);
    animation: zenRainbowAuraPulse 7.5s ease-in-out infinite alternate;
}
@keyframes zenRainbowAuraPulse {
    0% {
        transform: scale(1.04) rotate(0deg);
        opacity: 0.78;
    }
    50% {
        transform: scale(1.12) rotate(6deg);
        opacity: 0.95;
    }
    100% {
        transform: scale(1.04) rotate(-6deg);
        opacity: 0.78;
    }
}
#catInteractiveZone {
    transition: transform 0.3s ease;
    position: relative;
}
#catStageSvg {
    position: relative;
    z-index: 1;
}
.mochi-stage-halo {
    position: absolute;
    inset: -6% -2%;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 52% 48% at 50% 54%, var(--ui-accent-soft, rgba(223, 171, 181, 0.22)) 0%, var(--glow-top, rgba(184, 178, 204, 0.12)) 42%, transparent 74%);
    opacity: 0.76;
    transition: opacity 0.65s ease, transform 0.65s ease, background 0.65s ease;
}
@keyframes mochiStageHaloPulse {
    0%, 100% { transform: scale(1); opacity: 0.84; }
    50% { transform: scale(1.045); opacity: 0.98; }
}
body.is-audio-playing:not(.is-master-muted) .mochi-stage-halo {
    opacity: 0.96;
    animation: mochiStageHaloPulse 4.6s ease-in-out infinite;
}

/* Cozy Focus / Pomodoro Timer Pill & Progress Ring - Frosted Glass */
.pomo-pill {
    padding: 4px 8px;
    gap: 4px;
    transition: background-color 0.65s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.08) 100%), var(--ui-panel-bg, rgba(24, 25, 34, 0.55));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ui-panel-border, rgba(255, 255, 255, 0.18));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.pomo-pill.running-focus {
    border-color: rgba(158, 184, 168, 0.75);
    box-shadow: 0 0 18px rgba(158, 184, 168, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
}
.pomo-pill.running-break {
    border-color: rgba(223, 171, 181, 0.75);
    box-shadow: 0 0 18px rgba(223, 171, 181, 0.32), inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
}
.pomo-btn {
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(34, 38, 54, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.pomo-btn:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(48, 52, 70, 0.75);
    border-color: rgba(255, 255, 255, 0.35);
}
.pomo-btn:active {
    transform: scale(0.93);
}
#pomoProgressCircle {
    transition: stroke-dashoffset 0.5s linear, stroke 0.3s ease;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Kitty Hats & Strawberry Mochi Treats Animations */
@keyframes sproutSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5.5deg) scale(1.03); }
}
@keyframes hatPopIn {
    0% { transform: translateY(-10px) scale(0.6); opacity: 0; }
    65% { transform: translateY(2px) scale(1.06); opacity: 1; }
    100% { transform: translateY(0px) scale(1); opacity: 1; }
}
@keyframes mouthNomNom {
    0%, 100% { transform: scaleY(0.35) scaleX(0.9); }
    50% { transform: scaleY(1.18) scaleX(1.1); }
}
@keyframes mochiFloatToMouth {
    0% { transform: translate(284px, 232px) scale(0.55) rotate(22deg); opacity: 0; }
    12% { transform: translate(238px, 150px) scale(1.14) rotate(-12deg); opacity: 1; }
    28% { transform: translate(196px, 181px) scale(1.14, 0.86) rotate(4deg); opacity: 1; }
    36% { transform: translate(196px, 177px) scale(0.96, 1.06) rotate(-3deg); opacity: 1; }
    52% { transform: translate(196px, 178px) scale(0.9) rotate(4deg); opacity: 1; }
    68% { transform: translate(196px, 177px) scale(0.78) rotate(-5deg); opacity: 1; }
    84% { transform: translate(196px, 177px) scale(0.52) rotate(3deg); opacity: 0.95; }
    100% { transform: translate(196px, 177px) scale(0) rotate(0deg); opacity: 0; }
}
@keyframes chubbyCheekChomp {
    0%, 100% { transform: translateY(0px) scale(1, 1); }
    40% { transform: translateY(2px) scale(1.045, 0.955); }
    75% { transform: translateY(-1px) scale(0.985, 1.02); }
}
@keyframes earMunchWiggleL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-9deg) translateY(1px); }
}
@keyframes earMunchWiggleR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(9deg) translateY(1px); }
}
.munching-head-squash {
    transform-origin: 198px 175px;
    animation: chubbyCheekChomp 0.36s ease-in-out infinite;
}
.munching-ears .cat-ear-l {
    animation: earMunchWiggleL 0.36s ease-in-out infinite !important;
}
.munching-ears .cat-ear-r {
    animation: earMunchWiggleR 0.36s ease-in-out infinite !important;
}
@keyframes petSquishImpulse {
    0% { transform: scale(1, 1); }
    35% { transform: scale(1.045, 0.95); }
    70% { transform: scale(0.985, 1.02); }
    100% { transform: scale(1, 1); }
}
.pet-squish-pulse {
    transform-origin: 198px 225px;
    animation: petSquishImpulse 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) 1 !important;
}
.pet-heart-particle {
    transform-box: fill-box;
    transform-origin: center;
}
#eyesAwake {
    transform-origin: 196px 160px;
    transition: transform 0.08s ease-out;
}
#eyesAwake.eye-blinking {
    transform: scaleY(0.08);
}
.hat-sprout-anim {
    transform-origin: 198px 104px;
    animation: sproutSway 3.8s ease-in-out infinite;
}
.hat-pop-active {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: hatPopIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.wardrobe-hats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.32rem;
}
@media (min-width: 420px) {
    .wardrobe-hats-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .wardrobe-hats-grid .wardrobe-chip {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
        font-size: 9.5px;
    }
}
.bond-keepsakes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.32rem;
}
@media (min-width: 420px) {
    .bond-keepsakes-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.bond-keepsake-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2.5px;
    min-width: 0;
    min-height: 24px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 9999px;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.bond-keepsake-pill:hover {
    transform: scale(1.03);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.bond-keepsake-pill.active {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.34) 0%, rgba(158, 184, 168, 0.14) 100%), rgba(24, 38, 32, 0.72);
    border-color: rgba(176, 212, 190, 0.90);
    color: #F8F5F2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(158, 184, 168, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.bond-keepsake-pill.is-locked {
    opacity: 0.48;
    border: 1px dashed rgba(184, 178, 204, 0.24) !important;
    background: rgba(18, 20, 30, 0.48) !important;
    color: #8E88A6 !important;
    box-shadow: none !important;
}
.bond-keepsake-pill.is-locked:hover {
    opacity: 0.74;
    border-color: rgba(184, 178, 204, 0.46) !important;
}
/* Unified sanctuary accent for Kitty Corner ON toggle pills + tiny glowing active dot */
#tabPanel-kitty .wardrobe-chip.active {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.34) 0%, rgba(158, 184, 168, 0.14) 100%), rgba(24, 38, 32, 0.72);
    border-color: rgba(176, 212, 190, 0.90);
    color: #F8F5F2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(158, 184, 168, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
#tabPanel-kitty .bond-keepsake-pill.active::after,
#tabPanel-kitty .wand-btn.active::after,
#tabPanel-kitty .laser-btn.active::after,
#tabPanel-kitty .wardrobe-chip.active:not(.coat-picker-trigger)::after {
    content: '';
    display: inline-block;
    width: 4.5px;
    height: 4.5px;
    border-radius: 9999px;
    background: #C2F0D2;
    box-shadow: 0 0 6px rgba(194, 240, 210, 0.95);
    flex-shrink: 0;
    margin-left: 1px;
}
.plushie-interactive,
.keepsake-interactive {
    cursor: pointer;
}
.plushie-interactive:focus-visible,
.keepsake-interactive:focus-visible {
    outline: 2px solid #9EB8A8;
    outline-offset: 4px;
    border-radius: 12px;
}
.plushie-snuggle {
    transform-origin: 90px 232px;
    transition: filter 0.18s ease;
}
.matcha-cup-snuggle {
    transform-origin: 308px 232px;
    transition: filter 0.18s ease;
}
.firefly-jar-snuggle {
    transform-origin: 48px 233px;
    transition: filter 0.18s ease;
}
.plushie-interactive:hover .plushie-snuggle,
.keepsake-interactive:hover .matcha-cup-snuggle,
.keepsake-interactive:hover .firefly-jar-snuggle {
    filter: brightness(1.08);
}
@keyframes plushieSquishPop {
    0% { transform: scale(1, 1); }
    30% { transform: scale(1.13, 0.86); }
    65% { transform: scale(0.95, 1.07); }
    100% { transform: scale(1, 1); }
}
.plushie-squish-pop {
    animation: plushieSquishPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}
@keyframes cupSipPop {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    32% { transform: translateY(-4px) rotate(-6deg) scale(1.07); }
    68% { transform: translateY(1px) rotate(4deg) scale(0.97); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}
.cup-sip-pop {
    animation: cupSipPop 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}
@keyframes fireflyJarAuraPulse {
    0%, 100% { opacity: 0.72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}
.firefly-jar-aura {
    transform-origin: 48px 214px;
    animation: fireflyJarAuraPulse 3.8s ease-in-out infinite;
}
@keyframes fireflyDriftA {
    0%, 100% { transform: translate(0px, 0px); opacity: 0.92; }
    35% { transform: translate(2.2px, -3.2px); opacity: 0.52; }
    70% { transform: translate(-1.8px, -1.2px); opacity: 1; }
}
@keyframes fireflyDriftB {
    0%, 100% { transform: translate(0px, 0px); opacity: 0.65; }
    40% { transform: translate(-2.6px, -2.5px); opacity: 1; }
    75% { transform: translate(1.8px, 1.8px); opacity: 0.48; }
}
@keyframes fireflyDriftC {
    0%, 100% { transform: translate(0px, 0px); opacity: 0.88; }
    50% { transform: translate(2.4px, 2.2px); opacity: 0.56; }
}
.firefly-dot-1 { animation: fireflyDriftA 3.4s ease-in-out infinite; }
.firefly-dot-2 { animation: fireflyDriftB 4.1s ease-in-out infinite 0.5s; }
.firefly-dot-3 { animation: fireflyDriftC 3.7s ease-in-out infinite 0.9s; }
.firefly-dot-4 { animation: fireflyDriftA 4.4s ease-in-out infinite 1.4s; }
.firefly-dot-5 { animation: fireflyDriftB 3.1s ease-in-out infinite 0.3s; }
@keyframes fireflyJarSwirlPop {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-6deg) translateY(-3px) scale(1.06); }
    55% { transform: rotate(5deg) translateY(-1px) scale(1.04); }
    80% { transform: rotate(-2.5deg) scale(1.01); }
    100% { transform: rotate(0deg) scale(1); }
}
.firefly-jar-swirl {
    transform-origin: 48px 233px;
    animation: fireflyJarSwirlPop 1.2s cubic-bezier(0.34, 1.4, 0.64, 1) 1 !important;
}
.firefly-jar-swirl .firefly-dot {
    animation-duration: 0.55s !important;
}
@keyframes angelWingFlutterL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-4.5deg); }
}
@keyframes angelWingFlutterR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(4.5deg); }
}
.angel-wing-l {
    transform-origin: 130px 158px;
    animation: angelWingFlutterL 3.8s ease-in-out infinite;
}
.angel-wing-r {
    transform-origin: 266px 158px;
    animation: angelWingFlutterR 3.8s ease-in-out infinite;
}
@keyframes goldenHaloFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.92; }
    50% { transform: translateY(-3.5px); opacity: 1; }
}
.golden-halo-float {
    transform-origin: 198px 64px;
    animation: goldenHaloFloat 3.6s ease-in-out infinite;
}
@keyframes neckBellSway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3.2deg); }
}
.neck-bell-sway {
    transform-origin: 198px 197px;
    animation: neckBellSway 3.4s ease-in-out infinite;
}
@keyframes weatherPeekHead {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    25%, 70% { transform: translate(1.5px, -2.2px) rotate(-3.2deg); }
}
.weather-peek-head {
    transform-origin: 198px 175px;
    animation: weatherPeekHead 1.9s ease-in-out 1;
}
.chewing-mouth {
    transform-origin: 196px 176px;
    animation: mouthNomNom 0.28s ease-in-out infinite;
}
/* Wardrobe Chips & Interactive Toy Buttons - Specular Translucent Glass */
.wardrobe-chip {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.wardrobe-chip:hover {
    transform: translateY(-1.5px) scale(1.04);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.wardrobe-chip:active {
    transform: translateY(0px) scale(0.94);
}
.wardrobe-chip.active {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.36) 0%, rgba(158, 184, 168, 0.16) 100%), rgba(25, 38, 32, 0.62);
    border-color: rgba(158, 184, 168, 0.88);
    color: #F2ECE9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(158, 184, 168, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.settings-dot-idle {
    background-color: #7C7D94;
}
#brushyBtn:hover {
    color: #FFE6A3;
}
#butterflyBtn:hover {
    color: #F5B0CB;
}
#natureMixChevron {
    font-size: 8.5px;
    opacity: 0.75;
}
/* Collapsible 17-Coat Swatch Wardrobe Tray */
.coat-picker-trigger {
    min-width: 0;
    overflow: hidden;
}
.coat-btn-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.coat-picker-chevron {
    display: inline-block;
    font-size: 8.5px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}
#coatBtn[aria-expanded="true"] .coat-picker-chevron {
    transform: rotate(180deg);
}
.coat-picker-tray {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
    padding: 7px 8px;
    border-radius: 14px;
    background: rgba(20, 22, 34, 0.56);
    border: 1px solid var(--ui-panel-border, rgba(184, 178, 204, 0.24));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.coat-picker-tray.hidden {
    display: none;
}
.coat-picker-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.coat-picker-group-label {
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(184, 178, 204, 0.72);
    padding: 0 2px;
}
.coat-swatch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}
@media (min-width: 400px) {
    .coat-swatch-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.coat-swatch-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 28px;
    padding: 3px 7px;
    border-radius: 9999px;
    border: 1px solid rgba(184, 178, 204, 0.22);
    background: rgba(255, 255, 255, 0.045);
    color: #DCD6EA;
    font-size: 9.5px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.coat-swatch-btn:hover {
    border-color: var(--ui-accent, #C8BFE7);
    background: rgba(255, 255, 255, 0.09);
    color: #FAF6F4;
}
.coat-swatch-btn.active {
    border-color: var(--sage, #9EB8A8);
    background: rgba(158, 184, 168, 0.22);
    color: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(158, 184, 168, 0.35), 0 0 10px rgba(158, 184, 168, 0.22);
}
.coat-swatch-orb {
    width: 13px;
    height: 13px;
    border-radius: 9999px;
    flex-shrink: 0;
    background: var(--swatch-bg, #F2ECE9);
    border: 1.2px solid rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35);
}
.coat-swatch-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.shortcut-kbd-gold {
    color: #FFE6A3;
}
.shortcut-kbd-rose {
    color: #F5B0CB;
}
.shortcut-kbd-tip {
    padding-top: 1px;
    padding-bottom: 1px;
}
.sanctuary-glass-pill {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.sanctuary-player-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}
body.is-audio-playing:not(.is-master-muted) .sanctuary-player-card {
    border-color: var(--ui-accent, rgba(223, 171, 181, 0.52));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36), 0 0 22px var(--ui-accent-soft, rgba(223, 171, 181, 0.22)), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
#trackPlayingDot {
    transition: opacity 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
body.is-audio-playing:not(.is-master-muted) #trackPlayingDot {
    opacity: 1;
    box-shadow: 0 0 8px var(--ui-accent, #DFABB5);
}
.control-deck-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}
.shortcuts-modal-card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
/* Editorial Section Eyebrows with Theme Accent Dot & Fading Hairline */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    line-height: 1.2;
}
.section-eyebrow::before,
.section-eyebrow-inline::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: var(--ui-accent, #DFABB5);
    box-shadow: 0 0 6px var(--ui-accent-soft, rgba(223, 171, 181, 0.55));
    opacity: 0.85;
    flex-shrink: 0;
}
.section-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, transparent 100%);
}
.section-eyebrow-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}
.treat-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.treat-btn:hover {
    transform: translateY(-1.5px) scale(1.04);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.treat-btn:active {
    transform: translateY(0px) scale(0.93);
}

/* Interactive Star Wand & Laser Toy + Target-Aimed Swooping Paw Arc */
@keyframes playfulPawSwat {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
    20% { transform: translate(var(--wind-x, -16px), var(--wind-y, -28px)) rotate(var(--wind-rot, -34deg)) scale(1.04); }
    46% { transform: translate(var(--apex-x, 32px), var(--apex-y, -48px)) rotate(var(--apex-rot, 24deg)) scale(1.16); }
    68% { transform: translate(var(--follow-x, 18px), var(--follow-y, 26px)) rotate(var(--follow-rot, 16deg)) scale(1.08); }
    100% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
}
.playful-bap-paw {
    transform-origin: 168px 205px;
    animation: playfulPawSwat 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
@keyframes playfulPawSwatRight {
    0% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
    20% { transform: translate(var(--wind-x, 16px), var(--wind-y, -28px)) rotate(var(--wind-rot, 34deg)) scale(1.04); }
    46% { transform: translate(var(--apex-x, -32px), var(--apex-y, -48px)) rotate(var(--apex-rot, -24deg)) scale(1.16); }
    68% { transform: translate(var(--follow-x, -18px), var(--follow-y, 26px)) rotate(var(--follow-rot, -16deg)) scale(1.08); }
    100% { transform: translate(0px, 0px) rotate(0deg) scale(1); }
}
.playful-bap-paw-right {
    transform-origin: 228px 205px;
    animation: playfulPawSwatRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
@keyframes bapBodyLungeLeft {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    35% { transform: translate(-5px, -4px) rotate(-3.2deg); }
    62% { transform: translate(-2px, 2px) rotate(-1.2deg); }
}
@keyframes bapBodyLungeRight {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    35% { transform: translate(5px, -4px) rotate(3.2deg); }
    62% { transform: translate(2px, 2px) rotate(1.2deg); }
}
.bap-body-lunge-l {
    transform-origin: 200px 225px;
    animation: bapBodyLungeLeft 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
.bap-body-lunge-r {
    transform-origin: 200px 225px;
    animation: bapBodyLungeRight 0.62s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
@keyframes pawSwoopTrailSweep {
    0% { stroke-dashoffset: 180; opacity: 0; }
    24% { opacity: 0.92; }
    72% { stroke-dashoffset: 0; opacity: 0.72; }
    100% { stroke-dashoffset: -45; opacity: 0; }
}
.paw-swoop-trail {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: pawSwoopTrailSweep 0.52s cubic-bezier(0.22, 1, 0.36, 1) 1 forwards;
}
.wand-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.wand-btn:hover {
    transform: translateY(-1.5px) scale(1.04);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.wand-btn.active {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.34) 0%, rgba(158, 184, 168, 0.14) 100%), rgba(24, 38, 32, 0.72);
    border-color: rgba(176, 212, 190, 0.90);
    color: #F8F5F2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(158, 184, 168, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* Interactive Catnip Sprig & Aromatic Scent Waves */
.catnip-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.catnip-btn:hover {
    transform: translateY(-1.5px) scale(1.04);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.catnip-btn:active {
    transform: translateY(0px) scale(0.93);
}

/* Catnip Botanical Flutter, Curved Pendulum Arrival, Reactive Rub Sway & Euphoric Head Roll */
@keyframes catnipFloatToNose {
    0% { transform: translate(110px, 232px) scale(0.5) rotate(-24deg); opacity: 0; }
    14% { transform: translate(152px, 170px) scale(1.08) rotate(12deg); opacity: 1; }
    28% { transform: translate(204px, 182px) scale(1.02) rotate(-3deg); opacity: 1; }
    44% { transform: translate(197px, 182px) scale(1.05) rotate(-10deg); opacity: 1; }
    60% { transform: translate(210px, 182px) scale(1.05) rotate(10deg); opacity: 1; }
    74% { transform: translate(203px, 184px) scale(0.96) rotate(-6deg); opacity: 1; }
    88% { transform: translate(201px, 184px) scale(0.55) rotate(4deg); opacity: 0.92; }
    100% { transform: translate(196px, 177px) scale(0) rotate(0deg); opacity: 0; }
}

@keyframes catnipLeafFlutterL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-14deg) scale(1.08); }
}

@keyframes catnipLeafFlutterR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(14deg) scale(1.08); }
}

@keyframes aromaSpiralWave {
    0% { transform: translateY(0px) scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-12px) scale(1.15) rotate(6deg); opacity: 0.95; }
    100% { transform: translateY(-24px) scale(1.25) rotate(-4deg); opacity: 0; }
}

@keyframes catnipAuraPulse {
    0%, 100% { transform: scale(1); opacity: 0.22; }
    50% { transform: scale(1.38); opacity: 0.48; }
}

.catnip-aura {
    transform-origin: -12px -18px;
    animation: catnipAuraPulse 1.2s ease-in-out infinite;
}

.catnip-leaf-l {
    transform-origin: -14px -20px;
    animation: catnipLeafFlutterL 0.85s ease-in-out infinite;
}

.catnip-leaf-r {
    transform-origin: -5px -12px;
    animation: catnipLeafFlutterR 0.95s ease-in-out infinite 0.18s;
}

@keyframes floatBotanicalParticle {
    0% { transform: translate(0px, 0px) scale(0.3) rotate(0deg); opacity: 0; }
    20% { opacity: 0.95; transform: translate(var(--bx1, -8px), -16px) scale(1.1) rotate(var(--br1, -15deg)); }
    60% { opacity: 0.85; transform: translate(var(--bx2, 12px), -42px) scale(1) rotate(var(--br2, 22deg)); }
    100% { opacity: 0; transform: translate(var(--bx3, -10px), -68px) scale(0.65) rotate(var(--br3, -28deg)); }
}

/* Kitty Catnip Sniff & Blissful Cheek-Rub Head Roll */
@keyframes noseSniffTwitch {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-2px) scale(1.15, 0.85); }
    50% { transform: translateY(1.2px) scale(0.9, 1.1); }
    75% { transform: translateY(-1.8px) scale(1.12, 0.88); }
}

@keyframes whiskerSniffWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-4deg); }
    75% { transform: rotate(4deg); }
}

@keyframes catnipBlissRoll {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    20% { transform: translate(-7px, 1.5px) rotate(-9deg); }
    45% { transform: translate(7px, 1.5px) rotate(9deg); }
    70% { transform: translate(-5px, 0px) rotate(-6deg); }
    88% { transform: translate(4px, 0px) rotate(4deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.catnip-head-bliss {
    transform-origin: 198px 160px;
    animation: catnipBlissRoll 1.35s ease-in-out infinite !important;
}

.nose-sniffing {
    transform-origin: 196px 168px;
    animation: noseSniffTwitch 0.22s ease-in-out 4;
}

.whisker-wiggling {
    transform-origin: 196px 175px;
    animation: whiskerSniffWiggle 0.22s ease-in-out 4;
}

/* Interactive Red Laser Dot Toy */
.laser-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(24, 26, 38, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.20), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    color: var(--periwinkle);
}
.laser-btn:hover {
    transform: translateY(-1.5px) scale(1.04);
    color: var(--cream);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(38, 41, 56, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px 1.5px rgba(255, 255, 255, 0.32);
}
.laser-btn.active {
    background: linear-gradient(135deg, rgba(158, 184, 168, 0.34) 0%, rgba(158, 184, 168, 0.14) 100%), rgba(24, 38, 32, 0.72);
    border-color: rgba(176, 212, 190, 0.90);
    color: #F8F5F2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 0 12px rgba(158, 184, 168, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@keyframes laserHaloPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.42); opacity: 0.52; }
}
@keyframes laserImpactRingExpand {
    0% { transform: scale(0.25); opacity: 0.95; stroke-width: 3.5; }
    65% { transform: scale(1.85); opacity: 0.55; stroke-width: 1.6; }
    100% { transform: scale(2.6); opacity: 0; stroke-width: 0.4; }
}
@keyframes laserStalkWiggle {
    0%, 100% { transform: translate(0px, 0px) scale(1.015, 0.98); }
    25% { transform: translate(-2.5px, 1.5px) scale(1.03, 0.96); }
    75% { transform: translate(2.5px, 1.5px) scale(1.03, 0.96); }
}
.laser-stalk-crouch {
    transform-origin: 198px 228px;
    animation: laserStalkWiggle 0.42s ease-in-out infinite !important;
}
.laser-impact-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: laserImpactRingExpand 0.48s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.laser-outer-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: laserHaloPulse 0.7s ease-in-out infinite;
}

/* Custom Editable Kitty Name Badge & Inline Input */
.cat-name-badge {
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #F2ECE9;
}
.cat-name-badge:hover {
    color: #DFABB5;
    transform: translateY(-0.5px);
}
.cat-name-badge .edit-pencil {
    opacity: 0.45;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cat-name-badge:hover .edit-pencil {
    opacity: 1;
    transform: scale(1.12);
}
.cat-name-input {
    background: rgba(223, 171, 181, 0.16);
    border: 1px solid rgba(223, 171, 181, 0.55);
    color: #F2ECE9;
    outline: none;
    box-shadow: 0 0 10px rgba(223, 171, 181, 0.22);
}

/* Dynamic Responsive Pothos Border Modes (Smartphone Edge-to-Edge & Full Website) */
body {
    height: 100vh;
    height: 100dvh;
    width: 100%;
}
body.border-mode-full {
    padding: 0;
}
@media (min-width: 640px) {
    body.border-mode-full {
        padding: 10px;
    }
}
body.border-mode-full #sanctuaryCard {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
}
@media (min-width: 640px) {
    body.border-mode-full #sanctuaryCard {
        border-radius: 34px;
    }
    body:not(.border-mode-full) #sanctuaryCard {
        max-width: 520px;
        max-height: min(920px, calc(100dvh - 20px));
    }
}
@media (max-width: 639px) {
    body {
        padding: 0 !important;
    }
    #sanctuaryCard {
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border-width: 0 !important;
    }
}

/* Central Column Breathability, Responsive Grids & Comfortable Targets */
.sanctuary-col {
    width: 100%;
    max-width: 420px;
}
@media (min-width: 640px) {
    .sanctuary-col {
        max-width: 460px;
    }
}
.responsive-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}
.nature-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
}
@media (min-width: 500px) {
    .responsive-quad-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.responsive-quad-grid > button,
.nature-pill,
.wardrobe-chip,
.treat-btn,
.catnip-btn,
.wand-btn,
.laser-btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.compact-icon-btn {
    min-width: 26px;
    min-height: 26px;
    width: 26px;
    height: 26px;
}
#shortcutsHelpBtn,
#masterMuteBtn {
    width: 28px;
    height: 28px;
}
.theme-chip,
.nature-pill,
.wardrobe-chip,
.treat-btn,
.catnip-btn,
.wand-btn,
.laser-btn,
.aux-player-pill {
    min-height: 26px;
}
button:focus-visible,
[role="slider"]:focus-visible {
    outline: 2px solid var(--ui-accent, rgba(223, 171, 181, 0.85));
    outline-offset: 2px;
}
@media (hover: none) and (pointer: coarse) {
    .theme-rail-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .compact-icon-btn {
        min-width: 32px;
        min-height: 32px;
        width: 32px;
        height: 32px;
    }
    #shortcutsHelpBtn,
    #masterMuteBtn {
        width: 34px;
        height: 34px;
    }
    .theme-chip,
    .nature-pill,
    .wardrobe-chip,
    .treat-btn,
    .catnip-btn,
    .wand-btn,
    .laser-btn,
    .aux-player-pill {
        min-height: 32px;
    }
}
@media (max-width: 479px) {
    #pomoPill {
        border-radius: 18px;
    }
}
@media (max-width: 430px) {
    .nature-pill {
        padding-left: 0.22rem !important;
        padding-right: 0.22rem !important;
        font-size: 9px !important;
        gap: 0.14rem !important;
    }
    .sanctuary-tab-btn {
        padding-left: 0.28rem !important;
        padding-right: 0.28rem !important;
        font-size: 9.5px !important;
        gap: 0.18rem !important;
    }
}
@media (max-width: 410px) {
    .player-sub-label,
    .player-sub-sep {
        display: none;
    }
}
@media (max-width: 374px) {
    .nature-pills-grid,
    .custom-mix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sanctuary-tab-btn {
        min-width: 0;
        overflow: hidden;
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
        font-size: 8.2px !important;
        letter-spacing: 0 !important;
        gap: 0.1rem !important;
    }
    #soundTabBadge {
        padding-left: 0.22rem !important;
        padding-right: 0.22rem !important;
        font-size: 7.5px !important;
        margin-left: 1px !important;
    }
    .wardrobe-chip {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
        font-size: 9.5px !important;
        gap: 0.15rem !important;
    }
    #playlistModeBtn,
    #sleepTimerBtn {
        padding-left: 0.38rem !important;
        padding-right: 0.38rem !important;
        font-size: 9.5px !important;
    }
    .player-console-dock {
        gap: 4px !important;
    }
    .track-icon-btn,
    .play-console-btn,
    .paw-console-btn {
        width: 32px;
        height: 32px;
    }
    .track-icon-btn.transport-step-btn {
        width: 28px;
        height: 28px;
    }
    .player-console-divider {
        margin-left: 1px !important;
        margin-right: 1px !important;
    }
    .shortcuts-modal-grid {
        grid-template-columns: 1fr !important;
    }
}
.shortcuts-modal-card {
    max-height: 90dvh;
    overflow-y: auto;
}

/* Safe-Area & Pothos Leaf Buffer Insets (Aligns all buttons safely inside the leaf frame) */
#sanctuaryCard {
    padding-top: max(3.75rem, calc(env(safe-area-inset-top, 0px) + 3.1rem)) !important;
    padding-bottom: max(3.5rem, calc(env(safe-area-inset-bottom, 0px) + 2.85rem)) !important;
    padding-left: max(2.25rem, calc(env(safe-area-inset-left, 0px) + 1.75rem)) !important;
    padding-right: max(2.25rem, calc(env(safe-area-inset-right, 0px) + 1.75rem)) !important;
    box-sizing: border-box;
}

/* Gentle top/bottom padding tuck for desktop Card Mode on tall windows */
@media (min-width: 640px) and (min-height: 821px) {
    body:not(.border-mode-full) #sanctuaryCard {
        padding-top: max(2.95rem, calc(env(safe-area-inset-top, 0px) + 2.4rem)) !important;
        padding-bottom: max(2.75rem, calc(env(safe-area-inset-bottom, 0px) + 2.2rem)) !important;
    }
}

/* Gentle vertical breathing room on 125%-scaled 1080p laptops (<= 820px height) */
@media (max-height: 820px) {
    #sanctuaryCard {
        padding-top: max(2.6rem, calc(env(safe-area-inset-top, 0px) + 2.0rem)) !important;
        padding-bottom: max(2.35rem, calc(env(safe-area-inset-bottom, 0px) + 1.8rem)) !important;
        padding-left: max(1.75rem, calc(env(safe-area-inset-left, 0px) + 1.25rem)) !important;
        padding-right: max(1.75rem, calc(env(safe-area-inset-right, 0px) + 1.25rem)) !important;
    }
    #catInteractiveZone {
        transform: scale(0.93);
        margin-top: -0.35rem;
        margin-bottom: -0.35rem;
    }
}

/* Safe vertical scroll & unclipped layout on compact / scaled / landscape screens (<= 760px height) */
@media (max-height: 760px) {
    body {
        height: auto;
        min-height: 100dvh;
        overflow-y: auto !important;
        align-items: flex-start !important;
    }
    #sanctuaryCard {
        height: auto !important;
        min-height: 100dvh;
        max-height: none !important;
        padding-top: max(2.2rem, calc(env(safe-area-inset-top, 0px) + 1.65rem)) !important;
        padding-bottom: max(2.0rem, calc(env(safe-area-inset-bottom, 0px) + 1.45rem)) !important;
        padding-left: max(1.45rem, calc(env(safe-area-inset-left, 0px) + 1.0rem)) !important;
        padding-right: max(1.45rem, calc(env(safe-area-inset-right, 0px) + 1.0rem)) !important;
    }
    #catInteractiveZone {
        transform: scale(0.90);
        margin-top: -0.45rem;
        margin-bottom: -0.45rem;
    }
}
@media (max-height: 660px) {
    #catInteractiveZone {
        transform: scale(0.84);
        margin-top: -0.6rem;
        margin-bottom: -0.6rem;
    }
}

/* Segmented 3-Tab Sanctuary Console Switcher & Equal-Height Tab Panels */
.sanctuary-tab-bar {
    position: relative;
    background: rgba(14, 15, 22, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9999px;
    padding: 3px;
    gap: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sanctuary-tab-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 14px) / 3);
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, var(--ui-accent-soft, rgba(223, 171, 181, 0.34)) 0%, rgba(158, 184, 168, 0.24) 100%), var(--ui-panel-bg, rgba(38, 41, 56, 0.90));
    border: 1px solid var(--ui-accent, rgba(255, 255, 255, 0.34));
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.30), 0 0 12px var(--ui-accent-soft, rgba(223, 171, 181, 0.22)), inset 0 1px 0 rgba(255, 255, 255, 0.40);
    transform: translateX(calc(var(--tab-index, 0) * (100% + 4px)));
    transition: transform 0.32s cubic-bezier(0.34, 1.38, 0.64, 1), border-color 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
    will-change: transform;
}
.sanctuary-tab-btn {
    position: relative;
    z-index: 1;
    border-radius: 9999px;
    color: var(--periwinkle);
    transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}
.sanctuary-tab-btn:hover {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.06);
}
.sanctuary-tab-btn.active {
    color: #FFF8E8;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
header.sanctuary-header,
.sanctuary-stage-wrap,
.sanctuary-player-card,
.sanctuary-tab-bar {
    flex-shrink: 0;
}
#controlDeck,
.control-deck-card {
    flex: 0 1 auto;
    min-height: 0;
}
@keyframes tabPanelReveal {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0px); }
}
.sanctuary-tab-panel {
    flex: 0 1 auto;
    min-height: 0;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    animation: tabPanelReveal 0.18s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.sanctuary-tab-panel.is-scrollable {
    padding-right: 4px;
}
.sanctuary-tab-panel.can-scroll-bottom:not(.can-scroll-top) {
    mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 22px), transparent 100%);
}
.sanctuary-tab-panel.can-scroll-top:not(.can-scroll-bottom) {
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 100%);
}
.sanctuary-tab-panel.can-scroll-top.can-scroll-bottom {
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 calc(100% - 22px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18px, #000 calc(100% - 22px), transparent 100%);
}
.sanctuary-tab-panel::-webkit-scrollbar {
    width: 5px;
}
.sanctuary-tab-panel::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}
.sanctuary-tab-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ui-accent, #DFABB5) 0%, rgba(158, 184, 168, 0.72) 100%);
    border-radius: 9999px;
}
.sanctuary-tab-panel::-webkit-scrollbar-thumb:hover {
    background: var(--ui-accent, #DFABB5);
}
@supports not selector(::-webkit-scrollbar) {
    .sanctuary-tab-panel {
        scrollbar-width: thin;
        scrollbar-color: var(--ui-accent, rgba(223, 171, 181, 0.55)) transparent;
    }
}
@media (max-height: 760px) {
    .sanctuary-tab-panel {
        overflow: visible;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .sanctuary-tab-panel.is-scrollable {
        padding-right: 0;
    }
}
#resetDataBtn.confirm-armed {
    color: #FFE4EA;
    border-color: rgba(223, 171, 181, 0.78);
    background: linear-gradient(135deg, rgba(223, 171, 181, 0.34) 0%, rgba(232, 153, 141, 0.24) 100%), rgba(46, 36, 48, 0.85);
    box-shadow: 0 2px 10px rgba(223, 171, 181, 0.22), inset 0 1px 1.5px rgba(255, 255, 255, 0.25);
}

/* =========================================================
   SMARTPHONE & MOBILE GPU COMPOSITOR ACCELERATION
   Eliminates 30+ simultaneous offscreen backdrop-filter blur passes
   and redundant sub-leaf bounding-box recalculations on mobile GPUs
   ========================================================= */
#catBreathingGroup, #catTailGroup,
.vine-sway-1, .vine-sway-2, .vine-sway-3, .vine-sway-4 {
    will-change: transform;
}
body.toy-tracking-active #laserDotGroup,
body.toy-tracking-active #wandStarCharmGroup,
body.toy-tracking-active #wandStickGroup {
    will-change: transform;
}

@media (max-width: 639px), (hover: none) and (pointer: coarse) {
    #sanctuaryCard,
    .aux-player-pill,
    .theme-chip,
    .theme-rail-arrow,
    .nature-pill,
    .track-icon-btn,
    .play-console-btn,
    .paw-console-btn,
    .pomo-pill,
    .pomo-btn,
    .wardrobe-chip,
    .treat-btn,
    .sanctuary-tab-bar,
    .sanctuary-tab-btn,
    header > div,
    #controlDeck > div {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .aux-player-pill,
    .theme-chip,
    .theme-rail-arrow,
    .nature-pill,
    .track-icon-btn,
    .paw-console-btn,
    .pomo-pill,
    .wardrobe-chip {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(26, 28, 40, 0.88);
    }
    /* Pause secondary per-leaf/subgroup sub-flutter on mobile while keeping corner vine breeze & touch-bounce */
    .leaf-flutter:not(.leaf-bouncing),
    .vine-leaves-b {
        animation: none !important;
    }
    .zen-fadeable {
        transition: opacity 0.65s ease, transform 0.65s ease;
    }
    body.zen-active .zen-fadeable {
        filter: none;
    }
}

/* =========================================================
   VISUAL & INTERACTIVE POLISH: AUDIO EQUALIZER, CUSHION AURA,
   MUSIC-REACTIVE MOCHI SWAY, DREAM BUBBLES & REDUCED MOTION
   ========================================================= */
body, #sanctuaryCard {
    transition: background 0.85s ease, border-color 0.85s ease, box-shadow 0.85s ease;
}

/* Global Hidden-Tab Battery Saver (Pauses all CSS animations while tab is backgrounded) */
body.page-hidden *,
body.page-hidden *::before,
body.page-hidden *::after {
    animation-play-state: paused !important;
}

/* Eco Graphics Quality Tier (Smart Eco: pauses decorative wing/sky loops & backdrop blur while keeping Mochi interactive) */
body.graphics-eco #sanctuaryCard,
body.graphics-eco .pomo-pill,
body.graphics-eco header > div,
body.graphics-eco #controlDeck > div {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
body.graphics-eco .leaf-flutter:not(.leaf-bouncing),
body.graphics-eco .vine-leaves-b {
    animation: none !important;
}
body.graphics-eco .mochi-stage-halo,
body.graphics-eco .bond-bar-fill::after,
body.graphics-eco .fairy-light-glow,
body.graphics-eco .aurora-ribbon,
body.graphics-eco .aurora-ribbon-alt,
body.graphics-eco .aurora-ray-shimmer,
body.graphics-eco .wing-lantern-sway,
body.graphics-eco .wing-boat-bob,
body.graphics-eco .wing-bird-glide,
body.graphics-eco .wing-koi-glide,
body.graphics-eco .wing-vinyl-spin,
body.graphics-eco .wing-owl-blink,
body.graphics-eco .wing-curtain-sway,
body.graphics-eco .wing-fire-flicker,
body.graphics-eco .astrolabe-spin,
body.graphics-eco .astrolabe-spin-rev,
body.graphics-eco .ocean-wave-drift,
body.graphics-eco .ocean-wave-drift-alt,
body.graphics-eco .lighthouse-beam,
body.graphics-eco .tea-steam-wisp,
body.graphics-eco .star-sparkle,
body.graphics-eco .star-sparkle-alt,
body.graphics-eco .sun-mote,
body.graphics-eco .spore-glow,
body.graphics-eco .pond-ripple,
body.graphics-eco .pond-ripple-alt,
body.graphics-eco .biolum-pulse,
body.graphics-eco .candle-flicker-soft,
body.graphics-eco .lantern-float,
body.graphics-eco .firefly-jar-snuggle:not(.firefly-jar-swirl) .firefly-jar-aura,
body.graphics-eco .firefly-jar-snuggle:not(.firefly-jar-swirl) .firefly-dot,
body.graphics-eco .shooting-star-streak,
body.graphics-eco .shooting-star-wish-btn {
    animation-play-state: paused !important;
}
body.graphics-eco .shooting-star-wish-btn {
    display: none !important;
}
body.graphics-eco .zen-fadeable {
    transition: opacity 0.55s ease, transform 0.55s ease;
}
body.graphics-eco.zen-active .zen-fadeable {
    filter: none;
}

/* 5-Bar Botanical Equalizer inside Lo-Fi Player (GPU-Composited scaleY, Zero Layout Thrash) */
.audio-eq-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    padding: 0 2px;
    opacity: 0.45;
    transition: opacity 0.35s ease;
}
body.is-audio-playing .audio-eq-bars {
    opacity: 0.95;
}
.audio-eq-bar {
    width: 2.5px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #FFE4EA 0%, #DFABB5 42%, #9EB8A8 100%);
    transform-origin: bottom center;
    transform: scaleY(0.25);
    will-change: transform;
}

/* Gentle Cushion Audio Aura Pulse */
.cushion-audio-aura {
    transform-origin: 200px 226px;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: transform, opacity;
}
body.is-audio-playing .cushion-audio-aura {
    opacity: 0.42;
}

/* Music-Reactive Subtle Head, Ear & Tail Sway */
body.is-audio-playing:not(.is-master-muted) .cat-tail {
    animation-duration: 3.2s;
}
body.is-audio-playing:not(.is-master-muted):not(.reduced-motion-calm):not(.graphics-eco) .cat-ear-l:not(.ear-twitch-active-l) {
    animation: earMusicSwayL 2.4s ease-in-out infinite;
}
body.is-audio-playing:not(.is-master-muted):not(.reduced-motion-calm):not(.graphics-eco) .cat-ear-r:not(.ear-twitch-active-r) {
    animation: earMusicSwayR 2.4s ease-in-out infinite;
}
@keyframes headMusicBob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(1.4px) rotate(-1.2deg); }
    50% { transform: translateY(-0.5px) rotate(0deg); }
    75% { transform: translateY(1.4px) rotate(1.2deg); }
}
body.is-audio-playing:not(.is-master-muted):not(.reduced-motion-calm):not(.graphics-eco):not(.toy-tracking-active) #catHeadGroup:not(.grooming-head):not(.catnip-head-bliss):not(.munching-head-squash):not(.brushy-head-melt):not(.butterfly-nose-boop-head):not(.weather-peek-head) {
    transform-origin: 198px 175px;
    animation: headMusicBob 2.4s ease-in-out infinite;
}
@keyframes earMusicSwayL {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2.8deg); }
}
@keyframes earMusicSwayR {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.8deg); }
}

/* Soft Sleeping Dream Bubbles */
@keyframes floatDreamBubble {
    0% { opacity: 0; transform: translate(0px, 6px) scale(0.65); }
    20% { opacity: 0.88; transform: translate(-3px, -6px) scale(1); }
    75% { opacity: 0.72; transform: translate(4px, -24px) scale(1.03); }
    100% { opacity: 0; transform: translate(6px, -36px) scale(0.85); }
}

/* Motion Policy:
   - Calm rapid/flashing sky streaks & status-dot pulse whenever OS prefers reduced motion.
   - In 'Follow OS' mode (body.reduced-motion-calm), also calm decorative ambient loops
     while keeping all user-triggered kitty actions, treats, petting, toys & breathing smooth. */
@media (prefers-reduced-motion: reduce) {
    .shooting-star-streak,
    #statusDot {
        animation: none !important;
    }
    .shooting-star-streak {
        opacity: 0.18;
    }
}
body.reduced-motion-calm .vine-sway-1,
body.reduced-motion-calm .vine-sway-2,
body.reduced-motion-calm .vine-sway-3,
body.reduced-motion-calm .vine-sway-4,
body.reduced-motion-calm .vine-leaves-b,
body.reduced-motion-calm .leaf-flutter:not(.leaf-bouncing),
body.reduced-motion-calm .star-sparkle,
body.reduced-motion-calm .star-sparkle-alt,
body.reduced-motion-calm .sun-mote,
body.reduced-motion-calm .spore-glow,
body.reduced-motion-calm .pond-ripple,
body.reduced-motion-calm .pond-ripple-alt,
body.reduced-motion-calm .aurora-ribbon,
body.reduced-motion-calm .aurora-ribbon-alt,
body.reduced-motion-calm .fairy-light-glow,
body.reduced-motion-calm .tea-steam-wisp,
body.reduced-motion-calm .lighthouse-beam,
body.reduced-motion-calm .ocean-wave-drift,
body.reduced-motion-calm .ocean-wave-drift-alt,
body.reduced-motion-calm .astrolabe-spin,
body.reduced-motion-calm .astrolabe-spin-rev,
body.reduced-motion-calm .aurora-ray-shimmer,
body.reduced-motion-calm .biolum-pulse,
body.reduced-motion-calm .candle-flicker-soft,
body.reduced-motion-calm .diorama-fx-star,
body.reduced-motion-calm .lantern-float,
body.reduced-motion-calm .wing-lantern-sway,
body.reduced-motion-calm .wing-boat-bob,
body.reduced-motion-calm .wing-bird-glide,
body.reduced-motion-calm .wing-koi-glide,
body.reduced-motion-calm .wing-vinyl-spin,
body.reduced-motion-calm .wing-owl-blink,
body.reduced-motion-calm .wing-curtain-sway,
body.reduced-motion-calm .wing-fire-flicker,
body.reduced-motion-calm .shooting-star-streak,
body.reduced-motion-calm .hearth-flame-outer,
body.reduced-motion-calm .hearth-flame-mid,
body.reduced-motion-calm .hearth-flame-core,
body.reduced-motion-calm .hearth-flame-lick-l,
body.reduced-motion-calm .hearth-flame-lick-r,
body.reduced-motion-calm .hearth-embers-pulse,
body.reduced-motion-calm .hearth-glow-active,
body.reduced-motion-calm .hearth-bounce-light.hearth-bounce-active,
body.reduced-motion-calm .zen-rainbow-aura,
body.reduced-motion-calm .hat-sprout-anim,
body.reduced-motion-calm .play-console-btn.star-playing,
body.reduced-motion-calm .play-console-btn.star-playing::after,
body.reduced-motion-calm .mochi-stage-halo,
body.reduced-motion-calm .bond-bar-fill::after,
body.reduced-motion-calm .active-pip,
body.reduced-motion-calm .zzz-1,
body.reduced-motion-calm .zzz-2,
body.reduced-motion-calm .zzz-3,
body.reduced-motion-calm #ambientAtmosphereLayer *,
body.reduced-motion-calm #botanicalSporeLayer * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
}
body.reduced-motion-calm .cat-breathe:not(.cat-nuzzle):not(.cat-stretch-body):not(.laser-stalk-crouch):not(.pet-squish-pulse):not(.cat-brushy-lean):not(.blanket-tuck-snuggle),
body.reduced-motion-calm .cat-tail,
body.reduced-motion-calm .golden-halo-float,
body.reduced-motion-calm .firefly-jar-snuggle:not(.firefly-jar-swirl) .firefly-jar-aura,
body.reduced-motion-calm .firefly-jar-snuggle:not(.firefly-jar-swirl) .firefly-dot,
body.reduced-motion-calm .neck-bell-sway,
body.reduced-motion-calm .angel-wing-l,
body.reduced-motion-calm .angel-wing-r,
body.reduced-motion-calm .cat-ear-l:not(.ear-twitch-active-l),
body.reduced-motion-calm .cat-ear-r:not(.ear-twitch-active-r) {
    animation: none !important;
}
body.reduced-motion-calm .shooting-star-wish-btn {
    display: none !important;
}
body.reduced-motion-calm *,
body.reduced-motion-calm *::before,
body.reduced-motion-calm *::after {
    transition-duration: 0.12s !important;
}
body.reduced-motion-calm .sanctuary-tab-panel {
    scroll-behavior: auto;
}
/* Always preserve interactive treats, catnip bliss, petting, toys & guided breathing */
body.reduced-motion-calm #mochiTreatLayer,
body.reduced-motion-calm #mochiTreatLayer *,
body.reduced-motion-calm #catnipSprigLayer,
body.reduced-motion-calm #catnipSprigLayer *,
body.reduced-motion-calm #brushyActionLayer,
body.reduced-motion-calm #brushyActionLayer *,
body.reduced-motion-calm #butterflyActionLayer,
body.reduced-motion-calm #butterflyActionLayer *,
body.reduced-motion-calm #cozyBlanketLayer,
body.reduced-motion-calm #cozyBlanketLayer *,
body.reduced-motion-calm #dynamicHeartsLayer,
body.reduced-motion-calm #dynamicHeartsLayer *,
body.reduced-motion-calm #heartContainer,
body.reduced-motion-calm #heartContainer *,
body.reduced-motion-calm .breathing-aura-active,
body.reduced-motion-calm .breathing-aura-box,
body.reduced-motion-calm .breathing-aura-calm,
body.reduced-motion-calm .playful-bap-paw,
body.reduced-motion-calm .playful-bap-paw-right,
body.reduced-motion-calm .bap-body-lunge-l,
body.reduced-motion-calm .bap-body-lunge-r,
body.reduced-motion-calm .paw-swoop-trail,
body.reduced-motion-calm .chewing-mouth,
body.reduced-motion-calm .yawning-mouth,
body.reduced-motion-calm .stretching-paws,
body.reduced-motion-calm .cat-stretch-body,
body.reduced-motion-calm .munching-head-squash,
body.reduced-motion-calm .munching-ears .cat-ear-l,
body.reduced-motion-calm .munching-ears .cat-ear-r,
body.reduced-motion-calm .catnip-head-bliss,
body.reduced-motion-calm .nose-sniffing,
body.reduced-motion-calm .whisker-wiggling,
body.reduced-motion-calm .cat-nuzzle,
body.reduced-motion-calm .pet-squish-pulse,
body.reduced-motion-calm .cat-brushy-lean,
body.reduced-motion-calm .brushy-head-melt,
body.reduced-motion-calm .butterfly-nose-boop-head,
body.reduced-motion-calm .blanket-tuck-snuggle,
body.reduced-motion-calm .blanket-drape-in,
body.reduced-motion-calm .blanket-untuck-out,
body.reduced-motion-calm .blanket-sparkle,
body.reduced-motion-calm .kneading-paw-l,
body.reduced-motion-calm .kneading-paw-r,
body.reduced-motion-calm .kneading-dimple-l,
body.reduced-motion-calm .kneading-dimple-r,
body.reduced-motion-calm .grooming-paw,
body.reduced-motion-calm .grooming-head,
body.reduced-motion-calm .grooming-tongue,
body.reduced-motion-calm .laser-stalk-crouch,
body.reduced-motion-calm .laser-outer-halo,
body.reduced-motion-calm .laser-impact-ring,
body.reduced-motion-calm .plushie-squish-pop,
body.reduced-motion-calm .cup-sip-pop,
body.reduced-motion-calm .firefly-jar-swirl,
body.reduced-motion-calm .firefly-jar-swirl .firefly-dot {
    animation-duration: revert !important;
    animation-iteration-count: revert !important;
}
body.reduced-motion-calm .diorama-pop-pulse,
body.reduced-motion-calm .diorama-sway-burst {
    animation: dioramaGlowFlare 0.35s ease-out forwards !important;
}
