/* Play and Quick play in the client's frame (layout A, Tyler 2026-10-28: "A is best"; the accepted mockups shots/a-play
   and a-quick). Owners: ui/front/modes.rs, matchmaking/quick.rs and setup.rs. Custom is custom.css's and the room
   room.css's, the sheets after this one. Tokens and the kit only. Each page is laid out at the 1920x1080 frame's page
   size, 1516x932 inside the page's padding; the compact layouts at the end of this file take over in a smaller page
   area. */
.fit-page { position: relative; width: 1516px; height: 932px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.page-title { margin: 0; font: 400 var(--t-xl-sm)/1.1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--you-light); white-space: nowrap; }
.page-head > .dim { font-size: var(--t-m); }
/* Upright on a phone the line under the title wraps under it, not into a column beside it. */
@media (max-width: 600px) and (orientation: portrait) { html.touch .page-head { flex-wrap: wrap; gap: 6px 14px; } html.touch .page-head > .dim { flex-basis: 100%; font-size: var(--t-s); } }

/* Play: the modes as tall cards, the first playable one in the feature frame. */
.play-page .mode-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 480px); justify-content: center; gap: 30px; margin-top: 28px; }
.mode-card { display: flex; flex-direction: column; height: 818px; min-width: 0; padding: 0; overflow: hidden; }
.mode-card.lead { box-shadow: 0 0 0 2px var(--you-soft), 0 0 40px var(--you-soft); }
.mode-art { position: relative; flex: none; height: 480px; overflow: hidden; border-bottom: 2px solid var(--trim); background: var(--bg-0) no-repeat; background-size: 1920px 1080px; image-rendering: pixelated; }
.mode-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, var(--scrim)); pointer-events: none; }
/* Anchored at the foot, so the champions keep their ground whatever the picture's height. */
.mode-art[data-art="quick"] { background-image: url('/c/0b0d40915017e79fabc63dae02826b34473d2a3bd0dbe2b584878ea4c11cea17.png'); background-position: left -920px bottom 0; }
.mode-art[data-art="custom"] { background-image: url('/c/5aa2f22d2986814d0d25fe080ac7652af54421d2cff61be99de4011f6ae72036.png'); background-position: left -40px bottom -60px; }
.mode-art[data-art="sandbox"] { background-image: url('/c/36df47e96c1ecad9f5f9744c26333f62cc384f9b702cf3afe076950a09200605.png'); background-position: left -708px bottom -180px; }
.mode-art > img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.mode-glow { position: absolute; left: 50%; bottom: 4px; width: 300px; height: 30px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--you-glow), transparent); }
.mode-figures { position: absolute; z-index: 1; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: flex-end; }
.mode-figures > .spr { margin: 0 -6px; }
.mode-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; min-height: 0; padding: 22px 26px 26px; }
.mode-body .kit-label { min-height: 1em; }
.mode-name { margin: 0; font: 400 var(--t-xl)/1.1 var(--font-head); letter-spacing: 3px; text-transform: uppercase; color: var(--you-light); }
.mode-line { margin: 0; font: 700 var(--t-m)/1.3 var(--font-body); }
.mode-facts { list-style: none; display: grid; gap: 8px; margin: 4px 0 0; padding: 0; color: var(--text-dim); }
.mode-facts li { display: flex; align-items: center; gap: 10px; }
.mode-facts li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--trim); }
/* One full-width action at each card's foot, under the facts; the lead card's is gold, the recommended next step. */
.mode-open { margin-top: auto; }
.mode-card .mode-open { align-self: stretch; min-height: 52px; padding: 8px 18px; }
.mode-card .btn.primary.mode-open { font-size: var(--t-l); }

/* Quick play (matchmaking/quick.rs, setup.rs): the three choices on the left, the party's seats on the right with the
   player's stage in the middle, Play under the stage, party chat at the bottom left. Every part has a fixed place and
   size, so no change of state moves anything (Tyler, 29 October 2026). */
.qp-setup { position: absolute; left: 0; top: 64px; width: 580px; height: 660px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px 12px; }
.qp-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qp-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: 22px; }
.qp-group-head > .kit-label { margin: 0; }
.qp-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: var(--t-xs); }
/* The roster's count is for a phone, where the roster scrolls in its own box (the phone rules show it). */
.qp-count { display: none; }
/* As many tiles of 80px or more a row as fit (six in the 580px setup), a two-word name on two lines in its row, so 22
   take four rows; should the roster outgrow the setup's height, its rows scroll in their own box and the lane and bots
   keep their places (Tyler, 18 November 2026: "figure out the grid"; five a row took five rows and pushed the bots'
   note out of the panel). */
.qp-group-champion { flex: 0 1 auto; min-height: 0; }
.qp-champions { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); grid-auto-rows: minmax(84px, auto); gap: 4px 6px; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.qp-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 4px 2px 0; color: var(--text-dim); background: none; border: 0; font: 700 var(--t-xs)/1.15 var(--font-body); text-align: center; cursor: pointer; }
.qp-tile .socket { width: 56px; height: 56px; }
.qp-tile .socket > img { width: 46px; height: 46px; image-rendering: auto; }
/* A name takes its own height and is clipped only across: hidden, a name could shrink below its own lines (a flex
   item whose overflow is hidden may), so the row never grew for it and its foot was cut, a two-line name's whole second
   line in a 76px row (Tyler, 21 November 2026: "Why are the two-line names being cut off in quick play?"). */
.qp-tile-name { flex: none; max-width: 100%; padding-bottom: 2px; overflow-x: clip; line-height: 1.05; }
.qp-tile[aria-pressed="true"] { color: var(--you-light); }
.qp-tile[aria-pressed="true"] .socket { box-shadow: 0 0 0 2px var(--you-light), 0 0 16px var(--you-glow); }
.qp-tile:is(:hover, .virtual-hover):not(:disabled, [aria-pressed="true"]) { color: var(--text); }
.qp-tile:is(:hover, .virtual-hover):not(:disabled, [aria-pressed="true"]) .socket { box-shadow: 0 0 0 2px var(--trim); }
.qp-tile:focus-visible { outline: 3px solid var(--you-light); outline-offset: 1px; }
.qp-tile:disabled { cursor: default; }
/* The mark of a champion good to start with: a small gold diamond, at the tile's corner and in the legend. */
.qp-pip { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--trim); transform: rotate(45deg); }
.qp-tile > .qp-pip { position: absolute; top: 6px; right: calc(50% - 34px); }
/* Who else holds a champion or lane: their name on a dark plate over the choice, kept in its place when empty. */
.qp-held { min-height: 0; color: var(--you-light); font: 700 var(--t-badge)/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qp-held:empty { visibility: hidden; }
.qp-tile > .qp-held { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); padding: 1px 5px; background: var(--scrim-strong); border: 1px solid var(--trim-dark); }
.qp-tile.held .socket { opacity: 0.7; }
.qp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.qp-seg > .btn.qp-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-width: 0; height: 48px; padding: 0 6px; font-size: var(--t-m); }
.qp-lanes > .btn.qp-choice { height: 56px; }
.qp-choice > b { font-weight: 700; }
/* Jungle's mark (setup.rs, scorecard Q2): harder for a first match. */
.qp-choice > .qp-harder { font: 700 var(--t-badge)/1.2 var(--font-body); color: var(--text-dim); }
/* A member reads the leader's tier: the row is disabled, and the chosen one still wears the lit rim. */
:where(.client-shell) .qp-seg > .btn.qp-choice[aria-pressed="true"]:disabled { border-image-source: url('/c/237b4ddb8b6a22cd95523b9185aecfac1bebc5a8cba46a3a7428d6a69a3fe737.png'); color: var(--you-light); }
.qp-tier-line { margin: 0; min-height: 22px; color: var(--text); font-size: var(--t-s); line-height: 22px; }
.qp-note { margin: 0; min-height: 20px; color: var(--you-light); font-size: var(--t-s); line-height: 20px; }

.qp-seats { position: absolute; left: 604px; right: 0; top: 64px; height: 660px; display: flex; justify-content: center; gap: 16px; }
.qp-loading { position: absolute; top: 64px; left: 604px; right: 0; text-align: center; }
.qp-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 200px; height: 660px; padding: 12px 10px 16px; }
.qp-seat > * { flex-shrink: 0; }
/* Over the figure: a look taller than the base (the Founding Knight's crown) reaches the heading, and the name stays
   readable in front of it. */
