/* ============================================================================
   Portail d'entrée au Casino — orbe animée (WebGL2).
   L'orbe sert de bouton d'accès au casino. Les styles sont encapsulés :
   ils n'affectent que le composant .casino-orb (aucune modification globale
   du body, du fond ou du défilement). Le canvas est borné à l'orbe et ne
   recouvre jamais le reste de l'interface.
   ============================================================================ */
.portal-section { margin: 18px 0; text-align: center; }

.casino-orb {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 24px;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: transform .3s ease;
}
.casino-orb:hover { transform: translateY(-4px); }
.casino-orb:active { transform: translateY(-1px); }
.casino-orb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .6);
}

/* Zone qui borne l'orbe et son canvas. Fond transparent : seule l'orbe
   lumineuse est visible (pas de disque ni de cadre autour). */
.casino-orb-viewport {
    position: relative;
    display: block;
    width: clamp(250px, 56vw, 350px);
    height: clamp(250px, 56vw, 350px);
    background: transparent;
}

.casino-orb-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* Les clics traversent le canvas et atteignent le lien. */
    pointer-events: none;
}

/* Solution de repli (WebGL2 indisponible) : orbe lumineuse purement CSS, sur
   fond transparent (pas de disque sombre). Masquée quand le rendu WebGL marche. */
.casino-orb-fallback {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 55%;
    height: 55%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 38%, #7fdcff 0%, rgba(64, 153, 255, .55) 32%, transparent 60%),
        radial-gradient(circle at 62% 64%, #e24dd0 0%, rgba(230, 51, 191, .5) 34%, transparent 62%);
    filter: blur(2px);
    box-shadow: 0 0 40px 10px rgba(80, 140, 255, .35), 0 0 60px 20px rgba(230, 77, 208, .25);
    animation: casinoOrbSpin 14s linear infinite;
}
.casino-orb.is-webgl .casino-orb-fallback { display: none; }

.casino-orb-caption {
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    background: linear-gradient(90deg, #4099ff, #e633bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes casinoOrbSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .casino-orb-fallback { animation: none; }
    .casino-orb:hover { transform: none; }
}
