/* The one-letter army and unit pages (T-1409M, T-1566P; docs/rated.js, the mockup design/rated-v2/). Everything under .rt, on the
   site's own tokens, light and dark: SWORD in the attacker's blue, SHIELD in the defender's purple, roles in the leaders' yellow, the
   setup in the detachments' teal, the letters in the tier ramp, the Armies green for the army's mark; each unit type's band in a hue of its own. IBM Plex Mono for labels and figures
   (fonts/, OFL), Barlow Semi Condensed and IBM Plex Sans as everywhere else. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("fonts/ibm-plex-mono-latin-700.woff2") format("woff2"); }
.rt {
  --line: var(--border); --panel2: var(--panel-2); --dim: var(--text-dim); --faint: var(--text-faint);
  --sword: var(--att); --sword-soft: var(--att-soft); --shield: var(--def); --shield-soft: var(--def-soft); --role: var(--lead); --neg: var(--red); --ok: #34D399;
  --ts: var(--tier-s); --ta: var(--tier-a); --tb: var(--tier-b); --tc: var(--tier-c); --td: var(--tier-d);
  --tsi: var(--tier-s-ink); --tai: var(--tier-a-ink); --tbi: var(--tier-b-ink); --tci: var(--tier-c-ink); --tdi: var(--tier-d-ink);
  --ar: #34D399; --ar2: #0FD3C3;
  --g-hero: #FB7185; --g-char: #FB923C; --g-line: #A3E635; --g-inf: #818CF8; --g-mount: #2DD4BF; --g-mon: #E879F9; --g-veh: #94A3B8; --g-ally: #8B95A7;
  --head: var(--font-head); --body: var(--font-body); --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 640px; margin: 0 auto; display: grid; gap: 18px; font: 15px/1.5 var(--body); color: var(--text);
}
:root[data-theme="light"] .rt {
  --ok: #047857; --ar: #047857; --ar2: #0F766E;
  --g-hero: #BE123C; --g-char: #C2410C; --g-line: #4D7C0F; --g-inf: #4338CA; --g-mount: #0F766E; --g-mon: #A21CAF; --g-veh: #475569; --g-ally: #5B6576;
}
.rt *, .rt-ov * { box-sizing: border-box; }
.rt h1, .rt h2, .rt h3 { font-family: var(--head); font-weight: 800; margin: 0; line-height: 1.1; text-wrap: balance; letter-spacing: 0; }
.rt h2 { font-size: 24px; } .rt h3 { font-size: 19px; }
.rt a { color: inherit; }
.rt .num { font-variant-numeric: tabular-nums; }
.rt .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.rt .key { font-size: 12px; color: var(--faint); margin: 0; }
.rt .credit { font-size: 11.5px; color: var(--faint); margin: 0; }
.rt button:focus-visible, .rt a:focus-visible, .rt summary:focus-visible, .rt-ov button:focus-visible, .rt-ov a:focus-visible { outline: 2px solid var(--role); outline-offset: 2px; }

/* letter coins */
.rt .coin { --c: var(--td); --ci: var(--tdi); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--ci); font: 800 16px var(--head); flex: none; }
.rt .coin.S { --c: var(--ts); --ci: var(--tsi); } .rt .coin.A { --c: var(--ta); --ci: var(--tai); } .rt .coin.B { --c: var(--tb); --ci: var(--tbi); }
.rt .coin.C { --c: var(--tc); --ci: var(--tci); } .rt .coin.D { --c: var(--td); --ci: var(--tdi); }
/* dashed: no reviewers yet, so the letter is our estimate */
.rt .coin.est { border-style: dashed; background: none; }
.rt .coin.mini { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; border-width: 1.5px; vertical-align: -5px; }
.rt .ib { border: 0; background: none; color: var(--faint); font: 700 13px var(--mono); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.rt .ib:hover { color: var(--text); }

/* the army's mark and eyebrow */
.rt .ebi { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--ar), var(--ar2)); color: var(--bg);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ar2) 35%, transparent); text-decoration: none; }
.rt .ebi svg { width: 28px; height: 28px; }
.rt .ebi.mk { width: 56px; height: 56px; border-radius: 15px; } .rt .ebi.mk svg { width: 32px; height: 32px; }
.rt .ah { display: grid; gap: 6px; } .rt .ahl { display: flex; align-items: center; gap: 14px; }
.rt .ah h1 { font-size: 40px; line-height: 1; } .rt .ah p { margin: 0; color: var(--dim); font-size: 13.5px; } .rt .ah .stamps { font-size: 12px; color: var(--faint); }
.rt .stamps { margin: 0; font-size: 12px; color: var(--faint); }

