/* --- 全体設定 --- */
:root {
    --bg-color: #1a1a2e;
    --panel-bg-color: #16213e;
    --primary-text-color: #e94560;
    --secondary-text-color: #f0f0f0;
    --border-color: #0f3460;
    --glow-color: rgba(233, 69, 96, 0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--secondary-text-color);
    font-family: 'Roboto Mono', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    text-align: center;
}

h1, h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-text-color);
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 0 10px var(--glow-color);
}

/* --- レイアウト --- */
.game-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding: 20px;
}

.main-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.side-panel {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- UIボックス --- */
.info-box {
    background-color: var(--panel-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
}

.info-box h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 2em;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* --- ゲームタイトル --- */
.game-title {
    margin-bottom: 20px;
}
.game-title h1 {
    font-size: 4em;
    line-height: 1;
}
.game-title p {
    font-size: 1.5em;
    color: var(--primary-text-color);
    margin: 0;
    letter-spacing: 5px;
}

/* --- ゲーム画面 --- */
.canvas-wrapper {
    position: relative;
    border: 3px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 15px rgba(0,0,0,0.5);
}

canvas {
    display: block;
    background-color: #000;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px white;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- 操作方法 --- */
.controls ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.controls li {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.controls span {
    display: inline-block;
    width: 80px;
    font-weight: bold;
    color: var(--primary-text-color);
}
