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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.welcome-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.welcome-content {
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.welcome-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-message {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.welcome-date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.welcome-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.welcome-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.welcome-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    min-height: 20px;
}

.birthday-page {
    width: 100%;
    height: 100%;
}

.container {
    text-align: center;
    padding: 40px 20px;
    margin-top: 200px;
    position: relative;
    max-width: 800px;
}

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

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.title {
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.title h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.5); }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out;
}

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

.cake-container {
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

.cake {
    position: relative;
    width: 300px;
    height: 250px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

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

.plate {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 20px;
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.layer-bottom {
    bottom: 20px;
    width: 280px;
    height: 70px;
    background: linear-gradient(to bottom, #ff6b6b, #ee5a5a);
}

.layer-middle {
    bottom: 90px;
    width: 220px;
    height: 60px;
    background: linear-gradient(to bottom, #feca57, #f9b234);
}

.layer-top {
    bottom: 150px;
    width: 160px;
    height: 50px;
    background: linear-gradient(to bottom, #ff9ff3, #f368e0);
}

.decoration {
    position: absolute;
    width: 100%;
    height: 10px;
    top: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px 10px 0 0;
}

.layer-bottom .decoration::after {
    display: none;
}

.layer-middle .decoration::after {
    display: none;
}

.chocolate-drip {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.chocolate-drip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, #8B4513, #654321);
    border-radius: 0 0 10px 10px;
}

.chocolate-drip::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 20px;
    width: 15px;
    height: 25px;
    background: linear-gradient(to bottom, #8B4513, #654321);
    border-radius: 0 0 50% 50%;
    box-shadow: 
        40px 5px 0 #8B4513,
        80px -2px 0 #8B4513,
        120px 3px 0 #8B4513,
        160px 0px 0 #8B4513,
        200px 4px 0 #8B4513;
}

.frosting {
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    border-radius: 50%;
    box-shadow: 
        0 3px 0 #e0e0e0,
        0 6px 0 #d0d0d0;
}

.frosting::before,
.frosting::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 20px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
}

.frosting::before {
    left: 30px;
    box-shadow: 
        40px 0 0 #fff,
        80px 0 0 #fff,
        120px 0 0 #fff;
}

.frosting::after {
    right: 30px;
    box-shadow: 
        -40px 0 0 #fff,
        -80px 0 0 #fff;
}

.fruit {
    position: absolute;
    width: 20px;
    height: 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        inset -2px -2px 5px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.fruit::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: #228B22;
    border-radius: 1px;
}

.fruit::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 
        -3px 2px 0 #fff,
        3px 2px 0 #fff;
}

.strawberry-1 {
    top: 8px;
    left: 20px;
}

.strawberry-2 {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.strawberry-3 {
    top: 8px;
    right: 20px;
}

.cherry {
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #ff4444, #cc0000);
    border-radius: 50%;
    box-shadow: 
        inset -3px -3px 8px rgba(0, 0, 0, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.3);
}

.cherry::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: linear-gradient(to bottom, #228B22, #006400);
    border-radius: 2px;
}

.cherry::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        6px 2px 0 rgba(255, 255, 255, 0.4);
}

.cherry-1 {
    top: 12px;
    left: 25px;
}

.cherry-2 {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.cherry-3 {
    top: 12px;
    right: 25px;
}

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

.candle {
    position: relative;
    width: 12px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wick {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #333;
    border-radius: 1px;
}

.flame {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 24px;
    background: linear-gradient(to bottom, #ff6b6b, #feca57, #ff9ff3);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s infinite alternate;
    box-shadow: 0 0 20px #ff9ff3,
                0 0 40px #feca57,
                0 0 60px #ff6b6b;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1) rotate(-2deg);
        opacity: 1;
    }
    25% {
        transform: translateX(-50%) scale(1.1) rotate(2deg);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-50%) scale(0.95) rotate(-1deg);
        opacity: 1;
    }
    75% {
        transform: translateX(-50%) scale(1.05) rotate(1deg);
        opacity: 0.95;
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.flame.blown-out {
    animation: blowOut 0.5s forwards;
}

@keyframes blowOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
}

.instruction {
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

#instruction-text {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wish-container {
    margin-top: 40px;
    position: relative;
    z-index: 1;
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.wish-container.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.wish-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

#wish-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    resize: vertical;
    margin-bottom: 20px;
    font-family: inherit;
}

#wish-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.wish-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    color: white;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s linear forwards;
}

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

.smoke {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: smoke-rise 1s ease-out forwards;
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-50px) scale(2);
        opacity: 0;
    }
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-explode 1s ease-out forwards;
}

@keyframes firework-explode {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: translate(var(--vx), var(--vy)) scale(0); 
        opacity: 0; 
    }
}

.balloon {
    position: absolute;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: balloon-rise 4s ease-out forwards;
}

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

.balloon::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

@keyframes balloon-rise {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(10deg);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple-effect 1s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    transform: rotate(-45deg);
    animation: heart-fall 3s linear forwards;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
}

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

.heart::after {
    top: 0;
    left: 10px;
}

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

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    animation: ripple-animation 1s ease-out forwards;
    z-index: 1;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.cake-celebration {
    animation: cake-shake 0.5s ease-in-out infinite;
}

@keyframes cake-shake {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-explode 1s ease-out forwards;
}

@keyframes sparkle-explode {
    0% { 
        transform: translate(0, 0) scale(1); 
        opacity: 1; 
    }
    100% { 
        transform: translate(var(--vx), var(--vy)) scale(0); 
        opacity: 0; 
    }
}

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

@keyframes heart-explode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), var(--vy)) scale(0);
        opacity: 0;
    }
}