.qp-seat-head { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; min-width: 0; text-shadow: 0 1px 0 var(--shadow), 0 0 6px var(--shadow); }
.qp-seat-name { margin: 0; font: 700 var(--t-m)/1.2 var(--font-body); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-figure { position: relative; flex: 1 1 0; min-height: 0; width: 100%; }
.qp-stage-art { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.qp-stage-art > .idle-fit { position: relative; z-index: 1; }
.qp-glow, .room-glow { position: absolute; left: 50%; bottom: -6px; width: 170px; height: 22px; transform: translateX(-50%); background: radial-gradient(closest-side, var(--you-glow), transparent); }
.qp-seat-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; max-width: 100%; }
.qp-seat-pick > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-m); }
.qp-seat .kit-chip { padding: 4px 12px; font-size: var(--t-s); }
.qp-seat.you { width: 480px; }
.qp-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-width: 0; text-align: center; }
.qp-hero-name { max-width: 100%; color: var(--text); font: 400 var(--t-xl-sm)/1.15 var(--font-head); letter-spacing: 2px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-hero-kind { color: var(--trim); font: 700 var(--t-m)/1.25 var(--font-body); }
.qp-hero-summary { margin: 0; height: calc(2 * 1.35em); color: var(--text); font-size: var(--t-m); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: pretty; }
/* The lane and, for a signed-in player, the champion's look on one row at the foot of the stage: the look's label
   beside its menu, which opens upward over the summary so it never runs under Play (the Custom room's rule). */
.qp-hero-row { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-width: 0; margin-top: 4px; }
.qp-look { min-width: 0; }
.qp-look:not(:has(.look-picker)) { display: none; }
.qp-look .look-picker { position: relative; display: flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; }
.qp-look .look-picker > p { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-size: var(--t-xs); }
.qp-look .look-picker > p:empty { display: none; }
.qp-look .forge-select { flex-direction: row; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.qp-look .forge-select > .kit-label { color: var(--text-dim); white-space: nowrap; }
.qp-look .forge-select-trigger { box-sizing: border-box; min-width: 124px; max-width: 100%; height: 34px; padding: 2px 12px; gap: 12px; overflow: hidden; font-size: var(--t-s); white-space: nowrap; }
.qp-look .forge-select-menu { top: auto; bottom: calc(100% + 4px); }
/* An open seat keeps the seats' full height as its place and draws only a compact plate at the middle of it. */
.qp-seat.open { justify-content: center; padding: 0; }
.qp-open-plate {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 16px 12px; text-align: center;
  border: 4px solid transparent; border-image: url('/c/5d0485c11876432101bd750eccd04a4ffb2cd5498336e9ecf753d595ea5393aa.png') 5 / 10px stretch; image-rendering: pixelated;
  background: radial-gradient(ellipse 70% 46% at 50% 32%, var(--plate-sheen), transparent 70%) padding-box, var(--plate) padding-box; box-shadow: 0 8px 24px var(--shadow);
}
.qp-open-socket { width: 64px; height: 64px; font-size: var(--t-l); border-style: dashed; color: var(--text-faint); background: var(--bg-1); }
.qp-open-plate > .qp-seat-name { font-size: var(--t-m); }
.qp-open-line { font-size: var(--t-s); }
.qp-open-plate > .btn { max-width: 100%; min-height: 40px; }
.qp-seat.qp-seat-place { visibility: hidden; }
/* The others' seats wear plain steel; the player's stage wears the gold feature frame (kit.css `.ms.feature`). */
.qp-seat { background: var(--panel-steel) padding-box; box-shadow: 0 8px 24px var(--shadow); }
.qp-seat.open, .qp-seat.qp-seat-place { background: none; box-shadow: none; }
.qp-seat.ms:not(.you) { border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; }
.qp-seat:not(.you) .qp-seat-head > .kit-label { color: var(--text-dim); }
.qp-seat.you .qp-seat-head > .kit-label { color: var(--you-light); }
.qp-seat:not(.you) .qp-glow { background: radial-gradient(closest-side, var(--ally-glow), transparent); }
.qp-seat.you .qp-stage-art > .qp-glow { bottom: -12px; width: 300px; height: 40px; }

/* Under the stage, each line has its own fixed place: the platform's sentence, then Play (or the wait, or whom a member
   waits for) and the line under it, in a block of one height. */
.qp-action { position: absolute; left: calc(604px + (100% - 604px) / 2); top: 740px; width: 520px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qp-action p { margin: 0; }
.qp-problem { color: var(--you-light); font-size: var(--t-m); }
.qp-action > .qp-problem { min-height: 24px; line-height: 24px; }
.qp-now { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; height: 124px; }
.btn.qp-play { width: 380px; height: 80px; padding: 0; flex: none; }
.qp-under { display: flex; align-items: center; justify-content: center; min-height: 32px; font-size: var(--t-s); }
.qp-wait, .qp-follow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 380px; min-height: 80px; margin: 0; padding: 10px 16px; font-size: var(--t-m); }
.qp-wait > p { margin: 0; }
/* Under the stage the wait takes Play's own box: its line beside Cancel, so nothing below it moves. */
.qp-now > .qp-wait { flex-direction: row; justify-content: space-between; width: 100%; height: 80px; min-height: 0; padding: 8px 18px; text-align: left; }
.qp-now > .qp-wait > .btn { flex: none; }
.docked-chat { position: absolute; left: 8px; bottom: 0; width: 420px; height: 170px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; }

/* The loading screen's line-up over the whole window (screens.css `.showcase`, loading.rs). */
dialog.loading-lineup::backdrop { background: var(--bg-0); }

/* Compact: a page area smaller than 1516x932 (1366x768 has 1242x630) keeps the text at its size and fits the layout
   to the space instead of zooming the whole page down (the Ibara walk, 28 October 2026, read 0.675 at 1366x768). */
@container (max-width: 1515.98px) or (max-height: 931.98px) {
  .fit-page { width: calc(100cqw * var(--cq-fix, 1)); height: calc(100cqh * var(--cq-fix, 1)); }
  .page-title { font-size: var(--t-l); }

  .play-page { display: flex; flex-direction: column; }
  .play-page .mode-grid { flex: 1; min-height: 0; grid-template-rows: minmax(0, 818px); gap: 20px; margin-top: 16px; }
  .mode-card { height: auto; }
  .mode-art { height: clamp(160px, calc(calc(100cqh * var(--cq-fix, 1)) - 344px), 400px); }
  .mode-body { flex: 1 0 auto; gap: 10px; padding: 16px 20px 20px; }
  .mode-name { font-size: var(--t-xl-sm); }
  .mode-card .mode-open { min-height: 44px; }
  .mode-card .btn.primary.mode-open { font-size: var(--t-m); }

  /* Quick play: the choices beside the seats, Play under them; every part fits the height the window leaves. */
  /* The choices 560px wide: six champions a row ("Moonsmith", the longest word, needs a 77px tile), so 22 take four
     rows and fit the setup's height. At 480px, five a row took five rows, and the fifth was cut by the roster's box
     from 1600x700 to 2560x1080 (independent check, 21 November 2026). The page is never under 1516px wide here. */
  .quick-page { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px 20px; }
  .quick-page > .page-head { grid-column: 1 / -1; }
  .qp-setup { position: static; grid-column: 1; grid-row: 2 / span 2; width: auto; height: auto; min-height: 0; padding: 12px 14px; gap: 8px; overflow: auto; }
  /* Two lines of name under the 48px socket need 86px; the row grows for more (1920x950, a 1080p monitor's window). */
  .qp-champions { grid-auto-rows: minmax(86px, auto); }
  .qp-tile .socket { width: 48px; height: 48px; }
  .qp-tile .socket > img { width: 40px; height: 40px; }
  .qp-seats, .qp-loading { position: static; grid-column: 2; grid-row: 2; height: auto; min-height: 0; gap: 12px; }
  .qp-seat { flex: 0 1 200px; width: auto; min-width: 0; height: auto; padding: 10px; }
  .qp-seat.you { flex: 0 1 420px; }
  .qp-hero-name { font-size: var(--t-l); }
  .qp-action { position: relative; left: auto; top: auto; grid-column: 2; grid-row: 3; width: auto; transform: none; gap: 6px; }
  .qp-now { height: 108px; }
  .btn.qp-play { width: 100%; max-width: 380px; height: 64px; }
  .qp-wait, .qp-follow { width: 100%; max-width: 380px; min-height: 64px; }
  .docked-chat { display: none; }
  /* A member's seat beside the stage is a card of its own height in the middle of the row, not a column the row's
     height with the figure at its foot (browser walk of 652f6ac9d at 1366x768). */
  .qp-seat:not(.you, .open, .qp-seat-place) { align-self: center; }
  .qp-seat:not(.you, .open, .qp-seat-place) > .qp-figure { flex: none; height: clamp(120px, calc(calc(100cqh * var(--cq-fix, 1)) - 420px), 220px); }
}
/* 1366x768 draws this page at the 1920x1080 layout, scaled (client.css `--client-scale`), and there a party member's
   seat read as a tall narrow column with the figure at its foot (browser walk of 652f6ac9d). Below 1500 px wide each
   member's seat is a card of its own height in the middle of the row; the player's stage keeps the full height, and at
   1920x1080 nothing changes. */
@media (min-width: 1100px) and (max-width: 1499.98px) {
  .qp-seat:not(.you, .open, .qp-seat-place) { align-self: center; height: auto; }
  .qp-seat:not(.you, .open, .qp-seat-place) > .qp-figure { flex: none; height: 300px; }
}
/* Play's mode figures stand at 1x where the cards are too short for 2x. */
@container (max-height: 799.98px) {
  .mode-figures > .spr { zoom: 0.5; }
}

/* Small: below 1000x560 a page scrolls, and Play stays at the bottom of the window (room.css keeps Start match
   there). */
@container (max-width: 999.98px) or (max-height: 559.98px) {
  .fit-page { height: auto; min-height: calc(100cqh * var(--cq-fix, 1)); }
  .play-page .mode-grid { grid-auto-flow: row; grid-template-columns: minmax(0, 560px); grid-template-rows: none; }
  .mode-art { height: 240px; }

  /* Flex, not grid: a sticky grid item cannot leave its own row. The stage first, then the choices, Play kept in view. */
  .quick-page { display: flex; flex-direction: column; gap: 12px; }
  .qp-seats { order: 1; flex: none; flex-wrap: wrap; height: auto; gap: 10px; }
  .qp-seat { width: auto; flex: 1 1 0; min-width: 0; height: 300px; }
  .qp-seat.you { order: -1; flex: 1 1 100%; height: 360px; }
  .qp-seat.qp-seat-place { display: none; }
  .qp-setup { order: 2; overflow: visible; }
  .qp-action { order: 3; position: sticky; top: auto; bottom: 0; z-index: 2; padding: 8px; background: var(--panel-flat); }
  .qp-champions { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .docked-chat { order: 4; display: flex; position: static; align-self: stretch; width: auto; max-width: none; }
}
/* Short but wide (1024x600 leaves about 900x430): the choices in their own scrolling column on the left, the stage
   with Play under it on the right, and the party's other seats under Play, all in the window. Stacked, the choices sat
   under the stage and the pinned Play covered the Bots row (browser walk of 652f6ac9d). The stage lies on its side
   (the figure beside the name) to leave Play its height. Party chat is in the rail: overlays.css's `.social-chat`
   comes later, so the rule that hides it here names the page. */
@container (min-width: 820px) and ((max-width: 999.98px) or (max-height: 559.98px)) {
  .fit-page.quick-page { height: calc(100cqh * var(--cq-fix, 1)); min-height: 0; }
  .quick-page { display: grid; grid-template-columns: minmax(0, 450px) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 8px 14px; }
  .quick-page > .page-head { grid-column: 1 / -1; }
  .qp-setup { grid-column: 1; grid-row: 2 / -1; min-height: 0; overflow: auto; }
  /* The column scrolls, so the roster takes its full height: a roster scrolling inside it showed one row at 1000x600. */
  .qp-group-champion { flex: none; }
  .qp-champions { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); grid-auto-rows: minmax(86px, auto); overflow: visible; }
  .qp-tile-name { white-space: normal; text-overflow: clip; line-height: 1.05; }
  .qp-seats { display: contents; }
  .qp-loading { grid-column: 2 / -1; grid-row: 2; }
  .qp-seat.you { order: 0; grid-column: 2 / -1; grid-row: 2; display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: 'fig head' 'fig hero'; align-items: center; gap: 4px 12px; width: auto; height: auto; min-width: 0; min-height: 0; padding: 8px 14px; }
  .qp-seat.you > .qp-seat-head { grid-area: head; align-items: flex-start; align-self: end; }
  .qp-seat.you > .qp-figure { grid-area: fig; align-self: stretch; height: auto; min-height: 96px; }
  .qp-seat.you .qp-stage-art > .idle-fit { zoom: 0.5; }
  .qp-seat.you .qp-stage-art > .qp-glow { width: 120px; height: 18px; bottom: -4px; }
  .qp-seat.you > .qp-hero { grid-area: hero; flex-flow: row wrap; align-items: center; align-self: start; gap: 4px 10px; text-align: left; }
  .qp-seat.you .qp-hero-name { flex: 1 0 100%; font-size: var(--t-m); }
  .qp-seat.you .qp-seat-head { gap: 0; }
  .qp-seat.you .qp-hero-row { justify-content: flex-start; width: auto; margin-top: 0; gap: 10px; }
  .qp-seat.you .qp-look .forge-select > .kit-label { display: none; }
  .qp-seat.you .qp-hero-summary { display: none; }
  .qp-seat:not(.you) { grid-row: 4; width: auto; height: auto; min-width: 0; min-height: 0; }
  .qp-seat:not(.you, .open) { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: 'fig head' 'fig pick'; align-items: center;
    gap: 2px 8px; padding: 6px 10px; }
  .qp-seat:not(.you, .open) > .qp-seat-head { grid-area: head; align-items: flex-start; }
  .qp-seat:not(.you, .open) > .qp-figure { grid-area: fig; width: 52px; height: 64px; }
  .qp-seat:not(.you, .open) > .qp-seat-pick { grid-area: pick; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
  .qp-seat:not(.you, .open) .qp-stage-art > .idle-fit { zoom: 0.5; }
  .qp-seat.open .qp-open-plate { flex-direction: row; justify-content: center; padding: 6px 10px; }
  .qp-seat.open .qp-open-socket { width: 40px; height: 40px; }
  .qp-seat.open .qp-open-line { display: none; }
  .qp-action { order: 0; grid-column: 2 / -1; grid-row: 3; position: static; padding: 0; background: none; }
  .qp-now { height: auto; gap: 4px; }
  .btn.qp-play { height: 56px; }
  .qp-under { min-height: 24px; }
  html.touch .quick-page > .qp-action > .qp-problem, html.touch .qp-under { min-height: 20px; line-height: 20px; }
  .quick-page > .docked-chat { display: none; }
}
/* Quick play on a phone (Tyler, 2026-11-17: "a lot of the menus are kind of squished and they're not optimized for
   mobile"; tests/browser_phone_menus.cjs). The page is the window's height and only the champions scroll, in their own
   box: Lane and Bots, the two other choices, stay in view beside Play whatever the roster's scroll (phone council
   round 0, both judges: they sat under twenty champions in a scrolling panel, so Play could be pressed without seeing
   them). Each is one row, its name beside its buttons, and the bots' line under them. The stage's lane chip goes: the
   Lane buttons show the choice, and the chip looked like a button. The look picker keeps its name over it (it read
   "Base" with no label). Of the open seats one plate shows, with Invite friends (two said the same thing). On its side
   the menus are zoomed to 0.8 to 0.86 (kit/scale.rs), so a button that must be 44 px under the thumb is 44 px divided
   by that zoom (phone council round 1, Sol: Lane and Bots drew at 35 to 38 px). */
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .quick-page .qp-group:not(.qp-group-champion) { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 4px 8px; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) > .qp-group-head { display: contents; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) > .qp-group-head > .kit-label { grid-column: 1; grid-row: 1; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) > .qp-seg { grid-column: 2; grid-row: 1; gap: 6px; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) .qp-legend { grid-column: 1 / -1; grid-row: 3; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) .qp-legend:empty { display: none; }
  html.touch .quick-page .qp-tier-line { grid-column: 1 / -1; grid-row: 2; min-height: 20px; font-size: var(--t-xs); line-height: 20px; }
  /* Each word has 10 px of air at either side (phone council round 3, both judges: Nightmare touched its edges). */
  html.touch .quick-page .qp-seg > .btn.qp-choice { height: calc(44px / var(--client-scale, 1)); padding: 0 10px; font-size: var(--t-s); }
  /* Each button its word's width and an even share of the rest, so Nightmare, the longest, never runs out of room. */
  html.touch .quick-page .qp-seg { grid-auto-flow: row; grid-template-columns: none; grid-auto-columns: auto; grid-template-rows: auto; }
  html.touch .quick-page .qp-lanes { grid-template-columns: repeat(3, auto); }
  html.touch .quick-page .qp-tiers { grid-template-columns: repeat(4, auto); }
  /* Alone, the stage needs no "You" over the player's own name, which the top bar shows. */
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.you > .qp-seat-head { display: none; }
  html.touch .quick-page .qp-hero-lane, html.touch .quick-page .qp-hero-summary { display: none; }
  html.touch .quick-page .qp-seat.you .qp-look .forge-select { flex-direction: row; align-items: center; gap: 8px; }
  html.touch .quick-page .qp-seat.you .qp-look .forge-select > .kit-label { display: block; max-width: 6.5em; font-size: var(--t-xs); line-height: 1.15; white-space: normal; }
  html.touch .quick-page .qp-seats > .qp-seat.open ~ .qp-seat.open { display: none; }
  html.touch .quick-page .qp-seat.open .qp-open-socket { display: flex; width: 36px; height: 36px; font-size: var(--t-m); }
  html.touch .quick-page .qp-seat.open .qp-open-line, html.touch .quick-page .qp-open-plate:has(> .btn) > .qp-seat-name { display: none; }
  html.touch .quick-page .qp-seat.open .qp-open-plate { flex-direction: row; justify-content: center; gap: 10px; height: 100%; padding: 4px 10px; }
  html.touch .quick-page .qp-open-plate > .btn { min-height: calc(44px / var(--client-scale, 1)); }
  /* A member's seat is two lines, their name over their champion: the Lane buttons name whoever holds a lane. */
  html.touch .quick-page .qp-seat:not(.you, .open) > .qp-seat-head > .kit-label, html.touch .quick-page .qp-seat:not(.you, .open) .kit-chip { display: none; }
  /* The roster shows whole rows, every name on them clear, and a strip of the next row's portraits fading out under
     them, so it never ends on a row's edge and reads as more to scroll to (phone council round 1, both judges: the
     fade lay over the second row's names, and nothing said there were more). A thumb on a track beside the roster,
     outside the fade, runs down it as it scrolls. --qp-row is a row's height and --qp-peek the next row's strip; the
     roster's end has the strip's height of space, so its last row also stops clear of the fade. */
  html.touch .quick-page .qp-group-champion { position: relative; flex: none; min-height: 0; timeline-scope: --qp-roster; }
  html.touch .quick-page .qp-champions { --qp-row: 84px; --qp-peek: 28px; --qp-socket: 48px; box-sizing: border-box; flex: none; min-height: 0;
    height: calc(2 * (var(--qp-row) + 2px) + var(--qp-peek)); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity;
    scroll-timeline: --qp-roster block; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: var(--qp-row); gap: 2px;
    padding: 0 10px var(--qp-peek) 0; mask-image: linear-gradient(#000 calc(100% - var(--qp-peek)), rgb(0 0 0 / 12%)); }
  html.touch .quick-page .qp-tile { scroll-snap-align: start; padding-inline: 0; }
  html.touch .quick-page .qp-tile .socket { width: var(--qp-socket); height: var(--qp-socket); }
  html.touch .quick-page .qp-tile .socket > img { width: calc(var(--qp-socket) - 8px); height: calc(var(--qp-socket) - 8px); }
  html.touch .quick-page .qp-tile > .qp-pip { right: calc(50% - var(--qp-socket) / 2 - 6px); }
  html.touch .quick-page .qp-tile-name { white-space: normal; text-overflow: clip; line-height: 1; letter-spacing: -0.3px; overflow-wrap: break-word; }
  html.touch .quick-page .qp-group-champion::after { content: ''; position: absolute; top: var(--qp-track-top, 30px); right: var(--qp-track-right, 2px);
    bottom: var(--qp-track-bottom, 0px); width: 4px; pointer-events: none;
    background: linear-gradient(var(--trim), var(--trim)) 0 0 / 4px 38% no-repeat, linear-gradient(var(--steel-line), var(--steel-line)) 1px 0 / 2px 100% no-repeat;
    animation: qp-roster-track auto linear both; animation-timeline: --qp-roster; }
  html.touch .quick-page .qp-look .forge-select-menu { top: calc(100% + 4px); bottom: auto; }
  /* How many champions the roster holds, by its heading: a 4 px track alone did not say there were more (phone
     council round 2, Opus). */
  html.touch .quick-page .qp-group-champion > .qp-group-head { justify-content: flex-start; }
  html.touch .quick-page .qp-count { display: inline; margin-right: auto; color: var(--text-dim); font: 700 var(--t-xs)/1 var(--font-body); white-space: nowrap; }
  html.touch .quick-page .qp-group-champion .qp-legend { white-space: nowrap; }
  /* A phone 380 px wide or less has no room for the heading, the count and the legend on one line (round 3 code
     review): the count goes, and the strip of the next row and the track still say there are more. */
  @media (max-width: 380px) { html.touch .quick-page .qp-count { display: none; } }
  /* Under Play, the way back to a seat held elsewhere keeps no empty line: it is rare, and the line cost the roster. */
  html.touch .quick-page .qp-under:empty { min-height: 0; }
}
/* Where the browser runs it, the thumb follows the roster's scroll; elsewhere it stands at the top, still a track. */
@keyframes qp-roster-track { to { background-position: 0 100%, 1px 0; } }
/* Upright, top to bottom: the stage on its side (the figure beside the champion, its kind and the look), the party's
   other seats (one open plate when alone), the choices' panel and Play at the foot, under the thumb with Lane and Bots
   straight over it. The choices take their own height, two named rows of champions among them, and the stage takes
   what the window leaves, so a taller top bar costs the stage, not the roster. Party chat is in the rail. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .fit-page.quick-page { height: max(600px, calc(100cqh * var(--cq-fix, 1))); min-height: 0; }
  html.touch .quick-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto minmax(min-content, 1fr) auto; gap: 6px; }
  html.touch .quick-page > .page-head { grid-column: 1 / -1; grid-row: 1; }
  html.touch .quick-page > .qp-seats { display: contents; }
  html.touch .quick-page .qp-loading { grid-column: 1 / -1; grid-row: 2; }
  /* A failed save's line lies in the panel's foot, over its padding, so its place costs the roster nothing. */
  html.touch .quick-page > .qp-setup { grid-column: 1 / -1; grid-row: 4; position: relative; inset: auto; min-height: max-content; overflow: hidden; justify-content: flex-start;
    gap: 8px; padding: 8px 8px 22px; }
  html.touch .quick-page > .qp-setup > .qp-note { position: absolute; left: 12px; right: 12px; bottom: 2px; }
  /* The mode's line under the title: the Bots row and its line say the bots, so the roster has the room. */
  html.touch .quick-page > .page-head > .dim { display: none; }
  /* "Moonsmith", the longest one-word name, fits a fifth of the panel at 13 px (at 14 it broke as "Moonsmit h"). */
  html.touch .quick-page .qp-tile-name { font-size: var(--t-badge); line-height: 1.05; }
  /* On a phone too short for the page, the page scrolls and Play stays at the window's foot. */
  html.touch .quick-page > .qp-action { grid-column: 1 / -1; grid-row: 5; position: sticky; bottom: 0; z-index: 3; gap: 2px; padding: 0 0 2px; background: var(--bg-0); }
  html.touch .qp-now { height: auto; gap: 2px; }
  /* Home's and Play's cards draw the same Play: one height under the thumb upright. */
  html.touch .btn.qp-play { max-width: none; height: 56px; }
  html.touch .qp-wait, html.touch .qp-follow { max-width: none; min-height: 56px; }
  html.touch .qp-now > .qp-wait { height: 56px; }
  html.touch .quick-page > .qp-action > .qp-problem, html.touch .quick-page .qp-under { min-height: 20px; line-height: 20px; }
  /* The line saying why Play cannot start takes its place only while it has something to say; the stage gives it
     the room. */
  html.touch .quick-page :is(.qp-under, .qp-action > .qp-problem):empty { min-height: 0; }
  html.touch .quick-page > .docked-chat { display: none; }
  /* The stage is one compact row: the figure the row's height, the name over its kind of play, and the look at the
     right (phone council rounds 3 and 4, Opus: a 40 px figure in a 110 px card, a fifth of the screen). */
  html.touch .quick-page .qp-seat.you { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-rows: auto; grid-template-areas: 'fig head row' 'fig name row' 'fig kind row'; align-content: start;
    gap: 0 12px; width: auto; height: auto; min-width: 0; min-height: 0; padding: 4px 12px 4px 6px; }
  html.touch .quick-page .qp-seat.you > .qp-figure { grid-area: fig; align-self: stretch; height: auto; min-height: 0; }
  html.touch .quick-page .qp-seat.you .qp-stage-art > .qp-glow { bottom: -4px; width: 76px; height: 14px; }
  html.touch .quick-page .qp-seat.you > .qp-seat-head { grid-area: head; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; }
  html.touch .quick-page .qp-seat.you > .qp-hero { display: contents; text-align: left; }
  html.touch .quick-page .qp-seat.you .qp-hero-name { grid-area: name; font-size: var(--t-l); }
  html.touch .quick-page .qp-seat.you .qp-hero-kind { grid-area: kind; font-size: var(--t-s); }
  html.touch .quick-page .qp-seat.you .qp-hero-row { grid-area: row; align-self: center; justify-content: flex-end; gap: 10px; margin: 0; }
  /* The look's name is a caption over its menu: without it the menu read "Base ▾" and said nothing (phone council
     rounds 1 and 2, Opus). In the body face, as a line, so it stays clear of Invite friends beside it. */
  html.touch .quick-page .qp-seat.you .qp-look .forge-select { flex-direction: column; align-items: flex-start; gap: 2px; }
  html.touch .quick-page .qp-seat.you .qp-look .forge-select > .kit-label { display: block; max-width: none; color: var(--text-dim);
    font: 700 var(--t-xs)/1.2 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; }
  html.touch .quick-page .qp-seat.you .qp-look .forge-select-trigger { height: 44px; }
  /* The party's other seats: plates side by side under the stage; a member's is the figure beside the name, champion
     and lane. */
  html.touch .quick-page .qp-seat:not(.you) { grid-row: 3; width: auto; height: auto; min-width: 0; min-height: 0; }
  html.touch .quick-page .qp-seat.open .qp-open-plate { flex-direction: row; justify-content: center; gap: 8px; height: 100%; padding: 2px 8px; }
  html.touch .quick-page .qp-seat:not(.you, .open) { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: 'fig head' 'fig pick';
    align-items: center; gap: 2px 8px; padding: 6px 10px; }
  html.touch .quick-page .qp-seat:not(.you, .open) > .qp-seat-head { grid-area: head; align-items: flex-start; }
  html.touch .quick-page .qp-seat:not(.you, .open) > .qp-figure { grid-area: fig; flex: none; width: 44px; height: 60px; }
  html.touch .quick-page .qp-seat:not(.you, .open) > .qp-seat-pick { grid-area: pick; flex-flow: row wrap; align-items: center; justify-content: flex-start; gap: 4px 8px; }
  html.touch .quick-page .qp-seat:not(.you, .open) .qp-stage-art > .idle-fit { zoom: 0.5; }
  /* The one open plate takes the row alone. */
  html.touch .quick-page .qp-seats > .qp-seat.open:has(~ .qp-seat.open) { grid-column: 1 / -1; }
  /* Alone, Invite friends stands at the right of the title, as on its side, so the stage is one row and the champions
     have the room: a row of its own cost the roster its names, and beside the look it left the stage half empty. */
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seats > .qp-seat.open { grid-row: 1; grid-column: 2; align-self: center; justify-self: end;
    z-index: 2; width: auto; height: auto; margin: 0; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))):has(.qp-seat.open .btn) > .page-head { flex-wrap: nowrap; padding-right: 140px; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))):has(.qp-seat.open .btn) > .page-head > .page-title { font-size: var(--t-s); }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open .qp-open-plate > .btn { padding-inline: 10px; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open .qp-open-plate { padding: 0; border: 0; background: none; box-shadow: none; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open .qp-open-socket { display: none; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.you .qp-look .forge-select-trigger { width: 100px; min-width: 0; }
  /* In a party the members' plates take a row under the stage, so the stage is the champion's name and the look (the
     plates and the rail say who is who). */
  html.touch .quick-page:has(.qp-seat:not(.you, .open, .qp-seat-place)) .qp-seat.you :is(.qp-seat-head, .qp-hero-kind) { display: none; }
}
/* Upright the stage is a row of its own height, the figure beside the name, kind and look (phone council round 3,
   both judges: a 210 px card of empty navy round a small Knight while the champions scrolled two rows high), and the
   champions take the rest. Their frame is a size container: as many whole rows as its height holds, all twenty with no
   scroll or fade where four rows fit (412x915), else two or three rows and the next row's strip, the track beside. The
   gaps are tight so four rows fit under the frame's bars; alone, the empty row of party plates takes no gap. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .quick-page { row-gap: 4px; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) { grid-template-rows: auto auto minmax(min-content, 1fr) auto; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) > .qp-setup { grid-row: 3; }
  html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) > .qp-action { grid-row: 4; }
  html.touch .quick-page .qp-seat.you { min-height: max-content; padding-block: 6px; }
  html.touch .quick-page .qp-seat.you .qp-hero-name { line-height: 1.05; }
  html.touch .quick-page .qp-seat.you .qp-hero-row { margin-top: 0; }
  html.touch .quick-page .qp-seat.you .qp-look .forge-select > .kit-label { line-height: 1.1; }
  html.touch .quick-page > .qp-setup { gap: 6px; padding: 6px 8px 20px; }
  html.touch .quick-page .qp-group:not(.qp-group-champion) { row-gap: 2px; }
  html.touch .quick-page .qp-group-champion { flex: 1 1 0; gap: 6px; min-height: 212px; container: qp-up / size; }
  html.touch .quick-page .qp-champions { --qp-peek: 28px; --qp-row: min(96px, calc((calc(100cqh * var(--cq-fix, 1)) - 28px - var(--qp-peek)) / 2 - 2px));
    --qp-socket: clamp(44px, calc(var(--qp-row) - 31px), 64px); height: calc(2 * (var(--qp-row) + 2px) + var(--qp-peek)); }
  html.touch .quick-page .qp-tile { gap: 3px; padding-top: 2px; }
  html.touch .quick-page .qp-tile-name { line-height: 1; }
  /* The four tiers in one row with air at 14 px; under 380 wide they stand two by two, as on its side, and the
     kind of play and the bots' line give the extra row its height. */
  html.touch .quick-page .qp-seg > .btn.qp-choice { font-size: var(--t-xs); }
  @media (max-width: 380px) {
    html.touch .quick-page .qp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
    html.touch .quick-page :is(.qp-seat.you .qp-hero-kind, .qp-tier-line) { display: none; }
    html.touch .quick-page .qp-champions { --qp-peek: 20px; }
    /* The look's menu and Invite friends side by side in the narrower stage. */
    html.touch .quick-page .qp-seat.you { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: 'fig name row'; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.you .qp-look .forge-select-trigger { width: 92px; }
    /* The title row holds Modes, the title and Invite friends in 336 px: each a little tighter. */
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))):has(.qp-seat.open .btn) > .page-head { gap: 8px; padding-right: 118px; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))):has(.qp-seat.open .btn) > .page-head > .btn { padding-inline: 10px; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))):has(.qp-seat.open .btn) > .page-head > .page-title { letter-spacing: 1px; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open .qp-open-plate > .btn { padding-inline: 8px; font-size: var(--t-xs); }
  }
  @container qp-up (min-height: 292px) {
    html.touch .quick-page .qp-champions { --qp-row: min(96px, calc((calc(100cqh * var(--cq-fix, 1)) - 28px - var(--qp-peek)) / 3 - 2px));
      height: calc(3 * (var(--qp-row) + 2px) + var(--qp-peek)); }
  }
  @container qp-up (min-height: 338px) {
    html.touch .quick-page .qp-champions { --qp-peek: 0px; --qp-row: min(96px, calc((calc(100cqh * var(--cq-fix, 1)) - 28px) / 4 - 2.5px));
      height: auto; padding-bottom: 0; scroll-snap-type: none; mask-image: none; }
    html.touch .quick-page .qp-group-champion::after { display: none; }
  }
}
/* A phone on its side (844x340 to 915x412 at the touch scale, kit/scale.rs `touch_client_scale`), in three columns:
   the champions down the left, the player's champion standing in the middle the page's whole height, and down the
   right the party's seats by the title, then one steel panel with Lane, Bots and, at its foot under the right thumb,
   Play (phone council round 1: the Knight stood small in a mostly empty card, and Play floated at mid-height; round 2,
   Sol: a narrow framed card beside a wide control area with a gap over Lane, so the stage is wider and unframed, a
   spotlight on the floor, and the choices share one panel, each name over its buttons). The panel the three choices
   shared upright stands aside (`display: contents`): the champions take its frame and the page draws the choices'
   panel (`::before`) under the rows Lane, Bots and Play take. A small phone's page, under 820 wide, narrows the
   columns below. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  @container (min-width: 560px) and ((max-width: 999.98px) or (max-height: 559.98px)) {
    html.touch .quick-page { grid-template-columns: minmax(0, 420px) minmax(180px, 1fr) minmax(0, 300px); grid-template-rows: auto auto auto minmax(0, 1fr) auto;
      gap: 8px 12px; }
    html.touch .quick-page::before { content: ''; grid-column: 3; grid-row: 2 / -1; border: 8px solid transparent; border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch;
      background: var(--panel-steel) padding-box; box-shadow: 0 8px 24px var(--shadow); image-rendering: pixelated; }
    html.touch .quick-page > .page-head { grid-column: 1 / 3; grid-row: 1; }
    html.touch .quick-page > .page-head > .btn { min-height: calc(44px / var(--client-scale, 1)); }
    html.touch .quick-page > .qp-setup { display: contents; }
    /* The champions' frame is a size container: its rows share its height, two or three whole rows and the next
       row's strip, the portraits as large as the rows allow. */
    html.touch .quick-page .qp-group-champion { grid-column: 1; grid-row: 2 / -1; container: qp-roster / size; gap: 6px; padding: 10px 12px 6px;
      border: 8px solid transparent; border-image: url('/c/7e3b3375da5f0c9761558b21d39d7874f8906318c7da420ce073476b3cac8fc5.png') 7 / 14px stretch; background: var(--panel-steel) padding-box; image-rendering: pixelated;
      --qp-track-top: 38px; --qp-track-right: 14px; --qp-track-bottom: 6px; }
    /* Lane and Bots inside the panel's rim (8 px border and 10 px in), each name over its buttons; Bots' note on a
       member's screen ("Ada chooses") at the right of its name. */
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) { grid-column: 3; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 18px; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-group-head > .kit-label { grid-column: 1; grid-row: 1; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) .qp-legend { grid-column: 1; grid-row: 1; justify-self: end; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-seg { grid-column: 1; grid-row: 2; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-tier-line { grid-column: 1; grid-row: 3; }
    html.touch .quick-page .qp-setup > .qp-group:has(> .qp-lanes) { grid-row: 2; margin-top: 16px; }
    html.touch .quick-page .qp-setup > .qp-group:has(> .qp-tiers) { grid-row: 3; margin-top: 6px; }
    html.touch .quick-page .qp-setup > .qp-note { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; text-align: right; }
    html.touch .quick-page .qp-loading { grid-column: 2 / -1; grid-row: 2; }
    /* The stage: no card, the champion's name and kind over the figure, which stands on a pool of light and fills
       the middle, and the look at its foot. */
    html.touch .quick-page .qp-seat.you { grid-column: 2; grid-row: 2 / -1; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
      width: auto; height: auto; min-width: 0; min-height: 0; padding: 6px 4px 0; text-align: center; border: 0; border-image: none; box-shadow: none;
      background: radial-gradient(ellipse 60% 34% at 50% 66%, rgb(52 72 128 / 42%), transparent 72%), radial-gradient(ellipse 70% 60% at 50% 45%, rgb(6 8 18 / 60%), transparent 75%); }
    html.touch .quick-page .qp-seat.you > .qp-seat-head { flex-direction: row; justify-content: center; align-items: baseline; align-self: stretch; gap: 6px; }
    html.touch .quick-page .qp-seat.you > .qp-hero { display: contents; text-align: center; }
    html.touch .quick-page .qp-seat.you .qp-hero-name { flex: none; font-size: var(--t-l); white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance;
      text-shadow: 0 2px 0 var(--shadow); }
    html.touch .quick-page .qp-seat.you .qp-hero-kind { font-size: var(--t-s); }
    html.touch .quick-page .qp-seat.you > .qp-figure { order: 1; flex: 1 1 0; width: 100%; height: auto; min-height: 0; margin-top: 4px; }
    html.touch .quick-page .qp-seat.you .qp-stage-art > .idle-fit { zoom: 0.5; }
    html.touch .quick-page .qp-seat.you .qp-stage-art > .qp-glow { bottom: -6px; width: 180px; height: 26px; }
    /* The look's name over its menu, the menu as wide as a button under the figure. */
    html.touch .quick-page .qp-seat.you .qp-hero-row { order: 2; justify-content: center; width: 100%; margin-top: 8px; }
    html.touch .quick-page .qp-seat.you .qp-look { width: min(100%, 200px); }
    html.touch .quick-page .qp-seat.you .qp-look .forge-select { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    html.touch .quick-page .qp-seat.you .qp-look .forge-select > .kit-label { max-width: none; text-align: left; }
    html.touch .quick-page .qp-seat.you .qp-look .forge-select-trigger { width: 100%; min-width: 0; height: calc(44px / var(--client-scale, 1)); }
    html.touch .quick-page .qp-seat.you .qp-look .forge-select-menu { top: auto; bottom: calc(100% + 4px); }
    html.touch .quick-page > .qp-action { order: 0; grid-column: 3; grid-row: 5; align-self: end; gap: 2px; margin: 0 18px 18px; }
    html.touch .quick-page .btn.qp-play { width: 100%; max-width: none; height: calc(48px / var(--client-scale, 1)); }
    html.touch .quick-page :is(.qp-wait, .qp-follow) { max-width: none; min-height: calc(48px / var(--client-scale, 1)); }
    /* The party's other seats share the title's row at the right: one open plate when alone, two halves when the
       party has a member. */
    html.touch .quick-page .qp-seat:not(.you) { grid-column: 3; grid-row: 1; align-self: center; width: calc(50% - 4px); height: auto; min-height: 0; padding: 0; }
    html.touch .quick-page .qp-seats > .qp-seat:not(.you):first-child { justify-self: start; }
    html.touch .quick-page .qp-seats > .qp-seat:not(.you):last-child { justify-self: end; }
    html.touch .quick-page .qp-seats > .qp-seat.open:has(~ .qp-seat.open) { width: 100%; }
    html.touch .quick-page .qp-seat.open .qp-open-plate { justify-content: flex-end; padding: 0; border: 0; background: none; box-shadow: none; }
    html.touch .quick-page .qp-seat:not(.you, .open) { display: flex; flex-direction: column; justify-content: center; gap: 0; padding: 4px 8px; }
    html.touch .quick-page .qp-seat:not(.you, .open) > .qp-figure { display: none; }
    html.touch .quick-page .qp-seat:not(.you, .open) > .qp-seat-head { flex-direction: row; gap: 6px; }
    html.touch .quick-page .qp-seat:not(.you, .open) > .qp-seat-pick { flex-direction: row; gap: 6px; }
    html.touch .quick-page .qp-seat:not(.you, .open) .kit-chip { padding: 0 6px; }
    /* Each choice's name beside its buttons and the four bot tiers two by two in a wider panel, so every word has
       air at the zoom (phone council round 3, both judges: Nightmare overran its button in one row of four). */
    html.touch .quick-page { grid-template-columns: minmax(0, 420px) minmax(150px, 1fr) minmax(0, 330px); }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) { grid-template-columns: 50px minmax(0, 1fr); gap: 4px 6px; margin-inline: 14px; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-seg { grid-column: 2; grid-row: 1; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) :is(.qp-tier-line, .qp-legend) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
    html.touch .quick-page .qp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
    /* Under Play the line saying why it cannot start takes its place only while it has something to say. */
    html.touch .quick-page :is(.qp-under, .qp-action > .qp-problem):empty { min-height: 0; }
    html.touch .quick-page .qp-seats:has(> .qp-seat:not(.you, .open, .qp-seat-place)) .qp-open-socket { display: none; }
    /* Alone, Invite friends stands by itself: the empty socket beside it read as a broken control (phone council
       round 2, Opus), as upright. */
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open .qp-open-socket { display: none; }
  }
  /* A small phone on its side (568x320, a page about 610 x 260): the same three columns, narrower. The champions two
     to a row, the stage a slim column with the champion's name, figure and look, and the panel the width its rows
     need, each choice's name beside its buttons, in the body's smaller size. Stacked, Play was pinned over the stage
     (phone council round 2). Below 820 the shared wide layout (the container rules near the top of this file) does
     not apply, so its frame is set here: the page the window's height, a grid, Play in its place. */
  @container (min-width: 560px) and (max-width: 819.98px) {
    html.touch .fit-page.quick-page { height: calc(100cqh * var(--cq-fix, 1)); min-height: 0; }
    html.touch .quick-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 98px) minmax(0, 310px); gap: 8px 10px; }
    html.touch .quick-page > .page-head > .dim, html.touch .quick-page .qp-seat.you :is(.qp-hero-kind, .qp-seat-head) { display: none; }
    html.touch .quick-page > .qp-seats { display: contents; }
    html.touch .quick-page > .docked-chat { display: none; }
    html.touch .quick-page > .qp-action { position: static; padding: 0; background: none; margin: 0 12px 12px; }
    html.touch .quick-page .qp-group-champion { padding: 8px 8px 4px; --qp-track-top: 34px; --qp-track-right: 10px; }
    html.touch .quick-page .qp-seat.you { padding-top: 4px; }
    html.touch .quick-page .qp-seat.you .qp-hero-name { font-size: var(--t-m); }
    html.touch .quick-page .qp-seat.you .qp-look .forge-select > .kit-label { font-size: var(--t-xs); white-space: normal; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) { grid-template-columns: 46px minmax(0, 1fr); gap: 2px 6px; margin: 0 10px; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-group-head > .kit-label { letter-spacing: 1px; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) > .qp-seg { grid-column: 2; grid-row: 1; gap: 4px; }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) :is(.qp-tier-line, .qp-legend) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
    html.touch .quick-page .qp-seg > .btn.qp-choice { padding: 0 10px; font-size: var(--t-xs); }
    /* The rows sit close, so the panel's Lane, Bots two by two and Play fit the 230 px under the title. The bots'
       line goes: two lines here, it pushed Play past the window's foot, and the lit tier says the choice. */
    html.touch .quick-page .qp-tier-line { display: none; }
    html.touch .quick-page { row-gap: 0; }
    html.touch .quick-page > .page-head { margin-bottom: 6px; }
    html.touch .quick-page .qp-setup > .qp-group:has(> .qp-lanes) { margin-top: 6px; }
    html.touch .quick-page .qp-setup > .qp-group:has(> .qp-tiers) { margin-top: 4px; }
    html.touch .quick-page .qp-tier-line { line-height: 17px; }
    html.touch .quick-page > .qp-action { margin: 2px 10px 6px; }
    html.touch .quick-page .btn.qp-play { height: calc(44px / var(--client-scale, 1)); }
    html.touch .quick-page .qp-now { height: auto; gap: 0; }
    html.touch .quick-page :is(.qp-under, .qp-action > .qp-problem):empty { min-height: 0; }
  }
  /* Inside the frame its own size is the nearest container's, so these rules query it by name. Three champions to a
     row, each name on one line at 13 px on the glass after the zoom and the portrait the rest of the row's height, so a
     row's name is never cut by the box's foot and the next row's strip shows only portraits (phone council round 4:
     "Storm Warden" lost its second line at 844x340, Opus; five to a row drew names at 11 px and portraits at 32 px,
     Sol). More rows scroll. */
  @container qp-roster (min-height: 0px) {
    html.touch .quick-page .qp-champions { --qp-peek: 18px; --qp-row: calc((calc(100cqh * var(--cq-fix, 1)) - 28px - var(--qp-peek)) / 2 - 2px);
      --qp-socket: clamp(40px, calc(var(--qp-row) - 26px), 80px); flex: 1 1 0; height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    html.touch .quick-page .qp-tile-name { font-size: calc(13px / var(--client-scale, 1)); line-height: 1.1; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  }
  /* A frame tall enough for three whole rows and the strip shows three. */
  @container qp-roster (min-height: 300px) {
    html.touch .quick-page .qp-champions { --qp-row: calc((calc(100cqh * var(--cq-fix, 1)) - 28px - var(--qp-peek)) / 3 - 2px); }
  }
  /* Under 360 wide three names at 13 px on the glass no longer fit ("Storm Warden" was cut from 667 to 800 wide, the
     round 5 code review): two to a row. The heading's word gives way, so the count and the legend fit (at 760 wide the
     legend ran into the stage's name). */
  @container qp-roster (max-width: 359.98px) {
    html.touch .quick-page .qp-champions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html.touch .quick-page .qp-group-champion > .qp-group-head > .kit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  }
  /* A frame under 240 wide (a small phone on its side) lists the champions one to a row, the portrait beside the name,
     three rows and the strip: two to a row broke the names at 13 px. The legend gives the count its place. */
  @container qp-roster (max-width: 239.98px) {
    html.touch .quick-page .qp-champions { --qp-peek: 12px; --qp-socket: 42px; --qp-row: calc((calc(100cqh * var(--cq-fix, 1)) - 28px - var(--qp-peek)) / 3 - 2px);
      grid-template-columns: minmax(0, 1fr); }
    html.touch .quick-page .qp-tile { flex-direction: row; justify-content: flex-start; gap: 6px; padding: 0 0 0 4px; text-align: left; }
    html.touch .quick-page .qp-tile-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; line-height: 1.05; }
    html.touch .quick-page .qp-tile > .qp-pip { top: calc(50% - var(--qp-socket) / 2 - 2px); right: auto; left: calc(var(--qp-socket) - 2px); }
    html.touch .quick-page .qp-tile > .qp-held { top: calc(50% - 10px); left: calc(4px + var(--qp-socket) / 2); }
    html.touch .quick-page .qp-group-champion .qp-legend { display: none; }
    html.touch .quick-page .qp-group-champion > .qp-group-head > .kit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  }
  /* Who else holds a champion or lane: 13 px drew at 10.4 px at the touch scale's 0.8. */
  html.touch .qp-held { font-size: var(--t-xs); }
}
/* An iPhone on its side with Safari's bars (844x340): the stage drops the kind of play and, in a party, its "You"
   line (the rail shows the party), so the figure keeps its height. */
@media (orientation: landscape) and (max-width: 1099.98px) and (max-height: 379.98px) {
  html.touch .quick-page .qp-seat.you :is(.qp-hero-kind, .qp-seat-head) { display: none; }
  /* There the choices' panel, each name beside its buttons and the bots two by two, takes the page's whole height:
     the title stands over the champions alone and Invite friends over the stage, so Lane is level with the title and
     Play stays whole at the foot (phone council round 3). In a party the members' plates keep the title's row at the
     right, and the rows sit closer. */
  @container (min-width: 820px) and ((max-width: 999.98px) or (max-height: 559.98px)) {
    html.touch .quick-page { grid-template-columns: minmax(0, 410px) minmax(160px, 1fr) minmax(0, 330px); }
    html.touch .quick-page .qp-setup > .qp-group:not(.qp-group-champion) { margin: 0 12px; }
    html.touch .quick-page .qp-setup > .qp-group:has(> .qp-lanes) { margin-top: 12px; }
    html.touch .quick-page > .qp-action { margin: 0 12px 12px; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place)))::before { grid-row: 1 / -1; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) > .page-head { grid-column: 1; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) > .page-head > .dim { display: none; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-seat.open { grid-column: 2; justify-self: center; width: auto; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-setup > .qp-group:has(> .qp-lanes) { grid-row: 1; align-self: start; }
    html.touch .quick-page:not(:has(.qp-seat:not(.you, .open, .qp-seat-place))) .qp-setup > .qp-group:has(> .qp-tiers) { grid-row: 2 / 4; align-self: start; }
    html.touch .quick-page:has(.qp-seat:not(.you, .open, .qp-seat-place)) { row-gap: 4px; }
  }
}
}
/* A challenge (?challenge=NAME): its intro and result over the world it is played in. The cards, like the clip screen
   below, take the menu client's scale (kit/scale.rs `client_scale`, client.css): the same apparent size on every
   monitor (11 November review: at 2560x1440 they stayed 1080p-sized), and 1 below 1100 wide, so a phone keeps its own
   rules. Inside, a viewport unit is a real-window unit zoomed again, so the cards' own are --vw and --vh. */
