<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #0c0c1e; /* Deep space blue */
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content for welcome screen */
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}
.screen { display: none; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.screen.active { display: flex; }

#welcome-screen, #level-selection-screen {
    text-align: center;
    background-color: rgba(12, 12, 30, 0.85);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(128, 128, 255, 0.2);
    width: 90%;
    max-width: 600px; /* Max width for welcome/level select */
}
#game-screen {
     justify-content: flex-start; /* Align game elements to top */
     width: 100%; /* Game screen can take full width */
}

.game-title-font {
    font-family: 'Press Start 2P', cursive;
    color: #9f86ff; /* Nebula purple */
    text-shadow: 0 0 10px #9f86ff, 0 0 20px #9f86ff;
}
#main-title { font-size: 2.5rem; margin-bottom: 30px; }
#game-header-title { font-size: 1.8rem; margin-bottom: 10px; }


#game-canvas-container {
    width: 90vw;
    max-width: 800px;
    height: 60vh;
    max-height: 550px; /* Adjusted height */
    background-color: #121228; /* Darker space */
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(128, 128, 255, 0.3);
    position: relative;
    overflow: hidden;
    touch-action: none; /* For OrbitControls on touch devices */
}
#game-canvas { display: block; width: 100%; height: 100%; }
#confetti-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }


#controls-area, .screen-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    gap: 15px;
}
.game-button {
    font-family: 'Press Start 2P', cursive;
    background-color: #7b68ee; /* Medium Slate Blue */
    color: white;
    border: none;
    padding: 12px 20px; /* Adjusted padding */
    text-align: center;
    text-decoration: none; /* For &lt;a&gt; tags styled as buttons */
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px #483d8b; /* Darker Slate Blue */
    display: inline-block; /* For &lt;a&gt; tags */
}
.game-button:hover:not(:disabled) { background-color: #6a5acd; }
.game-button:active:not(:disabled) { background-color: #483d8b; transform: translateY(2px); box-shadow: 0 2px #483d8b; }
.game-button:disabled { background-color: #555; box-shadow: 0 4px #333; cursor: not-allowed; opacity: 0.6; }
.game-button.small { padding: 8px 15px; font-size: 0.75rem; }


#message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 30, 50, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem; /* Adjusted */
    z-index: 1000;
    display: none;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.3);
    font-family: 'Press Start 2P', cursive;
    text-align: center;
}
#level-display-game {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #ffa500; /* Orange for level */
    margin-bottom: 10px;
    text-align: center;
}

/* Level Selection Screen */
#level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); /* Responsive grid */
    gap: 10px;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    width: 100%;
    max-width: 700px;
    background-color: #121228;
    border-radius: 10px;
}
.level-tile {
    background-color: #4a3f78; /* Darker purple */
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    transition: background-color 0.2s;
    position: relative; /* For star icon if needed */
}
.level-tile:hover:not(.locked) { background-color: #5a4f88; }
.level-tile.cleared { background-color: #3c8d3f !important; /* Green for cleared */ }
.level-tile.cleared:hover { background-color: #4cae4f !important; }
.level-tile.locked {
    background-color: #3a3a4a !important;
    cursor: not-allowed;
    opacity: 0.6;
}
.level-tile.locked::after {
    content: 'ðŸ”’';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7em;
}


/* Instructions Modal */
#instructions-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none; /* Hidden by default */
    align-items: center; justify-content: center;
    z-index: 2000; padding: 20px;
}
#instructions-content {
    background-color: #1a1a2e;
    padding: 25px; border-radius: 10px;
    max-width: 500px; width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}
#instructions-content h2 { font-family: 'Press Start 2P', cursive; color: #9f86ff; margin-bottom: 15px; font-size: 1.3rem; text-align: center;}
#instructions-content p { margin-bottom: 10px; line-height: 1.6; font-size: 0.95rem;}
#instructions-content ul { list-style: disc; margin-left: 20px; margin-bottom: 10px;}
#instructions-content pre {
    background-color: #101020; padding: 10px; border-radius: 5px;
    font-family: monospace; white-space: pre-wrap; font-size: 0.85rem;
    margin-top:10px;
}

/* Game Over Screen */
#game-over-screen {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    z-index: 3000; /* Above confetti and message box */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
#game-over-screen h2 {
    font-size: 2.2rem; color: #ff3333; /* Danger red */
    margin-bottom: 20px;
    text-shadow: 0 0 8px #ff3333;
}
 #game-over-screen p {
    color: #e0e0e0; margin-bottom: 30px; font-size: 1.1rem;
}


@media (max-width: 600px) {
    #main-title { font-size: 2rem; }
    #game-header-title { font-size: 1.5rem; }
    .game-button { padding: 10px 15px; font-size: 0.8rem; }
    #level-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 8px; }
    .level-tile { padding: 12px; font-size: 0.7rem;}
    #instructions-content { padding: 20px; }
    #instructions-content h2 { font-size: 1.1rem; }
    #instructions-content p { font-size: 0.9rem; }
    #game-over-screen h2 { font-size: 1.8rem; }
    #game-over-screen p { font-size: 1rem; }
}</pre></body></html>