/* The room in the client's frame (layout A, Tyler 2026-10-28: "A is best"; the accepted mockup shots/a-room). Owners:
   ui/front/room.rs, room_stage.rs, roster.rs, bot_seat.rs, bot_tiers.rs, lobby_start.rs and matchmaking/prepare.rs;
   Custom is custom.css's. Tokens and the kit only. It loads after play.css and custom.css (tools/dev/src/assemble.rs),
   building on play.css's .fit-page and .page-head, so its rules keep the place in the cascade they had in that sheet.
   Each page is laid out at the 1920x1080 frame's page size; the compact layouts at the end of this file take over in a
   smaller page area, under the same conditions as play.css's. */

/* The room's panel headings, its teams to "Match" and the countdown's teams: the pixel face a step up from the kit's
   label, 18px with 0.5px tracking where it is 16px with 1px (Opus, custom-lobby council round 5: its thin strokes made
   them the least legible text on screen), as Custom's are (custom.css). The rest of the client keeps the kit's.
   "BOTS" (54px) and Pick champions (146px) take 210px of the Bots column's 248px at 1920x1080. */
:is(.room-team-head, .room-chat, .room-bots-head, .room-bots-set, .room-match, .start-count-team) > .kit-label { font-size: var(--t-m); letter-spacing: 0.5px; }

/* The room: the header; blue seats, the champion, red seats; then the roster, room chat, and the bots with Start. The
   teams' 338px and the stage take the page's whole 1516px, so a player's larger portrait leaves its lines their 214px. */
.room-page { display: grid; grid-template-columns: 338px 800px 338px; grid-template-rows: 44px 490px 358px; gap: 20px; justify-content: center; }
.room-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-width: 0; }
.room-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-m); }
/* The room's identity on a plate of its own, its kind over its code in gold, beside Copy invite link (Opus, round 0:
   the code was small at the top right). */
.room-code { flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 14px; background: var(--plate); box-shadow: inset 0 0 0 2px var(--trim-dark), inset -4px 0 0 var(--trim); }
.room-code .kit-label { white-space: nowrap; }
.room-code b { font: 700 var(--t-l)/1 var(--font-body); color: var(--you-light); white-space: nowrap; }
.room-team { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.room-team-head { display: flex; align-items: center; gap: 10px; height: 36px; }
.room-team.red .room-team-head { flex-direction: row-reverse; }
.room-team-gap { flex: 1; }
.room-team.blue h3 { color: var(--ally); } .room-team.red h3 { color: var(--enemy); }
.room-yours { padding: 2px 6px; font-size: var(--t-xs); color: var(--ally); border-color: var(--ally); }
.room-team.red .room-yours { color: var(--enemy); border-color: var(--enemy); }
.room-team-rule { height: 2px; background: linear-gradient(90deg, var(--ally), transparent); }
.room-team.red .room-team-rule { background: linear-gradient(270deg, var(--enemy), transparent); }
/* Three seats fill the team's column, flush with the stage beside it: 36px of head, the rule and its gaps, then three
   137px seats 10px apart, 489px of the 490px row (Opus, custom-lobby council round 6: 100px of empty column under
   104px seats). A player's 90px portrait, 12px from it and 9px each side leave the lines 214px. */
.room-seat { position: relative; display: flex; align-items: center; gap: 12px; height: 137px; padding: 10px 9px; }
.room-team.red .room-seat { flex-direction: row-reverse; text-align: right; }
.room-seat.you { border-color: var(--you-deep); }
.room-seat .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: var(--t-s); }
.room-team.red .room-seat .who { align-items: flex-end; }
.room-seat .nameline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.room-team.red .room-seat .nameline { flex-direction: row-reverse; }
.room-seat .nameline b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-m); }
.room-tag { flex: none; padding: 2px 6px; font-size: var(--t-badge); }
.room-face { width: 90px; height: 90px; } .socket.empty.room-face { font-size: var(--t-xl-sm); }
/* A player's seat is a near-solid navy surface over the map, as a bot's is (its own rule below), so its champion, lane
   and state lines read as clearly as its name (Sol, custom-lobby council round 1: they sat on a see-through plate over
   map detail). Only the room's seats: the client's other plates keep kit.css's. */
.room-seat:not(.bot).kit-plate { background: var(--panel-flat); }
/* A seat's match banner lies under it: it shows beside the portrait and fades to the seat's navy under the lines; its
   title sits in the far corner. */
.room-seat { isolation: isolate; }
.room-seat .match-identity { position: absolute; inset: 0; z-index: -1; width: auto; height: auto; }
.room-seat .match-identity::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 14 30 / 55%), rgb(10 14 30 / 93%) 112px); }
.room-team.red .room-seat .match-identity::before { background: linear-gradient(270deg, rgb(10 14 30 / 55%), rgb(10 14 30 / 93%) 112px); }
.room-seat .match-identity-title { position: absolute; top: 4px; right: 6px; }
.room-team.red .room-seat .match-identity-title { right: auto; left: 6px; }
/* A player's state, a pill in the seat's team colour a size over its other lines (Sol, custom-lobby council round 2:
   readiness was a small line under the frames): Locked in filled, with the pixel check; Choosing the same pill tinted,
   with three pixel dots taking turns, so the two differ by fill and neither has a control's frame (Opus, round 2: an
   open square read as a checkbox to tick); Not locked in, once a champion is picked, tinted without the dots (Opus,
   round 6); Reconnecting dim. The host's framed Remove ends the line: at 1920x1080 Not locked in and Remove take 208px
   of the seat's 214px; should they not fit, Remove goes under the pill, in the seat's height. The compact rules set
   Remove beside the name. */
.room-team.blue { --seat-team: var(--ally); } .room-team.red { --seat-team: var(--enemy); }
.room-seat-state { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.room-team.red .room-seat-state { flex-direction: row-reverse; }
.room-ready { display: inline-flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; font-weight: 700; font-size: var(--t-name); line-height: 1; color: var(--text-dim); }
.room-ready:not([data-state="away"]) { padding: 5px 10px; }
.room-ready:is([data-state="choosing"], [data-state="picked"]) { color: color-mix(in srgb, var(--seat-team) 40%, var(--text)); background: color-mix(in srgb, var(--seat-team) 24%, transparent); }
.room-ready[data-state="choosing"]::before { --dot-dim: color-mix(in srgb, currentColor 40%, transparent); content: ''; flex: none; width: 4px; height: 4px; margin-right: 12px; background: currentColor; box-shadow: 6px 0 currentColor, 12px 0 currentColor; animation: room-wait 1.2s steps(1) infinite; }
@keyframes room-wait {
  0% { background: currentColor; box-shadow: 6px 0 var(--dot-dim), 12px 0 var(--dot-dim); }
  33% { background: var(--dot-dim); box-shadow: 6px 0 currentColor, 12px 0 var(--dot-dim); }
  67% { background: var(--dot-dim); box-shadow: 6px 0 var(--dot-dim), 12px 0 currentColor; }
}
@media (prefers-reduced-motion: reduce) { .room-ready[data-state="choosing"]::before { animation: none; } }
.room-ready[data-state="locked"] { color: var(--bg-0); background: var(--seat-team, var(--you)); }
/* A locked-in seat says so at a glance, not only in its pill (Opus, custom-lobby council round 5: a 14px chip, easy to
   miss): a solid 6px edge of its team's colour over its outer border, and its portrait ringed in that colour, Random's
   dashed "?" made solid; a choosing seat keeps its plain frame. Only players' seats carry a state (room.rs
   `player_seat`), so Quick play's room never singles out its bots. The Remove question covers the edge while it asks. */
.room-seat[data-state="locked"]::after { content: ''; position: absolute; z-index: 1; top: -2px; bottom: -2px; left: -2px; width: 6px; background: var(--seat-team); pointer-events: none; }
.room-team.red .room-seat[data-state="locked"]::after { left: auto; right: -2px; }
.room-seat[data-state="locked"] > .socket { box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 5px var(--seat-team); }
.room-seat[data-state="locked"] > .socket.empty { border: 2px solid var(--seat-team); }
/* Remove wears the small steel button's frame, so it reads as a control beside the coloured pill, not a dim chip (Opus,
   custom-lobby council round 3: easy to miss): 29px tall at 1920x1080 in the seat's 36px state line. */
.btn.small.room-remove { margin-left: auto; padding: 3px 9px; font-size: var(--t-xs); }
.room-team.red .btn.small.room-remove { margin-left: 0; margin-right: auto; }
/* Remove asks first, over the seat: the question on top and its answers under it, Keep where Remove was, so a double
   click keeps the player (Opus, custom-lobby council round 2: one click removed them). */
.room-remove-ask { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 10px 12px; text-align: left; background: rgb(10 14 30 / 96%); box-shadow: inset 0 0 0 2px var(--enemy); }
.room-team.red .room-remove-ask { text-align: right; }
.room-remove-ask > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-m); color: var(--text); }
.room-remove-choices { display: flex; justify-content: flex-end; gap: 8px; }
.room-team.red .room-remove-choices { flex-direction: row-reverse; }
.room-remove-choices .kit-chip { padding: 6px 14px; color: var(--text); }
.room-remove-choices .room-remove-yes { background: rgb(232 68 58 / 28%); border-color: var(--enemy); }
.room-remove-choices .room-remove-yes:is(:hover, .virtual-hover) { background: rgb(232 68 58 / 45%); border-color: #ff8a7e; }
/* The champion and lane line, a size over the seat's text (Sol, round 2); the longest, "Storm Warden · Bottom lane",
   is 212px of 214px. */
.room-seat:not(.bot) .room-seat-detail { font-size: var(--t-name); line-height: 1.2; }
/* A pixel check in 2px squares, for a locked-in player, Locked in and the chosen lane: drawn, not a text symbol. */
.room-check, .room-ready[data-state="locked"]::before, .room-lanes .room-lane.on::before {
  content: ''; display: block; flex: none; width: 2px; height: 2px; margin: 0 12px 10px 0; background: none;
  box-shadow: 12px 0, 10px 2px, 12px 2px, 0 4px, 8px 4px, 10px 4px, 0 6px, 2px 6px, 6px 6px, 8px 6px, 2px 8px, 4px 8px, 6px 8px, 4px 10px;
}
/* A bot's seat (custom rooms; Quick play's are players') is quieter than a player's, so the players lead (Opus,
   custom-lobby council round 2: five plates of gold "?" outweighed them), by its plate and its socket, not by faint
   words: no sheen, the name dim, and an 80px socket on the roster's steel, a picked champion's 64px portrait at its own
   size in it, under a player's larger portrait (Opus, round 6: in the taller seats a 60px socket looked lost). A random
   bot's socket holds its team's crest on a low glow of that colour (below), so a new room's five random bots read as
   two teams, not five copies (Opus, custom-lobby council rounds 3 and 4). The seat lights in its team's colour, not the
   player's gold, while it is pointed at or has keyboard focus. The seat being edited wears its open editor's own frame,
   the steel hover ring (all steel: the steel-on ring is gold), with a glow of its team's colour inside it, its name
   white and its Editing tag in the team's colour, so the seat and its editor read as one thing and gold stays the
   player's own seat (Opus, round 3: two gold seats). The plate is near-solid navy and its edge the steel frame's own
   two tones, the lit steel line inside a dark outline, so the six seats read as six over the map's detail (Sol,
   custom-lobby council round 5: a 74% plate and a faint edge sank into the forest). */
.room-seat.bot { padding: 0; background: rgb(10 14 28 / 88%); border-color: var(--steel-line); box-shadow: 0 0 0 1px var(--steel-dark); }
.room-seat.bot .socket { width: 80px; height: 80px; border-image-source: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png'); }
.room-seat.bot .socket > img { width: 64px; height: 64px; }
.room-seat.bot .socket.unknown { font-size: var(--t-l); color: color-mix(in srgb, var(--seat-team) 55%, var(--text-faint)); text-shadow: 2px 2px 0 var(--bg-0); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--seat-team) 26%, var(--bg-2)), var(--bg-1) 74%) padding-box; }
/* A custom room's random bot wears the game's moon crest where its bare "?" was (bot_seat.rs BOT_CREST; Opus, rounds 3
   and 4: the "?" plates gave the teams' columns no character): drawn at 64px from its 96px art, filling the socket as
   a portrait does, its own light and shade in its team's colour, the mix the "?" had, so it is the team's emblem and
   stays quieter than a player's portrait. Quick play's seats never show it. */
