/* ==========================================================================
   NEW AGE RACING
   Main stylesheet
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #0a0a0c;
    color: #f5f3f0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================================
   GLOBAL CONTAINER
   ========================================================================== */

.container-nar {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
.font-display {
    margin-top: 0;
    font-family: "Teko", "Arial Narrow", sans-serif;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: 0.3px;
}

h1 {
    font-size: clamp(4rem, 8vw, 7.2rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(3rem, 5vw, 4.8rem);
    text-transform: uppercase;
}

h3 {
    font-size: 2.2rem;
}

p {
    margin-top: 0;
}

.lead {
    max-width: 620px;
    color: #a0a2a8;
    font-size: 1rem;
    line-height: 1.8;
}

.accent {
    color: #e2101f;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #e2101f;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #e2101f;
}

.nar-text-gray {
    color: #8d8f94;
}

.nar-text-red {
    color: #e2101f;
}

.nar-center {
    display: flex;
    justify-content: center;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-nar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.btn-nar:hover {
    transform: translateY(-2px);
}

.btn-nar-primary {
    background: #e2101f;
    border-color: #e2101f;
    color: #f5f3f0;
    box-shadow: 0 8px 25px rgba(226, 16, 31, 0.12);
}

.btn-nar-primary:hover {
    background: #ff3b4e;
    border-color: #ff3b4e;
    color: #f5f3f0;
    box-shadow: 0 10px 30px rgba(226, 16, 31, 0.22);
}

.btn-nar-outline {
    background: rgba(245, 243, 240, 0.015);
    border-color: rgba(245, 243, 240, 0.18);
    color: #f5f3f0;
}

.btn-nar-outline:hover {
    background: rgba(245, 243, 240, 0.07);
    border-color: rgba(245, 243, 240, 0.38);
}


/* ==========================================================================
   NAVBAR
   ========================================================================== */

.nar-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 76px;
    background: rgba(10, 10, 12, 0.70);
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        height 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.nar-navbar.is-scrolled {
    height: 64px;
    background: rgba(10, 10, 12, 0.94);
    border-bottom-color: rgba(226, 16, 31, 0.16);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.20);
}

.nar-navbar .container-nar {
    height: 100%;
}

.nar-navbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}


/* LOGO */

.nar-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nar-logo-image {
    display: block;
    width: 170px;
    height: auto;
}


/* NAV LINKS */

.nar-nav-links {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.nar-nav-links a {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #8d8f94;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nar-nav-links a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    height: 2px;
    background: #e2101f;
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nar-nav-links a:hover,
.nar-nav-links a.active {
    color: #f5f3f0;
}

.nar-nav-links a:hover::after,
.nar-nav-links a.active::after {
    transform: scaleX(1);
}


/* USER */

.nar-user-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-left: 18px;
    border-left: 1px solid rgba(245, 243, 240, 0.1);
}

.nar-user {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    white-space: nowrap;
}

.nar-user:hover {
    color: #f5f3f0;
}

.nar-user-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e2101f;
    box-shadow: 0 0 8px rgba(226, 16, 31, 0.7);
}

.nar-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* LOGOUT */

.nar- {
width: 38px;
height: 38px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
text-decoration: none;
transition:
background-color 0.2s ease,
border-color 0.2s ease;
}

.nar-logout img {
display: block;
width: 28px;
height: 28px;
max-width: 28px;
max-height: 28px;
object-fit: contain;
}

.nar-logout:hover {
background: #241215;
border-color: #6b0f14;
}

.nar-logout span {
position: relative;
display: block;
width: 15px;
height: 15px;
border: 2px solid #f5f3f0;
border-radius: 50%;
}

.nar-logout span::before {
content: "";
position: absolute;
top: -5px;
left: 4px;
width: 3px;
height: 8px;
border-radius: 2px;
background: #0a0a0c;
border-top: 2px solid #f5f3f0;
}

.nar-logout span::after {
content: "";
position: absolute;
top: 5px;
left: 5px;
width: 2px;
height: 6px;
background: #f5f3f0;
}


/* MOBILE BUTTON */

.nar-nav-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(245, 243, 240, 0.15);
    cursor: pointer;
}

.nar-nav-toggle span {
    width: 17px;
    height: 1px;
    display: block;
    background: #f5f3f0;
    transition:
        transform 180ms ease,
        opacity 180ms ease;
}

.nar-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nar-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nar-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ==========================================================================
   HERO
   ========================================================================== */

.nar-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding-top: 76px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 76% 42%,
            rgba(226, 16, 31, 0.20),
            transparent 34%
        ),
        radial-gradient(
            circle at 92% 80%,
            rgba(245, 243, 240, 0.035),
            transparent 28%
        ),
        #0a0a0c;
}