.challenge, .clip-screen { zoom: var(--client-scale, 1); --vw: calc(1vw / var(--client-scale, 1)); --vh: calc(1vh / var(--client-scale, 1)); }
/* While a card is up the feed says nothing the card does not ("Knight killed Rogue" on You won), and on a phone held
   upright it lay over the card's last button (round 2, 390x844). */
body:has(.challenge[role="dialog"]) #player-chat { visibility: hidden; }
/* Nor does a banner or an announcement show through or around a card (round 2: the top of "You slew a champion" stood
   above You won). They show again with the next try. The clip's capture frame has no card, so a clip keeps them. */
body:has(.challenge[role="dialog"]) :is(.notifications, .raid-countdown, .camp-warning, #toast) { visibility: hidden; }
/* Nothing on a challenge page runs past the window: on a phone held upright the combat panel is wider than the screen,
   and the page scrolled sideways (round 2, 390x844). */
body:has(.challenge, .challenge-objective) #hud { overflow: clip; }
.challenge { position: absolute; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; pointer-events: auto; background: rgb(6 8 18 / 0.45); }
/* The card never runs off a short screen (a phone on its side is 390px tall): it scrolls inside its own frame. */
.challenge-panel { width: min(520px, calc(100% - 2 * var(--s4))); max-height: calc(100% - 2 * var(--s3)); overflow-y: auto;
  padding-bottom: var(--s5); text-align: center; }
.challenge-panel p { margin: var(--s3) var(--s5); }
.challenge-goal { font-size: var(--t-m); color: var(--you-light); }
.challenge-main > .btn.primary { margin-top: var(--s3); min-width: 220px; }
/* Under Try again: what a win offers (its clip and link), then a quiet row with the daily result and a full match. */
.challenge-won { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2); margin: var(--s4) var(--s5) 0;
  padding-top: var(--s3); border-top: 1px solid var(--steel-line); }
