/* A long press is an input here, not a text selection - see game.css. */
body { -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, [contenteditable] {
  -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

/* ONE SCREEN, NO SCROLLING.
   Every control has to be reachable without a scrollbar - you are meant to be
   holding a transmitter while you read this, not steering a mouse wheel. The
   page is a fixed-height grid: the cards share what the viewport gives them,
   and only the two lists that can grow without limit (devices, channels) get
   their own inner scroll. */
html, body.radiopage { height: 100%; }
/* NOTHING EVER SCROLLS SIDEWAYS. Whatever a stale cache or a long device name
   tries, the page and every card clamp it. */
body.radiopage { overflow-x: hidden; }
.card { overflow-x: hidden; min-width: 0; }
.card * { min-width: 0; }
body.radiopage {
  margin: 0; background: #0b0b0e; color: #e8e8ee;
  font: 14px/1.5 var(--font, system-ui, Segoe UI, Arial);
  display: flex; flex-direction: column; overflow: hidden;
}

#rbar {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 8px 14px; border-bottom: 1px solid var(--line2, #24242b);
}
#rbar #rmark { height: 28px; width: auto; }
#rbar h1 {
  margin: 0; font: 900 italic 17px/1 var(--font, system-ui);
  letter-spacing: .06em; text-transform: uppercase;
}
#rbar .grow { flex: 1; }
.rbtn {
  padding: 7px 13px; border: 1px solid var(--line2, #24242b); border-radius: 999px;
  background: #101014; color: #9a9aa6; text-decoration: none; cursor: pointer;
  font: 700 9.5px/1 var(--font, system-ui); letter-spacing: .14em; text-transform: uppercase;
}
.rbtn:hover { border-color: #ff2d95; color: #fff; }

/* the verdict rides in the header - it is one line, it does not need a card */
#rbar .status {
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
  padding: 6px 13px; border-radius: 999px; border: 1px solid;
}
#rbar .status b { font: 800 11px/1 var(--font, system-ui); letter-spacing: .04em; white-space: nowrap; }
#rbar .status span {
  font-size: 11.5px; color: #8a8a95; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.status.ok { border-color: #1f5c2b; background: #0d1a10; }
.status.ok b { color: #4dff59; }
.status.wait { border-color: #5c4a17; background: #17140b; }
.status.wait b { color: #ffb02e; }
.status.bad { border-color: #5c1f27; background: #170c0e; }
.status.bad b { color: #ff5c7a; }

#rwrap {
  flex: 1; min-height: 0; padding: 10px;
  display: grid; gap: 10px;
  /* THE GRAPHS ARE THE SHOW. They take the middle and the full height; the
     lists and the buttons flank them. */
  grid-template-columns: minmax(200px, .85fr) minmax(320px, 1.9fr) minmax(215px, .95fr);
  grid-template-rows: 1fr auto;
  /* THE LAYOUT SCOTT PRAISED. Graphs top-centre, the Steering Angle & Toe
     card under them, lists left, calibration right. THIS STAYS. */
  grid-template-rows: 1fr 1.25fr;
  grid-template-areas:
    "dev  scope chan"
    "feel angle cal";
}
#anglecard { grid-area: angle; }
#anglebox { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; flex: none; }
#anglebox label { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 9px; }
#anglebox label span { font: 700 9px/1 var(--font, system-ui); letter-spacing: .1em;
  text-transform: uppercase; color: #9a9aa6; }
#anglebox input[type=range] { width: 100%; accent-color: #ff2d95; margin: 0; }
#anglebox label b { font: 700 11px/1 ui-monospace, Consolas, monospace; color: #cdd1d8; text-align: right; }
#devcard   { grid-area: dev; }
#chancard  { grid-area: chan; }
#scopecard { grid-area: scope; }
#calcard   { grid-area: cal; }
#feelcard  { grid-area: feel; }

.card {
  border: 1px solid var(--line2, #24242b); border-radius: 12px;
  background: #0e0e12; padding: 11px 13px;
  min-height: 0; display: flex; flex-direction: column;
}
.card h2 {
  margin: 0 0 9px; flex: none; font: 800 10px/1 var(--font, system-ui);
  letter-spacing: .22em; text-transform: uppercase; color: #ff2d95;
}
.card h2 small { color: #6a6a76; letter-spacing: .08em; margin-left: 8px; font-weight: 600; }
.none { color: #6a6a76; font-size: 11.5px; padding: 6px 0; }

/* devices */
.devlist { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.dev {
  text-align: left; padding: 8px 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line2, #24242b); background: #101014; color: #9a9aa6; font: inherit;
}
.dev b { display: block; color: #cdd1d8; font-size: 12px; line-height: 1.3; word-break: break-word; }
.dev span { display: block; margin-top: 2px; font-size: 10.5px; color: #6a6a76; }
.dev.on { border-color: #ff2d95; background: #161014; }
.dev.on b { color: #fff; }

.checks { flex: none; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line2, #24242b);
  display: flex; flex-direction: column; gap: 4px; }
.chk { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #9a9aa6; }
.chk i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chk.y i { background: #4dff59; }
.chk.n i { background: #4a4a55; }
.chk.n { color: #6a6a76; }

/* channels - THE GAUGES ARE THE CARD. A sliver of a bar read like a debug
   readout; a fat pink gauge with a big number reads like an instrument. */
#chanwrap { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.chan { display: flex; flex-direction: column; gap: 6px; }
.chan .cn { font: 800 11px/1 var(--font, system-ui); letter-spacing: .14em; color: #8a8a95; }
.chan .role {
  font: 800 10px/1 var(--font, system-ui); letter-spacing: .22em;
  text-transform: uppercase; color: #ff2d95;
}
.chan .role:empty { display: none; }
.chan .bar {
  position: relative; height: 34px; border-radius: 10px; background: #17171d;
  border: 1px solid #24242b; overflow: hidden;
}
.chan .bar .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #33333d; }
.chan .bar .fill {
  position: absolute; top: 3px; bottom: 3px; background: #4a4a55; border-radius: 7px;
  box-shadow: 0 0 14px rgba(255, 45, 149, 0);
}
.chan.used .bar .fill {
  background: linear-gradient(180deg, #ff5eae, #ff2d95);
  box-shadow: 0 0 16px rgba(255, 45, 149, .45);
}
.chan.moving .cn { color: #fff; }
.chan .nums { display: flex; align-items: baseline; justify-content: space-between; }
.chan .val {
  font: 700 24px/1 ui-monospace, Consolas, monospace; color: #fff;
  font-variant-numeric: tabular-nums;
}
.chan .rawv { font: 500 12px/1 ui-monospace, Consolas, monospace; color: #5a5a66; }

/* scopes */
.scopes { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.scope { position: relative; flex: 1; min-height: 0; }
.scope .slab {
  position: absolute; top: 5px; left: 7px; z-index: 1;
  font: 800 8px/1 var(--font, system-ui); letter-spacing: .16em;
  text-transform: uppercase; color: #6a6a76;
}
.scope canvas {
  width: 100%; height: 100%; display: block;
  background: #0a0a0d; border: 1px solid var(--line2, #24242b); border-radius: 9px;
}
.k { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; }
.k.raw { background: #5c6472; }
.k.out { background: #ff2d95; }

/* calibration */
#calbox { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
#calbox button {
  padding: 9px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line2, #24242b); background: #101014; color: #9a9aa6;
  font: 800 9.5px/1 var(--font, system-ui); letter-spacing: .13em; text-transform: uppercase;
}
#calbox button:hover { border-color: #3a3a45; color: #fff; }
#calbox button.go { border-color: #ff2d95; color: #fff; background: #161014; }
/* while it is watching, so it never looks like a button waiting to be pressed */
#calbox button.live { border-color: #ffb02e; color: #ffb02e; background: #16120b; }
@keyframes calpulse { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
#calbox button.live { animation: calpulse 1.1s ease-in-out infinite; }
#calbox button.done { border-color: #4dff59; color: #4dff59; background: #0d1a10; }
#calbox button.warn:hover { border-color: #ff5c7a; color: #ff5c7a; }

/* Reverse steering / throttle are OPTIONS, not actions - a bubble that fills
   red when it is on, so it reads as a state you are in rather than a button
   you press. */
#revbox { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
#revbox .opt {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line2, #24242b); background: #101014; color: #9a9aa6;
  font: 800 9.5px/1 var(--font, system-ui); letter-spacing: .13em; text-transform: uppercase;
}
#revbox .opt i {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid #3a3a45; background: transparent;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
#revbox .opt:hover { border-color: #3a3a45; color: #cdd1d8; }
#revbox .opt.on { border-color: #e8112d; color: #fff; background: #16090c; }
#revbox .opt.on i {
  background: #e8112d; border-color: #e8112d;
  box-shadow: 0 0 0 3px rgba(232, 17, 45, .22);
}
/* the calibration's own running commentary */
#calsteps { margin-top: 9px; flex: none; }
#calsteps[hidden] { display: none; }
#calcount {
  display: flex; align-items: center; gap: 12px; padding: 8px 0 10px;
}
#calcount[hidden] { display: none; }
#calcount b {
  font: 900 34px/1 var(--font, system-ui); color: #ffb02e;
  min-width: 62px; text-align: center; font-variant-numeric: tabular-nums;
}
#calcount.go b { color: #4dff59; }
#calcount.bad b { color: #ff5c7a; }
#calcount.bad span { color: #fff; font-weight: 700; }
#calcount.go span { color: #fff; font-weight: 700; }
#calcount span { font-size: 11.5px; color: #cdd1d8; }
#calbars { display: flex; flex-direction: column; gap: 5px; }
.calbar { display: grid; grid-template-columns: 30px 1fr 16px; align-items: center; gap: 8px; }
.calbar .cb { font: 800 9px/1 var(--font, system-ui); letter-spacing: .08em; color: #6a6a76; }
.calbar .cbar { height: 8px; border-radius: 4px; background: #17171d; overflow: hidden; }
.calbar .cbar i { display: block; height: 100%; width: 0; background: #ffb02e; transition: width .1s linear; }
.calbar.done .cbar i { background: #4dff59; }
.calbar .ok { font: 700 11px/1 var(--font, system-ui); color: #6a6a76; text-align: center; }
.calbar.done .ok { color: #4dff59; }
.calbar.done .cb { color: #cdd1d8; }

.calsay { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: #cdd1d8; flex: none; }
.calnow { margin-top: 3px; font-size: 10.5px; color: #6a6a76; flex: none; }

/* feel */
#tunebox { display: flex; flex-direction: column; gap: 7px; }
#tunebox label { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 9px; }
#tunebox label span { font: 700 9px/1 var(--font, system-ui); letter-spacing: .1em;
  text-transform: uppercase; color: #9a9aa6; }
#tunebox input[type=range] { width: 100%; accent-color: #ff2d95; margin: 0; }
#tunebox label b { font: 700 11px/1 ui-monospace, Consolas, monospace; color: #cdd1d8; text-align: right; }

/* help, out of the way until it is wanted */
#helpwrap, #speedwrap {
  position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#helpwrap[hidden], #speedwrap[hidden] { display: none; }
.helpcard {
  position: relative; max-width: 640px; max-height: 100%; overflow-y: auto;
  border: 1px solid var(--line2, #24242b); border-radius: 14px;
  background: #0e0e12; padding: 20px 24px;
}
#helpclose, #speedclose {
  position: absolute; top: 10px; right: 12px; border: 0; background: none;
  color: #6a6a76; font-size: 24px; line-height: 1; cursor: pointer;
}
#helpclose:hover, #speedclose:hover { color: #fff; }
.helpcard h2 { margin: 0 0 14px; font: 800 11px/1 var(--font, system-ui);
  letter-spacing: .22em; text-transform: uppercase; color: #ff2d95; }
.fix { margin: 0; padding-left: 20px; color: #9a9aa6; font-size: 13px; }
.fix li { margin-bottom: 9px; }
.fix b { color: #cdd1d8; }
.fix em { color: #ff8ab5; font-style: normal; }
.fix code, .fix kbd {
  background: #17171d; border: 1px solid var(--line2, #24242b); border-radius: 5px;
  padding: 1px 6px; font: 600 11.5px/1.5 ui-monospace, Consolas, monospace; color: #cdd1d8;
}

@media (max-width: 900px) {
  /* A HAND-HELD SCREEN SCROLLS. Fixing the page to one screen height on a
     phone or small tablet shoved the axle and its dials below the fold with no
     way to reach them - and the browser bars resizing the viewport made it
     worse. Below 900px wide the page grows to its content and scrolls. */
  html, body.radiopage { height: auto; }
  body.radiopage { overflow-y: auto; min-height: 100svh; }
  #rwrap { flex: none; }
  .card { min-height: auto; }
  .devlist, #chanwrap { overflow: visible; max-height: none; }
  /* THE GRAPHS GET A FIXED BOX ON A HAND-HELD. Their bitmaps follow their box
     size; let the box follow the content and each feeds the other - the page
     inflated itself thousands of pixels a second, felt as endless resizing
     with everything dropping below. A fixed height ends the loop. */
  .scopes { flex: none; display: flex; flex-direction: column; gap: 8px; }
  .scope { flex: none; height: 120px; min-height: 0; }
  #anglecard .scope { height: 240px; }

  #rwrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "scope scope" "angle angle" "dev chan" "feel cal";
    grid-template-rows: 1fr 1.1fr 1fr auto;
  }
  #rbar .status span { display: none; }
}
@media (max-width: 560px) {
  /* A PHONE SCROLLS. Forcing six cards into one screen height squashed every
     one of them to a sliver; here the page grows to its content instead. */
  html, body.radiopage { height: auto; }
  body.radiopage { overflow-y: auto; min-height: 100svh; }
  #rwrap { flex: none; }
  .card { min-height: auto; }
  #devcard, #chancard, #calcard, #feelcard { display: flex; }
  .devlist, #chanwrap { overflow: visible; max-height: none; }
  /* THE GRAPHS GET A FIXED BOX ON A HAND-HELD. Their bitmaps follow their box
     size; let the box follow the content and each feeds the other - the page
     inflated itself thousands of pixels a second, felt as endless resizing
     with everything dropping below. A fixed height ends the loop. */
  .scopes { flex: none; display: flex; flex-direction: column; gap: 8px; }
  .scope { flex: none; height: 120px; min-height: 0; }
  #anglecard .scope { height: 240px; }

  #rwrap { grid-template-columns: 1fr;
    grid-template-areas: "scope" "angle" "dev" "chan" "cal" "feel"; grid-template-rows: none; }
  #scopecard { min-height: 300px; }
  #anglecard { min-height: 340px; }
  #rbar { flex-wrap: wrap; }
}

/* embedded in the game's Radio panel */
body.radiopage.embed #rmark,
body.radiopage.embed #rbar h1,
body.radiopage.embed #rbar a.rbtn { display: none; }
body.radiopage.embed #rbar { padding: 8px 12px; }
body.radiopage.embed { background: transparent; }

/* ---- Controller mapping panel -------------------------------------------
   One row per action: what it does, what it is bound to, and a live bar so
   you can see it answer before you leave the screen. */
#mapbox { margin-top: 14px; }
#maprows { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.maprow {
  display: grid; grid-template-columns: 8.5rem 9rem 1fr; align-items: center;
  gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: #14141b; border: 1px solid #2c2c36; border-radius: 9px;
  padding: 9px 12px; color: inherit; font: inherit;
}
.maprow:hover { border-color: #4a4a58; }
.maprow.capturing { border-color: #ff2d95; box-shadow: 0 0 0 1px #ff2d95 inset; }
.maprow .mact { font-weight: 700; letter-spacing: .02em; }
.maprow .mbind {
  color: #8a8a95; font-family: Consolas, monospace; font-size: .86em;
  font-variant-numeric: tabular-nums;
}
.maprow .mbar {
  position: relative; height: 8px; border-radius: 4px; background: #0c0c11;
  border: 1px solid #23232c; overflow: hidden;
}
.maprow .mbar i {
  position: absolute; top: 0; bottom: 0; background: #ff2d95; display: block;
}
#mapfoot { display: flex; gap: 8px; flex-wrap: wrap; }
#mapopen.on { border-color: #ff2d95; color: #fff; }

/* The mapping page. It replaces the connect page rather than floating over it,
   so it inherits the same page padding and sits in the same place on screen. */
#mapwrap { padding: 20px; display: flex; justify-content: center; }
#mapwrap[hidden] { display: none; }
.mapcard {
  position: relative; width: min(620px, 100%);
  border: 1px solid var(--line2, #24242b); border-radius: 14px;
  background: #0e0e12; padding: 20px 24px;
}
.mapcard h2 {
  margin: 0 0 12px; font: 800 11px/1 var(--font, system-ui);
  letter-spacing: .22em; text-transform: uppercase; color: #ff2d95;
}

/* Close, top right of the mapping card. It lost its styling when this stopped
   being an overlay and fell back into the flow as a bare button. */
#mapclose {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  color: #6a6a76; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
#mapclose:hover { color: #fff; }

/* The mapping page's own buttons. .go and .warn were only ever defined inside
   #calbox, so out here they fell back to the browser default. Same look, so
   Save reads as the primary action exactly like Start calibration does. */
#mapfoot button, #speedgo {
  padding: 9px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line2, #24242b); background: #101014; color: #9a9aa6;
  font: 800 9.5px/1 var(--font, system-ui); letter-spacing: .13em; text-transform: uppercase;
}
#mapfoot button:hover { border-color: #3a3a45; color: #fff; }
#mapfoot button.go, #speedgo { border-color: #ff2d95; color: #fff; background: #161014; }
#mapfoot button.warn:hover { border-color: #ff5c7a; color: #ff5c7a; }

/* the walkthrough sends new racers here with ?cal=1 - the calibration
   button breathes until they press it (Scott: bring attention to it) */
#calrun.attn { animation: calpulse 1.6s ease-in-out infinite; }
@keyframes calpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 181, 255, 0); }
  50% { box-shadow: 0 0 18px 4px rgba(77, 181, 255, .65); }
}

/* ============ THE MAPPING PAGE ON A PHONE (Scott 2026-09-08) ============
   The 10PX plugs straight into the phone by USB-C, so the whole calibration
   has to work on a hand-held. Measured in the game's Radio panel at 375px:
   the row was 263px wide holding 318px of content - the binding ran off the
   edge and the live bar was squeezed to 2px, so you could not see a channel
   answer. Three columns do not fit that width; the row stacks instead. The
   name and its binding share the top line, the bar gets the full width under
   them, which is what you actually watch while you wiggle a stick. */
@media (max-width: 560px) {
  #mapwrap { padding: 12px 10px; }
  .mapcard { padding: 18px 14px; }
  .maprow {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "act bind" "bar bar";
    gap: 7px 10px; padding: 10px 12px;
  }
  .maprow .mact { grid-area: act; min-width: 0; }
  .maprow .mbind {
    grid-area: bind; text-align: right; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .maprow .mbar { grid-area: bar; height: 10px; }
  #mapfoot button { flex: 1 1 auto; }
}


/* WHAT THE BROWSER OFFERS - only shown while no controller has been handed
   over, so a radio that is plugged in and still not seen gives us something
   to read (Scott 2026-09-09, the 10PX into the Quest). */
#rchecks .diag {
  margin-top: 8px; padding-top: 7px; border-top: 1px solid #23232c;
  color: #7b7b88; font: 600 10.5px/1.5 Consolas, monospace; word-break: break-word;
}


/* the wi-fi bridge code, under the green dots on the device card */
#wifibox { margin-top: 12px; padding-top: 11px; border-top: 1px solid #23232c; }
#wifibox label { display: block; color: #8b8b97; font: 700 10px/1 var(--font, system-ui);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px; }
#wifibox .wfrow { display: flex; gap: 7px; }
#wifibox input {
  flex: 1 1 auto; min-width: 0; padding: 8px 10px;
  border: 1px solid #33333f; border-radius: 8px; background: #0c0c11; color: #fff;
  font: 700 13px/1 Consolas, monospace; letter-spacing: .12em;
}
#wifibox input:focus { outline: none; border-color: #ff2d95; }
#wifibox button {
  flex: 0 0 auto; padding: 8px 14px; cursor: pointer;
  border: 1px solid #33333f; border-radius: 8px; background: #16161d; color: #d6dae1;
  font: 800 10px/1 var(--font, system-ui); letter-spacing: .14em; text-transform: uppercase;
}
#wifibox button:hover { border-color: #ff2d95; color: #fff; }
#wifiSay { display: block; margin-top: 7px; font: 600 11px/1.4 var(--font, system-ui); color: #7b7b88; }
#wifiSay.ok { color: #4ad07a; }
#wifiSay.wait { color: #d8a24a; }


/* the USB bridge button, under the wi-fi bridge code */
#usbbox { margin-top: 11px; padding-top: 10px; border-top: 1px solid #23232c; }
#usbbox label { display: block; color: #8b8b97; font: 700 10px/1 var(--font, system-ui);
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 7px; }
#usbbox button {
  width: 100%; padding: 9px 12px; cursor: pointer;
  border: 1px solid #33333f; border-radius: 8px; background: #16161d; color: #d6dae1;
  font: 800 10px/1 var(--font, system-ui); letter-spacing: .14em; text-transform: uppercase;
}
#usbbox button:hover { border-color: #ff2d95; color: #fff; }
#usbbox button:disabled { opacity: .45; cursor: default; }
#usbSay { display: block; margin-top: 7px; font: 600 11px/1.4 var(--font, system-ui); color: #7b7b88; }
#usbSay.ok { color: #4ad07a; }
#usbSay.wait { color: #d8a24a; }

/* ---- Speed test (2026-09-11) - borrows the help overlay and the mapping page's buttons ---- */
/* THE SPEED TEST GLOWS GREEN (Scott 2026-09-11) - the header's own "Connected"
   green, steady, no pulse. The pop-up is where it says what it is: a controller test. */
#speedbtn { border-color: #4dff59; color: #4dff59; background: #0d1a10; white-space: nowrap;
  box-shadow: 0 0 10px rgba(77,255,89,.45), inset 0 0 6px rgba(77,255,89,.15); }
#speedbtn:hover { border-color: #4dff59; color: #fff; box-shadow: 0 0 16px rgba(77,255,89,.7); }
.speedcard { width: min(560px, 100%); }
.speedcard h3 { margin: 20px 0 6px; font: 800 10px/1 var(--font, system-ui);
  letter-spacing: .18em; text-transform: uppercase; color: #6a6a76; }
#speedbar { height: 6px; margin: 12px 0; border-radius: 3px; background: #1a1a20; overflow: hidden; }
#speedbar i { display: block; height: 100%; width: 0; background: #ff2d95; }
.speedbig { margin: 4px 0 10px; font: 900 38px/1 var(--font, system-ui); color: #fff; }
.speedbig small { margin-left: 8px; font: 700 11px/1 var(--font, system-ui); letter-spacing: .12em;
  text-transform: uppercase; color: #6a6a76; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid #1c1c22; font-size: 12.5px; color: #9a9aa6; }
.srow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow b { color: #fff; font-weight: 800; }
.srow em { min-width: 70px; font-style: normal; text-align: right; color: #6a6a76; }
.srow.best b, .srow.best em { color: #4dff59; }
#speedgo { margin-top: 6px; }
#speedgo:disabled { opacity: .45; cursor: default; }
.speednote { margin: 12px 0 0; font-size: 11px; line-height: 1.45; color: #6a6a76; }

/* a test you can open (2026-09-11): its stats fold out underneath */
.srow.click { cursor: pointer; }
.srow.click:hover span { color: #fff; }
.srow.click span::after { content: ' \25B8'; color: #6a6a76; }
.sstats { margin: 0 0 6px; padding: 2px 0 4px 12px; border-left: 2px solid #ff2d95; }
.sstats .srow { padding: 5px 0; font-size: 11.5px; }

/* Everyone: every test, in its own scrolling box (Scott 2026-09-11: "show every test and just scroll") */
/* about six tests showing, the rest a scroll away - phone and PC alike (Scott 2026-09-11) */
#speedall { max-height: 210px; overflow-y: auto; padding-right: 4px; }
