/* =====================================================================================================
   w156ui.css - W156 UI lane (owner decision D34 sections 3, 5 and 11; docs/notes/W156-ui.md).
   Loaded LAST (after tabbar.css / hqchat.css) so a plain selector of the same weight wins on order.
     1. THE DETAIL SHEETS stop at about 70% of the window and leave a visible band above the bottom bar that closes them.
     2. THE BACK PILL is never covered: LINEUP's sticky count line sits under it, not over it.
     3. THE COMPACT TILES (the reference game's collection grid, our own art): picture + name + level, five to a row. LINEUP's HEROES tab,
        LINEUP's LEADER tab, the LEADERS page and the CODEX hero / leader lists all use the one tile (index.html tileEl()).
   Presentation only. No number, save key or sim read lives here.
   ===================================================================================================== */

/* ---------------------------------------------------------------------------- 1. the detail sheet
   #detailOv is the dim layer over the page; tabbar.css already ends it where the bar starts (bottom: var(--cc-bar-h)). The CARD used to run to
   within 20 px of the bar, so a tap under it hit LINEUP / SHOP / HOME / HQ / EVENTS. Now the card is capped at 70% of the window (and never closer than 56 px
   to the bar or the top), centred in the space above the bar: what is left on each side is the tap-outside band. Inside the card the scroll stays. */
html body #detailOv #detailCard,
html body.cc-bar #detailOv #detailCard {
  max-height: min(70vh, calc(100vh - var(--cc-bar-h, 0px) - 112px));
  max-height: min(70dvh, calc(100dvh - var(--cc-bar-h, 0px) - 112px));
}
/* a little more room under the card than over it: the HOME button stands 26 px up out of the bar, so the low edge of the band belongs to it */
html body #detailOv { padding: 10px 16px 34px; }
/* the band says what it is for: one quiet pill in the strip above the bar (it takes no taps of its own - the whole dim layer closes the sheet) */
#detailOv:not(.hidden)::after {
  content: 'TAP OUTSIDE TO CLOSE';
  position: absolute; left: 50%; bottom: 36px; z-index: 0; pointer-events: none; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 14px 2px; border-radius: 999px; background: rgba(10, 6, 24, .86); box-shadow: inset 0 0 0 1.5px rgba(255, 248, 231, .28);
  font-family: 'Bangers', Impact, sans-serif; font-size: 14px; letter-spacing: 1.5px; color: rgba(255, 248, 231, .78);
}
#detailOv #detailCard { z-index: 1; }

/* ---------------------------------------------------------------------------- 2. the BACK pill is never covered
   LINEUP's "LINEUP 5/5 · N HEROES STILL TO FIND" line is sticky. At top: 0 it slid under (and, at z-index 61, over) the fixed BACK pill when the page
   scrolled. It now sticks BELOW the pill's row (the pill is 36 px tall at top 6 px; the header scrim is 52 px) and sits under the pill's layer.
   A sticky offset is measured from INSIDE the screen's own padding (18 px + the notch inset), so 34 px lands the line 52 px + the inset from the top edge. */
.screen #lineupCount {
  top: 34px;
  z-index: 5;
  padding: 4px 12px; font-size: 13.5px; line-height: 1.2; margin-bottom: 8px;      /* one line at 360 px even with "N HEROES STILL TO FIND" on it */
}
/* W390: the same pinned rows share one opaque reading surface. The count's actual height
   drives the sort offset, including wrapped 320px text; focus/scrollIntoView keeps targets
   below both rows. This adds no document spacer or new control. The back row stays usable. */
#heroesScr { --cc-lineup-count-height: 28px;
  scroll-padding-top: calc(110px + var(--sa-top, 0px) + var(--cc-lineup-count-height)); }
#heroesScr > .scrTitle { align-self: stretch; padding-left: 70px; font-size: 28px; }
#heroesScr #lineupCount { z-index: 61; flex-shrink: 0; max-width: 100%; box-sizing: border-box; }
#heroesScr.ccLineupPinned > .ccScrim {
  height: calc(60px + var(--sa-top, 0px) + var(--cc-lineup-count-height));
  background: var(--ink, #1b1430); opacity: 1;
}
#heroesScr #heroSortRow.hsortRow { top: calc(42px + var(--cc-lineup-count-height));
  -webkit-mask-image: none; mask-image: none; }