.challenge-won .challenge-share { flex-direction: column; align-items: stretch; }
.challenge-won .challenge-share label { flex-direction: column; align-items: stretch; gap: var(--s1); color: var(--text-dim); font-size: var(--t-s); }
.challenge-won .challenge-share input { min-width: 0; width: 100%; }
.challenge-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); margin: var(--s4) var(--s5) 0; }
.challenge-actions .btn { min-height: 44px; text-decoration: none; }
/* A try in play: its goal and the seconds left, at the top right under the menu bar, clear of the fight. Not at the
   top centre: the camera keeps the player's champion in the middle, and in the top lane its own name sat under the
   strip (11 November review). The goal wraps rather than lose its end, and the seconds never wrap or shrink (round 2:
   at 844x390 it read "Take down a champion within 1…"). */
.challenge-objective { position: absolute; top: 64px; right: var(--s4); z-index: var(--z-hud);
  display: flex; align-items: baseline; gap: var(--s3); max-width: min(40%, calc(100% - 2 * var(--s4))); padding: var(--s2) var(--s4);
  background: var(--panel); border: 1px solid var(--trim-dark); box-shadow: 0 0 0 1px var(--steel-dark);
  pointer-events: none; }
.challenge-objective-goal { min-width: 0; overflow-wrap: anywhere; color: var(--you-light); font-size: var(--t-m); }
.challenge-objective-time { flex: none; white-space: nowrap; font: 700 var(--t-l) var(--font-body); font-variant-numeric: tabular-nums; color: var(--text); }
@media (max-height: 480px), (max-width: 480px) {
  .challenge-panel .panel-title { font-size: var(--t-m); padding: var(--s2) var(--s3); }
  .challenge-panel p { margin: var(--s2) var(--s3); font-size: var(--t-s); }
  .challenge-panel { padding-bottom: var(--s3); }
  .challenge-main > .btn.big { font-size: var(--t-l); padding: var(--s3) var(--s5); }
  .challenge-objective { top: 48px; padding: var(--s1) var(--s3); gap: var(--s2); }
  .challenge-objective-goal { font-size: var(--t-s); }
  .challenge-objective-time { font-size: var(--t-m); }
}
@media (max-width: 480px) {
  .challenge-objective { right: auto; left: 50%; transform: translateX(-50%); max-width: calc(100% - 2 * var(--s4));
    flex-direction: column; align-items: center; gap: 0; text-align: center; }
}
/* A short, wide screen (a phone on its side): a won card's clip, link and way on stand beside Try again, so every action
   is in view without scrolling (round 2: at 844x390 Copy link and Play a full match were below the fold). */
