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

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    background: #0d1117;
    color: #e6e6e6;
    overflow: hidden;
    height: 100vh;
}

#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#gatheringStage {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    pointer-events: none;
    z-index: 2;
    border-bottom: 4px solid #374151; /* Horizon line */
    background: linear-gradient(to top, #111827 0%, transparent 20%); /* Ground fade */
}

.earthquake-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.earthquake-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.earthquake-btn.small {
    background: #10b981;
    box-shadow: 0 3px 0 #059669;
}

.earthquake-btn.big {
    background: #f59e0b;
    box-shadow: 0 3px 0 #d97706;
}

.earthquake-btn.mega {
    background: #ef4444;
    box-shadow: 0 4px 0 #991b1b;
    font-size: 16px;
    padding: 12px 24px;
}

.earthquake-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 transparent;
}

.earthquake-btn:hover {
    filter: brightness(1.1);
}

.flash-toggle-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.flash-toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    background: #6b7280;
    box-shadow: 0 3px 0 #4b5563;
}

.flash-toggle-btn.active {
    background: #3b82f6;
    box-shadow: 0 3px 0 #1d4ed8;
}

.flash-toggle-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 transparent;
}

.flash-toggle-btn:hover {
    filter: brightness(1.1);
}

.expression-toggle-container {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.expression-toggle-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    background: #8b5cf6;
    box-shadow: 0 3px 0 #6d28d9;
}

.expression-toggle-btn.default {
    background: #10b981;
    box-shadow: 0 3px 0 #059669;
}

.expression-toggle-btn.active {
    background: #f59e0b;
    box-shadow: 0 3px 0 #d97706;
}

.expression-toggle-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 transparent;
}

.expression-toggle-btn:hover {
    filter: brightness(1.1);
}

.firework-effect-container {
    margin-top: 20px;
    text-align: center;
}

.sprite-control-main {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.sprite-main-label {
    display: block;
    text-align: center;
    font-size: 0.95em;
    color: #e0e7ff;
    margin-bottom: 10px;
    font-weight: 500;
}

.sprite-main-value {
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.2em;
}

.sprite-main-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sprite-main-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.sprite-main-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.sprite-main-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.sprite-main-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.sprite-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: #9ca3af;
    text-align: center;
}

.effect-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.effect-select {
    padding: 8px 15px;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.effect-select:hover {
    border-color: #6d28d9;
    background: #f3f4f6;
}

.effect-select:focus {
    outline: none;
    border-color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.performance-test-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.performance-test-container h3 {
    text-align: center;
    margin-bottom: 15px;
}

.test-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    margin: 5px;
    background: #3b82f6;
    box-shadow: 0 3px 0 #1e40af;
}

.test-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.test-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #1e40af;
}

.test-btn.clear {
    background: #ef4444;
    box-shadow: 0 3px 0 #991b1b;
}

/* Funny/Mischievous expression style */
.character.funny-style .character-face {
    font-size: 42px;
    filter: hue-rotate(45deg) saturate(1.3);
}

.character.funny-style .character-body {
    animation: lewdWiggle 1.5s ease-in-out infinite;
}

.character.funny-style .character-eyes {
    animation: eyebrowRaise 2s ease-in-out infinite;
}

@keyframes lewdWiggle {
    0%, 100% { transform: scaleX(1) scaleY(1) rotate(0deg); }
    15% { transform: scaleX(1.08) scaleY(0.92) rotate(-2deg); }
    30% { transform: scaleX(0.92) scaleY(1.08) rotate(2deg); }
    45% { transform: scaleX(1.08) scaleY(0.92) rotate(-2deg); }
    60% { transform: scaleX(0.92) scaleY(1.08) rotate(2deg); }
    75% { transform: scaleX(1.05) scaleY(0.95) rotate(-1deg); }
}

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

.earthquake-shake {
    animation: earthquake 0.5s infinite;
}

@keyframes earthquake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

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

