/* =========================================
   CLUB INTRO OVERLAY
   ========================================= */
.club-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.club-intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.club-intro-content {
    text-align: center;
    font-family: var(--font-display);
    color: var(--rift-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.club-intro-status {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.club-intro-subtext {
    font-size: 0.9rem;
    color: var(--rift-text);
    opacity: 0.7;
    letter-spacing: 3px;
}

/* Base Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Nessuno scroll per ora */
    font-family: 'Roboto', sans-serif;
    background-color: #000;
}

/* =========================================
   NAVBAR STYLES (Copied from Home/Feed)
   ========================================= */

/* VARIABLES (Minimal set for Nav) */
:root {
    --font-display: 'Orbitron', sans-serif;
    --font-ui: 'Roboto', sans-serif;
    --rift-text: #E0E0E0;
    --rift-cyan: #00F5FF;
    --rift-rust: #F57D1F;
    --rift-red: #FF204E;
    --rift-smog: #0F1926;
    --rift-concrete: #2B2F33;
    --rift-beige: #D7BFA2;
    --rift-black: #050508;
}

/* HEADER */
.feed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 10001;
    /* High z-index */
    background: rgba(5, 5, 8, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rift-concrete);
}

.feed-logo-text {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    height: 30px;
    /* Base height to anchor the image */
}

.feed-logo-text img {
    height: 50px;
    /* Fits comfortably in the navbar */
    width: auto;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.feed-logo-text:hover img {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Desktop Nav */
.feed-desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--rift-text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--rift-cyan);
    text-shadow: 0 0 5px var(--rift-cyan);
}

.nav-link.highlight {
    color: var(--rift-red);
    border: 1px solid var(--rift-red);
    padding: 6px 16px;
    transition: all 0.3s;
}

.nav-link.highlight:hover {
    background: var(--rift-red);
    color: #000;
    box-shadow: 0 0 10px var(--rift-red);
}

/* Hamburger */
.feed-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10002;
}

.feed-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--rift-red);
    transition: all 0.3s ease;
}


.feed-hamburger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.feed-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.feed-hamburger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Rules for Navbar */
@media (max-width: 1100px) and (orientation: portrait) {
    .feed-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .feed-desktop-nav {
        display: none;
    }

    .feed-logo-text {
        height: 25px;
    }

    .feed-logo-text img {
        height: 40px;
    }

    .feed-hamburger {
        display: flex;
        margin-right: 0;
    }
}

/* MENU OVERLAY */
.feed-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-menu-backdrop {
    position: absolute;
    inset: 0;
    background-image: url('../img/img-hamburguer-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.feed-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    align-items: flex-start;
}

.feed-menu-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .feed-menu-logo {
        top: 5vh !important;
    }
}

.feed-menu-logo img {
    height: 100px;
    max-width: 80%;
    filter: drop-shadow(0 0 15px var(--rift-rust));
    object-fit: contain;
}

.feed-menu-item {
    background: var(--rift-smog);
    color: var(--rift-beige);
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid var(--rift-rust);
    border-left: 4px solid var(--rift-rust);
    width: 100%;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feed-menu-item:hover,
.feed-menu-item.is-active,
.feed-menu-item:focus {
    background: var(--rift-rust);
    color: var(--rift-black);
    padding-left: 50px;
    box-shadow: 0 0 15px var(--rift-rust);
}

.feed-menu-start {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--rift-cyan);
    color: var(--rift-cyan);
    clip-path: none;
}

.feed-menu-start:hover {
    background: var(--rift-cyan);
    color: var(--rift-black);
}

/* BACKGROUND IMAGE */
.club-bg {
    position: fixed;
    /* Desktop: Start below navbar */
    top: 62px;
    /* Reduced by 10% from 80px */
    left: 0;
    width: 100%;
    height: calc(100% - 62px);

    background-image: url('img/img-club-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: 100% 100%;
    /* Force full visibility */
    background-position: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.club-bg.is-visible {
    opacity: 1;
}

/* =========================================
   AUDIO TOGGLE (Club Version)
   ========================================= */
.club-audio-toggle {
    position: fixed;
    bottom: 30px;
    right: 50px;
    z-index: 10005;
    background: rgba(15, 25, 38, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--rift-concrete);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--rift-text);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
}

.club-audio-toggle:hover {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
    transform: translateY(-2px);
}

.club-audio-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.icon-speaker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    fill: var(--rift-cyan);
}

