/* =========================================================
   Vespa Club Neulengbach – Stylesheet
   ========================================================= */

/* ---------- Selbst gehostete Schriften (SIL Open Font License) ----------
   Inter (rsms.me/inter) und Space Grotesk (Florian Karsten) – keine Verbindung zu Google Fonts. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2"); }


:root {
  --ink: #111111;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --cream: #f6f1e7;
  --cream-deep: #ebe3d3;
  --line: #e2dccf;
  --accent: #c8102e;        /* Vespa-Rot */
  --accent-dark: #a60c25;
  --accent-soft: #fbe9ec;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 3rem, var(--container)); } }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 999;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600;
  color: var(--accent); margin-bottom: .8rem;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.badge {
  display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; margin-right: .4rem;
  vertical-align: middle;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.brand-text strong { font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: .3rem 0; position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ink); color: #fff !important; padding: .55rem 1rem !important; border-radius: 999px;
}
.nav-cta:hover { background: #000; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle-bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand-text { font-size: .95rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1rem 1rem;
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav .nav-cta { margin-top: .75rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--cream) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
  padding-block: 3.5rem 3rem;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 3rem; padding-block: 5.5rem 5rem; }
}
.hero-copy h1 { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.hero-note { color: var(--ink-soft); font-size: .95rem; }

.hero-visual { display: flex; justify-content: center; }
.logo-ring {
  position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow), 0 0 0 10px #fff, 0 0 0 12px var(--line);
  display: grid; place-items: center; padding: 6%;
  animation: float 7s ease-in-out infinite;
}
.logo-ring img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .logo-ring { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
@media (min-width: 900px) { .section { padding-block: 6rem; } }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); }

