@font-face {
    font-family: "FX Otha";
    src: url("/fonts/otha-regular.otf") format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "FX Otha";
    src: url("/fonts/otha-oblique.otf") format("opentype");
    font-display: swap;
    font-style: oblique;
    font-weight: 400;
}

@font-face {
    font-family: "FX Nunito";
    src: url("/fonts/nunito-variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 200 900;
}

:root {
    --fx-ink: #111111;
    --fx-night: #14444e;
    --fx-blue: #0062d8;
    --fx-ice: #fffcf8;
    --fx-mist: #d2d2d2;
    --fx-gold: #7e0607;
    --fx-line: rgba(255, 255, 255, 0.17);
    --fx-display: "FX Otha", Impact, sans-serif;
    --fx-body: "FX Nunito", Arial, sans-serif;
}

body {
    background-color: var(--fx-ink) !important;
    color: var(--fx-ice) !important;
    font-family: var(--fx-body) !important;
}

.fx-display {
    font-family: var(--fx-display) !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 0.92;
}

.fx-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #bfc9dd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fx-rec {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #f74b57;
    border-radius: 50%;
    box-shadow: 0 0 12px #f74b57;
    animation: fxPulse 1.8s infinite ease-in-out;
}

@keyframes fxPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.88); }
}

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

@keyframes fxTicker {
    to { transform: translateX(-50%); }
}

/* HUD Frame Corners (identidade FIXA Eventos) */
.fx-hud-card {
    position: relative;
    background: rgba(18, 22, 29, 0.88);
    border: 1px solid var(--fx-line);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.fx-hud-card::before,
.fx-hud-card::after {
    content: "";
    position: absolute;
    background: var(--fx-blue);
    box-shadow: 0 0 18px var(--fx-blue);
    pointer-events: none;
}

.fx-hud-card::before {
    left: -1px;
    top: -1px;
    width: 32px;
    height: 2px;
}

.fx-hud-card::after {
    right: -1px;
    bottom: -1px;
    width: 2px;
    height: 32px;
}

/* Tela de Carregamento / Splash Cinematográfico FIXA */
.fx-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at 50% 35%, rgba(0, 98, 216, 0.22) 0%, rgba(20, 68, 78, 0.18) 38%, #111111 78%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.45s cubic-bezier(0.2, 0.75, 0.2, 1), visibility 0.45s;
}

.fx-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fx-preloader__aperture {
    position: absolute;
    width: min(78vw, 520px);
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    border: 1px solid rgba(116, 163, 255, 0.19);
    border-radius: 50%;
    animation: fxSpinSlow 24s linear infinite;
    pointer-events: none;
}

.fx-preloader__aperture::before,
.fx-preloader__aperture::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(116, 163, 255, 0.13);
    border-radius: 50%;
}

.fx-preloader__aperture::before { inset: 10%; }
.fx-preloader__aperture::after { inset: 24%; }

.fx-preloader__aperture i {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 98, 216, 0.85), transparent);
    transform-origin: left;
}
.fx-preloader__aperture i:nth-child(2) { transform: rotate(90deg); }
.fx-preloader__aperture i:nth-child(3) { transform: rotate(180deg); }
.fx-preloader__aperture i:nth-child(4) { transform: rotate(270deg); }

.fx-preloader__hud-top {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c5cee1;
}

.fx-preloader__bar {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    margin-top: 22px;
    overflow: hidden;
    position: relative;
}

.fx-preloader__bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--fx-blue);
    box-shadow: 0 0 14px var(--fx-blue);
    transform-origin: left;
    animation: fxBarLoad 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

@keyframes fxBarLoad {
    0% { transform: scaleX(0.05); }
    100% { transform: scaleX(1); }
}

/* Mapeamento da paleta anterior (purple/slate) para a identidade oficial FIXA (#0062d8 / #14444e / #111111 / #7e0607) */
.bg-slate-950 { background-color: #111111 !important; }
.bg-slate-950\/90, .bg-slate-950\/95 { background-color: rgba(17, 17, 17, 0.92) !important; }
.bg-slate-900, .bg-slate-900\/90 { background-color: #16191f !important; }
.border-slate-800, .border-slate-800\/80, .border-slate-700 { border-color: rgba(255, 255, 255, 0.16) !important; }
.bg-purple-600 { background-color: #0062d8 !important; }
.hover\:bg-purple-500:hover { background-color: #0b72ee !important; }
.text-purple-400, .text-purple-300 { color: #4da3ff !important; }
.border-purple-500, .border-purple-500\/40, .border-purple-500\/30, .border-purple-400\/40 { border-color: rgba(0, 98, 216, 0.55) !important; }
.bg-purple-500\/15, .bg-purple-500\/10, .bg-purple-500\/20, .bg-purple-950\/20, .bg-purple-950\/40 { background-color: rgba(0, 98, 216, 0.16) !important; }
.from-purple-600 { --tw-gradient-from: #0062d8 !important; }
.to-indigo-600 { --tw-gradient-to: #14444e !important; }
.from-purple-900\/60 { --tw-gradient-from: rgba(0, 98, 216, 0.28) !important; }
.to-indigo-900\/60 { --tw-gradient-to: rgba(20, 68, 78, 0.55) !important; }
.shadow-purple-600\/25, .shadow-purple-600\/20 { --tw-shadow-color: rgba(0, 98, 216, 0.35) !important; }
