@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&display=swap');

:root {
    --primary: #E6007E;
    --primary-hover: #c5006a;
    --bg: #0a0e14;
    --bg-card: #14181f;
    --bg-hover: #0b0e14;
    --admin: #0b0e14;
    --admin-hover: #E6007E;
    --text: #ffffff;
    --text-muted: #8892a6;
    --border: #1f252e;
    --shadow: rgba(0, 0, 0, 0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Gabarito", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}
/* HEADER SIMPLE */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px !important;
    /* Force le même padding que .site-main */;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-logo {
    width: auto;
    /* keep container compact */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
/* Desktop/tablet: logo fills container. Mobile: match burger height */
@media (max-width: 600px) {
    .site-logo {
        height: 44px;
    }
    .site-logo img {
        height: 100%;
    }
}
.site-logo svg {
    width: 100%;
    height: 100%;
}
.site-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.header-nav {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}
.nav-link.active {
    color: var(--text);
    background: var(--primary);
}
/* Masquer les éléments du menu (desktop et mobile) lorsqu'ils ne sont pas nécessaires */
.header-nav,
.header-nav-mobile {
    display: none !important;
}
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-info-header {
    text-align: right;
}
.username-header {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.user-email-header {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.user-avatar-header {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}
.user-avatar-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.btn-logout-header {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-logout-header:hover {
    background: rgba(239, 68, 68, 0.1);
}
/* Bouton connexion header */
.btn-login-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 5px;
    background: #0b0e14;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-login-header:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
/* Bouton Jouer maintenant dans le header */
.btn-play-header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 30px;
    background: var(--primary);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.15s;
    text-transform: uppercase;
}
.btn-play-header i,
.btn-play-header .ti,
.btn-login-header i,
.btn-login-header .ti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}
.btn-play-header:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
/* Bouton Administration (variant) */
.btn-admin-header {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    color: #ffffff;
    border-radius: 30px;
    background: var(--admin);
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.15s;
    text-transform: uppercase;
}
.btn-admin-header i,
.btn-admin-header .ti {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}
.btn-admin-header:hover {
    background: var(--admin-hover);
    color: white;
    transform: translateY(-2px);
}
.header-actions-inner {
    gap: 10px;
    display: flex;
}
/* MAIN CONTENT */
.site-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}
/* HERO SECTION */
.hero-section {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px var(--shadow);
}
.news-slider-site {
    height: 100%;
    position: relative;
}
.news-slide-site {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s;
}
.news-slide-site.active {
    opacity: 1;
}
.news-slide-site::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 14, 20, 0.92), transparent);
}
.news-content-site {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    /* réduit de 48px */
    max-width: 100%;
    /* full width pour le bouton à droite */
    z-index: 2;
}
.news-category-site {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.news-title-site {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.news-description-site {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}
.news-meta-site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* espace entre gauche et droite */
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    width: 100%;
    /* occupe toute la largeur */;
}
.news-meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.news-views {
    display: flex;
    align-items: center;
    gap: 6px;
}
.news-read-btn-site {
    padding: 12px 24px;
    background: white;
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-left: auto;
    /* pousse à droite */
    flex-shrink: 0;
    /* empêche rétrécissement */;
}
.news-read-btn-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}
.news-dots-site {
    position: absolute;
    bottom: 32px;
    left: 48px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.news-dot-site {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.news-dot-site.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}
/* STATS - REDESIGN COMPLET */
.stats-section {
    margin-bottom: 40px;
}
.stats-section .container {
    padding: 0;
    /* SUPPRIME le padding du container */
    max-width: 100%;
    /* pleine largeur */;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    align-items: stretch;
}
/* Responsive: 2 columns on medium, 1 on small */
@media (max-width: 1000px) {
        .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px) {
        .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
/* Tighter, more visual stat cards */
.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(230,0,126,0.12), rgba(230,0,126,0.06));
    color: var(--primary);
    flex-shrink: 0;
}
.stat-card .stat-icon svg {
    width: 22px;
    height: 22px;
}
.stat-card .stat-info {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}
.stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 6px;
}
@media (max-width: 600px) {
        .stat-card {
        padding: 14px;
    }
    .stat-card .stat-icon {
        width: 48px;
        height: 48px;
    }
    .stat-card .stat-value {
        font-size: 20px;
    }
}
/* Leaderboard / Classement */
.leaderboard-section {
    margin: 28px 0 40px;
}
.leaderboard-section .section-title {
    margin-bottom: 6px;
}
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    /* centre plus large pour le top 1 */
    gap: 18px;
    align-items: end;
    margin-top: 12px;
}
.leaderboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.leaderboard-card.rank-1 {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.leaderboard-rank {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230,0,126,0.08);
    flex-shrink: 0;
}
.leaderboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.03);
}
.leaderboard-meta {
    display:flex;
    flex-direction:column;
}
.leaderboard-name {
    font-weight:800;
    color:var(--text);
}
.leaderboard-time {
    color:var(--text-muted);
    font-size:13px;
    margin-top:4px;
}
@media (max-width: 900px) {
        .leaderboard-grid {
        grid-template-columns: 1fr;
    }
    .leaderboard-card {
        justify-content: flex-start;
    }
    .leaderboard-avatar {
        width:48px;
        height:48px;
    }
}
/* Podium section (separate) */
.podium-section {
    margin: 30px 0 36px;
}
/* New podium visuals matching sample cards */
.podium-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-top: 12px;
}
/* Make podium cards visually consistent with other site boxes (leaderboard/stat)
   - same background, border, radius, padding and subtle shadow
   - content centered vertically with avatar on top */
