* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: black;
    color: white;
    height: 100vh;
    overflow: hidden;
}

/* LOCK SCREEN */
.lock-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #000, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 1.2s ease;
}

.lock-box {
    text-align: center;
    animation: fadeIn 1.5s ease;
}

.lock-box h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.lock-box p {
    opacity: 0.7;
    margin-bottom: 20px;
}

.lock-box input {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    outline: none;
    text-align: center;
    margin-bottom: 15px;
}

.lock-box button {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #ff77ff, #8f6fff);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.lock-box button:hover {
    transform: scale(1.05);
}

.error {
    margin-top: 15px;
    color: #ff9aa2;
}

.hidden {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05), black 70%);
    animation: pulse 6s infinite alternate;
}

.scene {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-align: center;
}
.title {
    transform: translateX(50px);
}

.title {
    font-size: 64px;
    letter-spacing: 2px;
}

.white {
    color: white;
}

.black {
    color: black;
    background: white;
    padding: 5px 15px;
    border-radius: 12px;
}

.heart {
    color: red;
    margin: 0 10px;
    animation: beat 1.5s infinite;
}

.intro {
    opacity: 0;
    animation: fadeIn 3s forwards;
    animation-delay: 1s;
    max-width: 500px;
}

.timer {
    font-size: 20px;
    opacity: 0;
    animation: fadeIn 3s forwards;
    animation-delay: 2s;
}

.magic-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}

.magic-btn:hover {
    background: white;
    color: black;
}

.pets img {
    width: 120px;
    position: absolute;
    animation: float 6s infinite alternate;
}

.final {
    margin-top: 30px;
    font-size: 22px;
    opacity: 0;
    transition: 2s;
}

.hidden {
    display: none;
}

/* АНИМАЦИИ */
@keyframes beat {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

@keyframes pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

@keyframes bgFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.trail {
    position: fixed;
    font-size: 25px;
    pointer-events: none;
    color: rgba(255, 183, 255, 0.8);
    animation: heartSoft 1.2s ease-out forwards;
    z-index: 999;
    text-shadow: 0 0 6px rgba(255, 183, 255, 0.6);
}

.spark {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 220, 255, 0.6);
    animation: sparkSoft 1s ease-out forwards;
    z-index: 998;
}


@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes heartFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

@keyframes sparkFly {
    to {
        opacity: 0;
        transform: translate(var(--x), var(--y));
    }
}

@keyframes heartSoft {
    from {
        opacity: 1;
        transform: scale(0.8);
    }
    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes sparkSoft {
    to {
        opacity: 0;
        transform: translate(
            calc(var(--x) * 0.6),
            calc(var(--y) * 0.6)
        );
    }
}

.magic-img {
    position: fixed;
    width: 120px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease;
    will-change: transform;
}


@keyframes flyOut {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(1);
        opacity: 0;
    }
}

.footer {
    position: fixed;
    bottom: 15px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.shake {
    animation: softShake 0.4s ease;
}

@keyframes softShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

#flash {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.95), white);
    opacity: 0;
    pointer-events: none;
    z-index: 200;
    transition: opacity 1.5s ease;
}

.heart {
    color: #ff3b6f;
    font-size: 4rem;
    margin: 0 14px;
    display: inline-block;
    transform-origin: center;
    animation: heartbeat 1.4s infinite;
    filter: drop-shadow(0 0 12px rgba(255, 59, 111, 0.4));
    cursor: pointer;
    user-select: none;
}

.heart:active {
    transform: scale(0.85);
}

.heart-particle {
    position: fixed;
    font-size: 14px;
    color: rgba(255, 160, 200, 0.9);
    pointer-events: none;
    animation: heartParticle 1.6s ease-out forwards;
    text-shadow: 0 0 6px rgba(255, 160, 200, 0.6);
    z-index: 1000;
}

@keyframes heartParticle {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(1.4);
        opacity: 0;
    }
}

@keyframes heartbeat {
    0%   { transform: scale(1); }
    10%  { transform: scale(1.25); }
    18%  { transform: scale(1.1); }
    30%  { transform: scale(1.35); }
    45%  { transform: scale(1); }
    100% { transform: scale(1); }
}

.white, .black {
    display: inline-block;
    animation: liveText 4.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes liveText {
    0% {
        transform: scale(1, 1);
    }
    50% {
        transform: scale(1.015, 0.985);
    }
    100% {
        transform: scale(1, 1);
    }
}

.white {
    animation-delay: 0s;
}

.black {
    animation-delay: 0.35s;
}

.white {
    animation: liveText 4.8s ease-in-out infinite, pullLeft 1.4s infinite;
}

.black {
    animation: liveText 4.8s ease-in-out infinite, pullRight 1.4s infinite;
}

@keyframes pullLeft {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

@keyframes pullRight {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}