:root {
    --bg-cream: #FFFDF9;
    --blush-pink: #FFE1E4;
    --dark-blush: #FFC4CB;
    --dusty-rose: #C48E97;
    --soft-gold: #D4AF37;
    --text-dark: #4A3B3B;
    --text-light: #7A6666;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-hand: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

p {
    line-height: 1.8;
    color: var(--text-light);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--blush-pink) 100%);
    overflow: hidden;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    z-index: 10;
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 15px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(196, 142, 151, 0.1);
}

.countdown-item span {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dusty-rose);
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(196, 142, 151, 0.3);
}

.countdown-item label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-top: 5px;
}

/* Mobile Countdown Adjustment */
@media (max-width: 480px) {
    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        min-width: 65px;
        padding: 10px;
    }

    .countdown-item span {
        font-size: 1.5rem;
    }
}

.hero-title {
    font-size: 4rem;
    color: var(--dusty-rose);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.7);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-family: var(--font-hand);
    color: var(--text-dark);
    margin-bottom: 30px;
}

.wish-btn {
    padding: 12px 30px;
    background-color: var(--dusty-rose);
    color: white;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(196, 142, 151, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
}

.wish-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(196, 142, 151, 0.6);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    z-index: 10;
    text-decoration: none;
    color: var(--dusty-rose);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    background: var(--dark-blush);
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: float 10s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(-5vh) rotate(0deg) scale(calc(var(--scale, 1)));
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(105vh) rotate(360deg) scale(calc(var(--scale, 1)));
        opacity: 0;
    }
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dusty-rose);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--soft-gold);
    border-radius: 2px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.reason-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(196, 142, 151, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 142, 151, 0.2);
}

.reason-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* TIMELINE STYLES */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    text-align: left;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--soft-gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 20px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-cream);
    border: 3px solid var(--dusty-rose);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(196, 142, 151, 0.08);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--soft-gold);
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-content h3 {
    color: var(--dusty-rose);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* PHOTO GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-top: 20px;
}

.polaroid {
    background: white;
    padding: 15px 15px 30px 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
    position: relative;
    border-radius: 2px;
}

.polaroid:nth-child(odd) {
    transform: rotate(-3deg);
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 2;
}

.photo-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.photo-placeholder.g1 {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}

.photo-placeholder.g2 {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.photo-placeholder.g3 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    color: var(--text-dark);
    text-shadow: none;
}

.photo-placeholder.g4 {
    background: linear-gradient(to right, #fa709a 0%, #fee140 100%);
}

.photo-placeholder.g5 {
    background: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}

.photo-placeholder.g6 {
    background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%);
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.polaroid-caption {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--text-dark);
}

/* LETTER */
#letter {
    background-color: var(--blush-pink);
    position: relative;
}

.letter-paper {
    background-color: #FFFDF9;
    padding: 60px 50px;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(196, 142, 151, 0.1) 31px, rgba(196, 142, 151, 0.1) 32px);
    background-attachment: local;
}

.letter-content {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text-dark);
    text-align: left;
}

.letter-content p {
    margin-bottom: 25px;
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
    font-size: 1.8rem;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--bg-cream);
    color: var(--text-light);
    font-size: 1rem;
}

.hearts-container {
    display: inline-block;
    margin-left: 10px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* BIRTHDAY TUNE BUTTON */
.bday-tune-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e91e8c, #c2185b);
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.45);
    transition: all 0.3s ease;
    user-select: none;
    font-family: 'Nunito', var(--font-body), sans-serif;
}

.bday-tune-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 28px rgba(233, 30, 140, 0.55);
}

.tune-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.tune-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.bday-tune-btn.playing .tune-icon {
    animation: tune-bob 1s infinite alternate ease-in-out;
}

.bday-tune-btn.muted {
    background: linear-gradient(135deg, #888, #555);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@keyframes tune-bob {
    0% {
        transform: rotate(-10deg) scale(1);
    }

    100% {
        transform: rotate(10deg) scale(1.2);
    }
}

/* MUSIC */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 100;
    color: var(--dusty-rose);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.1);
}