.podium-card {
    width: 220px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}
.podium-card .podium-rank {
    position: absolute;
    top: 12px;
    left: 12px;
}
.podium-rank {
    font-weight: 800;
    font-size: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    background: #ffd24a;
}
.podium-card.rank-2 .podium-rank {
    background: #cfd8e3;
    color:#111;
}
.podium-card.rank-3 .podium-rank {
    background: #ff8a3d;
    color:#111;
}
.podium-card.rank-4 .podium-rank {
    background: rgba(255,255,255,0.06);
    color:#fff;
}
.podium-card.rank-5 .podium-rank {
    background: rgba(255,255,255,0.04);
    color:#fff;
}
.podium-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.03);
    padding: 4px;
    background-clip: padding-box;
    transition: transform .18s ease;
}
.podium-name {
    font-weight:800;
    color:var(--text);
    margin-top:6px;
    font-size:15px;
}
.podium-time {
    color:var(--text-muted);
    font-size:13px;
    margin-top:4px;
    display:flex;
    align-items:center;
    gap:8px;
    justify-content:center;
}
.podium-time .ti {
    font-size:14px;
    color:var(--primary);
    display:inline-flex;
    align-items:center;
}
.podium-time span {
    display:inline-block;
}
/* Hover animation: lift card, deepen shadow and slightly scale avatar */
.podium-card:hover,
.podium-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.podium-card:hover .podium-avatar,
.podium-card:focus-within .podium-avatar {
    transform: scale(1.06);
}
/* Apply similar hover behavior to leaderboard and stat cards for consistency */
.leaderboard-card,
.stat-card {
    transition: transform .18s ease, box-shadow .18s ease;
}
.leaderboard-card:hover,
.stat-card:hover,
.leaderboard-card:focus-within,
.stat-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
@media (max-width: 1200px) {
        .podium-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}
@media (max-width: 900px) {
        .podium-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}
@media (max-width: 600px) {
        .podium-grid {
        grid-template-columns: 1fr;
    }
    .podium-card {
        width: 100%;
        max-width: 420px;
        flex-direction: row;
        align-items: center;
        padding: 12px;
    }
    .podium-avatar {
        width: 56px;
        height: 56px;
    }
    .podium-name {
        margin-top: 0;
        margin-left: 12px;
    }
    .podium-time {
        margin-left: 12px;
    }
}
.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.2s;
}
.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow);
}
.stat-card:hover::before {
    opacity: 1;
}
.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 0, 126, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}
.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}
.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* GAMES */
.games-section-site {
    margin-bottom: 60px;
}
.games-section-site .container {
    padding: 0;
    /* SUPPRIME le padding du container */
    max-width: 100%;
    /* pleine largeur */;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}
