* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1419 100%);
    position: relative;
}

.sound-notice {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6);
    pointer-events: none;
    user-select: none;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 35px rgba(255, 215, 0, 0.6);
    }
}

@media screen and (max-width: 768px) {
    .sound-notice {
        top: 16px;
        left: 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .sound-notice {
        top: 12px;
        left: 12px;
        font-size: 12px;
    }
}

#stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 1.5px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: twinkle 4s infinite;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.tree-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    width: fit-content;
    height: fit-content;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.tree {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 40px;
    line-height: 1.2;
    text-align: center;
    white-space: pre;
    user-select: none;
    display: block;
}

.tree-star {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    filter: brightness(1.5);
}

.tree-star.color-white {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.tree-star.color-pink {
    color: #ff69b4;
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.8);
}

.tree-star.color-blue {
    color: #4169e1;
    text-shadow: 0 0 8px rgba(65, 105, 225, 0.8);
}

.tree-star.color-green {
    color: #32cd32;
    text-shadow: 0 0 8px rgba(50, 205, 50, 0.8);
}

.tree-trunk {
    color: #00ff00;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.8), 0 0 15px rgba(0, 255, 0, 0.5);
    filter: brightness(1.3);
}

@media screen and (min-width: 769px) {
    .tree-container {
        left: calc(50% - 250px);
    }
}

@media screen and (max-width: 768px) {
    .tree {
        font-size: 28px;
    }
    
    .tree-container {
        left: 50%;
        top: calc(50% - 200px);
        transform: translate(-50%, -50%);
    }
}

@media screen and (max-width: 480px) {
    .tree {
        font-size: 22px;
    }
    
    .tree-container {
        left: 50%;
        top: calc(50% - 200px);
        transform: translate(-50%, -50%);
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    .tree {
        font-size: 24px;
    }
    
    .tree-container {
        left: 50%;
        top: calc(50% - 200px);
        transform: translate(-50%, -50%);
    }
}

.music-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    width: 60px;
    height: 60px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3);
    animation: pulse 2s infinite;
}

.music-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 6px 25px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.music-btn:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(0, 255, 0, 0.6); }
}

@media screen and (max-width: 768px) {
    .music-btn {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
.music-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.music-modal.active,
.music-modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    background: rgba(30, 35, 58, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 320px;
    width: 90%;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.modal-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 30px 0;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.allow-btn {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.allow-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.deny-btn {
    background: rgba(100, 100, 100, 0.2);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deny-btn:hover {
    background: rgba(150, 150, 150, 0.3);
}

.music-indicator {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
    background: rgba(10, 14, 39, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    min-width: 80px;
    height: 44px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.music-indicator:hover {
    background: rgba(10, 14, 39, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-indicator.playing {
    opacity: 1;
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(10, 14, 39, 0.5);
}

.music-indicator.playing .sound-waves {
    opacity: 1;
}

.music-indicator.playing .music-icon {
    color: #00ff88;
}

.music-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sound-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wave {
    width: 3px;
    height: 12px;
    background: linear-gradient(to top, #00ff88, rgba(0, 255, 136, 0.3));
    border-radius: 2px;
    animation: waveAnimation 1.2s ease-in-out infinite;
}

.wave:nth-child(1) {
    animation-delay: 0s;
}

.wave:nth-child(2) {
    animation-delay: 0.2s;
    height: 16px;
}

.wave:nth-child(3) {
    animation-delay: 0.4s;
    height: 20px;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .music-indicator {
        top: 16px;
        right: 16px;
        padding: 10px 12px;
        min-width: 70px;
        height: 40px;
        gap: 10px;
        position: fixed;
        z-index: 1000;
    }
    
    .music-icon {
        width: 18px;
        height: 18px;
    }
    
    .wave {
        width: 2.5px;
        height: 10px;
    }
    
    .wave:nth-child(2) {
        height: 14px;
    }
    
    .wave:nth-child(3) {
        height: 18px;
    }

    .music-modal {
        z-index: 2000;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-icon {
        font-size: 40px;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
}
