/* Fabricated Crime — homepage intro video overlay (FP-style) */

.fc-intro {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: #050505;
    opacity: 1;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-intro.is-exiting {
    opacity: 0;
    pointer-events: none;
}

.fc-intro.is-hidden {
    display: none;
}

.fc-intro__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-intro__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.4), transparent, rgba(5, 5, 5, 0.6));
    pointer-events: none;
}

.fc-intro__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.fc-intro__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-intro__loader.is-hidden {
    display: none;
}

.fc-intro__spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #ff0000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: fc-intro-spin 0.8s linear infinite;
}

@keyframes fc-intro-spin {
    to { transform: rotate(360deg); }
}

.fc-intro__error {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}

.fc-intro__error.is-visible {
    display: flex;
}

.fc-intro__error-text {
    margin: 0;
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.fc-intro__error-btn {
    border: 1px solid #ff0000;
    background: transparent;
    color: #ff0000;
    padding: 0.75rem 2rem;
    font-family: 'Inter', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fc-intro__error-btn:hover {
    background: #ff0000;
    color: #000;
}

.fc-intro__ui {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: clamp(1.25rem, 3vw, 3rem);
    pointer-events: none;
}

.fc-intro__ui > * {
    pointer-events: auto;
}

.fc-intro__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.fc-intro__progress-label {
    margin: 0;
    font-family: 'Inter', monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
    color: rgba(240, 240, 235, 0.8);
}

.fc-intro__skip {
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(240, 240, 235, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
}

.fc-intro__skip:hover {
    color: #ff0000;
}

.fc-intro__logo-wrap {
    display: flex;
    justify-content: center;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    animation: fc-intro-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes fc-intro-logo-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fc-intro__logo {
    width: auto;
    height: auto;
    max-width: min(320px, 70vw);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.fc-intro__bottom {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.fc-intro__sound {
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    font-family: 'Inter', monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.875rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 240, 235, 0.7);
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.fc-intro__sound:hover {
    color: #ff0000;
}

.fc-intro__sound.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.fc-intro__bar-track {
    flex: 1;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.fc-intro__bar-fill {
    height: 100%;
    width: 0%;
    background: #ff0000;
    transition: width 0.15s linear;
}

html.intro-pending {
    overflow: hidden;
}

html.intro-pending body {
    overflow: hidden;
}
