* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    max-width: 960px;
    width: 100%;
    padding: 1.5rem;
    text-align: center;
}

header {
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

.subtitle {
    font-size: 0.95rem;
    color: #888;
    margin-top: 0.25rem;
}

#emulator-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

#display {
    width: 100%;
    height: 100%;
    display: block;
}

#loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
}

#loading-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #aaa;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #7b68ee;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#controls {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

footer {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #555;
}

footer a {
    color: #7b68ee;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.sep {
    margin: 0 0.5rem;
}