/* the army page's controls and list */
.rt .chipsel { display: flex; flex-wrap: wrap; gap: 6px; }
.rt .chipsel[hidden] { display: none; }
.rt .chipsel label { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel2); padding: 0 8px; min-height: 34px; white-space: nowrap; overflow: hidden; font: 700 12.5px var(--body); color: var(--text); }
.rt .chipsel label small { font: 600 11px var(--body); color: var(--faint); }
.rt .chipsel label > span { overflow: hidden; text-overflow: ellipsis; }
.rt .chipsel select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.rt .chipsel label::after { content: "▾"; color: var(--faint); font-size: 11px; }
.rt .chipsel label:focus-within { outline: 2px solid var(--role); outline-offset: 2px; }
.rt .th, .rt .tr { display: grid; grid-template-columns: minmax(0, 1fr) 40px 52px 52px 8px; gap: 5px; align-items: center; }
.rt .th { font: 600 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding: 6px 0; position: sticky; top: 0; background: var(--panel); z-index: 1; border-bottom: 1px solid var(--line); }
.rt .th button { border: 0; background: none; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; text-align: center; }
.rt .th button:first-child { text-align: left; } .rt .th button.on { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rt .th button:nth-child(3) { color: var(--att-soft); } .rt .th button:nth-child(4) { color: var(--def-soft); }
.rt .tr { padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.rt .tr:hover .tn, .rt .tr:focus-visible .tn { text-decoration: underline; text-decoration-color: var(--faint); }
.rt .tr:active { background: var(--panel2); }
.rt .tn { display: block; font-weight: 600; font-size: 14px; line-height: 1.2; }
.rt .tn small { display: block; font: 500 12px var(--body); color: var(--faint); margin-top: 1px; }
.rt .lc { display: grid; place-items: center; } .rt .lc .coin { width: 30px; height: 30px; }
.rt .pc { display: grid; gap: 2px; justify-items: center; }
.rt .pc small { font: 600 10px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.rt .pc b { font: 700 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.rt .pc i { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rt .pc s { display: block; height: 100%; } .rt .pc.sw s { background: var(--sword); } .rt .pc.sh s { background: var(--shield); }
.rt .pc.sw b { color: var(--sword-soft); } .rt .pc.sh b { color: var(--shield-soft); }
.rt .chev { color: var(--faint); font-size: 15px; }
.rt .gh { margin: 12px 0 2px; padding: 6px 10px; border-radius: 9px; display: flex; gap: 8px; align-items: center; font: 800 14px var(--head); letter-spacing: .08em; text-transform: uppercase;
  color: var(--g); background: color-mix(in srgb, var(--g) 15%, var(--panel)); border-left: 4px solid var(--g); }
.rt .gh small { margin-left: auto; font: 700 11px var(--mono); letter-spacing: 0; color: var(--g); background: color-mix(in srgb, var(--g) 20%, transparent); border-radius: 999px; padding: 1px 8px; }
.rt .gh .coin { width: 24px; height: 24px; font-size: 13px; border-radius: 6px; }
.rt .grp { margin-left: 10px; padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--g) 35%, transparent); }
.rt .grp .tr:last-child { border-bottom: 0; }

/* a unit's page */
.rt .back { justify-self: start; color: var(--dim); font: 700 14px var(--body); padding: 4px 0; text-decoration: none; }
.rt .back:hover { color: var(--text); }
.rt .picker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; color: var(--dim); }
.rt .picker[hidden] { display: none; }
.rt .picker select { min-width: 0; width: 100%; font: 600 15px var(--body); padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.rt .scn { display: block; border-radius: 16px; border: 1px solid var(--line); background: #0c1424; max-width: 100%; }
.rt .hero2 { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: end; }
.rt .hero2 .hn { min-width: 0; display: grid; gap: 6px; }
/* --wl: the name's longest word, so on a phone the whole word fits its column instead of breaking (T-1553P) */
.rt .hero2 h1 { font-size: min(34px, calc((100vw - 230px) / (var(--wl, 8) * .52))); line-height: 1; overflow-wrap: anywhere; }
.rt .hero2 .meta { color: var(--dim); font-size: 13.5px; }
/* ☆ Save under the name (18 Nov): a small pill; saved, a gold star and "Saved". */
.rt .usave { justify-self: start; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px 0 9px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--dim); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; }
.rt .usave[hidden] { display: none; }
.rt .usave .us-i { font-size: 16px; line-height: 1; }
.rt .usave:hover, .rt .usave:focus-visible { color: var(--text); border-color: var(--text); }
.rt .usave[aria-pressed="true"] { color: var(--text); border-color: #e9b949; }
.rt .usave[aria-pressed="true"] .us-i { color: #e9b949; }
.rt .rate2 { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; text-align: left; justify-self: start; }
.rt .coin.big { width: 46px; height: 46px; font-size: 26px; border-radius: 11px; border-width: 3px; }
.rt .rate2 b { display: block; font: 800 17px/1.1 var(--head); }
.rt .rate2 > span > small { white-space: nowrap; font: 700 11.5px var(--body); color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
/* the two scores */
.rt .ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt .ptile { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; align-items: baseline; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--panel)); color: var(--text); cursor: pointer; min-width: 0; }
.rt .ptile.sw { --c: var(--sword); --cs: var(--sword-soft); } .rt .ptile.sh { --c: var(--shield); --cs: var(--shield-soft); }
.rt .ptile span { grid-column: 1 / -1; font: 800 14px var(--head); letter-spacing: .08em; color: var(--cs); }
.rt .ptile b { font: 800 34px/1 var(--head); color: var(--cs); }
.rt .ptile i { align-self: center; display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .rt .ptile s { display: block; height: 100%; background: var(--c); }
.rt .ptile small { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }
.rt .dimn { color: var(--faint); font-size: 12px; }
.rt .facts, .rt-ov .facts { display: grid; }
.rt .fact, .rt-ov .fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rt .fact > span:first-child, .rt-ov .fact > span:first-child { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt .simrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rt .simrow small { font-size: 12.5px; color: var(--dim); flex: 1 1 120px; min-width: 0; }
.rt .cards { display: grid; gap: 18px; }
.rt .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rt .hd h2 { display: flex; align-items: center; gap: 6px; }
.rt .hdl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rt .ba { margin: 0; font-size: 14.5px; color: var(--text-2); } .rt .ba b { color: var(--sword-soft); }
.rt .card.sw, .rt .card.sh, .rt .card.rl, .rt .card.wp { border-top: 3px solid var(--c); }
.rt .card.sw { --c: var(--sword); } .rt .card.sh { --c: var(--shield); } .rt .card.rl { --c: var(--role); } .rt .card.wp { --c: var(--ar); }
.rt .card.sw .hd h2 { color: var(--sword-soft); } .rt .card.sh .hd h2 { color: var(--shield-soft); } .rt .card.rl .hd h2 { color: var(--role); } .rt .card.wp .hd h2 { color: var(--ar); text-transform: uppercase; }
/* SWORD's switch: Whole meta or Best target (T-1544P) */
.rt .swv { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); }
.rt .swv[hidden] { display: none; }
.rt .swv button { border: 0; border-radius: 999px; background: none; color: var(--dim); min-height: 32px; padding: 0 10px; font: 700 12.5px var(--body); cursor: pointer; }
.rt .swv button:hover { color: var(--text); }
.rt .swv button[aria-pressed="true"] { background: color-mix(in srgb, var(--sword) 26%, var(--panel)); color: var(--text); }
.rt .swb { display: grid; gap: 12px; min-width: 0; }
/* What the meta is made of (T-1545P) */
.rt .mix { display: grid; gap: 6px; min-width: 0; }
.rt .mix .sub { margin: 0; }
.rt .mixb { display: flex; gap: 1px; height: 24px; border-radius: 6px; overflow: hidden; }
.rt .mixb span { display: grid; place-items: center; min-width: 0; overflow: hidden; background: var(--c); color: var(--panel); font: 700 11.5px var(--mono); }
.rt .mixk { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--dim); }
.rt .mixk i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--c); margin-right: 4px; }
.rt .mixk b { color: var(--text); font-family: var(--mono); }
.rt .bigx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.rt .bigx > b { font: 800 64px/0.85 var(--head); } .rt .sw .bigx > b { color: var(--sword-soft); } .rt .sh .bigx > b { color: var(--shield-soft); }
.rt .bigx p { margin: 0; display: grid; gap: 5px; font-size: 13.5px; line-height: 1.3; color: var(--dim); }
.rt .bigx p b { color: var(--text); font-family: var(--mono); }
.rt .bigx p .ld { font-size: 15px; color: var(--text); } .rt .bigx p .ld b { font-family: var(--body); font-weight: 700; }
.rt .sw .bigx p .ld b { color: var(--sword-soft); } .rt .sh .bigx p .ld b { color: var(--shield-soft); }
.rt .bigx .fm { font: 600 12.5px var(--mono); color: var(--text); padding: 4px 8px; border-radius: 7px; justify-self: start; }
.rt .sw .bigx .fm { background: color-mix(in srgb, var(--sword) 26%, var(--panel)); } .rt .sh .bigx .fm { background: color-mix(in srgb, var(--shield) 26%, var(--panel)); }
.rt .sub { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.rt .stale { margin: 10px 0 0; padding: 7px 10px; border-left: 3px solid var(--role); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--role) 10%, transparent); font-size: 13px; line-height: 1.4; color: var(--text); }
.rt .stl { color: var(--role); font-size: 10px; margin-left: 4px; vertical-align: middle; }
.rt .sub h3 { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.rt .lgb { font: 500 11.5px var(--body); color: var(--faint); letter-spacing: 0; text-transform: none; }
.rt .mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
.rt .mini3.one { grid-template-columns: 1fr; } .rt .mini3 .m { display: grid; gap: 3px; min-width: 0; }
.rt .mini3 .ml { font: 700 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt .mini3 .m.all .ml { color: var(--text); }
.rt .mini3 .mv { display: flex; align-items: baseline; gap: 5px; } .rt .mini3 .mv b { font: 800 20px/1 var(--head); } .rt .mini3 .mv small { font: 600 11.5px var(--body); color: var(--dim); }
.rt .sw .mini3 .mv b { color: var(--sword-soft); } .rt .sh .mini3 .mv b { color: var(--shield-soft); }
.rt .mt { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--line); margin-top: 3px; }
.rt .mt s { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; background: var(--faint); }
.rt .mt i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--panel); }
.rt .sw .mt i { background: var(--sword); } .rt .sh .mt i { background: var(--shield); }
.rt .fold { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.rt .fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; font: 700 14px var(--body); cursor: pointer; list-style: none; }
.rt .fold > summary::-webkit-details-marker { display: none; }
.rt .fold > summary::after { content: "›"; transition: transform .15s; } .rt .fold[open] > summary::after { transform: rotate(90deg); }
.rt .fold > div { padding: 0 12px 12px; display: grid; gap: 4px; color: var(--text); font-size: 13.5px; }
.rt .fold h4 { margin: 8px 0 2px; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt .fold.tsw { border-color: color-mix(in srgb, var(--sword) 45%, var(--line)); background: color-mix(in srgb, var(--sword) 12%, var(--panel2)); } .rt .fold.tsw > summary { color: var(--sword-soft); }
.rt .fold.tsh { border-color: color-mix(in srgb, var(--shield) 45%, var(--line)); background: color-mix(in srgb, var(--shield) 12%, var(--panel2)); } .rt .fold.tsh > summary { color: var(--shield-soft); }
.rt .nr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 3px 0; } .rt .nr small { color: var(--faint); } .rt .nr b { font: 700 13.5px var(--mono); }
.rt .nr a { text-decoration: none; } .rt .nr a:hover { text-decoration: underline; }
.rt .nr.me { font-weight: 700; background: color-mix(in srgb, var(--sword) 14%, transparent); border-radius: 6px; padding: 3px 6px; margin: 0 -6px; }
.rt .fold.tsh .nr.me { background: color-mix(in srgb, var(--shield) 18%, transparent); }
.rt .rchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rt .rchip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body); border: 1px solid var(--line); background: var(--panel2); color: var(--text); cursor: pointer; }
.rt .rchip.up { border-color: color-mix(in srgb, var(--role) 60%, var(--line)); background: color-mix(in srgb, var(--role) 18%, var(--panel)); }
.rt .rchip.dn { border-color: color-mix(in srgb, var(--neg) 50%, var(--line)); background: color-mix(in srgb, var(--neg) 10%, var(--panel2)); }
.rt .wpl { margin: 0; font-size: 15px; }
/* How we got these numbers: the setup, in the detachments' teal */
.rt .card.how { --c: var(--teal); border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--panel)), var(--panel) 120px); }
.rt .card.how h2 { color: var(--c); font-size: 24px; text-transform: uppercase; }
.rt .hchips { display: flex; flex-wrap: wrap; gap: 6px; } .rt .hchips span { padding: 4px 10px; border-radius: 999px; font: 600 13px var(--body); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 55%, var(--line)); background: color-mix(in srgb, var(--c) 14%, var(--panel)); }
.rt .fold.thw { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 8%, var(--panel2)); } .rt .fold.thw > summary { color: var(--c); }
/* T-1592P (Jordan, 3 Nov: "the formatting isn't good"): each row a short label over its value on a phone, side by side from 640px; labels in
   plain words, never wrapped capitals. */
.rt .how .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; align-items: start; padding: 10px 0; font-size: 14.5px; line-height: 1.45; border-top-color: color-mix(in srgb, var(--c) 25%, var(--line)); }
.rt .how .fact > span:first-child { font: 700 12.5px var(--body); letter-spacing: 0; text-transform: none; }
@media (min-width: 640px) { .rt .how .fact { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; } .rt .how .fact > span:first-child { padding-top: 2px; } }
.rt .how .fact:first-child { border-top: 0; } .rt .how .fact > span:first-child { color: var(--c); }
.rt .how .lt { display: block; margin-top: 3px; color: var(--role); font-size: 12.5px; }
.rt .dr { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.rt .dr b { font: 700 13.5px var(--mono); text-align: right; }

/* the sheet: Why this letter and the ⓘ meanings */
.rt-ov { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 23, .55); display: grid; align-items: end; max-width: none; margin: 0; }
.rt-ov[hidden] { display: none; }
.rt-ov .sht { position: relative; background: var(--panel); border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); max-height: 86vh; overflow: auto; display: grid; gap: 12px;
  padding: 10px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); max-width: 560px; width: 100%; margin: 0 auto; animation: rt-up .18s ease-out; outline: none; }
@keyframes rt-up { from { transform: translateY(30px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .rt-ov .sht { animation: none; } }
.rt-ov .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 2px; }
.rt-ov h3 { font-size: 22px; }
.rt-ov p { margin: 0; }
.rt-ov .btn { width: 100%; min-height: 42px; }
.rt-ov .cnt { display: grid; gap: 6px; } .rt-ov .cnt div { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 10px; align-items: center; }
.rt-ov .cnt .bar2 { height: 12px; border-radius: 6px; background: var(--panel2); overflow: hidden; } .rt-ov .cnt .bar2 b { display: block; height: 100%; }
.rt-ov .rw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }

