body.vxhm-intro-active {
    overflow: hidden;
}

.vxhm-cinema {
    --vxhm-primary:       #8b5cf6;
    --vxhm-primary-light: #a78bfa;
    --vxhm-primary-soft:  #c4b5fd;
    --vxhm-fuchsia:       #c084fc;
    --vxhm-pink:          #e879f9;

    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    background: radial-gradient(ellipse at center, #1a0d35 0%, #0a0518 60%, #050210 100%);
    isolation: isolate;
    
    /* Default: nascosto finché JS non decide */
    display: none;
}

/* JS aggiunge questa classe quando il cinema deve partire */
.vxhm-cinema.vxhm-active {
    display: block;
}
.vxhm-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(10, 5, 24, .6) 100%);
}

.vxhm-vortex {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    z-index: 2;
    pointer-events: none;
}

.vxhm-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 600px;
    transform-origin: top center;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(192, 132, 252, .8) 30%,
        rgba(232, 121, 249, .9) 50%,
        rgba(192, 132, 252, .8) 70%,
        transparent 100%);
    filter: blur(1px);
    box-shadow: 0 0 20px rgba(192, 132, 252, .8), 0 0 40px rgba(139, 92, 246, .5);
    will-change: transform, opacity;
}
.vxhm-ray-1 { transform: translate(-50%, 0) rotate(0deg);   animation: vxhm-ray-spin 14s linear infinite; }
.vxhm-ray-2 { transform: translate(-50%, 0) rotate(90deg);  animation: vxhm-ray-spin 16s linear infinite reverse; }
.vxhm-ray-3 { transform: translate(-50%, 0) rotate(45deg);  animation: vxhm-ray-spin 20s linear infinite; opacity: .6; }
.vxhm-ray-4 { transform: translate(-50%, 0) rotate(135deg); animation: vxhm-ray-spin 18s linear infinite reverse; opacity: .5; }

@keyframes vxhm-ray-spin {
    from { transform: translate(-50%, 0) rotate(0deg); }
    to   { transform: translate(-50%, 0) rotate(360deg); }
}

.vxhm-vortex-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}
.vxhm-vortex-ring-1 {
    width: 300px; height: 300px;
    border-color: rgba(192, 132, 252, .6);
    border-top-color: rgba(232, 121, 249, 1);
    border-right-color: rgba(192, 132, 252, .9);
    box-shadow: 0 0 30px rgba(192, 132, 252, .5), inset 0 0 30px rgba(192, 132, 252, .2);
    animation: vxhm-ring-spin 8s linear infinite;
}
.vxhm-vortex-ring-2 {
    width: 460px; height: 460px;
    border-color: rgba(167, 139, 250, .35);
    border-bottom-color: rgba(192, 132, 252, .9);
    border-left-color: rgba(167, 139, 250, .6);
    box-shadow: 0 0 25px rgba(139, 92, 246, .4);
    animation: vxhm-ring-spin 12s linear infinite reverse;
}
.vxhm-vortex-ring-3 {
    width: 620px; height: 620px;
    border-color: rgba(139, 92, 246, .25);
    border-top-color: rgba(167, 139, 250, .7);
    border-right-color: rgba(139, 92, 246, .5);
    animation: vxhm-ring-spin 16s linear infinite;
}
.vxhm-vortex-ring-4 {
    width: 780px; height: 780px;
    border-color: rgba(124, 58, 237, .2);
    border-bottom-color: rgba(139, 92, 246, .55);
    border-left-color: rgba(124, 58, 237, .35);
    animation: vxhm-ring-spin 22s linear infinite reverse;
    opacity: .6;
}

@keyframes vxhm-ring-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.vxhm-vortex-core {
    position: absolute;
    top: 50%; left: 50%;
    width: 180px; height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 255, 255, .95) 0%,
        rgba(232, 121, 249, .8) 25%,
        rgba(192, 132, 252, .55) 50%,
        rgba(139, 92, 246, .25) 75%,
        transparent 100%);
    box-shadow: 0 0 60px rgba(192, 132, 252, .8), 0 0 120px rgba(139, 92, 246, .6), 0 0 200px rgba(139, 92, 246, .4);
    animation: vxhm-core-pulse 3s ease-in-out infinite;
}

@keyframes vxhm-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: .85; }
}

.vxhm-vortex-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 1000px; height: 1000px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(192, 132, 252, .3) 0%,
        rgba(139, 92, 246, .15) 30%,
        transparent 60%);
    filter: blur(40px);
    animation: vxhm-glow-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes vxhm-glow-pulse {
    0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}

.vxhm-stage {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: #fff;
}

.vxhm-title {
    font-family: -apple-system, "Inter", "Segoe UI", system-ui, sans-serif;
    font-weight: 900;
    margin: 0;
    font-size: clamp(70px, 14vw, 200px);
    line-height: .9;
    letter-spacing: -4px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5), 0 0 60px rgba(192, 132, 252, .6), 0 0 120px rgba(139, 92, 246, .4);
    opacity: 0;
    transform: scale(.85);
    filter: blur(10px);
    animation: vxhm-title-appear 1.6s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: .4s;
}

