body {
    margin: 0;
    min-height: 100vh;
    font-family: "Trebuchet MS", Verdana, sans-serif;

    /* BACK TO POLKA DOTS 💖 */
    background-color: #ffc0cb;
    background-image:
        radial-gradient(white 2px, transparent 2px),
        radial-gradient(white 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: min(90%, 520px);
    background: #ffe6f2;
    border: 3px solid hotpink;
    border-radius: 24px;
    padding: 38px 28px;
    text-align: center;

    box-shadow:
        0 0 0 4px rgba(255,255,255,0.6),
        0 0 25px hotpink;
}

h1 {
    margin: 0 0 16px;
    font-size: 3rem;
    color: hotpink;
    text-shadow:
        2px 2px 0 white,
        4px 4px 0 #ff99cc;
}

.subtitle {
    margin: 0 0 24px;
    color: #cc6699;
    font-size: 1.1rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

button {
    background: linear-gradient(to bottom, #fff0f7, #ffb3d9);
    border: 2px solid hotpink;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    color: #99004d;

    box-shadow: 0 4px 10px rgba(255, 0, 128, 0.4);
    transition: all 0.2s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 0, 128, 0.6);
}

button:active {
    transform: scale(0.95);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#loading,
#result {
    margin-top: 16px;
    min-height: 28px;
    padding: 14px;
    border-radius: 16px;
    font-size: 1.05rem;
}

#loading {
    display: none;
    background: white;
    border: 2px dashed hotpink;
    color: hotpink;
}

#result {
    background: white;
    border: 2px solid #ff99cc;
    color: #cc0066;
}

/* sparkles */
.sparkles {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.4rem;
    color: hotpink;
    letter-spacing: 6px;
    animation: sparkleGlow 2s infinite;
}

/* loading dots */
.dots::after {
    content: "";
    animation: dots 1.2s infinite;
}

@keyframes dots {
    0% { content: ""; }
    33% { content: "."; }
    66% { content: ".."; }
    100% { content: "..."; }
}

/* sparkle animation */
@keyframes sparkleGlow {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