/* desktop: SWORD beside SHIELD, the roles beside where to play it */
@media (min-width: 900px) {
  .rt.rt-u { max-width: 980px; }
  .rt.rt-u > .picker, .rt.rt-u > .back, .rt.rt-u > .hero { max-width: 640px; width: 100%; justify-self: center; }
  .rt.rt-u .cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .rt.rt-a { max-width: 720px; }
}

/* the questions under a rated page (the page's FAQ, as search engines read it), folded closed */
.rt-qa { max-width: 640px; margin: 18px auto 0; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.rt-qa > summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font: 700 15px var(--font-body); cursor: pointer; list-style: none; }
.rt-qa > summary::-webkit-details-marker { display: none; }
.rt-qa > summary::after { content: "›"; color: var(--text-faint); transition: transform .15s; } .rt-qa[open] > summary::after { transform: rotate(90deg); }
.rt-qa > div { padding: 0 16px 14px; }
.rt-qa dt { font-weight: 700; margin-top: 10px; } .rt-qa dd { margin: 2px 0 0; color: var(--text-dim); }
@media (min-width: 900px) { .rt-a ~ .rt-qa { max-width: 720px; } }
.rt-qa + .rt-qa { margin-top: 10px; }
.rt-src dd ul { margin: 4px 0; padding-left: 18px; }
.rt-src a { color: inherit; }
/* A letter's pop-up (T-1547P) */
.rt-ov .shh2 { display: flex; align-items: center; gap: 10px; }
.rt-ov .shh2 h3 small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; color: var(--dim); }
.rt-ov .wh { margin: 4px 0 0; font: 700 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.rt-ov .wh.up { color: var(--ok); } .rt-ov .wh.dn { color: var(--neg); }
.rt-ov .wl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rt-ov .wl li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 10px; border-left: 3px solid var(--c); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--c) 12%, transparent); font-size: 14px; line-height: 1.3; }
.rt-ov .wl.up { --c: var(--ok); } .rt-ov .wl.dn { --c: var(--neg); }
.rt-ov .wl small { flex: none; font: 600 11.5px var(--mono); color: var(--dim); }
/* T-1566P: what we don't rate (Crucible units, the Titans): the same page, a blank coin in place of a letter, no scores. */
.rt .coin.nr { --c: var(--line); background: none; border-style: dashed; color: var(--faint); }
.rt .rate2.nr { cursor: default; }
.rt .rate2.nr > span > small { text-decoration: none; color: var(--faint); }
.rt .tr.nr { grid-template-columns: minmax(0, 1fr) auto 8px; }
.rt .nrt { font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.rt .nrwhy { margin: 0; font-size: 14px; line-height: 1.45; color: var(--dim); }
/* T-1571P: the reworked unit page's preview (rated.js unit2, <unit>/v2/) */
.rt .ptile b small.of { font-size: .45em; font-weight: 700; opacity: .7; margin-left: 2px; }
.rt-v2 .bigx > div > b.num { display: block; text-align: center; font: 800 64px/0.85 var(--head); } .rt-v2 .sw .bigx > div > b.num { color: var(--sword-soft); } .rt-v2 .sh .bigx > div > b.num { color: var(--shield-soft); }
.rt-v2 .bigx .unit { display: block; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-top: 4px; text-align: center; }
.rt-v2 .bigx p .lead2 { font: 700 17px/1.3 var(--body); color: var(--text); margin: 0 0 2px; } .rt-v2 .bigx p .lead2 b { font-family: var(--body); color: var(--shield-soft); }
.rt-v2 .nbox { --c: var(--sword); --c-soft: var(--sword-soft); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-radius: 10px; padding: 8px 12px 10px; background: color-mix(in srgb, var(--c) 7%, var(--panel2)); }
.rt-v2 .card.sh .nbox { --c: var(--shield); --c-soft: var(--shield-soft); }
.rt-v2 .nbox + .nbox { margin-top: 10px; }
.rt-v2 .nbox h4.nh { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); font: 800 13px var(--body); letter-spacing: .02em; text-transform: none; color: var(--c-soft); }
.rt-v2 .nbox h4.nh small { font: 500 12px var(--body); color: var(--faint); margin-left: 4px; }
.rt-v2 .kv { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rt-v2 .card.sh .kv { margin-top: 8px; }
.rt-v2 .kv > span:first-child { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt-v2 h3.pl { margin: 14px 0 6px; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt-v2 .card.rl .hd + h3.pl, .rt-v2 .card.wp .cmp + h3.pl { margin-top: 4px; }
.rt-v2 .pl0 { margin: 0; font-size: 14.5px; line-height: 1.45; }
.rt-v2 .pros { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.35; }
.rt-v2 .pros li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; align-items: start; }
.rt-v2 .pros li::before { content: "+"; font: 800 15px var(--mono); color: var(--role); }
.rt-v2 .pros.minus li::before { content: "–"; color: var(--neg); }
.rt-v2 .pros li small { color: var(--faint); white-space: nowrap; }
.rt-v2 .lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rt-v2 .lrow b { font: 700 13.5px var(--mono); } .rt-v2 .lrow b.s { color: var(--sword-soft); } .rt-v2 .lrow b.h { color: var(--shield-soft); }
.rt-v2 .lrow small { display: block; color: var(--faint); font-size: 12px; }
.rt-v2 .card.rl .key { margin: 4px 0 0; }
.rt-v2 .card .cmp { display: table; width: 100%; justify-self: stretch; border-collapse: collapse; font-size: 13.5px; }
.rt-v2 .cmp th { font: 600 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); text-align: right; padding: 4px 4px 6px; }
.rt-v2 .cmp th:first-child, .rt-v2 .cmp td:first-child { text-align: left; }
.rt-v2 .cmp td { padding: 8px 4px; border-top: 1px solid var(--line); text-align: right; font: 700 13px var(--mono); vertical-align: middle; }
.rt-v2 .cmp td:first-child { font: 600 14px var(--body); }
.rt-v2 .cmp td:first-child a { color: inherit; }
.rt-v2 .cmp tr.me td { background: color-mix(in srgb, var(--ar) 12%, transparent); }
.rt-v2 .cmp td small { display: block; font: 500 11px var(--body); color: var(--faint); }
.rt-v2 .cmp .coin { width: 26px; height: 26px; font-size: 14px; }
.rt-v2 .card.how .hnum { display: grid; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.rt-v2 .card.how .hnum p { margin: 0; } .rt-v2 .card.how .hnum b { font: 800 14px var(--mono); color: var(--c); }
.rt-v2 .card.how .hnum .dimn { font-size: 13.5px; }
.rt-v2 .card.how ul.hl { margin: 0; padding: 0 0 0 18px; display: grid; gap: 5px; font-size: 14px; line-height: 1.4; }
.rt-v2 .card.how ul.hl small { color: var(--faint); white-space: nowrap; }
.rt-v2 .card.how .steps { margin: 12px 0 0; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.45; }
.rt-v2 .card.how .steps h3 { margin: 0 0 3px; font: 800 14px var(--body); color: var(--c); }
.rt-v2 .card.how .steps p { margin: 0; }
.rt-v2 .card.how .steps .ex { display: inline-block; margin-top: 6px; font: 700 13px var(--mono); padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, var(--panel2)); }
.rt-ov .sht .mix { margin-top: 10px; }
.rt-v2 .ptile b.rk { display: flex; align-items: baseline; gap: 6px; }
.rt-v2 .ptile b.rk small.w, .rt-v2 .cmp td.rk small.w { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.rt-v2 .cmp td.rk small.w { display: block; margin-bottom: 1px; }
.rt-v2 .ca { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font: 600 15px/1.35 var(--body); }
.rt-v2 .ca + .ca { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.rt-v2 .ca li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; }
.rt-v2 .ca.up li { color: var(--ok); } .rt-v2 .ca.up li::before { content: "+"; font: 800 15px var(--mono); }
.rt-v2 .ca.dn li { color: var(--neg); } .rt-v2 .ca.dn li::before { content: "–"; font: 800 15px var(--mono); }
.rt-v2 .ca li small { font-weight: 500; color: var(--faint); white-space: nowrap; margin-left: 4px; }
.rt-v2 .card.how .steps ul.fx { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.rt-v2 .ptile b.rk, .rt-v2 .ptile > i, .rt-v2 .ptile > small { grid-column: 1 / -1; }
.rt-v2 .ptile > i { align-self: center; margin: 2px 0; }
/* T-1571P round 3 (Jordan, 2 Nov): Top and Bottom as big as the share, the score out of 100 under it; "pts" beside the big numbers; What reviewers say */
.rt-v2 .ptile b.rk { display: block; font: 800 clamp(21px, 6.2vw, 30px)/1.05 var(--head); color: var(--cs); white-space: nowrap; }
.rt-v2 .ptile b.rk .w { font: inherit; }
.rt-v2 .ptile > small { font-size: 13px; line-height: 1.35; } .rt-v2 .ptile > small b { display: inline; font: 700 13px var(--body); color: var(--text); }
.rt-v2 .cmp td.rk { font: 700 13px/1.25 var(--mono); }
.rt-v2 .cmp td.rk .w { display: block; font: inherit; }
.rt-v2 .bigx { grid-template-columns: 1fr; gap: 8px; }
.rt-v2 .bigx .bn { display: flex; align-items: baseline; gap: 8px; }
.rt-v2 .bigx .bn > b.num { display: inline; text-align: left; }
.rt-v2 .bigx .bn > b.pt { font: 800 30px var(--head); }
.rt-v2 .sw .bigx .bn > b.pt { color: var(--sword-soft); } .rt-v2 .sh .bigx .bn > b.pt { color: var(--shield-soft); }
.rt-v2 .bigx .bn > .unit { display: inline-block; margin: 0 0 0 6px; text-align: left; line-height: 1.35; }
.rt-v2 .card.rl .hd h2 { text-transform: uppercase; }
.rt-v2 .card.rl .ca:first-of-type { margin-top: 8px; }
.rt-v2 .ca li { color: var(--text); font-weight: 500; }
.rt-v2 .ca.up li { color: var(--text); } .rt-v2 .ca.up li::before { color: var(--ok); }
.rt-v2 .ca.dn li { color: var(--text); } .rt-v2 .ca.dn li::before { color: var(--neg); }
/* T-1571P round 4: the rank alone on the tiles; the big numbers' units in words beside them; each card's caption under its title */
.rt-v2 .ptile > small { font-size: 13px; color: var(--dim); }
.rt-v2 .bigx .bn { align-items: center; gap: 12px; }
.rt-v2 .bigx .bn > .unit { margin: 0; font: 500 15px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--dim); }
.rt-v2 .bigx p .ld { font-size: 15px; }
.rt-v2 .card .cap { margin: -6px 0 0; font: 500 14px var(--body); color: var(--dim); }
/* T-1571P round 5: solo against leading or led, one small table per pairing */
.rt-v2 .sl { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.rt-v2 .sl .slh { font: 600 14.5px/1.3 var(--body); }
.rt-v2 .sl .slh small { display: block; font: 500 12px var(--body); color: var(--faint); margin-top: 2px; }
.rt-v2 .sl table { width: 100%; border-collapse: collapse; margin-top: 6px; display: table; }
.rt-v2 .sl th { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); text-align: right; padding: 2px 4px 4px; }
.rt-v2 .sl td { padding: 4px; text-align: right; font: 700 15px var(--mono); }
.rt-v2 .sl td:first-child { text-align: left; font: 800 13px var(--head); letter-spacing: .06em; }
.rt-v2 .sl tr.s td { color: var(--sword-soft); } .rt-v2 .sl tr.h td { color: var(--shield-soft); }
.rt-v2 .sl th:nth-child(n+2), .rt-v2 .sl td:nth-child(n+2) { width: 25%; }

/* T-1637P (Jordan, 4 Nov: "the tyranid heading needs to be bigger and more pronounced"): the army's header on a unit page, its mark, name and
   the way to its page, and All N units, which opens every unit by type (allUnits) in two columns on a phone, four from 900 px. */
.rt .ahd { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ar); }
.rt a.ahm { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.rt .ahm .em { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--ar) 18%, var(--panel2)); color: var(--ar); }
.rt .ahm .em svg { width: 26px; height: 26px; }
.rt .ahm .an { min-width: 0; }
.rt .ahm b { display: block; font: 800 22px/1.05 var(--head); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.rt .ahm small { display: block; font: 700 12.5px var(--body); color: var(--dim); }
.rt a.ahm:hover small { color: var(--text); text-decoration: underline; }
.rt a.allb { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font: 700 14px var(--body); text-decoration: none; white-space: nowrap; }
.rt a.allb:hover { border-color: var(--ar); }
.rt-ov .sht.wide { max-width: 980px; }
.rt-ov .sht h3 small { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--dim); }
.rt-ov .aul { columns: 2; column-gap: 18px; font-size: 14px; }
@media (min-width: 900px) { .rt-ov .aul { columns: 4; } }
.rt-ov .aug { break-inside: avoid; margin: 0 0 12px; }
.rt-ov .aug h4 { margin: 0 0 2px; padding: 4px 0; border-bottom: 2px solid var(--g); font: 700 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.rt-ov .aug a, .rt-ov .aug .me { display: flex; align-items: center; gap: 7px; min-height: 32px; line-height: 1.2; color: var(--text); text-decoration: none; }
.rt-ov .aug a:hover span { text-decoration: underline; }
.rt-ov .aug .me { font-weight: 800; color: var(--ar); }
.rt-ov .aug .coin { flex: none; width: 20px; height: 20px; font-size: 11px; border-radius: 5px; border-width: 1.5px; }
/* T-1638P: Why it's taken, in green. */
.rt .ptile.why { --c: var(--ok); --cs: var(--ok); grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); cursor: default; }
.rt .ptile.why b.wy { font: 800 19px/1.2 var(--head); color: var(--text); }

