body {
    background: linear-gradient(270deg, #74ebd5, #ACB6E5, #fbc2eb, #a6c1ee);
    background-size: 800% 800%;
    animation: gradientBG 18s ease infinite;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
.container {
    max-width: 420px;
    margin: 80px auto;
    background: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    text-align: center;
    position: relative;
    opacity: 1;
    transition: opacity 0.6s;
}
.container.fade-out {
    opacity: 0;
    pointer-events: none;
}
.container.fade-in {
    opacity: 1;
    pointer-events: auto;
}
h1 {
    margin-bottom: 0.5rem;
    color: #2d3a4b;
    font-size: 2.2rem;
    letter-spacing: 1px;
    font-weight: 700;
}
.subtitle {
    color: #5a6a85;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
input[type="text"] {
    padding: 0.7rem 1rem;
    border: 1.5px solid #b2bec3;
    border-radius: 7px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}
input[type="text"]:focus {
    border: 1.5px solid #74ebd5;
}
button {
    background: linear-gradient(90deg, #74ebd5 0%, #ACB6E5 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 7px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: background 0.2s, transform 0.1s;
}
button:hover {
    background: linear-gradient(90deg, #ACB6E5 0%, #74ebd5 100%);
    transform: translateY(-2px) scale(1.03);
}
.result {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    color: #2d3a4b;
    min-height: 2em;
    font-weight: 500;
    letter-spacing: 0.5px;
    word-break: break-word;
}
.names-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.names-list li {
    background: #f4f8fb;
    border-radius: 7px;
    padding: 0.7rem 1rem;
    font-size: 1.15rem;
    color: #2d3a4b;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-weight: 500;
}
.names-list li:hover {
    background: #e3f0fa;
    transform: scale(1.04) rotate(-2deg);
}
.name-emoji {
    font-size: 1.3em;
    margin-right: 0.3em;
}
#backBtn {
    background: linear-gradient(90deg, #ACB6E5 0%, #74ebd5 100%);
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
    transition: background 0.2s, transform 0.1s;
    margin-top: 1rem;
}
#backBtn:hover {
    background: linear-gradient(90deg, #74ebd5 0%, #ACB6E5 100%);
    transform: translateY(-2px) scale(1.03);
}
.fun-fact {
    margin: 1.2rem 0 0.5rem 0;
    font-size: 1.02rem;
    color: #5a6a85;
    background: #f4f8fb;
    border-radius: 7px;
    padding: 0.7rem 1rem;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
    font-style: italic;
    min-height: 2.2em;
}
#confetti {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1000;
}
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
}
.bg-shapes::before, .bg-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    animation: floatShape 12s infinite alternate ease-in-out;
}
.bg-shapes::before {
    width: 180px; height: 180px;
    background: #fbc2eb;
    left: 8vw; top: 10vh;
    animation-delay: 0s;
}
.bg-shapes::after {
    width: 120px; height: 120px;
    background: #a6c1ee;
    right: 10vw; bottom: 12vh;
    animation-delay: 3s;
}
@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.08); }
}
.mascot {
    display: flex;
    justify-content: center;
    margin-bottom: 0.7rem;
    z-index: 1;
}
.tagline {
    font-size: 1.15rem;
    color: #a16ae8;
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}
.about-section {
    background: #f4f8fb;
    border-radius: 10px;
    margin-top: 2.2rem;
    padding: 1.1rem 1rem 0.7rem 1rem;
    color: #5a6a85;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.04);
    font-size: 1.05rem;
}
.about-section h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #2d3a4b;
    font-weight: 700;
}
.carousel-section {
    margin: 1.5rem 0 0.5rem 0;
}
.carousel-title {
    color: #5a6a85;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
.carousel {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 2.2em;
}
.carousel-name {
    background: #fff0f6;
    color: #a16ae8;
    border-radius: 7px;
    padding: 0.4rem 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(44, 62, 80, 0.06);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: 2px solid #fbc2eb;
    margin-bottom: 0.2rem;
}
.carousel-name:hover {
    background: #a16ae8;
    color: #fff;
    transform: scale(1.08) rotate(-2deg);
}
.footer {
    text-align: center;
    color: #5a6a85;
    font-size: 1rem;
    margin: 2.5rem 0 1.2rem 0;
    letter-spacing: 0.5px;
    z-index: 2;
}
@media (max-width: 500px) {
    .container {
        margin: 30px 8px;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .result, .names-list li {
        font-size: 1.1rem;
    }
} 