/* =========================================
   CINEMATIC LOADER & HERO UI
   ========================================= */
.cinematic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loader-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    /* Center alignment vital */
    justify-content: center;
    align-items: center;
}

.transition-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}

.intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
}

/* FULL SCREEN WATCH/BG OBJECT */
.hero-watch-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    opacity: 0;
    object-fit: cover;
    /* Cover the screen like the video */
    transform: none;
    /* No centering transform needed if top/left 0 */
}

/* Hero bg */
.hero-bg {
    opacity: 0;
    transition: opacity 2s;
}

.hero-bg.active {
    opacity: 1;
}

/* Hide hero content initially */
.hero-content {
    opacity: 0;
}

/* Specific class when watch/bg is in hero */
.watch-in-hero {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* Move to back as background */
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* HERO SIDE TEXTS */
.hero-side-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    /* Animated in JS */
}

.hero-side-text.left {
    left: 4rem;
    writing-mode: vertical-lr;
    transform: translateY(-50%) rotate(180deg);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    padding-right: 1rem;
}

.hero-side-text.right {
    right: 4rem;
    writing-mode: vertical-lr;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 1rem;
}

.hero-side-text .separator {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* HERO CORNER TEXTS */
.hero-corner-text {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    opacity: 0;
    z-index: 2;
    text-transform: uppercase;
}

.hero-corner-text.top-left {
    top: 2rem;
    left: 2rem;
}

.hero-corner-text.top-right {
    top: 2rem;
    right: 2rem;
}

.hero-corner-text.bottom-left {
    bottom: 2rem;
    left: 2rem;
}

.hero-corner-text.bottom-right {
    bottom: 2rem;
    right: 2rem;
}

/* COMPLEX UI LAYER */
.hero-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind text, front of match */
    pointer-events: none;
    opacity: 0;
    /* Animated */
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    animation: rotateRing 60s linear infinite;
}

.hero-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-crosshair {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
}

.hero-crosshair.horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

.hero-crosshair.vertical {
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
}

/* UI PANELS */
.hero-hud-panel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    z-index: 1;
}

.hero-hud-panel.left-panel {
    left: 10%;
    text-align: right;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    padding-right: 1rem;
}

.hero-hud-panel.right-panel {
    right: 10%;
    text-align: left;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    padding-left: 1rem;
}

.hud-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: rgba(0, 0, 0, 0.7);
}

.hud-row .status {
    color: var(--accent-color);
}

.hud-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.hud-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    justify-content: end;
}

.left-panel .hud-matrix {
    justify-items: end;
}

.dot {
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
}

.dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
    animation: blinkDot 2s infinite alternate;
}

@keyframes blinkDot {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hud-graph {
    display: flex;
    gap: 4px;
    height: 30px;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.bar {
    width: 6px;
    background: rgba(0, 0, 0, 0.2);
    animation: 2s ease-in-out infinite alternate;
}

.bar:nth-child(1) {
    height: 60%;
    animation-name: barAnim1;
}

.bar:nth-child(2) {
    height: 80%;
    animation-name: barAnim2;
}

.bar:nth-child(3) {
    height: 40%;
    animation-name: barAnim3;
}

.bar:nth-child(4) {
    height: 90%;
    animation-name: barAnim4;
}

@keyframes barAnim1 {
    0% {
        height: 40%;
    }

    100% {
        height: 70%;
    }
}

@keyframes barAnim2 {
    0% {
        height: 70%;
    }

    100% {
        height: 95%;
    }
}

@keyframes barAnim3 {
    0% {
        height: 30%;
    }

    100% {
        height: 60%;
    }
}

@keyframes barAnim4 {
    0% {
        height: 60%;
    }

    100% {
        height: 90%;
    }
}

/* ENTER BUTTON LAYER */
.loader-enter-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.enter-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 1rem 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.5s ease;
    z-index: -1;
}

.enter-btn:hover {
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.enter-btn:hover::before {
    left: 0;
}

.enter-subtitle {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: var(--font-body);
    opacity: 0.7;
}

/* Hide cursor when hovering enter button for standard pointer */
.enter-btn {
    cursor: auto !important;
}