html {
  background-color: #000;
}

body {
  background-color: #000; /* pitch black */
  color: #e0e0e0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  /* centering handled by .container and ribbon */
}

header, footer {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 2rem;
  color: #66ccff;
}

h2 {
  color: #66ccff;
  border-bottom: 2px solid #333;
  padding-bottom: 0.3rem;
}

h3, h4, p, li {
  color: #d7dde3;
}

a {
  transition: color 180ms ease, text-shadow 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a:not(.btn) {
  color: #9ddcff;
  text-decoration-color: rgba(157,220,255,0.35);
}

a:not(.btn):hover,
a:not(.btn):focus-visible {
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(102,204,255,0.50),
    0 0 12px rgba(102,204,255,0.18);
}
/* Neon glow for category headings (Ported, Updated, Working On) */
section > h2 {
  text-shadow:
    0 0 2px rgba(102,204,255,0.80),
    0 0 8px rgba(102,204,255,0.34),
    0 0 18px rgba(102,204,255,0.16);
}

/* Neon glow for the main header line */
header > h2 {
  text-shadow:
    0 0 2px rgba(102,204,255,0.80),
    0 0 8px rgba(102,204,255,0.34),
    0 0 18px rgba(102,204,255,0.16);
}

header h3,
header h4 {
  color: #dfe7ee;
  text-shadow: 0 0 1px rgba(255,255,255,0.05);
}

header h3 {
  font-weight: 600;
}

header h4 {
  font-weight: 500;
  color: #aeb8c1;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Glowy panel around the main track table */
.track-table-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  padding: 10px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid rgba(102, 204, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(102, 204, 255, 0.12),
    0 0 18px rgba(102, 204, 255, 0.16),
    0 0 32px rgba(102, 204, 255, 0.08);
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease, filter 220ms ease;
}

.track-table-shell::before {
  content: none;
}

.track-table-shell::after {
  content: none;
}

.track-table-shell:hover,
.track-table-shell:focus-within {
  border-color: rgba(102, 204, 255, 0.52);
  box-shadow:
    0 0 0 1px rgba(102, 204, 255, 0.2),
    0 0 28px rgba(102, 204, 255, 0.28),
    0 0 52px rgba(102, 204, 255, 0.14);
  filter: saturate(1.05);
  transform: translateY(-1px);
}

table.track-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: transparent;
}

table.track-table thead th {
  background: transparent;
  box-shadow: inset 0 -1px 0 rgba(102, 204, 255, 0.14);
}

/* Padding stays the same */
th, td {
  padding: 0.75rem;
  text-align: left;
}

/* Header row only */
thead th {
  background-color: transparent;
  color: #ffffff;                   /* white text */
  font-size: 1.125rem;              /* bigger header labels */
  letter-spacing: 0.02em;
  text-shadow:                      /* neon-like glow */
    0 0 2px rgba(255,255,255,0.92),
    0 0 8px rgba(102,204,255,0.40),
    0 0 16px rgba(255,255,255,0.20);
}
thead th:last-child { text-align: right; } /* align with Download buttons */

/* Body rows: transparent fill with neon hover accents only */
tbody tr { background-color: transparent; }
/* Fade between states (50% slower + include text-shadow) */
tbody tr,
tbody th[scope="row"],
tbody td {
  transition:
    background-color 330ms ease,
    box-shadow 330ms ease,
    outline-color 330ms ease,
    color 240ms ease,
    text-shadow 240ms ease;
}
tbody tr:nth-child(even) { background-color: transparent; }

tbody tr:hover,
tbody tr:focus-within {
  background-color: rgba(102, 204, 255, 0.035);
}

/* Track names as row headers: accent color, no solid background */
tbody th[scope="row"] {
  color: #66ccff;
  background: transparent;
  font-weight: 700;
}

/* Subtle separators for readability */
tbody th[scope="row"], tbody td {
  border-top: 1px solid #111;
}

/* Right-align the Download column */
tbody td:last-child { text-align: right; }

/* Full-row hover highlight (easy on eyes) */
tbody tr:hover {
  background-color: rgba(102, 204, 255, 0.035); /* will fade in/out */
}

/* Neon glow on the Track Name when row is hovered/focused/active */
tbody tr:hover > th[scope="row"],
tbody tr:focus-within > th[scope="row"],
tbody tr:has(a.btn-download:hover) > th[scope="row"],
tbody tr:has(a.btn-download:focus-visible) > th[scope="row"] {
  /* keep original color; just add glow */
  text-shadow:
    0 0 2px rgba(102,204,255,0.85),
    0 0 6px rgba(102,204,255,0.55),
    0 0 14px rgba(102,204,255,0.35);
}

/* When the Download button is hovered/focused, highlight the whole row */
tbody tr:has(a.btn-download:hover),
tbody tr:has(a.btn-download:focus-visible) {
  background-color: rgba(102, 204, 255, 0.06);
  outline: 2px solid #66ccff66;
  outline-offset: -2px;
}

/* Add a left accent bar on hover/focus for quick targeting */
tbody tr:hover > :first-child,
tbody tr:has(a.btn-download:hover) > :first-child,
tbody tr:has(a.btn-download:focus-visible) > :first-child {
  box-shadow: inset 3px 0 0 #66ccff; /* fades via transition above */
}

ul {
  list-style: none;
  padding: 0;
}

ul li::before {
  content: "•";
  color: #66ccff;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

footer {
  font-size: 0.9rem;
  color: #888;
  border: 1px solid rgba(102, 204, 255, 0.10);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 8px 24px rgba(0,0,0,0.28),
    inset 0 0 18px rgba(102,204,255,0.03);
}

footer .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  margin: 12px 0 0;
}

footer .socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

footer .socials a:hover {
  transform: translateY(-1px);
}

footer .socials .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  filter:
    drop-shadow(0 0 4px var(--glow))
    drop-shadow(0 0 10px var(--glow));
  transition: filter 0.25s ease;
}

