/* Marbles Battle Specific Styles | 구슬치기 게임 전용 스타일 */

.marbles-game-screen {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Canvas Container | 캔버스 컨테이너 */
.marbles-canvas-container {
    background-color: var(--bg-panel);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: crosshair;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 8px;
}

#marbles-canvas {
    display: block;
}

/* Turn Indicator | 현재 턴 표시기 */
.turn-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-lime);
    border-radius: 4px;
    z-index: 10;
}

.turn-indicator h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.current-team-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-lime);
}

/* Power Gauge | 파워 게이지 */
.power-gauge-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.power-gauge-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ccff00, #ff00ff);
    box-shadow: 0 0 15px var(--neon-lime);
    transition: width 0.1s ease;
}

/* Marbles Setup Row Specific | 구슬치기 설정 행 */
#marbles-setup-screen .setup-row {
    grid-template-columns: 1fr;
}

/* Final Result Overlay | 최종 결과 오버레이 */
.marbles-result-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--neon-lime);
    padding: 3rem 5rem;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 0 50px rgba(0,0,0,0.9), 0 0 30px var(--neon-lime-glow);
    border-radius: 8px;
    animation: resultPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marbles-result-overlay h2 {
    color: var(--neon-lime);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 5px;
}

.winner-team-display {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}
