/* =====================================================================================
   Nikox-Game : mention « bêta » (boutique). Fichier hors du bundle Vite, chargé par layouts/app.blade.php.
   Deux pièces : la pastille « Bêta » collée au nom (barre du haut) et un bandeau fin refermable.
   Couleurs de marque du thème (--nx-violet-deep, --nx-gold : clair et sombre définis par nikox.css).
   Le bandeau reste violet et or pendant les événements saisonniers : il passe sous le bandeau de la fête,
   au-dessus des décors fixes (z 18), et saisons.js relève son texte comme le reste (rien ne le recouvre).
   Pose : E:\Claude\nikox-scripts\ng-beta.sh
   ===================================================================================== */

/* ---------- pastille ---------- */
.nx-beta-badge {
    display: inline-flex; align-items: center; flex: none; align-self: flex-start;
    margin-top: .2rem; padding: .2rem .42rem .18rem; border-radius: .42rem;
    background: var(--nx-gold, #F5B301); color: #1B1433;
    font: 800 .62rem/1 var(--font-display, 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif);
    letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
    box-shadow: 0 1px 0 rgb(27 20 51 / .22), 0 3px 8px -4px rgb(168 118 0 / .55);
    transform: rotate(-4deg); transform-origin: left center;
}

/* 1024 à 1199 px : le menu complet occupe déjà toute la barre (le nom passe sur deux lignes) ; la pastille y pousserait
   « Inscription » hors de l'écran. Elle s'efface donc sur cette seule plage, où le bandeau porte le message. */
@media (min-width: 1024px) and (max-width: 1199.98px) { nav.fixed .nx-beta-badge { display: none; } }

/* ---------- bandeau ---------- */
.nx-beta {
    position: relative; z-index: 19; isolation: isolate; overflow: hidden;
    display: grid; grid-template-rows: 1fr;
    background-color: var(--nx-violet-deep, #3E157F); color: #fff;
    /* trame isométrique du pied de page : le bandeau appartient à la marque, pas à un message système */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28' viewBox='0 0 48 28'%3E%3Cpath d='M0 14 24 0l24 14-24 14z' fill='none' stroke='%23fff' stroke-opacity='.08'/%3E%3C/svg%3E");
    border-bottom: 1px solid color-mix(in srgb, var(--nx-gold, #F5B301) 45%, transparent);
    font-size: .875rem; line-height: 1.4;
    transition: grid-template-rows .26s cubic-bezier(.16, 1, .3, 1), opacity .2s ease-out;
}
.nx-beta[hidden] { display: none; }
.nx-beta.nx-beta-part { grid-template-rows: 0fr; opacity: 0; }
.nx-beta-in { min-height: 0; display: flex; align-items: center; gap: .65rem; padding-block: .5rem; }
.nx-beta-ico { width: 1.15rem; height: 1.15rem; flex: none; color: var(--nx-gold, #F5B301); }
.nx-beta-txt { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--nx-on-violet-2, #EEE6FF); text-wrap: pretty; }
.nx-beta-txt b { color: #fff; font-weight: 800; }
.nx-beta-txt a {
    color: var(--nx-gold, #F5B301); font-weight: 700; text-decoration: underline;
    text-decoration-thickness: 1.5px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
    transition: text-decoration-color .15s, color .15s;
}
.nx-beta-txt a:hover { text-decoration-color: currentColor; color: #FFD86B; }
.nx-beta-x {
    flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin-inline-end: -.4rem;
    border-radius: .55rem; color: var(--nx-on-violet-2, #EEE6FF); background: transparent; cursor: pointer;
    transition: background-color .15s, color .15s;
}
.nx-beta-x svg { width: 1.1rem; height: 1.1rem; }
.nx-beta-x:hover { background: rgb(255 255 255 / .12); color: #fff; }
.nx-beta :focus-visible { outline: 2px solid var(--nx-gold, #F5B301); outline-offset: 2px; border-radius: .3rem; }
@media (max-width: 639.98px) {
    .nx-beta { font-size: .8125rem; }
    .nx-beta-in { align-items: flex-start; gap: .55rem; padding-block: .55rem; }
    .nx-beta-ico { margin-top: .1rem; }
    .nx-beta-x { margin-top: -.3rem; margin-bottom: -.3rem; }
}
@media (prefers-reduced-motion: reduce) { .nx-beta { transition: none; } }