/* Section bar: horizontal title + description with accent */
.section-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.section-bar-accent {
    width: 6px;
    height: 44px;
    background: var(--primary);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(230,0,126,0.08);
    flex-shrink: 0;
}
.section-bar-content {
    display: flex;
    flex-direction: column;
}
.section-bar-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
}
.section-bar-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.25;
}
@media (max-width: 600px) {
        .section-bar {
        gap: 12px;
    }
    .section-bar-accent {
        height: 36px;
        width: 5px;
    }
    .section-bar-title {
        font-size: 18px;
    }
    .section-bar-desc {
        font-size: 13px;
    }
}
.games-grid-site {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
/* Large news cards (grid) */
.news-large-section {
    margin: 28px 0 36px;
}
.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 12px;
}
.news-card {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    transition: transform .18s ease, box-shadow .18s ease;
}
.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,14,20,0.9), rgba(10,14,20,0.15));
    z-index: 0;
}
.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}
.news-card-body {
    position: relative;
    z-index: 2;
}
.news-card-title {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}
.news-card-desc {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.3;
}
.news-card-footer {
    position: relative;
    z-index: 2;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.news-card-version {
    color: var(--text-muted);
    font-size: 12px;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
/* Make the whole card clickable without changing visual style */
.news-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.news-card-link:focus {
    outline: 2px solid rgba(230,0,126,0.16);
    outline-offset: 4px;
    border-radius: 12px;
}
@media (max-width: 1100px) {
        .news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
        .news-cards-grid {
        grid-template-columns: 1fr;
    }
    .news-card {
        height: 220px;
    }
}
.game-card-site {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.game-card-site::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 20, 0.95), transparent);
}
.game-card-site:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}
.game-card-site.disabled {
    filter: grayscale(100%);
    opacity: 0.6;
    cursor: not-allowed;
}
.game-card-site.disabled:hover {
    transform: none;
}
.game-card-content-site {
    position: relative;
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
}
/* Hero variant for wide banner cards */
.game-card-hero {
    height: 200px;
    display: block;
    border-radius: 14px;
}
.game-card-hero .game-card-content-site {
    display: block;
    position: relative;
    z-index: 3;
}
.game-card-hero .game-card-title-site {
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    margin: 25px 0 6px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.game-card-hero .game-card-badge-site {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 3;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}
.game-card-hero .game-card-badge-site.installed {
}
.game-card-hero .game-card-meta-site {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 18px;
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap:12px;
    color:var(--text-muted);
    z-index:4;
}
.game-card-hero .game-card-players-site {
    background: rgba(255,255,255,0.04);
    padding:8px 12px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--text);
}
.game-card-hero .game-card-status {
    font-weight:800;
    font-size:13px;
    color:var(--primary);
}
.game-card-hero.disabled .game-card-status {
    color: var(--text-muted);
}
/* Large translucent logo overlay on hero cards */
.game-card-logo {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    width: 48%;
    height: 120%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    opacity: 0.06;
    z-index: 1;
    pointer-events: none;
    filter: saturate(0.9) blur(0.2px);
}
@media (max-width: 1100px) {
        .game-card-hero {
        height: 200px;
    }
    .game-card-hero .game-card-title-site {
        font-size: 32px;
    }
    .game-card-logo {
        width: 40%;
        opacity: 0.05;
        right: 4%;
    }
}
@media (max-width: 700px) {
        .game-card-hero {
        height: 160px;
    }
    .game-card-hero .game-card-title-site {
        font-size: 20px;
    }
    .game-card-logo {
        display: none;
    }
    .game-card-hero .game-card-content-site {
    }
    .game-card-hero .game-card-meta-site {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
/* Tabler icon sizing inside hero cards */
.game-card-hero .ti {
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
    margin-right: 8px;
}
.game-card-hero .game-card-badge-site .ti {
    margin-right: 6px;
    font-size: 15px;
}
.game-card-hero .game-card-players-site .ti {
    font-size: 16px;
    margin-right: 6px;
}
.game-card-badge-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
.game-card-title-site {
    font-size: 36px;
    font-weight: 800;
}
.game-card-players-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
}
/* FOOTER */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 28px 0;
}
.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}
/* Top row: links left, socials right */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--text);
}
.footer-socials {
    display: flex;
}
.footer-socials a {
    color: var(--text-muted);
    font-size: 24px;
    transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none !important;
}
.footer-socials a:hover {
    color: var(--text);
    transform: translateY(-4px) scale(1.08);
}
.footer-socials a:focus {
    outline: 2px solid rgba(230,0,126,0.18);
    outline-offset: 4px;
}
.footer-socials a i,
.footer-socials a svg {
    text-decoration: none !important;
    display: inline-block;
    line-height: 1;
}
/* Bottom row: logo+copyright left, language right */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-logo {
    height: 40px;
    width: auto;
}
.footer-domain {
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}
.footer-copyright {
    color: var(--text-muted);
    font-size: 16px;
    margin-left: 8px;
}
.lang-selector {
    background: transparent;
    border: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 0;
    transition: opacity 0.2s;
}
.lang-selector:hover {
    opacity: 0.8;
}
.lang-flag {
    font-size: 16px;
}
@media (max-width: 768px) {
        .footer-container {
        padding: 0 24px;
    }
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-links {
        gap: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .footer-brand {
        flex-wrap: wrap;
    }
}
/* RESPONSIVE */
@media (max-width: 1200px) {
        .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
        .site-header .container-fluid,
    .site-main,
    .footer-content {
        padding-left: 24px;
        padding-right: 24px;
    }
    .hero-section {
        height: 360px;
        /* ajusté pour mobile */;
    }
    .news-content-site {
        padding: 32px 24px;
    }
    .news-title_site {
        font-size: 28px;
    }
    .news-meta-site {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-read-btn_site {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .stats-grid,
    .games-grid-site {
        grid-template-columns: 1fr;
    }
    .game-card-site {
        height: 200px;
    }
}
/* Modal login styles */
.modal-login {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s;
}
.modal-login.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.modal-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity .22s ease;
}
.modal-login.open .modal-login-backdrop {
    opacity: 1;
}
.modal-login-content {
    position: relative;
    width: 520px;
    max-width: calc(100% - 40px);
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px 36px 20px;
    /* extra right padding to reserve space for scrollbar */
    z-index: 2;
    box-shadow: 0 18px 60px rgba(0,0,0,0.6);
    color: var(--text);
    /* Limiter la hauteur de la modal et activer le scroll interne si nécessaire */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal-login.open .modal-login-content {
    animation: modal-in .26s cubic-bezier(.22,.9,.36,1) forwards;
}
.modal-login.closing .modal-login-content {
    animation: modal-out .18s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes modal-in {
        from {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes modal-out {
        from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(.98);
    }
}
.modal-login-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    z-index: 4;
}
/* Mask on the right edge to hide scrollbar seam outside rounded border */
.modal-login-content::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 100%;
    background: var(--bg-card);
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    pointer-events: none;
}
.modal-login-close .icon {
    color: var(--text-muted);
}
.modal-login-content h2 {
    margin-bottom: 18px;
    font-size: 22px;
}
.modal-login-content .login-google-btn {
    width: 100%;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.03);
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 18px;
}
.login-google-btn .google-logo {
    display: inline-flex;
    align-items: center;
}
.login-or {
    text-align: center;
    color: var(--text-muted);
    margin: 6px 0 12px;
}
.modal-login-content .form-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}
.modal-login-content label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.modal-login-content input {
    padding: 12px 14px;
    border-radius: 12px;
    height: 48px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    color: var(--text);
}
.password-group .password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field input {
    width: 100%;
    height: 48px;
    padding: 12px 48px 12px 14px;
    /* espace pour l'icône */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.02);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    transition: border-color .15s, box-shadow .15s;
}
.password-field input:focus {
    outline: none;
    border-color: rgba(230,0,126,0.85);
    box-shadow: 0 6px 24px rgba(230,0,126,0.06);
}
/* Aide sous les champs (taille réduite) */
.input-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.3;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 0%);
    border-radius: 50%;
    border: 0px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    transition: background .12s, transform .08s;
}
.password-toggle .icon {
    display: block;
    stroke: currentColor;
}
.password-toggle:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-50%) scale(1.05);
}
.password-toggle:active {
    transform: translateY(-50%) scale(0.98);
}
.form-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
.forgot-link {
    color: #ff5aa6;
    font-size: 13px;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.btn-primary.btn-login-modal {
    width: 100%;
    padding: 12px 14px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}
.btn-primary.btn-login-modal:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.modal-footer-text {
    text-align: center;
    margin-top: 14px;
    color: var(--text-muted);
}
.modal-footer-text .register-link {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    margin-left: 6px;
}
.modal-footer-text .register-link:hover {
    color: var(--primary-hover);
}
.modal-terms-text {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 12px;
}
.modal-terms-text .terms-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.modal-terms-text .terms-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.login-from-register {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}
.login-from-register:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
/* Lien 'Se connecter' dans la modal de réinitialisation */
.login-from-reset {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}
.login-from-reset:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
/* Toast / notifications */
.toast-container {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
    pointer-events: none;
}
.toast {
    min-width: 260px;
    max-width: 360px;
    background: rgba(20,20,24,0.98);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    transform: translateY(12px) scale(0.995);
    opacity: 0;
    animation: toast-in .22s cubic-bezier(.22,.9,.36,1) forwards;
}
.toast .toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text);
}
.toast .toast-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 700;
}
.toast.success {
    border-left: 4px solid #34A853;
}
.toast.error {
    border-left: 4px solid #EA4335;
}
.toast.warning {
    border-left: 4px solid #FBBC05;
}
.toast.info {
    border-left: 4px solid var(--primary);
}
@keyframes toast-in {
        from {
        opacity: 0;
        transform: translateY(12px) scale(.995);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Forcer visibilité des toasts (priorité + éviter d'être masqué par parent transform/overflow) */
body > .toast-container {
    position: fixed !important;
    right: 18px !important;
    bottom: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}
body > .toast-container .toast {
    min-width: 260px !important;
    max-width: 420px !important;
    background: rgba(30,30,36,0.98) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7) !important;
    opacity: 1 !important;
    transform: none !important;
}
body > .toast-container .toast .toast-close {
    color: #fff !important;
}
/* Rejoignez la communauté - variants */
.community-cta-variants .cta-examples {
    display: grid;
    gap: 18px;
}
.community-cta-variants .cta-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
}
.cta-boxed {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.04);
    background: transparent;
}
.cta-boxed .cta-inner {
    padding: 22px;
}
.cta-wide {
    max-width: 1060px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.03);
    background: transparent;
}
.cta-wide .cta-inner {
    padding: 26px;
}
.cta-full {
    width: 100%;
    border-radius: 0.5rem;
    padding: 0;
    background: transparent;
    border: 0;
}
.cta-full .cta-inner {
    padding: 36px 24px;
    max-width: 1280px;
    margin: 0 auto;
}
.cta--with-bg {
    background: linear-gradient(90deg, rgba(230,0,126,0.12), rgba(10,14,20,0.02));
    border-color: rgba(230,0,126,0.18);
}
.cta--with-bg .cta-inner h3 {
    color: var(--text);
}
.cta--with-bg .cta-sub {
    color: rgba(255,255,255,0.85);
}
/* Ensure CTA container has positioning for glow overlay and inner content sits above it */
.cta-full {
    position: relative;
}
.cta--with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 0.5rem;
    /* soft radial glow to help foreground elements pop */
    background: radial-gradient(circle at 70% 65%, rgba(230,0,126,0.14), rgba(230,0,126,0.06) 10%, transparent 35%),
                linear-gradient(180deg, rgba(10,14,20,0.25), rgba(10,14,20,0.08));
}
.cta--with-bg .cta-inner {
    position: relative;
    z-index: 2;
}
/* Make CTA button show its text on small screens inside CTA examples */
@media (max-width: 576px) {
        .cta-examples .btn-play-header,
    .cta-examples .btn-login-header {
        width: auto;
        height: auto;
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-transform: none;
        gap: 8px;
        white-space: nowrap;
    }
    .cta-examples .btn-play-header i {
        margin-left: 0;
    }
}
/* Dark panel behind CTA inner content to improve text contrast over busy backgrounds */
.cta--with-bg .cta-inner {
    background: rgba(6, 8, 12, 0.48);
    border-radius: 10px;
    padding: 36px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45) inset;
}
/* Slightly stronger on small screens */
@media (max-width: 600px) {
        .cta--with-bg .cta-inner {
        background: rgba(6, 8, 12, 0.62);
    }
}
/* Help the primary CTA button pop over the image */
.cta--with-bg .cta-actions .btn-play-header {
    box-shadow: 0 10px 30px rgba(230,0,126,0.12);
}
.cta--no-bg {
    background: transparent;
    border-color: rgba(255,255,255,0.04);
}
.cta--no-bg .cta-inner h3 {
    color: var(--text);
}
.cta--no-bg .cta-sub {
    color: var(--text-muted);
}
.cta-actions {
    margin-top:12px;
}
.cta-actions .btn-play-header {
    padding: 10px 20px;
}
@media (max-width: 900px) {
        .cta-boxed, .cta-wide {
        max-width: calc(100% - 40px);
    }
    .cta-full .cta-inner {
        padding: 28px 18px;
    }
}
/* === Modal scrollbar (clean dark theme, accent pink) === */
.modal-login-content {
    /* Firefox: thin thumb on transparent track */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}