.nar-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 0,
            rgba(245, 243, 240, 0.025) 1px,
            transparent 1px
        );
    background-size: 90px 100%;
    pointer-events: none;
}

.nar-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(226, 16, 31, 0.45),
        transparent
    );
}

.nar-hero-stripe {
    position: absolute;
    top: -5%;
    right: -12%;
    width: 52%;
    height: 110%;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            transparent 39%,
            rgba(107, 15, 20, 0.18) 39.2%,
            rgba(226, 16, 31, 0.11) 48%,
            transparent 48.2%
        );
    transform: skewX(-12deg);
    pointer-events: none;
}

.nar-hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0 80px;
}

.nar-hero h1 {
    max-width: 850px;
    margin-bottom: 26px;
}

.nar-hero .lead {
    margin-bottom: 34px;
}

.nar-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* COUNTDOWN */

.nar-countdown {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 65px;
}

.nar-countdown .unit {
    min-width: 64px;
}

.nar-countdown .value {
    display: block;
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.nar-countdown .label {
    display: block;
    margin-top: 7px;
    color: #8d8f94;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nar-countdown .divider {
    width: 1px;
    height: 30px;
    background: rgba(245, 243, 240, 0.14);
}

.nar-next-race-label {
    margin-top: 18px;
    color: #8d8f94;
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.nar-section {
    position: relative;
    padding: 120px 0;
    background: #0a0a0c;
}

.nar-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(245, 243, 240, 0.045),
        transparent
    );
}

.nar-section-soft {
    background:
        linear-gradient(
            135deg,
            #121216 0%,
            #151519 55%,
            #111115 100%
        );
}

.nar-section-soft::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(226, 16, 31, 0.16),
        transparent
    );
}

.nar-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 55px;
}

.nar-section-head h2 {
    margin-bottom: 0;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.nar-card {
    position: relative;
    height: 100%;
    padding: 28px;
    background: #131316;
    border: 1px solid rgba(245, 243, 240, 0.08);
    border-radius: 3px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.nar-section-soft .nar-card {
    background: #1b1b1f;
}

.nar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #e2101f;
    opacity: 0;
    transition: opacity 180ms ease;
}

.nar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(226, 16, 31, 0.40);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

.nar-card:hover::before {
    opacity: 1;
}

.nar-card .date {
    display: block;
    margin-bottom: 18px;
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nar-card h3 {
    margin-bottom: 14px;
    font-size: 2rem;
}

.nar-card p {
    margin-bottom: 0;
    color: #8d8f94;
    font-size: 13px;
    line-height: 1.8;
}

.nar-card-link {
    display: inline-block;
    margin-top: 20px;
    color: #e2101f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.nar-card-link:hover {
    color: #ff3b4e;
}


/* ==========================================================================
   STANDINGS
   ========================================================================== */

.nar-standing {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 15px 20px;
    margin-bottom: 8px;
    background: #101013;
    border: 1px solid rgba(245, 243, 240, 0.07);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.nar-standing:hover {
    transform: translateX(4px);
    background: #151519;
    border-color: rgba(226, 16, 31, 0.35);
}

.nar-standing .stats {
    margin-top: 5px;
    color: #777980;
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.nar-standing .stats span {
    margin: 0 5px;
    color: #4f5156;
}

.nar-standing .pos {
    width: 44px;
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    font-weight: 700;
}

.nar-standing.pos-1 {
    border-left: 2px solid #e2101f;
}

.nar-standing.pos-1 .pos {
    color: #e2101f;
}

.nar-standing .driver {
    flex: 1;
}

.nar-standing .name {
    color: #f5f3f0;
    font-family: "Teko", "Arial Narrow", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.nar-standing .pts {
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

.nar-standing .unit {
    display: block;
    margin-top: 3px;
    color: #8d8f94;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* PODIUM */

.nar-previous-race-title {
    margin: 14px 0 28px;
    color: #f5f3f0;
    font-size: 2rem;
}

.nar-podium {
    border-top: 1px solid rgba(245, 243, 240, 0.08);
}

.nar-podium .step {
    min-height: 76px;
    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(245, 243, 240, 0.08);
    transition: padding 180ms ease, background-color 180ms ease;
}

.nar-podium .step:hover {
    padding-left: 8px;
    background: rgba(226, 16, 31, 0.035);
}

.nar-podium .step .pos {
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
}

.nar-podium .step.first .pos {
    color: #e2101f;
}

.nar-podium .name {
    color: #f5f3f0;
    font-family: "Teko", "Arial Narrow", sans-serif;
    font-size: 25px;
    text-transform: uppercase;
}

.nar-podium .gap {
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.nar-cta-band {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(226, 16, 31, 0.15),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #0d0d10,
            #121216
        );
    border-top: 1px solid rgba(245, 243, 240, 0.07);
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
}

.nar-cta-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        transparent,
        rgba(226, 16, 31, 0.25),
        transparent
    );
    transform: skewX(-15deg);
}

.nar-cta-band::after {
    content: "";
    position: absolute;
    top: 0;
    right: 10%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        transparent,
        rgba(226, 16, 31, 0.25),
        transparent
    );
    transform: skewX(15deg);
}

.nar-cta-band h2 {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto 18px;
}

.nar-cta-text {
    position: relative;
    z-index: 1;
    margin: 0 auto 30px;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.nar-footer {
    position: relative;
    padding: 75px 0 28px;
    background:
        linear-gradient(
            135deg,
            #101014 0%,
            #131318 55%,
            #0c0c10 100%
        );
    border-top: 1px solid rgba(245, 243, 240, 0.08);
    overflow: hidden;
}

.nar-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 2px;
    background: #e2101f;
}

.nar-footer::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(226, 16, 31, 0.10) 0%,
        rgba(226, 16, 31, 0.025) 38%,
        transparent 70%
    );
    pointer-events: none;
}

.nar-footer .logo {
    position: relative;
    margin-bottom: 22px;
}

.nar-footer .logo img {
    display: block;
    width: 185px;
    height: auto;
}

.nar-footer .tagline {
    max-width: 350px;
    margin: 0;
    color: #8d8f94;
    font-size: 14px;
    line-height: 1.8;
}

.nar-social {
    display: flex;
    gap: 8px;
}

.nar-social a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #17171c;
    border: 1px solid rgba(245, 243, 240, 0.09);
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.nar-social a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #e2101f;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nar-social a:hover {
    color: #f5f3f0;
    border-color: rgba(226, 16, 31, 0.55);
    background: #1d1d22;
    transform: translateY(-3px);
}

.nar-social a:hover::before {
    transform: scaleX(1);
}

.nar-footer h4 {
    position: relative;
    display: inline-block;
    margin: 0 0 24px;
    color: #f5f3f0;
    font-family: "Teko", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nar-footer h4::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    margin-top: 9px;
    background: #e2101f;
}

.nar-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nar-footer li {
    margin: 0;
    padding: 0;
}

.nar-footer li + li {
    margin-top: 12px;
}

.nar-footer li a {
    position: relative;
    display: inline-block;
    color: #777980;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 180ms ease,
        padding-left 180ms ease;
}

.nar-footer li a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -10px;
    width: 5px;
    height: 1px;
    background: #e2101f;
    opacity: 0;
    transform: translateY(-50%);
    transition:
        opacity 180ms ease,
        left 180ms ease;
}