footer .socials a:hover .icon,
footer .socials a:focus-visible .icon {
  filter:
    drop-shadow(0 0 6px var(--glow))
    drop-shadow(0 0 14px var(--glow))
    drop-shadow(0 0 22px var(--glow));
}

footer .socials .label {
  font-weight: 600;
  text-shadow:
    0 0 2px var(--glow),
    0 0 8px var(--glow);
  transition: text-shadow 0.25s ease;
}

footer .socials a:hover .label,
footer .socials a:focus-visible .label {
  text-shadow:
    0 0 4px var(--glow),
    0 0 12px var(--glow),
    0 0 22px var(--glow);
}

footer .socials a.youtube  { --brand: #ff0000; color: var(--brand); --glow: rgba(255,0,0,0.85); }
footer .socials a.github   { --brand: #ffffff; color: var(--brand); --glow: rgba(255,255,255,0.85); }
footer .socials a.beamng   { --brand: #ff5500; color: var(--brand); --glow: rgba(255,85,0,0.85); }
footer .socials a.steam    { --brand: #66C0F4; color: var(--brand); --glow: rgba(102,192,244,0.85); }

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  pointer-events: none; /* let clicks pass through */
  z-index: 0; /* content and ribbon are above */
}

/* Accessible helper: visually hidden but available to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Optional: slightly dim if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg-canvas { opacity: 0.9; }
}

/* Buttons for Download links */
.btn {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease; /* smooth glow */
}
.btn-download {
  background-color: #66ccff; /* same blue as headings */
  color: #0b0b0b; /* high contrast on light blue */
  box-shadow: none;
}
.btn-download:hover {
  filter: none; /* keep color crisp */
  transform: translateY(-1px);
  box-shadow:
    0 0 6px rgba(102,204,255,0.9),
    0 0 14px rgba(102,204,255,0.55),
    0 0 24px rgba(102,204,255,0.35);
}
/* Match glow when focused via keyboard */
.btn-download:focus-visible {
  box-shadow:
    0 0 6px rgba(102,204,255,0.9),
    0 0 14px rgba(102,204,255,0.55),
    0 0 24px rgba(102,204,255,0.35);
}

/* Discord button (light blue + glow on hover) */
.btn-discord {
  background-color: #7289DA; /* Discord light blue */
  color: #ffffff;
  box-shadow: none;
}
.btn-discord:hover,
.btn-discord:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 6px rgba(114,137,218,0.9),
    0 0 14px rgba(114,137,218,0.65),
    0 0 24px rgba(114,137,218,0.45);
}
.btn-discord:active {
  transform: translateY(0);
}

/* Patreon text link (brighter neon + pulse) */
.btn-patreon {
  color: #FF424D;
  background: transparent;
  text-shadow:
    0 0 5px rgba(255,66,77,1),
    0 0 16px rgba(255,66,77,0.95),
    0 0 32px rgba(255,66,77,0.75),
    0 0 54px rgba(255,66,77,0.55);
  transition: transform 0.2s ease;
  animation: neon-pulse-red 2.2s ease-in-out infinite alternate;
}
.btn-patreon:hover,
.btn-patreon:focus-visible {
  transform: translateY(-1px);
  /* speed up and intensify while hovered/focused */
  animation: neon-pulse-red-strong 1.2s ease-in-out infinite alternate;
}

/* Buy Me a Coffee text link (brighter neon + pulse) */
.link-bmac {
  color: #FFDD00;
  background: transparent;
  text-shadow:
    0 0 5px rgba(255,221,0,1),
    0 0 16px rgba(255,221,0,0.95),
    0 0 32px rgba(255,221,0,0.75),
    0 0 54px rgba(255,221,0,0.55);
  transition: transform 0.2s ease;
  animation: neon-pulse-yellow 2.4s ease-in-out infinite alternate;
}
.link-bmac:hover,
.link-bmac:focus-visible {
  transform: translateY(-1px);
  /* speed up and intensify while hovered/focused */
  animation: neon-pulse-yellow-strong 1.2s ease-in-out infinite alternate;
}

/* Keyframes: subtle breathing neon pulse */
@keyframes neon-pulse-red {
  0% {
    text-shadow:
      0 0 4px rgba(255,66,77,0.95),
      0 0 14px rgba(255,66,77,0.85),
      0 0 26px rgba(255,66,77,0.65),
      0 0 44px rgba(255,66,77,0.50);
  }
  100% {
    text-shadow:
      0 0 8px rgba(255,66,77,1),
      0 0 22px rgba(255,66,77,0.95),
      0 0 40px rgba(255,66,77,0.75),
      0 0 70px rgba(255,66,77,0.60);
  }
}
@keyframes neon-pulse-red-strong {
  0% {
    text-shadow:
      0 0 6px rgba(255,66,77,1),
      0 0 18px rgba(255,66,77,0.95),
      0 0 36px rgba(255,66,77,0.80),
      0 0 64px rgba(255,66,77,0.65);
  }
  100% {
    text-shadow:
      0 0 10px rgba(255,66,77,1),
      0 0 28px rgba(255,66,77,0.98),
      0 0 56px rgba(255,66,77,0.85),
      0 0 90px rgba(255,66,77,0.70);
  }
}

@keyframes neon-pulse-yellow {
  0% {
    text-shadow:
      0 0 4px rgba(255,221,0,0.95),
      0 0 14px rgba(255,221,0,0.85),
      0 0 26px rgba(255,221,0,0.65),
      0 0 44px rgba(255,221,0,0.50);
  }
  100% {
    text-shadow:
      0 0 8px rgba(255,221,0,1),
      0 0 22px rgba(255,221,0,0.95),
      0 0 40px rgba(255,221,0,0.75),
      0 0 70px rgba(255,221,0,0.60);
  }
}
@keyframes neon-pulse-yellow-strong {
  0% {
    text-shadow:
      0 0 6px rgba(255,221,0,1),
      0 0 18px rgba(255,221,0,0.95),
      0 0 36px rgba(255,221,0,0.80),
      0 0 64px rgba(255,221,0,0.65);
  }
  100% {
    text-shadow:
      0 0 10px rgba(255,221,0,1),
      0 0 28px rgba(255,221,0,0.98),
      0 0 56px rgba(255,221,0,0.85),
      0 0 90px rgba(255,221,0,0.70);
  }
}

/* Top ribbon site title: brighter white neon + animation */
.top-ribbon .site-title {
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,0.95),
    0 0 26px rgba(255,255,255,0.75),
    0 0 44px rgba(255,255,255,0.55);
  animation: neon-pulse-white 2.5s ease-in-out infinite alternate;
}
.top-ribbon .site-title:hover,
.top-ribbon .site-title:focus-visible {
  animation: neon-pulse-white-strong 1.2s ease-in-out infinite alternate;
}

/* Keyframes: white neon pulse */
@keyframes neon-pulse-white {
  0% {
    text-shadow:
      0 0 4px rgba(255,255,255,0.95),
      0 0 12px rgba(255,255,255,0.85),
      0 0 24px rgba(255,255,255,0.65),
      0 0 40px rgba(255,255,255,0.50);
  }
  100% {
    text-shadow:
      0 0 8px rgba(255,255,255,1),
      0 0 20px rgba(255,255,255,0.95),
      0 0 36px rgba(255,255,255,0.75),
      0 0 64px rgba(255,255,255,0.60);
  }
}
@keyframes neon-pulse-white-strong {
  0% {
    text-shadow:
      0 0 6px rgba(255,255,255,1),
      0 0 18px rgba(255,255,255,0.95),
      0 0 34px rgba(255,255,255,0.80),
      0 0 58px rgba(255,255,255,0.65);
  }
  100% {
    text-shadow:
      0 0 10px rgba(255,255,255,1),
      0 0 28px rgba(255,255,255,0.98),
      0 0 56px rgba(255,255,255,0.85),
      0 0 90px rgba(255,255,255,0.70);
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn-patreon,
  .link-bmac,
  .top-ribbon .site-title {
    animation: none !important;
  }
}

footer .socials a.discord  { --brand: #7289da; color: var(--brand); --glow: rgba(114,137,218,0.85); }
footer .socials a.twitter  { --brand: #1da1f2; color: var(--brand); --glow: rgba(29,161,242,0.85); }
footer .socials a.youtube  { --brand: #ff0000; color: var(--brand); --glow: rgba(255,0,0,0.85); }
footer .socials a.github   { --brand: #ffffff; color: var(--brand); --glow: rgba(255,255,255,0.85); }
footer .socials a.beamng   { --brand: #ff5500; color: var(--brand); --glow: rgba(255,85,0,0.85); }
/* Use Steam bright blue for text so it shows on dark bg */
footer .socials a.steam    { --brand: #66C0F4; color: var(--brand); --glow: rgba(102,192,244,0.85); }
footer .socials a.patreon  { --brand: #FF424D; color: var(--brand); --glow: rgba(255,66,77,0.85); }
footer .socials a.bmac     { --brand: #FFDD00; color: var(--brand); --glow: rgba(255,221,0,0.85); }

@media (max-width: 640px) {
  footer .socials {
    gap: 8px 10px;
  }

  footer .socials a {
    padding: 3px 4px;
    gap: 6px;
  }

  footer .socials .icon {
    width: 16px;
    height: 16px;
  }

  footer .socials .label {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  footer .socials {
    gap: 6px 8px;
    justify-content: center;
  }

  footer .socials a {
    flex: 0 0 calc((100% - 16px) / 3);
    justify-content: center;
    padding: 3px 2px;
    gap: 5px;
    min-width: 0;
  }

  footer .socials .icon {
    width: 15px;
    height: 15px;
  }

  footer .socials .label {
    font-size: 0.88rem;
    text-align: center;
  }
}

/* Stack Patreon above BMC in the header */
header .btn-patreon { display: inline-block; } /* keep natural width */
header .link-bmac { display: block; margin-top: 10px; } /* force onto next line */

/* Selection + caret color (matches background node orange) */
::selection { background: #ff6600; color: #0b0b0b; }
::-moz-selection { background: #ff6600; color: #0b0b0b; }

/* Inside form controls (where supported) */
input::selection,
textarea::selection {
  background: #ff6600;
  color: #0b0b0b;
}

/* Caret color */
body, input, textarea, [contenteditable="true"] {
  caret-color: #ff6600;
}
