/**
 * home-eggs.css - Easter Egg Animations & Styles
 *
 * All easter egg keyframes, classes, transitions, and mobile adjustments.
 * Extracted from home.css to keep page layout separate from egg effects.
 */

/* ========================================
   EASTER EGG ANIMATIONS - Keyframes
   ======================================== */

@keyframes trailFade {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes flyAcross {
    0% { left: -100px; top: 20%; transform: scaleX(1); }
    45% { left: 110%; top: 30%; transform: scaleX(1); }
    50% { left: 110%; top: 30%; transform: scaleX(-1); }
    95% { left: -100px; top: 25%; transform: scaleX(-1); }
    100% { left: -100px; top: 20%; transform: scaleX(1); }
}

@keyframes poopFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(calc(100vh + 100px)) rotate(360deg); opacity: 0.8; }
}

@keyframes fartFloat {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2) translateY(-50px); opacity: 0; }
}

@keyframes zzzFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spinAway {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(2) rotate(720deg); opacity: 0; }
}

@keyframes congaMove {
    0% { left: -80px; transform: translateY(0) rotate(-10deg); }
    10% { transform: translateY(-15px) rotate(10deg); }
    20% { transform: translateY(0) rotate(-10deg); }
    30% { transform: translateY(-15px) rotate(10deg); }
    40% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
    60% { transform: translateY(0) rotate(-10deg); }
    70% { transform: translateY(-15px) rotate(10deg); }
    80% { transform: translateY(0) rotate(-10deg); }
    90% { transform: translateY(-15px) rotate(10deg); }
    100% { left: calc(100vw + 80px); transform: translateY(0) rotate(-10deg); }
}

@keyframes congaMoveReverse {
    0% { right: -80px; transform: scaleX(-1) translateY(0) rotate(10deg); }
    10% { transform: scaleX(-1) translateY(-15px) rotate(-10deg); }
    20% { transform: scaleX(-1) translateY(0) rotate(10deg); }
    30% { transform: scaleX(-1) translateY(-15px) rotate(-10deg); }
    40% { transform: scaleX(-1) translateY(0) rotate(10deg); }
    50% { transform: scaleX(-1) translateY(-15px) rotate(-10deg); }
    60% { transform: scaleX(-1) translateY(0) rotate(10deg); }
    70% { transform: scaleX(-1) translateY(-15px) rotate(-10deg); }
    80% { transform: scaleX(-1) translateY(0) rotate(10deg); }
    90% { transform: scaleX(-1) translateY(-15px) rotate(-10deg); }
    100% { right: calc(100vw + 80px); transform: scaleX(-1) translateY(0) rotate(10deg); }
}

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-1deg); }
    20% { transform: translateX(10px) rotate(1deg); }
    30% { transform: translateX(-10px) rotate(-1deg); }
    40% { transform: translateX(10px) rotate(1deg); }
    50% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
    70% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    90% { transform: translateX(-2px); }
}

@keyframes explodeOut {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0.5) rotate(360deg) translateY(-100px); opacity: 0; }
}

@keyframes floatUp {
    to {
        top: -100px !important;
        bottom: auto !important;
        transform: translateY(-100px) rotate(180deg);
    }
}

@keyframes floatDown {
    to {
        top: calc(100vh + 50px) !important;
    }
}

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

@keyframes portalGrow {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: rotate(0deg);
    }
    50% {
        width: 300px;
        height: 300px;
        opacity: 1;
        transform: rotate(180deg);
    }
    80% {
        width: 280px;
        height: 280px;
        transform: rotate(360deg);
    }
    100% {
        width: 2000px;
        height: 2000px;
        opacity: 1;
        transform: rotate(720deg);
    }
}

@keyframes dizzyWobble {
    0%, 100% { transform: rotate(-2deg) scale(1.02); }
    50% { transform: rotate(2deg) scale(0.98); }
}

@keyframes dizzyRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes drawIndicatorPulse {
    0%, 100% { border-color: rgba(131, 56, 236, 0.6); }
    50% { border-color: rgba(255, 0, 110, 0.8); }
}

