/* ============================================
   Christmas Wishing Tree - Classic Christmas Style
   ============================================ */

/* CSS Variables - Classic Christmas Colors */
:root {
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #d4a017;
    --christmas-dark-green: #0f3d22;
    --night-sky: #0c1445;
    --night-sky-light: #1a237e;
    --snow-white: #f5f5f5;
    --warm-yellow: #ffd54f;
    --silver: #c0c0c0;
    --trunk-brown: #5d4037;
}

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

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Serif SC', 'Georgia', serif;
    background: linear-gradient(to bottom, #0c1445 0%, #1a237e 50%, #0d47a1 100%);
    min-height: 100vh;
    color: var(--snow-white);
    position: relative;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Canvas Layers */
#snowCanvas, #fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#fireworksCanvas {
    z-index: 100;
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 40px;
}

/* Header Title */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.8rem;
    color: var(--snow-white);
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* ============================================
   Christmas Tree Section
   ============================================ */
.tree-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 30px;
}

/* Tree Top Star */
.star {
    font-size: 3.5rem;
    color: var(--christmas-gold);
    text-shadow: 
        0 0 10px var(--christmas-gold),
        0 0 20px var(--christmas-gold),
        0 0 40px var(--warm-yellow),
        0 0 60px rgba(255, 215, 0, 0.5),
        0 0 80px rgba(255, 215, 0, 0.3);
    animation: starGlow 2s ease-in-out infinite, starRotate 8s linear infinite;
    z-index: 20;
    margin-bottom: -15px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes starGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.4) drop-shadow(0 0 25px rgba(255, 215, 0, 1));
    }
}

@keyframes starRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}

/* Christmas Tree */
.tree {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 10px 30px rgba(0, 100, 0, 0.3));
}

.tree-layer {
    width: 0;
    height: 0;
    border-style: solid;
    position: relative;
    transition: transform 0.3s ease;
}

/* Snow Effect on Tree Edges */
.tree-layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-color: transparent transparent rgba(255, 255, 255, 0.3) transparent;
    z-index: 10;
}

/* Tree Layer 1 (Top) */
.tree-layer-1 {
    border-width: 0 40px 70px 40px;
    border-color: transparent transparent #1e8449 transparent;
    margin-bottom: -20px;
    z-index: 4;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tree-layer-1::before {
    border-width: 0 38px 12px 38px;
    top: 58px;
}

.tree-layer-1::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
}

