/* Core styles and layout */
body { 
    background-color: #000; 
    overflow: hidden; 
    touch-action: none; 
    user-select: none; 
}

/* CRT effect */
.crt::before { 
    content: " "; 
    display: block; 
    position: absolute; 
    top: 0; 
    left: 0; 
    bottom: 0; 
    right: 0; 
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); 
    z-index: 2; 
    background-size: 100% 2px, 3px 100%; 
    pointer-events: none; 
}

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar { 
    width: 8px; 
}

.custom-scroll::-webkit-scrollbar-track { 
    background: rgba(0,0,0,0.5); 
}

.custom-scroll::-webkit-scrollbar-thumb { 
    background: #4ade80; 
    border-radius: 4px; 
}

/* Universe container */
#universe-container { 
    width: 100vw; 
    height: 100vh; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/* Orbit system zoom */
.orbit-system {
    transform-origin: center center; 
    transition: transform 0.1s ease-out; 
}

/* Animation pause state */
body.animations-paused .animate-spin-slow, 
body.animations-paused .animate-spin-medium, 
body.animations-paused .counter-rotate-outer, 
body.animations-paused .counter-rotate-inner { 
    animation-play-state: paused !important; 
}

/* Modal closing animation */
.modal-closing-animation { 
    animation: crt-off 0.5s ease-in-out forwards; 
}

/* Accordion styles */
.accordion-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:focus {
    outline: none;
}

.accordion-header:focus-visible {
    outline: 2px solid rgba(74, 222, 128, 0.5);
    outline-offset: 2px;
}