/* Full screens: title, the room's countdown and item planner, match intro, results. Tokens only. */
#ui { position: absolute; inset: 0; pointer-events: none; z-index: var(--z-hud); }
.screen { position: absolute; inset: 0; pointer-events: auto; overflow: hidden; background: var(--bg-0); }
.backdrop {
  position: absolute;
  inset: -20px;
  /* The arena painting at 960 px (art/moonforge/world/backdrop.py): blurred this much it looks the same as the 4 MB original. */
  background: url('/c/b0f7d3748b5d7f069441f97c952a6b3aa6de8b8c8ca432bd8814c42089fee3aa.webp') center / cover;
  filter: blur(5px) brightness(0.38) saturate(0.85);
}
.backdrop.dark { filter: blur(8px) brightness(0.2); }
.spr { display: block; flex: none; }

/* Front screens (title, champion select, lobby) share one scene and one visual language:
 * full-strength art, a shade only where text sits, words instead of boxes, one gold plate per screen. */
.front { background: var(--bg-0); }
/* Title scene: Pixel Studio layers at 480x270 scaled to cover (--u = screen px per scene px), cropped at the edges. */
.tscene { position: absolute; width: calc(480 * var(--u)); height: calc(270 * var(--u)); --px: 0; --py: 0; }
.tworld { position: absolute; inset: 0; }
.tworld > * { position: absolute; translate: calc(var(--px) * var(--d) * -16 * var(--u)) calc(var(--py) * var(--d) * -10 * var(--u)); transition: translate 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tl {
  left: calc(-16 * var(--u));
  top: calc(-16 * var(--u));
  width: calc(512 * var(--u));
  height: calc(302 * var(--u));
  background: center / 100% 100% no-repeat;
  image-rendering: pixelated;
}
.tl-sky { background-image: url('/c/3ffb590cab2431803387e2afc352165117abb95c59c535305b9e0dbc373e6e1a.png'); }
.tl-far { background-image: url('/c/149d898c3b3fbf6f2b783d171205e3f30f2c5da2a66f99b87c7eb87e4f7044b4.png'); }
.tl-gate { background-image: url('/c/996d5dfa158ec72975af70f62988f04549629aeb57c595ece00c67cef8521ce0.png'); }
.tl-firelight { background-image: url('/c/38afe169d35e532fabcef860935f6758a7516a654942cdb3d6dcfe83af5f6dbb.png'); animation: flicker 1.9s steps(1) infinite; }
.tl-fog { background-image: url('/c/920f0f3bf98c0677b36b5a1a91c52f4a2de9bf5cad0a59799aa5712b401a7609.png'); animation: fog-drift 16s ease-in-out infinite alternate; }
.tl-front { background-image: url('/c/675175c218321e9d7e3127015c1daef6591ac30fa781c836842343e4358f1113.png'); }
/* Six-frame fire strips stepped at 100 ms. */
.tl-gatefire, .tl-brazier { background-size: 600% 100%; background-position: 0 0; animation: fire 600ms steps(6) infinite; }
.tl-gatefire { background-image: url('/c/0fae5ef323817a90d19f580428f6d4d0854f6d087187520afcccef9b71377d26.png'); }
.tl-brazier { background-image: url('/c/6c90e2084a37ee51c7dcb6c29fe3d78944d206525bb85e959e5a252cdce45a16.png'); animation-duration: 660ms; }
@keyframes fire { to { background-position: 120% 0; } }
/* The fires flare on the logo's strike: in the opening at 2.3 s, and when a skip lands the strike (.struck, set on the
 * fire layers themselves for 700 ms). */
@keyframes flare { 0%, 100% { filter: brightness(1); } 16% { filter: brightness(2.1) saturate(1.25); } }
.tl-gatefire.struck { animation: fire 600ms steps(6) infinite, flare 600ms ease-out; }
.tl-brazier.struck { animation: fire 660ms steps(6) infinite, flare 600ms ease-out; }
.tl-firelight.struck { animation: flicker 1.9s steps(1) infinite, flare 600ms ease-out; }
@keyframes flicker {
  0%, 100% { filter: brightness(1); }
  18% { filter: brightness(0.82); }
  31% { filter: brightness(1.08); }
  52% { filter: brightness(0.9); }
  71% { filter: brightness(1.04); }
  86% { filter: brightness(0.86); }
}
@keyframes fog-drift { from { transform: translateX(calc(-8 * var(--u))); } to { transform: translateX(calc(8 * var(--u))); } }
/* Warm bloom from the arch, breathing with the fire. */
.tglow {
  left: calc(210 * var(--u));
  top: calc(110 * var(--u));
  width: calc(240 * var(--u));
  height: calc(170 * var(--u));
  background: radial-gradient(ellipse 50% 50% at 50% 62%, color-mix(in srgb, var(--physical) 34%, transparent), transparent 70%);
  mix-blend-mode: screen;
  animation: breathe 2.6s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.55; } to { opacity: 0.8; } }
