/* Home and the path into a match: moonlit scenes, clear decisions and the player's own champions. */
/* The hero and its cards take what the champion row leaves of the window, at least 520px, so a 1080p page is full and
   a short window scrolls (client council round 11). */
.home { height: auto; min-height: 100%; grid-template-columns: minmax(0, 1.15fr) minmax(440px, 1fr); grid-template-rows: minmax(520px, 1fr) auto; align-content: stretch; gap: 18px; }
/* The copy holds the hero's top left, so whoever stands in the doorway has its floor below the copy (round 18). */
.home-hero { min-height: 520px; isolation: isolate; align-items: flex-start; }
.home-hero-art { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; opacity: .82; }
.home-hero::after { background: linear-gradient(90deg, var(--bg-0) 0%, var(--scrim-strong) 37%, transparent 85%), linear-gradient(0deg, var(--scrim-strong), transparent 45%); }
.home-hero-copy { z-index: 3; gap: 14px; max-width: 630px; padding: 28px clamp(24px, calc(4 * var(--vw, 1vw)), 56px); }
.home-hero-title { max-width: 9em; font-size: var(--t-banner); line-height: 1.04; text-wrap: balance; }
.home-hero-lead { color: var(--text); }
.home-hero-actions { gap: 10px; margin-top: 4px; }
.home-hero-actions .btn { min-height: 48px; }
.home-hero-champion { position: absolute; z-index: 2; top: 14px; right: 9%; bottom: 8px; width: 28%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.home-hero-champion > .spr { max-width: 100%; }
/* With no lead saved, the first match's three stand side by side on the doorway's floor under the copy: the first a
   step in front between the other two, each of those a step back, none hiding another and none in shadow (client
   council round 18: the Knight hid the Ranger and pressed the Cleric behind it; round 17: an empty doorway). Their
   doorway is the hero's floor below the copy, in the hero's flow and a size container (`home-stage`), so the party can
   never meet the copy: in a shorter hero, or when a match to rejoin adds actions, the three shrink together to fit.
   Round 20 (Opus): at about 40% of the hero's height the three were too small to lead it, so the copy gives them its
   height: the title takes one line across the hero (it wraps only where it cannot fit) and the copy's rows sit closer,
   leaving the floor about 300px of the hero's 540px at 1920x1080. */
.home-hero:has(> .home-hero-champion > .home-hero-trio) { flex-direction: column; }
.home-hero:has(> .home-hero-champion > .home-hero-trio) > .home-hero-copy { max-width: none; gap: 12px; padding-top: 24px; padding-bottom: 4px; }
.home-hero:has(> .home-hero-champion > .home-hero-trio) .home-hero-title { max-width: none; }
.home-hero-champion:has(> .home-hero-trio) {
  position: relative; inset: auto; order: 2; flex: 1 1 0; align-self: stretch; width: auto; min-height: 0;
  margin: 0 2.5% 8px 0; justify-content: flex-end; container: home-stage / size;
}
.home-hero-trio { display: flex; align-items: flex-end; gap: 18px; transform-origin: 100% 100%; }
.home-hero-trio-figure { position: relative; z-index: 1; display: flex; align-items: flex-end; flex: none; }
.home-hero-trio-figure[data-place="left"] { order: 1; margin-bottom: 18px; }
.home-hero-trio-figure[data-place="front"] { order: 2; }
.home-hero-trio-figure[data-place="right"] { order: 3; margin-bottom: 18px; }
/* Each stands on its own pool of night shadow, so the three read as standing on the floor, not pasted over it. */
.home-hero-trio-figure::after { content: ''; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -6px; height: 12px; border-radius: 50%; background: rgb(6 8 18 / 62%); }
/* The front figure is 300px (home.rs `TRIO`, which checks these steps): below a 300px floor the party scales so it
   stays within the floor's height, in 20px steps, each scale times 300px no taller than the step's floor. */
@container home-stage (max-height: 299.98px) { .home-hero-trio { transform: scale(.93); } }
@container home-stage (max-height: 279.98px) { .home-hero-trio { transform: scale(.86); } }
@container home-stage (max-height: 259.98px) { .home-hero-trio { transform: scale(.8); } }
@container home-stage (max-height: 239.98px) { .home-hero-trio { transform: scale(.73); } }
@container home-stage (max-height: 219.98px) { .home-hero-trio { transform: scale(.66); } }
@container home-stage (max-height: 199.98px) { .home-hero-trio { transform: scale(.6); } }
@container home-stage (max-height: 179.98px) { .home-hero-trio { transform: scale(.53); } }
@container home-stage (max-height: 159.98px) { .home-hero-trio { transform: scale(.46); } }
@container home-stage (max-height: 139.98px) { .home-hero-trio { transform: scale(.4); } }
@container home-stage (max-height: 119.98px) { .home-hero-trio { transform: scale(.33); } }
.home-party { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; max-width: 100%; color: var(--text-dim); font-size: var(--t-s); }
.home-party > span:last-child { overflow-wrap: anywhere; }
/* All modes beside Open Quick play: a quiet text link, so the gold button is the hero's one action (council round 14). */
.home-modes-link { align-self: center; min-height: 40px; padding: 8px 6px; color: var(--text-dim); background: none; border: 0; font: 700 var(--t-m)/1.2 var(--font-body); cursor: pointer; }
.home-modes-link::after { content: ' →' / ''; }
.home-modes-link:hover { color: var(--you-light); text-decoration: underline; text-underline-offset: 4px; }
.home-modes-link:focus-visible { outline: 3px solid var(--you-light); outline-offset: 2px; }
/* Two rows beside the hero. The goal and last match hold a line or two, so their row is short; the choices and the news
   take the rest, so no card is mostly empty and each headline has room (council round 12). The first row's height is
   fixed, so no card moves while account data loads. */
.home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 224px minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
/* The support cards rank below the hero: a steel edge, not the hero's forged gold frame (Sol, round 11); the short gold
   accent keeps them in the family. */
.home-card { position: relative; isolation: isolate; height: auto; min-height: 0; gap: 10px; padding: 16px; overflow: hidden; background: linear-gradient(140deg, var(--bg-2), var(--bg-1) 75%) padding-box; }
.home-card.ms { padding: 18px 20px; border: 2px solid var(--steel-line); border-image: none; box-shadow: 0 0 0 1px var(--steel-dark), inset 0 1px 0 var(--plate-sheen), 0 6px 18px var(--shadow); }
.home-card::before { content: ''; display: block; width: 42px; height: 3px; flex: none; background: var(--trim); }
.home-card .kit-label { color: var(--you-light); }
.home-card-head { flex-wrap: wrap; gap: 2px 12px; min-height: 24px; }
.home-card-head .btn.quiet { min-height: 0; padding: 2px 0; font-size: var(--t-s); }
/* The News card's head: Join the Discord (a link out, in a new tab) beside All news (Tyler, 11 November 2026). */
.home-news-links { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.home-news-links a.btn { text-decoration: none; }
.home-news-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; pointer-events: none; }
.home-empty-match { display: flex; align-items: center; gap: 14px; min-width: 0; margin: auto 0; }
.home-empty-match img { width: 64px; height: 64px; flex: none; image-rendering: pixelated; }
.home-empty-match p + p { margin-top: 6px; }
/* Home's Play card (home.rs `PlayCard`): the setup in one line beside its champion's portrait, then the gold Play that
   starts the match from Home, and the platform's sentence under it in a line that keeps its place. */
.home-play { gap: 12px; }
.home-setup { display: flex; align-items: center; gap: 16px; min-height: 96px; margin: auto 0 0; }
.home-setup .socket { flex: none; width: 96px !important; height: 96px !important; }
.home-setup .socket > img { width: 84px !important; height: 84px !important; }
.home-setup-line { min-width: 0; font: 700 var(--t-m)/1.3 var(--font-body); overflow-wrap: anywhere; }
.home-play-now { display: flex; min-height: 64px; }
.home-play-now > .btn.qp-play { width: 100%; height: 64px; }
.home-play-now > :is(.qp-wait, .qp-follow) { width: 100%; min-height: 64px; padding: 6px 12px; font-size: var(--t-s); }
.home-play-problem { min-height: 20px; margin: 0 0 auto !important; font-size: var(--t-s); line-height: 20px; }
/* All four cards keep their grid slots while account data loads or changes. A match goal is its name and a reward or
   progress chip; a Store goal is its picture beside its progress, its line, Buy and a quiet Open Store. */
.home-goal { flex-flow: row wrap; align-content: flex-start; align-items: center; gap: 8px 14px; }
.home-goal > * { flex: 1 0 100%; min-width: 0; }
.home-goal::before { flex: 0 0 100%; max-width: 42px; }
.home-goal > button, .home-goal > .home-card-foot { flex: 0 0 auto; }
/* A Store goal's Open Store sits in the heading row, as News's All news does, and its picture stands beside its line
   with the Silver bar under it, so the picture, a line of up to three rows, Buy and a refusal under it all fit the
   card's fixed 224px row (11 November 2026: Open Store and a refusal spilled out of it at 1920x1080). */
.home-goal:has(> .home-goal-store) > h3 { flex: 1 1 auto; }
.home-goal > .home-goal-store { flex: 0 0 auto; min-height: 0; padding: 2px 0; color: var(--you-light); font-size: var(--t-s); }
.home-goal-visual { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-goal > .home-goal-visual { flex: 0 0 72px; align-self: flex-start; }
.home-goal-visual .home-goal-item { width: 72px; height: 36px; }
.home-goal-visual progress { flex: none; width: 100%; min-width: 0; height: 8px; }
.home-goal:has(> .home-goal-visual) > .goal-line { flex: 1 1 calc(100% - 86px); align-self: flex-start; }
.home-goal .goal-line { color: var(--text); font: 700 var(--t-m)/1.3 var(--font-body); overflow-wrap: anywhere; }
.home-goal-reward { margin: 0; }
.home-goal-reward .kit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: var(--t-s); }
/* A match goal's reward sits beside the heading with the Silver mark from the bar; its count is a bar under the
   name and the newcomer journey a row of marks, so the card is full of the goal's real progress (council round 14). */
.home-goal:has(> .home-goal-reward) > h3 { flex: 1 1 auto; }
.home-goal > .home-goal-reward { flex: 0 0 auto; }
.home-goal-reward .kit-chip::before {
  content: ''; flex: none; width: 10px; height: 10px; background: var(--silver);
  box-shadow: inset 2px 2px 0 var(--silver-light), inset -2px -2px 0 var(--silver-deep);
  clip-path: polygon(2px 0, 8px 0, 10px 2px, 10px 8px, 8px 10px, 2px 10px, 0 8px, 0 2px);
}
.home-goal-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-goal-track progress { flex: 1 1 auto; width: auto; min-width: 0; height: 10px; border: 1px solid var(--line-strong); }
.home-goal-track progress::-webkit-progress-bar { background: var(--bg-0); }
.home-goal-track b { flex: none; color: var(--text); font: 700 var(--t-s)/1 var(--font-body); font-variant-numeric: tabular-nums; }
.home-goal-journey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--text-dim); font-size: var(--t-s); }
.home-goal-steps { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.home-goal-steps li { width: 18px; height: 6px; background: var(--bg-0); box-shadow: inset 0 0 0 1px var(--line-strong); }
.home-goal-steps li.done { background: var(--you-deep); box-shadow: none; }
.home-goal-steps li.current { background: var(--bg-0); box-shadow: inset 0 0 0 1px var(--you-light); }
.home-goal .pages-note:empty { display: none; }
.home-goal .pages-note:not(:empty) { flex: 1 0 100%; min-width: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.home-goal:has(.pages-note:not(:empty)) { gap: 2px; }
.home-goal:has(.pages-note:not(:empty)) .home-goal-visual { display: none; }
.home-goal:has(.goal-gain) .home-goal-visual { display: none; }
.home-card-foot { flex-wrap: wrap; }
.home-last { flex: 1 1 auto; align-items: center; }
.home-last .socket { width: 64px !important; height: 64px !important; }
.home-last .socket > img { width: 52px !important; height: 52px !important; }
.home-last-text { flex: 1; gap: 3px; overflow-wrap: anywhere; }
.home-last-text p:not(.home-result) { font-size: var(--t-s); line-height: 1.2; }
.home-result { font-size: var(--t-m); }
.home-headlines { overflow: visible; }
/* Each entry its own row: the date, then the title, with a rule and room between entries (Sol, rounds 11 and 12). Each
   opens its notes, the banner's old patch link (client council round 17), so a title lights and underlines like a link. */
.home-headlines li { padding: clamp(8px, calc(1.5 * var(--vh, 1vh)), 16px) 0; border-bottom: 1px solid var(--steel-line); }
.home-headline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; padding: 0; color: inherit; background: none; border: 0; font: inherit; line-height: 1.25; text-align: left; cursor: pointer; }
.home-headline:is(:hover, .virtual-hover) > span:last-child { color: var(--you-light); text-decoration: underline; text-underline-offset: 4px; }
.home-headline:focus-visible { outline: 3px solid var(--you-light); outline-offset: 2px; }
.home-headlines li:first-child { padding-top: 2px; }
.home-headlines li:last-child { border-bottom: 0; }
.home-headlines .kit-chip { padding: 0; border: 0; background: transparent; color: var(--text-dim); font-size: var(--t-s); font-weight: 400; }
.home-headline > span:last-child { min-width: 0; color: var(--text); font: 700 var(--t-m)/1.25 var(--font-body); overflow-wrap: anywhere; }
/* The champion row: every champion's portrait, name and class, each opening its page. Quieter than the cards above.
   A row takes as many 120px tiles as fit (Tyler, 18 November 2026: "figure out the grid", when ten a row left the
   Paladin and the Death Knight alone on a third row below the fold): eleven at 1920x1080, so 22 stand in two rows. */
.home-roster { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; background: var(--panel-flat); border: 1px solid var(--steel-line); box-shadow: inset 0 0 0 1px var(--steel-dark); }
.home-roster-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.home-roster-head .kit-label { color: var(--you-light); }
.home-roster-head .dim { margin: 0; color: var(--text-dim); font-size: var(--t-s); }
.home-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.home-roster-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-width: 0; padding: 8px 4px; color: var(--text); background: none; border: 1px solid transparent; font: inherit; text-align: center; cursor: pointer; }
/* Each name and class a step above caption size (client council round 19, Sol: small role labels lost comfort). */
.home-roster-tile > b { font: 700 var(--t-name)/1.15 var(--font-body); overflow-wrap: anywhere; }
.home-roster-tile > span:last-child { color: var(--text-dim); font-size: var(--t-s); line-height: 1.2; }
.home-roster-tile:is(:hover, .virtual-hover, :focus-visible) { border-color: var(--trim); background: var(--face-steel); }
.home-roster-tile:is(:hover, .virtual-hover, :focus-visible) > .socket { border-image-source: url('/c/4054d4a674bdb554cd1c93aea296707690854c1e934830690e4178df43ab41eb.png'); }
.home-roster-tile:focus-visible { outline: 3px solid var(--you-light); outline-offset: 2px; }
@media (max-width: 1099.98px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .home-hero { min-height: 340px; }
  .home-hero-champion:has(> .home-hero-trio) { min-height: 200px; }
  .home-roster-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
.home-state { justify-content: flex-start; }
.home-state .btn { align-self: flex-start; }

/* Play cards put the arena first; Training stays visible without competing with the main mode: a steel frame, so the
   gold-framed Quick play card is the one recommended mode (client council round 13). */
.training-row { margin-bottom: 10px; padding: 8px 18px; background: var(--panel-flat) padding-box; border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; }
.training-row-text b { color: var(--text); }
.play-page .mode-grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); grid-auto-columns: auto; justify-content: stretch; gap: 20px; margin-top: 12px; }
.mode-card { box-shadow: 0 8px 24px var(--shadow); }
.mode-card.lead { box-shadow: 0 0 0 1px var(--trim), 0 8px 28px var(--shadow); }
.mode-art::after { background: linear-gradient(0deg, var(--bg-0), transparent 65%); }
.mode-body { gap: 10px; background: var(--panel-steel); }
.mode-body > .kit-label { color: var(--text-dim); }
.mode-facts li::before { transform: rotate(45deg); }
/* The modes after the lead wear steel, so the gold-framed recommended mode stands apart (client council round 11). */
.mode-card:not(.lead) { border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; }
.mode-card:not(.lead) .mode-art { border-bottom-color: var(--steel-line); }
.mode-card:not(.lead) .mode-name { color: var(--text); }