.icon-x {
    position: absolute;
    inset: 0;
    display: block;
    transition: opacity 0.3s;
}

.icon-x::before,
.icon-x::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 2px;
    background: var(--rift-red);
    transform-origin: center;
}

.icon-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.club-audio-hint {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rift-text);
    transition: all 0.3s;
}

/* STATE: ACTIVE (Audio ON) */
.club-audio-toggle.is-on {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--rift-cyan);
}

.club-audio-toggle.is-on .icon-x {
    opacity: 0;
    transform: scale(0.5);
}

.club-audio-toggle.is-on .club-audio-hint {
    /* Optional: hide hint or keep it */
    color: var(--rift-cyan);
}

/* =========================================
   HOTSPOTS (Zone Cliccabili)
   ========================================= */

/* FEED ZONE (Sinistra / Bancone) */
.club-feed-zone {
    position: absolute;
    top: 30%;
    /* Lowered 10% (was 20%) */
    left: 0;
    width: 35%;
    height: 40%;
    /* Reduced height (was 60%) - Less accidental clicks */

    background: rgba(0, 245, 255, 0.0);
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

/* SERVICES ZONE (Basso Destra) */
.club-services-zone {
    position: absolute;
    top: 65%;
    /* Lowered further (was 60%) to match character better */
    right: 25%;
    transform: translateY(-50%);
    width: 15%;
    height: 30%;
    /* Reduced height (was 40%) to limit clickable area */
    z-index: 20;
    cursor: pointer !important;
    /* Force hand cursor as requested */
}

/* Position Left Bubble (Bartender) */
.club-bubble-left {
    top: -60px;
    /* Closer to zone (was -100px) */
    left: 50%;
    cursor: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><circle cx="16" cy="16" r="13" stroke="%2300F5FF" stroke-width="2" fill="none"/><path d="M16 3L14 10L19 16L13 22L16 29" stroke="%2300F5FF" stroke-width="2" stroke-linecap="round"/></svg>') 16 16, pointer;
}

/* =========================================
   LABELS (Etichette Bianche - Custom Style)
   ========================================= */
.club-label {
    position: absolute;
    pointer-events: none;
    /* Ignore clicks, allow pass-through to zone */
    opacity: 0;
    /* Hidden by default */

    /* Style */
    background: rgba(5, 5, 8, 0.85);
    border: 1px solid var(--rift-cyan);
    color: var(--rift-beige);
    font-family: var(--font-display);
    font-size: 11px;
    /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    /* Smaller padding */
    white-space: nowrap;

    /* Glow/Shadow */
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);

    /* Transition */
    transition: all 0.4s ease;
}

/* Specific Positioning & Entrance Animation */

/* 1. Feed Label (Bottom Left of Zone) */
.club-feed-zone .club-label {
    bottom: 30%;
    left: 40%;
    transform: translateY(20px);
    /* Start lower */
}

