/* [racer] Painterly: Racer's own parts (task tsyurx), on Dogfight's plates (dogfight.css): the ladder, the course preview
   (map, height profile, tags, aids, bests), the plane pick, the split chip and the ghost's tag in a round, the end plate.
   Square-ish corners (2px), the section marks' slashes in Signal Orange, the typed face for every number. */
html[data-game="racer"] .dfc-race { white-space: nowrap; }
html[data-game="racer"] .df-p .df-score { display: none; } /* (kills and deaths: Dogfight's) */
html[data-game="racer"] #df-fire, html[data-game="racer"] .dfc-gauges, html[data-game="racer"] .dfc-sight { display: none !important; } /* no guns in a race */
.df-lobby .rc-plate { width: min(860px, 100%); }

/* the ladder */
.rc-ladder { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.rc-tier { display: grid; grid-template-columns: 34px minmax(120px, 0.8fr) minmax(0, 2fr); align-items: center; gap: 10px; min-height: 46px; padding: 4px 8px; background: rgba(0,0,0,.26); border-radius: 2px; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.rc-tn { font: 600 15px/1 var(--pf-type, monospace); color: #E85D00; }
.rc-tt b { display: block; font: 600 12px/1.1 var(--pf-font, sans-serif); letter-spacing: .18em; text-transform: uppercase; }
.rc-tt small { display: block; margin-top: 3px; font: 11px/1.2 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2, rgba(239,229,201,.66)); }
.rc-keys { display: flex; flex-wrap: wrap; gap: 6px; }
/* (round 2: a coming tier is one short line across the whole row, its name and blurb side by side, COMING at the end; it
   had squeezed its blurb into the name column, "Gates that / change / height", and pushed 08 off the plate) */
.rc-coming { opacity: .5; min-height: 0; padding-top: 5px; padding-bottom: 5px; grid-template-columns: 34px minmax(0, 1fr) auto; }
.rc-coming .rc-tt { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.rc-coming .rc-tt b { flex: none; }
.rc-coming .rc-tt small { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc-coming .rc-tt, .rc-coming .rc-keys { grid-column: auto !important; }
/* the ladder scrolls when the screen is too short for it (the lobby's body clips by default) */
html[data-game="racer"] .df-lobby .df-pan-ladder { max-height: 100%; }
html[data-game="racer"] .df-lobby .df-body { overflow-y: auto; overscroll-behavior: contain; }
/* RACE WITH FRIENDS fills its row; the hint under JOIN wraps instead of running off the plate */
html[data-game="racer"] .df-lobby .df-go .df-gorow { flex: 1 1 240px; min-width: 0; }
html[data-game="racer"] .df-lobby .df-go .df-gorow .df-big { flex: 1 1 auto; }
html[data-game="racer"] .df-lobby .df-foot .tp-note { white-space: normal; overflow: visible; }
.rc-coming .rc-tn { color: var(--pf-ink2, #a99); }
.rc-soon { font-size: 9px !important; padding: 4px 7px 3px !important; }
.rc-course { all: unset; box-sizing: border-box; position: relative; flex: 1 1 220px; min-width: 0; cursor: pointer; padding: 7px 10px 7px 26px; border-radius: 2px;
  background: linear-gradient(#2c2a25, #1f1d19); box-shadow: inset 0 1px 0 rgba(255,240,205,.08), 0 0 0 1px #070605, 0 2px 0 #050404; }
.rc-course i { position: absolute; left: 10px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--pf-lamp-on, #ffc463); box-shadow: var(--pf-lamp-glow, 0 0 6px #ffb347); }
.rc-course b { display: block; font: 600 13px/1.1 var(--pf-font, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--pf-ink, #efe5c9); }
.rc-course small { display: block; margin-top: 4px; font: 10.5px/1.25 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2, rgba(239,229,201,.66)); }
.rc-course .rc-best { display: block; margin-top: 4px; font: normal 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .18em; color: var(--pf-lamp, #ffb347); }
.rc-course .rc-best span { color: var(--pf-ink2, #bbb); margin-left: 4px; }
.rc-course .rc-new { color: var(--pf-ink2, #bbb); }
.rc-course:hover, .rc-course:focus-visible, .rc-course.tp-focus { box-shadow: inset 0 1px 0 rgba(255,240,205,.08), 0 0 0 2px var(--pf-lamp, #ffb347); }

/* the course preview */
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-back { width: auto !important; padding: 0 14px !important; height: 32px !important; }
.rc-prev { margin-top: 8px; }
.rc-ph h2 { margin: 4px 0 0; font: 600 24px/1.05 var(--pf-font, sans-serif); letter-spacing: .3em; text-transform: uppercase; color: var(--pf-ink, #efe5c9); }
.rc-ph .df-type { margin-top: 6px; }
.rc-viz { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 14px; margin-top: 10px; align-items: start; }
.rc-map { position: relative; margin: 0; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: #2a271f; box-shadow: 0 0 0 1px #050404, 0 0 0 2px rgba(179,144,88,.5); }
.rc-map img, .rc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rc-map img { filter: saturate(.9) contrast(1.02); }
.rc-line { fill: none; stroke: #f4ead0; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.rc-line.k { stroke: rgba(20,16,10,.55); stroke-width: 17; }
.rc-g line { stroke: #E85D00; stroke-width: 15; stroke-linecap: square; }
.rc-g.s line { stroke: #f4ead0; } .rc-g.f line { stroke: #1d1b17; }
.rc-g circle { fill: #1d1b17; stroke: #E85D00; stroke-width: 4; }
.rc-g text { fill: #f4ead0; font: 600 26px/1 "Jost", sans-serif; text-anchor: middle; }
.rc-g text.lab { fill: #1d1b17; font-size: 30px; letter-spacing: 3px; paint-order: stroke; stroke: rgba(244,234,208,.85); stroke-width: 6px; }
.rc-st path { fill: #f4ead0; stroke: #1d1b17; stroke-width: 4; }
.rc-map figcaption { position: absolute; left: 6px; bottom: 5px; font: 10px/1 var(--pf-type, monospace); color: #f4ead0; text-shadow: 0 1px 2px #000; }
.rc-map figcaption span { display: inline-block; margin-right: 6px; padding: 1px 4px; font: 600 9px/1.2 var(--pf-font, sans-serif); color: #1d1b17; background: #f4ead0; border-radius: 2px; }
.rc-prof { position: relative; margin: 0; height: 92px; border-radius: 2px; background: rgba(0,0,0,.3); box-shadow: inset 0 1px 2px rgba(0,0,0,.6); overflow: hidden; }
.rc-prof svg { position: absolute; left: 0; right: 0; top: 14px; bottom: 4px; width: 100%; height: calc(100% - 18px); }
.rc-prof .land { fill: rgba(176,150,96,.55); }
.rc-prof .ln { fill: none; stroke: #E85D00; stroke-width: 3; vector-effect: non-scaling-stroke; }
.rc-prof .k { fill: none; stroke: rgba(0,0,0,.5); stroke-width: 6; vector-effect: non-scaling-stroke; }
.rc-prof .tk line { stroke: #f4ead0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rc-prof figcaption { position: absolute; inset: 3px 6px auto; display: flex; gap: 8px; font: 10px/1.1 var(--pf-type, monospace); color: var(--pf-ink2, #ccc); }
.rc-prof figcaption span { font: 600 8.5px/1.2 var(--pf-font, sans-serif); letter-spacing: .22em; color: var(--pf-ink, #efe5c9); }
.rc-prof figcaption em { font-style: normal; } .rc-prof figcaption b { margin-left: auto; font-weight: 400; }
.rc-lg { position: absolute; right: 6px; bottom: 4px; font: 9px/1 var(--pf-type, monospace); font-style: normal; color: var(--pf-ink2, #ccc); }
.rc-lg b { display: inline-block; width: 12px; height: 3px; margin: 0 4px 2px 0; background: #E85D00; } .rc-lg u { display: inline-block; width: 10px; height: 7px; margin: 0 4px 0 8px; background: rgba(176,150,96,.7); }
.rc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.rc-tags li { padding: 5px 9px 4px; font: 600 11px/1 var(--pf-font, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(60,48,30,.45); }
.rc-facts { margin: 8px 0 0; font: 12px/1.35 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink, #efe5c9); }
.rc-aids { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; padding: 0; }
.rc-aids li { font: 600 8.5px/1.6 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink2, rgba(239,229,201,.7)); }
.rc-aids li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--pf-lamp-on, #ffc463); vertical-align: 1px; }
.rc-bests { margin-top: 10px; }
.rc-bests .pf-mlbl { margin: 0; }
.rc-bests ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; padding: 0; }
.rc-bests li { font: 12px/1.3 var(--pf-type, monospace); letter-spacing: 0; }
.rc-bests li span { margin-left: 6px; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .18em; color: var(--pf-ink2, #bbb); }
.rc-bests .df-type { margin: 4px 0 0; }
.rc-prev.compact { margin: 12px 0 4px; }
.rc-prev.compact .rc-ph h2 { font-size: 17px; }
.rc-prev.compact .rc-viz { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
.df-lobby .df-plate .rc-plane .df-ac button small { color: var(--pf-lamp, #ffb347); }
.rc-botsrow { display: flex; align-items: center; gap: 10px; }
.rc-botsrow .pf-mlbl { margin: 0; flex: none; }
.rc-botsrow .pf-seg { max-width: 260px; }
.rc-fly kbd, .rc-endgo kbd { margin-left: 12px; font-size: 9px; }
.rc-couch { margin: 0 2px; }
.df-lobby .df-plate .rc-cseg { flex-wrap: wrap; height: auto; }
.df-lobby .df-plate .rc-cseg button { flex: 1 1 22%; height: 40px; flex-direction: column; justify-content: center; }
.df-lobby .df-plate .rc-loops button { flex-basis: 11%; height: 32px; }

/* in a round: the split against your best, the ghost's tag */
.rc-split { position: absolute; left: 50%; top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 52px); transform: translate(-50%, -4px); opacity: 0; transition: opacity .2s, transform .2s;
  padding: 5px 12px 4px; font: 600 14px/1 var(--pf-type, monospace); letter-spacing: .04em; border-radius: 2px; pointer-events: none; white-space: nowrap; }
.rc-split.on { opacity: 1; transform: translate(-50%, 0); }
.rc-split.good { color: #10240f; background: #a8d46f; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rc-split.bad { color: #2a0f06; background: #f0a070; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rc-ghosttag { position: absolute; left: 0; top: 0; pointer-events: none; padding: 3px 7px 2px; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: #f6eed6; white-space: nowrap;
  background: rgba(20,19,15,.55); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--c, #efe5c9); will-change: transform; }
.rc-ghosttag[hidden] { display: none; }
/* [fit] both on the shared scale (fit.js --fit-z: ~3.5 on a 4K TV). The split chip takes zoom; the ghost's tag is placed by a
   px transform each frame, so its type and padding grow instead (zoom would scale the transform too) */
html:not(.df-split) .rc-split { zoom: var(--fit-z, 1); }
.rc-ghosttag { padding: calc(3px * var(--fit-z, 1)) calc(7px * var(--fit-z, 1)) calc(2px * var(--fit-z, 1)); font-size: calc(9px * var(--fit-z, 1)); }

/* the end plate */
.rc-end .rc-time { font: 600 44px/1 var(--pf-type, monospace) !important; letter-spacing: .02em !important; margin-top: 6px !important; color: var(--pf-ink, #efe5c9); }
.rc-end .pf-mlbl { margin: 0; }
.rc-endbests ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.rc-endbests li { display: flex; align-items: baseline; gap: 8px; padding: 6px 8px; background: rgba(0,0,0,.26); border-radius: 2px; }
.rc-endbests li span { font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink2, #ccc); }
.rc-endbests li b { margin-left: auto; font: 14px/1 var(--pf-type, monospace); }
.rc-endbests li em { font-style: normal; font: 600 8px/1 var(--pf-font, sans-serif); letter-spacing: .2em; padding: 2px 4px; color: #10240f; background: #a8d46f; border-radius: 2px; }
.rc-endbests li.new { box-shadow: inset 0 0 0 1px #a8d46f; }
.rc-table .rc-pl { color: var(--pf-ink, #efe5c9); }
.rc-endgo { flex-direction: column !important; align-items: stretch !important; }
.rc-endgo .df-big { flex: none !important; }
.rc-endrow { display: flex; gap: 8px; }
.rc-endrow .pf-mbtn { flex: 1 1 0; height: 38px !important; }

@media (max-width: 560px) {
  html[data-game="racer"] .df-lobby { padding-top: calc(56px + var(--fit-sat, env(safe-area-inset-top))); }
  .rc-plate .df-head .df-type { display: none; }
  .rc-tier { grid-template-columns: 26px minmax(0, 1fr); }
  .rc-coming { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .rc-coming .rc-tt small { display: none; }
  .rc-keys { grid-column: 1 / -1; }
  .rc-viz { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 10px; }
  .rc-ph h2 { font-size: 19px; letter-spacing: .22em; }
  .rc-prof { height: 70px; }
  .rc-tags li { font-size: 9.5px; padding: 4px 6px 3px; }
  .rc-bests { display: none; }
  .rc-prev:not(.compact) .rc-ph .df-type { font-size: 11px; }
  .rc-end .rc-time { font-size: 34px !important; }
  .df-lobby .df-plate .rc-loops button { flex-basis: 22%; }
}

/* FLY pressed: a moment while the course paints */
.df-lobby .rc-ready { width: min(420px, 100%); margin-top: 30vh; text-align: left; }
.rc-ready h2 { margin: 6px 0 0; font: 600 24px/1.05 var(--pf-font, sans-serif); letter-spacing: .3em; text-transform: uppercase; }

/* the course plate on a short screen (a phone on its side): the preview gives up height and scrolls inside itself, so the
   plane pick, BOTS and FLY always stay on the plate (they were clipped off its foot by a 390 px map, 2026-11-26) */
.df-lobby .rc-courseplate > .rc-cbody { flex: 0 1 auto; padding: 0 2px 6px; } /* [fit] the preview, the plane pick and BOTS scroll together under FLY (the preview alone squeezed to a sliver) */
.df-lobby .rc-courseplate .rc-cbody > .rc-prev { overflow: visible; }
@media (max-height: 520px) {
  .rc-courseplate .rc-prev { margin-top: 4px; }
  .rc-courseplate .rc-ph { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .rc-courseplate .rc-ph h2 { font-size: 18px; letter-spacing: .24em; margin: 0; }
  .rc-courseplate .rc-ph .df-type { display: none; }
  .rc-courseplate .rc-viz { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; margin-top: 6px; }
  .rc-courseplate .rc-prof { height: 64px; }
  .rc-courseplate .rc-tags { margin-top: 6px; }
  .rc-courseplate .rc-tags li { font-size: 9.5px; padding: 4px 6px 3px; }
  .rc-courseplate .rc-facts, .rc-courseplate .rc-aids { margin-top: 5px; }
  .rc-courseplate .rc-bests { display: none; }
  .rc-courseplate .rc-top .rc-back { height: 28px !important; }
}
/* [tctfbj] a plane too fast for a tight course's bends: its key dimmed a touch, a TOO FAST mark, the line under the pick */
.df-lobby .df-plate .rc-plane .df-ac button.rc-fast:not(.on) { opacity: .62; }
.df-lobby .df-plate .rc-plane .df-ac button small.rc-fastk { color: var(--pf-ink2, rgba(239,229,201,.66)); letter-spacing: .06em; }
.df-lobby .df-plate .rc-plane .rc-fastnote { margin: 6px 0 0; font-size: 12px; }