.music-player.playing {
    animation: pulse-shadow 2s infinite;
}

.music-player.playing::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--dusty-rose);
    animation: ripple 1.5s linear infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 142, 151, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(196, 142, 151, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 142, 151, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

#youtube-player {
    display: none;
}

/* CONFETTI LOGIC */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: var(--dusty-rose);
    top: -10px;
    z-index: 9999;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
    }
}

@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 23px;
    }
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-cream);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--dusty-rose);
    font-family: var(--font-hand);
    font-size: 2rem;
}

.heart-loader {
    width: 40px;
    height: 40px;
    background-color: var(--dusty-rose);
    position: relative;
    transform: rotate(45deg);
    margin: 0 auto 30px auto;
    animation: heart-beat-loader 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.heart-loader::before,
.heart-loader::after {
    content: '';
    width: 40px;
    height: 40px;
    background-color: var(--dusty-rose);
    border-radius: 50%;
    position: absolute;
}

.heart-loader::before {
    top: -20px;
    left: 0;
}

.heart-loader::after {
    top: 0;
    left: -20px;
}

@keyframes heart-beat-loader {
    0% {
        transform: rotate(45deg) scale(0.8);
    }

    5% {
        transform: rotate(45deg) scale(0.9);
    }

    10% {
        transform: rotate(45deg) scale(0.8);
    }

    15% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(0.8);
    }

    100% {
        transform: rotate(45deg) scale(0.8);
    }
}

/* CUSTOM CURSOR */
.custom-cursor,
.custom-cursor-follower {
    display: none;
}

@media (hover: hover) and (pointer: fine) {

    body,
    a,
    button,
    .music-player,
    .polaroid,
    .timeline-item {
        cursor: none !important;
    }

    .custom-cursor,
    .custom-cursor-follower {
        display: block;
    }

    .custom-cursor {
        position: fixed;
        width: 8px;
        height: 8px;
        background-color: var(--text-dark);
        border-radius: 50%;
        pointer-events: none;
        z-index: 100000;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s;
    }

    .custom-cursor-follower {
        position: fixed;
        width: 35px;
        height: 35px;
        border: 2px solid var(--dusty-rose);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, border-color 0.2s;
    }

    .custom-cursor.hover {
        width: 0;
        height: 0;
    }

    .custom-cursor-follower.hover {
        width: 65px;
        height: 65px;
        background-color: rgba(196, 142, 151, 0.1);
        border-color: rgba(196, 142, 151, 0.8);
    }
}

/* =============================================
   CHAPTER FRAMES — ACCORDION SECTIONS
   ============================================= */

.chapters-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 100px;
    display: grid;
    /* 2-column grid for that "Square/Gift" look */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.chapters-intro {
    grid-column: 1 / -1;
    /* Spans both columns */
    text-align: center;
    margin-bottom: 40px;
}

.chapters-heading {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--dusty-rose);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.chapters-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--soft-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.chapters-sub {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--text-light);
    margin-top: 12px;
}

/* ---- Frame Card ---- */
.chapter-frame {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(196, 142, 151, 0.1);
    border: 1.5px solid rgba(196, 142, 151, 0.12);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
    /* Height for square look */
}

.chapter-frame:hover {
    box-shadow: 0 20px 60px rgba(196, 142, 151, 0.2);
    border-color: rgba(196, 142, 151, 0.3);
    transform: translateY(-8px);
}

