/* [dogfight] The lobby, the round's plate and the name tags. Same vocabulary as the cockpit (play.html, menu.js): a plate of
   black crinkle paint with a brass hairline and screws, ivory placards naming each section, bakelite keys with amber jewel
   lamps on the live choice, Jost for engraving, Special Elite for the typed lines. dogfight.js borrows play.html's styles
   (the variables and the key look) at load; the fallbacks here keep it readable before that. */
.df-lobby { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + var(--fit-sat, env(safe-area-inset-top))) 10px calc(14px + var(--fit-sab, env(safe-area-inset-bottom))); box-sizing: border-box; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 40%, rgba(20,19,15,.18), rgba(20,19,15,.55)); -webkit-user-select: none; user-select: none; }
html.df-inround .df-lobby { display: none; }
.df-lobby .df-plate { position: relative !important; inset: auto !important; transform: none !important; visibility: visible !important; transition: none !important;
  width: min(600px, 100%); max-height: none; overflow: visible; margin: auto 0; padding: 14px 22px 22px; box-sizing: border-box;
  font: 500 11px/1.3 var(--pf-font, "Jost", Futura, system-ui, sans-serif); color: var(--pf-ink, #efe5c9); letter-spacing: .06em;
  background-color: var(--pf-panel, #1d1c19); border-radius: 4px; }
.df-head { padding: 6px 0 2px; }
.df-head h1 { margin: 0; font: 600 26px/1 var(--pf-font, sans-serif); letter-spacing: .42em; color: var(--pf-ink, #efe5c9); text-shadow: 0 -1px 0 #000, 0 0 14px rgba(255,170,60,.12); }
.df-type { margin: 8px 2px 0; font: 12px/1.5 var(--pf-type, "Special Elite", "Courier New", monospace); letter-spacing: 0; color: rgba(239,229,201,.7); }
.df-type a, .df-link a { color: var(--pf-lamp, #ffb347); }
.df-sec { padding-top: 14px; }
.df-row { margin-top: 8px; }
.df-row + .df-row { margin-top: 10px; }
.df-input { all: unset; box-sizing: border-box; width: 100%; height: 38px; padding: 0 12px; font: 600 14px/38px var(--pf-font, sans-serif); letter-spacing: .14em; text-transform: uppercase;
  color: #241f17; background: linear-gradient(#ece2c6, #d8cba8); border-radius: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.45), 0 0 0 1px #060505;
  -webkit-user-select: text; user-select: text; cursor: text; }
.df-input:focus { box-shadow: inset 0 1px 3px rgba(0,0,0,.45), 0 0 0 2px var(--pf-lamp, #ffb347); }
.df-input::placeholder { color: rgba(36,31,23,.45); }
.df-swatches { display: flex; gap: 7px; flex-wrap: wrap; }
.df-sw { all: unset; box-sizing: border-box; width: 34px; height: 34px; cursor: pointer; position: relative; background: var(--c); border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.25), 0 0 0 1px #060505; }
.df-sw::after { content: ""; position: absolute; inset: -5px -3px; }
.df-sw.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 2px #060505, 0 0 0 4px var(--pf-lamp, #ffb347); }
.df-sw:focus-visible { outline: 2px solid var(--pf-lamp, #ffb347); outline-offset: 3px; }
/* key rows: they live in the plate, not pinned to a corner like the flight's */
.df-lobby .df-plate .pf-seg { position: static !important; display: flex; width: 100%; height: var(--pf-h, 34px); }
.df-lobby .df-plate .pf-seg button { flex: 1 1 0; min-width: 0; padding: 0 6px; }
.df-lobby .df-plate .pf-seg button[disabled], .df-plate .df-round.ro .pf-seg button { pointer-events: none; }
.df-round.ro .pf-seg button:not(.on) { opacity: .55; }
.df-lobby .df-plate .df-ac { flex-wrap: wrap; height: auto; }
.df-lobby .df-plate .df-ac button { flex: 1 1 22%; height: 46px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 10px 0 24px; text-align: left; }
.df-lobby .df-plate .df-ac button i { position: absolute; left: 9px; top: 50%; margin-top: -3.5px; }
.df-lobby .df-plate .pf-seg button small { display: block; margin-top: 4px; font: 9.5px/1.15 var(--pf-type, monospace); letter-spacing: 0; text-transform: none; color: var(--pf-ink2, rgba(239,229,201,.66));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: none; }
.df-lobby .df-plate .df-stage button { flex-direction: column; height: auto; }
.df-lobby .df-plate .df-stage { height: 46px; }
.df-lobby .pf-mbtn { position: relative; }
.df-big { height: 46px !important; font-size: 13px !important; letter-spacing: .26em !important; color: var(--pf-ink, #efe5c9) !important; }
.df-big.on i { background: var(--pf-lamp-on); box-shadow: var(--pf-lamp-glow), 0 0 0 1px rgba(0,0,0,.55); }
.df-big[disabled] { opacity: .5; cursor: default; }
.df-gorow { display: flex; gap: 8px; } /* [tqvvkn] CREATE A ROOM | PRACTICE */
.df-gorow .df-big { flex: 2 1 0; min-width: 0; }
.df-gorow .df-practice { flex: 1 1 0; }
.df-join { display: flex; gap: 8px; }
.df-join .df-input { flex: 1 1 auto; }
.df-join .pf-mbtn { flex: none; width: 96px !important; height: 38px !important; }
.df-err { margin: 10px 2px 0; padding: 6px 10px; font: 12px/1.4 var(--pf-type, monospace); color: #2a1408; background: #e8b48a; border-radius: 2px; }
/* the room's code: big letters on an ivory tag, one cell each */
.df-codebox { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.df-codebox .pf-mlbl { margin: 0; }
.df-code { display: inline-flex; gap: 3px; font: 600 26px/1 var(--pf-font, sans-serif); letter-spacing: 0; color: #241f17; }
.df-code { padding: 7px 10px 6px; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(60,48,30,.45), inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(0,0,0,.7); }
.df-code i { width: 1px; background: rgba(60,48,30,.25); margin: 0 3px; }
.df-copy { width: auto !important; padding: 0 14px !important; height: 34px !important; flex: none; }
.df-link { margin: 10px 2px 0; font: 11px/1.6 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2, rgba(239,229,201,.66)); overflow-wrap: anywhere; }
.df-link a { overflow-wrap: normal; word-break: normal; } /* [fit] the link breaks at its <wbr>s (after a slash, before ? and &) */
.df-status { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 0; background: var(--pf-lamp-off, #3b2410); }
.df-status.on { background: var(--pf-lamp-on, #ffc463); box-shadow: var(--pf-lamp-glow); }
.df-status.wait { background: var(--pf-lamp-on, #ffc463); opacity: .5; }
.df-status.off { background: radial-gradient(circle at 38% 34%, #d9f0ff, #6aa6d8 50%, #23527a); }
/* who's in */
.df-list { list-style: none; margin: 0; padding: 0; }
.df-p { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-top: 4px; background: rgba(0,0,0,.28); border-radius: 2px; box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 1px 0 rgba(255,240,205,.05); }
.df-p.dim { opacity: .55; }
.df-p b { font: 600 12px/1.3 var(--pf-font, sans-serif); letter-spacing: .16em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.df-dot { flex: none; width: 12px; height: 12px; background: var(--c); border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px #050404; }
.df-chip { flex: none; font: 600 8px/1 var(--pf-font, sans-serif); font-style: normal; letter-spacing: .2em; padding: 3px 5px 2px; color: #241f17; background: #cfc2a0; border-radius: 2px; }
.df-chip.df-host { background: var(--pf-lamp, #ffb347); }
.df-chip.df-you { background: #efe5c9; }
.df-chip.df-gone { background: #b9a37d; }
.df-acn { margin-left: auto; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink2, rgba(239,229,201,.66)); }
.df-team { font: 600 8px/1 var(--pf-font, sans-serif); font-style: normal; letter-spacing: .2em; padding: 3px 5px 2px; border-radius: 2px; color: #fff; }
.df-team.df-red { background: #c4501a; } .df-team.df-blue { background: #0b5f9e; }
.df-score { font: 11px/1 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2, rgba(239,229,201,.66)); min-width: 30px; text-align: right; }
.df-lamp { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--pf-lamp-off, #3b2410); box-shadow: 0 0 0 1px rgba(0,0,0,.55); }
.df-lamp.on { background: var(--pf-lamp-on, #ffc463); box-shadow: var(--pf-lamp-glow), 0 0 0 1px rgba(0,0,0,.55); }
.df-go { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
/* in a room the go row (READY / START, LEAVE) stays in reach at the bottom of the screen while the plate scrolls */
.df-room .df-go { position: sticky; bottom: calc(-22px - var(--fit-sab, env(safe-area-inset-bottom))); z-index: 2; margin: 16px -22px -22px; padding: 12px 22px calc(14px + var(--fit-sab, env(safe-area-inset-bottom)));
  background: linear-gradient(180deg, rgba(25,24,21,.94), #171612 30%); box-shadow: 0 -1px 0 rgba(179,144,88,.35), 0 -8px 18px rgba(0,0,0,.45); }
.df-room .df-go { flex-direction: row; flex-wrap: wrap; align-items: center; }
.df-room .df-go .df-big { flex: 1 1 260px; }
.df-room .df-go .df-type, .df-room .df-go .df-err { flex: 1 1 100%; order: 3; margin-top: 0; }
.df-leave { height: 30px !important; width: 120px !important; align-self: flex-end; color: var(--pf-ink2) !important; }
/* in a round: the plate across the top (code, clock, mode, planes) */
.df-hud { position: fixed; z-index: 4; top: var(--pf-top, 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; height: var(--pf-h, 34px);
  padding: 0 16px; font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .22em; color: var(--pf-ink2, rgba(239,229,201,.7));
  background: var(--pf-grain), linear-gradient(170deg, #25231f, #191815 60%, #141310); background-color: #1d1c19; box-shadow: var(--pf-plate); border-radius: 4px; pointer-events: none; }
.df-hud[hidden] { display: none; }
.df-hud .df-clock { font: 600 17px/1 var(--pf-font, sans-serif); letter-spacing: .08em; color: var(--pf-ink, #efe5c9); min-width: 44px; text-align: center; }
.df-hud .df-hcode { color: var(--pf-lamp, #ffb347); letter-spacing: .3em; }
@media (max-width: 560px) { .df-hud .df-count, .df-hud .df-mode { display: none; } }
/* name tags over the other planes */
#df-tags { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
/* [tpeabh] the tag is a point at the plane's projected centre: a thin ring round the plane in its colour (its side's in
   teams), radius --r from remotes.js, and the name and distance beside the ring, never over the plane */
.df-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; --r: 12px; white-space: nowrap; will-change: transform;
  font: 600 11px/1 var(--pf-font, "Jost", sans-serif); letter-spacing: .16em; color: #f4ecd6; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.55); }
.df-tag i { --R: max(var(--r), calc(9px * var(--fit-z, 1))); position: absolute; left: calc(-1 * var(--R)); top: calc(-1 * var(--R)); width: calc(2 * var(--R)); height: calc(2 * var(--R)); box-sizing: border-box;
  border: calc(1.5px * var(--fit-z, 1)) solid #f4ecd6; /* [fit] a far plane's ring never under 9 px at the shared scale, its line drawn at it too */ border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.45); opacity: .92; }
.df-tag em { position: absolute; left: calc(var(--r) * .78 + 6px); top: calc(var(--r) * -.78 - 6px); transform: translateY(-50%); display: flex; align-items: center; gap: 5px; font-style: normal; }
.df-tag.flip em { left: auto; right: calc(var(--r) * .78 + 6px); } /* [fit] near the right edge: the name on the ring's left */
.df-tag span { font: 10px/1 var(--pf-type, monospace); letter-spacing: 0; color: rgba(244,236,214,.8); }
.df-tag span:empty { display: none; }
.df-lobby .df-plate .pf-msec + .pf-msec, .df-lobby .df-plate .df-sec { padding-top: 16px; }
.df-lobby .df-plate .df-stage button i { position: absolute; left: 10px; top: 50%; margin-top: -3.5px; }
/* while the lobby is up, the flight's chrome (gauges, throttle, MENU, minimap) stays out of the way. [music] Not the top-left
   keys (SOUND, fullscreen): the lobby has its own track (music.js), and a tap on SOUND is the gesture that may start it */
html.df-lobbyon body > :not(#c):not(#df-lobby):not(#pf-poster):not(#df-toast):not(#df-combat):not(.pf-topl):not(#pf-controls):not(.pf-sig):not(script):not(style) { visibility: hidden !important; }
html.df-lobbyon body > .pf-topl { z-index: 71; }
@media (max-width: 520px) { .df-lobby .df-plate .df-ac button { flex-basis: 30%; } .df-lobby .df-plate { padding: 12px 14px 18px; } .df-room .df-go { margin: 16px -14px -18px; padding-left: 14px; padding-right: 14px; } }

/* ---------- [split] this screen's seats in the lobby: a card each ---------- */
.df-seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin-top: 8px; }
.df-seat { position: relative; padding: 8px 10px 10px; background: rgba(0,0,0,.28); border-radius: 2px; box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px rgba(179,144,88,.28); }
.df-seat.ready { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px var(--pf-lamp, #ffb347); }
.df-seat.lost { opacity: .6; }
.df-seat header { display: flex; align-items: center; gap: 8px; height: 26px; }
.df-seat header b { font: 600 15px/1 var(--pf-font, sans-serif); letter-spacing: .14em; color: var(--pf-ink, #efe5c9); }
.df-seat header em { font: normal 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink2, rgba(239,229,201,.66)); }
.df-seat header .df-chip { color: #241f17; }
.df-x { all: unset; margin-left: auto; cursor: pointer; padding: 5px 8px 4px; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink2, rgba(239,229,201,.66));
  background: linear-gradient(#2a2824, #141310); border-radius: 2px; box-shadow: 0 0 0 1px #050404, inset 0 1px 0 rgba(255,255,255,.08); }
.df-seatname { height: 32px; margin-top: 6px; font-size: 13px; line-height: 32px; }
.df-srow { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-top: 6px; padding: 0 4px; border-radius: 2px; }
.df-srow.sel { box-shadow: 0 0 0 2px var(--pf-lamp, #ffb347); }
.df-srow .pf-mlbl { flex: none; width: 46px; margin: 0; }
.df-srow .df-swatches { gap: 5px; }
.df-srow .df-sw { width: 24px; height: 24px; }
.df-step { all: unset; box-sizing: border-box; width: 30px; height: 28px; text-align: center; cursor: pointer; font: 600 15px/28px var(--pf-font, sans-serif); color: var(--pf-ink, #efe5c9);
  background: linear-gradient(#2a2824, #141310); border-radius: 2px; box-shadow: 0 0 0 1px #050404, inset 0 1px 0 rgba(255,255,255,.08); }
.df-acname { flex: 1 1 auto; text-align: center; font: 600 12px/1 var(--pf-font, sans-serif); letter-spacing: .16em; }
.df-srow .df-team { all: unset; cursor: pointer; padding: 6px 12px 5px; font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: #fff; border-radius: 2px; }
.df-srow .df-team.df-red { background: #c4501a; } .df-srow .df-team.df-blue { background: #0b5f9e; }
.df-seatready { flex: 1 1 auto; height: 32px !important; }
.df-seatready.on i { background: var(--pf-lamp-on); box-shadow: var(--pf-lamp-glow), 0 0 0 1px rgba(0,0,0,.55); }
.df-help { margin: 6px 2px 0; font: 10px/1.35 var(--pf-type, monospace); letter-spacing: 0; color: rgba(239,229,201,.6); }
.df-seat-add { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 64px; font: 11px/1.45 var(--pf-type, monospace); letter-spacing: 0; color: rgba(239,229,201,.72); }
.df-seat-add b { font: 600 12px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-ink, #efe5c9); }
.df-seat-add.on { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 1px var(--pf-lamp, #ffb347); animation: df-pulse 1.6s ease-in-out infinite; }
@keyframes df-pulse { 50% { box-shadow: inset 0 1px 2px rgba(0,0,0,.6), inset 0 0 0 2px var(--pf-lamp, #ffb347), 0 0 12px rgba(255,179,71,.25); } }
.df-lobby kbd, .df-sv kbd { display: inline-block; min-width: 1.4em; padding: 2px 5px 1px; text-align: center; font: 600 11px/1.2 var(--pf-font, sans-serif); color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: 0 1px 0 #050404; }

/* ---------- [split] in a round: a view a seat ---------- */
#df-split { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.df-sv { position: absolute; overflow: hidden; box-shadow: inset 0 0 0 2px #0b0a08, inset 0 0 0 3px rgba(179,144,88,.35); }
.df-sv[hidden] { display: none; }
html:not(.df-split):not(.df-solo) #df-split { display: none; }
/* one seat in a round: view 0's sight, scope, gate and cards over the page's own flight chrome; Airmail's map (its strip
   label and home range mean nothing in a dogfight) gives its corner to the scope (kept laid out, so split.js can measure it) */
html.df-solo .pm { visibility: hidden !important; pointer-events: none !important; }
html.df-solo .df-sv { box-shadow: none; }
html.df-solo .df-sv-hud { display: none; }
html.df-solo .df-scope { box-shadow: 0 0 0 1px #050404, 0 0 0 4px rgba(179,144,88,.55), 0 2px 10px rgba(0,0,0,.55); }
/* the page's own flight chrome is seat 0's: in split screen each view has its own, so it steps aside (MENU stays) */
html.df-split #pf .pf-hud, html.df-split #pf .pf-thr, html.df-split #pf .pf-stick, html.df-split #pf .pf-trimb, html.df-split #df-tags, html.df-split .pm { display: none !important; }
.df-sv-tags { position: absolute; inset: 0; overflow: hidden; }
.df-sight { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.df-sight svg { --s: calc(34px * var(--fit-z, 1)); position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); stroke: rgba(244,236,214,.85); fill: rgba(244,236,214,.85); filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)); }
.df-sight.hot svg { stroke: var(--c, #ffb347); fill: var(--c, #ffb347); }
/* [fit] the sight and the pip are on the shared scale (34 and 22 px to a laptop, ~120 and ~77 px on a 4K TV), centred on the
   point split.js puts them at, so the honest ring still sits where the rounds pass */
/* [tqvvkn] the lead pip: Signal Orange, smaller than the ring, so it never reads as the sight itself */
.df-pip { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; pointer-events: none; }
.df-pip svg { --s: calc(22px * var(--fit-z, 1)); position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); stroke: #e85d00; fill: #e85d00; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 1px 1px rgba(0,0,0,.7)); }
.df-sv-hud { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; max-width: calc(100% - 160px);
  font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .16em; color: var(--pf-ink2, rgba(239,229,201,.75)); white-space: nowrap; overflow: hidden;
  background: linear-gradient(170deg, #25231f, #191815 60%, #141310); border-radius: 2px; box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.4), 0 2px 8px rgba(0,0,0,.45); }
.df-sv-hud .df-dot { background: var(--c); }
.df-sv-hud b { color: var(--pf-ink, #efe5c9); letter-spacing: .18em; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.df-sv-hud em { font-style: normal; color: var(--pf-lamp, #ffb347); }
.df-sv-kt, .df-sv-ft { color: var(--pf-ink, #efe5c9); font-variant-numeric: tabular-nums; }
.df-sv-hud.stall .df-sv-kt { color: #ff7a4a; }
.df-sv-kd { font: 11px/1 var(--pf-type, monospace); letter-spacing: 0; }
.df-sv-small .df-sv-hud .df-sv-dev, .df-sv-small .df-sv-hud .df-sv-thr { display: none; }
.df-scope { position: absolute; right: 10px; bottom: 10px; width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 1px #050404, 0 2px 8px rgba(0,0,0,.5); }
.df-sv-gate { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); padding: 5px 10px 4px; font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: #241f17;
  background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 1px; box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.df-sv-gate[hidden] { display: none; }
.df-sv-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(14,13,10,.42); pointer-events: auto; }
.df-sv-card[hidden] { display: none; }
.df-card { box-sizing: border-box; width: min(360px, 100%); max-height: 100%; overflow: auto; padding: 12px 14px 14px; color: var(--pf-ink, #efe5c9);
  font: 500 11px/1.3 var(--pf-font, sans-serif); letter-spacing: .06em; background: var(--pf-panel, #1d1c19); border-radius: 2px;
  box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.45), 0 6px 18px rgba(0,0,0,.5); }
.df-card h4 { margin: 0 0 6px; display: inline-block; padding: 4px 9px 3px; font: 600 11px/1.2 var(--pf-font, sans-serif); letter-spacing: .22em; color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 1px; }
.df-card .df-type { margin-top: 6px; }
.df-card .pc-card { width: 100%; margin-top: 10px; box-shadow: inset 0 0 0 1px rgba(179,144,88,.3); }
.df-board { list-style: none; margin: 8px 0 0; padding: 0; }
.df-board li { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 6px; font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .14em; }
.df-board li.me { background: rgba(255,179,71,.14); }
.df-board li span { margin-left: auto; font: 11px/1 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2, rgba(239,229,201,.7)); }
.df-board .df-dot { width: 9px; height: 9px; }
.df-spare { background: var(--pf-grain, none), linear-gradient(170deg, #25231f, #191815 60%, #141310); background-color: #1d1c19; display: flex; align-items: center; justify-content: center; }
.df-spare-in { width: min(320px, 86%); color: var(--pf-ink, #efe5c9); display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.df-spare-in .df-code { font-size: 20px; padding: 5px 8px 4px; justify-self: start; }
.df-spare-clock { font: 600 26px/1 var(--pf-font, sans-serif); letter-spacing: .08em; }
.df-spare-mode { font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .24em; color: var(--pf-lamp, #ffb347); }
.df-spare-in .df-board { grid-column: 1 / -1; }
/* split screen: the round's plate sits over the seam, smaller */
html.df-split .df-hud { top: 6px; height: 28px; gap: 10px; padding: 0 12px; z-index: 5; }
html.df-split .df-hud .df-count { display: none; }

/* ---------- [split] FIRE for a thumb (touch screens, in a round) ---------- */
#df-fire { display: none; position: fixed; z-index: 4; right: calc(var(--fit-sar, env(safe-area-inset-right)) + 112px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 132px); width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(circle at 40% 34%, #c8412c, #8c2414 62%, #5a160b); box-shadow: 0 0 0 3px #0b0a08, 0 0 0 5px rgba(179,144,88,.6), 0 4px 12px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.18); }
#df-fire span { font: 600 13px/1 var(--pf-font, sans-serif); letter-spacing: .24em; color: #f6ead0; text-shadow: 0 1px 1px rgba(0,0,0,.6); padding-left: .24em; }
#df-fire.on { transform: scale(.94); background: radial-gradient(circle at 40% 34%, #ff8a4a, #c8412c 60%, #7a1c0e); box-shadow: 0 0 0 3px #0b0a08, 0 0 0 5px var(--pf-lamp, #ffb347), 0 0 18px rgba(255,140,60,.55), inset 0 2px 0 rgba(255,255,255,.2); }
html.df-touch.df-inround:not(.df-split) #df-fire { display: flex; align-items: center; justify-content: center; }
/* portrait: left of the throttle rail, under the minimap, over the gauges: where the right thumb rests between throttle moves */
@media (orientation: portrait) { #df-fire { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 96px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 150px); width: 80px; height: 80px; } }
/* [tqvvkn] GUN: look down the guns (hold it, or tap to toggle: CONTROLS > ASSISTS). A small brass key a thumb's width above
   FIRE (TOUCH > RUDDER > GUN KEY: ABOVE FIRE, LEFT OF FIRE or OFF), clear of FIRE itself, the stick's side and the throttle */
#df-gun { display: none; position: fixed; z-index: 4; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  right: calc(var(--fit-sar, env(safe-area-inset-right)) + 127px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 236px);
  background: radial-gradient(circle at 40% 34%, #5b5141, #2c2720 62%, #17140f); box-shadow: 0 0 0 3px #0b0a08, 0 0 0 5px rgba(179,144,88,.6), 0 3px 10px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.14); }
#df-gun span { font: 600 11px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: #f6ead0; padding-left: .2em; }
#df-gun.on, #df-gun.lit { background: radial-gradient(circle at 40% 34%, #ffb347, #e08a1c 60%, #8a4c0a); box-shadow: 0 0 0 3px #0b0a08, 0 0 0 5px #e85d00, 0 0 14px rgba(232,93,0,.5); }
#df-gun.on span, #df-gun.lit span { color: #1a1206; }
html.df-touch.df-inround:not(.df-split) #df-gun:not(.off) { display: flex; align-items: center; justify-content: center; }
#df-gun.left { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 214px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 147px); }
@media (orientation: portrait) {
  #df-gun { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 141px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 246px); } /* (left of the scope's foot) */
  #df-gun.left { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 190px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 176px); } /* (clear of the rudder rocker) */
}

/* ---------- [split] what a controller just did ---------- */
#df-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(18px + var(--fit-sab, env(safe-area-inset-bottom))); transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  padding: 7px 14px 6px; font: 600 11px/1 var(--pf-font, "Jost", sans-serif); letter-spacing: .22em; color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 1px; box-shadow: 0 2px 8px rgba(0,0,0,.55); }
#df-toast.on { opacity: 1; transform: translate(-50%, 0); }
.df-lobby .df-plate.df-wide { width: min(940px, 100%); }
.df-wide .df-seats.n3, .df-wide .df-seats.n4 { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
html.df-solo .df-sv-gate { top: 64px; }
/* [controls] the CONTROLS key beside SOUND (opens controls-panel.js) */
body .pf-topl > .pf-ctlb { width: auto; height: var(--pf-h); padding: 0 12px 0 10px; color: var(--pf-ink); box-shadow: var(--pf-raise), 0 2px 6px rgba(0,0,0,.35); }


/* the stage viewer's own course line (Airmail's ?stage=) isn't the room's: combat.js shows the race */
#pf-stage-name { display: none !important; }
/* ---------- the round's fighting and racing (combat.js): gunsight, gauges, splats, kill feed, banners, race, scoreboard,
   the round's end. Ivory engraving and brass on the painting, the cockpit's vocabulary; nothing here takes a click
   except the FIRE key, the scoreboard (none) and the end plate. ---------- */
#df-combat { position: fixed; inset: 0; z-index: 3; pointer-events: none; display: none; font: 600 11px/1 var(--pf-font, "Jost", sans-serif); letter-spacing: .16em; color: var(--pf-ink, #efe5c9); }
#df-combat.on, #df-combat.ended { display: block; }
#df-combat.ended { z-index: 80; } /* the round's end plate over the lobby */
html.df-lobbyon #df-combat.on:not(.ended) { display: none; }
#df-combat.ended > :not(.dfc-end) { display: none !important; }
/* the gunsight: a fixed ring on the nose (where the guns point 250 m out), ivory over a dark keyline so it reads on sky and land */
.dfc-sight { position: absolute; left: 0; top: 0; width: calc(72px * var(--fit-z, 1)); height: calc(72px * var(--fit-z, 1)); overflow: visible; will-change: transform; }
.dfc-sight circle, .dfc-sight path { fill: none; stroke: #f3ead0; stroke-width: 1.6; stroke-linecap: round; }
.dfc-sight .o { stroke: rgba(10,8,6,.55); stroke-width: 3.6; }
.dfc-sight .dot { fill: #f3ead0; stroke: rgba(10,8,6,.6); stroke-width: 1; }
.dfc-hitx path { stroke: #fff6d8; stroke-width: 2.6; opacity: 0; }
.dfc-hitx.on path { opacity: 1; filter: drop-shadow(0 0 2px rgba(0,0,0,.9)); }
.dfc-hitx.prot path { stroke: #9fc4e8; }
#df-combat.race .dfc-sight, #df-combat.race .dfc-heat { display: none; }
/* paint left and the guns' heat: two small engraved gauges, bottom centre (clear of the throttle rail and the stick) */
.dfc-gauges { position: absolute; left: 50%; bottom: calc(var(--pf-b, 10px) + 4px); transform: translateX(-50%); display: flex; gap: 10px; padding: 7px 12px; border-radius: 4px;
  background: var(--pf-grain), linear-gradient(170deg, #25231f, #191815 60%, #141310); background-color: #1d1c19; box-shadow: var(--pf-plate); }
.dfc-g { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: .24em; color: var(--pf-ink2, rgba(239,229,201,.7)); }
.dfc-g i { position: relative; width: 84px; height: 8px; border-radius: 1px; background: #0c0b09; box-shadow: var(--pf-sink); overflow: hidden; }
.dfc-g b { position: absolute; inset: 1px; transform-origin: 0 50%; border-radius: 1px; }
.dfc-paint b { background: linear-gradient(#efe5c9, #c9b98f); }
.dfc-gauges.low .dfc-paint b { background: linear-gradient(#ff9b6a, #c8321e); }
.dfc-gauges.low .dfc-paint span { color: #ff9b6a; }
.dfc-heat b { background: linear-gradient(#ffd89a, #f08a1c); transform: scaleX(0); }
.dfc-heat.hot b { background: linear-gradient(#ffb070, #ff4d1f); }
.dfc-heat.locked b { background: repeating-linear-gradient(-45deg, #ff4d1f 0 4px, #6b1a08 4px 8px); }
.dfc-heat em { font-style: normal; min-width: 52px; color: var(--pf-warn, #ff4d1f); }
.dfc-heat.off { display: none; }
/* paint thrown at the canopy, at its edge toward whoever hit you */
.dfc-splats { position: absolute; inset: 0; overflow: hidden; }
.dfc-splat { position: absolute; display: block; animation: dfc-splat 2.6s ease-out forwards; filter: drop-shadow(0 1px 1px rgba(0,0,0,.45)); }
.dfc-splat svg { width: 100%; height: 100%; overflow: visible; }
.dfc-splat svg path, .dfc-splat svg circle { fill: var(--c); }
.dfc-splat svg .run { fill: none; stroke: var(--c); stroke-width: 4; stroke-linecap: round; }
.dfc-splat.prot { opacity: .35; }
@keyframes dfc-splat { 0% { opacity: 0; scale: .6; } 6% { opacity: .95; scale: 1.05; } 14% { scale: 1; } 70% { opacity: .85; } 100% { opacity: 0; } }
/* the kill feed: typed lines on the right, under the round's plate */
.dfc-feed { position: absolute; right: var(--pf-r, 10px); top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 52px); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dfc-kill { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 2px; background: rgba(20,19,15,.62); box-shadow: 0 0 0 1px rgba(179,144,88,.25);
  font-size: 10px; letter-spacing: .14em; transition: opacity .6s; animation: dfc-in .25s ease-out; }
.dfc-kill.me { box-shadow: 0 0 0 1px var(--pf-lamp, #ffb347); }
.dfc-kill.gone { opacity: 0; }
.dfc-kill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.7); }
.dfc-kill em { font: 10px/1 var(--pf-type, monospace); letter-spacing: 0; font-style: normal; color: var(--pf-ink2); }
.dfc-kill em.g { width: 22px; height: 6px; background: linear-gradient(90deg, transparent, var(--pf-ink, #efe5c9) 40%, var(--pf-ink, #efe5c9) 70%, transparent); border-radius: 3px; opacity: .8; }
@keyframes dfc-in { from { opacity: 0; transform: translateX(10px); } }
/* the banner: big engraved words in the middle-top (shot down, sudden death, a lap) and a typed line under them */
.dfc-banner { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -6px); text-align: center; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; }
.dfc-banner.on { opacity: 1; transform: translate(-50%, 0); }
.dfc-banner b { display: block; font: 600 30px/1.05 var(--pf-font, sans-serif); letter-spacing: .2em; text-transform: uppercase; color: #f6eed6; text-shadow: 0 2px 3px rgba(0,0,0,.75), 0 0 18px rgba(0,0,0,.35); }
.dfc-banner small { display: block; margin-top: 8px; font: 14px/1.3 var(--pf-type, monospace); letter-spacing: 0; color: #f0e6c8; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.dfc-banner small:empty { display: none; }
@media (max-width: 560px) { .dfc-banner b { font-size: 20px; } .dfc-banner { top: 30%; } }
/* the race: gate and lap on an ivory tag under the round's plate; an arrow at the screen's edge to an off-screen gate */
.dfc-race, .dfc-team, .dfc-arrow { display: none; }
.dfc-race { position: absolute; left: 50%; top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 8px); transform: translateX(-50%); gap: 14px; align-items: center; padding: 7px 14px 6px;
  color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(60,48,30,.45), 0 1px 3px rgba(0,0,0,.7); font-size: 11px; letter-spacing: .2em; }
.dfc-race b { font-size: 13px; }
.dfc-race span:empty { display: none; }
.dfc-race .dfc-rpos { padding-left: 12px; border-left: 1px solid rgba(60,48,30,.35); font-size: 13px; }
.dfc-arrow { position: absolute; left: 0; top: 0; flex-direction: column; align-items: center; gap: 4px; will-change: transform; }
.dfc-arrow { --z: var(--fit-z, 1); } /* [fit] the arrow to an off-screen gate, on the shared scale (it's placed by a px transform, so not zoomed) */
.dfc-arrow i { width: 0; height: 0; border-left: calc(18px * var(--z)) solid var(--c, #ffb347); border-top: calc(10px * var(--z)) solid transparent; border-bottom: calc(10px * var(--z)) solid transparent; filter: drop-shadow(0 0 2px rgba(0,0,0,.9)); }
.dfc-arrow span { font: calc(11px * var(--z))/1 var(--pf-type, monospace); letter-spacing: 0; color: #f4ecd6; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
/* the team score under the round's plate */
.dfc-team { position: absolute; left: 50%; top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 8px); transform: translateX(-50%); gap: 2px; font-size: 12px; letter-spacing: .22em; }
.dfc-team span { padding: 6px 12px 5px; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.7); }
.dfc-team .red { background: #c4501a; border-radius: 2px 0 0 2px; } .dfc-team .blue { background: #0b5f9e; border-radius: 0 2px 2px 0; }
/* the scoreboard: held Tab */
.dfc-board { position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; width: min(560px, calc(100% - 20px)); padding: 14px 20px 18px; box-sizing: border-box;
  visibility: hidden; opacity: 0; transition: opacity .12s !important; background-color: var(--pf-panel, #1d1c19); border-radius: 4px; }
.dfc-board.on { visibility: visible !important; opacity: 1; }
.dfc-board h3 { margin: 0 0 10px; }
.dfc-board table, .dfc-table { width: 100%; border-collapse: collapse; font-size: 11px; letter-spacing: .14em; }
.dfc-board th, .dfc-table th { text-align: left; padding: 4px 6px; font-size: 8.5px; letter-spacing: .24em; color: var(--pf-ink2); font-weight: 600; }
.dfc-board td, .dfc-table td { padding: 7px 6px; border-top: 1px solid rgba(179,144,88,.18); white-space: nowrap; }
.dfc-board td:nth-child(n+4), .dfc-table td:nth-child(n+4), .dfc-board th:nth-child(n+4), .dfc-table th:nth-child(n+4) { text-align: right; font-family: var(--pf-type, monospace); letter-spacing: 0; }
.dfc-board td:first-child, .dfc-table td:first-child { color: var(--pf-ink2); width: 18px; }
.dfc-board td i, .dfc-table td i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #050404; vertical-align: -1px; }
.dfc-board td em, .dfc-table td em { font-style: normal; margin-left: 8px; font-size: 7.5px; letter-spacing: .2em; padding: 2px 4px 1px; color: #241f17; background: #cfc2a0; border-radius: 2px; }
.dfc-board tr.me td, .dfc-table tr.me td { color: var(--pf-lamp, #ffb347); }
.dfc-board tr.t-red td:first-child, .dfc-table tr.t-red td:first-child { box-shadow: inset 3px 0 0 #c4501a; }
.dfc-board tr.t-blue td:first-child, .dfc-table tr.t-blue td:first-child { box-shadow: inset 3px 0 0 #0b5f9e; }
.dfc-bteams { display: flex; gap: 2px; margin-bottom: 8px; font-size: 13px; letter-spacing: .22em; }
.dfc-bteams span { flex: 1; padding: 7px 10px 6px; color: #fff; } .dfc-bteams .red { background: #c4501a; } .dfc-bteams .blue { background: #0b5f9e; text-align: right; }
/* the round's end: a plate over the painting with the winner, the awards and the standings; REMATCH in one click */
.dfc-end { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; overflow: hidden; padding: calc((var(--pf-top, 10px) + var(--pf-h, 34px)) * var(--fit-z, 1) + 8px) max(10px, calc(var(--fit-sar, 0px) + 4px)) calc(16px + var(--fit-sab, env(safe-area-inset-bottom))) max(10px, calc(var(--fit-sal, 0px) + 4px)); box-sizing: border-box;
  pointer-events: auto; background: radial-gradient(ellipse at 50% 40%, rgba(20,19,15,.1), rgba(20,19,15,.5)); }
.dfc-end.on { display: flex; }
html:has(#df-combat.ended) #df-lobby { display: none; }
.dfc-endplate { position: relative !important; inset: auto !important; transform: none !important; visibility: visible !important; width: min(620px, 100%) !important; max-width: none !important; max-height: 100% !important; overflow: hidden !important; padding: 16px 22px 20px !important; box-sizing: border-box; margin: 0 !important;
  display: flex !important; flex-direction: column; /* [fit] the plate contract: the head and the keys stay, the standings between them scroll */
  font: 500 11px/1.3 var(--pf-font, sans-serif); letter-spacing: .06em; color: var(--pf-ink, #efe5c9); background-color: var(--pf-panel, #1d1c19); border-radius: 4px; animation: dfc-up .35s ease-out; }
.dfc-endplate > header, .dfc-endplate > .df-go { flex: none; }
.dfc-endbody { flex: 0 1 auto; margin: 0 -6px; padding: 0 6px; }
@media (max-height: 520px) { .dfc-endplate { padding: 10px 16px 10px !important; } .dfc-endplate h1 { font-size: 18px !important; } .dfc-endplate .df-go { padding-top: 8px; } }
@keyframes dfc-up { from { opacity: 0; transform: translateY(14px); } }
.dfc-endplate h1 { font-size: 24px !important; letter-spacing: .24em !important; text-transform: uppercase; }
.dfc-sub { margin: 8px 0 0; font: 600 12px/1.3 var(--pf-font, sans-serif); letter-spacing: .22em; color: var(--pf-lamp, #ffb347); }
.dfc-sub span { color: var(--pf-ink2); letter-spacing: .12em; }
.dfc-awards { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dfc-award { flex: 1 1 150px; padding: 10px 12px; border-radius: 2px; background: rgba(0,0,0,.28); box-shadow: inset 0 1px 2px rgba(0,0,0,.6), 0 0 0 1px rgba(179,144,88,.28); }
.dfc-award .pf-mlbl { margin: 0 0 8px; display: inline-block; }
.dfc-award b { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .16em; }
.dfc-award b i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #050404; }
.dfc-award small { display: block; margin-top: 6px; font: 11px/1.2 var(--pf-type, monospace); letter-spacing: 0; color: var(--pf-ink2); }
.dfc-endgo { flex-direction: row !important; flex-wrap: wrap; align-items: center; }
.dfc-endgo .df-big { flex: 1 1 260px; }
.dfc-wait:empty { display: none; }
/* ---------- card 3 with card 5's views: one sight, one gate tag, one FIRE key ----------
   The ring on the nose is split.js's (a view a seat, solo too); combat.js's sight keeps only its hit marker, laid over the
   same point. One seat: combat.js's gate/lap/place tag stands in for the view's gate counter. Split screen: each view
   keeps its own sight and gate tag, and combat.js's full-window pieces that belong to seat 0 alone step aside. */
.dfc-sight > circle, .dfc-sight > path { display: none; }
html.df-solo .df-sv-gate { display: none !important; }
html.df-split .dfc-sight, html.df-split .dfc-gauges, html.df-split .dfc-splats, html.df-split .dfc-race, html.df-split .dfc-arrow { display: none !important; }
#df-combat.race ~ #df-split .df-sight, html.df-race .df-sight { display: none !important; }
/* the scoreboard for a thumb: hold SCORES (touch screens, in a round) */
.dfc-scores { display: none; position: absolute; left: calc(var(--fit-sal, env(safe-area-inset-left)) + 10px); top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 12px); pointer-events: auto; touch-action: none;
  -webkit-user-select: none; user-select: none; padding: 9px 12px 8px; border: 0; border-radius: 2px; font: 600 10px/1 var(--pf-font, sans-serif); letter-spacing: .22em; color: var(--pf-ink, #efe5c9);
  background: linear-gradient(170deg, #25231f, #191815 60%, #141310); box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.45); }
.dfc-scores.on { box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px var(--pf-lamp, #ffb347); color: var(--pf-lamp, #ffb347); }
html.df-touch #df-combat.on .dfc-scores { display: block; }
/* [card 6] HOW TO PLAY: a folding card of typed lines, a label each */
.df-how summary { list-style: none; cursor: pointer; }
.df-how summary::-webkit-details-marker { display: none; }
.df-how summary h3 { display: inline-block; }
.df-how summary h3::after { content: " +"; color: var(--pf-lamp, #ffb347); }
.df-how[open] summary h3::after { content: " \2212"; }
.df-how dl { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; margin: 10px 0 0; }
.df-how dt { margin: 2px 0 0; align-self: start; }
.df-how dd { margin: 0; line-height: 1.45; }
.df-how kbd { display: inline-block; min-width: 1.3em; margin: 0 1px; padding: 1px 4px 0; text-align: center; font: 600 10px/1.4 var(--pf-font, sans-serif); color: #241f17; background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: 0 1px 0 #050404; }
@media (max-width: 520px) { .df-how dl { grid-template-columns: 1fr; gap: 2px; } .df-how dd { margin-bottom: 6px; } }
/* [card 6] teams in colours a red-green colour-blind eye still tells apart (Okabe-Ito vermilion and blue: they differ in
   lightness and hue), always with the side's name or its own mark beside them
   (the colours above: #c4501a and #0b5f9e, everywhere a side is shown) */
.df-tag[data-team] em::before { content: attr(data-team); order: -1; padding: 2px 4px 1px; font: 600 7.5px/1 var(--pf-font, sans-serif); letter-spacing: .2em; text-transform: uppercase; color: #fff; border-radius: 1px; }
.df-tag[data-team=red] em::before { background: #c4501a; } .df-tag[data-team=blue] em::before { background: #0b5f9e; }
/* [card 6] readable on a phone: the eight stages wrap into rows instead of crushing into one (and the mode, length and bot
   rows wrap too); the Airmail stick and throttle captions, which FIRE would cover, step aside (HOW TO PLAY says it); the
   paint and heat gauges move up under the round's plate, clear of the instrument row */
@media (max-width: 560px) {
  .df-lobby .df-plate .pf-seg { flex-wrap: wrap; height: auto !important; gap: 2px; }
  .df-lobby .df-plate .pf-seg button { flex: 1 1 30%; min-height: var(--pf-h, 34px); }
  .df-lobby .df-plate .df-stage button { flex: 1 1 45%; min-height: 44px; padding: 6px 6px 6px 22px; }
  .dfc-gauges { bottom: auto; top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 62px); padding: 5px 8px; gap: 8px; }
  .dfc-g i { width: 56px; }
}
/* [tpeabh] Airmail's way home means nothing in a dogfight: the STRIP/ARENA radio compass and the distance-home drum leave
   Dogfight's instrument row (the scope does that job). What's left: airspeed, altimeter, the climb gauge over trim and stall. */
#pf .pf-hud .pf-home-g, #pf .pf-hud .pf-home { display: none; }
#pf .pf-hud .pf-panel { grid-template-columns: var(--g) var(--g) calc(var(--gs) * 1.9); }
#pf .pf-hud .pf-vsi { grid-column: 3; grid-row: 1 / 3; justify-self: center; aspect-ratio: 1; height: 100%; }
#pf .pf-hud .pf-row3 { grid-column: 3; grid-row: 3; }
/* [tpeabh] phones, either way up (Scott's scope add 4): in a round the Airmail first-use slips (STICK, SLIDE, RUDDER) sat
   over FIRE and the stick's ring, so they step aside (HOW TO PLAY says it; the touch zones are unchanged). Landscape: the
   paint and heat gauges go up under the round's plate, clear of the rudder rocker (the scope's spot is split.js's). */
html.df-inround .pf.help.touch .pf-stick s, html.df-inround .pf.help.touch .pf-thr s, html.df-inround .pf.help.touch .pf-rocker s { display: none; }
@media (orientation: landscape) and (max-height: 560px) {
  .dfc-gauges { bottom: auto; top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 14px); padding: 5px 8px; gap: 8px; }
  .dfc-g i { width: 64px; }
}
@media (max-width: 560px) { html.df-inround .df-hud { left: calc(50% + 12px); } } /* (clear of the fullscreen key beside SOUND) */

/* ---------- [menus] (tyfdns) the lobby is a plate with tabs: one panel at a time, nothing scrolls at any size ----------
   A front plate (PILOT | HOW TO PLAY, CREATE A ROOM and JOIN at the foot) and a room plate (the pilots list beside the tabs,
   or above them on a phone; ROUND | RULES | PILOT | HOW TO PLAY; one big key at the foot). The tab row, the focus ring and
   the note line are tabplate.js's. */
.df-lobby { overflow: hidden; align-items: center; touch-action: manipulation; }
.df-lobby .df-plate { display: flex; flex-direction: column; max-height: 100%; overflow: hidden; margin: 0; padding: 12px 20px 12px; }
.df-lobby .df-plate.df-start { width: min(620px, 100%); }
.df-lobby .df-plate.df-room { width: min(1000px, 100%); }
.df-lobby .df-plate > * { flex: none; }
.df-lobby .df-plate .tp-tabs { margin-top: 10px; }
.df-lobby .df-body { flex: 0 1 auto; min-height: 0; overflow: hidden; padding: 2px 2px 8px; }
.df-lobby .df-pan .pf-mrow, .df-lobby .df-pan .df-row { margin-top: 10px; }
.df-lobby .df-pan .pf-mlbl { display: block; margin: 0 2px 5px; }
.df-lobby .df-acwhat { letter-spacing: .06em; color: rgba(239,229,201,.5); text-transform: none; font-family: var(--pf-type, monospace); font-weight: 400; }
.df-prow { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); column-gap: 18px; align-items: end; }
.df-lobby .df-plate .df-ac, .df-lobby .df-plate .df-stage { flex-wrap: wrap; height: auto; }
.df-lobby .df-plate .df-ac button, .df-lobby .df-plate .df-stage button { flex: 1 1 22%; height: 34px; flex-direction: row; align-items: center; justify-content: center; padding: 0 6px; text-align: center; }
.df-lobby .df-plate .df-ac button i, .df-lobby .df-plate .df-stage button i { position: static; margin: 0 7px 0 0; }
.df-lobby .df-plate .df-stage button { white-space: normal; line-height: 1.1; height: auto !important; min-height: 34px; padding-top: 3px; padding-bottom: 3px; } /* [fit] a long stage name takes two lines, never an ellipsis */
.df-lobby .df-plate .pf-seg button small { display: none; }
.df-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 4px 20px; margin: 10px 0 0; }
.df-how dt { margin: 6px 2px 3px !important; }
.df-how dd { margin: 0 2px; font-size: 11.5px; line-height: 1.45; }
.df-how kbd { padding: 1px 4px 0 !important; font-size: 10px !important; }
/* the foot: the one big key, LEAVE, the note line */
.df-lobby .df-go { position: static; margin: 0; padding: 10px 0 0; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; border-top: 1px solid rgba(179,144,88,.25); background: none; box-shadow: none; }
.df-lobby .df-go .df-big { flex: 1 1 240px; width: auto !important; white-space: nowrap; min-width: max-content; } /* [fit] one line: the row wraps instead (CREATE A ROOM read as two lines on a desktop) */
.df-lobby .df-start .df-go .df-join { flex: 1 1 220px; }
.df-lobby .df-go .df-leave { flex: none; width: 104px !important; height: 34px !important; align-self: center; }
.df-lobby .df-foot { flex: 1 1 100%; display: flex; align-items: center; gap: 12px; min-height: 1.4em; margin: 0; }
.df-lobby .df-foot .tp-note { flex: 1 1 auto; min-width: 0; }
.df-lobby .df-foot a { flex: none; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .2em; color: var(--pf-lamp, #ffb347); }
.df-lobby .df-foot .df-err, .df-lobby .df-foot .df-wait { flex: 1 1 auto; margin: 0; font: 11px/1.4 var(--pf-type, monospace); letter-spacing: 0; }
.df-lobby .df-foot .df-wait { color: rgba(239,229,201,.7); }
.df-lobby .df-foot .df-err { padding: 3px 8px; }
/* the room: its code and link across the top, the pilots beside the tabs */
.df-roomhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 2px 0 0; }
.df-roomhead h1 { font-size: 20px; }
.df-roomhead .df-codebox { margin: 0; }
.df-roomhead .df-code { font-size: 22px; padding: 5px 8px 4px; }
.df-roomhead .df-link { flex: 1 1 260px; min-width: 0; margin: 0; } /* [fit] the link wraps (it was cut short, the share key with it) */
.df-roomhead .df-share { margin-left: 8px; }
/* [fit] the plate never starts under the page's SOUND / fullscreen / CONTROLS keys, at any scale */
html .df-lobby { padding-top: calc((var(--pf-top, 10px) + var(--pf-h, 34px)) * var(--fit-z, 1) + 8px); }
.df-cols { flex: 0 1 auto !important; min-height: 0; display: grid; grid-template-columns: minmax(250px, 34%) 1fr; gap: 0 20px; margin-top: 10px; overflow: hidden; }
.df-tabcol { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.df-tabcol .tp-tabs { margin-top: 0 !important; }
.df-pilots { min-width: 0; }
.df-ph { position: relative; display: table; margin: 0 0 4px; padding: 4px 13px 3px; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .24em; color: #241f17;
  background: linear-gradient(#ece2c6, #d2c4a0); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(60,48,30,.45), inset 0 1px 0 rgba(255,255,255,.5), 0 1px 1px rgba(0,0,0,.7); }
.df-lobby .df-p { height: 30px; margin-top: 3px; }
.df-pilots .df-seat-add { display: block; min-height: 0; margin: 8px 2px 0; padding: 6px 8px; font-size: 10.5px; line-height: 1.4; border-radius: 2px; }
.df-pilots .df-seat-add b { font-size: 10px; margin-right: 4px; }
.df-lobby .df-couch { margin-top: 8px; }
.df-lobby .df-couch .df-seats { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.df-lobby .df-seat { padding: 6px 8px 8px; }
.df-lobby .df-seat .df-srow { margin-top: 4px; min-height: 30px; }
.df-lobby .df-seat .df-seatname { height: 28px; line-height: 28px; margin-top: 4px; }
.df-lobby .df-seat .df-seatready { height: 28px !important; }
.df-lobby .df-srow.sel { box-shadow: none; outline: 2px solid var(--pf-lamp, #ffb347); outline-offset: 1px; }
.df-lobby .df-seat .df-help { margin-top: 4px; }
/* phones in portrait: one column, the pilots above the tabs */
@media (max-width: 700px) {
  .df-lobby { padding: calc(8px + var(--fit-sat, env(safe-area-inset-top))) 6px calc(8px + var(--fit-sab, env(safe-area-inset-bottom))); }
  .df-lobby .df-plate { padding: 10px 12px 10px; }
  .df-cols { grid-template-columns: 1fr; }
  .df-pilots { margin-bottom: 10px; }
  .df-lobby .df-p { height: 24px; margin-top: 2px; }
  .df-lobby .df-plate .df-ac button, .df-lobby .df-plate .df-stage button { flex-basis: 30%; }
  .df-head h1 { font-size: 22px; }
  .df-lobby .df-plate .pf-seg button { letter-spacing: .06em; padding: 0 4px; white-space: normal; line-height: 1.1; } .df-lobby .df-plate .pf-seg button i { margin-right: 4px; } /* [fit] FREE-FOR-ALL and LIGHTHOUSE ISLES fit their keys (two lines when they must) */
}
/* short screens (a phone on its side): one line of header, a tighter foot */
@media (max-height: 520px) {
  /* the top starts under the page's SOUND / fullscreen / CONTROLS keys (they end at 44 px), so no plate sits under them */
  .df-lobby { padding: calc(48px + var(--fit-sat, env(safe-area-inset-top))) 6px calc(4px + var(--fit-sab, env(safe-area-inset-bottom))); }
  /* [fit] (the room plate used to go to the top with the page's keys over its top-left corner; now it starts under them like
     every plate, and its body scrolls when the screen is short) */
  .df-lobby .df-pan .df-rules > .pf-mrow { margin-top: 4px; }
  .df-lobby .df-plate { padding: 8px 14px 8px; }
  .df-start .df-head { display: flex; align-items: baseline; gap: 16px; }
  .df-lobby .df-plate .pf-seg button { letter-spacing: .06em; padding-left: 4px; padding-right: 4px; white-space: normal; line-height: 1.1; }
  .df-lobby .df-plate .df-stage button { letter-spacing: .02em; } .df-lobby .df-plate .pf-seg button i { margin-right: 4px; }
  .df-start .df-head .df-type { margin: 0; font-size: 11px; } /* [fit] (it wraps: it was cut short) */
  .df-head h1 { font-size: 18px; letter-spacing: .34em; }
  .df-roomhead .df-share { display: none; }
  .df-roomhead .df-code { font-size: 17px; padding: 3px 6px 2px; }
  .df-roomhead .df-copy { height: 28px !important; }
  .df-lobby .df-plate .tp-tabs { margin-top: 6px; }
  .df-cols { margin-top: 6px; }
  .df-lobby .df-p { height: 24px; margin-top: 2px; }
  .df-lobby .df-pan .pf-mrow, .df-lobby .df-pan .df-row { margin-top: 6px; }
  .df-lobby .df-pan .pf-mlbl { margin-bottom: 3px; }
  .df-lobby .df-plate .pf-seg, .df-lobby .df-plate .df-ac button, .df-lobby .df-plate .df-stage button { height: 30px; }
  .df-lobby .df-plate .df-ac, .df-lobby .df-plate .df-stage { height: auto; }
  .df-lobby .df-go { padding-top: 6px; gap: 6px 10px; }
  .df-lobby .df-go .df-big { height: 38px !important; }
  .df-input { height: 32px; line-height: 32px; }
  .df-sw { width: 30px; height: 30px; }
  .df-row .df-swatches { gap: 3px; } .df-row .df-sw { width: 27px; height: 27px; }
  .df-how dd { font-size: 10.5px; line-height: 1.35; }
}
/* the round's key rows stay one row each; RULES lays its rows in two columns where there's room */
.df-lobby .df-plate :is(.df-len, .df-bots, .df-goal, .df-skill, .df-mode, .df-laps) { flex-wrap: nowrap; }
.df-lobby .df-plate :is(.df-len, .df-bots, .df-goal, .df-skill, .df-mode, .df-laps) button { flex: 1 1 0; padding: 0 3px; letter-spacing: .08em; }
.df-lobby .df-plate :is(.df-len, .df-bots, .df-goal, .df-skill, .df-mode, .df-laps) button i { margin-right: 5px; }
.df-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); column-gap: 16px; align-items: end; }
.df-lobby .df-plate .tp-panel { display: block; }
.df-lobby .df-pan .pf-mrow.df-inline { display: flex; align-items: center; gap: 12px; }
.df-lobby .df-pan .pf-mrow.df-inline .pf-mlbl { margin: 0 2px; }
.df-lobby .df-pan .pf-mrow.df-inline .pf-mbtn { flex: 1 1 auto; width: auto; }
.df-lobby .df-plate .tp-tabs.pf-seg button { flex: 1 1 60px; padding: 0 4px; }
/* a phone upright: the round's keys stay on one line ("THE CLOCK", "10 MIN"), with a tighter letter spacing to make room */
@media (max-width: 520px) {
  .df-lobby .df-plate :is(.df-len, .df-bots, .df-goal, .df-skill, .df-laps) button { white-space: nowrap; letter-spacing: .03em; }
  .df-lobby .df-plate .df-mode button { letter-spacing: .03em; } /* [fit] (FREE-FOR-ALL breaks at a hyphen on a 360 px phone rather than run past its key) */
  .df-lobby .df-plate :is(.df-len, .df-bots, .df-goal, .df-skill, .df-mode, .df-laps) button i { margin-right: 4px; }
  .df-teamw { display: none; } /* "5 KILLS" in teams: the mode and the WIN AT note say it's the side's */
}
/* [tqvvkn] PRACTICE: the tally plate (top left, under the top keys; under SCORES on a touch screen). Square, dark, the
   section's // in Signal Orange, the numbers in the type face; the level keys light like the cockpit's */
.dfc-prac { position: absolute; left: calc(var(--fit-sal, env(safe-area-inset-left)) + 10px); top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 12px); pointer-events: auto; touch-action: manipulation;
  min-width: 228px; padding: 9px 11px 10px; border-radius: 2px; color: var(--pf-ink, #efe5c9);
  background: linear-gradient(170deg, rgba(37,35,31,.94), rgba(20,19,16,.94)); box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.45), 0 2px 10px rgba(0,0,0,.45); }
.dfc-prac[hidden], #df-combat:not(.on) .dfc-prac { display: none; }
.dfc-prac header { font: 600 11px/1 var(--pf-font, sans-serif); letter-spacing: .22em; margin-bottom: 8px; }
.dfc-prac .dfc-plv { float: right; font-style: normal; color: #e85d00; letter-spacing: .16em; }
.dfc-prac dl { display: grid; grid-template-columns: repeat(5, auto); gap: 2px 12px; margin: 0 0 9px; }
.dfc-prac dt { font: 600 8px/1.2 var(--pf-font, sans-serif); letter-spacing: .16em; color: var(--pf-ink2, #bfb397); white-space: nowrap; }
.dfc-prac dd { margin: 2px 0 0; font: 600 17px/1 var(--pf-font, sans-serif); font-variant-numeric: tabular-nums; }
.dfc-pkeys { display: flex; gap: 4px; flex-wrap: wrap; }
.dfc-pkeys button { flex: 1 1 auto; padding: 6px 7px 5px; border: 0; border-radius: 2px; font: 600 9px/1 var(--pf-font, sans-serif); letter-spacing: .14em; color: var(--pf-ink, #efe5c9); cursor: pointer;
  background: linear-gradient(#2c2924, #1c1a17); box-shadow: 0 0 0 1px #050404, inset 0 1px 0 rgba(255,255,255,.07); }
.dfc-pkeys button.on { color: #1a1206; background: linear-gradient(#ffb347, #e08a1c); }
.dfc-pkeys button:disabled:not(.on) { opacity: .45; cursor: default; }
.dfc-pkeys kbd { font: 600 8px/1 var(--pf-type, monospace); opacity: .7; margin-left: 3px; }
html.df-touch .dfc-prac { top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 50px); min-width: 0; padding: 7px 9px 8px; }
html.df-touch .dfc-prac dd { font-size: 14px; }
/* [tqvvkn] round 2: on a phone held upright the paint/guns bar sits under the round's plate (card 6), right where the tally
   plate was: the plate goes below the bar (tests/dogfight-practice-smoke.mjs measures it against the bar, FIRE, GUN, the
   scope and the top bar, either way up) */
@media (max-width: 560px) { html.df-touch .dfc-prac { top: calc(var(--pf-top, 10px) + var(--pf-h, 34px) + 100px); } }
html.df-touch .dfc-pkeys kbd { display: none; }
html.df-touch .dfc-pkeys button { padding: 9px 7px 8px; }

/* ---------- [tvgfa9] the round's chrome, lighter and out of the sky (Scott's playtest, 2026-11-26: "too much of the camera is
   covered by UI"; Morgan couldn't see the other aircraft) ----------
   Everywhere: the plates, keys and dial faces go see-through, so the painting shows behind them; the brass hairlines, the
   grain, the screws and the ivory ink stay, with a dark text shadow to keep the words legible on bright sky.
   On a phone either way up (touch, and narrow or short): one compact row at the top (SOUND and fullscreen, the clock plate
   with PAINT/GUNS folded under it or beside it, SCORES, MENU), the scope under MENU, a thin PRACTICE strip, TURN BACK placed
   under all of them, and the bottom's controls smaller and down at the edges, FIRE and GUN beside the throttle, clear of
   our own plane. Desktop and tablet keep their layout. */
html.df-inround {
  --df-glass: linear-gradient(170deg, rgba(37,35,31,.78), rgba(25,24,21,.74) 60%, rgba(20,19,16,.72));
  --df-bake: linear-gradient(rgba(61,57,49,.8), rgba(36,33,28,.76) 48%, rgba(23,21,17,.74));
  --df-ts: 0 1px 2px rgba(0,0,0,.85), 0 0 5px rgba(0,0,0,.45);
}
html.df-inround .df-hud, html.df-inround .dfc-gauges { background: var(--pf-grain), var(--df-glass); background-color: transparent; }
html.df-inround .dfc-scores, html.df-inround .dfc-prac { background: var(--df-glass); }
html.df-inround .df-hud, html.df-inround .dfc-g, html.df-inround .dfc-prac, html.df-inround .dfc-scores { text-shadow: var(--df-ts); }
html.df-inround body .pf-snd, html.df-inround body .pf-fs, html.df-inround body .pf-menub, html.df-inround body .pf-topl > .pf-ctlb { background: var(--df-bake); }
html.df-inround body .pf-fs.on { background: var(--pf-bake-on); }
html.df-inround .pf-g svg.face > circle:nth-of-type(2) { fill-opacity: .55; }
html.df-inround .pf-g svg.face > circle:nth-of-type(3) { fill-opacity: .62; }
html.df-inround .pf-g text { paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: .9px; }
html.df-inround .pf-g text.lb { stroke-width: .6px; }
html.df-inround .pf-thr::before { background: var(--pf-screws), var(--pf-grain), var(--df-glass); background-color: transparent; }
html.df-inround .pf-thr output { background: linear-gradient(rgba(0,0,0,.72), rgba(44,40,32,.62) 50%, rgba(0,0,0,.72)); text-shadow: var(--df-ts); }
html.df-inround .pf-rocker { background: var(--pf-grain), var(--df-glass); }
html.df-inround .pf-hud .pf-warn:not(:is(.stall, .crash) *) { background: radial-gradient(ellipse at 50% 35%, rgba(74,19,11,.78), rgba(34,8,5,.72)); }
html.df-inround .pf-stage { background: linear-gradient(rgba(239,230,207,.84), rgba(217,204,171,.8)); }
html.df-inround .dfc-pkeys button { background: var(--df-bake); }
html.df-inround .dfc-pkeys button.on { background: linear-gradient(rgba(255,179,71,.92), rgba(224,138,28,.88)); text-shadow: none; }
html.df-inround .dfc-g i { background: rgba(12,11,9,.72); }
html.df-inround .pf-stop { background: radial-gradient(ellipse at 50% 25%, rgba(224,88,58,.86), rgba(156,36,18,.82) 55%, rgba(92,16,8,.8)); }
html.df-inround .pf-rail { background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(21,18,14,.7) 50%, rgba(0,0,0,.8)); }

@media (max-width: 600px), (max-height: 500px) {
  /* the see-through goes further on a phone: about half (the bar: no plate fully opaque, the painting through all of them) */
  html.df-touch.df-inround {
    --pf-h: 30px;
    --df-glass: linear-gradient(170deg, rgba(37,35,31,.58), rgba(25,24,21,.52) 60%, rgba(20,19,16,.5));
    --df-bake: linear-gradient(rgba(61,57,49,.62), rgba(36,33,28,.56) 48%, rgba(23,21,17,.54));
    --df-row: calc(var(--pf-top) + var(--pf-h)); /* the top row's foot */
  }
  html.df-touch.df-inround .pf { --g: 62px; }
  html.df-touch.df-inround .pf-g svg.face > circle:nth-of-type(2) { fill-opacity: .42; }
  html.df-touch.df-inround .pf-g svg.face > circle:nth-of-type(3) { fill-opacity: .48; }
  html.df-touch.df-inround .pf-g svg.face, html.df-touch.df-inround .pf-g svg.nd { filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }

  /* the top row: SOUND is its lever alone, fullscreen beside it; CONTROLS only where there's room (on its side) */
  html.df-touch.df-inround body .pf-snd { width: var(--pf-h); padding: 0; font-size: 0; letter-spacing: 0; }
  html.df-touch.df-inround body .pf-snd i { margin: 0; }
  html.df-touch.df-inround body .pf-topl > .pf-ctlb { padding: 0 9px 0 8px; font-size: 10px; letter-spacing: .12em; }
  html.df-touch.df-inround body .pf-menub { padding: 0 10px 0 9px; font-size: 10px; letter-spacing: .14em; }
  /* SCORES: a key in the row, left of MENU */
  html.df-touch.df-inround .dfc-scores { top: var(--pf-top); left: auto; right: calc(var(--pf-r) + 72px); height: var(--pf-h); padding: 0 9px; font-size: 9px; letter-spacing: .16em; box-sizing: border-box; }
  /* the clock plate: code and clock, a hairline thinner */
  html.df-touch.df-inround .df-hud { gap: 10px; padding: 0 10px; height: var(--pf-h); box-sizing: border-box; border-radius: 2px; font-size: 9px; }
  html.df-touch.df-inround .df-hud .df-clock { font-size: 15px; min-width: 38px; }
  html.df-touch.df-inround .df-hud .df-hcode { letter-spacing: .22em; }
  /* PAINT / GUNS: a slim strip of the same plate */
  html.df-touch.df-inround .dfc-gauges { gap: 8px; padding: 0 9px; border-radius: 2px; box-sizing: border-box; align-items: center; }
  html.df-touch.df-inround .dfc-g { gap: 5px; font-size: 7.5px; letter-spacing: .18em; }
  html.df-touch.df-inround .dfc-g i { height: 6px; }
  html.df-touch.df-inround .dfc-heat em { min-width: 0; }

  /* PRACTICE: a thin strip. The heading and the keys on one line (the level keys fold into the lit one: a tap steps it on,
     range.js), the five numbers on the next, each label beside its number */
  html.df-touch.df-inround .dfc-prac { top: calc(var(--df-row) + 6px); padding: 5px 7px 5px; min-width: 0; box-sizing: border-box;
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "h k" "s s"; align-items: center; column-gap: 8px; row-gap: 4px; }
  html.df-touch.df-inround .dfc-prac[hidden] { display: none; }
  html.df-touch.df-inround .dfc-prac header { grid-area: h; margin: 0; font-size: 9px; letter-spacing: .2em; }
  html.df-touch.df-inround .dfc-prac .dfc-plv { display: none; }
  html.df-touch.df-inround .dfc-prac dl { grid-area: s; display: flex; flex-wrap: nowrap; gap: 0 9px; margin: 0; }
  html.df-touch.df-inround .dfc-prac dl > div { display: flex; align-items: baseline; gap: 4px; }
  html.df-touch.df-inround .dfc-prac dt { font-size: 0; letter-spacing: .12em; }
  html.df-touch.df-inround .dfc-prac dt::before { content: attr(data-s); font-size: 7px; } /* HITS SHOTS ACC STREAK POP: one line on a 360 px phone */
  html.df-touch.df-inround .dfc-prac dd { margin: 0; font-size: 11.5px; }
  html.df-touch.df-inround .dfc-pkeys { grid-area: k; justify-content: flex-end; gap: 3px; flex-wrap: nowrap; }
  html.df-touch.df-inround .dfc-pkeys button { flex: none; padding: 5px 7px 4px; font-size: 8px; letter-spacing: .12em; position: relative; }
  html.df-touch.df-inround .dfc-pkeys button::after { content: ""; position: absolute; inset: -7px -2px; } /* 34 px touch target */
  html.df-touch.df-inround .dfc-pkeys button[data-plevel]:not(.on) { display: none; }
  html.df-touch.df-inround .dfc-pkeys button[data-plevel].on::before { content: "\203A"; float: right; margin: -1px 0 0 5px; font-size: 10px; line-height: 8px; }
  html.df-touch.df-inround .dfc-pkeys button[data-plevel].on:disabled::before { content: none; }

  /* the stage's TURN BACK plate: smaller, under the top band and the scope, never over another panel */
  html.df-touch.df-inround .pf-stage { padding: 6px 22px 5px; font-size: 12px; letter-spacing: .14em; white-space: nowrap; max-width: 240px; box-sizing: border-box; }
  html.df-touch.df-inround .pf-stage small { font-size: 10.5px; margin-top: 2px; }
  html.df-touch.df-inround .pf-stage::before { left: 7px; } html.df-touch.df-inround .pf-stage::after { right: 7px; }
  /* the shot-down / lap banner: its words under that slot */
  html.df-touch.df-inround .dfc-banner b { font-size: 18px; }
  html.df-touch.df-inround .dfc-banner small { font-size: 12px; margin-top: 5px; }
  html.df-touch.df-inround .dfc-feed { top: calc(var(--df-scope-b, var(--df-row)) + 8px); }

  /* the bottom: smaller gauges (62 px), no climb dial; the trim slot and the STALL lamp stacked beside the altimeter */
  html.df-touch.df-inround #pf .pf-hud .pf-vsi { display: none; }
  html.df-touch.df-inround #pf .pf-hud .pf-panel { grid-template-columns: var(--g) var(--g) 58px; grid-template-rows: 1fr auto; gap: 3px 4px; height: var(--g); }
  html.df-touch.df-inround #pf .pf-hud .pf-asi, html.df-touch.df-inround #pf .pf-hud .pf-alt { grid-row: 1 / 3; }
  html.df-touch.df-inround #pf .pf-hud .pf-row3 { grid-column: 3; grid-row: 2; flex-direction: column; align-items: stretch; gap: 4px; }
  html.df-touch.df-inround #pf .pf-hud .pf-trim { font-size: 7px; gap: 4px; }
  html.df-touch.df-inround #pf .pf-hud .pf-trim span { height: 7px; }
  html.df-touch.df-inround #pf .pf-hud .pf-warn { height: 18px; min-width: 0; font-size: 7.5px; }
  /* the rudder rocker: shorter and narrower */
  html.df-touch.df-inround .pf-rocker { width: 148px; height: 34px; bottom: calc(var(--pf-b) + var(--g) + 10px); }
  html.df-touch.df-inround .pf-rocker b { top: 5px; width: 24px; height: 24px; margin-left: -12px; }
  html.df-touch.df-inround .pf-rocker b::after { left: 11px; top: 5px; bottom: 5px; }
  html.df-touch.df-inround .pf-rocker::after { top: 7px; bottom: 7px; }
  /* the stick's resting ring: fainter until a thumb takes it */
  html.df-touch.df-inround .pf .pf-stick:not(.on) { opacity: .5; }
  /* the throttle quadrant at four fifths */
  html.df-touch.df-inround .pf-thr { zoom: .8; right: calc(var(--pf-r) / .8); bottom: calc(var(--pf-b) / .8); } /* [fit] (a zoomed box's inset shrinks with it: keep it off the notch side) */
  /* FIRE (64 px) and GUN (56 px) for a thumb, beside the throttle at the foot of the screen, under our own plane */
  html.df-touch.df-inround #df-fire { width: 64px; height: 64px; right: calc(var(--fit-sar, env(safe-area-inset-right)) + 70px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 18px); opacity: .86; }
  html.df-touch.df-inround #df-fire span { font-size: 11px; }
  html.df-touch.df-inround #df-gun { width: 56px; height: 56px; right: calc(var(--fit-sar, env(safe-area-inset-right)) + 74px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 96px); opacity: .88; }
  html.df-touch.df-inround #df-gun span { font-size: 10px; }
}
/* a phone upright: the top row is SOUND, fullscreen, the clock plate with PAINT/GUNS under it as one plate, SCORES, MENU */
@media (max-width: 600px) {
  html.df-touch.df-inround body .pf-topl > .pf-ctlb { display: none; }
  html.df-touch.df-inround .df-hud { left: calc(var(--pf-l) + 2 * var(--pf-h) + 12px); transform: none; width: min(150px, calc(100vw - 2 * var(--pf-h) - 172px - var(--pf-l) - var(--pf-r)));
    justify-content: space-between; border-radius: 2px 2px 0 0; box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.42); }
  html.df-touch.df-inround .dfc-gauges { top: var(--df-row); bottom: auto; left: calc(var(--pf-l) + 2 * var(--pf-h) + 12px); transform: none; height: 13px; padding: 0 8px;
    width: min(150px, calc(100vw - 2 * var(--pf-h) - 172px - var(--pf-l) - var(--pf-r))); justify-content: space-between; gap: 6px;
    border-radius: 0 0 2px 2px; box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.42), 0 3px 8px rgba(0,0,0,.3); }
  html.df-touch.df-inround .dfc-g i { width: auto; flex: 1 1 auto; height: 5px; }
  html.df-touch.df-inround .dfc-g { flex: 1 1 0; min-width: 0; font-size: 6.5px; letter-spacing: .12em; }
  html.df-touch.df-inround .dfc-heat em:not(:empty) { font-size: 6.5px; }
  /* [fit] the race plate (GATE n / N and the clock) at the left under the row: centred, it ran into the scope on a 360 px phone */
  html.df-touch.df-inround .dfc-race { left: var(--pf-l); transform: none; max-width: calc(100vw - var(--pf-l) - var(--pf-r) - 96px); box-sizing: border-box; }
  /* the PRACTICE strip under the row, left of the scope */
  html.df-touch.df-inround .dfc-prac { top: calc(var(--df-row) + 19px); max-width: calc(100vw - var(--pf-l) - var(--pf-r) - 96px); }
  /* TURN BACK under the strip and the scope's foot */
  html.df-touch.df-inround .pf-stage { top: calc(max(var(--df-scope-b, 0px), var(--df-row) + 19px) + 8px); }
  html.df-touch.df-inround:has(#df-combat.on.practice) .pf-stage { top: calc(max(var(--df-scope-b, 0px), var(--df-row) + 72px) + 8px); }
  html.df-touch.df-inround .dfc-banner { top: calc(max(var(--df-scope-b, 0px), var(--df-row) + 72px) + 64px); }
  /* the stick rests over the rocker, the rocker over the gauges, all down the left edge */
  html.df-touch.df-inround #df-gun.left { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 144px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 92px); }
}
/* a phone on its side: one row (SOUND, fullscreen, CONTROLS | the clock plate and PAINT/GUNS side by side | SCORES, MENU);
   along the foot the stick's ring at the left, the gauges beside it, the rocker in the middle, FIRE, GUN and the throttle at
   the right: the middle of the view stays sky */
@media (max-height: 500px) and (min-width: 601px) {
  html.df-touch.df-inround .df-hud { left: calc(50% - 4px); transform: translateX(-100%); border-radius: 2px 0 0 2px; box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.42); }
  html.df-touch.df-inround .df-hud .df-count { display: none; }
  html.df-touch.df-inround .dfc-gauges { top: var(--pf-top); bottom: auto; left: calc(50% - 4px); transform: none; height: var(--pf-h); border-radius: 0 2px 2px 0;
    box-shadow: 0 0 0 1px #050404, inset 0 0 0 1px rgba(179,144,88,.42); }
  html.df-touch.df-inround .dfc-g i { width: clamp(20px, calc((50vw - var(--pf-r) - 250px) / 2), 58px); } /* [fit] the meters shorten so the strip ends before SCORES (a notch takes 47 px) */
  html.df-touch.df-inround .dfc-prac { max-width: calc(50vw - 136px); }
  html.df-touch.df-inround .pf-stage { top: calc(var(--df-row) + 8px); }
  html.df-touch.df-inround .dfc-banner { top: calc(var(--df-row) + 76px); }
  html.df-touch.df-inround .pf.fly.touch .pf-stick { top: calc(100% - var(--pf-b) - 56px); }
  html.df-touch.df-inround .pf-hud { left: calc(var(--pf-l) + 126px); }
  /* centred, but never left of the gauges' right edge (stick 126 + two dials and the trim column, 190): on a 740 px phone
     the middle would put it under TRIM and STALL */
  html.df-touch.df-inround .pf-rocker { left: max(calc(50% - 74px), calc(var(--pf-l) + 330px)); bottom: var(--pf-b); transform: none; }
  html.df-touch.df-inround #df-gun.left { right: calc(var(--fit-sar, env(safe-area-inset-right)) + 144px); bottom: calc(var(--fit-sab, env(safe-area-inset-bottom)) + 18px); }
}
/* on its side and under 820 px wide, the clock plate drops its mode word: on a 740 px phone FREE-FOR-ALL widened the centred
   plate under CONTROLS (the PRACTICE strip and the lobby still say which round it is) */
@media (max-height: 500px) and (min-width: 601px) and (max-width: 820px) { html.df-touch.df-inround .df-hud .df-mode { display: none; } }

/* [fit] The shared scale (fit.js --fit-z: 1 to a laptop, ~1.46 at 1920x1080, ~3.5 on a 4K TV seen from the couch). The lobby,
   room and end plates are .pf-menu plates and take it from play.html's rule; the round's own chrome takes it here, in the
   solo view (a split screen's views lay their parts out per view). */
html:not(.df-split) .df-hud, html:not(.df-split) #df-combat :is(.dfc-race, .dfc-team, .dfc-scores, .dfc-gauges, .dfc-prac, .dfc-feed, .dfc-banner, .dfc-board), #df-toast { zoom: var(--fit-z, 1); }
html.fit-big:not(.df-split) .df-tag em { zoom: var(--fit-z, 1); } /* the name tags over the planes */
