
html { 
    height: 100%;
    background-color: #f4f7f4;
}

body { 
    min-height: 100%;
    overflow-y: auto; 
    overflow-x: hidden;
    background-color: #f4f7f4;
    overscroll-behavior-y: none; 
    user-select: none; 
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

html.dark, html.dark body { 
    background-color: #1a261a; 
}

button:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.music-bars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    position: absolute;
    inset: 0;
}

.music-bar {
    width: 3px;
    background-color: white;
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out;
}

.music-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.music-bar:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.music-bar:nth-child(3) { height: 50%; animation-delay: 0.4s; }

@keyframes equalize {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #94a3b8; border-radius: 20px; opacity: 0.5; }
.dark ::-webkit-scrollbar-thumb { background-color: #334155; }

.logo-white-filter { filter: brightness(0) invert(1); }
.font-handwriting { font-family: 'Inter', sans-serif; font-style: italic; }
.bubble { box-shadow: inset -2px -2px 6px rgba(0,0,0,0.1), inset 2px 2px 6px rgba(255,255,255,0.8), 2px 2px 5px rgba(0,0,0,0.05); }
.star-glow { filter: drop-shadow(0 0 8px white); animation: starPulse 2s infinite alternate; }

.card-flip { transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); }
.card-flip.flipped { transform: rotateY(180deg); }
.card-face { backface-visibility: hidden; }
.card-back { transform: rotateY(180deg); }
.transform-style-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }
.rotate-y-180 { transform: rotateY(180deg); }
.mirror-video { transform: scaleX(-1); }

@keyframes starPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 5px white); }
    to { transform: scale(1.3); filter: drop-shadow(0 0 15px #a5b4fc); }
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); opacity: 0.8; filter: brightness(1); }
    25% { transform: scale(1.1) rotate(2deg); opacity: 1; filter: brightness(1.2); }
    50% { transform: scale(0.95) rotate(-1deg); opacity: 0.9; filter: brightness(1.1); }
    75% { transform: scale(1.05) rotate(1deg); opacity: 1; filter: brightness(1.3); }
}

.animate-fire-flicker {
    animation: fireFlicker 0.4s infinite ease-in-out alternate;
}

@keyframes ashFall {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.5); opacity: 0; }
    5% { transform: translateY(-15px) translateX(0) rotate(10deg) scale(1); opacity: 1; }
    20% { opacity: 0.9; }
    100% { transform: translateY(200px) translateX(20px) rotate(180deg) scale(0.4); opacity: 0; }
}

.animate-ash-fall {
    animation: ashFall 3s ease-in forwards;
}

@keyframes consumePaperUpwards {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.animate-consume-up {
    animation: consumePaperUpwards 4s linear forwards;
}

@keyframes burnLineMove {
    0% { bottom: 0%; opacity: 1; }
    95% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

.animate-burn-line {
    animation: burnLineMove 4s linear forwards;
}

@keyframes pulseNetwork {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.8; }
}

.animate-pulse-network {
    animation: pulseNetwork 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
}

.animate-breathe {
    animation: breathe 4s ease-in-out infinite;
}