.chapter-frame.open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    border-radius: 0;
    margin: 0;
    background: #FFFAF1;
    /* Warm cream immersive background */
    overflow-y: auto;
    border: none;
    box-shadow: none;
    transform: none;
    animation: slideInFull 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFull {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Header (Clickable Square Tile) ---- */
.chapter-header {
    display: flex;
    flex-direction: column;
    /* Center stacked for square look */
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(135deg, #ffffff 0%, #fffcfd 100%);
    transition: all 0.4s ease;
    text-align: center;
    aspect-ratio: 1 / 1;
    /* Forcing the Square shape */
}

.chapter-frame.open .chapter-header {
    display: none;
    /* Hide header inside the slide */
}

.chapter-header:hover {
    background: linear-gradient(135deg, #fff0f3 0%, #fde8ec 100%);
}

.chapter-header-left {
    display: flex;
    flex-direction: column;
    /* Vertical in square mode */
    align-items: center;
    gap: 20px;
}

.chapter-frame.open .chapter-header-left {
    flex-direction: row;
    /* Horizontal in bar mode (when open) */
    gap: 18px;
}

.chapter-icon {
    font-size: 2rem;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--blush-pink), var(--dark-blush));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(196, 142, 151, 0.25);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.chapter-frame.open .chapter-icon {
    transform: scale(1.08);
}

.chapter-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dusty-rose);
    margin-bottom: 6px;
    opacity: 0.8;
}