.twinkles { inset: 0; }
.twinkles i { position: absolute; width: var(--u); height: var(--u); background: var(--text); animation: twinkle 4.2s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; box-shadow: 0 0 calc(var(--u) * 1.5) var(--text-dim); } }
/* The real champions, backlit by the gate fire: dark bodies with a hot rim. */
.champs { inset: 0; }
.champ { position: absolute; }
.tscene.loading > * { visibility: hidden; }
.tscene.loading > .tstart { visibility: visible; }
.tstart {
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: var(--t-l);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: beckon 1.6s ease-in-out infinite alternate;
}
@keyframes beckon { from { opacity: 0.35; } to { opacity: 1; } }
.champ .spr {
  filter: brightness(0.58) saturate(0.75) drop-shadow(0 calc(var(--u) * -0.5) 0 var(--you)) drop-shadow(calc(var(--u) * 0.5) 0 0 var(--physical))
    drop-shadow(calc(var(--u) * -0.5) 0 0 var(--physical));
}
.tembers { inset: 0; pointer-events: none; }
.tembers i {
  position: absolute;
  top: calc(218 * var(--u));
  width: calc(var(--s) * var(--u));
  height: calc(var(--s) * var(--u));
  background: var(--you-light);
  animation: lift linear infinite;
  opacity: 0;
}
@keyframes lift {
  0% { transform: translate(0, 0); opacity: 0; background: var(--you-light); }
  12% { opacity: 1; }
  60% { background: var(--physical); }
  100% { transform: translate(calc(-14 * var(--u)), calc(-120 * var(--u))); opacity: 0; background: var(--enemy); }
}
.tflash { position: absolute; inset: 0; background: var(--text); opacity: 0; pointer-events: none; }
.tlogo { position: absolute; left: calc(6 * var(--u)); top: calc(6 * var(--u)); margin: 0; line-height: 0; }
.tlogo img { width: calc(162 * var(--u)); image-rendering: pixelated; display: block; filter: drop-shadow(0 calc(var(--u) * 1.5) 0 var(--shadow)); }
/* A metal glint crossing the logo every few seconds, clipped to the logo's own pixels. */
.tlogo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, color-mix(in srgb, var(--you-light) 85%, transparent) 50%, transparent 60%) 160% 0 / 250% 100% no-repeat;
  -webkit-mask: url('/c/8bdc18872f9fa1dc4122b126469aa892ffc855bbf30540783a2141db0f048e4c.png') 0 0 / 100% 100%;
  mask: url('/c/8bdc18872f9fa1dc4122b126469aa892ffc855bbf30540783a2141db0f048e4c.png') 0 0 / 100% 100%;
  mix-blend-mode: screen;
  animation: glint 8s ease-in-out 2s infinite;
}
@keyframes glint {
  0%, 84% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}
.tmenu { position: absolute; left: calc(10 * var(--u)); top: calc(92 * var(--u)); }
.tscene.night .tworld { filter: brightness(0.6) saturate(0.85); }
.tscene.night .tl-fog { opacity: 0.6; }

/* The opening, first visit only (any key or click skips): the camera pulls back from the moon, the braziers
 * light, the gate erupts, the champions step out of the fire, a white hit, the logo strikes, the menu follows. */