/* T-1647P (Jordan, 4 Nov: "B, make it so"; mockup round 5): the merged army page. The name in the heading face on the side's bar, three facts
   of one weight, three buttons that jump to the sections, each section opening on a band in its button's colour (Results amber, Detachments
   teal, Units blue); the units' scores as five bars, the sword and shield over them at every group's heading. */
.rt-a2 { --res: #F5B83D; --det: #2DD4BF; --uni: #60A5FA; gap: 14px; }
:root[data-theme="light"] .rt-a2 { --res: #B7791F; --det: #0F766E; --uni: #1D4ED8; }
.rt-a2 .glyph { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.rt-a2 .ahx { border-left: 6px solid var(--side, var(--ar)); padding: 2px 0 2px 12px; }
.rt-a2 .kick { margin: 0; font: 800 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--side, var(--ar)); }
.rt-a2 .ahx h1 { margin: 4px 0; font: 800 48px/1 var(--head); letter-spacing: .005em; color: var(--text); overflow-wrap: anywhere; }
.rt-a2 .ahx .sub { margin: 0; font-size: 14px; color: var(--dim); }
.rt-a2 .facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rt-a2 .f3 { display: grid; grid-template-rows: auto 40px auto; gap: 4px; align-content: start; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rt-a2 .f3 > small { font: 700 10px/1.2 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-a2 .f3 > span:last-child { font-size: 12px; line-height: 1.25; color: var(--faint); }
.rt-a2 .f3 .big { align-self: center; font: 800 28px/1 var(--head); }
.rt-a2 .f3 .mid { align-self: center; font: 800 19px/1.1 var(--head); }
.rt-a2 .badge { --c: var(--td); align-self: center; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--c); background: color-mix(in srgb, var(--c) 26%, var(--panel)); color: var(--c); font: 800 20px/1 var(--head); }
.rt-a2 .badge.ts { --c: var(--ts); } .rt-a2 .badge.ta { --c: var(--ta); } .rt-a2 .badge.tb { --c: var(--tb); } .rt-a2 .badge.tc { --c: var(--tc); } .rt-a2 .badge.td { --c: var(--td); }
.rt-a2 .badge.none { --c: var(--faint); background: none; border-style: dashed; }
.rt-a2 .prov { margin: -4px 0 0; text-align: center; font-size: 12.5px; color: var(--dim); }
.rt-a2 .sec { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); scroll-margin-top: 84px; }
.rt-a2 .band { --k: var(--uni); display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--k) 20%, var(--panel)); border-bottom: 3px solid var(--k); }
.rt-a2 .band.res { --k: var(--res); } .rt-a2 .band.det { --k: var(--det); }
.rt-a2 .band .bi .glyph { width: 24px; height: 24px; color: var(--k); }
.rt-a2 .band h2 { margin: 0; font: 800 26px/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.rt-a2 .band .bn { padding: 3px 9px; border-radius: 99px; background: var(--k); color: var(--bg); font: 800 15px/1 var(--body); }
.rt-a2 .band small { margin-left: auto; font-size: 12px; line-height: 1.25; color: var(--dim); text-align: right; }
.rt-a2 .sec .body { display: grid; padding: 6px 14px 12px; }
.rt-a2 .lede { margin: 6px 0; font-size: 14px; color: var(--dim); }
.rt-a2 .lr { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.rt-a2 .lr:first-child { border-top: 0; }
.rt-a2 .lp { font: 800 16px/1.1 var(--head); } .rt-a2 .lp small { display: block; font: 500 11px var(--body); color: var(--faint); }
.rt-a2 .le { min-width: 0; font-size: 14px; line-height: 1.25; } .rt-a2 .le b { font-weight: 650; } .rt-a2 .le small { display: block; font-size: 12px; color: var(--faint); }
.rt-a2 .ld { font-size: 12px; color: var(--faint); white-space: nowrap; }
.rt-a2 .more { padding-top: 8px; font-weight: 700; font-size: 14px; color: var(--text); }
.rt-a2 .bym > summary { display: flex; justify-content: space-between; padding: 8px 0 2px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; }
.rt-a2 .bym > summary::after, .rt-a2 .mr > summary::after { content: "▾"; color: var(--faint); margin-left: 6px; }
.rt-a2 .bm { display: grid; gap: 2px; margin-top: 4px; }
.rt-a2 .bmr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; font-size: 13px; color: var(--dim); }
.rt-a2 .bmr.on { color: var(--text); font-weight: 700; }
.rt-a2 .dots { color: var(--res); letter-spacing: 1px; overflow: hidden; white-space: nowrap; }
.rt-a2 .drow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 650; font-size: 14px; }
.rt-a2 .drow:first-child { border-top: 0; }
.rt-a2 .dc { font-weight: 500; font-size: 12.5px; color: var(--dim); white-space: nowrap; } .rt-a2 .dc b { color: var(--text); }
.rt-a2 .mr > summary { padding: 8px 0; font-weight: 700; font-size: 13.5px; color: var(--uni); cursor: pointer; list-style: none; border-top: 1px solid var(--line); }
.rt-a2 .how1 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.rt-a2 .how1 span { padding: 3px 9px; border-radius: 99px; background: var(--panel2); font: 700 12px var(--body); color: var(--dim); }
.rt-a2 .how1 .ib { margin-left: auto; color: var(--uni); } .rt-a2 .how1 .ib .glyph { width: 16px; height: 16px; }
.rt-a2 .th, .rt-a2 .tr, .rt-a2 .gh { grid-template-columns: minmax(0, 1fr) 40px 56px 56px 8px; }
.rt-a2 .th button { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.rt-a2 .th button:first-child { align-items: flex-start; }
.rt-a2 .th .glyph { width: 11px; height: 11px; }
.rt-a2 .gh { display: grid; gap: 5px; align-items: center; }
.rt-a2 .gh .gn { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-a2 .gh .gi { display: grid; place-items: center; } .rt-a2 .gh .gi .glyph { width: 12px; height: 12px; }
.rt-a2 .gh .gi.sw { color: var(--sword-soft); } .rt-a2 .gh .gi.sh { color: var(--shield-soft); }
.rt-a2 .tn small b { color: var(--text); font-weight: 650; }
.rt-a2 .pc .pp { display: flex; gap: 2px; }
.rt-a2 .pc .pp i { width: 8px; height: 12px; border-radius: 2px; background: var(--panel2); border: 1px solid var(--line); }
.rt-a2 .pc.sw .pp i.on { background: var(--sword); border-color: var(--sword); } .rt-a2 .pc.sh .pp i.on { background: var(--shield); border-color: var(--shield); }
.rt-a2 .stamps { text-align: center; }

.rt-a2 .gh .gn small { margin-left: 0; }
.rt-a2 .grpw.ally .gh { border-left-style: dashed; background: color-mix(in srgb, var(--g) 8%, var(--panel)); }
.rt-a2 .alh { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 600 13px var(--body); color: var(--dim); }
.rt-a2 .ahx .sub { font: 400 14px/1.35 var(--body); letter-spacing: 0; text-transform: none; }
.rt-a2 .f3 > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rt .hero2 .meta .from { color: var(--text); font-weight: 650; }
/* T-1399P (2): a spotlit unit's link to this week's Spotlight */
.rt .hero2 .hspot { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 650; color: var(--red); text-decoration: none; }
.rt .hero2 .hspot:hover, .rt .hero2 .hspot:focus-visible { text-decoration: underline; }
/* Jordan's page notes (9 Nov, T-1880P). A fold's closed state: the next row half-faded under a "Show N more" pill; opened, the rows replace it. */
.rt .mr.mr2 > summary, .rt-a2 .mr.mr2 > summary { display: block; padding: 0; border-top: 0; list-style: none; cursor: pointer; position: relative; color: var(--text); font-weight: inherit; }
.rt .mr.mr2 > summary::-webkit-details-marker { display: none; }
.rt .mr.mr2 > summary::after, .rt-a2 .mr.mr2 > summary::after { content: none; }
.rt .mr2 .peek { display: block; max-height: 44px; overflow: hidden; opacity: .55; pointer-events: none; -webkit-mask-image: linear-gradient(#000 15%, transparent); mask-image: linear-gradient(#000 15%, transparent); }
.rt .mr2 .peek > * { border-bottom: 0; border-top: 0; }
.rt .mr2 .mrb { display: block; width: max-content; margin: -14px auto 6px; position: relative; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: 600 13px var(--body); }
.rt .mr2 > summary:hover .mrb, .rt .mr2 > summary:focus-visible .mrb { border-color: var(--uni, var(--text)); }
.rt .mr2[open] > summary { display: none; }
/* Into each enemy type: the number, its line, its rank small under it. */
.rt .mini3 .mp { font: 600 11px var(--body); color: var(--dim); }
.rt .sub h3 small { margin-left: 4px; font: 500 11.5px var(--body); letter-spacing: 0; text-transform: none; color: var(--faint); }
/* Units near it: SWORD and SHIELD side by side. */
.rt-v2 .near2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rt-v2 .ncol { min-width: 0; display: grid; gap: 8px; align-content: start; }
.rt-v2 .ncol h3 { margin: 0; font: 800 12.5px var(--mono); letter-spacing: .08em; }
.rt-v2 .ncol.sw h3 { color: var(--sword-soft); } .rt-v2 .ncol.sh h3 { color: var(--shield-soft); }
.rt-v2 .ncol .nbox + .nbox { margin-top: 8px; }
.rt-v2 .ncol.sh .nbox { --c: var(--shield); --c-soft: var(--shield-soft); }
.rt-v2 .ncol.sh .nr.me { background: color-mix(in srgb, var(--shield) 18%, transparent); }
@media (max-width: 480px) { .rt-v2 .near2 { gap: 8px; } .rt-v2 .ncol .nbox { padding: 6px 8px 8px; } .rt-v2 .ncol .nr { font-size: 13px; } }
/* Units near it takes Compare's green; the leader tables the site's leader yellow. */
.rt .card.nb, .rt .card.ld { border-top: 3px solid var(--c); }
.rt .card.nb { --c: var(--ar); } .rt .card.ld { --c: var(--lead); }
.rt .card.nb .hd h2 { color: var(--ar); text-transform: uppercase; } .rt .card.ld .hd h2 { color: var(--lead); text-transform: uppercase; }
.rt-v2 .ncol .nr small { display: block; font-size: 11px; line-height: 1.3; }
/* The faded preview is a copy of the next unit's row, not a row of its own (a unit is one .tr). */
.rt .mr2 .trp { display: grid; grid-template-columns: minmax(0, 1fr) 40px 52px 52px 8px; gap: 5px; align-items: center; padding: 6px 0; }
.rt-a2 .mr2 .trp { grid-template-columns: minmax(0, 1fr) 40px 56px 56px 8px; }
/* Units near it, aligned (Jordan, 9 Nov: "laid out cleanly not mismatched"): both columns' boxes sit in one grid, so the two "In <army>" boxes
   share their rows and the two "Across the game" boxes theirs (subgrid); a long name wraps on both sides at once. */
.rt-v2 .near2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 0; }
.rt-v2 .near2 .ncol, .rt-v2 .near2 .ncol > div { display: contents; }
.rt-v2 .near2 .ncol > h3 { grid-row: 1; margin-bottom: 8px; }
.rt-v2 .near2 .ncol.sw > h3, .rt-v2 .near2 .ncol.sw .nbox { grid-column: 1; }
.rt-v2 .near2 .ncol.sh > h3, .rt-v2 .near2 .ncol.sh .nbox { grid-column: 2; }
.rt-v2 .near2 .nbox:first-child { grid-row: 2 / span 6; }
.rt-v2 .near2 .nbox:nth-child(2) { grid-row: 8 / span 4; margin-top: 10px; }
.rt-v2 .near2 .nbox { display: grid; grid-template-rows: subgrid; align-content: start; }
.rt-v2 .near2 .nbox + .nbox { margin-top: 10px; }
/* The leader tables' numbers as framed buttons that open their explanation (Jordan, 9 Nov). */
.rt-v2 .sl td .lv { min-width: 58px; padding: 3px 9px; border: 1px solid color-mix(in srgb, currentColor 45%, var(--line)); border-radius: 8px; background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font: inherit; text-align: right; cursor: pointer; }
.rt-v2 .sl td .lv:hover, .rt-v2 .sl td .lv:focus-visible { border-color: currentColor; background: color-mix(in srgb, currentColor 16%, transparent); }
.rt-v2 .sl td .lv:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rt-v2 .sl tr.s td .lv { color: var(--sword-soft); } .rt-v2 .sl tr.h td .lv { color: var(--shield-soft); }
/* The win-rate tile as a button: the letter sized to the row, its band under it (Jordan, 9 Nov). */
.rt-a2 button.f3.wr { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.rt-a2 button.f3.wr:hover, .rt-a2 button.f3.wr:focus-visible { border-color: var(--text-2, var(--text)); }
.rt-a2 .f3.wr > small span { margin-left: 3px; color: var(--faint); }
.rt-a2 .f3 .badge { align-self: center; width: 40px; height: 40px; font-size: 22px; }
.rt-a2 .f3.wr .wrv { display: flex; align-items: center; gap: 8px; height: 40px; } .rt-a2 .f3.wr .wrv .ib { color: var(--faint); font-size: 15px; }
/* Round 3 (Jordan, 9 Nov). The win-rate tile: the letter centred, a small quiet "i" in the corner. */
.rt-a2 .f3.wr { position: relative; }
.rt-a2 .f3.wr .badge { justify-self: center; }
.rt-a2 .f3.wr > span:last-child { text-align: center; }
.rt-a2 .f3.wr .wrc { position: relative; justify-self: center; align-self: center; display: inline-grid; }
.rt-a2 .f3.wr .wrc .ib { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 50%; font: italic 700 8.5px/1 Georgia, serif; color: var(--faint); }
/* Enemy types: the number, its unit small beside it. */
.rt .mini3 .mv { align-items: center; gap: 6px; } .rt .mini3 .mv small { font: 600 10px/1.15 var(--body); color: var(--faint); min-width: 0; }
/* Solo / Led headings easier to see. */
.rt-v2 .sl th { color: var(--text-2, var(--dim)); font-weight: 800; }
/* The number sheets: who it is, then short labelled lines. */
.rt-ov .sht h3.lvt small { display: block; margin-top: 3px; }
.rt-ov .sht .lvd { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; }
.rt-ov .sht .lvd dt { font: 700 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.rt-ov .sht .lvd dd { margin: 0; font-size: 15px; line-height: 1.4; }
/* The leader card (Jordan, 10 Nov): a bar a number (the squad's part in its colour, what the leader adds in the leaders' gold), the two sums
   (what it does ÷ what you pay = per 100 pts), an arrow and a line of why. */
.rt-v2 .pcard { display: grid; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.rt-v2 .pcard .slh { font: 600 14.5px/1.3 var(--body); } .rt-v2 .pcard .slh small { display: block; margin-top: 2px; font: 500 12px var(--body); color: var(--faint); }
.rt-v2 .pc2 { display: grid; gap: 6px; }
.rt-v2 .pcl { font: 800 13px var(--mono); letter-spacing: .06em; } .rt-v2 .pcl small { font: 500 12px var(--body); letter-spacing: 0; color: var(--dim); }
.rt-v2 .pc2.s .pcl { color: var(--sword-soft); } .rt-v2 .pc2.h .pcl { color: var(--shield-soft); }
.rt-v2 .pbar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; background: var(--panel2); }
.rt-v2 .pbar span { display: grid; place-items: center; min-width: 0; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 12px var(--body); color: #fff; }
.rt-v2 .pc2.s .ps { background: var(--sword); } .rt-v2 .pc2.h .ps { background: var(--shield); }
.rt-v2 .pbar .pl { background: var(--lead, #FFD700); color: var(--bg); }
.rt-v2 .psum { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto 40px; gap: 6px; align-items: baseline; font-size: 13.5px; }
.rt-v2 .psum > span:first-child { font-weight: 700; color: var(--text-2, var(--dim)); }
.rt-v2 .psum > span:nth-child(2) { font: 600 13px var(--mono); color: var(--dim); }
.rt-v2 .psum > b { font: 800 17px var(--mono); } .rt-v2 .pc2.s .psum > b { color: var(--sword-soft); } .rt-v2 .pc2.h .psum > b { color: var(--shield-soft); }
.rt-v2 .psum > small { font-size: 11px; color: var(--faint); }
.rt-v2 .pa { font: 800 13px var(--mono); text-align: right; } .rt-v2 .pa.up { color: var(--green, #10B981); } .rt-v2 .pa.dn { color: var(--red, #F87171); }
.rt-v2 .pwhy { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-2, var(--dim)); }
.rt-v2 .psum { grid-template-columns: 58px minmax(0, 1fr) auto auto 36px; gap: 5px; } .rt-v2 .psum > span:nth-child(2) { white-space: nowrap; font-size: 12.5px; letter-spacing: -.02em; }
@media (max-width: 380px) { .rt-v2 .psum > small { display: none; } }
/* The leader card's three parts in the funnel's ramp (Jordan, 10 Nov: "a progression of colours like the funnel", not too contrasty):
   SWORD blue -> cyan -> teal, SHIELD purple -> indigo -> blue; the light theme's ramp is darker, so its text is white throughout. */
.rt-v2 .pc2.s .p1 { background: var(--c2); } .rt-v2 .pc2.s .p2 { background: var(--c3); } .rt-v2 .pc2.s .p3 { background: var(--c4); }
.rt-v2 .pc2.h .p1 { background: var(--c0); } .rt-v2 .pc2.h .p2 { background: var(--c1); } .rt-v2 .pc2.h .p3 { background: var(--c2); }
.rt-v2 .pbar span { color: #fff; } .rt-v2 .pc2.s .pbar .p2, .rt-v2 .pc2.s .pbar .p3 { color: #0B1120; }
:root[data-theme="light"] .rt-v2 .pc2.s .pbar .p2, :root[data-theme="light"] .rt-v2 .pc2.s .pbar .p3 { color: #fff; }
.rt-v2 .pkey { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--text-2, var(--dim)); }
.rt-v2 .pkey i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* The leader card's three parts as one hue stepping in lightness (Gemini's suggestion, 10 Nov, Jordan: the funnel steps "still look bad"):
   SWORD blues, SHIELD purples; dark theme darkest to lightest, light theme lightest to darkest; a label colour each. */
.rt-v2 .pc2.s .p1 { background: #1E40AF; color: #fff; } .rt-v2 .pc2.s .p2 { background: #3B82F6; color: #fff; } .rt-v2 .pc2.s .p3 { background: #9CC2FF; color: #0F172A; }
.rt-v2 .pc2.h .p1 { background: #4C1D95; color: #fff; } .rt-v2 .pc2.h .p2 { background: #7C3AED; color: #fff; } .rt-v2 .pc2.h .p3 { background: #C4B5FD; color: #0F172A; }
.rt-v2 .pc2 .pbar span.p1, .rt-v2 .pc2 .pbar span.p2 { color: #fff; } .rt-v2 .pc2.s .pbar span.p3, .rt-v2 .pc2.h .pbar span.p3 { color: #0F172A; }
:root[data-theme="light"] .rt-v2 .pc2.s .p1 { background: #3B82F6; } :root[data-theme="light"] .rt-v2 .pc2.s .p2 { background: #1D4ED8; } :root[data-theme="light"] .rt-v2 .pc2.s .p3 { background: #172554; }
:root[data-theme="light"] .rt-v2 .pc2.h .p1 { background: #8B5CF6; } :root[data-theme="light"] .rt-v2 .pc2.h .p2 { background: #6D28D9; } :root[data-theme="light"] .rt-v2 .pc2.h .p3 { background: #4C1D95; }
:root[data-theme="light"] .rt-v2 .pc2 .pbar span.p1, :root[data-theme="light"] .rt-v2 .pc2 .pbar span.p2, :root[data-theme="light"] .rt-v2 .pc2 .pbar span.p3 { color: #fff; }
/* Jordan, 10 Nov: the bars as bordered ovals with a hairline gap between the colours; SWORD and SHIELD titles more prominent. */
.rt-v2 .pbar { height: 30px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--text) 22%, var(--line)); padding: 2px; gap: 2px; background: var(--panel); overflow: hidden; }
.rt-v2 .pbar span { border-radius: 2px; }
.rt-v2 .pbar span:first-child { border-radius: 999px 2px 2px 999px; } .rt-v2 .pbar span:last-child { border-radius: 2px 999px 999px 2px; } .rt-v2 .pbar span:only-child { border-radius: 999px; }
.rt-v2 .pc2.s .pbar { border-color: color-mix(in srgb, var(--sword) 55%, var(--line)); } .rt-v2 .pc2.h .pbar { border-color: color-mix(in srgb, var(--shield) 55%, var(--line)); }
.rt-v2 .pcl { font: 800 18px var(--head); letter-spacing: .04em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .rt-v2 .pcl small { font: 500 12.5px var(--body); letter-spacing: 0; }
.rt-v2 .psum { grid-template-columns: 94px minmax(0, 1fr) auto auto 36px; } .rt-v2 .psum > span:first-child { white-space: nowrap; }
@media (max-width: 400px) { .rt-v2 .psum { grid-template-columns: 86px minmax(0, 1fr) auto 34px; } .rt-v2 .psum > small { display: none; } }
@media (max-width: 400px) { .rt-v2 .psum { grid-template-columns: 84px minmax(0, 1fr) auto auto 32px; } .rt-v2 .psum > small { display: inline; } }
/* Plain numbers (Jordan, 18 Nov): SWORD and SHIELD lead with real points; the per-100 scores a small grey line under the big number and each tile. */
.rt [data-sh-big] { display: contents; }
.rt .bigx p .per { display: block; font: 500 12px/1.35 var(--body); color: var(--faint); }
.rt .mini3 .mp { display: block; font: 500 12px/1.3 var(--body); color: var(--faint); }
/* 0 to 100 (Jordan, 18 Nov: "Score on top, tape below"): the score and its bar, then this unit against a grey average unit of its cost. */
.rt .s100 .hs, .rt [data-sh-big].s100 .hs { display: flex; align-items: center; gap: 14px; }
.rt .hs .snum { display: flex; align-items: baseline; gap: 2px; flex: none; }
.rt .hs .num { font: 800 60px/0.9 var(--head); font-variant-numeric: tabular-nums; }
.rt .hs .snum small { font: 600 15px var(--body); color: var(--faint); }
.rt .hs .num.nt { font-size: 30px; line-height: 1.1; color: var(--dim) !important; }
.rt .sw .hs .num { color: var(--sword-soft); } .rt .sh .hs .num { color: var(--shield-soft); }
.rt .hs .strk { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rt .hs .track { position: relative; height: 14px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.rt .hs .track i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.rt .sw .hs .track i { background: var(--sword); } .rt .sh .hs .track i { background: var(--shield); }
.rt .hs .scale { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--faint); }
.rt .tape { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; font-size: 13px; margin-top: 4px; }
.rt .tape .tb { position: relative; height: 12px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.rt .tape .tb i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.rt .sw .tape .tb i { background: var(--sword); } .rt .sh .tape .tb i { background: var(--shield); }
.rt .tape .tb.avg i { background: var(--faint) !important; opacity: .75; }
.rt .tape b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt .tape .ty { color: var(--dim); }
.rt .tline { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
.rt .among { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; }
.rt .among a { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.rt .among a:hover { text-decoration-color: currentColor; }
.rt .mini3.s100 .mt.sc { position: relative; display: block; height: 8px; border-radius: 3px; background: var(--panel2); overflow: hidden; }
.rt .mini3.s100 .mt.sc s { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--sword); text-decoration: none; }
.rt .mini3.s100 .mv small { font: 600 11px var(--body); color: var(--faint); }
.rt .ptile b.rk small { font: 600 .42em var(--body); opacity: .75; margin-left: 2px; }
.rt .ptile em.nt { font: italic 700 20px var(--body); opacity: .85; }
/* The army table's score bars (the faint line at 50) and its filters. */
.rt .pc.sc { display: grid; grid-template-columns: auto; gap: 3px; justify-items: stretch; }
.rt .pc.sc b { text-align: center; font: 800 16px/1 var(--head); font-variant-numeric: tabular-nums; }
.rt .pc.sc i { position: relative; height: 6px; border-radius: 3px; background: var(--panel2); overflow: visible; }
.rt .pc.sc i::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid var(--faint); opacity: .7; }
.rt .pc.sc s { display: block; height: 100%; border-radius: 3px; }
.rt .pc.na em { font: italic 600 11px/1.15 var(--body); color: var(--faint); text-align: center; }
.rt .fchips { display: grid; gap: 6px; margin: 8px 0 2px; }
.rt .fchips[hidden] { display: none; }
.rt .fchips .fr { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt .fchips small { font: 600 11px var(--body); color: var(--faint); margin-right: 2px; }
.rt .fchips button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); color: var(--dim); font: 600 13px var(--body); cursor: pointer; }
.rt .fchips button[aria-pressed="true"] { background: color-mix(in srgb, var(--role) 22%, var(--panel)); border-color: var(--role); color: var(--text); }
.rt .fchips button:focus-visible { outline: 2px solid var(--role); outline-offset: 2px; }
.rt .nomatch { padding: 14px 4px; color: var(--dim); }
.rt-a2 .th, .rt-a2 .tr, .rt-a2 .gh, .rt-a2 .mr2 .trp { grid-template-columns: minmax(0, 1fr) 40px minmax(56px, 76px) minmax(56px, 76px) 8px; }
/* 50 = the typical unit (Jordan, 18 Nov: "Why is 50 not average"): a small AVG tick at 50 on every score bar, the grey average bar agreeing. */
.rt .hs .track { overflow: visible; }
.rt .hs .track u.avg { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px solid var(--text); opacity: .55; text-decoration: none; }
.rt .hs .track u.avg em { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font: 700 9.5px/1 var(--body); font-style: normal; letter-spacing: .06em; color: var(--dim); }
.rt .hs .strk { padding-top: 12px; }
.rt .ptile i, .rt .mini3.s100 .mt.sc { position: relative; overflow: visible; }
.rt .ptile i u.avg, .rt .mini3.s100 .mt.sc u.avg { position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1.5px solid var(--text); opacity: .5; text-decoration: none; }
.rt .ptile i s { border-radius: 3px; }
/* The hero's loud numbers (Jordan, 18 Nov: "large numbers and a picture / emblem of a sword, no /100 anymore"): our own pixel sword and
   shield beside the score, blue SWORD and purple SHIELD; a tap opens the ⓘ. */
.rt-v2 .ptile.big { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "e l i" "e n n"; align-items: center; gap: 0 12px; padding: 12px 14px; cursor: pointer; }
.rt-v2 .ptile.big .pe { grid-area: e; display: grid; place-items: center; color: var(--cs); }
.rt-v2 .ptile.big .pe .emb { width: auto; height: 64px; image-rendering: pixelated; }
.rt-v2 .ptile.big .pl { grid-area: l; grid-column: auto; font: 800 14px var(--head); letter-spacing: .1em; color: var(--cs); }
.rt-v2 .ptile.big .pn { grid-area: n; grid-column: auto; display: block; font: 800 64px/0.9 var(--head); color: var(--cs); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-v2 .ptile.big .pn.nt { font-size: 24px; line-height: 1.1; white-space: normal; opacity: .85; }
.rt-v2 .ptile.big .pi { grid-area: i; font-size: 15px; color: var(--faint); justify-self: end; }
.rt-v2 .ptile.big:hover .pi, .rt-v2 .ptile.big:focus-visible .pi { color: var(--text); }
@media (max-width: 480px) { .rt-v2 .ptile.big { gap: 0 8px; padding: 10px 10px; } .rt-v2 .ptile.big .pe .emb { height: 46px; } .rt-v2 .ptile.big .pn { font-size: 48px; } }
/* The hero's bars (Jordan, 19 Nov, on the mockup: "add the bar to the hero banner"): 0 to 100 under each big number, a white tick at 50. */
.rt-v2 .ptile.big { grid-template-areas: "e l i" "e n n" "e b b"; }
.rt-v2 .ptile.big .hbar { grid-area: b; position: relative; display: block; height: 10px; margin-top: 8px; border-radius: 5px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.rt-v2 .ptile.big .hbar i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: var(--c); }
.rt-v2 .ptile.big .hbar s { position: absolute; top: -4px; bottom: -4px; left: 50%; border-left: 2px solid var(--text); opacity: .8; }
.rt .hcap { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--faint); }
/* Where it sits in its army: every unit, a SWORD and a SHIELD bar each, the line at 50; this unit marked; its own scroll. */
.rt .card.ws { --c: var(--role); }
.rt .wsrt { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rt .wsrt button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); color: var(--dim); font: 700 13px var(--body); cursor: pointer; }
.rt .wsrt button[aria-pressed="true"] { background: color-mix(in srgb, var(--text) 12%, var(--panel)); border-color: var(--text); color: var(--text); }
.rt .wsrt button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.rt .wtbl { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) 26px minmax(0, 1fr) 26px; gap: 7px 8px; align-items: center; max-height: 440px; overflow: auto; padding: 0 4px 4px 0; font-size: 13px; overscroll-behavior: contain; }
.rt .wtbl:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.rt .wtbl .wh { position: sticky; top: 0; z-index: 1; padding: 3px 0; background: var(--panel); font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt .wtbl .wh.sw { color: var(--sword-soft); } .rt .wtbl .wh.sh { color: var(--shield-soft); }
.rt .wtbl .wn { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.rt .wtbl .wn a { color: var(--text); text-decoration: none; } .rt .wtbl .wn a:hover { text-decoration: underline; }
.rt .wtbl .wn small { color: var(--faint); font-size: 11.5px; }
.rt .wtbl .wn.me { margin: -3px -4px; padding: 3px 4px; border-radius: 6px; background: color-mix(in srgb, var(--lead) 16%, transparent); }
.rt .wtbl .wn.me b { color: var(--text); font-weight: 800; }
.rt .wtbl .wb { position: relative; height: 8px; border-radius: 3px; background: var(--panel2); }
.rt .wtbl .wb i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; } .rt .wtbl .wb.sw i { background: var(--sword); } .rt .wtbl .wb.sh i { background: var(--shield); }
.rt .wtbl .wb s { position: absolute; top: -3px; bottom: -3px; left: 50%; border-left: 1px solid var(--faint); }
.rt .wtbl .wv { text-align: right; font: 800 14px/1 var(--head); font-variant-numeric: tabular-nums; } .rt .wtbl .wv.sw { color: var(--sword-soft); } .rt .wtbl .wv.sh { color: var(--shield-soft); }
.rt .wtbl .wt { font-size: 11px; font-style: italic; color: var(--faint); }
.rt .ucred { grid-column: 1 / -1; display: grid; gap: 4px; }
.rt .wtbl .wh { align-self: stretch; display: flex; align-items: center; min-height: 22px; }
/* The cards in plain points (Jordan, 19 Nov): the headline "Kills 87 pts per activation" / "Takes 661 pts of attacks to remove" where the
   score was; the enemy-type tiles in points, each bar this unit's points with the average as a tick. */
.rt .hl { margin: 0; font: 800 26px/1.15 var(--head); letter-spacing: .01em; color: var(--text); text-wrap: balance; }
.rt .sw .hl b { color: var(--sword-soft); } .rt .sh .hl b { color: var(--shield-soft); }
.rt .hl.nt { color: var(--dim); }
.rt .mini3.s100 .mt.rv { position: relative; display: block; height: 8px; border-radius: 3px; background: var(--panel2); }
.rt .mini3.s100 .mt.rv s { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--sword); text-decoration: none; }
.rt .mini3.s100 .mt.rv u.avg { position: absolute; top: -3px; bottom: -3px; border-left: 2px solid var(--text); opacity: .6; text-decoration: none; }
.rt .mini3.s100 .mv small { margin-left: 2px; }
@media (max-width: 480px) { .rt .hl { font-size: 22px; } }
/* Desktop (Jordan, 19 Nov: "rearrange the boxes so they fit nicely - ie move the what creators say under the shield"): SWORD on the left;
   SHIELD with What creators say under it on the right; Where it sits, the leaders and the credit across the foot. A column's last card
   stretches to meet the other, so no hole is left. */
@media (min-width: 900px) {
  .rt.rt-v2 .cards { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .rt.rt-v2 .cards > .card.sw { grid-column: 1; grid-row: 1 / span 2; }
  .rt.rt-v2 .cards > .card.sh { grid-column: 2; grid-row: 1; }
  .rt.rt-v2 .cards > .card.rl { grid-column: 2; grid-row: 2; }
  .rt.rt-v2 .cards:not(:has(> .card.rl)) > .card.sw { grid-row: 1; }
  .rt.rt-v2 .cards > .card.ws, .rt.rt-v2 .cards > .card.ld, .rt.rt-v2 .cards > .ucred { grid-column: 1 / -1; }
}
.rt .mini3.s100 .m { align-content: start; }
.rt .mini3.s100 .mt.rv s { margin-left: 0; }
.rt .wtbl .wh { box-shadow: 0 -8px 0 var(--panel); }
.rt .mini3.s100 .m:has(.mt.rv) { grid-template-rows: auto auto 8px auto; }
.rt .wtbl .wh { box-shadow: 0 -8px 0 var(--panel), 0 7px 0 var(--panel); }
.rt .wtbl .wh { box-shadow: 0 -8px 0 var(--panel), 0 11px 0 var(--panel); }
/* The hero's lower half (Jordan, 19 Nov, the mockup: "Yes, build it"): what its rules do in yellow, then one bold row, its share of lists
   and a proper Simulate. */
.rt .rules { margin-top: 12px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--lead) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--lead) 7%, transparent); }
.rt .rules[hidden] { display: none; }
/* T-1933S: the Profile card, numbers and names only (our own card, nothing like a datasheet). */
.rt .fold.prof { --pf: var(--green); margin-top: 12px; border: 1.5px solid color-mix(in srgb, var(--pf) 60%, var(--line)); background: color-mix(in srgb, var(--pf) 11%, var(--panel2)); }
.no-profiles .rt .fold.prof { display: none; }
/* Always open (Jordan, 21 Nov): the title, then the card. */
.rt .fold.prof > .pf-top { display: flex; align-items: baseline; gap: 10px; padding: 11px 12px 6px; }
.rt .prof .pf-top > b { font: 800 17px/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--pf); }
.rt .prof .pf-top small { font: 600 12.5px var(--body); color: var(--dim); }
.rt .fold.prof > div { gap: 0; }
/* Its height kept while the numbers load, so the page below doesn't jump (about a filled card's, statline to the button). */
.rt .prof:not([data-ready]) [data-prof-body] { min-height: 196px; }
/* The drawer (Jordan, 22 Nov): the keywords and weapons closed to their first line, half showing and fading, under Show keywords and
   weapons; open, all of it and Show less. */
.rt .prof .pf-di { max-height: 54px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 15%, transparent 92%); mask-image: linear-gradient(#000 15%, transparent 92%); }
.rt .prof .pf-dr.on .pf-di { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.rt .prof .pf-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 4px 0 8px; padding: 10px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--pf) 65%, var(--line)); background: var(--panel); color: var(--text); font: 700 14px var(--body); cursor: pointer; }
.rt .prof .pf-open::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2.5px 2.5px 0; transform: translateY(-2px) rotate(45deg); }
.rt .prof .pf-dr.on .pf-open::after { transform: translateY(2px) rotate(-135deg); }
.rt .prof .pf-open:hover, .rt .prof .pf-open:focus-visible { background: color-mix(in srgb, var(--pf) 14%, var(--panel)); }
/* The other weapons it can take: about a row and a half, fading out, until "Show all N weapons" opens them. */
.rt .prof .pf-more { margin-top: 2px; }
.rt .prof .pf-mi { max-height: 104px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.rt .prof .pf-more.on .pf-mi { max-height: none; -webkit-mask-image: none; mask-image: none; }
.rt .prof .pf-oth { margin: 10px 0 0; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.rt .prof .pf-all { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 4px; padding: 9px 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--pf) 65%, var(--line)); background: var(--panel); color: var(--pf); font: 800 13.5px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.rt .prof .pf-all::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.rt .prof .pf-more.on .pf-all::after { transform: translateY(2px) rotate(-135deg); }
.rt .prof .pf-all:hover, .rt .prof .pf-all:focus-visible { background: color-mix(in srgb, var(--pf) 14%, var(--panel)); }
.rt .prof .pf-st { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; margin: 2px 0 6px; }
.rt .prof .pf-c { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.rt .prof .pf-c span { font: 600 10.5px var(--mono); letter-spacing: .06em; color: var(--faint); }
.rt .prof .pf-c b { font: 800 17px/1.1 var(--head); color: var(--text); }
.rt .prof .pf-note, .rt .prof .pf-foot { margin: 2px 0 6px; font-size: 12px; color: var(--dim); }
.rt .prof .pf-foot { margin: 10px 0 0; }
.rt .prof h4 { margin: 10px 0 4px; }
.rt .prof .pf-hd, .rt .prof .pf-v { display: grid; grid-template-columns: minmax(0, 1fr) 44px 38px 28px 28px 28px 36px; gap: 2px;   /* A and D wide enough for "D6+3" */ align-items: baseline; }
.rt .prof .pf-hd { padding: 6px 0 4px; border-bottom: 1px solid var(--line); font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.rt .prof .pf-hd span:not(:first-child), .rt .prof .pf-v span { text-align: center; }
.rt .prof .pf-hd span:first-child { color: var(--dim); }
.rt .prof .pf-w { padding: 7px 0 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.rt .prof .pf-w.pf-g { padding-bottom: 0; border-bottom: 0; }
.rt .prof .pf-w.pf-md { padding-top: 3px; }
.rt .prof .pf-n { font: 700 14px var(--body); color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rt .prof .pf-n i { font-style: normal; color: var(--dim); font-weight: 600; }
.rt .prof .pf-m { font-weight: 600; color: var(--dim); padding-left: 14px; }
.rt .prof .pf-md .pf-n { font-size: 13.5px; }
.rt .prof .pf-k { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.rt .prof .pf-k em { font: 600 12px var(--body); font-style: normal; padding: 1px 6px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--dim); }
.rt .prof .pf-kw { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 3px 0; }
.rt .prof .pf-kw > span:first-child { font: 600 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.rt .prof .pf-v { margin-top: 3px; font: 700 14px var(--mono); color: var(--text); }
.rt .prof .pf-v span:first-child { grid-column: 2; }
.rt .rules .rh { margin: 0; font: 800 14px var(--head); letter-spacing: .09em; color: var(--lead); }
.rt .rules .rn { margin-left: 6px; font: 600 11.5px var(--body); letter-spacing: 0; color: var(--dim); }
.rt .rules ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--lead) 55%, var(--text)); }
.rt .hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.rt .hrow .lst { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; min-width: 0; }
.rt .hrow .lst b { grid-row: 1 / 3; font: 800 30px/1 var(--head); color: var(--text); font-variant-numeric: tabular-nums; }
.rt .hrow .lst span { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--text); }
.rt .hrow .lst small { font-size: 12px; color: var(--faint); }
.rt .hsim { display: flex; justify-content: flex-end; }   /* the site's small Simulate (style.css .sim-btn.sm) */
.rt .hsim .sim-btn { margin: 0; }
@media (max-width: 480px) { .rt .hrow .lst b { font-size: 26px; } .rt .hrow .lst span { font-size: 13px; } }
.rt a.rate-a[hidden] { display: none; }
/* The army carried on (Jordan, 23 Nov): Build a list, Open in the calculator. */
.rt-a2 .ahx-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 2px; }
.rt-a2 .ahx-acts .btn { justify-content: center; text-align: center; text-decoration: none; min-height: 42px; }
.rt .addl { display: inline-flex; align-items: center; min-height: 40px; margin: 4px 0 2px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.rt .addl:hover { border-color: var(--accent); }
/* The army flow (Jordan, 23 Nov: "Build it", mockup v4). The header: side and All armies on one row; the name, its ▾ and "(switch your army…)"
   (one tap target with the name: Switch your army); a long name breaks before its last word, which keeps the ▾ and the hint beside it. */
.rt-a2 .ahr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rt-a2 .ahx-all { min-height: 32px; display: inline-flex; align-items: center; color: var(--dim); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.rt-a2 .ahx-all:hover { color: var(--text); text-decoration: underline; }
.rt-a2 .ahx h1[data-ya-change] { cursor: pointer; }
.rt-a2 .swr { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.rt-a2 .ahx-sw { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.rt-a2 .ahx-sw .cv { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2); color: var(--dim); }
.rt-a2 .ahx-sw .cv::before { content: "▾"; font: 700 14px/1 var(--body); }
.rt-a2 .ahx-sw .swh { display: inline-block; font: 500 13px/1.2 var(--body); }
.rt-a2 .ahx-sw .swh::after { content: "(switch your army…)"; font: 500 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--dim); }
.rt-a2 .ahx h1[data-ya-change]:hover .cv, .rt-a2 .ahx-sw:focus-visible .cv { border-color: var(--side, var(--ar)); color: var(--text); }
.rt-a2 .ahx h1[data-ya-change]:hover .swh::after { color: var(--text); text-decoration: underline; }
.rt-a2 .ahx-look { margin: 6px 0 0; padding: 6px 10px; border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-2); color: var(--dim); font-size: 13px; }
/* Units | Meta: sticky under the header; the half not chosen is hidden only once the script runs (without it both show). */
.rt-a2 .ahx-seg { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 0 0; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.rt-a2 .ahx-seg[hidden] { display: none; }
.rt-a2 .ahx-seg button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--dim); font: 800 16px var(--head); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rt-a2 .ahx-seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.rt-a2.halves[data-half="meta"] .half-u, .rt-a2.halves[data-half="units"] .half-m { display: none; }
.rt-a2 .half { display: grid; gap: 12px; }
.rt-a2 .ahx-calc { grid-column: 1 / -1; justify-self: start; font-size: 13.5px; font-weight: 600; color: var(--dim); text-decoration: none; }
.rt-a2 .ahx-calc:hover { color: var(--text); text-decoration: underline; }
/* Units: a drawer per role, our letter and the points on each chip. */
.rt-a2 .rdws { display: grid; gap: 8px; padding: 10px 10px 12px; }
.rt-a2 .rdk { margin: 0; font-size: 13px; color: var(--dim); }
.rt-a2 .rdw { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.rt-a2 .rdw summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; cursor: pointer; }
.rt-a2 .rdw summary::-webkit-details-marker { display: none; }
.rt-a2 .rdt { font: 800 17px var(--head); letter-spacing: .03em; text-transform: uppercase; }
.rt-a2 .rdn { padding: 0 7px; border-radius: 999px; background: var(--panel-2); color: var(--dim); font: 700 12px var(--body); }
.rt-a2 .rdd { margin-left: auto; display: flex; gap: 3px; }
.rt-a2 .rdd i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ta)); } .rt-a2 .rdd i.ts { --c: var(--ts); } .rt-a2 .rdd i.ta { --c: var(--ta); }
html:not(.show-tiers) .rt-a2 .rdd { display: none; }
.rt-a2 .rdv::before { content: "⌄"; display: inline-block; color: var(--dim); transition: transform .15s; }
.rt-a2 .rdw[open] .rdv::before { transform: rotate(180deg); }
.rt-a2 .rdc { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.rt-a2 .rch { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 3px 10px 3px 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.rt-a2 .rch:hover { border-color: var(--side, var(--ar)); }
.rt-a2 .rch .coin { width: 26px; height: 26px; font-size: 13px; }
.rt-a2 .rch small { color: var(--dim); font-weight: 500; font-size: 12px; }
/* Most taken: the share of the army's public lists. */
.rt-a2 .tkn { display: grid; grid-template-columns: minmax(0, 1fr) 96px 44px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rt-a2 .tkn:first-child { border-top: 0; }
.rt-a2 .tkn a { color: var(--text); text-decoration: none; font-weight: 600; } .rt-a2 .tkn a:hover { text-decoration: underline; }
.rt-a2 .pbar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; } .rt-a2 .pbar i { display: block; height: 100%; background: var(--uni, var(--ar)); }
.rt-a2 .tkn b { text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rt-a2 .rdv::before { transition: none; } }