.chapter-title-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.chapter-arrow {
    display: none;
    /* Hide arrow in square mode */
    font-size: 1.8rem;
    color: var(--dusty-rose);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chapter-frame.open .chapter-arrow {
    display: none;
}

/* ---- Body (Collapsible Content) ---- */
.chapter-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.chapter-frame.open .chapter-body {
    max-height: none;
    height: auto;
    min-height: 100%;
    padding: 100px 0 60px;
    /* Extra padding for top button and bottom space */
}

/* Close Button Styling */
.back-to-grid {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 2100;
    background: var(--dusty-rose);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(196, 142, 151, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

.back-to-grid:hover {
    transform: scale(1.08) translateY(-2px);
    background: var(--dark-blush);
    box-shadow: 0 15px 35px rgba(196, 142, 151, 0.4);
}

.chapter-body-inner {
    padding: 36px 28px 40px;
    animation: none;
}

.chapter-frame.open .chapter-body-inner {
    animation: bodyFadeIn 0.4s ease 0.1s both;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Timeline inside chapter ---- */
.timeline-inner .timeline {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* Adjust letter inside chapter */
.chapter-body-inner .letter-paper {
    margin: 0 auto;
    max-width: 640px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .wish-btn {
        padding: 10px 24px;
        font-size: 1rem;
    }

    .chapters-section {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 20px;
    }

    .chapters-intro {
        padding: 0 15px;
    }

    .chapter-header {
        aspect-ratio: 16 / 9;
        /* Slightly rectangle on mobile for better space */
        padding: 40px 20px;
    }

    .chapter-frame.open .chapter-header {
        padding: 18px 18px;
        aspect-ratio: auto;
    }

    .chapter-icon {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        border-radius: 10px;
    }

    .chapter-title-text {
        font-size: 1.2rem;
    }

    .chapter-body-inner {
        padding: 24px 16px 30px;
    }

    .chapters-heading {
        font-size: 2rem;
    }

    /* Timline Mobile */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Grid Mobile */
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .polaroid {
        padding: 10px 10px 15px;
    }
}

/* =============================================
   REAL PHOTO POLAROID STYLES
   ============================================= */

.photo-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 15px;
    background: #f3e8ea;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.polaroid:hover .photo-img-wrap img {
    transform: scale(1.05);
}

/* Fallback when image is missing */
.photo-img-wrap.img-missing::after {
    content: '📷';
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.photo-img-wrap.img-missing img {
    display: none;
}

/* Blank / mystery card */
.polaroid-blank {
    border: 2px dashed rgba(196, 142, 151, 0.4) !important;
    background: linear-gradient(135deg, #fff9fb, #fff0f4) !important;
    box-shadow: 0 8px 25px rgba(196, 142, 151, 0.08) !important;
    cursor: default !important;
}

.blank-wrap {
    background: transparent !important;
    flex-direction: column;
    gap: 10px;
}

.blank-heart {
    font-size: 2.8rem;
    animation: heartbeat 1.6s infinite ease-in-out;
}

.blank-text {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    color: var(--dusty-rose);
    text-align: center;
    line-height: 1.6;
}

/* Make gallery grid tighter for 20 items */
.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
}

/* =============================================
   LIGHTBOX
   ============================================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 12, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: lbFadeIn 0.25s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-inner {
    position: relative;
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: lbZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lbZoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-inner img {
    max-width: 85vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.08);
}

.lightbox-caption {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    letter-spacing: 0.03em;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.4rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100001;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(196, 142, 151, 0.6);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 70px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 100001;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(196, 142, 151, 0.5);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 600px) {
    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 38px;
        font-size: 1.8rem;
    }
}

/* =============================================
   SCENE TRANSITION (BLOOM)
   ============================================= */

#scene-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bloom-box {
    width: 60px;
    height: 60px;
    background-color: var(--dusty-rose);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.4s ease;
}

#scene-transition.active .bloom-box {
    transform: scale(60);
    opacity: 1;
}

#scene-transition.fade-out .bloom-box {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* State for switching sections */
#chapters {
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-down {
    transition: opacity 0.5s ease;
}

body.session-entered #hero {
    opacity: 0;
    pointer-events: none;
    display: none;
    /* Fully remove from flow after transition */
}

body.session-entered .scroll-down {
    display: none;
}

body.session-entered #chapters {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* =============================================
   CHAPTER 5 — CELEBRATION
   ============================================= */
.celebration-inner {
    background: linear-gradient(135deg, #FFDFD3, #FEC8D8, #D291BC);
    border-radius: 12px;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebration-scene {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.atmosphere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    bottom: -100px;
    animation: float-up 15s infinite ease-in;
    opacity: 0.8;
}

.b1 {
    left: 10%;
    animation-duration: 12s;
}

.b2 {
    left: 30%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.b3 {
    left: 50%;
    animation-duration: 15s;
    animation-delay: 5s;
}

.b4 {
    left: 70%;
    animation-duration: 14s;
    animation-delay: 1s;
}

.b5 {
    left: 85%;
    animation-duration: 16s;
    animation-delay: 4s;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-50vh) rotate(10deg);
    }

    100% {
        transform: translateY(-120vh) rotate(-10deg);
    }
}

.sparkle-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, #fff 1.5px, transparent 1.5px),
        radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: twinkle 3s infinite linear alternate;
    opacity: 0.4;
}

@keyframes twinkle {
    0% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.6;
    }
}

.disney-characters {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    font-size: 2.8rem;
    position: relative;
    z-index: 2;
}

.character {
    animation: char-idle 3s infinite ease-in-out;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.ch-1 {
    animation-delay: 0s;
}

.ch-2 {
    animation-delay: 0.5s;
    font-size: 3rem;
}

.ch-3 {
    animation-delay: 1s;
}

.ch-4 {
    animation-delay: 0.2s;
}

@keyframes char-idle {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.char-dance {
    animation: char-dance-anim 0.5s infinite alternate !important;
}

@keyframes char-dance-anim {
    0% {
        transform: translateY(0) rotate(-10deg) scale(1.1);
    }

    100% {
        transform: translateY(-15px) rotate(10deg) scale(1.1);
    }
}

.cake-wrapper {
    position: relative;
    margin: 10px auto 40px;
    z-index: 2;
    transform: scale(1.2);
}

.cake {
    position: relative;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layer {
    background: #fdf6e3;
    border-radius: 8px;
    position: relative;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: #ffb7b2;
    border-radius: 8px 8px 10px 10px;
}

.layer-bottom {
    width: 160px;
    height: 50px;
    z-index: 1;
}

.layer-middle {
    width: 120px;
    height: 45px;
    z-index: 2;
    margin-bottom: -15px;
    background: #ffe4e1;
}

.layer-middle::after {
    background: #e0f7fa;
}

.layer-top {
    width: 90px;
    height: 40px;
    z-index: 3;
    margin-bottom: -15px;
    background: #fff0f5;
}

.drip {
    position: absolute;
    top: 12px;
    width: 12px;
    height: 18px;
    background: inherit;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.layer-bottom .d1 {
    left: 10px;
    height: 20px;
    background: #ffb7b2;
}

.layer-bottom .d2 {
    left: 45px;
    height: 12px;
    background: #ffb7b2;
}

.layer-bottom .d3 {
    right: 20px;
    height: 16px;
    background: #ffb7b2;
}

.layer-middle .d1 {
    left: 15px;
    height: 14px;
    background: #e0f7fa;
}

.layer-middle .d2 {
    right: 15px;
    height: 20px;
    background: #e0f7fa;
}

.layer-top .d1 {
    left: 20px;
    height: 15px;
    background: #ffb7b2;
}

.layer-top .d2 {
    right: 20px;
    height: 10px;
    background: #ffb7b2;
}

.candles {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.candle {
    width: 10px;
    height: 30px;
    background: repeating-linear-gradient(45deg, #ff9a9e, #ff9a9e 4px, #fdfbfb 4px, #fdfbfb 8px);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.candle::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background: #333;
}

.flame {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 16px;
    background: radial-gradient(ellipse at center, #ffeb3b 0%, #ff9800 60%, transparent 100%);
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.15s infinite alternate, sway 2.5s infinite ease-in-out;
    filter: drop-shadow(0 0 8px #ffeb3b);
}

@keyframes flicker {
    0% {
        opacity: 0.85;
        transform: translateX(-50%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(-50%) rotate(-5deg);
    }

    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

.flame.out {
    animation: puff 0.6s forwards;
}

@keyframes puff {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        background: gray;
        filter: none;
    }

    100% {
        transform: translateX(-50%) scale(2) translateY(-15px);
        opacity: 0;
        background: gray;
        filter: none;
    }
}

.hidden-msg {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin: 10px 0 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 1s ease;
    z-index: 3;
}

.hidden-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.blow-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff4081, #f50057);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(245, 0, 87, 0.4);
    transition: all 0.3s ease;
    z-index: 3;
}

.blow-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 0, 87, 0.5);
}

@media (max-width: 768px) {
    .disney-characters {
        font-size: 2.2rem;
        gap: 15px;
    }

    .cake-wrapper {
        transform: scale(1);
    }

    .hidden-msg {
        font-size: 2rem;
    }
}

/* =============================================
   CHAPTER 5 — GRAND CAKE CUTTING (BANGARAM)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

.grand-celebration-inner {
    background: linear-gradient(135deg, #fdd5e8, #e91e8c);
    border-radius: 12px;
    min-height: 100vh;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    color: white;
    padding-bottom: 80px;
}

.grand-close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.grand-ambient-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.orb-pink {
    width: 400px;
    height: 400px;
    background: #e91e8c;
    top: -100px;
    left: -100px;
}

.orb-purple {
    width: 500px;
    height: 500px;
    background: #e1bee7;
    bottom: -150px;
    right: -50px;
}

.orb-yellow {
    width: 350px;
    height: 350px;
    background: #fdd835;
    top: 20%;
    right: -100px;
}

.orb-rose {
    width: 450px;
    height: 450px;
    background: #c2185b;
    bottom: 10%;
    left: -100px;
}

.grand-stars {
    position: absolute;
    width: 2px;
    height: 2px;
    background: transparent;
    z-index: 1;
    animation: grand-twinkle 4s infinite alternate;
    box-shadow: 10vw 20vh #fff, 20vw 80vh #fff, 30vw 10vh #fff, 40vw 60vh #fff, 50vw 30vh #fff, 60vw 90vh #fff, 70vw 20vh #fff, 80vw 50vh #fff, 90vw 80vh #fff, 15vw 45vh #fff, 25vw 15vh #fff, 35vw 75vh #fff, 45vw 25vh #fff, 55vw 85vh #fff, 65vw 35vh #fff, 75vw 65vh #fff, 85vw 10vh #fff, 95vw 40vh #fff, 5vw 95vh #fff, 50vw 50vh #fff, 12vw 62vh #fff, 22vw 32vh #fff, 32vw 88vh #fff, 42vw 12vh #fff, 52vw 72vh #fff, 62vw 42vh #fff, 72vw 92vh #fff, 82vw 22vh #fff, 92vw 62vh #fff, 8vw 28vh #fff, 18vw 88vh #fff, 28vw 48vh #fff, 38vw 98vh #fff, 48vw 18vh #fff, 58vw 68vh #fff, 68vw 8vh #fff, 78vw 78vh #fff, 88vw 38vh #fff, 98vw 88vh #fff, 10vw 70vh #fff;
}

@keyframes grand-twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.9;
    }
}

.grand-sparkle-symbols span {
    position: absolute;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
    animation: g-float 6s infinite ease-in-out;
    opacity: 0.8;
}

.grand-header {
    text-align: center;
    margin-top: 25px;
    z-index: 2;
    position: relative;
}

.grand-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.grand-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(233, 30, 140, 0.5);
    margin: 0 0 8px 0;
}

.grand-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    margin: 0;
    font-style: italic;
}

.grand-balloons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.b3d {
    position: absolute;
    width: 60px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    bottom: -150px;
    animation: grand-balloon-float 15s infinite linear;
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.1), inset 10px 10px 20px rgba(255, 255, 255, 0.4), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.b3d::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid inherit;
}

.b3d::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
}

.balloon-pink {
    background: #f48fb1;
}

.balloon-purple {
    background: #ce93d8;
}

.balloon-yellow {
    background: #fff59d;
}

.balloon-teal {
    background: #80cbc4;
}

.balloon-rose {
    background: #f06292;
}

@keyframes grand-balloon-float {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-60vh) rotate(5deg);
    }

    100% {
        transform: translateY(-120vh) rotate(-5deg);
    }
}

.grand-cake-wrap {
    margin-top: 30px;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.grand-cake-message {
    text-align: center;
    width: 90%;
    max-width: 650px;
    margin-top: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    padding: 35px 40px;
    box-shadow: 0 20px 60px rgba(194, 24, 91, 0.3);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.grand-cake-message.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.msg-hearts {
    font-size: 2rem;
    margin-bottom: 12px;
    animation: heartbeat 1.2s infinite ease-in-out;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.msg-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.6rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 4px 15px rgba(194, 24, 91, 0.6);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.msg-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #fff0f5;
    text-shadow: 0 2px 8px rgba(194, 24, 91, 0.4);
}

.msg-love {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 14px;
}

.grand-cake {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.g-tier {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.g-top-face {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 30px;
    border-radius: 50%;
    background: inherit;
    filter: brightness(1.1);
    z-index: 1;
}

.g-tier::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 0;
}

.g-drips {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.g-drip {
    position: absolute;
    width: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 10px 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
    top: 0;
}

.g-text {
    position: relative;
    z-index: 5;
    color: #c2185b;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
}

.italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
}

.bold-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.g-tier-1 {
    width: 174px;
    height: 60px;
    background: linear-gradient(to bottom, #f8bbd0, #f06292);
    z-index: 3;
}

.g-tier-2 {
    width: 232px;
    height: 75px;
    background: linear-gradient(to bottom, #fff59d, #fdd835);
    z-index: 2;
    margin-top: 15px;
}

.g-tier-3 {
    width: 292px;
    height: 85px;
    background: linear-gradient(to bottom, #e1bee7, #ba68c8);
    z-index: 1;
    margin-top: 15px;
}

.g-beads {
    position: absolute;
    bottom: -5px;
    width: 100%;
    height: 10px;
    background: radial-gradient(circle, white 4px, transparent 4px);
    background-size: 16px 16px;
    z-index: 3;
}

.g-plate {
    width: 360px;
    height: 35px;
    background: #c2185b;
    border-radius: 50%;
    margin-top: -15px;
    z-index: 0;
    box-shadow: 0 15px 30px rgba(194, 24, 91, 0.6), inset 0 5px 10px rgba(255, 255, 255, 0.2);
}

.grand-candles {
    position: absolute;
    top: -45px;
    display: flex;
    justify-content: center;
    gap: 18px;
    width: 100%;
    z-index: 10;
}

.g-candle {
    width: 12px;
    height: 40px;
    border-radius: 3px;
    position: relative;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.g-candle::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: #333;
}

.can-pink {
    background: repeating-linear-gradient(45deg, #f06292, #f06292 5px, white 5px, white 10px);
}

.can-yellow {
    background: repeating-linear-gradient(45deg, #fdd835, #fdd835 5px, white 5px, white 10px);
}

.can-teal {
    background: repeating-linear-gradient(45deg, #26a69a, #26a69a 5px, white 5px, white 10px);
}

.can-green {
    background: repeating-linear-gradient(45deg, #66bb6a, #66bb6a 5px, white 5px, white 10px);
}

.can-purple {
    background: repeating-linear-gradient(45deg, #ab47bc, #ab47bc 5px, white 5px, white 10px);
}

.g-flame {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 22px;
    background: radial-gradient(ellipse at center, #fff 0%, #ffeb3b 40%, #ff9800 80%, transparent 100%);
    border-radius: 50% 50% 20% 20%;
    animation: grand-flicker 0.15s infinite alternate, grand-sway 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px #ffeb3b);
}

@keyframes grand-flicker {
    0% {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.9;
    }

    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes grand-sway {

    0%,
    100% {
        transform: translateX(-50%) rotate(-5deg);
    }

    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

.g-flame.out {
    animation: grand-smoke 1.5s forwards;
}

@keyframes grand-smoke {
    0% {
        background: rgba(200, 200, 200, 0.8);
        filter: none;
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }

    100% {
        background: rgba(200, 200, 200, 0);
        filter: none;
        transform: translateX(-50%) scale(3) translateY(-40px);
        opacity: 0;
    }
}

.grand-blow-btn {
    margin-top: 35px;
    padding: 16px 45px;
    background: linear-gradient(135deg, #e91e8c, #c2185b);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.grand-blow-btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(194, 24, 91, 0.6);
}

.grand-characters-row {
    display: flex;
    gap: 25px;
    margin-top: 50px;
    align-items: flex-end;
    z-index: 5;
    position: relative;
    padding-bottom: 20px;
}

.glass-char-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 180, 220, 0.5);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-char-card:hover {
    transform: translateY(-15px) scale(1.05);
}

.char-name-tag {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.char-svg {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
    width: 110px;
    height: 130px;
}

.shinchan-hero {
    width: 180px;
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid gold;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.4);
    animation: hero-dance 1s infinite alternate;
    margin: 0 20px;
    padding: 30px 20px 20px;
}

.shinchan-svg {
    width: 160px;
    height: 190px;
}

.hero-badge {
    position: absolute;
    top: -15px;
    background: gold;
    color: #d84315;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    font-family: 'Nunito', sans-serif;
    animation: hero-badge-float 2s infinite ease-in-out;
    z-index: 5;
}

.char-anim-1 {
    animation: g-float 3s infinite ease-in-out;
}

.char-anim-2 {
    animation: g-float 3.5s infinite ease-in-out 0.5s;
}

.char-anim-3 {
    animation: g-float 3.2s infinite ease-in-out 1s;
}

.char-anim-4 {
    animation: g-float 3.8s infinite ease-in-out 0.2s;
}

@keyframes g-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes hero-dance {
    0% {
        transform: translateY(0) rotate(-3deg) scale(1.05);
    }

    100% {
        transform: translateY(-15px) rotate(3deg) scale(1.05);
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6);
    }
}

@keyframes hero-badge-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px) scale(1.1);
    }
}

@media (max-width: 1100px) {
    .grand-characters-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .grand-cake {
        transform: scale(0.85);
    }

    .grand-title {
        font-size: 2.8rem;
    }

    .msg-title {
        font-size: 2rem;
    }
}