/* 1.0m rc2 (Q8): while chips wait off the right edge (.ccMore, set by heroSortMoreSet in index.html) the row ends in a fade and an arrow
   instead of a chip cut in half. The arrow lets taps through to the chip under it. */
#heroesScr #heroSortRow.hsortRow.ccMore::after {
  content: '\203A'; position: sticky; right: -22px; z-index: 2; flex: 0 0 46px; margin-left: -46px; align-self: stretch;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; box-sizing: border-box;
  background: linear-gradient(90deg, rgba(12, 49, 82, 0), #0c3152 58%); color: #ffe58e;
  font: 400 30px/1 'Bangers', cursive; text-shadow: 0 2px 0 #05233d; pointer-events: none;
}

/* ---------------------------------------------------------------------------- 3. the compact tiles (public/js/tiles.js)
   Five to a row at phone width (60 px a tile at 360, 66 at 390, never past 440 px of grid): a framed picture, the name (two lines), a level plate. The whole
   tile is the target (about 60 x 100 px). Tap = the sheet. The class names the old tall card wore are kept on the tile (.card .unitCard .sel .ucLocked .ucFresh
   .ucReady .ucLv) so the NEW glow, the READY ring, the looked-at observer and the in-place level refresh keep working; the rules below out-weigh the old ones. */
.cardGrid.rtGrid, .rtGrid, #leaderGrid.rtGrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: min(440px, 100%); }
.rtGrid > .classHead, .rtGrid > .encyGrp, .rtGrid > .ucMemorial, .rtGrid > .lcMore, .rtGrid > .lcLockBanner, .rtGrid > .rtWide { grid-column: 1 / -1; }

