:root {
    --bg-dark: #050510;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-cyan: #00f3ff;
    --neon-pink: #ff0055;
    --neon-gold: #ffd700;
    --text-main: #e0e6ed;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.interface-container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: grid;
    grid-template-rows: 60px 1fr 100px;
    gap: 20px;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* Header */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--neon-cyan);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-cyan);
}

.status-indicator {
    font-family: 'Share Tech Mono', monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blink-dot {
    width: 10px; height: 10px;
    background: var(--neon-pink);
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Main Stages */
.main-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.5s ease;
}

.game-panel.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.game-panel.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: fadeIn 0.5s forwards;
}

h2 {
    font-size: 2.5rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.step-num {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    vertical-align: middle;
}

/* STAGE 1: Lock */
.progress-track {
    width: 300px;
    height: 6px;
    background: #333;
    margin-top: 20px;
    border-radius: 3px;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--neon-cyan);
    transition: width 0.2s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* STAGE 2: Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 15px;
    margin: 30px 0;
}
.grid-cell {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--neon-cyan);
    cursor: pointer;
    transition: 0.2s;
}
.grid-cell:active { transform: scale(0.95); }
.grid-cell.lit {
    background: var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* STAGE 3: Core */
.relative-box {
    width: 300px; height: 300px;
    border: 2px dashed rgba(255,255,255,0.2);
    position: relative;
    margin-top: 20px;
}
#core-zone {
    width: 50px; height: 50px;
    background: var(--neon-pink);
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--neon-pink);
    transition: top 0.1s, left 0.1s; /* Smooth movement for the core */
}

/* Footer / Logs */
.bottom-bar {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}
.btn-primary:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 30px var(--neon-cyan);
}

@keyframes blink { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }