/* ===============================
   CJL的十二月暖冬绘本 - 主样式文件
   =============================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color System */
    --primary-pink: #F2C4CE;
    --accent-pink: #D68189;
    --secondary-gold: #E8DAB2;
    --neutral-paper: #FFFDF9;
    --text-warm: #5C504D;
    --white: #FFFFFF;
    --shadow-soft: rgba(214, 129, 137, 0.15);
    --shadow-warm: rgba(214, 129, 137, 0.25);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-handwriting: 'Caveat', cursive;
    --font-body: 'Nunito', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-warm);
    background-color: var(--neutral-paper);
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-pink) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--secondary-gold) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
    overflow-x: hidden;
}

/* ===============================
   Loading Screen
   =============================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-envelope {
    width: 120px;
    height: 80px;
    position: relative;
    margin: 0 auto var(--spacing-lg);
    animation: float 3s ease-in-out infinite;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 0 0 10px 10px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.envelope-flap {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--white);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loading-text {
    font-family: var(--font-handwriting);
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===============================
   Main Content
   =============================== */

.main-content {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.main-content.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   Hero Section
   =============================== */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.watercolor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float-blob 20s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-pink);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-gold);
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-pink);
    bottom: 20%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.envelope-container {
    position: relative;
    z-index: 2;
}

.envelope {
    width: 350px;
    height: 250px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-bounce);
}

.envelope:hover {
    transform: scale(1.05) rotateY(10deg);
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 15px;
    position: relative;
    box-shadow: 
        0 20px 40px var(--shadow-soft),
        0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125px;
    background: linear-gradient(45deg, var(--primary-pink), var(--accent-pink));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transition: var(--transition-smooth);
    z-index: 3;
}

.envelope.open .envelope-flap {
    transform: translateY(-100%) rotateX(180deg);
}

.envelope-address {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.address-text {
    font-family: var(--font-handwriting);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-pink);
    transform: rotate(-3deg);
}

.wax-seal {
    width: 40px;
    height: 40px;
    background: var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(214, 129, 137, 0.3);
}

.wax-seal:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(214, 129, 137, 0.4);
}

.seal-heart {
    width: 20px;
    height: 20px;
    fill: var(--white);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.envelope-content {
    position: absolute;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.envelope.open .envelope-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-family: var(--font-handwriting);
    font-size: 20px;
    color: var(--text-warm);
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

.unbox-btn {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-pink));
    border: none;
    border-radius: 25px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px var(--shadow-soft);
}

.unbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-warm);
}

.unbox-btn:active {
    transform: translateY(0);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.unbox-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Birthday Card */
.birthday-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 300px;
    transform: translate(-50%, -50%) scale(0) rotate(180deg);
    transition: var(--transition-bounce);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
}

.birthday-card.show {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
    pointer-events: auto;
}

.card-content {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: var(--spacing-lg);
    position: relative;
    box-shadow: 0 25px 50px var(--shadow-warm);
    overflow: hidden;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, var(--primary-pink) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, var(--secondary-gold) 1px, transparent 1px);
    background-size: 30px 30px, 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}

.card-decoration {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
}

.watercolor-flowers {
    position: relative;
    width: 60px;
    height: 60px;
}

.flower {
    position: absolute;
    width: 30px;
    height: 30px;
}

.flower-1 {
    top: 0;
    right: 0;
    animation: flower-bloom 3s ease-in-out infinite;
}

.flower-2 {
    bottom: 0;
    left: 0;
    animation: flower-bloom 3s ease-in-out infinite 1.5s;
}

@keyframes flower-bloom {
    0%, 100% { transform: scale(0.8) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.card-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-warm);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.signature {
    position: absolute;
    bottom: var(--spacing-md);
    left: var(--spacing-lg);
    right: var(--spacing-lg);
}

.signature-text {
    font-family: var(--font-handwriting);
    font-size: 18px;
    color: var(--accent-pink);
    font-weight: 600;
}

.signature-line {
    width: 60px;
    height: 2px;
    background: var(--accent-pink);
    margin-top: 5px;
    border-radius: 1px;
}

/* ===============================
   Memory Lane Gallery
   =============================== */

.memory-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.title-text {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-pink);
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-pink));
    margin: var(--spacing-md) auto 0;
    border-radius: 2px;
}