.tscene.opening { animation: shake 320ms ease-out 1.05s both; }
.tscene.opening .tworld { animation: pull-back 1.5s cubic-bezier(0.25, 0, 0.2, 1) both; transform-origin: 86% 18%; }
.tscene.opening :is(.tl-brazier, .tl-firelight) { opacity: 0; animation: ignite 250ms ease-out 0.6s forwards, fire 660ms steps(6) infinite, flare 600ms ease-out 2.3s; }
.tscene.opening .tl-firelight { animation: ignite 250ms ease-out 0.6s forwards, flicker 1.9s steps(1) infinite, flare 600ms ease-out 2.3s; }
.tscene.opening .tl-gatefire { animation: erupt 450ms cubic-bezier(0.2, 0.9, 0.3, 1) 1.05s both, fire 600ms steps(6) infinite, flare 600ms ease-out 2.3s; }
.tscene.opening .tglow { animation: bloom 1s ease-out 1.05s both, breathe 2.6s ease-in-out 2.1s infinite alternate; }
.tscene.opening .tembers { animation: ignite 400ms ease-out 1.2s both; }
.tscene.opening .champ { animation: emerge 450ms cubic-bezier(0.2, 0.8, 0.3, 1) both; animation-delay: calc(1.35s + var(--i) * 70ms); }
.tscene.opening .tflash { animation: hit 500ms ease-out 2.1s both; }
.tscene.opening .tlogo { animation: strike 450ms cubic-bezier(0.2, 1.4, 0.4, 1) 2.15s both; }
.tscene.opening .tmenu { animation: rise 350ms cubic-bezier(0.2, 0.8, 0.3, 1) 2.5s both; }
@keyframes pull-back {
  from { transform: scale(1.6); filter: brightness(0); }
  25% { filter: brightness(0.7); }
  to { transform: none; filter: none; }
}
@keyframes ignite { from { opacity: 0; } to { opacity: 1; } }
@keyframes erupt { from { opacity: 0; clip-path: inset(85% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes bloom { from { opacity: 0; } 18% { opacity: 1; } to { opacity: 0.55; } }
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(calc(var(--u) * 1), calc(var(--u) * -1)); }
  45% { transform: translate(calc(var(--u) * -1), calc(var(--u) * 1)); }
  70% { transform: translate(calc(var(--u) * 0.5), 0); }
}
@keyframes emerge { from { opacity: 0; transform: translateY(calc(6 * var(--u))); } to { opacity: 1; transform: none; } }
@keyframes hit { 0% { opacity: 0; } 12% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes strike { from { opacity: 0; transform: scale(1.5); } 60% { opacity: 1; transform: scale(0.97); } to { opacity: 1; transform: none; } }

.friends {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: 0 0 var(--s3) var(--s6);
  padding: var(--s3) 0 var(--s3) var(--s4);
  border-left: 2px solid var(--you-deep);
  animation: open 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
/* Wide enough for a three-word code in capitals (client UI council round 0: the example was cut off). */
.input.code { width: 340px; letter-spacing: 0.04em; text-transform: uppercase; }
.input.name { width: 270px; }
.corner-tr { position: absolute; right: var(--s6); top: var(--s5); zoom: var(--ui-scale); display: flex; align-items: center; gap: var(--s4); }
.iconbtn { background: none; border: none; padding: var(--s2); color: var(--text-dim); display: inline-flex; }
.iconbtn .ico { width: 24px; height: 24px; }
.iconbtn:is(:hover, .virtual-hover) { color: var(--you-light); }
.fineprint { position: absolute; left: var(--s6); bottom: var(--s4); zoom: var(--ui-scale); font-size: var(--t-xs); color: var(--text-faint); }
/* Opening, first visit only: fade from black, the wordmark strikes in, the menu follows word by word. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Every ability stays in the room's page for screen readers, even while another is shown (room.css lays out the room). */
.kit-all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; }
.seg { display: flex; border: 2px solid var(--line-strong); background: color-mix(in srgb, var(--bg-0) 80%, transparent); }
.seg button {
  background: none;
  border: none;
  padding: var(--s2) var(--s4);
  font-weight: 700;
  font-size: var(--t-s);
  color: var(--text-dim);
}
.seg button + button { border-left: 2px solid var(--line); }
.seg button:is(:hover, .virtual-hover):not(:disabled) { color: var(--text); background: var(--bg-2); }
.seg button.on { color: var(--ink); background: var(--you); }
.seg button:disabled { color: var(--text-faint); text-decoration: line-through; cursor: not-allowed; }
/* The one primary action: an angled gold plate, like a struck ingot. */
.plate {
  position: relative;
  min-width: 380px;
  padding: var(--s4) var(--s7);
  border: none;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  background:
    linear-gradient(100deg, transparent 40%, color-mix(in srgb, var(--you-light) 70%, transparent) 50%, transparent 60%) 200% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, var(--you-light) 0%, var(--you) 48%, var(--you-deep) 100%);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--t-xl);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: filter 120ms, transform 120ms;
}
.plate.small { min-width: 200px; padding: var(--s3) var(--s6); font-size: var(--t-l); }
.plate:is(:hover, .virtual-hover):not(:disabled) { filter: brightness(1.1); animation: shine 700ms ease-out; }
.plate:active:not(:disabled) { transform: translateY(2px); }
.plate:disabled { background: var(--bg-3); color: var(--text-faint); cursor: not-allowed; }
@keyframes shine { from { background-position: 200% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
/* The start countdown covers the lobby: nothing else takes a click until it ends or someone cancels (Tyler, 2026-10-27). */
/* A dialog's text is the browser's dark CanvasText unless it says otherwise: the countdown sets its own (both judges,
   custom-lobby council round 1: every name but the player's was near-black on navy). */
.start-countdown { margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0; padding: 0; position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; color: var(--text); background: #061014c8; pointer-events: auto; }
/* The card is the room's gold-trimmed feature frame (.ms.feature), with the line-up it starts either side of the number,
   blue facing red (both councils, 6 November 2026: a flat box with no line-up). Wide enough for "Storm Warden · Bottom
   lane" under a name at the room's sizes beside the number's 150px column. Its title and its two lines of explanation
   are in its text colour, not a small dim tier (Sol, custom-lobby council round 4), the lines at the room's body size. */
.start-count-card { width: min(920px, calc(100 * var(--vw, 1vw) - 32px)); display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: 22px 28px 24px; color: var(--text); box-shadow: 0 12px 48px var(--shadow); }
/* The heading in the panels' pixel face, at Silkscreen's 24px, which its pixel grid draws evenly, a step over the team
   labels under it (Opus, custom-lobby council round 5: the body font's eyebrow broke the label style). */
.start-count-title.kit-label { font-size: var(--t-l); letter-spacing: 2px; color: var(--text); }
.start-count-note { margin: 0; font-size: var(--t-m); line-height: 1.3; text-align: center; color: var(--text); }
.start-count-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; gap: 24px; width: 100%; }
.start-count-team { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.start-count-team.blue h3 { color: var(--ally); }
.start-count-team.red h3 { align-self: flex-end; color: var(--enemy); }
.start-count-team ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
/* Each row holds the room seats' 76px socket (64px portrait), so the line-up reads as the match's champions, not a list
   (both judges, custom-lobby council round 2: 40px faces). */
.start-count-team li { display: flex; align-items: center; gap: 12px; height: 88px; padding: 0 12px; background: var(--plate); border: 2px solid var(--plate-edge); border-left: 4px solid var(--ally); }
.start-count-team.red li { flex-direction: row-reverse; text-align: right; border-left-width: 2px; border-left-color: var(--plate-edge); border-right: 4px solid var(--enemy); }
.start-count-team li.you { background: var(--you-soft); }
.start-count-team li > span:not(.socket) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* Each name light, the player's own gold, and what each seat plays and where under it, as the room's seat reads it. */
.start-count-team li b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 var(--t-m)/1.2 var(--font-body); color: var(--text); }
/* The name and, on the player's own row, the seats' You, toward the row's middle on either side. */
.start-count-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.start-count-team.red .start-count-name { flex-direction: row-reverse; }
.start-count-team li.you b { color: var(--you-light); }
.start-count-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-s); line-height: 1.2; color: var(--text-dim); }
.start-count-team p { margin: 0; padding: 12px; font-size: var(--t-s); color: var(--text-dim); background: var(--plate); border: 2px solid var(--plate-edge); }
.start-count-face { width: 76px; height: 76px; font-size: var(--t-m); }
/* A random seat's "?" as the room's bot seats draw it, in a steel socket, low in its team's colour, not gold (Opus,
   custom-lobby council round 4: gold here, team-tinted in the room). */