.nar-footer li a:hover {
    padding-left: 9px;
    color: #f5f3f0;
}

.nar-footer li a:hover::before {
    left: 0;
    opacity: 1;
}

.nar-footer .bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 65px;
    padding-top: 22px;
    border-top: 1px solid rgba(245, 243, 240, 0.07);
    color: #55575d;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nar-footer .bottom span:last-child {
    color: #777980;
}


/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.nar-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 500ms ease,
        transform 500ms ease;
}

.nar-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {

    .nar-navbar {
        height: 68px;
    }

    .nar-navbar.is-scrolled {
        height: 62px;
    }

    .nar-navbar-inner {
        position: relative;
    }

    .nar-nav-links {
        position: absolute;
        top: 68px;
        left: -24px;
        right: -24px;
        height: auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 24px 18px;
        background: rgba(10, 10, 12, 0.98);
        border-top: 1px solid rgba(245, 243, 240, 0.08);
        border-bottom: 1px solid rgba(245, 243, 240, 0.08);
    }

    .nar-nav-links.is-open {
        display: flex;
    }

    .nar-nav-links a {
        height: 46px;
        padding: 0 8px;
    }

    .nar-nav-links a::after {
        left: 8px;
        right: auto;
        width: 22px;
    }

    .nar-user-navigation {
        margin-left: auto;
    }

    .nar-nav-toggle {
        display: flex;
    }

    .nar-hero {
        min-height: 680px;
    }

    .nar-hero-content {
        padding-top: 100px;
    }

    .nar-section {
        padding: 90px 0;
    }

    .nar-footer {
        padding-top: 65px;
    }

}


