/* Base styles and accessibility fallbacks */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #0f0;
    overflow: hidden;
    height: 100vh;
}

/* Fallback content for no-JS */
.fallback-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.fallback-content header h1 {
    color: #0f0;
    margin-bottom: 0.5rem;
}

.fallback-content nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.fallback-content nav a {
    color: #0f0;
    text-decoration: underline;
    padding: 0.5rem 1rem;
    border: 1px solid #0f0;
}

.fallback-content nav a:hover,
.fallback-content nav a:focus {
    background: #0f0;
    color: #000;
}

/* Main app container */
.app-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: #000;
}

#main-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: none;
}

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

/* View selector - accessible but visually minimal */
.view-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.view-selector:hover,
.view-selector:focus-within {
    opacity: 1;
}

.view-selector button {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    cursor: pointer;
}

.view-selector button:hover,
.view-selector button:focus {
    background: rgba(0, 255, 0, 0.5);
    outline: 2px solid #0f0;
}

/* Loading indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0;
    font-family: 'Courier New', monospace;
    z-index: 9999;
}

