:root {
    --bg: #070910;
    --bg-soft: #0d111c;
    --panel: rgba(14, 18, 29, 0.72);
    --panel-strong: rgba(18, 22, 34, 0.92);
    --line: rgba(255, 255, 255, 0.13);
    --muted: #9aa3b5;
    --text: #f4f6fb;
    --red: #ff3030;
    --red-deep: #c31717;
    --mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 10%, rgba(195, 23, 23, 0.2), transparent 32rem),
        linear-gradient(180deg, var(--bg), #080b13 38%, var(--bg-soft));
    font-family: var(--sans);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video,
canvas {
    display: block;
    max-width: 100%;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.05;
    background-image:
        linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
        radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px);
    background-size: 27px 27px, 5px 5px;
    mix-blend-mode: screen;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.4rem;
    padding: 1rem clamp(1rem, 3vw, 3rem);
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
    background: rgba(7, 9, 16, 0.78);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.brand,
.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-logo {
    width: clamp(4.4rem, 7vw, 6.7rem);
    height: auto;
    filter: drop-shadow(0 0 18px rgba(255, 48, 48, 0.28));
}

.main-nav {
    justify-self: center;
    display: flex;
    gap: clamp(0.8rem, 2vw, 2rem);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 2.75rem;
    height: 2.35rem;
    padding: 0 0.65rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.menu-toggle span {
    display: block;
    width: 0.82rem;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle em {
    font-style: normal;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translate(0.36rem, 0.28rem) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translate(-0.36rem, -0.28rem) rotate(-45deg);
}

.language-switcher {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.3rem;
}

.language-switcher a {
    display: grid;
    height: 2.25rem;
    place-items: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    line-height: 1;
    opacity: 0.62;
}

.language-switcher a {
    width: 2.25rem;
    font-size: 1rem;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
    border-color: rgba(255, 48, 48, 0.62);
    background: rgba(255, 48, 48, 0.12);
    opacity: 1;
}

.auth {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.7rem;
}

.profile-pill {
    min-height: 2.25rem;
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--mono);
    font-size: 0.76rem;
}

.profile-pill img,
.avatar-fallback {
    width: 1.75rem;
    height: 1.75rem;
}

.profile-pill img {
    object-fit: cover;
}

.avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--red-deep);
    font-weight: 800;
}

.button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.34);
}

.button-primary {
    border-color: rgba(255, 48, 48, 0.72);
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    box-shadow: 0 0 34px rgba(255, 48, 48, 0.25);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.11);
}

.button-ghost {
    background: rgba(7, 9, 16, 0.36);
}

.button-small {
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
}

.hero {
    position: relative;
    min-height: 210vh;
}

.hero-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #030408;
}

.hero-video,
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 520ms ease, transform 520ms ease;
}

.hero-video.is-active {
    opacity: var(--hero-opacity, 1);
    transform: scale(var(--hero-scale, 1.02));
}

.hero-canvas {
    display: none;
}

body.frame-mode .hero-video {
    display: none;
}

body.frame-mode .hero-canvas {
    display: block;
    opacity: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 16, 0.9), rgba(7, 9, 16, 0.32) 42%, rgba(7, 9, 16, 0.85)),
        linear-gradient(0deg, rgba(7, 9, 16, 1), transparent 34%, rgba(7, 9, 16, 0.26)),
        radial-gradient(circle at 22% 78%, rgba(255, 48, 48, 0.36), transparent 22rem);
}

.scanlines {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(255, 48, 48, 0.42) 18.1%, transparent 18.35%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
    opacity: 0.22;
}

.hud {
    position: absolute;
    z-index: 2;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--mono);
    font-size: clamp(0.62rem, 1.2vw, 0.8rem);
    text-transform: uppercase;
}

.hud-top {
    top: 7.5rem;
    right: clamp(1rem, 4vw, 4rem);
}

.hud-bottom {
    bottom: 2rem;
    left: clamp(1rem, 4vw, 4rem);
}

.hero-scroll-cue {
    position: absolute;
    right: clamp(1rem, 4vw, 4rem);
    bottom: 1.7rem;
    z-index: 4;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.15rem 0.8rem;
    min-width: 12rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    transition: opacity 180ms ease, transform 180ms ease;
}

.hero-scroll-cue span {
    color: var(--muted);
}

.hero-scroll-cue strong {
    color: #fff;
}

.hero-scroll-cue i {
    grid-column: 1 / -1;
    position: relative;
    height: 2px;
    margin-top: 0.45rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.hero-scroll-cue i::before {
    content: "";
    position: absolute;
    inset: 0;
    width: max(18%, calc(var(--hero-progress, 0) * 100%));
    background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.9));
    box-shadow: 0 0 18px rgba(255, 48, 48, 0.55);
}

.hero-content {
    position: fixed;
    z-index: 3;
    top: 50%;
    left: clamp(1rem, 8vw, 7rem);
    width: min(62rem, calc(100% - 2rem));
    transform: translateY(-46%);
    pointer-events: none;
}

.hero-content .button,
.hero-content a {
    pointer-events: auto;
}

.eyebrow,
.section-kicker {
    color: var(--red);
    font-family: var(--mono);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 0.95;
}

h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 10.5vw, 10.8rem);
    font-weight: 950;
}

h2 {
    font-size: clamp(2rem, 5vw, 5.5rem);
    font-weight: 900;
}

.hero-copy {
    max-width: 42rem;
    margin: 1.4rem 0 2rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.2rem, 2.6vw, 2.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.visitor-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-top: 1.1rem;
    padding: 0.55rem 0.75rem;
    border-left: 2px solid var(--red);
    background: rgba(7, 9, 16, 0.34);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--mono);
    text-transform: uppercase;
}

.visitor-counter span {
    color: var(--muted);
    font-size: 0.68rem;
}

.visitor-counter strong {
    color: #fff;
    font-size: clamp(1rem, 1.8vw, 1.45rem);
    line-height: 1;
}

.content-section,
.season-stats-section,
.story-grid,
.community {
    position: relative;
    z-index: 5;
    background: var(--bg);
}

.section-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 9rem) 0;
}

.split {
    display: grid;
    grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.section-copy p,
.section-heading p,
.story-card p,
.community p {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.section-copy p {
    max-width: 58rem;
    margin-top: 1.5rem;
}

.facts-section {
    background:
        linear-gradient(180deg, #070910, #0d111c),
        radial-gradient(circle at 82% 28%, rgba(255, 48, 48, 0.16), transparent 22rem);
}

.section-heading {
    max-width: 56rem;
    margin-bottom: 2rem;
}

.season-stats-section {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.13), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.09), transparent 18rem),
        #080b13;
}

.season-stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 5.5rem 5.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.season-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--line);
    background: rgba(7, 9, 16, 0.62);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.32);
}

.season-stat-card {
    position: relative;
    min-height: 13rem;
    padding: clamp(1rem, 2vw, 1.45rem);
    overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
        rgba(255, 255, 255, 0.015);
}

.season-stat-card:last-child {
    border-right: 0;
}

.season-stat-card::after {
    content: "";
    position: absolute;
    right: -2.4rem;
    bottom: -3rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 48, 48, 0.34);
    transform: rotate(35deg);
}

.season-stat-card span,
.season-stat-card p {
    color: var(--muted);
    font-family: var(--mono);
    text-transform: uppercase;
}

.season-stat-card span {
    display: block;
    font-size: 0.68rem;
    font-weight: 900;
}

.season-stat-card strong {
    display: block;
    margin-top: 1.7rem;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 5.4rem);
    font-weight: 950;
    line-height: 0.84;
    letter-spacing: 0;
}

.season-stat-card--wide-value strong {
    max-width: 100%;
    font-size: clamp(2rem, 2.8vw, 3.35rem);
    line-height: 0.95;
    white-space: nowrap;
}

.season-stat-card h3 {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0.2rem;
    color: #fff;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.05;
}

.season-stat-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.45;
}

.season-stat-card:nth-child(1),
.season-stat-card:nth-child(4) {
    background:
        linear-gradient(180deg, rgba(255, 48, 48, 0.2), transparent 50%),
        rgba(255, 255, 255, 0.02);
}

.season-stat-card:nth-child(1) strong,
.season-stat-card:nth-child(4) strong {
    text-shadow: 0 0 28px rgba(255, 48, 48, 0.42);
}

.facts-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(14, 18, 29, 0.8);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.fact-row {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
}

.fact-row:nth-child(2n) {
    border-right: 0;
}

.fact-row span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.72rem;
}

.fact-row strong {
    text-align: right;
    color: #fff;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
}

.story-card {
    min-height: 28rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background:
        linear-gradient(145deg, rgba(255, 48, 48, 0.08), transparent 38%),
        var(--panel-strong);
}

.story-card span {
    color: var(--red);
    font-family: var(--mono);
    font-weight: 800;
}

.story-card h2 {
    margin-top: 4rem;
    font-size: clamp(1.85rem, 3vw, 3.3rem);
    line-height: 1;
}

.story-card p {
    margin-top: 1.2rem;
}

.instagram-section {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 15%, rgba(255, 48, 48, 0.18), transparent 27rem),
        radial-gradient(circle at 86% 36%, rgba(255, 255, 255, 0.08), transparent 20rem),
        linear-gradient(180deg, #090c14, #070910 72%);
}

.instagram-section::before,
.instagram-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.instagram-section::before {
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.instagram-section::after {
    right: clamp(1rem, 8vw, 7rem);
    bottom: -7rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(255, 48, 48, 0.22);
    transform: rotate(32deg);
}

.instagram-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(24rem, 1.18fr);
    gap: clamp(2.5rem, 7vw, 7rem);
    align-items: center;
}

.instagram-copy h2 {
    max-width: 11ch;
}

