.hub-devtools-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483646 !important;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 8, 14, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 1;
    margin: 0;
}

/* No fade-in: DevTools pauses CSS animations, which froze this overlay at opacity 0. */
html.hub-devtools-open .hub-devtools-overlay {
    display: flex !important;
    opacity: 1;
    animation: none;
}

.hub-devtools-overlay__box {
    max-width: 420px;
    padding: 22px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(16, 19, 28, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: #e8ebf2;
    text-align: center;
    font-family: inherit;
}

.hub-devtools-overlay__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hub-devtools-overlay__text {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(232, 235, 242, 0.72);
}

/* !important beats the inline background-image set for seasonal cards. */
html.hub-devtools-open .public-driver-card,
html.hub-devtools-open .hub-prestige-driver-card-preview-card,
html.hub-devtools-open [class*="hub-prestige-driver-card-bg--"] {
    background-image: none !important;
    filter: brightness(0.2) saturate(0);
}

html.hub-devtools-open .public-driver-card::before,
html.hub-devtools-open .public-driver-card::after,
html.hub-devtools-open .hub-prestige-driver-card-preview-card::before,
html.hub-devtools-open .hub-prestige-driver-card-preview-card::after,
html.hub-devtools-open .hub-halloween-embers {
    visibility: hidden !important;
    animation: none !important;
}