.club-feed-zone:hover .club-label {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Services Label (Right of the Door Zone) */
.club-services-zone .club-label {
    top: 50%;
    left: 80%;
    /* Position to the RIGHT of the vertical door strip */
    transform: translateY(-50%) translateX(-20px);
    /* Start slightly closer to door */
    border-color: var(--rift-rust);
    /* Optional: Differentiate color for services? Or keep cyan? User said 'rust or cyan'. Let's use rust for contrast */
    color: var(--rift-text);
    box-shadow: 0 0 10px rgba(245, 125, 31, 0.2);
}

.club-services-zone:hover .club-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* MOBILE BACKGROUND */
@media (max-width: 1100px) and (orientation: portrait) {
    .club-bg {
        /* Mobile: Full Screen (NavBar is overlay or smaller) */
        top: 0;
        height: 100%;
        background-image: url('img/img-club-mobile-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
        background-size: 100% 100%;
        /* Mostra tutta l'immagine adattandola allo schermo (stretch) */
        background-position: center;
    }
}

.club-main {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.club-main.is-visible {
    opacity: 1;
}

/* =========================================
   FLOATING CONTACT BUTTON
   ========================================= */
.rift-floating-contact {
    position: fixed;
    bottom: 110px;
    right: 50px;
    /* Aligned with Audio Toggle (was 20px) */
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(5, 5, 8, 0.95);
    border: 2px solid var(--rift-red);
    color: var(--rift-red);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 32, 78, 0.4), inset 0 0 10px rgba(255, 32, 78, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.rift-floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 32, 78, 0.8);
    background: var(--rift-red);
    color: var(--rift-black);
}

.rift-floating-contact--mobile {
    display: none;
}

.rift-floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.rift-floating-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.rift-floating-icon--mobile {
    display: none;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .rift-floating-contact {
        bottom: 110px;
        width: 50px;
        height: 50px;
        right: 20px;
    }

    .rift-floating-contact--desktop {
        display: none;
    }

    .rift-floating-contact--mobile {
        display: flex;
    }

    .rift-floating-icon--desktop {
        display: none;
    }

    .rift-floating-icon--mobile {
        display: flex;
    }
}

/* =========================================
   HOLO SCREEN (Right Wall - Cyberpunk)
   ========================================= */

/* CONTAINER PRINCIPALE */
.club-wall-right {
    position: absolute;
    /* Container Position - CENTER WALL (Replaces Billboard) */
    top: calc(22% + 20px);
    /* Adjusted for distance perspective */
    left: calc(30.6% + 25px);
    /* Adjusted left to maintain center */
    width: 31%;
    /* Increased width (+5%) */
    height: 40%;
    /* Reduced relative height */

    /* Perspective & Alignment */
    /* micro-recess (-202px: 2px deeper into wall for realism) */
    transform: perspective(1000px) translate3d(0, 0, -202px) rotateX(4.5deg) rotateY(0.3deg);
    transform-origin: center center;
    z-index: 5;
    pointer-events: none;
}

/* Side Neon Bars (Common Styles) */
.mobile-screen::before,
.mobile-screen::after,
.club-wall-right::before,
.club-wall-right::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 5px;
    /* Increased by 3px */
    z-index: 20;
}

/* Left White Neon */
.mobile-screen::before,
.club-wall-right::before {
    left: -2px;
    /* Adjusted for increased width */
    background: #FFFFFF;
    box-shadow: 0 0 15px #FFFFFF, 0 0 5px #FFFFFF;
}

/* Right Red Neon */
.mobile-screen::after,
.club-wall-right::after {
    right: -2px;
    /* Adjusted for increased width */
    background: var(--rift-red);
    box-shadow: 0 0 15px var(--rift-red), 0 0 5px var(--rift-red);
}


/* CORNICE GLOW + RUGGINE */
.holo-screen-frame {
    position: relative;
    width: 100%;
    height: 100%;

    /* Hologram Border - Faint & Glowing */
    border: 1px solid rgba(0, 245, 255, 0.4);
    /* Incastro Pro: Inset shadows (recess) + Contact Shadow (0 6px 12px) */
    box-shadow:
        inset 0 16px 32px rgba(0, 0, 0, 0.75),
        inset 14px 0 26px rgba(0, 0, 0, 0.55),
        inset -14px 0 26px rgba(0, 0, 0, 0.55),
        0 6px 12px rgba(0, 0, 0, 0.45);

    background: rgba(0, 20, 30, 0.2);
    /* Semi-transparent layout */
    backdrop-filter: blur(3px);
    /* Slight blur for glass effect */
    overflow: hidden;
}


/* MONITOR DISPLAY AREA */
.holo-screen-display {
    position: absolute;
    inset: 4px;
    /* Un po' dentro la cornice */
    /* Un po' dentro la cornice */
    background: transparent;
    opacity: 0.9;
    overflow: hidden;

    /* CRT EFFECT BASE */
    filter: brightness(1.1) contrast(1.2) sepia(0.2) hue-rotate(180deg) saturate(1.8);
    /* Flicker veloce + Glitch casuale continuo */
    animation: holo-flicker 0.1s infinite, holo-glitch-idle 4s infinite;
}

/* VIDEOS & LOGO */
.holo-video,
.holo-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Adatta il video riempiendo lo schermo (no taglio) */
    opacity: 0;
    transition: opacity 0.5s;
    /* Smooth crossfade base (covered by glitch later) */
}