/* WebKit browsers: transparent track, gradient rounded thumb with subtle inset */
.modal-login-content::-webkit-scrollbar {
    width: 8px;
}
.modal-login-content::-webkit-scrollbar-track {
    background: transparent;
    /* hide track demarcation */;
}
.modal-login-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-hover));
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.03);
}
.modal-login-content::-webkit-scrollbar-thumb:hover {
    filter: brightness(1.05);
}
@media (max-width: 480px) {
        .modal-login-content::-webkit-scrollbar {
        width: 6px;
    }
}
/* Header: icon-only buttons on small screens */
@media (max-width: 576px) {
        .btn-login-header,
    .btn-play-header,
    .btn-admin-header {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        /* hide text while keeping icon size explicit below */;
    }
    .btn-login-header i,
    .btn-play-header i,
    .btn-admin-header i {
        font-size: 18px;
        line-height: 1;
        margin-left: 4px;
    }
    .btn-play-header {
        min-width: 44px;
        padding: 0;
    }
    .btn-admin-header {
        min-width: 44px;
        padding: 0;
    }
    /* keep accessible focus state */
        .btn-login-header:focus,
    .btn-play-header:focus,
    .btn-admin-header:focus {
        outline: 2px solid rgba(230,0,126,0.14);
        outline-offset: 2px;
    }
    /* grouped actions layout (no centering) */
        .header-actions-inner {
        display:flex;
        gap:10px;
        align-items:center;
    }
    .site-header .row {
        align-items: center;
    }

    /* Improve icon group styling for mobile: compact pill behind icons */
    .user-profile-header {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.02);
        padding: 6px;
        border-radius: 999px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }
    .user-avatar-header {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid rgba(255,255,255,0.03);
        flex: 0 0 36px;
    }
    .user-avatar-header img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    /* reduce header padding on very small screens to gain space */
    .site-header {
        padding: 12px 0;
    }
    .site-header .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* === Mobile Menu Burger === */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    width: 44px;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--primary);
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate hamburger to X when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile menu container */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 20px 20px 24px;
    max-width: 100%;
}