.memory-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.memory-item {
    position: relative;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.polaroid {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition-smooth);
    transform: rotate(calc(var(--random-rotate, 0) * 1deg));
}

.polaroid:hover {
    transform: translateY(-8px) rotate(calc(var(--random-rotate, 0) * 1deg));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.polaroid-image {
    width: 100%;
    height: 200px;
    background: var(--neutral-paper);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder svg {
    width: 80%;
    height: 80%;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.polaroid-caption {
    text-align: center;
}

.caption-text {
    display: block;
    font-family: var(--font-handwriting);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-warm);
    margin-bottom: var(--spacing-xs);
}

.caption-date {
    font-size: 14px;
    color: var(--accent-pink);
    font-weight: 500;
}

.tape-decorations {
    position: absolute;
    top: -10px;
    right: 20px;
    z-index: 2;
}

.washi-tape {
    width: 60px;
    height: 20px;
    background: var(--secondary-gold);
    border-radius: 2px;
    opacity: 0.7;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tape-1 { background: var(--secondary-gold); }
.tape-2 { background: var(--primary-pink); }
.tape-3 { background: #F4A6A6; }
.tape-4 { background: #E8C4D0; }

/* ===============================
   Interactive Cake Section
   =============================== */

.cake-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, rgba(242, 196, 206, 0.1), rgba(232, 218, 178, 0.1));
    position: relative;
}

.cake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.cake-wrapper {
    position: relative;
    width: 300px;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cake {
    position: relative;
    width: 200px;
    height: 180px;
}

.cake-layer {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.layer-1 {
    bottom: 0;
    width: 180px;
    height: 80px;
    background: linear-gradient(45deg, #F8BBD0, #F2C4CE);
    left: 10px;
}

.layer-2 {
    bottom: 60px;
    width: 140px;
    height: 70px;
    background: linear-gradient(45deg, #E8DAB2, #F4E4BC);
    left: 30px;
}

.cake-top {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
}

.cake-plate {
    width: 160px;
    height: 20px;
    background: linear-gradient(45deg, #FFFFFF, #F0F0F0);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.layer-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-pink);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent-pink);
}

.candles-container {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
}

.candle {
    position: relative;
    cursor: pointer;
}

.candle-stick {
    width: 8px;
    height: 40px;
    background: linear-gradient(45deg, #FFE4E1, #FFB6C1);
    border-radius: 4px;
    position: relative;
}

.candle-stick::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-pink);
    border-radius: 50%;
}

.flame {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: radial-gradient(ellipse at center bottom, #FFB347, #FF6347, #DC143C);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.8s ease-in-out infinite alternate;
    transition: var(--transition-smooth);
}

.flame.extinguished {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.cake-numbers {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.number {
    font-family: var(--font-handwriting);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-pink);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cake-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    filter: blur(8px);
}

.cake-instruction {
    text-align: center;
}

.instruction-text {
    font-family: var(--font-handwriting);
    font-size: 24px;
    color: var(--text-warm);
    margin-bottom: var(--spacing-sm);
}

.instruction-emoji {
    font-size: 28px;
    margin-right: var(--spacing-xs);
}

.wish-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.counter-label {
    font-size: 16px;
    color: var(--accent-pink);
}

.counter-number {
    font-family: var(--font-handwriting);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-pink);
    background: var(--primary-pink);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 50%;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Celebration Overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.celebration-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-pink);
    animation: confetti-fall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: var(--primary-pink);
    animation-delay: -1s;
}

.confetti:nth-child(3n) {
    background: var(--secondary-gold);
    animation-delay: -2s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.celebration-message {
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.celebration-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    animation: celebration-bounce 1s ease-in-out infinite;
}

.celebration-text {
    font-size: 20px;
    margin-bottom: var(--spacing-xl);
}

.floating-hearts {
    position: relative;
    height: 100px;
}

.heart {
    position: absolute;
    font-size: 32px;
    animation: float-heart 2s ease-in-out infinite;
}

.heart-1 {
    left: 20%;
    animation-delay: 0s;
}

.heart-2 {
    left: 50%;
    animation-delay: 0.7s;
}

.heart-3 {
    left: 80%;
    animation-delay: 1.4s;
}

@keyframes float-heart {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
}

@keyframes celebration-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===============================
   Message Board
   =============================== */

.message-section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.message-board-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.board-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F5F5F5, #E8E8E8);
    border-radius: 20px;
    z-index: -1;
}

.board-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--primary-pink) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--secondary-gold) 1px, transparent 1px);
    background-size: 40px 40px, 30px 30px;
    opacity: 0.3;
    border-radius: 20px;
}

.pin-dots {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
}

.pin {
    width: 12px;
    height: 12px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message-input-area {
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
}

#message-input {
    width: 100%;
    min-height: 100px;
    padding: var(--spacing-md);
    border: 2px dashed var(--primary-pink);
    border-radius: 10px;
    background: var(--neutral-paper);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-warm);
    resize: vertical;
    transition: var(--transition-smooth);
}

#message-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(242, 196, 206, 0.2);
}

#message-input::placeholder {
    color: #999;
    font-style: italic;
}