.holo-logo {
    object-fit: contain;
    /* Ensure logo isn't distorted */
    padding: 20px;
    /* Add some inner spacing for the logo */
}

.holo-video.active,
.holo-logo.active {
    opacity: 1;
}

/* VETRO SPORCO / SCRATCHES + AMBIENT REFLECTION */
.holo-screen-glass {
    position: absolute;
    inset: 0;
    z-index: 30;
    /* Neon Reflection Overlay (White to Red, subtle opacity) */
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, transparent 60%, rgba(255, 0, 0, 0.04) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.02) 100%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIgc3Ryb2tlLXdpZHRoPSIyIiAvPjwvc3ZnPg==');
    pointer-events: none;
    mix-blend-mode: overlay;

    /* Micro-blur edges for realism (glass thickness/dust) */
    filter: blur(0.4px);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.35);
    /* Simulate edge dust */
}

/* SCANLINES ANIMATE (Cyan Interference) */
.holo-scanlines {
    position: absolute;
    inset: 0;
    z-index: 25;
    /* Righe ciano fitte per effetto disturbo */
    background: repeating-linear-gradient(to bottom,
            transparent 0px,
            transparent 2px,
            rgba(0, 245, 255, 0.15) 2px,
            rgba(0, 245, 255, 0.3) 4px);
    background-size: 100% 100%;
    animation: holo-scanmove 0.2s linear infinite;
    /* Molto più veloce e vibrante (jitter) */
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* HUD OVERLAY */
.holo-hud-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 40;

    font-family: 'Courier New', monospace;
    /* Monospace generico o IBM Plex se importato */
    font-size: 12px;
    color: var(--rift-cyan);
    text-shadow: 0 0 2px var(--rift-cyan);
    text-align: right;
    line-height: 1.4;

    background: rgba(0, 20, 20, 0.6);
    padding: 4px 8px;
    border: 1px solid var(--rift-cyan);
    border-left: 3px solid var(--rift-cyan);
}

.blink {
    animation: blink-anim 1s step-start infinite;
    color: var(--rift-red);
}

/* ANIMAZIONI */

/* 1. FLICKER COSTANTE (CRT) */
@keyframes holo-flicker {
    0% {
        opacity: 0.98;
    }

    5% {
        opacity: 0.95;
    }

    10% {
        opacity: 0.98;
    }

    15% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.99;
    }

    100% {
        opacity: 0.98;
    }
}

/* 2. SCANLINE JITTER (Disturbo veloce) */
@keyframes holo-scanmove {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(2px);
    }

    50% {
        transform: translateY(-2px);
    }

    75% {
        transform: translateY(1px);
    }

    100% {
        transform: translateY(0);
    }
}

/* 3. BLINK TEXT */
@keyframes blink-anim {
    50% {
        opacity: 0;
    }
}

/* 4. GLITCH TRANSITION (Applicata via JS al container .club-wall-right o .holo-screen-display) */
.glitch-active .holo-screen-display {
    animation: holo-glitch-hard 0.4s infinite;
}

