:root {
    --bg-core: #0a0b0d;
    --bg-surface: #15191d;
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.2);
    --correct: #2dd4bf;
    --incorrect: #f43f5e;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-core);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.container::before {
    content: "MODULE // 09 // LOCATION_NAV_SYNC";
    position: absolute;
    top: -24px;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.back-link {
    display: block;
    text-align: left;
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-family: 'JetBrains Mono', monospace;
}

.game-area {
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.scan-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-left: 2px solid var(--primary);
    pointer-events: none;
    z-index: 20;
    letter-spacing: 1px;
}

.mask {
    position: absolute;
    left: 0;
    width: 100%;
    height: 15%;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

.mask-top {
    top: 0;
    border-bottom: 1px solid var(--border);
}

.mask-bottom {
    bottom: 0;
    border-top: 1px solid var(--border);
}

#map-frame {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.9;
}

.choices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.choice-btn {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.choice-btn:hover:not(:disabled) {
    background: var(--primary-glow);
    border-color: var(--primary);
}

.choice-btn.correct {
    background: var(--correct);
    color: var(--bg-core);
    border-color: var(--correct);
}

.choice-btn.incorrect {
    background: var(--incorrect);
    color: white;
    border-color: var(--incorrect);
}

/* Result Area */
#result-area {
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

#result-message {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

#next-round-btn {
    padding: 14px 30px;
    background: var(--primary);
    color: var(--bg-core);
    border: none;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
}

.hidden {
    display: none;
}