@keyframes vxhm-title-appear {
    0%   { opacity: 0; transform: scale(.85); filter: blur(12px); }
    100% { opacity: 1; transform: scale(1);   filter: blur(0); }
}

.vxhm-subtitle {
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, .9);
    margin: 18px 0 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
    opacity: 0;
    animation: vxhm-fade-in-up 1.2s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: 1.4s;
}

@keyframes vxhm-fade-in-up {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.vxhm-transition {
    position: absolute;
    inset: 0;
    z-index: 100;
    background: radial-gradient(circle at center, var(--vxhm-fuchsia) 0%, var(--vxhm-primary) 40%, #fff 100%);
    opacity: 0;
    pointer-events: none;
    clip-path: circle(0% at center);
    transition: clip-path 1.1s cubic-bezier(.85, 0, .15, 1), opacity .8s ease;
}
.vxhm-cinema.vxhm-closing .vxhm-transition { opacity: 1; clip-path: circle(150% at center); }
.vxhm-cinema.vxhm-closing .vxhm-stage      { opacity: 0; transform: scale(1.1); transition: opacity .6s ease, transform 1s ease; }
.vxhm-cinema.vxhm-closing .vxhm-vortex     { opacity: 0; transition: opacity .6s ease; }

@media (max-width: 700px) {
    .vxhm-vortex { width: 500px; height: 500px; }
    .vxhm-ray { height: 380px; }
    .vxhm-vortex-ring-1 { width: 200px; height: 200px; }
    .vxhm-vortex-ring-2 { width: 300px; height: 300px; }
    .vxhm-vortex-ring-3 { width: 400px; height: 400px; }
    .vxhm-vortex-ring-4 { width: 500px; height: 500px; }
    .vxhm-vortex-core { width: 120px; height: 120px; }
    .vxhm-vortex-glow { width: 700px; height: 700px; }
    .vxhm-title { letter-spacing: -2px; }
    .vxhm-subtitle { font-size: clamp(14px, 4vw, 20px); letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .vxhm-ray, .vxhm-vortex-ring, .vxhm-vortex-core, .vxhm-vortex-glow {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════
   AGE GATE 18+
═══════════════════════════════════════ */

html.vxag-locked,
html.vxag-locked body {
    overflow: hidden !important;
    height: 100vh;
}

.vxag-gate {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .4s ease;
}
.vxag-gate.vxag-visible { opacity: 1; }
.vxag-gate.vxag-leaving { opacity: 0; transform: scale(0.95); transition: all .5s ease; }
.vxag-gate.vxag-denied .vxag-modal {
    animation: vxag-shake .4s ease, vxag-fade-red .8s ease forwards;
}

.vxag-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20,10,40,.92) 0%, rgba(0,0,0,.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.vxag-modal {
    position: relative;
    background: linear-gradient(145deg, #1a1530 0%, #0f0a20 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 40px 36px 28px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.15) inset, 0 0 60px rgba(139, 92, 246, 0.15);
    text-align: center;
    transform: scale(0.92);
    opacity: 0;
    animation: vxag-pop-in .55s cubic-bezier(.34,1.56,.64,1) .15s forwards;
    overflow: hidden;
}

@keyframes vxag-pop-in {
    to { transform: scale(1); opacity: 1; }
}

.vxag-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
    animation: vxag-rotate 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes vxag-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.vxag-modal > *:not(.vxag-glow) { position: relative; z-index: 1; }

.vxag-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px; height: 90px;
    margin: 0 auto 18px;
    color: #ef4444;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.vxag-age-badge {
    position: absolute;
    bottom: -4px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    border: 2px solid #1a1530;
}

.vxag-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #a78bfa;
    font-weight: 700;
    margin-bottom: 10px;
}

.vxag-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.vxag-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0 0 18px;
}

.vxag-law {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
    text-align: left;
    margin-bottom: 22px;
}
.vxag-law svg { color: #a78bfa; }

.vxag-question {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}

.vxag-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.vxag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all .2s ease;
    font-family: inherit;
}

.vxag-btn-yes {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.vxag-btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.55);
}
.vxag-btn-yes:active { transform: translateY(0); }

.vxag-btn-no {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}
.vxag-btn-no:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.vxag-footer {
    font-size: 10px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

@keyframes vxag-shake {
    0%, 100%  { transform: translateX(0); }
    20%, 60%  { transform: translateX(-8px); }
    40%, 80%  { transform: translateX(8px); }
}

@keyframes vxag-fade-red {
    to {
        background: linear-gradient(145deg, #3a1520 0%, #200a0f 100%);
        border-color: rgba(239, 68, 68, 0.4);
    }
}

@media (max-width: 540px) {
    .vxag-modal { padding: 28px 22px 20px; border-radius: 16px; }
    .vxag-title { font-size: 22px; }
    .vxag-icon { width: 72px; height: 72px; }
    .vxag-icon svg { width: 44px; height: 44px; }
}