@keyframes holo-glitch-hard {
    0% {
        clip-path: inset(10% 0 85% 0);
        transform: translate(-10px, 5px) skew(10deg);
        filter: hue-rotate(90deg) contrast(2);
    }

    10% {
        clip-path: inset(75% 0 5% 0);
        transform: translate(10px, -5px) skew(-10deg);

        filter: invert(1);
    }

    20% {
        clip-path: inset(25% 0 50% 0);
        transform: translate(-5px, 5px);
        filter: hue-rotate(180deg);
    }

    30% {
        clip-path: inset(90% 0 5% 0);
        transform: translate(5px, -10px);
        filter: sepia(1) saturate(5);
    }

    40% {
        clip-path: inset(15% 0 60% 0);
        transform: translate(-10px, 10px);
        filter: hue-rotate(270deg);
    }

    50% {
        clip-path: inset(55% 0 10% 0);
        transform: translate(10px, -5px);
        filter: invert(0.5);
    }

    60% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(-5px, 5px);
    }

    70% {
        clip-path: inset(80% 0 10% 0);
        transform: translate(5px, -10px);
    }

    80% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-10px, 10px);
    }

    90% {
        clip-path: inset(30% 0 30% 0);
        transform: translate(5px, -5px) scale(1.1);
    }

    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
}

/* =========================================
   MOBILE SCREEN IMPLEMENTATION
   ========================================= */

/* Default: Hidden on Desktop */
.mobile-screen {
    display: none;
}

@media (max-width: 1100px) and (orientation: portrait) {

    /* Hide Desktop Screen */
    .club-wall-right {
        display: none !important;
    }

    /* Show Mobile Screen */
    .mobile-screen {
        display: block;
        position: absolute;
        width: 55vw;
        /* Expanded by 3% to the right */
        max-width: 320px;
        height: auto;
        aspect-ratio: 16/15.75;
        /* Reduced height by 10% from bottom (17.5 * 0.9 = 15.75) */
        /* Changed to horizontal to match rectangle shape */

        /* Precise Anchoring: top edge fixed at previous visual position, expanding downwards */
        top: 31%;
        left: calc(48% - 8px);
        /* Refined perspective: top narrower than bottom (subtle 4deg) */
        transform: perspective(1000px) translateX(-50%) translateZ(-302px) rotateX(4deg);
        transform-origin: center top;

        z-index: 15;
        pointer-events: none;

        /* Visual Integration: Contrast 0.92, Saturation 0.9, No Content Blur */
        filter: contrast(0.92) saturate(0.9);

        /* Tapered shape: top narrowed by 2px, bottom narrowed by 1px */
        clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 1px) 100%, 1px 100%);
    }


    /* Reuse Frame Styles for Mobile */
    .mobile-screen .holo-screen-frame {
        width: 100%;
        height: 100%;
        position: relative;
        border: 1px solid rgba(0, 245, 255, 0.25);
        /* 4) Incastro nel muro: internal soft shadow (Stronger on top, lighter on sides) */
        box-shadow:
            inset 0 30px 40px rgba(0, 0, 0, 0.95),
            inset 15px 0 25px rgba(0, 0, 0, 0.75),
            inset -15px 0 25px rgba(0, 0, 0, 0.75);
        background: rgba(0, 20, 30, 0.5);
        overflow: hidden;
    }

    /* Fine grain effect for better integration - Perceptual (opacity 0.04) */
    .mobile-screen .holo-screen-frame::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 35;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.04;
        pointer-events: none;
        mix-blend-mode: overlay;
    }

    /* Reuse Display Styles */
    .mobile-screen .holo-screen-display {
        position: absolute;
        inset: 4%;
        /* Minimal inset margin (2-4% max) to fill the rectangle */
        background: transparent;
        overflow: hidden;
    }

    .mobile-screen .holo-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
    }

    /* Adjust HUD for Mobile */
    .mobile-screen .holo-hud-overlay {
        font-size: 10px;
        padding: 2px 5px;
        top: 5px;
        right: 5px;
    }
}