@media (max-width: 767px) {

    .container-nar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nar-logo-image {
        width: 145px;
    }

    .nar-user {
        display: none;
    }

    .nar-user-navigation {
        padding-left: 0;
        border-left: 0;
    }

    .nar-hero {
        min-height: 650px;
    }

    .nar-hero h1 {
        font-size: clamp(3.6rem, 16vw, 5rem);
    }

    .nar-countdown {
        gap: 12px;
        margin-top: 45px;
    }

    .nar-countdown .unit {
        min-width: 50px;
    }

    .nar-countdown .value {
        font-size: 21px;
    }

    .nar-section-head {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 38px;
    }

    .nar-section-head .btn-nar {
        width: 100%;
    }

    .nar-standing {
        gap: 12px;
        padding: 14px;
    }

    .nar-standing .pos {
        width: 32px;
    }

    .nar-standing .name {
        font-size: 21px;
    }

    .nar-standing .pts {
        font-size: 15px;
    }

    .nar-podium .step {
        grid-template-columns: 35px 1fr auto;
    }

    .nar-podium .name {
        font-size: 21px;
    }

    .nar-cta-band {
        padding: 90px 0;
    }

    .nar-footer {
        padding: 60px 0 22px;
    }

    .nar-footer::before {
        width: 120px;
    }

    .nar-footer .logo img {
        width: 165px;
    }

    .nar-footer .tagline {
        max-width: 100%;
    }

    .nar-footer .bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 50px;
    }

}


/* ========================================================================== 
   HOMEPAGE - UPCOMING RACES
   Scoped to this section so the rest of the site keeps its existing styling.
   ========================================================================== */

.nar-upcoming-races {
    position: relative;
    margin-top: 42px;
    width: 100%;
}

.nar-upcoming-races > .eyebrow {
    margin-bottom: 22px;
}

.nar-upcoming-races .nar-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.nar-upcoming-races .nar-card h3 {
    font-size: 1.7rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.nar-upcoming-races .nar-card p + p {
    margin-top: 8px;
}

.nar-upcoming-races .nar-countdown {
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.nar-upcoming-races .nar-countdown .unit {
    flex: 1;
    min-width: 0;
}

.nar-upcoming-races .nar-countdown .value {
    font-size: 19px;
}

.nar-upcoming-races .nar-countdown .label {
    font-size: 8px;
    letter-spacing: 0.8px;
}

.nar-upcoming-races .nar-countdown .divider {
    height: 24px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .nar-upcoming-races {
        margin-top: 34px;
    }

    .nar-upcoming-races .nar-card {
        padding: 20px;
    }

    .nar-upcoming-races .nar-countdown {
        gap: 7px;
        padding-top: 20px;
    }

    .nar-upcoming-races .nar-countdown .value {
        font-size: 17px;
    }
}

/* ==========================================================================
   RACER PROFILE
   ========================================================================== */

.nar-profile-page {
    min-height: 100vh;
    background: #0a0a0c;
}


/* PROFILE HEADER */

.nar-profile-hero {
    position: relative;
    padding: 125px 0 65px;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            #0a0a0c 0%,
            #151519 55%,
            #0d0d10 100%
        );
    border-bottom: 1px solid rgba(245, 243, 240, 0.08);
}

.nar-profile-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #e2101f,
        transparent
    );
    opacity: 0.65;
}

.nar-profile-hero-glow {
    position: absolute;
    top: -180px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(226, 16, 31, 0.09);
    filter: blur(90px);
    pointer-events: none;
}

.nar-profile-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 42px;
    color: #8d8f94;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        gap 180ms ease;
}

.nar-profile-back:hover {
    color: #f5f3f0;
    gap: 14px;
}

.nar-profile-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nar-profile-avatar {
    width: 145px;
    height: 145px;
    flex: 0 0 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #26262c,
            #111115
        );
    border: 1px solid rgba(226, 16, 31, 0.55);
    box-shadow:
        0 0 0 7px rgba(226, 16, 31, 0.045),
        0 16px 45px rgba(0, 0, 0, 0.28);
}

.nar-profile-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nar-profile-avatar > span {
    color: #e2101f;
    font-family: "Teko", "Arial Narrow", sans-serif;
    font-size: 76px;
    font-weight: 600;
    line-height: 1;
}

.nar-profile-identity-content {
    min-width: 0;
}

.nar-profile-identity-content h1 {
    margin: 0 0 12px;
    font-size: clamp(3.2rem, 7vw, 5.7rem);
    overflow-wrap: anywhere;
}

.nar-profile-iracing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #777980;
    font-size: 12px;
}

.nar-profile-iracing span {
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
}


/* COMPACT TROPHY STRIP */

.nar-profile-trophy-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 34px;
}

.nar-profile-trophy {
    position: relative;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 243, 240, 0.045);
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-radius: 5px;
    color: #f5f3f0;
    font-size: 18px;
    cursor: default;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.nar-profile-trophy:hover,
.nar-profile-trophy:focus-visible {
    z-index: 5;
    transform: translateY(-3px);
    background: rgba(226, 16, 31, 0.12);
    border-color: #e2101f;
    outline: none;
}

