* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0f;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    padding: 12px;
    padding-bottom: 100px;
    color: #e2e8f0;
    overflow-y: auto;
}

/* Bloquer le scroll uniquement en partie */
body.in-game {
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #f1f5f9;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.4);
    font-weight: 700;
}

.logo-icon {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    color: #60a5fa;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.6));
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.9)); }
}

.screen {
    transition: opacity 0.3s ease;
}

#setup-screen {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
}

#game-screen {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 24px);
}

.hidden {
    display: none !important;
}

/* Configuration Screen */
.card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 1px rgba(96, 165, 250, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.card h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #f1f5f9;
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 700;
}

.card h2 i {
    width: 24px;
    height: 24px;
    color: #60a5fa;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 14px;
}

.form-group label i {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
    background: rgba(30, 41, 59, 0.5);
    color: #f1f5f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: #60a5fa;
    cursor: pointer;
}

.hint {
    margin-top: 12px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

/* Players Setup */
.players-setup {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.players-setup input {
    flex: 1;
    margin-bottom: 0;
}

.btn-add,
.btn-load-players {
    padding: 10px 12px;
    background: rgba(96, 165, 250, 0.2);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #f1f5f9;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    z-index: 0;
}

.btn-add:hover,
.btn-load-players:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
    transform: translateY(-1px);
}

.btn-add:active,
.btn-load-players:active {
    transform: translateY(0);
}

.btn-add i,
.btn-load-players i {
    width: 18px;
    height: 18px;
    color: #60a5fa;
}

.btn-load-players {
    gap: 6px;
    min-width: 44px;
}

.saved-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 2px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(96, 165, 250, 0.15);
    border-radius: 10px;
    transition: all 0.3s;
}

.player-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.3);
}

.player-item.is-dealer {
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.player-item .drag-handle {
    cursor: move;
    color: #64748b;
    display: flex;
}

.player-item .drag-handle i {
    width: 16px;
    height: 16px;
}

.player-item .player-name-display {
    flex: 1;
    color: #f1f5f9;
    font-weight: 500;
    font-size: 14px;
}

.player-item.is-dealer .player-name-display {
    color: #60a5fa;
    font-weight: 600;
}

.player-item .dealer-btn {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
}

.player-item .dealer-btn i {
    width: 16px;
    height: 16px;
    color: #f1f5f9;
}

.player-item.is-dealer .dealer-btn i {
    color: #60a5fa;
}

.player-item.is-dealer .dealer-btn svg {
    fill: #60a5fa;
    stroke: #60a5fa;
}

.player-item .dealer-btn:hover {
    background: rgba(96, 165, 250, 0.2);
}

.player-item .remove-btn {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
}

.player-item .remove-btn i {
    width: 16px;
    height: 16px;
    color: #f1f5f9;
}

.player-item .remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.player-item .remove-btn:hover i {
    color: #ef4444;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-with-suffix input {
    flex: 1;
}

.input-with-suffix span {
    color: #94a3b8;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    width: 100%;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.5);
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: #f1f5f9;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(71, 85, 105, 0.7);
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 8px 20px rgba(71, 85, 105, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Game Screen */
/* Bouton pour changer la sidebar de côté */
.btn-toggle-sidebar {
    display: none;
    position: fixed;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-toggle-sidebar:hover {
    transform: scale(1.1);
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(96, 165, 250, 0.6);
    color: #60a5fa;
}

.btn-toggle-sidebar i {
    width: 20px;
    height: 20px;
}

.game-sidebar {
    display: contents;
}

.game-main {
    display: contents;
}

.stats-sidebar {
    display: none;
}

.sidebar-section-header {
    display: none;
}

.game-info {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 0 12px 12px;
}

.info-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    flex: 1;
    min-width: 90px;
    max-width: 140px;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

.info-card .label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-card .label i {
    width: 12px;
    height: 12px;
}

.info-card .value {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 800;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    margin-bottom: 6px;
}

/* Chips Display */
.chips-display {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-top: 6px;
    min-height: 24px;
}

.chip {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 3px 10px rgba(0,0,0,0.5), inset 0 1px 3px rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.4);
    position: relative;
}

.chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,0.5);
}

.chip-white {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    color: #1e293b;
    border-color: #94a3b8;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 3px rgba(255,255,255,0.8);
}

.chip-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.chip-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.chip-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.chip-black {
    background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%);
}