/* Audio Toggle Visibility Helper */
.club-audio-toggle.menu-active-hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 5. IDLE RANDOM GLITCHES */
@keyframes holo-glitch-idle {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: skew(0.5deg);
    }

    10% {
        clip-path: inset(12% 0 18% 0);
        transform: skew(-0.5deg);
    }

    20% {
        clip-path: inset(70% 0 20% 0);
        transform: skew(0.2deg);
    }

    30% {
        clip-path: inset(10% 0 80% 0);
        transform: skew(-0.2deg);
    }

    40% {
        clip-path: inset(50% 0 10% 0);
        transform: skew(0.1deg);
    }

    50% {
        clip-path: inset(20% 0 60% 0);
        transform: skew(-0.1deg);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: skew(0.3deg);
    }

    70% {
        clip-path: inset(5% 0 80% 0);
        transform: skew(-0.3deg);
    }

    80% {
        clip-path: inset(40% 0 20% 0);
        transform: skew(0.2deg);
    }

    90% {
        clip-path: inset(10% 0 40% 0);
        transform: skew(-0.2deg);
    }

    100% {
        clip-path: inset(60% 0 30% 0);
        transform: skew(0deg);
    }
}

/* MOBILE RESPONSIVE */
/* MOBILE RESPONSIVE: Mobile for Centered Screen */
@media (max-width: 1100px) and (orientation: portrait) {
    .club-wall-right {
        /* Mobile Position: Deep in the back */
        /* Adjusted top to match the vanishing point with stronger depth */
        top: 36%;

        /* Shifted right by 10% as requested (from 30% to 40%) */
        left: 40%;

        /* Dimensions: Width reduced further by 10% (from 54% to 48%) */
        width: 48%;
        max-width: none;

        height: auto;
        aspect-ratio: 16 / 9;

        /* Perspective: VERY DEEP */
        /* Pushed far back (-400px) to simulate being at the end of the corridor */
        transform: translateX(-50%) perspective(1000px) translateZ(-400px) rotateX(2deg);
        transform-origin: center center;
    }

    .holo-hud-overlay {
        font-size: 10px;
        padding: 2px 5px;
        top: 8px;
        right: 8px;
    }
}

/* =========================================
   MINI FOOTER
   ========================================= */
.service-mini-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(5, 5, 8, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    backdrop-filter: blur(10px);
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: #666;
}

.mini-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-footer-left span {
    letter-spacing: 1px;
}

.divider {
    color: #333;
}

.mini-footer-center {
    display: flex;
    gap: 20px;
}

.mini-footer-center a {
    color: #666;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mini-footer-center a:hover {
    color: var(--rift-cyan);
}

.mini-footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mini-social-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.3s;
}

.mini-footer-right a:hover .mini-social-icon {
    fill: var(--rift-cyan);
}

@media (max-width: 1100px) and (orientation: portrait) {
    .service-mini-footer {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
        text-align: center;
        bottom: 0;
    }

    .footer-address,
    .address-divider {
        display: none;
    }

    .mini-footer-center {
        gap: 15px;
    }
}

/* AUDIO TOGGLE (Raised above footer) */
.club-audio-toggle {
    bottom: 60px !important;
}

.rift-floating-contact {
    bottom: 130px !important;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .rift-floating-contact {
        bottom: 170px !important;
        right: 20px !important;
    }

    .club-audio-toggle {
        bottom: 110px !important;
        right: 20px !important;
        /* Raised to clear mini-footer */
    }
}

/* =========================================
   INTERACTIVE BUBBLES
   ========================================= */
.club-bubble {
    position: absolute;
    /* Transparent background as requested */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #FFF;
    font-family: 'Silkscreen', monospace;
    /* Use Silkscreen if available, else monospace */
    font-size: 14px;
    padding: 15px;
    width: auto;
    min-width: 50px;
    max-width: 300px;
    /* Limit width */
    min-height: 40px;
    box-sizing: border-box;
    white-space: pre-wrap;
    /* Allow wrapping */
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
    pointer-events: auto;
    /* Enable clicks on bubble */
    cursor: pointer;
    /* Show pointer on bubble */

    /* PIXEL BORDER EFFECT (White) */
    box-shadow:
        2px 0 0 #FFF,
        -2px 0 0 #FFF,
        0 -2px 0 #FFF,
        0 2px 0 #FFF;

    display: flex;
    align-items: center;
    justify-content: center;
}

