:root {
    /* Fond très sombre avec une infime touche de violet pour lier le tout */
    --bg-dark: #0f0a14; 
    --card-bg: #1c1326;
    --text-light: #FFFFFF;
    
    /* TON DÉGRADÉ MAGIQUE */
    --gradient-fire: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    
    /* Couleurs solides pour les ombres 3D (basées sur la fin du dégradé) */
    --shadow-color: #4a00a8; 
    --input-border: #FF004D; /* Le rouge au centre du dégradé pour l'input */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    background-color: #07030f;
    color: var(--text-light);
    min-height: 100dvh;
    background-image:
        radial-gradient(circle at 18% 6%, rgba(178, 0, 255, 0.22), transparent 55%),
        radial-gradient(circle at 82% 96%, rgba(255, 0, 77, 0.18), transparent 55%),
        linear-gradient(180deg, #14082a 0%, #07030f 100%);
    background-attachment: fixed;
}
body.ls-sheet-open { overflow: hidden; }

#app {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

/* ============================================================
   PLATO-STYLE DASHBOARD
   ============================================================ */
.ls-dashboard {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ls-dashboard > * { width: 100%; }
.ls-dash-brand { display: flex; flex-direction: column; min-width: 0; }

/* Header brand + actions */
.ls-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    text-align: left;
}
.ls-dash-brand h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.ls-dash-brand .highlight {
    background: var(--gradient-fire);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.ls-dash-actions {
    display: flex; align-items: center; gap: 10px;
}
.ls-dash-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cab5e6;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.12s, background 0.15s;
}
.ls-dash-icon:active { transform: scale(0.92); }
.ls-dash-account {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
}
.ls-dash-account:active { transform: scale(0.92); }
.ls-dash-account.is-premium {
    border-color: #FFD700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
}
.ls-dash-account.is-admin {
    border-color: #00E5FF;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.6), 0 0 24px rgba(112, 0, 255, 0.3);
}

/* Greeting block */
.ls-greeting {
    padding: 10px 4px 0;
}
.ls-greeting-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.05;
}
.ls-greeting-sub {
    margin: 6px 0 0;
    color: #cab5e6;
    font-size: 0.92rem;
}

/* Brand tag (sous le titre LASPECIAL) */
.ls-dash-tag {
    margin: 2px 0 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #907d9e;
    font-weight: 700;
}

/* ============================================================
   Stack d'actions principales (3 cartes hiérarchisées)
   ============================================================ */
.ls-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.ls-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
}
.ls-action:active { transform: scale(0.985); }
.ls-action-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255, 215, 0, 0.14);
    color: #FFD700;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.ls-action-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    gap: 2px;
    position: relative; z-index: 1;
}
.ls-action-eyebrow {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #FFD700;
    font-weight: 800;
}
.ls-action-title { font-weight: 800; font-size: 1.02rem; line-height: 1.15; }
.ls-action-sub { font-size: 0.78rem; color: #cab5e6; line-height: 1.35; }
.ls-action-chevron {
    color: #cab5e6;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative; z-index: 1;
}

/* Variante HERO (action principale - créer un salon) */
.ls-action-hero {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.22), rgba(255, 0, 77, 0.15) 50%, rgba(112, 0, 255, 0.22));
    border-color: rgba(255, 0, 77, 0.45);
    padding: 20px 18px;
    box-shadow: 0 12px 32px rgba(255, 0, 77, 0.16);
}
.ls-action-hero .ls-action-icon {
    background: rgba(0, 0, 0, 0.28);
    color: #FFD700;
    font-size: 1.5rem;
    width: 56px; height: 56px;
}
.ls-action-hero .ls-action-title { font-size: 1.18rem; text-transform: uppercase; letter-spacing: 0.4px; }
.ls-action-hero .ls-action-chevron { color: #FFD700; font-size: 1rem; }
.ls-action-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 122, 0, 0.5), transparent 60%);
    filter: blur(40px);
    opacity: 0.45;
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { transform: translateX(-4%); }
    to   { transform: translateX(6%); }
}

/* Variante CYAN (rejoindre) */
.ls-action-cyan .ls-action-icon {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(112, 0, 255, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00E5FF;
}

/* Variante MINI (solo - plus discrète) */
.ls-action-mini {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px;
}
.ls-action-mini .ls-action-icon {
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.06);
    color: #cab5e6;
    font-size: 1.05rem;
}
.ls-action-mini .ls-action-title { font-size: 0.96rem; }
.ls-action-mini .ls-action-sub { font-size: 0.74rem; }

