.game-container { width: 100%; max-width: 800px; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; position: relative; z-index: 10; }
.game-header { width: 100%; text-align: center; position: relative; }
.back-btn { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.back-btn:hover { color: var(--primary); }

.score-board { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.player-score { background: var(--glass-bg); border: 2px solid transparent; border-radius: 12px; padding: 1rem 2rem; display: flex; flex-direction: column; align-items: center; transition: all 0.3s; opacity: 0.5; }
.player-score.active { opacity: 1; transform: scale(1.05); }
.player-score.player1.active { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.player-score.player2.active { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.player-score .name { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.player-score .score { font-size: 1.8rem; font-weight: 700; }

#status-message { margin-top: 1rem; font-size: 1.2rem; color: var(--text-main); font-weight: 500; height: 1.5rem; }

.panel { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2rem; text-align: center; width: 100%; max-width: 500px; margin: 0 auto; }
.panel h2 { margin-bottom: 1.5rem; }
.btn-group { display: flex; flex-direction: column; gap: 1rem; }
.hidden { display: none !important; }

#game-board-container { display: flex; flex-direction: column; align-items: center; width: 100%; }

.canvas-container {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 2rem auto;
}

#sim-canvas {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* SVG Elements styles */
.sim-dot {
    fill: var(--text-main);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.sim-line {
    stroke-linecap: round;
    cursor: pointer;
    transition: stroke 0.2s, stroke-width 0.2s;
}

.sim-line.empty {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.sim-line.empty:hover {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 8;
}

.sim-line.p1 {
    stroke: #3b82f6;
    stroke-width: 8;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    cursor: default;
}

.sim-line.p2 {
    stroke: #ef4444;
    stroke-width: 8;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
    cursor: default;
}

.sim-line-hitbox {
    stroke: transparent;
    stroke-width: 20;
    cursor: pointer;
}

.triangle-highlight {
    fill: rgba(255, 255, 255, 0.2);
    animation: flash 1s alternate infinite;
}

@keyframes flash {
    0% { fill: rgba(255, 255, 255, 0.1); }
    100% { fill: rgba(255, 255, 255, 0.4); }
}

@media (max-width: 600px) {
    .back-btn { position: relative; top: 0; transform: none; display: block; margin-bottom: 1rem; }
    .score-board { gap: 1rem; }
    .player-score { padding: 0.5rem 1rem; }
}