/* Tree Layer 2 */
.tree-layer-2 {
    border-width: 0 60px 85px 60px;
    border-color: transparent transparent #145a32 transparent;
    margin-bottom: -25px;
    z-index: 3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tree-layer-2::before {
    border-width: 0 58px 12px 58px;
    top: 73px;
}

/* Tree Layer 3 */
.tree-layer-3 {
    border-width: 0 85px 100px 85px;
    border-color: transparent transparent #1e8449 transparent;
    margin-bottom: -30px;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.tree-layer-3::before {
    border-width: 0 83px 12px 83px;
    top: 88px;
}

/* Tree Layer 4 (Bottom) */
.tree-layer-4 {
    border-width: 0 110px 120px 110px;
    border-color: transparent transparent #145a32 transparent;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.tree-layer-4::before {
    border-width: 0 108px 12px 108px;
    top: 108px;
}

/* Tree Overall Glow Effect */
.tree::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(30, 132, 73, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Extra Glow When Tree is Lit */
.tree.lit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 450px;
    background: radial-gradient(ellipse at center, rgba(255, 223, 100, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: treeGlow 3s ease-in-out infinite;
}

@keyframes treeGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Lights Container */
.lights-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 340px;
    pointer-events: none;
    z-index: 10;
}

/* Individual Light */
.light {
    position: absolute;
    width: 10px;
    height: 12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.9;
    transition: opacity 0.3s, box-shadow 0.3s;
}

.light.on {
    animation: lightGlow 1.5s ease-in-out infinite;
}

/* Light Colors */
.light.red { 
    background: radial-gradient(circle at 30% 30%, #ff8888, #ff4444, #cc0000); 
}
.light.yellow { 
    background: radial-gradient(circle at 30% 30%, #ffff88, #ffdd44, #cc9900); 
}
.light.blue { 
    background: radial-gradient(circle at 30% 30%, #88ddff, #44aaff, #0066cc); 
}
.light.green { 
    background: radial-gradient(circle at 30% 30%, #88ffaa, #44ff88, #00cc44); 
}

/* Light Glow Effects When On */
.light.red.on { 
    box-shadow: 
        0 0 8px 4px rgba(255, 68, 68, 0.9),
        0 0 15px 6px rgba(255, 68, 68, 0.5),
        0 0 25px 10px rgba(255, 68, 68, 0.3);
}
.light.yellow.on { 
    box-shadow: 
        0 0 8px 4px rgba(255, 221, 68, 0.9),
        0 0 15px 6px rgba(255, 221, 68, 0.5),
        0 0 25px 10px rgba(255, 221, 68, 0.3);
}
.light.blue.on { 
    box-shadow: 
        0 0 8px 4px rgba(68, 170, 255, 0.9),
        0 0 15px 6px rgba(68, 170, 255, 0.5),
        0 0 25px 10px rgba(68, 170, 255, 0.3);
}
.light.green.on { 
    box-shadow: 
        0 0 8px 4px rgba(68, 255, 136, 0.9),
        0 0 15px 6px rgba(68, 255, 136, 0.5),
        0 0 25px 10px rgba(68, 255, 136, 0.3);
}

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

/* Ornaments Container */
.ornaments-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 340px;
    z-index: 15;
}

/* Individual Ornament */
.ornament {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 
        inset -3px -3px 6px rgba(0, 0, 0, 0.3),
        inset 3px 3px 6px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ornament Cap */
.ornament::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 6px;
    background: var(--christmas-gold);
    border-radius: 2px 2px 0 0;
}

/* Ornament Highlight */
.ornament::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 6px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: rotate(-30deg);
}

.ornament:hover {
    transform: scale(1.2);
}

/* Tree Trunk */
.trunk {
    width: 40px;
    height: 50px;
    background: linear-gradient(to right, 
        #3d2817 0%, 
        #5d4037 30%, 
        #6d5047 50%, 
        #5d4037 70%, 
        #3d2817 100%
    );
    border-radius: 0 0 8px 8px;
    margin-top: -5px;
    box-shadow: 
        inset -5px 0 10px rgba(0, 0, 0, 0.3),
        inset 5px 0 10px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Trunk Wood Grain */
.trunk::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 3px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Gift Boxes */
.gifts {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    perspective: 500px;
}

.gift {
    position: relative;
    border-radius: 6px;
    transition: transform 0.3s ease;
    cursor: pointer;
    animation: giftFloat 3s ease-in-out infinite;
}

.gift:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Gift 1 - Red */
.gift-1 {
    width: 50px;
    height: 40px;
    background: linear-gradient(145deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    box-shadow: 
        0 8px 20px rgba(231, 76, 60, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.2);
    animation-delay: 0s;
}

/* Gift 2 - Gold */
.gift-2 {
    width: 40px;
    height: 50px;
    background: linear-gradient(145deg, #f1c40f 0%, #d4a017 50%, #b8860b 100%);
    align-self: flex-end;
    box-shadow: 
        0 8px 20px rgba(241, 196, 15, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.3);
    animation-delay: 0.5s;
}

/* Gift 3 - Green */
.gift-3 {
    width: 55px;
    height: 45px;
    background: linear-gradient(145deg, #27ae60 0%, #1e8449 50%, #145a32 100%);
    box-shadow: 
        0 8px 20px rgba(39, 174, 96, 0.4),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2),
        inset 0 5px 15px rgba(255, 255, 255, 0.2);
    animation-delay: 1s;
}

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

.gift:hover {
    animation-play-state: paused;
}

/* Gift Vertical Ribbon */
.gift-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255,255,255,0.6) 0%, 
        rgba(255,255,255,0.9) 50%, 
        rgba(255,255,255,0.6) 100%
    );
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.gift-1 .gift-ribbon,
.gift-3 .gift-ribbon {
    background: linear-gradient(to right, 
        rgba(255, 215, 0, 0.7) 0%, 
        rgba(255, 235, 100, 1) 50%, 
        rgba(255, 215, 0, 0.7) 100%
    );
}

.gift-2 .gift-ribbon {
    background: linear-gradient(to right, 
        rgba(231, 76, 60, 0.7) 0%, 
        rgba(255, 100, 80, 1) 50%, 
        rgba(231, 76, 60, 0.7) 100%
    );
}

/* Gift Horizontal Ribbon */
.gift::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.6) 0%, 
        rgba(255,255,255,0.9) 50%, 
        rgba(255,255,255,0.6) 100%
    );
}

.gift-1::before,
.gift-3::before {
    background: linear-gradient(to bottom, 
        rgba(255, 215, 0, 0.7) 0%, 
        rgba(255, 235, 100, 1) 50%, 
        rgba(255, 215, 0, 0.7) 100%
    );
}

.gift-2::before {
    background: linear-gradient(to bottom, 
        rgba(231, 76, 60, 0.7) 0%, 
        rgba(255, 100, 80, 1) 50%, 
        rgba(231, 76, 60, 0.7) 100%
    );
}

/* Gift Bow */
.gift-bow {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 18px;
    z-index: 5;
}

/* Bow Left Loop */
.gift-bow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 14px;
    height: 12px;
    border-radius: 50% 50% 50% 50%;
    transform: rotate(-30deg);
}

/* Bow Right Loop */
.gift-bow::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 0;
    width: 14px;
    height: 12px;
    border-radius: 50% 50% 50% 50%;
    transform: rotate(30deg);
}

.gift-1 .gift-bow::before,
.gift-1 .gift-bow::after,
.gift-3 .gift-bow::before,
.gift-3 .gift-bow::after {
    background: linear-gradient(145deg, #ffd700 0%, #ffec8b 50%, #daa520 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.gift-2 .gift-bow::before,
.gift-2 .gift-bow::after {
    background: linear-gradient(145deg, #ff6b6b 0%, #ee5a5a 50%, #c0392b 100%);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
}

/* Bow Center Knot */
.gift-bow-center {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 6;
}

.gift-1 .gift-bow-center,
.gift-3 .gift-bow-center {
    background: radial-gradient(circle at 30% 30%, #ffec8b, #ffd700, #daa520);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.gift-2 .gift-bow-center {
    background: radial-gradient(circle at 30% 30%, #ff8888, #e74c3c, #c0392b);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Action Buttons
   ============================================ */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Wish Button */
.btn-wish {
    background: linear-gradient(135deg, var(--christmas-red) 0%, #a31545 100%);
    color: white;
}

/* Light Button */
.btn-light {
    background: linear-gradient(135deg, var(--christmas-gold) 0%, #b8860b 100%);
    color: #333;
}

/* Firework Button */
.btn-firework {
    background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%);
    color: white;
}

/* Music Control */
.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    color: white;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.music-btn.playing .music-icon {
    animation: musicPulse 1s ease-in-out infinite;
}

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

/* Footer */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.blessing {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Wish Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a3a1a 0%, #0d2a0d 100%);
    border: 2px solid var(--christmas-gold);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--christmas-gold);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
}

.wish-input {
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    resize: none;
    transition: border-color 0.3s;
}

.wish-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wish-input:focus {
    outline: none;
    border-color: var(--christmas-gold);
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Color Picker */
.color-picker {
    margin-top: 20px;
}

.color-picker p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 0 2px var(--christmas-gold);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--christmas-red) 0%, #a31545 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* Wish Tooltip */
.wish-tooltip {
    display: none;
    position: fixed;
    background: rgba(26, 58, 26, 0.95);
    border: 2px solid var(--christmas-gold);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 250px;
    color: white;
    font-size: 0.95rem;
    z-index: 200;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.wish-tooltip.show {
    display: block;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .tree-layer-1 {
        border-width: 0 30px 55px 30px;
    }
    
    .tree-layer-2 {
        border-width: 0 45px 65px 45px;
    }
    
    .tree-layer-3 {
        border-width: 0 65px 80px 65px;
    }
    
    .tree-layer-4 {
        border-width: 0 85px 95px 85px;
    }
    
    .lights-container,
    .ornaments-container {
        width: 170px;
        height: 270px;
    }
    
    .star {
        font-size: 2.5rem;
    }
    
    .trunk {
        width: 30px;
        height: 40px;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        justify-content: center;
    }
    
    .gifts {
        gap: 15px;
    }
    
    .gift-1 {
        width: 40px;
        height: 32px;
    }
    
    .gift-2 {
        width: 32px;
        height: 40px;
    }
    
    .gift-3 {
        width: 45px;
        height: 36px;
    }
    
    .gift-bow {
        top: -10px;
        width: 22px;
        height: 14px;
    }
    
    .gift-bow::before,
    .gift-bow::after {
        width: 11px;
        height: 10px;
    }
    
    .gift-bow-center {
        width: 8px;
        height: 8px;
        top: -8px;
    }
    
    .music-control {
        bottom: 15px;
        right: 15px;
    }
    
    .music-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .ornament {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 380px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 15px;
    }
}

/* Lighting Animation */
.tree.lighting .light {
    opacity: 0;
}

.tree.lit .light {
    opacity: 1;
}

/* ============================================
   Language Switch Button
   ============================================ */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: white;
    font-family: 'Noto Serif SC', serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

#langIcon {
    font-size: 1rem;
}

@media (max-width: 600px) {
    .lang-switch {
        top: 15px;
        right: 15px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