.nar-profile-trophy img {
    display: block;
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.nar-profile-trophy-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 11px);
    z-index: 20;
    width: max-content;
    max-width: 230px;
    padding: 9px 12px;
    background: #202025;
    border: 1px solid rgba(226, 16, 31, 0.38);
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: #f5f3f0;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

.nar-profile-trophy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #202025;
    border-right: 1px solid rgba(226, 16, 31, 0.38);
    border-bottom: 1px solid rgba(226, 16, 31, 0.38);
    transform: translate(-50%, -4px) rotate(45deg);
}

.nar-profile-trophy:hover .nar-profile-trophy-tooltip,
.nar-profile-trophy:focus-visible .nar-profile-trophy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nar-profile-no-trophies {
    color: #777980;
    font-size: 11px;
}


/* CAREER STATISTICS */

.nar-profile-stats-section {
    position: relative;
    z-index: 2;
    padding: 0;
    background: #101013;
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
}

.nar-profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.nar-profile-stat {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 22px;
    border-right: 1px solid rgba(245, 243, 240, 0.07);
    transition: background-color 180ms ease;
}

.nar-profile-stat:first-child {
    border-left: 1px solid rgba(245, 243, 240, 0.07);
}

.nar-profile-stat:hover {
    background: rgba(226, 16, 31, 0.045);
}

.nar-profile-stat span {
    color: #8d8f94;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

.nar-profile-stat strong {
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}


/* PROFILE SECTIONS */

.nar-profile-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.nar-profile-section .nar-section-head {
    margin-bottom: 42px;
}

.nar-profile-section .nar-section-head h2 {
    margin-bottom: 0;
}

.nar-profile-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 11px;
    background: rgba(245, 243, 240, 0.045);
    border: 1px solid rgba(245, 243, 240, 0.09);
    border-radius: 3px;
    color: #a0a2a8;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* ACHIEVEMENTS */

.nar-profile-achievement-groups {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nar-profile-achievement-category {
    padding: 25px;
    background: #111115;
    border: 1px solid rgba(245, 243, 240, 0.075);
    border-radius: 4px;
    transition: border-color 180ms ease;
}

.nar-profile-achievement-category:hover {
    border-color: rgba(226, 16, 31, 0.22);
}

.nar-profile-category-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
}

.nar-profile-category-mark {
    width: 3px;
    height: 22px;
    flex: 0 0 3px;
    background: #e2101f;
    box-shadow: 0 0 12px rgba(226, 16, 31, 0.24);
}

.nar-profile-category-heading h3 {
    margin: 0;
    color: #f5f3f0;
    font-size: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
}

.nar-profile-category-count {
    margin-left: auto;
    color: #777980;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
}

.nar-profile-achievement-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.nar-profile-achievement {
    position: relative;
}

.nar-profile-achievement-icon {
    position: relative;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #222228,
            #151519
        );
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-radius: 7px;
    color: #e2101f;
    font-size: 25px;
    cursor: help;
    transition:
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.nar-profile-achievement-icon:hover,
.nar-profile-achievement-icon:focus-visible {
    z-index: 10;
    transform: translateY(-4px) scale(1.04);
    background: #252025;
    border-color: rgba(226, 16, 31, 0.65);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    outline: none;
}

.nar-profile-achievement-icon > img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.nar-profile-achievement-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 13px);
    z-index: 30;
    width: 255px;
    padding: 16px;
    background: #202025;
    border: 1px solid rgba(226, 16, 31, 0.45);
    border-radius: 5px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
    color: #f5f3f0;
    font-family: "Inter", sans-serif;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 7px);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

.nar-profile-achievement-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #202025;
    border-right: 1px solid rgba(226, 16, 31, 0.45);
    border-bottom: 1px solid rgba(226, 16, 31, 0.45);
    transform: translate(-50%, -5px) rotate(45deg);
}

.nar-profile-achievement-tooltip > strong {
    display: block;
    margin-bottom: 8px;
    color: #f5f3f0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.nar-profile-tooltip-description {
    display: block;
    color: #a0a2a8;
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.nar-profile-tooltip-date {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid rgba(245, 243, 240, 0.09);
}

.nar-profile-tooltip-date span {
    color: #777980;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nar-profile-tooltip-date strong {
    color: #e2101f;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
}

.nar-profile-achievement-icon:hover .nar-profile-achievement-tooltip,
.nar-profile-achievement-icon:focus-visible .nar-profile-achievement-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}


/* EMPTY STATES */

.nar-profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 25px;
    background: rgba(245, 243, 240, 0.015);
    border: 1px dashed rgba(245, 243, 240, 0.12);
    border-radius: 4px;
    text-align: center;
}

.nar-profile-empty-icon {
    margin-bottom: 15px;
    color: #e2101f;
    font-size: 31px;
}

.nar-profile-empty h3 {
    margin-bottom: 9px;
    color: #f5f3f0;
    font-size: 2rem;
}