.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

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

.heart-rain {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    will-change: transform;
    contain: layout style paint;
}

.heart-explosion {
    position: absolute;
    pointer-events: none;
    z-index: 2000;
    will-change: transform;
    contain: layout style paint;
}

.music-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.music-label {
    position: fixed;
    top: 30px;
    right: 80px;
    color: white;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.music-btn:hover + .music-label {
    opacity: 1;
}

.time-control {
    position: fixed;
    top: 20px !important;
    left: 20px !important;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.blessing-cards-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

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

.cards-container {
    position: relative;
    width: 320px;
    height: 480px;
    perspective: 1000px;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.blessing-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    cursor: grab;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.blessing-card:active {
    cursor: grabbing;
}

.blessing-card.swiping {
    transition: none;
}

.blessing-card.swipe-left {
    transform: translateX(-150%) rotate(-30deg) !important;
    opacity: 0 !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.blessing-card.swipe-right {
    transform: translateX(150%) rotate(30deg) !important;
    opacity: 0 !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.card-blessing {
    font-size: 1.5rem;
    line-height: 2;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.card-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.card-dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .time-control {
        top: 20px !important;
        left: 20px !important;
        bottom: auto !important;
        max-width: 200px;
    }
    
    .cards-container {
        width: 280px;
        height: 420px;
    }
    
    .card-avatar {
        font-size: 5rem;
    }
    
    .card-name {
        font-size: 1.5rem;
    }
    
    .card-blessing {
        font-size: 1rem;
    }
}

.time-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.time-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.time-slider {
    width: 100%;
    max-width: 200px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.time-marks {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 10px;
    opacity: 0.8;
    padding: 0 5px;
}

.time-marks span {
    flex: 1;
    text-align: center;
}

.color-picker {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.2);
    border-color: white;
}

.cake.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.cake.glow {
    animation: glow-cake 1s ease;
}

@keyframes glow-cake {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
}

.fruit:hover,
.cherry:hover {
    cursor: pointer;
    animation: bounce 0.5s ease;
}

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

.fruit.clicked,
.cherry.clicked {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cake {
        transform: scale(0.8);
    }
    
    .candles-container {
        gap: 20px;
    }
}