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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: #f5f1e8;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Brand Header */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-text {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.brand-lovable {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #ff1744 0%, #f50057 25%, #d500f9 75%, #651fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* X-Mas Logo */
.xmas-logo {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ff1744 0%, #f50057 25%, #d500f9 75%, #651fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 40px;
    text-align: center;
}

.xmas-logo.small {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 30px;
}

/* Intro Screen */
.intro-screen {
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #666;
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Gift Box Container */
.gift-box-container {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}

.gift-box-container:hover {
    transform: scale(1.05);
}

.gift-box-container:active {
    transform: scale(0.98);
}

.gift-icon {
    font-size: clamp(5rem, 15vw, 10rem);
    margin-bottom: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.gift-box-container:hover .gift-icon {
    transform: rotate(-10deg) scale(1.1);
}

.click-hint {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.gift-box-container:hover .click-hint {
    color: #f50057;
}

/* Gift Box Opening Animation */
.gift-box-container.opening .gift-icon {
    animation: openGift 0.6s ease-out forwards;
}

@keyframes openGift {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(15deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Reveal Screen */
.reveal-screen {
    text-align: center;
    max-width: 700px;
    width: 100%;
}

.reveal-screen.hidden {
    display: none;
}

.reveal-content {
    animation: revealFade 0.6s ease-out;
}

@keyframes revealFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.reveal-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

/* Gift Card */
.gift-card {
    background: white;
    border-radius: 24px;
    padding: clamp(40px, 6vw, 60px) clamp(30px, 5vw, 50px);
    margin-bottom: 40px;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.12);
}

.gift-badge {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1;
}

.gift-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ff1744 0%, #f50057 25%, #d500f9 75%, #651fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.gift-duration {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #666;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.gift-message {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #555;
    line-height: 1.7;
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
}

/* Email Notice */
.email-notice {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.08), rgba(213, 0, 249, 0.08));
    border: 1px solid rgba(255, 23, 68, 0.15);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 30px);
    margin-bottom: 30px;
}

.email-text {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #1a1a1a;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Replay Button */
.replay-btn {
    background: linear-gradient(135deg, #ff1744 0%, #f50057 25%, #d500f9 75%, #651fff 100%);
    color: white;
    border: none;
    padding: clamp(14px, 2.5vw, 18px) clamp(32px, 5vw, 48px);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 20px rgba(245, 0, 87, 0.25);
}

.replay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 0, 87, 0.35);
}

.replay-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(245, 0, 87, 0.3);
}

/* Responsive Design */

/* Large Tablets and Small Desktops */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 40px 30px;
    }
}

/* Tablets */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        padding: 30px 20px;
    }
    
    .gift-card {
        padding: 40px 30px;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .container {
        padding: 30px 16px;
    }
    
    .brand-header {
        gap: 8px;
    }
    
    .xmas-logo {
        margin-bottom: 30px;
    }
    
    .xmas-logo.small {
        margin-bottom: 20px;
    }
    
    .subtitle {
        margin-bottom: 50px;
    }
    
    .gift-card {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .gift-badge {
        margin-bottom: 16px;
    }
    
    .gift-duration {
        margin-bottom: 24px;
    }
    
    .email-notice {
        padding: 20px;
        border-radius: 14px;
    }
    
    .replay-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Small Mobile */
@media (max-width: 399px) {
    .container {
        padding: 24px 12px;
    }
    
    .gift-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 20px 16px;
    }
    
    .xmas-logo {
        margin-bottom: 20px;
    }
    
    .subtitle {
        margin-bottom: 30px;
    }
    
    .gift-card {
        padding: 30px 25px;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .gift-box-container:hover {
        transform: none;
    }
    
    .gift-box-container:hover .gift-icon {
        transform: none;
    }
    
    .gift-box-container:active .gift-icon {
        transform: scale(0.95);
    }
    
    .replay-btn:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(245, 0, 87, 0.25);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gift-icon,
    .intro-screen,
    .reveal-content,
    .gift-card,
    .replay-btn {
        animation: none;
        transition: none;
    }
    
    .gift-box-container.opening .gift-icon {
        animation-duration: 0.1s;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background: #ffffff;
    }
    
    .gift-card {
        border: 2px solid #1a1a1a;
    }
    
    .email-notice {
        border: 2px solid #ff1744;
    }
}
