:root { color-scheme: light; }
body { margin: 0; background: #14082a; overflow: hidden; font-family: "Baloo 2", "Comic Sans MS", system-ui, sans-serif; }
#game { position: fixed; inset: 0; touch-action: none; cursor: pointer; }
/* Desktop (fine pointer): while the game cursor is drawn (html.gc-on, set at startup by game-cursor.js) the OS pointer is hidden everywhere on the page, including over the pills, the leaderboard and every menu, and the
   game's own pixel cursor (game-cursor.js, above everything, never catches a pointer event) replaces it. Touch devices are untouched. */
@media (hover: hover) and (pointer: fine) {
  html.gc-on, html.gc-on *, html.gc-on *::before, html.gc-on *::after { cursor: none !important; }
  .game-cursor { position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none; image-rendering: pixelated; opacity: 0; will-change: transform; }
}
/* Beat ring (beat-cursor.js): desktop only, the pill and the canvas are created or shown only for hover + fine pointer. One flat canvas of
   chunky blocks, pixelated, moved by transform, never catches a pointer event. No shadows. */
.beat-ring, .beat-orbit { position: fixed; left: 0; top: 0; z-index: 2147482999; pointer-events: none; image-rendering: pixelated; opacity: 0; will-change: transform, opacity; }
/* ---- Action row (actions.js): every title and pause action in one row along the bottom edge, in the HUD's language (rhythm-ui.js top row: score left, bar centre,
   attempts right). The two actions are pixel buttons (.px-pbtn, defined at the end of this file): a chunky stepped corner panel with a gold (Race friends) or pink (Leaderboard) pixel border. The row sits on the same side margins as the top
   row and spreads its actions evenly between them; on a narrow phone the two big actions share the first line. While playing the row is empty. No shadows. Each action keeps its own id (#mp-open, #lb-open, #cb-open). ---- */
#actions { position: fixed; z-index: 6; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 12px; padding: 0 max(clamp(12px, 3.5vw, 32px), env(safe-area-inset-right, 0px)) 0 max(clamp(12px, 3.5vw, 32px), env(safe-area-inset-left, 0px)); pointer-events: none; }
#actions > button { --c: 0px; --bar: rgba(195, 200, 244, .45); position: relative; flex: 0 0 auto; clip-path: none; background: transparent; border: 0; border-bottom: 4px solid var(--bar); border-radius: 0; min-width: 44px; min-height: 44px; margin: 0; padding: 6px 10px 4px; color: var(--px-white); pointer-events: auto; transition: none; }
#actions > button[hidden] { display: none; }
#actions > button[hidden][data-sliding] { display: inline-flex; }   /* a leaving button stays until its slide-out ends (action-slide.js) */
#actions > button[data-sliding="out"] { pointer-events: none; }
#actions > .lb-pill { --bar: var(--px-pink-lo); display: inline-flex; align-items: center; gap: 10px; }
#actions > button.px-pbtn.lb-pill:not(.mp-pill) { margin-left: auto; }   /* Leaderboard always sits on the right edge, so Race friends (mounted later, leftmost) never pushes it */
#actions > .mp-pill { --bar: var(--px-gold-lo); }
#actions > button:hover, #actions > button:focus-visible { background: transparent; --bar: var(--px-cyan); outline: none; }
#actions > .mp-pill:hover, #actions > .mp-pill:focus-visible { --bar: var(--px-gold-hi); }
#actions > .lb-pill:hover, #actions > .lb-pill:focus-visible { --bar: var(--px-pink-hi); }
#actions > button:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
#actions > button:active { --bar: var(--px-pink); transform: translateY(2px); }
/* icons: Phosphor, filled, with the same dark outline the HUD lettering has (stroke painted under the fill) */
#actions .act-ico { display: block; line-height: 0; color: var(--px-white); }
#actions .act-ico svg { display: block; width: 24px; height: 24px; overflow: visible; }
#actions .act-ico svg path { stroke: var(--px-ink-deep); stroke-width: 20px; paint-order: stroke fill; stroke-linejoin: round; }
#actions .pxl { display: block; }
#actions .lb-pill .pxl { margin-left: 8px; }
@media (max-width: 600px) {
  #actions { gap: 0 8px; }
  #actions > .mp-pill, #actions > .lb-pill { flex: 0 0 calc((100% - 8px) / 2); justify-content: center; }   /* two big actions fill the first line, so the tools always take the second */
}
@media (max-height: 480px) and (orientation: landscape) { #actions { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
/* The pulsing frame sits on the very edge of the browser window: fixed, inset 0, above the canvas (z auto) and the .hud text (5),
   below the buttons (6), never catches a tap. rhythm-ui.js sets the custom properties every frame (width scales with the viewport,
   a thin steady frame under prefers-reduced-motion). Edge glow = four gradients fading inward, no box-shadow. */
#beat-frame { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#beat-frame > div { position: absolute; inset: 0; box-sizing: border-box; }
#beat-frame .bf-main {
  border: var(--bf-w, 0px) solid rgba(var(--bf-rgb, 255, 79, 163), var(--bf-ca, 0));
  background:
    linear-gradient(to right, rgba(var(--bf-rgb, 255, 79, 163), var(--bf-ga, 0)), transparent var(--bf-gw, 0px)),
    linear-gradient(to left, rgba(var(--bf-rgb, 255, 79, 163), var(--bf-ga, 0)), transparent var(--bf-gw, 0px)),
    linear-gradient(to bottom, rgba(var(--bf-rgb, 255, 79, 163), var(--bf-ga, 0)), transparent var(--bf-gw, 0px)),
    linear-gradient(to top, rgba(var(--bf-rgb, 255, 79, 163), var(--bf-ga, 0)), transparent var(--bf-gw, 0px));
}
#beat-frame .bf-half { inset: var(--bh-in, 0px); border: var(--bh-w, 0px) solid rgba(125, 230, 255, var(--bh-a, 0)); }
#beat-frame .bf-tint { border: var(--bt-w, 0px) solid rgba(var(--bt-rgb, 168, 224, 58), var(--bt-a, 0)); }
#beat-frame .bf-fire {
  border: var(--bfire-w, 0px) solid rgba(var(--bfire-rgb, 255, 216, 112), var(--bfire-a, 0));
  background:
    linear-gradient(to right, rgba(255, 45, 168, var(--bfire-ga, 0)), transparent var(--bfire-gw, 26px)),
    linear-gradient(to left, rgba(45, 224, 255, var(--bfire-ga, 0)), transparent var(--bfire-gw, 26px)),
    linear-gradient(to bottom, rgba(255, 110, 199, var(--bfire-ga, 0)), transparent var(--bfire-gw, 26px)),
    linear-gradient(to top, rgba(255, 45, 168, var(--bfire-ga, 0)), transparent var(--bfire-gw, 26px));
}
/* Double-tap-to-zoom is off everywhere (touch-action: manipulation keeps pan and pinch zoom, drops the double-tap gesture and the 300 ms click delay);
   #game stays touch-action: none. No horizontal scroll, and no browser back/forward overscroll swipe from the edges. */
