/* ── Buttons ── */
.button-glow-pulse {
    animation: breathing-glow 3s infinite ease-in-out;
}

.button-ritual:hover {
    animation: glitch-jitter 0.2s infinite;
    box-shadow: 0 0 50px rgba(255, 11, 12, 1);
}

.button-ritual:hover .ritual-text {
    animation: text-flicker 0.15s infinite;
}

/* ── Effects ── */
.scanline-effect {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    height: 50%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: scanline 2s linear infinite;
}

.poster-neon-glow {
    box-shadow: 0 0 20px 2px rgba(255, 11, 12, 0.4);
}

.video-zoom {
    transform: scale(1.05);
}

/* ── Immersive States ── */
.immersive-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.immersive-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Rotation Prompt ── */
.rotate-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-prompt-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.rotate-phone-animation {
    animation: phone-pulse 1.2s ease-in-out infinite;
}

/* ── Film Grain ── */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: grain-shift 0.4s steps(4) infinite;
}

/* ── Custom Cursor ── */
@media (pointer: fine) {
    body {
        cursor: none;
    }
    .cursor-dot,
    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 9999;
        pointer-events: none;
    }
    .cursor-dot {
        width: 6px;
        height: 6px;
        background: #ff0b0c;
        transition:
            width 0.15s,
            height 0.15s;
    }
    .cursor-ring {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(255, 11, 12, 0.5);
        transition:
            width 0.25s,
            height 0.25s,
            border-color 0.25s;
    }
    body.hovering .cursor-dot {
        width: 10px;
        height: 10px;
    }
    body.hovering .cursor-ring {
        width: 48px;
        height: 48px;
        border-color: rgba(255, 11, 12, 0.9);
    }
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ── Boot Screen ── */
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    color: #ff0b0c;
    transition: opacity 0.6s ease-out;
}

.boot-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    max-width: 90vw;
    width: 420px;
}

.boot-line {
    font-size: 12px;
    letter-spacing: 0.1em;
    line-height: 1.8;
    opacity: 0;
    animation: boot-fade-in 0.3s forwards;
}

.boot-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #ff0b0c;
    margin-left: 4px;
    animation: boot-blink 0.8s step-end infinite;
    vertical-align: middle;
}

/* ── Screen Flicker ── */
.screen-flicker {
    animation: flicker-dip 0.08s ease-out;
}

/* ── Text Scramble ── */
.scramble-text {
    display: inline-block;
}

/* ── Fade In Up Utility ── */
.fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