@media (max-height: 480px) and (min-width: 600px) {
  .challenge-panel:has(.challenge-won) { width: min(780px, calc(100% - 2 * var(--s4))); }
  .challenge-body:has(.challenge-won) { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s3);
    padding: 0 var(--s3); }
  .challenge-body:has(.challenge-won) .challenge-main > .btn.primary { min-width: 0; width: 100%; }
  .challenge-side .challenge-won { margin: 0; padding-top: 0; border-top: 0; gap: var(--s1); }
  .challenge-side .challenge-actions { margin: var(--s2) 0 0; }
  .challenge-side .challenge-actions .btn, .challenge-side .challenge-won .btn { min-height: 40px; }
  /* With Post on X a third button stacked under the link pushed Play a full match below the fold again: they share a row. */
  .challenge-side .challenge-share { flex-direction: row; flex-wrap: wrap; }
  .challenge-side .challenge-share label { flex: 1 1 100%; }
  .challenge-side .challenge-share .btn { flex: 1 1 0; padding-inline: var(--s3); }
}
/* Training sits above the modes, with its action at the far edge. */
.training-row { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 14px 20px; }
/* The champion Training is played as, in a portrait socket (training.rs). */
.training-row-mark.socket { width: 60px; height: 60px; }
.training-row-mark.socket > img { width: 48px; height: 48px; image-rendering: auto; }
.training-row-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.training-row-text b { font-size: var(--t-m); }
.training-start { flex: none; }
/* Upright on a phone Start training stands at the right of the name and the line runs under both (browser_phone_menus:
   the words stood one to a line beside it; phone council round 1: under them it took a third row, and Custom's action
   fell below the first screen). */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .training-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: 'mark name start' 'mark line line';
    align-items: center; gap: 2px 12px; padding: 10px 14px; }
  html.touch .training-row-mark.socket { grid-area: mark; align-self: start; width: 48px; height: 48px; }
  html.touch .training-row-mark.socket > img { width: 40px; height: 40px; }
  html.touch .training-row-text { display: contents; }
  html.touch .training-row-text > b { grid-area: name; }
  html.touch .training-row-text > .dim { grid-area: line; font-size: var(--t-s); line-height: 1.3; }
  html.touch .training-start { grid-area: start; min-height: 44px; }
}