@media (max-width: 1099.98px) {
  .home-hero-copy { max-width: 560px; }
  .home-hero-title { font-size: var(--t-xl); }
  .home-hero-champion { right: 5%; }
  .home-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); grid-template-rows: 272px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .qp-tile .socket, .qp-tile-name { transition: color 120ms ease, box-shadow 120ms ease; }
}

/* A short, narrow window (1024x600): the hero gives up its doorway so Quick play's card, with its Play, is in the
   window without scrolling (browser walk of 652f6ac9d: Play was below the fold). */
@media (max-width: 1099.98px) and (max-height: 700px) {
  .home-hero { min-height: 0; }
  .home-hero-champion:has(> .home-hero-trio) { display: none; }
  .home-hero-copy { gap: 6px; padding-block: 10px; }
  .home-hero-actions .btn { min-height: 40px; }
  .home-hero-title { font-size: var(--t-l); }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .home-cards > .home-play { order: -1; gap: 8px; }
  .home-play .home-setup { min-height: 64px; }
  .home-play .home-setup .socket { width: 64px !important; height: 64px !important; }
  .home-play .home-setup .socket > img { width: 52px !important; height: 52px !important; }
}

/* Home on a phone (Tyler, 2026-11-17: "a lot of the menus are kind of squished and they're not optimized for mobile";
   tests/browser_phone_menus.cjs). The hero and Quick play's card are one lead panel in one gold frame, the hero's
   picture over the setup and the Play that starts a match from Home (phone council round 0, both judges: the hero
   said "Choose your champion. Enter the arena." over buttons that led elsewhere, and the card with the setup sat
   under it in plain steel, cut at the foot at 844x340). The hero's line goes: the card under it says the champion and
   starts the match. Public rooms and All modes are quiet links, so the card's Play is the panel's one gold action; a
   match to rejoin or join keeps its button. */
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .home-hero-lead { display: none; }
  html.touch .home-hero-actions { gap: 4px 20px; margin-top: 0; }
  html.touch :is(.home-hero-actions, .home-more-ways) > .btn:not(.primary, .on) { flex: none; min-height: calc(44px / var(--client-scale, 1)); padding: 8px 2px; color: var(--you-light); background: transparent; border: 0;
    border-image: none; box-shadow: none; font: 700 var(--t-s)/1.2 var(--font-body); text-shadow: 0 1px 0 var(--shadow), 0 0 6px var(--shadow); }
  html.touch :is(.home-hero-actions, .home-more-ways) > .btn:not(.primary, .on)::after { content: ' →' / ''; }
  html.touch :is(.home-hero-actions, .home-more-ways) > .btn:not(.primary, .on):active { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
  html.touch .home-cards > .home-card.ms.home-play { border: 10px solid transparent; border-image: url('/c/9cd69333dc17ed5ade6bb46d5efcec31312af5d14fe544a36a658f159be82b62.png') 8 / 16px stretch;
    background: linear-gradient(180deg, var(--bg-1), var(--bg-2)) padding-box; box-shadow: 0 8px 24px var(--shadow); }
  html.touch .home-cards > .home-play::before { display: none; }
  /* Change is a 44 px target under the zoom on its side (phone council round 1, Sol: it drew at 35 to 38 px); its
     negative margins keep the heading row's height, so the card does not grow. */
  html.touch .home-play .btn.home-change { min-height: calc(44px / var(--client-scale, 1)); margin-block: calc((24px - 44px / var(--client-scale, 1)) / 2); padding-inline: 6px; }
  /* The line saying why Play cannot start takes its place only while it has something to say: empty, it left a band of
     panel under Play (phone council round 1, Opus). */
  html.touch .home-play > .home-play-problem:empty { min-height: 0; }
  /* The public rooms and every mode stand under Play as its quiet links (home.rs `more_ways`; phone council round 3,
     both judges: over the art they pushed it and Play down). A hero with no match to rejoin keeps no empty row. */
  html.touch .home-more-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: -6px; }
  html.touch .home-hero-actions:empty { display: none; }
}
/* Upright: the panel is the hero's picture with its three champions, then the card's setup and Play under the thumb;
   the two halves share the frame's sides, with no rule between them. The other cards follow one to a row. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .home-hero-champion:has(> .home-hero-trio) { flex: none; height: 160px; min-height: 0; margin-bottom: 4px; }
  html.touch .home-hero:has(> .home-hero-champion > .home-hero-trio) > .home-hero-copy { gap: 8px; padding-top: 18px; }
  /* Two actions to a row, sharing it: "Join a public room (3 open)" beside All modes took a row each. */
  html.touch .home-hero-actions { align-self: stretch; }
  html.touch .home-hero-actions .btn { flex: 1 1 140px; padding-inline: 10px; }
  html.touch .home-cards { grid-template-rows: none; grid-auto-rows: auto; }
  html.touch .home-cards > .home-play { order: -1; gap: 10px; }
  html.touch .home-play .home-setup { min-height: 64px; }
  html.touch .home-play .home-setup .socket { width: 64px !important; height: 64px !important; }
  html.touch .home-play .home-setup .socket > img { width: 52px !important; height: 52px !important; }
  html.touch .home { row-gap: 0; }
  html.touch .home > .home-roster { margin-top: 16px; }
  html.touch .home-hero { border-bottom-width: 0; border-image-width: 16px 16px 0; }
  html.touch .home-hero:has(> .home-hero-champion > .home-hero-trio) > .home-hero-copy { gap: 4px; padding-top: 14px; }
  html.touch .home-hero-champion:has(> .home-hero-trio) { margin-bottom: 0; }
  html.touch .home-cards > .home-card.ms.home-play { border-top-width: 0; border-image-width: 0 16px 16px; padding-block: 12px 6px; }
  /* The heading is for a screen reader only: the champions in the doorway and the Quick play card under them say it
     (phone council round 3, Opus: "Your next match" over the party line pushed the picture and Play down). */
  html.touch .home-hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The picture lies behind the champions only, fading in under the copy, so no word stands on the art (round 1: the
     party line ran into the Barbarian's head). */
  html.touch .home-hero > .home-hero-art { top: auto; bottom: 0; height: 62%; mask-image: linear-gradient(transparent, #000 34%); }
}
/* On its side: the hero on the left and the card on the right, one panel across the window's first rows, so the
   setup and the whole of Play are in the window at 844x340. The card is a column: its setup, then Play. The player's
   goal stands in the hero's foot, under the copy, where the picture was empty under two links and the goal card below
   was cut to a sliver at 844x340 (phone council round 1). The hero spans two rows of the page's grid as a subgrid: its
   copy sizes the first and the goal the second, so neither can run over the other whatever their heights. The last
   match and the news follow. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .home { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-rows: none; grid-auto-rows: auto; gap: 12px; }
  html.touch .home > .home-cards { display: contents; }
  html.touch .home > .home-hero { grid-column: 1; grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid;
    min-height: 0; border-right-width: 0; border-image-width: 16px 0 16px 16px; }
  html.touch .home-hero > .home-hero-copy { grid-row: 1; align-self: stretch; justify-content: center; gap: 6px; padding: 14px 20px 4px 24px; }
  html.touch .home-cards > .home-card.ms.home-play { grid-column: 2; grid-row: 1 / span 2; margin-left: -12px; gap: 8px; padding: 12px 18px 10px 14px;
    border-left-width: 0; border-image-width: 16px 16px 16px 0; }
  /* The goal on the hero's darkened left: no card of its own, its gold mark and words in line with the copy above. */
  html.touch .home-cards > .home-card.ms.home-goal { grid-column: 1; grid-row: 2; position: relative; z-index: 4; align-self: end; width: min(100% - 16px, 360px);
    margin: 0 0 16px 16px; gap: 6px 14px; padding: 0 20px 12px 24px; overflow: visible; background: none; border: 0; box-shadow: none; }
  /* The card's heading at its top and Play at its foot, under the right thumb; between them the setup stands as a
     small stage, the champion's portrait over the line, in the height the hero and its goal give the row (with the
     portrait beside the line, the card was empty over or under Play). */
  html.touch .home-play .home-setup { flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 6px; min-height: 0; margin: 0; text-align: center; }
  html.touch .home-play .home-setup .socket { width: 80px !important; height: 80px !important; }
  html.touch .home-play .home-setup .socket > img { width: 68px !important; height: 68px !important; }
  html.touch .home-play-now > .btn.qp-play { height: 56px; }
  html.touch .home-play > .home-play-problem { margin: 0 !important; }
  html.touch .home-cards > .home-card:not(.home-play, .home-goal) { grid-column: 1 / -1; height: auto; min-height: 0; }
  html.touch .home > .home-roster { grid-column: 1 / -1; }
}

/* Play's modes on a phone on its side: each card on its side, one under another, the picture at the left and the
   words in two columns beside it, the name and line, then the facts over the button. Three columns of tall cards
   filled the window with their pictures and left every card's words and button below it; the first card is now whole
   in the window and the next begins under it. Sandbox's page of one card is the same card. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .play-page .mode-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 8px; }
  html.touch .play-page .mode-card { flex-direction: row; height: auto; }
  html.touch .play-page .mode-art { flex: 0 0 32%; height: auto; min-height: 168px; border-bottom: 0; border-right: 2px solid var(--trim); }
  html.touch .play-page .mode-card:not(.lead) .mode-art { border-right-color: var(--steel-line); }
  html.touch .play-page .mode-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas: 'label facts' 'name facts' 'line facts' 'line open'; flex: 1 1 0; align-items: start; gap: 6px 20px; min-width: 0; padding: 14px 18px; }
  html.touch .play-page .mode-body > .kit-label { grid-area: label; }
  html.touch .play-page .mode-name { grid-area: name; }
  html.touch .play-page .mode-line { grid-area: line; }
  html.touch .play-page .mode-facts { grid-area: facts; gap: 4px; margin: 0; }
  html.touch .play-page .mode-body > :is(.mode-open, .dim) { grid-area: open; align-self: end; margin: 0; }
  html.touch .play-page .mode-card .mode-open, html.touch .play-page > .training-row .training-start { min-height: calc(44px / var(--client-scale, 1)); }
  /* Sandbox's one card fills the page's height: where its picture is as tall as the champion at the cards' full 2x
     (a 284 px box), it stands at that size. */
  html.touch .play-page .mode-card:only-child > .mode-art { container: mode-art / size; }
  @container mode-art (min-height: 290px) { html.touch .play-page .mode-figures > .spr { zoom: 1; } }
}