.room-seat.bot .bot-crest > i { --crest-size: 64px; display: block; width: var(--crest-size); height: var(--crest-size); background: var(--crest) 0 0 / var(--crest-size) var(--crest-size) no-repeat, color-mix(in srgb, var(--seat-team) 55%, var(--text-faint)); background-blend-mode: luminosity; -webkit-mask: var(--crest) 0 0 / var(--crest-size) var(--crest-size) no-repeat; mask: var(--crest) 0 0 / var(--crest-size) var(--crest-size) no-repeat; image-rendering: pixelated; }
/* The socket, then the name, the line and Edit bot, 73px together beside the 80px socket and centred on it, so the
   seat's height reads as room round them rather than lines pulled apart. The socket's centre and the words' edge line
   up with a player's 90px portrait and lines in the seat above (9px in and a 12px gap there): 14px in and a 17px gap,
   so the column's faces and names each run straight down. The line keeps 16px, under Edit bot's 17px: its longest,
   "Storm Warden · Bottom lane", is 200px of the 207px left. */
.room-seat .seat-main { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 17px; padding: 10px 8px 10px 14px; color: inherit; text-align: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
.room-team.red .room-seat .seat-main { flex-direction: row-reverse; padding: 10px 14px 10px 8px; }
.room-seat.bot .who { gap: 4px; line-height: 1.2; }
.room-seat .seat-main:disabled { cursor: default; }
.room-seat .seat-main:not(:disabled):is(:hover, .virtual-hover) { background: color-mix(in srgb, var(--seat-team) 12%, transparent); }
.room-seat .seat-main:focus-visible { outline: 2px solid var(--text); outline-offset: -4px; }
.room-seat.bot.editing { border-image: url('/c/07193ecb182886b98126d5ebe6b4189811e17fbd0f8bc4cb2295069407ec45ca.png') 5 / 10px stretch; background: var(--panel-steel); box-shadow: inset 0 0 24px color-mix(in srgb, var(--seat-team) 42%, transparent); image-rendering: pixelated; }
.room-seat .seat-main b { font-size: var(--t-m); }
.room-seat.bot .seat-main b { color: var(--text-dim); } .room-seat.bot.editing .seat-main b { color: var(--text); }
.room-seat.bot .room-editing { color: color-mix(in srgb, var(--seat-team) 40%, var(--text)); background: color-mix(in srgb, var(--seat-team) 26%, transparent); border-color: var(--seat-team); }
.room-seat .seat-main .who > .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Edit bot is the seat's action, and reads as one before the pointer comes (Sol, custom-lobby council round 6: small
   and faint, it read as metadata): at a player's detail size, 17px, in bold, in the dim tier, not faint, 4px further
   down than the lines over it, after a pixel pencil in the seat's team colour; the words and the pencil turn white
   while the seat is pointed at or focused, the seat lit in its team's colour. */