/* Challenge-only touch controls leave the centre of the arena open in either orientation. */
.challenge-touch-controls { display: none; }
body.challenge-touch #game { touch-action: none; }
body.challenge-touch #player-panel, body.challenge-touch .minimap-frame,
body.challenge-touch .mystats, body.challenge-touch .statspanel,
body.challenge-touch .capture-resume, body.challenge-touch #player-chat,
body.challenge-touch .match-performance { display: none; }
body.challenge-touch .challenge-touch-controls {
  position: absolute; z-index: var(--z-overlay); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom)); display: grid;
  grid-template-columns: repeat(3, minmax(48px, 1fr)); gap: 8px; pointer-events: auto;
}
/* The kit's steel and trim, as the HUD's ability sockets (tokens.css), not raw colours. */
body.challenge-touch .challenge-touch-controls button {
  min-width: 48px; min-height: 48px; color: var(--text); background: var(--steel-flat);
  border: 2px solid var(--trim); border-radius: 50%; font: 700 var(--t-s) var(--font-body);
  box-shadow: 0 0 0 1px var(--steel-dark); touch-action: manipulation;
}
body.challenge-touch .challenge-touch-controls button:active { background: var(--plate); border-color: var(--you-light); }
@media (orientation: portrait) {
  body.challenge-touch .challenge-touch-controls { grid-template-columns: repeat(5, minmax(48px, 1fr)); }
}