.chip-count {
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    top: -3px;
    right: -3px;
    background: #fbbf24;
    color: #000000;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    border: 2px solid #000000;
}

/* Players Container */
.players-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.player-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
    overflow: hidden;
    min-width: 140px;
    max-width: 180px;
    transform: translate(-50%, -50%);
}

.player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s;
}

.player-card:hover {
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.4);
    border-color: #60a5fa;
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.05);
}

.player-card:hover::before {
    opacity: 1;
}

.player-card.eliminated {
    opacity: 0.4;
    filter: grayscale(100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.player-card.eliminated .player-name {
    text-decoration: line-through;
    color: #94a3b8;
}

.player-card .player-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-card:hover .player-actions {
    opacity: 1;
}

.player-card .action-btn {
    padding: 4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.player-card .action-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
}

.player-card .action-btn.eliminate-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.player-card .action-btn i {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

.player-card .action-btn.eliminate-btn i {
    color: #ffffff;
}

.player-card .action-btn.eliminate-btn:hover i {
    color: #ef4444;
}

.player-card .action-btn.revive-btn {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
}

.player-card .action-btn.revive-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
}

.player-card .action-btn.revive-btn i {
    color: #22c55e;
}

.player-card .player-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
    text-align: center;
}

.player-card .player-position {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.player-card .player-position i {
    width: 10px;
    height: 10px;
}

.player-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.player-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.player-role i {
    width: 11px;
    height: 11px;
}

.role-dealer {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #ffffff;
    border: 2px solid rgba(96, 165, 250, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.role-small-blind {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #ffffff;
    border: 2px solid rgba(34, 211, 238, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.role-big-blind {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #ffffff;
    border: 2px solid rgba(167, 139, 250, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Game Controls */
.game-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.game-controls .btn {
    flex: 1;
    min-width: 140px;
}

/* Winner Selection */
.winner-selection {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.4);
    max-width: 90vw;
    min-width: 300px;
}

.winner-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 16px;
    text-align: center;
}

.winner-title i {
    width: 20px;
    height: 20px;
}

.winner-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.winner-btn {
    padding: 12px 16px;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.winner-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    transform: translateY(-2px);
}

.winner-btn.selected {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.winner-btn.selected:hover {
    background: rgba(16, 185, 129, 0.4);
    border-color: #10b981;
}

.winner-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.winner-action-buttons .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
}

.winner-action-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.winner-action-buttons .btn:disabled:hover {
    transform: none;
}

.winner-btn.nobody-btn {
    grid-column: 1 / -1;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
}

.winner-btn.nobody-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: #94a3b8;
}

/* Modal Statistics */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.modal-header h3 i {
    width: 20px;
    height: 20px;
    color: #60a5fa;
}

.modal-close {
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    display: flex;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

.modal-close i {
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.modal-close:hover i {
    color: #ef4444;
}

.stats-content {
    padding: 20px;
}

.stats-sidebar .stats-content {
    padding: 0;
}

.stats-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.stat-header-col {
    font-weight: 700;
    color: #60a5fa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.stat-header-col:first-child {
    text-align: left;
}

.stat-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 10px;
}

.stat-item.eliminated {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.stat-item.eliminated .stat-player {
    color: #ef4444;
}

.stat-item.eliminated .stat-number {
    color: #ef4444;
}

.stat-player {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f1f5f9;
    font-size: 14px;
}

.stat-player i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.stat-number {
    font-weight: 700;
    color: #60a5fa;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

.stat-item.top-player {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.stat-item.top-player .stat-number {
    color: #fbbf24;
}

/* Blind Increase Alert */
.blind-increase-alert {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 90%;
    border: 1px solid rgba(251, 191, 36, 0.5);
    z-index: 99;
}

.blind-increase-alert i {
    width: 14px;
    height: 14px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(245, 158, 11, 0.7);
    }
}

/* Responsive */
@media (min-width: 640px) {
    .players-container {
        max-width: 700px;
        min-height: 400px;
    }
    
    .player-card {
        min-width: 160px;
        max-width: 200px;
    }
    
    body {
        padding: 16px;
    }
    
    .winner-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (min-width: 1024px) {
    .players-container {
        max-width: 800px;
        min-height: 500px;
    }
    
    .player-card {
        padding: 14px 18px;
    }
    
    h1 {
        margin-bottom: 30px;
    }
    
    .game-info {
        margin-bottom: 30px;
    }
    
    body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .game-info {
        gap: 6px;
    }
    
    .info-card {
        padding: 8px 10px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .game-controls {
        flex-direction: column;
    }
    
    .game-controls .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Landscape Mode - Sidebar Layout */
@media (orientation: landscape) and (min-width: 640px) {
    body {
        padding: 0;
    }
    
    .container {
        max-width: none;
        margin: 0;
    }
    
    #game-screen {
        flex-direction: row;
        height: 100vh;
    }
    
    /* Afficher le bouton toggle en mode paysage */
    .btn-toggle-sidebar {
        display: flex;
    }
    
    /* Sidebar par défaut à gauche */
    .game-sidebar {
        width: 320px;
        min-width: 320px;
        height: 100vh;
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.9);
        border-right: 2px solid rgba(96, 165, 250, 0.2);
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        order: 0;
        transition: all 0.3s ease;
    }
    
    /* Sidebar à droite */
    #game-screen.sidebar-right .game-sidebar {
        border-right: none;
        border-left: 2px solid rgba(96, 165, 250, 0.2);
        order: 2;
    }
    
    /* Ajuster la position du bouton toggle selon le côté */
    #game-screen.sidebar-right .btn-toggle-sidebar {
        right: auto;
        left: 12px;
    }
    
    /* Rotation de l'icône selon le côté */
    #game-screen.sidebar-right .btn-toggle-sidebar i {
        transform: scaleX(-1);
    }
    
    .game-main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        overflow: hidden;
        order: 1;
    }
    
    .game-info {
        flex-direction: column;
        gap: 12px;
        padding: 0;
    }
    
    .info-card {
        max-width: none;
        width: 100%;
    }
    
    .game-controls {
        position: static;
        flex-direction: column;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        gap: 8px;
        margin-top: auto;
    }
    
    .game-controls .btn {
        width: 100% !important;
        min-width: auto !important;
        flex: 1 !important;
    }
    
    .winner-selection {
        position: static;
        transform: none;
        max-width: none;
        min-width: 0;
        padding: 16px;
        margin: 0;
    }
    
    .stats-sidebar {
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    }
    
    .btn-close-stats {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        transition: color 0.3s;
    }
    
    .sidebar-section-header h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 16px;
        color: #60a5fa;
    }
    
    .sidebar-section-header h3 i {
        width: 18px;
        height: 18px;
    }
    
    .btn-close-stats {
        background: none;
        border: none;
        color: #94a3b8;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        transition: color 0.3s;
    }
    
    .btn-close-stats:hover {
        color: #60a5fa;
    }
    
    .btn-close-stats i {
        width: 20px;
        height: 20px;
    }
    
    .stats-modal {
        display: none !important;
    }
    
    .players-container {
        width: 100%;
        height: 100%;
        max-width: 600px;
        min-height: 500px;
    }
}

/* Saved Players Modal */
.saved-players-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.saved-player-group {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s;
}

.saved-player-group:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(96, 165, 250, 0.4);
}

.saved-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.saved-group-info {
    flex: 1;
    min-width: 0;
}

.saved-group-players {
    color: #f1f5f9;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-group-date {
    color: #94a3b8;
    font-size: 12px;
}

.saved-group-actions {
    display: flex;
    gap: 6px;
}

.btn-load,
.btn-delete {
    padding: 8px;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-load:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: #60a5fa;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.btn-load i {
    width: 16px;
    height: 16px;
    color: #60a5fa;
}

.btn-delete i {
    width: 16px;
    height: 16px;
    color: #ef4444;
}

/* ========================================
   TABLE DE POKER MODERNE
   ======================================== */

.poker-table-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 700px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poker-table {
    position: absolute;
    width: 65%;
    height: 55%;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 0 20px rgba(96, 165, 250, 0.15),
        0 0 0 22px rgba(15, 23, 42, 0.8),
        0 0 60px rgba(96, 165, 250, 0.3),
        inset 0 0 80px rgba(0, 0, 0, 0.5),
        0 30px 80px rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(96, 165, 250, 0.3);
    z-index: 1;
}

.poker-table::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 75%;
    border-radius: 50%;
    border: 2px solid rgba(96, 165, 250, 0.2);
    box-shadow: 
        0 0 40px rgba(96, 165, 250, 0.2),
        inset 0 0 40px rgba(96, 165, 250, 0.1);
}

.poker-table::after {
    content: '♠\00a0\00a0\00a0♥\00a0\00a0\00a0♣\00a0\00a0\00a0♦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(96, 165, 250, 0.08);
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    animation: tableGlow 4s ease-in-out infinite;
    display: inline-block;
    white-space: nowrap;
}

@keyframes tableGlow {
    0%, 100% { 
        opacity: 0.6;
        text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
    }
    50% { 
        opacity: 0.9;
        text-shadow: 0 0 50px rgba(96, 165, 250, 0.5);
    }
}

/* Positionner les player-card autour de la table */
.poker-table-container .players-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.poker-table-container .player-card {
    position: absolute;
    z-index: 10;
    transition: all 0.2s ease-out;
    transform: translate(-50%, -50%);
}

.poker-table-container .player-card.rotating {
    transition: all 0.2s ease-out;
}

.poker-table-container .player-card:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Boutons de rotation */
.btn-rotate-left,
.btn-rotate-right {
    position: absolute;
    bottom: 20px;
    z-index: 50;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.6;
}

.btn-rotate-left {
    left: 50%;
    transform: translateX(calc(-100% - 10px));
}

.btn-rotate-right {
    left: 50%;
    transform: translateX(10px);
}

.btn-rotate-left:hover,
.btn-rotate-right:hover {
    opacity: 1;
    background: rgba(96, 165, 250, 0.2);
    border-color: #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    transform: translateX(calc(-100% - 10px)) scale(1.1);
}

.btn-rotate-right:hover {
    transform: translateX(10px) scale(1.1);
}

.btn-rotate-left i,
.btn-rotate-right i {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .poker-table-container {
        height: 550px;
    }
    
    .poker-table {
        width: 70%;
        height: 50%;
    }
    
    .poker-table::after {
        font-size: 2rem;
    }
    
    .poker-table-container .player-card {
        transform: translate(-50%, -50%) scale(0.9) !important;
    }
    
    .btn-rotate-left,
    .btn-rotate-right {
        width: 40px;
        height: 40px;
        bottom: 15px;
    }
    
    .btn-rotate-left {
        transform: translateX(calc(-100% - 8px));
    }
    
    .btn-rotate-right {
        transform: translateX(8px);
    }
    
    .btn-rotate-left:hover {
        transform: translateX(calc(-100% - 8px)) scale(1.15);
    }
    
    .btn-rotate-right:hover {
        transform: translateX(8px) scale(1.15);
    }
    
    .btn-rotate-left i,
    .btn-rotate-right i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .poker-table-container {
        height: 450px;
    }
    
    .poker-table {
        width: 75%;
        height: 45%;
    }
    
    .poker-table::after {
        font-size: 1.5rem;
    }
    
    .poker-table-container .player-card {
        transform: translate(-50%, -50%) scale(0.75) !important;
    }
    
    .btn-rotate-left,
    .btn-rotate-right {
        width: 36px;
        height: 36px;
        bottom: 10px;
    }
    
    .btn-rotate-left {
        transform: translateX(calc(-100% - 6px));
    }
    
    .btn-rotate-right {
        transform: translateX(6px);
    }
    
    .btn-rotate-left:hover {
        transform: translateX(calc(-100% - 6px)) scale(1.15);
    }
    
    .btn-rotate-right:hover {
        transform: translateX(6px) scale(1.15);
    }
    
    .btn-rotate-left i,
    .btn-rotate-right i {
        width: 18px;
        height: 18px;
    }
}

/* Bouton flottant pour la voix */
.btn-speech-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.95);
    border: 2px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-speech-toggle:hover {
    transform: scale(1.1);
    background: rgba(30, 41, 59, 1);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.btn-speech-toggle:active {
    transform: scale(0.95);
}

.btn-speech-toggle i {
    width: 28px;
    height: 28px;
}

/* Position du bouton quand la sidebar est à droite */
.sidebar-right .btn-speech-toggle {
    right: auto;
    left: 20px;
}

@media (max-width: 640px) {
    .btn-speech-toggle {
        width: 48px;
        height: 48px;
        bottom: 15px;
        right: 15px;
    }
    
    .btn-speech-toggle i {
        width: 24px;
        height: 24px;
    }
    
    .sidebar-right .btn-speech-toggle {
        left: 15px;
    }
}