.card.unitCard.rtile {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0 0 4px; overflow: hidden;
  border: 2px solid var(--ink); outline: 0; border-radius: 10px; background: var(--panel); box-shadow: 0 3px 0 #120d28;
  font: inherit; color: inherit; text-align: center; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  container-type: inline-size;
}
.card.unitCard.rtile:active { transform: translateY(1px) scale(.97); }
.card.unitCard.rtile:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.card.unitCard.rtile.sel { border-color: var(--pow); background: var(--panel2); box-shadow: 0 0 0 2px var(--pow), 0 3px 0 #120d28; }
.card.unitCard.rtile.ucFresh { box-shadow: 0 0 0 2.5px #ffd23f, 0 3px 0 #120d28; background: #33290f; }
.card.unitCard.rtile.ucReady { box-shadow: 0 0 0 2.5px #9be15d, 0 3px 0 #120d28; background: #20301c; }
.card.unitCard.rtile.sel.ucFresh, .card.unitCard.rtile.sel.ucReady { border-color: var(--pow); }

/* the picture: a paper wash in a rim of the card's accent (class colour for a hero, rarity colour for a leader), the figure inked so it reads on any ground */
.card.unitCard.rtile .rtArt {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(180deg, #f3ecff, #d6cbf5 60%, #b9adea); box-shadow: inset 0 0 0 2px var(--acc), inset 0 -2px 0 rgba(27, 20, 48, .5);
}
.card.unitCard.rtile .rtArt > canvas, .card.unitCard.rtile .rtArt > svg:not(.ci-svg) {
  position: absolute; left: 4px; top: 3px; width: calc(100% - 8px); height: calc(100% - 6px); display: block;
}
.card.unitCard.rtile .rtArt > .lcMedal { position: absolute; left: 9%; top: 7%; width: 82%; height: 82%; flex: none; border-width: 2px; box-shadow: 0 0 0 1.5px var(--ink), 0 2px 0 rgba(0, 0, 0, .4); }
.card.unitCard.rtile .rtArt .lcMedal img, .card.unitCard.rtile .rtArt .lcMedal svg { width: 100%; height: 100%; }
.card.unitCard.rtile.ucLocked .rtArt { background: linear-gradient(180deg, rgba(226, 219, 248, .30), rgba(226, 219, 248, .13)); box-shadow: inset 0 0 0 1.5px rgba(238, 233, 255, .34); }

/* the marks that sit on the picture: stars (bottom-left), the tick for "in your lineup" / "leading" (bottom-right), NEW / READY (top-left), a padlock (top-right) */
.rtile .rtStars { position: absolute; left: 3px; bottom: 3px; z-index: 2; display: flex; align-items: center; line-height: 0; padding: 2px 3px; border-radius: 999px; background: rgba(19, 13, 40, .68); pointer-events: none; }
.rtile .rtStars .starRow { display: inline-flex; gap: 0; align-items: center; }
.rtile .rtStars .starOff { display: none; }
/* W340 E-017: the class letter leads the rarity pill (a class reads without colour); white on the pill, the class colour as its underline */
.rtile .rtStars .rtCls { font: 900 9px/1 'Nunito', system-ui, sans-serif; color: #fff8e7; margin: 0 3px 0 1px; padding-bottom: 1px; border-bottom: 2px solid var(--acc, #b197fc); }
.rtile .rtStars .ci, .rtile .rtStars svg, .rtile .rtStars i { width: 8px; height: 8px; flex: 0 0 8px; }
.rtile .rtTick { position: absolute; right: 3px; bottom: 3px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  background: #9be15d; border: 2px solid var(--ink); color: var(--ink); font-size: 9px; font-weight: 900; line-height: 1; pointer-events: none; }
.rtile .rtTick .ci, .rtile .rtTick svg { width: 9px; height: 9px; flex: 0 0 9px; }
.rtile .rtFlag { position: absolute; left: 2px; top: 2px; z-index: 2; margin: 0; padding: 1px 4px 0; font-size: 9px; letter-spacing: .3px; line-height: 1.2; pointer-events: none; }
.rtile .rtLock { position: absolute; right: 3px; top: 3px; z-index: 3; display: flex; width: 16px; height: 16px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: rgba(19, 13, 40, .84);
  box-shadow: inset 0 0 0 1.5px rgba(255, 210, 63, .55); pointer-events: none; }
.rtile .rtLock .ci, .rtile .rtLock svg { width: 100%; height: 100%; }

/* Base compact names; the scoped city collection pass below extends its line budget. */
.card.unitCard.rtile .nm {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.1em; margin: 3px 2px 0;
  font-family: 'Bangers', cursive; --nm-max: 10.5px; font-size: min(var(--nm-max), calc((100cqi - 6px) / var(--lw, 6) * var(--nm-fit, 2.2))); letter-spacing: .3px; line-height: 1.05; color: var(--pow); text-transform: uppercase; overflow-wrap: break-word;
}
/* 1.0m rc2 (Q8): a long word shrinks to fit the tile (tiles.js writes --lw, the longest word's letters) instead of breaking mid-word. */
.card.unitCard.rtile .nm.rtNmL { --nm-max: 9.8px; letter-spacing: .2px; }
.card.unitCard.rtile .nm.rtNmXL { --nm-max: 9px; letter-spacing: 0; }
.card.unitCard.ucLocked.rtile .nm { color: #b7b0d4; }
.card.unitCard.ucMystery.rtile .nm { color: #8d84b4; letter-spacing: 1.5px; }

/* the level plate (the .ucLv class stays: refreshHeroLvBadges() writes LV n into it) */
.card.unitCard.rtile .rtLv {
  position: static; display: block; align-self: center; margin: 0 auto; padding: 1px 7px 0; font-size: 9.5px; font-weight: 900; letter-spacing: .3px; line-height: 1.35; white-space: nowrap;
  border-radius: 999px; background: #3a3357; color: #cfc7ee; box-shadow: inset 0 0 0 1.5px #5f5790;
}
.card.unitCard.rtile .rtLv.up { background: var(--pow); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.card.unitCard.rtile .rtLv.rtPlate { background: rgba(19, 13, 40, .6); color: #cfc7ee; letter-spacing: .6px; }
/* Six-letter status is not a short LV number: its old 14px side padding made
   the pill wider than a 320px grid tile. Keep the font, line and tile geometry;
   recover only the status pill's spare padding/tracking so LOCKED stays whole. */
.card.unitCard.rtile.ucLocked .rtLv.rtPlate { padding-inline: 2px; letter-spacing: 0; font-size: min(9.5px, calc((100cqi - 4px) / 4.6)); }

/* the CODEX's marks, kept: the gold dot (money owed) and the NEW FILE pill ride the tile's corners */
.rtile .ucGoldDot { top: 2px; right: 2px; }
.rtile .ucFileRow { position: absolute; left: 2px; top: 2px; z-index: 3; display: block; padding: 0; pointer-events: none; }
.rtile .ucFileRow .ucFlag { margin: 0; padding: 1px 4px 0; font-size: 8.5px; letter-spacing: .2px; line-height: 1.2; }
.rtile .ucMastery { display: none; }

/* ---------------------------------------------------------------------------- 4. THE PINNED ACTION ROW at the foot of a sheet (#detailBar)
   The sheet is capped at 70% now and scrolls inside, so the one thing a collection tile is tapped FOR - a hero's ADD TO LINEUP / SWAP INTO LINEUP / REMOVE FROM LINEUP, a leader's
   CHOOSE FOR LINEUP n - is pinned to the foot of the card (sticky, always on screen) instead of sitting at the end of a long scroll. It follows the card's own side padding
   (--dpad) so it is full width, and a strip of its own colour under it covers the card's bottom padding. */
#detailCard { --dpad: 18px; }
@media (max-height: 700px) { #detailCard { --dpad: 16px; } }
@media (max-width: 389px) and (min-height: 701px) { #detailCard { --dpad: 16px; } }
#detailBar:empty { display: none; }
#detailBar {
  position: sticky; bottom: 0; z-index: 3; margin: 8px calc(-1 * var(--dpad)) 0; padding: 8px var(--dpad) 6px;
  background: var(--panel); border-top: 2px solid rgba(255, 255, 255, .08);
}
#detailBar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: var(--panel); pointer-events: none; }
#detailBar .bigBtn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin: 0; font-size: 17px; padding: 6px 14px; }
#detailBar .hlvLineup { margin-top: 0; }
#detailBar .dtChoose.on { background: linear-gradient(180deg, #b6f27a, #7bd13b); color: var(--ink); }
#detailBar .dtChoose .ci { width: 16px; height: 16px; flex: 0 0 16px; }

/* a tile's NEW FILE pill (the CODEX): at the foot of the picture, in place of the stars, so a head is never covered */
.rtile .rtArt > .ucFileRow { position: absolute; left: 2px; bottom: 2px; top: auto; right: auto; z-index: 3; padding: 0; display: block; pointer-events: none; }
.rtile[data-lore-id] .rtStars { display: none; }

/* a leader's TALENTS: the real CAPE TRAINING panel (index.html trainPanel()), dressed like the rest of the sheet */
#detailTabBody .lcTraining { margin: 4px 0 8px !important; padding: 8px 10px !important; text-align: left; border-color: #3a2f6b !important; background: #1a1333; font-family: 'Nunito', system-ui, sans-serif; color: #e3ddf5; }
#detailTabBody .lcTraining > summary { font-family: 'Bangers', Impact, sans-serif; font-size: 17px; letter-spacing: 1.1px; color: #ffd23f; list-style-position: inside; }
#detailTabBody .lcTraining > p { font-size: 11px !important; font-weight: 800; color: #bdb4dd; line-height: 1.4; }
#detailTabBody .lcTraining span { font-weight: 800; }

/* the HQ chat before the server has it (public/js/hqchat.js): the message sits in the box, the typing row is put away */
.hcRoot.hcSoon .hcRow { opacity: .45; pointer-events: none; }
.hcRoot.hcSoon .hcEmpty { color: #ffd23f; font-family: 'Bangers', Impact, sans-serif; font-size: 20px; letter-spacing: 1.2px; font-weight: 400; line-height: 1.2; padding: 20px 16px; }
.hcRoot.hcSoon .hcNote { display: none; }

/* the LEVEL UP peek pill (codexstage.js) hangs ABOVE the pinned bar, not behind it */
#detailBar:not(:empty) ~ #detailPeekRow { bottom: 68px; }

/* W-visible-2026-11-15: city-blue collection pass. The actual CapeTiles/card owners,
   order, locked-name masking, and selection behavior remain unchanged. Wider phone tiles
   give names room to read; city art stays a quiet top wash behind the live card art. */
#heroesScr, #leadersScr {
  background-color: #0a3152;
  background-image: linear-gradient(180deg, rgba(7, 43, 72, .18) 0, #0a3152 250px),
    url('../art/ui/home-city-rooftop-v1.svg');
  background-size: 100% 260px, auto 250px;
  background-position: center top;
  background-repeat: no-repeat;
}
#heroesScr > .scrTitle, #leadersScr > .scrTitle {
  color: #fff0b3;
  text-shadow: 2px 2px 0 #075078, 3px 3px 0 #06213c;
  letter-spacing: 1.5px;
}
#heroesScr > .scrSub, #leadersScr > .scrSub {
  max-width: min(390px, 100%);
  color: #e0f3f8;
  line-height: 1.35;
  margin-bottom: 8px;
}
#heroesScr #lineupCount {
  border-color: #ffe08a;
  background: linear-gradient(105deg, #164d70, #0d385b);
  color: #fff1bd;
  box-shadow: 0 2px 0 #06213c, inset 0 0 0 1px #e6faff33;
}
#heroesScr .ccBinderLabel { color: #d9edf5; }
#heroesScr .ccBinderRow .ccBinderTab,
#heroesScr #heroSortRow.hsortRow,
#leadersScr #leaderSortRow.hsortRow {
  border-color: #68bad2;
  background: linear-gradient(115deg, #123f61, #0c3152);
  box-shadow: 0 3px 0 #05233d, inset 0 0 0 1px #e7f9ff1c;
}
#heroesScr .ccBinderRow .ccBinderTab[aria-pressed="true"] {
  border-color: #fff0b3;
  background: linear-gradient(180deg, #ffe58e, #f8bd45);
  color: #102e47;
}
#heroesScr .hsortLbl, #leadersScr .hsortLbl { color: #c4e8f2; }
#heroesScr .hsortBtn, #leadersScr .hsortBtn {
  min-height: 44px;
  box-sizing: border-box;
  border-color: #5d9fbd;
  background: #103755;
  color: #e5f5f8;
  font-size: 13px;
}
#heroesScr .hsortBtn.on, #leadersScr .hsortBtn.on {
  border-color: #fff0b3;
  background: linear-gradient(180deg, #ffe58e, #f8bd45);
  color: #102e47;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid, #leadersScr #leaderGrid.rtGrid {
  gap: 8px;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile, #leadersScr #leaderGrid.rtGrid .rtile {
  border-color: #8ccfe0;
  background: linear-gradient(165deg, #174d70, #0b3152 84%);
  box-shadow: 0 3px 0 #05213a, inset 0 0 0 1px #e6f8ff24;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.sel, #leadersScr #leaderGrid.rtGrid .rtile.sel {
  border-color: #ffe58e;
  background: linear-gradient(165deg, #1d6381, #104265 84%);
  box-shadow: 0 0 0 2px #ffe58e, 0 3px 0 #05213a;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm, #leadersScr #leaderGrid.rtGrid .rtile .nm {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 3.15em;
  margin: 4px 3px 1px;
  color: #fff1bd;
  --nm-max: 12px;
  font-size: min(var(--nm-max), calc((100cqi - 8px) / var(--lw, 6) * var(--nm-fit, 2.2)));
  letter-spacing: .15px;
  line-height: 1.1;
  overflow-wrap: break-word;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm.rtNmL, #leadersScr #leaderGrid.rtGrid .rtile .nm.rtNmL {
  --nm-max: 11.2px;
  letter-spacing: 0;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm.rtNmXL, #leadersScr #leaderGrid.rtGrid .rtile .nm.rtNmXL {
  --nm-max: 10.4px;
  letter-spacing: 0;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.ucLocked,
#leadersScr #leaderGrid.rtGrid .rtile.ucLocked {
  border-color: #628eaa;
  background: linear-gradient(160deg, #173b56, #0b2b48 86%);
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.ucLocked .nm,
#leadersScr #leaderGrid.rtGrid .rtile.ucLocked .nm { color: #d4e2e8; }
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .rtLv,
#leadersScr #leaderGrid.rtGrid .rtile .rtLv {
  color: #f3f8f8;
  background: #174463;
  box-shadow: inset 0 0 0 1px #82c4d8;
}
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.ucLocked .rtLv.rtPlate,
#leadersScr #leaderGrid.rtGrid .rtile.ucLocked .rtLv.rtPlate {
  color: #fff0b3;
  background: #102f4a;
  box-shadow: inset 0 0 0 1px #d7b966;
}
#heroGrid > .classHead {
  box-sizing: border-box;
  margin: 8px 0 2px;
  padding: 5px 9px 4px;
  border-left: 4px solid #ffe08a;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #155076e8, #15507620 78%, transparent);
  color: #fff0b3 !important;
  font-size: 17px;
  letter-spacing: .8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#leadersScr #leaderGrid .lcMore,
#leadersScr #leaderGrid .lcLockBanner,
#heroesScr #heroGrid .lcLockBanner {
  border-color: #72b7cf;
  background-color: #103b5d;
  color: #e8f5f8;
}
@media (max-width: 359px) {
  #heroesScr > .scrTitle, #leadersScr > .scrTitle { letter-spacing: 1px; }
  #heroesScr > .scrSub, #leadersScr > .scrSub { font-size: 12px; }
}
html[data-text="large"] #heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm,
html[data-text="large"] #leadersScr #leaderGrid.rtGrid .rtile .nm { font-size: 13.2px; }
html[data-text="large"] #heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm.rtNmL,
html[data-text="large"] #leadersScr #leaderGrid.rtGrid .rtile .nm.rtNmL { font-size: 12px; }
html[data-text="large"] #heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm.rtNmXL,
html[data-text="large"] #leadersScr #leaderGrid.rtGrid .rtile .nm.rtNmXL { font-size: 11px; }
html[data-text="large"] #heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile .nm,
html[data-text="large"] #leadersScr #leaderGrid.rtGrid .rtile .nm { -webkit-line-clamp: 4; min-height: 4.3em; }

/* The same leader collection is reached inside Lineup, not only on its own
   training page. Keep that actual tab and the pinned reading surface coherent. */
#heroesScr.ccLineupPinned > .ccScrim {background:#0a3152;}
#heroesScr #lineupTabs .ccHubTab {
  border-color:#73b9ce;background:linear-gradient(150deg,#194d70,#0e3353);
  color:#e1f1f7;box-shadow:0 3px 0 #05233d;
}
#heroesScr #lineupTabs .ccHubTab.on {
  border-color:#fff0b3;background:linear-gradient(180deg,#ffe58e,#f8bd45);color:#102e47;
}
#heroesScr .lineupLeadHead b {color:#fff0b3;font-size:19px;}
#heroesScr .lineupLeadHead span {color:#d9eef5;}
#heroesScr .lineupLeadMore {
  border-color:#8dc4d5;background:#174d70;color:#fff0b3;
}
/* A mystery's real name is still hidden by the existing identity owner. Its
   three question marks need one line, not three empty lines in every row. */
#heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.ucLocked .nm,
#leadersScr #leaderGrid.rtGrid .rtile.ucLocked .nm,
html[data-text="large"] #heroesScr :is(#heroGrid,.lineupLeaderGrid).rtGrid .rtile.ucLocked .nm,
html[data-text="large"] #leadersScr #leaderGrid.rtGrid .rtile.ucLocked .nm {
  -webkit-line-clamp:1;min-height:1.2em;
}
