/* ==========================================================================
   UKŁAD GŁÓWNY (GRID/FLEX) - ARCHITEKTURA STOŁU
   ========================================================================== */

#game-table { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    width: 97%; 
    max-width: 1980px; 
    min-width: 1300px; 
    justify-content: center; 
    margin-top: 20px;
}

/* --- KOLUMNY BOCZNE --- */
.left-column, 
.right-column { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    width: 15%;
    flex-shrink: 0;
    z-index: 10;
    overflow-y: auto;
    max-height: 100vh;
}

#panel-deck{
	height:260px;
}

#panel-discard{
	height:260px;
}



/* --- GŁÓWNE POLE GRY (ŚRODEK) --- */
#game-board-area { 
    flex: 1; 
    background: var(--bg-panel); 
	width:70%;
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 0 30px rgba(0,0,0,0.9); 
    position: relative; 
    transition: box-shadow 0.3s; 
}

/* Wizualny efekt przy celowaniu kartą typu INSTANT lub akcją tokenową */
.time-frozen-board { 
    box-shadow: 0 0 40px rgba(52, 152, 219, 0.6) !important; 
    border: 1px solid #3498db; 
    cursor: crosshair; 
}

/* --- DOLNY PANEL (LOGI I STOSY) --- */
#board-log-events { 
    display: flex; 
    gap: 20px; 
    margin-top: 40px; 
    height: 170px; 
    align-items: stretch; 
}

#log-wrapper { 
    flex: 2; 
    position: relative; 
    border-radius: 5px; 
    border: 1px solid #444; 
    background: #000; 
    box-sizing: border-box; 
    overflow: hidden; 
}

#stack-panel { 
    flex: 1.3; 
    height: 100%; 
    margin: 0; 
    box-sizing: border-box; 
    background: rgba(20,20,40,0.97); 
    border: 2px solid #8e44ad; 
    border-radius: 8px; 
    padding: 10px; 
    overflow-y: auto; 
}

#events { 
    flex: 0.9; 
    padding: 10px; 
    height: 100%; 
    margin: 0; 
    box-sizing: border-box; 
    background: #2c3e50; 
    border-radius: 5px; 
    border: 1px solid #34495e; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* --- KONTROLKI I RĘKA --- */
#hand-container { 
    margin-top: 55px; 
    min-height: 260px; 
}

/* DODAJ TEN BRAKUJĄCY FRAGMENT: */
#hand { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

#controls { 
    margin-top: 20px; 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
    flex-wrap: wrap; 
}