/* ============================================================
   Thème "esport" global — chargé après Bootstrap dans header.php
   ============================================================ */

:root,
[data-bs-theme="dark"] {
    --gx-bg: #07060d;
    --gx-panel: #110f1c;
    --gx-panel-2: #1a1629;
    --gx-line: rgba(145, 70, 255, 0.22);
    --gx-purple: #9146ff;   /* violet Twitch */
    --gx-cyan: #00e5ff;
    --gx-pink: #ff2e88;
    --gx-grid: rgba(145, 70, 255, 0.07);

    --bs-body-bg: var(--gx-panel);
    --bs-body-bg-rgb: 17, 15, 28;
    --bs-tertiary-bg: var(--gx-panel-2);
    --bs-tertiary-bg-rgb: 26, 22, 41;
    --bs-border-color: var(--gx-line);
    --bs-link-color: #b58cff;
    --bs-link-hover-color: var(--gx-cyan);
}

[data-bs-theme="light"] {
    --gx-bg: #eeeaf7;
    --gx-panel: #ffffff;
    --gx-panel-2: #f5f1ff;
    --gx-line: rgba(145, 70, 255, 0.25);
    --gx-purple: #7c3aed;
    --gx-cyan: #0891b2;
    --gx-pink: #db2777;
    --gx-grid: rgba(124, 58, 237, 0.08);

    --bs-body-bg: var(--gx-panel);
    --bs-tertiary-bg: var(--gx-panel-2);
    --bs-border-color: var(--gx-line);
}

/* ---------- Fond : halos néon + grille "arène" ---------- */
body {
    background-color: var(--gx-bg) !important;
    background-image:
        radial-gradient(ellipse 60% 45% at 0% 0%, rgba(145, 70, 255, 0.28), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(0, 229, 255, 0.14), transparent 70%),
        radial-gradient(ellipse 40% 30% at 100% 0%, rgba(255, 46, 136, 0.10), transparent 70%),
        linear-gradient(var(--gx-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--gx-grid) 1px, transparent 1px);
    background-size: auto, auto, auto, 48px 48px, 48px 48px;
    background-attachment: fixed;
}

/* Scanlines discrètes façon écran de jeu (thème sombre uniquement) */
[data-bs-theme="dark"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018) 0 1px,
        transparent 1px 3px
    );
}

/* ---------- Typo : titres "HUD" ---------- */
h1, h2, h3, h4, h5, .navbar, .page-subtitle, .card-header, .btn {
    font-family: 'Rajdhani', system-ui, sans-serif;
}
h1, h2, h3 { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Navbar ---------- */
.navbar.bg-body-tertiary {
    background: rgba(10, 8, 20, 0.78) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--gx-purple), var(--gx-cyan), transparent) 1;
    z-index: 1030;
}
[data-bs-theme="light"] .navbar.bg-body-tertiary {
    background: rgba(255, 255, 255, 0.82) !important;
}
.navbar .nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color .2s, text-shadow .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.show {
    color: var(--gx-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.dropdown-menu {
    background: var(--gx-panel-2);
    border: 1px solid var(--gx-line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(145, 70, 255, 0.1);
}
.dropdown-item { font-weight: 500; }
.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(90deg, rgba(145, 70, 255, 0.25), transparent);
    color: var(--gx-cyan);
}

/* ---------- Cartes : panneaux avec liseré néon ---------- */
.card,
.equip-card {
    background: var(--gx-panel) !important;
    border: 1px solid var(--gx-line) !important;
}
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .equip-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* ---------- Bannières de page ---------- */
.page-hero {
    border: 1px solid var(--gx-line);
    box-shadow: 0 0 40px rgba(145, 70, 255, 0.18);
}
.page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gx-purple), var(--gx-cyan), var(--gx-pink));
    z-index: 3;
}

/* ---------- Footer ---------- */
footer.bg-body-tertiary {
    background: rgba(10, 8, 20, 0.85) !important;
    border-top: 1px solid var(--gx-line);
    font-family: 'Rajdhani', system-ui, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
[data-bs-theme="light"] footer.bg-body-tertiary {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gx-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gx-purple), var(--gx-cyan));
    border-radius: 5px;
}

/* ============================================================
   Point "live" (navbar + badges)
   ============================================================ */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2e4d;
    box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7);
    animation: live-pulse 1.6s infinite;
    vertical-align: middle;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 46, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); }
}
.navbar .nav-live { display: inline-flex !important; align-items: center; gap: 0.45rem; }