@keyframes angryShake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-55%) rotate(-5deg); }
    75% { transform: translateX(-45%) rotate(5deg); }
}

@keyframes dizzyCircle {
    0% { 
        transform: translate(-50%, -50%) translateX(30px) translateY(0px) scale(1);
        z-index: 10;
        opacity: 1;
    }
    25% { 
        transform: translate(-50%, -50%) translateX(0px) translateY(-15px) scale(0.7);
        z-index: 5;
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) translateX(-30px) translateY(0px) scale(1);
        z-index: 10;
        opacity: 1;
    }
    75% { 
        transform: translate(-50%, -50%) translateX(0px) translateY(15px) scale(1.2);
        z-index: 15;
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) translateX(30px) translateY(0px) scale(1);
        z-index: 10;
        opacity: 1;
    }
}

.character {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    cursor: grab;
    pointer-events: auto;
    touch-action: none;
    will-change: transform;
}

.user-indicator {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
                 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: bounce-arrow 1s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.character.dragging {
    cursor: grabbing;
    z-index: 100 !important;
}

.character:hover {
    /* Only hover scale if not dragging */
    z-index: 10;
}

/* Remove hover transform scale as it interferes with physics transform */
.character:not(.dragging):hover .character-body {
    transform: scale(1.1) translateY(-10px);
    transition: transform 0.2s;
}

.character-body {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: inset -2px -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    z-index: 2;
    transform-origin: center bottom;
    transition: transform 0.1s ease-out;
}

.character-shadow {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    z-index: 1;
    animation: shadow-pulse 1s infinite ease-in-out alternate;
}

.character-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.character-eye {
    position: absolute;
    top: 38%;
    width: 10px;
    height: 10px;
    background: #1f2937;
    border-radius: 50%;
    animation: blink 4s infinite;
}

.character-eye::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.character-eye.left { left: 25%; }
.character-eye.right { right: 25%; }

.character-blush {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 6px;
    background: rgba(255, 99, 71, 0.4);
    border-radius: 50%;
}
.character-blush.left { left: 15%; }
.character-blush.right { right: 15%; }

.character-mouth {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    border-bottom: 2px solid #1f2937;
    border-radius: 0 0 10px 10px;
}

.blessing-bubble {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blessing-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
}

.character:hover .blessing-bubble {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: 120%;
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1.1, 0.95); }
    100% { transform: translateY(-15px) scale(0.95, 1.08); }
}

@keyframes shadow-pulse {
    0% { transform: translateX(-50%) scale(1.2); opacity: 0.3; }
    100% { transform: translateX(-50%) scale(0.6); opacity: 0.1; }
}

@keyframes blink {
    0%, 96%, 100% { transform: scaleY(1); }
    98% { transform: scaleY(0.1); }
}

.launching {
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in 1s;
}

#demoSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

#demoSection.active {
    display: flex;
}

.demo-overlay {
    text-align: center;
    pointer-events: auto;
    animation: fadeInUp 1s ease-out;
}

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

.demo-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #f3f4f6;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.demo-subtitle {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #9ca3af;
    font-weight: 400;
}

.open-input-btn {
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 500;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.open-input-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

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

.mode-selector {
    margin-top: 30px;
    margin-bottom: 20px;
}

.mode-label {
    color: #9ca3af;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.mode-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mode-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #4a5568;
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
}

.mode-btn:hover {
    border-color: #3b82f6;
    color: #e5e7eb;
}

.mode-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.stats-preview {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #f3f4f6;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95em;
    color: #6b7280;
    font-weight: 400;
}

#inputSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(8px);
    animation: slideIn 0.4s ease-out;
}

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

#inputSection.active {
    display: flex;
}

/* New Blessing Container Styles */
.blessing-container {
    max-width: 680px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3), 0 0 100px rgba(168, 85, 247, 0.1);
    position: relative;
}

.blessing-container::-webkit-scrollbar {
    width: 10px;
}

