* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
}

#universeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#ui-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 100;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#topic-info {
    font-size: 1.2rem;
    opacity: 0.8;
}

#planet-challenge {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #000;
}

#planet-challenge.hidden {
    display: none;
}

#planetCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000510, #001040);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    font-family: 'Space Grotesk', sans-serif;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-content h1 {
    color: #00ffff;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    margin: 2rem auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    transition: width 3s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-text {
    color: #00ffff;
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.8;
}

.start-game {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #00ffff;
    border: none;
    border-radius: 5px;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.start-game.visible {
    opacity: 1;
    transform: translateY(0);
}

.start-game:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-messages {
    height: 1.5em;
    margin-top: 1rem;
    color: rgba(0, 255, 255, 0.7);
}

.game-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    font-family: 'Space Grotesk', sans-serif;
}

.intro-content {
    width: 800px;
    padding: 2rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 20, 40, 0.8);
    border: 2px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.intro-content h1 {
    color: #00ffff;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.story-sequence {
    min-height: 300px;
    position: relative;
}

.story-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.story-panel.active {
    opacity: 1;
    pointer-events: auto;
}

.story-panel h2 {
    color: #00ffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-panel p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.story-panel ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1rem auto;
    max-width: 500px;
    
}

.story-panel ul li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 3px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    font-size: 1.2rem;
}

.intro-controls {
    margin-top: 2rem;
}

.nav-btn {
    background: rgba(0, 255, 255, 0.2);
    border: 1.5px solid #00ffff;
    border-radius: 5px;
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.3);
}

.start-odyssey {
    display: none;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: #00ffff;
    border: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-odyssey.hidden {
    display: none;
}

.start-odyssey:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.status-panel-planet {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 30, 60, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Space Grotesk', sans-serif;
    width: 300px;
    z-index: 1000;
}

.status-panel-planet h2 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.5em;
}

.status-panel-planet h3 {
    color: #fff;
    margin: 0 0 10px 0;
}

.progress-container {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar-planet {
    height: 100%;
    background: linear-gradient(90deg, #4287f5, #42f54b);
    transition: width 0.3s ease;
}

.status-panel-planet p {
    margin: 10px 0;
}

.status-panel-planet .completed {
    color: #42f54b;
}

.status-panel-planet .ready {
    color: #f5d442;
}

.status-panel-planet .pending {
    color: #888;
}

