body {
    margin: 0;
    background: #000;
    color: #e50914;
    font-family: 'Cinzel', serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-container {
    text-align: center;
    animation: fadeIn 3s ease-in-out;
    width: 100%;
    padding: 0 1rem;
    transition: opacity 1.5s ease-in-out;
}

.title-container.fade-out {
    opacity: 0;
}

/* Desktop / default */
.title-main {
    font-size: 5rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 12px #e50914;
    line-height: 1.1;
}

.word {
    display: block;
}

.title-sub {
    margin-top: 1.5rem;
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-shadow: 0 0 8px #e50914;
}

.line {
    width: 80%;
    height: 3px;
    background: #e50914;
    margin: 1rem auto;
    box-shadow: 0 0 10px #e50914;
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 600px) {

    body {
        align-items: flex-start;
        padding-top: 12vh;
    }

    .title-main {
        font-size: 12vw;
        letter-spacing: 1vw;
    }

    .title-sub {
        font-size: 5vw;
        letter-spacing: 0.5vw;
        margin-top: 2rem;
    }

    .line {
        width: 90%;
        height: 4px;
        margin: 1.2rem auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ----------------------------- */
/*        POLLYWOG CREATURE      */
/* ----------------------------- */

/* Wrapper for safe pop animation */
#pollywog-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#pollywog {
    position: absolute;
    width: 60px;
    height: 40px;
    background: radial-gradient(circle at 30% 40%, #7fffa1, #2e8b57);
    border-radius: 50% 50% 40% 40%;
    pointer-events: auto;
    z-index: 10;
}

/* Eyes */
#pollywog::before,
#pollywog::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: black;
    border-radius: 50%;
    top: 12px;
}

#pollywog::before { left: 14px; }
#pollywog::after  { right: 14px; }

/* Tail */
#pollywog .tail {
    position: absolute;
    width: 30px;
    height: 20px;
    background: radial-gradient(circle at 20% 50%, #7fffa1, #2e8b57);
    border-radius: 50%;
    right: -20px;
    top: 10px;
    transform: rotate(20deg);
}

/* Wiggle animation (visual only) */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(6deg); }
}

#pollywog {
    animation: wiggle 1.5s infinite ease-in-out;
}

/* Pop animation (wrapper only) */
@keyframes pollyPop {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.8); }
    100% { opacity: 0; transform: scale(0); }
}

.polly-pop {
    animation: pollyPop 0.35s ease-out forwards;
}
