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

/* Touch optimization for mobile */
button, .board-point, .game-piece {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --primary-gold: #D4AF37;
    --primary-red: #8B0000;
    --dark-wood: #2a1810;
    --light-wood: #8B4513;
    --celtic-blue: #1e3a8a;
    --parchment: #f4e9d9;
    --shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Cormorant Garamond', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: radial-gradient(ellipse at top, #2d1810 0%, #1a0a0a 50%, #0a0504 100%);
    background-attachment: fixed;
    color: var(--parchment);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Celtic Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(212, 175, 55, 0.02) 40px, rgba(212, 175, 55, 0.02) 80px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(139, 0, 0, 0.02) 40px, rgba(139, 0, 0, 0.02) 80px),
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 5, 4, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* LEFT PANEL - All controls/status */
.left-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 160px;
    background: linear-gradient(180deg, rgba(42, 24, 16, 0.95), rgba(26, 10, 5, 0.98));
    border-right: 2px solid rgba(139, 105, 20, 0.5);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
    z-index: 100;
    overflow-y: auto;
}

/* Header in left panel */
.header {
    text-align: center;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.4);
}

.celtic-border-top,
.celtic-border-bottom {
    display: none;
}

.title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    letter-spacing: 0.05em;
    margin: 0;
    text-transform: uppercase;
}

.celtic-ornament,
.subtitle {
    display: none;
}

/* Game selector in left panel */
.game-selector {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.game-btn,
.rules-btn,
.control-btn {
    padding: 6px 8px;
    font-size: 0.65rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(61, 36, 20, 0.9);
    color: var(--primary-gold);
    border: 1px solid rgba(139, 105, 20, 0.6);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.game-btn:hover,
.rules-btn:hover,
.control-btn:hover {
    background: rgba(93, 58, 26, 0.95);
    border-color: var(--primary-gold);
}

.game-btn.active {
    background: rgba(139, 0, 0, 0.8);
    border-color: var(--primary-gold);
}

/* Turn banner in left panel */
.turn-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 105, 20, 0.4);
    border-radius: 4px;
}

.turn-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.turn-label {
    font-family: 'Cinzel', serif;
    font-size: 0.5rem;
    color: #b8956a;
    text-transform: uppercase;
}

.turn-player {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-gold);
    border-radius: 3px;
    flex: 1;
}

.player-stone {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.player-stone.white-stone {
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0, #b8b8b8);
    border: 1px solid #888;
}

.player-stone.black-stone {
    background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a, #000);
    border: 1px solid #333;
}

.player-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.phase-indicator {
    display: flex;
    justify-content: center;
}

.phase-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #1a0a05;
    background: var(--primary-gold);
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.phase-badge.movement-phase {
    background: #8B0000;
    color: var(--primary-gold);
}

.phase-info {
    display: none;
}

/* Player stats in left panel */
.player-stats-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-stat-card {
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border-left: 3px solid rgba(139, 105, 20, 0.5);
}

.player-stat-card.active {
    border-left-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.player-stat-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.player-stat-header .stone-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.player-stat-header .stone-icon.white {
    background: radial-gradient(circle at 30% 30%, #fff, #ccc);
    border: 1px solid #888;
}

.player-stat-header .stone-icon.black {
    background: radial-gradient(circle at 30% 30%, #444, #000);
    border: 1px solid #333;
}

.player-stat-header span {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
}

.player-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.55rem;
    color: #b8956a;
}

.player-stat-row .value {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Controls section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 105, 20, 0.3);
}

/* GAME AREA - Board takes all remaining space */
.game-area {
    margin-left: 160px;
    width: calc(100vw - 160px);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Hide old sidebars */
.sidebar,
.left-sidebar,
.right-sidebar {
    display: none;
}

/* Board - fills remaining space */
.board-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px;
    background: none;
    border: none;
    box-shadow: none;
}

#gameBoard {
    width: auto;
    height: 95vh;
    max-width: calc(100vw - 180px);
    max-height: 95vh;
}

.board-controls {
    display: none; /* Moved to left panel */
}

/* Hide mobile status */
.mobile-status {
    display: none;
}

.game-btn::before,
.rules-btn::before,
.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.game-btn:hover::before,
.rules-btn:hover::before,
.control-btn:hover::before {
    width: 300px;
    height: 300px;
}

.game-btn:hover,
.rules-btn:hover,
.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.3);
    background: linear-gradient(145deg, #4d3424 0%, #6d4a2a 50%, #4d3424 100%);
}

