/* BUSMASTER-NG site: colors of the splash screen and social preview (Tools/make-splash.ps1) */
:root {
  --bg: #0e1a26;
  --bg2: #0a4e52;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(46, 204, 160, 0.25);
  --accent: #2ecca0;
  --blue: #78c8eb;
  --text: #e8f1f2;
  --muted: #9fb4b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg) 0%, #0c2c36 55%, var(--bg2) 100%) fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.92em; color: var(--blue); }
strong { color: #fff; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* fork ribbon, like the original page */
.ribbon-corner { position: absolute; top: 0; right: 0; z-index: 2; width: 160px; height: 160px; overflow: hidden; }
.ribbon {
  position: absolute; top: 42px; right: -56px;
  width: 220px; text-align: center;
  transform: rotate(45deg);
  padding: 6px 0;
  background: var(--accent); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.ribbon:hover { text-decoration: none; background: #fff; }

/* header */
.hero { padding: 64px 0 0; }
.hero-inner { display: flex; gap: 40px; align-items: center; }
.tile {
  flex: none;
  width: 180px; height: 180px; border-radius: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg), var(--bg2));
  border: 2px solid rgba(46, 204, 160, 0.45);
  font-size: 84px; font-weight: 700; color: #fff; letter-spacing: -0.02em;
}
.tile span, h1 span { color: var(--accent); }
h1 { margin: 0; font-size: 56px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }
.codename { margin: 4px 0 16px; font-size: 26px; font-weight: 300; color: var(--accent); }
.tagline { margin: 0 0 20px; font-size: 19px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.hero-note { margin: 0; color: var(--muted); font-size: 14px; }

/* the CAN frame strip of the splash screen */
.bus {
  height: 64px; margin-top: 48px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 30px / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 36px / 100% 2px no-repeat;
  opacity: 0.55;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 70px, transparent 70px 76px, #000 76px 180px, transparent 180px 186px);
          mask: repeating-linear-gradient(90deg, #000 0 70px, transparent 70px 76px, #000 76px 180px, transparent 180px 186px);
}

.btn {
  display: inline-block;
  padding: 10px 22px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text);
  font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: #fff; border-color: #fff; }

/* sponsor button and "Fuel the Overdrive" box */
.btn.sponsor { border-color: rgba(234, 74, 170, 0.6); }
.btn.sponsor:hover { border-color: #ea4aaa; background: rgba(234, 74, 170, 0.12); }
.heart { color: #ea4aaa; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 40%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } }
.fuel { border-color: rgba(234, 74, 170, 0.35); }
.fuel-inner { display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: center; }
.gauge { padding: 18px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.gauge-scale { display: flex; justify-content: space-between; font: 600 14px/1 Consolas, "Cascadia Mono", monospace; color: var(--muted); margin-bottom: 8px; }
.gauge-bar { height: 14px; border-radius: 7px; background: #0c252e; border: 1px solid rgba(46, 204, 160, 0.35); overflow: hidden; }
.gauge-fill { width: 14%; height: 100%; background: linear-gradient(90deg, #e8553b, #f0a03c); }
.gauge-warn { margin: 10px 0 0; font-size: 13px; color: #f0a03c; text-transform: uppercase; letter-spacing: 0.08em; }
.lamp { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #f0a03c; box-shadow: 0 0 8px #f0a03c; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .heart, .lamp { animation: none; } }

/* boxes */
main { padding-top: 32px; }
.box {
  margin: 0 0 24px; padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
}
.box h2 {
  margin: 0 0 16px; padding-bottom: 10px;
  font-size: 22px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.box p { margin: 0 0 12px; }
.box p:last-child { margin-bottom: 0; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.small { font-size: 14px; color: var(--muted); }

.links, .list { margin: 0; padding: 0; list-style: none; }
.links li { padding: 6px 0 6px 22px; position: relative; }
.links li::before, .list li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.links li span { display: block; font-size: 14px; color: var(--muted); }
.list { margin: 12px 0; }
.list li { position: relative; padding: 3px 0 3px 22px; }
.list li::before { top: 12px; width: 6px; height: 6px; background: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span {
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}

/* download and counter */
.download { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; }
.release { font-size: 18px; }
.release .date { color: var(--muted); font-size: 15px; }
.counter-box {
  text-align: center; padding: 20px 12px;
  border-radius: 12px; background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.counter-box > p:first-child { margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.counter { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; }
.counter span {
  width: 32px; height: 46px; border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(#11303a 50%, #0c252e 50%);
  border: 1px solid rgba(46, 204, 160, 0.35);
  font: 600 28px/1 Consolas, "Cascadia Mono", monospace;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.counter span.off { color: rgba(46, 204, 160, 0.25); }
.per-release { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }

/* questions and answers */
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq summary {
  padding: 10px 0 10px 22px; position: relative;
  cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  border: 5px solid transparent; border-left: 7px solid var(--accent);
  transition: transform 0.15s;
  transform-origin: 3px 5px;
}
.faq[open] summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--accent); }
.faq p { margin: 0 0 12px 22px; color: var(--muted); }

/* visitor map: the MapMyVisitors map takes the width of this box */
.map-slot { margin: 0 auto; }
.map-slot > a { margin: 0 auto; max-width: 100%; }

.footer { padding: 8px 16px 40px; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .tile { width: 110px; height: 110px; border-radius: 22px; font-size: 50px; }
  h1 { font-size: 38px; }
  .codename { font-size: 21px; }
  .tagline { font-size: 17px; }
  .columns, .download, .fuel-inner { grid-template-columns: 1fr; }
  .box { padding: 20px 18px; }
  .counter span { width: 28px; height: 40px; font-size: 24px; }
}