.seat-edit { --pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M6 0h2v1H6zM5 1h1v1H5zM7 1h1v1H7zM4 2h3v1H4zM3 3h3v1H3zM2 4h3v1H2zM1 5h3v1H1zM1 6h2v1H1zM0 7h1v1H0z'/%3E%3C/svg%3E"); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--t-name); color: var(--text-dim); font-weight: 700; }
.seat-edit::before { content: ''; flex: none; width: 16px; height: 16px; background: color-mix(in srgb, var(--seat-team) 50%, var(--text)); -webkit-mask: var(--pencil) 0 0 / 16px 16px no-repeat; mask: var(--pencil) 0 0 / 16px 16px no-repeat; }
.room-seat .seat-main:is(:hover, .virtual-hover, :focus-visible) .seat-edit { color: var(--text); }
.room-seat .seat-main:is(:hover, .virtual-hover, :focus-visible) .seat-edit::before { background: currentColor; }
.qp-hidden { margin: 0; padding: 16px; }
/* A random champion's face: the socket's own frame round a pixel question mark, for the roster's Random, the bot
   editor's and a random bot's seat (Opus, custom-lobby council round 0: bare dashed "?" boxes). */
.socket.unknown { color: var(--trim); font: 400 var(--t-xl-sm)/1 var(--font-head); text-shadow: 2px 2px 0 var(--steel-dark); background: radial-gradient(circle at 50% 40%, var(--bg-3), var(--bg-1) 72%) padding-box; }
.socket.unknown.on { color: var(--you-light); }
/* The host's bot editor takes the roster's place under the teams, so it covers nothing (the Ibara walk: beside the seat
   it covered the champion's abilities). While open it is the room's active panel, the stage dimmed behind it (Sol,
   custom-lobby council round 2: editing had no one centre): the all-steel hover ring, glowing in the
   edited bot's team colour as its seat does, and its heading, "Edit Red bot 1", says the team's word in its colour,
   so it points across the room at the seat (Opus, round 3: the two sat far apart, linked only by gold). Then the
   bot's setup, Bot difficulty and Lane at 18px on one row, and under a steel rule, the Match group's groove over a lit
   line from rim to rim, the champion choice: Champion with the marks' key at its end as over the roster, over the
   roster's own tiles (Sol, custom-lobby council round 5: the setup and the champions ran together), 14px apart with
   the rule centred, 5px either side, where they were 10px with it 3px off each (Sol, round 6: a tight strip). In its
   328px at 1920x1080: the 33px head, 28px fields, the 14px round the rule, the 18px Champion row, and two rows of
   tiles, each with the roster's two lines for its name (at 1.05 lines here), whose last words end 226px down, take
   327px with the gaps; the empty second line of the last row's names lies in the foot, inside the rim. */
.bot-editor[data-team="blue"] { --seat-team: var(--ally); } .bot-editor[data-team="red"] { --seat-team: var(--enemy); }
.room-roster.bot-editor.ms { gap: 4px; padding: 6px 6px 8px; border-image: url('/c/07193ecb182886b98126d5ebe6b4189811e17fbd0f8bc4cb2295069407ec45ca.png') 5 / 10px stretch; box-shadow: 0 0 0 2px color-mix(in srgb, var(--seat-team) 22%, transparent), 0 0 22px color-mix(in srgb, var(--seat-team) 42%, transparent), inset 0 0 20px color-mix(in srgb, var(--seat-team) 20%, transparent); }
.bot-editor-team { color: var(--seat-team); }
/* Dimmed: the figure and the champion's details only. Plan items, Your lane and the look still work, so they keep their
   full contrast (Sol, custom-lobby council round 6: a dimmed control reads as disabled). */
.room-page:has(#bot-editor) :is(.room-figure > :not(.room-look), .room-title, .room-summary, .room-kit, .room-kit-text) { filter: brightness(0.7) saturate(0.7); }
.bot-editor .room-tiles { align-content: start; row-gap: 2px; }
/* Its two rows of tiles end at its foot (the 328px above), so a third cannot show its top there as the room's does,
   and a fade there would cover the second row's names: while the tiles can scroll, the Champion row over them ends in
   "More below" and a gold chevron, gone at the tiles' end (Tyler, 18 November 2026: "figure out the grid"; the
   independent re-check: the Death Knight was wholly hidden). Driven by the tiles' own scrolling, so where they do not
   scroll, or the browser has no scroll timelines, nothing shows and the thin scrollbar is the sign. Its empty alternative
   text keeps it out of the accessibility tree, which opacity does not (independent re-check: screen readers heard "More
   below" at every scroll position); the tiles' own group already names every champion. */
.bot-editor { timeline-scope: --bot-tiles; }
.bot-editor .room-tiles { scroll-timeline: --bot-tiles block; }
.bot-champion-row::after { content: 'More below' / ''; flex: none; margin-left: auto; padding-right: 20px; opacity: 0; color: var(--trim); font: 700 var(--t-s)/1 var(--font-body); white-space: nowrap;
  background: linear-gradient(90deg, var(--trim) 0 4px, transparent 4px 10px, var(--trim) 10px) right 2px top 3px / 14px 2px no-repeat,
    linear-gradient(90deg, transparent 2px, var(--trim) 2px 6px, transparent 6px 8px, var(--trim) 8px 12px, transparent 12px) right 2px top 5px / 14px 2px no-repeat,
    linear-gradient(90deg, transparent 4px, var(--trim) 4px 10px, transparent 10px) right 2px top 7px / 14px 2px no-repeat,
    linear-gradient(90deg, transparent 6px, var(--trim) 6px 8px, transparent 8px) right 2px top 9px / 14px 2px no-repeat; }
.bot-champion-row:has(> .room-marks)::after { margin-left: 0; }
@supports (animation-timeline: scroll()) {
  .bot-champion-row::after { animation: room-tiles-more linear both; animation-timeline: --bot-tiles; }
}
@keyframes room-tiles-more { 0%, 60% { opacity: 1; } 85%, 100% { opacity: 0; } }
.bot-editor .room-tile { line-height: 1.05; min-height: calc(79px + 2 * 1.05em); }
.bot-champion-row { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; height: 18px; margin-top: 10px; }
.bot-champion-row::before { content: ''; position: absolute; left: -4px; right: -4px; top: -9px; height: 2px; background: var(--steel-dark); box-shadow: 0 2px 0 var(--steel-line); }
/* The head (Sol, round 4: the task, team, bot, summary and a very small Done shared one crowded line): "Edit Red bot 1",
   one heading in Silkscreen's 24px, which its 3px grid draws evenly, a step over the room's panel labels so it leads
   the active panel, and Done, the kit's small button at 33px, beside it. No line under the heading says what the bot
   will play: the fields under it show it (Opus, round 6: "Random · Normal · Auto lane" repeated them). */
.bot-editor-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bot-editor-name { flex: 1; min-width: 0; margin: 0; overflow: hidden; font: 400 var(--t-l)/1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.btn.small.bot-editor-done { flex: none; min-width: 96px; padding: 3px 12px; line-height: 1.2; }
.bot-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; }
.bot-field { display: flex; align-items: center; gap: 10px; }
.bot-field-label { font-size: var(--t-m); }
.bot-field .room-tiers .kit-chip { padding: 3px 12px; font-size: var(--t-m); }

/* The champion: its idle on the left under "Preview: Ranger", its details on the right. The figure's column is 340px
   of the stage's 780px, so every champion stands 352px tall, the column's height under the preview, where 290px stood
   them 300px (Opus, custom-lobby council round 2: League's and Deadlock's champion commands the screen). The details
   keep 404px: every passive and ability text still fits its three lines (374px of text), every summary three. */
.room-stage { display: flex; min-width: 0; padding: 0; }
.room-figure { position: relative; isolation: isolate; flex: none; width: 340px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 26px; border-right: 2px solid var(--column-edge); background: linear-gradient(transparent, var(--plate)); }
/* Behind the figure, one soft step of the player's team colour, its edge dithered as Moonforge draws translucency in
   pixels (MOONFORGE.md): three concentric bands read as a diagram behind the sprite (Sol, custom-lobby council round
   5). Its edge is a narrow dither, so it reads as light round the figure, not a ring; its foot is behind the floor. */
.room-figure { --figure-tint: var(--ally); }
.room-figure[data-team="red"] { --figure-tint: var(--enemy); }
.room-figure::before, .room-figure::after { content: ''; position: absolute; z-index: -1; left: 6px; right: 6px; top: 36px; bottom: 44px; pointer-events: none; }
.room-figure::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--figure-tint) 10%, transparent) 0 80%, transparent 80%); }
.room-figure::after { background: repeating-conic-gradient(color-mix(in srgb, var(--figure-tint) 10%, transparent) 0 25%, transparent 0 50%) 0 0 / 4px 4px; mask: radial-gradient(closest-side, transparent 80%, #000 80% 87%, transparent 87%); }
/* Over the figure's sky, stacked so none covers another: "Preview: Ranger" with the player's own pick under it, who has
   that champion with the roster tile's mark in their team's colour (a lock for a player, a ring for a bot seat: its art
   is the roster's), and the notice after a pick. */
.room-figure-head { position: absolute; z-index: 1; top: 14px; left: 12px; right: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.room-preview-pair { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 100%; text-align: center; }
/* A size over the room's labels, so the pair reads before the eye goes back to the roster (Sol, custom-lobby council
   round 3): "Preview: Storm Warden" is 284px of the 316px, and the pair ends at 55px, over the figure's 56px top. */
.room-preview { color: var(--you-light); font-size: var(--t-m); }
.room-own { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-m); line-height: 1.1; color: var(--text-dim); }
.room-held { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px; font: 700 var(--t-s)/1.25 var(--font-body); color: var(--text); text-align: center; text-wrap: balance; background: var(--scrim-strong); }
.room-held::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--mark-art) 0 0 / 18px 18px no-repeat; image-rendering: pixelated; }
/* The figure stands on the keep's stone floor, a ledge across the column, where a disc of team-coloured bands read as
   a diagram (Sol, custom-lobby council round 5). Pixel art at 2x in the palette's moonlit stone (MOONFORGE.md): its
   top 30px of paving, a thin far course over a taller near one, each stone lit along its top and moonlit at its upper
   left, a moon rim on the ledge's lip, and under the lip its face of masonry in shadow, darker in two steps to the
   bottom, where the look sits. The lip is 8px under the figure's feet, so the figure stands on the paving, not on the
   edge (the compact rules keep the 8px). */
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; pointer-events: none; image-rendering: pixelated; background:
  linear-gradient(#141a26 0 2px, transparent 2px 30px, #5a6e92 30px 32px, #141a26 32px 34px, rgb(6 8 18 / 40%) 34px 60px, rgb(6 8 18 / 62%) 60px),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h20v14H0z' fill='%23141a26'/%3E%3Cpath d='M1 1h9v4H1zM11 1h9v4h-9zM0 6h5v8H0zM6 6h9v8H6zM16 6h4v8h-4z' fill='%232a3346'/%3E%3Cpath d='M1 1h9v1H1zM11 1h9v1h-9zM0 6h5v1H0zM6 6h9v1H6zM16 6h4v1h-4z' fill='%23323c52'/%3E%3Cpath d='M1 1h3v1H1zM11 1h3v1h-3zM6 6h3v1H6zM16 6h3v1h-3z' fill='%233a465e'/%3E%3C/svg%3E") 50% 2px / 40px 28px repeat-x,
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h16v8H0z' fill='%23141a26'/%3E%3Cpath d='M1 1h7v3H1zM9 1h7v3H9zM0 5h4v3H0zM5 5h7v3H5zM13 5h3v3h-3z' fill='%232a3346'/%3E%3Cpath d='M1 1h7v1H1zM9 1h7v1H9zM0 5h4v1H0zM5 5h7v1H5zM13 5h3v1h-3z' fill='%23323c52'/%3E%3C/svg%3E") 50% 34px / 32px 16px; }
/* Where the figure stands, a pool of its team's light on the paving: one step with a dithered edge, centred on its feet,
   the only team colour on the floor (Sol, round 5: keep the tint subtle). play.css places the Quick play glows. */
.room-figure .room-glow { bottom: 54px; width: min(220px, 72%); height: 16px; image-rendering: pixelated; background: radial-gradient(closest-side, color-mix(in srgb, var(--figure-tint) 30%, transparent) 0 70%, transparent 70%); }
.room-figure .room-glow::after { content: ''; position: absolute; inset: -4px -12px; background: repeating-conic-gradient(color-mix(in srgb, var(--figure-tint) 30%, transparent) 0 25%, transparent 0 50%) 0 0 / 4px 4px; mask: radial-gradient(closest-side, transparent 64%, #000 64% 92%, transparent 92%); }
.room-notice { margin: 0; padding: 6px 8px; font-size: var(--t-xs); text-align: center; text-wrap: balance; background: var(--scrim-strong); }
.room-notice:empty { display: none; }
/* The idle stands on the figure's floor, laid over it, so a taller champion does not make the panel taller; it fills
   the column from under the preview's two lines to the floor (Tyler, 29 October 2026: "fill the vertical space"). */
.room-hero { position: absolute; top: 56px; left: 10px; right: 10px; bottom: 62px; display: flex; justify-content: center; }
/* Random's emblem where the idle would stand (room_stage.rs `figure`; Opus and Sol, custom-lobby council round 6: a
   faint "?" under an empty light read as unloaded): the moon crest's shield (launch-profile/crest-0.png) redrawn on a
   36x43 grid, a moonlit "?" where its moon was, its rim lit by the moon at the upper left. The rim and a breath of the
   field take the team's colour through a mask (--rim), as the bots' crests do. 6px a cell, 216x258, standing on the
   paving at the feet's line, the team's light centred on it. */
.room-random-crest { position: absolute; bottom: 62px; left: calc(50% - 108px); width: 216px; height: 258px; --rim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 43' shape-rendering='crispEdges'%3E%3Cpath d='M16 5h5v1h-5zM13 6h11v1h-11zM10 7h16v1h-16zM8 8h21v1h-21zM8 9h21v1h-21zM7 10h22v1h-22zM7 11h22v1h-22zM7 12h8v1h-8zM20 12h9v1h-9zM7 13h6v1h-6zM22 13h8v1h-8zM7 14h5v1h-5zM23 14h7v1h-7zM7 15h5v1h-5zM17 15h3v1h-3zM24 15h6v1h-6zM6 16h6v1h-6zM16 16h4v1h-4zM24 16h6v1h-6zM6 17h7v1h-7zM16 17h4v1h-4zM24 17h6v1h-6zM6 18h12v1h-12zM24 18h6v1h-6zM6 19h11v1h-11zM23 19h8v1h-8zM6 20h10v1h-10zM22 20h9v1h-9zM6 21h10v1h-10zM21 21h10v1h-10zM5 22h11v1h-11zM20 22h11v1h-11zM5 23h12v1h-12zM20 23h11v1h-11zM6 24h25v1h-25zM6 25h10v1h-10zM19 25h11v1h-11zM7 26h9v1h-9zM20 26h9v1h-9zM8 27h8v1h-8zM20 27h9v1h-9zM8 28h9v1h-9zM20 28h8v1h-8zM9 29h19v1h-19zM10 30h17v1h-17zM10 31h16v1h-16zM11 32h15v1h-15zM12 33h13v1h-13zM13 34h10v1h-10zM15 35h7v1h-7zM16 36h4v1h-4zM18 37h1v1h-1z' fill-opacity='0.14'/%3E%3Cpath d='M16 1h5v1h-5zM13 2h11v1h-11zM10 3h6v1h-6zM21 3h5v1h-5zM8 4h5v1h-5zM24 4h5v1h-5zM5 5h5v1h-5zM26 5h5v1h-5zM4 6h4v1h-4zM29 6h3v1h-3zM4 7h2v1h-2zM31 7h2v1h-2zM4 8h2v1h-2zM4 9h2v1h-2zM3 10h2v1h-2zM3 11h2v1h-2zM3 12h2v1h-2zM3 13h2v1h-2zM3 14h2v1h-2zM3 15h2v1h-2zM2 16h2v1h-2zM2 17h2v1h-2zM2 18h2v1h-2zM2 19h2v1h-2zM2 20h2v1h-2zM2 21h2v1h-2zM1 22h2v1h-2zM1 23h2v1h-2zM2 24h2v1h-2zM2 25h2v1h-2zM3 26h2v1h-2zM4 27h2v1h-2zM4 28h2v1h-2zM5 29h2v1h-2zM6 30h2v1h-2z' fill-opacity='0.55'/%3E%3Cpath d='M31 8h2v1h-2zM31 9h2v1h-2zM31 10h2v1h-2zM31 11h2v1h-2zM31 12h2v1h-2zM32 13h2v1h-2zM32 14h2v1h-2zM32 15h2v1h-2zM32 16h2v1h-2zM32 17h2v1h-2zM32 18h2v1h-2zM33 19h2v1h-2zM33 20h2v1h-2zM33 21h2v1h-2zM33 22h2v1h-2zM33 23h2v1h-2zM33 24h2v1h-2zM32 25h2v1h-2zM31 26h2v1h-2zM31 27h2v1h-2zM30 28h2v1h-2zM30 29h2v1h-2zM29 30h2v1h-2zM6 31h2v1h-2zM28 31h2v1h-2zM7 32h2v1h-2zM28 32h2v1h-2zM7 33h2v1h-2zM27 33h2v1h-2zM8 34h3v1h-3zM26 34h3v1h-3zM9 35h3v1h-3zM25 35h2v1h-2zM11 36h2v1h-2zM23 36h3v1h-3zM12 37h3v1h-3zM22 37h3v1h-3zM13 38h3v1h-3zM20 38h3v1h-3zM15 39h3v1h-3zM19 39h3v1h-3zM16 40h4v1h-4zM18 41h1v1h-1z' fill-opacity='0.8'/%3E%3C/svg%3E"); image-rendering: pixelated; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 43' shape-rendering='crispEdges'%3E%3Cpath d='M16 0h5v1h-5zM13 1h3v1h-3zM21 1h3v1h-3zM10 2h3v1h-3zM24 2h2v1h-2zM8 3h2v1h-2zM26 3h3v1h-3zM5 4h3v1h-3zM29 4h2v1h-2zM3 5h2v1h-2zM31 5h2v1h-2zM3 6h1v1h-1zM32 6h1v1h-1zM3 7h1v1h-1zM33 7h1v1h-1zM3 8h1v1h-1zM31 8h3v1h-3zM3 9h1v1h-1zM31 9h3v1h-3zM2 10h1v1h-1zM31 10h3v1h-3zM2 11h1v1h-1zM31 11h3v1h-3zM2 12h1v1h-1zM31 12h3v1h-3zM2 13h1v1h-1zM32 13h3v1h-3zM2 14h1v1h-1zM16 14h3v1h-3zM32 14h3v1h-3zM2 15h1v1h-1zM15 15h2v1h-2zM23 15h1v1h-1zM32 15h3v1h-3zM1 16h1v1h-1zM15 16h1v1h-1zM23 16h1v1h-1zM32 16h3v1h-3zM1 17h1v1h-1zM13 17h3v1h-3zM23 17h1v1h-1zM32 17h3v1h-3zM1 18h1v1h-1zM22 18h2v1h-2zM32 18h3v1h-3zM1 19h1v1h-1zM21 19h2v1h-2zM33 19h3v1h-3zM1 20h1v1h-1zM20 20h2v1h-2zM33 20h3v1h-3zM1 21h1v1h-1zM19 21h2v1h-2zM33 21h3v1h-3zM0 22h1v1h-1zM19 22h1v1h-1zM33 22h3v1h-3zM0 23h1v1h-1zM17 23h3v1h-3zM33 23h3v1h-3zM1 24h1v1h-1zM33 24h3v1h-3zM1 25h1v1h-1zM32 25h3v1h-3zM2 26h1v1h-1zM19 26h1v1h-1zM31 26h3v1h-3zM3 27h1v1h-1zM19 27h1v1h-1zM31 27h3v1h-3zM3 28h1v1h-1zM17 28h3v1h-3zM30 28h3v1h-3zM4 29h1v1h-1zM30 29h3v1h-3zM5 30h1v1h-1zM29 30h3v1h-3zM5 31h3v1h-3zM28 31h3v1h-3zM6 32h3v1h-3zM28 32h3v1h-3zM6 33h3v1h-3zM27 33h3v1h-3zM7 34h4v1h-4zM26 34h4v1h-4zM8 35h4v1h-4zM25 35h4v1h-4zM9 36h4v1h-4zM23 36h4v1h-4zM11 37h4v1h-4zM22 37h4v1h-4zM12 38h4v1h-4zM20 38h5v1h-5zM13 39h5v1h-5zM19 39h4v1h-4zM15 40h7v1h-7zM16 41h4v1h-4zM18 42h1v1h-1z' fill='%2305070e'/%3E%3Cpath d='M16 3h5v1h-5zM13 4h3v1h-3zM21 4h3v1h-3zM10 5h3v1h-3zM24 5h2v1h-2zM8 6h2v1h-2zM26 6h3v1h-3zM6 7h2v1h-2zM29 7h2v1h-2zM6 8h1v1h-1zM30 8h1v1h-1zM6 9h1v1h-1zM30 9h1v1h-1zM5 10h1v1h-1zM30 10h1v1h-1zM5 11h1v1h-1zM30 11h1v1h-1zM5 12h1v1h-1zM30 12h1v1h-1zM5 13h1v1h-1zM31 13h1v1h-1zM5 14h1v1h-1zM31 14h1v1h-1zM5 15h1v1h-1zM31 15h1v1h-1zM4 16h1v1h-1zM31 16h1v1h-1zM4 17h1v1h-1zM31 17h1v1h-1zM4 18h1v1h-1zM31 18h1v1h-1zM4 19h1v1h-1zM32 19h1v1h-1zM4 20h1v1h-1zM32 20h1v1h-1zM4 21h1v1h-1zM32 21h1v1h-1zM3 22h1v1h-1zM32 22h1v1h-1zM3 23h1v1h-1zM32 23h1v1h-1zM4 24h1v1h-1zM32 24h1v1h-1zM4 25h1v1h-1zM31 25h1v1h-1zM5 26h1v1h-1zM30 26h1v1h-1zM6 27h1v1h-1zM30 27h1v1h-1zM6 28h1v1h-1zM29 28h1v1h-1zM7 29h1v1h-1zM29 29h1v1h-1zM8 30h1v1h-1zM28 30h1v1h-1zM8 31h1v1h-1zM27 31h1v1h-1zM9 32h1v1h-1zM27 32h1v1h-1zM9 33h2v1h-2zM26 33h1v1h-1zM11 34h1v1h-1zM25 34h1v1h-1zM12 35h1v1h-1zM23 35h2v1h-2zM13 36h2v1h-2zM22 36h1v1h-1zM15 37h1v1h-1zM20 37h2v1h-2zM16 38h2v1h-2zM19 38h1v1h-1zM18 39h1v1h-1z' fill='%230a0e1e'/%3E%3Cpath d='M16 5h5v1h-5zM13 6h11v1h-11zM10 7h16v1h-16zM8 8h21v1h-21zM8 9h21v1h-21zM7 10h7v1h-7zM15 10h1v1h-1zM17 10h1v1h-1zM19 10h1v1h-1zM21 10h8v1h-8zM7 11h4v1h-4zM12 11h1v1h-1zM22 11h1v1h-1zM24 11h5v1h-5zM7 12h3v1h-3zM11 12h1v1h-1zM23 12h1v1h-1zM25 12h4v1h-4zM7 13h4v1h-4zM24 13h6v1h-6zM7 14h3v1h-3zM25 14h5v1h-5zM7 15h4v1h-4zM24 15h6v1h-6zM6 16h4v1h-4zM17 16h1v1h-1zM25 16h5v1h-5zM6 17h5v1h-5zM16 17h1v1h-1zM24 17h6v1h-6zM6 18h4v1h-4zM11 18h1v1h-1zM13 18h1v1h-1zM15 18h1v1h-1zM25 18h5v1h-5zM6 19h9v1h-9zM24 19h7v1h-7zM6 20h8v1h-8zM23 20h8v1h-8zM6 21h9v1h-9zM22 21h9v1h-9zM5 22h9v1h-9zM21 22h10v1h-10zM5 23h10v1h-10zM20 23h11v1h-11zM6 24h8v1h-8zM21 24h10v1h-10zM6 25h9v1h-9zM20 25h10v1h-10zM7 26h7v1h-7zM21 26h8v1h-8zM8 27h7v1h-7zM20 27h9v1h-9zM8 28h6v1h-6zM21 28h7v1h-7zM9 29h6v1h-6zM16 29h1v1h-1zM18 29h1v1h-1zM20 29h8v1h-8zM10 30h17v1h-17zM10 31h16v1h-16zM11 32h15v1h-15zM12 33h13v1h-13zM13 34h10v1h-10zM15 35h7v1h-7zM16 36h4v1h-4zM18 37h1v1h-1z' fill='%23121a33'/%3E%3Cpath d='M14 10h1v1h-1zM16 10h1v1h-1zM18 10h1v1h-1zM20 10h1v1h-1zM11 11h1v1h-1zM13 11h9v1h-9zM23 11h1v1h-1zM10 12h1v1h-1zM12 12h3v1h-3zM20 12h3v1h-3zM24 12h1v1h-1zM11 13h2v1h-2zM22 13h2v1h-2zM10 14h2v1h-2zM23 14h2v1h-2zM11 15h1v1h-1zM17 15h3v1h-3zM10 16h2v1h-2zM16 16h1v1h-1zM18 16h2v1h-2zM24 16h1v1h-1zM11 17h2v1h-2zM17 17h3v1h-3zM10 18h1v1h-1zM12 18h1v1h-1zM14 18h1v1h-1zM16 18h2v1h-2zM24 18h1v1h-1zM15 19h2v1h-2zM23 19h1v1h-1zM14 20h2v1h-2zM22 20h1v1h-1zM15 21h1v1h-1zM21 21h1v1h-1zM14 22h2v1h-2zM20 22h1v1h-1zM15 23h2v1h-2zM14 24h7v1h-7zM15 25h1v1h-1zM19 25h1v1h-1zM14 26h2v1h-2zM20 26h1v1h-1zM15 27h1v1h-1zM14 28h3v1h-3zM20 28h1v1h-1zM15 29h1v1h-1zM17 29h1v1h-1zM19 29h1v1h-1z' fill='%231a2446'/%3E%3Cpath d='M29 8h1v1h-1zM29 9h1v1h-1zM29 10h1v1h-1zM29 11h1v1h-1zM29 12h1v1h-1zM30 13h1v1h-1zM30 14h1v1h-1zM30 15h1v1h-1zM30 16h1v1h-1zM30 17h1v1h-1zM30 18h1v1h-1zM31 19h1v1h-1zM31 20h1v1h-1zM31 21h1v1h-1zM31 22h1v1h-1zM31 23h1v1h-1zM31 24h1v1h-1zM30 25h1v1h-1zM29 26h1v1h-1zM29 27h1v1h-1zM28 28h1v1h-1zM28 29h1v1h-1zM27 30h1v1h-1zM9 31h1v1h-1zM26 31h1v1h-1zM10 32h1v1h-1zM26 32h1v1h-1zM11 33h1v1h-1zM25 33h1v1h-1zM12 34h1v1h-1zM23 34h2v1h-2zM13 35h2v1h-2zM22 35h1v1h-1zM15 36h1v1h-1zM20 36h2v1h-2zM16 37h2v1h-2zM19 37h1v1h-1zM18 38h1v1h-1z' fill='%232b3555'/%3E%3Cpath d='M16 4h5v1h-5zM13 5h3v1h-3zM21 5h3v1h-3zM10 6h3v1h-3zM24 6h2v1h-2zM8 7h2v1h-2zM26 7h3v1h-3zM7 8h1v1h-1zM7 9h1v1h-1zM6 10h1v1h-1zM6 11h1v1h-1zM6 12h1v1h-1zM6 13h1v1h-1zM6 14h1v1h-1zM6 15h1v1h-1zM5 16h1v1h-1zM5 17h1v1h-1zM5 18h1v1h-1zM5 19h1v1h-1zM5 20h1v1h-1zM5 21h1v1h-1zM4 22h1v1h-1zM4 23h1v1h-1zM5 24h1v1h-1zM5 25h1v1h-1zM6 26h1v1h-1zM7 27h1v1h-1zM7 28h1v1h-1zM8 29h1v1h-1zM9 30h1v1h-1z' fill='%234462a0'/%3E%3Cpath d='M19 12h1v1h-1zM16 13h3v1h-3zM21 13h1v1h-1zM15 14h1v1h-1zM19 14h1v1h-1zM22 14h1v1h-1zM14 15h1v1h-1zM22 15h1v1h-1zM12 16h3v1h-3zM22 16h1v1h-1zM22 17h1v1h-1zM21 18h1v1h-1zM20 19h1v1h-1zM19 20h1v1h-1zM18 21h1v1h-1zM16 22h3v1h-3zM18 25h1v1h-1zM18 26h1v1h-1zM16 27h3v1h-3z' fill='%23a4b4d0'/%3E%3Cpath d='M16 1h5v1h-5zM13 2h11v1h-11zM10 3h6v1h-6zM21 3h5v1h-5zM8 4h5v1h-5zM24 4h5v1h-5zM5 5h5v1h-5zM26 5h5v1h-5zM4 6h4v1h-4zM29 6h3v1h-3zM4 7h2v1h-2zM31 7h2v1h-2zM4 8h2v1h-2zM4 9h2v1h-2zM3 10h2v1h-2zM3 11h2v1h-2zM3 12h2v1h-2zM3 13h2v1h-2zM3 14h2v1h-2zM3 15h2v1h-2zM2 16h2v1h-2zM2 17h2v1h-2zM2 18h2v1h-2zM2 19h2v1h-2zM2 20h2v1h-2zM2 21h2v1h-2zM1 22h2v1h-2zM1 23h2v1h-2zM2 24h2v1h-2zM2 25h2v1h-2zM3 26h2v1h-2zM4 27h2v1h-2zM4 28h2v1h-2zM5 29h2v1h-2zM6 30h2v1h-2z' fill='%23a4c4f0'/%3E%3Cpath d='M15 12h4v1h-4zM13 13h3v1h-3zM19 13h2v1h-2zM12 14h3v1h-3zM20 14h2v1h-2zM12 15h2v1h-2zM20 15h2v1h-2zM20 16h2v1h-2zM20 17h2v1h-2zM18 18h3v1h-3zM17 19h3v1h-3zM16 20h3v1h-3zM16 21h2v1h-2zM16 25h2v1h-2zM16 26h2v1h-2z' fill='%23e4eaf4'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.room-random-crest::after { content: ''; position: absolute; inset: 0; background: var(--figure-tint); -webkit-mask: var(--rim) 0 0 / 100% 100%; mask: var(--rim) 0 0 / 100% 100%; }
.room-figure:has(> .room-random-crest)::before, .room-figure:has(> .room-random-crest)::after { top: auto; bottom: 26px; height: 328px; }
/* The champion's look under its feet, inside the figure's column: its label beside the menu, which opens upward over
   the figure, so the floor is one row and the figure has the height (the compact rules stack them). */
.room-look { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: center; }
.room-look .look-picker { position: relative; display: flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; }
.room-look .look-picker > p { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; font-size: var(--t-xs); }
.room-look .look-picker > p:empty { display: none; }
/* Its label at the panel headings' 18px in the dim tier, where 14px in faint was the least legible word on the stage
   (Opus, custom-lobby council round 5): "CHAMPION LOOK" 173px and "Base" in its 124px menu take 305px of the 316px;
   a longer look's menu goes under the label rather than lose letters. */
.room-look .forge-select { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; min-width: 0; max-width: 100%; }
.room-look .forge-select > .kit-label { font-size: var(--t-m); letter-spacing: 0.5px; color: var(--text-dim); white-space: nowrap; }
.room-look .forge-select-trigger { box-sizing: border-box; min-width: 124px; max-width: 100%; height: 40px; padding: 4px 12px; gap: 12px; overflow: hidden; font-size: var(--t-s); white-space: nowrap; }
.room-look .forge-select-menu { top: auto; bottom: calc(100% + 4px); }
.room-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.room-info p { margin: 0; }
/* Every line of the champion's details keeps one height whichever champion is shown or previewed (Tyler, 2026-10-29:
   "I'm just like mousing over champions and all the windows are just bouncing around like crazy"). The class line over
   the name, and at their end the champion's difficulty, "Champion difficulty" over its diamonds, so it never reads as
   the bots' (Sol, custom-lobby council round 5). In one row with the class line it was 433px of the details' 402px;
   here the class line and the label take 378px ("Battlemage · Hybrid", the longest), the label at 17px a step over the
   small text (Sol, round 6), and the name keeps 336px beside the diamonds, over Storm Warden's 320px. The block is the
   old two lines' 63px. */
.room-title { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 20px auto; gap: 8px 12px; align-items: center; }
.room-class { grid-area: 1 / 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-title > .room-name { grid-area: 2 / 1 / 3 / 3; padding-right: 66px; }
.room-diff { grid-area: 1 / 2 / 3 / 3; align-self: stretch; display: grid; grid-template-rows: 20px minmax(0, 1fr); row-gap: 8px; justify-items: end; align-items: center; }
.room-diff-label { font-size: var(--t-name); line-height: 20px; color: var(--text-dim); white-space: nowrap; }
.room-diff-marks { display: flex; gap: 6px; padding-right: 3px; }
.room-diff i { width: 9px; height: 9px; border: 2px solid var(--you); transform: rotate(45deg); }
.room-diff i.on { background: var(--you); }
/* The name at 32px, still the column's heading, so the summary has three lines: at the details' 404px half the
   summaries need a third (five were already cut at the old 446px), and the figure, not the name, leads the stage. */
.room-name { margin: 0; overflow: hidden; font: 400 var(--t-xl-sm)/1.1 var(--font-head); letter-spacing: 3px; text-transform: uppercase; color: var(--you-light); text-overflow: ellipsis; white-space: nowrap; }
.room-summary { font-size: var(--t-s); line-height: 1.3; height: calc(3 * 1.3em); overflow: hidden; }
/* The five icons share the column's width, their names at the room's 18px control size on two lines at most (Sol,
   custom-lobby council round 2: captions in the dense small tier). A name's longest word sets its column's least width,
   so it wraps only between words and never runs into its neighbour: "Thunderstrike" is 109px, the widest kit 385px.
   The row reaches 10px into the padding either side, 424px, so the first and last icons line up with the text and
   Druid's "Moon Owl Form" keeps two lines. */
.room-kit { display: flex; gap: 2px; margin-inline: -10px; }
.room-ability { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: min-content; padding: 0; color: var(--text-dim); background: none; border: 0; font: var(--t-m)/1.1 var(--font-body); cursor: pointer; }
.room-ability .socket { width: 60px; height: 60px; }
.room-ability .socket > img { width: 48px; height: 48px; }
.room-ability[aria-pressed="true"] { color: var(--you-light); }
/* Each ability's key on a small steel plate over the icon's corner, in Silkscreen's 16px, the size its pixel grid draws
   evenly, so Q, W, E and R read at 1080p (Opus, custom-lobby council round 4: 13px letters too small to read). */
.room-key { position: absolute; z-index: 1; left: calc(50% - 34px); top: -4px; max-width: 64px; overflow: hidden; padding: 2px 4px; font: 400 var(--t-s)/1 var(--font-head); color: var(--you-light); white-space: nowrap; background: var(--bg-0); box-shadow: inset 0 0 0 2px var(--steel-line); }
/* Two lines kept for every name, each ending on the row's one baseline over the text box, so "Fireball" and "Frost
   Nova" end level and the box under them stays put (Sol, custom-lobby council round 3). */
.room-ability-name { display: grid; align-content: end; height: 2.2em; text-align: center; }
/* Random's row (room_stage.rs random_kit): the same sockets, a quiet "?" in each, nothing to press. */
.room-kit-random .room-ability { cursor: default; } .room-kit-random .socket.unknown { color: var(--text-faint); }
/* Whole lines only: every line of the text is 22px and the box ends on a line, so it never shows half a line (the Ibara
   re-check at 1366 saw "for 3s, stacking 5 times." cut through the middle). The box holds the name and three lines,
   the longest passive's, so it never scrolls; the numbers are in each icon's tooltip (both councils, 6 November 2026).
   The text is 17px, a step over the small tier (Sol, custom-lobby council round 6), in 384px, where 16px had 374px:
   the box's padding gives the width, and measured in the game's face no text takes more lines than it did. */
.room-kit-text { display: grid; height: calc(8px + 4 * 22px); overflow: hidden; padding: 8px 8px 0 10px; border-left: 2px solid var(--trim); }
.room-kit-text .kt { grid-area: 1 / 1; display: flex; flex-direction: column; font-size: var(--t-name); line-height: 22px; }
.room-kit-text .kt > * { line-height: 22px; }
.room-kit-text .kt > .dim { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.room-kit-text .kt.off { visibility: hidden; }
.room-kit-text .kit-label { color: var(--you-light); }
.room-pick { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.room-selected { flex: 1; min-width: 0; overflow: hidden; font: 700 var(--t-m)/1.2 var(--font-body); color: var(--you-light); text-overflow: ellipsis; white-space: nowrap; }
/* While a preview shows, the pick is said once, under "Preview: Ranger", and this line is the preview's: what a click
   on its tile does, or who has it with their team's mark (room_stage.rs PickLine; Opus, custom-lobby council round 3).
   The selection stays in the page for screen readers. */
.room-selected.room-selected-hidden { position: absolute; flex: none; width: 1px; height: 1px; clip-path: inset(50%); }
/* One line beside Plan items (Opus, custom-lobby council round 5: two bold lines): "Select Storm Warden to choose it",
   the longest, is 268px of the 276px left beside the button at 1920x1080 (the compact rules set it at 16px, 252px of
   the 266px left there at 1280x720). */
.room-pick-hint { flex: 1; min-width: 0; overflow: hidden; font: 700 var(--t-name)/1.2 var(--font-body); color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
/* Plan items keeps one label and so one width, 116px, whether or not a preview shows (Opus, round 5). */
.btn.small.room-plan { flex: none; white-space: nowrap; }
.room-pick .room-held { flex: 1; min-width: 0; overflow: hidden; padding: 0; font-size: var(--t-m); line-height: 1.2; text-align: left; white-space: nowrap; background: none; }
.room-lane-row { display: flex; align-items: center; gap: 12px; height: 40px; }
/* The lane at the room's 18px control size (Sol, custom-lobby council round 2), labelled "Your lane" in the room's
   text colour, not faint, as it says whose the row is during a preview (Sol, round 4): 368px of the details' 404px. */
.room-lanes { display: flex; align-items: center; gap: 8px; }
.room-lanes > .room-lane-label { margin-right: 2px; font-size: var(--t-m); color: var(--text); white-space: nowrap; }
.room-lanes .kit-chip { padding: 7px 14px; font-size: var(--t-m); }
.room-lanes .room-lane.on { color: #201809; background: #f5cb65; border-color: #ffe6a0; font-weight: 800; box-shadow: 0 0 0 2px #f5cb6544; }
/* Lock in, gold, on one line (round 0 saw "LOCKED IN" break in two); once locked, a line that says so, so Start is the
   host's one big action (Sol, round 0). A guest has no Start, so their Lock in takes its height. */
.btn.primary.big.room-lock { width: 100%; height: 54px; padding: 0 12px; font-size: var(--t-l); letter-spacing: 2px; white-space: nowrap; }
.room-match:not(:has(.room-start)) > .btn.primary.big.room-lock { height: 76px; }
.room-you-ready { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; margin: 0; color: var(--you-light); font: 400 var(--t-m)/1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; background: var(--plate); border: 2px solid var(--trim-dark); }
/* Start before every player is locked in (lobby_start.rs `waiting`): a recessed navy plate, 44px, its words small and
   faint after a pixel lock, so Lock in over it is the one gold action (Opus, custom-lobby council round 6: the disabled
   Start was the column's second-heaviest block). It becomes the 58px gold button once it can be pressed. */
.btn.primary.big.room-start.waiting:disabled { --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 8' shape-rendering='crispEdges'%3E%3Cpath fill-rule='evenodd' d='M2 0h3v1H2zM1 1h1v2H1zM5 1h1v2H5zM0 3h7v5H0zM3 5h1v2H3z'/%3E%3C/svg%3E"); height: 44px; gap: 10px; font-size: var(--t-s); color: var(--text-faint); border: 2px solid var(--steel-dark); border-image: none; background: var(--plate) padding-box; box-shadow: inset 0 0 0 2px var(--trim-dark), inset 0 6px 8px -4px rgb(0 0 0 / 60%); }
.btn.room-start.waiting:disabled::before { content: ''; flex: none; width: 14px; height: 16px; background: currentColor; -webkit-mask: var(--lock) 0 0 / 14px 16px; mask: var(--lock) 0 0 / 14px 16px; }

/* Under the teams: the roster, room chat and the bots over Start match. */
/* The roster is 940px so its names keep a gutter (custom-lobby council round 5; both judges, round 4: "SuccubusHookman"),
   and room chat 260px (Sol, round 4: rebalance the roster and chat rather than shrink names). The Bots column takes the
   rest of the page's 1516px, 276px, so the bots and the match have room (Sol, custom-lobby council round 6). */
.room-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: 940px 260px 276px; gap: 20px; min-height: 0; }
.room-roster, .qp-prep { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 6px 10px; }
/* The roster wears the room's quieter steel rim, drawn as room chat's, so gold marks the selection (Sol, custom-lobby
   council round 2: gold frames on every panel competed with it). Its class filters are at the room's 18px control size,
   one row of 703px, and the marks' key ends that row, 185px, in the 912px over the tiles: where the bot editor has it,
   and in a row that is always there, so the tiles never move when a mark appears (Opus, round 4: it took a line of its
   own under the tiles, which moved them, and sat over them in the editor). */
.room-roster-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; min-width: 0; }
.room-roster { padding: 8px 6px 6px; }
.room-roster.ms { border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; }
.room-filters { display: flex; flex-wrap: wrap; gap: 2px; }
.room-filters .kit-chip { padding: 6px 10px; font-size: var(--t-m); }
/* Random and every champion across the panel's 912px, as many columns of 74px or more a row as fit (eleven), with a
   6px gutter so two names never touch (both judges, custom-lobby council round 4: "SuccubusHookman" with no gap). Each
   name stands centred on its tile (`.room-tile-name`), so a word wider than its column spills evenly both ways, and a
   word of nine letters or more is set 1px tighter (`.tight`; Moonsmith 88.5px becomes 79.5px), so no name is wider than
   a column and its gutter (81.4px with the thin scrollbar, which takes 14px of layout at 1366x768): any two names in a
   row stay at least 3px apart in any order (roster.rs; independent re-check: left-aligned, Moonsmith ran 12.7px past
   its tile on the right, 2.1px from Weaver, and would overlap Banshee there by 2.9px). Rows that
   do not fit the panel scroll in it, the next row's top showing under the last whole one, so no tile is cut off out of
   reach (Opus, round 0: the third row was cut off). Two rows of eleven held Random and twenty champions; with 22 the
   Death Knight was cut off below the window's foot (Tyler, 18 November 2026: "figure out the grid"), and now he is the
   third row's first tile, its top in view. The bot editor's champions are the same tiles. */
.room-tiles { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); grid-auto-rows: max-content; gap: 6px 6px;
  align-content: start; min-height: 0; overflow: hidden auto; padding: 6px 4px 2px; scroll-snap-type: y proximity; scrollbar-width: thin; }
.room-tiles > .room-tile { scroll-snap-align: start; }
.room-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: calc(79px + 2 * 1.15em); padding: 0; color: var(--text); background: none; border: 0; font: var(--t-m)/1.15 var(--font-body); text-align: center; cursor: pointer; }
/* Pixel portraits at their own 64px in the socket (roster.rs tile_face). */
.room-tile .socket { position: relative; width: 76px; height: 76px; }
.room-tile .socket > img { width: 64px; height: 64px; }
/* Steel round every champion but the chosen one, so gold means chosen (Sol, custom-lobby council round 1: gold on every
   socket diluted the selection): the steel buttons' frame, sliced at the socket's 3px. */
.room-tile .socket:not(.on) { border-image-source: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png'); }
.room-tile:is(:hover, .virtual-hover) .socket:not(.on) { border-image-source: url('/c/07193ecb182886b98126d5ebe6b4189811e17fbd0f8bc4cb2295069407ec45ca.png'); }
.room-tile .socket.unknown:not(.on) { color: var(--text-dim); }
/* The name in every state (both judges, round 0: "Selected" and "Blue: Tester 2" replaced it), at the room's 18px
   control size, a step over its text (Sol, custom-lobby council round 3: the names were less comfortable to read than
   the controls). Storm Warden and Night Lord take a second line, so every tile keeps two lines for its name under its
   socket and the name stands in the middle of them: one line or two, every name in every row shares one centre, the
   rows are one height under any filter, and the space round them is even (Opus, custom-lobby council round 6: the two
   two-line names left the row's labels at uneven heights). At 1920x1080 two rows take 252px of the tiles' 284px and
   a third shows its top under them. */
.room-tile-name { margin-block: auto; text-wrap: balance; }
.room-tile-name.tight { letter-spacing: -1px; }
.room-tile[aria-pressed="true"] { color: var(--you-light); }
/* Gold means chosen only: the pointer is a steel ring, keyboard focus white and a kept preview dashed white (Sol, round
   0: focus and selection were both bright gold outlines). */
.room-tile:focus-visible { outline: none; }
.room-tile:is(:hover, .virtual-hover) .socket { outline: 2px solid var(--line-strong); outline-offset: 1px; }
.room-tile:focus-visible .socket { outline: 2px solid var(--text); outline-offset: 1px; }
.room-tile.previewed .socket { outline: 2px dashed var(--text); outline-offset: 1px; }
/* A taken champion still previews its kit to read (main's lobby change): its portrait dims and its name stays
   readable. Whose it is reads without the tooltip (both judges, round 1): a pixel lock on the socket's corner for a
   player, a ring for a bot seat, whose champion the player may still take, in the holder's team colour, with a bar of
   that colour along the socket's foot, solid for a player and broken for a bot; the key beside the filters names
   them. Who holds it is in the tooltip. */
.room-tile.taken { color: var(--text-dim); cursor: help; }
.room-tile.taken .socket > img { opacity: 0.35; filter: grayscale(0.7); }
.room-tile.taken.previewed .socket > img { opacity: 0.7; }
:is(.room-tile, .room-held).held-blue { --mark: var(--ally); --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v2H1zM0 3h9v6H0z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v2H2zM6 2h1v2H6zM1 4h7v1H1zM1 5h3v2H1zM5 5h3v2H5zM1 7h7v1H1z' fill='%234f9be8'/%3E%3C/svg%3E"); }
:is(.room-tile, .room-held).held-red { --mark: var(--enemy); --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v2H1zM0 3h9v6H0z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v2H2zM6 2h1v2H6zM1 4h7v1H1zM1 5h3v2H1zM5 5h3v2H5zM1 7h7v1H1z' fill='%23e8443a'/%3E%3C/svg%3E"); }
:is(.room-tile, .room-held).bot-blue { --mark: var(--ally); --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v1H1zM0 2h9v5H0zM1 7h7v1H1zM2 8h5v1H2z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v1H2zM6 2h1v1H6zM1 3h1v3H1zM7 3h1v3H7zM2 6h1v1H2zM6 6h1v1H6zM3 7h3v1H3z' fill='%234f9be8'/%3E%3C/svg%3E"); }
:is(.room-tile, .room-held).bot-red { --mark: var(--enemy); --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v1H1zM0 2h9v5H0zM1 7h7v1H1zM2 8h5v1H2z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v1H2zM6 2h1v1H6zM1 3h1v3H1zM7 3h1v3H7zM2 6h1v1H2zM6 6h1v1H6zM3 7h3v1H3z' fill='%23e8443a'/%3E%3C/svg%3E"); }
.room-tile:is(.held-blue, .held-red, .bot-blue, .bot-red) .socket::after { content: ''; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; background: var(--mark-art) 0 0 / 18px 18px no-repeat; image-rendering: pixelated; }
.room-tile:is(.held-blue, .held-red, .bot-blue, .bot-red) .socket::before { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--mark); }
.room-tile:is(.bot-blue, .bot-red) .socket::before { background: repeating-linear-gradient(90deg, var(--mark) 0 4px, transparent 4px 8px); }
/* The marks' key at the right end of the row over the tiles, in the roster and the bot editor alike (roster.rs
   mark_key), at the names' 18px and in the room's text colour (Sol, round 4: explanations a step up from dim). */
.room-marks { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; font-size: var(--t-m); line-height: 1.2; color: var(--text); white-space: nowrap; }
.room-marks > span { display: inline-flex; align-items: center; gap: 6px; }
.room-marks > span::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--mark-art) 0 0 / 18px 18px no-repeat; image-rendering: pixelated; }
.room-mark-taken { --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v2H1zM0 3h9v6H0z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v2H2zM6 2h1v2H6zM1 4h7v1H1zM1 5h3v2H1zM5 5h3v2H5zM1 7h7v1H1z' fill='%23a4b4d0'/%3E%3C/svg%3E"); }
.room-mark-bot { --mark-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h5v1H2zM1 1h7v1H1zM0 2h9v5H0zM1 7h7v1H1zM2 8h5v1H2z' fill='%2305070e'/%3E%3Cpath d='M3 1h3v1H3zM2 2h1v1H2zM6 2h1v1H6zM1 3h1v3H1zM7 3h1v3H7zM2 6h1v1H2zM6 6h1v1H6zM3 7h3v1H3z' fill='%23a4b4d0'/%3E%3C/svg%3E"); }
/* The selection: the gold socket and a pixel check on its corner. */
.room-tile[aria-pressed="true"] .socket::after { content: ''; position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Crect width='9' height='9' fill='%231a1004'/%3E%3Crect x='1' y='1' width='7' height='7' fill='%23f4c440'/%3E%3Cpath d='M6 2h1v2H6zM5 3h1v2H5zM2 4h1v2H2zM4 4h1v2H4zM3 5h1v2H3z' fill='%231a1004'/%3E%3C/svg%3E") 0 0 / 18px 18px no-repeat; image-rendering: pixelated; }
.qp-prep h4 { margin: 4px 0 0; }
.qp-assigned, .qp-allies li { display: flex; align-items: center; gap: 14px; }
.qp-assigned > span, .qp-allies li > span { display: flex; flex-direction: column; gap: 2px; }
.qp-assigned b { font-size: var(--t-l); }
.qp-allies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Its heading starts 14px in, 8px clear of the steel rim's 6px and level with the chat's lines under it (below). */
.room-chat { min-height: 0; padding: 12px 6px; }
/* Room chat supports the pick, so it wears the quieter steel rim (Sol, custom-lobby council round 2), drawn as on the
   Custom page's list. */
.room-chat.ms { border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; }
.room-bots { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; }
/* A custom room's column is a plate in room chat's steel rim (room.rs), the bots at its top and the match's group under
   a steel rule, headed Match (Opus and Sol, custom-lobby council round 2: the column floated; Sol, rounds 3 and 4: the
   match read as the bots'). The 4px border under the 10px rim leaves 248px inside at 1920x1080 and 334px of height:
   the host's bots take 126px, the gap 8px and the match's group 196px, so 4px are spare. */
.room-bots.room-bots-plate { padding: 8px 10px; border: 4px solid transparent; border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; background: var(--panel-flat) padding-box; image-rendering: pixelated; }
/* The Bots heading with Pick champions beside it (209px of the 232px with "BOTS"), then every bot's difficulty,
   filling the column, and what it does, each on one line; a guest reads the bots in the same place (bot_tiers.rs).
   Its chips are 17px: at 18px "Nightmare" leaves the three no room to breathe in 232px. */
.room-bots-set { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.room-bots-head { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.room-bots-head .btn.small { padding: 4px 12px; }
/* The host's difficulty for every bot says so in words over its chips, "All bots", where the editor's own row says
   "Bot difficulty" (Sol, custom-lobby council round 3: the scope was only in the group's accessible name). While a
   bot's editor is open the chips stay, disabled and at half strength, the shared tier still lit, so the column keeps
   its shape and the row stays a control (Opus, round 5: it became a line of text); they take no pointer, so the row's
   own tooltip says to close the editor, as the line under them does in words (Opus, round 6: the reason was only in
   the tooltip), and a press there leaves it open (bot_seat.rs). A guest reads the value in
   the chips' place, at the room's 18px bold, under "Bot difficulty". Each is one line: label 19px, chips or value
   33px. */
.room-bots-label { margin: 0; font-size: var(--t-s); line-height: 1.2; color: var(--text-dim); white-space: nowrap; }
.room-bots-value { display: flex; align-items: center; height: 33px; margin: 0; font: 700 var(--t-m)/1 var(--font-body); color: var(--text); white-space: nowrap; }
.room-tiers { display: flex; gap: 4px; }
.room-tiers .kit-chip { padding: 5px 8px; }
.room-tiers.room-bots-tiers { align-self: stretch; gap: 2px; }
.room-bots-tiers .kit-chip { flex: 1 1 auto; justify-content: center; padding: 6px 5px; font-size: var(--t-name); }
.room-bots-tiers .kit-chip:disabled { opacity: 0.45; pointer-events: none; }
.room-bots-tiers:has(> .kit-chip:disabled) { cursor: not-allowed; }
/* One line each in the column's 232px: the longest, "Close the editor to set all bots", is 213px at this size, and
   "Bots have different difficulties" 211px (bot_tiers.rs). */
.room-tier-help { margin: 0; font-size: var(--t-s); line-height: 1.35; white-space: nowrap; }
/* The match's group, under the bots and apart from them (Sol, custom-lobby council round 3: under the one Bots heading,
   Lock in and Start read as bot controls and the readiness as a footer far below): under a steel rule, a dark groove
   over a lit line from rim to rim, its "Match" heading in the Bots heading's style (Sol, round 4), then the readiness
   right over Lock in and Start. The host's is pinned to the column's foot: at 1920x1080 2px of rule, 8px, a 16px
   heading and 4px, 42px of readiness, then Lock in 54px and Start 58px (44px while it waits) with 6px gaps, 196px
   under the bots' 126px.
   A guest's follows the bots, so no quiet gap opens over it (Sol, round 4: about 100px of empty plate over the guest's
   readiness); the plate's foot keeps the space. The group is never dimmed: a usable control never looks disabled
   (Opus, round 4: the gold Lock in read as disabled while a bot was edited). The rule and the heading keep it apart. */
.room-match { align-self: stretch; display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.room-bots-plate > .room-match:not(:has(.room-start)) { margin-top: 0; }
.room-bots-set + .room-match { margin-inline: -4px; padding: 8px 4px 0; border-top: 2px solid var(--steel-dark); box-shadow: inset 0 2px 0 var(--steel-line); }
.room-match-title { margin-bottom: -2px; }
/* Where the match stands: the host's count or who starts it for a guest, over who Start waits for or what it does, two
   lines kept so the rule over them stays put, balanced so a wrap never leaves one word alone (Opus, round 1). Both at
   the body tier in the room's text colour, as the task's own words (Sol, round 4: small and dim): the count or who
   starts in bold at 18px, "1 of 2 players locked in" 200px and "Tester 2 starts the match" 211px of the 248px; the
   reason at 17px, where under a count it keeps one line, "Waiting for you and 3 others" 218px. */
.room-match-status { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(2 * 1.2em); margin: 0; text-align: center; font-size: var(--t-name); line-height: 1.2; color: var(--text); text-wrap: balance; }
.room-match-head { font-size: var(--t-m); font-weight: 700; }
.room-match-status.headed > .room-match-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Start on one line like Lock in (Opus, round 3: "START / MATCH" under the kit's balanced wrap): "START MATCH" is 230px
   in Silkscreen's 24px with 4px tracking, over the 224px inside its frame, so this one label steps down to 18px with
   2px tracking, 162px ("STARTING…" 133px). Disabled, it is the kit's steel body face. */
.btn.primary.big.room-start { width: 100%; height: 58px; padding: 0 8px; font-size: var(--t-m); letter-spacing: 2px; white-space: nowrap; }
/* A bot-filled Quick play room's note where Start would be (room.rs), on a quiet backing: two lines kept, at 17px in
   the room's text colour (Sol, round 4: task text in a dim, small tier). */
.room-party-status:not(:has(span)) { display: none; }
.room-party-status { padding: 8px 12px; font-size: var(--t-s); background: var(--panel-flat); border: 2px solid var(--trim-dark); }
.room-party-status .col { display: flex; flex-direction: column; gap: 4px; }

/* The room's chat is the shared player chat (chat/view.rs), fixed over the Room chat panel: room.rs measures the panel
   into --room-chat-*. The field stays shown, so the room reads like a chat panel. Its lines and field start 14px in,
   level with the heading over them and the Bots column's beside it, and end 14px over the panel's foot: 232px of the
   panel's 260px at 1920x1080, where 18px left 224px (both judges, custom-lobby council round 5: a short message wrapped
   and the field was a slit). */
body:has(#room-chat-dock) .player-chat.in-room { left: var(--room-chat-x); top: calc(var(--room-chat-y) + 48px); bottom: auto; width: var(--room-chat-w); height: calc(var(--room-chat-h) - 62px); padding: 0 14px; justify-content: flex-end; pointer-events: auto; text-shadow: none; }
/* The chat is outside the scaled frame, so it takes the frame's zoom itself (kit/scale.rs `client_scale`): the panel's
   measured place, in window px, is divided back into the chat's own px. */
@media (min-width: 1100px) {
  body:has(#room-chat-dock) .player-chat.in-room { zoom: var(--client-scale, 1); left: calc(var(--room-chat-x) / var(--client-scale, 1)); top: calc(var(--room-chat-y) / var(--client-scale, 1) + 48px);
    width: calc(var(--room-chat-w) / var(--client-scale, 1)); height: calc(var(--room-chat-h) / var(--client-scale, 1) - 62px); }
}
body:has(#room-chat-dock) .player-chat.in-room #chat-history { flex: 1; gap: 8px; max-height: none; overflow-y: auto; }
body:has(#room-chat-dock) .player-chat.in-room .chat-idle { display: none; }
body:has(#room-chat-dock) .player-chat.in-room .chat-editor { gap: 6px; visibility: visible; pointer-events: auto; }
/* In the room's panel the chat reads at the room's text size, not the in-match chat size, and has no Close: the panel
   stays (the Ibara walk at 1366 saw "Write a me" in larger type). */
body:has(#room-chat-dock) .player-chat.in-room { font-size: var(--t-s); }
body:has(#room-chat-dock) .player-chat.in-room .chat-close { display: none; }
/* A player's line is the speaker, their name in the chat's colour and their champion dim, over the message at the
   panel's full width (view.rs History; chat.css .chat-said), 8px apart from the next. */
body:has(#room-chat-dock) .player-chat.in-room .chat-message { padding: 0; line-height: 1.3; }
body:has(#room-chat-dock) .player-chat.in-room .chat-said > .chat-text { margin-top: 1px; }
/* The field: a dark well across the panel, with its channels named over it, "Send to", then Room and Team, the one in
   use gold (view.rs ChannelRow; Sol, custom-lobby council round 5: move the channel above the field and keep its scope
   named). With All chat on the three chips and their label take 224px of the 232px. */
body:has(#room-chat-dock) .player-chat.in-room form { gap: 0; padding: 3px; background: var(--field); border: 2px solid var(--steel-line); box-shadow: none; }
body:has(#room-chat-dock) .player-chat.in-room form:focus-within { border-color: var(--text-faint); }
body:has(#room-chat-dock) .player-chat.in-room form input.input { padding: 7px 8px; }
/* Before the first message the history says so, in the middle of the panel, and who reads it (Opus, custom-lobby
   council round 1: one faint line at the top of the room's second-largest panel read as dead space). Who joined, left
   or switched team is the room's own note: faint and slanted under what players say, as League writes its join lines
   (Opus, custom-lobby council round 2: they read almost like player lines). The empty lines say what the panel is for,
   so they read a step up from the chat's own lines in size and colour (Sol, round 4: faint task text): 17px, balanced
   when they wrap; in the 232px at 1920x1080 "No messages since you joined" (226px) keeps one line. */
body:has(#room-chat-dock) .player-chat.in-room .chat-empty { display: flex; flex-direction: column; gap: 6px; margin: auto 0; padding: 12px 0; text-align: center; font-size: var(--t-name); text-wrap: balance; }
body:has(#room-chat-dock) .player-chat.in-room .chat-empty > p { margin: 0; color: var(--text); }
body:has(#room-chat-dock) .player-chat.in-room .chat-empty > .chat-empty-who { color: var(--text-dim); }
body:has(#room-chat-dock) .player-chat.in-room .chat-room-event { color: var(--text-faint); font-style: italic; }
/* The chat layer sits outside the frame, so it steps aside while the folded column or the inbox opens over the room
   (code review: at 800px it took clicks meant for the opened column). */
body:has(.client-shell.social-open, .client-topbar .inbox-panel) .player-chat.in-room { visibility: hidden; pointer-events: none; }
body:has(.client-shell.social-open, .client-topbar .inbox-panel) .player-chat.in-room .chat-editor { visibility: hidden; pointer-events: none; }

/* In a room the top bar's pages wait: Play stays lit, the tabs dim. They are disabled buttons (frame.rs `TopBar`): a
   press does nothing, focus passes over them and their tooltip says to leave the room first. Faint alone looked like
   the tabs on any page (Opus, custom-lobby council round 4), so they also fade to half, as the kit's disabled
   buttons do, and the pointer says no. */
.client-play:disabled[aria-current="page"] { color: var(--ink); text-shadow: 0 2px 0 var(--gold-text-shade); border-image-source: url('/c/a45acd7c1a0c134020cb7a0483ee926794a89be47cbfa370c0d22614286a7c77.png'); background: var(--face-gold) padding-box; cursor: default; }
.client-nav .kit-tab:disabled { color: var(--text-faint); opacity: 0.5; cursor: not-allowed; }
.client-account:disabled { cursor: default; }

/* Compact: a page area smaller than 1516x932 (play.css says why). The teams, seats and champion keep their places;
   sizes give way. */
@container (max-width: 1515.98px) or (max-height: 931.98px) {
  .room-page { grid-template-columns: clamp(220px, calc(22cqw * var(--cq-fix, 1)), 300px) minmax(0, 1fr) clamp(220px, calc(22cqw * var(--cq-fix, 1)), 300px); grid-template-rows: auto auto minmax(0, 1fr); gap: 12px 16px; }
  .room-bottom { display: contents; }
  .room-team.blue { grid-column: 1; grid-row: 2; }
  .room-stage { grid-column: 2; grid-row: 2; }
  .room-team.red { grid-column: 3; grid-row: 2 / 4; align-self: start; }
  .room-roster, .qp-prep { grid-column: 2; grid-row: 3; }
  .room-chat { grid-column: 1; grid-row: 3; }
  .room-bots { grid-column: 3; grid-row: 2 / 4; align-self: end; gap: 8px; }
  .room-team { gap: 8px; }
  .room-team-head { height: 32px; }
  /* The kit's 16px in these columns, about 254px at 1280x720, which a guest's "BLUE TEAM" with Switch to blue already
     fills (263px with its gaps at 16px, 271px at 18px). */
  .room-team-head > .kit-label { font-size: var(--t-s); letter-spacing: 1px; }
  .room-seat { height: 72px; gap: 10px; padding: 6px 10px; }
  .room-seat.bot { padding: 0; }
  .room-seat .seat-main, .room-team.red .room-seat .seat-main { gap: 10px; padding: 6px 10px; }
  .room-seat .who { gap: 1px; }
  /* A bot's three lines keep the 16px that fits them in the 72px seat, Edit bot right under the line, and its socket
     the players' 56px, a picked portrait drawn smoothly at 48px, the crest at 48px as before. */
  .room-seat.bot .who { gap: 1px; font-size: var(--t-s); line-height: inherit; }
  .seat-edit { margin-top: 0; font-size: var(--t-s); }
  .room-seat.bot .socket > img { image-rendering: auto; }
  .room-seat.bot .bot-crest > i { --crest-size: 48px; }
  .room-seat .socket { width: 56px !important; height: 56px !important; } .room-seat .socket > img { width: 48px !important; height: 48px !important; }
  .room-face { width: 56px; height: 56px; }
  /* Three lines in a player's 72px seat: name, champion and lane, state; the chips give way before the name does. */
  .room-seat:not(.bot) { gap: 8px; padding: 4px 8px; }
  .room-seat:not(.bot) .who { line-height: 1.1; }
  .room-seat .nameline { gap: 4px; }
  .room-tag { padding: 1px 4px; }
  .room-ready { gap: 4px; font-size: var(--t-xs); }
  .room-ready:not([data-state="away"]) { padding: 2px 6px; }
  .room-seat-state { flex-wrap: nowrap; gap: 6px; }
  /* A pill and Remove do not fit one line of the compact seat, which has no height for a second: Remove stands in its
     top corner, and the name keeps clear of it. */
  .btn.small.room-remove { position: absolute; z-index: 1; top: 4px; right: 8px; padding: 1px 8px; font-size: var(--t-badge); } .room-team.red .btn.small.room-remove { right: auto; left: 8px; }
  .room-seat:has(> .who .room-remove) .nameline { padding-right: 76px; } .room-team.red .room-seat:has(> .who .room-remove) .nameline { padding: 0 0 0 76px; }
  .room-seat:not(.bot) .room-seat-detail { font-size: var(--t-s); line-height: 1.1; }
  .room-remove-ask { gap: 4px; padding: 4px 8px; }
  .room-remove-ask > b { font-size: var(--t-s); }
  .room-remove-choices .kit-chip { padding: 2px 10px; font-size: var(--t-xs); }
  .room-code b { font-size: var(--t-m); }
  /* 30% of the stage, where it was 28%, so the figure stands about 8% taller; at 1280x720 the details keep 371px of
     text, over the 363px every passive and ability needs for its three lines. */
  .room-figure { width: clamp(150px, 30%, 340px); padding-bottom: 14px; }
  .room-hero, .room-random-crest { bottom: 74px; }
  .room-hero { top: 48px; }
  /* The floor's lip stays 8px under the feet, 74px up, with the stacked look under it. */
  .room-floor { height: 96px; }
  .room-figure .room-glow { bottom: 66px; }
  .room-look { left: 8px; right: 8px; bottom: 8px; }
  .room-look .forge-select { flex-direction: column; gap: 4px; }
  /* At 16px "CHAMPION LOOK" (155px) fits the figure's 169px at 1280x720; at 18px (173px) it would not. */
  .room-look .forge-select > .kit-label { font-size: var(--t-s); }
  .room-look .forge-select-trigger { min-width: 0; height: 36px; padding: 2px 10px; }
  /* Random's crest at 3px a cell, its light centred on it. */
  .room-random-crest { left: calc(50% - 54px); width: 108px; height: 129px; }
  .room-figure:has(> .room-random-crest)::before, .room-figure:has(> .room-random-crest)::after { bottom: 44px; height: 190px; }
  .room-info { gap: 6px; padding: 10px 12px; }
  .room-kit { margin-inline: 0; }
  .room-name { font-size: var(--t-l); }
  .room-title, .room-diff { row-gap: 6px; }
  .room-summary { line-height: 1.35; height: calc(2 * 1.35em); }
  .room-roster { gap: 6px; padding: 6px 8px; }
  .room-filters .kit-chip { padding: 3px 8px; font-size: var(--t-xs); }
  .room-kit { flex-wrap: wrap; }
  .room-ability { font-size: var(--t-xs); }
  .room-ability .socket { width: 52px; height: 52px; } .room-ability .socket > img { width: 44px; height: 44px; }
  .room-key { left: calc(50% - 30px); }
  /* The name and three lines here too, at 20px a line, so the longest passive still fits whole. */
  .room-kit-text { height: calc(6px + 4 * 20px); padding: 6px 10px 0; }
  /* The 16px they had: the details' 371px at 1280x720 hold the longest kit text and class line at 16px, not at 17px. */
  .room-kit-text .kt, .room-diff-label { font-size: var(--t-s); }
  .room-kit-text .kt, .room-kit-text .kt > * { line-height: 20px; }
  .room-lane-row { height: 34px; }
  .room-pick-hint { font-size: var(--t-s); }
  .room-lanes .kit-chip { padding: 5px 10px; }
  /* As many columns as keep every name on one line (eight at 1366x768, seven at 1280x720), the names at 16px as before
     the full-size roster's went to 18px; the rows scroll. */
  /* A 6px gutter here too: still eight columns at 1366x768 and seven at 1280x720. */
  .room-tiles { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; align-content: start; overflow: hidden auto; padding: 6px 4px 2px; }
  .room-tile { font-size: var(--t-s); }
  /* No second line kept here, where the rows scroll: a row with a two-line name still centres its others. */
  .room-tile, .bot-editor .room-tile { min-height: 0; }
  .room-tile .socket { width: 60px; height: 60px; }
  .room-tile .socket > img { width: 48px; height: 48px; image-rendering: auto; }
  .socket.unknown { font-size: var(--t-l); }
  .bot-fields { gap: 6px 20px; }
  .bot-field-label { font-size: var(--t-s); }
  .bot-editor-name { font-size: var(--t-m); letter-spacing: 0.5px; }
  .bot-field .room-tiers .kit-chip { padding: 4px 10px; font-size: var(--t-s); }
  .btn.primary.big.room-start { height: 56px; }
  .btn.primary.big.room-lock { height: 52px; }
  .room-you-ready { height: 40px; }
  .room-match:not(:has(.room-start)) > .btn.primary.big.room-lock { height: 60px; }
  .room-figure-head { top: 10px; left: 6px; right: 6px; gap: 4px; }
  .room-preview { font-size: var(--t-xs); letter-spacing: 0; }
  .room-own { font-size: var(--t-xs); }
  .room-held { gap: 6px; padding: 3px 6px; font-size: var(--t-xs); }
}
/* At 1366x768 and below the roster needs the room more than the champion's one-line summary, which its Champions page
   keeps; its kit stays. */
@container (max-height: 700px) {
  /* The roster's key would take a row of its own: the tiles' tooltips and labels still name the holder. */
  .room-tier-help, .room-summary, .room-roster-top > .room-marks { display: none; }
  /* Under the red team the column has no line to spare: the difficulty's help goes (each chip's tooltip keeps it), and
     the plate's padding, Pick champions, the chips and the gaps give way, so the host's column takes 243px of the 248px
     left at 1280x720. */
  .room-bots { gap: 6px; }
  .room-bots.room-bots-plate { padding: 4px 8px; }
  .room-bots-set { gap: 4px; }
  .room-bots-head .btn.small { padding: 2px 10px; }
  .room-bots-tiers .kit-chip { padding: 4px 5px; font-size: var(--t-s); }
  .room-bots-value { height: 28px; font-size: var(--t-s); }
  /* The match's group shares that column with the red team, so it gives it height too: 156px for the host, under the
     159px Lock in, Start and the note under them took before (Sol, custom-lobby council round 3), and 18px more for its
     Match heading, in the 30px the column has spare at 1366x768. Its lines keep the 16px they had. */
  .room-match { gap: 4px; }
  .room-bots-set + .room-match { margin-inline: -2px; padding: 6px 2px 0; }
  .room-match-status { font-size: var(--t-s); line-height: 1.25; min-height: calc(2 * 1.25em); }
  .room-match-head { font-size: inherit; }
  .btn.primary.big.room-lock { height: 48px; }
  .btn.primary.big.room-start, .room-match:not(:has(.room-start)) > .btn.primary.big.room-lock { height: 52px; }
  .room-you-ready { height: 36px; }
}
/* At 1280x720 the column has 5px to spare, under the 23px the All bots label and its gap take, so the label goes; the
   chips' group keeps the name "All bots difficulty", and the Bots heading sits right over them. At 1366x768 it stays.
   So does the host's Match heading (18px): the steel rule still parts the two groups, and the group keeps its name for
   screen readers. A guest has no Start, so theirs has the room, and their "Bot difficulty" stays over its value, which
   alone would not say what it is. */
@container (max-height: 600px) {
  .room-bots-label:has(+ .room-bots-tiers), .room-match:has(.room-start) > .room-match-title { display: none; }
}

/* Small: below 1000x560 the page scrolls, and Start match stays at the bottom of the window. */
@container (max-width: 999.98px) or (max-height: 559.98px) {
  .room-page { display: flex; flex-wrap: wrap; align-content: flex-start; }
  .room-head { flex: 1 1 100%; flex-wrap: wrap; }
  .room-team { flex: 1 1 calc(50% - 8px); order: 1; }
  .room-stage, .room-roster, .qp-prep, .room-chat, .room-bots { flex: 1 1 100%; order: 2; }
  .room-chat { height: 220px; }
  .room-tiles { overflow: visible; }
  .room-bots { position: sticky; bottom: 0; z-index: 2; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px; background: var(--panel-flat); }
  .room-match { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 0; }
  .room-bots-set + .room-match { margin-inline: 0; padding: 8px 0 0; }
  .room-match-title, .room-match-status { flex: 1 1 100%; min-height: 0; text-align: left; }
  .btn.primary.big.room-start, .room-match > .btn.primary.big.room-lock, .room-match > .room-you-ready { width: 260px; }
}

/* 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 scrolls in the order a player works down it: the room, the teams, the
   champions to pick from, the pick's details, then the bots and Lock in and Start, then room chat. Pinned to the
   window's foot, the bots and Start lay over the seats, so none could be pressed; the two teams side by side upright
   ran each seat's lines into the other's. Upright everything is one column; on its side the teams stand side by side
   and the pick's details beside the bots and the match. */
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .room-page { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "head" "blue" "red" "roster" "stage" "bots" "chat"; align-content: start; gap: 12px; }
  html.touch .room-head { grid-area: head; }
  html.touch .room-team.blue { grid-area: blue; }
  html.touch .room-team.red { grid-area: red; align-self: auto; }
  html.touch .room-page .room-bottom { display: contents; }
  html.touch :is(.room-roster, .qp-prep) { grid-area: roster; }
  html.touch .room-stage { grid-area: stage; }
  html.touch .room-bots { grid-area: bots; position: static; align-self: auto; }
  html.touch .room-chat { grid-area: chat; }
}
/* The room's line under its heading, upright, rather than squeezed to a letter beside the room's code. The seats' chips
   and Remove at the touch scale's 0.8 drew their 13 px at 10.4 px, so on a phone they take the 14 px step. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .room-line { flex: 1 1 100%; white-space: normal; }
}
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch :is(.room-tag, .room-seat .nameline .kit-chip, .btn.small.room-remove) { font-size: var(--t-xs); }
}
/* The champion's stage, upright: the figure over its details, each the column's full width; beside each other the
   details had a third of the width and cut the name, the pick and the lanes short. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .room-stage { flex-direction: column; }
  html.touch .room-stage > .room-figure { flex: none; width: auto; height: 280px; border-right: 0; border-bottom: 2px solid var(--column-edge); }
}
/* On its side, in six columns: the teams three each; the stage four, so its details keep the width the lanes and the
   kit need, and the bots and the match the other two. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .room-page { grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas: "head head head head head head" "blue blue blue red red red" "roster roster roster roster roster roster"
      "stage stage stage stage bots bots" "chat chat chat chat chat chat"; gap: 12px 16px; }
}
/* Room chat's fixed layer follows its panel as the page scrolls (room.rs `ChatDock`), but it is outside the page's
   scrolling box, so with the panel half under the frame's bar or its rail the layer's field was drawn over them and
   took their presses. On a phone it is cut where the page's box ends: under the bar (client.css: 132 px upright, 72 px
   at the touch scale on its side) and over the rail along the bottom, upright. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch body:has(#room-chat-dock) .player-chat.in-room { --chat-top: 132px; --chat-foot: 60px;
    clip-path: inset(max(0px, calc(var(--chat-top) - var(--room-chat-y) - 48px)) 0 max(0px, calc(var(--room-chat-y) + var(--room-chat-h) - 14px - 100dvh + var(--chat-foot))) 0); }
}
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch body:has(#room-chat-dock) .player-chat.in-room { --chat-top: calc(72px * var(--client-scale, 1)); --chat-foot: 0px;
    clip-path: inset(max(0px, calc(var(--chat-top) - var(--room-chat-y) - 48px)) 0 max(0px, calc(var(--room-chat-y) + var(--room-chat-h) - 14px - 100dvh + var(--chat-foot))) 0); }
}