.nar-profile-empty p {
    max-width: 420px;
    margin: 0;
    color: #8d8f94;
    font-size: 13px;
    line-height: 1.7;
}


/* RECENT POSTS */

.nar-profile-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.nar-profile-post-image {
    height: 190px;
    overflow: hidden;
    background: #0a0a0c;
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
}

.nar-profile-post-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.nar-profile-post:hover .nar-profile-post-image img {
    transform: scale(1.045);
}

.nar-profile-post > .nar-profile-post-date,
.nar-profile-post > h3,
.nar-profile-post > p {
    margin-right: 25px;
    margin-left: 25px;
}

.nar-profile-post > .nar-profile-post-date {
    display: block;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #8d8f94;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    line-height: 1.5;
}

.nar-profile-post > h3 {
    margin-bottom: 12px;
    color: #f5f3f0;
    font-size: 2rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.nar-profile-post > p {
    margin-top: 0;
    margin-bottom: 27px;
    color: #8d8f94;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}


/* PROFILE WALL */

.nar-profile-community-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 24px;
}

.nar-profile-like-card,
.nar-profile-comments-card {
    padding: 30px;
}

.nar-profile-like-card h3,
.nar-profile-comments-card h3 {
    margin-bottom: 12px;
    color: #f5f3f0;
    font-size: 2.2rem;
    line-height: 1.05;
}

.nar-profile-like-card > p {
    margin-bottom: 25px;
    color: #8d8f94;
    font-size: 13px;
    line-height: 1.8;
}

.nar-profile-like-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 243, 240, 0.08);
}

.nar-profile-like-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8d8f94;
    font-size: 11px;
}

.nar-profile-like-count > span:first-child {
    color: #e2101f;
    font-size: 19px;
}

.nar-profile-like-count strong {
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
}

.nar-profile-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 17px;
    background: rgba(226, 16, 31, 0.08);
    border: 1px solid rgba(226, 16, 31, 0.45);
    border-radius: 3px;
    color: #f5f3f0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.nar-profile-like-button > span {
    color: #e2101f;
    font-size: 15px;
}

.nar-profile-like-button:hover {
    transform: translateY(-2px);
    background: rgba(226, 16, 31, 0.17);
    border-color: #e2101f;
}

.nar-profile-like-button.is-liked {
    background: #e2101f;
    border-color: #e2101f;
}

.nar-profile-like-button.is-liked > span {
    color: #ffffff;
}

.nar-profile-login-note {
    color: #8d8f94;
    font-size: 11px;
    line-height: 1.7;
}

.nar-profile-message {
    margin-bottom: 25px;
    padding: 13px 17px;
    background: rgba(245, 243, 240, 0.04);
    border: 1px solid rgba(245, 243, 240, 0.12);
    border-radius: 3px;
    color: #f5f3f0;
    font-size: 12px;
    line-height: 1.6;
}

.nar-profile-message.is-error {
    border-color: rgba(226, 16, 31, 0.45);
}


/* COMMENTS */

.nar-profile-comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 24px;
}

.nar-profile-comments-heading h3 {
    margin-bottom: 0;
}

.nar-profile-comment-form {
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(245, 243, 240, 0.08);
}

.nar-profile-comment-label {
    display: block;
    margin-bottom: 9px;
    color: #a0a2a8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nar-profile-comment-form textarea {
    display: block;
    width: 100%;
    min-height: 105px;
    padding: 13px 15px;
    resize: vertical;
    background: #101013;
    border: 1px solid rgba(245, 243, 240, 0.12);
    border-radius: 3px;
    outline: none;
    color: #f5f3f0;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 1.7;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.nar-profile-comment-form textarea::placeholder {
    color: #62646b;
}

.nar-profile-comment-form textarea:focus {
    border-color: rgba(226, 16, 31, 0.75);
    box-shadow: 0 0 0 3px rgba(226, 16, 31, 0.08);
}

.nar-profile-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 13px;
}

.nar-profile-comment-form-footer > span {
    color: #777980;
    font-size: 10px;
}

.nar-profile-comment-form-footer .btn-nar {
    min-height: 39px;
    padding: 0 15px;
    font-size: 9px;
}

.nar-profile-comment-list {
    display: flex;
    flex-direction: column;
}

.nar-profile-comment {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 21px 0;
    border-bottom: 1px solid rgba(245, 243, 240, 0.07);
    animation: narProfileCommentIn 250ms ease both;
}

.nar-profile-comment:last-child {
    border-bottom: 0;
}

.nar-profile-comment-avatar {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(226, 16, 31, 0.10);
    border: 1px solid rgba(226, 16, 31, 0.24);
    border-radius: 50%;
    color: #e2101f;
    font-family: "Teko", sans-serif;
    font-size: 21px;
    font-weight: 600;
}