/* User info in mobile menu (when logged in) */
.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-username {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.mobile-email {
    font-size: 13px;
    color: var(--text-muted);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* Menu items list */
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mobile-menu-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
    transform: translateX(4px);
}

.mobile-menu-item i,
.mobile-menu-item svg {
    font-size: 20px;
    flex-shrink: 0;
}

.mobile-menu-item span {
    flex: 1;
}

/* Play button variant (primary) */
.mobile-menu-item-play {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mobile-menu-item-play:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
    transform: translateX(4px) scale(1.02);
}

/* Admin button variant */
.mobile-menu-item-admin {
    background: var(--admin);
    border-color: rgba(255,255,255,0.08);
}

.mobile-menu-item-admin:hover {
    background: var(--admin-hover);
    border-color: var(--admin-hover);
    color: white;
}

/* Login button variant */
.mobile-menu-item-login {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}

.mobile-menu-item-login:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Logout button variant (danger) */
.mobile-menu-item-logout {
    color: #ef4444;
}

.mobile-menu-item-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* On small screens, hide desktop nav and actions */
@media (max-width: 991.98px) {
    .mobile-menu {
        display: none; /* hidden by default, .open shows it */
    }
}

/* --- Wiggle (global) ---
     Provides a small 'wizz' animation for play CTAs across the site.
*/
@keyframes sv_wiggle {
    0% { transform: translateX(0) rotate(0deg); }
    12% { transform: translateX(-6px) rotate(-2deg); }
    24% { transform: translateX(6px) rotate(2.5deg); }
    36% { transform: translateX(-4px) rotate(-1.5deg); }
    48% { transform: translateX(4px) rotate(1deg); }
    60% { transform: translateX(-2px) rotate(-0.6deg); }
    72% { transform: translateX(2px) rotate(0.4deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.btn-play-header.wiggle {
    animation: sv_wiggle 0.8s cubic-bezier(.22,.9,.33,1) both;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .btn-play-header.wiggle { animation: none !important; }
}