.instagram-copy p:not(.section-kicker) {
    max-width: 39rem;
    margin: 1.3rem 0 2rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.instagram-showcase {
    position: relative;
    display: grid;
    grid-template-columns: minmax(16rem, 0.72fr) minmax(15rem, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.instagram-phone,
.instagram-tiles article {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 48, 48, 0.13), transparent 46%),
        rgba(14, 18, 29, 0.76);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.instagram-phone {
    min-height: 30rem;
    padding: 0.85rem;
}

.instagram-phone__bar {
    display: flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.8rem;
    border-bottom: 1px solid var(--line);
    color: #fff;
    font-family: var(--mono);
    font-size: 0.75rem;
}

.instagram-phone__bar span,
.instagram-phone__bar i {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 18px rgba(255, 48, 48, 0.48);
}

.instagram-phone__bar i {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.instagram-post--hero {
    min-height: 16rem;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    margin-top: 0.85rem;
    padding: 1.2rem;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(7, 9, 16, 0.18), rgba(7, 9, 16, 0.86)),
        url("../img/hero-poster-2.jpg") center / cover;
}

.instagram-post--hero img {
    width: min(12rem, 72%);
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(255, 48, 48, 0.34));
}

.instagram-post--hero span,
.instagram-post--hero strong {
    display: block;
    font-family: var(--mono);
    text-transform: uppercase;
}

.instagram-post--hero span {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 900;
}

.instagram-post--hero strong {
    color: #fff;
    font-size: 0.85rem;
}

.instagram-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.instagram-mini-grid span {
    min-height: 4.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.18), transparent 58%),
        rgba(255, 255, 255, 0.055);
}

.instagram-mini-grid span:nth-child(2),
.instagram-mini-grid span:nth-child(3) {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 58%),
        rgba(255, 48, 48, 0.06);
}

.instagram-tiles {
    display: grid;
    gap: 1rem;
}

.instagram-tiles article {
    position: relative;
    min-height: 9.35rem;
    padding: 1.25rem;
    overflow: hidden;
}

.instagram-tiles article::after {
    content: "";
    position: absolute;
    right: -1.8rem;
    bottom: -3.2rem;
    width: 7rem;
    height: 7rem;
    border: 1px solid rgba(255, 48, 48, 0.34);
    transform: rotate(35deg);
}

.instagram-tiles span {
    display: block;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 900;
}

.instagram-tiles strong {
    display: block;
    margin-top: 1.2rem;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1;
}

.instagram-tiles p {
    position: relative;
    z-index: 1;
    max-width: 25rem;
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.trailer-section {
    background: #070910;
}

.trailer-consent {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #020307;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.trailer-consent img,
.trailer-consent iframe {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.trailer-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(7, 9, 16, 0.1), rgba(7, 9, 16, 0.82));
}

.trailer-overlay span {
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--mono);
    text-transform: uppercase;
}

.community {
    overflow: hidden;
}

.community-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 16, 0.92), rgba(7, 9, 16, 0.7)),
        url("../img/hero-poster-2.jpg") center / cover;
    transform: scale(1.05);
}

.community-inner {
    position: relative;
    max-width: 900px;
    margin-left: clamp(1rem, 8vw, 8rem);
}

.community h2 {
    max-width: 12ch;
}

.community p {
    max-width: 42rem;
}

.site-footer {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem clamp(1rem, 3vw, 3rem);
    border-top: 1px solid var(--line);
    background: #05070d;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}

.legal-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 8%, rgba(255, 48, 48, 0.16), transparent 28rem),
        linear-gradient(180deg, #070910 0, #0d111c 32rem, #070910 100%);
}

.legal-hero {
    min-height: 48vh;
    display: grid;
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.legal-hero .section-shell {
    padding-top: 9rem;
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.legal-hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 8vw, 8rem);
}

.legal-content {
    background: #070910;
}

.legal-shell {
    display: grid;
    gap: 1px;
}

.legal-block {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
        rgba(13, 17, 28, 0.78);
}

.legal-block h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.1;
}

.legal-block p {
    max-width: 74rem;
    margin: 0;
    color: var(--muted);
}

.legal-block p + p {
    margin-top: 0.85rem;
}

.legal-block a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 48, 48, 0.7);
    text-underline-offset: 0.18rem;
}

.legal-block code {
    color: #fff;
    font-family: var(--mono);
}
.streamer-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 6%, rgba(255, 48, 48, 0.18), transparent 28rem),
        linear-gradient(180deg, #070910 0, #0d111c 34rem, #070910 100%);
}

.workshop-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 4%, rgba(255, 48, 48, 0.18), transparent 28rem),
        linear-gradient(180deg, #070910 0, #10141f 36rem, #070910 100%);
}

.workshop-hero {
    padding-top: 10rem;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.workshop-hero h1 {
    max-width: 11ch;
    font-size: clamp(3.5rem, 8vw, 8.5rem);
}

.workshop-hero .hero-copy {
    max-width: 54rem;
}

.workshop-shell {
    padding-bottom: clamp(4rem, 7vw, 7rem);
}

.workshop-grid {
    display: grid;
    grid-template-columns: minmax(20rem, 0.72fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.workshop-card {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.08), transparent 32rem),
        rgba(13, 17, 28, 0.78);
    box-shadow: 0 1.4rem 5rem rgba(0, 0, 0, 0.28);
}

.workshop-card--controls {
    position: sticky;
    top: 6.5rem;
    padding: 1rem;
}

.workshop-card--result {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.workshop-drop {
    display: grid;
    min-height: 14rem;
    place-items: center;
    gap: 0.65rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 48, 48, 0.62);
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.22), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.04);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.workshop-drop.is-dragging {
    border-color: rgba(255, 255, 255, 0.86);
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.34), rgba(255, 255, 255, 0.09)),
        rgba(255, 255, 255, 0.08);
    box-shadow: 0 1.4rem 3rem rgba(255, 48, 48, 0.18);
}

.workshop-drop input {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.workshop-drop span,
.workshop-group h2,
.workshop-ranges label,
.workshop-note,
.workshop-files span {
    font-family: var(--mono);
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0;
}

.workshop-drop span {
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 900;
}

.workshop-drop strong {
    color: #fff;
    word-break: break-word;
}

.workshop-drop small {
    color: var(--muted);
}

.workshop-group {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.workshop-group h2 {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    color: #fff;
}

.workshop-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.workshop-options label {
    display: grid;
}

.workshop-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.workshop-options span {
    min-height: 3rem;
    display: grid;
    place-items: center;
    padding: 0.55rem;
    text-align: center;
    font-family: var(--mono);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
}

.workshop-options input:checked + span {
    color: #fff;
    border-color: rgba(255, 48, 48, 0.88);
    background: linear-gradient(135deg, #ff3030, #a80012);
    box-shadow: 0 1rem 2.6rem rgba(255, 48, 48, 0.22);
}

.workshop-ranges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.workshop-ranges label {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
}

.workshop-ranges strong {
    display: block;
    font-family: var(--display);
    font-size: 1.55rem;
    color: #fff;
}

.workshop-ranges input[type="range"] {
    width: 100%;
    accent-color: #ff3030;
}

.workshop-ranges select {
    width: 100%;
    min-height: 2.6rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #171b25;
}

.workshop-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.workshop-note {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

.workshop-card-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.workshop-card-head h2 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 3rem);
}

.workshop-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #111722;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 26px 26px;
    background-position: 0 0, 0 13px, 13px -13px, -13px 0;
}

.workshop-thumb img,
.workshop-thumb svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.workshop-thumb--source {
    height: 14rem;
    margin-bottom: 1rem;
}

.workshop-thumb--source span {
    font-family: var(--mono);
    text-transform: uppercase;
    color: var(--muted);
}

.workshop-thumb--combined {
    height: 16rem;
    margin-bottom: 1rem;
}

.workshop-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.workshop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem 0.3rem 0.35rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.workshop-chip i {
    width: 0.85rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--swatch, #fff);
}

.workshop-alert {
    margin-bottom: 1rem;
    padding: 1rem;
    color: #fff;
    border: 1px solid rgba(255, 48, 48, 0.7);
    background: rgba(255, 48, 48, 0.12);
}

.workshop-empty-hint {
    font-family: var(--mono);
    text-transform: uppercase;
    color: var(--muted);
}

.workshop-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
}

.workshop-files article {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
}

.workshop-files article.is-large {
    border-color: rgba(255, 48, 48, 0.5);
}

.workshop-files .workshop-thumb {
    height: 9rem;
}

.workshop-files h3 {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: #fff;
    word-break: break-word;
}

.workshop-files-meta {
    margin: 0;
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--muted);
}

.workshop-bar {
    height: 0.3rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.workshop-bar i {
    display: block;
    height: 100%;
    background: #49f08f;
}

.workshop-bar i.is-tight {
    background: #ff3030;
}

.workshop-swatches {
    display: flex;
    gap: 0.3rem;
}

.workshop-swatches i {
    width: 0.9rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.workshop-files a {
    justify-self: start;
}

.streamer-hero {
    padding-top: 10rem;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.streamer-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 8vw, 8rem);
}

.streamer-shell {
    padding-top: 0;
}

.streamer-notice,
.streamer-sources,
.streamer-custom,
.streamer-flash {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(13, 17, 28, 0.84);
    padding: clamp(1rem, 3vw, 1.6rem);
}

.streamer-notice h2,
.streamer-sources h2,
.streamer-custom h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.streamer-notice p,
.streamer-sources p {
    max-width: 64rem;
    color: var(--muted);
}

.streamer-class-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-family: var(--mono);
    text-transform: uppercase;
}