/* Lien crédits compact en bas */
.ls-credits-link {
    margin: 18px auto 0;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #907d9e;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.15s, color 0.15s;
}
.ls-credits-link:hover { background: rgba(255, 255, 255, 0.04); color: #cab5e6; }
.ls-credits-link i { font-size: 0.72rem; }

/* ============================================================
   POPUPS modernes (mise à jour + installation PWA)
   Glassmorphism, hiérarchie claire, animations smooth
   ============================================================ */
.ls-pop {
    position: fixed;
    inset: 0;
    z-index: 99997;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ls-pop.hidden { display: none !important; }
.ls-pop-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 3, 15, 0.78);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    animation: lsPopFade 0.2s ease;
}
@keyframes lsPopFade { from { opacity: 0; } to { opacity: 1; } }

.ls-pop-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 92dvh;
    overflow-y: auto;
    background: linear-gradient(160deg, #1f1336 0%, #14082a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 22px 22px 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 215, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: lsPopIn 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lsPopIn {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ls-pop-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    font-family: inherit;
    transition: transform 0.1s, background 0.15s;
    z-index: 2;
}
.ls-pop-close:active { transform: scale(0.92); }
.ls-pop-close:hover { background: rgba(255, 0, 77, 0.18); }

/* ---------- Pill version (popup mise à jour) ---------- */
.ls-pop-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}
.ls-pop-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FFD700;
    box-shadow: 0 0 6px #FFD700;
    animation: lsPopDotPulse 1.6s ease-in-out infinite;
}
@keyframes lsPopDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ---------- Icône PWA ---------- */
.ls-pop-pwa-icon {
    width: 76px; height: 76px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.18), rgba(255, 0, 77, 0.12) 50%, rgba(112, 0, 255, 0.18));
    border: 1px solid rgba(255, 0, 77, 0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem;
    color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 0, 77, 0.25);
}