@keyframes confettiFall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes portalBgFade {
    0% { background: rgba(0, 0, 0, 0); }
    50% { background: rgba(0, 0, 0, 0.7); }
    100% { background: rgba(0, 0, 0, 1); }
}

@keyframes portalTextFade {
    0%, 30% { opacity: 0; }
    50% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes toastSlide {
    0% { transform: translateX(-50%) translateY(100px); opacity: 0; }
    15% { transform: translateX(-50%) translateY(0); opacity: 1; }
    85% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes discoSpin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes discoBackground {
    0% { background: #ff6b6b; }
    25% { background: #feca57; }
    50% { background: #48dbfb; }
    75% { background: #ff9ff3; }
    100% { background: #ff6b6b; }
}

@keyframes rainbowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

@keyframes tinyFade {
    to { opacity: 0; transform: scale(0); }
}

@keyframes explosionPop {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes scrambleShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes congaTextPop {
    0% { transform: translateX(-50%) scale(0); }
    50% { transform: translateX(-50%) scale(1.3); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes dizzySpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* ========================================
   EASTER EGG ANIMATIONS - Classes
   ======================================== */

/* Rainbow trail particle */
.trail {
    position: fixed;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 0.8s forwards;
    z-index: var(--z-modal);
}

/* Flying unicorn */
.unicorn {
    position: fixed;
    font-size: 4rem;
    z-index: var(--z-floating);
    animation: flyAcross 12s linear infinite;
    cursor: pointer;
    transition: filter 0.1s;
}

.unicorn:hover {
    filter: drop-shadow(0 0 10px gold);
}

/* Disco ball */
.disco-ball {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    cursor: pointer;
    z-index: var(--z-overlay);
    animation: discoSpin 4s linear infinite;
    transition: transform 0.2s;
}

.disco-ball:hover {
    transform: translateX(-50%) scale(1.2);
}

/* Rainbow arc (hidden until activated) */
.rainbow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 150px;
    background: conic-gradient(from 180deg,
        red, orange, yellow, green, blue, indigo, violet,
        violet, indigo, blue, green, yellow, orange, red);
    border-radius: 0 0 300px 300px;
    opacity: 0;
    z-index: var(--z-background);
    transition: opacity 1s;
}

.rainbow.show {
    opacity: 0.5;
    animation: rainbowPulse 2s ease infinite;
}

/* Poop emoji falling */
.poop {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    z-index: var(--z-modal);
    animation: poopFall 2s linear forwards;
    pointer-events: none;
}

/* Fart cloud floating */
.fart-cloud {
    position: fixed;
    font-size: 3rem;
    z-index: var(--z-popover);
    animation: fartFloat 1.5s ease forwards;
    pointer-events: none;
}

/* Sleep mode overlay */
.sleep-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 20, 0.85);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: sleepFadeIn 2s ease;
}

/* Floating Zzz emojis */
.sleep-overlay .zzz {
    font-size: 4rem;
    color: white;
    animation: zzzFloat 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.sleep-overlay .zzz:nth-child(2) {
    animation-delay: 0.5s;
    font-size: 3rem;
    opacity: 0.7;
}

.sleep-overlay .zzz:nth-child(3) {
    animation-delay: 1s;
    font-size: 2rem;
    opacity: 0.5;
}

/* Tap to wake message */
.sleep-overlay .wake-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 30px;
    animation: pulse 2s ease infinite;
}

/* Speech bubble for animals */
.speech-bubble {
    position: fixed;
    background: white;
    padding: 10px 15px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-popover);
    animation: popIn 0.3s ease;
    max-width: 200px;
    text-align: center;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: white;
}

/* Clickable emoji spin state (teleport) */
.clickable-emoji.spin {
    animation: spinAway 0.5s ease forwards;
}

/* Conga line emoji */
.conga-emoji {
    position: fixed;
    font-size: 4rem;
    z-index: var(--z-overlay);
    animation: congaMove 3s linear forwards;
    pointer-events: none;
}

/* Reverse conga line */
.conga-emoji-reverse {
    position: fixed;
    font-size: 4rem;
    z-index: var(--z-overlay);
    animation: congaMoveReverse 3s linear forwards;
    pointer-events: none;
    transform: scaleX(-1);
}

/* Conga announcement text */
.conga-text {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #8338ec;
    z-index: var(--z-modal);
    animation: congaTextPop 0.5s ease, trailFade 2s ease 1s forwards;
    pointer-events: none;
}

/* Body shake state */
body.shaking {
    animation: screenShake 0.5s ease;
}

/* Upside down mode */
body.upside-down {
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}

.upside-down-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px #ff006e;
    z-index: var(--z-modal);
    animation: popIn 0.5s ease;
    pointer-events: none;
}

/* Dizzy mode */
body.dizzy-mode {
    animation: dizzyRotate 3s ease-in-out;
}

body.dizzy-mode * {
    transition: transform 0.3s ease;
}

.dizzy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-modal);
    animation: dizzyWobble 0.5s ease infinite;
}

.dizzy-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px #ff006e, 0 0 40px #8338ec;
    z-index: var(--z-modal);
    animation: dizzySpin 0.5s linear infinite;
    pointer-events: none;
}

/* Portal overlay */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: var(--z-modal);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    animation: portalBgFade 2s ease forwards;
}

/* The swirling portal */
.portal {
    width: 0;
    height: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b, #ff006e
    );
    animation: portalGrow 2s ease forwards;
    position: relative;
    box-shadow:
        0 0 60px #8338ec,
        0 0 100px #3a86ff,
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.portal::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, #000 0%, #1a0a2e 50%, transparent 70%);
    opacity: 0;
    animation: sleepFadeIn 1s ease 0.5s forwards;
}