html, body { touch-action: manipulation; overflow: hidden; max-width: 100%; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Leaderboard (journey/src/leaderboard/panel.js). Palette only, flat (no shadows), the page's own font. */
.lb-panel { z-index: 7; user-select: text; -webkit-user-select: text; }   /* plateless: layout and look come from .px-bare below */
.lb-panel .lb-head { min-height: 44px; }
.px-close { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; }
.px-close svg { display: block; }
.lb-panel .lb-name:focus-visible, .cb-panel .lb-name:focus-visible { border-color: var(--px-pink-hi); outline: 2px solid var(--px-pink-hi); outline-offset: -6px; }
.lb-panel[hidden], .lb-pill[hidden], .lb-form[hidden] { display: none; }
.lb-form { display: flex; flex-direction: column; gap: 8px; }

/* Touch targets: at least 44px on coarse pointers (QA sweep). */
@media (pointer: coarse) {
  .lb-tab, .lb-close, .lb-submit, .lb-name { min-height: 44px; }
  .lb-close { min-width: 44px; }
}

.page-foot { position: fixed; z-index: 5; left: 0; bottom: 0; }
.page-foot a { position: absolute; left: -9999px; }
.page-foot a:focus { left: 12px; bottom: 12px; padding: 12px 16px; min-height: 44px; box-sizing: border-box; background: var(--px-ink-deep); color: var(--px-white); border: 2px solid var(--px-pink-lo); border-radius: 0; outline: 2px solid var(--px-focus); outline-offset: 2px; font-family: var(--px-font); font-size: 10px; line-height: 1.4; text-decoration: none; }

/* Phones and tablets (coarse pointer): fill the whole visible area, keep everything inside the safe areas, no rubber banding.
   Desktop (fine pointer) is untouched. */
@media (pointer: coarse) {
  html, body { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; }
  #game, #beat-frame { inset: 0; width: 100%; height: 100%; }
}

/* Everything tappable and every overlay opts out of double-tap zoom explicitly (the property is not inherited, only intersected with ancestors). */
button, a, #levels, #levels button, #beat-frame, .page-foot { touch-action: manipulation; }
/* Organ selector = the segments of the top progress bar (rhythm-ui.js drawTract/layoutLevels). The bar itself is drawn on the HUD canvas; these are
   transparent buttons laid exactly over its segments (the container's box is set from script). Labels are the buttons' text, aria-label and tooltip,
   never drawn. At least 44 px tall on touch. Keyboard focus shows a mint outline. */
#levels { position: fixed; z-index: 6; left: 0; top: 0; width: 0; height: 20px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; }
#levels button { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: transparent; font-size: 0; line-height: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
#levels button:focus-visible { outline: 2px solid #35f0d0; outline-offset: 1px; }

/* Multiplayer lobby (journey/src/multiplayer/; the remote ghosts are drawn on the HUD canvas by ghost/renderer.js). Palette only, flat (no shadows), the pixel UI look comes from fonts/pixel-ui.css. */
/* While the lobby is open the corner pills would sit on its frame: they step aside (the panel has its own Close and Leave). */
body.modal-open #actions, body.modal-open .mp-leave, body.modal-open .pause-btn, body.modal-open #levels { visibility: hidden; }   /* #levels: the bar they sit on steps aside under an open panel (rhythm-ui.js) */
.mp-panel[hidden], .mp-pill[hidden], .mp-count[hidden], .mp-leave[hidden], .mp-status[hidden] { display: none; }
.mp-body { display: flex; flex-direction: column; gap: 16px; }
.mp-status { margin: 0; }
.mp-panel .lb-head { min-height: 44px; }
.mp-close { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none; }
.mp-close svg { display: block; }
.mp-big { width: 100%; min-height: 44px; }
.mp-row { display: flex; gap: 12px; align-items: stretch; }
.mp-row > .mp-big { width: auto; flex: none; min-width: 96px; }
.mp-row > .mp-join { min-height: 56px; }
.mp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 auto; }
.mp-intro, .mp-panel .lb-hint { margin: 0; }
.mp-or { display: flex; align-items: center; gap: 12px; }
.mp-or i { display: none; }
.mp-or-t { line-height: 0; }
.mp-code-in { height: 100%; min-height: 56px; text-align: center; font-size: 20px; letter-spacing: 4px; text-indent: 4px; }
.mp-code { display: flex; justify-content: center; padding: 12px 0; }
.mp-link { font-size: 14px; flex: 1 1 auto; min-width: 0; }
.mp-players, .mp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-player, .mp-result { display: flex; align-items: center; gap: 12px; padding: 6px 0; min-height: 44px; box-sizing: border-box; justify-content: center; }
.mp-player .mp-tag { margin-left: auto; }
.mp-result { flex-wrap: wrap; row-gap: 8px; }
.mp-rank { min-width: 22px; }
.mp-meta { flex: 1 0 100%; }
.mp-count { position: fixed; z-index: 9; left: 50%; top: 38%; transform: translate(-50%, -50%); pointer-events: none; }
.mp-leave { position: fixed; z-index: 6; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
@media (pointer: coarse) { .mp-leave { min-height: 44px; } }

/* ---- Room UI without plates (Carl): HUD lettering laid straight over the scene. No panel, card, border, fill or shadow. No dim, no scrim, no blur behind the text; legibility comes from the thick outline of the lettering (hud-pixel.js pixelText). Buttons are outlined text with a bar under them, fields are text on an underline. ---- */
.mp-panel, .px-bare { position: fixed; z-index: 8; inset: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; text-align: center; background: transparent; border: 0; border-radius: 0; clip-path: none; user-select: text; -webkit-user-select: text; }
.mp-panel::-webkit-scrollbar, .px-scroll::-webkit-scrollbar { display: none; }
.mp-panel > .lb-head, .mp-panel > .mp-status, .mp-panel > .mp-body { width: min(100%, 440px); flex: none; }
.mp-panel > .lb-head { margin-top: auto; }
.mp-panel > .mp-body { margin-bottom: auto; align-items: center; gap: 14px; }
.mp-panel .lb-head { justify-content: center; position: relative; min-height: 44px; }
.px-bare .lb-title { flex: 0 1 auto; text-align: center; }
.px-bare .lb-close { position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); top: calc(12px + env(safe-area-inset-top, 0px)); }
.px-bare .pxw-vis { justify-content: center; }
.mp-panel .mp-field, .mp-panel .mp-row, .mp-panel .mp-who, .mp-panel .mp-players, .mp-panel .mp-results { width: 100%; }
.mp-panel .mp-row { justify-content: center; align-items: flex-end; }
.mp-panel .mp-field { align-items: stretch; }
.mp-panel .mp-field .lb-label { text-align: center; }
.mp-panel .mp-who { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mp-panel .mp-players, .mp-panel .mp-results { align-items: center; }
.mp-panel .mp-player { justify-content: center; }
/* buttons: outlined lettering, a bar under it that lights up on hover, focus and press */
.px-bare .px-btn, .px-bare .lb-close, .px-bare .lb-tab, .px-bare .cb-tab, .px-bare .lb-submit, .px-bare .px-link, .mp-leave { --c: 0px; clip-path: none; background: transparent; border: 0; border-bottom: 4px solid transparent; border-radius: 0; min-height: 44px; min-width: 44px; padding: 6px 10px 4px; color: inherit; cursor: pointer; transition: none; }
.px-bare .px-btn:hover, .px-bare .lb-close:hover, .px-bare .lb-tab:hover, .px-bare .cb-tab:hover, .px-bare .lb-submit:hover, .px-bare .px-link:hover, .mp-leave:hover, .px-bare .px-btn:focus-visible, .px-bare .lb-close:focus-visible, .px-bare .lb-tab:focus-visible, .px-bare .cb-tab:focus-visible, .px-bare .lb-submit:focus-visible, .px-bare .px-link:focus-visible, .mp-leave:focus-visible { background: transparent; border-bottom-color: var(--px-cyan); outline: none; }
.px-bare .px-btn--hot, .px-bare .lb-submit { border-bottom-color: var(--px-gold-lo); }
.px-bare .px-btn--hot:hover, .px-bare .px-btn--hot:focus-visible, .px-bare .lb-submit:hover, .px-bare .lb-submit:focus-visible { border-bottom-color: var(--px-gold-hi); }
.px-bare .px-btn:active, .px-bare .lb-close:active, .px-bare .lb-tab:active, .px-bare .cb-tab:active, .px-bare .lb-submit:active, .px-bare .px-link:active, .mp-leave:active { border-bottom-color: var(--px-pink); transform: translateY(2px); }
.px-bare .px-btn:disabled, .px-bare .lb-submit:disabled { background: transparent; border-bottom-color: transparent; cursor: default; }
.px-bare .px-btn:disabled .pxl-img, .px-bare .lb-submit:disabled .pxl-img { opacity: .55; }
.px-bare .px-btn--hot { min-width: 220px; }
/* fields: the same pixel face, typed text outlined like the lettering, on a bare underline, no box */
.px-bare .lb-name { background: transparent; border: 0; border-bottom: 4px solid var(--px-white-lo); border-radius: 0; clip-path: none; outline: none; padding: 8px 2px 6px; min-height: 44px; text-align: center; color: var(--px-gold-hi); caret-color: var(--px-gold); font-size: 16px; paint-order: stroke fill; -webkit-text-stroke: 6px var(--px-ink-deep); }
.px-bare .lb-name::placeholder { color: var(--px-white-lo); opacity: 1; font-size: 14px; }
.px-bare .lb-name:focus, .px-bare .lb-name:focus-visible { border-bottom-color: var(--px-gold); outline: none; }
.px-bare .lb-name[aria-invalid="true"] { border-bottom-color: var(--px-gold); }
.mp-panel .mp-link { box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding: 4px 2px; font-family: var(--px-text); font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--px-gold-hi); text-align: center; overflow-wrap: anywhere; word-break: break-all; user-select: all; -webkit-user-select: all; paint-order: stroke fill; -webkit-text-stroke: 5px var(--px-ink-deep); outline: none; }
.mp-panel .mp-link:focus-visible { color: var(--px-white); }
@media (max-width: 440px) { .mp-panel .mp-link { font-size: 13px; } }
/* toasts: lettering only */
.px-toast { background: transparent !important; border: 0 !important; padding: 0 !important; clip-path: none; }
@media (max-width: 440px) { .px-bare .px-btn--hot { min-width: 0; width: 100%; } }
.mp-panel .mp-big { width: auto; min-width: 200px; }
.mp-panel .mp-row > .mp-big { min-width: 88px; }
.mp-panel .mp-row > .mp-join { min-height: 44px; }
.mp-panel .mp-close { color: var(--px-white); }
.mp-panel .mp-close svg path { stroke: var(--px-ink-deep); stroke-width: 18px; paint-order: stroke fill; }
@media (max-width: 440px) { .mp-panel .mp-big { min-width: 0; } }

