126 lines
3.2 KiB
CSS
126 lines
3.2 KiB
CSS
/* --- CONFIGURATION --- */
|
|
:root {
|
|
--table-green: radial-gradient(circle, #277d46 0%, #1a5e33 100%);
|
|
--poker-border: #2c1b18;
|
|
--gold: #d4af37;
|
|
--dark-bg: #0a0a0a;
|
|
--panel-bg: #151515;
|
|
--white: #ffffff;
|
|
}
|
|
|
|
/* --- STRUCTURE FIXE --- */
|
|
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
background-color: var(--dark-bg);
|
|
color: var(--white);
|
|
font-family: 'Segoe UI', sans-serif;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.game-container {
|
|
display: flex; /* Force l'alignement horizontal : Table à gauche, Panel à droite */
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* --- TABLE (ZONE GAUCHE) --- */
|
|
.table-container {
|
|
flex: 1; /* Prend tout l'espace restant */
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: radial-gradient(circle, #1a1a1a 0%, #050505 100%);
|
|
}
|
|
|
|
.poker-table {
|
|
width: 750px;
|
|
height: 380px;
|
|
background: var(--table-green);
|
|
border: 15px solid var(--poker-border);
|
|
border-radius: 200px;
|
|
position: relative; /* Important pour le placement des joueurs */
|
|
box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 20px 40px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
/* --- PANEL D'ACTION (ZONE DROITE) --- */
|
|
.action-panel {
|
|
width: 320px;
|
|
background: var(--panel-bg);
|
|
border-left: 2px solid var(--gold);
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* --- BOUTONS --- */
|
|
.btn {
|
|
width: 100%;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
border: none;
|
|
font-weight: 800;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-call { background: #ffffff !important; color: #000 !important; }
|
|
.btn-fold { background: #333; color: #999; }
|
|
.btn-allin { background: #8b0000; color: #fff; }
|
|
|
|
.raise-group {
|
|
display: flex;
|
|
border: 2px solid var(--gold);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
#raise-amount {
|
|
flex: 1;
|
|
background: #000;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
.btn-validate { background: var(--gold); border: none; padding: 0 15px; cursor: pointer; font-weight: bold; }
|
|
|
|
/* --- PLACEMENT DES JOUEURS (ABSOLU PAR RAPPORT A LA TABLE) --- */
|
|
.player-slot {
|
|
position: absolute;
|
|
width: 140px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.player-info {
|
|
background: #1e1e1e;
|
|
border: 2px solid #333;
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.player-info.active { border-color: var(--gold); box-shadow: 0 0 15px var(--gold); }
|
|
|
|
/* Positions autour de l'ovale */
|
|
.slot-0 { top: -40px; left: 50%; transform: translateX(-50%); }
|
|
.slot-1 { top: 15%; right: -70px; }
|
|
.slot-2 { top: 50%; right: -90px; transform: translateY(-50%); }
|
|
.slot-3 { bottom: 15%; right: -70px; }
|
|
.slot-4 { bottom: -40px; left: 50%; transform: translateX(-50%); }
|
|
.slot-5 { bottom: 15%; left: -70px; }
|
|
.slot-6 { top: 50%; left: -90px; transform: translateY(-50%); }
|
|
.slot-7 { top: 15%; left: -70px; }
|
|
|
|
/* --- EFFETS --- */
|
|
.blur-effect, .All-in-Blur { filter: blur(3px) grayscale(1); opacity: 0.5; }
|
|
.pot-area { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
|
|
.total-pot { font-size: 3rem; font-weight: bold; } |