/* ============================================================
   TOURNAMENT-PROMO.CSS — Popup « inscriptions ouvertes » (haut droite)
   affichée si un tournoi est ouvert et que l'utilisateur n'y est pas
   inscrit. Cf. static/js/tournament-promo.js
   ============================================================ */

.tpromo {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 9300; /* sous le chatbot (9400), au-dessus du contenu */
    width: min(320px, calc(100vw - 32px));
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg-2) 100%);
    border: 1px solid var(--c-primary-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--c-text);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.tpromo.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.tpromo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--c-text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.tpromo-close:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }

.tpromo-name {
    padding-right: 24px; /* évite de passer sous la croix */
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.tpromo-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--c-text-muted);
}

.tpromo-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--c-primary);
    color: #14100a;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: filter 0.15s;
}
.tpromo-cta:hover { filter: brightness(1.08); }

.tpromo-never {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 4px 0;
    background: none;
    border: none;
    color: var(--c-text-muted);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}
.tpromo-never:hover { color: var(--c-text); }

/* Mobile : ancrée EN BAS (au-dessus du FAB chatbot) pour ne jamais recouvrir
   le héros/logo au chargement — le haut de l'écran reste à la marque. */
@media (max-width: 640px) {
    .tpromo {
        top: auto;
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
        width: auto;
        transform: translateY(10px);
    }
    .tpromo.is-visible { transform: none; }
}
