/* Rearview's shared visual layer: the launcher's ink, coral and compact type. */
:root { --rv-ink:#0f1923; --rv-deep:#0a1119; --rv-panel:#16232f; --rv-red:#ff4655; --rv-white:#f3f4f2; --rv-muted:#a7b2bb; --rv-rule:rgba(215,228,232,.17); }
html { scroll-behavior:smooth; }
body { background:var(--rv-ink); color:var(--rv-white); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline:3px solid #61dbf0; outline-offset:4px; }
.skip-link { position:fixed; top:-5rem; left:1rem; z-index:3000; padding:.8rem 1rem; background:#fff; color:#111; }
.skip-link:focus { top:1rem; }
#main-header { background:rgba(10,17,25,.95); border-bottom:1px solid rgba(255,255,255,.08); backdrop-filter:blur(14px); }
#main-header nav { min-height:76px; padding-top:.7rem; padding-bottom:.7rem; }
#main-header .nav-links { gap:2rem; }
#main-header .nav-links a { font-family:Inter,sans-serif; font-size:.68rem; letter-spacing:.09em; }
#main-header .nav-links a:not(.btn-primary)::before { display:none; }
#main-header .nav-links a:not(.btn-primary):hover { transform:none; }
.site-brand { display:flex; align-items:center; gap:11px; color:#fff; text-decoration:none; font:700 1.04rem/1 Oswald,sans-serif; letter-spacing:.08em; }
.site-brand img { width:42px; height:42px; object-fit:contain; }
.site-brand small { display:block; margin-top:6px; color:#9daab3; font:600 .49rem/1 Inter,sans-serif; letter-spacing:.18em; }
#main-header .btn-primary { padding:.8rem 1.2rem; background:var(--rv-red); box-shadow:none; }
#main-header .btn-primary:hover { transform:none; background:#ff6571; box-shadow:none; }
.lang-btn { min-height:38px; padding:.45rem .75rem; }
.menu-toggle { display:none; background:transparent; border:1px solid var(--rv-rule); color:#fff; padding:.6rem .7rem; font:700 .7rem Inter,sans-serif; letter-spacing:.1em; cursor:pointer; }
.rv-container { width:min(100% - 96px, 1380px); margin:0 auto; }
.rv-home h2, .rv-download h1, .rv-download h2 { font-family:Oswald, Impact, sans-serif; font-weight:700; text-transform:uppercase; letter-spacing:-.025em; }
.rv-hero { position:relative; min-height:760px; height:min(100svh, 1000px); display:flex; overflow:hidden; isolation:isolate; background:#111c25; }
.rv-hero-media, .rv-hero-shade { position:absolute; inset:0; z-index:-1; }
.rv-hero-media { background:url('factions.png') 30% 35%/cover no-repeat; }
.rv-hero-shade { background:linear-gradient(90deg,rgba(6,13,20,.96) 0%,rgba(7,14,20,.80) 29%,rgba(7,14,20,.23) 70%,rgba(7,14,20,.15) 100%),linear-gradient(0deg,rgba(9,16,23,.95),transparent 26%); }
.rv-hero-inner { display:flex; align-items:center; position:relative; padding:120px 0 115px; }
.hero-copy { width:min(570px,57%); }
.rv-eyebrow, .section-kicker, .section-index, .hero-platform, .hero-side-note, .hero-bottom, .news-tag, .image-label, .footer-bottom { font:700 .68rem/1.4 Inter,sans-serif; letter-spacing:.15em; text-transform:uppercase; }
.rv-eyebrow { display:flex; align-items:center; gap:12px; color:#d8e0e2; margin-bottom:26px; }
.eyebrow-line { display:block; width:36px; height:3px; background:var(--rv-red); }
.rv-hero h1 { margin:0; line-height:1; }
.rv-hero h1 img { width:min(100%,510px); max-height:150px; object-fit:contain; object-position:left; }
.hero-description { max-width:410px; color:#d9e0e2; font-size:clamp(1rem,1.5vw,1.2rem); line-height:1.6; margin:28px 0; }
.rv-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.rv-button { display:inline-flex; justify-content:space-between; align-items:center; gap:38px; min-height:56px; padding:0 20px; color:#fff; font:800 .72rem Inter,sans-serif; letter-spacing:.08em; text-decoration:none; transition:background .2s,color .2s; }
.rv-button.primary { background:var(--rv-red); min-width:260px; }
.rv-button.primary:hover { background:#ff6571; }
.rv-button.text-button { color:#fff; padding-left:10px; }
.rv-button.text-button:hover { color:#ff8d96; }
.hero-platform { color:#d4dce0; display:flex; gap:9px; align-items:center; margin-top:28px; }
.status-dot { width:6px; height:6px; background:var(--rv-red); border-radius:50%; }
.hero-side-note { position:absolute; right:0; bottom:136px; display:grid; gap:12px; color:#d5dadb; text-align:right; }
.hero-side-note span:first-child { color:var(--rv-red); }
.hero-bottom { position:absolute; left:0; bottom:0; width:100%; border-top:1px solid rgba(255,255,255,.24); color:#bbc5c8; }
.hero-bottom-inner { min-height:55px; display:flex; justify-content:space-between; align-items:center; }
.hero-bottom a { color:#fff; text-decoration:none; }
.rv-section { padding:120px 0; }
.intro-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:10%; align-items:end; }
.section-index { display:flex; align-items:center; gap:14px; color:#9baab2; margin-bottom:23px; }
.section-index span:first-child { color:var(--rv-red); font-family:Oswald,sans-serif; font-size:1.15rem; }
.rv-home h2 { font-size:clamp(3.4rem,6.4vw,6.8rem); line-height:.99; margin:0; }
.red { color:var(--rv-red); }
.intro-copy { max-width:495px; padding-bottom:5px; }
.section-kicker { color:var(--rv-red); margin-bottom:22px; }
.intro-copy .lead { color:#eef3f2; font-size:clamp(1.25rem,2vw,1.65rem); font-weight:600; line-height:1.35; margin-bottom:20px; }
.intro-copy > p:not(.section-kicker):not(.lead), .heading-side p, .rv-arena-copy p:not(.section-index), .end-grid p:not(.section-kicker) { color:var(--rv-muted); line-height:1.75; font-size:.95rem; }
.rv-link { display:inline-flex; align-items:center; gap:24px; padding:16px 0 10px; border-bottom:2px solid var(--rv-red); text-decoration:none; color:#fff; font:800 .7rem Inter,sans-serif; letter-spacing:.09em; }
.rv-link:hover { color:#ff818c; }
.intro-copy .rv-link, .rv-arena-copy .rv-link { margin-top:22px; }
.rv-drivers { background:#e9e8e2; color:#111b23; }
.rv-drivers .section-index { color:#5c6b71; }
.rv-drivers .section-heading .rv-link { color:#15222c; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:40px; margin-bottom:48px; }
.section-heading h2 { font-size:clamp(3rem,5vw,5.2rem); }
.heading-side { max-width:380px; }
.heading-side p { color:#50606a; }
.roster-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.roster-card { position:relative; display:block; aspect-ratio:4/4.3; overflow:hidden; color:#fff; background:#17232d; text-decoration:none; }
.roster-card::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,15,20,.15),transparent 35%,rgba(8,15,20,.88)); pointer-events:none; }
.roster-card img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .4s ease; }
.roster-card:hover img { transform:scale(1.035); }
.roster-number { position:absolute; top:15px; right:19px; z-index:1; font:600 .7rem Inter,sans-serif; letter-spacing:.12em; }
.roster-caption { position:absolute; z-index:1; left:24px; right:24px; bottom:20px; display:grid; grid-template-columns:1fr auto; align-items:end; }
.roster-caption small { grid-column:1/-1; font:700 .62rem Inter,sans-serif; letter-spacing:.14em; color:#c9d1d2; margin-bottom:8px; }
.roster-caption strong { font:600 clamp(1.8rem,3vw,3rem)/1 Oswald,sans-serif; }
.roster-caption > span { font-size:1.4rem; color:var(--rv-red); }
.rv-arena { display:grid; grid-template-columns:1.25fr .75fr; gap:0; padding:0; min-height:570px; background:#111d26; }
.rv-arena-image { position:relative; min-height:500px; overflow:hidden; }
.rv-arena-image img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.image-label { position:absolute; bottom:20px; left:24px; padding:8px 10px; background:#0f1923d9; color:white; }
.rv-arena-copy { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:65px clamp(36px,5vw,90px); }
.rv-arena-copy h2 { font-size:clamp(3rem,4.5vw,5rem); margin-bottom:26px; }
.rv-news { background:#101a23; }
.news-heading { margin-bottom:35px; }
.rv-news-list { border-top:1px solid var(--rv-rule); }
.rv-news-row { min-height:94px; display:grid; grid-template-columns:190px 1fr 150px 24px; align-items:center; gap:20px; color:#fff; text-decoration:none; border-bottom:1px solid var(--rv-rule); transition:background .2s; padding:20px 12px; }
.rv-news-row:hover { background:rgba(255,255,255,.04); }
.rv-news-row .news-tag { color:var(--rv-red); }
.rv-news-row strong { font:600 1.35rem Oswald,sans-serif; text-transform:uppercase; }
.rv-news-row > span:nth-last-child(2) { color:#a8b4bb; font-size:.73rem; }
.rv-news-row > span:last-child { color:var(--rv-red); font-size:1.2rem; }
.rv-end { background:#e9e8e2; color:#111b23; overflow:hidden; }
.end-grid { min-height:460px; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:5%; }
.end-grid > div { padding:75px 0; }
.end-grid h2 { font-size:clamp(3.5rem,6vw,6.1rem); margin-bottom:20px; }
.end-grid p:not(.section-kicker) { max-width:470px; color:#485a63; margin-bottom:27px; }
.end-grid img { width:100%; height:100%; min-height:460px; object-fit:cover; }
.rv-footer { background:#09121a; padding:70px 0 0; }
.footer-top { display:grid; grid-template-columns:1.2fr 1.4fr 1fr 1fr; gap:35px; padding-bottom:65px; }
.footer-wordmark img { width:min(220px,100%); }
.footer-top p { color:#99a8af; font-size:.85rem; }
.footer-nav, .footer-social { display:flex; flex-direction:column; gap:14px; }
.footer-nav a, .footer-social a { color:#d2dadc; font:700 .67rem Inter,sans-serif; letter-spacing:.08em; text-decoration:none; text-transform:uppercase; }
.footer-nav a:hover, .footer-social a:hover { color:var(--rv-red); }
.footer-bottom { display:flex; justify-content:space-between; color:#72838b; border-top:1px solid var(--rv-rule); padding-top:22px; padding-bottom:24px; font-size:.6rem; }
/* Keep the existing pages usable when JS animation or a filter is unavailable. */
.reveal-item.active, .reveal-text.active { opacity:1; transform:none; }
.driver-card { cursor:pointer; }
@media (max-width:900px) {
  #main-header .nav-links { gap:1rem; }
  #main-header .nav-links a { font-size:.62rem; }
  .rv-container { width:min(100% - 48px,1380px); }
  .rv-hero { min-height:700px; }
  .rv-section { padding:85px 0; }
  .rv-arena { padding:0; }
  .intro-grid { gap:7%; }
  .footer-top { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  #main-header nav { min-height:68px; }
  .menu-toggle { display:block; margin-left:auto; }
  #main-header .nav-links { display:none; position:absolute; top:100%; left:0; right:0; padding:20px 24px 25px; flex-direction:column; align-items:stretch; gap:0; background:#0d1821; border-bottom:1px solid var(--rv-rule); }
  #main-header .nav-links.is-open { display:flex; }
  #main-header .nav-links > li { padding:11px 0; border-bottom:1px solid var(--rv-rule); }
  #main-header .nav-links > li:last-child { border:0; }
  #main-header .nav-links a { font-size:.75rem; }
  #main-header .nav-links .btn-primary { display:block; text-align:center; }
  .lang-selector { justify-content:flex-start; }
  .lang-dropdown { left:0; right:auto; }
  .rv-hero { height:auto; min-height:760px; }
  .rv-hero-media { background-position:72% center; }
  .rv-hero-shade { background:linear-gradient(90deg,rgba(6,13,20,.92),rgba(6,13,20,.45)),linear-gradient(0deg,rgba(6,13,20,.88),transparent 55%); }
  .rv-hero-inner { padding:150px 0 140px; align-items:end; }
  .hero-copy { width:100%; }
  .hero-side-note { display:none; }
  .hero-bottom { font-size:.55rem; }
  .intro-grid { grid-template-columns:1fr; gap:35px; }
  .section-heading { align-items:start; flex-direction:column; gap:24px; }
  .roster-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .roster-card { aspect-ratio:2/3; }
  .roster-caption { left:10px; right:10px; bottom:12px; }
  .roster-caption small { font-size:.48rem; }
  .roster-caption strong { font-size:clamp(1rem,4vw,1.7rem); overflow-wrap:anywhere; }
  .roster-caption > span { font-size:1rem; }
  .rv-arena { grid-template-columns:1fr; }
  .rv-arena-image { min-height:330px; }
  .rv-arena-copy { padding:65px 24px; }
  .rv-news-row { grid-template-columns:1fr auto; gap:8px 16px; }
  .rv-news-row .news-tag { grid-column:1; }
  .rv-news-row strong { grid-column:1; grid-row:2; }
  .rv-news-row > span:nth-last-child(2) { grid-column:1; grid-row:3; }
  .rv-news-row > span:last-child { grid-column:2; grid-row:2; }
  .end-grid { grid-template-columns:1fr; }
  .end-grid img { min-height:240px; max-height:310px; }
  .footer-top { gap:30px; }
  .drivers-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:400px) {
  .rv-container { width:calc(100% - 36px); }
  .rv-hero h1 img { width:100%; }
  .hero-bottom-inner { gap:12px; }
  .rv-actions { align-items:flex-start; flex-direction:column; }
  .rv-button.primary { width:100%; }
  .footer-top { grid-template-columns:1fr 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal-item, .reveal-text { opacity:1 !important; transform:none !important; }
}
/* Download page */
.rv-download .download-mast { position:relative; min-height:660px; display:flex; align-items:center; background:#111d27; overflow:hidden; isolation:isolate; }
.download-art { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#0c1721 0%,rgba(12,23,33,.92) 40%,rgba(12,23,33,.25) 100%),url('action.png') center/cover no-repeat; }
.download-layout { display:flex; justify-content:space-between; align-items:end; padding-top:150px; padding-bottom:90px; }
.download-copy { max-width:570px; }
.rv-download h1 { font-size:clamp(4rem,8vw,8rem); line-height:.93; white-space:pre-line; margin-bottom:27px; }
.download-intro { color:#d2dbde; font-size:1.05rem; line-height:1.65; max-width:440px; margin-bottom:28px; }
.download-source { color:#9daeb6; font-size:.75rem; margin-top:15px; }
.download-mark { font:700 8rem/.75 Oswald,sans-serif; color:rgba(255,255,255,.18); text-align:right; }
.download-mark span { font:700 .7rem Inter,sans-serif; letter-spacing:.15em; color:var(--rv-red); }
.download-instructions { background:#e9e8e2; color:#111b23; }
.download-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:40px; margin-top:35px; }
.download-steps > div { border-top:1px solid #aeb9b9; padding-top:22px; }
.download-steps > div > span { color:#e9394b; font:600 .85rem Oswald,sans-serif; }
.download-steps h2 { font-size:2rem; margin:24px 0 10px; }
.download-steps p, .download-help p { color:#50606a; font-size:.92rem; line-height:1.7; max-width:310px; }
.download-help { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-top:80px; border-top:1px solid #aeb9b9; padding-top:30px; }
.download-help strong { font:700 1.3rem Oswald,sans-serif; }
.download-help .rv-link { color:#14232b; white-space:nowrap; }
[data-copy="heroSide"], [data-copy="endTitle"], [data-copy="footerTagline"] { white-space:pre-line; }
@media(max-width:768px) { .download-mast { min-height:630px; } .download-art { background:linear-gradient(90deg,rgba(12,23,33,.96),rgba(12,23,33,.55)),url('action.png') 60% center/cover no-repeat; } .download-mark { display:none; } .download-steps { grid-template-columns:1fr; gap:30px; } .download-help { align-items:start; flex-direction:column; margin-top:55px; } }
/* The game's menus use wide, weighty headlines and precise UI labels. */
.rv-home h2, .rv-download h1 { font-family:Inter,Arial,sans-serif; font-weight:900; letter-spacing:-.055em; }
.driver-card.reveal-item { opacity:1; transform:none; }
@media (max-width:768px) { .driver-overlay .overlay-content { grid-template-columns:1fr; } }
@media (max-width:768px) {
  .driver-overlay { display:block; overflow-x:hidden; }
  .driver-overlay .overlay-content { display:flex; height:auto; min-height:100vh; min-width:0; overflow:visible; padding:70px 20px 50px; gap:15px; }
  .driver-overlay .char-image-section { order:0; position:relative; top:auto; width:100%; height:38vh; min-height:240px; }
  .driver-overlay .char-image-section img { width:100%; height:100%; object-fit:contain; }
  .driver-overlay .char-info-section { order:1; width:100%; max-width:100%; min-width:0; }
  .driver-overlay .char-header h1 { font-size:clamp(2.8rem,12vw,5rem); overflow-wrap:anywhere; }
  .driver-overlay .close-overlay-btn { position:fixed; top:16px; right:16px; width:44px; height:44px; font-size:1.25rem; }
  .driver-overlay .char-bio { overflow-wrap:anywhere; }
}
/* Override legacy patch-section styles for the new home and improve contrast. */
.rv-home #latest-patches { background:#101a23; color:#f3f4f2; padding:120px 0; }
.rv-home #latest-patches::before { display:none; }
.patch-notes-page #patch-notes .section-title { color:#0f1923; }
@media(max-width:900px) { .rv-home #latest-patches { padding:85px 0; } }
.related-item { background:transparent; border:0; padding:0; }
.role-separator.reveal-item { opacity:1; transform:none; }
/* Character selection follows the same restrained panels as the in-game menus. */
#drivers-hero { background:#0b141d; }
.drivers-bg { background-image:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size:110px 100%; }
.drivers-header h1 { font-family:Inter,Arial,sans-serif; font-weight:900; letter-spacing:-.05em; text-shadow:none; }
.drivers-header .subtitle { color:#9baab2; font-size:.72rem; letter-spacing:.16em; }
.driver-card { clip-path:none; background:#17242e; border:1px solid #3a4a54; }
.driver-card:hover, .driver-card.active { transform:none; box-shadow:none; border-color:#ff4655; }
.driver-image { filter:none; }
.driver-card:hover .driver-image, .driver-card.active .driver-image { filter:none; transform:scale(1.035); }
.filter-btn, .filter-dropdown { clip-path:none; }
@media(max-width:768px) { #drivers-hero { padding-top:110px; } .drivers-header h1 { font-size:2.4rem; } }
@media(max-width:400px) { .rv-intro h2 { font-size:clamp(2.35rem,11vw,3.4rem); } .intro-grid > * { min-width:0; } }
@media(max-width:768px) {
  html:not(.js) #main-header nav { flex-wrap:wrap; }
  html:not(.js) #main-header .nav-links { display:flex; position:static; flex-basis:100%; flex-direction:row; flex-wrap:wrap; gap:8px 16px; padding:5px 0; }
  html:not(.js) #main-header .nav-links > li { border:0; padding:3px 0; }
}
@media(max-width:400px) {
  .drivers-header .brackets-title { width:100%; min-width:0; gap:.5rem; }
  .drivers-header .bracket { width:12px; flex-shrink:0; }
  .drivers-header h1 { min-width:0; font-size:clamp(1.75rem,10vw,2.4rem); }
  .driver-overlay .char-tags { flex-wrap:wrap; gap:.5rem; }
}
.roster-item { min-width:0; }
.roster-item > p { color:#4f5f67; font-size:.84rem; line-height:1.6; padding:16px 3px 0; }
@media(max-width:768px) { .roster-item > p { font-size:.7rem; line-height:1.45; } }
@media(max-width:400px) { .roster-item > p { font-size:.65rem; overflow-wrap:anywhere; } }
/* Support page: same mast, index labels and list rows as home and download, with a donate-first hero. */
.rv-support h1, .rv-support h2 { font-family:Inter,Arial,sans-serif; font-weight:900; text-transform:uppercase; letter-spacing:-.055em; margin:0; }
.support-mast { position:relative; min-height:max(700px,100svh); display:flex; align-items:center; overflow:hidden; isolation:isolate; background:#111d27; }
.support-art, .support-shade { position:absolute; inset:0; z-index:-1; }
.support-art { background:url('maps.png') center/cover no-repeat; transform-origin:70% 40%; animation:rv-drift 26s ease-in-out infinite alternate; }
.support-shade { background:linear-gradient(90deg,#0c1721 0%,rgba(12,23,33,.9) 38%,rgba(12,23,33,.3) 100%),linear-gradient(0deg,rgba(9,16,23,.96),transparent 32%); }
.support-shade::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:110px 100%; }
.support-layout { display:flex; justify-content:space-between; align-items:end; gap:40px; padding-top:150px; padding-bottom:130px; }
.support-copy { max-width:620px; }
.rv-support .support-mast h1 { font-size:clamp(3.8rem,8.4vw,8.4rem); line-height:.9; margin-bottom:28px; }
.support-intro { color:#d2dbde; font-size:clamp(1rem,1.4vw,1.12rem); line-height:1.7; max-width:470px; margin:0 0 34px; }
.support-mast .status-dot { box-shadow:0 0 0 0 rgba(255,70,85,.6); animation:rv-pulse 2.2s ease-out infinite; }
/* The donate button keeps the site's coral; PayPal is identified by its mark, not its colors. */
.paypal-button { position:relative; overflow:hidden; isolation:isolate; transition:background .25s,transform .25s,box-shadow .25s; }
.paypal-button::before { content:''; position:absolute; inset:0 auto 0 -60%; width:45%; z-index:-1; background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent); transform:skewX(-20deg); animation:rv-shine 4.5s ease-in-out 1.6s infinite; }
.paypal-button:hover { transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(255,70,85,.75); }
.paypal-button > span[aria-hidden] { transition:transform .25s; }
.paypal-button:hover > span[aria-hidden] { transform:translate(3px,-3px); }
.paypal-label { display:inline-flex; align-items:center; gap:12px; }
.paypal-icon { width:18px; height:18px; flex:none; }
.rv-support .rv-button.text-button > span:last-child { transition:transform .25s; }
.rv-support .rv-button.text-button:hover > span:last-child { transform:translateY(3px); }
.support-impact { background:#e9e8e2; color:#111b23; }
.support-impact .section-index { color:#5c6b71; }
.support-impact h2, .support-ways h2 { font-size:clamp(2.8rem,5vw,5.2rem); line-height:.98; }
.impact-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.impact-card { position:relative; padding:34px 30px 38px; background:#f4f3ee; border:1px solid #d3d6d2; overflow:hidden; transition:transform .35s ease,box-shadow .35s ease,border-color .35s; }
.impact-card::before { content:''; position:absolute; top:0; left:0; height:3px; width:100%; background:var(--rv-red); transform:scaleX(0); transform-origin:left; transition:transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--d,0s) + .25s); }
.impact-card.is-in::before { transform:scaleX(.18); }
.impact-card:hover { transform:translateY(-6px); border-color:#bfc4c0; box-shadow:0 22px 40px -26px rgba(15,25,35,.55); }
.impact-card:hover::before { transform:scaleX(1); transition-delay:0s; }
.impact-num { position:absolute; top:24px; right:26px; color:#e9394b; font:600 .85rem Oswald,sans-serif; }
.impact-card i { font-size:1.6rem; color:#15222c; margin-bottom:46px; display:block; transition:color .3s,transform .3s; }
.impact-card:hover i { color:#e9394b; transform:translateX(4px); }
.impact-card h3 { font:900 1.7rem/1 Inter,Arial,sans-serif; letter-spacing:-.04em; margin:0 0 12px; }
.impact-card p { color:#50606a; font-size:.93rem; line-height:1.7; margin:0; }
.support-ways { background:#101a23; }
.support-ways .heading-side p { color:var(--rv-muted); }
.ways-list .rv-news-row { position:relative; transition:background .25s,padding .3s; }
.ways-list .rv-news-row::before { content:''; position:absolute; left:0; top:-1px; bottom:-1px; width:3px; background:var(--rv-red); transform:scaleY(0); transition:transform .3s; }
.ways-list .rv-news-row:hover { padding-left:26px; }
.ways-list .rv-news-row:hover::before { transform:scaleY(1); }
.ways-list .rv-news-row > span:last-child { transition:transform .25s; }
.ways-list .rv-news-row:hover > span:last-child { transform:translate(3px,-3px); }
.rv-support .end-grid h2 { font-size:clamp(3.5rem,6vw,6.1rem); line-height:.95; margin-bottom:20px; }
.end-media { position:relative; height:100%; min-height:460px; overflow:hidden; }
.end-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 1.2s cubic-bezier(.2,.7,.2,1); }
.end-media:hover img { transform:scale(1.04); }
/* Motion: a staggered entrance for the mast and scroll reveals elsewhere; site-refresh.js adds .is-in. */
.rv-enter { opacity:0; transform:translateY(26px); animation:rv-rise .9s cubic-bezier(.2,.7,.2,1) var(--d,0s) forwards; }
.js .rv-reveal { opacity:0; transform:translateY(34px); transition:opacity .8s ease var(--d,0s),transform .9s cubic-bezier(.2,.7,.2,1) var(--d,0s); }
.js .rv-reveal.is-in { opacity:1; transform:none; }
.js .impact-card.rv-reveal.is-settled { transition:transform .35s ease,box-shadow .35s ease,border-color .35s; }
.js .impact-card.rv-reveal.is-in:hover { transform:translateY(-6px); }
@keyframes rv-rise { to { opacity:1; transform:none; } }
@keyframes rv-drift { from { transform:scale(1.04) translate3d(0,0,0); } to { transform:scale(1.14) translate3d(-2%,1%,0); } }
@keyframes rv-pulse { 0% { box-shadow:0 0 0 0 rgba(255,70,85,.6); } 80%,100% { box-shadow:0 0 0 10px rgba(255,70,85,0); } }
@keyframes rv-shine { 0% { left:-60%; } 35%,100% { left:130%; } }
@media (max-width:900px) { .impact-grid { grid-template-columns:1fr; } .impact-card i { margin-bottom:28px; } }
@media (max-width:768px) {
  .support-mast { min-height:700px; }
  .support-shade { background:linear-gradient(90deg,rgba(12,23,33,.95),rgba(12,23,33,.6)),linear-gradient(0deg,rgba(9,16,23,.96),transparent 45%); }
  .support-layout { padding-top:130px; padding-bottom:110px; }
  .support-art { background-position:60% center; }
  .end-media { min-height:240px; max-height:310px; }
  .ways-list .rv-news-row:hover { padding-left:12px; }
}
@media (max-width:400px) { .rv-support .paypal-button { width:100%; min-width:0; } }
@media (prefers-reduced-motion:reduce) {
  .rv-enter, .js .rv-reveal { opacity:1 !important; transform:none !important; animation:none !important; }
  .support-art, .paypal-button::before, .support-mast .status-dot { animation:none !important; }
}

/* TEMP: pilotos ocultos momentáneamente. Borrar este bloque para volver a mostrarlos. */
#main-header nav li:has(> a[href^="drivers.html"]),
a[href^="drivers.html"],
#pilotos { display:none !important; }