.club-bubble.is-visible {
    opacity: 1;
}

/* Position Left Bubble (Bartender) */
.club-bubble-left {
    top: -15%;
    /* Raised significantly above the zone (was 5% inside) */
    left: 50%;
    transform: translateX(-50%);
}

/* Position Right Bubble (Services) */
/* Position Right Bubble (Services) */
.club-bubble-right {
    top: calc(-100px - 20%);
    /* Raised by 20% as requested */
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    /* Widened as requested, can overlap screen */
    width: max-content;
    /* Allow it to be as wide as content up to max */
}

/* Typewriter Cursor */
.cursor-blink {
    color: var(--rift-cyan);
    font-weight: bold;
    animation: blink-anim 0.8s infinite;
}

@media (max-width: 1100px) and (orientation: portrait) {
    .club-bubble {
        font-size: 11px;
        padding: 10px;
        max-width: 200px;
        top: 0% !important;
        /* Lowered on mobile by 10% (was -10%) */
    }

    .club-bubble-left {
        max-width: 120px;
        min-width: 60px;
        width: max-content;

        /* Fix for off-screen overflow on left */
        left: 10px;
        transform: none;
        /* Remove centering */
        /* It is inside .club-feed-zone which is left: 0, 
           so left: 10px places it 10px from screen left edge. */
    }

    .club-bubble-right {
        /* Ensure right bubble doesn't overflow right edge */
        left: auto;
        right: -5% !important;
        top: -80px !important;
        transform: none !important;
        /* Moved up and right to clear the character body */
    }

    .club-services-zone {
        z-index: 200 !important;
        /* Ensure popup is above footer */
        right: 5% !important;
        width: 25% !important;
        height: 25% !important;
        top: 45% !important;
        /* Expanded to cover only the character body, not the bubble */
    }

    .club-services-zone .club-label {
        top: auto !important;
        bottom: -20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .club-feed-zone {
        z-index: 20 !important;
        /* Ensure bubble is in front of monitor (z-15) */
    }
}

/* =========================================
   CLUB EASTER EGG: Blue Dots & Video Popup
   ========================================= */

/* Blue Dots - Below Wall Screen, Left Side */
.club-easter-dots {
    position: absolute;
    bottom: -15%;
    left: 5%;
    display: flex;
    gap: 8px;
    z-index: 25;
    cursor: pointer;
    pointer-events: auto;
}

/* Hide mobile-specific dots on desktop */
.club-easter-dots-mobile {
    display: none;
}

.club-easter-dot {
    width: 12px;
    height: 12px;
    background: var(--rift-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--rift-cyan),
        0 0 20px rgba(0, 245, 255, 0.5);
    animation: clubEasterPulse 1.5s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.club-easter-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.club-easter-dot:nth-child(3) {
    animation-delay: 0.6s;
}

.club-easter-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--rift-cyan),
        0 0 30px rgba(0, 245, 255, 0.8);
}

@keyframes clubEasterPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* Video Popup Modal */
.club-easter-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.club-easter-popup.is-open {
    display: flex;
    opacity: 1;
}

.club-easter-popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid var(--rift-cyan);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
}

/* Close Button */
.club-easter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--rift-cyan);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.club-easter-popup-close:hover {
    color: #fff;
    transform: rotate(90deg);
    text-shadow: 0 0 10px var(--rift-cyan);
}

/* Video */
.club-easter-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Crash Screen Overlay */
.club-easter-crash {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.club-easter-crash.is-visible {
    display: flex;
}

.club-crash-text {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--rift-red);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(255, 32, 78, 0.8);
    animation: clubCrashGlitch 0.5s infinite;
}