.blessing-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.blessing-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.blessing-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a78bfa 0%, #818cf8 100%);
}

.header-with-close {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.close-btn-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: bold;
}

.close-btn-new:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fee2e2;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.blessing-header {
    text-align: center;
    margin-bottom: 36px;
}

.blessing-title {
    font-size: 2em;
    margin-bottom: 12px;
    color: #f3f4f6;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.blessing-subtitle {
    font-size: 0.95em;
    color: #9ca3af;
    font-weight: 400;
}

.countdown-card {
    text-align: center;
    margin-bottom: 36px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    border-radius: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.countdown-label {
    font-size: 0.9em;
    color: #fcd34d;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-time {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blessing-input-wrapper {
    margin-bottom: 32px;
    display: flex;
    gap: 12px;
}

.sprite-control-section {
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.sprite-control-title {
    font-size: 1.1em;
    color: #e0e7ff;
    font-weight: 600;
    margin-bottom: 16px;
}

.sprite-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sprite-slider-label {
    font-size: 0.95em;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sprite-value {
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.1em;
}

.sprite-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(139, 92, 246, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sprite-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.sprite-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.sprite-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    transition: all 0.2s ease;
}

.sprite-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.6);
}

.slider-marks {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    color: #6b7280;
    padding: 0 2px;
}

.blessing-input-field {
    flex: 1;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.6);
    color: #f3f4f6;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Microsoft JhengHei', sans-serif;
}

.blessing-input-field::placeholder {
    color: #6b7280;
}

.blessing-input-field:focus {
    border-color: #8b5cf6;
    background: rgba(17, 24, 39, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.submit-blessing-btn {
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Microsoft JhengHei', sans-serif;
}

.submit-blessing-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

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

#submitBtn:active {
    transform: scale(0.98);
}

.blessings-display {
    margin-top: 32px;
}

.blessings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.blessings-title {
    font-size: 1.2em;
    color: #e0e7ff;
    font-weight: 600;
}

.blessings-count-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.blessings-grid {
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(17, 24, 39, 0.4);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    display: grid;
    gap: 10px;
}

.blessings-grid::-webkit-scrollbar {
    width: 8px;
}

.blessings-grid::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.blessings-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 10px;
}

.blessing-item {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-left: 3px solid #8b5cf6;
    border-radius: 12px;
    font-size: 0.95em;
    color: #e5e7eb;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blessing-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

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

.recent-blessings-section {
    margin-top: 32px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.recent-title {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #e0e7ff;
    font-weight: 600;
}

.recent-scroll {
    max-height: 160px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(17, 24, 39, 0.4);
    border-radius: 12px;
}

.recent-scroll::-webkit-scrollbar {
    width: 8px;
}

.recent-scroll::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 10px;
}

.recent-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #6366f1 100%);
    border-radius: 10px;
}

.recent-blessing-item {
    padding: 14px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    font-size: 0.95em;
    color: #e5e7eb;
    border-left: 3px solid #8b5cf6;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recent-blessing-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

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

#fireworksSection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

#fireworksSection.active {
    display: flex;
}

#midnightMessage {
    text-align: center;
    animation: messageAppear 2s ease-out;
}

#midnightMessage h1 {
    font-size: 3em;
    margin-bottom: 16px;
    color: #f3f4f6;
}

#midnightMessage p {
    font-size: 1.2em;
    color: #9ca3af;
}

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

@media (max-width: 768px) {
    .blessing-container {
        padding: 24px;
        width: 95%;
    }
    
    .blessing-title {
        font-size: 1.8em;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .demo-title {
        font-size: 2em;
    }
    
    .demo-subtitle {
        font-size: 1em;
    }
    
    .open-input-btn {
        padding: 15px 35px;
        font-size: 1.1em;
    }
    
    .stats-preview {
        gap: 30px;
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #midnightMessage h1 {
        font-size: 2.5em;
    }
}