/* Play on a phone, both ways round: Quick play's card first, then Training and the other modes (phone council round 0:
   Training came first and the oversized Quick play card filled the screen). On a touch page the Quick play card plays
   itself (modes.rs `quick_now`): its setup in one line with Change, and the Play that starts the match in one press,
   in place of Open Quick play. */
@media (max-width: 600px), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .play-page:has(> :is(.training-row, .training-card)) { display: flex; flex-direction: column; gap: 12px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) > .mode-grid { display: contents; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead { order: -1; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) { order: 1; }
  html.touch .play-page > .training-row { margin: 0; }
  html.touch .mode-card:has(.mode-quick-now) .mode-open { display: none; }
  html.touch .mode-card:has(.mode-quick-now) .mode-facts { display: none; }
  html.touch .mode-quick-now { display: flex; flex-direction: column; gap: 6px; align-self: stretch; min-width: 0; }
  html.touch .mode-quick-setup { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
  html.touch .mode-quick-setup > p { min-width: 0; margin: 0; color: var(--text); font: 700 var(--t-m)/1.25 var(--font-body); overflow-wrap: anywhere; }
  html.touch .mode-quick-setup > .btn.quiet { flex: none; min-height: calc(44px / var(--client-scale, 1)); padding-inline: 4px; color: var(--you-light); }
  html.touch .mode-quick-now > .home-play-problem { margin: 0 !important; }
  /* Empty, the line under Play left a band of panel there (phone council round 1, Opus: about 100 px upright). */
  html.touch .mode-quick-now > .home-play-problem:empty { min-height: 0; }
}
/* Upright the Play page is a compact list of the modes, Quick play first, each a row: its champion on its arena in a
   narrow picture at the left beside the label, name, line and one button (phone council round 2: the Quick play card's
   tall band and big Play made the page a second Quick play promotion, Sol, repeating Home's, Opus). Quick play's row
   keeps its setup, with Change in its name's row as on Home's card, and the Play that starts the match in one press.
   The Sandbox page's one card keeps its picture over its words. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .play-page .mode-card { height: auto; }
  html.touch .play-page .mode-body { flex: 1 1 auto; gap: 6px; padding: 12px 14px 14px; }
  html.touch .play-page .mode-name { font-size: var(--t-l); }
  html.touch .play-page .mode-facts { gap: 4px; margin: 0; font-size: var(--t-s); }
  html.touch .play-page .mode-card .mode-open { min-height: 44px; margin-top: 4px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) { gap: 10px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card { flex-direction: row; }
  /* The picture is a 96 px column with the mode's first champion in it at 1x, from the head down. */
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-art { flex: 0 0 96px; height: auto; min-height: 0; border-bottom: 0; border-right: 2px solid var(--steel-line); }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-art { border-right-color: var(--trim); }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-figures { top: 8px; bottom: auto; align-items: flex-start; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-figures > .spr { zoom: 0.5; margin: 0; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-figures > .spr:not(:first-child), html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-glow { display: none; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body { min-width: 0; gap: 4px; padding: 10px 12px 12px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body > .kit-label { font-size: var(--t-xs); }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-name { font-size: var(--t-m); letter-spacing: 2px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-line { font-size: var(--t-s); }
  /* Each row is its name, line and button: the facts are on the mode's own page. */
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-facts { display: none; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) { display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'label label' 'name change' 'line line' 'setup setup' 'play play' 'problem problem'; align-items: center; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) > .kit-label { grid-area: label; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) > .mode-name { grid-area: name; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) > .mode-line { grid-area: line; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) :is(.mode-quick-now, .mode-quick-setup) { display: contents; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-setup > p { grid-area: setup; font-size: var(--t-s); }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-setup > .btn { grid-area: change; margin-block: -10px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-now > .home-play-now { grid-area: play; margin-top: 4px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-now > .home-play-problem { grid-area: problem; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-now .btn.qp-play { height: 48px; }
  /* The modes after Quick play are short rows: the label over the name and its one button, the line under both, so
     all four stand above the bottom bar with Quick play the tall one (phone council round 4, Opus: four cards of one
     build, three of them tall text blocks with one button each). */
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-art { flex-basis: 76px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-figures { top: 6px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-body { display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'label label' 'name open' 'line line'; align-items: center; gap: 2px 10px; padding: 8px 12px 10px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-body > .kit-label { grid-area: label; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-name { grid-area: name; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-line { grid-area: line; margin: 2px 0 0; line-height: 1.3; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-body > :is(.mode-open, .dim) { grid-area: open; margin: 0; padding-inline: 14px; }
  /* 360 px wide: a narrower picture and button, so "Training" keeps its whole word beside its button. */
  @media (max-width: 380px) {
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-art { flex-basis: 60px; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-name { letter-spacing: 1px; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) > .mode-body > .mode-open { padding-inline: 10px; font-size: var(--t-xs); }
  }
}
/* On its side the Quick play card's words take the left of its body and the setup and Play the right, level with them. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .play-page .mode-card:has(.mode-quick-now) .mode-body { grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: 'label now' 'name now' 'line now'; align-content: center; }
  html.touch .play-page .mode-quick-now { grid-area: now; align-self: center; }
}
/* Home's hero on a phone stands its champions on one plain scene, the lane's wall at night: the patch's fight picture
   behind them was a second picture (phone council round 2: upright it was cut and half hidden behind the three, Opus;
   on its side it competed with the chosen Knight and the goal, Sol). On its side the champions it lost to the short
   window come back on that scene, at the hero's right, so the party is the hero's one picture. */
@media (max-width: 600px) and (orientation: portrait), (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .home-hero > .home-hero-art { display: none; }
  html.touch .home-hero-champion { pointer-events: none; }
}
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .home-hero-champion:has(> .home-hero-trio) { flex: 1 0 160px; height: auto; margin: 0; background: linear-gradient(var(--bg-1), transparent 45%),
    url('/c/0b0d40915017e79fabc63dae02826b34473d2a3bd0dbe2b584878ea4c11cea17.png') left -940px bottom -8px / 1920px 1080px no-repeat; image-rendering: pixelated; }
  /* With the heading and links gone from over it, the doorway keeps the height that holds the three whole across the
     window (taller, they grew and the Ranger left the picture), and Play rises under it. */
  html.touch .home > .home-hero:has(> .home-hero-champion > .home-hero-trio) { min-height: 0; }
  html.touch .home-hero > .home-hero-champion:has(> .home-hero-trio) { flex: 0 0 214px; }
  @media (max-width: 380px) { html.touch .home-hero > .home-hero-champion:has(> .home-hero-trio) { flex-basis: 196px; } }
}
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .home > .home-hero { background: linear-gradient(rgb(6 8 18 / 30%), rgb(6 8 18 / 30%)), url('/c/0b0d40915017e79fabc63dae02826b34473d2a3bd0dbe2b584878ea4c11cea17.png') right -760px bottom -8px / 1920px 1080px no-repeat, var(--bg-1);
    image-rendering: pixelated; }
  html.touch .home-hero > .home-hero-champion { grid-column: 1; grid-row: 1 / -1; position: relative; inset: auto; display: flex; justify-self: end; align-self: stretch;
    width: 48%; height: auto; min-height: 0; margin: 8px 8px 6px 0; justify-content: center; align-items: flex-end; container: home-stage / size; }
  html.touch .home-hero > .home-hero-copy { grid-column: 1; }
  html.touch .home-hero > .home-hero-copy, html.touch .home-cards > .home-card.ms.home-goal { max-width: 56%; }
}
/* On its side the hero's floor is wide rather than tall, so the three are zoomed to its width (their 509 px at full
   size), in steps; the height steps above are for a tall floor. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .home-hero > .home-hero-champion > .home-hero-trio { transform: none; zoom: 0.4; }
  @container home-stage (min-width: 230px) { html.touch .home-hero-trio { zoom: 0.44; } }
  @container home-stage (min-width: 250px) { html.touch .home-hero-trio { zoom: 0.48; } }
  @container home-stage (min-width: 270px) { html.touch .home-hero-trio { zoom: 0.52; } }
  @container home-stage (min-width: 290px) { html.touch .home-hero-trio { zoom: 0.56; } }
  @container home-stage (min-width: 320px) { html.touch .home-hero-trio { zoom: 0.62; } }
  @container home-stage (max-width: 199.98px) { html.touch .home-hero-trio { display: none; } }
  /* The player's one champion (home.rs `hero_figures`) is about a third of the three's width, so the three's zoom drew
     it at 96 px on a 229 px stage (mobile council round 5, Opus MUST). It stands at about three quarters of the stage. */
  html.touch .home-hero > .home-hero-champion > .home-hero-trio:has(> .home-hero-trio-figure:only-child) { zoom: 0.7; }
  @container home-stage (height < 240px) { html.touch .home-hero > .home-hero-champion > .home-hero-trio:has(> .home-hero-trio-figure:only-child) { zoom: 0.55; } }
}
/* A small phone on its side (568x320, a page under 820 px wide): the hero's copy on one line each and its two links
   side by side, the champions gone, and the card's portrait beside its line, so the goal and the whole of Play are in
   the window (in a 250 px column the copy took two lines a word and pushed Play below it). */
@media (orientation: landscape) and (max-width: 1099.98px) {
  @container (max-width: 819.98px) {
    html.touch .home { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 10px; }
    html.touch .home-hero > .home-hero-champion { display: none; }
    html.touch .home-hero > .home-hero-copy, html.touch .home-cards > .home-card.ms.home-goal { max-width: none; }
    html.touch .home-hero > .home-hero-copy { gap: 2px; padding: 10px 12px 0 16px; }
    html.touch .home-hero-title { font-size: var(--t-m); white-space: nowrap; }
    html.touch .home-party { font-size: var(--t-xs); }
    html.touch .home-hero-actions { flex-wrap: nowrap; gap: 0 16px; }
    html.touch .home-cards > .home-card.ms.home-goal { width: auto; margin: 0 6px 10px 10px; gap: 4px 10px; padding: 0 8px 4px; }
    html.touch .home-cards > .home-card.ms.home-play { gap: 6px; padding: 10px 14px 8px 10px; }
    html.touch .home-play .home-setup { flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; }
    html.touch .home-play .home-setup .socket { width: 56px !important; height: 56px !important; }
    html.touch .home-play .home-setup .socket > img { width: 46px !important; height: 46px !important; }
  }
}
/* On its side the Play page is all its modes in the window: Quick play across the top, then Training, Custom and
   Sandbox side by side under it, each a picture column beside its name, line and button (phone council round 2: the
   list ran a page and a half down, Custom and Sandbox under the fold). The facts are on each mode's own page. */
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .play-page:has(> :is(.training-row, .training-card)) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 10px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) > :not(.mode-grid, .training-row, .training-card) { grid-column: 1 / -1; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead { grid-column: 1 / -1; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-art { flex-basis: 30%; min-height: 0; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-figures { top: 8px; bottom: auto; align-items: flex-start; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-figures > .spr { zoom: 0.5; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-body { padding-block: 10px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-art { flex: 0 0 84px; min-height: 0; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-figures { top: 8px; bottom: auto; align-items: flex-start; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-figures > .spr { zoom: 0.5; margin: 0; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-figures > .spr:not(:first-child),
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) :is(.mode-glow, .mode-facts) { display: none; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-body { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 12px 12px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-name { font-size: var(--t-m); letter-spacing: 2px; }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-line { font-size: var(--t-s); }
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) .mode-open { margin-top: auto; }
  /* Training is a card like the others: its portrait in the picture's place, its name, line and Start training. */
  html.touch .play-page > .training-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
    grid-template-areas: 'mark name' 'mark line' 'mark start'; align-items: start; gap: 4px 12px; padding: 10px 12px 12px; }
  html.touch .play-page > .training-row .training-row-mark { grid-area: mark; width: 52px; height: 52px; }
  html.touch .play-page > .training-row .training-row-text { display: contents; }
  html.touch .play-page > .training-row .training-row-text > b { grid-area: name; }
  html.touch .play-page > .training-row .training-row-text > .dim { grid-area: line; font-size: var(--t-s); line-height: 1.3; }
  html.touch .play-page > .training-row .training-start { grid-area: start; }
}
@media (orientation: landscape) and (max-width: 1099.98px) {
  /* Change keeps its 44 px target over the setup's line without making the row that tall. */
  html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-setup > .btn.quiet { margin-block: calc((26px - 44px / var(--client-scale, 1)) / 2); }
  /* A small phone on its side (a page under 820 px wide): Quick play's words beside its Play, Change over Play, and
     the three cards under it their name, line and button without a picture, so all four are in the window. */
  @container (max-width: 819.98px) {
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-art { flex-basis: 24%; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) { grid-template-columns: minmax(0, 1fr) minmax(0, 190px);
      grid-template-rows: auto auto auto; grid-template-areas: 'label change' 'name play' 'setup play'; gap: 2px 14px; align-items: center; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-body:has(> .mode-quick-now) > .mode-line { display: none; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card.lead .mode-name { font-size: var(--t-l); }
    html.touch .play-page:has(> :is(.training-row, .training-card)) :is(.mode-quick-now, .mode-quick-setup) { display: contents; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-setup > p { grid-area: setup; font-size: var(--t-s); }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-setup > .btn.quiet { grid-area: change; justify-self: end; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-now > .home-play-now { grid-area: play; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-quick-now > .home-play-problem { grid-column: 1 / -1; }
    html.touch .play-page:has(> :is(.training-row, .training-card)) .mode-card:not(.lead) :is(.mode-art, .mode-body > .kit-label),
    html.touch .play-page > .training-row .training-row-mark { display: none; }
    html.touch .play-page > .training-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'name' 'line' 'start'; }
  }
}
/* Training on a touch page is a card like the modes' (training.rs `training_card`; phone council round 3, Opus): the
   phone layouts above place it with them. Its picture is the lane's dusk, away from Quick play's part of the same
   scene. On a wider touch screen, where the modes stand as tall cards, it is a short row-shaped card over them. */
html.touch .mode-art[data-art="training"] { background-image: url('/c/0b0d40915017e79fabc63dae02826b34473d2a3bd0dbe2b584878ea4c11cea17.png'); background-position: left -300px bottom -40px; }
@media (min-width: 600.02px) and (orientation: portrait), (min-width: 1100px) and (orientation: landscape) {
  html.touch .play-page > .training-card { flex-direction: row; height: auto; margin: 0 0 20px; }
  html.touch .play-page > .training-card > .mode-art { flex: 0 0 200px; height: auto; min-height: 180px; border-bottom: 0; border-right: 2px solid var(--steel-line); }
  html.touch .play-page > .training-card > .mode-body > .mode-open { align-self: flex-start; }
}