/* Boutons HUD (margin forcé à 0 dans header.php → on espace avec gap) */
.btn-hud {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.4rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform .15s, filter .15s, background .15s;
}
.btn-hud:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn-hud-primary {
    background: linear-gradient(135deg, var(--gx-purple), #6d28d9);
    color: #fff;
    box-shadow: 0 0 24px rgba(145, 70, 255, 0.45);
}
.btn-hud-primary:hover { color: #fff; }
.btn-hud-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: 1px solid rgba(255, 255, 255, 0.25);
    outline-offset: -1px;
}
.btn-hud-ghost:hover { color: var(--gx-cyan); background: rgba(0, 229, 255, 0.08); }

/* ============================================================
   Page d'accueil
   Chaque tuile reçoit sa couleur via la variable --c (inline)
   ============================================================ */
.home { display: flex; flex-direction: column; gap: 3.5rem; }

/* ---------- Hero : texte à gauche, statut de la chaîne à droite ---------- */
.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid var(--gx-line);
    background:
        radial-gradient(circle at 85% 50%, rgba(145, 70, 255, 0.35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(0, 229, 255, 0.18), transparent 50%),
        linear-gradient(135deg, #16112a, #0b0914);
    color: #fff;
}
.home-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gx-purple), var(--gx-cyan), var(--gx-pink));
}
.home-hero.is-live {
    border-color: rgba(255, 46, 77, 0.5);
    background:
        radial-gradient(circle at 85% 50%, rgba(255, 46, 77, 0.35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(145, 70, 255, 0.25), transparent 50%),
        linear-gradient(135deg, #1c0f1f, #0b0914);
}
.home-hero.is-live::after { background: linear-gradient(90deg, #ff2e4d, var(--gx-pink), var(--gx-purple)); }

.home-kicker {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gx-cyan);
}
.home-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    margin: 0 0 1rem;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #fff 20%, #c4a5ff 60%, var(--gx-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-pitch { font-size: 1.15rem; line-height: 1.6; margin: 0 0 1.8rem; color: rgba(255, 255, 255, 0.85); max-width: 560px; }
.home-pitch strong { color: #fff; }

.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.home-welcome { display: inline-flex; align-items: center; gap: 0.6rem; color: rgba(255, 255, 255, 0.85); }
.home-welcome img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gx-purple); }
.home-hint { width: 100%; margin: 0; display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.home-hint i { color: #b58cff; }

/* ---------- Carte de statut (logo + live / hors ligne) ---------- */
.status-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background: rgba(10, 8, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.status-card:hover { color: #fff; transform: translateY(-4px); border-color: var(--gx-purple); box-shadow: 0 10px 40px rgba(145, 70, 255, 0.35); }
.is-live .status-card { border-color: rgba(255, 46, 77, 0.6); }
.is-live .status-card:hover { border-color: #ff2e4d; box-shadow: 0 10px 40px rgba(255, 46, 77, 0.4); }

.channel-logo { position: relative; }
.channel-logo img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #52525b;
    filter: grayscale(0.7) brightness(0.85);
}
.is-live .channel-logo img {
    border-color: #ff2e4d;
    filter: none;
    animation: logo-pulse 2s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0.7); }
    50%      { box-shadow: 0 0 0 14px rgba(255, 46, 77, 0); }
}
.status-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 0.4rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-weight: 700; font-size: 1rem; letter-spacing: 2px;
}
.status-pill.live { background: #e11d48; box-shadow: 0 0 18px rgba(225, 29, 72, 0.6); }
.status-pill.live .live-dot { background: #fff; }
.status-pill.offline { background: #3f3f46; color: #d4d4d8; }

.status-game { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.75); }
.status-game strong { color: #fff; }
.status-meta { display: flex; justify-content: center; gap: 1.2rem; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.status-meta i { color: #ff6b81; margin-right: 0.3rem; }
.status-title {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.status-cta {
    margin-top: 0.3rem;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: #b58cff;
}
.is-live .status-cta { color: #ff6b81; }

/* ---------- Sections en cartes ---------- */
.home a { text-decoration: none; }
.home-section {
    padding: 1.8rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, transparent), transparent 140px),
        var(--gx-panel);
    border: 1px solid var(--gx-line);
    border-top: 3px solid var(--c);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0 0 0.2rem; font-size: 1.8rem; }
.section-icon, .home-card-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
    border-radius: 0.8rem;
}
.section-sub { margin: 0; color: var(--bs-secondary-color); font-size: 1rem; }

/* ---------- Tuiles jeux (couleur de chaque jeu) ---------- */
.games-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.game-tile {
    position: relative;
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    border-radius: 0.8rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.game-tile::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7, 6, 13, 0.95) 5%, rgba(7, 6, 13, 0.2) 55%, transparent);
}
.game-tile::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--c);
}
.game-tile:hover {
    transform: translateY(-6px);
    border-color: var(--c);
    box-shadow: 0 12px 30px -6px var(--c);
}
.game-name {
    position: relative;
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.game-go {
    position: relative;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
}
.game-tile:hover .game-go { opacity: 1; transform: none; }

/* ---------- Loadout (une couleur par tuile) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quick-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: var(--gx-panel-2);
    border: 1px solid var(--gx-line);
    border-left: 4px solid var(--c);
    border-radius: 0.8rem;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.quick-icon {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 16%, transparent);
    border-radius: 0.7rem;
}
.quick-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.quick-text strong { font-family: 'Rajdhani', system-ui, sans-serif; font-size: 1.25rem; letter-spacing: 1px; text-transform: uppercase; }
.quick-text small { color: var(--bs-secondary-color); font-size: 0.9rem; }
.quick-arrow { color: var(--c); opacity: 0.5; transition: transform .2s, opacity .2s; }
.quick-tile:hover { transform: translateY(-3px); border-color: var(--c); color: inherit; box-shadow: 0 10px 25px -8px var(--c); }
.quick-tile:hover .quick-arrow { opacity: 1; transform: translateX(4px); }

/* ---------- Casino + réseaux : deux cartes côte à côte ---------- */
.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.home-casino, .home-cta {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
    padding: 1.8rem;
    border-radius: 1.2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.home-casino h2, .home-cta h2 { margin: 0; font-size: 1.8rem; }
.home-casino p, .home-cta p { margin: 0 0 0.4rem; color: rgba(255, 255, 255, 0.85); flex: 1; }

.home-casino {
    --c: #facc15;
    background:
        radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.25), transparent 50%),
        linear-gradient(135deg, #2a0f2a, #140d24);
    border: 1px solid rgba(250, 204, 21, 0.45);
    transition: transform .2s, box-shadow .2s;
}
.home-casino h2 { color: #facc15; }
.home-casino:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 14px 35px -8px rgba(250, 204, 21, 0.5); }

.home-cta {
    --c: #fff;
    background: linear-gradient(135deg, #6d28d9, #9146ff 50%, #0e7490);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.home-cta .btn-hud-primary { background: #fff; color: #6d28d9; box-shadow: none; }
.home-cta .btn-hud-primary:hover { color: #6d28d9; }
.home-cta .btn-hud-ghost { color: #fff; outline-color: rgba(255, 255, 255, 0.6); }
.home-cta-logos { display: flex; gap: 0.6rem; }
.home-cta .home-discord-logo { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 0 20px rgba(88, 101, 242, 0.5); }
.btn-discord:hover { color: #fff; }
.navbar .nav-casino i { color: #facc15; }

@media (max-width: 1100px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home { gap: 2.5rem; }
    .home-hero { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; gap: 1.8rem; }
    .status-card { order: -1; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: 1fr; }
    .home-section, .home-casino, .home-cta { padding: 1.3rem; }
    .home-duo { grid-template-columns: 1fr; }
}

/* ============================================================
   Casino (casino.php)
   ============================================================ */
.casino { display: flex; flex-direction: column; gap: 1.5rem; }
.casino h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1rem; }
.casino h2 i { color: var(--gx-pink); }

.casino-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 2rem 2.2rem;
    border-radius: 1.2rem;
    color: #fff;
    background:
        radial-gradient(circle at 90% 50%, rgba(255, 46, 136, 0.35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(250, 204, 21, 0.18), transparent 50%),
        linear-gradient(135deg, #1b1030, #0b0914);
    border: 1px solid rgba(255, 46, 136, 0.35);
}
.casino-head h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    background: linear-gradient(90deg, #facc15, #ff2e88 60%, #c4a5ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.casino-balance {
    display: flex; flex-direction: column; align-items: flex-end;
    padding: 0.8rem 1.4rem;
    border-radius: 0.8rem;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.45);
}
.casino-balance small { text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.7); font-weight: 600; }
.casino-balance strong { font-family: 'Rajdhani', system-ui, sans-serif; font-size: 2.4rem; line-height: 1; color: #facc15; }
.casino-balance strong::after { content: ' 🪙'; font-size: 1.6rem; }

.casino-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.casino-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--gx-panel);
    border: 1px solid var(--gx-line);
}
.casino-side { display: flex; flex-direction: column; gap: 1.5rem; }
.casino-how p { margin: 0 0 1rem; }
.casino-how small { display: block; margin-top: 1rem; color: var(--bs-secondary-color); }
.casino-empty { color: var(--bs-secondary-color); margin: 0 0 0.8rem; }

/* ---------- Machine ---------- */
.slot {
    display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
    padding: 2rem 1.5rem;
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(145, 70, 255, 0.35), transparent 60%),
        linear-gradient(180deg, #1a1030, #0d0a18);
    border: 2px solid var(--gx-purple);
    box-shadow: 0 0 40px rgba(145, 70, 255, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.6);
    transition: border-color .3s, box-shadow .3s;
}
.slot.win { border-color: #22c55e; box-shadow: 0 0 50px rgba(34, 197, 94, 0.5); }
.slot.jackpot { border-color: #facc15; box-shadow: 0 0 70px rgba(250, 204, 21, 0.7); animation: jackpot 0.5s ease-in-out 4; }
@keyframes jackpot { 50% { box-shadow: 0 0 110px rgba(255, 46, 136, 0.9); border-color: #ff2e88; } }

.slot-reels { display: flex; gap: 1rem; }
.slot-reel {
    width: 120px; height: 140px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.8rem;
    font-size: 4rem;
    background: linear-gradient(180deg, #0a0812, #1c1630 50%, #0a0812);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.7), inset 0 -8px 16px rgba(0, 0, 0, 0.7);
}
.slot-reel img { width: 80px; height: 80px; object-fit: contain; }
.slot-reel.spinning > * { filter: blur(2px); transform: translateY(4px); }
.slot-reel.stop { animation: reel-stop .3s ease-out; }
@keyframes reel-stop { 0% { transform: translateY(-10px); } 60% { transform: translateY(4px); } 100% { transform: none; } }

.slot-message { min-height: 1.6em; margin: 0; font-size: 1.15rem; font-weight: 600; text-align: center; color: rgba(255, 255, 255, 0.85); }
.slot-message.win { color: #4ade80; font-size: 1.4rem; }
.slot-message.lose { color: #fb7185; }

.slot-bets { display: flex; gap: 0.6rem; }
.slot-bet {
    min-width: 64px;
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    font-family: 'Rajdhani', system-ui, sans-serif; font-weight: 700; font-size: 1.15rem;
    color: #facc15;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.35);
    transition: background .15s, transform .15s;
}
.slot-bet:hover { transform: translateY(-2px); }
.slot-bet.active { color: #0b0914; background: #facc15; border-color: #facc15; box-shadow: 0 0 16px rgba(250, 204, 21, 0.5); }

.slot-spin {
    width: 100%; max-width: 380px;
    padding: 0.9rem;
    border: none;
    border-radius: 0.8rem;
    font-family: 'Rajdhani', system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 3px; text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ff2e88, #9146ff);
    box-shadow: 0 0 25px rgba(255, 46, 136, 0.5);
    transition: transform .15s, filter .15s;
}
.slot-spin:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.15); }
.slot-spin:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Classement / historique / table des gains ---------- */
.casino-top { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.casino-top li {
    counter-increment: rank;
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.55rem 0.3rem;
    border-bottom: 1px solid var(--gx-line);
}
.casino-top li::before { content: counter(rank); width: 1.8rem; font-weight: 700; color: var(--bs-secondary-color); }
.casino-top li:nth-child(1)::before { content: '🥇'; }
.casino-top li:nth-child(2)::before { content: '🥈'; }
.casino-top li:nth-child(3)::before { content: '🥉'; }
.casino-top li span { flex: 1; }
.casino-top li strong { color: #facc15; }
.casino-top li.me { background: rgba(145, 70, 255, 0.15); border-radius: 0.4rem; }

.casino-history { list-style: none; margin: 0; padding: 0; }
.casino-history li { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--gx-line); }
.casino-history .tx-achat strong { color: #b58cff; }
.casino-history .tx-gain strong { color: #4ade80; }
.casino-history .tx-mise strong { color: #fb7185; }

.paytable { width: 100%; text-align: center; }
.paytable th { padding-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--bs-secondary-color); }
.paytable td { padding: 0.35rem 0; border-top: 1px solid var(--gx-line); }
.paytable td strong { color: #facc15; }
.paytable-sym { font-size: 1.5rem; }
.paytable-sym img { width: 30px; height: 30px; }

/* ---------- Réglages casino (casino-admin.php) ---------- */
.admin-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.8rem; }
.admin-step { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 0.8rem; background: var(--gx-panel); border: 1px solid var(--gx-line); }
.admin-step i { font-size: 1.4rem; color: var(--bs-secondary-color); }
.admin-step.done i { color: #22c55e; }
.admin-step div { display: flex; flex-direction: column; }
.admin-step small { color: var(--bs-secondary-color); }

@media (max-width: 900px) {
    .casino-layout { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .casino-head { padding: 1.5rem; }
    .slot-reels { gap: 0.5rem; }
    .slot-reel { width: 90px; height: 110px; font-size: 3rem; }
    .slot-reel img { width: 60px; height: 60px; }
    .slot-bet { min-width: 54px; }
}
