/**
 * home.css - Home Page Styles
 *
 * Styles specific to the home page (index.html).
 * Uses design tokens from variables.css.
 *
 * Animated version - CSS keyframe animations for page elements.
 */

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes sneakyPulse {
    0%, 90%, 100% { opacity: 0.5; transform: scale(1); }
    95% { opacity: 1; transform: scale(1.1); }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ========================================
   PAGE BACKGROUND
   ======================================== */

body {
    background: var(--gradient-primary);
    animation: gradientShift 8s ease infinite;
}

/* ========================================
   FIXED DECORATIVE ELEMENTS
   ======================================== */

.clickable-emoji {
    position: fixed;
    font-size: var(--font-size-3xl);
    cursor: pointer;
    z-index: var(--z-floating);
    animation: gentleFloat 4s ease-in-out infinite;
    transition: transform 0.2s;
}

.clickable-emoji:hover {
    transform: scale(1.3);
}

.clickable-emoji:active {
    transform: scale(0.8);
}

.bouncing-emoji {
    position: fixed;
    font-size: var(--font-size-2xl);
    z-index: var(--z-overlay);
    pointer-events: none;
    animation: bounce 2s ease-in-out infinite;
}

/* Position bouncing emojis near bottom-right to distract from button */
.bouncing-emoji:nth-child(1) { bottom: 10px; right: 80px; animation-delay: 0s; }
.bouncing-emoji:nth-child(2) { bottom: 50px; right: 10px; animation-delay: 0.3s; }
.bouncing-emoji:nth-child(3) { bottom: 10px; right: 140px; animation-delay: 0.6s; }
.bouncing-emoji:nth-child(4) { bottom: 60px; right: 70px; animation-delay: 0.2s; }
.bouncing-emoji:nth-child(5) { bottom: 30px; right: 120px; animation-delay: 0.5s; }

/* ========================================
   SECRET BUTTON
   ======================================== */

.dont-touch-container {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-overlay);
}

.dont-touch-btn {
    background: var(--color-surface-overlay);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    opacity: 0.5;
    animation: sneakyPulse 4s ease infinite;
    transition: all 0.3s;
}

.dont-touch-btn:hover {
    transform: scale(1.2);
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 10px 15px;
    opacity: 1;
}

/* ========================================
   MAIN CONTENT WRAPPER
   ======================================== */

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-5);
    position: relative;
    z-index: var(--z-content);
}

/* ========================================
   GREETING CARD
   ======================================== */

.greeting-card {
    background: var(--color-surface-card);
    padding: var(--space-8) var(--space-9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    max-width: 90%;
    animation: floatCard 3s ease-in-out infinite;
}

/* ========================================
   TITLE AND SUBTITLE
   ======================================== */

h1 {
    font-size: var(--font-size-3xl);
    background: var(--gradient-title);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    animation: textGradient 3s ease infinite;
}

.scramble-name {
    /* Span for future animation - inherits h1 styles */
}

.subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-primary-2);
    margin-bottom: var(--space-5);
}

/* ========================================
   SPARKLE DECORATIONS
   ======================================== */

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: gold;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 10%; right: 10%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 30%; right: 10%; animation-delay: 0.9s; }

/* ========================================
   JOKE BOX
   ======================================== */

.joke-box {
    background: var(--gradient-joke);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    margin-top: var(--space-4);
    cursor: pointer;
    transition: transform 0.2s;
}

.joke-box:hover {
    transform: scale(1.02);
}

.joke-box:active {
    transform: scale(0.98);
}

.joke-label {
    font-size: var(--font-size-md);
    color: var(--color-accent-orange);
    font-weight: bold;
    margin-bottom: var(--space-2);
}

.joke-text {
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
}

.joke-answer {
    font-weight: bold;
    color: var(--color-accent-purple);
    margin-top: var(--space-2);
    opacity: 0;
    transition: opacity 0.3s;
}

.tap-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-2);
}

/* Revealed state */
.joke-box.revealed .joke-answer {
    opacity: 1;
}

.joke-box.revealed .tap-hint {
    display: none;
}

/* ========================================
   NAME GENERATORS
   ======================================== */

.name-generators {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

.name-gen-box {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.name-gen-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.name-gen-box:active {
    transform: scale(0.95);
}

.name-gen-box.fairy {
    background: var(--gradient-fairy);
}

.name-gen-box.numpty {
    background: var(--gradient-numpty);
}

.name-gen-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-weight: bold;
    margin-bottom: var(--space-1);
}

.name-gen-result {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    font-weight: bold;
    min-height: 1.5em;
}

.name-gen-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

/* Activated state - hint hidden after first click */
.name-gen-box.activated .name-gen-hint {
    display: none;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 480px) {
    .greeting-card {
        padding: var(--space-5) var(--space-4);
    }

    h1 {
        font-size: var(--font-size-2xl);
    }

    .name-gen-box {
        min-width: 100%;
    }
}

/* ========================================
   REDUCED MOTION PREFERENCE
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    body,
    .greeting-card,
    h1,
    .sparkle,
    .dont-touch-btn,
    .clickable-emoji,
    .bouncing-emoji {
        animation: none;
    }

    .sparkle {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   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;
}

/* ========================================
   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;
    }
}