.streamer-subnav {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1.2rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.streamer-subnav button {
    min-height: 2.45rem;
    padding: 0 1rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--mono);
    font-weight: 900;
    text-transform: uppercase;
}

.streamer-subnav button.is-active {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
}

.streamer-panel {
    display: none;
}

.streamer-panel.is-active {
    display: block;
}

.streamdeck-status {
    min-height: 2rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.streamdeck-status.is-visible {
    color: #fff;
}

.streamdeck-status.is-error {
    color: var(--red);
}

.streamer-class-picker label {
    color: var(--muted);
    font-size: 0.72rem;
}

.streamer-class-picker select,
.streamer-sources input,
.streamer-custom input,
.streamer-custom textarea {
    min-height: 2.8rem;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font: inherit;
}

.streamer-class-picker select {
    padding: 0 0.8rem;
}

.streamer-sources {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.streamer-sources label {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.streamer-sources input {
    width: 100%;
    padding: 0 0.75rem;
    font-size: 0.76rem;
}

.streamer-settings-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.streamer-settings-form .button {
    grid-column: 1 / -1;
    width: fit-content;
}

.streamdeck {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.3vw, 1rem);
    padding: clamp(1rem, 2vw, 1.4rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        #080a10;
    box-shadow: inset 0 0 0 0.5rem rgba(0, 0, 0, 0.22), 0 2rem 5rem rgba(0, 0, 0, 0.38);
}

.streamdeck-form {
    min-width: 0;
}

.streamdeck-key {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 0.86;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 52%),
        linear-gradient(180deg, #1b202a, #080a10);
    color: #fff;
    cursor: pointer;
    font-family: var(--mono);
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0.7rem 1.3rem rgba(0, 0, 0, 0.45);
}

.streamdeck-key:hover,
.streamdeck-key:focus-visible {
    border-color: rgba(255, 48, 48, 0.65);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 48, 48, 0.2), transparent 54%),
        linear-gradient(180deg, #202632, #0b0d13);
}

.streamdeck-key img {
    max-width: 56%;
    max-height: 42%;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.14));
}

.streamdeck-key span {
    max-width: calc(100% - 1rem);
    color: #fff;
    font-size: clamp(0.72rem, 0.95vw, 0.9rem);
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    overflow-wrap: anywhere;
}

.streamdeck-key small {
    max-width: calc(100% - 1rem);
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.streamer-custom {
    margin-top: 1.2rem;
}

.streamer-custom form {
    display: grid;
    gap: 0.9rem;
}

.streamer-custom label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.streamer-custom input,
.streamer-custom textarea,
.streamer-custom select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: var(--sans);
    text-transform: none;
}

.streamer-custom textarea {
    min-height: 7rem;
    resize: vertical;
}

.custom-button-list {
    display: grid;
    gap: 1rem;
}

.custom-button-editor {
    display: grid;
    grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.custom-button-preview {
    width: 100%;
    aspect-ratio: 1 / 0.82;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 52%),
        linear-gradient(180deg, #1b202a, #080a10);
}

.custom-button-preview-empty {
    display: grid;
    place-items: center;
    color: var(--red);
    font-family: var(--mono);
    font-weight: 900;
}

.custom-button-editor form:first-of-type {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.custom-button-editor textarea,
.custom-button-actions {
    grid-column: 1 / -1;
}

.custom-delete-button {
    white-space: nowrap;
}

.overlay-body {
    margin: 0;
    overflow: hidden;
    background: transparent;
}

.nsl-overlay {
    width: 100vw;
    height: 100vh;
    display: grid;
    align-items: end;
    justify-items: start;
    padding: 4rem;
    background: transparent;
}

.nsl-overlay[data-position^="top"] {
    align-items: start;
}

.nsl-overlay[data-position^="middle"] {
    align-items: center;
}

.nsl-overlay[data-position^="bottom"] {
    align-items: end;
}

.nsl-overlay[data-position$="left"] {
    justify-items: start;
}

.nsl-overlay[data-position$="center"] {
    justify-items: center;
}

.nsl-overlay[data-position$="right"] {
    justify-items: end;
}

.nsl-overlay-card {
    display: grid;
    grid-template-columns: minmax(10rem, 18rem) minmax(0, 1fr);
    gap: 1.4rem;
    width: min(58rem, 92vw);
    min-height: 14rem;
    padding: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 48, 48, 0.28), transparent 46%),
        rgba(7, 9, 16, 0.9);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.52);
    animation: overlay-slide-up 360ms ease both;
}

.nsl-overlay-card[hidden] {
    display: none !important;
}

.nsl-overlay[data-animation="slide-down"] .nsl-overlay-card {
    animation-name: overlay-slide-down;
}

.nsl-overlay[data-animation="slide-left"] .nsl-overlay-card {
    animation-name: overlay-slide-left;
}

.nsl-overlay[data-animation="slide-right"] .nsl-overlay-card {
    animation-name: overlay-slide-right;
}

.nsl-overlay[data-animation="fade"] .nsl-overlay-card {
    animation-name: overlay-fade;
}

.nsl-overlay[data-animation="zoom"] .nsl-overlay-card {
    animation-name: overlay-zoom;
}