@keyframes clubCrashGlitch {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }

    25% {
        transform: translate(-5px, 5px);
        opacity: 0.8;
    }

    50% {
        transform: translate(5px, -5px);
        opacity: 0.9;
    }

    75% {
        transform: translate(-3px, 3px);
        opacity: 0.85;
    }
}

/* Mobile Adjustments */
@media (max-width: 1100px) and (orientation: portrait) {

    /* Hide desktop dots (inside .club-wall-right) */
    .club-wall-right .club-easter-dots {
        display: none;
    }

    /* Show and position mobile dots */
    .club-easter-dots-mobile {
        display: flex;
        position: fixed;
        bottom: 25%;
        left: 10%;
        gap: 6px;
        z-index: 9999;
    }

    .club-easter-dot {
        width: 10px;
        height: 10px;
    }

    .club-easter-popup-content {
        width: 95%;
    }

    .club-crash-text {
        font-size: 32px;
        text-align: center;
    }
}

/* =========================================
   MOBILE LANDSCAPE RESPONSIVENESS
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {

    .feed-header {
        padding: 5px 20px;
    }

    .feed-logo-text {
        transform: translateX(-10px);
        /* Move slightly left */
    }

    .feed-logo-text img {
        height: 25px;
        /* Reduced from 30px */
    }

    .feed-menu-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px;
        max-width: 90vw;
    }

    /* Bubbles text reduction */
    .pixel-bubble-content {
        font-size: 9px;
        line-height: 1.2;
    }

    .club-bubble-left {
        top: -20% !important;
        /* Raised 10% from 30% */
        left: 20px !important;
        transform: scale(0.8);
        /* Shrink 20% */
        transform-origin: left top;
        padding: 5px;
    }

    .club-bubble-right {
        top: -50px !important;
        right: -50% !important;
        padding: 5px;
        /* Moved 30% further right */
    }

    .club-bg {

        top: 35px;
    }

    .rift-floating-contact {
        bottom: 100px !important;
    }

    /*feed zone */
    .club-feed-zone {
        width: 25%;
    }

    .club-services-zone {
        height: 45% !important;
        top: 55% !important;
    }

    .club-feed-zone .club-label {
        bottom: 10%;
    }

    /* Popup Resize */
    .club-easter-popup-content {
        max-width: 400px;
        max-height: 85vh;
        border-width: 1px;
    }

    .club-crash-text {
        font-size: 20px;
    }

    .club-bg {
        background-size: cover;
    }

    .club-audio-toggle {
        bottom: 15px;
        right: 20px;
        padding: 5px 10px;
    }

    .rift-floating-contact {
        bottom: 75px;
        right: 20px;
        width: 35px;
        height: 35px;
    }

    /* Mini Footer Refinement */
    .service-mini-footer {
        font-size: 0.6rem;
        height: 45px;
        padding: 0 15px;
        bottom: 5px;
        /* Raised slightly */
    }

    .mini-footer-center {
        align-items: flex-end;
        padding-bottom: 2px;
    }
}

/* FIX: Override desktop landscape */
@media (orientation: landscape) {
    .club-wall-right {
        display: block !important;
    }

    .mobile-screen {
        display: none !important;
    }
}

/* FIX: Riduzione gap e font-size per navbar desktop se dispositivo landscape piccolo */
@media (max-width: 1100px) and (orientation: landscape) {
    .feed-desktop-nav {
        gap: 15px;
        /* riduco il gap da 30px a 15px */
    }

    .nav-link {
        font-size: 8px;
        /* riduco font per farli entrare tutti */
        padding: 4px 10px;
        /* riduco padding se era presente */
    }

    .nav-link.highlight {
        padding: 4px 10px;
    }
    
    /* Riduco il font del mini footer e adatto lo spazio */
    .service-mini-footer {
        font-size: 0.55rem;
        padding: 0 10px;
        height: 35px;
    }

    .mini-footer-left span,
    .mini-footer-center a,
    .mini-footer-right span {
        letter-spacing: 0.5px;
        /* Riduco il letter-spacing se necessario */
    }
}
}