.nar-profile-comment-content {
    min-width: 0;
    flex: 1;
}

.nar-profile-comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 15px;
    margin-bottom: 8px;
}

.nar-profile-comment-meta strong {
    color: #f5f3f0;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.nar-profile-comment-meta > span {
    color: #777980;
    font-family: "JetBrains Mono", monospace;
    font-size: 8px;
}

.nar-profile-comment-content > p {
    margin: 0;
    color: #a0a2a8;
    font-size: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.nar-profile-comments-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0 3px;
    color: #8d8f94;
}

.nar-profile-comments-empty > span {
    color: #e2101f;
    font-size: 22px;
}

.nar-profile-comments-empty p {
    margin: 0;
    font-size: 11px;
    line-height: 1.7;
}

@keyframes narProfileCommentIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* RESPONSIVE */

@media (max-width: 991px) {

    .nar-profile-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nar-profile-stat:nth-child(4) {
        border-left: 1px solid rgba(245, 243, 240, 0.07);
    }

    .nar-profile-stat:nth-child(n + 4) {
        border-top: 1px solid rgba(245, 243, 240, 0.07);
    }

    .nar-profile-community-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 767px) {

    .nar-profile-hero {
        padding: 105px 0 45px;
    }

    .nar-profile-back {
        margin-bottom: 32px;
    }

    .nar-profile-identity {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .nar-profile-avatar {
        width: 105px;
        height: 105px;
        flex-basis: 105px;
    }

    .nar-profile-avatar > span {
        font-size: 56px;
    }

    .nar-profile-identity-content h1 {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .nar-profile-stat {
        min-height: 95px;
        padding: 16px 12px;
    }

    .nar-profile-stat span {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .nar-profile-stat strong {
        font-size: 20px;
    }

    .nar-profile-section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .nar-profile-achievement-category {
        padding: 18px;
    }

    .nar-profile-achievement-list {
        gap: 11px;
    }

    .nar-profile-achievement-icon {
        width: 48px;
        height: 48px;
    }

    .nar-profile-achievement-tooltip {
        left: 0;
        width: min(255px, calc(100vw - 60px));
        transform: translate(0, 7px);
    }

    .nar-profile-achievement-icon:hover .nar-profile-achievement-tooltip,
    .nar-profile-achievement-icon:focus-visible .nar-profile-achievement-tooltip {
        transform: translate(0, 0);
    }

    .nar-profile-achievement-tooltip::after {
        left: 23px;
    }

    .nar-profile-like-card,
    .nar-profile-comments-card {
        padding: 22px;
    }

    .nar-profile-like-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .nar-profile-comment-meta {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (prefers-reduced-motion: reduce) {

    .nar-profile-page *,
    .nar-profile-page *::before,
    .nar-profile-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}

/* ==========================================================================
   RACER PROFILE - FLOATING LIKE
   ========================================================================== */

.nar-profile-hero-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.nar-profile-identity {
    min-width: 0;
    flex: 1;
}

.nar-profile-like-floating {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.nar-profile-like-floating form {
    margin: 0;
}

.nar-profile-heart-button,
.nar-profile-heart-display {
    min-width: 80px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px;
    background: rgba(226, 16, 31, 0.065);
    border: 1px solid rgba(226, 16, 31, 0.25);
    border-radius: 50%;
    color: #8d8f94;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.nar-profile-heart-button {
    cursor: pointer;
}

.nar-profile-heart-button:hover,
.nar-profile-heart-button:focus-visible {
    transform: translateY(-3px) scale(1.04);
    background: rgba(226, 16, 31, 0.13);
    border-color: #e2101f;
    color: #e2101f;
    outline: none;
    box-shadow: 0 8px 25px rgba(226, 16, 31, 0.12);
}

.nar-profile-heart-button.is-liked {
    color: #e2101f;
    background: rgba(226, 16, 31, 0.14);
    border-color: rgba(226, 16, 31, 0.6);
}

.nar-profile-heart-icon {
    color: #e2101f;
    font-size: 28px;
    line-height: 1.1;
    transition: transform 180ms ease;
}

.nar-profile-heart-button:hover .nar-profile-heart-icon {
    transform: scale(1.12);
}

.nar-profile-heart-button.is-liked .nar-profile-heart-icon {
    text-shadow: 0 0 14px rgba(226, 16, 31, 0.35);
}

.nar-profile-heart-count {
    color: #f5f3f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.nar-profile-heart-note {
    color: #777980;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}


/* ==========================================================================
   RACER PROFILE - COMMENT EDITOR
   ========================================================================== */

.nar-profile-comments-card {
    padding: 30px;
}

.nar-profile-comment-form {
    margin-bottom: 10px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(245, 243, 240, 0.09);
}

.nar-profile-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
    padding: 8px;
    background: #101013;
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

.nar-profile-editor-toolbar button {
    width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1b1b1f;
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-radius: 3px;
    color: #f5f3f0;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    cursor: pointer;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.nar-profile-editor-toolbar button:hover,
.nar-profile-editor-toolbar button:focus-visible {
    background: rgba(226, 16, 31, 0.12);
    border-color: rgba(226, 16, 31, 0.5);
    color: #ff3b4e;
    outline: none;
}

.nar-profile-comment-form textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    padding: 14px 15px;
    resize: vertical;
    background: #101013;
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-radius: 0 0 3px 3px;
    outline: none;
    color: #f5f3f0;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.8;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.nar-profile-comment-form textarea::placeholder {
    color: #62646b;
}

.nar-profile-comment-form textarea:focus {
    border-color: rgba(226, 16, 31, 0.65);
    box-shadow: 0 0 0 3px rgba(226, 16, 31, 0.06);
}

.nar-profile-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
}

.nar-profile-comment-form-footer > span {
    color: #777980;
    font-size: 10px;
    line-height: 1.6;
}

.nar-profile-comment-form-footer .btn-nar {
    min-height: 40px;
    font-size: 10px;
}


/* ==========================================================================
   RACER PROFILE - COMMENT LIST
   ========================================================================== */

.nar-profile-comment-list {
    display: flex;
    flex-direction: column;
}

.nar-profile-comment {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(245, 243, 240, 0.075);
}

.nar-profile-comment:last-child {
    border-bottom: 0;
}

.nar-profile-comment-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1b1b1f;
    border: 1px solid rgba(226, 16, 31, 0.28);
    border-radius: 50%;
    color: #e2101f;
    font-family: "Teko", "Arial Narrow", sans-serif;
    font-size: 23px;
    font-weight: 600;
}

.nar-profile-comment-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nar-profile-comment-avatar span {
    line-height: 1;
}

.nar-profile-comment-content {
    min-width: 0;
    flex: 1;
}

.nar-profile-comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-bottom: 10px;
}

.nar-profile-comment-meta strong {
    color: #f5f3f0;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.nar-profile-comment-meta > span {
    color: #777980;
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
}

.nar-profile-comment-text {
    color: #b6b7bc;
    font-size: 13px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.nar-profile-comment-text strong {
    color: #f5f3f0;
    font-weight: 700;
}

.nar-profile-comment-text em {
    color: #f5f3f0;
}

.nar-profile-comment-text u {
    text-decoration-color: #e2101f;
    text-underline-offset: 3px;
}


/* Admin-only control, rendered by PHP only for admins. */

.nar-profile-comment-delete-form {
    flex: 0 0 auto;
    margin: 0 0 0 8px;
}

.nar-profile-comment-delete {
    padding: 6px 9px;
    background: transparent;
    border: 1px solid rgba(245, 243, 240, 0.10);
    border-radius: 3px;
    color: #8d8f94;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.nar-profile-comment-delete:hover,
.nar-profile-comment-delete:focus-visible {
    background: rgba(226, 16, 31, 0.10);
    border-color: rgba(226, 16, 31, 0.55);
    color: #ff3b4e;
    outline: none;
}


/* ==========================================================================
   RACER PROFILE - RESPONSIVE OVERRIDES
   ========================================================================== */

@media (max-width: 767px) {

    .nar-profile-hero-topline {
        align-items: flex-start;
        gap: 18px;
    }

    .nar-profile-identity {
        align-items: flex-start;
        gap: 17px;
    }

    .nar-profile-like-floating {
        padding-top: 10px;
    }

    .nar-profile-heart-button,
    .nar-profile-heart-display {
        min-width: 62px;
        min-height: 62px;
        padding: 7px;
    }

    .nar-profile-heart-icon {
        font-size: 22px;
    }

    .nar-profile-heart-count {
        font-size: 10px;
    }

    .nar-profile-heart-note {
        font-size: 8px;
        text-align: center;
    }

    .nar-profile-comments-card {
        padding: 20px;
    }

    .nar-profile-comment {
        gap: 11px;
    }

    .nar-profile-comment-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .nar-profile-comment-delete-form {
        margin-left: 0;
    }

    .nar-profile-comment-delete {
        padding: 5px 6px;
        font-size: 8px;
    }

}

@media (max-width: 480px) {

    .nar-profile-hero-topline {
        gap: 12px;
    }

    .nar-profile-identity {
        flex-direction: column;
    }

    .nar-profile-identity-content h1 {
        font-size: 3rem;
    }

    .nar-profile-heart-button,
    .nar-profile-heart-display {
        min-width: 54px;
        min-height: 54px;
    }

    .nar-profile-heart-icon {
        font-size: 20px;
    }

}