.char-count {
    position: absolute;
    bottom: var(--spacing-xs);
    right: var(--spacing-md);
    font-size: 14px;
    color: #999;
}

.submit-btn {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(45deg, var(--accent-pink), var(--primary-pink));
    border: none;
    border-radius: 20px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-soft);
}

.messages-container {
    position: relative;
    min-height: 300px;
}

.message-note {
    position: absolute;
    width: 180px;
    background: var(--primary-pink);
    padding: var(--spacing-sm);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translate(var(--x), var(--y)) rotate(var(--rotate));
    transition: var(--transition-smooth);
    cursor: grab;
    animation: note-float 0.8s ease-out forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes note-float {
    to {
        opacity: 1;
        transform: translate(var(--x), var(--y)) rotate(var(--rotate));
    }
}

.message-note:hover {
    transform: translate(var(--x), var(--y)) rotate(var(--rotate)) scale(1.05);
    z-index: 10;
}

.message-note:active {
    cursor: grabbing;
}

.note-content {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-warm);
    margin-bottom: var(--spacing-xs);
}

.note-author {
    font-size: 12px;
    color: var(--accent-pink);
    font-weight: 600;
    text-align: right;
}

/* ===============================
   Footer Section
   =============================== */

.footer-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-gold));
    position: relative;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    color: var(--white);
}

.footer-message {
    font-family: var(--font-handwriting);
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.footer-signature {
    margin-top: var(--spacing-xl);
}

.footer-signature .signature-text {
    font-family: var(--font-handwriting);
    font-size: 20px;
    font-weight: 600;
}

.footer-signature .signature-line {
    background: var(--white);
    margin: var(--spacing-sm) auto;
}

.footer-signature .signature-date {
    font-size: 16px;
    opacity: 0.8;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-star {
    position: absolute;
    font-size: 24px;
    color: var(--white);
    opacity: 0.6;
    animation: star-float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.star-3 {
    bottom: 30%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes star-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 768px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2rem;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .title-text {
        font-size: 36px;
    }
    
    .memory-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .polaroid {
        transform: none !important;
    }
    
    .cake-wrapper {
        width: 250px;
    }
    
    .cake {
        width: 160px;
    }
    
    .candles-container {
        gap: 20px;
    }
    
    .message-board-container {
        padding: var(--spacing-lg);
        margin: 0 var(--spacing-sm);
    }
    
    .message-note {
        position: relative;
        width: 100%;
        margin-bottom: var(--spacing-sm);
        transform: none !important;
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .message-note:hover {
        transform: scale(1.02) !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .title-text {
        font-size: 28px;
    }
    
    .celebration-title {
        font-size: 36px;
    }
    
    .celebration-text {
        font-size: 18px;
    }
}

/* ===============================
   Accessibility & Preferences
   =============================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .loading-screen,
    .celebration-overlay,
    .unbox-btn,
    .submit-btn {
        display: none !important;
    }
    
    .main-content {
        opacity: 1 !important;
        transform: none !important;
    }
}