: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;
    padding: 20px;
    gap: 20px;
}

/* メインコンテナ */
.game-container {
    width: 65vw;
    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: flex;
    flex-direction: column;
    gap: 15px;
}

/* ネットワーク接続パネル */
.network-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #222;
}

.network-panel input {
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: inherit;
}

/* 汎用ボタン */
.btn, button {
    background: #2a2a35;
    color: #fff;
    border: 1px solid #444;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.2s;
}

.btn:hover {
    background: #3a3a45;
    border-color: #666;
}

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

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

/* メインステージ（お題・爆弾ランプ） */
.stage {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #222;
    position: relative;
}

/* ステータス（タイマー・READY）表示 */
.status-display {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
    margin-bottom: 10px;
}

/* ファイブボンバーの5連爆弾（丸形ランプ） */
.chrono-core {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
    user-select: none;
}

/* アクションエリア（入力部分） */
.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 {
    background: #000;
    color: #fff;
    border: 2px solid var(--neon-cyan);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-family: inherit;
}

.answer-input:disabled {
    border-color: #333;
    background: #111;
    color: #555;
    cursor: not-allowed;
}

.submit-btn {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
}

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

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

/* 下部ログ＆リザルトセクション */
.bottom-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    height: 150px;
}

.log-area {
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.4;
}

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

.log-system { color: #569cd6; }
.log-orange { color: var(--neon-orange); }
.log-cyan { color: var(--neon-cyan); }
.log-alert { color: #e06c75; font-weight: bold; }

/* ランクパネルは非表示、または予備として残す */
.result-panel {
    display: none;
}

/* サイドコントロールパネル */
.control-panel {
    width: 25vw;
    min-width: 260px;
}

/* ボイスチャットメンバーリスト（画面左上オーバーレイ） */
.voice-user {
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 現在回答中のテキスト点滅アニメーション */
@keyframes flash {
    from { opacity: 0.2; }
    to { opacity: 1; }
}