.game-btn.active {
    background: linear-gradient(145deg, #8B0000 0%, #660000 50%, #8B0000 100%);
    border-image: linear-gradient(145deg, var(--primary-gold), #FFD700, var(--primary-gold)) 1;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.2);
}

/* Game Area - FULL SCREEN */
.game-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

/* Sidebars - absolute positioned on edges */
.sidebar {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 24, 16, 0.85);
    border: 1px solid rgba(139, 105, 20, 0.4);
    border-radius: 4px;
    padding: 8px;
    font-size: 0.75rem;
    z-index: 5;
    max-width: 120px;
}

.left-sidebar {
    left: 10px;
}

.right-sidebar {
    right: 10px;
}

.player-info {
    margin-bottom: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border-left: 2px solid rgba(139, 105, 20, 0.5);
}

.player-info.active {
    border-left-color: var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.player-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.player-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    flex: 1;
    margin: 0;
}

.player-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.player-info.active .player-status {
    background: var(--primary-gold);
    box-shadow: 0 0 6px var(--primary-gold);
}

.pieces-count,
.captured-pieces {
    display: none; /* Hidden - using stat-row instead */
}

.label {
    font-family: 'Cinzel', serif;
    color: #b8956a;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.count {
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
}

.game-status {
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.status-message {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c9a961;
    line-height: 1.4;
}

.move-history {
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    max-height: 120px;
    overflow-y: auto;
}

.move-history h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.move-history::-webkit-scrollbar {
    width: 8px;
}

.move-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.move-history::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.move-entry {
    padding: 8px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--primary-gold);
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Board - NO CONTAINER, just the board */
.board-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

#gameBoard {
    width: auto;
    height: 90vh;
    max-width: 90vw;
    max-height: 90vh;
}

.board-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Board Elements */
.board-line {
    stroke: #3d2414;
    stroke-width: 2;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    stroke-linecap: round;
}

.board-line.radial {
    stroke-width: 3.5;
    opacity: 0.9;
}

.board-circle {
    fill: none;
    stroke: #3d2414;
    stroke-width: 2.5;
    opacity: 0.9;
}

.board-point {
    fill: #2a1810;
    stroke: #1a0a0a;
    stroke-width: 2;
    cursor: pointer;
    transition: all 0.2s ease;
    filter: url(#inset);
}

.board-point:hover {
    fill: #4a3020;
    stroke: var(--primary-gold);
    stroke-width: 3;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
}

.board-point.valid-move {
    fill: rgba(50, 205, 50, 0.4);
    stroke: #32CD32;
    animation: validPulse 1s infinite;
}

@keyframes validPulse {
    0%, 100% { r: 7; opacity: 0.6; }
    50% { r: 9; opacity: 1; }
}

.board-point.occupied {
    pointer-events: none;
}

/* Game Pieces */
.game-piece {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: url(#shadow);
}

.game-piece.white-piece {
    fill: #f5f5f5;
    stroke: #333;
    stroke-width: 2;
}

.game-piece.white-piece circle:first-child {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.game-piece.black-piece {
    fill: #1a1a1a;
    stroke: #666;
    stroke-width: 2;
}

.game-piece.black-piece circle:first-child {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.game-piece.king-piece {
    fill: url(#goldGradient);
    stroke: var(--primary-red);
    stroke-width: 3;
    filter: url(#glow);
}

.game-piece:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8)) url(#glow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-piece.selected {
    stroke: #FFD700;
    stroke-width: 4;
    filter: url(#glow);
    animation: selectedPulse 1s infinite;
}

@keyframes selectedPulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.5; }
}

.game-piece.movable {
    cursor: move;
}

.game-piece.captured {
    animation: captureAnimation 0.5s ease-out forwards;
}

@keyframes captureAnimation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

/* Rules Panel */
.rules-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 850px;
    max-height: 85vh;
    background: linear-gradient(145deg, 
        rgba(42, 24, 16, 0.98), 
        rgba(61, 36, 20, 0.98), 
        rgba(42, 24, 16, 0.98));
    border: 3px solid transparent;
    border-image: linear-gradient(145deg, #8B6914, var(--primary-gold), #8B6914) 1;
    border-radius: 0;
    padding: 50px;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.rules-panel.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #8B0000, #660000);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 0;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.close-btn:hover {
    background: linear-gradient(145deg, var(--primary-gold), #DAA520);
    color: #8B0000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 175, 55, 0.5);
}

.rules-panel h2 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        3px 3px 6px rgba(0, 0, 0, 0.8);
}

.rules-panel h3 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.7rem;
    font-weight: 700;
    margin: 25px 0 20px 0;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-gold), transparent) 1;
    padding-bottom: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rules-panel h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0 12px 0;
    letter-spacing: 0.08em;
}

.rules-intro {
    font-style: italic;
    color: var(--parchment);
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--primary-gold);
    border-radius: 5px;
}

.rule {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    line-height: 1.6;
}

.rule strong {
    color: var(--primary-gold);
    display: block;
    margin-bottom: 5px;
}

.rule ul {
    margin-left: 20px;
    margin-top: 10px;
}

.rule li {
    margin: 5px 0;
}

.tactics-note {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
    border: 2px solid var(--primary-red);
    border-radius: 10px;
}

.tactics-note p {
    margin: 8px 0;
    padding-left: 15px;
    position: relative;
}