/* The title page's own text (index.html's #about) lay over the R ability and the minimap on every challenge page (19
   November 2026), the page's loading slot being still in it. */
body:has(.challenge, .challenge-objective) #about { display: none; }

.team-ping-notice { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); padding: 8px 14px; background: #12242ee8; color: #f5df9a; border: 1px solid #f5df9a88; pointer-events: none; z-index: 20; }

/* Making a clip and the finished clip (player-clip.js): full-screen over the client, in its night cloth and kit. */
.clip-screen { position: fixed; inset: 0; z-index: 2147483646; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--s3); padding: var(--s4); overflow-y: auto; box-sizing: border-box; color: var(--text);
  background: radial-gradient(ellipse at 50% 35%, var(--bg-2), var(--bg-0) 70%); font: var(--t-m) var(--font-body); }
.clip-screen.clip-ready { z-index: 2147483645; justify-content: safe center; }
/* Making a clip is a card, not a cover: the results stay usable behind it (Leave match, Play again, the Discord link;
   12 November 2026, the cover hid them for minutes). It sits at the top, over the match's banner, whose outcome the
   player has already read: in the middle it hid the scoreboard's own row (the independent review of e755d098a), and
   lower down the guest's Keep what you earned strip and its Sign in. The renderer's iframe is its preview, unzoomed
   (its canvas must stay 720 wide); only the words take the client's scale. */