@keyframes overlay-slide-up {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes overlay-slide-down {
    from { opacity: 0; transform: translateY(-2rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes overlay-slide-left {
    from { opacity: 0; transform: translateX(2rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes overlay-slide-right {
    from { opacity: 0; transform: translateX(-2rem); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes overlay-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlay-zoom {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.nsl-overlay-media {
    display: grid;
    min-height: 11rem;
    place-items: center;
    background: rgba(0, 0, 0, 0.26);
}

.nsl-overlay-media img {
    max-width: 90%;
    max-height: 10rem;
    object-fit: contain;
}

.nsl-overlay-copy p:first-child {
    margin: 0 0 0.35rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nsl-overlay-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 4vw, 4.6rem);
}

.nsl-overlay-copy h2 {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.6rem);
}

.nsl-overlay-copy p:not(:first-child) {
    margin: 0.7rem 0 0;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 2rem);
}

.nsl-overlay-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 1rem;
}

.nsl-overlay-list div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.055);
}

.nsl-overlay-list strong {
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.8rem;
}

.nsl-overlay-list span {
    color: #fff;
    font-weight: 800;
}

.nsl-overlay-list em {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.nsl-overlay[data-kind="table"] .nsl-overlay-card {
    width: min(78rem, 94vw);
    grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr);
}

.nsl-overlay[data-kind="table"] .nsl-overlay-media {
    min-height: 100%;
}

.nsl-overlay[data-kind="table"] .nsl-overlay-media img {
    max-width: 100%;
    max-height: 18rem;
}

.nsl-overlay[data-kind="table"] .nsl-overlay-copy h1 {
    font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.nsl-overlay[data-kind="table"] .nsl-overlay-copy p:not(:first-child) {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="table"] .nsl-overlay-list {
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.nsl-overlay-list .standings-row {
    display: grid;
    grid-template-columns: 3.2rem minmax(11rem, 1fr) minmax(18rem, 1.35fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 4.35rem;
    padding: 0.45rem 0.65rem;
}

.standings-row > strong {
    color: #090a0f;
    background: linear-gradient(135deg, #fbb85f, #ff332f);
    border-radius: 999px;
    padding: 0.35rem 0.45rem;
    text-align: center;
}

.standings-team {
    min-width: 0;
    display: grid;
    grid-template-columns: 2.7rem minmax(0, 1fr);
    gap: 0.6rem;
    align-items: center;
    align-self: stretch;
}

.standings-team img {
    width: 2.7rem;
    height: 2.7rem;
    object-fit: contain;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
}

.standings-team b,
.standings-team small {
    grid-column: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-team b {
    color: #fff;
}

.standings-team small {
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.standings-cars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.standings-car {
    min-width: 0;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: center;
}

.standings-car img {
    width: 4.5rem;
    height: 2.45rem;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.24);
}

.standings-car-copy {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.standings-car-copy em {
    grid-column: auto;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standings-car-copy small {
    overflow: hidden;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.standings-row > em {
    grid-column: auto;
    color: #fff;
    font-family: var(--mono);
    font-weight: 900;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card {
    position: relative;
    width: min(72rem, 94vw);
    display: block;
    min-height: 14.5rem;
    max-height: 18.5rem;
    padding: 0.85rem;
    overflow: hidden;
    border-color: rgba(255, 48, 48, 0.5);
    background:
        radial-gradient(circle at 88% 22%, rgba(255, 48, 48, 0.25), transparent 24rem),
        linear-gradient(135deg, rgba(255, 48, 48, 0.16), transparent 38%),
        rgba(7, 9, 16, 0.94);
    box-shadow: 0 0 0 1px rgba(255, 48, 48, 0.12) inset, 0 2rem 5rem rgba(0, 0, 0, 0.56);
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card::before,
.nsl-overlay[data-kind="team"] .nsl-overlay-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card::before {
    inset: 0;
    opacity: 0.42;
    background:
        repeating-linear-gradient(165deg, rgba(255, 48, 48, 0.12) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 78px);
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card::after {
    top: 0;
    right: -18rem;
    width: 18rem;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 48, 48, 0.18), transparent);
    animation: team-sweep 3.8s linear infinite;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-media {
    display: none;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-media img {
    max-width: 92%;
    max-height: 5.4rem;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 8.4rem minmax(0, 1fr) 14.2rem;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.45rem 0.7rem;
    height: 100%;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    max-width: 24ch;
    font-size: clamp(1.45rem, 2.65vw, 3.05rem);
    line-height: 0.9;
    font-style: italic;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy h2 {
    display: none;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy p:not(:first-child) {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 0.05rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    margin-top: 0;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card {
    width: min(78rem, 94vw);
    min-height: 18rem;
    max-height: none;
    padding: 0.9rem;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy {
    display: block;
    height: auto;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy > p,
.nsl-overlay[data-kind="team"] .nsl-overlay-copy > h1,
.nsl-overlay[data-kind="team"] .nsl-overlay-copy > h2,
.nsl-overlay[data-kind="team"] .nsl-overlay-media {
    display: none;
}

.team-spotlight-v2 {
    display: grid;
    grid-template-columns: 17rem minmax(0, 0.78fr) minmax(14rem, 0.92fr);
    grid-template-rows: auto auto auto;
    gap: 0.65rem 0.8rem;
}

.team-v2-brand {
    grid-column: 1;
    grid-row: 1 / -1;
    display: grid;
    align-items: center;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 48, 48, 0.34);
    background: rgba(0, 0, 0, 0.28);
}

.team-v2-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 44% center;
    opacity: 0.92;
}

.team-v2-head {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 4.35rem;
}

.team-v2-head img {
    width: 3.7rem;
    height: 3.3rem;
    object-fit: contain;
    filter: drop-shadow(0 0 0.8rem rgba(255, 48, 48, 0.34));
}

.team-v2-head p {
    display: block;
    margin: 0 0 0.22rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-v2-head h1 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1.65rem, 2.75vw, 3rem);
    font-style: italic;
    line-height: 0.92;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-v2-head span {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.team-v2-drivers,
.team-v2-standings,
.team-v2-cars {
    min-width: 0;
    border: 1px solid rgba(255, 48, 48, 0.34);
    background: rgba(0, 0, 0, 0.36);
}

.team-v2-drivers {
    grid-column: 2;
    padding: 0.55rem;
}

.team-v2-drivers h2,
.team-v2-standings h2 {
    display: flex;
    justify-content: space-between;
    margin: 0 0 0.45rem;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.team-v2-drivers h2 span,
.team-v2-standings h2 span {
    color: var(--muted);
}

.team-v2-drivers > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.22rem;
}

.team-v2-drivers .team-driver-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
    gap: 0.28rem;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.22rem 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-v2-drivers .team-driver-row strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-v2-drivers .team-driver-row span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 900;
    white-space: nowrap;
}

.team-v2-drivers .team-driver-row b {
    margin-right: 0.12rem;
    color: var(--red);
    font-weight: 900;
}

.team-empty-drivers {
    margin: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.team-v2-standings {
    grid-column: 3;
    padding: 0.55rem;
}

.team-v2-standings .team-standing-row {
    display: grid;
    grid-template-columns: 2.4rem minmax(18rem, 1fr) 5rem;
    gap: 0.55rem;
    align-items: center;
    min-height: 1.58rem;
    padding: 0.18rem 0.28rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-v2-standings .team-standing-row.is-active {
    background: linear-gradient(90deg, rgba(255, 48, 48, 0.24), transparent);
}

.team-v2-standings .team-standing-row strong,
.team-v2-standings .team-standing-row em {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.team-v2-standings .team-standing-row.is-active strong,
.team-v2-standings .team-standing-row.is-active em {
    color: var(--red);
}

.team-v2-standings .team-standing-row span {
    overflow: hidden;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-v2-standings .team-standing-row span {
    display: block;
    min-width: 0;
    padding: 0;
    background: transparent;
}

.team-v2-cars {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    padding: 0.55rem;
}

.team-v2-cars .team-car-card {
    display: grid;
    grid-template-columns: minmax(7rem, 0.42fr) minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 3.9rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.team-v2-cars .team-car-card img {
    width: 100%;
    height: 3.6rem;
    object-fit: contain;
    filter: drop-shadow(0 0.7rem 0.65rem rgba(0, 0, 0, 0.74));
}

.team-v2-cars .team-car-card footer {
    display: grid;
    gap: 0.15rem;
}

.team-v2-cars .team-car-card strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-v2-cars .team-car-card span {
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card {
    width: min(96rem, 96vw);
    min-height: 28rem;
    padding: 0;
    border: 2px solid rgba(255, 48, 48, 0.88);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 88% 35%, rgba(255, 48, 48, 0.24), transparent 22rem),
        radial-gradient(circle at 42% 0%, rgba(255, 48, 48, 0.13), transparent 26rem),
        linear-gradient(135deg, rgba(255, 48, 48, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(16, 18, 24, 0.98), rgba(5, 7, 12, 0.98));
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list {
    margin: 0;
}

.team-classic {
    position: relative;
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr) minmax(24rem, 0.88fr);
    grid-template-rows: minmax(0, 1fr) 3.6rem;
    gap: 1rem;
    min-height: 28rem;
    padding: 1.1rem;
    overflow: hidden;
}

.team-classic::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.48;
    pointer-events: none;
    background:
        repeating-linear-gradient(165deg, rgba(255, 48, 48, 0.11) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 78px);
}

.team-classic > * {
    position: relative;
    z-index: 1;
}

.team-classic-rail {
    display: grid;
    grid-template-rows: 12rem 1fr;
    gap: 1rem;
}

.team-classic-logo,
.team-classic-position,
.team-classic-panel,
.team-classic-car,
.team-classic-footer {
    border: 1px solid rgba(255, 48, 48, 0.86);
    background: rgba(0, 0, 0, 0.58);
    box-shadow: 0 0 0 1px rgba(255, 48, 48, 0.16) inset;
}

.team-classic-logo {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.78));
}

.team-classic-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0.8rem 0.8rem rgba(0, 0, 0, 0.7));
}

.team-classic-position {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.55rem;
    text-transform: uppercase;
}

.team-classic-position span {
    color: #ff7b7b;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.team-classic-position strong {
    color: #fff;
    font-size: 4.6rem;
    line-height: 0.86;
}

.team-classic-position em {
    width: 3.3rem;
    height: 3.3rem;
    display: grid;
    place-items: center;
    border: 4px solid currentColor;
    border-radius: 50%;
    font-size: 2.2rem;
    font-style: normal;
}

.team-classic-content {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 0.9rem;
}

.team-classic-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.team-classic-kicker b {
    color: var(--red);
}

.team-classic-content h1 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(2.2rem, 4.3vw, 4.6rem);
    font-style: italic;
    line-height: 0.9;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.team-classic-panel h2 {
    display: grid;
    grid-template-columns: 1fr auto;
    margin: 0;
    background: linear-gradient(90deg, var(--red), rgba(255, 48, 48, 0.6), rgba(255, 48, 48, 0.06));
    color: #050505;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.team-classic-panel h2 span,
.team-classic-panel h2 em {
    padding: 0.55rem 1rem;
    font-style: normal;
}

.team-classic-panel h2 em {
    min-width: 11rem;
    background: rgba(0, 0, 0, 0.58);
    color: #ff7b7b;
    text-align: right;
}

.team-classic-driver-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7rem minmax(0, 1fr) 7rem;
}

.team-classic-driver,
.team-classic-stats,
.team-classic-standing-row > * {
    min-height: 1.55rem;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0.7rem;
}

.team-classic-driver b {
    overflow: hidden;
    color: #fff;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-classic-stats {
    justify-content: end;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.team-classic-standing-row {
    display: grid;
    grid-template-columns: 5.8rem minmax(0, 1fr) 6rem;
}

.team-classic-standing-row > * {
    min-height: 1.65rem;
}

.team-classic-standing-row strong,
.team-classic-standing-row em {
    color: #fff;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 900;
}

.team-classic-standing-row span {
    overflow: hidden;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-classic-standing-row em {
    justify-content: end;
}

.team-classic-standing-row.is-active > * {
    color: var(--red);
    background: rgba(255, 48, 48, 0.16);
    border-top-color: rgba(255, 48, 48, 0.72);
}

.team-classic-cars {
    display: grid;
    align-content: center;
    gap: 1.2rem;
}

.team-classic-car {
    display: grid;
    grid-template-rows: 2.4rem 1fr;
    min-height: 10rem;
    overflow: hidden;
}

.team-classic-car header {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    align-items: center;
    border-bottom: 1px solid rgba(255, 48, 48, 0.66);
    font-family: var(--mono);
    font-weight: 900;
    text-transform: uppercase;
}

.team-classic-car header strong {
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--red);
    color: #050505;
}

.team-classic-car header span {
    overflow: hidden;
    padding: 0 0.75rem;
    color: #fff;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-classic-car header em {
    padding-right: 0.75rem;
    color: var(--red);
    font-style: normal;
}

.team-classic-car img {
    width: 100%;
    height: 8.2rem;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.78)) drop-shadow(0 0 0.8rem rgba(255, 48, 48, 0.22));
}

.team-classic-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    overflow: hidden;
    white-space: nowrap;
}

.team-classic-footer strong {
    color: var(--red);
    font-size: 1.55rem;
    font-style: italic;
    text-transform: uppercase;
}

.team-classic-footer span {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

.team-classic-footer b {
    color: var(--red);
}

.team-classic-footer i {
    color: rgba(255, 255, 255, 0.38);
    font-style: normal;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list > div:not(.team-classic) {
    min-height: 0;
    padding: 0;
    background: transparent;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list .team-driver-row,
.nsl-overlay[data-kind="team"] .nsl-overlay-list .team-standing-row {
    padding: 0.22rem 0.35rem;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list .team-v2-standings .team-standing-row {
    padding: 0.18rem 0.28rem;
}

.team-spotlight {
    display: grid;
    grid-template-columns: 8.4rem minmax(0, 1fr) 14.2rem;
    grid-template-rows: 1fr 1fr;
    gap: 0.45rem 0.7rem;
    height: 100%;
}

.team-spotlight .team-rank-card {
    grid-column: 1;
    grid-row: 1 / -1;
}

.team-rank-card,
.team-panel,
.team-car-card {
    border: 1px solid rgba(255, 48, 48, 0.34);
    background: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 1px rgba(255, 48, 48, 0.08) inset;
}

.team-rank-card {
    display: grid;
    place-items: center;
    grid-template-rows: 1fr auto;
    gap: 0.35rem;
    padding: 0.38rem;
    text-transform: uppercase;
}

.team-rank-card img {
    max-width: 92%;
    max-height: 4.8rem;
    object-fit: contain;
    align-self: end;
    animation: team-logo-pulse 2.8s ease-in-out infinite;
}

.team-rank-card div {
    display: grid;
    place-items: center;
    gap: 0.12rem;
}

.team-rank-card span,
.team-panel h3 span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.52rem;
}

.team-rank-card strong {
    color: #fff;
    font-size: 1.9rem;
    line-height: 0.9;
}

.team-rank-card em {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-style: normal;
}

.trend-up { color: #23ff73; }
.trend-same { color: #fbb85f; }
.trend-down { color: #ff3154; }

.team-panel {
    min-width: 0;
    padding: 0.38rem 0.5rem;
}

.team-drivers {
    grid-column: 2;
    grid-row: 1;
}

.team-standing {
    grid-column: 2;
    grid-row: 2;
}

.team-panel h3 {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    margin: 0 0 0.25rem;
    color: #fff;
    font-family: var(--mono);
    font-size: 0.56rem;
    text-transform: uppercase;
}

.team-driver-row,
.team-standing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 0.5rem;
    min-height: 1.08rem;
    align-items: center;
    padding: 0.06rem 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-standing-row {
    grid-template-columns: 1.8rem minmax(0, 1fr) 3.2rem;
}

.team-standing-row.is-active {
    color: var(--red);
    background: linear-gradient(90deg, rgba(255, 48, 48, 0.22), transparent);
}

.team-driver-row span,
.team-standing-row span {
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.64rem;
}

.team-driver-row em,
.team-standing-row em,
.team-standing-row strong {
    color: var(--muted);
    font-family: var(--mono);
    font-style: normal;
    font-weight: 900;
    grid-column: auto !important;
    font-size: 0.58rem;
    white-space: nowrap;
    text-align: right;
}

.team-cars {
    grid-column: 3;
    grid-row: 1 / -1;
    display: grid;
    gap: 0.35rem;
    align-content: stretch;
}

.team-car-card {
    display: grid;
    align-content: start;
    gap: 0.1rem;
    padding: 0.34rem;
    min-height: 0;
}

.team-car-card header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.3rem;
    align-items: center;
    font-family: var(--mono);
    text-transform: uppercase;
}

.team-car-card header strong {
    color: var(--red);
}

.team-car-card header span {
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.58rem;
}

.team-car-card header em {
    grid-column: auto !important;
    color: var(--red);
    font-style: normal;
    font-weight: 900;
    font-size: 0.58rem;
    white-space: nowrap;
}

.team-car-card img {
    width: 100%;
    height: 4.15rem;
    object-fit: contain;
    filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.78)) drop-shadow(0 0 0.8rem rgba(255, 48, 48, 0.2));
}

@keyframes team-sweep {
    from { transform: translateX(0); }
    to { transform: translateX(-100rem); }
}

@keyframes team-logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 0.6rem rgba(255, 48, 48, 0.34)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 1.2rem rgba(255, 48, 48, 0.7)); transform: scale(1.018); }
}

.nsl-overlay[data-kind="team"] .nsl-overlay-card {
    width: 1350px;
    height: 520px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--red);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 35%, rgba(255, 48, 48, 0.32), transparent 23%),
        radial-gradient(circle at 45% 0%, rgba(255, 48, 48, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 48, 48, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(16, 18, 20, 0.97), rgba(5, 7, 10, 0.98));
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 26px rgba(255,48,48,.36), 0 18px 48px rgba(0,0,0,.72);
}

.nsl-overlay[data-kind="team"] .nsl-overlay-copy {
    display: block;
    height: 100%;
}

.nsl-overlay[data-kind="team"] .nsl-overlay-list {
    height: 100%;
    margin: 0;
}

.nsl-overlay[data-kind="team"] .team-classic {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: #f8f8f8;
}

.nsl-overlay[data-kind="team"] .team-classic::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background:
        repeating-linear-gradient(165deg, rgba(255, 48, 48, .12) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 78px);
}

.nsl-overlay[data-kind="team"] .team-classic::after {
    content: "";
    position: absolute;
    right: -240px;
    top: 0;
    width: 520px;
    height: 100%;
    pointer-events: none;
    opacity: .9;
    background: linear-gradient(110deg, transparent, rgba(255,48,48,.13), transparent);
    animation: sweep 3.8s linear infinite;
}

.nsl-overlay[data-kind="team"] .team-classic-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.nsl-overlay[data-kind="team"] .team-classic-lines span {
    position: absolute;
    right: -250px;
    width: 340px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8a8a, transparent);
    box-shadow: 0 0 14px var(--red);
    transform: skewX(-24deg);
    animation: glowLine 2.9s linear infinite;
    opacity: .9;
}

.nsl-overlay[data-kind="team"] .team-classic-lines span:nth-child(1) { top: 78px; animation-delay: 0s; }
.nsl-overlay[data-kind="team"] .team-classic-lines span:nth-child(2) { top: 145px; width: 430px; animation-delay: .7s; }
.nsl-overlay[data-kind="team"] .team-classic-lines span:nth-child(3) { top: 305px; width: 390px; animation-delay: 1.35s; }
.nsl-overlay[data-kind="team"] .team-classic-lines span:nth-child(4) { top: 455px; width: 500px; animation-delay: 2.05s; }

.nsl-overlay[data-kind="team"] .team-classic-rail {
    position: absolute;
    left: 25px;
    top: 25px;
    z-index: 3;
    display: block;
    width: 170px;
    height: 470px;
}

.nsl-overlay[data-kind="team"] .team-classic-logo {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 170px;
    height: 170px;
    padding: 4px;
    border: 0;
    clip-path: polygon(10% 0, 90% 0, 100% 11%, 100% 89%, 90% 100%, 10% 100%, 0 89%, 0 11%);
    background: linear-gradient(180deg, rgba(255,48,48,.62), rgba(255,48,48,.08));
    filter: drop-shadow(0 0 12px rgba(255,48,48,.48));
    animation: logoPulseRed 2.8s ease-in-out infinite;
}

.nsl-overlay[data-kind="team"] .team-classic-logo > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    clip-path: inherit;
    background: radial-gradient(circle, rgba(255,255,255,.08), rgba(0,0,0,.78));
}

.nsl-overlay[data-kind="team"] .team-classic-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,.72));
}

.nsl-overlay[data-kind="team"] .team-classic-position {
    position: absolute;
    left: 0;
    top: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 215px;
    border: 1px solid rgba(255,48,48,.88);
    clip-path: polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);
    background: linear-gradient(135deg, rgba(255,48,48,.15), transparent 45%), linear-gradient(180deg, rgba(5,7,10,.93), rgba(10,12,16,.96));
    box-shadow: 0 0 0 2px rgba(255,48,48,.20) inset, 0 0 18px rgba(255,48,48,.25);
}

.nsl-overlay[data-kind="team"] .team-classic-position span {
    margin-bottom: 10px;
    color: #ff8a8a;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .team-classic-position strong {
    color: #fff;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 72px;
    line-height: .86;
    text-shadow: 0 0 18px rgba(255,255,255,.16);
}

.nsl-overlay[data-kind="team"] .team-classic-position em {
    width: 58px;
    height: 58px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid currentColor;
    border-radius: 50%;
    font-size: 31px;
    font-style: normal;
    box-shadow: 0 0 16px currentColor, 0 0 22px rgba(0,0,0,.65) inset;
}

.nsl-overlay[data-kind="team"] .team-classic-position .trend-up { color: #23ff73; }
.nsl-overlay[data-kind="team"] .team-classic-position .trend-same { color: #ff8a8a; }
.nsl-overlay[data-kind="team"] .team-classic-position .trend-down { color: var(--red); }

.nsl-overlay[data-kind="team"] .team-classic-content {
    position: absolute;
    left: 220px;
    top: 30px;
    z-index: 3;
    display: block;
    width: 550px;
    height: 405px;
}

.nsl-overlay[data-kind="team"] .team-classic-kicker {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .team-classic-kicker b {
    margin: 0 9px;
    color: var(--red);
}

.nsl-overlay[data-kind="team"] .team-classic-content h1 {
    width: 610px;
    margin: 9px 0 0;
    overflow: hidden;
    color: #f4f4f4;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 46px;
    font-style: italic;
    letter-spacing: 1px;
    line-height: .96;
    text-overflow: ellipsis;
    text-shadow: 0 3px 0 rgba(0,0,0,.68), 0 0 14px rgba(255,255,255,.15);
    text-transform: uppercase;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-panel {
    width: 550px;
    overflow: hidden;
    border: 1px solid rgba(255,48,48,.88);
    clip-path: polygon(2.3% 0, 100% 0, 100% 90%, 98% 100%, 0 100%, 0 11%);
    background: rgba(0,0,0,.62);
    box-shadow: 0 0 0 1px rgba(255,48,48,.22) inset, 0 10px 20px rgba(0,0,0,.34);
}

.nsl-overlay[data-kind="team"] .team-classic-drivers {
    height: 148px;
    margin-top: 20px;
}

.nsl-overlay[data-kind="team"] .team-classic-standings {
    height: 152px;
    margin-top: 14px;
}

.nsl-overlay[data-kind="team"] .team-classic-panel h2 {
    height: 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 22px;
    background: linear-gradient(90deg, var(--red), rgba(255,48,48,.68), rgba(255,48,48,.06));
    color: #050505;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .team-classic-panel h2 span,
.nsl-overlay[data-kind="team"] .team-classic-panel h2 em {
    padding: 0;
}

.nsl-overlay[data-kind="team"] .team-classic-panel h2 em {
    min-width: 150px;
    padding: 7px 0 7px 10px;
    background: rgba(0,0,0,.58);
    color: #ff8a8a;
    font-style: normal;
    text-align: right;
}

.nsl-overlay[data-kind="team"] .team-classic-driver-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr) 78px;
    gap: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.nsl-overlay[data-kind="team"] .team-classic-driver,
.nsl-overlay[data-kind="team"] .team-classic-stats {
    grid-column: auto;
    height: 27px;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 0 10px;
    color: #f6f6f6;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-driver b {
    overflow: hidden;
    color: #f6f6f6;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-driver::before {
    content: "";
    width: 13px;
    height: 9px;
    margin-right: 8px;
    border-radius: 8px 8px 2px 2px;
    background: var(--red);
    box-shadow: 0 0 7px rgba(255,48,48,.8);
}

.nsl-overlay[data-kind="team"] .team-classic-stats {
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    letter-spacing: .2px;
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row {
    display: grid;
    grid-template-columns: 105px 1fr 150px;
    gap: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row > * {
    grid-column: auto;
    height: 22px;
    min-height: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 0 10px;
    color: #f6f6f6;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row strong,
.nsl-overlay[data-kind="team"] .team-classic-standing-row em {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row em {
    justify-content: flex-end;
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row.is-active > * {
    color: var(--red);
    background: linear-gradient(90deg, rgba(255,48,48,.27), rgba(255,48,48,.08));
    border-top: 1px solid var(--red);
    border-bottom: 1px solid var(--red);
    text-shadow: 0 0 10px rgba(255,48,48,.45);
}

.nsl-overlay[data-kind="team"] .team-classic-standing-row.is-active strong::before {
    content: "›";
    margin-right: 6px;
    font-size: 22px;
    line-height: 0;
}

.nsl-overlay[data-kind="team"] .team-classic-cars {
    position: absolute;
    right: 25px;
    top: 92px;
    z-index: 3;
    display: block;
    width: 520px;
    height: 340px;
}

.nsl-overlay[data-kind="team"] .team-classic-car {
    position: absolute;
    right: 0;
    top: 0;
    width: 500px;
    height: 155px;
    min-height: 0;
    display: block;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.nsl-overlay[data-kind="team"] .team-classic-car:nth-child(2) {
    top: 178px;
}

.nsl-overlay[data-kind="team"] .team-classic-car header {
    height: 30px;
    display: grid;
    grid-template-columns: 80px 1fr 42px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,48,48,.88);
    clip-path: polygon(5% 0, 100% 0, 98% 100%, 0 100%);
    background: rgba(0,0,0,.68);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .team-classic-car header strong {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--red), #ff7676);
    color: #050505;
}

.nsl-overlay[data-kind="team"] .team-classic-car header span {
    grid-column: auto;
    overflow: hidden;
    padding-left: 16px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-car header em {
    grid-column: auto;
    color: var(--red);
    font-style: normal;
    text-align: center;
}

.nsl-overlay[data-kind="team"] .team-classic-car img {
    position: absolute;
    right: 5px;
    top: 30px;
    z-index: 2;
    width: 455px;
    height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 16px 14px rgba(0,0,0,.78)) drop-shadow(0 0 12px rgba(255,48,48,.24));
}

.nsl-overlay[data-kind="team"] .team-classic-car::after {
    content: "";
    position: absolute;
    left: 50px;
    right: 20px;
    bottom: 13px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,.88), transparent 70%);
    filter: blur(5px);
}

.nsl-overlay[data-kind="team"] .team-classic-footer {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 20px;
    z-index: 5;
    height: 55px;
    display: flex;
    align-items: center;
    overflow: hidden;
    gap: 18px;
    padding-left: 105px;
    border: 1px solid rgba(255,48,48,.88);
    clip-path: polygon(2% 0, 100% 0, 100% 78%, 98.5% 100%, 0 100%, 0 20%);
    background: linear-gradient(90deg, rgba(255,48,48,.18), rgba(0,0,0,.76) 15%, rgba(0,0,0,.62));
    box-shadow: 0 0 0 1px rgba(255,48,48,.22) inset;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.nsl-overlay[data-kind="team"] .team-classic-footer::before {
    content: "T";
    position: absolute;
    left: 28px;
    width: 50px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid rgba(255,48,48,.55);
    color: #ff8a8a;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 25px;
}

.nsl-overlay[data-kind="team"] .team-classic-footer strong {
    margin-right: 4px;
    color: var(--red);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 26px;
    font-style: italic;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="team"] .team-classic-footer span {
    color: #fff;
}

.nsl-overlay[data-kind="team"] .team-classic-footer b {
    color: var(--red);
}

.nsl-overlay[data-kind="team"] .team-classic-footer i {
    color: rgba(255,255,255,.4);
    font-style: normal;
}

@keyframes logoPulseRed {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255,48,48,.42)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 20px rgba(255,48,48,.85)); transform: scale(1.025); }
}

.nsl-overlay[data-kind="drivers"] .nsl-overlay-card {
    width: min(62rem, 96vw);
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 1.05rem;
    border: 1px solid rgba(255, 48, 48, 0.82);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 48, 48, 0.22), transparent 18rem),
        linear-gradient(135deg, rgba(255, 48, 48, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(16, 18, 24, 0.96), rgba(5, 7, 12, 0.96));
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 18px 42px rgba(0,0,0,.62), 0 0 24px rgba(255,48,48,.22);
}

.nsl-overlay[data-kind="drivers"] .nsl-overlay-media,
.nsl-overlay[data-kind="drivers"] .nsl-overlay-copy > p,
.nsl-overlay[data-kind="drivers"] .nsl-overlay-copy > h1,
.nsl-overlay[data-kind="drivers"] .nsl-overlay-copy > h2 {
    display: none;
}

.nsl-overlay[data-kind="drivers"] .nsl-overlay-list {
    display: block;
    margin: 0;
}

.driver-spotlight {
    position: relative;
    overflow: hidden;
    min-height: 24rem;
}

.driver-spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background:
        repeating-linear-gradient(165deg, rgba(255, 48, 48, .13) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 70px);
}

.driver-spotlight > * {
    position: relative;
    z-index: 1;
}

.driver-spotlight-head {
    position: absolute;
    left: .3rem;
    top: 8.3rem;
    width: 4.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .35rem;
    margin-bottom: .85rem;
    color: rgba(255,255,255,.82);
    font-family: var(--mono);
    font-size: .72rem;
    font-style: italic;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.driver-spotlight-head b,
.driver-spotlight-head em {
    color: var(--red);
    font-style: normal;
}

.driver-spotlight-head em {
    display: none;
}

.driver-card-list {
    width: calc(100% - 5.8rem);
    margin-left: 5.8rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.driver-card-nsl {
    position: relative;
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "photo info"
        "extra extra"
        "history history";
    gap: .8rem .85rem;
    min-height: 22.4rem;
    padding: .85rem;
    overflow: hidden;
    border: 1px solid rgba(255, 48, 48, .58);
    clip-path: polygon(3% 0, 100% 0, 100% 92%, 97% 100%, 0 100%, 0 8%);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 48, 48, .22), transparent 11rem),
        rgba(0,0,0,.58);
    box-shadow: 0 0 0 1px rgba(255,48,48,.14) inset, 0 12px 28px rgba(0,0,0,.38);
}

.driver-extra-nsl {
    grid-area: extra;
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    min-height: 6.2rem;
}

.driver-extra-nsl section {
    min-width: 0;
}

.driver-extra-nsl span {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: .84rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.driver-card-nsl::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent, rgba(255,48,48,.12), transparent);
    transform: translateX(-60%);
    animation: driverSweep 4s linear infinite;
}

.driver-photo-nsl {
    grid-area: photo;
    width: 7.2rem;
    height: 7.2rem;
    display: grid;
    place-items: center;
    padding: .25rem;
    border: 2px solid var(--red);
    border-radius: 16px;
    background: radial-gradient(circle, rgba(255,255,255,.08), rgba(0,0,0,.78));
    box-shadow: 0 0 18px rgba(255,48,48,.25);
}

.driver-photo-nsl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.driver-info-nsl {
    grid-area: info;
    min-width: 0;
}

.driver-info-nsl p {
    margin: 0 0 .25rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.driver-info-nsl h2 {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.driver-info-nsl h2 span {
    flex: 0 0 auto;
    font-size: 1rem;
}

.driver-meta-nsl {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .35rem;
    color: rgba(255,255,255,.68);
    font-size: .86rem;
}

.driver-meta-nsl em {
    overflow: hidden;
    color: rgba(255,255,255,.78);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.driver-team-pill {
    display: inline-flex;
    max-width: 100%;
    margin-top: .55rem;
    padding: .22rem .65rem;
    overflow: hidden;
    border: 1px solid rgba(255,48,48,.42);
    border-radius: 999px;
    background: rgba(255,48,48,.22);
    color: #fff;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.driver-stats-nsl {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(255,48,48,.38);
    background: rgba(0,0,0,.44);
}

.driver-stats-nsl span {
    display: grid;
    place-items: center;
    gap: .1rem;
    min-height: 3rem;
    border-right: 1px solid rgba(255,255,255,.1);
}

.driver-stats-nsl span:last-child {
    border-right: 0;
}

.driver-stats-nsl b {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

.driver-stats-nsl em {
    color: var(--red);
    font-family: var(--mono);
    font-size: .68rem;
    font-style: normal;
    font-weight: 900;
}

.driver-extra-nsl {
    grid-area: extra;
    display: grid;
    gap: .35rem;
    min-height: 3.9rem;
}

.driver-extra-nsl section {
    min-width: 0;
}

.driver-extra-nsl b {
    display: block;
    margin-bottom: .1rem;
    color: rgba(255,255,255,.58);
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.driver-extra-nsl span {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: .82rem;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.driver-history-nsl {
    grid-area: history;
}

.driver-history-nsl header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .35rem;
    color: rgba(255,255,255,.68);
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.driver-history-nsl header span {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    letter-spacing: 0;
}

.driver-history-nsl header i {
    width: .45rem;
    height: .45rem;
    display: inline-block;
    border-radius: 50%;
}

.driver-history-nsl .podium,
.driver-race-bar[data-result="podium"] i {
    background: #28ff7a;
}

.driver-history-nsl .points,
.driver-race-bar[data-result="points"] i {
    background: #ffd85c;
}

.driver-history-nsl .dnf,
.driver-race-bar[data-result="dnf"] i {
    background: var(--red);
}

.driver-race-bars {
    display: flex;
    align-items: flex-end;
    gap: .35rem;
    min-height: 3.8rem;
    padding-bottom: .75rem;
}

.driver-race-bar {
    position: relative;
    flex: 1;
    height: 3.2rem;
    min-width: 1.4rem;
    overflow: visible;
    border-radius: .55rem;
    background: rgba(255,255,255,.06);
}

.driver-race-bar i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: .35rem;
    padding-bottom: .22rem;
    border-radius: .55rem .55rem 0 0;
    color: #07090d;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
}

.driver-race-bar[data-position="1"] i { height: 100%; }
.driver-race-bar[data-position="2"] i { height: 85%; }
.driver-race-bar[data-position="3"] i { height: 72%; }
.driver-race-bar[data-position="4"] i { height: 64%; }
.driver-race-bar[data-position="5"] i { height: 56%; }
.driver-race-bar[data-position="6"] i { height: 48%; }
.driver-race-bar[data-position="7"] i { height: 40%; }
.driver-race-bar[data-position="8"] i { height: 32%; }
.driver-race-bar[data-position="9"] i { height: 26%; }
.driver-race-bar[data-position="10"] i { height: 20%; }
.driver-race-bar[data-position="11"] i { height: 18%; }
.driver-race-bar[data-position="12"] i { height: 15%; }
.driver-race-bar[data-position="13"] i { height: 12%; }
.driver-race-bar[data-position="14"] i { height: 7%; }
.driver-race-bar[data-position="0"] i { height: 18%; }

.driver-race-bar small {
    position: absolute;
    left: 50%;
    bottom: -.8rem;
    color: rgba(255,255,255,.62);
    font-size: .62rem;
    transform: translateX(-50%);
}

.driver-race-empty {
    align-self: center;
    color: rgba(255,255,255,.62);
    font-family: var(--mono);
    font-size: .72rem;
    text-transform: uppercase;
}

@keyframes driverSweep {
    from { transform: translateX(-70%); }
    to { transform: translateX(70%); }
}

.nsl-overlay[data-kind="drivers"] .nsl-overlay-list div {
    min-height: 0;
    padding: 0;
    gap: 0;
    background: transparent;
}

.nsl-overlay[data-kind="drivers"] .driver-spotlight-head {
    display: flex;
    gap: .65rem;
}

.nsl-overlay[data-kind="drivers"] .driver-spotlight {
    display: block;
    width: 100%;
    min-height: 24rem;
    padding: 0;
    background: transparent;
    grid-template-columns: none;
}

.nsl-overlay[data-kind="drivers"] .driver-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin-left: 5.8rem;
    gap: 1rem !important;
}

.nsl-overlay[data-kind="drivers"] .driver-card-nsl {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
        "photo info"
        "extra extra"
        "history history";
    gap: .8rem .85rem !important;
    min-height: 22.4rem;
}

.nsl-overlay[data-kind="drivers"] .driver-photo-nsl {
    display: grid;
}

.nsl-overlay[data-kind="drivers"] .driver-info-nsl,
.nsl-overlay[data-kind="drivers"] .driver-extra-nsl section,
.nsl-overlay[data-kind="drivers"] .driver-history-nsl {
    display: block;
}

.nsl-overlay[data-kind="drivers"] .driver-meta-nsl,
.nsl-overlay[data-kind="drivers"] .driver-race-bars {
    display: flex;
}

.nsl-overlay[data-kind="drivers"] .driver-stats-nsl {
    display: none;
}

.nsl-overlay[data-kind="drivers"] .driver-card-list {
    width: calc(100% - 5.8rem);
    margin-left: 5.8rem;
}

.nsl-overlay[data-kind="drivers"] .driver-extra-nsl {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem !important;
    min-height: 6.2rem;
}

.nsl-overlay[data-kind="drivers"] .driver-extra-nsl span {
    font-size: .84rem;
    line-height: 1.24;
    -webkit-line-clamp: 3;
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-card {
    width: min(76rem, 94vw);
    grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr);
    min-height: 0;
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-media {
    min-height: 100%;
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-media img {
    max-height: 11rem;
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-copy h1 {
    font-size: clamp(2.2rem, 4.4vw, 4.8rem);
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-copy p:not(:first-child) {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.nsl-overlay[data-kind="grid"] .nsl-overlay-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.8rem;
}

.nsl-overlay-list .grid-driver-row {
    display: grid;
    grid-template-columns: auto 2.7rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    min-height: 3.3rem;
    opacity: 0;
    animation: grid-row-left 420ms ease both;
    animation-delay: calc(var(--delay, 0) * 70ms);
}

.nsl-overlay-list .grid-driver-row.right {
    animation-name: grid-row-right;
}

.grid-driver-row > strong {
    min-width: 2.3rem;
    padding: 0.3rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbb85f, #ff332f);
    color: #090a0f;
    text-align: center;
}

.grid-avatar {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.grid-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-driver-copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.grid-driver-name {
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-driver-copy em {
    grid-column: auto;
    overflow: hidden;
    color: #fbb85f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid-driver-row small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
}

.grid-host-badge,
.grid-backup-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.34rem;
    border-radius: 0.25rem;
    background: #00e676;
    color: #07100a;
    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1;
    vertical-align: middle;
}

.grid-backup-badge {
    background: #1e88e5;
    color: #fff;
}

@keyframes grid-row-left {
    from { opacity: 0; transform: translateX(-2rem); filter: blur(4px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

@keyframes grid-row-right {
    from { opacity: 0; transform: translateX(2rem); filter: blur(4px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.season-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 8%, rgba(255, 48, 48, 0.16), transparent 28rem),
        linear-gradient(180deg, #070910 0, #0d111c 34rem, #070910 100%);
}

.season-hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    display: grid;
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.season-hero__media {
    position: absolute;
    inset: 0;
    opacity: 0.48;
}

.season-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.1);
}

.season-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 16, 0.94), rgba(7, 9, 16, 0.44), rgba(7, 9, 16, 0.92)),
        linear-gradient(0deg, #070910 0, transparent 52%);
}

.season-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 9rem;
}

.season-hero h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 8vw, 8.6rem);
}

.season-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.season-class {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.season-class__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.season-class__head h2 {
    font-size: clamp(3rem, 7vw, 7rem);
}

.season-class__head > span {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.season-team-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 48, 48, 0.12), transparent 36%),
        rgba(13, 17, 28, 0.86);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.season-team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%);
    opacity: 0.45;
}

.season-team-card__head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.season-team-card__logo {
    display: grid;
    width: 5rem;
    height: 5rem;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.34);
}

.season-team-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.season-team-card__logo span {
    color: var(--red);
    font-family: var(--mono);
    font-weight: 900;
}

.season-team-card__logo.is-missing-image::after {
    content: "LOGO";
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 900;
}

.season-team-card__class,
.vehicle-card figcaption span,
.driver-table__head {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.season-team-card h3 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.05;
}

.team-standings {
    display: grid;
    min-width: 6.6rem;
    justify-items: end;
    gap: 0.12rem;
    font-family: var(--mono);
    text-transform: uppercase;
}

.team-standings span {
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 900;
}

.team-standings strong {
    color: #fff;
    font-size: 0.9rem;
}

.team-standings em {
    color: var(--muted);
    font-size: 0.68rem;
    font-style: normal;
}

.vehicle-pair {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.vehicle-card {
    min-width: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
}

.vehicle-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    padding: 0.75rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 48, 48, 0.13), transparent 56%),
        #05070d;
}

.season-team-card__logo.is-missing-image img,
.vehicle-card.is-missing-image img {
    display: none !important;
}

.vehicle-card.is-missing-image::before {
    content: "Livery";
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 48, 48, 0.13), transparent 56%),
        #05070d;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.vehicle-card figcaption {
    min-height: 5.4rem;
    padding: 0.9rem 1rem 1rem;
}

.vehicle-card figcaption strong {
    display: block;
    margin-top: 0.2rem;
    color: #fff;
    line-height: 1.25;
}

.vehicle-card figcaption small {
    display: block;
    margin-top: 0.45rem;
    color: var(--red);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.driver-table {
    position: relative;
    z-index: 1;
    padding: 1rem 1.2rem 1.2rem;
}

.driver-table__head,
.driver-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 0.42fr 0.72fr;
    gap: 1rem;
    align-items: center;
}

.driver-table__head {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.driver-table__head span:nth-child(2),
.driver-table__head span:last-child {
    text-align: right;
}

.driver-row {
    min-height: 2.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.driver-row > span:first-child,
.driver-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.driver-flag {
    display: inline-block;
    flex: 0 0 auto;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
    font-size: 0.95em;
    line-height: 1;
}

.driver-row span:nth-child(2),
.driver-row span:last-child {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.8rem;
    text-align: right;
}

.driver-row span:nth-child(2) {
    color: #fff;
    font-weight: 800;
}

.driver-row--empty span {
    color: var(--muted);
}

.race-page {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    background:
        radial-gradient(circle at 78% 8%, rgba(255, 48, 48, 0.15), transparent 28rem),
        linear-gradient(180deg, #070910, #0d111c 36rem, #070910);
}

.race-hero {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    display: grid;
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.race-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.race-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.race-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 16, 0.94), rgba(7, 9, 16, 0.55), rgba(7, 9, 16, 0.88)),
        linear-gradient(0deg, #070910 0, transparent 52%);
}

.race-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-top: 9rem;
}

.race-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 7vw, 8rem);
}

.track-card {
    display: grid;
    min-height: 18rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 48, 48, 0.14), transparent 58%),
        rgba(0, 0, 0, 0.34);
}

.track-card img {
    width: 100%;
    max-height: 22rem;
    object-fit: contain;
    padding: 1.5rem;
}

.track-card span {
    color: var(--red);
    font-family: var(--mono);
    font-weight: 900;
    text-transform: uppercase;
}

.race-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: rgba(13, 17, 28, 0.82);
}

.race-facts div {
    min-height: 6rem;
    padding: 1rem;
    border-right: 1px solid var(--line);
}

.race-facts div:last-child {
    border-right: 0;
}

.race-facts span,
.race-group-card header span {
    display: block;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.race-facts strong {
    display: block;
    margin-top: 0.35rem;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1;
}

.race-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.race-group-card {
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 48, 48, 0.1), transparent 34%),
        rgba(13, 17, 28, 0.9);
}

.race-group-card header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}

.race-group-card h2 {
    margin-top: 0.25rem;
    font-size: clamp(1.35rem, 2.4vw, 2.2rem);
}

.race-group-card header strong {
    color: #fff;
    font-family: var(--mono);
    font-size: 0.82rem;
    text-align: right;
    white-space: nowrap;
}

.race-group-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.race-group-meta span {
    min-width: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.race-group-meta strong {
    display: block;
    margin-top: 0.18rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.streamer-link {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
    max-width: 100%;
    margin-top: 0.18rem;
    color: inherit;
    text-decoration: none;
}

.streamer-link:hover strong,
.streamer-link:focus-visible strong {
    color: var(--red);
}

.streamer-link img {
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    object-fit: cover;
}

.streamer-link span {
    min-width: 0;
}

.streamer-link small {
    display: block;
    margin-top: 0.05rem;
    color: var(--muted);
    font-size: 0.62rem;
}

.signup-list {
    padding: 0.6rem 1rem 1rem;
}

.signup-row {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(14rem, auto);
    gap: 1rem;
    align-items: center;
    min-height: 2.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-row span,
.signup-row em {
    min-width: 0;
}

.signup-row span {
    color: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.signup-row em {
    color: var(--muted);
    font-style: normal;
    text-align: right;
    white-space: nowrap;
}

.signup-row em b {
    color: rgba(255, 255, 255, 0.34);
    font-weight: 400;
}

.driver-chip {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    font: inherit;
    text-align: inherit;
}

.driver-chip:hover,
.driver-chip:focus-visible {
    color: var(--red);
}

.driver-chip--empty {
    color: var(--muted);
    cursor: default;
}

.signup-row--empty span,
.signup-row--empty em {
    color: var(--muted);
}

.race-empty {
    padding-top: 10rem;
}

body.modal-open {
    overflow: hidden;
}

.driver-modal[hidden] {
    display: none;
}

.driver-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.driver-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 5, 10, 0.82);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.driver-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(13rem, 0.42fr) minmax(0, 0.58fr);
    width: min(48rem, 100%);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(145deg, rgba(255, 48, 48, 0.16), transparent 36%),
        rgba(8, 12, 20, 0.96);
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
}

.driver-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.driver-modal__media {
    display: grid;
    min-height: 20rem;
    place-items: center;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.driver-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.driver-modal__body {
    padding: 2rem;
}

.driver-modal__body h2 {
    margin: 0.35rem 2.25rem 1.2rem 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 0.95;
}

.driver-modal__body dl {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.driver-modal__body dl div {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.driver-modal__body dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.driver-modal__body dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.45;
}

.reveal {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: auto 1fr auto auto;
        gap: 0.65rem;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .language-switcher {
        justify-self: end;
    }

    .menu-toggle[aria-expanded="true"] + .main-nav,
    .main-nav.is-open {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0.75rem;
        right: 0.75rem;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.7rem;
        border: 1px solid var(--line);
        background: rgba(7, 9, 16, 0.94);
        backdrop-filter: blur(18px);
        box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.42);
    }

    .menu-toggle[aria-expanded="true"] + .main-nav a,
    .main-nav.is-open a {
        min-height: 2.35rem;
        display: flex;
        align-items: center;
        padding: 0 0.75rem;
        background: rgba(255, 255, 255, 0.045);
        color: rgba(255, 255, 255, 0.9);
    }

    .brand span:last-child,
    .profile-pill span:last-child {
        display: none;
    }

    .hero {
        min-height: 175vh;
    }

    .hero-content {
        left: 1rem;
        width: calc(100% - 2rem);
    }

    .split,
    .facts-card,
    .story-grid,
    .season-stats-grid,
    .instagram-shell,
    .team-grid,
    .race-group-grid {
        grid-template-columns: 1fr;
    }

    .season-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .season-stat-card {
        min-height: 11rem;
    }

    .season-stat-card:nth-child(2n) {
        border-right: 0;
    }

    .fact-row,
    .fact-row:nth-child(2n) {
        border-right: 0;
    }

    .story-card {
        min-height: 21rem;
    }

    .story-card h2 {
        margin-top: 2.5rem;
    }

    .instagram-showcase {
        grid-template-columns: 1fr;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .workshop-card--controls {
        position: static;
    }

    .instagram-phone {
        min-height: 24rem;
    }

    .site-footer {
        flex-direction: column;
    }

    .season-class__head {
        align-items: start;
        flex-direction: column;
    }

    .race-hero__inner,
    .race-facts {
        grid-template-columns: 1fr;
    }

    .streamdeck {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .streamer-sources label {
        grid-template-columns: 1fr;
    }

    .streamer-settings-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .custom-button-editor,
    .custom-button-editor form:first-of-type {
        grid-template-columns: 1fr;
    }

    .custom-button-preview {
        max-width: 12rem;
    }

    .nsl-overlay-card {
        grid-template-columns: 1fr;
    }

    .race-facts div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        gap: 0.4rem;
        padding: 0.75rem;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .language-switcher {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .auth {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .menu-toggle[aria-expanded="true"] + .main-nav,
    .main-nav.is-open {
        grid-template-columns: 1fr;
    }

    .season-stats-grid {
        grid-template-columns: 1fr;
    }

    .instagram-copy h2 {
        max-width: none;
    }

    .instagram-phone {
        min-height: 21rem;
    }

    .instagram-post--hero {
        min-height: 12rem;
    }

    .instagram-tiles article {
        min-height: 0;
    }

    .workshop-options,
    .workshop-ranges,
    .workshop-card-head {
        grid-template-columns: 1fr;
    }

    .streamdeck {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.75rem;
    }

    .streamer-hero {
        padding-top: 8rem;
    }

    .streamer-subnav {
        width: 100%;
    }

    .streamer-subnav button {
        flex: 1;
    }

    .streamer-settings-form {
        grid-template-columns: 1fr;
    }

    .nsl-overlay {
        padding: 1rem;
    }

    .season-stat-card,
    .season-stat-card:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .season-stat-card:last-child {
        border-bottom: 0;
    }

    .auth .button {
        max-width: 7.4rem;
        line-height: 1.15;
        font-size: 0.62rem;
    }

    .language-switcher a {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.9rem;
    }

    .menu-toggle {
        width: 2.15rem;
        min-width: 2.15rem;
        padding: 0;
    }

    .menu-toggle em {
        display: none;
    }

    .brand-logo {
        width: 3.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hud-top {
        top: 5.6rem;
    }

    .hud-bottom {
        bottom: 1rem;
    }

    .hero-scroll-cue {
        right: 1rem;
        bottom: 3.1rem;
        min-width: 10rem;
    }

    .trailer-consent {
        min-height: 0;
    }

    .season-hero {
        min-height: 64vh;
    }

    .season-jump,
    .vehicle-pair {
        grid-template-columns: 1fr;
    }

    .season-team-card__head {
        grid-template-columns: 4rem 1fr;
        padding: 1rem;
    }

    .season-team-card__logo {
        width: 4rem;
        height: 4rem;
    }

    .driver-table__head,
    .driver-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .driver-row {
        padding: 0.55rem 0;
    }

    .driver-table__head span:nth-child(2),
    .driver-table__head span:last-child,
    .driver-row span:nth-child(2),
    .driver-row span:last-child {
        text-align: left;
    }

    .team-standings {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, auto);
        justify-content: start;
        justify-items: start;
        gap: 0.8rem;
    }

    .signup-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
        padding: 0.55rem 0;
    }

    .signup-row em {
        text-align: left;
    }

    .race-group-card header {
        flex-direction: column;
    }

    .race-group-card header strong {
        text-align: left;
    }

    .race-group-meta {
        grid-template-columns: 1fr;
    }

    .driver-modal {
        padding: 1rem;
    }

    .driver-modal__panel {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }

    .driver-modal__media {
        min-height: 14rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .driver-modal__body {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-stage {
        position: relative;
    }

    .hero-video:not(:first-child) {
        display: none;
    }

    .hero-content {
        position: absolute;
    }
}