.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: #ff5c73; }
.section-dark .section-lead { color: #c9c9c9; }
.section-cream { background: var(--cream); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Termine ---------- */
.events { display: grid; gap: 1rem; }
.events-loading, .events-empty { color: #c9c9c9; margin: 0; }
.events-empty { padding: 1.5rem; border: 1px dashed #444; border-radius: var(--radius); }
.event {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; align-items: start;
  background: #1b1b1b; border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 1.25rem;
}
@media (min-width: 640px) { .event { grid-template-columns: 96px 1fr auto; align-items: center; } }
.event-date {
  background: #fff; color: var(--ink); border-radius: var(--radius-sm); text-align: center; padding: .6rem .3rem;
  font-family: var(--font-display); line-height: 1;
}
.event-date .day { display: block; font-size: 1.9rem; font-weight: 700; }
.event-date .month { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-top: .25rem; color: var(--accent); font-weight: 700; }
.event h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.event-meta { color: #bdbdbd; font-size: .95rem; margin: 0; }
.event-desc { color: #e0e0e0; margin: .5rem 0 0; }
.event-link { grid-column: 1 / -1; }
@media (min-width: 640px) { .event-link { grid-column: auto; } }
.event-link .btn { border-color: #fff; color: #fff; padding: .6rem 1.1rem; font-size: .95rem; }
.event-link .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Mitglied werden ---------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.info-box { background: var(--cream); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.info-box h3 { margin-bottom: .75rem; }
.info-box p:last-child { margin: 0; }

/* ---------- Kontakt ---------- */
.contacts { max-width: 820px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-role { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.contact-card h3 { margin-bottom: .6rem; }
.contact-phone { display: inline-block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--accent); }
.contact-phone:hover { text-decoration: underline; }
.social-row { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #ddd; padding-block: 2.5rem; }
.footer-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; } .copyright { grid-column: 1 / -1; } }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.footer-brand strong { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: #ddd; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 0; font-size: .9rem; color: #999; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page { padding-block: 3rem 5rem; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.page .back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; color: var(--accent); font-weight: 600; }
.page .todo { background: #fff6d6; border: 1px solid #f0dc9a; border-radius: var(--radius-sm); padding: .8rem 1rem; }
.page address { font-style: normal; line-height: 1.7; }

/* Statische Navigation auf Unterseiten (kein Burger-Menü) */
.site-nav--static, .site-nav--static.site-nav {
  position: static; transform: none; opacity: 1; pointer-events: auto;
  flex-direction: row; box-shadow: none; border: 0; padding: 0; background: transparent;
}
.site-nav--static a { border-bottom: 0; }

/* ---------- Foto-Hero ---------- */
.hero-photo { position: relative; color: #fff; border-bottom: 0; background: var(--ink); }
.hero-photo .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.62) 45%, rgba(10,10,10,.25) 100%),
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,.55) 100%);
}
.hero-photo .hero-inner { position: relative; z-index: 2; min-height: min(78vh, 720px); }
.hero-photo .eyebrow { color: #ff6b80; }
.hero-photo .lead { color: rgba(255,255,255,.88); }
.hero-photo h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.hero-photo .logo-ring { box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.18); width: min(100%, 320px); }
@media (max-width: 899px) {
  .hero-photo .hero-inner { padding-block: 3.5rem 3rem; }
  .hero-photo .hero-visual { display: none; } /* am Handy reicht das Logo im Header */
  .hero-photo .hero-bg img { object-position: 60% 40%; }
}

/* ---------- Foto-Karten ---------- */
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.card-photo:hover img { transform: scale(1.04); }
.card-photo .card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-photo h3 { margin-bottom: .4rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; } }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--cream-deep); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-item::after {
  content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .7rem;
  font-size: .85rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-wide { grid-column: span 2; }
@media (min-width: 640px) { .gallery-wide { grid-row: span 2; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,8,.94);
  display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { color: #ddd; margin-top: .9rem; font-size: .95rem; }
.lightbox button {
  background: rgba(255,255,255,.1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; justify-self: center;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox-prev, .lightbox-next { position: absolute; bottom: 1rem; }
  .lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
  .lightbox img { max-height: 70vh; }
}

/* Hero ohne Logo-Ring: Text links, Foto bleibt rechts sichtbar */
.hero-photo .hero-inner { grid-template-columns: 1fr; }
.hero-photo .hero-copy { max-width: 40rem; }
.contact-mail { font-size: .95rem; word-break: break-all; }
.contacts.grid-3 { max-width: none; }
.footer-brand .muted a { color: #bbb; }

/* ---------- Wechselnder Spruch im Hero ---------- */
.hero-quote {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 500; line-height: 1.3;
  color: #ffd2da; margin: -.2rem 0 1.2rem; display: flex; align-items: center;
  /* Feste Höhe, damit das Layout beim Wechsel nicht springt: Fallback 2 Zeilen (Desktop) / 3 Zeilen (Handy);
     main.js misst den längsten Spruch und setzt die exakte Höhe per style. */
  min-height: 2.6em;
}
@media (max-width: 640px) { .hero-quote { min-height: 3.9em; } }
.hero-quote-text { display: inline-block; transition: opacity .45s ease, transform .45s ease; }
.hero-quote-text.is-out { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .hero-quote-text { transition: none; } }

/* Bildunterschrift auf Foto-Karten */
.card-media { position: relative; overflow: hidden; }
.card-media img { display: block; }
.card-media-caption {
  position: absolute; right: .6rem; bottom: .6rem; padding: .25rem .6rem; border-radius: 999px;
  background: rgba(17,17,17,.7); color: #fff; font-size: .72rem; letter-spacing: .04em; pointer-events: none;
}

/* ---------- Racing ---------- */
.racing-intro { margin-bottom: 2.5rem; }
.racing-box img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.racing-intro .checklist li::before { background-color: var(--ink); }
.racing-gallery .gallery-item { background: #eee; }

/* ---------- Rennspiel ---------- */
.race-main { padding-block: 3rem 4rem; }
.race-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.race-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .race-layout { grid-template-columns: minmax(0, 720px) 1fr; gap: 2rem; } }
.race-stage { position: relative; }
#race { display: block; width: 100%; max-width: 720px; aspect-ratio: 1; border-radius: var(--radius); box-shadow: var(--shadow); background: #d9c9a3; touch-action: none; cursor: pointer; }
.race-touch { display: none; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: .8rem; max-width: 720px; }
@media (hover: none) and (pointer: coarse) { .race-touch { display: grid; } }
.race-btn { font-size: 1.6rem; padding: .9rem 0; border: 0; border-radius: var(--radius-sm); background: var(--ink); color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.race-btn:active { background: var(--accent); }
.race-hud { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.race-msg { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #ffd2da; min-height: 2.9em; margin-bottom: 1rem; }
.race-hud dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0 0 1.5rem; }
.race-hud dl div { background: #1b1b1b; border-radius: var(--radius-sm); padding: .7rem .9rem; }
.race-hud dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #aaa; }
.race-hud dd { margin: .2rem 0 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.race-hud h3 { color: #fff; margin-bottom: .5rem; font-size: 1rem; }
.race-keys { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; color: #ddd; }
.race-hud kbd { display: inline-block; min-width: 1.6em; text-align: center; padding: .1rem .4rem; border-radius: 6px; background: #333; border: 1px solid #555; font-family: inherit; font-size: .9em; margin-right: .2rem; }
.race-hud .muted { color: #aaa; font-size: .9rem; }
.race-hud .btn-ghost { border-color: #fff; color: #fff; }
.race-hud .btn-ghost:hover { background: #fff; color: var(--ink); }
.race-note { margin-top: 1.5rem; }
.race-note a { color: var(--accent); }