.clip-card { position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2147483646; box-sizing: border-box;
  display: flex; align-items: center; gap: 20px; width: min(560px, calc(100vw - 32px)); padding: 20px 24px; color: var(--text);
  background: var(--panel); border: 1px solid var(--steel-line); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); font: var(--t-m) var(--font-body); }
.clip-card-preview { position: relative; flex: none; width: 58px; height: 103px; overflow: hidden; background: var(--steel-dark); }
.clip-card-words { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); min-width: 0; flex: 1; zoom: var(--client-scale, 1); }
.clip-card-words .clip-title, .clip-card-words .clip-status { text-align: left; }
.clip-card-words .clip-progress { width: 100%; }
.clip-no-sound { color: var(--text); }
.clip-title { margin: 0; font: 700 var(--t-xl-sm)/1.15 var(--font-head); color: var(--you-light); text-align: center; }
.clip-status { min-height: 1.5em; margin: 0; color: var(--text-dim); text-align: center; }
.clip-progress { width: min(24rem, calc(80 * var(--vw, 1vw))); height: 12px; accent-color: var(--you); }
/* The clip is 9:16: as tall as the screen allows beside its caption and buttons, never wider than the screen. */
.clip-video { flex: 0 1 auto; min-height: 0; height: min(calc(56 * var(--vh, 1vh)), 640px); max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain;
  background: var(--steel-dark); border: 2px solid var(--steel-line); box-shadow: 0 0 0 2px var(--steel-dark); }
.clip-caption { width: min(28rem, 100%); min-height: 4.5em; box-sizing: border-box; resize: vertical; font: var(--t-s)/1.4 var(--font-body); }
.clip-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); max-width: 28rem; }
.clip-actions .btn { min-height: 44px; }
/* A phone on its side: the clip beside nothing else would be a sliver, so it shrinks and the panel scrolls. */
@media (max-height: 480px) {
  .clip-screen { justify-content: flex-start; gap: var(--s2); padding: var(--s2) var(--s4); }
  .clip-title { font-size: var(--t-l); }
  .clip-video { height: calc(62 * var(--vh, 1vh)); }
  .clip-caption { min-height: 3em; }
}