/* ---- Board panels without plates (leaderboard, claim board): the same language as the room UI above. A full screen layer with NO dim or scrim,
   a Close outside the scroller, one scroller whose edges FADE (no box, no scrollbar track), rows as bare lettering, the chosen tab marked by gold lettering plus a bar. ---- */
.px-bare.lb-panel { overflow: hidden; padding: 0; gap: 0; align-items: stretch; }
.px-bare.lb-panel[hidden] { display: none; }
.px-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 92px 16px calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.px-col { margin: auto 0; width: min(100%, 440px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.px-scroll.lb-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
.px-scroll.lb-before { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px); mask-image: linear-gradient(to bottom, transparent, #000 56px); }
.px-scroll.lb-before.lb-more { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 56px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 56px, #000 calc(100% - 48px), transparent); }
.lb-panel .lb-head { justify-content: center; width: 100%; min-height: 44px; }
.lb-panel .lb-head .lb-title { text-align: center; }
.lb-panel .lb-tabs, .lb-panel .cb-tabs { justify-content: center; gap: 20px; }
.lb-panel .lb-tab, .lb-panel .cb-tab { min-width: 44px; }
.lb-panel .lb-tab[aria-selected="true"], .lb-panel .cb-tab[aria-selected="true"] { border-bottom-color: var(--px-gold); }
.lb-panel .lb-status, .lb-panel .cb-note, .lb-panel .lb-best, .lb-panel .cb-sub, .lb-panel .lb-hint { text-align: center; width: 100%; }
.lb-panel .lb-form, .lb-panel .cb-form { width: 100%; align-items: center; gap: 12px; }
.lb-panel .lb-form-row { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
.lb-panel .lb-form-row .lb-submit { align-self: center; }
.lb-panel .cb-form .lb-name { width: 100%; }
.lb-panel .lb-retry { position: static; align-self: center; }
/* The submit view (panel.js syncView): while the nickname form is up, the board parts stay out, so the form and the optional sign-in fit one phone screen. */
.lb-panel.lb-submit-view .lb-tabs, .lb-panel.lb-submit-view .lb-viz, .lb-panel.lb-submit-view .lb-cols, .lb-panel.lb-submit-view .lb-list,
.lb-panel.lb-submit-view .lb-best, .lb-panel.lb-submit-view .px-link.px-link.px-link, .lb-panel.lb-submit-view .lb-retry:not(.lb-share-run) { display: none; }
.lb-panel.lb-submit-view .lb-signin.lb-signin { gap: 16px; }   /* .lb-signin is also an .lb-form: doubled class so the form gap below does not win */
.lb-panel.lb-submit-view .px-col { gap: 10px; }
.lb-panel.lb-submit-view .lb-form { gap: 8px; }
@media (max-height: 700px) {
  /* a short phone (375 x 667): the Submit score button says what the intro line says, so it steps out and the two sign-in buttons fit */
  .lb-panel.lb-submit-view .lb-intro { display: none; }
  .lb-panel.lb-submit-view .px-col { gap: 8px; }
  .lb-panel.lb-submit-view .lb-signin.lb-signin { gap: 10px; }
  /* an inline error (one short line) takes the why-sign-in line's place until it clears, so both sign-in buttons stay on screen */
  .lb-panel.lb-submit-view .px-col:has(.lb-status.lb-err) .lb-signin-note { display: none; }
}
.lb-panel .lb-signin-row { align-items: center; width: 100%; }
.lb-panel .lb-signin-row .lb-provider { max-width: 100%; box-sizing: border-box; }
.lb-panel .lb-list, .lb-panel .cb-list { width: 100%; overflow: visible; flex: none; padding: 0; gap: 2px; }
.lb-panel .lb-cols { width: 100%; box-sizing: border-box; }
.lb-panel .px-link { max-width: 100%; box-sizing: border-box; display: inline-flex; align-self: center; justify-content: center; width: auto; min-height: 44px; padding: 6px 6px 4px; background: transparent; border: 0; border-bottom: 4px solid var(--px-cyan-lo); border-radius: 0; clip-path: none; }
.lb-panel .px-link:hover, .lb-panel .px-link:focus-visible { border-bottom-color: var(--px-cyan-hi); }
.lb-panel .px-link .pxw { flex: 0 1 auto; min-width: 0; }
.lb-panel .cb-mine { width: 100%; align-items: center; }
.lb-panel .cb-flush { justify-content: center; }
/* rows: bare lettering, no fill, no stepped corner. Mine: a gold bar under the row. Ghost: a dashed cyan bar. */
.lb-panel .px-row { clip-path: none; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 8px 4px 9px; }
.lb-panel .px-row.px-me { background: transparent; border-bottom-color: var(--px-gold); }
.lb-panel .px-row.px-ghost { background: transparent; border-bottom: 3px dashed var(--px-cyan); }
.lb-panel .px-row.px-unclaimed { background: transparent; }
.lb-panel .px-close { color: var(--px-white); }
.lb-panel .px-close svg path { stroke: var(--px-ink-deep); stroke-width: 18px; paint-order: stroke fill; }
@media (max-height: 520px) { .px-scroll { padding-top: 60px; } }
@media (max-height: 520px) { .px-scroll { padding-top: 60px; } }

/* A tap on empty space (the dim) still reaches the game, as a tap beside the old plate did (restart after a death, for example); only buttons, links, fields and rows take presses. */
.lb-panel.px-bare, .lb-panel .px-scroll, .lb-panel .px-col { pointer-events: none; }
.lb-panel button, .lb-panel a, .lb-panel input, .lb-panel .px-row { pointer-events: auto; }

/* ---- Pixel button (.px-pbtn): the one shared button for Race friends, Leaderboard, Claim score and every lobby action. A chunky panel with a two step stepped corner
   (clip-path), a pixel border in the accent colour (the ::before face is inset by one pixel unit and clipped to a one step corner, so the border follows the corner),
   a darker shade row along the bottom like the bar track. Flat: no radius, no shadow, no single sided border, sentence case lettering from pixel-text.js.
   Modifiers: --gold (main action, Race friends), --pink (Leaderboard); without one it is the plain white edge. 44px minimum target. ---- */
button.px-pbtn.px-pbtn { --u: 3px; --edge: var(--px-white-lo); --face: var(--px-ink); --shade: var(--px-ink-deep); position: relative; isolation: isolate; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; margin: 0; padding: calc(var(--u) + 7px) calc(var(--u) + 12px) calc(var(--u) + 8px); border: 0; border-radius: 0; background: var(--edge); color: var(--px-white); cursor: pointer; transition: none; -webkit-appearance: none; appearance: none; text-decoration: none;
  --px-clip: polygon(calc(var(--u) * 2) 0, calc(100% - var(--u) * 2) 0, calc(100% - var(--u) * 2) var(--u), calc(100% - var(--u)) var(--u), calc(100% - var(--u)) calc(var(--u) * 2), 100% calc(var(--u) * 2), 100% calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u) * 2), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u) * 2) calc(100% - var(--u)), calc(100% - var(--u) * 2) 100%, calc(var(--u) * 2) 100%, calc(var(--u) * 2) calc(100% - var(--u)), var(--u) calc(100% - var(--u)), var(--u) calc(100% - var(--u) * 2), 0 calc(100% - var(--u) * 2), 0 calc(var(--u) * 2), var(--u) calc(var(--u) * 2), var(--u) var(--u), calc(var(--u) * 2) var(--u)); clip-path: var(--px-clip); }
button.px-pbtn.px-pbtn::before { content: ""; position: absolute; inset: var(--u); z-index: -1; background: linear-gradient(to bottom, var(--face) calc(100% - var(--u)), var(--shade) 0);
  clip-path: polygon(var(--u) 0, calc(100% - var(--u)) 0, calc(100% - var(--u)) var(--u), 100% var(--u), 100% calc(100% - var(--u)), calc(100% - var(--u)) calc(100% - var(--u)), calc(100% - var(--u)) 100%, var(--u) 100%, var(--u) calc(100% - var(--u)), 0 calc(100% - var(--u)), 0 var(--u), var(--u) var(--u)); }
button.px-pbtn.px-pbtn.px-pbtn--gold { --edge: var(--px-gold-lo); --shade: var(--px-gold-ext2); }
button.px-pbtn.px-pbtn.px-pbtn--pink { --edge: var(--px-pink-lo); --shade: var(--px-pink-ext); }
button.px-pbtn.px-pbtn:hover { --face: var(--px-face-hover); --edge: var(--px-cyan); background: var(--edge); border: 0; }
button.px-pbtn.px-pbtn.px-pbtn--gold:hover { --edge: var(--px-gold-hi); }
button.px-pbtn.px-pbtn.px-pbtn--pink:hover { --edge: var(--px-pink-hi); }
button.px-pbtn.px-pbtn:focus-visible { --edge: var(--px-focus); outline: none; background: var(--edge); border: 0; }
button.px-pbtn.px-pbtn:active { --face: var(--px-ink-deep); transform: translateY(2px); border: 0; }
button.px-pbtn.px-pbtn:disabled { --edge: #4a3a63; --face: var(--px-ink); --shade: var(--px-ink-deep); background: var(--edge); border: 0; cursor: default; }
button.px-pbtn.px-pbtn[hidden] { display: none; }
button.px-pbtn.px-pbtn .pxl, button.px-pbtn.px-pbtn .pxl-img { display: block; }
#actions > button.px-pbtn { --edge: var(--px-white-lo); border: 0; background: var(--edge); clip-path: var(--px-clip); padding: calc(var(--u) + 7px) calc(var(--u) + 12px) calc(var(--u) + 8px); }
#actions > button.px-pbtn--gold { --edge: var(--px-gold-lo); }
#actions > button.px-pbtn--pink { --edge: var(--px-pink-lo); }
#actions > button.px-pbtn:hover { --edge: var(--px-cyan); background: var(--edge); }
#actions > button.px-pbtn--gold:hover { --edge: var(--px-gold-hi); }
#actions > button.px-pbtn--pink:hover { --edge: var(--px-pink-hi); }
#actions > button.px-pbtn:focus-visible { --edge: var(--px-focus); background: var(--edge); outline: none; }
#actions > button.px-pbtn:active { transform: translateY(2px); }
#actions .lb-pill .pxl, #actions .mp-pill .pxl { margin-left: 0; }
.px-bare button.px-pbtn.px-btn, .px-bare button.px-pbtn.px-btn:hover, .px-bare button.px-pbtn.px-btn:focus-visible, .px-bare button.px-pbtn.px-btn:active, .px-bare button.px-pbtn.px-btn:disabled { border: 0; }
.px-bare button.px-pbtn.px-btn:disabled .pxl-img { opacity: .6; }
.px-bare button.px-pbtn.px-btn { min-height: 44px; padding: calc(var(--u) + 7px) calc(var(--u) + 12px) calc(var(--u) + 8px); }

/* ui-crt.js: the action buttons are painted into the CRT HUD canvas; the real button stays as the click zone (moved onto the bent picture by script), face hidden. */
button.px-pbtn.ui-crt-zone, button.px-pbtn.ui-crt-zone:hover, button.px-pbtn.ui-crt-zone:focus-visible, button.px-pbtn.ui-crt-zone:active, button.px-pbtn.ui-crt-zone:disabled { background: transparent !important; }
button.px-pbtn.ui-crt-zone::before { display: none; }
button.px-pbtn.ui-crt-zone .pxl { visibility: hidden; }

/* Touch pause button (pause-button.js, HAG-4636): a square pixel button at the right end of the HUD score row. rhythm-ui.js sets left and top; ui-crt.js paints it and bends the click zone. */
button.px-pbtn.px-pbtn.pause-btn { position: fixed; z-index: 6; right: auto; left: auto; top: 8px; box-sizing: border-box; padding: 0; min-width: 48px; min-height: 48px; }
button.px-pbtn.px-pbtn.pause-btn[hidden] { display: none; }
/* Leave race (.mp-leave, lobby.js) is a .px-pbtn too: the shared button rule above sets position: relative at higher specificity than .mp-leave's fixed placement,
   which left it 104px above the top of the screen during a room race (HAG-4961). Pinned fixed here; its left and bottom stay with .mp-leave and share.css. */
button.px-pbtn.px-pbtn.mp-leave { position: fixed; }

/* ---- Local two player (journey/src/local2p/, html.local2p): two games in #game, left and right (stacked on a wide portrait tablet), a flat divider, no shadows. ---- */
#game.l2p { background: var(--px-ink-deep, #1c0b2e); }
.l2p-half { position: absolute; overflow: hidden; touch-action: none; }
.l2p-half canvas { display: block; touch-action: none; }
.l2p-divider { position: absolute; background: var(--px-ink, #2b1048); pointer-events: none; z-index: 3; }
.l2p-tag { position: absolute; left: 12px; bottom: 12px; z-index: 4; pointer-events: none; }
.l2p-overlay { position: fixed; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; pointer-events: none; text-align: center; padding: 16px; box-sizing: border-box; }
.l2p-overlay[hidden], .l2p-results[hidden] { display: none; }
.l2p-results { position: fixed; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 24px; box-sizing: border-box; width: calc(100vw - 24px); max-width: calc(100vw - 24px); background: transparent; border: 0; border-radius: 0; text-align: center; }   /* no plate (Carl): HUD lettering straight over the scene like the Paused word, the thick outline carries legibility */
.l2p-results .l2p-title { width: 100%; line-height: 0; }
.l2p-results { pointer-events: none; } .l2p-results button { pointer-events: auto; }
.l2p-results:focus { outline: none; }   /* focused on show so a late Enter or Space cannot hit Rematch; Tab moves on to the buttons */
.l2p-results .pxw-vis { justify-content: center; }
.l2p-row { display: flex; justify-content: center; }
.l2p-btns { display: flex; gap: 12px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
html.local2p #actions { display: none; }
/* In place (mode-switch.js): the single player game stays on the page, parked, while Local runs. Its chrome steps out with it. */
html.local2p.local2p #actions, html.local2p #levels, html.local2p #beat-frame, html.local2p #pause-open, html.local2p button.death-lb, html.local2p button.death-opt, html.local2p .beat-ring, html.local2p .beat-orbit, html.local2p .game-cursor { display: none; }   /* doubled class: beats html.icon-actions #actions (share.css) */
html.mt-build .l2p-half, html.mt-build .l2p-divider, html.mt-build .l2p-overlay, html.mt-build .l2p-pause, html.mt-build .l2p-back { visibility: hidden; }   /* Local builds while the solo picture collapses: it shows only from the line on */
.l2p-say .pxw-vis { justify-content: center; }
.l2p-say-half { position: absolute; display: flex; justify-content: center; padding: 0 20px; box-sizing: border-box; pointer-events: none; }   /* the start prompt and count, once per half (local2p/index.js showSay) */
.l2p-say-half[hidden] { display: none; }
.l2p-say-half .pxw-vis { justify-content: center; }
button.px-pbtn.px-pbtn.l2p-back { position: absolute; z-index: 8; }   /* Back to one player on the ready and pause screens, centred on the divider */
.l2p-back[hidden] { display: none; }
.l2p-keys { position: absolute; left: 12px; bottom: 44px; right: 12px; z-index: 4; pointer-events: none; }
.l2p-keys[hidden] { display: none; }
/* touch pause for two players: centred on the divider, square-cornered pixel button like the one player pause button, glyph built from flat blocks (no shadows) */
button.px-pbtn.px-pbtn.l2p-pause { z-index: 8; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; }
.l2p-glyph { position: relative; display: block; width: 18px; height: 18px; pointer-events: none; }
.l2p-pause[data-glyph="pause"] .l2p-glyph::before, .l2p-pause[data-glyph="pause"] .l2p-glyph::after { content: ""; position: absolute; top: 0; width: 6px; height: 18px; background: #fff; }
.l2p-pause[data-glyph="pause"] .l2p-glyph::before { left: 1px; }
.l2p-pause[data-glyph="pause"] .l2p-glyph::after { right: 1px; }
.l2p-pause[data-glyph="play"] .l2p-glyph::before { content: ""; position: absolute; left: 3px; top: 0; width: 14px; height: 18px; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* The Splat card's View leaderboard word is painted into the HUD; this is its transparent click zone (death-link.js). */
button.death-lb { position: fixed; z-index: 6; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.death-lb[hidden] { display: none; }
button.death-lb:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }
button.death-opt { position: fixed; z-index: 6; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.death-opt[hidden] { display: none; }
button.death-opt:focus-visible { outline: 3px solid var(--px-focus); outline-offset: 2px; }

/* ---- Mode switch (journey/src/mode-switch.js, mode-transition.js): solo to Local two player and back happens in place, dressed as a CRT changing channel.
   The picture collapses into a bright line, the other mode is built or woken underneath, and the line opens into it once it has drawn. The mt-hold rules
   are for a page still opened by an older version's page-load switch (mode-hold.js); same-origin page loads cross-fade instead of flashing. Reduced motion: no line and no squash, a dark hold between two short fades. No shadows: the line is a flat gradient. */
@view-transition { navigation: auto; }
html.mt-hold #game, html.mt-shut #game { transform: scale(0.86, 0.004); filter: brightness(3); }   /* mt-shut: the in-place switch holds the line in CSS too, not only through the out animation's fill (Chrome dropped that fill on screen while the mode was swapped underneath) */
html.mt-hold.mt-rm #game, html.mt-shut.mt-rm #game { transform: none; filter: none; opacity: 0; }
html.mt-hold #actions, html.mt-hold #beat-frame, html.mt-hold #levels, html.mt-hold .beat-ring, html.mt-hold .beat-orbit, html.mt-hold .game-cursor,
html.mt-shut #actions, html.mt-shut #beat-frame, html.mt-shut #levels, html.mt-shut .beat-ring, html.mt-shut .beat-orbit, html.mt-shut .game-cursor { opacity: 0; }
html.mt-shut #actions, html.mt-shut .game-cursor { visibility: hidden; }   /* the cursor sets its own inline opacity, and a first solo boot under the line mounts the action row: neither may show over the line */
html.mt-hold body, html.mt-out body { pointer-events: none; }
html.mt-hold::after, html.mt-shut::after { content: ""; position: fixed; left: 7%; right: 7%; top: calc(50% - 1px); height: 3px; z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, rgba(189, 247, 255, 0), #bdf7ff 18%, #ffffff 50%, #bdf7ff 82%, rgba(189, 247, 255, 0)); }
html.mt-rm::after { display: none; }
/* action tooltips (action-tips.js): the icon button's aria-label in pixel lettering, no plate, no shadow, mouse and keyboard only. Placed by a transform from the top left. */
#act-tip { position: fixed; z-index: 7; left: 0; top: 0; margin: 0; padding: 0; border: 0; background: transparent; line-height: 0; white-space: nowrap; pointer-events: none; }
#act-tip[hidden] { display: none; }

/* Launch party start modal (firepoop.com/battle-of-the-bowel, leaderboard/launch-panel.js). html.fp-launch: no organ picker, every event run starts at the mouth.
   The plateless layer (.px-bare) over the dimmed game, one scroller. One column on a phone; on a wide screen (the party TV at 1920x1080) the name, the countdown
   and Play sit beside the top ten so it all reads from across the room without scrolling. Flat colour, no shadows, square pixel boxes (no radius). */
html.fp-launch #levels { display: none !important; }
.lp-panel [hidden] { display: none !important; }
.px-bare.lp-panel .px-col.lp-col { width: min(100%, 1640px); gap: 14px; }
.lp-grid { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
/* HAG-5112: the CRT bends the picture in from the screen edge (the bezel's inner edge is about 2.7% of the width in, ui-crt.js insideBezel), so the scroller's 16px
   side padding put the name field, the countdown and Play under the bezel on a laptop. The grid keeps 3.5% of the width clear each side (16px on a phone, as before;
   the TV's 1640px column is narrower than that already). */
.px-bare.lp-panel .lp-grid { width: min(100%, 100vw - 2 * max(16px, 3.5vw)); }
.lp-main, .lp-board { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; min-width: 0; }
.lp-field { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.px-bare .lp-name.lb-name { width: min(640px, 100%); text-align: center; }
.lp-panel .lb-title[data-row="1"] .pxw-vis { flex-wrap: nowrap; }   /* the title on one row: modal-crt.js sizes it so the whole line fits */
/* the party name field reads as big HUD lettering, not a form box (Carl 2026-11-13): no box painted (--mc-none), the typed name in the Paused word's font and size
   (Press Start 2P at titleSize, modal-crt.js data-title), centred. No underline and no selection block (Carl 2026-11-14): a blinking gold caret after the last
   letter says it is editable. No fill, no border, no shadow. */
.px-bare.lp-panel .lp-name.lb-name { --mc-none: 1; width: 100%; background: transparent; border: 0; padding: 8px 0 22px; margin-bottom: 10px; text-align: center; font-family: 'Press Start 2P', monospace; }
.px-bare.lp-panel .lp-name.lb-name:focus, .px-bare.lp-panel .lp-name.lb-name:focus-visible, .px-bare.lp-panel .lp-name.lb-name[aria-invalid="true"] { border: 0; }
/* the first key over a prefilled name selects it for a moment so the key replaces it: never a selection box, the gold caret is the only cue */
.px-bare.lp-panel .lp-name.lb-name::selection { background: transparent; color: inherit; }
.lp-panel .lp-why, .lp-panel .lp-big, .lp-panel .lp-note, .lp-panel .lp-hint, .lp-panel .lp-status, .lp-panel .lp-empty { margin: 0; text-align: center; }
.lp-panel .lp-clock { margin: 0; line-height: 0; }
.lb-panel.lp-panel .lp-head { flex-direction: column; align-items: center; gap: 10px; }   /* the countdown centred above the title (Carl 2026-11-14) */
.lp-digits { display: inline-flex; align-items: center; }
.px-bare .lp-play.lb-submit { min-width: min(100%, 420px); min-height: 96px; }
/* Play (Carl 2026-11-14): a gold pixel button, dark ink (launch-panel.js pal 'inkGold', #1a0f08 on #ffd23e is 13:1, on the hover #ffe54d 14.7:1), an amber pixel
   edge and the rounder two-step corners. modal-crt.js (data-gold) sweeps a pale glint (--mc-glint) across the face, twinkles sparkles at its corners and
   bounces it on hover; pressed it drops. Flat, no shadow row. Static gold with reduced motion. */
.px-bare .lp-play.lb-submit.lb-submit { --mc-edge: #b0721c; --mc-face: #ffd23e; --mc-shade: #ffd23e; --mc-glint: #fff7c4; --mc-step: 2; }
.px-bare .lp-play.lb-submit.lb-submit:hover, .px-bare .lp-play.lb-submit.lb-submit:focus-visible { --mc-edge: #c98a22; --mc-face: #ffe54d; --mc-shade: #ffe54d; }
.px-bare .lp-play.lb-submit.lb-submit:focus-visible { --mc-focus: #1a0f08; }
.px-bare .lp-play.lb-submit.lb-submit:active { --mc-face: #f2c030; --mc-shade: #f2c030; --mc-drop: 1; }
.px-bare .lp-play.lb-submit.lb-submit:disabled { --mc-edge: #b0721c; --mc-face: #ffd23e; --mc-shade: #ffd23e; --mc-dim: .4; }
/* Battle of the Bowel death card Done (death-done.js): the Play button on its own layer, centred where rhythm-ui.js puts it. The layer lets every other press through. */
.px-bare.bob-done { pointer-events: none; overflow: hidden; padding: 0; }
.px-bare.bob-done[hidden] { display: none; }
.px-bare.bob-done .bob-done-at { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.px-bare.bob-done .lp-play.lb-submit { min-width: min(calc(100vw - 32px), 420px); width: auto; }
/* Normal death card actions (death-actions.js, Carl 2026-11-14): buttons, not underlined words. The gold Start over is the Play button above, a step smaller;
   Continue (-X) and the board button are the same pixel shape outlined in gold on the dark face, gold letters. The layer lets every other press through. */
.px-bare.death-acts { pointer-events: none; overflow: hidden; padding: 0; }
.px-bare.death-acts[hidden] { display: none; }
.px-bare.death-acts .death-acts-at { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.px-bare.death-acts .death-acts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.px-bare.death-acts .death-acts-row[hidden], .px-bare.death-acts button[hidden] { display: none; }
.px-bare.death-acts button { pointer-events: auto; }
.px-bare.death-acts .lp-play.lb-submit { min-width: min(calc(100vw - 32px), 380px); min-height: 72px; }
.px-bare.death-acts .death-act-alt.lb-submit { --mc-edge: #ffd23e; --mc-face: #1c0b2e; --mc-shade: #1c0b2e; --mc-step: 2; min-width: 180px; min-height: 52px; }
.px-bare.death-acts .death-act-alt.lb-submit:hover, .px-bare.death-acts .death-act-alt.lb-submit:focus-visible { --mc-edge: #ffe54d; --mc-face: #2b1048; --mc-shade: #2b1048; }
.px-bare.death-acts .death-act-alt.lb-submit:focus-visible { --mc-focus: #ffe54d; }
.px-bare.death-acts .death-act-alt.lb-submit:active { --mc-drop: 1; }
@media (max-width: 600px), (max-height: 500px) { .px-bare.death-acts .lp-play.lb-submit { min-height: 60px; } .px-bare.death-acts .death-act-alt.lb-submit { min-width: 0; min-height: 44px; } }
/* no dotted rule under the gold title (Carl 2026-11-14): a little room below the title instead */
.lb-panel.lp-panel .lp-head { margin-bottom: 8px; }
/* one centred column at every size (Carl 2026-11-14): countdown, title, name, Play, then every board row; the whole column scrolls (wheel, touch, keys) */
.px-bare.lp-panel .lp-board { max-width: 900px; }
.px-bare.lp-panel .lp-list { position: relative; }
.lp-board .lp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
/* one line per row (rank, name, score): ten of them fit the TV screen; the organ reached and the bar stay on the full board */
.px-bare.lp-panel .lp-list .px-meta { display: none; }
.px-bare.lp-panel .lp-list .px-row { padding: 6px 16px 10px; align-items: center; }
.px-bare.lp-panel .lp-list .px-rank { min-height: 44px; padding: 4px 6px 6px; flex-direction: row; }
.px-bare.lp-panel .lp-list .px-rank .px-crown { display: none; }
/* no fill behind the top ten (Carl 2026-11-13): the rows and rank badges paint nothing (--mc-none, modal-crt.js), the outlined HUD lettering sits on the scene.
   Ranks 1 to 3: a pixel medal (gold, silver, bronze) in place of the number (its text stays for screen readers); 4 and on keep the number. */
.px-bare.lp-panel .lp-list .px-row.px-row, .px-bare.lp-panel .lp-list .px-rank.px-rank { --mc-none: 1; background: transparent; border: 0; clip-path: none; }
.px-bare.lp-panel .lp-list .px-row.px-row::before, .px-bare.lp-panel .lp-list .px-rank.px-rank::before { display: none; }
.px-bare.lp-panel .lp-list .lp-medal .px-rank-n { display: none; }
.px-bare.lp-panel .lp-list .lp-medal .px-medal { display: block; image-rendering: pixelated; }
/* a landscape phone: two columns, smaller boxes, the hint only when it reports a problem, so Play is on the first screen */
@media (max-height: 950px) { .lp-panel .lp-hint:not(.lp-err) { display: none; } }
/* Departure Mono (html[data-font="a"], HAG-5151) letters sit in an 11 px em box where Press Start 2P used 8, so every line of the left column is taller:
   on a laptop the column closes up, so Play again stays on the first screen after a run at 1440x900. (No "Your name" label any more, Carl 2026-11-14:
   the empty field's placeholder says it and the field keeps its aria-label.) */
@media (min-width: 601px) and (min-height: 501px) and (max-height: 950px) {
  html[data-font="a"] .lp-main { gap: 4px; }
  html[data-font="a"] .lp-main .pxw-vis { row-gap: 2px; }
  html[data-font="a"] .lp-field { gap: 4px; }
}
/* and the top ten rows (also taller under a) close up a little, so the 1920x1080 TV view shows all ten without scrolling */
@media (min-width: 601px) and (min-height: 501px) {
  html[data-font="a"] .px-bare.lp-panel .lp-list { gap: 0; }
  html[data-font="a"] .px-bare.lp-panel .lp-list .px-row { padding-top: 2px; padding-bottom: 4px; }
}   /* a laptop: the placeholder and Play's state say it, the hint shows on an error */
/* HAG-5193: a laptop (up to 1000 px tall: 1280x800, 1366x768, 1440x900, 1470x956, 1512x982) shows all ten rows unscrolled: the rank badge no longer sets a
   44 px row height (the medals are smaller here, launch-panel.js SHORT_H), the rows and the board title close up. The TV (1920x1080) keeps its layout. */
@media (min-width: 601px) and (min-height: 501px) and (max-height: 1000px) {
  .px-bare.lp-panel .lp-list .px-rank { min-height: 0; padding-top: 0; padding-bottom: 0; }
  .px-bare.lp-panel .lp-list .px-row { padding-top: 1px; padding-bottom: 3px; }
  .lp-board { gap: 6px; }
}
@media (max-height: 500px) {
  .px-bare.lp-panel .px-scroll { padding-top: 20px; }
  .lp-grid { gap: 28px; }
  .lp-main, .lp-board, .lp-field { gap: 8px; }
  .lp-main { padding-top: 0; }
  .lp-panel .lp-hint:not(.lp-err) { display: none; }
  .lp-field { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: 10px; }
  .lp-field > .lp-hint { grid-column: 1 / -1; }
  .px-bare.lp-panel .lp-list .px-row { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; padding-left: 8px; padding-right: 8px; }
  .px-bare.lp-panel .lp-list .px-rank { width: 44px; }
  .px-bare .lp-name.lb-name { min-height: 48px; font-size: 24px; padding: 6px 14px 18px; }
  .px-bare .lp-play.lb-submit { min-height: 64px; }
  .px-bare.lp-panel .px-col.lp-col { gap: 8px; }
  .lb-panel.lp-panel .lp-head { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .px-bare.lp-panel .lp-list .px-row { padding: 6px 10px 10px; row-gap: 2px; }
  .px-bare.lp-panel .lp-list .px-row > .px-rank { align-self: center; }
  .px-bare .lp-play.lb-submit { min-height: 80px; width: 100%; }
}
/* a count digit (3, 2, 1, Go) in the Paused word's big title style, dead centre in its half (or the screen), popping in on each step. Reduced motion: no pop */
.l2p-say-half.l2p-count { transform: translateY(-50%); animation: l2p-count-pop 0.32s steps(6, end) both; }
@keyframes l2p-count-pop { 0% { transform: translateY(-50%) scale(0.4); } 60% { transform: translateY(-50%) scale(1.15); } 100% { transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .l2p-say-half.l2p-count { animation: none; } }

/* Launch party how to play (HAG-5165, leaderboard/howto.js): a new name's short lines before the run. HUD lettering over the dimmed game on the plateless layer
   (modal-crt.js paints it bent into the CRT like the start modal, whose lettering is hidden meanwhile), centred, with the start modal's side gutters (clear of the
   bezel), never edge to edge. Any press on it skips it; it fades out by itself (howto.js steps data-mc-alpha; no fade with reduced motion). */
.px-bare.lp-howto { z-index: 9; justify-content: center; pointer-events: auto; padding-left: max(16px, 3.5vw); padding-right: max(16px, 3.5vw); cursor: pointer; }
.px-bare.lp-howto[hidden] { display: none; }
.lp-howto-col { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(100%, 1200px); }
.lp-howto-line, .lp-howto-go { margin: 0; text-align: center; max-width: 100%; line-height: 0; }
.lp-howto-go { margin-top: 18px; }
@media (max-height: 500px) { .lp-howto-col { gap: 8px; } .lp-howto-go { margin-top: 6px; } }
