234 lines
5.1 KiB
CSS
234 lines
5.1 KiB
CSS
:root {
|
|
--poker-green: #1a5e33;
|
|
--poker-border: #3e2723;
|
|
--gold: #d4af37;
|
|
--gold-light: #f9e27d;
|
|
--dark-bg: #0a0a0a;
|
|
--panel-bg: #1a1a1a;
|
|
--white: #ffffff;
|
|
--table-width: 800px;
|
|
--table-height: 400px;
|
|
}
|
|
|
|
/* --- Base & Reset --- */
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
background-color: var(--dark-bg);
|
|
color: var(--white);
|
|
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
margin: 0;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.game-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
/* --- 1. Stats Bar --- */
|
|
.stats-bar {
|
|
background: rgba(0, 0, 0, 0.9);
|
|
padding: 10px 20px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
border-bottom: 2px solid var(--poker-border);
|
|
z-index: 100;
|
|
}
|
|
|
|
.stat-item {
|
|
font-size: 1.1rem;
|
|
color: var(--gold);
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* --- 2. Table Area --- */
|
|
.table-container {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: relative;
|
|
padding: 80px 20px; /* Espace crucial pour les avatars */
|
|
}
|
|
|
|
.poker-table {
|
|
width: 100%;
|
|
max-width: var(--table-width);
|
|
height: var(--table-height);
|
|
background-color: var(--poker-green);
|
|
border: 12px solid var(--poker-border);
|
|
border-radius: 200px;
|
|
position: relative;
|
|
box-shadow: inset 0 0 80px rgba(0,0,0,0.6), 0 20px 50px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.pot-area {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
.total-pot {
|
|
font-size: clamp(1.5rem, 5vw, 2.5rem);
|
|
font-weight: 800;
|
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
|
|
}
|
|
|
|
/* --- 3. Players Slots --- */
|
|
.player-slot {
|
|
position: absolute;
|
|
width: 120px;
|
|
z-index: 10;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.player-info {
|
|
background: rgba(10, 10, 10, 0.95);
|
|
border: 2px solid var(--poker-border);
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
text-align: center;
|
|
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.player-info.active {
|
|
border-color: var(--gold);
|
|
box-shadow: 0 0 15px var(--gold);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.player-name { color: var(--gold); font-weight: bold; font-size: 0.85rem; }
|
|
.player-money { font-size: 1rem; display: block; margin: 2px 0; }
|
|
.player-bet { font-size: 0.75rem; color: #aaa; }
|
|
|
|
/* Positionnement Responsive des slots */
|
|
.slot-0 { top: -65px; left: 50%; transform: translateX(-50%); }
|
|
.slot-1 { top: 10%; right: -60px; }
|
|
.slot-2 { top: 50%; right: -90px; transform: translateY(-50%); }
|
|
.slot-3 { bottom: 10%; right: -60px; }
|
|
.slot-4 { bottom: -65px; left: 50%; transform: translateX(-50%); }
|
|
.slot-5 { bottom: 10%; left: -60px; }
|
|
.slot-6 { top: 50%; left: -90px; transform: translateY(-50%); }
|
|
.slot-7 { top: 10%; left: -60px; }
|
|
|
|
/* --- 4. Action Panel --- */
|
|
.action-panel {
|
|
background: var(--panel-bg);
|
|
border-top: 3px solid var(--gold);
|
|
padding: 15px;
|
|
z-index: 200;
|
|
}
|
|
|
|
.action-buttons {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
max-width: 1000px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.btn {
|
|
padding: 12px 20px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
transition: 0.2s;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.btn-fold { background: #333; color: #eee; }
|
|
.btn-call { background: var(--poker-green); color: white; border: 1px solid var(--gold); }
|
|
.btn-raise { background: #1e88e5; color: white; }
|
|
.btn-allin { background: linear-gradient(to bottom, var(--gold), #b8860b); color: #000; }
|
|
|
|
/* Raise Group Input */
|
|
.raise-group {
|
|
display: flex;
|
|
border: 2px solid var(--gold);
|
|
border-radius: 6px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#raise-amount {
|
|
width: 70px;
|
|
background: #000;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 5px;
|
|
text-align: center;
|
|
}
|
|
|
|
.btn-validate { background: var(--gold); border: none; padding: 0 10px; cursor: pointer; font-weight: bold; }
|
|
|
|
/* --- 5. Mobile Adjustments --- */
|
|
@media (max-width: 900px) {
|
|
:root {
|
|
--table-height: 300px;
|
|
}
|
|
|
|
.table-container {
|
|
padding: 60px 40px;
|
|
}
|
|
|
|
.player-slot { width: 90px; }
|
|
|
|
/* On resserre les positions pour mobile */
|
|
.slot-1 { right: -20px; }
|
|
.slot-2 { right: -30px; }
|
|
.slot-3 { right: -20px; }
|
|
.slot-5 { left: -20px; }
|
|
.slot-6 { left: -30px; }
|
|
.slot-7 { left: -20px; }
|
|
|
|
.action-buttons {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.raise-group, .btn-allin {
|
|
grid-column: span 2;
|
|
}
|
|
}
|
|
|
|
/* --- Win Panel & Overlays --- */
|
|
.win-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0,0,0,0.85);
|
|
backdrop-filter: blur(5px);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.win-panel {
|
|
background: #1a1a1a;
|
|
padding: 30px;
|
|
border: 3px solid var(--gold);
|
|
border-radius: 15px;
|
|
text-align: center;
|
|
max-width: 90%;
|
|
}
|
|
|
|
.btn-win {
|
|
background: var(--gold);
|
|
padding: 10px 20px;
|
|
margin: 5px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
} |