* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Sniglet', cursive;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F7FA 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Optimized Garden */
.flower-garden {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 20px;
    overflow: hidden;
}

.flower {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: -5px;
    flex-shrink: 0;
}

.flower-svg { width: 65px; height: 65px; }

.spin-anim {
    animation: spinHead 12s infinite ease-in-out;
    will-change: transform;
}

@keyframes spinHead {
    0%, 80% { transform: rotate(0deg); }
    90% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

.stem {
    width: 5px;
    margin: -10px auto 0;
    background: #4CAF50;
    border-radius: 5px;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.cloud {
    position: absolute;
    color: white;
    opacity: 0.6;
    z-index: -2;
    animation: drift 60s infinite linear;
    will-change: transform;
}

.cloud svg {
    width: 80px;
    height: 80px;
    display: block;
}

.c1 { top: 10%; left: -15%; }
.c2 { top: 25%; right: -15%; animation-delay: -30s; }

@keyframes drift {
    from { transform: translate3d(-15vw, 0, 0); }
    to { transform: translate3d(120vw, 0, 0); }
}

/* Responsiveness for Flowers */
@media (max-width: 1024px) {
    .flower:nth-child(even) {
        display: none;
    }
}

@media (max-width: 480px) {
    .flower:nth-child(3n) {
        display: none;
    }
}

/* Container */
.story-container {
    background: rgba(255, 255, 255, 0.96);
    border: 8px solid #FFF;
    border-radius: 45px;
    padding: 30px 45px;
    width: 90%;
    max-width: 920px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    z-index: 10;
}

.school-subtitle {
    font-family: 'Sniglet', cursive;
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    color: #FF9F43;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.story-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: clamp(2.2rem, 6.5vw, 4.2rem);
    color: #FF5F5F;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.story-description {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    color: #555555;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.bubble-countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.bubble-item {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border: 6px solid #FFF;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.orange { background: #FF9F43; }
.blue { background: #54A0FF; }
.green { background: #10AC84; }
.pink { background: #EE5253; }

.time { font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: 3px; }
.label { font-size: 0.75rem; font-weight: 800; }

.magic-btn {
    display: inline-block;
    padding: 12px 35px;
    background: #FF9F43;
    color: white;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 0 #E67E22;
    margin-bottom: 20px;
}

.social-box a {
    display: inline-block;
    color: #4A4A4A;
    margin: 0 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-box a:hover {
    color: #FF9F43;
    transform: scale(1.15);
}

.social-box svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
    display: block;
}

@media (max-width: 768px) {
    .story-container {
        padding: 22px 15px;
        border-radius: 35px;
        border-width: 6px;
    }
    .bubble-countdown {
        gap: 12px;
        margin-bottom: 18px;
    }
    .bubble-item {
        width: 80px;
        height: 80px;
        border-width: 4px;
    }
    .time {
        font-size: 1.5rem;
    }
    .label {
        font-size: 0.65rem;
    }
    .magic-btn {
        padding: 10px 25px;
        font-size: 1.05rem;
        margin-bottom: 15px;
        box-shadow: 0 4px 0 #E67E22;
    }
    .social-box a {
        margin: 0 8px;
    }
    .social-box svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}
