:root {
    --bg-color: #0d0e15;
    --panel-bg: #161925;
    --neon-purple: #9d4edd;
    --neon-orange: #ff7b00;
    --neon-cyan: #00f5d4;
    --text-color: #e0e1dd;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    width: 90vw;
    max-width: 800px;
    background: var(--panel-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
    padding: 20px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 15px;
}

.network-panel {
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
}

input, button {
    background: #23273a;
    border: 1px solid var(--neon-purple);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
}

button {
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

button:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.btn-orange { 
    border-color: var(--neon-orange); 
}

.btn-orange:hover { 
    background: var(--neon-orange); 
    box-shadow: 0 0 10px var(--neon-orange); 
}

.stage {
    text-align: center;
    padding: 20px;
}

.status-display {
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 10px;
}

.chrono-core {
    width: 100px;
    height: 100px;
    background: #333;
    border-radius: 50%;
    margin: 20px auto;
    transition: background 0.2s, box-shadow 0.2s;
}

.chrono-core.running {
    background: var(--neon-orange);
    box-shadow: 0 0 30px var(--neon-orange);
    animation: pulse 0.5s infinite alternate;
}

.action-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 6px;
}

.answer-input {
    width: 120px;
    font-size: 1.5rem;
    text-align: center;
    border-color: var(--neon-cyan);
}

.answer-input:disabled {
    border-color: #333;
    background: #111;
}

.submit-btn {
    background: var(--neon-cyan);
    color: #000;
    border: none;
}

.submit-btn:hover {
    background: #00c2a8;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.submit-btn:disabled {
    background: #333;
    color: #aaa;
    box-shadow: none;
    cursor: not-allowed;
}

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    height: 180px;
}

.log-area, .result-panel {
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    padding: 10px;
    border-radius: 6px;
    overflow-y: auto;
    font-size: 0.85rem;
}

.panel-title {
    color: var(--neon-cyan); 
    border-bottom: 1px solid #333; 
    padding-bottom: 5px; 
    margin-bottom: 5px;
}

.log-entry { 
    margin-bottom: 4px; 
    color: #aaa; 
}

.log-system { 
    color: var(--neon-cyan); 
}

.log-alert { 
    color: var(--neon-orange); 
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(1.08); opacity: 1; }
}