.portal::after {
    content: '\1F300';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: portalTextFade 2s ease forwards;
    opacity: 0;
}

/* Portal text */
.portal-text {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 20px #8338ec;
    animation: portalTextFade 2s ease forwards;
    top: calc(50% + 180px);
}

/* Circle drawing indicator */
.draw-indicator {
    position: fixed;
    border-radius: 50%;
    border: 3px dashed rgba(131, 56, 236, 0.6);
    pointer-events: none;
    z-index: var(--z-modal);
    animation: drawIndicatorPulse 0.5s ease infinite;
}

/* Confetti particle */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: var(--z-popover);
    animation: confettiFall 3s linear forwards;
}

/* Shake explosion emoji */
.shake-emoji {
    position: fixed;
    font-size: 3rem;
    z-index: var(--z-overlay);
    animation: explodeOut 1s ease forwards;
    pointer-events: none;
}

/* Bored button explosion pieces */
.tiny-button {
    position: fixed;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 4px 8px;
    font-size: 0.4rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    z-index: var(--z-modal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
    white-space: nowrap;
}

.tiny-button:hover {
    transform: scale(1.3);
}

.tiny-button:active {
    transform: scale(0.8);
}

.tiny-button.fading {
    animation: tinyFade 1s ease forwards;
}

/* Bored button explosion center */
.bored-explosion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: var(--z-modal);
    animation: explosionPop 0.5s ease forwards;
    pointer-events: none;
}

/* Name scrambler shake effect */
.scramble-name.scrambling {
    animation: textGradient 3s ease infinite, scrambleShake 0.08s ease infinite;
}

/* Reverse gravity mode */
body.reverse-gravity .clickable-emoji {
    animation: floatUp 1s ease forwards !important;
}

body.reverse-gravity .bouncing-emoji {
    animation: floatUp 1s ease forwards !important;
}

body.reverse-gravity .unicorn {
    animation: floatUp 1s ease forwards !important;
}

body.reverse-gravity .greeting-card {
    transform: rotate(180deg) !important;
    transition: transform 0.5s ease;
}

body.reverse-gravity .disco-ball {
    animation: floatDown 1s ease forwards !important;
}

/* Reverse gravity text */
.gravity-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px #3a86ff;
    z-index: var(--z-modal);
    animation: popIn 0.5s ease;
    pointer-events: none;
}

/* Gravity arrow indicator */
.gravity-arrow {
    position: fixed;
    font-size: 4rem;
    z-index: var(--z-modal);
    animation: arrowBounce 0.5s ease infinite;
    pointer-events: none;
}

/* Disco mode body state */
body.disco-mode {
    animation: discoBackground 0.5s infinite;
}

/* Achievement toast */
.achievement-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    z-index: var(--z-modal);
    animation: toastSlide 3s ease forwards;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

.achievement-toast .title {
    font-size: var(--font-size-base);
    color: #7b2d00;
    font-weight: bold;
}

.achievement-toast .emoji {
    font-size: 1.5rem;
    margin-right: var(--space-2);
}

/* Secret message popup */
.secret-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    text-align: center;
    z-index: var(--z-modal);
    animation: popIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.secret-message button {
    margin-top: var(--space-4);
    padding: var(--space-2) var(--space-5);
    border: none;
    background: white;
    color: #764ba2;
    border-radius: var(--radius-lg);
    font-weight: bold;
    cursor: pointer;
}

/* ========================================
   RAINBOW FART TRANSITION (to unicorn.html)
   ======================================== */

.rainbow-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: var(--z-modal);
    pointer-events: none;
    animation: rainbowBgFade 2s ease forwards;
    overflow: hidden;
}

.rainbow-cloud {
    position: absolute;
    font-size: 3rem;
    animation: cloudToVortex 2s ease-in forwards;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes rainbowBgFade {
    0% {
        background: rgba(0, 0, 0, 0);
    }
    50% {
        background: linear-gradient(135deg,
            rgba(255, 107, 107, 0.3),
            rgba(107, 203, 119, 0.3),
            rgba(168, 85, 247, 0.3));
    }
    100% {
        background: linear-gradient(135deg,
            rgba(255, 107, 107, 0.8),
            rgba(255, 217, 61, 0.8),
            rgba(107, 203, 119, 0.8),
            rgba(77, 150, 255, 0.8),
            rgba(168, 85, 247, 0.8));
    }
}

@keyframes cloudToVortex {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    70% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0.3) rotate(540deg) translate(-50%, -50%);
        opacity: 0.5;
        left: 50%;
        top: 50%;
    }
}

/* ========================================
   ANIMAL COMBO - Cat Nap
   ======================================== */

/* Cat tilts on its side */
.cat-nap-tilt {
    transform: rotate(90deg) !important;
    transition: transform 0.5s ease;
    animation: none !important;
}

/* Dark screen overlay */
.cat-nap-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 20, 0.9);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: var(--z-modal);
    pointer-events: none;
}

.cat-nap-overlay.active {
    opacity: 0.7;
}

/* Floating 💤 element */
.cat-nap-zzz {
    position: fixed;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: calc(var(--z-modal) + 1);
    animation: floatUpZzz 2s ease-out forwards;
}

@keyframes floatUpZzz {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(1.3); }
}

/* Firefly glowing dot */
.cat-nap-firefly {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffaa;
    box-shadow: 0 0 6px 2px rgba(255, 255, 170, 0.8), 0 0 12px 4px rgba(255, 255, 170, 0.4);
    pointer-events: none;
    z-index: calc(var(--z-modal) + 1);
    animation: fireflyTwinkle 1.5s ease-in-out infinite;
}

@keyframes fireflyTwinkle {
    0%, 100% { opacity: 0.2; transform: translate(0, 0); }
    50% { opacity: 1; transform: translate(5px, -5px); }
}

/* Alarm emoji pop-in + shake */
.alarm-pop {
    position: fixed;
    font-size: 4rem;
    z-index: calc(var(--z-modal) + 2);
    pointer-events: none;
    animation: popIn 0.3s ease, alarmShake 0.1s ease infinite 0.3s;
}

@keyframes alarmShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4px, -2px); }
    50% { transform: translate(4px, 2px); }
    75% { transform: translate(-2px, 4px); }
}

/* Alarm text */
.alarm-text {
    position: fixed;
    font-size: 2rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.8);
    z-index: calc(var(--z-modal) + 2);
    pointer-events: none;
    animation: popIn 0.3s ease;
}