/* ---------- Titre ---------- */
.ls-pop-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.ls-pop-shine {
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: lsPopShine 5s ease-in-out infinite;
}
@keyframes lsPopShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.ls-pop-tagline {
    margin: 0 0 20px;
    color: #cab5e6;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

/* ---------- Stats bar ---------- */
.ls-pop-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.ls-pop-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 4px;
    text-align: center;
    display: flex; flex-direction: column;
    gap: 2px;
}
.ls-pop-stat.is-gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 122, 0, 0.08));
    border-color: rgba(255, 215, 0, 0.35);
}
.ls-pop-stat-num {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF7A00, #FF004D, #7000FF);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.ls-pop-stat.is-gold .ls-pop-stat-num {
    background: linear-gradient(135deg, #FFD700, #FF8A00);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.ls-pop-stat-lbl {
    font-size: 0.66rem;
    color: #907d9e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* ---------- Features list ---------- */
.ls-pop-features, .ls-pop-perks {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ls-pop-features li, .ls-pop-perks li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: left;
}
.ls-pop-feat-ico, .ls-pop-perk-ico {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #FFD700;
    flex-shrink: 0;
}
.ls-pop-feat-txt, .ls-pop-perks li > span:not(.ls-pop-perk-ico) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ls-pop-feat-txt strong, .ls-pop-perks li strong {
    font-size: 0.92rem;
    font-weight: 800;
}
.ls-pop-feat-txt small, .ls-pop-perks li small {
    color: #907d9e;
    font-size: 0.74rem;
    line-height: 1.35;
}
.ls-pop-feat-badge {
    background: linear-gradient(135deg, #FF004D, #FF1493);
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* ---------- iOS steps ---------- */
.ls-pop-ios {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px dashed rgba(0, 229, 255, 0.35);
    border-radius: 14px;
}
.ls-pop-ios.hidden { display: none; }
.ls-pop-ios-title {
    margin: 0 0 8px;
    color: #00E5FF;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex; align-items: center; gap: 6px;
}
.ls-pop-ios ol {
    margin: 0; padding-left: 18px;
    color: #cab5e6;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ---------- CTAs ---------- */
.ls-pop-cta {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 0, 77, 0.35);
    font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.1s, box-shadow 0.15s;
}
.ls-pop-cta:active {
    transform: translateY(2px);
    box-shadow: 0 4px 14px rgba(255, 0, 77, 0.3);
}
.ls-pop-later {
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #907d9e;
    padding: 11px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
.ls-pop-later:hover { background: rgba(255, 255, 255, 0.04); color: #cab5e6; }

/* ============================================================
   Banner "Mise à jour disponible" (flottant en haut)
   ============================================================ */
.ls-update-banner {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 12px;
    width: calc(100% - 24px);
    max-width: 420px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.95), rgba(255, 0, 77, 0.92));
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(255, 0, 77, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 999999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: lsUpdateIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ls-update-banner.hidden { display: none !important; }
@keyframes lsUpdateIn {
    from { transform: translateX(-50%) translateY(-110%); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.ls-update-icon {
    font-size: 1.4rem;
    line-height: 1;
    animation: lsUpdateSparkle 1.4s ease-in-out infinite;
}
@keyframes lsUpdateSparkle {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.18) rotate(15deg); }
}
.ls-update-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ls-update-text strong { font-weight: 800; font-size: 0.88rem; }
.ls-update-text small { font-size: 0.72rem; opacity: 0.9; }
.ls-update-btn {
    background: #fff;
    color: #FF004D;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 900;
    font-size: 0.74rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: transform 0.1s;
}
.ls-update-btn:active { transform: scale(0.94); }

/* ============================================================
   Onboarding (3 slides, 1ère visite)
   ============================================================ */
.ls-onb {
    position: fixed; inset: 0; z-index: 99998;
    background: radial-gradient(circle at 20% 18%, rgba(178, 0, 255, 0.45), transparent 55%),
        radial-gradient(circle at 80% 82%, rgba(255, 0, 77, 0.40), transparent 55%),
        linear-gradient(180deg, #1a0830 0%, #07030f 100%);
    color: #fff;
    display: flex; flex-direction: column;
    padding: 32px 24px calc(28px + env(safe-area-inset-bottom));
    animation: lsOnbIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ls-onb.hidden { display: none !important; }
@keyframes lsOnbIn { from { opacity: 0; } to { opacity: 1; } }

.ls-onb-slide {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
    padding: 0 8px;
}
.ls-onb-slide.is-active {
    display: flex;
    animation: lsOnbSlide 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes lsOnbSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ls-onb-emoji {
    font-size: 5rem; line-height: 1;
    animation: lsOnbBounce 1.6s ease-in-out infinite;
}
@keyframes lsOnbBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.ls-onb-slide h2 {
    font-size: 1.9rem; font-weight: 900; line-height: 1.15;
    max-width: 320px;
}
.ls-onb-slide h2 .grad {
    background: linear-gradient(135deg, #FF7A00, #FF004D, #B200FF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ls-onb-slide p {
    font-size: 1.05rem; color: #d8cae8; line-height: 1.45;
    max-width: 340px;
}

.ls-onb-bottom {
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ls-onb-dots { display: flex; gap: 8px; }
.ls-onb-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s, width 0.2s;
}
.ls-onb-dots .dot.is-active {
    background: #fff;
    width: 24px; border-radius: 999px;
}
.ls-onb-actions {
    display: flex; gap: 12px; width: 100%; max-width: 360px;
}
.ls-onb-skip, .ls-onb-next {
    border: none; border-radius: 14px;
    padding: 14px 20px; font-family: inherit;
    font-size: 1rem; font-weight: 800; cursor: pointer;
    transition: transform 0.12s;
}
.ls-onb-skip {
    background: transparent;
    color: #cab5e6;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex: 1;
}
.ls-onb-skip:active { transform: scale(0.96); color: #fff; }
.ls-onb-next {
    background: linear-gradient(135deg, #FF7A00, #FF004D, #B200FF);
    color: #fff;
    flex: 2;
    box-shadow: 0 8px 22px rgba(255, 0, 77, 0.32);
}
.ls-onb-next:active { transform: scale(0.97); }

/* Sections (groupes, vedette) */
.ls-section { margin-top: 22px; }
.ls-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 2px;
}
.ls-section-head h3 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #cab5e6;
    font-weight: 800;
    display: flex; align-items: center; gap: 8px;
}
.ls-section-head h3 i { color: #FFD700; font-size: 0.78rem; }
.ls-section-link {
    color: #FFD700;
    font-size: 0.74rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ls-section-link:active { opacity: 0.6; }

/* Carousel groupes */
.ls-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ls-carousel::-webkit-scrollbar { display: none; }
.ls-group-chip {
    flex-shrink: 0;
    min-width: 132px;
    max-width: 160px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    transition: transform 0.12s, background 0.15s;
}
.ls-group-chip:active { transform: scale(0.96); }
.ls-group-chip::before {
    content: '';
    position: absolute;
    top: 10px; left: 0;
    width: 3px; height: 32px;
    background: var(--gc, #FFD700);
    border-radius: 0 3px 3px 0;
}
.ls-group-chip-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gc, #FFD700);
    color: #07030f;
    font-weight: 900;
    font-size: 0.74rem;
    display: flex; align-items: center; justify-content: center;
    margin-left: 6px;
}
.ls-group-chip-name {
    font-weight: 800;
    font-size: 0.88rem;
    margin-left: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-group-chip-count {
    font-size: 0.7rem;
    color: #907d9e;
    margin-left: 6px;
}
.ls-group-chip-add {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    color: #FFD700;
    flex-direction: column;
    gap: 4px;
    min-width: 96px;
}
.ls-group-chip-add::before { display: none; }
.ls-group-chip-add i { font-size: 1.05rem; }
.ls-group-chip-add span { font-size: 0.78rem; font-weight: 700; }
.ls-carousel-empty {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px dashed rgba(255, 215, 0, 0.3);
    border-radius: 14px;
    color: #cab5e6;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 10px;
    justify-content: center;
}
.ls-carousel-empty i { color: #FFD700; }

/* Featured games */
.ls-featured-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ls-featured-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.ls-featured-card:active { transform: scale(0.985); }
.ls-featured-card[data-theme="duo"] { border-color: rgba(0, 229, 255, 0.35); }
.ls-featured-card[data-theme="paint"] { border-color: rgba(255, 215, 0, 0.4); }
.ls-featured-card[data-theme="spy"] { border-color: rgba(0, 255, 102, 0.35); }
.ls-featured-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.ls-featured-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-featured-text strong { font-size: 0.95rem; font-weight: 800; }
.ls-featured-text small { font-size: 0.74rem; color: #907d9e; }
.ls-featured-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.35);
}

/* ============================================================
   SHEET MODALE (slide up depuis le bas pour la Solo party)
   ============================================================ */
.ls-sheet {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.ls-sheet.hidden { display: none !important; }
.ls-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: ls-fade .2s ease;
}
@keyframes ls-fade { from { opacity: 0; } to { opacity: 1; } }
.ls-sheet-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92dvh;
    background: linear-gradient(180deg, #1c1326 0%, #14082a 100%);
    border-radius: 26px 26px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    animation: ls-sheet-up .28s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}
@keyframes ls-sheet-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.ls-sheet-handle {
    width: 40px; height: 4px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin: 10px auto 0;
}
.ls-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ls-sheet-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}
.ls-sheet-head h3 i { color: #FFD700; font-size: 0.95rem; }
.ls-sheet-close {
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: none; color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.ls-sheet-close:active { transform: scale(0.92); }
.ls-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    -webkit-overflow-scrolling: touch;
}
.ls-sheet-footer {
    padding: 12px 20px 18px;
    background: linear-gradient(to top, #1c1326 80%, rgba(28, 19, 38, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

header {
    text-align: center;
    padding: 20px 15px 10px;
}

header h1 {
    font-size: 2.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Application du dégradé sur le texte SPECIAL */
.highlight {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #907d9e;
    margin: 5px 0 0 0;
    font-size: 1.1rem;
}

#player-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

#empty-state {
    text-align: center;
    color: #5c456e;
    margin-top: 30px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.empty-state-icon {
    width: 72px; height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(112, 0, 255, 0.14));
    border: 2px dashed rgba(255, 122, 0, 0.4);
    color: #FF7A00;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.empty-state-title {
    margin: 0;
    color: #cab5e6;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.empty-state-text {
    margin: 0;
    color: #5c456e;
    font-size: 0.95rem;
    line-height: 1.4;
}
.empty-state-text strong { color: #FFD700; font-weight: 800; }

#playerList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-item {
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    /* Légère bordure violette pour détacher la bulle */
    border: 2px solid #2d1c3d;
}
.player-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.player-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-delete {
    background: rgba(255, 0, 77, 0.1);
    border: none;
    color: #FF004D;
    font-size: 1.1rem;
    font-weight: bold;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-delete:hover { background: rgba(255, 0, 77, 0.22); }
.btn-delete:active { transform: scale(0.92); }

.bottom-controls {
    padding: 15px 20px 30px;
    /* Dégradé noir vers transparent pour adoucir le bas */
    background: linear-gradient(to top, var(--bg-dark) 85%, transparent);
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 25px;
    border: 2px solid var(--input-border);
    background: #000000;
    color: white;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
    outline: none;
}

input::placeholder {
    color: #5c456e;
}

/* Boutons avec le dégradé en fond et ombre 3D */
.btn-add {
    width: 60px;
    border-radius: 25px;
    border: none;
    background: var(--gradient-fire);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 6px 0 var(--shadow-color);
    transition: all 0.1s;
}

.btn-add:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 var(--shadow-color);
}

.btn-start {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
    border: none;
    background: var(--gradient-fire);
    color: white;
    font-size: 1.25rem;
    font-weight: 900;
    font-family: 'Fredoka', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 0 var(--shadow-color);
    transition: all 0.1s;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    cursor: pointer;
}
.btn-start-label { display: inline-flex; align-items: center; }
.btn-start-count {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.btn-start-count:empty { display: none; }

.btn-start:active:not(:disabled) {
    transform: translateY(8px);
    box-shadow: 0 0 0 var(--shadow-color);
}

/* État désactivé : on grise le bouton et on enlève le dégradé */
.btn-start:disabled {
    background: #2d1c3d;
    color: #666;
    box-shadow: 0 8px 0 #180f21;
    transform: none;
    cursor: not-allowed;
}
.btn-start:disabled .btn-start-count { display: none; }

/* ========================================== */
/* Footer Discret - EN BAS DU SCROLL          */
/* ========================================== */
.discreet-footer {
    width: 100%;
    text-align: center;
    padding: 40px 0 20px 0; /* Donne de l'espace avec le dernier jeu */
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.discreet-footer a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05); /* Fond ultra léger */
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.discreet-footer a:active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95); /* Petit effet de clic ("pop") */
}

/* ========================================= */
/* POPUP NOUVELLE VERSION                    */
/* ========================================= */

/* Le fond sombre flouté derrière la pop-up */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* S'assure qu'elle est au-dessus de tout le reste */
    padding: 20px;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

/* Cache la pop-up par défaut */
.popup-overlay.hidden {
    display: none !important;
}

/* La boîte centrale */
.popup-content {
    background: linear-gradient(135deg, #1a0b2e, #050a14);
    border: 3px solid #B200FF;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(178, 0, 255, 0.4);
}

/* Animation de l'icône qui flotte */
.popup-icon {
    font-size: 4rem;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    color: #fff;
}

.highlight-laspecial {
    color: #00E5FF;
    font-weight: 900;
    font-size: 2.2rem;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
    display: block;
    margin-top: 5px;
}

/* Liste des nouveautés */
.popup-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-features li {
    font-size: 1.1rem;
    color: #d4b3ff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.popup-features li:last-child { margin-bottom: 0; }
.popup-features strong { color: #fff; }

.popup-subtext {
    color: #FF004D;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Bouton Néon */
.btn-neon {
    background: linear-gradient(135deg, #B200FF, #6b0099);
    color: white;
    box-shadow: 0 6px 0 #3a0052, 0 0 20px rgba(178, 0, 255, 0.4);
    border: 2px solid #e0b3ff;
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-family: 'Fredoka', sans-serif;
    border-radius: 15px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.1s;
}

.btn-neon:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #3a0052;
}

/* Animations d'apparition */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.pop-in { animation: popInAnim 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popInAnim { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
/* ============================================================
   POPUP PWA — promo install
   ============================================================ */
.pwa-content {
    border-color: #00E5FF;
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.35);
}
.pwa-content .highlight-laspecial {
    color: #00E5FF;
    text-shadow: 0 0 18px rgba(0, 229, 255, 0.6);
}
.pwa-content .popup-icon {
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.5));
}

.popup-tagline {
    color: #d4f3ff;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 16px;
}

.pwa-perks li {
    color: #d4f3ff;
}

/* Étapes iOS (visible uniquement sur Safari iOS) */
.ios-steps {
    margin: 16px 0;
    padding: 14px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px dashed rgba(0, 229, 255, 0.45);
    border-radius: 14px;
    text-align: left;
}
.ios-steps.hidden { display: none; }
/* Utilitaire global : masque n'importe quel élément avec [hidden] ou .hidden */
.hidden { display: none !important; }
.ios-steps-title {
    margin: 0 0 8px;
    color: #00E5FF;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
.ios-steps-list {
    margin: 0;
    padding-left: 22px;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}
.ios-steps-list li { margin-bottom: 6px; }
.ios-steps-list li:last-child { margin-bottom: 0; }
.ios-steps-list strong { color: #00E5FF; }

/* Bouton "Plus tard" — discret */
.btn-popup-later {
    background: transparent;
    border: none;
    color: #907d9e;
    font-family: inherit;
    font-size: 0.9rem;
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(144, 125, 158, 0.4);
    text-underline-offset: 4px;
}
.btn-popup-later:active {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   HEADER avec bouton ? (crédits)
   ============================================================ */
.main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.main-header .header-text { flex: 1; }
.btn-credits {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(178, 0, 255, 0.5);
    background: rgba(178, 0, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 12px rgba(178, 0, 255, 0.25);
}
.btn-credits:active {
    transform: scale(0.92);
    background: rgba(178, 0, 255, 0.3);
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ============================================================
   Onglets Solo / Multi sur la page d'accueil
   ============================================================ */
.play-mode-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px;
    margin: 12px 16px 0;
}
.play-mode-tab {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #cab5e6;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.25s, color 0.2s, transform 0.1s;
    white-space: nowrap;
}
.play-mode-tab:active { transform: scale(0.97); }
.play-mode-tab i { font-size: 0.95rem; }
.play-mode-tab.is-active {
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 0, 77, 0.35);
}

.play-pane { display: none; flex-direction: column; }
.play-pane.is-active {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    animation: playPaneIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Surcharge la spécificité du sélecteur ID #player-container quand son
   parent .play-pane n'est pas actif (pour qu'il se masque vraiment). */
.play-pane:not(.is-active) #player-container { display: none !important; }
/* Le pane MULTI doit pouvoir scroller en interne si le contenu dépasse
   (sur petit écran, hero + 2 boutons + tip + footer dépassent la hauteur). */
.play-pane[data-play-pane="multi"] {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
@keyframes playPaneIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* PANE MULTI sur l'accueil */
.play-pane[data-play-pane="multi"] { padding: 18px 16px 24px; gap: 14px; }
.play-multi-content { display: flex; flex-direction: column; gap: 14px; }
.play-multi-hero { text-align: center; padding: 14px 8px; }
.play-multi-icon {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(255, 0, 77, 0.4));
}
.play-multi-title {
    font-size: 1.7rem; font-weight: 900;
    text-transform: uppercase; line-height: 1;
    margin-bottom: 8px;
}
.play-multi-sub { color: #cab5e6; font-size: 0.95rem; line-height: 1.5; }

.play-multi-btn {
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.1s, border-color 0.15s, background 0.15s;
    box-sizing: border-box;
    min-width: 0;
}
.play-multi-btn > span { min-width: 0; flex: 1; }
.play-multi-btn-title, .play-multi-btn-sub { overflow-wrap: anywhere; }
.play-multi-btn:active { transform: scale(0.985); }
.play-multi-btn:hover { border-color: rgba(255, 215, 0, 0.45); }
.play-multi-btn > i {
    font-size: 1.7rem;
    color: #FFD700;
    flex-shrink: 0;
}
.play-multi-btn-title { display: block; font-weight: 800; font-size: 1.05rem; }
.play-multi-btn-sub { display: block; font-size: 0.82rem; color: #cab5e6; margin-top: 3px; line-height: 1.4; }
.play-multi-btn-primary {
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.18), rgba(255, 0, 77, 0.10));
    border-color: rgba(255, 0, 77, 0.45);
}
.play-multi-btn-primary > i { color: #FF7A00; }

.play-multi-tip {
    text-align: center;
    color: #907d9e;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 6px;
}
.play-multi-tip i { color: #FFD700; }

/* Mur de connexion (non connecté) */
.play-multi-wall {
    text-align: center;
    padding: 32px 22px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px dashed rgba(255, 215, 0, 0.35);
    border-radius: 22px;
    box-sizing: border-box;
}
.play-multi-lock-icon {
    font-size: 2.6rem;
    background: linear-gradient(135deg, #FFD700, #FF8A00);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 14px rgba(255, 215, 0, 0.35));
}
.play-multi-wall-title {
    font-size: 1.3rem; font-weight: 900;
    text-transform: uppercase; line-height: 1.15;
    margin-bottom: 10px;
}
.play-multi-wall-text {
    color: #cab5e6; font-size: 0.95rem; line-height: 1.5;
    margin-bottom: 20px;
}
.play-multi-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #7000FF 100%);
    color: #fff;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 0 #3a0052;
}
.play-multi-cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #3a0052; }
.btn-account {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 5px;
    background-size: cover;
    background-position: center;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn-account:active { transform: scale(0.92); }
/* Anneau doré quand l'utilisateur est Premium */
.btn-account.is-premium {
    border-color: #FFD700;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.55);
}
/* Anneau cyan/violet quand l'utilisateur est Admin (prioritaire sur premium) */
.btn-account.is-admin {
    border-color: #00E5FF;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.6), 0 0 24px rgba(112, 0, 255, 0.3);
    position: relative;
}
.btn-account.is-admin::after {
    content: '\f3ed'; /* fa-shield-halved */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -3px; right: -3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E5FF, #7000FF);
    color: #fff;
    font-size: 0.62rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 1.5px solid #0f0a14;
}

/* ============================================================
   MODAL CRÉDITS (réutilise popup-overlay/popup-content)
   ============================================================ */
.credits-content {
    border-color: #B200FF;
    box-shadow: 0 10px 40px rgba(178, 0, 255, 0.45);
    position: relative;
    padding-top: 35px;
}
.credits-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
}
.credits-close:active { background: rgba(255, 255, 255, 0.2); }

.credits-content .highlight-laspecial { color: #FF66E6; text-shadow: 0 0 18px rgba(255, 102, 230, 0.6); }

/* Lien Instagram principal */
.insta-link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCB045);
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: white;
    margin: 12px 0 8px;
    box-shadow: 0 6px 20px rgba(253, 29, 29, 0.35);
    transition: transform 0.1s;
}
.insta-link:active { transform: scale(0.97); }
.insta-icon { font-size: 2rem; flex-shrink: 0; }
.insta-text { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.insta-handle { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.5px; }
.insta-sub { font-size: 0.75rem; opacity: 0.9; }
.insta-arrow { font-size: 1.2rem; opacity: 0.85; }

/* Section "Powered by" */
.credits-section-title {
    color: #cab5e6;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 8px;
    font-weight: 600;
    text-align: center;
}

.credits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.credit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: white;
    transition: background 0.15s, transform 0.1s;
}
.credit-row:active { background: rgba(255, 255, 255, 0.12); transform: scale(0.98); }
.credit-emoji { font-size: 1.6rem; flex-shrink: 0; }
.credit-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border-radius: 9px;
    padding: 4px;
    box-sizing: border-box;
}
.credit-text { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.credit-text strong { font-size: 1rem; color: #fff; }
.credit-text small { font-size: 0.78rem; color: #907d9e; }
.credit-arrow { color: #907d9e; font-size: 1rem; }

.credits-version {
    text-align: center;
    color: #5a4868;
    font-size: 0.78rem;
    margin: 15px 0 0;
    letter-spacing: 1px;
}

/* ============================================================
   BANNIÈRE PREMIUM (dans modal crédits)
   ============================================================ */
.premium-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1a0e0a 0%, #2a1f08 50%, #1a0e0a 100%);
    border: 2px solid #FFD700;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    margin: 10px 0 5px;
    box-shadow: 0 6px 24px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.1s;
}
.premium-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 215, 0, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: premiumShimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes premiumShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.premium-banner:active { transform: scale(0.97); }
.premium-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8));
    animation: premiumFloat 2.5s ease-in-out infinite;
}
@keyframes premiumFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-3px) rotate(3deg); }
}
.premium-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.premium-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.5px;
}
.premium-sub {
    font-size: 0.78rem;
    color: rgba(255, 215, 0, 0.7);
    font-weight: 500;
    letter-spacing: 0.3px;
}
.premium-arrow {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 700;
}

/* ============================================================
   INTRO SPLASH — au lancement de l'app
   ============================================================ */
.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}
.intro-splash.leaving {
    animation: introExit 0.55s cubic-bezier(0.45, 0, 0.55, 1) forwards;
    pointer-events: none;
}
@keyframes introExit {
    0%   { opacity: 1; transform: scale(1); filter: blur(0); }
    100% { opacity: 0; transform: scale(1.15); filter: blur(8px); }
}
.intro-splash.dismissed {
    display: none !important;
}
/* Intro déjà vue (flag localStorage posé via le head script) -> on saute. */
html.skip-intro .intro-splash { display: none !important; }

/* Fond animé : gradient radial qui pulse */
.intro-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.3), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 77, 0.2), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.15), transparent 50%);
    opacity: 0.5;
    animation: introBgPulse 4s ease-in-out infinite alternate;
}
@keyframes introBgPulse {
    from { opacity: 0.4; transform: scale(1); }
    to   { opacity: 0.8; transform: scale(1.1); }
}

.intro-content {
    position: relative;
    text-align: center;
    padding: 30px;
    z-index: 2;
}

/* Logo */
.intro-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: introLogoIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}
@keyframes introLogoIn {
    0%   { opacity: 0; transform: scale(0.3) translateY(20px); letter-spacing: 16px; filter: blur(8px); }
    60%  { opacity: 1; transform: scale(1.08) translateY(-2px); letter-spacing: 2px; filter: blur(0); }
    100% { transform: scale(1) translateY(0); }
}
.intro-highlight {
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-tagline {
    color: #907d9e;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 36px;
    animation: introFadeUp 0.7s ease 0.3s both;
}
@keyframes introFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bouton TAP TO START */
.intro-tap {
    position: relative;
    background: var(--gradient-fire);
    border: 2px solid #fff;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 18px 32px;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 30px rgba(255, 0, 77, 0.5);
    animation: introFadeUp 0.7s ease 0.5s both, introTapBounce 1.6s ease-in-out 1.2s infinite;
    transition: transform 0.1s;
    overflow: visible;
}
.intro-tap:active { transform: scale(0.95); }
.tap-label { position: relative; z-index: 2; }

/* Pulse autour du bouton */
.tap-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(255, 0, 77, 0.7);
    animation: tapPulseRing 1.6s ease-out 1.2s infinite;
    pointer-events: none;
}
@keyframes tapPulseRing {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}
@keyframes introTapBounce {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

/* Mode "lecture en cours" : on cache le bouton, on agrandit le logo */
.intro-splash.playing .intro-tap {
    animation: tapVanish 0.25s ease forwards;
}
@keyframes tapVanish {
    to { opacity: 0; transform: scale(0.8); }
}
.intro-splash.playing .intro-logo {
    animation: introLogoBoom 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes introLogoBoom {
    0%   { transform: scale(1); text-shadow: 0 0 40px rgba(255, 255, 255, 0.2); }
    20%  { transform: scale(1.15); text-shadow: 0 0 60px rgba(255, 0, 77, 0.8); }
    50%  { transform: scale(1.2); text-shadow: 0 0 80px rgba(255, 122, 0, 0.9), 0 0 120px rgba(112, 0, 255, 0.6); }
    100% { transform: scale(1.1); text-shadow: 0 0 50px rgba(255, 255, 255, 0.5); }
}
.intro-splash.playing .intro-tagline {
    animation: introFadeOut 0.4s ease forwards;
}
@keyframes introFadeOut {
    to { opacity: 0; transform: translateY(-6px); }
}

@media (max-width: 380px) {
    .intro-logo { font-size: 3rem; }
}

/* Ligne crédit non-cliquable (ex: mention IA) */
.credit-row-static {
    cursor: default;
}
.credit-row-static:active {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}
.credit-row-static .credit-text em {
    font-style: italic;
    color: #FFD700;
    font-weight: 600;
}

/* ============================================================
   POPUP V4 — Mise à jour
   ============================================================ */
.popup-v4 {
    background: linear-gradient(160deg, #1a0b2e 0%, #0a0510 100%);
    border: 2px solid #B200FF;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 80px rgba(178, 0, 255, 0.4);
    padding: 24px 22px 22px;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Shimmer dégradé qui passe dans le popup */
.popup-v4::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(178, 0, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: v4Shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes v4Shimmer {
    0%, 100% { transform: translateX(-100%); }
    50%      { transform: translateX(100%); }
}

/* ============ HERO ============ */
.v4-hero {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}
.v4-confetti {
    display: inline-block;
    font-size: 3.2rem;
    line-height: 1;
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.6));
    animation: v4ConfettiSpin 3.5s ease-in-out infinite;
}
@keyframes v4ConfettiSpin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50%      { transform: rotate(10deg) scale(1.1); }
}
.v4-version-pill {
    display: inline-block;
    margin: 10px 0 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF7A00, #FF004D, #7000FF);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(255, 0, 77, 0.5);
}
.v4-title {
    margin: 6px 0 8px;
    font-size: 2.6rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.v4-shine {
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #B200FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: v4Shine 3s ease-in-out infinite;
}
@keyframes v4Shine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.v4-tagline {
    margin: 0;
    color: #d4b3ff;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ============ STATS BAR ============ */
.v4-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 16px 0 18px;
    position: relative;
    z-index: 2;
}
.v4-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.v4-stat-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-family: 'Fredoka', sans-serif;
}
.v4-stat-label {
    font-size: 0.65rem;
    color: #907d9e;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
.v4-stat-gold {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.35);
}
.v4-stat-gold .v4-stat-num { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

/* ============ FEATURES GRID ============ */
.v4-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    text-align: left;
}
.v4-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 12px;
    position: relative;
}
.v4-feat-icon {
    font-size: 1.7rem;
    line-height: 1;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(178, 0, 255, 0.18);
    border-radius: 10px;
    border: 1px solid rgba(178, 0, 255, 0.35);
}
.v4-feat-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.v4-feat-text strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
}
.v4-feat-text small {
    color: #b8a8d6;
    font-size: 0.78rem;
    line-height: 1.3;
}
.v4-feat-text em {
    font-style: italic;
    color: #FFD700;
    font-weight: 600;
    font-size: 0.78rem;
}
.v4-feat-badge {
    background: linear-gradient(135deg, #FF004D, #FF007F);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 1px;
    border: 1.5px solid #fff;
    box-shadow: 0 0 12px rgba(255, 0, 77, 0.5);
    flex-shrink: 0;
    animation: v4BadgePulse 1.8s ease-in-out infinite;
}
@keyframes v4BadgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* ============ CTA ============ */
.v4-cta {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #FF7A00 0%, #FF004D 50%, #B200FF 100%) !important;
    background-size: 200% auto !important;
    box-shadow: 0 6px 0 #3a0052, 0 0 30px rgba(178, 0, 255, 0.5) !important;
    animation: v4CtaShine 3s ease-in-out infinite;
}
@keyframes v4CtaShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* Responsive */
@media (max-height: 720px) {
    .v4-confetti { font-size: 2.5rem; }
    .v4-title { font-size: 2.1rem; }
    .v4-stat-num { font-size: 1.2rem; }
    .v4-feat-icon { width: 34px; height: 34px; font-size: 1.4rem; }
}