.tactics-note p::before {
    content: '⚔';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .game-area {
        grid-template-columns: 180px 1fr 180px;
        gap: 15px;
    }
    
    .sidebar {
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .game-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .left-sidebar {
        order: 1;
    }
    
    .board-container {
        order: 2;
        max-width: 95vw;
    }
    
    .right-sidebar {
        order: 3;
    }
    
    .sidebar {
        max-width: 95vw;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-btn,
    .rules-btn,
    .control-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .rules-panel {
        width: 95%;
        padding: 25px;
    }

    /* Larger touch targets on mobile */
    .board-point {
        r: 12;
    }

    .game-piece circle {
        r: 16;
    }
}

/* Victory Animation */
@keyframes victory {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

.victory-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, 
        rgba(139, 0, 0, 0.98), 
        rgba(180, 0, 0, 0.98), 
        rgba(139, 0, 0, 0.98));
    border: 5px solid transparent;
    border-image: linear-gradient(145deg, #FFD700, var(--primary-gold), #FFD700) 1;
    border-radius: 0;
    padding: 50px 80px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.95),
        0 0 60px rgba(212, 175, 55, 0.6),
        inset 0 0 40px rgba(212, 175, 55, 0.2);
    z-index: 2000;
    animation: victory 2s infinite;
    text-shadow: 
        0 0 30px rgba(212, 175, 55, 0.9),
        0 0 60px rgba(212, 175, 55, 0.6),
        3px 3px 6px rgba(0, 0, 0, 0.8);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   NEW UI ELEMENTS - Turn Banner & Game Info
   ============================================ */

/* Turn Banner - tiny, top left */
.turn-banner {
    position: absolute;
    top: 5px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(42, 24, 16, 0.9);
    border: 1px solid rgba(139, 105, 20, 0.4);
    border-radius: 3px;
    z-index: 10;
}

.turn-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.turn-label {
    display: none;
}

.turn-player {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-gold);
    border-radius: 3px;
}

.player-stone {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.player-stone.white-stone {
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0, #b8b8b8);
    border: 1px solid #888;
}

.player-stone.black-stone {
    background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a, #000);
    border: 1px solid #333;
}

.player-name {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.phase-indicator {
    display: flex;
    align-items: center;
}

.phase-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #1a0a05;
    background: var(--primary-gold);
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
}

.phase-badge.movement-phase {
    background: #8B0000;
    color: var(--primary-gold);
}

.phase-info {
    display: none;
}

/* Player Info Cards - COMPACT */
.player-stone-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.white-stone-icon {
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0, #b8b8b8);
    border: 1px solid #888;
}

.black-stone-icon {
    background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a, #000);
    border: 1px solid #333;
}

.stat-row {
    display: flex;
    gap: 4px;
    margin: 6px 0;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 2px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.5rem;
    color: #b8956a;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.captured-value {
    color: #ff6b6b;
}

.on-board-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    margin-top: 4px;
}

.on-board-count .stat-value {
    color: #4CAF50;
    font-size: 0.9rem;
}

/* Game Status - COMPACT */
.status-label {
    display: none;
}

/* Legend - HIDDEN (too much space) */
.game-legend {
    display: none;
}

.legend-title,
.legend-item,
.legend-stone,
.legend-hole {
    display: none;
}

/* Move History - COMPACT */
.history-title {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    color: #b8956a;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(139, 105, 20, 0.2);
}

.move-history {
    padding: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    max-height: 80px;
    overflow-y: auto;
}

/* Win Reminder - HIDDEN */
.win-reminder {
    display: none;
}

.reminder-title,
.reminder-text {
    display: none;
}

/* Active Player State - COMPACT */
.player-info.active {
    border: 1px solid var(--primary-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: rgba(61, 36, 20, 0.5);
}

.player-info.active .player-status {
    width: 10px;
    height: 10px;
    background: var(--primary-gold);
    box-shadow: 0 0 6px var(--primary-gold);
}

/* ============================================
   MOBILE LAYOUT
   ============================================ */
@media (max-width: 700px) {
    .left-panel {
        width: 120px;
        padding: 6px;
        gap: 6px;
    }

    .title {
        font-size: 0.9rem;
    }

    .game-btn,
    .rules-btn,
    .control-btn {
        padding: 4px 6px;
        font-size: 0.55rem;
    }

    .game-area {
        margin-left: 120px;
        width: calc(100vw - 120px);
    }

    #gameBoard {
        max-width: calc(100vw - 130px);
    }
}

@media (max-width: 500px) {
    .left-panel {
        width: 100px;
        padding: 4px;
        gap: 4px;
    }

    .title {
        font-size: 0.8rem;
    }

    .game-btn,
    .rules-btn,
    .control-btn {
        padding: 3px 4px;
        font-size: 0.5rem;
    }

    .turn-banner {
        padding: 4px;
        gap: 4px;
    }

    .player-stone {
        width: 10px;
        height: 10px;
    }

    .player-name {
        font-size: 0.6rem;
    }

    .phase-badge {
        font-size: 0.45rem;
        padding: 2px 4px;
    }

    .player-stat-header span {
        font-size: 0.55rem;
    }

    .player-stat-row {
        font-size: 0.45rem;
    }

    .game-area {
        margin-left: 100px;
        width: calc(100vw - 100px);
    }

    #gameBoard {
        max-width: calc(100vw - 110px);
        height: 90vh;
    }
}
