/* ==========================================================================
   Girlfriend's Day Game - Styles (Beige & Romantic Aesthetic)
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #F7F2EB;
    --bg-gradient: linear-gradient(135deg, #FAF5EF 0%, #F0E5DA 100%);
    --card-bg: rgba(255, 253, 250, 0.85);
    --card-border: rgba(217, 185, 172, 0.35);
    
    --text-heading: #3D3130;
    --text-body: #665553;
    --text-muted: #998785;

    --accent-primary: #D97771;
    --accent-primary-hover: #C86660;
    --accent-soft: #F9ECEB;
    --accent-border: rgba(217, 119, 113, 0.25);

    --correct-color: #5B9E6E;
    --correct-bg: #EEF7F1;
    --correct-border: #92CBA2;

    --wrong-color: #D96B6B;
    --wrong-bg: #FDF2F2;
    --wrong-border: #F1B2B2;

    --shadow-soft: 0 18px 45px -10px rgba(115, 87, 80, 0.12), 0 4px 15px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 8px 25px rgba(217, 119, 113, 0.25);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-handwriting: 'Caveat', cursive;
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Floating Heart Canvas */
#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* Viewport Layout */
.app-viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Glassmorphism Card Container */
.game-card {
    width: 100%;
    max-width: 560px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 36px 32px;
    overflow: hidden;
    position: relative;
    transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Container wide state for page 5 (Covers 75%-85% of screen window) */
.game-card.wide-layout {
    max-width: 1180px !important;
    width: 85vw !important;
    padding: 42px 48px !important;
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Progress Steps Header */
.progress-bar-container {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(217, 185, 172, 0.4);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EFE4DA;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-dot.active {
    background: var(--accent-primary);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(217, 119, 113, 0.35);
    transform: scale(1.08);
}

.step-dot.completed {
    background: #5B9E6E;
    color: #FFF;
}

.step-line {
    flex: 0 1 40px;
    height: 3px;
    background: #EFE4DA;
    border-radius: 2px;
}

/* Page Slides */
.page-slide {
    display: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-slide.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Welcome Page Elements */
.welcome-content {
    text-align: center;
    padding: 16px 8px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.main-title {
    font-size: 1.85rem;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
}

.handwritten {
    font-family: var(--font-handwriting);
    font-size: 2.7rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-hover));
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px 24px;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(217, 119, 113, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background: #D9CCC6;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
    transform: translateX(4px);
}

/* Question Header */
.question-header {
    margin-bottom: 22px;
}

.question-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-primary);
    margin-bottom: 6px;
    display: block;
}

.question-text {
    font-size: 1.25rem;
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.4;
}

/* Option Cards Group */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-card {
    width: 100%;
    background: #FFF;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s ease;
    outline: none;
}

.option-card:hover:not(.selected-correct):not(.selected-wrong) {
    border-color: var(--accent-primary);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

.option-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F3EAE1;
    color: var(--text-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.option-label {
    flex: 1;
    line-height: 1.35;
}

.option-status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Correct Option State */
.option-card.selected-correct {
    background: var(--correct-bg);
    border-color: var(--correct-border);
    color: #2E5A3B;
    font-weight: 600;
    animation: popSuccess 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option-card.selected-correct .option-index {
    background: var(--correct-color);
    color: #FFF;
}

/* Incorrect Option State */
.option-card.selected-wrong {
    background: var(--wrong-bg);
    border-color: var(--wrong-border);
    color: #8C3A3A;
    animation: shakeWrong 0.4s ease;
}

.option-card.selected-wrong .option-index {
    background: var(--wrong-color);
    color: #FFF;
}

/* Revealed Message Box */
.message-box {
    display: none;
    opacity: 0;
    background: #FAF0EC;
    border: 1px solid rgba(217, 119, 113, 0.25);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 22px;
    transition: all 0.35s ease;
}

.message-box.show {
    display: block;
    opacity: 1;
    animation: slideDownMsg 0.4s ease forwards;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.message-content {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-heading);
    font-style: italic;
}

/* Teaser / Completion Page */
.completion-heart {
    font-size: 4.5rem;
    margin-bottom: 12px;
    animation: floatHeart 2.5s ease-in-out infinite alternate;
}

/* ==========================================================================
   Page 5: Scroll Poem & Photo Frames Layout (Matching Reference Image)
   ========================================================================== */

.poem-page-header {
    text-align: center;
    margin-bottom: 28px;
}

.poem-photos-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
}

/* Scroll Wrapper */
.scroll-wrapper {
    position: relative;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Top & Bottom Wooden Rollers with Carved Finials */
.scroll-roller {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.scroll-roller-top {
    margin-bottom: -8px;
}

.scroll-roller-bottom {
    margin-top: -8px;
}

/* Main White/Cream Roller Bar */
.roller-bar {
    flex: 1;
    height: 22px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F5EFE6 45%, #E1D3C1 100%);
    border-radius: 11px;
    box-shadow: 0 4px 10px rgba(90, 60, 50, 0.22), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Turned Wood Finial Handles (Matching Reference Image Ends) */
.finial {
    width: 28px;
    height: 18px;
    background: linear-gradient(180deg, #B57448 0%, #7A4222 50%, #4D2610 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.finial-left {
    border-radius: 14px 0 0 14px;
    position: relative;
}

.finial-left::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 3px;
    width: 8px;
    height: 12px;
    background: #6E3B1E;
    border-radius: 6px 0 0 6px;
}

.finial-right {
    border-radius: 0 14px 14px 0;
    position: relative;
}

.finial-right::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 3px;
    width: 8px;
    height: 12px;
    background: #6E3B1E;
    border-radius: 0 6px 6px 0;
}

/* Red Rose Accent on Bottom Left (Matching Reference Image) */
.scroll-rose-accent {
    position: absolute;
    left: 8px;
    bottom: -6px;
    font-size: 3.2rem;
    z-index: 10;
    filter: drop-shadow(0 6px 12px rgba(130, 20, 20, 0.4));
    animation: gentlePulse 3s ease-in-out infinite alternate;
}

@keyframes gentlePulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* Parchment Paper with Torn / Deckled Edges */
.scroll-paper {
    width: 94%;
    background: linear-gradient(180deg, #FAF3E6 0%, #F3E5CF 50%, #EAD5B9 100%);
    box-shadow: inset 0 0 30px rgba(160, 110, 80, 0.15), 0 10px 30px rgba(80, 50, 40, 0.12);
    padding: 32px 28px;
    max-height: 520px;
    overflow-y: auto;
    position: relative;
    z-index: 2;

    /* Deckled torn edge styling */
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-image: repeating-linear-gradient(
        0deg,
        #EAD5B9 0px,
        #EAD5B9 4px,
        rgba(210, 170, 140, 0.6) 4px,
        rgba(210, 170, 140, 0.6) 8px
    ) 10;
    
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) #F3E5CF;
}

.scroll-paper::-webkit-scrollbar {
    width: 6px;
}

.scroll-paper::-webkit-scrollbar-track {
    background: #F3E5CF;
    border-radius: 4px;
}

.scroll-paper::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* "i 💕 you" Embroidered Header (Matching Reference Image) */
.scroll-header-embroidery {
    text-align: center;
    margin-bottom: 20px;
}

.handwritten-title {
    font-family: var(--font-handwriting);
    font-size: 3.6rem;
    color: #C82A2A;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(180, 40, 40, 0.15);
}

.scroll-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
}

.poem-stanza {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #4A3A38;
}

.poem-stanza p {
    margin-bottom: 6px;
}

.poem-quote {
    font-family: var(--font-handwriting);
    font-size: 1.75rem;
    color: #C82A2A;
    font-weight: 700;
    line-height: 1.35;
}

.poem-divider {
    color: #C89D8C;
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 2px 0;
}

.poem-signature {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(180, 130, 110, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.handwritten-sig {
    font-family: var(--font-handwriting);
    font-size: 2.6rem;
    color: var(--accent-primary);
    font-weight: 700;
}

/* Polaroid Photo Frames (Sized for 75%+ wide window) */
.photo-frames-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.polaroid-frame {
    background: #FFFFFF;
    padding: 14px 14px 18px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(90, 70, 60, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(230, 215, 205, 0.7);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 340px;
    width: 100%;
}

.frame-1 {
    transform: rotate(-3.5deg);
}

.frame-2 {
    transform: rotate(3.5deg);
    margin-top: -12px;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 18px 40px rgba(90, 70, 60, 0.24);
    z-index: 5;
}

.polaroid-img-wrapper {
    width: 100%;
    height: 270px;
    border-radius: 6px;
    overflow: hidden;
    background: #FAF5EF;
}

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

.polaroid-frame:hover .polaroid-img {
    transform: scale(1.03);
}

.polaroid-caption {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: #4A3A38;
    text-align: center;
    margin-top: 12px;
    font-weight: 600;
}

/* Animations */
@keyframes slideDownMsg {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shakeWrong {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes floatHeart {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.05); }
}

/* ==========================================================================
   Passcode Verification Modal & Page 6 Secret Message Layout
   ========================================================================== */

/* Passcode Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 35, 30, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.passcode-card {
    background: #FAF4EE;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .passcode-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(217, 119, 113, 0.15);
    color: var(--accent-primary);
}

.passcode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FDF2F2;
    border: 1px solid #F1B2B2;
    color: #D96B6B;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.passcode-title {
    font-size: 1.4rem;
    color: var(--text-heading);
    font-weight: 700;
    margin-bottom: 8px;
}

.passcode-subtitle {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.45;
    margin-bottom: 22px;
}

.passcode-input-wrapper {
    margin-bottom: 12px;
}

.passcode-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    color: var(--text-heading);
    background: #FFF;
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.25s ease;
}

.passcode-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(217, 119, 113, 0.18);
}

.passcode-error {
    font-size: 0.85rem;
    color: var(--wrong-color);
    font-weight: 600;
    min-height: 20px;
    margin-bottom: 8px;
}

.passcode-card.shake {
    animation: shakeModal 0.45s ease;
}

@keyframes shakeModal {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Page 6 Layout & Ultra-Readable Letter Card (Only Note Scrolls, Photos Fixed) */
.secret-content-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 28px;
    align-items: center;
}

.secret-letter-card {
    width: 100%;
    background: linear-gradient(145deg, #FFFDF9 0%, #FAF4EC 100%);
    border: 1px solid rgba(217, 185, 172, 0.45);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px rgba(115, 87, 80, 0.08), 0 2px 8px rgba(0, 0, 0, 0.02);
    padding: 28px 30px;
    position: relative;
    max-height: 410px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 119, 113, 0.6) transparent;
}

.secret-letter-card::-webkit-scrollbar {
    width: 5px;
}

.secret-letter-card::-webkit-scrollbar-track {
    background: transparent;
}

.secret-letter-card::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 113, 0.6);
    border-radius: 4px;
}

.secret-letter-card::before {
    content: '💌';
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.5rem;
    opacity: 0.65;
}

.secret-letter-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #2D1F1D;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.8;
}

.secret-letter-content p {
    letter-spacing: 0.2px;
}

.font-handwritten-large {
    font-family: 'Dancing Script', 'Caveat', cursive;
    font-size: 1.7rem;
    color: #B52222;
    font-weight: 700;
    line-height: 1.45;
    background: linear-gradient(135deg, rgba(253, 235, 230, 0.85), rgba(248, 222, 215, 0.5));
    padding: 12px 18px;
    border-left: 4px solid #C82A2A;
    border-radius: 8px;
    margin: 6px 0;
    box-shadow: 0 4px 15px rgba(200, 100, 80, 0.06);
}

.secret-signature {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(180, 100, 80, 0.35);
    text-align: right;
    font-weight: 600;
}

.secret-signature p {
    font-family: 'Dancing Script', 'Caveat', cursive;
    color: #C82A2A;
    font-size: 1.55rem;
}

.secret-signature .handwritten-sig {
    font-family: 'Dancing Script', 'Caveat', cursive;
    font-size: 2.7rem;
    color: var(--accent-primary);
    font-weight: 700;
}

/* 4 Photo Frames Gallery Grid on Right (2 Top, 2 Bottom - Fixed Stationary) */
.secret-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Page 7: Grand Finale - All About Pooja
   ========================================================================== */

.finale-header {
    text-align: center;
    margin-bottom: 32px;
}

.glow-badge {
    background: linear-gradient(135deg, #FFF0EC 0%, #F9ECEB 100%);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(217, 119, 113, 0.15);
}

.finale-title {
    font-size: 2.3rem;
    color: var(--text-heading);
    margin-top: 8px;
}

/* Center Stage 4-Photo Showcase */
.pooja-gallery-centerstage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.pooja-card {
    background: #FFFFFF;
    padding: 12px 12px 16px 12px;
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px rgba(115, 87, 80, 0.14), 0 3px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(230, 215, 205, 0.7);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card-p1 { transform: rotate(-2.5deg); }
.card-p2 { transform: rotate(2deg); }
.card-p3 { transform: rotate(-1.8deg); }
.card-p4 { transform: rotate(2.5deg); }

.pooja-card:hover {
    transform: translateY(-8px) rotate(0deg) scale(1.04);
    box-shadow: 0 20px 45px rgba(115, 87, 80, 0.22);
    z-index: 10;
}

.pooja-img-wrapper {
    width: 100%;
    height: 270px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #FAF5EF;
}

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

.pooja-card:hover .pooja-img {
    transform: scale(1.04);
}

.pooja-caption {
    font-family: var(--font-handwriting);
    font-size: 1.45rem;
    color: #4A3A38;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* Final Heartfelt Note Card */
.final-note-card {
    background: linear-gradient(135deg, #FFFDF9 0%, #FAF0EB 100%);
    border: 1.5px solid rgba(217, 119, 113, 0.3);
    border-left: 6px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    position: relative;
    box-shadow: 0 15px 35px rgba(217, 119, 113, 0.12);
    margin-bottom: 28px;
    text-align: center;
}

.quote-icon-top {
    font-family: 'Dancing Script', Georgia, serif;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 24px;
    line-height: 1;
}

.final-note-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.28rem;
    line-height: 1.8;
    color: #3D2D2B;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.final-note-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sig-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.final-note-signature .handwritten-sig {
    font-family: 'Dancing Script', 'Caveat', cursive;
    font-size: 2.8rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.finale-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-replay {
    max-width: 220px;
    background: linear-gradient(135deg, #7A6866, #5C4D4B);
}

.btn-replay:hover {
    box-shadow: 0 10px 25px rgba(90, 75, 70, 0.3);
}

/* Responsive adjustments for Page 7 */
@media (max-width: 992px) {
    .pooja-gallery-centerstage {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pooja-img-wrapper {
        height: 240px;
    }

    .finale-title {
        font-size: 1.85rem;
    }

    .final-note-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 540px) {
    .pooja-gallery-centerstage {
        grid-template-columns: 1fr;
    }
}

.gallery-frame {
    max-width: 100% !important;
    padding: 10px 10px 14px 10px !important;
}

.frame-g1 { transform: rotate(-3deg); }
.frame-g2 { transform: rotate(3deg); }
.frame-g3 { transform: rotate(2deg); }
.frame-g4 { transform: rotate(-2.5deg); }

.gallery-frame .polaroid-img-wrapper {
    height: 160px !important;
}

.gallery-frame .polaroid-caption {
    font-size: 1.15rem !important;
    margin-top: 8px !important;
}

/* Responsive Stacking for Page 6 */
@media (max-width: 992px) {
    .secret-content-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .secret-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-frame .polaroid-img-wrapper {
        height: 180px !important;
    }
}

.music-btn {
    margin-top: 18px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7aa2, #ff4f81);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 79, 129, 0.3);
    transition: all 0.25s ease;
}

.music-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 30px rgba(255, 79, 129, 0.45);
}

.music-btn:active {
    transform: scale(0.98);
}

.music-icon {
    font-size: 1.2rem;
}