.start-count-team.blue { --seat-team: var(--ally); } .start-count-team.red { --seat-team: var(--enemy); }
/* A custom room's random bot: the room's team crest (room.css .bot-crest), at the line-up's size. */
.start-count-face.bot-crest > i { display: block; width: 56px; height: 56px; background: var(--crest) 0 0 / 56px 56px no-repeat, color-mix(in srgb, var(--seat-team) 55%, var(--text-faint)); background-blend-mode: luminosity; -webkit-mask: var(--crest) 0 0 / 56px 56px no-repeat; mask: var(--crest) 0 0 / 56px 56px no-repeat; image-rendering: pixelated; }
.start-count-face.socket.unknown { font-size: var(--t-xl-sm); border-image-source: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png'); 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; }
/* The number is the moment, so it leads the card: Silkscreen at 224px (28px to its pixel), a 140px figure over the
   rows' 88px, where 128px read as modest (Opus, custom-lobby council round 4), on a hard drop in the gold's own shade.
   Each new second pops in with a small overshoot and settles; still where motion is reduced. */
.start-count-number { min-height: 1em; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 224px; line-height: 1; color: var(--you); text-shadow: 0 7px 0 var(--you-edge); }
.start-count-pop { display: inline-block; animation: count-pop 460ms ease-out; }
@keyframes count-pop { 0% { transform: scale(1.3); opacity: 0.35; } 60% { transform: scale(0.95); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
/* Under the number, the time left as a gold bar in a steel well that drains over the five seconds in 2px steps, so time
   passing shows as well as the digit (Opus, custom-lobby council round 6). lobby_start.rs starts it from where the
   countdown stands; where motion is reduced it stands at the whole seconds left (--left), a fifth each. */
.start-count-time { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.start-count-bar { display: block; width: 124px; height: 16px; padding: 4px; background: var(--field); box-shadow: inset 0 0 0 2px var(--steel-line), 0 0 0 2px var(--steel-dark); }
.start-count-bar > i { display: block; width: 100%; height: 100%; background: var(--you); box-shadow: inset 0 2px 0 var(--you-light), inset 0 -2px 0 var(--you-deep); animation: count-drain 5s steps(58, end) both; }
@keyframes count-drain { to { width: 0; } }
/* Cancel: wide, on a solid red face in the steel frame, so it reads as the button anyone presses, not as a focus ring.
   The dialog sits outside .client-shell, so it sets the frame itself. */
.btn.start-cancel { min-width: 0; width: min(420px, 100%); height: 64px; justify-content: center; padding: 0 24px; color: var(--text); font: 400 var(--t-l)/1 var(--font-head); letter-spacing: 3px; text-transform: uppercase; text-shadow: 0 2px 0 #3a0c08; border: 4px solid transparent; border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; border-radius: 0; background: linear-gradient(#d2473a, #a8281d 54%, #7c1a12) padding-box; box-shadow: none; image-rendering: pixelated; cursor: pointer; }
.btn.start-cancel:is(:hover, .virtual-hover) { border-image-source: url('/c/07193ecb182886b98126d5ebe6b4189811e17fbd0f8bc4cb2295069407ec45ca.png'); background: linear-gradient(#e85a4c, #bc3224 54%, #8e2016) padding-box; }
.btn.start-cancel:active { background: linear-gradient(#7c1a12, #a8281d 46%, #d2473a) padding-box; }
.btn.start-cancel:focus-visible { outline: 3px solid var(--you-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .start-count-pop { animation: none; } .start-count-bar > i { animation: none; width: calc(var(--left) * 20%); } }

/* Item planner: the shop's parts at a dialog's size, the same size whatever the search shows (Tyler, 2026-10-27). */
.planner-backdrop { margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #061014dc; padding: var(--s4); }
.planner { width: min(1120px, calc(94 * var(--vw, 1vw))); height: min(700px, calc(88 * var(--vh, 1vh))); display: flex; flex-direction: column; overflow: hidden; }
.planner .panel-head { flex: none; gap: var(--s2); padding-right: var(--s3); }
.planner-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.planner-build { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); border-right: 2px solid var(--line); overflow-y: auto; }
.planner-build :is(h4, p) { margin: 0; }
.planner-slots { list-style: none; margin: var(--s1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.planner-slots li { display: flex; align-items: center; gap: var(--s2); }
.planner-n { width: 16px; flex: none; font-weight: 700; font-size: var(--t-s); color: var(--text-dim); text-align: right; }
.planner-slot { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); padding: var(--s1); background: var(--bg-1); border: 2px solid var(--steel-line); color: var(--text); text-align: left; }
button.planner-slot:is(:hover, .virtual-hover) { border-color: var(--trim); }
.planner-slot .col { flex: 1; min-width: 0; }
.planner-slot b { font-size: var(--t-s); line-height: 1.2; } /* long names take two lines, not an ellipsis */
.planner-x { padding: 0 var(--s2); font-size: var(--t-l); line-height: 1; color: var(--text-dim); }
button.planner-slot:is(:hover, .virtual-hover) .planner-x { color: var(--enemy); }
.planner-slot.empty { border-style: dashed; background: transparent; }
.planner-browse { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 0; }
.planner-split { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.planner-split .filters { overflow-y: auto; scrollbar-width: thin; }
.planner-grid { min-height: 0; overflow-y: auto; scrollbar-width: thin; display: grid; grid-template-columns: repeat(auto-fill, 100px); gap: var(--s3) var(--s2); align-content: start; padding-bottom: var(--s4); }
.planner-grid .tile { width: 100px; }
.planner-grid .tile .nm { font-size: var(--t-s); line-height: 1.2; height: 2.4em; }
.planner-grid .tile:disabled { cursor: default; }
.planner-grid .tile:disabled:not(.owned) { opacity: 0.55; }
.planner-note { margin: calc(-1 * var(--s1)) 0 0; }
@media (max-width: 700px) {
  .planner-backdrop { padding: 8px; }
  .planner { width: 100%; height: min(700px, 94vh); }
  .planner .panel-head { flex-wrap: wrap; }
  .planner-body { display: flex; flex-direction: column; overflow-y: auto; }
  .planner-build { flex: none; overflow: visible; border-right: 0; border-bottom: 2px solid var(--line); }
  .planner-browse { flex: none; min-width: 0; }
  .planner .searchbox { min-width: 0; flex-direction: row; }
  .planner .searchbox input { min-width: 0; width: 100%; }
  .planner-split { display: flex; flex-direction: column; }
  .planner-split .filters { flex-direction: row; flex-wrap: wrap; overflow: visible; }
  .planner-grid { overflow: visible; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .front, .front *, .front *::before, .front *::after { animation: none !important; transition: none !important; }
  .embers { display: none; }
}

/* Results — one full-height column: banner, scrollable content, buttons always visible */
.results-screen { z-index: var(--z-modal); --vw: calc(1vw / var(--client-scale, 1)); --vh: calc(1vh / var(--client-scale, 1)); }
/* From 1100 wide the results column takes the menu client's scale (kit/scale.rs `client_scale`): one 1920-wide layout,
   down and up, on every monitor. Narrower, it keeps the HUD's. The room chat over it follows the same scale. */
@media (min-width: 1100px) {
  .results-screen, body:has(.results-screen) .player-chat { --ui-scale: var(--client-scale, 1); }
  body:has(.results-screen) .player-chat { --vw: calc(1vw / var(--client-scale, 1)); }
}
/* A phone on its side takes the menus' scale too (kit/scale.rs `touch_client_scale`, 0.8 or more), not the HUD's 0.6,
   which drew the results' smallest text at 8 px (mobile council round 0). polish-results.css lays it out for the phone. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .results-screen, html.touch body:has(.results-screen) .player-chat { --ui-scale: var(--client-scale, 1); }
  html.touch body:has(.results-screen) .player-chat { --vw: calc(1vw / var(--client-scale, 1)); }
}
.resview, .res {
  position: absolute;
  inset: 0;
  zoom: var(--ui-scale);
  width: calc(100vw / var(--ui-scale));
  height: calc(100vh / var(--ui-scale));
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5) var(--s7);
}
.result-banner { text-align: center; flex: none; padding: var(--s3) var(--s5); background: linear-gradient(90deg, transparent, #17283acc 25%, #17283acc 75%, transparent); border-bottom: 1px solid #b89a5a; }
.result-banner h1 { font-size: var(--t-hero); margin: 0; letter-spacing: .06em; }
h1.victory, h2.victory { color: var(--you); text-shadow: 0 6px 0 var(--you-edge), 0 0 60px var(--you-glow); }
h1.defeat, h2.defeat { color: #b3c3d8; }
h1.draw, h2.draw { color: var(--text-dim); }
.resfoot { flex: none; gap: var(--s4); padding-top: var(--s3); border-top: 2px solid var(--line); }
.results-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.results-tabs .tab { border: 1px solid #637784; background: #142334; padding: var(--s2) var(--s4); }
.results-tabs .tab.on { border-color: #d6b877; color: #f2d698; background: #273a48; }
.result-you { margin-left: 6px; color: #f2d698; font-size: var(--t-xs); }
.result-bot { margin-left: 2px; padding: 1px 6px; font-size: var(--t-xs); }
.results-unavailable { color: var(--text-dim); text-align: center; }
.silver-earned { flex: none; display: flex; flex-wrap: wrap; gap: var(--s5); align-items: baseline; padding: var(--s3) var(--s5); background: #17283a; border-left: 3px solid var(--silver); }
.silver-earned h3 { margin: 0; font-size: var(--t-s); }
.silver-earned ul { display: flex; flex-wrap: wrap; gap: var(--s5); margin: 0; padding: 0; list-style: none; }
.silver-earned .silver-progress { flex-basis: 100%; gap: var(--s2) var(--s5); }
.silver-unlock { display: flex; gap: var(--s2); align-items: center; }
.silver-progress .goal { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.silver-progress .goal p { margin: 0; }
.wrap { flex-wrap: wrap; }
.table-wrap { overflow: auto; min-height: 0; flex: 1; }
.rtable { width: 100%; min-width: 980px; border-collapse: collapse; font-size: var(--t-s); background: #101b29; }
.rtable th { text-align: left; font-size: var(--t-xs); color: var(--text-dim); padding: var(--s2) var(--s3); border-bottom: 2px solid var(--line); font-weight: 700; position: sticky; top: 0; background: var(--bg-0); }
.rtable td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtable tr.you td { background: var(--you-soft); }
.rtable tr.you td:first-child { box-shadow: inset 4px 0 0 var(--you); }
.rtable .sep td { padding: var(--s2) var(--s3); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.12em; border-bottom: 2px solid var(--line); background: #1b3041; }
.dbar { display: flex; align-items: center; gap: var(--s2); }
.dbar i { display: block; height: 10px; background: var(--physical); }
.graph { padding: var(--s4); flex: 1; min-height: 0; overflow: auto; }
.graph-host { margin-top: var(--s3); }
.graph-host .u-legend { color: var(--text-dim); font-size: var(--t-xs); }

.tstart:focus-visible { outline: 2px solid var(--you); outline-offset: -8px; }

/* The match is the spotlight. Keep names and controls off the centre of the fight. */
.potg { position:fixed; inset:0; display:flex; flex-direction:column; justify-content:space-between; pointer-events:none; color:#f4ead5; z-index:35; }
.potg header { padding:clamp(18px,3vw,40px); background:linear-gradient(#080d18e8,transparent); }
.potg-eyebrow { font-family:Silkscreen,monospace; font-size:clamp(17px,2.4vw,30px); color:#efd18c; text-shadow:0 2px 0 #080d18; }
.potg-credit { display:flex; align-items:center; gap:16px; margin-top:14px; }
.potg-name { font-size:clamp(22px,3vw,36px); font-weight:700; }
.potg-detail { color:#d3ccbb; font-size:14px; }
.potg-credit p { margin:5px 0 0; color:#efd18c; }
.potg footer { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; padding:16px 20px; background:linear-gradient(#142335ed,#080d18f5); border-top:1px solid #a98e58; pointer-events:auto; }
@media(max-width:600px) { .potg footer {padding:12px;gap:8px} .potg-credit {gap:10px} }
.potg-outcome { font-size:13px; text-transform:uppercase; letter-spacing:.14em; color:#d3ccbb; margin-bottom:8px; }
@media(max-width: 1000px) {
  .res { overflow-y: auto; height: calc(100vh / var(--ui-scale)); gap: var(--s3); padding: var(--s3); }
  .res .table-wrap { flex: 1 0 220px; }
  .resfoot { flex-wrap: wrap; }
}

/* Let the result land, hold it, then reveal the first play. Controls always stay usable. */
.potg-result { --result:#efcf81; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; background:radial-gradient(ellipse at center,#233957dd,#080d18ed 75%);  }
.potg-result span { font-family:Silkscreen,monospace; font-size:clamp(42px,8vw,108px); color:var(--result); text-transform:uppercase; text-shadow:0 4px #080d18,0 0 40px #dfb95c55; animation:potg-result-arrive 500ms cubic-bezier(.16,1,.3,1) both; }
.potg-result i { display:block; width:min(60vw,540px); height:3px; margin-top:20px; background:linear-gradient(90deg,transparent,var(--result),transparent); transform-origin:center; animation:potg-rule 650ms 120ms both; }
.potg-result.defeat { --result:#aebed1; background:radial-gradient(ellipse at center,#32252fdd,#080d18ed 75%); }
.potg-result.defeat span { text-shadow:0 4px #080d18; animation:potg-defeat-arrive 650ms ease-out both; }
.potg-result.draw { --result:#d5dedc; background:radial-gradient(ellipse at center,#30403fdd,#080d18ed 75%); }
.potg-result.draw span { text-shadow:0 4px #080d18; }
.potg-intro header { visibility:hidden; }
.potg-count { margin-left:16px; color:#d3ccbb; font-size:14px; }
@keyframes potg-result-arrive { from {opacity:0;transform:scale(.88) translateY(12px)} to {opacity:1;transform:none} }
@keyframes potg-defeat-arrive { from {opacity:0;transform:translateY(-8px)} to {opacity:1;transform:none} }
@keyframes potg-rule { from {opacity:0;transform:scaleX(.15)} to {opacity:1;transform:scaleX(1)} }
.potg-result.revealing { animation:potg-result-away 400ms ease-out both; }
.potg-result small {margin-top:24px;color:#d3ccbb;font-size:14px}
.potg footer {position:relative;z-index:2}
@keyframes potg-result-away { from {opacity:1} to {opacity:0} }
@media(prefers-reduced-motion:reduce) { .potg-result,.potg-result.revealing,.potg-result span,.potg-result i {animation:none} }

/* The title scene under the signed-in shell (client.css holds the shell itself). The sign-in panel shows from the first
   load, before the click that allows sound; so do Settings and the version line beside it (Ibara walk, 28 October 2026:
   they showed only after signing out). */
.tscene.loading > * { visibility: visible; }
.tscene.opening .tmenu { animation: none; }

/* Room and match handoff: labels supplement colour and focus stays inside clipped panels. */
.front :is(button, input, select):focus-visible, .results-screen button:focus-visible, .potg button:focus-visible { outline: 3px solid var(--you-light); outline-offset: -3px; }
.start-countdown::backdrop { background: #061014c8; }
/* The line-up before a match (showcase.rs): both teams facing each other, lane against lane, each champion standing on
   the banner its player chose. It is the loading screen (loading.rs), over the whole window from a match's start until
   the player is in it, for at least the match's five-second opening, so every player has the same time to look at the
   cards (Tyler, 11 November 2026: "so that people can showcase their banners and everyone can look at their banners").
   A card is banner-shaped and shows the art whole. */
/* `#ui` lets clicks through to the arena once a match is in play (pointer-events: none); the line-up stands over that
   match during its opening, so it takes them back, or its Leave did nothing from the room's start (Dell recording and
   headless probe of 95ff82bfa: the click landed on <html>). */
dialog.loading-lineup { pointer-events: auto; }
dialog.loading-lineup { position: fixed; inset: 0; width: calc(100 * var(--vw, 1vw)); height: calc(100 * var(--vh, 1vh)); max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; color: var(--text); background: var(--bg-0); }
/* The dialog itself takes focus as it opens, so a key pressed while it loads never presses Leave. */
dialog.loading-lineup:focus { outline: none; }
/* The line-up is drawn at the window's own size, outside the menu client's zoomed frame (client.css), both as Quick
   play's old dialog and on the old loading screen (measured on the merged preview, 12 November 2026). Its sizes are written in
   the frame's --vw and --vh, which are the window's units outside it, and its steps read its own height, so they hold
   wherever it is drawn. */
.showcase { position: absolute; inset: 0; overflow: hidden; container: showcase / size; --card-h: 200px; --card-gap: 16px; --fig: 1; }
.showcase-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, calc(2.2 * var(--vh, 1vh)), 26px); padding: clamp(12px, calc(3 * var(--vh, 1vh)), 40px) clamp(16px, calc(5 * var(--vw, 1vw)), 110px); }
.showcase-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: clamp(12px, calc(2 * var(--vw, 1vw)), 36px); }
/* Each heading on its own plate: the night scene's moon stood behind "RED TEAM" in a normal window (Dell, final check of e5e8f9083). */
.showcase-side { margin: 0; padding: 8px 14px; color: var(--ally); font: 400 var(--t-xl-sm)/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 3px 0 #000; background: var(--panel-flat); border-bottom: 3px solid var(--ally); }
.showcase-side.red { color: var(--enemy); text-align: right; border-color: var(--enemy); }
.showcase-vs { color: var(--you-light); font: 400 72px/0.9 var(--font-head); text-shadow: 0 4px 0 #000, 0 0 24px rgb(244 196 64 / 45%); animation: strike 420ms cubic-bezier(.2, 1.4, .4, 1) 100ms both; }
.showcase-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 clamp(8px, calc(1.4 * var(--vw, 1vw)), 26px); }
.showcase-team, .showcase-lanes { display: flex; flex-direction: column; gap: var(--card-gap); margin: 0; padding: 0; list-style: none; }
/* Each lane's name stands between the two cards that play it, on a rule that joins them. */
.showcase-lanes li { display: flex; align-items: center; gap: 10px; height: var(--card-h); min-width: 9.5em; color: var(--you-light); font: 400 var(--t-s)/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
.showcase-lanes li:not(:empty)::before, .showcase-lanes li:not(:empty)::after { content: ''; flex: 1; height: 2px; background: var(--ally); opacity: .7; }
.showcase-lanes li:not(:empty)::after { background: var(--enemy); }
/* A card: the seat's team colour on its outer edge and, with no banner chosen, across its face. Blue reads left to
   right and red is its mirror, so the champions face each other across the lanes. */
.showcase-card { position: relative; isolation: isolate; display: flex; align-items: stretch; gap: clamp(8px, calc(1.2 * var(--vw, 1vw)), 22px); height: var(--card-h); padding: 0 clamp(10px, calc(1.4 * var(--vw, 1vw)), 26px); overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ally) 24%, var(--bg-1)), var(--bg-1) 72%);
  box-shadow: inset 0 0 0 2px var(--steel-line), inset 6px 0 0 var(--ally), 0 8px 22px rgb(0 0 0 / 50%);
  animation: showcase-in 340ms cubic-bezier(.2, .9, .3, 1) calc(var(--order) * 90ms + 80ms) both; }
.showcase-team.red .showcase-card { flex-direction: row-reverse; background: linear-gradient(270deg, color-mix(in srgb, var(--enemy) 24%, var(--bg-1)), var(--bg-1) 72%);
  box-shadow: inset 0 0 0 2px var(--steel-line), inset -6px 0 0 var(--enemy), 0 8px 22px rgb(0 0 0 / 50%); animation-name: showcase-in-red; }
.showcase-card.you { box-shadow: inset 0 0 0 2px var(--you), inset 6px 0 0 var(--you), 0 0 18px rgb(244 196 64 / 28%), 0 8px 22px rgb(0 0 0 / 50%); }
.showcase-team.red .showcase-card.you { box-shadow: inset 0 0 0 2px var(--you), inset -6px 0 0 var(--you), 0 0 18px rgb(244 196 64 / 28%), 0 8px 22px rgb(0 0 0 / 50%); }
/* A seat not yet known (the line-up drawn before the room answered) keeps its card's place, empty, until it arrives. */
.showcase-card.empty { opacity: .5; }
@keyframes showcase-in { from { opacity: 0; transform: translateX(-32px); } }
@keyframes showcase-in-red { from { opacity: 0; transform: translateX(32px); } }
/* The banner fills its card, darkest under the name and clear at the far end, and unfurls after the card arrives. */
.showcase-card .match-ground { inset: 2px 2px 2px 8px; -webkit-mask-image: none; mask-image: none; animation: banner-unfurl 420ms steps(11, end) calc(var(--order) * 90ms + 300ms) both; }
.showcase-card .match-ground::after { background: linear-gradient(90deg, rgb(10 14 30 / 70%), rgb(10 14 30 / 48%) 46%, rgb(10 14 30 / 6%)); }
.showcase-team.red .showcase-card .match-ground { inset: 2px 8px 2px 2px; }
.showcase-team.red .showcase-card .match-ground::after { background: linear-gradient(270deg, rgb(10 14 30 / 70%), rgb(10 14 30 / 48%) 46%, rgb(10 14 30 / 6%)); }
/* showcase.rs fits the idle to 132 by 150 (FIGURE_BOX); a shorter window scales the whole figure from its feet. */
.showcase-figure { flex: none; align-self: flex-end; display: grid; place-items: end center; width: calc(132px * var(--fig)); height: calc(150px * var(--fig)); margin-bottom: 8px; }
.showcase-figure > * { transform: scale(var(--fig)); transform-origin: 50% 100%; }
.showcase-figure > .idle-fit { width: 132px; height: 150px; flex: none; filter: drop-shadow(0 4px 0 rgb(0 0 0 / 55%)); }
.showcase-team.red .showcase-figure > * { transform: scale(calc(-1 * var(--fig)), var(--fig)); }
/* The idle is 132 by 150 at any size; a shorter window shrinks its box (--fig), and laid out in the box it was placed
   from the box's top and scaled toward its own feet, so it stood below the card: at 1024x600 only a speck showed, and at
   1366x768 its feet were cut (headless probe of 95ff82bfa). It stands on the box's foot instead, scaled from there. At
   --fig 1 the box is the idle's own size, so nothing moves. */
.showcase-figure { position: relative; }
.showcase-figure > .idle-fit { position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; }
.showcase-team.red .showcase-figure > .idle-fit { transform: translateX(calc(132px * var(--fig))) scale(calc(-1 * var(--fig)), var(--fig)); }
.showcase-random { width: 96px; height: 96px; font-size: var(--t-xl); }
.showcase-who { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; min-width: 0; text-shadow: 0 2px 0 rgb(0 0 0 / 85%), 0 0 12px rgb(0 0 0 / 65%); }
.showcase-team.red .showcase-who { align-items: flex-end; text-align: right; }
.showcase-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font: 700 var(--t-xl-sm)/1.1 var(--font-body); overflow-wrap: anywhere; }
.showcase-team.red .showcase-name { flex-direction: row-reverse; }
.showcase-name .badge-you, .showcase-bot { font: 700 var(--t-xs)/1.4 var(--font-body); text-shadow: none; }
.showcase-bot { padding: 1px 6px; }
.showcase-card .match-identity-title { padding: 0; background: none; font-size: var(--t-m); line-height: 1.2; }
.showcase-champion { color: var(--text); font-size: var(--t-m); line-height: 1.2; opacity: .86; }
/* Under the teams, the same four lines throughout so nothing moves: what is happening, the count, the bar and Leave. */
.showcase-foot { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min(440px, calc(90 * var(--vw, 1vw))); padding: 14px 30px 16px; text-align: center; background: var(--panel-flat); box-shadow: inset 0 0 0 1px var(--steel-line), 0 8px 22px rgb(0 0 0 / 45%); }
.showcase-status { margin: 0; color: var(--trim); font: 400 var(--t-xs)/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.showcase-count { margin: 0; min-height: 1em; color: var(--you-light); font: 400 var(--t-xl)/1 var(--font-head); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 #000; }
.showcase-bar { width: 100%; height: 8px; background: var(--bg-0); box-shadow: inset 0 0 0 1px var(--steel-line); }
.showcase-bar > i { display: block; height: 100%; background: var(--trim); transition: width 220ms ease-out; }
/* A shorter window keeps three cards a side by drawing them smaller. */
@container showcase (max-height: 940px) { .showcase-content { --card-h: 150px; --card-gap: 12px; --fig: .8; } .showcase-vs { font-size: 56px; } .showcase-name { font-size: var(--t-l); } }
@container showcase (max-height: 760px) { .showcase-content { --card-h: 118px; --card-gap: 8px; --fig: .64; } .showcase-vs { font-size: 44px; } .showcase-card .match-identity-title, .showcase-champion { font-size: var(--t-s); } }
/* 1024x600: the line-up lost its team headings and its foot off the top and bottom (browser walk of 652f6ac9d). The
   cards, the figure and the foot fit a window this short, and what still cannot fit scrolls from the top. */
@container showcase (max-height: 640px) {
  .showcase-content { --card-h: 92px; --card-gap: 6px; --fig: .5; justify-content: safe center; overflow-y: auto; gap: 8px; padding-block: 10px; }
  .showcase-vs { font-size: 34px; } .showcase-side { font-size: var(--t-l); padding: 4px 10px; }
  .showcase-name { font-size: var(--t-m); }
  .showcase-foot { gap: 6px; padding: 8px 24px 10px; } .showcase-count { font-size: var(--t-l); }
}
@media (max-width: 1099.98px) { .showcase-name { font-size: var(--t-l); } .showcase-lanes li { min-width: 7em; font-size: var(--t-xs); } }
/* A line-up shown again in the same match (the arena reloading): nothing arrives twice. */
.showcase.settled .showcase-card, .showcase.settled .showcase-vs, .showcase.settled .match-ground { animation: none; }
@media (prefers-reduced-motion: reduce) { .showcase *, .showcase *::before, .showcase *::after { animation: none !important; transition: none !important; } }
/* The clip's progress bar is information, not decoration: it keeps its steady fill. */
@media(prefers-reduced-motion:reduce) { .results-screen *, .potg *:not(.potg-progress > i) { animation: none !important; transition: none !important; } }

.planner-backdrop::backdrop { background: #061014dc; }

.freeze-menu .tscene, .freeze-menu .tscene *, .freeze-menu .tscene *::before, .freeze-menu .tscene *::after { animation-play-state: paused !important; transition: none !important; }

.challenge-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.challenge-share label { display: flex; align-items: center; gap: 6px; }
.challenge-share input { min-width: 16rem; max-width: 100%; }
/* The player's challenge on the results, at the far end of the details' tabs' row (Tyler, 19 November 2026: "we need
   to make it like a little more obvious that you can do it after a game. It kinda blends in too much"): a plate on the
   scoreboard's frame as the tabs are, lit gold along its foot and left edge like the chosen tab, naming the play before
   its buttons. Until then it was one dim outline button among six in the footer. It adds no row: the tabs' row had the
   room. In a narrow window the play's name gives way first, then the plate takes a row of its own. */
.results-screen .res-tabrow { position: relative; z-index: 1; flex: none; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin-bottom: -14px; }
.results-screen .res-tabrow > .results-tabs { margin-bottom: 0; }
.results-screen .res-tabrow > .res-challenge { flex: 0 1 auto; margin-left: auto; min-width: 0; padding: 4px 6px 4px 14px;
  background: var(--bg-2); border: 1px solid var(--trim-dark); border-left: 3px solid var(--you); border-bottom: 2px solid var(--you); }
.results-screen .res-tabrow .challenge-share { flex-wrap: nowrap; gap: 8px; min-width: 0; }
.results-screen .res-tabrow .res-challenge .btn { flex: none; min-height: 40px; padding-block: 0; font-size: var(--t-s); }
.results-screen .res-tabrow .res-challenge .btn.challenge-make { color: var(--you-light); border-color: var(--you);
  background: color-mix(in srgb, var(--you) 16%, var(--steel-flat)); }
.results-screen .res-tabrow .res-challenge .btn.challenge-make:is(:hover, .virtual-hover, :focus-visible):not(:disabled) { border-color: var(--you-light);
  background: color-mix(in srgb, var(--you) 26%, var(--steel-flat)); }
.results-screen .res-tabrow .challenge-share > p { color: var(--you-light); }
.results-screen .res-tabrow .res-challenge .clip-status { height: 40px; }
.results-screen .challenge-play { display: flex; flex: 0 1 auto; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; margin-right: 8px; }
.results-screen .challenge-play-kicker { color: var(--trim); font: 400 var(--t-xs)/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.results-screen .challenge-play-title { max-width: 24em; overflow: hidden; color: var(--text); font-size: var(--t-s); line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; }
/* A small window's tabs sit 8 px into the frame, not 14 (polish-results.css): the row with them. */
@media (max-width: 1099.98px) and (max-height: 760px) { .results-screen .res-tabrow { margin-bottom: -8px; } }

/* A friend's Invite on a phone (friends.rs `invite_button`): the + carries its word, as Invite and Add friend do in the
   column's headings (client.css), so it says what it adds beside Message and More (mobile council round 4, Opus). */
html.touch .friends-row .friends-actions .btn.icon:has(> .icon-word) { display: inline-flex; align-items: center; gap: 6px; padding-inline: 10px; }
html.touch .friends-row .friends-actions .icon-word { display: inline; }