/* Cat bounce when waking up */
.cat-bounce-wake {
    animation: bounceWake 0.5s ease !important;
    transform: rotate(0deg) !important;
}

@keyframes bounceWake {
    0% { transform: rotate(90deg) scale(1); }
    30% { transform: rotate(0deg) scale(1.3); }
    60% { transform: rotate(0deg) scale(0.9); }
    100% { transform: rotate(0deg) scale(1); }
}

/* ========================================
   ANIMAL COMBO - Dog Zoomies
   ======================================== */

/* Afterimage trail element */
.dog-afterimage {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-overlay);
    font-size: var(--font-size-3xl);
    animation: afterimageFade 300ms ease forwards;
}

@keyframes afterimageFade {
    0% { opacity: 0.4; }
    100% { opacity: 0; }
}

/* Animal dodge animation */
.animal-dodge {
    animation: dodgeJump 0.4s ease !important;
}

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

/* Stars circling after crash */
.stars-circle {
    position: fixed;
    pointer-events: none;
    z-index: calc(var(--z-overlay) + 1);
}

.stars-circle .star {
    position: absolute;
    font-size: 1.2rem;
    animation: orbitStars 0.8s linear infinite;
}

@keyframes orbitStars {
    from { transform: rotate(0deg) translateX(25px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

/* Dog wobble after crash */
.dog-wobble {
    animation: wobbleShake 0.3s ease-in-out infinite !important;
}

@keyframes wobbleShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Shaking speech bubble variant */
.speech-shake {
    animation: popIn 0.3s ease, alarmShake 0.08s ease infinite 0.3s !important;
}

/* ========================================
   ANIMAL COMBO - Frog Prince
   ======================================== */

/* Sparkle element */
.frog-prince-sparkle {
    position: fixed;
    font-size: 16px;
    pointer-events: none;
    z-index: calc(var(--z-modal) + 1);
    animation: sparkleExplode 0.5s ease-out forwards;
}

@keyframes sparkleExplode {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    50% { transform: translate(var(--sparkle-x, 40px), var(--sparkle-y, -40px)) scale(1.5); opacity: 1; }
    100% { transform: translate(var(--sparkle-x, 40px), var(--sparkle-y, -40px)) scale(0); opacity: 0; }
}

/* Frog grows with magical feel */
.frog-prince-grow {
    transform: scale(2) !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: none !important;
}

/* Crown descending */
.frog-prince-crown {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: calc(var(--z-modal) + 2);
    animation: crownDescend 0.5s ease-out forwards;
}

@keyframes crownDescend {
    0% { transform: translateY(-80px); opacity: 0; }
    70% { transform: translateY(5px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Crown fly-off on rejection */
.frog-prince-crown-flyoff {
    animation: crownFlyOff 0.6s ease-in forwards !important;
}

@keyframes crownFlyOff {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateX(300px) translateY(-200px) rotate(720deg); opacity: 0; }
}

/* "A Prince!" text */
.frog-prince-text {
    position: fixed;
    font-family: cursive, fantasy, serif;
    font-size: 28px;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
    pointer-events: none;
    z-index: calc(var(--z-modal) + 2);
    transform: translateX(-50%);
    animation: textAppearFancy 0.5s ease-out forwards;
}

@keyframes textAppearFancy {
    0% { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-5deg); }
    70% { opacity: 1; transform: translateX(-50%) scale(1.1) rotate(2deg); }
    100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
}

/* "NOPE" slam text */
.frog-prince-nope {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 60px;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    pointer-events: none;
    z-index: calc(var(--z-modal) + 3);
    animation: slamDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slamDown {
    0% { transform: translate(-50%, calc(-50% - 200px)); opacity: 0; }
    60% { transform: translate(-50%, calc(-50% + 10px)); opacity: 1; }
    80% { transform: translate(-50%, calc(-50% - 5px)); }
    100% { transform: translate(-50%, -50%); }
}

/* ========================================
   ANIMAL COMBO - Pack Howl
   ======================================== */

/* Night overlay */
.pack-howl-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to top, #0a0a2e, #1a1a4e 50%, #0d0d3d);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 9998;
    pointer-events: none;
}

.pack-howl-overlay.active {
    opacity: 0.85;
}

/* Golden moon */
.pack-howl-moon {
    position: fixed;
    right: 15%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffd700 0%, #ffaa00 40%, transparent 70%);
    z-index: 9999;
    pointer-events: none;
    animation: moonRise 1s ease-out forwards;
}

@keyframes moonRise {
    0% { top: 100vh; }
    100% { top: 10vh; }
}

.pack-howl-moon.moon-set {
    animation: moonSet 0.8s ease-in forwards !important;
}

@keyframes moonSet {
    0% { top: 10vh; }
    100% { top: 100vh; }
}

/* Animal head tilt for howling */
.pack-howl-tilt {
    transform: rotate(-20deg) !important;
    transition: transform 0.5s ease !important;
}

/* Aurora borealis */
.aurora-borealis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background:
        linear-gradient(90deg, transparent, rgba(0, 255, 100, 0.3), transparent) 0 0 / 200% 100%,
        linear-gradient(90deg, transparent, rgba(128, 0, 255, 0.2), transparent) 50% 30% / 200% 100%,
        linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.2), transparent) 100% 60% / 200% 100%;
    opacity: 0.6;
    z-index: 9999;
    pointer-events: none;
    animation: auroraFlow 3s ease-in-out infinite;
}

@keyframes auroraFlow {
    0% { background-position: 0% 0%, 50% 30%, 100% 60%; }
    50% { background-position: 100% 0%, 150% 30%, 200% 60%; }
    100% { background-position: 200% 0%, 250% 30%, 300% 60%; }
}

/* Wolf emoji */
.wolf-emoji {
    position: fixed;
    font-size: 40px;
    top: 60%;
    right: -60px;
    z-index: 10000;
    pointer-events: none;
}

.wolf-emoji.wolf-slide-in {
    animation: slideInFromRight 0.5s ease-out forwards;
}

.wolf-emoji.wolf-slide-out {
    animation: slideOutRight 0.5s ease-in forwards;
}

@keyframes slideInFromRight {
    0% { right: -60px; }
    100% { right: 10%; }
}

@keyframes slideOutRight {
    0% { right: 10%; }
    100% { right: -60px; }
}

/* ========================================
   ANIMAL COMBO - Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .cat-nap-tilt,
    .cat-bounce-wake {
        transition: none;
        animation: none !important;
    }

    .cat-nap-overlay {
        transition: none;
    }

    .cat-nap-zzz,
    .cat-nap-firefly,
    .alarm-pop,
    .alarm-text,
    .dog-afterimage,
    .animal-dodge,
    .stars-circle .star,
    .dog-wobble,
    .speech-shake,
    .frog-prince-sparkle,
    .frog-prince-crown,
    .frog-prince-crown-flyoff,
    .frog-prince-text,
    .frog-prince-nope,
    .pack-howl-moon,
    .aurora-borealis,
    .wolf-emoji.wolf-slide-in,
    .wolf-emoji.wolf-slide-out {
        animation: none !important;
    }

    .frog-prince-grow {
        transition: none !important;
        animation: none !important;
    }

    .pack-howl-overlay {
        transition: none;
    }

    .pack-howl-tilt {
        transition: none !important;
    }

    .cat-nap-zzz {
        opacity: 0.6;
    }

    .cat-nap-firefly {
        opacity: 0.5;
    }

    .dog-afterimage {
        opacity: 0;
    }

    .frog-prince-sparkle {
        opacity: 0;
    }
}

/* ========================================
   EASTER EGG - Mobile Adjustments
   ======================================== */

@media (max-width: 480px) {
    .unicorn {
        font-size: 3rem;
    }

    .disco-ball {
        font-size: 2.5rem;
    }

    .conga-emoji,
    .conga-emoji-reverse {
        font-size: 3rem;
    }

    .sleep-overlay .zzz {
        font-size: 3rem;
    }

    .portal-text {
        font-size: 1rem;
    }
}
