/* ===========================================================================
 * Battle replay player (/replay/{battleId})
 * Self-contained, theme-aware via html.theme-light / html.theme-dark.
 *
 * Two deliberate choices worth keeping:
 *  1. The two SIDES carry no colour of their own. Axies already wear the site's
 *     class colours, and tinting the teams on top of that turns the field into
 *     a swatch board. Sides are told apart by mirrored position; colour is
 *     spent only where it reports something — damage, healing, the winner.
 *  2. Anything the battle measured (HP, turn numbers, step counts, amounts) is
 *     set in tabular mono. A combat log is machine output and reads like it;
 *     axie and player names stay in the humane face.
 * ------------------------------------------------------------------------- */
/* `clip` rather than `hidden`: it may legally pair with `visible` on the other
   axis, so it creates no scroll box and nothing here is trapped vertically. It
   is a backstop, not the fix — the tooltip anchors itself correctly below. */
.rp { overflow-x: clip; }

.rp {
    --hit: 4 78% 58%;          /* damage        */
    --mend: 145 55% 42%;       /* healing       */
    --ward: 205 75% 55%;       /* shield        */
    --win: 43 88% 55%;         /* winner mark   */
    /* Energy, sampled from the game's own orb: its core reads hsl(226 100% 49%). Kept at the
       game's hue and dialled back from full saturation so it sits on a flat page in both themes.
       Still a different blue from --ward above: 224 is royal, 205 is cyan-leaning, and the two
       resources never have to be told apart by position alone. */
    --spark: 224 88% 57%;      /* energy        */
    /* How much of an axie is left, in three bands — the only quantity on this page
       whose colour is a THRESHOLD rather than a category. The bar used to be
       painted in the axie's class hue, which is the one thing on a tile that is
       already said twice (the tile's own edge, and the crest in its corner) and
       which says nothing about health: 411/471 drew grey, 202/493 drew orange, and
       a rank of six bars could not be read for who was dying. Two of the three are
       hues the page already spends — full health is the healing green, critical is
       the damage red, and that is the same sentence in both places. Only the middle
       band is new. It is deliberately more orange than --win (43): a gold word in
       the header and a wounded bar on the board never share a screen region, but
       they should not be the same swatch either. */
    --hp-hi:  var(--mend);     /* >= 50%        */
    --hp-mid: 38 96% 52%;      /* 25% .. 50%    */
    --hp-lo:  var(--hit);      /* < 25%         */
    --rail: var(--bulma-border);
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* ---- the scales -------------------------------------------------------
       This page grew feature by feature over many sessions and accumulated 28
       distinct font sizes, 16 radii, 18 gaps, 5 elevation shadows and 5
       transition timings. Seven of the font sizes sat between 0.55 and 0.68rem,
       which nobody can tell apart but which stops anything lining up.

       Collapsing the near-duplicates costs nothing visible: the largest single
       shift is 0.04rem, six tenths of a pixel. What it buys is that two things
       meant to match now cannot silently drift apart. */
    --fs-micro: 0.50rem;   /* stack counts, rarity pills                     */
    --fs-tiny:  0.56rem;   /* mono chips: turn, pile, type labels            */
    --fs-fine:  0.62rem;   /* small readouts and captions                    */
    --fs-small: 0.68rem;   /* secondary body: rules text, panel headings     */
    --fs-base:  0.76rem;   /* body: log lines, card names, tooltips          */
    --fs-lead:  0.82rem;   /* emphasis: axie names, page meta                */
    --fs-loud:  0.92rem;   /* the one step above body                        */
    --fs-shout: 1.24rem;   /* the impact number on a tile, and nothing else  */

    /* Spacing. Twelve distinct gap values were in use between 1 and 14px, and
       the two hover panels — the same object, a thing that floats over the
       board — disagreed about their padding by one pixel and about their offset
       from what they hang off by two. A pixel is not a decision; it is what is
       left when nobody made one. Applied to the panel chrome and to the gaps
       that were single-use neighbours of a scale value; the few deliberate
       oddities (the 1.5px between stacked bars, the 7% rank stagger) keep their
       own numbers and say why in place. */
    --sp-1: 2px;
    --sp-2: 4px;
    --sp-3: 6px;
    --sp-4: 8px;
    --sp-5: 12px;

    /* One recipe for "floats over the board", so the two panels that do cannot
       drift apart again. */
    --panel-pad: 9px 10px 10px;
    --panel-off: var(--sp-4);

    /* Four radii, from a chip to a panel. Was eleven values between 1 and 12px. */
    /* The three card-banner hues, sampled from the shipped card art rather than chosen — the modal pixel
       of the banner box, clustered by hue, and the counts are in place at .rp-hcard-alt below. They were
       written as raw hex at twelve sites in three rule families, two of which are byte-identical triples
       962 lines apart, so a resampling meant twelve edits and a missed one meant the kit sheet and the
       hand card disagreeing about what an attack card looks like. */
    --band-atk:  #c9051a;
    --band-shd:  #0057ac;
    --band-heal: #008059;

    --r-chip:  3px;
    --r-badge: 6px;
    --r-card:  9px;
    --r-panel: 12px;

    /* Two elevations. Was five, which is four more than this page has planes:
       something sitting on the board, and something floating over it. */
    --lift-1: 0 1px 4px rgba(0, 0, 0, 0.35);
    --lift-2: 0 8px 24px rgba(0, 0, 0, 0.30);

    /* One timing for state, one for motion that means something. */
    --ease-state: 0.15s ease;
    --ease-move:  0.22s ease;

    /* 1340, not the 1080 this was capped at for most of its life. That cap was
       set when the page was a field and a log; the history rail then took 240px
       plus its gap out of a container that never grew, and every one of those
       260px came off the battlefield — each side went 493px wide to 363, a
       quarter narrower, which is exactly when the axies started looking small.
       Widening by what the rail took gives the field its old width back. */
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px 16px 56px;
}

/* The four report hues were tuned on the dark background and three of them fail
   on the light one. Measured against the light panel: --hit 3.65:1, --mend
   2.97:1, --ward 2.90:1 and --win 1.73:1 — and --win is the winner's name, so
   the most important word in the header was the palest thing on the page.

   Hue and saturation are kept; only lightness moves, and only in light, which
   takes all four to 4.5:1 or better. Dark keeps the values it was tuned with. */
html.theme-light .rp {
    --hit:  4 78% 49%;      /* 4.52:1 */
    --mend: 145 55% 33%;    /* 4.56:1 */
    --ward: 205 75% 42%;    /* 4.49:1 */
    --win:  43 88% 30%;     /* 4.75:1 */
    /* The other two bands follow --hit and --mend down by themselves; this one has
       to be told. A 52%-light amber on the light theme's near-white tile is the
       one band that disappears — it is the hue with the highest natural
       luminance, so it loses the most. Taken to 42%, which reads as the same
       warning against the track and against the tile. */
    --hp-mid: 34 94% 42%;
}

/* Axie class colours, ONCE. The nine hues were written out four times across
   this file — twice at full strength for a tile's edge and a rail chip's ring,
   twice darkened for a card's backing — and keyed two different ways, numerically
   as `data-class="0"` from the gene order and by name as `data-cls="beast"`.
   Thirty-six declarations for what is one palette in two tones, and four places
   to miss when a hue changes. */
/* On `.rp` as well as the two panels that first needed them: the hand strip is
   built in JS and sits in neither, so the hand card's panel — which tints itself
   by the card's class — resolved every one of these to nothing. Widened rather
   than moved, because widening cannot break the two that already worked. */
.rp,
.rp-kit,
.rp-hist {
    --c-beast:   #f0921f;  --c-beast-deep:   #a9691a;
    --c-bug:     #ff5f42;  --c-bug-deep:     #b8452f;
    --c-bird:    #ff6fa5;  --c-bird-deep:    #b74f76;
    --c-plant:   #63b900;  --c-plant-deep:   #497f08;
    --c-aquatic: #00b7d4;  --c-aquatic-deep: #0b7f94;
    --c-reptile: #b06fe0;  --c-reptile-deep: #7c4d9c;
    --c-mech:    #8598a0;  --c-mech-deep:    #5f6d73;
    --c-dawn:    #b79bf0;  --c-dawn-deep:    #7f6caa;
    --c-dusk:    #2b7f92;  --c-dusk-deep:    #205d6b;
    --c-none:    #8b8b9c;  --c-none-deep:    #5f5f6d;
}

/* The gene order the replay carries: 0 Beast … 10 Dusk, with 6 and 7 unused. */
.rp .rp-axie                  { --cls: var(--c-none); }
.rp .rp-axie[data-class="0"]  { --cls: var(--c-beast); }
.rp .rp-axie[data-class="1"]  { --cls: var(--c-bug); }
.rp .rp-axie[data-class="2"]  { --cls: var(--c-bird); }
.rp .rp-axie[data-class="3"]  { --cls: var(--c-plant); }
.rp .rp-axie[data-class="4"]  { --cls: var(--c-aquatic); }
.rp .rp-axie[data-class="5"]  { --cls: var(--c-reptile); }
.rp .rp-axie[data-class="8"]  { --cls: var(--c-mech); }
.rp .rp-axie[data-class="9"]  { --cls: var(--c-dawn); }
.rp .rp-axie[data-class="10"] { --cls: var(--c-dusk); }

/* Head --------------------------------------------------------------------- */
.rp-eyebrow {
    font-family: var(--mono);
    font-size: var(--fs-small);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
    margin-bottom: 6px;
}

.rp-head { text-align: center; margin-bottom: 22px; }

.rp-title {
    font-size: clamp(1.3rem, 3.4vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    justify-content: center;
    align-items: baseline;
}

.rp-title-v {
    font-family: var(--mono);
    font-size: 0.55em;
    font-weight: 400;
    color: var(--bulma-text-weak);
}

/* The winner is marked with a rule under the name rather than a colour swap,
   so it survives both themes and does not compete with the class colours. */
.rp-title-side.is-winner {
    box-shadow: inset 0 -0.14em 0 hsl(var(--win) / 0.85);
}

.rp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 10px;
    font-size: var(--fs-lead);
    color: var(--bulma-text-weak);
}

.rp-stat b { font-family: var(--mono); color: var(--bulma-text); }
.rp-stat--win { color: hsl(var(--win)); }

/* Which copy of the card / charm / rune tables this page's words came from. A link,
   because the version alone is a number and what a reader wants is what changed at
   it — so it is the one item in the meta row that is underlined on hover rather
   than inert. Dotted while at rest: it must not shout over the winner's name. */
a.rp-stat--balance {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent);
}

a.rp-stat--balance:hover {
    color: var(--bulma-text);
    border-bottom-color: currentColor;
}

/* Field -------------------------------------------------------------------- */
/* The stage: history rail on the left, battlefield filling the rest.
   Below 1250px the rail drops under the field rather than squeezing it — six
   axie tiles and two hands need the width more than the rail does. */
.rp-stage {
    display: grid;
    /* 208, down from 240: the rail's own contents came down with it — a 68px
       face against 96, a 20px chip against 26 — and the 32px it gives back go
       to the board, which is the thing being read. */
    grid-template-columns: 208px minmax(0, 1fr);
    gap: clamp(10px, 1.6vw, 20px);
    align-items: start;
}

@media (max-width: 1250px) {
    .rp-stage { grid-template-columns: minmax(0, 1fr); }
    /* Below the field, and still its own width — the rows are a centred column of
       96px cards, and stretching that across a full-width panel would leave the
       art marooned in the middle of a lot of nothing. */
    .rp-hist { order: 2; max-width: 300px; margin-top: 14px; }
}

.rp-field {
    /* Positioned so the beam overlay measures against the board rather than the
       page, and so an absolutely-positioned child takes no grid track. */
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(8px, 2vw, 22px);
    align-items: start;
}

/* The history rail ---------------------------------------------------------
   The battle as pictures. The card's square face is the panel — the game's own
   art at 96px, one per play, in order — because it is the only large saturated
   thing here and the rail should read as the sequence of cards the battle was
   won with before a single figure is.

   Everything else is sized to be found after the card and without leaving it:
   the axie chips answer WHO, the bars answer HOW MUCH at a glance, and the
   figures answer exactly how much for the row you are actually on.

   The face is 96px CSS against a 192px asset — the art was re-exported from 96
   for this panel, since at 96 it would have been a 2x upscale and the face IS
   the panel. */
.rp-hist {
    /* The rail's own scale. It was drawn when a record showed a card and two
       axies; a turn boundary that ticks six axies made it a column of six tall
       rows and the strip stopped being scannable. Everything here came down
       together, because shrinking the chip alone just makes a sparse row.

       The chip is the floor: at 20px the gene render still reads as a specific
       axie, and the class ring plus its 22% wash carry the identity anyway. */
    --face: 68px;
    --chip: 20px;
    --bar-len: 62px;
    border: 1px solid var(--rail);
    border-radius: var(--r-panel);
    background: var(--bulma-scheme-main-bis);
    overflow: hidden;
}

.rp-hist-h {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    /* No rule under it: the chapter bar pinned at the top of the list is the
       head's second line, TURN 4 ——— Bleed, where a count used to be. */
    padding: 9px 12px 5px;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

/* A figure in a row — `-134`, `+96`. (This was also the head's count until the
   count was removed; the figures keep the rule because it is the size and
   weight they have always had.) */
.rp-hist-n {
    margin-inline-start: auto;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.8;
}

.rp-hist-list {
    list-style: none;
    margin: 0;
    /* No top padding: the first chapter bar sits flush under the head, and a
       padded strip above a pinned bar is a slot rows would show through. */
    padding: 0 0 4px;
    max-height: 62vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--rail) transparent;
    /* Positioned so a chapter bar's `offsetTop` is measured against the list —
       the one place a seek to a chapter can learn where its turn begins, since a
       pinned bar's own rect only says where it is stuck. */
    position: relative;
}

.rp-hist-row {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3) var(--sp-3);
    /* 3px, and drawn transparent on every row rather than added to the current
       one, so marking a row never moves its content. The same bar the chapter
       wears for the current turn: one spine, two places on it. */
    border-inline-start: 3px solid transparent;
    cursor: pointer;
    transition: opacity var(--ease-state), background-color var(--ease-state);
}

/* A row that seeks should say so before it is pressed. */
.rp-hist-row:hover { background: var(--bulma-scheme-main-ter); }
.rp-hist-row:focus-visible,
.rp-hist-ch:focus-visible {
    outline: 2px solid var(--bulma-text);
    outline-offset: -2px;
}

/* Lighter than the 0.34 the sentence panel uses. This one is made of pictures,
   and at 0.3 a card face goes muddy rather than quiet — which matters because at
   step 0 the entire rail is future and would open as a grey column. */
.rp-hist-row.is-future { opacity: 0.5; }

/* The record the cursor is in. The bar and the surface are the page's words for
   "here" (the story marks its entry the same way); the two hairlines are this
   rail's own addition, because on a column of half-faded pictures a surface one
   step lighter than the panel was measured to vanish — see the before shot. Inset
   shadows rather than borders so the marked row is exactly as tall as it was. */
.rp-hist-row.is-now {
    border-inline-start-color: var(--bulma-text);
    background: var(--bulma-scheme-main);
    box-shadow: inset 0 1px 0 var(--rail), inset 0 -1px 0 var(--rail);
}

/* The chapters ------------------------------------------------------------
   One bar per turn, stuck to the top of the scrollport while its turn's rows
   pass under it and pushed off by the next. Turns are the battle's real
   chapters — energy, draws and the clock all reset on them — so this is the
   one structural device the rail gets, and the number on it is information
   rather than ornament. The old `T4` in every row's corner answered the same
   question sixty times at 8px and went with this.

   Opaque on purpose: a sticky bar with a transparent ground is a bar rows show
   through. The ground is the panel's own, so at rest it does not read as a box. */
.rp-hist-ch {
    position: sticky;
    top: 0;
    /* 5, raised from 3 on the owner's report of rows painting through the pinned bar — the beam, the
       charm disc and a card face drawn across it. Absolutely-positioned row furniture like
       `.rp-hist-charm` hangs below its row and reaches back up into the bar, and it sits in the same
       positioned layer, so the bar has to out-rank the tallest thing the rail puts there. A sticky
       header the list scrolls THROUGH rather than under is the one thing it must not do. */
    z-index: 5;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 5px var(--sp-4) 5px 9px;
    border-block: 1px solid var(--rail);
    border-inline-start: 3px solid transparent;
    background: var(--bulma-scheme-main-bis);
    cursor: pointer;
    transition: opacity var(--ease-state), background-color var(--ease-state), border-color var(--ease-state);
}
.rp-hist-ch:first-child { border-top: 0; }
.rp-hist-ch:hover { background: var(--bulma-scheme-main-ter); }

/* Turn on the left, whose turn on the right, a leader between them — drawn as
   the bar's own ::after and ordered into the middle, so a turn with no owner
   still runs its line to the edge instead of leaving a stub. */
.rp-hist-ch::after {
    content: "";
    order: 1;
    flex: 1 1 auto;
    height: 1px;
    background: var(--rail);
}

.rp-hist-ch-t {
    order: 0;
    flex: none;
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
    transition: color var(--ease-state);
}

/* The label, not the team name — the page's rule about which of the two is an
   identity. Ellipsised: the rail is 208px and a player name is free text. */
.rp-hist-ch-who {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-fine);
    font-weight: 600;
    color: var(--bulma-text);
}

/* The turn the cursor is in: its bar lights on the same spine as the current
   row, and the number goes to full ink. Future chapters fade with their rows. */
.rp-hist-ch.is-turn { border-inline-start-color: var(--bulma-text); }
.rp-hist-ch.is-turn .rp-hist-ch-t { color: var(--bulma-text); }
/* Dimmed by its TEXT, never by the bar. Every bar the list has scrolled past is
   still pinned at the top, under the ones that came after it — flat sticky
   siblings stack, they do not push — and only an opaque bar hides the stack. At
   `opacity: 0.5` on the bar, "TURN 8" was measured painting over a half-visible
   "TURN 2" beneath it. */
.rp-hist-ch.is-future .rp-hist-ch-t,
.rp-hist-ch.is-future .rp-hist-ch-who,
.rp-hist-ch.is-future::after { opacity: 0.5; }
.rp-hist-ch-who { transition: opacity var(--ease-state); }
/* A chapter that absorbed an empty StartTurn is also that record's row, and
   wears the row's surface when the cursor stands in it. */
.rp-hist-ch.is-now { background: var(--bulma-scheme-main); }

@media (prefers-reduced-motion: reduce) {
    .rp-hist-row,
    .rp-hist-foot,
    .rp-hist-ch,
    .rp-hist-ch-t,
    .rp-hist-ch-who { transition: none; }
}

/* The head wraps rather than clips when a long count meets a 208px rail. */
.rp-hist-h { flex-wrap: wrap; row-gap: 5px; }

/* The line: what a turn's boundary did — the discs of the axies touched, the
   causes, the totals. Drawn in the bar's tail, the foot and the closing bar.
   (A per-play version of it was tried as a compact row and set aside for the
   per-fighter rows, 2026-08-21.) */
.rp-hist-sum {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    min-width: 0;
    flex-wrap: wrap;
}
.rp-hist-sum-who { display: inline-flex; align-items: center; flex: none; }
.rp-hist-who.is-mini {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
}
.rp-hist-sum-who .rp-hist-who.is-mini + .rp-hist-who.is-mini { margin-inline-start: -4px; }
/* The disc of a fighter that died here: the ring goes to damage's hue, the
   picture steps back, and the rail's own kill glyph sits on it. */
.rp-hist-who.is-dead { border-color: hsl(var(--hit)); }
.rp-hist-who.is-dead img { filter: grayscale(1) opacity(0.55); }
.rp-hist-who.is-dead::after {
    /* Font Awesome's skull, not a ✕: the ✕ is what the game's Death Mark looks like.

       900 is the Solid face, which is the only one \f54c exists in. This rule used to declare the weight
       TWICE — 900 here and 700 six lines down, so 700 was what actually applied — and the 700 was harmless
       rather than broken: measured in the browser, the glyph is 9.0 x 13.5px at both 700 and 900 and 6.0px
       at 400, because CSS weight matching for a desired weight above 500 searches upwards first and lands
       on Solid either way. Stated once now, at the value that says what it means. */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f54c";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 9px;
    line-height: 1;
    color: hsl(var(--hit));
}
.rp-hist-sum .rp-hist-why img { width: 11px; height: 11px; }

/* The foot: what the turn's end did, without being a row — a thin line under
   the turn's last card, right-aligned, with `turn ends` at its left edge. A
   seat: it seeks and wears is-now. (The bar used to carry a matching tail for
   the turn's start; the owner asked for the bar to be one line.) */
.rp-hist-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
    padding: 2px var(--sp-4) 3px 9px;
    border-inline-start: 3px solid transparent;
    cursor: pointer;
    transition: opacity var(--ease-state), background-color var(--ease-state);
}
.rp-hist-foot-say {
    margin-inline-end: auto;
    font-size: var(--fs-micro);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}
.rp-hist-foot:hover { background: var(--bulma-scheme-main-ter); }
.rp-hist-foot:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }
.rp-hist-foot.is-future { opacity: 0.5; }
.rp-hist-foot.is-now {
    border-inline-start-color: var(--bulma-text);
    background: var(--bulma-scheme-main);
    box-shadow: inset 0 1px 0 var(--rail), inset 0 -1px 0 var(--rail);
}

/* The closing bar: a chapter's shape in the winner's hue. */
.rp-hist-ch--end .rp-hist-ch-t,
.rp-hist-ch--end .rp-hist-ch-who { color: hsl(var(--win)); }
.rp-hist-ch--end::after { background: hsl(var(--win) / 0.5); }

/* What a play did to the PILES: the cards it drew, discarded, banished, put
   back or added, as the same small named face a Keep uses, flowing on one
   line under the per-fighter rows. No words — the ring on the face says which:
   green came INTO the hand, red went OUT of it, dashed red is gone for the
   battle, blue went back onto the draw pile, amber was minted. The word is on
   hover.

   This block is the strip's box. What a face LOOKS like is decided further down,
   under "The cards a play moved: faces only" — the design the owner chose of four
   on 2026-08-22, which hides the names this comment used to colour. */
.rp-hist-moves {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    /* Between the face and the breakdown, so a little air on both sides. */
    margin: 2px 0 3px;
}
.rp-hist-kept-card[data-move="drew"] .rp-hist-kept-art,
.rp-hist-kept-card[data-move="took back"] .rp-hist-kept-art { box-shadow: 0 0 0 2px hsl(var(--mend)), var(--lift-1); }
.rp-hist-kept-card[data-move="drew"] .rp-hist-kept-name,
.rp-hist-kept-card[data-move="took back"] .rp-hist-kept-name { color: hsl(var(--mend)); }

.rp-hist-kept-card[data-move="discarded"] .rp-hist-kept-art { box-shadow: 0 0 0 2px hsl(var(--hit)), var(--lift-1); }
.rp-hist-kept-card[data-move="discarded"] .rp-hist-kept-name { color: hsl(var(--hit)); }

.rp-hist-kept-card[data-move="banished"] .rp-hist-kept-art,
.rp-hist-kept-card[data-move="removed"] .rp-hist-kept-art {
    box-shadow: 0 0 0 2px hsl(var(--hit) / 0.3), var(--lift-1);
    outline: 2px dashed hsl(var(--hit));
    outline-offset: 0;
}
.rp-hist-kept-card[data-move="banished"] .rp-hist-kept-name,
.rp-hist-kept-card[data-move="removed"] .rp-hist-kept-name { color: hsl(var(--hit)); }

.rp-hist-kept-card[data-move="put back"] .rp-hist-kept-art { box-shadow: 0 0 0 2px hsl(var(--ward)), var(--lift-1); }
.rp-hist-kept-card[data-move="put back"] .rp-hist-kept-name { color: hsl(var(--ward)); }

.rp-hist-kept-card[data-move="added"] .rp-hist-kept-art { box-shadow: 0 0 0 2px hsl(var(--win)), var(--lift-1); }
.rp-hist-kept-card[data-move="added"] .rp-hist-kept-name { color: hsl(var(--win)); }

/* A Keep: the cards kept, as small faces wearing their owner. */
/* Three classes, because the join rule that centres a row with nothing measured
   is written at two and comes later in the file, and a Keep is left-aligned
   like the plays around it whether or not it measured anything. */
.rp-hist .rp-hist-row--join.rp-hist-row--keep {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: var(--sp-3);
    padding: 4px var(--sp-4) 4px 9px;
}
.rp-hist-row--keep .rp-hist-did { flex: 1 1 100%; }
.rp-hist-kept { display: inline-flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.rp-hist-kept-card {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
/* The face is its own positioned box: the charm and the owner hang on its
   corners, not on the corners of face-plus-name. */
.rp-hist-kept-face {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
}
.rp-hist-kept-art {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--r-badge);
    object-fit: cover;
    box-shadow: var(--lift-1);
}
.rp-hist-kept-name {
    font-size: var(--fs-fine);
    font-weight: 600;
    color: var(--bulma-text);
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rp-hist-kept-face.is-blank {
    border: 1px dashed var(--rail);
    border-radius: var(--r-badge);
}
.rp-hist-kept-face .rp-hist-who.is-owner {
    position: absolute;
    width: 13px;
    height: 13px;
    left: -4px;
    bottom: -4px;
    border-width: 1.5px;
}

/* Focus: a scorecard row as a filter ---------------------------------------
   The moments a row summed, lit on the rail and in the story while the rest
   steps back; the chip in each head names what is lit and puts it out. The
   energy hue, because it is the one report colour nothing on these two panels
   spends, and because "lit" is what energy looks like on this page. */
.rp-focus-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-inline-start: 8px;
    padding: 1px 3px 1px 7px;
    border: 1px solid hsl(var(--spark) / 0.6);
    border-radius: var(--r-badge);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--spark));
    max-width: 60%;
}
.rp-focus-chip[hidden] { display: none; }
.rp-focus-chip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-focus-chip-x {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: var(--fs-fine);
    line-height: 1;
    padding: 1px 3px;
}
.rp-focus-chip-x:focus-visible { outline: 2px solid hsl(var(--spark)); outline-offset: -2px; }

/* The rail: hits wear the energy hue on the spine and a wash; everything else
   that is not a chapter steps back. The current record keeps its own bar. */
.rp-hist.is-focus .rp-hist-row:not(.is-focus-hit),
.rp-hist.is-focus .rp-hist-foot:not(.is-focus-hit) { opacity: 0.25; }
.rp-hist-row.is-focus-hit,
.rp-hist-foot.is-focus-hit {
    background: hsl(var(--spark) / 0.08);
    border-inline-start-color: hsl(var(--spark));
}
/* A bar's wash is MIXED, not translucent: every bar the list has scrolled past
   is still pinned under the one on top, and a see-through ground showed TURN 3
   through a lit TURN 4. The drawer mixes against its own surface. */
.rp-hist-ch.is-focus-hit {
    background: color-mix(in srgb, hsl(var(--spark)) 9%, var(--bulma-scheme-main-bis));
    border-inline-start-color: hsl(var(--spark));
}
.rp-drawer .rp-hist-ch.is-focus-hit {
    background: color-mix(in srgb, hsl(var(--spark)) 9%, var(--bulma-scheme-main));
}
.rp-hist-row.is-focus-hit.is-now,
.rp-hist-foot.is-focus-hit.is-now,
.rp-hist-ch.is-focus-hit.is-now { border-inline-start-color: var(--bulma-text); }
.rp-hist-row.is-focus-hit.is-future,
.rp-hist-foot.is-focus-hit.is-future { opacity: 0.7; }
.rp-hist-kept-card.is-focus-hit .rp-hist-kept-art { outline: 2px solid hsl(var(--spark)); outline-offset: 1px; }

/* The story: the same two states, and the lines a step-level focus actually
   counted inside a lit entry. */
/* The log under a focus: the rows the focus names stay lit, the rest of their records half so,
   everything else falls back. A turn's bar lights with anything under it. */
.rp-log--story.is-focus .rp-ev:not(.is-focus-hit):not(.is-focus-rec),
.rp-log--story.is-focus .rp-ev-ch:not(.is-focus-hit) { opacity: 0.3; }
.rp-log--story.is-focus .rp-ev.is-focus-rec { opacity: 0.65; }
.rp-ev.is-focus-hit {
    background: color-mix(in srgb, hsl(var(--ward)) 10%, transparent);
    box-shadow: inset 2px 0 0 hsl(var(--ward));
}
.rp-ev-ch.is-focus-hit { border-inline-start-color: hsl(var(--ward)); }
.rp-ev.is-focus-hit.is-now { box-shadow: inset 2px 0 0 var(--bulma-text); }

/* The row that is lit, in the scorecard. */
.rp-led tr[data-focus] { cursor: pointer; }
.rp-led tr.is-active td { background: hsl(var(--spark) / 0.12); }
.rp-led tr.is-active td:first-child { box-shadow: inset 3px 0 0 hsl(var(--spark)); }

/* The breakdown — the target first, the splash, then what fired ----------------
   The owner's choice of four (2026-08-21). */
/* The card's target: ringed twice, in the page's ink. */
.rp-hist-who.is-aim {
    box-shadow: 0 0 0 2px var(--bulma-scheme-main-bis), 0 0 0 3.5px var(--bulma-text);
}
.rp-did-miss-say {
    grid-column: 2 / -1;
    font-size: var(--fs-micro);
    font-style: italic;
    color: var(--bulma-text-weak);
}

/* The target's row is a line of its own, larger, named, with a rule under it;
   what fired is one line per cause at the foot. */
.rp-did-target {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 1px 0 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--rail);
}
.rp-did-target > .rp-hist-who { width: 28px; height: 28px; }
.rp-did-target-who {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-fine);
    font-weight: 600;
    color: var(--bulma-text);
}
.rp-did-target-figs { font-size: var(--fs-small); }
.rp-did-target .rp-did-miss-say { margin-inline-start: auto; }
.rp-did-target.is-kill { box-shadow: inset 0 -1px 0 hsl(var(--hit) / 0.45); }
.rp-did-cause {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px dashed var(--rail);
    font-size: var(--fs-micro);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}
/* The name owns the first line with the totals; the discs it reached take the
   next line, stepped in under the name. Seven discs and three totals on one
   line left "Healing Pulse Lv.3" 28px to be "H…" in. */
.rp-did-cause { flex-wrap: wrap; }
.rp-did-cause-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-did-cause .rp-hist-nums { margin-inline-start: auto; }
.rp-did-cause > .rp-hist-sum-who {
    order: 3;
    flex: 0 0 100%;
    padding-inline-start: 16px;
    gap: 2px;
}

/* A cause that is a card's tracker is said as the card: the played card's own
   created effects, tagged `effect`, in the page's ink because they are the
   play's; another card's lingering effect tagged `card`. */
.rp-did-cause.is-self .rp-did-cause-name { color: var(--bulma-text); }
.rp-did-cause-kind {
    flex: none;
    padding: 0 3px;
    border: 1px solid var(--rail);
    border-radius: var(--r-chip);
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    color: var(--bulma-text-weak);
}
.rp-did-cause.tooltip-trigger { cursor: help; }

/* The cause line's panel: the per-fighter figures as a small table, on the
   site's own tooltip surface, above the drawers like the bubble. */
/* Two classes: common.css loads after this file, and its `.tt-note` cap of
   230px won at one class — the table was cut at "SHIE…". */
.tooltip.rp-ctt {
    z-index: 110;
    max-width: none;
    width: max-content;
    padding: 0.5rem 0.65rem 0.55rem;
    text-align: left;
}
.rp-ctt-h {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 5px;
    font-size: var(--fs-small);
    font-weight: 700;
}
.rp-ctt-h .rp-hist-why img { width: 14px; height: 14px; }
.rp-ctt-kind {
    margin-inline-start: 4px;
    font-size: var(--fs-fine);
    font-weight: 400;
    font-style: italic;
    color: var(--tt-ink-quiet, var(--bulma-text-weak));
}
.rp-ctt-sub {
    margin: -2px 0 6px;
    max-width: 260px;
    font-size: var(--fs-fine);
    line-height: 1.35;
    color: var(--tt-ink-quiet, var(--bulma-text-weak));
}
.rp-ctt-t { border-collapse: collapse; font-size: var(--fs-fine); }
.rp-ctt-t th {
    padding: 0 0 3px 8px;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tt-ink-quiet, var(--bulma-text-weak));
    text-align: right;
}
.rp-ctt-t th:first-child, .rp-ctt-t th:nth-child(2) { padding-left: 0; }
.rp-ctt-t td { padding: 1px 0 1px 8px; vertical-align: middle; }
.rp-ctt-t td:first-child { padding-left: 0; }
/* Blockified: the disc is a span sized as a flex item everywhere else, and
   inline in a cell it collapsed to its border — a 4px sliver of ring. */
.rp-ctt-t .rp-hist-who { display: inline-block; vertical-align: middle; width: 16px; height: 16px; border-width: 1.5px; }
.rp-ctt-who { white-space: nowrap; font-weight: 600; }
.rp-ctt-n {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.rp-ctt-n.is-none { color: var(--tt-ink-quiet, var(--bulma-text-weak)); opacity: 0.6; }
.rp-ctt-n.rp-hist-n--hit  { color: hsl(var(--hit)); }
.rp-ctt-n.rp-hist-n--mend { color: hsl(var(--mend)); }
.rp-ctt-n.rp-hist-n--ward { color: hsl(var(--ward)); }

/* Gained against removed, in the rows ----------------------------------------
   A removed status is struck through and fades; a gained one is plain and
   carries no mark, because it needs none. The owner chose this of five
   (2026-08-21): ink and shape only — hue would say good or bad, and a stack
   going up is good on a buff and bad on a debuff. Scoped to the rows' counters
   wherever a row is drawn (the rail, the story's rows, the receipt); the feet's
   summary counts keep their arrows, because there the count stands alone and
   the arrow is its whole label. */
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st::before { content: none; }
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st { gap: 3px; }
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st-one { position: relative; }
/* `.is-partial` is a status whose stacks fell but which is still standing —
   Bubble 3→1 — and it is not struck: the figure says what happened. */
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st--down .rp-hist-st-one:not(.is-partial) img,
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st--down .rp-hist-st-one:not(.is-partial) .rp-hist-why-none { opacity: 0.45; }
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st--down .rp-hist-st-one:not(.is-partial)::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--bulma-text);
    transform: translateY(-50%) rotate(-40deg);
    pointer-events: none;
}

/* A status's stacks on a row ----------------------------------------------------
   The stacks it stands at now on the icon's corner — the plate the tiles wear,
   at the row's scale — and beside the icon the signed change, in ink. The owner
   chose this of five (2026-08-21). Wherever a row is drawn.

   The gap is NOT set here. `.rp-hist-st` used to declare it three times at the same specificity — 5px
   here, 1px in the rule below and 2px after that — so only the last one ever applied and the two above
   it were reassuring nobody. It is stated once now, with the strip it spaces. */
.rp-hist-st-one { position: relative; }
.rp-hist-st-n {
    position: absolute;
    /* On the ICON's corner, not the span's: the span also holds the change beside
       the icon, and anchored to its right edge the plate landed after the text. The
       icon is the span's first 12px, so its bottom-right corner is here. */
    left: 6px;
    bottom: -3px;
    display: grid;
    place-items: center;
    min-width: 9px;
    height: 9px;
    padding: 0 1px;
    border-radius: var(--r-chip);
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    font: 700 6.5px/1 var(--mono);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
/* Its turns left, on the icon's top-right corner: the tile's hollow plate to
   the stack's solid one, at the row's scale. */
.rp-hist-st-t {
    position: absolute;
    left: 6px;
    top: -3px;
    display: grid;
    place-items: center;
    min-width: 9px;
    height: 9px;
    padding: 0 1px;
    border-radius: var(--r-chip);
    background: var(--bulma-scheme-main);
    color: var(--bulma-text);
    box-shadow: inset 0 0 0 1px var(--bulma-text-weak);
    font: 700 6.5px/1 var(--mono);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st--down .rp-hist-st-one:not(.is-partial) .rp-hist-st-t { display: none; }
.rp-hist-st-d {
    margin-inline-start: 3px;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text);
}
/* On a struck icon the plate would say "0"; it is not drawn, and the change
   beside it says how many left. */
:is(.rp-hist-hit, .rp-did-target) .rp-hist-st--down .rp-hist-st-one:not(.is-partial) .rp-hist-st-n { display: none; }

/* The rune card on a tile: the site's own `.tooltip`, which the tile's hover
   stacking context (z 40) already lifts over its neighbours; inside the tile it
   only has to clear the kit sheet (40) and the rune's own layer. */
.rp-rune.tooltip-trigger { cursor: help; }
.rp-axie > .tooltip, .rp-axie .rp-rune + .tooltip { z-index: 45; }

/* The cards a play moved: faces only, one tight strip ----------------------------
   The owner chose this of four (2026-08-22). A 30px face wears its ring in the
   colour of what happened to it (green in, red out, dashed red gone, blue put
   back, amber minted), its owner at bottom-left, its charm at top-right, and
   where it went as an icon at bottom-right — so the strip says it in shape as
   well as in colour. A hairline stands between one verb's cards and the next's.
   The name is on hover; at this size a face is a reminder and the note is the
   identity. */
.rp-hist-moves { gap: 6px 7px; align-items: center; }
.rp-hist-moves .rp-hist-kept-name { display: none; }
.rp-hist-moves .rp-hist-kept-face { width: 30px; height: 30px; }
.rp-hist-moves .rp-hist-kept-face .rp-hist-charm--kept { width: 12px; height: 12px; top: -4px; right: -4px; }
.rp-hist-moves .rp-hist-kept-face .rp-hist-who.is-owner { width: 12px; height: 12px; left: -4px; bottom: -4px; }
.rp-hist-move-v {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bulma-text);
    box-shadow: 0 0 0 1.5px var(--bulma-scheme-main);
    font-size: 7px;
    line-height: 1;
    color: var(--bulma-scheme-main);
    pointer-events: none;
}
.rp-hist-kept-card[data-move="drew"] .rp-hist-move-v,
.rp-hist-kept-card[data-move="took back"] .rp-hist-move-v { background: hsl(var(--mend)); }
.rp-hist-kept-card[data-move="discarded"] .rp-hist-move-v,
.rp-hist-kept-card[data-move="banished"] .rp-hist-move-v,
.rp-hist-kept-card[data-move="removed"] .rp-hist-move-v { background: hsl(var(--hit)); }
.rp-hist-kept-card[data-move="put back"] .rp-hist-move-v { background: hsl(var(--ward)); }
.rp-hist-kept-card[data-move="added"] .rp-hist-move-v { background: hsl(var(--win)); color: #2b2208; }
.rp-hist-moves-sep {
    flex: none;
    width: 1px;
    height: 22px;
    margin: 0 2px;
    background: var(--rail);
}

/* The site's shared hover bubble, over everything this page floats: the drawers
   sit at 46 and the phone's playback cluster at 60, and a note that opens under
   the sheet it was asked about is worse than no note. The page-wide value is 25
   because elsewhere only the site header is above it. */
#app-tooltip { z-index: 110; }

/* A record that plays no card is a JOIN, not a card — a thin rule that keeps
   the strip a strip of cards while still giving the 42.2% of records that are
   turn boundaries, Keep and Endgame somewhere to live. */
/* Quiet by construction: no ground and no rules of its own. Boxed and filled,
   a Keep read as a heading and a turn boundary that ticked six axies stood
   taller than the play beside it; the chapter bar is the heading now, and a
   join is a small-caps word in the flow between cards. */
.rp-hist-row--join {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3) var(--sp-2) 9px;
}

/* A join with nothing to show centres its label; one that measured something
   puts the label on the left and gives the rest of the row to what it did,
   rather than letting a full-width list slide underneath the words. */
.rp-hist-row--join .rp-hist-say { flex: none; }
.rp-hist-row--join:not(:has(.rp-hist-did)) { justify-content: center; }
.rp-hist-row--join .rp-hist-did { flex: 1 1 auto; width: auto; min-width: 0; }

.rp-hist-say {
    font-size: var(--fs-tiny);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

.rp-hist-row[data-kind="endgame"] .rp-hist-say { color: hsl(var(--win)); font-weight: 700; }

/* The card ---------------------------------------------------------------- */
.rp-hist-art {
    position: relative;
    width: var(--face);
    height: var(--face);
    border-radius: var(--r-card);
    overflow: visible;
}

.rp-hist-face {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--r-card);
    object-fit: cover;
    box-shadow: var(--lift-1);
}

.rp-hist-art.is-blank {
    border: 1px dashed var(--rail);
    border-radius: var(--r-card);
}

/* Who played it, on the card's corner the way a hand card wears its owner. */
.rp-hist-who {
    position: relative;
    width: var(--chip);
    height: var(--chip);
    flex: none;
    border-radius: 50%;
    border: 2px solid var(--cls, #8b8b9c);
    /* A wash of the axie's own class colour, not the panel colour. The renders
       are dark-lined and lose their silhouette on a near-black disc; a 22% tint
       of the ring colour gives every chip a lit backing in both themes and says
       the class twice, which is the one thing a 26px picture cannot say. */
    background: color-mix(in srgb, var(--cls, #8b8b9c) 22%, var(--bulma-scheme-main));
    overflow: hidden;
}

/* The render is 512x384 with the axie small and centred in transparent margin,
   so at 1:1 it fills about a third of the disc. `contain` fits it, then a scale
   about the centre blows it up to fill; the circle clips the overflow.

   A transform rather than an oversized box with negative offsets, because the
   site sets `img { max-width: 100% }` globally: sizing the image at 210% gave a
   22px-wide, 46px-tall box, so `contain` shrank the axie to the width and the
   offset pushed it off the left edge. A transform cannot be clamped that way. */
.rp-hist-who img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transform: scale(1.9);
}

/* A summon's picture is not a gene render and must not take the render's
   correction. The still is cropped to the creature and centred in a 192px
   square, so it already fills the disc at 1:1; blown up 1.9x it becomes a patch
   of body with the head outside the circle. */
.rp-hist-who.is-summon img { transform: none; }

/* The axie that played the card, overlapping its corner. Scaled off the same
   token as every other chip so the two never drift apart. */
.rp-hist-who.is-actor {
    position: absolute;
    left: -6px;
    bottom: -6px;
    width: calc(var(--chip) * 1.2);
    height: calc(var(--chip) * 1.2);
    box-shadow: var(--lift-1);
}

/* Scoped to `.rp` rather than to `.rp-hist`, because the chip is no longer only
   the rail's: the same disc now names an axie in the receipt on the field and in
   the story's headline, and a chip whose class colour resolved in one panel and
   not in the other is the definition of two dialects. The tile's own rule above
   is one step more specific and still wins where both apply — to the same
   value, since this IS that palette. */
.rp [data-class="0"]  { --cls: var(--c-beast); }
.rp [data-class="1"]  { --cls: var(--c-bug); }
.rp [data-class="2"]  { --cls: var(--c-bird); }
.rp [data-class="3"]  { --cls: var(--c-plant); }
.rp [data-class="4"]  { --cls: var(--c-aquatic); }
.rp [data-class="5"]  { --cls: var(--c-reptile); }
.rp [data-class="8"]  { --cls: var(--c-mech); }
.rp [data-class="9"]  { --cls: var(--c-dawn); }
.rp [data-class="10"] { --cls: var(--c-dusk); }

/* A summoned unit has no render — 0 of 134 across 450 replays carry genes, and
   an axie picture is built from genes. So the disc holds the unit's own initial
   instead: the ring and its wash already say the class, and one letter is the
   difference between "there is something here" and a picture that failed to
   load. It is deliberately not a portrait and not trying to be. */
.rp-hist-who-i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 700;
    line-height: 1;
    color: var(--bulma-text);
}

/* What it landed on ------------------------------------------------------- */
.rp-hist-did {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rp-hist-hit {
    display: grid;
    grid-template-columns: var(--chip) 1fr auto auto;
    align-items: center;
    gap: var(--sp-1) var(--sp-2);
}

/* The bars are the glance. Length is sqrt-scaled: damage per record runs 1 to
   1215 with a median of 60, so a linear bar would spend its whole length on the
   handful above 400 and draw the median as a sliver.

   And it is scaled against a CONSTANT, not against its grid track. The track is
   the `1fr` left over after the `auto` numbers column, so it moved with how many
   characters that row's figures happened to need — 146 to 168px on card rows,
   43 to 86px on join rows. 51 damage drew a longer bar than 55 because the 55
   row also carried a `▴1`. A glance that inverts the ranking is worse than no
   bar at all. */
.rp-hist-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    min-width: 0;
}

.rp-hist-bar {
    height: 3px;
    border-radius: var(--r-chip);
    width: min(100%, calc(var(--f) * var(--bar-len)));
    min-width: 3px;
}

.rp-hist-bar--hit  { background: hsl(var(--hit)); }
.rp-hist-bar--mend { background: hsl(var(--mend)); }
.rp-hist-bar--ward { background: hsl(var(--ward)); }

/* Why the number moved, in the game's own icons — the SourceStatusId the wire
   carries, resolved. Sits before the figures because a reader scanning this rail
   asks "what is eating them" before "how much": at a turn boundary six axies
   losing 12 each is one Bleed, and the icon says so where six numbers cannot. */
.rp-hist-why {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: none;
}
.rp-hist-why img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: block;
}
/* The causes with no picture from either source — neither the game's own status
   art nor the face of a card that applies them: a dot holds the column and the
   name still arrives on hover, rather than a gap that reads as nothing.

   19.9% of this rail's causes, measured over 49,542 of them across both corpora.
   Higher than the 7.5% of status rows generally, and that is not a discrepancy:
   causes skew hard towards runes, charms and rules — exactly the statuses the
   art library is thinnest on — so the column that most needs a picture is the
   one least likely to get one. (The previous 6.3% here was the all-rows figure,
   quoted against a population it did not describe.)

   (2026-10-31) Most of that 19.9% now finds a picture before it gets here — a
   card's tracker wears its card's face, the Bulwark carrier wears Bulwark's
   icon, a summon marker its summon (see causeMark() in replay.js). What is left
   is no longer a 5px grey dot, which the owner read as "no info": it is a
   token the size of an icon with the status's initial, tinted by what it is —
   harm, help, or neutral; a rune's is round like the gems. */
.rp-hist-why-none {
    --k: var(--bulma-text-weak);
    display: inline-grid;
    place-items: center;
    flex: none;
    box-sizing: border-box;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid color-mix(in srgb, var(--k) 75%, transparent);
    background: color-mix(in srgb, var(--k) 20%, transparent);
    color: var(--k);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.rp-hist-why-none[data-kind="harm"] { --k: hsl(var(--hit)); }
.rp-hist-why-none[data-kind="help"] { --k: hsl(var(--mend)); }
.rp-hist-why-none[data-kind="rune"] { border-radius: 50%; }
.rp-hist-sum .rp-hist-why-none { width: 11px; height: 11px; font-size: 7px; }
.rp-ctt-h .rp-hist-why-none { width: 14px; height: 14px; font-size: 9px; }

.rp-hist-nums {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-variant-numeric: tabular-nums;
}

.rp-hist-n--hit  { color: hsl(var(--hit)); }
.rp-hist-n--mend { color: hsl(var(--mend)); }
.rp-hist-n--ward { color: hsl(var(--ward)); }

/* What the shield took out of the hit — the other half of a damage figure, and
   for the life of this page a thing only the sentence ever said.

   No sign, because it is neither gained nor lost by the axie: it is the pool
   doing its job, so the glyph carries the meaning where + and − carry it on the
   figures either side. The shield hue at full strength, like every other figure
   here: it was tried at 0.85 to sit it back behind the damage it qualifies and
   that cost a point of contrast in light (3.51:1 against 4.49), which is not a
   trade a measured number gets to make.

   And the glyph is drawn, not borrowed. The shield BADGE on a tile means "this
   axie is standing behind N right now"; this means "N of that hit went into
   it". The same picture must not mean a status in one place and a quantity
   forty pixels below it. */
.rp-now-eaten {
    color: hsl(var(--ward));
    font-variant-numeric: tabular-nums;
}

/* A kill. The most consequential thing a card can do and the one impact no
   surface on this page has ever stated — it existed only as the tile's opacity
   dropping between two steps.

   Damage's own hue, because that is what it is the end of, and a text glyph
   rather than any of the game's art: nothing in the status library means "dead",
   and borrowing something that means one thing elsewhere to mean this here is
   the mistake the shield badge already taught. */
.rp-now-kill { display: inline-flex; align-items: center; gap: 1px; }
.rp-now-kill .fa-skull { font-size: 0.95em; }
.rp-ctt-kill { margin-inline-start: 4px; }
.rp-now-kill {
    color: hsl(var(--hit));
    font-weight: 700;
    line-height: 1;
}

/* The row a death happened on, marked on the row and not only in it: at four
   figures across, a reader scanning the column of numbers can miss a glyph. A
   rule under the row rather than a fill or a hue swap, so it reads as an
   underline on a total and never as a fifth report colour. */
/* An inset shadow rather than a border, and that is a height decision and not a
   drawing one: a border on a grid row makes the row taller, so the receipt would
   grow by a pixel for every kill it reports — inside a box whose whole premise
   is that it does not grow. This paints the same line and occupies nothing. */
.rp-hist-hit.is-kill {
    box-shadow: inset 0 -1px 0 hsl(var(--hit) / 0.45);
}

/* Statuses are a count, not a magnitude — which ones is what the sentence panel
   is for. Arrived and left, told apart by direction rather than by hue, because
   a stack going up is good on a buff and bad on a debuff. */
.rp-hist-st {
    display: inline-flex;
    align-items: center;
    font-size: var(--fs-tiny);
    color: var(--bulma-text-weak);
}

.rp-hist-st--up::before   { content: "▴"; }
.rp-hist-st--down::before { content: "▾"; }

/* The statuses themselves, after the arrow: the same 12px art the cause column
   uses, a stack count on one that landed more than once, `+k` past four. A
   number said how many; the reader's question was which.

   The strip's gap, stated once and here, because this is the block that decides what stands in it. */
.rp-hist-st { gap: 2px; }
.rp-hist-st-one { display: inline-flex; align-items: center; }
.rp-hist-st-one img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    display: block;
}
.rp-hist-st-more {
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
}

/* The charm the played card wore, top-right and overhanging, as the hand card
   wears it; the actor has the bottom-left corner. Smaller on a kept card's
   34px face. A charm without art is the hand's diamond. */
.rp-hist-charm {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.rp-hist-charm--kept { width: 14px; height: 14px; top: -4px; right: -4px; }
.rp-hist-charm--none {
    width: auto;
    height: auto;
    font-size: var(--fs-fine);
    line-height: 1;
    color: hsl(var(--win));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* What an axie brought, on hover -------------------------------------------
   Six cards and their charms, as the client draws them. A deck is loadout and
   cannot change while you scrub, so this is server-rendered once and shown by
   CSS; there is no JavaScript behind it.

   `display: none` rather than hidden-but-present, for the reason the hand card
   learned the hard way: a `visibility: hidden` panel is still laid out, and an
   absolutely-positioned one still extends the document's scroll box. */
.rp-kit {
    display: none;
    position: absolute;
    top: calc(100% + var(--panel-off));
    z-index: 40;
    width: max-content;
    padding: var(--panel-pad);
    border: 1px solid var(--rail);
    border-radius: var(--r-card);
    background: var(--bulma-scheme-main);
    box-shadow: var(--lift-2);
    cursor: default;
}

/* Below the tile, and anchored to the side's own outer edge so it opens INTO
   the page rather than off it: the left team's panels grow rightwards, the
   right team's leftwards. Three cards wide is 258px against a 149px tile, so
   an unanchored panel would hang off the board at both ends. */
.rp-side .rp-kit { left: 0; }
.rp-side--right .rp-kit { left: auto; right: 0; }

.rp-axie:hover,
.rp-axie:focus-within { z-index: 40; }
.rp-axie:hover .rp-kit,
.rp-axie:focus-within .rp-kit { display: block; }

/* The tile is focusable now that this panel is the only way to read a loadout,
   so it needs to show where the focus is. :focus-visible, not :focus — a mouse
   click on a tile should not leave a ring behind it. */
.rp-axie:focus { outline: none; }
.rp-axie:focus-visible {
    outline: 2px solid var(--bulma-text);
    outline-offset: 2px;
}

/* The axie's own render, at a size the tile never has room for. Only on a device
   without hover — the phone, either way up — where the sheet is the one place a
   reader can get a proper look at an axie: the landscape tile is a 70px picture
   at best and the desktop's tile is already big enough that the panel is about
   the cards. Bottom-anchored like the tile's, so the creature meets the heading. */
.rp-kit-art { display: none; }
@media (hover: none) {
    .rp-kit .rp-kit-art {
        display: block;
        height: 108px;
        width: auto;
        max-width: 100%;
        margin: 0 auto 4px;
        object-fit: contain;
        object-position: 50% 100%;
    }
    .rp-kit .rp-kit-art.is-flipped { transform: scaleX(-1); }
}

.rp-kit-h {
    margin: 0 0 7px;
    font-size: var(--fs-fine);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

/* Three across, two down. Six in a row would be 520px — wider than the side it
   hangs off — and 2x3 leaves a tall narrow panel that covers the whole board. */
.rp-kit-cards {
    display: grid;
    grid-template-columns: repeat(3, 78px);
    gap: 8px 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-kit-card {
    position: relative;
    width: 78px;
}

.rp-kit-face {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 456 / 706;
    object-fit: contain;
}

/* The 1.50% with no full card: the square face on the part's class tint, cut to
   the same silhouette so the grid stays a grid. */
.rp-kit-face--square {
    aspect-ratio: 456 / 706;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--r-badge);
    background: var(--kit-cls, #8b8b9c);
}

/* The card's own number, patched over the one its picture prints — the same box,
   the same three sampled hues and the same reasoning as the hand's, because it is
   the same fact about the same stale art library. See `.rp-hcard-alt`.

   The box is smaller here than in the hand and the type does not follow it down:
   a deck card is drawn at 60px against the hand's 84, so --fs-micro is what fits
   the ribbon at this size where --fs-tiny is what fits it there. */
.rp-kit-alt {
    position: absolute;
    left: 30.2%;
    top: 5.8%;
    width: 26.4%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}
.rp-kit-alt--attack  { background: var(--band-atk); box-shadow: 0 0 0 1px var(--band-atk); }
.rp-kit-alt--shield  { background: var(--band-shd); box-shadow: 0 0 0 1px var(--band-shd); }
.rp-kit-alt--healing { background: var(--band-heal); box-shadow: 0 0 0 1px var(--band-heal); }
.rp-kit-alt--attack ~ .rp-kit-alt--shield,
.rp-kit-alt--attack ~ .rp-kit-alt--healing,
.rp-kit-alt--shield ~ .rp-kit-alt--healing { top: 16.4%; }

.rp-kit-card[data-cls="beast"]   { --kit-cls: var(--c-beast-deep); }
.rp-kit-card[data-cls="bug"]     { --kit-cls: var(--c-bug-deep); }
.rp-kit-card[data-cls="bird"]    { --kit-cls: var(--c-bird-deep); }
.rp-kit-card[data-cls="plant"]   { --kit-cls: var(--c-plant-deep); }
.rp-kit-card[data-cls="aquatic"] { --kit-cls: var(--c-aquatic-deep); }
.rp-kit-card[data-cls="reptile"] { --kit-cls: var(--c-reptile-deep); }
.rp-kit-card[data-cls="mech"]    { --kit-cls: var(--c-mech-deep); }
.rp-kit-card[data-cls="dawn"]    { --kit-cls: var(--c-dawn-deep); }
.rp-kit-card[data-cls="dusk"]    { --kit-cls: var(--c-dusk-deep); }

/* The name, in the panel the card art leaves empty for it — measured at 71% to
   92% of the card's height, the same band the hand card writes into. */
.rp-kit-name {
    position: absolute;
    inset: 71% 6% 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-micro);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    pointer-events: none;
}

/* The charm, top-right — the gem overhangs top-left and its value banner runs
   to about 60% of the width, so that corner is the one free spot on a card.
   Kept at 20px against the hand's 18 because this panel exists to be read. */
.rp-kit-charm {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

/* A charm whose art is missing still marks its card: "this one is charmed" must
   not depend on a picture loading. */
.rp-kit-charm--none {
    width: auto;
    height: auto;
    font-size: var(--fs-small);
    line-height: 1;
    color: hsl(var(--win));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Narrow screens keep it — they no longer have anywhere else to look. It used
   to be suppressed here because the deck disclosure under the field said the
   same thing in text; that is gone, so hiding it would mean a phone simply
   cannot see a loadout. Two cards across instead of three, and centred on the
   board rather than anchored to a tile that may be near an edge. */
@media (max-width: 620px) {
    /* `.rp-side .rp-kit` above is two classes and a media query adds no
       specificity of its own, so these have to match it or the anchoring wins
       and the panel centres itself on the board's left edge — half of it off
       the screen. */
    .rp-side .rp-kit,
    .rp-side--right .rp-kit {
        position: fixed;
        top: auto;
        bottom: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: calc(100vw - 24px);
    }
    .rp-kit-cards { grid-template-columns: repeat(3, 68px); gap: 6px; }
    .rp-kit-card { width: 68px; }
}

.rp-vs {
    align-self: center;
    font-family: var(--mono);
    font-size: var(--fs-base);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

/* ═════════════════════════════════════════════════════════════════════════
   THE STAGE — the play stands BETWEEN the boards, on every viewport that
   keeps the two sides facing each other.

   The lane was built for the landscape phone, where the field's 17px gutter
   was the one axis with room to spare. The desktop had the same dead gutter
   at four times the size and kept the play in a row under the piles — so the
   answer to "who is playing what at whom" lived a board-height below the
   place the reader was watching. The stage is the lane, grown up: the live
   card a size up from the row's thumbnails, the receipt under it, both in
   the middle column the two formations already face.

   Same one-instance rule as the phone: paint() MOUNTS the same nodes here,
   it does not copy them. Outside these two viewport shapes (this block and
   the landscape block below) the field is a single column and the play stays
   in each side's own turnbox.
   ═════════════════════════════════════════════════════════════════════════ */
@media (min-width: 721px) and (min-height: 541px) {
    .rp-field {
        /* The gutter becomes a track. clamp, not a constant: at 750px of window
           the boards cannot spare 136px, and 96px is the width the landscape
           phone already proved the receipt survives in. */
        grid-template-columns: 1fr clamp(96px, 11vw, 136px) 1fr;
    }
    /* The word sits at the top of the track and the stage hangs under it —
       the same stacking the landscape block uses, one cell shared by margin. */
    .rp-vs { grid-column: 2; grid-row: 1; align-self: start; text-align: center; padding-top: 2px; }
    .rp-lane {
        /* Both lines, not just the start: for an absolutely positioned grid
           child an `auto` end line is the container's padding edge, and
           `grid-column: 2` alone stretched the lane to the field's right side. */
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        align-self: start;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 6px 3px 8px;
        min-width: 0;
        /* OUT OF FLOW, in its own grid cell (the field is the containing block,
           and a placed absolute child takes its grid area as one). The receipt
           lists every fighter a play touched now (2026-10-31), so the lane's
           height is the play's and not a constant — in flow, an eleven-fighter
           play would have stretched the field's row and walked the piles and the
           hand down the page mid-scrub. Out of flow the row is the boards' alone;
           the lane hugs its content and stops at the cell's foot, where the
           receipt's list starts to scroll. */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        max-height: calc(100% - 30px);
        box-sizing: border-box;
        /* Above the beam's 5, like the landscape lane: 60.6% of beams cross the
           field, and the ones that pass through this box pass BEHIND a lit
           panel rather than printing over the card and the rows. */
        z-index: 6;
    }
    .rp-lane.is-lit {
        border: 1px solid var(--rail);
        border-radius: var(--r-card);
        background: var(--bulma-scheme-main-bis);
    }
    /* Whose play this is: the same edge-weight the landscape lane wears,
       toward the owner's board. */
    .rp-lane[data-owner="0"].is-lit { border-inline-start: 2px solid var(--bulma-text-weak); }
    .rp-lane[data-owner="1"].is-lit { border-inline-end: 2px solid var(--bulma-text-weak); }
    /* The list the live card stands in. The landscape block declares the same
       thing inside its own media query, which is why the desktop lane showed
       a bare <ol> with a literal "1." marker until this block said otherwise. */
    .rp-lane-card {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
        list-style: none;
        min-width: 0;
    }
    /* The live card, a size up from the row's 84px: it is the subject of the
       whole stage, and at 112px its printed numbers are readable without the
       hover panel. */
    .rp-lane .rp-played.is-live { flex: 0 0 112px; }
    .rp-lane .rp-now {
        flex: none;
        width: 100%;
        min-width: 0;
    }
    /* The card's panel opens DOWNWARD here. It hangs above the card everywhere
       else, but the stage sits at the top of the board — above it is the page
       header, and a 338px panel would run off the top of the screen. Below it
       is the rest of the board, which is exactly the room it needs. */
    .rp-lane .rp-played .rp-hcard-tip {
        bottom: auto;
        top: calc(100% + var(--panel-off));
    }
    /* The entrance, from the owner's side of the field: the card arrives the
       way the play arrives, out of the hand that paid for it. Settles at rest
       like every arrival on this page. */
    .rp-lane[data-owner="0"] .rp-played.is-fresh { animation: rp-stage-in-l calc(var(--rp-beat, 220ms) * 1.18) ease-out; }
    .rp-lane[data-owner="1"] .rp-played.is-fresh { animation: rp-stage-in-r calc(var(--rp-beat, 220ms) * 1.18) ease-out; }
}

@keyframes rp-stage-in-l {
    from { transform: translateX(-26px) scale(0.92); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@keyframes rp-stage-in-r {
    from { transform: translateX(26px) scale(0.92); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-lane[data-owner="0"] .rp-played.is-fresh,
    .rp-lane[data-owner="1"] .rp-played.is-fresh { animation: none; }
}

.rp-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.rp-side-name {
    font-size: var(--fs-loud);
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
    /* Idle by default; the side to play is lifted below. */
    color: var(--bulma-text-weak);
}

.rp-side-name a { color: inherit; }
.rp-side-name a:hover { text-decoration: underline; }

/* Whose turn it is ---------------------------------------------------------
   A caret pointing into the field, plus the name in full ink. No hue: the two
   sides carry no colour of their own, and turn ownership is not something a
   reader has to tell apart from damage or healing.

   The caret is in the flow on BOTH sides at all times and only changes opacity,
   so the header row never reflows as the turn passes — a scrubber that shifts
   its own layout under the cursor is hard to read backwards.

   Different from the marker that was tried and removed from the tape (see the
   note further down): that was one mark per turn segment, fully predictable
   from the turn number. This is a single mark that moves, on the board you are
   already watching, and it saves counting parity from turn 1. */
.rp-side-name::before {
    content: "\25B8";
    flex: none;
    font-size: 0.8em;
    opacity: 0;
    color: var(--bulma-text);
}

.rp-side--right .rp-side-name::before { content: "\25C2"; }

.rp-side.is-turn .rp-side-name { color: var(--bulma-text); }
.rp-side.is-turn .rp-side-name::before { opacity: 1; }

/* The Blood Moon clock -----------------------------------------------------
   The game's own crescent, one per side at the top of the field, with the cut
   this turn will take beside it. Red is the art's, not the page's: it is the
   one icon on the board and it reports the only thing that shortens every bar
   at once.

   The number is the CURRENT cut, (turn - 9) * 10 — 1,099 of 1,099 corpus
   curses, sizes 10 … 80 at turns 10 … 17 — and not a running total, which is
   what the game shows too (its turn-11 crescent reads 20, the cut still to
   come). Turn 18 reads 9999, the documented wipe; see replay.js for why that
   one number is spelled out rather than extrapolated. Hidden outright before
   turn 10 rather than reserved: 58 of 150 battles never start the clock, and a
   permanently empty band above the field would cost them all a row for
   nothing. */
.rp-moon {
    display: flex;
    align-items: center;
    /* Shrink to its own ink: .rp-side is a flex column, so a block here would stretch the whole width
       and the tooltip would answer to a hover anywhere along the top of the field. */
    align-self: flex-start;
    gap: 4px;
    margin: 0;
    font-family: var(--mono);
    font-size: var(--fs-base);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--bulma-text);
}

.rp-moon img { width: 16px; height: 16px; flex: none; }
.rp-side--right .rp-moon { flex-direction: row-reverse; align-self: flex-end; }
/* `display: flex` beats the [hidden] UA rule, so the attribute has to be honoured explicitly or the
   crescent shows from turn 1 in every battle. */
.rp-moon[hidden] { display: none; }

/* What stands on the whole SIDE — Bad Luck, Bulwark, Cunning, Vengeance. The
   same badges an axie wears, in the same place the Blood Moon clock already
   occupies, because both answer "what is true of this team right now".

   Three departures from the tile strip, all for the same reason: this one hangs
   off the header rather than sitting in a column of tiles.

   It shrinks to its own ink and hugs its side, like .rp-moon above and for the
   identical reason — .rp-side is a flex column, so a stretched strip would take
   hover across the whole width of the field.

   It reserves NO row. A tile's strip holds 19px whether or not anything stands
   there, so a rank of axies keeps its pictures on one line; here there is no
   rank to line up with, and an empty 19px would be a permanent gap under the
   header of the 24% of battles that never show one of these.

   And it does not wrap to centre: four is the most the corpus ever shows at
   once, which fits. */
.rp-team-marks {
    align-self: flex-start;
    justify-content: flex-start;
    min-height: 0;
    margin-top: 2px;
}

/* Hidden where it is never used, RESERVED where it is. The 24% of battles that
   never stand a status on a side carry no gap; the rest hold the row whether or
   not one is standing right now, because flipping between 0 and 19px moved the
   formation under it every time a team buff came and went. `is-used` is set once
   per battle from the steps — see paint()'s neighbour in replay.js. */
.rp-team-marks:empty:not(.is-used) { display: none; }
.rp-team-marks.is-used { min-height: 19px; }

.rp-side--right .rp-team-marks { align-self: flex-end; justify-content: flex-end; }

/* The rank badge ------------------------------------------------------------
   The ladder rank the player came in with is the one thing a replay says about
   how good the two sides are, and it used to be a mono caption. It is a badge
   now (the owner, 2026-08-22): the game's own emblem for the rank AND tier —
   the tier is the emblem's material, Dragon IV bronze and Dragon I gold, so the
   picture says it before the numeral does — the rank's name in the caption
   voice it had, the tier as the numeral the game uses, and, when the site
   tracked the battle, the player's Victory Stars at it with what the result
   paid or cost. A pill on the page's quiet ground, one hairline, no hue of its
   own: the emblem carries all the colour a rank needs. `flex: none` because a
   long player name must eat its own space, not the badge's. */
.rp-rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    align-self: center;
    padding: 2px 9px 2px 4px;
    border: 1px solid var(--rail);
    border-radius: 999px;
    background: var(--bulma-scheme-main-bis);
    font-size: var(--fs-fine);
    line-height: 1;
    white-space: nowrap;
    cursor: default;
}
.rp-rank-art {
    display: block;
    height: 22px;
    width: auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.rp-rank-name {
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}
.rp-rank-tier { margin-inline-start: 4px; color: var(--bulma-text); }
/* The stars: the count in full ink with the page's gold star before it, and
   what the battle paid or cost in the mend or hit hue beside it. Parted from
   the rank by a hairline, because they are a second fact about the same player. */
.rp-rank-stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-inline-start: 8px;
    border-inline-start: 1px solid var(--rail);
    font-family: var(--mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text);
}
.rp-rank-stars .fa-star { font-size: 10px; color: hsl(var(--win)); }
.rp-rank-delta { font-weight: 600; }
.rp-rank-delta.is-up { color: hsl(var(--mend)); }
.rp-rank-delta.is-down { color: hsl(var(--hit)); }
.rp-side.is-turn .rp-rank { border-color: color-mix(in srgb, var(--bulma-text) 28%, var(--rail)); }

/* The team name, under the player who fielded it.

   Kept rather than dropped because it IS information — in haunted it names the
   preset deck the mode dealt, which is the most useful thing on this header —
   but it is not who played, so it reads as a caption and not as a heading. Same
   quiet ink and fine size as the rank badge's caption beside the name, so the header has
   two weights and not three: the player, and everything that qualifies them.

   No mono and no uppercase, unlike .rp-rank-name: a team name is free text a player
   typed, often with emoji and mixed case, and forcing it into caps makes a
   nickname look like a system label. */
.rp-side-team {
    margin-top: 1px;
    font-size: var(--fs-fine);
    font-weight: 400;
    line-height: 1.2;
    color: var(--bulma-text-weak);
    /* A team name can be long and this sits over a fixed-width column. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rp-side--right { text-align: right; }
.rp-side--right .rp-side-name { flex-direction: row-reverse; }
.rp-side--right .rp-axie { flex-direction: row-reverse; }

/* Formation ---------------------------------------------------------------
   The game's field is two lines of three, STAGGERED — the front line sits half a
   cell toward the enemy rather than squarely in front of the back line. Slots run
   down the columns (column = slot / 2, row = slot % 2), which is why a team in one
   line reads as (0,2,4) or (1,3,5) and never (0,1,2).

   The whole block is mirrored for the right-hand side by `direction: rtl`, so the
   logical offset below leans both front lines toward the centre without a second
   rule. Empty slots keep their space; a formation should read at a glance.

   `direction` decides which way the STAGGER leans; it does not decide the column
   order, and the two are not the same flip. The template emits the columns
   outside-in (2,1,0) so the low slots land nearest the centre, which is where the
   client puts them — see the note there. Reversing this rule instead of that loop
   would put the low slots back at the outside edge AND lean both front ranks away
   from the enemy. */
/* The stagger reserve is 7%, halved from 14%. It buys the diagonal that makes
   the front rank lean toward the centre, and at 14% it was costing 51px of a
   363px side — a sixth of the field spent on an offset you can read at half
   the size. */
/* A GRID of two equal rows, not a flex column. `1fr 1fr` on an auto-height grid
   makes both ranks the height of the taller one, which is what keeps a rank
   nobody stands in occupying a rank's worth of the board instead of collapsing
   out of it. Every team fields exactly three axies into six slots (300 of 300
   corpus sides) and 51.7% of sides stand in a single line, so on half of all
   replays one of these two rows holds nothing at all — and it still has to hold
   its ground, or the two teams' formations stop lining up with each other. */
.rp-form { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; padding-inline-end: 7%; }
.rp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rp-row--front { margin-inline-start: 7%; margin-inline-end: -7%; }
.rp-side--right .rp-form { direction: rtl; }
.rp-side--right .rp-form .rp-axie { direction: ltr; }
/* A rank nobody stands in. Shorter than an occupied one on purpose: it has to
   hold the position open, not match it. Every team fields exactly three axies
   into six slots, so one of these ranks is always half empty and 51.7% of
   sides leave a whole one vacant. */
/* An open position. It keeps the rank's full height, whether the rank holds
   axies or nothing at all: the grid above gives both rows the same height and a
   grid item stretches into its row by default.

   This used to collapse when a WHOLE rank was empty — 118px became a 1px line on
   the ground — on the argument that three empty boxes spend a rank's worth of
   panel to say nothing. That is true and it is still not worth it: with one side
   collapsed and the other not, the two teams' ranks sat at different heights and
   the board stopped reading as two formations facing each other. A position
   nobody stands in is information; it is where somebody could have stood.

   Quiet rather than absent. A team of three always leaves three of these
   somewhere, so at 45% they read as ground nobody is on rather than as three
   missing cards. */
.rp-empty {
    border: 1px dashed var(--rail);
    border-radius: var(--r-card);
    min-height: 60px;
    opacity: 0.45;
}

/* The square that was not taken -------------------------------------------
   A summon names a slot to stand in and the game offers it a set to pick from,
   and until both halves of that pair were read off the wire the page could say
   where a unit went and never what the alternative was. Measured over 400 prod
   replays: the offer held more than one slot on 59 of 75 placements, so four
   times in five this marks a decision rather than a formality.

   NEUTRAL INK, which is this file's own rule and not a new one: `is-aimed`
   argues it in as many words — "being aimed at is neither harm nor help" — and
   a square on offer is the same kind of fact. The first version of this spent
   `--bulma-link`, a saturated indigo that belongs to no other mark on the
   board, and it read as a fourth hue to learn.

   An OUTLINE and not a border, drawn INSIDE the box. Outline because a border
   would reflow the board mid-scrub on a page whose geometry is a constant by
   design; inside because these squares are neighbours in a tight grid and an
   outline offset outwards puts two marks 4px apart along every shared edge.
   Dashed for the offer and solid for the one taken, which is the grammar the
   board already reads: dashed is a square with nothing standing in it. */
.rp-form [data-slot].is-offered,
.rp-form [data-slot].is-taken {
    outline-offset: -2px;
    border-radius: var(--r-card);
}

.rp-form [data-slot].is-offered {
    outline: 1px dashed color-mix(in srgb, var(--bulma-text-weak) 60%, transparent);
}

.rp-form [data-slot].is-taken {
    outline: 2px solid var(--bulma-text-weak);
}

/* An empty square is drawn at 0.45 so it recedes; while it is on offer it is
   the point of the frame and has to be legible against the board. */
.rp-empty.is-offered,
.rp-empty.is-taken { opacity: 1; }

/* A position that more than one thing can stand in --------------------------
   A summon declares a formation position and stands in it, so a position can
   have several possible occupants over one battle: the roster axie, and up to
   five summoned units arriving one after another (the corpus's worst is five
   through one position, median 208 steps apart, 0 overlaps). Every one of them
   is server-rendered from step 0 and they are STACKED — one grid area, all of
   them in it — so exactly one is on screen and the cell's size is the same
   whichever it is.

   The wrapper is emitted only for the positions that need it. A grid item is
   one element per cell and this is what lets a cell hold four; the 92% of
   battles that summon nothing never get one. */
.rp-cell { display: grid; }
.rp-cell > * { grid-area: 1 / 1; }

/* Not the occupant of this position at this step.

   `visibility` and never `display`, and that is the rank-reservation rule in one
   declaration: a hidden tile still occupies its cell, so a rank a summon will
   EVER stand in is held open at a rank's full height from step 0 — including in
   landscape, where a vacant rank otherwise collapses to a token 8px and the
   arrival would have been an +87.85px jump under the reader mid-battle. It is
   also what makes the board's geometry a constant: nothing on this page changes
   size while you scrub, and here nothing changes size when a unit is born,
   dies, or is replaced by the next one. */
.rp-cell > .is-off { visibility: hidden; }

/* The still keeps its own proportions inside the box the gene render fills, so a
   rank's pictures line up whatever shape the creature is. (The tile's own
   appearance — the dashed edge, the hatched bar, the arrival — is with the axie
   card it is a variant of, because it has to come AFTER the rules it overrides.) */
.rp-form .rp-summon-art { object-fit: contain; }

/* What the thing DOES, where the axie beside it keeps its deck.
   The same panel, opened the same way — hover, or focus from the keyboard,
   because the tile is a tab stop like every other tile. A summon brought no
   cards, so what fills it is the game's own glossary line for its kind: why it
   bleeds 8 HP a turn unhit, why Trunk exists at all, why Little Robin's death is
   a mechanic. Sized rather than `max-content`: a rules line is a sentence and
   would otherwise draw one 700px row. */
.rp-kit--sum {
    width: 252px;
    font-size: var(--fs-base);
    line-height: 1.45;
    /* The right-hand side is `text-align: right` and this is prose, which the
       page sets left everywhere else — `.tt-card` says so itself. Without this
       the same rules read ragged-left on one side of the board and ragged-right
       on the other, which is two dialects of one panel. */
    text-align: left;
    /* The bullet beside each line takes the unit's class colour, the way the
       hand card's panel takes its card's — the token is only declared on
       `.tt-card`, and an unset one makes `color-mix` invalid and the diamond
       vanish. */
    --tt-rare: var(--cls, var(--c-none));
}

.rp-kit--sum .rp-kit-h { margin-bottom: 5px; }

/* Axies face each other: the art faces left by default, so the left-hand team is
   flipped — the same convention component/renderClickableAxieImage.jte uses. */
.rp-axie-art.is-flipped { transform: scaleX(-1); }

/* A card inside the formation is narrow, so it stacks: art over body, art small. */
.rp-form .rp-axie { flex-direction: column; align-items: stretch; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) 7px; }
.rp-side--right .rp-form .rp-axie { flex-direction: column; }
/* The art keeps the render's own 4:3 instead of being clamped to 46px. That
   clamp was the other half of why the axies looked small: at the tile's width
   the natural height is 100px, so `contain` was letterboxing the axie into
   less than half the box it had. 82x46 to 133x100 — 3.5x the area. */
.rp-form .rp-axie-art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.rp-form .rp-axie-name { font-size: var(--fs-small); }
/* The name gives the bar its line. 5px was the separation between the name and
   the HP row when those were the only two rows under the art; the tile is a flex
   column with a gap of its own, and the HP block now brings a third row that has
   to fit inside the same tile. 3px is what the gap wants beside it, and it is the
   whole desktop cost of a full-width bar. */
.rp-form .rp-axie-name { margin-bottom: 3px; }
.rp-form .rp-hp-read { font-size: var(--fs-fine); }
/* 35% is the widest that still fits the worst read the corpus produces inside
   the tile's 133px content box. That worst read was mis-measured once: it was
   taken as `471/493 ◆182` at 78px, but the corpus's largest shield is 1,987 and
   1.43% of standing shields are four digits, so the real worst is seven
   characters of `363/363` beside a four-digit badge. Measured in the browser:
   track 46.52 + the row's 4px minimum gap + a read of 80 (42 of numerals, 6 of
   margin, 32 of badge) = 130.52 of 133, 2.48px spare. Before this the same read
   measured 46.52 + 8 + 85 = 139.5 and hung 6.5px out of the tile.

   The numerals are 42px at both breakpoints, which looks wrong and is not: the
   mono fallback snaps its advance to whole pixels, so --fs-fine (9.92px) and
   --fs-tiny (8.96px) both land on 6px a character and only --fs-micro (8px)
   drops to 5. That is why the badge's digits, not the read's, are what gets
   stepped down when space runs out.

   ---- and it is gone ----
   All of that arithmetic existed because the track and the read shared a row.
   They do not: the bar has its own line and takes the whole 133px box, so there
   is no percentage to derive and no worst read to derive it against. The widest
   read in the corpus now has a line to itself with 53px to spare. Kept as a
   record of what the one-row layout cost, and of why the 27% twin below is gone
   too. */

/* The energy wheel ---------------------------------------------------------
   Modelled on the game's own orb, because that is the shape players already
   read: current energy large, the per-turn allowance small beside it, and a
   ring closing toward the next Energy Burst.

   Two departures from the game, both deliberate. It is flat rather than
   glossy, because everything else on this page is. And energy gets its own
   hue instead of borrowing the shield blue it used to share — they are two
   different resources and a reader should never have to check which one a
   number belongs to.

   The ring is DISCRETE. Its tick count is the burst meter itself, so it
   grows 12 -> 16 -> 20 -> 24 as bursts fire (110 of 150 corpus battles reach
   one, 19 reach two, 7 reach three). A smooth arc would hide the single most
   interesting thing the mechanic does. */
.rp-nrg {
    position: relative;
    display: inline-grid;
    place-items: center;
    /* 46px with a thick band. Six tick-ring treatments were drawn side by side across four real
       meter states in both themes; this was the only one that stayed countable at 24 ticks on
       near-black as well as on white. A hairline ring reads on paper and vanishes in the dark. */
    width: 46px;
    height: 46px;
    flex: none;
}

.rp-nrg-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    /* The unfilled track is deliberately legible, not a whisper: how LONG the ring is
       carries as much as how full it is, and a near-invisible track hides the meter
       growing from 12 to 24. */
    background: conic-gradient(hsl(var(--spark)) 0 calc(var(--filled, 0) * 360deg),
                               hsl(var(--spark) / 0.26) 0);
    /* Two mask layers intersected: N tick wedges, and a hole to make it a ring.
       Where mask-composite is unsupported this degrades to a solid dial, which
       still reports the same fraction. */
    -webkit-mask:
        repeating-conic-gradient(#000 0 calc(360deg / var(--ticks, 12) - 5.5deg),
                                 transparent 0 calc(360deg / var(--ticks, 12))),
        radial-gradient(circle, transparent 54%, #000 55%);
    -webkit-mask-composite: source-in;
    mask:
        repeating-conic-gradient(#000 0 calc(360deg / var(--ticks, 12) - 5.5deg),
                                 transparent 0 calc(360deg / var(--ticks, 12))),
        radial-gradient(circle, transparent 54%, #000 55%);
    mask-composite: intersect;
}

/* There is deliberately NO "meter full" state. Reaching the meter IS the burst, and the burst resets
   the remnants and lengthens the meter in the same subtree — so a full ring is an instant the game
   never shows. It survives here only because snapshots are pre-order, and it is vanishingly rare:
   42 of 224,270 corpus step-players. Painting it gold would spend the page's loudest colour on a
   frame that is an artefact of when we take the picture. The ring fills and rolls over. */

.rp-nrg-read {
    position: relative;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.rp-nrg-now { font-size: var(--fs-loud); font-weight: 700; color: hsl(var(--spark)); }
/* The royal blue loses ground against a near-black field; lift it there so the number stays as
   present as it is on white. */
html.theme-dark .rp-nrg-now { color: hsl(var(--spark) / 1); filter: brightness(1.35); }
.rp-nrg-per { font-size: var(--fs-tiny); color: var(--bulma-text-weak); }

/* Banked energy fragments (remnants on the wire), spelled out because the ring shows the ratio but not the
   count, and the count is what a player counts.

   A BADGE UNDER THE WHEEL (owner, 2026-11-01: "place 2/12 below the wheel and remove the text 'energy'…
   make a badge"). It takes the caption's place: the wheel names itself — the orb and its "/3" are energy
   to anyone who has played — and the word under it was the one line in the row that said nothing a
   reader could not already see. The badge is the battle log's neutral chip (`.rp-lg.has-w`) with the
   log's fragment mark in front, a dashed spark ring (`.rp-ev-n--frag`): the same thing drawn the same
   way in both places, and a ring of dashes is what the wheel around it is made of. */
.rp-rem {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px 0 4px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--bulma-text);
    background: color-mix(in srgb, var(--bulma-text) 9%, transparent);
}
.rp-rem::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1.5px dashed hsl(var(--spark));
}
/* No full state here either, for the same reason as the ring. */

/* The shield, as the game draws it ----------------------------------------
   The client puts a blue shield-shaped badge with the number inside it hard
   against the HP figure, on the far side from the bar. A shield is a second
   pool of hit points standing in front of the first one, and it read here as a
   footnote after the numbers — `471/493 ◆182`, a diamond and some digits in the
   same weight as everything else in the row.

   ---- how big the number gets, and how often ----
   Swept over the 150-replay corpus: 672,810 fighter-steps, 127,478 of them
   carrying a shield. That is 18.95% of all fighter-steps and 21.55% of the ones
   where the axie is still alive, and 462 of 900 fighters hold one at some point
   — so the badge is neither furniture nor a rarity. It is absent four steps in
   five, which is what earns it a saturated fill: it has to be findable when it
   arrives, and it is not on screen often enough to shout the rest of the time.

   The magnitude is the part that decides the shape. Median 30, mean 87, and a
   long tail: p90 171, p99 1,161, max 1,987. By digit count 17.76% are one digit,
   64.85% two, 15.96% three and 1.43% FOUR — and 54 of 150 battles reach three
   digits, 6 of 150 reach four. So the badge has to hold four digits without
   breaking, which is why it is a shield that stretches rather than a fixed
   square with a number dropped in it. Widest read in the corpus is
   `363/363` + `1086`; HP itself never exceeds three digits either side of the
   slash (largest HP 520, largest max 582), so the numbers are a constant 7
   characters at worst and every remaining pixel is the badge's.

   ---- the shape (redrawn 2026-10-31, from the game's own recording) ----
   The game draws a faceted crest: a short flat top with chamfered corners, the
   widest point high up, straight sides running down to a rounded point, a
   bright rim lit from above around a deeper face, and a chunky white number
   with a dark outline. It stands taller than the HP figure and sits
   immediately BEFORE it, on both teams: `[138] 465 ====` (frames of the
   9c06be59 recording, dev-data/video; dev-data/examples/shields.png). The flat
   clip-path pentagon this replaced was drawn after the figure, at the figure's
   height, and the owner found it unnoticeable. A blue lane on the bar was tried
   too, the same day, and dropped: the game has none, and at 32 of 458 it read
   as a stray sliver.

   Two masked layers under the text: ::before is the rim and ::after the face,
   each an SVG shield used as a mask at 100% x 100% of the box. The text is not
   masked, so the digits stay sharp. The box is a shield's shape for one or two
   digits (82.6% of shields). From three digits it widens with its padding and
   the mask stretches with it, into a broader crest that still has its point.
   That keeps the old rule that four digits must never break the badge.
   Both layers are tones of --ward. The rim's light top edge and the face's
   deeper upper half are the game's bevel, and they are the only gradients on
   the board: a flat two-tone crest read as a sticker, not as the game's shield.

   The number is white with a 1px navy outline, the game's treatment. White on
   the face alone would fall short of 4.5:1. The outline is what is read against
   the face, so the contrast is the glyph's against its own edge, as in the
   client. */
.rp-shield {
    --shield-h: 16px;
    --shield-w: 15px;
    --shield-ink: hsl(215 70% 16%);
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    order: -1;
    box-sizing: border-box;
    height: var(--shield-h);
    min-width: var(--shield-w);
    padding: 0 3px calc(var(--shield-h) * 0.14);
    margin-inline: 0 var(--sp-2);
    /* The page's sans at its heaviest, not the mono: the game's digits are
       chunky and round, and the thin mono numerals vanished inside the outline. */
    font-family: inherit;
    font-size: var(--fs-tiny);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    /* Four digits must never become two lines: the row's height is reserved for
       exactly one badge and a wrap would push the tile. */
    white-space: nowrap;
    color: #fff;
    text-shadow: 1px 0 0 var(--shield-ink), -1px 0 0 var(--shield-ink), 0 1px 0 var(--shield-ink),
                 0 -1px 0 var(--shield-ink), 1px 1px 0 var(--shield-ink), -1px 1px 0 var(--shield-ink),
                 1px -1px 0 var(--shield-ink), -1px -1px 0 var(--shield-ink);
}

.rp-shield::before,
.rp-shield::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-mask: var(--shield-mask) center / 100% 100% no-repeat;
            mask: var(--shield-mask) center / 100% 100% no-repeat;
}

.rp-shield::before {
    --shield-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26' preserveAspectRatio='none'%3E%3Cpath d='M5 1.4H19L22.8 5.4L22.1 13.8L12 24.6L1.9 13.8L1.2 5.4Z' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: linear-gradient(180deg, color-mix(in srgb, hsl(var(--ward)) 55%, #fff) 0%,
                                        hsl(var(--ward)) 38%,
                                        color-mix(in srgb, hsl(var(--ward)) 80%, #0a2a5c) 100%);
}

.rp-shield::after {
    --shield-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26' preserveAspectRatio='none'%3E%3Cpath d='M6.9 4.7H17.1L19.4 7.1L18.9 12.6L12 20.2L5.1 12.6L4.6 7.1Z' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
    background: linear-gradient(180deg, color-mix(in srgb, hsl(var(--ward)) 72%, #0a2a5c) 0%,
                                        color-mix(in srgb, hsl(var(--ward)) 92%, #0a2a5c) 55%);
}

.rp-shield[hidden] { display: none; }

/* THE SPARKLINE ------------------------------------------------------------
   The whole battle for this axie, under the bar that shows one step of it. It
   is deliberately the quietest thing on the tile: the bar, the badges and the
   pops are the state a reader is watching, and this is the context behind it —
   read once at a glance and then ignored until it matters.

   20px of a ~74px tile body, and it earns them by answering a question the tile
   otherwise cannot: an axie at 250 HP that has been falling all battle and one
   that has just been healed to 250 draw the same bar.

   Empty until replayStats.js fills it. It stays empty on a page whose script
   did not load, which is why it has no border, no ground and no reserved height
   of its own — an unfilled sparkline is invisible rather than a hole. */
.rp-spark {
    display: block;
    height: 20px;
    margin-top: var(--sp-1);
}

.rp-spark-svg { display: block; width: 100%; height: 100%; overflow: hidden; }

/* One hue for the whole history, and not the bar's three bands: those say what
   the axie is NOW, and painting the past in them would say an axie was in
   danger at every point it happened to be under half. */
.rp-spark-hp { fill: color-mix(in srgb, var(--bulma-text) 34%, transparent); }

/* The upper lane, in the page's own shield hue and lighter than the health
   under it, so which lane is which is answered by the colour before the shapes
   are read. Its scale is the battle's biggest shield, not this axie's, so six
   of these can be compared with each other. */
.rp-spark-shield { fill: color-mix(in srgb, hsl(var(--ward)) 42%, transparent); }

/* `non-scaling-stroke` is doing real work: the viewBox is 96 units wide and
   drawn into ~140px with preserveAspectRatio="none", so a plain 1px stroke
   would come out half again as thick horizontally as vertically and these
   uprights would read as bars rather than rules. */
.rp-spark-turn {
    stroke: var(--rail);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: 0.55;
}

.rp-spark-now {
    stroke: var(--bulma-text);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: 0.75;
}

/* Nothing transitions. The badge appears and disappears with the cursor, and a
   width or opacity transition would make a step arrived at from the left look
   different from the same step arrived at from the right for as long as it ran. */

/* The CARD's shield numbers do not follow this, on purpose: `.rp-hcard-stat--shd`
   on a bare face, `.rp-hcard-alt--shield` patched over a printed banner, and the
   tooltip's `data-kind="ward"` row all keep the client's flat #0057ac square.
   They are a different quantity. A badge on a tile is a fact — that much shield
   is standing right now, and it will be gone in a few steps. A number on a card
   is a PROMISE: what this card would grant if it were played. Drawing the promise
   as the fact would put a second shield shape on a picture whose own art already
   prints one, and would invite reading a card's 40 as an axie's 40. The two hues
   agree anyway — #0057ac is hsl(210 100% 34%) against --ward's 205, the same blue
   family — so they read as one idea in two grammars rather than as two ideas. */

/* (Superseded 2026-10-31: the shield now comes BEFORE the figure on both teams,
   as the game draws it, `[182] 471/493`. The reasoning below is kept as the
   record of why it used to mirror.)
   The read is `471/493 [182]` on the left team and `[182] 471/493` on the right.
   The tile forces `direction: ltr` so the numerals never mirror, but the badge
   beside them is a separate token, and it was once the one thing in the tile
   that stayed on the same side on both teams.

   The mirror of "the shield sits on the outer side of the HP figure" is not a
   side of the tile — it is a side of the NUMBER: the badge always sits on the
   far side of the HP figure from the bar. The bar is outer on both teams (the
   row is row-reversed on the right), so the badge is innermost on both, and the
   reference's bar-number-shield order holds whichever team you read. */

/* Hand --------------------------------------------------------------------
   Exact: the card ids come from the two hand maps in the secret state, checked
   against the game's own CardsInHandSize.

   The cards are the client's own. `card-base` is a complete pre-rendered card —
   energy gem, attack or shield banner, part icon, type tag, class watermark,
   frame — so the page draws none of that itself. Anything re-drawn over the top
   would be the page restating what the picture already says, and disagreeing
   with it the moment the two sources differ.

   Three things the art does NOT carry, and only those three are added: the name
   (the art leaves an empty panel for it), the charm, and the rules text, which
   does not fit on a card this size and lives in the hover panel.

   Sized from the source rather than by eye: 456x706 is 0.646, so a 76px card is
   118px tall and the shipped WebP is exactly 2x that. */
.rp-hand {
    /* 84, not 76: the panel is ~493px, so five cards and their gaps fit at this
       width — the extra 8px is free and it all goes to the name, which is the one
       thing on the card that has to hold real text.

       THE HAND HOLDS AT MOST TEN. That is the game's own limit and it is exact
       here: across 729,556 corpus hand samples the largest is 10 and not one
       sample exceeds it. Knowing the ceiling is what lets this row be designed
       for its worst case instead of discovering it.

       It used to wrap, and 14.0% of samples hold six or more — so on one sample
       in seven the hand became two rows, grew its side by 130px, and pushed the
       whole combat log down the page. `.rp-hand` is the last child of `.rp-side`,
       so nothing was above it to absorb that. The page settled this argument for
       the piles already: a readout you have to chase is not a readout.

       So: ONE row, always, at a FIXED height, with the cards shrinking to fit as
       the hand fills. Ten cards and nine gaps in ~493px is 45.7px each, so the
       ramp runs 84px at five or fewer down to ~45px at ten, and the row's height
       never moves. Everything inside a card is sized in container units for the
       same reason — see `.rp-hcard`. */
    --card-w: 84px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 4px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    /* Exactly one card tall at full width, held whether the hand has ten cards,
       one, or none: an empty hand must not collapse the panel and a filling hand
       must not grow it. */
    height: calc(var(--card-w) / 0.646);
}

.rp-side--right .rp-hand { justify-content: flex-end; }

.rp-hcard {
    position: relative;
    /* Shrinkable down from the full width, never wider. `min-width: 0` is what
       actually permits the shrink — a flex item will not go below its content's
       intrinsic width without it, and the face is an <img>. */
    flex: 0 1 var(--card-w);
    min-width: 0;
    aspect-ratio: 456 / 706;
    /* Everything drawn ON the card is sized against the card's own width rather
       than the page's, so a hand of ten reads as ten small cards instead of ten
       small cards wearing full-size furniture. The three that were in px — the
       name's type, the charm and the owner portrait — are the ones this fixes;
       the rest were already percentages and scaled on their own. */
    container-type: inline-size;
    /* The art has its own rounded frame with a soft outer edge; a border or a
       background here would sit outside it and read as a second frame. */
    transition: transform var(--ease-state);
}

/* A card the game itself says cannot be played right now — the client's own
   hints, decoded, not a cost model (2,048 corpus hint-sets disagree with any
   cost model, which is why one was never built). Dimmed the way the client
   dims an unplayable card; the lit cards ARE the message. Hover and focus
   restore it, because a dimmed card's panel still has to be readable. */
.rp-hcard.is-unplayable { opacity: 0.45; filter: saturate(0.55); }

.rp-hcard.is-unplayable:hover,
.rp-hcard.is-unplayable:focus-within,
.rp-hcard.is-unplayable.is-open { opacity: 1; filter: none; }

.rp-hcard-face {
    display: block;
    width: 100%;
    height: 100%;
    /* contain, not cover: the source aspect is exact, and a card cropped to fill
       would clip the frame the art draws at its own edge. */
    object-fit: contain;
}

/* The name, in the panel the art leaves empty for it. Measured off the source:
   the flat panel runs 71% to 92% of the card's height, between the type tag and
   the class watermark, which is where the client prints the name too. */
.rp-hcard-name {
    position: absolute;
    inset: 71% 7% 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* 9.5cqw is var(--fs-micro) exactly at the full 84px card and shrinks with it.
       Below about 60px it stops being readable — that is inherent to fitting ten
       cards in 493px and not something a font size can solve, which is why the
       hand card's tooltip carries the name in full. */
    font-size: 9.5cqw;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    /* The panel is class-tinted and runs from near-black to a light plant green,
       so white alone is not always legible. The shadow is the contrast, not a
       decoration. */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    pointer-events: none;
}

/* The card's own number, over the one its picture prints -------------------
   Two things make the baked figure untrue. A charm moves it — "Bird's Charm of
   Focus I" is ATK +4, so a printed 17 lands for 21 — and, far more often, the
   art library simply predates the card: it is a snapshot of an older balance
   patch, and of the 516 card rows the page draws with a real face only 84 are
   known to agree with the live card table. 23 print the wrong KIND of stat
   (Puppy is a 50 attack and its picture is a green 20 heal), 42 print the right
   kind with the wrong number, 70 print nothing where the card has a stat, and
   for 288 more the art's figures predate everything they could be checked
   against. So the flag is no longer the exception it was: it is drawn wherever
   the card table has a number, which is `statFlags` in replay.js.

   The box is FIXED and it is the art's own, measured over the 256 faces whose
   ribbon can be read cleanly: the top edge is 5.96% of the card's height on
   256 of 256, the bottom 15.3% on 192 and 15.7% on the rest, the left 30.3%
   and the right 54.0% to 56.6%. It is drawn a hair outside all of those, since
   a patch 2px long reads as a slightly longer ribbon and a patch 2px short
   leaves a stripe of the wrong colour showing. The old box started at 7.5% and
   left exactly that stripe along the top. */
.rp-hcard-alt {
    position: absolute;
    left: 30.2%;
    top: 5.8%;
    width: 26.4%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* A hair of overdraw, so the baked flag's antialiased edge cannot peek out
       from under a box that lines up with it exactly. */
    box-shadow: 0 0 0 1px currentColor;
    font-family: var(--mono);
    /* --fs-tiny, not --fs-micro. The figure is now on every card rather than on
       the few a charm touched, so it is read as the card's number and not as an
       annotation on it: 9px against the art's own ~10px lettering, in a 13px
       box, where 8px sat visibly small inside the ribbon it replaced. */
    font-size: var(--fs-tiny);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}

/* The art's own banner colours, sampled from all 401 shipped faces by taking
   the modal pixel of the banner box and clustering by hue: red #c9051a (210
   faces), blue #0057ac (64), green #008059 (20), the rest having no banner
   there at all. Three hues, not two — the printed shield banner is BLUE, and
   is the same blue the page already spends on shield everywhere else. This
   patch sits directly on top of the printed flag, so any drift shows as one
   card in a hand disagreeing with the card beside it. */
.rp-hcard-alt--attack  { background: var(--band-atk); box-shadow: 0 0 0 1px var(--band-atk); }
.rp-hcard-alt--shield  { background: var(--band-shd); box-shadow: 0 0 0 1px var(--band-shd); }
.rp-hcard-alt--healing { background: var(--band-heal); box-shadow: 0 0 0 1px var(--band-heal); }

/* A card the battle has changed — a Puppy that has been healing all game and now
   hits for 144 where it prints 60, an Anemone down 10 for having been played.
   The number is already the truth; this says that it MOVED, which is the thing a
   reader cannot get from a figure standing on its own.

   A rule under the figure rather than a hue or a sign: the three banner colours
   are spoken for by which stat it is, and a "+" would read as part of the number.
   Up is a solid rule, down is a dashed one — the same two marks the tiles already
   use for a thing acting and a thing being acted on. */
.rp-hcard-alt.is-grown { border-bottom: 2px solid #fff; }
.rp-hcard-alt.is-cut   { border-bottom: 2px dashed #fff; }

/* The live COST, a disc over the card's own printed gem — shown only while the
   battle has moved it off the printed number (1,622 rewrites over the corpus;
   21.8% of plays pay ≠ printed). The spark hue is the page's colour for
   "this costs energy", and the white ring is what separates a correction from
   the art's own gem underneath it. */
.rp-hcard-alt--cost {
    left: 3.5%;
    top: 2.6%;
    width: 21%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: hsl(var(--spark));
    box-shadow: 0 0 0 1.5px #fff;
}

/* The base class declares display:flex, which outranks the [hidden]
   attribute's UA display:none — without this rule a hidden flag still draws. */
.rp-hcard-alt--cost[hidden] { display: none; }

/* And the arithmetic, in the panel, where there is room for both halves. Hidden
   when there is nothing to say, which is the vast majority of cards — the growth
   list is 6 to 308 entries for a whole battle. */
.rp-hcard-now:empty { display: none; }

.rp-hcard-now {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-4);
    margin-top: 6px;
}

/* Two stats on one card would stack in the same box, so the second drops below
   the first — the art has no second flag to cover there anyway. Four rows in the
   card table carry two: Turnip and Turnip+ (shield AND heal), and the two
   Tropical Guardians. 16.4% is the first box's own bottom edge plus a hair. */
.rp-hcard-alt--attack ~ .rp-hcard-alt--shield,
.rp-hcard-alt--attack ~ .rp-hcard-alt--healing,
.rp-hcard-alt--shield ~ .rp-hcard-alt--healing { top: 16.4%; }

/* The charm, top-right. The gem overhangs top-left and its value banner runs to
   about 60% of the width, so this corner is the one free spot on the card. */
.rp-hcard-charm {
    position: absolute;
    top: 2.4cqw;
    right: 2.4cqw;
    /* 21.4cqw is 18px at the full card. Scaled rather than fixed so a ten-card
       hand does not wear full-size charms on 45px cards. */
    width: 21.4cqw;
    height: 21.4cqw;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* Whose card it is. Bottom-left, overhanging the frame, which is where the client
   puts it and is also the only edge left: the gem overhangs top-left, the value
   banner runs across the top, the part icon sits mid-left inside the art, and the
   charm has the top-right corner.

   `contain`, not `cover`, and this is the whole reason it is 4:3 rather than the
   circle the client uses. The render is 512x384 with the axie centred in a lot of
   transparent margin, so a square crop keeps the full height and trims the sides
   — which lands the frame on the body and cuts the head off. Letterboxing the
   whole axie is the one framing that shows an axie at this size.

   Inside the card, not overhanging it: the row is exactly one card tall and
   anything that breaks that line makes the hand look mis-aligned. */
.rp-hcard-who {
    position: absolute;
    /* 1.5x the first cut (owner, 2026-11-01: "increase axie images on cards").
       The render is 512x384 and the axie fills only x 21–84%, y 23–100% of it —
       feet on the bottom edge, a wide clear margin either side — so the box grows
       past the card's left edge and only its EMPTY margin hangs out: the axie
       itself lands 3cqw in from the edge and ends at 32cqw, short of the name
       (`inset … 36%`), its head at ~19% of the card's height, under the tags.
       46cqw x 34.5cqw keeps the 4:3 the comment above argues for. */
    left: -6.4cqw;
    bottom: 2.6cqw;
    width: 46cqw;
    height: 34.5cqw;
    object-fit: contain;
    /* The overhang is transparent, and must not take a hover meant for the
       card beside it. */
    pointer-events: none;
    /* No plate behind it. A filled box at this size reads as a UI chip stuck onto
       the card; the shadow does the same separating job against the panel and
       follows the axie's own silhouette instead of boxing it. */
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.8));
}

/* The name shares the panel with the portrait, so it gives up that corner rather
   than running under it. */
/* Longest name the corpus holds is "Silence Whisper+", which needs two lines in
   the width the portrait leaves. The box is opened a little at the top so two
   lines sit inside the panel rather than riding up over the type tag. */
/* Flush to the panel's right edge, away from the portrait in the left corner.
   `text-align: right` alone did nothing: the name is a lone anonymous flex item
   in a centred flex box, so it shrink-wrapped and centred, and the right edges
   of one row's names wandered by 7px. It only bit once a name wrapped to two
   lines — so the one-line and two-line cases disagreed with each other. */
.rp-hcard.has-owner .rp-hcard-name { inset: 69% 5% 7% 36%; justify-content: flex-end; text-align: right; }

.rp-hcard-charm--none {
    width: auto;
    height: auto;
    font-size: var(--fs-fine);
    line-height: 1;
    color: hsl(var(--win));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Retain: this card is still here next turn -------------------------------
   The glyph, defined once and worn by the mark on a card and by the tag in the
   tooltip, so the two cannot drift. A mask rather than a webfont glyph or a
   duplicated <svg>: it is one declaration, it inherits `currentColor`, and both
   call sites — replay.js for the hand, replay.jte for the loadout — emit a bare
   <i class="rp-retain"> and nothing else.

   The shape is the client's: a line that turns and comes back on itself. */
.rp-retain {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--retain-glyph) center / contain no-repeat;
    mask: var(--retain-glyph) center / contain no-repeat;
}

.rp {
    --retain-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M11.1 1.4c.6 0 1.1.5 1.1 1.1v3.2A3.9 3.9 0 0 1 8.3 9.6H6.5v2.1c0 .7-.8 1-1.3.6l-4-3.3a.8.8 0 0 1 0-1.2l4-3.3c.5-.4 1.3 0 1.3.6v2.1h1.8c.9 0 1.7-.7 1.7-1.7V2.5c0-.6.5-1.1 1.1-1.1z'/%3E%3C/svg%3E");
}

/* Retain, and Keep, as an EMERALD FRAME (owner, 2026-11-01) -----------------
   A card that stays in hand has its cream frame recoloured — the border, the
   ring round the energy gem and the disc behind the part icon. The game does
   this in gold; six colours were drawn on the page side by side (gold,
   emerald, sapphire, silver, amethyst, rose gold) and the owner picked
   emerald, the hue of the game's own green Retain tag. It replaces an
   energy-blue rim light (two `drop-shadow` passes on every retained face, a
   blur re-run on each repaint); the owner asked for it to be cheap.

   What it costs on this page: green is also HEALING here (--mend, the heal
   ribbon), so a retained heal card wears two greens. They are told apart by
   shape — a frame round the whole card against a number in a ribbon — and the
   frame keeps the game's metal shading, which no heal mark has.

   Cheap because it is ONE image for every card. All 401 faces are the client's
   `card-base` render on one frame template: the frame sits on the same pixels
   on every card (spread across the library ~0 there, ~50 over the art). So
   `img/card-frame-retain.webp` (11 KB, built by
   research/replays/tools/card_frame_retain.py) holds just that frame,
   recoloured — the game's gold ramp, measured off its screenshots, moved to
   emerald so the shading stays the game's — and transparent everywhere else; a
   retained card lays it over its face. No filter, no blend mode, no per-card
   copy: one cached image, drawn as a plain background, sized exactly as the
   face is (`contain` on the same box), so the two line up pixel for pixel.

   The strip of top edge a stat ribbon covers is a second, 0.6 KB piece
   (`card-frame-retain-top.webp`), worn only by the 102 faces that print no
   ribbon (`.is-bannerless`, from CardFullArtFiles.NO_BANNER). On the other 299
   that strip IS the ribbon — and on a tool the ribbon is the only place the
   card's figure is printed, so a frame laid across it hid the number (Feather
   Dagger's "5"). `::before` is the card's FIRST child, so every positioned
   thing on the card (stat box, charm, owner, name) still paints above it.

   Retain and Keep get the SAME frame, deliberately. They are different facts —
   Retain is a property of the card, Keep is something a player paid for on one
   record — but they have one consequence, "this card is still here next turn",
   and that consequence is what the hand is being asked. The log line and the
   history rail are where the difference is stated. The classes stay separate so
   they can diverge again without either moving the other. */
.rp {
    /* The ramp's body tone, for the cards that have no frame to recolour. */
    --retain-frame: #3fcf8a;
}

.rp-hcard:not(.is-bare):is(.is-retain, .is-just-kept)::before,
.rp-kit-card.is-retain:has(> .rp-kit-face:not(.rp-kit-face--square))::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("/static/assets/img/card-frame-retain-5da0cb33be996f8d15326b859389df44.webp") center / contain no-repeat;
    pointer-events: none;
}

.rp-hcard.is-bannerless:not(.is-bare):is(.is-retain, .is-just-kept)::before,
.rp-kit-card.is-retain.is-bannerless:has(> .rp-kit-face:not(.rp-kit-face--square))::before {
    background-image: url("/static/assets/img/card-frame-retain-top-26377d807d1b2e7493ef9d2b8e875d84.webp"), url("/static/assets/img/card-frame-retain-5da0cb33be996f8d15326b859389df44.webp");
}

/* A card with no full art: 0.77% of everything ever held. No frame to recolour,
   so its box gets an emerald edge instead — an outline, which paints over the
   square face where an inset shadow would sit under it. */
.rp-hcard.is-bare:is(.is-retain, .is-just-kept),
.rp-kit-card.is-retain .rp-kit-face--square {
    outline: 2px solid var(--retain-frame);
    outline-offset: -2px;
}


/* The cards a player just pressed Keep on. Same frame as Retain, above — see
   the note there for why they are one appearance and two classes. No arrival
   animation: the owner asked for the mark without motion, and a page whose
   whole rule is that a step looks the same arriving forwards or backwards is
   the last place to argue for some. */

/* A card with no full-card art: 24 part keys the library does not ship and the
   three Basic* tools, together 0.77% of everything ever held.

   It is rebuilt to the same shape rather than left as a hole in the row — square
   face on top, name on a tinted panel below, same rounded silhouette. The tint is
   the part's own class, which is the one piece of the real card's identity that
   survives without its art. `--bare` defaults to grey, so a tool with no class at
   all still gets a card and not a white rectangle. */
.rp-hcard.is-bare {
    --bare: var(--c-none-deep);
    border-radius: var(--r-badge);
    overflow: hidden;
    background: var(--bare);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.rp-hcard.is-bare[data-cls="beast"]   { --bare: var(--c-beast-deep); }
.rp-hcard.is-bare[data-cls="bug"]     { --bare: var(--c-bug-deep); }
.rp-hcard.is-bare[data-cls="bird"]    { --bare: var(--c-bird-deep); }
.rp-hcard.is-bare[data-cls="plant"]   { --bare: var(--c-plant-deep); }
.rp-hcard.is-bare[data-cls="aquatic"] { --bare: var(--c-aquatic-deep); }
.rp-hcard.is-bare[data-cls="reptile"] { --bare: var(--c-reptile-deep); }
.rp-hcard.is-bare[data-cls="mech"]    { --bare: var(--c-mech-deep); }
.rp-hcard.is-bare[data-cls="dawn"]    { --bare: var(--c-dawn-deep); }
.rp-hcard.is-bare[data-cls="dusk"]    { --bare: var(--c-dusk-deep); }

/* The face is a 320px square crop of the artwork, so it fills the card's upper
   two thirds the way the real card's art panel does. */
.rp-hcard-face--square {
    height: 69%;
    object-fit: cover;
    object-position: center top;
}

/* White on the class tint, exactly as on a real card, so a bare card reads as the
   same object rather than as an error state. */
.rp-hcard.is-bare .rp-hcard-name {
    inset: 70% 6% 5%;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.rp-hcard.is-bare.has-owner .rp-hcard-name { inset: 70% 6% 5% 36%; justify-content: flex-end; }

/* Nothing at all — no card, no face. Only the three Basic* tools reach this, and
   the name is then the whole card. */
.rp-hcard.is-bare:not(:has(.rp-hcard-face)) .rp-hcard-name { inset: 0; font-size: var(--fs-fine); }

/* Cost and stats, drawn ONLY on a bare card. On a real one they are in the
   picture already. Placed where the art puts them — gem overhanging top-left,
   values along the top — so the two kinds of card read the same way. */
.rp-cost--bare {
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: hsl(var(--spark));
    color: #fff;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-weight: 700;
    line-height: 1;
    box-shadow: var(--lift-1);
}

.rp-hcard-stat {
    position: absolute;
    top: 2px;
    z-index: 1;
    padding: 1px 4px;
    border-radius: var(--r-chip);
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

/* Left to right in the order the real card banners them, each clearing the gem. */
/* The same three sampled banner hues. A bare card is standing in for a printed
   one, so its chips wear what the printed one would have worn. */
.rp-hcard-stat--atk  { left: 21px; background: var(--band-atk); }
.rp-hcard-stat--shd  { left: 21px; background: var(--band-shd); }
.rp-hcard-stat--heal { left: 21px; background: var(--band-heal); }
/* A card that does both banners them side by side, same as the art does. */
.rp-hcard-stat--atk ~ .rp-hcard-stat--shd,
.rp-hcard-stat--atk ~ .rp-hcard-stat--heal,
.rp-hcard-stat--shd ~ .rp-hcard-stat--heal { left: 47px; }

/* Rules text, on hover. It cannot go on the card — the panel is 84px wide and a
   card's text runs to a couple of sentences — so it is the one thing here that
   is revealed rather than shown. Above the card because the hand is the last
   row in the panel and there is nothing below it to open into.

   `display: none` rather than hidden-but-present. A `visibility: hidden` panel is
   still laid out, and an absolutely-positioned one still extends the document's
   scroll box — which it did: at 900px the last card's tip pushed the page 47px
   wider and gave the whole site a horizontal scrollbar. Nothing here fades, so
   nothing here can widen the page while invisible. */
.rp-hcard-tip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + var(--panel-off));
    z-index: 30;
    width: max-content;
    transform: translateX(-50%);
    pointer-events: none;
    /* No surface of its own any more: this is a positioner and the .tt-card
       inside carries the border, background, shadow and entrance. Nor a
       max-width — the item card sizes its two columns itself, and the 250px cap
       that used to live here would now squeeze them both. */
}

.rp-hcard:hover  { transform: translateY(-3px); z-index: 20; }
.rp-hcard:hover .rp-hcard-tip,
.rp-hcard:focus-within .rp-hcard-tip { display: block; }

/* AND ON A PRESS. Three openers, not one, and each answers a different pointer.
   `:hover` is the desktop's and nothing about it is broken. `:focus-within` is the
   keyboard's, and it could never fire on a tap because the card was not focusable
   — measured `tabindex: null`, `focusWithin: false` after a tap that had visibly
   opened the panel. What actually opened it was Chromium's emulated hover, an
   engine heuristic rather than the page's decision: undefined on WebKit, and
   undismissable where it worked (Escape ✗, scroll ✗, a press on the panel ✗ — only
   hovering something else, or pressing a transport button, put it away).

   `.is-open` is the page deciding. replay.js writes it on a `click` — which fires
   on a tap on every engine, and is the idiom the tape's turns, the rail's rows and
   the story's rows already use — and clears it on Escape, on a press outside, on a
   scroll and on any move of the cursor. One panel is open at a time.

   Unconditional, not touch-only: a media-gated `tabindex` would be a second source
   of truth that `paint()` has to re-apply every step and that changes on rotation,
   and it would leave the desktop keyboard user with a panel they still cannot
   reach. The cost is measured rather than feared. Swept step by step over the six
   verification battles at 844x390, the worst step of the worst of them adds 16
   stops and the reference battle 12 — against a page that already has 357 to 1,147
   depending on how long the story is, so between 1.4% and 4.5%. They land in DOM
   order right where a reader would look for them, behind the 8 axie tiles that are
   already stops for the identical reason. */
.rp-hcard.is-open .rp-hcard-tip { display: block; }
.rp-hcard.is-open { z-index: 20; }

/* A card that is a tab stop has to show where the focus is, in the page's one
   focus treatment — the same two lines the axie tile took when it became a stop
   for the identical reason. `:focus-visible`, not `:focus`: a press on a card
   should not leave a ring behind it. */
.rp-hcard:focus, .rp-played:focus { outline: none; }
.rp-hcard:focus-visible,
.rp-played:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 2px; }

/* A POINTER THAT CANNOT HOVER gets the press and nothing else — and this is the
   rule that makes Escape mean anything.
 *
 * Measured, with the class in place and this rule not yet written: a tap opened
 * the panel and Escape cleared `.is-open` and the panel STAYED UP, because a tap
 * leaves an emulated hover behind it and `:hover` was still matching. `:focus-
 * within` does the same thing from the other side — a tap focuses the card and a
 * key press does not un-focus it. Two openers that a phone can switch on and
 * cannot switch off is exactly the undismissable panel this work exists to stop
 * shipping, so where the pointer is coarse they are taken off the panel and the
 * press is the whole mechanism.
 *
 * `(hover: none)` and not a viewport width: it asks the pointer what it can do,
 * which is the only question with a true answer here — the same instinct as
 * "ask the capability, never the mode". A mouse never matches it, so the desktop
 * is untouched, and a hybrid machine reports its primary pointer honestly.
 *
 * `:focus-visible` was tried as a way to keep the keyboard's opener here and it
 * does not survive its own test: measured, a tap left it false — correct — and
 * then PRESSING ESCAPE flipped it true, because a key press is what tells Chrome
 * the interaction has become a keyboard one. The state a dismissal is meant to
 * leave cannot be the state the dismissal creates. So the keyboard reaches these
 * panels the way the role says it should, through the press: replay.js activates
 * them on Enter.
 *
 * SPECIFICITY, once more: `.rp-hcard:hover .rp-hcard-tip` is (0,3,0) and a media
 * query adds nothing, so this needs weight of its own rather than a source-order
 * win. `:not()` carries its argument's, which keeps this at three classes, and the
 * element selector adds the tiebreaker — (0,3,1) against (0,3,0), which holds
 * wherever this rule lands in the file. Both of these are <li>. */
@media (hover: none) {
    li.rp-hcard:not(.is-open) .rp-hcard-tip,
    li.rp-played:not(.is-open) .rp-hcard-tip { display: none; }
}

/* A played card opens the SAME panel. It is the same card, and a reader asking
   "what did that do" wants the same answer wherever they ask it — which on the
   play row is the more common question, because the card is no longer in hand to
   be inspected. The panel adds which play of the turn this was; see
   handCardPanel's `note`.

   No lift on hover, unlike the hand: the live card is already raised and ringed,
   and moving the history would make a row that reads as a fixed sequence twitch
   under the pointer. */
.rp-played:hover,
.rp-played:focus-within,
.rp-played.is-open { z-index: 20; }
.rp-played:hover .rp-hcard-tip,
.rp-played:focus-within .rp-hcard-tip,
.rp-played.is-open .rp-hcard-tip { display: block; }

/* Hovering a history card brings it up to full while it is being read — it is
   dimmed because it is not the subject, not because it is unimportant. A press
   is the same reading, by the pointer that has no hover. */
.rp-played:hover, .rp-played:focus-within, .rp-played.is-open { opacity: 1; }

/* The end cards of a ROW would open off the side of the panel. Both ends, not
   just the right one — the left hand's last card is as close to its edge as the
   right hand's is to the other.

   Row, not `:first-child`/`:last-child`: the hand wraps at five, so those two
   selectors miss cards 5 and 6, which sit at a row edge and got the centred
   treatment — a 250px panel over an 84px card, hanging 51px past the viewport.
   Which cards wrap is a measurement, so paint() marks them. */
.rp-hcard.is-row-start .rp-hcard-tip { left: 0; right: auto; transform: none; }
.rp-hcard.is-row-end   .rp-hcard-tip { left: auto; right: 0; transform: none; }
/* The play row needs it more than the hand does: its items are 44px and the
   panel is ~356px, so an unclamped one hangs 150px past either edge. */
.rp-played.is-row-start .rp-hcard-tip { left: 0; right: auto; transform: none; }
.rp-played.is-row-end   .rp-hcard-tip { left: auto; right: 0; transform: none; }

/* ═════════════════════════════════════════════════════════════════════════
   THE HAND CARD PANEL  (handCardPanel in replay.js)

   The same .tt-card the site draws for a rune, a charm and a status: identity
   left, rules right. Almost everything therefore comes from common.css, and
   what is left here is the three things a CARD has that a rune does not.

   FIRST, class takes the slot rarity holds — the same substitution the status
   panel makes with kind. A card has no rarity, and its class is the categorical
   thing about it the site already colours everywhere else, so it drives
   --tt-rare and with it the glow under the art and the bullet on every line.
   The -deep variants, because --tt-rare is used on small shapes against a light
   surface and the bright ones wash out there.

   SECOND, the face rather than the whole card. The whole card is already on
   screen an inch below — this panel exists because the rules printed on it are
   unreadable at 84px, so reproducing it larger answers a question nobody asked.

   THIRD, the charm gets its own identity inside the rules column, and its own
   --tt-rare from its own rarity. It is a second item socketed into the first,
   not a property of it, and folding it into a line of the card's rules said the
   opposite. Its rarity tokens are the site's four, the ones the charm picker
   and the axie tooltip already use.
   ═════════════════════════════════════════════════════════════════════════ */
/* Scoped for the same reason as `.rp-stip-card`: common.css is linked later and
   `.tt-card` would otherwise win the tie and hand a classless card Common grey. */
.rp-hcard-tip .rp-hcard-card { --tt-rare: var(--c-none-deep); }

.rp-hcard-card[data-cls="beast"]   { --tt-rare: var(--c-beast-deep); }
.rp-hcard-card[data-cls="bug"]     { --tt-rare: var(--c-bug-deep); }
.rp-hcard-card[data-cls="bird"]    { --tt-rare: var(--c-bird-deep); }
.rp-hcard-card[data-cls="plant"]   { --tt-rare: var(--c-plant-deep); }
.rp-hcard-card[data-cls="aquatic"] { --tt-rare: var(--c-aquatic-deep); }
.rp-hcard-card[data-cls="reptile"] { --tt-rare: var(--c-reptile-deep); }
.rp-hcard-card[data-cls="mech"]    { --tt-rare: var(--c-mech-deep); }
.rp-hcard-card[data-cls="dawn"]    { --tt-rare: var(--c-dawn-deep); }
.rp-hcard-card[data-cls="dusk"]    { --tt-rare: var(--c-dusk-deep); }

/* The face is a square illustration where a rune's gem is a shape on nothing, so
   it takes a corner rather than floating — the same treatment a borrowed card
   face gets in the status panel. Scoped, because `object-fit` is a property
   `.tt-art` also sets and common.css is the later stylesheet. */
.rp-hcard-tip .rp-hcard-art {
    border-radius: 6px;
    object-fit: cover;
}

/* What kind of card it is — a melee attack, a ranged attack, a skill, a secret,
   a power. First in the cap row and in full ink, because it is the question the
   rest of the panel answers the details of, and because the only other place the
   page could say it is the tag baked into the picture: 3.9px of lettering, and
   wrong on every card the art library is stale about. It is deliberately NOT
   chipped like `.tt-kw` beside it — a keyword is a mechanic the card invokes and
   this is what the card IS, so they must not read as two of the same thing. */
.rp-hcard-kind {
    color: var(--tt-ink);
    font-weight: 700;
}

/* Whose card it is. Named -owner and not -who: `.rp-hcard-who` is already taken,
   by the axie PORTRAIT on the card itself, and styling that as a line of text
   would have shrunk and re-centred a 15px image. */
.rp-hcard-owner {
    display: block;
    margin-top: -0.25rem;
    text-align: center;
    color: var(--tt-ink-quiet);
    font-size: 0.86em;
}

/* The tooltip is the one surface with room for the WORD. On the card the tag
   would have to be 26px wide with 4px lettering — the size the baked one already
   is, and unreadable at it — so the card gets the glyph and this gets the word.

   Outlined and in the panel's own quiet ink rather than a colour: the healing
   sums below are set in --mend, and a green chip here would be the same green
   saying something else. */
/* What a keyword means, said beside it in the sheet's cap row — the sheet takes
   no pointer, so a hover note there would never open. */
.tt-kw-gloss {
    margin-inline-start: 4px;
    font-size: 0.86em;
    font-style: italic;
    color: var(--tt-ink-quiet, var(--bulma-text-weak));
}

.rp-hcard-retain {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--tt-ink);
    font-weight: 700;
}

.rp-hcard-retain .rp-retain { font-size: 1em; }

/* ── the charm, as a second item ─────────────────────────────────────────── */
.rp-hcard-charm-block {
    --tt-rare: var(--common-color, #747474);
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--tt-line);
}

.rp-hcard-charm-block[data-rarity="Common"] { --tt-rare: var(--common-color, #747474); }
.rp-hcard-charm-block[data-rarity="Rare"]   { --tt-rare: var(--rare-color,   #62c36c); }
.rp-hcard-charm-block[data-rarity="Epic"]   { --tt-rare: var(--epic-color,   #5dbdc8); }
.rp-hcard-charm-block[data-rarity="Mystic"] { --tt-rare: var(--mystic-color, #a453f6); }

.rp-hcard-charm-head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

/* The rarity twice: on the art as the glow the site puts there anyway, and on
   the name as ink. One of them is easy to miss at 30px. */
.rp-hcard-charm-art {
    width: 30px;
    height: 30px;
    flex: none;
    object-fit: contain;
    filter: drop-shadow(0 0 2px var(--tt-rare));
}

.rp-hcard-charm-id {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rp-hcard-charm-name {
    font-weight: 700;
    line-height: 1.25;
    color: color-mix(in srgb, var(--tt-rare) 70%, var(--tt-ink));
}

.rp-hcard-charm-rarity {
    align-self: flex-start;
    padding: 0 5px;
    border-radius: 999px;
    border: 1px solid var(--tt-rare);
    font-family: var(--mono);
    font-size: 0.78em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--tt-rare) 70%, var(--tt-ink));
}

/* What it attaches to, in the same words tooltip/charm.jte uses for it. */
.rp-hcard-charm-alters {
    color: var(--tt-ink-quiet);
    font-size: 0.92em;
}

.rp-hcard-charm-alters b {
    color: var(--tt-ink);
    font-weight: 700;
}

/* What the charm did to the numbers, as arithmetic ----------------------
   The printed value is kept beside the effective one rather than replaced:
   both are true and both are worth reading. 17 is what the card's picture
   says; 21 is what it lands for. */
.rp-hcard-tip-sums {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 7px;
}

.rp-hcard-sum {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-variant-numeric: tabular-nums;
}

.rp-hcard-sum-k {
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    color: var(--bulma-text-weak);
}

/* The old number is struck rather than dropped: seeing what it WAS is how you
   see what the charm is worth. */
.rp-hcard-sum-was {
    color: var(--bulma-text-weak);
    text-decoration: line-through;
    opacity: 0.75;
}

.rp-hcard-sum-arrow { color: var(--bulma-text-weak); opacity: 0.6; }

.rp-hcard-sum-now { font-weight: 700; }
.rp-hcard-sum[data-kind="hit"]   .rp-hcard-sum-now { color: hsl(var(--hit)); }
.rp-hcard-sum[data-kind="ward"]  .rp-hcard-sum-now { color: hsl(var(--ward)); }
.rp-hcard-sum[data-kind="mend"]  .rp-hcard-sum-now { color: hsl(var(--mend)); }
.rp-hcard-sum[data-kind="spark"] .rp-hcard-sum-now { color: hsl(var(--spark)); }

@media (prefers-reduced-motion: reduce) {
    .rp-hcard, .rp-hcard-tip { transition: none; }
    .rp-hcard:hover { transform: none; }
}

/* Piles --------------------------------------------------------------------
   draw / discard / banish, one set per player, the way the game keeps them in
   its corners. 18.9% of step transitions move one of these six numbers and
   nothing else on the field moves with them, so before this row the commonest
   event in the log — CardMove, 18,917 of 112,135 corpus steps — left the board
   looking identical before and after.

   ABOVE the hand rather than beside it. A hand runs 0 to 10 chips (measured
   across 224,270 player-samples) and the strip wraps, so anything placed below
   it walks up and down the page while you scrub, and a readout you have to
   chase is not a readout.

   Named as well as drawn. The game can get away with three bare icons because
   its whole UI is that vocabulary; this page carries no other game art, so a
   card glyph on its own would have nothing to be read against. There is also no
   card-back or banish-pot art in the extracted asset library to borrow — the
   glyphs below are drawn in CSS from currentColor, which also means they follow
   the theme and the emphasis for free. */
/* The piles ---------------------------------------------------------------
   Four places a card can be that is not the hand or the board, drawn the way
   the game draws them: a stack you can see the size of, with the count under
   it. It was a row of word-and-number chips, which read as four labels rather
   than as four stacks.

   EXILE is new. CardPile.REMOVAL takes 3,477 cards across the corpus in 145 of
   150 battles — the third busiest destination after the hand and the discard —
   and had no column only because nothing had asked for one.

   Drawn in CSS, not shipped as art: the game's own deck and urn sprites are not
   in the asset mirror (they live in the Unity bundle, not the addressable dirs),
   and four rectangles are not worth a binary even if they were. */
.rp-piles {
    display: flex;
    align-items: flex-end;
    gap: var(--sp-3);
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.rp-pile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    /* The lower half of the count, which overhangs the object's foot (see
       `.rp-pile-n`), so neighbouring rows never meet it. */
    padding-bottom: 9px;
    min-width: 42px;
    cursor: default;
}
/* The name stays for screen readers and goes from the board: the game names
   none of its piles, the four objects differ at a glance, and the tooltip each
   one opens names it in full ("14 in the discard") with every card in it. */
.rp-pile-k {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Energy, sitting with the piles. It is the same kind of fact as the four of
   them — what this player has left to spend — and this is where a reader looks
   for those together. It keeps its own orb rather than being redrawn as a
   stack, because it is a gauge and they are counts: the ring IS the burst meter
   and no rectangle can say that.

   Separated by a rule rather than a gap, so the row still reads as "energy, then
   the piles" and not as five piles one of which is round. */
.rp-pile--nrg {
    /* The wheel, and its fragment badge under it where the other piles have their caption. */
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding-bottom: 0;
    padding-inline-end: var(--sp-3);
    margin-inline-end: var(--sp-1);
    border-inline-end: 1px solid var(--rail);
}
/* The whole row mirrors, like everything else on the right-hand side, so energy
   ends up against that team's OUTER edge and the piles read inwards from it —
   the same direction the rest of that side reads.

   AND `flex-start` IS WHAT MIRRORS IT, which is the trap this rule was in for as
   long as it existed. In a `row-reverse` row main-start is the RIGHT edge, so
   `flex-end` — the value the hand and the plays row both use to mirror, because
   those rows are not reversed — packs this one against the LEFT. That is the
   INNER edge on this side, and it is what shipped: measured at 1440x900 the
   right orb sat at x 1141 in a column running to 1374, and on a landscape phone
   at 684.5 of 905, while the left team's orb was hard against its own outer edge.
   The two resource rows were the one paired thing on this page that was not a
   mirror image. Stated rather than left to the default, because the default
   being right here is exactly what made the wrong value look deliberate. */
.rp-side--right .rp-piles { flex-direction: row-reverse; justify-content: flex-start; }

/* And the orb is the outermost thing in the row on BOTH sides: the rule that
   divides energy from the piles moves to this side's inner edge with it. (The
   wheel and its badge stack, so there is no pair inside to mirror — except on
   a landscape phone, where they sit side by side again; see there.) */
.rp-side--right .rp-pile--nrg {
    padding-inline-end: 0;
    padding-inline-start: var(--sp-3);
    margin-inline-end: 0;
    margin-inline-start: var(--sp-1);
    border-inline-end: 0;
    border-inline-start: 1px solid var(--rail);
}

/* THE PILES AS THE GAME DRAWS THEM (owner, 2026-11-01: "rework piles… look at
   how it looks in the game and make something similar"). Read off the 9c06be59
   recording: the game's tray is OBJECTS, not outlines — the draw pile an orange
   card back with a gold emblem, the discard the same back faded to dusty mauve,
   the out-of-battle pile a ceramic urn with a purple glow in its mouth — and the
   count is the loudest thing there, heavy white digits with a dark rim set over
   the object's foot. No captions.

   Drawn for this site, from scratch (img/pile/*.svg, ~1 KB each, fingerprinted
   like every other asset): none of the game's art is shipped, and its tray
   sprites are not in the asset mirror anyway. The emblem is our own diamond.

   FOUR objects where the game has three. Its one urn counts banish AND exile
   together — checked against the recording at 45s, where the player's urn
   reads 3 with 0 banished + 3 exiled and the opponent's 1 with 1 + 0, and only
   the sum fits both. The page keeps them apart, as it always has, so exile is
   that same urn as a ghost — pale, outline broken, glow low — because what is
   exiled can come back (95 of 3,477 do) and what is banished essentially never
   does (16 of 1,119). */
.rp-pile-art {
    width: 34px;
    height: 44px;
    background: center bottom / contain no-repeat;
    transition: transform var(--ease-state), filter var(--ease-state);
}
.rp-pile[data-pile="draw"] .rp-pile-art { background-image: url("/static/assets/img/pile/draw-ab996c8f3661cf769f9003c37f9870a2.svg"); }
.rp-pile[data-pile="discard"] .rp-pile-art { background-image: url("/static/assets/img/pile/discard-787533bd258429fa65f532a4c3303086.svg"); }
.rp-pile[data-pile="banish"] .rp-pile-art { background-image: url("/static/assets/img/pile/banish-6b8b94093befbd1be56a7e39c4f65ade.svg"); }
.rp-pile[data-pile="exile"] .rp-pile-art { background-image: url("/static/assets/img/pile/exile-cb00c44cc0dc21e55e5731af807a35e1.svg"); }
/* The urn is as tall as a card and a little wider, as in the game's tray. */
.rp-pile:is([data-pile="banish"], [data-pile="exile"]) .rp-pile-art { width: 42px; }

/* An empty pile is drawn, not hidden: "0 in the banish" is a fact about the
   battle and a missing object would read as a page that does not track it. */
.rp-pile.is-empty .rp-pile-art { opacity: 0.42; }

/* The count, as the game sets it: heavy white digits with a dark rim, over the
   object's foot — the rim is what lets white stand on an orange card, a white
   urn and the light theme's white page alike. A text-shadow ring rather than
   `-webkit-text-stroke`, which eats into the glyphs instead of framing them. */
.rp-pile-n {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    font-family: var(--bulma-family-primary, system-ui, sans-serif);
    font-size: calc(var(--fs-loud) * 1.12);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    pointer-events: none;
    --rim: #1b1411;
    text-shadow:
        1.5px 0 0 var(--rim), -1.5px 0 0 var(--rim), 0 1.5px 0 var(--rim), 0 -1.5px 0 var(--rim),
        1px 1px 0 var(--rim), -1px -1px 0 var(--rim), 1px -1px 0 var(--rim), -1px 1px 0 var(--rim),
        0 2.5px 1px rgba(0, 0, 0, 0.45);
}
.rp-pile.is-empty .rp-pile-n { opacity: 0.85; }

/* Something moved into or out of this pile on this step. Neutral: a card
   leaving the draw is neither harm nor help, and this page spends colour only
   where it reports one of those — so the object lifts and brightens, no hue. */
.rp-pile.is-moved .rp-pile-art {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

/* What is actually in it — the site's plain bubble, `.tt-note` in common.css.

   Not the item card the status and hand panels use: a pile is an INVENTORY, not
   an item, and it has no art, no rarity and no rules to lay out in two columns.
   `.tt-note` is exactly the shape the site already keeps for that case — the same
   surface, border, shadow and entrance as the card, and nothing else — so a
   tooltip reads as a tooltip whatever it happens to be carrying.

   `display: none` until hover rather than visibility/opacity: an absolutely-
   positioned hidden element is still laid out, and this one sits inside a 208px
   column — the hand tooltip made exactly that mistake and gave the whole site a
   horizontal scrollbar. */
.rp-pile-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + var(--panel-off));
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: max-content;
    pointer-events: none;
}
.rp-pile:hover .rp-pile-tip,
.rp-pile:focus-within .rp-pile-tip,
.rp-pile.is-open .rp-pile-tip { display: block; }

/* AND ON A PRESS — the last surface on this page still holding the contract the
   played card had before it was fixed: a tap opened it (via the engine's emulated
   hover, which is the engine's decision and not the page's) and nothing a reader
   would think of closed it. The pile was never focusable either, so
   `:focus-within` could not fire on a tap any more than it could on the card.

   So it joins the same matrix as the cards and the loadout: replay.js gives every
   pile that HAS a tooltip `tabindex="0"` and `role="button"`, writes `.is-open` on
   a click, and clears it on Escape, on a press outside, on a scroll and on any move
   of the cursor. Where the pointer cannot hover the two openers it cannot switch
   off come off, for the reason the card's panel records in full: a tap leaves an
   emulated hover behind it and focuses the element, so Escape would clear the class
   and leave the panel standing.

   `li` for the tiebreaker again — `.rp-pile:hover .rp-pile-tip` is (0,2,0), and
   `:not()` carrying its argument's weight makes this (0,3,1). The energy orb is not
   in this: it has no tooltip, so it gets no tab stop and no press. */
@media (hover: none) {
    li.rp-pile:not(.is-open) .rp-pile-tip { display: none; }
}
/* An OPEN list takes the finger. The panel is `pointer-events: none` so a hover
   never sticks on it, and that also made a reshuffled thirty-card discard
   unscrollable: a drag on the list went straight through it to the board, so the
   scrollbar showed and nothing moved (the owner, on a phone, 2026-10-31). Opened
   by a press, it is something the reader is using; a press inside it is already
   exempt from closing it (IN_PANEL in replay.js). */
.rp-pile.is-open .rp-pile-tip { pointer-events: auto; }
.rp-pile:focus { outline: none; }
.rp-pile:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 2px; }

/* The end piles would open off the panel; both ends, since the strip sits in
   the left column on one side and the right on the other. */
.rp-pile:first-child .rp-pile-tip { left: 0; transform: none; }
.rp-pile:last-child .rp-pile-tip { left: auto; right: 0; transform: none; }

/* A list, so it reads left rather than centred, and it sets its own width: a
   note's measure is tuned for a sentence and a card name is not one.

   Scoped under the positioner, and that is not decoration. common.css is linked
   AFTER replay.css, so a bare `.rp-pile-note` ties with `.tt-note` on specificity
   and LOSES on source order — which is exactly what happened: the width applied
   (it is a property `.tt-note` does not set) and `text-align: start` silently did
   not, leaving the caption centred over a left-aligned list. Every override of a
   `.tt-*` rule on this page needs the extra class for the same reason. */
.rp-pile-tip .rp-pile-note {
    max-width: none;
    width: clamp(150px, 22vw, 200px);
    text-align: start;
}

/* The count, in the caption row the item card gives to "Alters any card". Kept
   mono and upper — it is a label for the list under it, not prose. */
.rp-pile-tip .rp-pile-cap {
    font-family: var(--mono);
    font-size: 0.86em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.rp-pile-tip-none {
    color: var(--tt-ink-quiet);
    font-style: italic;
}

.rp-pile-tip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* A reshuffled discard can hold thirty; the panel scrolls rather than
       running off the top of the page. */
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rp-pile-tip-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

/* The slot is held whether or not the card has a face, so the names stay in one
   column instead of ragging around the gaps. */
.rp-pile-tip-face {
    flex: none;
    width: 18px;
    height: 18px;
}

.rp-pile-tip-face img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 3px;
}

.rp-pile-tip-name {
    min-width: 0;
    color: var(--tt-ink);
}

.rp-pile-tip-times {
    margin-inline-start: auto;
    padding-inline-start: 4px;
    font-family: var(--mono);
    font-size: 0.86em;
    font-variant-numeric: tabular-nums;
    color: var(--tt-ink-quiet);
}

/* Axie card ---------------------------------------------------------------- */
.rp-axie {
    position: relative;             /* the pop is positioned against the tile */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--rail);
    border-radius: var(--r-card);
    background: var(--bulma-scheme-main-bis);
    /* No class colour on the edge any more (owner, 2026-10-31): the class crest in
       the tile's corner already names the class, and a 3px stripe in its hue was
       the same fact said twice — loudest of all beside the frame that now says
       what landed (`data-landed`). One quiet rail all round, on both sides. */
    /* filter: the light theme's owner spotlight greys the other tiles out. */
    transition: opacity var(--ease-state), filter var(--ease-state);
}

.rp-axie.is-down { opacity: 0.42; }

/* THE SUMMON'S TILE ---------------------------------------------------------
   The axie tile's shape and size, one notch quieter, standing in the position
   the wire says it stands in. It is HERE, under the rule above rather than with
   the formation it belongs to, because that rule sets the border in a shorthand
   and an override has to come after it. A dashed edge declared fifty lines
   earlier is a solid edge.

   Two changes and they are the whole design:

   DASHED, which is not a new vocabulary — it is the vacant position's own
   drawing, kept. A unit arrived inside a place that was empty, and the edge says
   so.

   HATCHED BAR. A 34-point bar beside a 471-point one is read as a comparison it
   cannot support, and that objection is real enough that a whole candidate was
   built around removing the bar. The bar stays — "is it about to die" is the
   question a reader has of a unit that loses 8 HP a turn by its own rules — and
   the hatch is what makes it honest: the length still says how much is left, the
   texture says it is a different pool. A texture and not a hue, because the only
   hues on this page are the reported quantities. */
.rp-summon,
.rp-side--right .rp-summon { border-style: dashed; }

.rp-summon .rp-hp-fill {
    background-image: repeating-linear-gradient(135deg,
        rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, 0.28) 3px 6px);
}

/* Arrival, on exactly the step the unit arrives at — the kill mark's own rule
   read the other way round. paint() clears it and re-adds it only while the
   cursor stands on `bornAt`, so what is on screen is a function of where the
   cursor is and not of how it got there or how long it has been there: landing
   on the birth from either direction plays the same arrival, and scrubbing
   through a hundred steps of a standing Mavis plays nothing. --rp-beat-derived,
   so 4x cuts it at the same fraction of its curve that 1x does. */
.rp-summon.is-born {
    animation: rp-summon-in calc(var(--rp-beat, 220ms) * 1.25) cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

@keyframes rp-summon-in {
    from { transform: scale(0.82); opacity: 0; }
    60%  { opacity: 1; }
    to   { transform: none; opacity: 1; }
}

/* A transform on an ancestor makes that ancestor the containing block for a
   fixed descendant, and this tile's panel goes fixed on a narrow screen — the
   trap the played card's entrance recorded. While the panel is open the unit
   simply arrives. */
.rp-summon.is-born:hover,
.rp-summon.is-born:focus-within,
.rp-summon.is-born.is-open { animation: none; }

@media (prefers-reduced-motion: reduce) {
    .rp-summon.is-born { animation: none; }
}

/* What this step did, on the tile it did it to -----------------------------
   Mono and tabular, like every other measured number on the page. Reuses the
   three hues the log already spends — damage, healing, shield — and adds no
   fourth: a max-HP change is the Blood Moon clock far more often than not, so
   it stays deliberately quiet rather than competing with a hit.

   ---- it outlives its step now ----
   It used to be cleared on the very next repaint, which meant a hit was on screen
   for one beat: 220ms at x1, and a quarter of that at x4. The number a reader is
   actually watching for was the shortest-lived thing on the board, and at any
   speed above x1 it was a flicker.

   So it is given a LIFE instead: it arrives, holds, and fades on its own clock,
   about 2.2 seconds, which is ten steps at x1 and long enough to read at every
   speed. (It was 1.3 seconds and six steps until 2026-10-31, when the owner found
   the numbers gone before they had been read.) What that costs is a weaker version of this page's central rule, and the
   weakening is worth stating exactly. The rule is that the board is a function of
   the cursor and not of how you got there. That still holds for every RESTING
   state: leave the cursor anywhere for a second and a half and the tiles are
   identical whichever direction you arrived from, because the life always ends at
   nothing. What differs, and only while it is running, is a number fading out of
   the step you just left. That is a transient, it is the same transient in both
   directions, and it is the one thing on the board that is about the moment rather
   than about the position.

   Everything else stays as it was: the value is painted from the cursor, never
   accumulated. (Until 2026-11-06 a second hit on the same tile restarted the
   life rather than queueing behind it; each number is its own item now, in a
   column — see below.) */
/* Below the badge strip, and on the tile's INNER corner on both sides.
   It used to sit at top: 4px, which was the free corner until the strip moved
   to the top of the tile — after that a three-digit number overlapped the fifth
   badge by 17px. And it was the one corner element with no `.rp-side--right`
   mirror, so on the right team it landed at the outer corner, which is exactly
   where the rune sits; the rune has z-index 1 and the pop does not, so the disc
   painted over the number. It now hangs off the top of `.rp-axie-body`, which puts
   it on the art's lower corner: any offset measured from the TILE's top is wrong,
   because the badge strip wraps to a second row at six badges and a value that
   clears one row lands squarely on the other. Measured 173 pops across a whole
   battle for a collision with the strip, the rune or the class crest. */
/* A COLUMN since 2026-11-06 (owner: "if several appear, show them sequentially in a column"). The span is
   the column; each number is its own `.rp-pop-n`, appended at the bottom — nearest the art — with its own
   life, so a six-hit attack stands as six numbers rather than one restarted six times, and none of them is
   cut short by the next. The column hangs from the same anchor, so it grows upward over the art's corner. */
.rp-pop {
    position: absolute;
    bottom: calc(100% + 2px);
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-family: var(--mono);
    /* The top of the scale, and the one thing on the page that stands there. This
       is the single most-read number on the board; it climbed once from body to
       --fs-loud and was still the quietest thing at the moment of impact — a
       47-point hit whispered from a corner while the beam and the knock shouted.
       It hangs off the tile rather than sitting in it, so the size costs no
       layout. A max-HP change stays at body size below — the Blood Moon clock is
       not a hit and must not read like one. */
    font-size: var(--fs-shout);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    /* Above the tile's own art: the number grew, and a hit figure half-hidden
       behind the axie it describes is the old problem at a new size. */
    z-index: 3;
    text-shadow: 0 0 3px var(--bulma-scheme-main), 0 0 3px var(--bulma-scheme-main),
                 0 0 6px var(--bulma-scheme-main);
}

.rp-side--right .rp-pop { inset-inline-end: auto; inset-inline-start: 0; align-items: flex-start; }

/* One number: the picture of what caused it, then the figure. The figure stays on the corner the column
   hangs from and the picture sits on its inner side, so on the right-hand team the pair is mirrored.
   Nothing shows without its life running; the item removes itself when the life ends. */
.rp-pop-n {
    display: inline-flex;
    align-items: center;
    gap: 0.14em;
    opacity: 0;
    white-space: nowrap;
}
.rp-side--right .rp-pop-n { flex-direction: row-reverse; }

.rp-pop-n[data-kind="hit"]  { color: hsl(var(--hit)); }
.rp-pop-n[data-kind="mend"] { color: hsl(var(--mend)); }
.rp-pop-n[data-kind="ward"] { color: hsl(var(--ward)); }
.rp-pop-n[data-kind="max"]  { color: var(--bulma-text-weak); font-weight: 600; font-size: var(--fs-base); }

/* The source, beside its number (owner, 2026-11-06): the same picture the rail and the receipt give a cause —
   a status's icon, a rune's gem, the face of the card or of the summon that did it. Sized to the figure, with
   the figure's halo, because it stands over the same art. */
.rp-pop-src {
    flex: none;
    width: 0.78em;
    height: 0.78em;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 1.5px var(--bulma-scheme-main)) drop-shadow(0 0 1.5px var(--bulma-scheme-main));
}
.rp-pop-src.is-face {
    object-fit: cover;
    border-radius: 0.12em;
    box-shadow: 0 0 0 1px rgb(from var(--bulma-text) r g b / 0.3);
}
/* The lettered token, for a cause no picture exists for, at the figure's scale. */
.rp-pop-n .rp-hist-why-none {
    width: 0.78em;
    height: 0.78em;
    font-size: 0.42em;
    text-shadow: none;
}

/* The life, shared by the pop and the death mark below it, because the two land
   on the same tile on the same step and must leave it together.

   Beat-derived with a floor rather than beat-derived outright, which is the one
   place this page departs from "scale the animation by the playback speed". Every
   other animation here is an ARRIVAL that has to finish before the next step; this
   one is a reading, and a reader at x4 needs the number for just as long as a
   reader at x1 — longer, if anything. So it lives about 2.2s at x1, holds for 80%
   of that, and never drops below 2s. */
.rp {
    /* A constant since 2026-11-06 (owner: "the numbers should always remain on the screen for the same amount
       of time; the display time during playback is too short"). It was beat-derived with a 2s floor, and the
       number that came next restarted it; with each number its own item, a fixed life is what every one of
       them gets, at any speed. replay.js removes the item on `animationend` and holds a timer as a backstop. */
    --rp-life: 3000ms;
}

.rp-pop-n.is-live {
    animation: rp-pop-life var(--rp-life) cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
}

/* Rises as it goes, which is the one thing that keeps two hits on one tile from
   reading as a single number changing: the second starts low and small again. */
@keyframes rp-pop-life {
    0%   { opacity: 0; transform: translateY(5px) scale(0.72); }
    10%  { opacity: 1; transform: translateY(0) scale(1.2); }
    14%  { opacity: 1; transform: translateY(-1px) scale(1); }
    80%  { opacity: 1; transform: translateY(-3px) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(1); }
}

/* Reduced motion keeps the LIFE and drops the movement — the number still has to
   go away by itself, or it would stand on the tile for the rest of the battle. */
@keyframes rp-pop-still {
    0%, 80% { opacity: 1; }
    100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-pop-n.is-live { animation-name: rp-pop-still; }
}

/* The death, on the tile it happened to -----------------------------------
   `.is-down` has always been the resting state — the tile fades to 0.42 and
   stays there — and there has never been a moment that SAID so. This is that
   moment: the announcement, not the state.

   Anchored exactly like the pop, off the top of `.rp-axie-body`, and at the
   opposite end of it. That is the whole collision argument: the pop is the hit's
   own figure and this is what the hit caused, so on the killing step both are on
   screen at once, on one line, at the two ends of a 133px content box that the
   widest measured pop leaves 100px of. Any offset measured from the TILE's top
   would land on the badge strip, which wraps to a second row at six badges.

   Hidden by having nothing to show rather than by display:none, so the geometry
   is settled before the mark ever arrives. */
.rp-kill {
    position: absolute;
    bottom: calc(100% + 2px);
    inset-inline-start: 0;
    font-size: var(--fs-lead);
    font-weight: 700;
    line-height: 1;
    color: hsl(var(--hit));
    pointer-events: none;
    opacity: 0;
    /* The same halo the pop wears, because it sits over the same art. */
    text-shadow: 0 0 3px var(--bulma-scheme-main), 0 0 3px var(--bulma-scheme-main);
}

/* Mirrored with the pop it shares a line with: the pop moves to the inner edge
   on the right-hand side, so this has to move to the outer one or the two would
   land on top of each other on half the board. */
.rp-side--right .rp-kill { inset-inline-start: auto; inset-inline-end: 0; }

/* Painted from the cursor, and it lives exactly as long as the pop does — the two
   are on screen together on the killing step and they have to leave together, or
   the mark would outlast the number that explains it. Same --rp-life, same
   argument about what that costs (see the pop). The arrival is unchanged: it lands
   hard, holds, and then goes. */
.rp-kill.is-struck {
    animation: rp-kill-life var(--rp-life) cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

@keyframes rp-kill-life {
    0%   { transform: scale(2.1); opacity: 0; }
    8%   { opacity: 1; }
    12%  { transform: none; opacity: 1; }
    80%  { transform: none; opacity: 1; }
    100% { transform: none; opacity: 0; }
}

@keyframes rp-kill-still {
    0%, 80% { opacity: 1; }
    100%    { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-kill.is-struck { animation-name: rp-kill-still; }
}

/* The axie's class, beside its name --------------------------------------
   The tile's edge already carries the class as a colour, but a colour has
   to be learnt; the crest is the same fact stated. Boxed with object-fit
   like every other icon here, because the class art is not all square. */
.rp-class {
    position: absolute;
    bottom: -6px;
    inset-inline-start: -6px;
    width: 15px;
    height: 15px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bulma-scheme-main);
    box-shadow: 0 0 0 1px var(--rail);
    z-index: 1;
}

.rp-side--right .rp-class {
    inset-inline-start: auto;
    inset-inline-end: -6px;
}

/* The rune, above the axie ------------------------------------------------
   Where the client puts it, and for the same reason: it is the one piece of
   loadout you want to read without opening anything. It is pinned to the
   tile's top-OUTER corner so it mirrors with the sides and never collides
   with the pop, which uses the inner one.

   Loadout, not state: it is server-rendered once and paint() never touches
   it, so it costs nothing per step. */
.rp-rune {
    position: absolute;
    top: -7px;
    inset-inline-start: -7px;
    display: grid;
    justify-items: center;
    z-index: 1;
}

.rp-rune-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bulma-scheme-main);
    box-shadow: 0 0 0 1px var(--rail);
    display: block;
}

/* Level, as the SITE marks it — `.badge-container` / `.badge` / `.star-N` from
   common.css, the same component and the same per-rarity star art that
   `component/renderRune.jte` draws everywhere else. This page used to invent
   three grey dots instead: they said the number, but in a vocabulary only this
   page spoke, and they threw away the rarity that every other rune on the site
   is coloured by.

   Only the SIZE is overridden. The shared rule sizes stars at
   `clamp(3px, 1vw, 9px)`, which is right beside a full rune tile and is 27px of
   stars under a 22px gem here — wider than the thing it labels. Fixed at 5px,
   because this gem is a fixed 22px and has no reason to track the viewport. */
.rp-rune-badge {
    margin-top: -2px;
    padding-left: 2px;
    padding-right: 2px;
    line-height: 0;
}

/* `.badge` is a div in the shared component and a span here, inside `.rp-rune`'s
   phrasing content — so it needs the display the element does not bring. */
.rp-rune-badge .badge {
    display: block;
    height: 5px;
    background-size: 5px 5px;
    background-repeat: repeat-x;
}
.rp-rune-badge .badge.star-1 { width: 5px; }
.rp-rune-badge .badge.star-2 { width: 10px; }
.rp-rune-badge .badge.star-3 { width: 15px; }

.rp-side--right .rp-rune {
    inset-inline-start: auto;
    inset-inline-end: -7px;
}

/* ═════════════════════════════════════════════════════════════════════════
   THE CARDS PLAYED THIS TURN  (the `plays` block in paint())

   This used to be one card: the card of the record you were standing on, drawn
   at 96px above the hand and hidden otherwise. Two things were wrong with it.

   It looked exactly like a held card — same art, same frame, same baked gem —
   so the only thing saying "this one is being played" was that it sat 8px
   higher than the others. Position alone cannot carry a state.

   And it showed one card when a turn plays 4.03 on average. The shape of a
   turn — what was set up, in what order, and what it was all for — was
   invisible unless you scrubbed the turn twice and remembered.

   So: the whole turn's plays, in the order they happened, LIFTED OUT of the
   hand below them rather than floating over it. The row is history up to the
   cursor and never past it, because a card the turn has not played yet is a
   spoiler; it grows as you step, which is also what gives the ordinal meaning.

   Two sizes, and the difference is state rather than decoration: the card still
   resolving is at hand width and lit, everything before it is a 44px thumbnail
   at half opacity. Earlier cards are history and read as history.
   ═════════════════════════════════════════════════════════════════════════ */
/* The row and the receipt beside it, as one box — and THE box is where the
   height is reserved.

   One live card tall, held whether or not the turn has played anything, because
   the hand beneath it must not walk up and down while you scrub: 42.2% of
   records play nothing, and the page already settled this argument for the pile
   counters. The reserve used to sit on `.rp-plays`; it moved up here the moment
   something else joined the row, or the page would reserve 130px twice and the
   hand would drop by a whole card the first time a receipt appeared.

   Mirrored rather than tinted, like everything else that tells the two sides
   apart: the cards run out from the outer edge on both, so the receipt always
   lands on the inner one. */
.rp-turnbox {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    margin: 8px 0 0;
    /* The live card's own height, stated as the card's own arithmetic instead of
       the 130 it was rounded to. At 130 the box measured 130 with nothing in play
       and 130.046875 with a card in it, because a card is 84px of a 456x706 face
       — so the hand under it moved by a twentieth of a pixel every time a turn
       started. Invisible, and still the reserve failing at the one job it has. */
    min-height: calc(84px * 706 / 456);
}

.rp-side--right .rp-turnbox { flex-direction: row-reverse; }

/* On the stage viewports the live card and the receipt stand between the
   boards, so the box only ever holds 44px thumbnails: the reserve comes down
   to a thumbnail's height and the hand under it still cannot walk. AFTER the
   base rule on purpose — a media query adds no specificity, and this override
   placed before it simply lost. */
@media (min-width: 721px) and (min-height: 541px) {
    .rp-turnbox { min-height: calc(44px * 706 / 456); }
}

.rp-plays {
    display: flex;
    /* Bottom-aligned inside a box that is now taller than the row: the cards
       stand on the floor of the reserve, where they have always stood, and the
       receipt hangs from its ceiling. */
    align-items: flex-end;
    align-self: stretch;
    /* Takes the width the receipt does not, and shrinks rather than wraps — but never below what its
       own items need. `min-width: 0` let it shrink to nothing while its contents kept their size, so
       between 721px and ~800px of viewport (a two-column field on a narrow window) the cards ran
       backwards out of the row and 38px of them printed over the receipt. `min-content` is the row
       asking for exactly what the fold chip, four minimum thumbnails and the live card measure. */
    flex: 1 1 auto;
    min-width: min-content;
    /* ONE row, always. Five items fit what is left of the ~493px panel (4x44 +
       84 + gaps + the fold chip) with room to spare, but a narrower one used to
       wrap — and a wrapped row is 260px tall instead of 130px, so the hand
       walked down the page mid-scrub. The history shrinks instead; the live card
       never does. */
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rp-side--right .rp-plays { justify-content: flex-end; }

/* ═════════════════════════════════════════════════════════════════════════
   THE RECEIPT  (`.rp-now`, built by paintNow())

   What the record under the cursor has done so far, next to the card doing it.
   Four questions in one object — who played it, what they played, whom it
   touched and what it did to each — where the eye already is during playback,
   which is the whole argument for putting it here rather than in the log: on a
   landscape phone the log is a screen away, and the field is the screen.

   It costs the layout NOTHING. The box beside it was already reserved at one
   live card tall for a completely different reason, and a receipt at four rows
   is 93px of that 130 (71px of the phone's 81). The bill is paid in width
   instead: the plays row shows five cards where it showed eight, which moves its
   `+N` fold from 4.0% of turns to 9.3%.

   No frame, no fill, no elevation — it sits on the board's own plane. The rule
   under the head is the only chrome it gets.
   ═════════════════════════════════════════════════════════════════════════ */
.rp-now {
    /* Its own scale, smaller than the rail's 20/62: this is 152px of a panel
       that also has to hold the cards. The chip is the floor at 18px — the class
       ring and its wash carry the identity, which is the same argument the rail
       makes at 20. */
    --chip: 18px;
    --bar-len: 34px;
    /* 152px where there is room, and the one that gives way when there is not: the cards are the
       thing the row cannot squeeze, so the receipt yields to them down to a floor and never past it.
       It does not GROW — a wide window belongs to the board, not to this. */
    flex: 0 1 152px;
    min-width: 92px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    /* Empty on the side that is not playing, and it has to be able to BE empty
       without leaving a hole: no border and no background, so an empty receipt
       is exactly nothing. */
    font-size: var(--fs-tiny);
    /* Bounded by whoever holds it (the lane, the turnbox), the list inside
       scrolling — so it must be allowed to be shorter than its rows. */
    min-height: 0;
}

/* Every line box in here is set to its own ink, not to the page's 1.5. That is
   the difference between a receipt that fits its reserve and one that does not:
   at the phone's 8px type the inherited leading made a row 14.88px tall against
   an 11px chip, and four of those plus a head overran the 80.5px box by 13. */
.rp-now .rp-hist-nums,
.rp-now .rp-hist-st,
.rp-now-ord,
.rp-now-team { line-height: 1; }

/* Who and what, on one line. The name takes the slack and the ordinal is pinned
   to the far end, so a long card name shortens itself rather than pushing the
   count off the box. */
.rp-now-head {
    display: flex;
    flex: none;
    align-items: center;
    gap: var(--sp-2);
    margin: 0;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--rail);
    min-height: var(--chip);
}

.rp-now-card {
    font-size: var(--fs-fine);
    font-weight: 600;
    line-height: 1.15;
    color: var(--bulma-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Which play of the turn this is — the same number the card in the row beside it
   wears, in the same mono, because they are the same fact stated twice and the
   reader has to be able to see that they are. */
.rp-now-ord {
    margin-inline-start: auto;
    flex: none;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
}

/* The aim, as an arrow into a chip. The arrow is the receipt's only connective
   glyph and it means exactly what the board's reticle means: chosen, not
   necessarily touched — the rows below say what was actually touched. */
.rp-now-arrow {
    flex: none;
    font-size: var(--fs-micro);
    color: var(--bulma-text-weak);
    line-height: 1;
}

/* A record that played no card is a JOIN — 39.5% of them — and it says which
   one, in the rail's own words. Same treatment as `.rp-hist-say` so the two
   surfaces call the same event the same thing and look like it. */
.rp-now-say {
    font-size: var(--fs-fine);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

/* EVERY fighter the record touched, by side, in a box that scrolls. It folded
   at four rows behind an "N more" until the owner asked for the rows (2026-10-31).
   The bound is the holder's — see `.rp-lane` and `.rp-turnbox > .rp-now` — so this
   only has to be allowed to shrink and to scroll when it does. Positioned so a
   row's offsetTop is measured from the list, which is how replay.js scrolls a row
   that arrives below the fold into view. */
.rp-now-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
/* The edge with more rows past it fades out (replay.js sets the classes): a
   phone's overlay scrollbar shows only while it moves, and a list cut at four
   rows otherwise reads as a list of four. */
.rp-now-list.is-more-below {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent);
}
.rp-now-list.is-more-above {
    -webkit-mask-image: linear-gradient(to top, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to top, #000 calc(100% - 14px), transparent);
}
.rp-now-list.is-more-above.is-more-below {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.rp-now-grp {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}
.rp-now-did {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* A row too wide for the receipt WRAPS its figures, right-aligned, instead of
   running out of the panel. A hit with a cause, a shield figure and three status
   changes is ~170px of content in a 127px lane (a 99px one on the landscape
   phone), and the overflow was clipped mid-number — "−9" lost its 9 — or printed
   over the next figure. The list scrolls now, so a row is allowed to be two lines
   tall; each figure and each icon-with-its-change stays one unbreakable unit.
   The row gap clears the stack plate that hangs 3px under an icon. */
.rp-now .rp-hist-nums,
.rp-now .rp-hist-st,
.rp-now .rp-hist-why {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
    min-width: 0;
}
.rp-now .rp-hist-st-one { flex: none; white-space: nowrap; }

/* Whose rows these are: the player's name and a caret pointing at their board,
   run out into a hairline to the far edge — the left side's reads `◂ name ───`,
   the right side's `─── name ▸`, so the caption sits on the side of the panel
   nearest the board it is about. Position and a glyph, never a hue: the sides
   carry no colour anywhere on this page and the receipt is no place to start. */
.rp-now-team {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
    font-size: var(--fs-micro);
    color: var(--bulma-text-weak);
    white-space: nowrap;
}
.rp-now-team::after {
    content: "";
    flex: 1 1 6px;
    min-width: 6px;
    border-top: 1px solid var(--rail);
}
.rp-now-grp[data-side="1"] .rp-now-team { flex-direction: row-reverse; }
/* The first caption's hairline is the divider under the head now; the head's
   own rule 14px above it was a second line saying the same thing. */
.rp-now-head:has(+ .rp-now-list .rp-now-team) { border-bottom: 0; padding-bottom: 1px; }
.rp-now-team-caret { flex: none; color: var(--bulma-text); }
.rp-now-team-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* A row arriving.
   Keyed on (record, fighter) and not on the step: a play resolves over a dozen
   steps and a six-hit attack would otherwise restage the same four rows six
   times. Which rows are new is derived from the cursor — the record's rollup one
   step back — so the same rows animate whichever direction you arrive from, and
   the resting picture is identical either way. */
.rp-now-did > .is-new,
.rp-now-head.is-new {
    animation: rp-now-in calc(var(--rp-beat, 220ms) * 1.1) cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

@keyframes rp-now-in {
    from { transform: translateY(-3px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-now-did > .is-new,
    .rp-now-head.is-new { animation: none; }
}

/* One played card. Position for the ordinal and the charm; the width is set by
   whether it is the one still resolving. */
.rp-played {
    position: relative;
    /* Shrinkable, so a tight panel squeezes the history rather than wrapping
       it. The face keeps its aspect ratio on the way down. */
    flex: 0 1 44px;
    min-width: 22px;
    /* Dimmed, not erased. At 0.5 the art went to mush and the row read as five
       grey rectangles; 0.62 keeps each card recognisable as itself while still
       sitting clearly behind the one that is live. */
    opacity: 0.62;
    transition: opacity var(--rp-beat, 220ms) ease;
}

/* The one still resolving: hand width, full opacity, and ringed in the page's
   energy blue — the hue it already spends on "this card cost something". The
   ring is what separates it from the hand below at a glance; the size is what
   makes it the subject of the panel. */
.rp-played.is-live {
    flex: 0 0 84px;
    opacity: 1;
}

.rp-played-face {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 456 / 706;
    border-radius: var(--r-badge);
    object-fit: contain;
}

/* The 0.77% with no card art at all. A dashed box of the right shape rather
   than a gap, so the row keeps its rhythm. */
.rp-played.is-bare::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 456 / 706;
    border: 1px dashed var(--rail);
    border-radius: var(--r-badge);
    background: var(--bulma-scheme-main-bis);
}

/* The name is written INTO the card, in the panel the art leaves blank at the
   foot for exactly that — beside the card it left a swathe of flat maroon
   reading as a printing error. Only on the live card: at 44px there is no panel
   to write into, and the history reads as pictures. */
.rp-played-name {
    position: absolute;
    inset: 71% 7% 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-fine);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    pointer-events: none;
}

/* No plate, and inside the frame — the same argument `.rp-hcard-charm` makes:
   a filled box at this size reads as a UI chip stuck onto the card. */
.rp-played-charm {
    position: absolute;
    top: 3px;
    inset-inline-end: 3px;
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.rp-played.is-live .rp-played-charm { width: 20px; height: 20px; }

/* A new card arriving. Once per play, not once per step: the card rides every
   step of the record that plays it, so restaging on each would strobe. Ends
   where it rests, so the picture at a step is the same from either direction. */
.rp-played.is-fresh { animation: rp-play-in calc(var(--rp-beat, 220ms) * 1.18) cubic-bezier(0.2, 0.9, 0.3, 1.2); }

@keyframes rp-play-in {
    from { transform: translateY(6px) scale(0.9); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-played.is-fresh { animation: none; }
}

/* Aimed at, not hit. This is the player's CHOICE of target — it is set on
   only 53% of plays, and it is a different fact from `subject`, which is
   where an effect actually landed.

   A RETICLE: four corner brackets closing on the tile, which is what "chosen
   as a target" looks like in every vocabulary a player already has. It used
   to be a dotted outline, which sat two pixels from the struck tile's dashed
   one and one vocabulary from the summon tile's dashed EDGE — three near-
   identical broken rectangles meaning three unrelated things. The brackets
   share geometry with none of them.

   Neutral ink, like the solid acting ring: being aimed at is neither harm nor
   help, and the file already argues exactly that for the other marks. Drawn
   on ::before — which is-selfcast also uses, and safely: selfcast requires
   acting == subject while aimed requires acting != aimedAt, so no tile can
   carry both classes on one step. */
.rp-axie.is-aimed::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--r-card) - 2px);
    pointer-events: none;
    z-index: 2;
    --ret: var(--bulma-text-weak);
    background-image:
        linear-gradient(var(--ret), var(--ret)), linear-gradient(var(--ret), var(--ret)),
        linear-gradient(var(--ret), var(--ret)), linear-gradient(var(--ret), var(--ret)),
        linear-gradient(var(--ret), var(--ret)), linear-gradient(var(--ret), var(--ret)),
        linear-gradient(var(--ret), var(--ret)), linear-gradient(var(--ret), var(--ret));
    background-size: 13px 2px, 2px 13px, 13px 2px, 2px 13px, 13px 2px, 2px 13px, 13px 2px, 2px 13px;
    background-position:
        left top, left top,
        right top, right top,
        left bottom, left bottom,
        right bottom, right bottom;
    background-repeat: no-repeat;
    /* Closes in on arrival and settles — the same contract as every other
       arrival here. It replays when the class is re-added, which is when the
       cursor enters a record that aims at this tile, from either direction. */
    animation: rp-reticle-in calc(var(--rp-beat, 220ms) * 0.9) ease-out;
}

@keyframes rp-reticle-in {
    from { transform: scale(1.14); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-axie.is-aimed::before { animation: none; }
}

/* The line from who acted to what it landed on ---------------------------
   Motion is allowed here, and the rule it is held to is worth restating: the
   page is a scrubber, so stepping backwards into a step must LOOK like
   stepping forwards into it. An animation that fires on arrival and settles
   into a resting state satisfies that — approach the step from either side,
   get the same draw-in, end on the same picture. What stays forbidden is
   anything that keeps changing while you sit still, or that has to finish
   before the state is right. Every rule below ends where it starts. */
.rp-beam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}

.rp-beam line {
    stroke: transparent;
    stroke-width: 3.5;
    stroke-linecap: round;
}

/* The glow: the same geometry an octave wider and mostly transparent, under
   the line. It is what keeps a coloured connector legible where it crosses a
   tile's own art — a soft halo bought without an SVG filter, which a scrubber
   repainting per step cannot afford. */
.rp-beam .rp-beam-glow { stroke-width: 11; opacity: 0.2; }

/* Hidden by having no colour rather than by display:none, so the geometry is
   already correct when a kind arrives and the draw-in has nothing to reflow. */
.rp-beam[data-kind="hit"]  line { stroke: hsl(var(--hit) / 0.9); }
.rp-beam[data-kind="mend"] line { stroke: hsl(var(--mend) / 0.9); }
.rp-beam[data-kind="ward"] line { stroke: hsl(var(--ward) / 0.9); }
.rp-beam[data-kind="mark"] #rp-beam-line { stroke: var(--bulma-text-weak); stroke-dasharray: 5 4; }
/* A mark line stays quiet: the dashes already say "bookkeeping, not a blow",
   and a glow under a dotted administrative line would promote it to one. */
.rp-beam[data-kind="mark"] .rp-beam-glow { stroke: transparent; }

/* The head: direction, which the bare line never stated. Filled with the
   line's own hue; no head at all on a mark line, which is an association and
   not a projectile. */
.rp-beam-head { fill: transparent; }
.rp-beam[data-kind="hit"]  .rp-beam-head { fill: hsl(var(--hit) / 0.95); }
.rp-beam[data-kind="mend"] .rp-beam-head { fill: hsl(var(--mend) / 0.95); }
.rp-beam[data-kind="ward"] .rp-beam-head { fill: hsl(var(--ward) / 0.95); }

/* The comet: opacity 0 at rest, always. Its whole life happens inside the
   arrival animation below and ends at nothing — the same contract as the pop. */
.rp-beam-comet { opacity: 0; }
.rp-beam[data-kind="hit"]  .rp-beam-comet { fill: hsl(var(--hit)); }
.rp-beam[data-kind="mend"] .rp-beam-comet { fill: hsl(var(--mend)); }
.rp-beam[data-kind="ward"] .rp-beam-comet { fill: hsl(var(--ward)); }
.rp-beam[data-kind="mark"] .rp-beam-comet { fill: transparent; }

/* The draw-in, now staged on the BOX so line, head and comet replay as one
   gesture. --len is the line's own pixel length, set per step, so a beam
   across the whole board and one to the next tile take the same time instead
   of the same speed. */
.rp-beam.is-drawn #rp-beam-line,
.rp-beam.is-drawn .rp-beam-glow {
    stroke-dasharray: var(--len) var(--len);
    stroke-dashoffset: var(--len);
    animation: rp-beam-draw var(--rp-beat, 220ms) ease-out forwards;
}

.rp-beam[data-kind="mark"].is-drawn #rp-beam-line {
    stroke-dasharray: 5 4;
    stroke-dashoffset: 0;
    animation: rp-beam-fade var(--rp-beat, 220ms) ease-out forwards;
}

/* The head lands as the line does: held at nothing for the draw's duration,
   then on. `forwards` keeps it, so the resting picture is line plus head —
   identical from either scrub direction. */
.rp-beam.is-drawn .rp-beam-head {
    opacity: 0;
    animation: rp-beam-head-in calc(var(--rp-beat, 220ms) * 0.5) ease-out var(--rp-beat, 220ms) forwards;
}

/* The comet runs the line once and is gone — a transient about the moment,
   like the pop, and the one part of the beam with no resting state. */
.rp-beam.is-drawn .rp-beam-comet {
    animation: rp-beam-comet-run var(--rp-beat, 220ms) linear forwards;
}

@keyframes rp-beam-draw {
    from { stroke-dashoffset: var(--len); }
    to   { stroke-dashoffset: 0; }
}

@keyframes rp-beam-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rp-beam-head-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rp-beam-comet-run {
    0%   { opacity: 0.9; transform: translate(var(--bx1), var(--by1)); }
    85%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translate(var(--bx2), var(--by2)); }
}

/* A play that lands on the axie that played it. 29.3% of the steps naming
   both an actor and a subject are this, so it needs a mark of its own rather
   than a line from a tile to itself. A ring closing inward on the tile: the
   same gesture as the beam, turned on its owner. */
.rp-axie.is-selfcast::before {
    content: "";
    position: absolute;
    inset: -4px;
    /* Concentric with the tile it rings: 4px outside a --r-card corner. */
    border-radius: calc(var(--r-card) + 4px);
    border: 2px solid hsl(var(--spark) / 0.65);
    animation: rp-self-ring calc(var(--rp-beat, 220ms) * 1.36) ease-out;
    pointer-events: none;
}

@keyframes rp-self-ring {
    from { transform: scale(1.12); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Being hit reads as being hit. A short knock in the direction of the blow,
   ending exactly where it started, so the resting picture is unchanged. */
.rp-axie-art.is-knocked { animation: rp-knock calc(var(--rp-beat, 220ms) * 1.18) ease-out; }

/* The knock now carries a flash: a beat of brightness at the moment of the
   blow, gone by the time the shake settles. Filter, not an overlay — the art
   is an <img> and a pseudo-element cannot sit on one. */
@keyframes rp-knock {
      0% { transform: translateX(0); filter: none; }
     25% { transform: translateX(-4px) rotate(-1.5deg); filter: brightness(1.7) saturate(1.25); }
     60% { transform: translateX(3px)  rotate(1deg); filter: none; }
    100% { transform: translateX(0); filter: none; }
}

/* The left team's art is mirrored (see .rp-axie-art.is-flipped above), so its
   knock has to be too or a hit shoves it the wrong way. */
.rp-axie-art.is-flipped.is-knocked { animation: rp-knock-flipped calc(var(--rp-beat, 220ms) * 1.18) ease-out; }

@keyframes rp-knock-flipped {
      0% { transform: scaleX(-1) translateX(0); filter: none; }
     25% { transform: scaleX(-1) translateX(-4px) rotate(1.5deg); filter: brightness(1.7) saturate(1.25); }
     60% { transform: scaleX(-1) translateX(3px)  rotate(-1deg); filter: none; }
    100% { transform: scaleX(-1) translateX(0); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-beam.is-drawn #rp-beam-line,
    .rp-beam.is-drawn .rp-beam-glow,
    .rp-beam[data-kind="mark"].is-drawn #rp-beam-line,
    .rp-beam.is-drawn .rp-beam-comet,
    .rp-axie.is-selfcast::before,
    .rp-axie-art.is-knocked,
    .rp-axie-art.is-flipped.is-knocked { animation: none; }
    /* The beam still draws, it just arrives whole — head included. The comet
       is pure motion, so under reduced motion it simply never exists. */
    .rp-beam.is-drawn #rp-beam-line,
    .rp-beam.is-drawn .rp-beam-glow { stroke-dashoffset: 0; }
    .rp-beam.is-drawn .rp-beam-head { animation: none; opacity: 1; }
}

/* Who is acting, and what it is landing on -------------------------------
   Solid ring = acting, dashed ring = being acted on. The difference is
   CATEGORICAL rather than chromatic on purpose:

   - the class colour is already spent on identity (one edge per axie), and
     borrowing it for state fails exactly where it matters — mech is
     #8598a0 and the fallback #8b8b9c, so "acting" rendered as a grey ring
     indistinguishable from a border;
   - being hit and being healed are both "something is happening here", so
     a hue on the receiving axie would claim which, and it would be wrong
     half the time.

   Neither rule touches border-color: on the right-hand side the class tint
   lives on border-inline-end, so setting the border wholesale repaints the
   side rail as well and the mark says more than it means.

   Acting wins a collision — the two land on one axie about one marked row
   in seven, so it needs a defined answer rather than two rings fighting. */
.rp-axie.is-acting {
    /* The ring, and now a shadow under it, so the acting tile reads as LIFTED
       off the board rather than merely traced. Still categorical, still no hue
       — but "which tile is acting" stopped being a spot-the-difference
       question, which measured screenshots said it was. Shadow, deliberately
       not transform: a transform here would make the tile the containing block
       for the loadout panel's position:fixed narrow-screen state and tear it
       off the viewport. */
    box-shadow: 0 0 0 2px var(--bulma-text), 0 8px 18px -8px rgba(0, 0, 0, 0.55);
}

/* TAUNT ---------------------------------------------------------------------
   The one status whose content is a fact about the OTHER five tiles: "units
   with Taunt are attacked first". A badge can only say it is there. This says
   what the board looks like because of it — the taunter holds a wall on the
   edge it is facing the enemy across, and the allies standing behind it go
   quiet, because while it stands they cannot be reached.

   A wall and not a ring, deliberately: `is-acting` owns the ring and `is-aimed`
   owns the reticle, and both are momentary — they last one step. Taunt stands
   for turns at a time, so it takes the quietest mark on the tile and never
   animates; a pulse that ran for twenty steps would be the loudest thing on a
   board where the loud things are supposed to be the hits.

   The inner edge on both sides. The class tint has the outer one (it swaps to
   border-inline-end on the right-hand side), and inside a tile the writing
   direction is ltr on both sides, so this is inline-end on the left team and
   inline-start on the right — which is the edge each of them faces the enemy
   across.

   Only an UNCONDITIONAL taunt quiets the allies; see ReplayPage.tauntStrength.
   Taunt The Wounded redirects the bleeding half of an enemy team and would be
   claiming a rule the battle is not playing by. */
.rp-axie.is-taunting::after {
    content: "";
    position: absolute;
    inset-inline-end: 1px;
    inset-block: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--bulma-text);
    pointer-events: none;
    z-index: 2;
}

.rp-side--right .rp-axie.is-taunting::after { inset-inline-end: auto; inset-inline-start: 1px; }

/* The art and the name only. Never the health bar, never the badge strip: a
   tile that cannot be attacked is still a tile whose numbers are being read,
   and dimming those would trade one fact for another. */
.rp-axie.is-covered .rp-axie-art,
.rp-axie.is-covered .rp-axie-name {
    opacity: 0.45;
    transition: opacity var(--ease-state);
}

/* The lunge: the acting axie steps TOWARD the enemy when its record begins,
   and settles back where it stood. One step per record, not per hit — the
   knock is the per-hit motion, and it belongs to the axie being hit. The art
   faces the centre on both sides (the left team is mirrored), so "toward the
   enemy" is the same -X under the flip that it is without it. */
.rp-axie-art.is-lunging { animation: rp-lunge calc(var(--rp-beat, 220ms) * 1.36) ease-out; }

@keyframes rp-lunge {
      0% { transform: translateX(0); }
     35% { transform: translateX(-9px) scale(1.04); }
    100% { transform: translateX(0); }
}

.rp-axie-art.is-flipped.is-lunging { animation: rp-lunge-flipped calc(var(--rp-beat, 220ms) * 1.36) ease-out; }

@keyframes rp-lunge-flipped {
      0% { transform: scaleX(-1) translateX(0); }
     35% { transform: scaleX(-1) translateX(-9px) scale(1.04); }
    100% { transform: scaleX(-1) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rp-axie-art.is-lunging,
    .rp-axie-art.is-flipped.is-lunging { animation: none; }
}

.rp-axie.is-struck {
    /* Drawn INSIDE the tile: at the outer edge of a side it is flush with the
       field's own boundary and the dashes clip. */
    outline: 2px dashed var(--bulma-text-weak);
    outline-offset: -3px;
}

/* What landed on it, in the beam's hues (`data-landed`, written by
   paintReactions from BEAM): red a hit, green a heal, blue a shield. A status
   keeps the grey above, as its dashed beam does. The self ring takes the same
   four: its old spark hue is a blue too (#3164f2), and with blue now meaning a
   shield, a status cast on oneself would have read as one — so it rings in the
   status frame's grey dash instead. */
.rp-axie.is-struck[data-landed="hit"]  { outline-color: hsl(var(--hit)); }
.rp-axie.is-struck[data-landed="mend"] { outline-color: hsl(var(--mend)); }
.rp-axie.is-struck[data-landed="ward"] { outline-color: hsl(var(--ward)); }
.rp-axie.is-selfcast[data-landed="hit"]::before  { border-color: hsl(var(--hit) / 0.75); }
.rp-axie.is-selfcast[data-landed="mend"]::before { border-color: hsl(var(--mend) / 0.75); }
.rp-axie.is-selfcast[data-landed="ward"]::before { border-color: hsl(var(--ward) / 0.75); }
.rp-axie.is-selfcast[data-landed="mark"]::before { border-color: var(--bulma-text-weak); border-style: dashed; }

@media (prefers-reduced-motion: reduce) {
    .rp-axie { transition: none; }
}

.rp-axie-art {
    width: 84px;
    height: 63px;
    object-fit: contain;
    flex: 0 0 auto;
}

.rp-axie-body { position: relative; flex: 1 1 auto; min-width: 0; }

.rp-axie-name {
    font-size: var(--fs-lead);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

/* The health bar, and the whole tile's width -------------------------------
   TWO LINES, not one. The bar and the numbers used to share a row, which capped
   the bar at 35% of the tile and left the other 65% to seven characters — so the
   one thing on a tile that is read by LENGTH was the shortest object on it. It
   stands on its own line now and takes the whole content box: the same six bars
   are compared over 133px instead of 46, and the read keeps a full line to
   itself, where a four-digit shield can no longer squeeze it.

   Nothing is paid for this. The name above gives up its 5px bottom margin, which
   was a desktop-era value sitting inside a tile whose own column gap already
   separates the rows; the two lines cost 8px of bar and 2px of gap and get 5px
   back, so the tile grows by five pixels on the desktop and by nothing at all on
   a landscape phone, where the name's margin and the bar's height are the same
   number. That is what makes the sealed screen still seal.

   The read's HEIGHT is reserved on its own line now — the same reservation, moved
   with the numbers it protects. Measured over a 1,339-step battle: the row stood
   14.88px tall with no shield and 16.31px with one, so every tile grew 1.43px the
   moment a shield went up and shrank again when it broke, on 18.95% of
   fighter-steps. The badge is 16px and the line is floored at 16px. */
.rp-hp {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
}

/* THE THRESHOLDS ARE ETCHED, not only coloured. Two hairlines at 25% and 50%,
   drawn over the fill rather than under it, so the fill's edge is read against a
   scale instead of against nothing: "just under half" and "just over half" are
   two different situations and a plain bar draws them the same. They are also the
   second channel the hue needs — green/amber/red is precisely the comparison
   red-green colour blindness cannot make, and this page's own rule is that state
   is geometry first. The tick is the tile's own background rather than an ink, so
   it reads as a notch cut into the bar in both themes: over a fill it is a clear
   break, over the empty track it is almost nothing, which is the right emphasis —
   a threshold matters once something has reached it. */
.rp-hp-track {
    position: relative;
    width: 100%;
    height: 8px;
    border-radius: var(--r-chip);
    background: var(--bulma-border);
    overflow: hidden;
}

.rp-hp-track::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 calc(25% - 1px),
                        var(--bulma-scheme-main) calc(25% - 1px) 25%, transparent 25%),
        linear-gradient(90deg, transparent 0 calc(50% - 1px),
                        var(--bulma-scheme-main) calc(50% - 1px) 50%, transparent 50%);
}

/* CLASS-INDEPENDENT. `background: var(--cls)` used to paint the bar in the axie's
   own class hue: a fact the tile's edge and its crest already carry, and one that
   actively fought the reading — a mech at 87% drew the palest bar on the board and
   a beast at 41% drew a bright one. The hue is the band now and nothing else, and
   the band is set in JS from the same percentage that sets the width, so the two
   can never disagree.

   The colour transitions with the width: crossing a threshold is a moment, and a
   bar that changes hue while it moves says so without an animation of its own. */
.rp-hp-fill {
    height: 100%;
    width: 100%;
    border-radius: var(--r-chip);
    background: hsl(var(--hp-hi));
    transition: width var(--ease-move), background-color var(--ease-move);
}

.rp-hp-fill[data-band="mid"] { background: hsl(var(--hp-mid)); }
.rp-hp-fill[data-band="lo"]  { background: hsl(var(--hp-lo)); }

/* A flex row on BOTH teams, so the shield badge is centred against the numerals
   instead of joining their line box and setting the line's height from its own
   leading — the 1.43px jump described above.

   The numbers keep the side of the tile they have always had — the INNER one,
   toward the middle of the board, where the bar used to push them. Two reasons
   they do not move out to join the name: the class crest is pinned to the bottom
   OUTER corner and a four-digit shield would land on it, and the name and the
   figures at opposite ends of their lines is what stops two lines of small text
   from reading as a paragraph. The shield then falls at the very inner edge on
   both teams, which is where it was and where the client puts it.

   Mirroring is `justify-content` rather than `flex-direction`, because the row no
   longer reverses — the bar it used to reverse against is on its own line and is
   full width on both sides. */
.rp-hp-read {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 16px;
    font-family: var(--mono);
    font-size: var(--fs-base);
    font-variant-numeric: tabular-nums;
}

.rp-side--right .rp-hp-read { justify-content: flex-start; }

.rp-hp-max { color: var(--bulma-text-weak); }


/* Turn tape — the signature element ---------------------------------------
   Each segment is one turn; its fill height is how many events that turn
   produced relative to the busiest one, so the shape of the battle is readable
   before you play anything. It is also the scrubber. */
.rp-transport { margin-top: 26px; }

.rp-tape {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 56px;
    padding: 0;
    margin: 0 0 12px;
    list-style: none;
    border-bottom: 1px solid var(--rail);
}

.rp-turn {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    height: 100%;
    /* Reserve a strip for the label so every turn number sits on one baseline.
       Left in the flow it rides on top of its own bar and the row wobbles. */
    padding: 0 0 13px;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Where a round begins. The tape counts turns, one segment each, and a round is
   one turn from each player — so the pairing is drawn as a hairline in the gap
   rather than as a second row of numbers under a control 56px tall. An inset
   shadow and not a border: `flex: 1 1 0` splits the row by the segments' own
   widths, and a border on some of them would make those segments narrower than
   the rest for a mark that is supposed to sit between them. */
.rp-turn.is-round-start:not(:first-child) { box-shadow: inset 1px 0 0 var(--rail); }

.rp-turn::after {
    content: "";
    display: block;
    /* calc() is required: a bare `var(--h) * 100%` is not a valid CSS value and
       silently collapses the whole tape to its 3px floor. */
    height: max(3px, calc(var(--h, 0) * 100%));
    border-radius: 3px 3px 0 0;
    background: var(--bulma-border);
    transition: background-color var(--ease-state);
}

.rp-turn.is-past::after { background: hsl(var(--hit) / 0.38); }
.rp-turn.is-now::after  { background: hsl(var(--hit)); }
.rp-turn:hover::after   { background: hsl(var(--hit) / 0.62); }

/* What is standing on an axie ----------------------------------------------
   The game shows these as a row of small round icons above the axie with a
   stack count beside each, and that is the shape players already read, so this
   uses the client's own art. 50 of the 59 status codes the corpus produces
   have a file — 93.7% of live status-rows — and the nine that do not fall back
   to the word they have always shown, side by side with the icons. A status
   with no art is still standing on that axie.

   The word fallback keeps the two hues the log already spends on harm and help
   (--hit, --mend) rather than opening a palette per status kind: a debuff
   landing should read the same way a hit does. Secrets are neutral — they are
   information, not a good or bad thing. Names are truncated because a badge
   strip is a glance, and the full name is in the title. */
/* What is standing on an axie, ABOVE its picture — where the client puts it
   and where a player already looks for it.

   CENTRED, not aligned to an edge. The rune overhangs the top-OUTER corner and
   the two sides mirror each other, so a strip aligned to the start would sit
   under the rune on the left team and float away from it on the right.

   ONE ROW IS RESERVED so the pictures line up across a rank. Measured per axie
   per step over 672,810 samples: 39.4% wear nothing at all, 61.3% wear one or
   fewer, and 97.6% wear five or fewer — which is what one row holds at this
   width. The 2.4% that wear more wrap and push their own art down, and that is
   the honest outcome: an axie carrying nine effects really is different from
   its neighbours, and clipping the ninth to keep the row tidy would be the one
   thing this page does not do. */
.rp-marks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* Roomier than the old 2px because an emphasis ring sits 1px outside its
       badge, and at 2px two adjacent rings touch and read as one shape. It still
       covers the plates the counts sit on: those hang 3px past the badge and the
       two that could meet in a gap sit at opposite corners of it, so 4px leaves
       a plate 1px clear of the next badge's picture. */
    gap: 4px;
    /* No margin of its own: the tile is a flex column with a 5px gap, and the
       3px here was a leftover from when the strip sat below the HP bar. It
       added to the gap, so the stack ran 8px under the badges and 5px
       everywhere else — the one seam in an otherwise even column. */
    margin: 0;
    /* One row's worth, held whether or not anything is standing here, so a rank
       of tiles keeps its pictures on one line. */
    min-height: 19px;
    padding: 0;
    list-style: none;
}

.rp-mark {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-tiny);
    line-height: 1.5;
    padding: 0 4px;
    border-radius: var(--r-chip);
    border: 1px solid var(--rail);
    color: var(--bulma-text-weak);
}

.rp-mark[data-kind="Debuff"],
.rp-mark[data-kind="IntangibleDebuff"] {
    border-color: hsl(var(--hit) / 0.5);
    color: hsl(var(--hit));
}

.rp-mark[data-kind="Buff"],
.rp-mark[data-kind="IntangibleBuff"] {
    border-color: hsl(var(--mend) / 0.5);
    color: hsl(var(--mend));
}

.rp-mark[data-kind="Secret"] { border-style: dashed; }

/* An icon badge carries no chrome of its own: the art already ships with its
   own dark outline, so a border around it would be a second edge. 19px keeps a
   dozen of them (the corpus maximum on one axie) to two rows inside a ~130px
   tile — fewer rows than the words they replace, so the formation does not
   move. The kind hues above are dropped here on purpose: the art is already
   colour-coded by the game, and re-tinting it would fight its own palette.

   It stays 19 through the plate rework below, and that is the whole reason the
   two counts sit at opposite corners: two 11px plates on ONE edge of a 19px badge
   have a pixel between them, and the badge would have had to grow to 22 to hold
   them — three pixels a tile, six a rank, and on a landscape phone that is a
   budget with nothing in it. */
.rp-mark--icon {
    position: relative;
    width: 19px;
    height: 19px;
    max-width: none;
    padding: 0;
    border: 0;
    /* Same rounding as the text badge beside it: two badges in one strip should
       not disagree about their corners, and the emphasis outline follows the
       radius so they disagreed twice. */
    border-radius: var(--r-chip);
    overflow: visible;                  /* the count hangs off the corner */
}

.rp-mark--icon img { display: block; width: 100%; height: 100%; }

/* THE TWO NUMBERS ON A BADGE — how many, and how long -----------------------
   Both used to be 8px of haloed ink laid straight over the icon. A halo works
   against a flat page and this is not one: the icons are the game's own art, busy
   at 19px and coloured edge to edge, and a poison stack of 20 sat as two grey
   digits over a red drop with a white smear behind them. Neither number could be
   read without leaning in, which is the whole complaint.

   So neither is drawn on the art any more. Each gets a PLATE — an opaque box in
   the page's own two inks, which is the one treatment that cannot lose against a
   picture it does not know. The digits go up a step of the scale to --fs-tiny,
   which is where the mono advance is still 6px a character, so a two-digit count
   is 12px of numerals inside an 11px-tall plate.

   The two plates are told apart by FILL, not by hue, and not by position alone:

     stack     solid ink, knocked out       a magnitude — how much is standing
     duration  hollow, ringed in weak ink   a clock — how many turns it has left

   That is the same distinction the page draws everywhere else between something
   that has a size and something that runs down, and it survives the two corners
   being read out of order.

   THE CORNERS ARE THE GAME'S — count low, clock high, both down the badge's right
   edge — and they only stayed the game's because the plates hang ONE pixel out
   rather than three. Three was tried and is wrong twice over: two 11px plates on
   a 19px edge then overlap in the middle, and a plate hanging 3px into a 4px gap
   ends up nearer the NEXT badge's picture than its own, which is the one mistake
   a count on a row of icons must not make. At 1px out and 10px tall they clear
   each other by a pixel, and a reader is never in doubt about which icon a number
   belongs to. */
.rp-mark-n,
.rp-mark-t {
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* One geometry for both plates, so the only difference between them is the fill.
   One pixel past the badge, which buys the corners a little air without letting a
   plate drift toward the icon next door. What that pixel overlaps is the arrival
   ring, which is 2px of outline running the length of four edges and can spare a
   corner; an opaque plate over it stays perfectly legible, which was the whole
   objection to hanging the old haloed digits out there. */
.rp-mark--icon .rp-mark-n,
.rp-mark--icon .rp-mark-t {
    position: absolute;
    display: grid;
    place-items: center;
    inset-inline-end: -1px;
    min-width: 10px;
    height: 10px;
    /* A square at one digit, and as tight as the numerals allow at two. Both
       plates on one badge is 3.8% of live rows and it is the case that has to be
       kept from swallowing the picture: at 1px of padding a two-digit plate is
       14px of a 19px badge instead of 15. */
    padding: 0 1px;
    border-radius: var(--r-chip);
    text-shadow: none;
}

.rp-mark--icon .rp-mark-n {
    bottom: -1px;
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
}

.rp-mark:not(.rp-mark--icon) .rp-mark-n { margin-inline-start: 3px; color: inherit; }

/* How many turns it has left, in the corner the game itself puts it in — upper
   right, against the stack count in the lower.

   TWO CORNERS rather than one slot that chooses, because they are two different
   quantities and 3.8% of live rows carry both. They are also not
   interchangeable: for Bleed and Poison the stack is the number that matters,
   while Weak, Alert, Sleep, Whisper, Vulnerable, Doubt, Fear and DeathMark carry
   a duration on 100% of their rows and no stack at all — 31.0% of every live
   badge row has one, and until now the board showed none of them.

   It is the hollow plate to the stack's solid one — the deferral is now a fill
   rather than a dimming, which is what lets it stay at full contrast while still
   reading as the second of two numbers. The tooltip spells it out in words, which
   is where a reader checks rather than remembers. */
.rp-mark--icon .rp-mark-t {
    top: -1px;
    background: var(--bulma-scheme-main);
    color: var(--bulma-text);
    /* An inset ring rather than a border: the plate's box is shared with the stack
       plate above and a border would make this one 2px bigger than that one. */
    box-shadow: inset 0 0 0 1px var(--bulma-text-weak);
}

/* On a word badge there is no box to hang corners off, so it trails the name as
   a plain "3t" — the count already trails it the same way. Not dimmed: these are
   the 6.3% of statuses the art library has no picture for, so the word and its
   numbers are all a reader gets. */
.rp-mark:not(.rp-mark--icon) .rp-mark-t { margin-inline-start: 3px; }
.rp-mark:not(.rp-mark--icon) .rp-mark-t::after { content: "t"; }

/* Which status just moved --------------------------------------------------
   28.7% of the log is a status landing or leaving and the board used to look
   identical before and after. This marks the difference between this step and
   the one before it — a comparison of two snapshots, never an accumulation, so
   stepping backwards into a step looks exactly like stepping forwards into it,
   and step 0 marks nothing because it has no predecessor.

   Geometry, not hue, and for a reason: a stack going UP is good on a buff and
   bad on a debuff, so a colour would be wrong for half the population. The
   vocabulary is the one the tiles already use — solid ring for the thing
   acting, dashed for the thing acted upon. */
.rp-mark[data-move="in"] {
    outline: 2px solid var(--bulma-text);
    outline-offset: 1px;
}

.rp-mark[data-move="out"] {
    outline: 1px dashed var(--bulma-text-weak);
    outline-offset: 1px;
}

.rp-mark--icon[data-move="out"] img { opacity: 0.32; }
.rp-mark--icon[data-move="out"] .rp-mark-n { opacity: 0.55; }
.rp-mark:not(.rp-mark--icon)[data-move="out"] { opacity: 0.5; }

/* A re-stack changes the number and nothing else, so the number is what gets
   marked. This is the commonest move of the three (7,538 steps against 4,252
   arrivals and 3,501 departures), which is why it is not folded in with them.

   It used to be marked by GIVING the count a plate, which was the whole of the
   difference between a count that moved and one that did not. Every count has a
   plate now, so the mark is a ring around it instead — the same ring the badge
   itself wears when it arrives, one object in. The tile's own background goes
   between the plate and the ring so the two edges do not merge into one thick
   border. */
.rp-mark[data-move="more"] .rp-mark-n,
.rp-mark[data-move="less"] .rp-mark-n {
    box-shadow: 0 0 0 1.5px var(--bulma-scheme-main), 0 0 0 3px var(--bulma-text);
}

/* What a card costs, in the disc the client prints it in ------------------
   Energy's own hue, because that is what it is spent from — the same blue
   the wheel uses, so a cost and the pool it comes out of read as one thing.

   The PRINTED cost, from the card table. A card's cost can be changed mid
   battle, and what a play actually spent is on its own EnergyLoss row in
   the log; this is the number on the card face, not the receipt. */
.rp-cost {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    margin-inline-end: 4px;
    border-radius: 50%;
    background: hsl(var(--spark));
    color: #fff;
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1;
    flex: none;
    vertical-align: -3px;
}

/* The page's meta line. `.rp-stat` used to be a card's attack/shield/healing
   chip as well, and when the hand was rebuilt the card version was renamed to
   `.rp-hcard-stat` — but the base rule was left behind, and the only markup
   still carrying `rp-stat` is the four items under the title. So the header
   inherited a chip's styling: 0.56rem, bold, tabular mono, a 3px radius. The
   winning team's NAME rendered in 9px bold mono directly under the same name
   in the humane face, which is the page's own type rule broken in the first
   thing anyone reads. The chip rule is gone; `.rp-meta` styles the row now and
   `.rp-stat b` keeps the measured numbers in mono, which is all it ever
   wanted to do. */

/* No per-turn side marker on the tape. It was tried and removed: turns
   alternate strictly in 150 of 150 corpus battles, so a mark showing which
   side owns each turn is fully predictable from the turn number and reports
   nothing a reader does not already have. The tape's tooltip still names the
   team, which costs no ink, and the log line says it outright.

   The board's own turn marker (.rp-side.is-turn, above) is not a reversal of
   that: one mark that moves with the cursor, where the reader is already
   looking, against thirty static marks on a control they scan once. */

.rp-turn-no {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
}

.rp-turn.is-now .rp-turn-no { color: var(--bulma-text); font-weight: 700; }

/* Only every other label on narrow tapes, so the numbers never collide. */
@media (max-width: 620px) {
    .rp-turn:nth-child(even) .rp-turn-no { visibility: hidden; }
}

.rp-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.rp-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--rail);
    border-radius: var(--r-card);
    background: var(--bulma-scheme-main-bis);
    color: var(--bulma-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--ease-state), background-color var(--ease-state);
}

.rp-btn:hover { border-color: var(--bulma-text-weak); }
/* Neutral, like the other three focus rings on the page. It was the shield
   hue, which is a colour spent on something it does not report and the only
   inconsistent focus treatment here — blue for seven buttons, then neutral the
   moment you tab into the speed group beside them. */
.rp-btn:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 2px; }

.rp-btn--play {
    width: 42px;
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    border-color: var(--bulma-text);
}

/* Playback speed. Four named stops rather than a slider: the useful range is
   narrow, and a named speed is something you can go back to in a way a slider
   position is not.

   Sized from the battles. The median corpus battle is 727 steps and the longest
   2,112, so at the base 220ms a full watch runs 2:40 and 7:45; x4 takes those to
   0:40 and 1:56. A cursor move costs 0.6ms to paint, so the ceiling here is what
   stays legible, not what the page can manage. */
.rp-speed {
    display: inline-flex;
    margin-inline-start: auto;
    border: 1px solid var(--rail);
    border-radius: var(--r-badge);
    overflow: hidden;
}

.rp-speed-btn {
    padding: 0 8px;
    /* 32 plus the group's 1px border each side is 34 — flush with .rp-btn.
       At 26 the speed group sat 6px shorter than the buttons it shares a row
       with, reading as a smaller class of control than its peers. */
    height: 32px;
    border: 0;
    background: none;
    font-family: var(--mono);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
    cursor: pointer;
}

.rp-speed-btn + .rp-speed-btn { border-inline-start: 1px solid var(--rail); }
.rp-speed-btn:hover { color: var(--bulma-text); background: var(--bulma-scheme-main-ter); }

.rp-speed-btn.is-on {
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    font-weight: 700;
}

.rp-speed-btn:focus-visible {
    outline: 2px solid var(--bulma-text);
    outline-offset: -2px;
}

/* The speed control takes the auto margin now, so the readout sits beside it
   rather than fighting it for the same slot. */
.rp-pos {
    margin-inline-start: 12px;
    display: flex;
    gap: var(--sp-5);
    font-family: var(--mono);
    font-size: var(--fs-base);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
}

.rp-pos b { color: var(--bulma-text); }

/* Log ---------------------------------------------------------------------- */
/* The written log --------------------------------------------------------
   One panel now. The flat one-row-per-step list that used to sit beside this
   is gone: this one accounts for every step rather than a selection, so there
   was nothing left for a second column to add. Told 178,533 + folded 186,245 =
   364,778 across both corpora, which is the step count exactly — and one
   predicate decides both sides, so it is a partition by construction.

   Capped rather than full-bleed. The rows are sentences, and a sentence that
   runs the width of a 1600px page is a sentence you lose your place in. */
/* `position: relative` is for the 1,800-odd phrases the log keeps for screen
   readers (`.is-sr-only`, three a row on a 580-row battle, each absolutely
   positioned). With no positioned box between them and the page, <body> was
   their containing block, and the browser laid every one of them out again on
   EVERY layout of the page: a step that changed one number on one tile paid
   for the whole log. Measured (2026-11-23): a tile's HP reading rewritten, 1.0
   to 2.1ms of layout against 0.04 to 0.4 with a box of the log's own to hold
   them; over a 4x playback, a third of the main thread's time. On this box and
   not on the list or its scroller, which also cut the layout but made every
   style recalculation dearer (129 against 68 ms a second on the same battle).
   The spans are clipped to a pixel either way, and nothing that is drawn moves:
   every panel that can open over the log carries a z-index of its own. */
.rp-logs {
    margin: 18px auto 0;
    max-width: 900px;
}

.rp-logs-col { min-width: 0; }

.rp-logs-h {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 6px 2px;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
}

.rp-logs-sub {
    font-family: var(--mono);
    font-size: var(--fs-fine);
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.75;
}

.rp-log {
    border: 1px solid var(--rail);
    border-radius: var(--r-card);
    background: var(--bulma-scheme-main-bis);
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* WHAT IT ADDED UP TO ---------------------------------------------------------
   Four readings of one battle, behind one switch, under the written log. It
   takes that panel's furniture — the same heading, the same bordered box, the
   same 900px cap — because it is the same battle read again and inventing a
   second chrome for it would say otherwise.

   Numbers in the mono face, right-aligned, tabular figures on: a column of
   totals is read by comparing digits in the same place, which a proportional
   face makes impossible. The three columns that carry a hue carry the page's
   own three — harm, help, shield — so a reader who has watched the pops
   already knows what a column means before reading its header. */
.rp-score {
    margin: 18px auto 0;
    max-width: 900px;
}

.rp-score-head {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.rp-score-head .rp-logs-h { margin: 0 2px; }

/* The switch. Deliberately the transport's speed control, rule for rule — a
   bordered group, mono, the chosen one inverted — because a reader who has
   pressed 2x already knows how this works. Its own class rather than a shared
   one: the two controls do unrelated jobs and only look alike. */
.rp-score-tabs {
    display: inline-flex;
    margin-inline-start: auto;
    border: 1px solid var(--rail);
    border-radius: var(--r-badge);
    overflow: hidden;
}

.rp-score-tab {
    padding: 0 10px;
    height: 28px;
    border: 0;
    background: none;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    letter-spacing: 0.04em;
    color: var(--bulma-text-weak);
    cursor: pointer;
    white-space: nowrap;
}

.rp-score-tab + .rp-score-tab { border-inline-start: 1px solid var(--rail); }
.rp-score-tab:hover { color: var(--bulma-text); background: var(--bulma-scheme-main-ter); }

.rp-score-tab.is-on {
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    font-weight: 700;
}

.rp-score-tab:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }

/* A reading is as tall as it needs to be up to the log's own cap. Four of them
   stacked was sixty rows of scroll; one of them is a table you can hold. */
/* Scrolls both ways. Nine columns of numbers fit a 900px panel and a phone is
   not 900px; a table that is clipped rather than scrollable is a table with a
   column nobody knows is there. */
.rp-score-pane { max-height: 52vh; overflow: auto; }
.rp-score-pane[hidden] { display: none; }

.rp-led {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
}

/* `thead th` and not `th`, and the numeric rule below carries its element too:
   Bulma ships `table td:not([align]), table th:not([align]) { text-align:
   inherit }`, which is two elements and an attribute against one class — it
   beat a bare `.rp-led-n` and every column of totals inherited `start`. A
   column of numbers that is not right-aligned is a column you cannot compare
   down, which is the only reason this table has columns. */
.rp-led thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0;
    background: var(--bulma-scheme-main-bis);
    border-bottom: 1px solid var(--rail);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

/* Every header is a button, because every column sorts. It fills its cell so
   the whole header is the target, and it carries the type the header used to
   carry itself. */
.rp-sort {
    display: flex;
    align-items: baseline;
    gap: 4px;
    width: 100%;
    padding: 6px 10px 5px;
    border: 0;
    background: none;
    font: inherit;
    font-size: var(--fs-fine);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bulma-text-weak);
    cursor: pointer;
}

.rp-led th.rp-led-n .rp-sort { justify-content: flex-end; }
.rp-sort:hover { color: var(--bulma-text); }
.rp-sort:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }
.rp-led th.is-sorted .rp-sort { color: var(--bulma-text); }

/* The column's icon, before its word (owner, 2026-11-01; the map is HEAD_ICON
   in replayStats.js). In the hue its numbers are set in, so the header and the
   column under it are one colour; the ones with no hue of their own (turn,
   side, plays, kills…) take the header's ink and brighten with it on hover and
   when sorted. A signed quantity wears its sign in front, exactly as the log's
   figure column writes it — "−♥", "+♥", "−⛨", "+⛨".

   ON ITS OWN LINE, above the word. Beside it, nine icons put ~200px on a table
   that already filled its 895px panel to the pixel, and Energy and Kills went
   off the edge. Stacked, a column is as wide as it was and the header one line
   taller; the icon sits over the end of the word the column's numbers align to
   (right on a number, left on a name). */
.rp-sort { flex-wrap: wrap; row-gap: 3px; }
.rp-led-ic {
    display: flex;
    flex: 0 0 100%;
    align-items: center;
    gap: 1px;
    /* One height for every icon line, so the words under a disc and under a
       glyph sit on one baseline. */
    height: 1.25em;
    font-size: 1.08em;
    letter-spacing: 0;
}
.rp-sort-l { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.rp-led th.rp-led-n .rp-led-ic { justify-content: flex-end; }
.rp-led-ic--hit { color: hsl(var(--hit)); }
.rp-led-ic--mend { color: hsl(var(--mend)); }
.rp-led-ic--ward { color: hsl(var(--ward)); }
.rp-led-ic--eaten { color: color-mix(in srgb, hsl(var(--ward)) 70%, var(--bulma-text-weak)); }
.rp-led-ic-orb {
    width: 0.78em;
    height: 0.78em;
    border-radius: 50%;
    background: hsl(var(--spark));
}
.rp-led-ic-s {
    order: -1;
    font-family: var(--mono);
    font-size: 0.92em;
    font-weight: 800;
    line-height: 1;
}

/* The mark is the only thing that moves when a column is chosen. It holds its
   width whether or not it is showing, so choosing a column does not shove the
   header it is in. */
.rp-sort-mark {
    display: inline-block;
    min-width: 0.7em;
    font-size: 0.75em;
    opacity: 0.8;
}

.rp-led td {
    position: relative;
    padding: 4px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--rail) 45%, transparent);
    white-space: nowrap;
}

.rp-led tbody tr:hover { background: color-mix(in srgb, var(--bulma-text) 5%, transparent); }
.rp-led tbody tr:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }
.rp-led--turns tbody tr { cursor: pointer; }

.rp-led td.rp-led-n,
.rp-led th.rp-led-n {
    text-align: right;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.rp-led-turn {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text);
}

.rp-led-round {
    display: inline;
    margin-inline-start: 5px;
    font-size: var(--fs-fine);
    color: var(--bulma-text-weak);
}

.rp-led-side { color: var(--bulma-text-weak); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
/* Whose clock it is. The other row of the same turn is that side's bleed
   ticking on somebody else's, and that difference is why both rows exist. */
.rp-led-side.is-holding { color: var(--bulma-text); font-weight: 600; }

.rp-led-card {
    color: var(--bulma-text);
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The picture beside a name (owner, 2026-11-01; `pictured` in replayStats.js):
   a card's face, an axie's portrait disc — the log's own, ring in its class
   colour — and a rune's gem, a status's icon or a card effect's face. One 20px
   square for all, set on the text's middle; a face is cropped to fill it, an
   icon is fitted whole. */
.rp-led-pic {
    width: 20px;
    height: 20px;
    margin-inline-end: 7px;
    vertical-align: middle;
}
.rp-led-pic--face { object-fit: cover; border-radius: 4px; }
.rp-led-pic--status { object-fit: contain; }
.rp-led .rp-hist-why-none.rp-led-pic { display: inline-grid; font-size: 11px; border-radius: 5px; }
.rp-led .rp-hist-why-none.rp-led-pic[data-kind="rune"] { border-radius: 50%; }
.rp-led .rp-hist-who.rp-led-pic { --chip: 22px; display: inline-block; margin-block: -1px; }
/* The name's cap grows by the picture's 27px, or every picture cost a name
   its last letters ("Feather Dag…" where "Feather Dagger" used to fit) — and
   the table, which fills its pane to the pixel, finds that room in the Side
   column of the three readings where the side is a second fact about the row
   (in Turns it IS the row, and keeps its width). A player name is cut there
   anyway; the full one is in the row's tooltip and the Turns reading. */
.rp-led-card:has(> .rp-led-pic) { max-width: 227px; }
:is(.rp-led--cards, .rp-led--axies, .rp-led--fired) .rp-led-side { max-width: 150px; }
/* And a floor, because a cap alone gave nothing: the auto layout handed the
   room to the number columns and kept squeezing the names. 172px holds the
   picture and "Cucumber Slice+", the longest card name this battle plays. */
.rp-led--cards td.rp-led-card { min-width: 172px; }

.rp-led-hp     { color: hsl(var(--hit)); }
.rp-led-heal   { color: hsl(var(--mend)); }
.rp-led-shield { color: hsl(var(--ward)); }
.rp-led-eaten  { color: color-mix(in srgb, hsl(var(--ward)) 70%, var(--bulma-text-weak)); }
.rp-led-kills  { font-weight: 600; }

/* A second line under a number: what it was of, or what it never became.
   Under rather than beside, because it is the same quantity measured a second
   way and a reader comparing the column should meet the totals in a line. */
.rp-led-own,
.rp-led-spill {
    display: block;
    font-size: var(--fs-fine);
    font-weight: 400;
    color: var(--bulma-text-weak);
    opacity: 0.9;
}

.rp-led-spill { display: inline; margin-inline-start: 4px; }

/* THE TIDE — the one column that is drawn rather than written.

   A turn has two rows, one for each side, and the quantity they are arguing
   about is the same one. So the cell is split down the middle and each side's
   bar grows AWAY from that middle, with the two numbers meeting at the line:
   two rows of a turn make a butterfly across the same divide the board above
   is drawn across, and the shape of a battle — 534 against 12, then 74 against
   nothing — is legible without reading a digit.

   No hue on the bar. It is the same measurement on both sides; colouring them
   differently would say they were two different things, and which way it grows
   is the only difference, which is the true one. */
.rp-led td.rp-tide {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    min-width: 220px;
}

.rp-tide-half {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1 1 0;
    min-width: 0;
}

.rp-tide-half--l { justify-content: flex-end; }
.rp-tide-half--r { justify-content: flex-start; }

.rp-tide-bar {
    height: 9px;
    min-width: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, hsl(var(--hit)) 42%, transparent);
}

.rp-tide-n { color: hsl(var(--hit)); }

/* The line the two sides grow away from, drawn once down the column — on the
   header too, so it reads as an axis rather than as a border a cell happens to
   have. Scoped to the turns reading: the other three have an HP column and no
   divergence, and an axis under a one-directional number is a line that means
   nothing. */
.rp-led--turns th.rp-led-hp,
.rp-led--turns td.rp-tide {
    background-image: linear-gradient(var(--rail), var(--rail));
    background-size: 1px 100%;
    background-position: 50% 0;
    background-repeat: no-repeat;
}

/* And the header sits over its own axis rather than off to one side of it. */
.rp-led--turns th.rp-led-hp .rp-sort { justify-content: center; }

/* The quiet bar behind a ranking: how far along its column a row sits. Drawn
   from the trailing edge, where the numbers are, so it grows with the digits
   rather than away from them. Behind the text, always. */
/* `td > i` and not `.rp-led-share`: the stacking rule below is an element and
   two classes, and it was winning — every share bar was `position: relative`,
   which is to say a 0x0 nothing at the end of the cell. */
.rp-led td > i.rp-led-share {
    position: absolute;
    inset-block: 3px;
    inset-inline-end: 0;
    z-index: 0;
    border-radius: 2px 0 0 2px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    pointer-events: none;
}

.rp-led td > * { position: relative; z-index: 1; }
.rp-led td > i.rp-led-share { z-index: 0; }

/* The side's total line. Ruled off above rather than tinted: it is the same
   quantities one level up, not a different kind of row. */
.rp-led tfoot td {
    border-top: 2px solid var(--rail);
    border-bottom: 0;
    font-weight: 600;
}

.rp-led tfoot .rp-led-side {
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

/* An axie that did not make it to the end, on the name only: the numbers in
   that row are what it did while it was alive. */
.rp-led--axies tbody tr.is-dead .rp-led-card { opacity: 0.55; }

/* The turn an axie went down, beside its name. Mono, because it is a turn
   number and every other turn number on this page is. */
.rp-led-fell {
    margin-inline-start: 6px;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-weight: 400;
    color: var(--bulma-text-weak);
}

.rp-led-legend,
.rp-led-unknown {
    margin: 6px 2px 0;
    font-size: var(--fs-fine);
    color: var(--bulma-text-weak);
}

.rp-led-unknown { color: hsl(var(--hit)); }

@media (max-width: 640px) {
    /* Three columns off the phone, per reading, and not the same three: what a
       turn row is FOR is the four numbers only it has, while a card row is
       nothing without how many times it was played. The tide keeps its middle
       and gives up its width. */
    .rp-score-head { gap: 6px; }
    .rp-score-tabs { margin-inline-start: 0; }
    .rp-led td.rp-tide { min-width: 120px; }
    .rp-led--turns th:nth-child(7), .rp-led--turns td:nth-child(7),
    .rp-led--turns th:nth-child(8), .rp-led--turns td:nth-child(8),
    .rp-led--turns th:nth-child(9), .rp-led--turns td:nth-child(9) { display: none; }
    .rp-led--cards th:nth-child(5), .rp-led--cards td:nth-child(5),
    .rp-led--cards th:nth-child(8), .rp-led--cards td:nth-child(8),
    .rp-led--cards th:nth-child(9), .rp-led--cards td:nth-child(9) { display: none; }
    .rp-led--axies th:nth-child(5), .rp-led--axies td:nth-child(5),
    .rp-led--axies th:nth-child(7), .rp-led--axies td:nth-child(7) { display: none; }
    .rp-led-side { max-width: 90px; }
    .rp-led-card { max-width: 110px; }
}

/* THE BATTLE LOG -------------------------------------------------------------
   One row per step, in wire order: the owner's call (2026-08-22) once the rail
   had become the per-play reading — "a sequential complete log of all events".
   The grouped entry (a composed headline, the rail's rows laid across, the
   steps beneath) is gone; the rail does all of that. What is left is a log:
   the step's number, its type in the mono column, the sentence with the
   page's chips in it, and the figure on the right.

   The structure the reader still needs is drawn, not grouped: a sticky bar
   heads each turn; a record's head — the play, the keep, the turn's end, the
   ending — is a heavier row, a play's with the card's face on it; and every
   row indents by the wire's nesting depth, clamped at six, so a hit's shield
   reduction sits under its hit. */
/* `contain: layout` is for the 1,800-odd phrases the log keeps for screen readers
   (`.is-sr-only`, three a row on a 580-row battle, each absolutely positioned).
   With no box of the log's own to hold them, <body> was their containing block,
   and two things followed (found 2026-11-23):
     - the browser laid every one of them out again on EVERY layout of the page,
       so a step that changed one number on one tile paid for the whole log: a
       tile's HP reading rewritten cost 1.0-2.1ms of layout, against 0.04-0.4
       with the list as their box; over a 4x playback, a third of the main
       thread's time;
     - standing outside the log's scroll box they were not clipped by it, and the
       ones on rows scrolled out of sight lengthened the PAGE: 15,084px of
       document for a 2,261px page on a 576-row battle, twelve screens of
       nothing under the footer.
   On the list rather than its scroller or the section: all three cure both, and
   this one also gives the log a paint layer of its own, so a step on the board
   no longer walks the log to repaint (104 against ~200 ms a second of painting
   on the same playback). It moves nothing: every row's box, the list's and the
   scroller's scroll size are the same to the hundredth of a pixel, and nothing
   in a row is fixed-positioned (the status panel is parked on <body>). */
.rp-story { list-style: none; margin: 0; padding: 0 0 6px; contain: layout; }

/* And each row is the box of its own three. The cursor's row goes bold on every
   step, which lays the list out; with the list as the one box for all of them,
   all 1,800 phrases were placed again each time (0.79ms a step on that battle),
   and with a row holding its own only the rows that changed are (0.15ms). A row
   is a grid and a turn's bar is a flex line, so each was a formatting context
   of its own already, and a row ahead of the cursor a stacking context (it is
   faded): measured, no row's box moves. */
.rp-ev,
.rp-ev-ch { contain: layout; }

.rp-ev {
    --chip: 15px;
    --lvl: 0;
    display: grid;
    grid-template-columns: 3.4ch minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 10px;
    padding: 2px 12px 2px 8px;
    border-inline-start: 2px solid transparent;
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--bulma-text);
    cursor: pointer;
}
.rp-ev:hover { background: var(--bulma-scheme-main-ter); }
.rp-ev.is-future { opacity: 0.34; }

/* The cursor's row: the rail's spine and ink, so the two panels agree about
   where you are. */
.rp-ev.is-now {
    border-inline-start-color: var(--bulma-text);
    background: var(--bulma-scheme-main);
    font-weight: 600;
}

.rp-ev-i {
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-variant-numeric: tabular-nums;
    text-align: right;
    color: var(--bulma-text-weak);
    opacity: 0.6;
}

/* The sentence, indented by the wire's depth — 7px a level, six levels at most,
   which is what keeps a depth-8 shield reduction inside the column. Flow, not
   flex: a sentence with a picture at its head has to wrap AROUND the picture,
   and a wrapping flex line moves the whole sentence under it instead. */
.rp-ev-body {
    display: block;
    min-width: 0;
    padding-inline-start: calc(var(--lvl) * 7px);
}
.rp-ev-body > .rp-now-kill { margin-inline-start: 6px; vertical-align: middle; }

/* The figure: mono, tabular, in the hue of what it is. */
.rp-ev-n,
.rp-ev-t {
    font-family: var(--mono);
    font-size: var(--fs-small);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.rp-ev-t { color: var(--bulma-text-weak); opacity: 0.7; font-size: var(--fs-fine); }
/* The figure is the row's ONLY copy of its number (the sentence draws the verb
   in its place — LOG_FIG in replay.js), so it is set at the text's size and
   bold, with its unit after it: −12 ♥, +81 ⛨. */
.rp-ev-n { font-size: var(--fs-base); font-weight: 700; }
.rp-ev-n-u { margin-inline-start: 3px; font-size: 0.85em; }
/* A hit through a shield: two figures, shield then HP (−28 ⛨ −6 ♥). */
.rp-ev-figs {
    display: inline-flex;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
}
.rp-ev-n--hit { color: hsl(var(--hit)); }
.rp-ev-n--mend { color: hsl(var(--mend)); }
.rp-ev-n--ward { color: hsl(var(--ward)); }
.rp-ev-n--spark { color: hsl(var(--spark)); }

/* Energy and an energy fragment, told apart the way the field tells them apart:
   by SHAPE, in the one spark hue. The orb is a filled disc; the burst meter is a
   ring of ticks; so an energy figure wears a filled spark disc and a fragment a
   dashed spark ring — the mark the field's own fragment badge (.rp-rem) wears —
   and the fragment's number is set in grey. The same hue on both says "the same
   resource family"; the shape and the ink say which. */
.rp-ev-n--spark::before,
.rp-ev-n--frag::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-inline-end: 4px;
    border-radius: 50%;
    vertical-align: 0;
    box-sizing: border-box;
}
.rp-ev-n--spark::before { background: hsl(var(--spark)); }
.rp-ev-n--frag { color: var(--bulma-text-weak); }
.rp-ev-n--frag::before { border: 1.5px dashed hsl(var(--spark)); }

/* Only the three kinds that ARE a magnitude take a hue on their words. `mark`
   (a status), `max` and the quiet rows read as ordinary text — a red Cleanse
   would say "harm" about a help. */
.rp-ev[data-kind="hit"] .rp-ev-text { color: hsl(var(--hit)); }
.rp-ev[data-kind="mend"] .rp-ev-text { color: hsl(var(--mend)); }
.rp-ev[data-kind="ward"] .rp-ev-text { color: hsl(var(--ward)); }
.rp-ev[data-kind] .rp-tale-who { color: inherit; }

/* A status is categorical, not a magnitude: it gets a dot before its sentence
   rather than coloured words, because whether it helps depends on the status
   and not on the step. Neutral, Rune and Secret stay unmarked, as on the tiles. */
.rp-ev[data-kind="mark"] .rp-ev-body::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-inline-end: 7px;
    border-radius: 50%;
    vertical-align: middle;
    background: var(--bulma-text-weak);
    opacity: 0.5;
}
.rp-ev[data-status="Debuff"] .rp-ev-body::before,
.rp-ev[data-status="IntangibleDebuff"] .rp-ev-body::before { background: hsl(var(--hit)); opacity: 0.85; }
.rp-ev[data-status="Buff"] .rp-ev-body::before,
.rp-ev[data-status="IntangibleBuff"] .rp-ev-body::before { background: hsl(var(--mend)); opacity: 0.85; }

/* How many times a row happened, when a run of identical steps is one row. A
   pill rather than a bare ×N, because it is the one thing on the row that is
   not the sentence; mono and tabular because it is a count. The span is on
   hover. */
.rp-ev-times {
    display: inline-block;
    margin-inline-start: 7px;
    padding: 0 6px;
    border: 1px solid var(--rail);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
    color: var(--bulma-text-weak);
    vertical-align: middle;
    white-space: nowrap;
}
.rp-ev.is-now .rp-ev-times { color: var(--bulma-text); border-color: var(--bulma-text-weak); }

/* A quiet row: a step the decoder has no sentence of its own for, or one it
   marked quiet. Smaller and dimmer, never folded, never dropped. */
.rp-ev.is-quiet { font-size: var(--fs-small); color: var(--bulma-text-weak); }

/* A record's head is a seam in the sequence: a hairline above, the words bold.
   A play carries the card's face at 26px beside its sentence — the one picture
   the log anchors on, the same square art the rail panels its rows with. */
.rp-ev[data-head] { margin-top: 3px; padding-top: 4px; border-top: 1px solid var(--rail); }
.rp-ev[data-head] .rp-ev-text { font-weight: 600; }
.rp-ev[data-head="play"] { padding-bottom: 4px; }
.rp-ev[data-head="endturn"] .rp-ev-text,
.rp-ev[data-head="startturn"] .rp-ev-text { font-weight: 500; color: var(--bulma-text-weak); }
.rp-ev[data-head="endgame"] .rp-ev-text { color: hsl(var(--win)); }
.rp-ev.is-kill .rp-ev-text { font-weight: 600; }

.rp-ev-face {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-inline-end: 7px;
    border-radius: var(--r-badge);
    vertical-align: middle;
}
.rp-ev-face img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--r-badge);
    object-fit: cover;
    box-shadow: var(--lift-1);
}
.rp-ev-face.is-blank { border: 1px dashed var(--rail); }

/* The turn's bar: the rail's chapter bar, sticky over the log's own scrollport.
   Opaque — two bars stack at the top while a turn scrolls under the next, and a
   translucent ground bleeds one through the other. */
.rp-ev-ch {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 5px 12px 5px 8px;
    border-block: 1px solid var(--rail);
    border-inline-start: 3px solid transparent;
    background: var(--bulma-scheme-main-bis);
    cursor: pointer;
    transition: background-color var(--ease-state), border-color var(--ease-state);
}
.rp-ev-ch:first-child { border-top: 0; }
.rp-ev-ch:hover { background: var(--bulma-scheme-main-ter); }
.rp-ev-ch::after {
    content: "";
    order: 1;
    flex: 1 1 auto;
    height: 1px;
    background: var(--rail);
}
.rp-ev-ch-t {
    order: 0;
    flex: none;
    font-family: var(--mono);
    font-size: var(--fs-tiny);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
}
.rp-ev-ch-who {
    order: 2;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-fine);
    font-weight: 600;
    color: var(--bulma-text);
}
.rp-ev-ch-time {
    order: 3;
    flex: none;
    font-family: var(--mono);
    font-size: var(--fs-fine);
    font-variant-numeric: tabular-nums;
    color: var(--bulma-text-weak);
    opacity: 0.7;
}
.rp-ev-ch.is-turn { border-inline-start-color: var(--bulma-text); }
.rp-ev-ch.is-turn .rp-ev-ch-t { color: var(--bulma-text); }
.rp-ev-ch.is-future .rp-ev-ch-t,
.rp-ev-ch.is-future .rp-ev-ch-who,
.rp-ev-ch.is-future .rp-ev-ch-time { opacity: 0.34; }

/* The narrow and drawer overrides that used to drop the type column are gone with the column itself —
   every viewport now has the same three. */

/* A fighter named inside a sentence: the same disc the rail, the receipt and
   the board draw, at sentence scale, with the name it answers to beside it.
   This is what turns "axie 12012890 hits axie 226900 for 15" from two opaque
   ids into two pictures the reader has already met on the board — the ring and
   wash come from the shared [data-class] palette, so an axie is one colour
   everywhere it appears. */
.rp-tale-axie {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    /* Centred on the line like the card and status chips; at 20px a portrait
       seated on the text's bottom stood well above the words. */
    vertical-align: middle;
    /* 20px (owner, 2026-11-01: "increase size axie icons"): the portrait is the
       axie's only name on the row now, so it is drawn big enough to be told
       from its neighbours, and hovering it lights the axie on the board. */
    --chip: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.rp-tale-axie .rp-hist-who { border-width: 1.5px; }


/* A status named inside a sentence, wearing the game's own icon.
   Kept as one inline-flex unit so the icon and the word never break across a
   line from each other — a wrapped "…loses 12 HP to [icon]\nBleed" reads as two
   different things. Centred on the line (2026-11-01): it used to sit its art ON
   the baseline, which lifted its name ~3px above the words around it; once the
   log's words became glyphs and discs of the same 15px, that lift was the one
   thing on the row out of line. */
.rp-tale-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: 600;
    color: var(--bulma-text);
}
.rp-tale-status img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    /* Nudged onto the text's optical baseline: an icon centred on the line box
       rides visibly high next to lower-case letters. */
    transform: translateY(0.5px);
    flex: none;
}

/* A borrowed card face, for the statuses the game never drew an icon for: Jinx,
   Confused, Strawberry and 48 others wear the picture of the card that applies
   them. See StatusCardArt.

   Marked rather than passed off as a status glyph, because it is not one. The
   game's icons are transparent round symbols; a card face is an opaque square
   illustration, and dropping one into the row unframed reads as a rendering
   fault. The radius and the ring say "a card, standing in" — the same language
   the hand uses for a card — and cost one rule per place an icon is drawn. */
.rp-tale-status img.is-face,
.rp-hist-st-one img.is-face,
.rp-hist-why img.is-face,
.rp-mark--icon img.is-face {
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgb(from var(--bulma-text) r g b / 0.22);
    object-fit: cover;                  /* the face is square; cover keeps it from letterboxing */
}
.rp-mark--icon img.is-face { border-radius: var(--r-chip); }

/* In the panel the face is 72px rather than 13px, where a hairline ring reads as
   a hairline crack. It keeps the corner radius and trades the ring for the same
   rarity glow every other .tt-art wears — at this size the shape is legible on
   its own and the glow is what says which family the picture belongs to. */
.rp-stip-card .tt-art.is-face {
    border-radius: 6px;
    object-fit: cover;
}

/* A rune is the gem alone — see statusChip(). Slightly larger than a status icon
   because it has no word beside it to give it presence, and a hair of padding so
   two runes in one sentence do not read as one wide smear. */
.rp-tale-status.is-rune img { width: 15px; height: 15px; }
.rp-tale-status.is-rune { padding: 0 1px; }

/* Both the log's chips and the tiles' badges are hoverable and keyboard-reachable,
   so both say so. The outline is the focus ring the rest of the page uses. */
.rp-tale-status[data-status],
.rp-mark[data-status] { cursor: help; }
.rp-tale-status[data-status]:focus-visible,
.rp-mark[data-status]:focus-visible {
    outline: 2px solid hsl(var(--ward));
    outline-offset: 1px;
    border-radius: 3px;
}

/* ONE panel for every status on the page, parked on <body> and moved to whatever is
   hovered — see mountStatusTip(). `position: fixed` rather than absolute: the log
   scrolls inside its own box and clips its overflow, so a panel positioned against
   the document would be cut off on the lines nearest the panel's edges, which is
   most of them. Fixed takes it out of every scroll box at once.

   `pointer-events: none` so the panel can never sit under the cursor and steal the
   mouseout that closes it — with a 250px box over a 13px chip that is not an edge
   case, it is what happens whenever the panel opens downwards. */
/* ═════════════════════════════════════════════════════════════════════════
   THE STATUS PANEL  (mountStatusTip in replay.js)

   The site already has a tooltip for an Origins item — templates/tooltip/
   rune.jte and charm.jte, styled as .tt-card in common.css: one card split
   down the middle, identity on the left, rules on the right. A status IS an
   Origins item, so it uses that card rather than a fourth design of its own.
   Everything visual therefore comes from common.css, and what is left here is
   only the three things a status has that a rune and a charm do not.

   FIRST, kind takes the slot rarity holds. That is the honest analogue rather
   than a borrowed one: rarity is the categorical tier that colours an item's
   shapes, and "does this help me" is the categorical tier of a status. Setting
   --tt-rare is the whole hookup — the glow under the art, the diamond beside
   each line and the pill above the art all follow it, and none of them writes
   the tier in words twice.

   The hues are written out rather than pulled from --hit/--mend, which are
   declared on `.rp` and do not resolve out here on <body>; the same reason the
   panel had to declare its own tokens before this. They are used on shapes
   only, never on type, so the theme-tuned variants those tokens carry for
   contrast are not needed.

   Rune, Secret and Neutral stay UNCOLOURED, which is not an omission — it is
   the log's own rule (see the log's rows and .rp-ev-body::before). Only harm
   and help earn a hue anywhere on this page, and a violet invented for runes
   here would be a fourth vocabulary for a reader to learn.

   SECOND, the pill above the art carries a word rather than stars. A rune's
   pill counts its level and a charm's states its tier; a status has neither,
   so the slot says which kind it is — the one fact the picture cannot.

   THIRD, .rp-stip itself is now only a positioner. It has no surface of its
   own; the card inside carries the border, background, shadow and entrance.
   ═════════════════════════════════════════════════════════════════════════ */
.rp-stip {
    position: fixed;
    z-index: 60;
    width: max-content;
    pointer-events: none;
}

.rp-stip[hidden] { display: none; }

/* Under `.rp-stip` so it outranks `.tt-card`'s own default: see the note on
   `.rp-pile-note` — common.css is the later stylesheet and wins every tie. */
.rp-stip .rp-stip-card { --tt-rare: var(--tt-ink-quiet); }

.rp-stip-card[data-kind="Debuff"],
.rp-stip-card[data-kind="IntangibleDebuff"] { --tt-rare: hsl(4 78% 58%); }
.rp-stip-card[data-kind="Buff"],
.rp-stip-card[data-kind="IntangibleBuff"] { --tt-rare: hsl(145 55% 42%); }
/* A charm the coach's report names opens this panel too, tinted by its rarity
   as the hand card's charm block (and the site's charm card) are. */
.rp-stip .rp-stip-card[data-rarity="Common"] { --tt-rare: var(--common-color, #747474); }
.rp-stip .rp-stip-card[data-rarity="Rare"]   { --tt-rare: var(--rare-color,   #62c36c); }
.rp-stip .rp-stip-card[data-rarity="Epic"]   { --tt-rare: var(--epic-color,   #5dbdc8); }
.rp-stip .rp-stip-card[data-rarity="Mystic"] { --tt-rare: var(--mystic-color, #a453f6); }

/* The kind, in the pill the item card gives to stars. Sized and seated like
   .tt-stars so the identity column keeps its rhythm — badge, art, name, one
   step apart — and tinted from --tt-rare so it agrees with the glow and the
   bullets without repeating them at full strength. */
.rp-stip-kind {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1.5;
    text-transform: lowercase;
    color: color-mix(in srgb, var(--tt-rare) 82%, var(--tt-ink));
    background: color-mix(in srgb, var(--tt-rare) 14%, var(--tt-surface));
    border: 1px solid color-mix(in srgb, var(--tt-rare) 34%, transparent);
}

/* A secret is drawn dashed on the tiles because its identity is the thing being
   withheld. The panel says it the same way rather than inventing a second sign. */
.rp-stip-card[data-kind="Secret"] .rp-stip-kind { border-style: dashed; }

/* Two facts in the cap row when a badge has both. A middle dot rather than a
   comma: they are not a list, they are two unrelated notes sharing a line. */
.tt-cap-sep {
    padding: 0 0.4em;
    opacity: 0.5;
}

/* No bullet: these are notes about what the site knows, not rules the item has. */
.rp-stip-none,
.rp-hcard-none {
    display: block;
    color: var(--tt-ink-quiet);
    font-style: italic;
}


/* Expired ------------------------------------------------------------------ */
.rp-gone { max-width: 560px; margin: 40px auto; text-align: center; }
.rp-gone-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.rp-gone-body { color: var(--bulma-text); line-height: 1.6; }
.rp-gone-hint { margin-top: 12px; font-size: var(--fs-lead); color: var(--bulma-text-weak); line-height: 1.6; }

/* Loading ------------------------------------------------------------------ */
/* The battle is fetched after the frame (see dataUrl in replay.jte): this line holds its place, and says why
   when it cannot come. Removed from the DOM once the board has its data. */
.rp-loadnote { margin: 12px 0; text-align: center; font-size: var(--fs-lead); color: var(--bulma-text-weak); }
.rp-loadnote.is-error { color: var(--bulma-danger); }

/* Narrow ------------------------------------------------------------------- */
/* Phones ====================================================================

   The breakpoints above this are all on WIDTH, and that is exactly what was
   wrong on a phone: a 844x390 handset in landscape is wider than every one of
   them, so it was served the full desktop layout — and then ran out of height,
   which nothing was watching. The field alone wants 513px in a 390px viewport.

   So the landscape rules below key on HEIGHT. That is the axis that actually
   runs out, and it catches the case regardless of how wide the handset is. */

/* ---- portrait: invite a rotate ---------------------------------------- */
.rp-rotate { display: none; }

@media (orientation: portrait) and (max-width: 820px) {
    .rp-rotate {
        display: grid;
        place-items: center;
        position: fixed;
        inset: 0;
        z-index: 100;
        padding: 24px;
        background: var(--bulma-scheme-main);
    }
    /* Dismissed for the session. Set on <html> so it survives nothing else
       having loaded yet. */
    html.rp-upright .rp-rotate { display: none; }
    /* No sparkline on a phone held upright either. It is context, not state — the
       one thing on a tile that is read once and then ignored — and here it is 20px
       plus its gap under every one of six bars on a page that is already a
       4,150px scroll. Landscape already turned it off; this is the same call for
       the same device the other way up. The desktop keeps it. */
    .rp-spark { display: none; }
}

.rp-rotate-card { max-width: 340px; text-align: center; }

.rp-rotate-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    border: 1px solid var(--rail);
    font-size: 1.4rem;
    color: var(--bulma-text-weak);
    /* The one place a rotation is worth animating: it is the instruction. */
    animation: rp-rotate-hint 2.4s ease-in-out infinite;
}

@keyframes rp-rotate-hint {
      0%, 55%, 100% { transform: rotate(0deg); }
     70%,  90%      { transform: rotate(-90deg); }
}

.rp-rotate-h {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bulma-text);
}

.rp-rotate-b {
    margin: 0 0 18px;
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--bulma-text-weak);
}

.rp-rotate-go {
    padding: 9px 16px;
    border: 1px solid var(--rail);
    border-radius: var(--r-card);
    background: none;
    font-size: var(--fs-lead);
    color: var(--bulma-text);
    cursor: pointer;
}

.rp-rotate-go:hover { background: var(--bulma-scheme-main-ter); }
.rp-rotate-go:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 2px; }

/* Where the browser can turn the screen itself (replay.js adds .rp-can-turn): the phone icon is a
   button too, and "Rotate screen" is the prompt's first answer, filled, above the quiet way out. */
.rp-can-turn .rp-rotate-icon {
    cursor: pointer;
    border-color: var(--bulma-info);
    color: var(--bulma-info);
    -webkit-tap-highlight-color: transparent;
}
.rp-can-turn .rp-rotate-icon:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 3px; }

.rp-rotate-turn {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: var(--r-card);
    background: var(--bulma-info);
    font-size: var(--fs-loud);
    font-weight: 700;
    color: var(--bulma-info-invert, #0a0a0a);
    cursor: pointer;
}
.rp-rotate-turn[hidden] { display: none; }
.rp-rotate-turn:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: 2px; }

.rp-rotate-no {
    margin: 0 0 14px;
    font-size: var(--fs-base);
    line-height: 1.5;
    color: var(--bulma-text-weak);
}

@media (prefers-reduced-motion: reduce) {
    .rp-rotate-icon { animation: none; }
}

@media (max-width: 720px) {
    .rp-field { grid-template-columns: 1fr; }
    .rp-vs { justify-self: center; padding: 2px 0; }
    .rp-side--right { text-align: left; }
    .rp-side--right .rp-side-name,
    .rp-side--right .rp-moon,
    .rp-side--right .rp-axie { flex-direction: row; }
    /* Both sides now read left-to-right, so both carets point the same way and both
       crescents sit at the same margin. */
    .rp-side--right .rp-side-name::before { content: "\25B8"; }
    .rp-side--right .rp-moon { align-self: flex-start; }
    /* Both teams read left-to-right here, so the right team's numbers go back to
       the end of their line with the left team's — one column of tiles, one
       alignment, and the crest still has its corner. */
    .rp-side--right .rp-hp-read { justify-content: flex-end; }
    /* The badge's mirror has to come back with the row it mirrors. Both teams read
       LTR in this block, so the shield falls after the numerals on both — left as
       it was, the right team's badge sat on the far side of its numbers from a bar
       that is no longer beside them. */
    /* Three tiles across a 400px phone leaves a 94px content box, which the old
       one-row layout could not hold: a bar, seven characters and a four-digit
       badge did not fit however they were sized, and the badge ran past the tile.
       Two rows fixed it by itself — 94px is plenty for the widest read on a line
       of its own, and the bar underneath is 94px instead of 25. */
    .rp-axie-art { width: 62px; height: 47px; }
    .rp-log { max-height: 60vh; }
}

/* ---- landscape on a short screen: the board IS the screen -------------- */
@media (max-height: 540px) and (orientation: landscape) {
    /* Teams face each other, whatever the width. The max-width rule above stacks
       them, which is right in portrait and wrong here: the whole reason to hold a
       phone sideways is to get the two sides on one screen.

       THE LANE. The middle column is 96px rather than the width of the word "vs",
       and the play being watched moves into it — the live card, and the receipt
       under it, BESIDE the ranks instead of below them. The one axis a landscape
       phone has spare is width: the field's own gutter was 17.41px of nothing
       between two boards, and the two objects that had been pushed off the bottom
       of a 260px band fit in it for free. What it costs is 30px a board
       (386.42 -> 356), paid back below by the inset and the HP bar. */
    /* Not the sparkline, here. It is 20px a tile of a board that is already
       measured to the pixel in this state — six tiles is 120px of a 356px board
       — and it is the one thing on a tile that is context rather than state.
       It comes back the moment the phone is upright, where the board is not the
       constraint. */
    .rp-spark { display: none; }
    .rp-field {
        grid-template-columns: 1fr 96px 1fr;
        gap: 8px;
        /* THE TWO SIDES ARE ONE HEIGHT. The desktop starts them at the top and
           lets each be as tall as its own content, and here that put a one-rank
           side's hand 89px above a two-rank side's — the two hands, the two piles
           rows and the two turn boxes at different heights on a screen whose
           whole idea is that the two teams face each other. Stretched, both sides
           are as tall as the taller one, `.rp-side` hands the difference to its
           form row, and everything under the ranks sits on the same line on both
           boards, whatever the formations. The lane keeps `align-self: start`
           and does not stretch. */
        align-items: stretch;
        /* THE HEADER BAND'S HEIGHT, stated once for the two rules that need it.
           `.rp-side` gives it to the grid's first row; `.rp-lane` adds the side's
           row gap to it and anchors its own top edge to the sum. Both live in this
           block, they have to agree, and they used to agree by a hand-added 25 in
           the lane that restated 19 and 6 from a rule fifty lines away. On the
           field because it is the nearest thing both of them are inside. */
        --rp-band-h: 19px;
    }
.rp-side--right { text-align: right; }
    .rp-side--right .rp-side-name,
    .rp-side--right .rp-moon { flex-direction: row-reverse; }
    /* The sides face each other again, so the read goes back to the inner edge. */
    .rp-side--right .rp-hp-read { justify-content: flex-start; }
    .rp-side--right .rp-side-name::before { content: none; }

    /* THE HEADER BAND: who, then everything that is true of them, on ONE line.
       The player, the Blood Moon clock, the team's own statuses and the team name
       used to be four stacked rows costing 94.37px of a 260px band; they are four
       cells of one 19px row here and nothing is dropped — the team name takes
       whatever slack is left and keeps the ellipsis it already had.

       It also makes the column a CONSTANT. The moon appears mid-battle and a team
       status stands mid-battle, so the field used to grow +26.23px and +27px
       partway through a watch — the board sliding further under the pinned
       transport while you scrubbed, which is exactly the movement the turnbox
       reserve and the fixed-height hand exist to prevent. Measured over a full
       sweep of every gallery battle, min = max. */
    .rp-side {
        display: grid;
        grid-template-columns: auto auto auto minmax(0, 1fr);
        /* The band is STATED, not discovered. Left to `auto` it is 18.23px on a
           battle where no team status ever stands and 20.23px on one where the
           team strip reserves its row — a 2px difference between battles, and the
           lane beside it is anchored to where the board starts. --rp-band-h is one
           line of the header's own type; everything else in the row is shorter,
           and the lane reads the same property rather than restating the sum. */
        /* The FORM ROW takes whatever height the other side needs and this one
           does not: `minmax(0, 1fr)` rather than `auto`, so the three rows under
           it are pushed to the same line on both boards (see `.rp-field` above),
           and the form stretches into the row (below) so its two ranks can hold
           the desktop's `1fr 1fr` again. On a two-rank side nothing moves — the
           row is exactly its content. */
        grid-template-rows: var(--rp-band-h) minmax(0, 1fr) auto auto auto;
        column-gap: var(--sp-3);
        row-gap: var(--sp-3);
        align-items: center;
    }
    /* The team strip comes down to the badge size this breakpoint already uses on
       the tiles — 13px, not the desktop's 19 — so it cannot be what sets the band. */
    .rp-team-marks.is-used { min-height: 13px; }
    /* A player name is free text and some of them are long. In a column it wrapped
       and the side simply grew; on one line it would either wrap into the board or
       push the team name out of the row, so it ellipsises like the team name beside
       it and the row holds. */
    .rp-side-name  { grid-row: 1; grid-column: 1; margin: 0; min-width: 0; overflow: hidden; }
    .rp-side-name a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rp-moon       { grid-row: 1; grid-column: 2; margin: 0; align-self: center; }
    .rp-team-marks { grid-row: 1; grid-column: 3; margin: 0; align-self: center; }
    .rp-side-team  { grid-row: 1; grid-column: 4; margin: 0; }
    .rp-form       { grid-row: 2; grid-column: 1 / -1; align-self: stretch; }
    .rp-piles      { grid-row: 3; grid-column: 1 / -1; margin: 0; }
    .rp-turnbox    { grid-row: 4; grid-column: 1 / -1; margin: 0; }
    .rp-hand       { grid-row: 5; grid-column: 1 / -1; margin: 0; }
    /* Mirrored, like every other paired thing on this page: the player is against
       the outer edge on both sides and the qualifiers read inwards from it. */
    .rp-side--right { grid-template-columns: minmax(0, 1fr) auto auto auto; }
    .rp-side--right .rp-side-team  { grid-column: 1; }
    .rp-side--right .rp-team-marks { grid-column: 2; }
    .rp-side--right .rp-moon       { grid-column: 3; align-self: center; }
    .rp-side--right .rp-side-name  { grid-column: 4; }

    /* THE PAGE TAKES THE SCREEN --------------------------------------------
       This breakpoint already removes the page's own <h1>, the history rail, the
       caveat and the tier badge. The last thing standing between the board and
       the screen was the SITE header — one fixed 54px bar — and here it goes too.

       Three facts make that two declarations rather than a project: the bar is one
       element, its height is one custom property, and the space it reserves is one
       Bulma rule reading that same property (`body.has-navbar-fixed-top`). And
       `replay.css` is linked by `replay.jte` and by nothing else, so a rule written
       here cannot reach another page.

       THE SPECIFICITY TRAP, which is real: replay.jte links this file BEFORE
       common.css, so a bare `.sh { display: none }` is a source-order tie that
       common.css's `.sh { display: flex }` wins. The rule needs a second simple
       selector — and a body class is the right one anyway, because the mode has to
       be togglable and because a media query adds no specificity of its own, which
       is the lesson `.rp-kit` and the lane's card sheet already record in this file.

       The class is written by replay.js off this same media query, so the two can
       never disagree about which layout is on screen. If the script never runs the
       class is absent, the header stays, and the page is the one it was: every
       number below moves together, and none of them moves on its own. */
    body.rp-imm .sh { display: none; }
    body.rp-imm.has-navbar-fixed-top { padding-top: 0; }

    /* The chrome, as two numbers instead of two constants restated by everything
       that has to avoid it: the fixed site nav above, and the pinned transport
       below. Both are declared once here and read by the panels that float in the
       band between them — the same move the lane made when it replaced a
       hand-added 25 with `calc(var(--rp-band-h) + var(--sp-3))`.

       --rp-tr is the transport's BOX, which is now the whole of it: the bar is
       fixed to the bottom of the viewport rather than sticky in the flow, so what a
       floating panel has to clear and what the page has to reserve are the same
       number. 390 − 4 of page padding − 96 of bar leaves the band at 290, and 412 −
       4 − 96 leaves 312. (Stage 3a measured 286 and 308 for these, with the bar's
       own 4px margin counted against the band; it now goes into the reservation on
       `body` instead, which is where the transport's rules below spell it out.)

       --rp-tr IS NOW A STARTING VALUE AND NOT THE ANSWER. replay.js observes the
       bar and writes its measured border-box height into this same property on
       `body`, where an inline style wins over both declarations; these two stay as
       what the page uses before that runs and on an engine with no
       ResizeObserver. At 844x390 and 915x412 the measurement IS 96 and nothing
       moves — what it buys is the narrow landscape phone below the wrap threshold,
       where the row takes a second line and the declared 96 was 50px short. See
       `writeTransportHeight` in replay.js, and the note at the wrap rule below. */
    body { --rp-nav: 54px; --rp-tr: 72px; }
    body.rp-imm { --rp-nav: 0px; --rp-tr: 96px; }

    /* And the third piece of chrome, which is the two drawer pull tabs. The nav is
       above the field and the transport is below it; these stand ON its two short
       edges, half-way down, and until now the field was laid out as though they
       were not there. One number, declared beside the other two and read by both
       rules that have to agree about it: the tab's own width, and the inset the
       three board rows that reach that far out now keep — see THE THREE ROWS
       UNDER THE RANKS, immediately below. */
    body { --rp-tab: 18px; }

    /* THE THREE ROWS UNDER THE RANKS KEEP OFF THE PULL TABS -----------------
       The drawers' two tabs are 18px of chrome fixed to the screen's short edges,
       half-way down, and the page's own padding is 10 — so the outer 8px of both
       boards was drawn under them. Not a graze and not one row: swept over 10
       battles at seven landscape sizes, what a tab stood on was the ENERGY ORB
       (122.5px² of a 30px gauge at 915x412, and the whole of its outer quarter at
       960x540), the FIRST CARD of the turn's plays row on both sides, and the
       FIRST CARD of the reader's own hand with its cost and charm badges. The orb
       is the one that reads as broken, because a gauge with a bar across it is a
       gauge you cannot read.

       ONE TAB'S WIDTH, INSIDE THE PAGE'S OWN EDGE, so the row begins where the tab
       ends plus the 10px the page was already paying — a gap, not a graze, and no
       new number to keep in step with `--rp-tab`.

       THE RANKS DO NOT PAY IT, and that is the whole reason this is three rows
       rather than 14px of page padding. A tile is the one object here with no
       width to give: its badge strip wraps at a fixed count, and 14px narrower
       takes that count from 7 to 6 at 844x390 — measured over 23,342 fighter-steps
       in four battles (the corpus's worst, `0000ad57…`, among them), 2.30% carry
       7 or more badges and 4.02% carry 6 or more, so paying the gutter out of the
       board would have made a tile grow mid-scrub on 75% more steps than it does
       now. That is the defect THE SEALED SCREEN spends two paragraphs on, bought
       to fix an overlap in rows that have the width spare. And the ranks are clear
       of the tabs already, by their own geometry rather than by luck: the tab's
       band is the middle 72px of the screen, the back rank ends above it and the
       front rank is inset 4% of the column.

       SWEPT AFTER, over the same 10 battles x 7 sizes x 6 cursor positions: at
       844x390, 915x412, 740x360, 960x540 and 1024x500, NOTHING that paints is
       under either tab. Two contacts survive below 390 and both are the same
       object — `.rp-class`, the 15px crest pinned 6px OUTSIDE its tile's bottom
       outer corner, which no inset of the rows can move: 7.6px² of one crest at
       667x375, and crests plus 1px of the remnant read at 568x320, where a 386px
       board is in a 320px screen and the seal is already clipping 66px of it.
       Both measure the same before this change as after it.

       WHAT THE THREE ROWS GIVE UP: nothing from the resource row, which is 233px
       of a 391.5px column; and the plays row and the hand shrink to fit rather
       than wrap, so the fullest hand measured goes 37.78px a card to 35.78 and a
       hand of seven or fewer loses nothing at all — the shrink starts at the
       eighth card either way, because a card is 46px and eight never fitted.

       Behind `body.rp-imm` because that is the class the drawers mount with: a
       page whose script never ran has no tabs to keep off, and pays nothing. */
    body.rp-imm .rp-piles,
    body.rp-imm .rp-turnbox,
    body.rp-imm .rp-hand { padding-inline-start: var(--rp-tab); }
    /* Mirrored onto the outer edge, like everything else on that side. */
    body.rp-imm .rp-side--right .rp-piles,
    body.rp-imm .rp-side--right .rp-turnbox,
    body.rp-imm .rp-side--right .rp-hand {
        padding-inline-start: 0;
        padding-inline-end: var(--rp-tab);
    }

    /* THE BAND, re-derived. 390px of height, and the site nav is no longer in it:
       4px of the page's own padding, 290px of field, and a 96px transport pinned to
       the bottom edge. 312px of field at 915x412.

       The bill for the 54px the header gave back is on the transport: every one of
       its eleven tap targets goes to 44px, which costs 24px of the 54 — and the
       remaining +34 over today's 256 buys back the last thing this page records as
       going under the fold. On the worst board in 450 battles the piles and the
       energy orb clear the transport by 0.47px instead of sitting 29.53px under it.
       That 0.47 is not slack and is not called slack: at 44px targets the piles are
       the board's stated first casualty, on one board rather than on 73 of 450.

       Everything below is that band being spent: header out, the header cluster
       onto one line, ranks tightened, the piles as chips, the play into the lane.
       The board and its controls make screen one — and screen one is the ONLY
       screen there is now: the turn's earlier cards and the hand are in the band
       the playback gives back when it goes away, the log and the history rail are
       drawers, and the two things that were neither are gone. See THE SEALED
       SCREEN at the end of this file, which is also where the 4px of page padding
       named above is spent and where these band numbers are restated without it. */
    .rp {
        padding: 4px 10px 0;
        /* A phone held sideways puts a cutout on one SHORT edge — left or right —
           so the inset the page has to pay for here is a horizontal one. `max()`
           rather than an addition: 10px is what the page wants anyway and an inset
           smaller than that is already covered. Both measure 0px where there is no
           cutout, which is every screen this is developed on; the meta tag that
           makes them measure anything at all is in replay.jte.

           Physical left/right rather than the logical `padding-inline`, because
           `env(safe-area-inset-left)` is itself physical: pairing a logical
           property with a physical inset would put the notch's padding on the
           wrong edge the day this page is read right-to-left. */
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
    .rp-head { display: none; }

    .rp-stage { gap: 8px; }
    /* Not in the flow — it has no 278px column here and never had. What changed is
       where it went: the drawer below holds it now, out of the flow rather than out
       of the page, and `.rp-drawer .rp-hist` puts it back on at two classes to this
       one. This line is what the page falls back to if replay.js never runs, which
       is the state it shipped in before the drawer existed. */
    .rp-hist { display: none; }

    .rp-side-name { font-size: var(--fs-base); margin: 0 0 2px; }
    /* The band is one 19px row here, so the badge comes down to it rather than out of it (the owner,
       2026-08-22: show it on the phone too): a 15px emblem, the rank in the tiny mono, the stars beside
       — 17px tall with its hairline, inside the row, and `flex: none` so the player's name is what
       ellipsises when the two fight for the cell. */
    .rp-rank { gap: 4px; padding: 0 6px 0 2px; font-size: var(--fs-tiny); }
    .rp-rank-art { height: 15px; }
    .rp-rank-stars { gap: 3px; padding-inline-start: 5px; }
    .rp-rank-stars .fa-star { font-size: 8px; }

    .rp-form { gap: 4px; }
    /* The stagger, against a board that is now 356px instead of 386.42. 7% of the
       narrower column is still 25px of nothing at the end of every rank, and the
       three tiles want it more than the inset does: 4% keeps the front rank
       visibly forward and hands 10px back to the axies.

       BOTH numbers, and they are one number. The padding is not decoration — it is
       the room the front rank's negative end margin leans INTO, so a padding that
       does not equal the lean puts the front rank's inner tile out past the board's
       own edge. At 4% padding against a 7% lean it reached 10.68px into the lane
       and the panel drew over the tile. */
    .rp-form { padding-inline-end: 4%; }
    .rp-row--front { margin-inline-start: 4%; margin-inline-end: -4%; }
    /* THE ARENA TILE. Two things go, and the picture doubles.

       The name row is off the tile. It was 13.42px of "axie 11843865" under a
       36px axie — an id, on a screen where the picture is what a player reads a
       board by, and it is still the tile's aria-label, the loadout sheet's
       heading and the log's subject; on the desktop it stays. The status strip
       stands ON the picture (below), where the client puts it, instead of in a
       15px row reserved above it. What those two paid for is the art: 36 → 70px
       in the same 96px tile — 2 border + 5 padding + 70 art + 1 gap + 13 read
       + 5 bar = 96, so the seal at 844x390 is exactly as tight as it was and not
       one pixel more.

       Measured on the six axies of the reference battle at 4x: the render is a
       4:3 frame whose creature fills ~62% of its width and ~70% of its height,
       so `contain` at 36px showed a ≈30x25px creature; at 70px it is ≈58x49,
       3.8x the area, and nothing is cropped. Bottom-anchored, because the
       render's blank is at the top (12-29%) and the creature stands on its
       bottom edge, so the axie's feet meet its bar. */
    .rp-form .rp-axie { padding: 2px 4px 3px; gap: 1px; }
    /* The art gives up its 4:3 here, and it has to. A side that uses BOTH ranks —
       48.3% of them — needs two tiles inside roughly 215px. Letterboxed by
       `contain` rather than cropped, so an axie stays a whole axie.

       36 rather than 48 because the status strip above it is reserved on both
       ranks and costs 30px of a 336px budget. That is the trade taken
       deliberately: a rank whose pictures line up reads as a rank, and 12px of
       axie is the cheaper thing to give up.

       It was 38, and the last two are what the badges' counts cost: the strip
       went 13 to 15 so a stack and a clock could be read at arm's length. Same
       trade as the first ten, one turn further — a number nobody can read is
       worth less than two pixels of picture. */
    .rp-form .rp-axie-art { height: 70px; aspect-ratio: auto; object-position: 50% 100%; }
    .rp-form .rp-axie-name { display: none; }
    .rp-form .rp-hp-read { font-size: var(--fs-tiny); }
    /* THE SEAL PAYS NOTHING. This is the breakpoint the two-line HP block had to
       clear: the board is the screen here, the budget is 336px of a 390px phone,
       and a rank costs twice whatever a tile costs.

       The arithmetic, per tile. Before: a name line of 13.42, its 5px bottom
       margin, and a 13px row holding the bar and the read side by side — 31.42.
       After: the same name line, no margin (the tile's own 2px column gap is the
       separation, and it always was), a 13px read line, 1px of gap and a 5px bar
       — 32.42. One pixel a tile, two a rank, four a side, against a bar that goes
       from 26.44px of a 97.92px content box to the whole of it.

       The 27% that used to be here was the tightest number in the file: 30% of a
       104px box measured 31.13 + 2.66 + 70 = 103.79 and fitted by 0.21px, then
       the lane took 6px of the box and the bar paid the last 3%. Nothing is
       derived against a worst-case read any more, because nothing shares the
       read's line. */
    .rp-form .rp-axie-name { margin-bottom: 0; }
    .rp-form .rp-hp-track { height: 5px; }
    /* The badge shrinks with the row it sits in: 13px against the row's own
       13.42px line box, so it costs the 260px band nothing at all. Its
       digits drop a step to --fs-micro, where the mono advance falls from 6px to
       5px — 20px of digits instead of 24 — which is what makes a four-digit
       badge 24px wide here against 32px on the desktop. */
    .rp-shield {
        --shield-h: 13px;
        --shield-w: 12px;
        padding-inline: 2px;
        font-size: var(--fs-micro);
        margin-inline: 0 var(--sp-1);
    }
    /* `order` restated, not inherited: a short landscape screen narrower than
       720px matches the block above too, and that one cancels the swap because
       it un-reverses the row. This block reverses it again, so the badge has to
       go back to the far side of the numbers. */
    /* The read's floor comes down with the shield badge it reserves room for, and
       the two lines sit flush — the bar is 5px here and the read's own leading is
       already the separation. This is the pixel a tile the two-line block costs,
       handed straight back. */
    .rp-hp { gap: 0; }
    .rp-hp-read { min-height: 13px; }
    /* The reserved row shrinks with the badges, or it holds 19px of empty space
       above every axie on a screen with 336px to spend — and it is reserved on
       BOTH ranks, so it costs twice that.

       The badge's own box has to shrink, not just the picture inside it: the li
       is a fixed square and the img fills it, so sizing the img alone left the row
       exactly as tall as before.

       15 rather than 13, and the two pixels are the plates'. This is the screen
       that needed the count rework most — a phone held sideways at arm's length,
       where the old digits were 6.7px of haloed ink over the game's own art — and
       it is also the screen with nothing spare, so the two pixels are paid for
       below by the axie art rather than taken from the seal. Two 8px plates clear
       each other on a 15px edge by a pixel; on 13px they overlap, which is why the
       badge could not simply stay where it was. */
    /* The 1px gap stays, so a wrapped strip costs exactly what it did before. The
       plates hang one pixel and the gap is one pixel, so a plate reaches the next
       badge's outline and never past it. */
    /* On the picture, not above it. The strip used to hold a 15px row open on
       every tile — reserved on both ranks so pictures line up — and here it
       stands on the art's top edge instead, as the game draws it: absolute, so
       it costs the tile no height, and z-indexed over the render, which is what
       makes it legible on the axie's head. Empty on 39.4% of fighter-steps and
       then invisible; wrapping past six badges runs a second row down the
       picture, which is honest about an axie carrying that much. Still
       centred, still pressable for its tooltip. The tile's strip only: the team
       strip in the header band shares the class (`.rp-marks.rp-team-marks`) and
       keeps its cell. */
    .rp-marks { gap: 1px; }
    .rp-axie > .rp-marks {
        min-height: 0;
        position: absolute;
        top: 2px;
        left: 4px;
        right: 4px;
        z-index: 2;
    }
    .rp-mark--icon { width: 15px; height: 15px; }
    .rp-pop { font-size: var(--fs-base); }
    /* The plates step down one place on the scale with everything else.
       --fs-micro is 8px, where the mono advance drops from 6px a character to 5,
       so a two-digit count is 10px of numerals in an 8px-tall box. The overhang
       is the same single pixel it is everywhere. */
    .rp-mark-n, .rp-mark-t { font-size: var(--fs-micro); }
    .rp-mark--icon .rp-mark-n,
    .rp-mark--icon .rp-mark-t {
        min-width: 8px;
        height: 8px;
        padding: 0 1px;
    }

    /* A rank nobody stands in costs 118px of a 336px budget. On a desktop that
       was a preference; here it is the difference between the board fitting and
       not — and 51.7% of sides leave a whole rank vacant. */
    /* The desktop's `1fr 1fr`, kept — but it only ever costs what the OTHER side
       is already spending. This used to be `auto auto` ("a rank nobody stands in
       would cost 98px of a 390px screen"), which was true while each side was as
       tall as its own content. Now the form is stretched into a row the field
       sized to the taller side: on a two-rank side the two ranks are 96 each and
       nothing changes; on a one-rank side facing a two-rank side the vacant rank
       takes the row it would have taken anyway, so the occupied rank stands on
       the SAME LINE as the rank it faces — front against front, back against
       back — instead of floating 12px under the band. When both sides use one
       rank the form is its own content again and the vacant rank is its 8px
       token, as before: `1fr` is `minmax(auto, 1fr)`, and the token's 8px is
       its auto. */
    .rp-form { grid-template-rows: 1fr 1fr; }
    .rp-empty { min-height: 0; height: 8px; align-self: center; }

    /* Ten cards at 46px need 478px, which a landscape phone does not have — so
       here the ramp bottoms out lower and the row keeps its fixed height from
       the shrunk width. The name and furniture follow in container units. */
    /* 46 on a 390px screen and 58 on a 412px one, straight-line between: the
       card follows the screen's HEIGHT, because that is the axis the two-rank
       side has none to spare of. Measured: the two-rank board is 386.6px with
       46px cards, so a 412 screen has 25 spare and a 58px card (row 89.8, +18.6)
       fits with 6 to go; a 390 screen has 3.7 spare and keeps 46. 100dvh and
       not 100vh so it agrees with the seal, which is drawn to the same unit —
       and it moves only with the browser's own chrome, never with a scrub. */
    .rp-hand { --card-w: clamp(46px, calc(46px + (100dvh - 390px) * 0.55), 58px); gap: 2px; }
    /* Both the things this box used to hold are in the lane, so what is left of it
       is the turn's EARLIER cards at thumbnail size and the reserve is one
       thumbnail instead of one live card. It still reserves: the hand hangs under
       it and must not walk up and down while you scrub, below the fold or not. */
    .rp-turnbox { min-height: calc(30px * 706 / 456); margin-top: 4px; gap: var(--sp-3); }
    .rp-plays { gap: 2px; }
    /* The receipt in the lane is 92px wide — the floor `.rp-now` already declares —
       against the 110px it had in the turnbox. Everything inside comes down with
       it: an 11px chip is a coloured ring and a hint of a render, which is what
       identity is at this size — the tile beside it is 38px of axie. Four rows, a
       head and a fold line measure 71.72px, which is the worst case in 450
       battles and the height the lane is drawn to hold. */
    .rp-now {
        --chip: 11px;
        --bar-len: 22px;
        flex-basis: 110px;
        min-width: 76px;
        gap: 1px;
        font-size: var(--fs-micro);
    }
    .rp-now-head { gap: var(--sp-1); padding-bottom: 2px; }
    .rp-now-card { font-size: var(--fs-micro); }
    .rp-now-say { font-size: var(--fs-micro); }
    .rp-now-did { gap: 1px; }
    .rp-now-list { gap: 2px; }
    .rp-now-team { font-size: 0.42rem; gap: 2px; }
    .rp-now .rp-hist-why-none { width: 9px; height: 9px; font-size: 6px; }
    /* Scoped to the receipt: the rail is a screen away and hidden here, and the
       story below it has the width to keep its own spacing. */
    .rp-now .rp-hist-hit { gap: 0 var(--sp-1); }
    .rp-now .rp-hist-nums { gap: 2px; font-size: var(--fs-micro); }
    .rp-now .rp-hist-why img,
    .rp-now .rp-hist-st-one img { width: 9px; height: 9px; }
    .rp-now .rp-hist-who-i { font-size: 0.42rem; }
    /* The mark comes down with the tile it sits on: 38px of axie and a 13px
       badge row do not carry a 0.82rem glyph. */
    .rp-kill { font-size: var(--fs-small); }
    .rp-played { flex-basis: 30px; min-width: 16px; }
    /* 68, from 52. This is the card being watched, and its column has nothing
       under it — the receipt follows it down and the lane's foot is still
       ~80px above the wheel's home at the bottom-middle. The card-face assets
       are 152x235, so 68 CSS px is still crisp on a 2x phone. */
    .rp-played.is-live { flex: 0 0 68px; }
    .rp-played-charm { width: 11px; height: 11px; top: 2px; inset-inline-end: 2px; }
    .rp-played.is-live .rp-played-charm { width: 14px; height: 14px; }
    .rp-played-name { font-size: 0.36rem; inset: 70% 4% 6%; }
    .rp-hcard-name { inset: 70% 4% 6%; }

    /* THE LANE ITSELF ------------------------------------------------------
       One object holding the card being played and what it has done so far,
       standing between the two boards it is about. It is a grid item in the
       field's middle column, mounted by replay.js only while this media query
       matches — on a desktop and in portrait the element does not exist at all.

       Anchored to the TOP of the board (the header row plus the side's row gap),
       not centred: centred on what, exactly? The field's height includes
       the plays row and the hand that are deliberately below the fold, and a
       receipt that grows from one row to four would drag the card up half a row at
       a time as the play resolved. The card is where it was on the play's first
       step and where it will be on its last — the same argument that anchors the
       receipt to the inner edge on the desktop. */
    .rp-lane {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        /* The header band plus the side's row gap: the lane's top edge is the
           board's top edge, on every battle and at both viewports. Read from the
           two declarations that draw them rather than added up here — it was 25,
           which is a right answer to an arithmetic nobody could see, and the day
           the band or the gap moves the lane has to move with it. */
        margin-top: calc(var(--rp-band-h) + var(--sp-3));
        /* 4px into each of the field's 8px gutters, so the panel can hold a 92px
           receipt inside a 96px track without narrowing the boards by a pixel. */
        margin-inline: -4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        /* Side padding of 1px, not 3: the receipt's rows are the widest thing on
           this page that has to fit in 92px, and every pixel the panel keeps for
           itself comes off the bar track first and off the figures second. */
        padding: 3px 1px 4px;
        min-width: 0;
        position: relative;
        /* The beam is z-index 5, and measured over the reference battle 589 of its
           2,405 beams — 24.5% — pass through this panel's own box. Rather than a
           line printed over the card and the rows on all 589, the lane wears the
           TILES' surface and the beam passes cleanly behind it: no third elevation
           plane, and the receipt is a board object among tiles here rather than the
           frameless thing it is on the desktop. */
        z-index: 6;
    }
    /* Nothing to say, nothing drawn: turn 0 has no owner and the panel is not a
       hole in the board waiting to be filled. */
    .rp-lane.is-lit {
        border: 1px solid var(--rail);
        border-radius: var(--r-card);
        background: var(--bulma-scheme-main-bis);
    }
    /* Whose play this is, in the page's own turn vocabulary: the caret the side
       headers already use, pointing OUT at the owner's column, and sitting against
       that edge. Position and a glyph, never a hue — the sides carry no colour and
       the middle of the board is the last place to start. */
    .rp-lane[data-owner].is-lit::before {
        content: "";
        font-size: 0.7rem;
        line-height: 1;
        color: var(--bulma-text);
        align-self: stretch;
    }
    .rp-lane[data-owner="0"].is-lit::before { content: "\25C2"; text-align: left; }
    .rp-lane[data-owner="1"].is-lit::before { content: "\25B8"; text-align: right; }
    .rp-lane[data-owner="0"].is-lit { border-inline-start: 2px solid var(--bulma-text-weak); }
    .rp-lane[data-owner="1"].is-lit { border-inline-end: 2px solid var(--bulma-text-weak); }
    /* The card's own panel STOPS HANGING OFF THE CARD here, and only here. It hangs
       above the card everywhere else because everywhere else the card is near the
       floor of the page; the lane's card is at the top of the board, so opening
       upward ran the panel 212.61px off the top of the viewport, and opening
       downward — which is what this rule used to do — put its last 107.52px behind
       the pinned transport. There is no offset from a card at the top of a 390px
       screen that a 338px panel survives, because the panel is taller than the room
       either side of the card.

       So it is not positioned from the card at all: fixed and centred in the free
       band, the same treatment `.rp-kit` takes on a narrow screen for the same
       reason — a panel bigger than the thing it belongs to stops being a speech
       bubble and becomes a sheet you are reading. Nothing is lost by cutting it
       loose from the card: the panel is only ever up while that card is hovered or
       focused, so which card it belongs to was never in question.

       SPECIFICITY, the trap `.rp-kit` recorded: a media query adds none of its own,
       so an override has to match the anchoring it is replacing. `.is-live` is what
       makes this one (0,4,0) and not a source-order tie with
       `.rp-played.is-row-start .rp-hcard-tip` — and it is true of every card that
       ever stands in the lane, because replay.js puts only the live one there. */
    .rp-lane .rp-played.is-live .rp-hcard-tip {
        position: fixed;
        /* The free band is what the budget diagram draws: the chrome above, the
           chrome below, and the sheet centred on what is left.

           READ, not restated. This used to be `calc(50% - 9px)` — a right answer
           to an arithmetic nobody could see (54 of nav, 72 of transport, so the
           band's midpoint sits 9px above the viewport's) and a wrong one the
           moment either number moved. Both moved on the same day: the nav went to
           0 and the transport to 96, which would have centred the sheet 27px too
           low and capped it 54px too short. The two numbers are declared once at
           the top of this block and this rule asks them where the band is. */
        top: calc(var(--rp-nav) + (100vh - var(--rp-nav) - var(--rp-tr)) / 2);
        top: calc(var(--rp-nav) + (100dvh - var(--rp-nav) - var(--rp-tr)) / 2);
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        /* THE TAIL SCROLLS RATHER THAN CLIPS. The band between the two pieces of
           chrome is 294px at 844x390 and 316 at 915x412 — it was 264 and 286 before
           the site header came off — against a panel that measures up to 338.14, so
           on the tall cards nothing fits and something has to give. The cap is that
           band less --panel-off at each end: 278 and 300. Measured across all 1,672
           lane steps of the reference battle at both viewports: the shortest panel is
           160.36 and centres on the band's midpoint, and 0 of them leave the band at
           either end.

           The cap is on this box and not on the .tt-card inside it, which was the
           obvious place and is wrong: the card is a two-column flex row and its
           columns stretch to the card's height, so capping the card capped the
           columns — the identity column's surface stopped 62px short of the rules
           beside it and the card scrolled to a seam. Capping the wrapper leaves the
           card at its natural height and scrolls it as the one object it is.

           --panel-off at each end, the page's one offset for a thing that floats
           over the board: flush against the nav the panel reads as tucked under it
           rather than laid over the board, and it is the same 8px this panel already
           stood off the card it used to hang from. */
        max-height: calc(100vh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        max-height: calc(100dvh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        overflow-y: auto;
        /* A wheel that has run out of panel does not then take the page with it —
           the board behind is the thing the reader is holding their place in. */
        overscroll-behavior: contain;
        /* A scroll box clips its descendants' shadows but not its own, so the card's
           moves out here to survive; the radius comes with it or the clip squares off
           the card's corners. Both are the .tt-card's own values. */
        border-radius: 12px;
        box-shadow: var(--tt-shadow);
        /* Hoverable, so the tail below can actually be reached. The panel is a DOM
           child of the card, so a pointer that walks onto it is still hovering the
           card and the panel stays up. Everywhere else this stays `none`: a panel
           that hangs off its own card has nothing to reach. */
        pointer-events: auto;
    }
    /* A transform on an ancestor makes that ancestor the containing block for a
       fixed descendant, and the played card's entrance is 260ms of translate and
       scale. Measured with the panel open: it left the band entirely — top 54 to
       1.84, the head of the card under the site nav — and came back when the
       animation ended. The entrance exists to announce that a new card is
       resolving; it announces nothing to a reader who is already inside that
       card's panel, so while the panel is open the new card simply arrives. */
    .rp-lane .rp-played.is-live:hover,
    .rp-lane .rp-played.is-live:focus-within,
    .rp-lane .rp-played.is-live.is-open { animation: none; }
    /* An <ol> because what goes in it is the same <li> the plays row builds — one
       card, the live one, moved rather than rebuilt. */
    .rp-lane-card {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
        list-style: none;
        min-width: 0;
    }
    .rp-lane .rp-now {
        flex: none;
        width: 100%;
        min-width: 92px;
    }
    /* The bar is the glance and the figures are the fact, so when a row cannot have
       both the bar is what gives way — all the way to nothing, rather than holding
       its min-content and pushing a four-digit number out through the panel. It is
       the rail's own hierarchy, applied at 92px. */
    .rp-lane .rp-now .rp-hist-hit { grid-template-columns: var(--chip) minmax(0, 1fr) auto auto; }
    /* The word between two teams, back on the header line where the two player
       names are — it had been centred on the field's full height, which put it
       under the pinned transport and out of sight. */
    .rp-vs { grid-column: 2; grid-row: 1; align-self: start; text-align: center; }
    /* THE PILES AS CHIPS. 53.84px of column for five counts, and the height went
       on two things a phone does not need: a 42px stack drawn as an object, and a
       reserved caption line under it. Here the art is 20x26 BESIDE its count and
       the caption folds into the tooltip the pile already opens — which names it
       in full ("14 in the discard") and lists every card in it. 53.84 -> 30.

       The caption is folded, not dropped: it stays in the accessibility tree,
       clipped rather than display:none, because "draw" and "discard" are the
       names of these things and a screen reader is not short of vertical space. */
    .rp-piles { gap: 10px; }
    .rp-pile {
        flex-direction: row;
        align-items: center;
        gap: 3px;
        padding: 0;
        min-width: 0;
        font-size: var(--fs-micro);
    }
    /* The object beside its count here, not under it: this row is one chip tall. */
    .rp-pile-art { width: 20px; height: 26px; }
    .rp-pile:is([data-pile="banish"], [data-pile="exile"]) .rp-pile-art { width: 25px; }
    .rp-pile-n { position: static; transform: none; font-size: var(--fs-fine); }
    /* The orb comes down with them, and no further: the ring IS the burst meter
       and its 12-to-24 ticks have to stay countable, which is what stops this at
       30 rather than following the stacks down to 26. */
    .rp-nrg { width: 30px; height: 30px; }
    /* The badge goes back BESIDE the wheel here: this row is one chip tall,
       and a badge under a 30px wheel would make it the tallest thing in it.
       Mirrored on the right, so the wheel stays the outermost thing. */
    .rp-pile--nrg { flex-direction: row; gap: 4px; padding-inline-end: 6px; }
    .rp-side--right .rp-pile--nrg { flex-direction: row-reverse; }
    .rp-rem { font-size: var(--fs-micro); padding: 0 5px 0 3px; }


    /* The controls are the one thing you always need, so they stop scrolling
       away. The tape goes with them: it is the seek bar.
     *
     * FIXED, AND IT USED TO BE STICKY. `sticky; bottom: 0` holds an element off the
     * bottom of the scrollport only while its own flow position is below that — and
     * lets go the moment it rises above it. Measured on the reference battle at
     * 844x390: pinned at y 294 through a scroll of 104px, and then rising with the
     * page to y 248 at 150, y 195 at 203 and y 102 at the bottom of the scroll. The
     * study caught the far end of this at the old document's length (the transport
     * at y -95.67, gone entirely, at the top of the story); pulling the story and
     * the rail into the drawer took the document to 686px and did not fix it, it
     * only shortened the fall.
     *
     * Two things break when it lets go, and the second is the one that forced this.
     * The obvious one is that the controls are absent exactly when a reader has
     * scrolled to their hand. The other is that THREE PANELS DERIVE THEIR BAND FROM
     * `--rp-tr` — the lane's card, the loadout sheet, and now the hand card's — and
     * that arithmetic assumes the bar is at the bottom of the viewport. Measured
     * with it sticky: the hand card's sheet landed outside the band on 4 of the 6
     * verification battles, over a transport that had come up to meet it. A fixed
     * bar has no flow position to rise past, so the assumption is true at every
     * scroll position instead of the first 104px.
     *
     * What fixed costs is the space it used to hold, and `body` pays it back below
     * as padding — on `body` and not on `.rp`, because the footer is the last thing
     * in the document and it is the footer that would otherwise sit under the bar. */
    .rp-transport {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        margin: 0;
        /* Full-bleed now, so the page's own side padding is restated here — the row
           was 824px inside a 10px-padded `.rp` and is 824px inside its own 10px. The
           cutout on a short edge is paid for the same way `.rp` pays for it. */
        padding: 4px max(10px, env(safe-area-inset-right))
                 /* The home indicator runs along the bottom edge of a phone held
                    sideways, which is where this row is pinned. Added to the 6px
                    rather than `max()`ed with it: the indicator is an object ON the
                    screen, not an edge the screen stops at, so its inset is
                    clearance the row needs on top of its own padding. 0px everywhere
                    there is no indicator. */
                 calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
        background: var(--bulma-scheme-main);
    }
    /* The 4px is the gap the transport's margin used to draw between the board and
       the bar, kept now that the margin has nothing to push against. */
    body { padding-bottom: calc(var(--rp-tr) + 4px); }
    .rp-turn-no { display: none; }
    .rp-pos { font-size: var(--fs-fine); gap: 6px; }

    /* THE TRANSPORT EARNS ITS THUMB ----------------------------------------
       Eleven tap targets — twelve once the fullscreen control below is offered,
       fourteen once each of the two drawers claims one — and before the header
       came off not one of them cleared the 44px floor on
       either axis: the seven step buttons measured 28×28 and the four speed stops
       23×26. The module doc named this and declined to fix it by
       dieting the transport, which was the right call and never the only way to
       pay for it — the 54px the site header gave back pays for it in full, 24px of
       the 54, and leaves +30px of band over what this breakpoint had before.

       So the floor is met rather than approached: 0 of 14 under 44, measured on
       every battle in the verification set at both viewports. It is a floor
       and not a preference, which is why it is the first thing the reclaimed band
       is spent on and why 40px — which would have left the piles 6.47px of air
       instead of 0.47 — is not what ships.

       Gated on the immersive class, like everything else the header paid for: with
       the bar still standing these targets would take the band to 232 and push the
       board under the transport instead of lifting it clear. The bill and the
       thing it buys move together or neither moves. */
    .rp-tape { height: 22px; }
    .rp-btn { width: 28px; height: 28px; font-size: var(--fs-base); }
    .rp-controls { gap: 4px; }
    .rp-speed-btn { height: 26px; padding: 0 5px; font-size: var(--fs-tiny); }

    body.rp-imm .rp-btn { width: 44px; height: 44px; font-size: var(--fs-base); }
    body.rp-imm .rp-speed-btn { height: 44px; min-width: 44px; padding: 0 8px; }
    /* The tape goes to 28 and not to 44. It is a DRAG target, not a tap target —
       its segments are 43.88 to 135.66px wide and the finger that uses it is
       sliding along the battle, not aiming at one turn — so the floor the eleven
       buttons have to clear is not a claim being made about the scrubber. 28
       against 22 is what the band can spare once the buttons are paid for. */
    body.rp-imm .rp-tape { height: 28px; }
    body.rp-imm .rp-controls { gap: 6px; }
    /* THE ROW MUST NOT WRAP, and this is where that is checked rather than
       asserted: a second line takes the transport from 96 to 140 and the band
       from 290 to 246, below where it stood before any of this was spent.
       Measured at both phone viewports with every control at 44px, the fullscreen
       button mounted and BOTH drawer buttons in the row — 756 to 762px of controls
       in 824px of row at 844×390, and in 895 at 915×412. That is 62 to 68px of
       slack at the narrower one: the row is nearly full, and the next control added
       to it is the one that wraps. It is `wrap` and not `nowrap` on purpose: a
       landscape screen too narrow for this row at 44px would otherwise scroll
       sideways, and a transport that grows a line there is a far better failure.
       The band numbers above are stated for 844 and 915, which are the two
       viewports they were measured at.

       AND WHERE IT WRAPS, `--rp-tr` USED TO BE WRONG. Measured by narrowing one
       pixel at a time on the reference battle: the row first takes a second line at
       737px with one drawer button and at 787 with two, and at either the bar is
       146px tall while the declared `--rp-tr` still said 96. Everything that derives
       its band from that property — the lane's card, the loadout sheet, the hand
       card's sheet and both drawers — then stopped 50px inside the bar, so below the
       threshold the playback WAS covered; 844 and 915 are above it with room.

       That is fixed where it was always going to have to be fixed: the property is
       now written by a ResizeObserver on the bar (`writeTransportHeight` in
       replay.js), so it is the height this row actually took at this width with
       this battle's step counter in it. A second declared breakpoint was never the
       answer — the wrap point is battle-dependent, a wider step counter wraps
       sooner, and a second constant would only be a second thing to be wrong. The
       declarations above remain the no-JS answer. */

    /* THE BROWSER'S OWN BARS, OFFERED. Everything above is CSS and therefore true
       at page load, with no gesture, on every engine. This one button is the part
       that cannot be: the Fullscreen API is gesture-gated on every platform, so
       the page can never OPEN immersive — it can only offer to take the browser's
       URL bar and system bars as well, from a control the reader presses. It is
       built by replay.js only where the API reports itself enabled, and only in
       this state; nothing about the layout depends on it, and a press that fails
       or is declined changes nothing. */

    .rp-logs { margin-top: 8px; }
    .rp-log { max-height: none; }

    /* THE KIT SHEET --------------------------------------------------------
       This used to read `.rp-kit { display: none !important }`, argued as "no room
       to open a 270px deck panel over a 390px board" — which is true of the panel
       AS ANCHORED and not true of the panel as a sheet. What it cost was not a
       preference: measured on a landscape phone, a loadout and a summon's rules
       were reachable by 0 of 3 routes — not hover, not focus, not tap. The tile
       was never the problem (it carries `tabindex="0"` and a tap does focus it);
       six cards, their charms, and the glossary line that explains why Little
       Robin's death is a mechanic were simply on the page and unreadable.

       The treatment is not new design. It is the one the portrait block already
       ships at `max-width: 620px` and the one the lane's card sheet took for the
       same reason: a panel bigger than the thing it belongs to stops being a
       speech bubble and becomes a sheet you are reading. Fixed, centred in the
       free band, capped to it, scrolled inside itself. `.rp-kit--sum` is 252px
       wide and the deck panel 258 — both fit the same box.

       OPENED BY A PRESS, and only by a press. `:hover`/`:focus-within` open it
       everywhere else; here they are taken off it, because a phone has no hover
       and a focus that opens a sheet leaves a sheet up with no way out — Escape
       cannot clear a `:focus-within`, and that is exactly the undismissable panel
       this slice exists to stop shipping. `.is-open` is written by replay.js on a
       click and cleared by Escape, by a press outside, by a scroll, and by any
       move of the cursor, which is the same contract the played card's panel has.

       SPECIFICITY, the trap this file has recorded twice: `.rp-axie:hover .rp-kit`
       is (0,3,0) and a media query adds nothing, so `:not(.is-open)` — which
       carries its argument's own weight — is what makes the closed state (0,4,0)
       and wins on merit rather than on source order. The open state has to match
       `.rp-side--right .rp-kit`'s anchoring for the same reason the portrait sheet
       does, or the panel centres itself on the board's left edge. */
    .rp-side .rp-axie:not(.is-open) .rp-kit,
    .rp-side--right .rp-axie:not(.is-open) .rp-kit { display: none; }

    .rp-side .rp-axie.is-open .rp-kit,
    .rp-side--right .rp-axie.is-open .rp-kit {
        display: block;
        position: fixed;
        top: calc(var(--rp-nav) + (100vh - var(--rp-nav) - var(--rp-tr)) / 2);
        top: calc(var(--rp-nav) + (100dvh - var(--rp-nav) - var(--rp-tr)) / 2);
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-height: calc(100vh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        max-height: calc(100dvh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        max-width: calc(100vw - 24px);
        overflow-y: auto;
        /* A finger that has run out of sheet does not then take the board with
           it — the board behind is the thing the reader is holding their place
           in. The lane's card sheet says the same. */
        overscroll-behavior: contain;
    }
    /* Two cards across is the portrait answer to a 390px-WIDE screen; sideways
       there is width and it is height that is short, so the deck keeps its three
       columns and comes down to the 68px card the narrow block already draws —
       three of those and their gaps measure 232px in a band 290px tall. */
    .rp-kit-cards { grid-template-columns: repeat(3, 68px); gap: 6px; }
    .rp-kit-card { width: 68px; }

    /* THE HAND'S CARD IS A SHEET TOO ---------------------------------------
       The third panel to make this trip, and the last one still anchored. The
       hand card's panel hangs ABOVE its card — `bottom: calc(100% + 8px)` — which
       is right on a desktop, where the hand is halfway down a tall page. Here the
       hand is below the fold, so the card you press is near the top of the
       scrollport and a 260px panel opening upwards from it opens off the SCREEN:
       measured top -149.39 on the reference battle, which is the head of the card
       — its name, its art, its cost — gone, and no gesture that brings it back.

       Same treatment, same three reasons the lane's card and the loadout took it:
       a panel taller than the room either side of the thing it belongs to is not a
       speech bubble, nothing is lost by cutting it loose from a card that is the
       only card it can belong to, and the band is a box this page already knows
       how to centre in. Fixed, centred between the chrome, capped to the band and
       scrolled inside itself.

       ON THE CARD AND NOT ON `.is-open`, unlike the loadout: this is where the
       panel opens FROM that is wrong, not which pointer opened it, so a mouse on a
       short landscape window gets the sheet too. `li` for the tiebreaker —
       `.rp-hcard.is-row-start .rp-hcard-tip` is (0,3,0) and re-anchors the end
       cards of a row, so a plain three-class selector here would tie with it and
       lose or win by source order; (0,3,1) settles it wherever this lands. */
    .rp-hand li.rp-hcard .rp-hcard-tip {
        position: fixed;
        top: calc(var(--rp-nav) + (100vh - var(--rp-nav) - var(--rp-tr)) / 2);
        top: calc(var(--rp-nav) + (100dvh - var(--rp-nav) - var(--rp-tr)) / 2);
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        max-height: calc(100vh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        max-height: calc(100dvh - var(--rp-nav) - var(--rp-tr) - var(--panel-off) * 2);
        max-width: calc(100vw - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
        /* The wrapper is doing the clipping now, so the card's own shadow and
           radius move out here to survive it — the lane's sheet records why. */
        border-radius: 12px;
        box-shadow: var(--tt-shadow);
        /* A sheet that scrolls has to be able to take the finger that scrolls it.
           Everywhere else this stays `none`, because a panel that hangs off its own
           card has nothing to reach. */
        pointer-events: auto;
    }
    /* The lift is for a card in a row you are pointing along; a card whose panel is
       a sheet in the middle of the screen has nothing to lift towards. */
    .rp-hand li.rp-hcard.is-open { transform: none; }

    /* THE DRAWER -----------------------------------------------------------
       The history rail and the written story are the two things this breakpoint
       could not reach at all: the rail was `display: none` — not "a screen down",
       absent — and the story began at document y 555.64, which is 1.42 screens and
       two swipes, at the end of which the field, the board AND the transport were
       all off the screen. The transport is `sticky; bottom: 0`, which holds an
       element off the BOTTOM of the scrollport and stops holding the moment its own
       flow position rises above the top. So the one control this breakpoint calls
       "the one you always need" was gone exactly when you had gone looking for
       something, and the way back was to scroll back.

       Both panels come out of the flow and into one fixed sheet on the inner right
       edge, and the document stops being a canyon: 13,468px on the reference battle
       and 42,668 on the longest in the set, down to about one screen. Nothing else
       remains below the fold except the turn's earlier cards and the hand, which is
       where the fold order this file already argues puts them.

       TWO SHEETS, TWO EDGES — the history on the left and the story on the right,
       which is the shape the owner asked for and which this file argued against
       once. What that argument had right is still here and is stated below as the
       exclusivity rule; what it had wrong was treating "one gesture vocabulary" as
       the thing to optimise. Two objects, each on its own edge, is a model a reader
       holds without being told: the side of the screen IS the name of the panel,
       and neither one has to be put away before the other can be looked at. One
       sheet with two tabs made the two panels compete for one seat, and the number
       that killed the stacked version is still true and is why they were never
       going to share one: laid out together in a 318px drawer the rail's list came
       out 54.7px tall, one visible row of a strip whose median row is 209px,
       because a rail row IS its rollup.

       THEY ARE EXCLUSIVE, and that is what two edges cost. Each is `min(420px,
       50vw)`, so both out at once is 840 of an 844px screen and the board this is
       a record OF has gone. So one at a time, enforced in replay.js by a single
       `drawerUp` name: the two body classes below are its shadow, and "both open"
       is not a state the page can reach. What the reader keeps is the far team,
       whole — the left sheet covers the left board and leaves the right one
       standing, which is the whole argument for two edges over one 520px sheet.

       THE PLAYBACK IS UNDERNEATH, in every state. Both sheets and the scrim stop
       at `--rp-tr`, the transport's own box — the same number the lane's card, the
       loadout sheet and the hand card's sheet already derive their band from — so
       the tape and the fourteen controls are never behind anything and never dimmed.
       Pressing play, taking a speed stop or dragging the tape with a drawer out is
       simply a thing you can do, and the panel follows the cursor while you do it.
       That is the friction these drawers exist to fix: going to the log used to
       cost you the controls.

       IT OVERLAYS, IT DOES NOT REFLOW. The board's geometry does not change when a
       drawer opens, so the resting board stays a pure function of steps[cursor] in
       the strict sense rather than in the "same at a given drawer state" sense.
       That is the scrubber rule, and it is the whole reason this takes width from
       nothing.

       TRANSLATED, NEVER `display: none`. `revealIn()` reads the panel's
       `getBoundingClientRect()` to decide how far to scroll it, so a panel with no
       box cannot track the cursor while its drawer is shut — press the tab and you
       would land at the top of the battle instead of at the play you are watching.
       Off-canvas by transform, laid out the whole time. This does not re-open the
       trap `.rp-hcard-tip` records ("an absolutely-positioned panel still extends
       the document's scroll box"): these are `position: fixed`, and the document
       measures the same open and closed. */

    /* One width, read by the four rules that have to agree about it: each sheet,
       and each pull tab's ride out to the sheet's far edge.

       420 and not 520. At 520 the story's median entry lays out at 390.13px
       against 436.8 at 420 — 0.82 of a screen against 0.73 — and it covers 61.9%
       of the field against 49.8%. The entry is a scroll at every width measured (it
       asymptotes at ~368px by 620, and 368 > the band), so what the extra 100px
       buys is a slightly shorter scroll; what it costs is the whole opposite board,
       which is the one thing this shape is for. 50vw is the same trade stated as a
       fraction, for the screens where 420 would be more than half of everything. */
    body { --rp-dw: min(420px, 50vw); }
    /* BOTH SIDE SHEETS OUT — wider than one of them, not narrower (the owner, 2026-08-22). The single
       sheet's 420 cap was set by what it COSTS: "the whole opposite board", the thing the sheet is a
       record of. With both out there is no opposite board left to protect, so the argument that held
       the cap down is the one that no longer applies, and the cap goes up instead.

       What is left has to be the two tabs' room and nothing else. They stand 18px into the gap from
       each side, so 36px is the floor and 6vw is the floor with clearance: 47vw leaves 52px at 844 and
       57 at 912, which is the two tabs and a hairline of board between them. The board is not the point
       of this state — you opened both panels to read them — and the wheel that used to live in the gap
       goes with it, below.

       Snapped, not animated. The width lands in one frame and each panel reflows once; transitioning it
       would reflow a list of several hundred rows on every frame of the slide, on a phone, which is the
       one thing in here that has to stay at 60. */
    body.rp-drawer-hist.rp-drawer-story { --rp-dw: min(460px, 47vw); }
    /* The wheel is 152px wide and centred, and a 52px gap shows a vertical slice of it. It is already
       BEHIND both sheets (z-index 5 against 46) so the slice was all that was left of it and none of it
       was pressable — hiding it removes a sliver of a control, not a control. Either sheet's close
       button brings the whole thing back. */
    body.rp-drawer-hist.rp-drawer-story .rp-wheel-wrap { visibility: hidden; }

    .rp-drawer {
        position: fixed;
        /* The band, again, and from the same two numbers: the chrome above and the
           chrome below. `--rp-tr` is the transport's BOX and the bar is fixed to the
           bottom of the viewport, so this is the top of what is drawn. */
        top: var(--rp-nav);
        /* Exactly the transport's box, so the sheet meets the bar with no sliver of
           undimmed board between them — and never covers it. */
        bottom: var(--rp-tr);
        width: var(--rp-dw);
        z-index: 46;
        display: flex;
        flex-direction: column;
        background: var(--bulma-scheme-main);
        box-shadow: var(--tt-shadow);
        transition: transform 200ms ease;
    }
    /* Physical `left`/`right` and physical borders and padding, not the logical
       pair. A cutout sits on a SHORT edge of a phone held sideways and each sheet
       is against one of them, and `env(safe-area-inset-left)` is itself physical —
       pairing a logical property with a physical inset would put the notch's
       padding on the wrong edge the day this page is read right-to-left. That is
       the rule `.rp` states for its own padding; these two now keep it. 0px where
       there is no cutout, which is every screen this is developed on. */
    .rp-drawer--hist {
        left: 0;
        border-right: 1px solid var(--rail);
        padding-left: env(safe-area-inset-left);
        transform: translateX(-100%);
    }
    .rp-drawer--story {
        right: 0;
        border-left: 1px solid var(--rail);
        padding-right: env(safe-area-inset-right);
        transform: translateX(100%);
    }

    /* The scorecard rises from the BOTTOM and takes the whole width, where the other two are side
       sheets. Its content is the reason: four tables with a card name, a side, a count and three
       numeric columns, which is a shape that needs width and gets none from a panel a third of a
       phone wide — held sideways the reader was scrolling a table horizontally inside a sheet they
       were also scrolling vertically. It is also not a companion to the board the way the history
       and the log are; it is what the battle came to, read after it. */
    .rp-drawer--score {
        left: 0;
        right: 0;
        width: auto;
        border-left: none;
        border-top: 1px solid var(--rail);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        transform: translateY(100%);
    }
    body.rp-drawer-hist .rp-drawer--hist,
    body.rp-drawer-story .rp-drawer--story,
    body.rp-drawer-score .rp-drawer--score { transform: none; }

    /* ONE scrim for two drawers, because only one of them is ever out. It covers
       THE FIELD AND NOT THE TRANSPORT — see THE PLAYBACK IS UNDERNEATH — so the bar
       keeps its own lighting and its own presses.

       Painted, not erased. The board stays where it was and stays legible through
       it — the reader is holding a place in a battle, not leaving one. */
    .rp-scrim {
        position: fixed;
        top: var(--rp-nav);
        bottom: var(--rp-tr);
        left: 0;
        right: 0;
        z-index: 44;
        background: hsl(0 0% 0% / 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 200ms ease, visibility 200ms;
    }
    body.rp-drawer-hist .rp-scrim,
    body.rp-drawer-story .rp-scrim,
    body.rp-drawer-score .rp-scrim { opacity: 1; visibility: visible; }

    /* THE PULL TABS, and each is a sibling of its drawer rather than a child of it
       for one reason: a shut drawer carries `inert`, which is what keeps 300-odd
       story chips out of the tab order while they are off-canvas — and an inert
       subtree cannot be pressed, which would make a pull tab inside it the one
       control that opens nothing. So each rides alongside and translates with it.

       Always there, in every state, including while the OTHER sheet is out: it
       stands above the scrim (48 over 44), so pressing it then is a swap, which is
       what exclusivity makes it. On the right it is also the thing that says a
       swipe exists; on the left there is no swipe to advertise (the browser owns
       that edge — see replay.js, WAYS IN) and the tab is one of the only two ways
       in, which is the better reason to keep it. */
    .rp-drawer-pull {
        position: fixed;
        /* The band's midpoint, where a thumb holding a phone sideways already is. */
        top: calc(var(--rp-nav) + (100vh - var(--rp-nav) - var(--rp-tr)) / 2 - 36px);
        top: calc(var(--rp-nav) + (100dvh - var(--rp-nav) - var(--rp-tr)) / 2 - 36px);
        /* The same property the three board rows take their inset from, so the strip
           this stands in and the strip they keep out of cannot drift apart. */
        width: var(--rp-tab);
        height: 72px;
        padding: 0;
        z-index: 48;
        display: grid;
        place-items: center;
        border: 1px solid var(--rail);
        /* A surface of its own and not the page's, or it reads as a chevron floating
           over the board rather than as the edge of something you can pull. */
        background: var(--bulma-scheme-main-bis);
        color: var(--bulma-text-weak);
        font-size: var(--fs-tiny);
        cursor: pointer;
        transition: transform 200ms ease;
    }
    .rp-drawer-pull--hist {
        left: 0;
        border-left: 0;
        border-radius: 0 8px 8px 0;
    }
    .rp-drawer-pull--story {
        right: 0;
        border-right: 0;
        border-radius: 8px 0 0 8px;
    }
    /* The totals' tab stands on the BOTTOM edge now that its sheet rises from there — a tab has to be
       on the edge its sheet comes from or it is pointing at nothing. Centred horizontally, clear of the
       two side tabs, and it keeps its table glyph so three tabs on three edges are three pictures. */
    .rp-drawer-pull--score {
        left: 50%;
        right: auto;
        top: auto;
        bottom: var(--rp-tr);
        transform: translateX(-50%);
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
        /* Wider than tall, because it is now gripped along its long edge like the sheet it opens. */
        width: 64px;
        height: 26px;
    }
    body.rp-drawer-hist .rp-drawer-pull--hist { transform: translateX(var(--rp-dw)); }
    body.rp-drawer-story .rp-drawer-pull--story { transform: translateX(calc(-1 * var(--rp-dw))); }
    /* NO TAB STANDS ON THE TOTALS. The two side sheets take a third of the width and their tabs ride out
       on the edge of what they opened, so the tab is still a grip and still points somewhere. The totals
       take the whole band — there is no edge left to stand on, and a tab that stays put is sitting on the
       table: on this screen that is the turn number under the left one and the kills column under the
       right, which are the two columns somebody turned the handset sideways to read.

       So all three step off their own edge, and the head's close button is the way back. Off the screen
       rather than dimmed, because a tab that is faded but still there is still 44px of press over a cell.
       They come back the moment the sheet shuts, which is the same press that put them away.

       This also fixes the totals' own tab, which was riding up the full height of a sheet whose floor is
       the bottom of the screen (`--rp-tr` is 0 in here — the transport is collapsed) and landing above
       the viewport: pointing at nothing and pressable by nobody. Off its own edge is a shorter trip to
       the same place, and it stays right if the transport ever comes back. */
    body.rp-drawer-score .rp-drawer-pull--hist  { transform: translateX(-100%); }
    body.rp-drawer-score .rp-drawer-pull--story { transform: translateX(100%); }
    body.rp-drawer-score .rp-drawer-pull--score { transform: translateX(-50%) translateY(100%); }
    body.rp-drawer-score .rp-drawer-pull { pointer-events: none; }
    /* The arrow points the way the press goes, and the press reverses when the sheet is out. Only the
       two side tabs need it: the totals' tab is off the screen while its sheet is up, so the chevron it
       would have flipped is one nobody is looking at. */
    body.rp-drawer-hist .rp-drawer-pull--hist i,
    body.rp-drawer-story .rp-drawer-pull--story i { transform: scaleX(-1); }
    .rp-drawer-pull:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }

    /* The transport's own two ways in, which are the discoverable ones — the strip
       is on screen at every scroll position and each button is the same 44px as
       everything beside it. replay.js puts each one at the end of the row nearest
       the edge its sheet comes from: history first, story last. Measured with both
       mounted and the fullscreen control up, 774px of controls in 824px of row at
       844×390 — one line, no wrap, no sideways scroll. */
    body.rp-imm .rp-drawer-btn[aria-expanded="true"] {
        background: var(--bulma-scheme-main-ter);
        color: var(--bulma-text);
    }

    /* 44px, like everything else a thumb has to hit on this breakpoint. The head
       costs the panel below it 44 of the band's 290; both panels are a scroll at
       every width and height measured, so what the head takes is scroll and not
       content. It holds the panel's name and, moved up from the heading it
       replaces, the size of what is behind it. */
    .rp-drawer-head {
        display: flex;
        align-items: center;
        gap: 2px;
        flex: none;
        min-height: 44px;
        border-bottom: 1px solid var(--rail);
    }
    .rp-drawer-title {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0 4px 0 12px;
        display: flex;
        align-items: baseline;
        gap: 8px;
        font-size: var(--fs-small);
        font-weight: 600;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: var(--bulma-text-weak);
    }
    /* The count sits at the far end of the head, which is where the rail's own
       heading already put it; the story's sub had no such rule of its own and gets
       one here, so the two heads agree rather than each doing what its panel did. */
    .rp-drawer-title .rp-hist-n,
    .rp-drawer-title .rp-logs-sub { margin-inline-start: auto; font-weight: 400; }
    .rp-drawer-x {
        flex: none;
        width: 44px;
        min-height: 44px;
        border: 0;
        background: none;
        color: var(--bulma-text-weak);
        font-size: var(--fs-base);
        cursor: pointer;
    }
    .rp-drawer-x:focus-visible { outline: 2px solid var(--bulma-text); outline-offset: -2px; }

    /* One panel per drawer now, so this is a column that hands its height down
       rather than a stack with a hidden layer. What it must keep doing is handing
       ALL of it down: `min-height: 0` at every step, or the scrollport at the
       bottom of the chain grows to its content instead of scrolling. */
    .rp-drawer-body {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .rp-drawer-body > * { flex: 1 1 auto; min-width: 0; min-height: 0; }

    /* The rail and the story are THE SAME NODES the desktop lays out — moved by
       replay.js, never rebuilt, the way the lane moves the receipt. Two instances
       is how a page ends up with a stale one behind a media query, and these two
       are painted every step. So all this block does is undo the box each one wore
       in the flow: its own border and surface (the drawer is the surface now), its
       centred max-width, and the height cap that made it a panel on a page. What it
       must NOT undo is which element scrolls — `revealIn()` writes `scrollTop` on
       `.rp-hist-list` and on `.rp-log`, so those two stay the scrollports and the
       boxes around them only pass the height down. */
    .rp-drawer .rp-hist,
    .rp-drawer .rp-logs,
    .rp-drawer .rp-logs-col,
    .rp-drawer .rp-score {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin: 0;
        max-width: none;
        border: 0;
        border-radius: 0;
        background: none;
        overflow: visible;
    }
    .rp-drawer .rp-logs,
    .rp-drawer .rp-logs-col,
    .rp-drawer .rp-score { flex: 1 1 auto; }
    /* The scorecard in its sheet: the heading is the head's, the tabs stay — they are the switch, not a
       title — and its four panes are `.rp-log` scrollports the rule below already sizes; the one that is
       shown fills the sheet, the three `[hidden]` stay hidden. */
    .rp-drawer .rp-score-head { padding: 6px 10px 4px; }
    .rp-drawer .rp-score-tabs { margin-inline-start: 0; }
    /* A reading is nine columns and the sheet is 420px: the pane scrolls SIDEWAYS inside the sheet as
       well as down, the way every wide table on this page does, rather than clipping at "HP taken off". */
    .rp-drawer .rp-score-pane { overflow: auto; }
    /* Each panel's own heading goes, because the head above it IS the heading and
       this file does not say a thing twice. What the headings carried that the head
       does not is the size of what is behind them — "62 records", "782 steps, by
       play" — so those two nodes are MOVED into the head rather than restated there,
       the same way the panels themselves are moved. Worth 51px of the rail's
       scrollport and 34 of the story's, out of a body 246px tall. */
    .rp-drawer .rp-hist-h,
    .rp-drawer .rp-logs-h { display: none; }
    .rp-drawer .rp-hist-list,
    .rp-drawer .rp-log {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
        background: none;
    }
    /* The rail keeps a column's width inside a 420px drawer, which is the same
       answer this file already gives below 1250px and for the same measured reason:
       a rail row is a CENTRED column of a card face over its rollup, and stretched
       across a full-width panel the art is marooned in the middle of a lot of
       nothing while the rollup's `1fr` bar track pushes the figures to the far edge.
       Measured at 420: the chips sat at one end of the row and the numbers at the
       other, 300px apart. 300 is the width the rail was drawn for; the drawer is
       wider than the rail wants and gives the difference back as margin. */
    .rp-drawer .rp-hist { width: 100%; max-width: 300px; margin-inline: auto; }
    /* The chapter bar's opaque ground follows the surface it is pinned over: the
       drawer is `scheme-main`, the panel it left was `-bis`. */
    .rp-drawer .rp-hist-ch { background: var(--bulma-scheme-main); }
    .rp-drawer .rp-hist-ch:hover { background: var(--bulma-scheme-main-ter); }
}

/* PORTRAIT GETS THE CONTROLS ----------------------------------------------
   This orientation is behind a rotate prompt and is explicitly not the one this
   page is for. It is also the one a lot of people read it in anyway — the prompt
   dismisses, and it stays dismissed for the session — and what they were reading
   it with was a transport at document y 2,442.22 of a 3,379px page: 2.89 screens
   from the board, `position: static`, nothing pinned. The rail was 3 swipes away
   and the story 5.

   So the controls stop being somewhere on the page and start being on the screen.
   Fixed rather than sticky, and the difference is the whole point: `sticky;
   bottom: 0` holds an element off the BOTTOM of the scrollport and lets go the
   moment its own flow position rises above the top — which is exactly what
   happens at the story, 2,618px down, and exactly the failure landscape recorded
   before it pinned its own. Fixed has no flow position to rise past.

   What fixed costs is the space it used to occupy, and the page pays it back as
   padding under everything: an out-of-flow bar hides whatever was going to be
   drawn beneath it, and on this page that is the tail of the written log.

   The 44px targets come with it. They are a floor and not a preference, and
   portrait has 844px of height to pay from rather than 390 — the transport is
   16.8% of the screen here at the 34x34 buttons it shipped with, and the floor
   costs it height it has.

   The rotate prompt stays. This is for the reader who chose "Watch upright
   anyway", not an argument that upright is the way to watch. */
@media (orientation: portrait) and (max-width: 820px) {
    /* One number, read by the two rules that have to agree about it: the bar's own
       height, and the room the page leaves under itself for the bar. Measured with
       every control at 44px at 390x844 — the seven step buttons take one wrapped
       row, the four speed stops and the step counter the next, and the tape sits
       above both. 151px on every battle in the verification set, including the
       2,503-step one whose step counter is the widest thing in the row.

       Kept as the starting value now that replay.js measures the bar and writes
       this property from a ResizeObserver: upright is the orientation where the row
       ALREADY wraps twice, so a declared height here was never more than a good
       average of what this battle's controls happen to need. The observed number is
       what this row took; this is what the page uses before it runs and where there
       is no ResizeObserver. */
    body { --rp-tr: 151px; }

    .rp-transport {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        margin: 0;
        /* The home indicator runs along the bottom edge of a phone held upright,
           which is where this row now is. Added to the padding rather than
           `max()`ed with it, for the reason the landscape row gives: the indicator
           is an object ON the screen and not an edge the screen stops at. The side
           insets are `max()`ed with the page's own 16px, because those are edges. */
        padding: 6px max(16px, env(safe-area-inset-right))
                 calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        background: var(--bulma-scheme-main);
        border-top: 1px solid var(--rail);
    }
    /* The page ends above the bar, not under it. On `body` and not on `.rp`, which
       is where this first went and which was measured wrong: `.rp` is not the last
       thing in the document — the site footer is, and the footer's links sat under
       the bar with no scroll position that freed them. The reservation has to be
       made by the element the whole page is inside. */
    body { padding-bottom: calc(var(--rp-tr) + 12px); }

    .rp-btn { width: 44px; height: 44px; }
    .rp-speed-btn { height: 44px; min-width: 44px; padding: 0 8px; }
    /* A drag target, not a tap target — the same argument the landscape row makes,
       and here the turn segments are already 58x55 and clear of the floor anyway. */
    .rp-tape { height: 28px; }

    /* The loadout sheet sits at the bottom of the screen, which is now where the
       controls are. It comes up by exactly their height, from the same property, so
       the two cannot drift apart. */
    .rp-side .rp-kit,
    .rp-side--right .rp-kit { bottom: calc(var(--rp-tr) + 12px); }
}

/* THE PLAYBACK IS ONE OBJECT ----------------------------------------------
   On a phone the transport is not a bar, and the reason is arithmetic rather
   than taste: the board, the turn's played cards and the reader's own hand are
   386.33px of a 390px screen, so a band of ANY height is paid for out of the
   hand. The 96px bar buried all 71.2px of it; 46px would still have buried 59%.

   WHAT THIS REPLACED was a mode. Pressing the readout sent the whole bar away —
   `display: none`, `--rp-tr` to 0 — and left a floating cluster carrying the
   turn, the way back and fullscreen. It was the right diagnosis and half an
   answer: away, a reader who had asked to see their own cards had nothing that
   could step, seek or stop, and the timer kept running. Fourteen controls or
   none.

   SO THE CONTROLS STOP RESERVING SPACE. What stands is a 56px PUCK in a bottom
   corner, the live readout beside it and a 44px control that opens the rest —
   about 1.5% of the screen, in the corner a thumb already rests in. `--rp-tr` is
   0 in both phone states, so every band derived from it — both drawers, the
   scrim, the pull tabs, the lane's card sheet, the loadout sheet, the hand
   card's sheet and `body`'s own reservation — runs to the bottom of the screen.
   That is not new geometry: it is exactly what the away state already measured
   at a 0.0px gap. What is new is that it is the ONLY state, so the hand is never
   hidden and the controls are never gone.

   THE SHEET IS THE BAR, ON DEMAND. The tape and the whole control row are the
   template's own nodes, MOVED into it by replay.js on a comment seat — the rule
   the drawers and the receipt already keep — so the seven step buttons, the four
   speed stops, the fullscreen button and both drawer buttons keep the bindings,
   the labels and the `aria-expanded` they were built with. Shut it is
   `display: none` and therefore not a tab stop, which is the whole mechanism:
   the same lesson the hidden bar recorded, that a second one saying the same
   thing would only be a second thing to keep in step.

   THE PUCK IS SOLID AND THE TEXT BESIDE IT IS NOT. A control you have to find
   with a thumb in a corner is an object and gets a surface; the readout is a
   reading standing over board art and keeps the measured halo the cluster used —
   an opaque 5x5 disc under every stroke and then three blurred fields, because
   blurred shadows alone measured 1.01:1 over card art, which is the artwork
   winning. Both are below.

   THE RAIL IS NOT A CONTROL. A 3px line on the bottom edge carries the position
   and a tick per turn, so the shape of the battle is on screen with the sheet
   shut. It is deliberately not draggable: the bottom edge of a phone belongs to
   the home indicator, and a 3px target there is a control the system takes half
   the presses of. The scrub is the puck's own drag; this is the read. */
@media (max-height: 540px) and (orientation: landscape),
       (orientation: portrait) and (max-width: 820px) {
    /* The bar leaves the flow entirely, which is what takes `--rp-tr` to 0: the
       ResizeObserver measures this element, and `display: none` measures 0. A bar
       merely translated away would still report its height and every surface
       derived from it would stop where it used to be. */
    body.rp-puck-on .rp-transport { display: none; }
    /* Nothing is reserved under the page any more. The inset stays because the
       home indicator is an object ON the screen and the last row of the page
       would otherwise sit under it. */
    body.rp-puck-on { padding-bottom: env(safe-area-inset-bottom); }

    /* ---- the cluster: the reading, the way in, and the puck --------------
       Above the drawers (46), their pull tabs (48) and the scrim (44) on purpose
       — these are the only controls there are, and a reader who opened the log
       must not have to close it again to find them. Above its own sheet (51) too,
       so pressing the puck with the sheet open still plays. Below the status tip
       (60), which is a pop-up that should cover it, and far below the rotate
       prompt (100), which is a takeover. */
    .rp-wheel-wrap {
        position: fixed;
        z-index: 52;
        /* `left`/`top` are written by replay.js and clamped there, because where this stands is the
           reader's choice and not the stylesheet's. Everything else about it is here. */
        left: 0;
        top: 0;
        /* `width` is written by replay.js from WHEEL_R too — the wheel plus the 40px the four corner
           buttons hang outside it. */
        /* The wheel on its own line, the reading and the way into the sheet side by side under it. A
           column and not a wrapping row, because `flex: 0 0 100%` on the wheel would have stretched a
           circle into an ellipse — measured, 152×112 with a 50% radius. */
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        /* The wrapper is a position and nothing else: the wheel, the hub and the two buttons take their
           own touches back below, and the reading between them is text a finger passes through to the
           card underneath. */
        pointer-events: none;
        transition: opacity 160ms linear;
    }
    /* …except while a sheet is up. The three sheets — the loadout, the hand card, the lane's card — are
       centred in the band, and sideways the wheel's home is the bottom-middle, which is under them. The
       comment above still holds for the puck's OWN sheet; for the reader's sheets the wheel steps beneath
       (below the lane's 6, the lowest context a sheet lives in), so a press in the overlap reaches the
       sheet or closes it, never scrubs. A scrub closes every sheet anyway (paint() shuts panels), so
       nothing that worked with a sheet open stops working — the wheel is simply behind the thing being
       read, and back on top the moment it closes. Written by replay.js on the body at press and shut. */
    body.rp-sheet-on .rp-wheel-wrap { z-index: 5; }

    /* And under a DRAWER for the same reason, which it was not: the wheel sat at 52 and every sheet at
       46, so it floated over the history as it slid out and a thumb reaching for a chapter met the
       scrubber instead. A drawer is the thing being read; the control that opened it belongs behind it,
       and comes back the moment it shuts. Below the scrim (44) as well as the panel, so it is dimmed
       with the rest of the board rather than glowing through it. */
    body.rp-drawer-hist .rp-wheel-wrap,
    body.rp-drawer-story .rp-wheel-wrap,
    body.rp-drawer-score .rp-wheel-wrap { z-index: 5; }

    /* IT FADES WHEN IT IS NOT BEING TOUCHED, and opacity is the ONLY property that moves. The box does
       not change, so a thumb that learnt where this is keeps its aim whether or not the reader can see
       it, and nothing on the page is laid out against a control that comes and goes. 22% is the number
       the halo below was measured for: the glyphs keep an opaque ground under them at any alpha, so what
       fades is the object and never the legibility of what is left. */
    .rp-wheel-wrap.is-idle { opacity: 0.22; }
    /* Never while it is being carried, and never while the sheet it opens is standing: a faded control
       over an open panel reads as a control that has gone away. */
    .rp-wheel-wrap.is-moving { opacity: 1; }
    .rp-wheel-wrap.is-moving .rp-wheel {
        border-color: var(--bulma-text);
        box-shadow: 0 0 0 3px var(--rail), 0 2px 12px rgb(0 0 0 / 30%);
    }

    .rp-wheel {
        flex: 0 0 auto;
        position: relative;
        /* `width`/`height` are written by replay.js from WHEEL_R, which is the radius the notches, the
           edge, the corner buttons and the scrub band are all measured from. Stating the diameter here
           as well made it two numbers that had to agree with nothing to catch them when they stopped. */
        border-radius: 50%;
        /* Not opaque: it stands over the board, and a solid disc that size is a hole in the battle.
           Enough ground to read the rim against, and no more. */
        background: color-mix(in srgb, var(--bulma-scheme-main) 78%, transparent);
        border: 1px solid var(--rail);
        box-shadow: 0 1px 8px rgb(0 0 0 / 20%);
        pointer-events: auto;
        /* Nothing here pans, and any pannable axis lets the engine open a scroll gesture and then eat the
           press that follows it. */
        touch-action: none;
    }

    /* The rim's face. `overflow: visible` because the petals bloom outside the circle, and no pointer
       events because the wheel itself is the target — an SVG child would otherwise take the touch and
       the gesture would arm on a `<line>`. */
    .rp-wheel-rim {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
    }
    .rp-wheel-notch { stroke: var(--bulma-text-weak); stroke-width: 1.5; }
    /* The two curved arrows on the flanks. Quieter than the notches on purpose — a notch is the rim's
       own face and these are a caption on it — and rounded, so at 1.75 against a battle they read as a
       mark rather than as two more ticks that went wrong. They fade with the wheel, because the whole
       wrapper's opacity is what fades and nothing here opts out of it. */
    .rp-wheel-arrow {
        fill: none;
        stroke: var(--bulma-text-weak);
        stroke-width: 1.75;
        stroke-linecap: round;
        stroke-linejoin: round;
        opacity: 0.72;
    }
    /* The head is the one solid thing on this face. A stroked outline at this size closes into a blob
       anyway, and an arrow whose head is lighter than its shaft points at nothing. */
    .rp-wheel-arrow--head { fill: var(--bulma-text-weak); stroke: none; }
    .rp-wheel-edge { fill: none; stroke: var(--rail); stroke-width: 1.5; }

    /* THE HUB IS THE SAME CONTROL IN EVERY VARIATION: a tap plays or pauses, a drag carries the wheel.
       64px across, well over the floor, and it is the grip precisely because it is the one part of the
       wheel whose meaning never changes with the rim. */
    .rp-wheel-hub {
        position: absolute;
        left: 50%;
        top: 50%;
        /* `width`/`height`/`margin` come from HUB_R in replay.js, for the same reason as the wheel's:
           the hub's radius is where the scrub band starts, so the gesture and the drawing have to be
           reading one number. */
        padding: 0;
        border: 1px solid var(--rail);
        border-radius: 50%;
        background: var(--bulma-scheme-main);
        color: var(--bulma-text);
        font-size: var(--fs-loud);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: grab;
        pointer-events: auto;
        touch-action: none;
    }
    .rp-wheel-hub:focus-visible {
        outline: 2px solid var(--bulma-text);
        outline-offset: 2px;
    }
    /* The glyph takes no touches, so the target of a press or a drag is always the button. It is
       decoration — but it is decoration that `setPlayIcon` REPLACES, and a touch whose target leaves the
       document mid-gesture stops being delivered: measured on the puck this grew out of, a drag that
       began on the icon reached exactly one `touchmove` and then stopped. */
    .rp-wheel-hub > i,
    .rp-wheel-sat > i { pointer-events: none; }





    /* THE FOUR CORNERS. On the diagonals, which is the one place on a round control that is not on the
       path of the finger that turns it — a rim is swept, and a button standing in that sweep is a button
       pressed by accident. The two turn jumps go on the BOTTOM pair, where a thumb already rests; the
       speed and the screen on the top pair, where they are out of the way of both.

       36px and not 44, and this is the one place on the page that spends the floor: four 44px discs on the
       diagonals of a 112px wheel overlap each other at the corners, and a target that overlaps its
       neighbour is worse than a smaller one that does not. They are still over WCAG 2.5.8's 24px minimum,
       they carry 4px of margin between them at 36, and the two that are pressed while watching — the turn
       jumps — are the two furthest from the rim's sweep. */
    .rp-wheel-sat {
        position: absolute;
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
        padding: 0;
        border: 1px solid var(--rail);
        border-radius: 50%;
        background: var(--bulma-scheme-main);
        color: var(--bulma-text);
        font-size: var(--fs-tiny);
        font-family: var(--mono);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: auto;
        touch-action: none;
        box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
    }
    .rp-wheel-sat:focus-visible {
        outline: 2px solid var(--bulma-text);
        outline-offset: 2px;
    }
    /* The speed's face IS its value, so it is text where the other three are glyphs. */
    .rp-wheel-speed { font-weight: 600; letter-spacing: -0.02em; }

    /* The reading, under the wheel. */
    .rp-wheel-foot {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        max-width: 100%;
    }
    .rp-wheel-foot .rp-pos {
        margin: 0;
        color: var(--bulma-text);
        white-space: nowrap;
    }
    /* Not the round, here. This reading floats over the board on a 844x390
       screen and is the whole of the transport in the sealed state — it was
       measured to cost the board 0px, and it keeps that by carrying the two
       numbers that place you (which turn, how far in) and not the one that can
       be derived from the first. It is back the moment the phone is upright. */
    .rp-wheel-foot .rp-pos-round { display: none; }

    /* ---- the rail: where you are, and the shape of the battle ------------ */
    .rp-rail {
        position: fixed;
        z-index: 52;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        background: var(--rail);
        pointer-events: none;
    }
    .rp-rail-at {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        background: var(--bulma-text);
        opacity: 0.55;
    }
    /* A turn boundary, in the page's own ground so it reads as a gap in the line
       rather than as a second colour on it. */
    .rp-rail-tick {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--bulma-scheme-main);
    }


    /* WHAT KEEPS THE READING LEGIBLE, and the reason it can be transparent at
       all: a halo of the page's own ground colour under every glyph. It follows
       the letterforms, which is what makes it not a box — there is no rectangle
       anywhere in this element, at any theme, over any content — and the colour is
       the theme's own, so it inverts with the page and costs no new token.

       IT IS AN OUTLINE AND THEN A FIELD, and it is in two parts because blurred
       shadows alone were measured and were not enough. First an OPAQUE outline:
       every offset of the 5x5 neighbourhood, which is a solid disc of radius 2
       around every stroke in the page's own colour. It is written out rather than
       blurred because a blur is not opaque — with four blurred layers and no
       outline, over the busiest thing this page can put behind the corner, the
       worst pixel bordering a glyph measured 1.01:1, which is the artwork
       winning. The 8 offsets of the 3x3 alone leave the four knight's moves of
       the 5x5 uncovered, and those are exactly where the measurement then dipped.
       Then three blurred layers, so the outline is not itself a hard edge sitting
       on the art.

       The puck is not in this list: it has a surface of its own, which is what a
       56px object standing alone in a corner is for. */
    .rp-wheel-wrap .rp-pos {
        --rp-halo: var(--bulma-scheme-main);
        text-shadow:
            /* the 3x3: the pixels touching a stroke */
            -1px -1px 0 var(--rp-halo),  0   -1px 0 var(--rp-halo),  1px -1px 0 var(--rp-halo),
            -1px  0   0 var(--rp-halo),                              1px  0   0 var(--rp-halo),
            -1px  1px 0 var(--rp-halo),  0    1px 0 var(--rp-halo),  1px  1px 0 var(--rp-halo),
            /* and the ring of the 5x5, knight's moves included */
            -2px -2px 0 var(--rp-halo), -1px -2px 0 var(--rp-halo),  0   -2px 0 var(--rp-halo),
             1px -2px 0 var(--rp-halo),  2px -2px 0 var(--rp-halo),
            -2px -1px 0 var(--rp-halo),  2px -1px 0 var(--rp-halo),
            -2px  0   0 var(--rp-halo),  2px  0   0 var(--rp-halo),
            -2px  1px 0 var(--rp-halo),  2px  1px 0 var(--rp-halo),
            -2px  2px 0 var(--rp-halo), -1px  2px 0 var(--rp-halo),  0    2px 0 var(--rp-halo),
             1px  2px 0 var(--rp-halo),  2px  2px 0 var(--rp-halo),
            /* and the field, so the disc's edge is not a cut-out */
            0 0 4px var(--rp-halo), 0 0 7px var(--rp-halo), 0 0 11px var(--rp-halo);
    }
}

/* THE SEALED SCREEN ========================================================
   This mode is for WATCHING a battle, and a mode you can scroll is not one
   screen. So in the immersive landscape state the document IS the viewport:
   `body` is exactly the screen's height and clips, which leaves the root with a
   content height equal to its own client height and therefore nothing to scroll
   — not with a finger, not from script, and not as the rubber band a finger
   produces at the end of a page that has one.

   `clip` AND NOT `hidden`, and the difference is the whole of what sealed means.
   `hidden` leaves a scroll CONTAINER behind: its `scrollTop` still moves when
   script writes it, and its `scrollHeight` still reports the content past the
   edge, so the page above it can still be dragged. `clip` is not a scroll
   container at all — no scroll position to write, and no overflow handed up to the
   root. The page cannot move and it cannot be moved.

   LANDSCAPE ONLY, and that is a decision and not an omission. Portrait keeps its
   scroll, its footer and its coach: it is the "watch upright anyway" fallback
   behind the rotate prompt, a 3.2k-pixel document by design, and the argument for
   sealing a screen does not apply to a page that was never claiming to be one.
   Desktop is untouched — every rule here is inside this media query and behind the
   body class, so a page whose script never ran is the page it always was.

   WHAT THE SEAL COSTS IS THREE THINGS, and every one is accounted for rather than
   left where it fell:

     the reservation   `padding-bottom: calc(var(--rp-tr) + 4px)` on `body` existed
                       to keep the last thing in the document clear of a bar pinned
                       over it. Nothing is under the board now and nothing scrolls,
                       so it reserves room in a page with none to give: 0, in both
                       bar states. The home indicator's inset stays exactly where it
                       already was — in the transport's own padding, and in the
                       cluster's `bottom`.

     the footer        192px, the last thing in the document, and not part of
                       watching a battle. Absent here and present everywhere else,
                       which is what a body class is for.

     the coach         Same treatment, stronger reason. THE COACH IS NOT IN THIS
                       MODE: the advice panel is a conclusion about a battle you
                       already watched — a button, a language picker and two written
                       reports that run to hundreds of lines — and it is the one
                       thing on this page you read rather than watch. It measured
                       178.98px of flow plus its margin, 197 of the 296 this state
                       had to scroll. Hidden and not deleted: the element, its
                       assets and its endpoints are untouched, so the reader who
                       wants advice turns the phone upright or opens the replay on a
                       desktop and finds the panel where it always was. The gate for
                       whether it exists at all is still the template's `@if`, in
                       ReplayController — this is only about which screen it is on.

   AND THE BOARD IS PAID FOR RATHER THAN CLIPPED. Sealing a page whose content is
   4.33px taller than its screen would simply cut 4.33px off the bottom of the
   reader's own hand. Measured on the reference battle at 844x390, the board is
   4 (the page's top padding) + 19 (the header band) + 6 + 195.69 (the two ranks)
   + 6 + 30 (the piles) + 6 + 4 (the plays row's own margin) + 46.44 (the plays row)
   + 6 + 71.2 (the hand) = 394.33, in a 390px screen. Two of those eleven numbers
   are this mode's decoration rather than anything a reader reads: the 4px of ground
   above the player names, and the extra 4px this breakpoint puts above the plays
   row. Both go. The board comes to 386.33 and the whole of it — hand included — is
   on the screen, with 3.67px spare at 844x390 and 25.67 at 915x412.

   AND WHERE IT DOES NOT FIT, THE SEAL IS A CLIP — which is the bottom of the hand,
   always, because the hand is the last row. Two cases, both swept rather than
   assumed:

     the short screen    740x360 has 360 for a 386.33 board, so 26.33px of the hand
                         — 37% of one card — is cut at every step.

     the wrapped strip   The board is NOT a constant. Its badge strips wrap, and a
                         wrapped strip on BOTH ranks takes `.rp-form` from 195.69 to
                         228.53 and the board to 419.17. On `0000ad57...` that is
                         29.17px of the hand cut at 844x390 and 7.17 at 915x412, on
                         the steps where it happens.

   Neither is fixed, and the reason is a rule this page already keeps: nothing on
   this board may change size while you scrub. The fix that suggests itself — a hand
   whose card width comes from the height left over — would make the reader's own
   cards shrink and grow as statuses come and go on the tiles above them, which is
   the defect, not the repair. What survives instead is the card as a TARGET: every
   card in a clipped hand is still pressable and a press still opens its own sheet,
   which is where a card's full face and its rules live in this mode anyway. */
@media (max-height: 540px) and (orientation: landscape) {
    /* `100vh` first for the engines that never got the small/large/dynamic units,
       then `100dvh`, which is the one that is right while a browser's own bars come
       and go — the same two-line cascade every panel in this file uses to derive
       its band. */
    body.rp-imm {
        height: 100vh;
        height: 100dvh;
        overflow: clip;
    }
    /* And the second selector is not redundant: the union block above declares
       `body.rp-puck-on { padding-bottom: env(safe-area-inset-bottom) }` at the same
       specificity and later in the file, so this screen would otherwise keep an
       inset it has no room for. Nothing is below the fold here to be pushed out
       from under the home indicator — there is no fold — and the puck pays for
       the indicator itself, in its own `bottom`. */
    body.rp-imm,
    body.rp-imm.rp-puck-on { padding-bottom: 0; }

    /* The page is the screen's height and not its content's, and it starts at the
       top edge: this is the 4px named in THE BAND above, spent here. With it gone
       the band between the top edge and a 96px transport is 294 at 390 and 316 at
       412, not 290 and 312. */
    body.rp-imm .rp {
        height: 100%;
        padding-top: 0;
    }
    /* The scorecard is below the fold, and there is no fold: nothing scrolls to it
       here. Left in the flow it was hidden only by the clip, so on any screen taller
       than the ~387px board its heading and tab bar peeked in under the hand — an
       8px strip of "What it added up to" at 915x412. Off the page in this state;
       it comes straight back with the phone upright. */
    body.rp-imm .rp-score { display: none; }
    /* …unless it is in its sheet, which is where the phone reads it now. More specific than the line
       above on purpose: the section in the flow is gone, the same node in the drawer is a column. */
    body.rp-imm .rp-drawer .rp-score { display: flex; }
    /* And the other 4px. This margin separates the plays row from the piles above
       it, which is worth having on a page with room and is the cheaper of the two
       decorations on a page with none — it sits in the middle of the band the
       playback gives back, where the row-gap of 6px is already doing the same job. */
    body.rp-imm .rp-turnbox { margin-top: 0; }

    /* The two absences. Both by class, so no other state loses anything. */
    body.rp-imm .rp-advice { display: none; }
    body.rp-imm > .footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-hp-fill, .rp-turn::after, .rp-btn { transition: none; }
    .rp-drawer, .rp-drawer-pull, .rp-scrim { transition: none; }
}

/* A card named in a sentence carries its own face, the same way a status carries
   its icon — one visual idiom for both kinds of noun rather than two to learn.
   Slightly larger than a status glyph because a card face is a busy picture and
   13px turns it to mud, and square-ish rather than round because that is the
   shape a card is. */
.rp-tale-card img {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

/* A PLAYER in a sentence.

   Deliberately not the status/card chip idiom. Those are the game's own art at
   13px followed by a name, and a username sitting in that shape would read as
   another game object — which is the exact confusion to avoid, because a
   username is free text and somebody really is called "Poison". So: a bordered
   pill with a person glyph. Same family, unmistakably a different kind of thing,
   and legible as a person before the name is even read.

   The border rather than a fill: the log spends its colour on damage, healing
   and shield, and a filled pill here would compete with the numbers that carry
   the battle. An outline reads as "this is a proper noun" without taking any of
   that budget. */
.rp-tale-who {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px 0 4px;
    border: 1px solid var(--rail);
    border-radius: 9px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.94em;
    color: var(--bulma-text);
    /* The pill is taller than the text it sits in; without this the line spacing
       of a log that mentions a player on most rows visibly opens up. */
    line-height: 1.15;
    vertical-align: baseline;
}

.rp-tale-who .fa-user {
    font-size: 0.72em;
    opacity: 0.65;
    /* The glyph carries no information the name does not — it is a category
       marker — so it stays quiet and never takes the row's colour. */
    color: var(--bulma-text-weak);
}

/* On a coloured row (damage red, healing green) the pill keeps the row's hue on
   its text so the sentence still reads as one thing, but the border and glyph
   stay neutral so the marker itself never looks like a magnitude. */

/* THE LOG, DRAWN (owner, 2026-11-01) ----------------------------------------
   "Add icons where possible to reduce the amount of text and make the logs
   easier to read", without moving, dropping or adding anything: the words
   between the chips become pictures in place, each with its words as its hover
   (logGlyphs in replay.js has the vocabulary). An axie is its portrait and a
   player is a pill pointing at their side; both keep their names as hover.

   A verb is a badge with its word (below). What has no word — the two arrows —
   is a bare glyph, at the chips' size and reduced strength: the first cut drew
   glyphs at 0.84em and the owner found them too small to read.
   An amount stays at full weight and carries its unit, because "−20 ♥ −7 ⛨" is
   two resources and the unit is the only thing that says which. */
.rp-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05em;
    /* A little air on both sides: the words these replace carried their own
       spaces, and a glyph flush against a portrait reads as part of it. */
    margin-inline: 0.16em;
    font-size: 1.2em;
    opacity: 0.82;
    vertical-align: baseline;
    cursor: help;
}
/* The two arrows only join a name to what it did or where it came from; they
   are the faintest thing on the row. */
.rp-lg-dir { font-size: 0.9em; opacity: 0.6; }
.rp-lg-name { font-weight: 600; }
.rp-lg-n {
    margin-inline-start: 2px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rp-lg-amt {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-inline: 0.12em;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: help;
}
.rp-lg-amt i { font-size: 1.1em; }
/* Shield is its own resource on every row it appears in — a hit row's red
   "shield absorbs" included — so its unit keeps the shield hue the board's
   crest and the figure column use. HP takes the row's own hue. */
.rp-lg-amt--shield i { color: hsl(var(--ward)); }
.rp-lg-max {
    margin-inline-start: 1px;
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.75;
}
.rp-lg-orb {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-sizing: border-box;
}
.rp-lg-amt--spark .rp-lg-orb { background: hsl(var(--spark)); }
.rp-lg-amt--frag { color: var(--bulma-text-weak); }
.rp-lg-amt--frag .rp-lg-orb { border: 1.5px dashed hsl(var(--spark)); }
/* What a shield had left: "99 left", a reading after the loss, not a second amount. */
.rp-lg-left {
    margin-inline-start: 3px;
    font-size: 0.8em;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
}
.rp-lg-tag {
    margin-inline-start: 3px;
    font-size: 0.78em;
    font-weight: 500;
    opacity: 0.65;
}
/* A shield loss folded into its hit (foldShieldInto in replay.js) leaves its
   reading beside the hit's shield figure — "−32 ⛨ last", "−12 ⛨ 49 left". It is
   the shield's, so it takes the shield's hue, not the hit row's red. */
.rp-lg-amt--shield + :is(.rp-lg-left, .rp-lg-tag) { color: hsl(var(--ward)); opacity: 0.85; }
/* A VERB IS A BADGE: its icon and its short word on a neutral chip (owner,
   2026-11-01: "badges with text inside, so that there's text and it's visually
   distinct"; of four drawings — soft tag, icon + word, split, solid caps — "icon
   + word tag is good"). The icons alone were short but had to be learned; the
   word makes the row a sentence again at a third of its length. The ICON
   carries the family colour (data-k, from LG_WORD in replay.js): in / out /
   back / add are the History rail's move colours, so a draw is still the rail's
   green hand and a discard its red stack; ward is shield; act a fighter doing
   something, in ink; fx / note / place quiet ink. The word stays ink: the row's
   colour budget is the amounts'. */
.rp-lg[data-k="in"] { --lg-k: hsl(var(--mend)); }
.rp-lg[data-k="out"] { --lg-k: hsl(var(--hit)); }
.rp-lg:is([data-k="back"], [data-k="ward"]) { --lg-k: hsl(var(--ward)); }
.rp-lg[data-k="add"] { --lg-k: hsl(var(--win)); }
.rp-lg[data-k="act"] { --lg-k: var(--bulma-text); }
.rp-lg:is([data-k="fx"], [data-k="note"], [data-k="place"]) { --lg-k: var(--bulma-text-weak); }

.rp-lg.has-w {
    min-width: 0;
    gap: 3px;
    margin-inline: 0.2em;
    padding: 0 6px 0 5px;
    border-radius: 4px;
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    opacity: 1;
    color: var(--bulma-text);
    background: color-mix(in srgb, var(--bulma-text) 9%, transparent);
}
.rp-lg.has-w > i { color: var(--lg-k); font-size: 0.95em; }
/* The WORD sets the badge's baseline, so it sits on the line with the words
   around it; left to the icon (the first item) the badge rode ~3px high. */
.rp-lg-w { align-self: baseline; }
/* A pile named as a PLACE ("'s hand", "'s discard pile") is the outline of a
   badge: a place, not a thing happening. */
.rp-lg.has-w[data-k="place"] {
    color: var(--lg-k);
    background: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-k) 55%, transparent);
}

/* AN AMOUNT THE FIGURE COLUMN ALREADY DRAWS IS ITS VERB (owner, 2026-11-01:
   "the numbers are repeating themselves… avoid repetition"; picked "B" of
   four drawings). logRow marks the sentence's copy of the column's figure
   `.rp-lg-amt.is-fig`; it shows its badge — ♥ heals, ♥ loses, ⛨ gains, ⛨ loses,
   ● energy, ◌ fragment — and its number stays as hidden text. A hit's amount
   has no badge ("hits" is already on the row) and simply goes. Amounts the
   column does not carry ("shield absorbs 7", max HP, a 0) keep their number. */
.rp-lg[data-k="spark"] { --lg-k: hsl(var(--spark)); }
.rp-lg-amt-v { display: none; }
.rp-lg-amt.is-fig { margin: 0; gap: 0; }
.rp-lg-amt.is-fig > :not(.is-sr-only):not(.rp-lg-amt-v) { display: none; }
.rp-lg-amt.is-fig .rp-lg-amt-v { display: inline-flex; }

/* The player as a pill pointing at their half of the board. */
.rp-tale-who.is-glyph {
    gap: 2px;
    padding: 1px 5px;
    cursor: help;
}
.rp-tale-who-side {
    font-size: 1.1em;
    color: var(--bulma-text-weak);
}
/* With no name beside it the person glyph IS the pill, so it takes the size a
   name's letters had. */
.rp-tale-who.is-glyph .fa-user { font-size: 1.05em; }

/* A charm, as its own art alone — the way a rune is its gem. */
.rp-tale-charm img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: none;
}
.rp-tale-charm { cursor: help; }

/* ═════════════════════════════════════════════════════════════════════════
   ANIMATED AXIES (replayAnim.js) — the optional mode and its switch.

   Static is the page as it always was, and nothing below applies to it: no
   canvas exists, no still is hidden, and the only new thing on screen is the
   switch itself.

   In Animated each roster tile gets a <canvas class="rp-axie-art
   rp-axie-anim">, carrying the still's own classes so every rule written for
   the picture — its box, the team-0 flip, the dead and covered fades — is the
   canvas's too, with nothing restated. Measured, the canvas is the still's box
   to the pixel on desktop and in both phone states (docs/modules/replays.md).
   ═════════════════════════════════════════════════════════════════════════ */

/* The still steps out once its canvas has drawn a frame, and comes straight
   back if Animated is switched off, fails, or loses its GPU. */
.rp-axie-art.is-swapped { display: none; }

/* The game's battle effects (replayVfx.js): one canvas over the whole field,
   so a projectile can cross from one team to the other. Only Animated makes
   it. Over the tiles and the beam (same 5, later in the field), under the
   pinned transport and the panels that sit above the beam; it takes no
   pointer, so every tile and chip under an effect stays clickable. */
.rp-vfx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* On the dark theme the effects ADD their light, as the game draws them: a fading glow dims instead of laying a
   darker veil over the board (laid over dark, a half-faded green cross read as olive). Screen first, for a browser
   without plus-lighter. On the light theme they stay laid over the board: added light on white shows nothing. */
.theme-dark .rp-vfx {
    mix-blend-mode: screen;
    mix-blend-mode: plus-lighter;
}

/* While it loads the canvas is laid over the still at the still's box (written
   inline by replayAnim.js) and is not seen: in the flow it would push the tile's
   body down by a picture, and display: none would leave it nothing to draw into,
   which costs one blank frame at the swap. The tile is already the containing
   block (`position: relative`, for the pop). */
.rp-axie-anim.is-loading {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
}

/* The desktop's switch: a pair in the speed control's own clothes, beside it.
   Two words rather than one pressed button, because the point the owner asked
   for is that BOTH modes are there to pick — the plain one is not an absence. */
.rp-anim-mode {
    display: inline-flex;
    border: 1px solid var(--rail);
    border-radius: var(--r-badge);
    overflow: hidden;
}

.rp-anim-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    height: 32px;               /* 34 with the group's border: flush with .rp-btn, like the speed stops */
    border: 0;
    background: none;
    font-family: var(--mono);
    font-size: var(--fs-small);
    color: var(--bulma-text-weak);
    cursor: pointer;
}

.rp-anim-btn + .rp-anim-btn { border-inline-start: 1px solid var(--rail); }
.rp-anim-btn:hover { color: var(--bulma-text); background: var(--bulma-scheme-main-ter); }
.rp-anim-btn .fa-solid,
.rp-anim-btn .fa-regular { font-size: 0.9em; }

.rp-anim-btn.is-on {
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    font-weight: 700;
}

.rp-anim-btn:focus-visible {
    outline: 2px solid var(--bulma-text);
    outline-offset: -2px;
}

/* The phone's switch, beside the wheel's reading. Absolute, so the reading keeps
   its centre and the wheel's box keeps its height: the wheel is clamped to the
   screen by that box, and a taller one would push its foot off the bottom edge.

   Placed off the wheel's centre (the foot's 50%) rather than off the reading,
   because the reading's width varies and the "next turn" corner sits just
   above it: 60px out and 28px across keeps 2.3px (landscape) / 3.5px
   (upright) between the two discs, and `max()` walks it right of a reading
   that would reach it. Measured on 001233bd with the reading written out to
   a four-digit battle ("Turn 16 1000/1000"): landscape (844x390, 740x360)
   reads 73-104px and the switch overhangs the cluster's 172px by 2px at every
   reading; upright (390x844) reads 94-132px, 2px through a three-digit battle
   and 11.9px at a four-digit one — 3.9px more than the 8px the wheel is kept
   from the screen's edge, so at the wheel's default right-hand spot that much
   of the disc is cut off (still 24px to press). */
.rp-wheel-foot { position: relative; }

.rp-anim-sat {
    position: absolute;
    left: max(100% + 4px, 50% + 60px);
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 0;
    padding: 0;
    border: 1px solid var(--rail);
    border-radius: 50%;
    background: var(--bulma-scheme-main);
    color: var(--bulma-text-weak);
    font-size: var(--fs-small);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* The wheel's wrapper takes no touches (its text is something a finger
       passes through); its buttons take theirs back, and so does this one. */
    pointer-events: auto;
    touch-action: manipulation;
    box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
}

.rp-anim-sat.is-on {
    background: var(--bulma-text);
    color: var(--bulma-scheme-main);
    border-color: var(--bulma-text);
}

.rp-anim-sat:focus-visible {
    outline: 2px solid var(--bulma-text);
    outline-offset: 2px;
}

/* Why the mode changed by itself, by the switch that changed. Fixed and placed
   by replayAnim.js, so it moves nothing; it goes on a press, a scroll, or after
   ten seconds. Above the wheel (52) and the drawers, below the status tip (60). */
/* The note's words for a screen reader: one empty live region made at load and
   only ever written to (see `say` in replayAnim.js), so it is never seen. */
.rp-anim-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.rp-anim-note {
    position: fixed;
    z-index: 58;
    max-width: min(340px, calc(100vw - 16px));
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--rail);
    border-radius: var(--r-badge);
    background: var(--bulma-scheme-main);
    color: var(--bulma-text);
    font-size: var(--fs-small);
    line-height: 1.35;
    box-shadow: 0 2px 12px rgb(0 0 0 / 22%);
    cursor: pointer;
}

/* ═════════════════════════════════════════════════════════════════════════
   SOUND (replaySound.js) — the speaker switch.

   Off by default, so all this draws is one button: on the desktop a pill of its
   own after `Animated | Static`, in the pair's clothes (.rp-anim-mode,
   .rp-anim-btn) but not inside it — it is a toggle with aria-pressed, and the
   pair is a radio group; on a phone a second round button on the wheel's foot,
   the film button's mirror image on the left. Nothing else on the page changes
   when sound is on: it is heard, not drawn.
   ═════════════════════════════════════════════════════════════════════════ */

/* The pressed look is the pair's chosen word's (.rp-anim-btn.is-on); a switch
   that cannot work (no format decodes) stays where it is, dimmed. */
.rp-sound-btn:disabled,
.rp-sound-sat:disabled { opacity: 0.45; cursor: not-allowed; }

/* The film button sits at `left: max(100% + 4px, 50% + 60px)` of the foot — 60px
   right of the wheel's centre, or just past a reading too wide for that. This is
   the same rule from the other edge, so the two discs stand symmetric about the
   reading at every width it takes. Two classes, so it wins over .rp-anim-sat. */
.rp-anim-sat.rp-sound-sat {
    left: auto;
    right: max(100% + 4px, 50% + 60px);
}

/* ═════════════════════════════════════════════════════════════════════════
   THE WIDE DESKTOP — the replay takes the screen (owner, 2026-10-31)
   ─────────────────────────────────────────────────────────────────────────
   On a 16:9 monitor the page used a 1340px column in the middle of the screen,
   and the board cannot simply be scaled into the rest: rail + board is ~1.4:1
   and already ~940px tall with its playback, so at 2000x1111 a uniform scale
   gains ~15% before the play bar leaves the screen, and the sides stay empty.
   What fills the width is what was below the fold: the battle log stands in a
   column on the right, as the history rail does on the left, and both run the
   board's height and scroll inside it. The title folds into one line, and the
   board is fitted to the screen's height by replay.js (`fitWide`), which writes
   `--rp-board-max`: the widest the board can be with its playback still
   ending on screen.

   Nothing moves in the DOM. `.rp-stage` gives up its box (`display: contents`)
   so the rail and the board become cells of the page's own grid beside the
   playback and the log; everything else on the page — the coach, the totals —
   spans the full width below, in its old order.

   The rail and the log are `contain: size`: a column of 825 log rows must not
   size the grid's rows, so they size as if empty and are stretched to the two
   rows the board and the playback make, then scroll inside, the way they
   already did at 62vh and 46vh. `revealIn()` keeps the cursor's row in view
   whatever the box's height.

   From 1760px wide: the log's column comes out of the board's, and below 1760
   the three-column board would be narrower than the old one (1,080px), so
   narrower windows keep the page above, unchanged. fitWide never takes the
   board under 1,080 either: a window too short for it scrolls a little, as the
   old page did, only less. */
@media (min-width: 1760px) and (min-height: 720px) {
    .rp {
        max-width: none;
        padding: 12px clamp(16px, 1.6vw, 32px) 40px;
        display: grid;
        grid-template-columns: 208px minmax(0, 1fr) clamp(340px, 21vw, 460px);
        grid-template-areas:
            "head head head"
            "rail board log"
            "rail play  log";
        column-gap: clamp(12px, 1.2vw, 22px);
        align-items: start;
    }
    .rp > * { grid-column: 1 / -1; }
    .rp-stage { display: contents; }
    .rp-head { grid-area: head; }
    .rp-hist { grid-area: rail; }
    .rp-field { grid-area: board; }
    .rp-transport { grid-area: play; }
    .rp-logs { grid-area: log; }

    /* The title, one line: eyebrow, the two names, the facts, save / favorite. */
    .rp-head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: center;
        gap: 4px 18px;
        margin-bottom: 14px;
    }
    .rp-eyebrow { margin: 0; }
    .rp-title { font-size: 1.4rem; }
    .rp-meta { margin-top: 0; }
    .rp-keep { margin-top: 0; align-self: center; }

    /* The board and its playback, as wide as fitWide lets them be, centred in
       the middle column so a board held back by the screen's height keeps the
       rail and the log at its sides rather than leaving a gap at one. */
    .rp-field,
    .rp-transport {
        width: 100%;
        max-width: var(--rp-board-max, none);
        justify-self: center;
    }
    .rp-transport { margin-top: 14px; }

    /* The two columns, the board's height and scrolling inside it. */
    .rp-hist,
    .rp-logs {
        align-self: stretch;
        contain: size;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    .rp-hist-list { flex: 1 1 0; min-height: 0; max-height: none; }
    .rp-logs { margin: 0; max-width: none; }
    .rp-logs-col { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; }
    .rp-log--story { flex: 1 1 0; min-height: 0; max-height: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
   THE TURN'S PILE (owner's pick, 2026-10-31; built by replay.js, THE TURN'S PILE)
   ─────────────────────────────────────────────────────────────────────────
   The cards this side has already played this turn lie in a pile behind the
   card that is resolving. At rest four layers peek out, fanned toward the
   owner's board; spread (hover, or a tap on a touch screen) every card of the
   turn so far lies face up toward that board with its ordinal. The spread
   OVERLAPS — `--lh-step` is the room to the board's edge shared out, never more
   than a card less 8px — and `.rp-lh::before` covers the whole run while it is
   out, so there is no gap for the pointer to fall through and fold it.

   `--lh-w` is the live card's width where the pile stands (112 desktop lane,
   68 landscape lane, 84 upright turnbox) and `--lh-k` scales the at-rest fan
   with it. */

/* Wherever there is a lane the turnbox only ever held the turn's earlier
   cards; they are the pile now, so its reserve goes and the board is shorter. */
.rp-field.has-lane-pile .rp-turnbox { min-height: 0; margin-top: 0; }

/* The lane: the live card and the pile share one grid cell, the receipt under. */
.rp-lane {
    --lh-w: 112px;
    --lh-k: 1;
    display: grid;
    justify-items: center;
    align-content: start;
    grid-template-areas: "card" "now";
    /* The receipt's row may come in under its content — the lane is bounded
       (see the stage block) and the list inside the receipt scrolls. */
    grid-template-rows: auto minmax(0, auto);
}
.rp-lane > .rp-lane-card,
.rp-lane > .rp-lh { grid-area: card; }
.rp-lane > .rp-now { grid-area: now; justify-self: stretch; }

/* The upright phone's receipt stands beside the pile in the turnbox, whose
   height is one live card held in reserve so the hand cannot walk. The receipt
   lists every fighter now, so it stops at that reserve and scrolls. */
.rp-turnbox > .rp-now { max-height: calc(84px * 706 / 456); }
.rp-lane > .rp-lane-card { position: relative; z-index: 2; }

/* The upright phone has no lane: the pile and the live card stand together in
   the owner's row, in the slot the live card had. */
.rp-stack {
    --lh-w: 84px;
    --lh-k: 0.75;
    position: relative;
    z-index: 8;
    flex: 0 0 var(--lh-w);
    width: var(--lh-w);
    list-style: none;
}
.rp-stack-card { position: relative; z-index: 2; display: flex; margin: 0; padding: 0; list-style: none; }
.rp-stack > .rp-lh { position: absolute; inset: 0; }

.rp-lh {
    position: relative;
    width: var(--lh-w);
    height: calc(var(--lh-w) * 706 / 456);
}
.rp-lh.is-empty { display: none; }
.rp-lh-pile { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; }
.rp-lh-card {
    --tx: 0px;
    --ty: 0px;
    --rot: 0deg;
    --lift: 0px;
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    flex: none;
    list-style: none;
    opacity: 1;
    cursor: pointer;
    transform-origin: 50% 90%;
    transform: translate(var(--tx), calc(var(--ty) + var(--lift))) rotate(var(--rot));
    transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
    filter: brightness(0.62);
}
.rp-lh-card { container-type: inline-size; }
/* The left strip, the only part of a spread card that shows: the charm under
   the cost orb, the owner's portrait in the bottom-left corner (the hand card's
   own spot and 4:3 framing, see `.rp-hcard-who`), the ordinal just above it.
   Sized in the card's own width (cqw) so a 68px landscape card wears them in
   proportion, and drawn only while the pile is spread — at rest the cards are
   a pile, and slivers of portraits round its edge would be noise. */
.rp-lh-card .rp-lh-ord {
    display: none;
    position: absolute;
    left: 3.6cqw;
    /* Just above the portrait's head — see `.rp-hcard-who` for the 30cqw. */
    bottom: calc(30cqw + 2px);
    padding: 0 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-family: var(--mono);
    font-size: clamp(8px, 9cqw, 10px);
    line-height: 1.4;
    pointer-events: none;
}
.rp-lh-who {
    display: none;
    position: absolute;
    /* The hand card's spot and size; see `.rp-hcard-who`. */
    left: -6.4cqw;
    bottom: 2.6cqw;
    width: 46cqw;
    height: 34.5cqw;
    object-fit: contain;
    filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.85));
    pointer-events: none;
}
.rp-lh-charm {
    display: none;
    position: absolute;
    left: 4cqw;
    top: 30cqw;
    width: 21.4cqw;
    height: 21.4cqw;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
    pointer-events: none;
}
.rp-lh-charm--none {
    width: auto;
    height: auto;
    font-size: clamp(9px, 12cqw, 13px);
    line-height: 1;
    color: hsl(var(--win));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* At rest: four layers fanned toward the owner's board, the rest behind the fourth. */
.rp-lh[data-dir="-1"] .is-depth-1 { --tx: calc(-9px * var(--lh-k));  --ty: calc(-5px * var(--lh-k));  --rot: -6deg; }
.rp-lh[data-dir="-1"] .is-depth-2 { --tx: calc(-16px * var(--lh-k)); --ty: calc(-9px * var(--lh-k));  --rot: -11deg; }
.rp-lh[data-dir="-1"] .is-depth-3 { --tx: calc(-22px * var(--lh-k)); --ty: calc(-12px * var(--lh-k)); --rot: -15deg; }
.rp-lh[data-dir="-1"] .is-depth-4,
.rp-lh[data-dir="-1"] .is-deep    { --tx: calc(-27px * var(--lh-k)); --ty: calc(-14px * var(--lh-k)); --rot: -19deg; }
.rp-lh[data-dir="1"] .is-depth-1  { --tx: calc(9px * var(--lh-k));   --ty: calc(-5px * var(--lh-k));  --rot: 6deg; }
.rp-lh[data-dir="1"] .is-depth-2  { --tx: calc(16px * var(--lh-k));  --ty: calc(-9px * var(--lh-k));  --rot: 11deg; }
.rp-lh[data-dir="1"] .is-depth-3  { --tx: calc(22px * var(--lh-k));  --ty: calc(-12px * var(--lh-k)); --rot: 15deg; }
.rp-lh[data-dir="1"] .is-depth-4,
.rp-lh[data-dir="1"] .is-deep     { --tx: calc(27px * var(--lh-k));  --ty: calc(-14px * var(--lh-k)); --rot: 19deg; }
.rp-lh .is-deep { opacity: 0; }

/* Spread: hover where there is a pointer that hovers, a tap where there is not. */
/* Overlapped like a hand of cards: every card shows its LEFT strip — the cost
   orb, the top of the art and the ordinal — so the card to its right lies on
   top. Spreading right that is the farther card, spreading left the nearer;
   and spreading right the first card starts a whole card out, beside the live
   card, which would otherwise lie over that card's strip. */
/* `:focus-within` too: a keyboard reader tabbing into the pile gets it spread,
   or the focused card would be one hidden behind the live card. */
.rp-lh.is-spread .rp-lh-card,
.rp-lh:focus-within .rp-lh-card { --ty: 0px; --rot: 0deg; filter: none; opacity: 1; }
.rp-lh.is-spread[data-dir="-1"] .rp-lh-card,
.rp-lh:focus-within[data-dir="-1"] .rp-lh-card { --tx: calc(-1 * var(--i) * var(--lh-step, 104px)); z-index: calc(100 - var(--i)); }
.rp-lh.is-spread[data-dir="1"] .rp-lh-card,
.rp-lh:focus-within[data-dir="1"] .rp-lh-card  { --tx: calc(100% + (var(--i) - 1) * var(--lh-step, 104px)); z-index: calc(100 + var(--i)); }
.rp-lh.is-spread .rp-lh-card :is(.rp-lh-ord, .rp-lh-who, .rp-lh-charm),
.rp-lh:focus-within .rp-lh-card :is(.rp-lh-ord, .rp-lh-who, .rp-lh-charm) { display: block; }
/* The card under the pointer rises above its neighbours — on a pointer that
   hovers only: a phone keeps the tapped card "hovered", and it would then sit
   over the next card's strip for as long as the pile is open. */
.rp-lh-card:focus-visible { --lift: calc(-10px * var(--lh-k)); z-index: 300; }
.rp-lh.is-spread::before {
    content: "";
    position: absolute;
    top: -14px;
    bottom: -6px;
    width: calc(var(--lh-n, 0) * var(--lh-step, 104px) + 100% + 8px);
}
.rp-lh.is-spread[data-dir="-1"]::before { right: -4px; }
.rp-lh.is-spread[data-dir="1"]::before  { left: -4px; width: calc((var(--lh-n, 1) - 1) * var(--lh-step, 104px) + 200% + 8px); }

@media (hover: hover) {
    .rp-lh:hover .rp-lh-card { --ty: 0px; --rot: 0deg; filter: none; opacity: 1; }
    .rp-lh:hover[data-dir="-1"] .rp-lh-card { --tx: calc(-1 * var(--i) * var(--lh-step, 104px)); z-index: calc(100 - var(--i)); }
    .rp-lh:hover[data-dir="1"] .rp-lh-card  { --tx: calc(100% + (var(--i) - 1) * var(--lh-step, 104px)); z-index: calc(100 + var(--i)); }
    .rp-lh:hover .rp-lh-card :is(.rp-lh-ord, .rp-lh-who, .rp-lh-charm) { display: block; }
    .rp-lh:hover .rp-lh-card:hover,
    .rp-lh:hover .rp-lh-card:focus-visible,
    .rp-lh.is-spread .rp-lh-card:hover { --lift: calc(-10px * var(--lh-k)); z-index: 300; }
    .rp-lh:hover::before {
        content: "";
        position: absolute;
        top: -14px;
        bottom: -6px;
        width: calc(var(--lh-n, 0) * var(--lh-step, 104px) + 100% + 8px);
    }
    .rp-lh:hover[data-dir="-1"]::before { right: -4px; }
    .rp-lh:hover[data-dir="1"]::before  { left: -4px; width: calc((var(--lh-n, 1) - 1) * var(--lh-step, 104px) + 200% + 8px); }
}

/* A touch screen has no hover to open a card's panel and a tap means "go
   there", so the pile's cards carry none. */
@media (hover: none) {
    .rp-lh .rp-hcard-tip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .rp-lh-card { transition: none; }
}

/* The landscape lane is 96px: a 68px live card, a pile to match, and the
   receipt under them — every pixel of height going to the receipt (owner,
   2026-10-31: "make it a little longer and remove the empty spaces").

   NO CARET ROW. The owner's caret stood above the card in a 14px row of its own;
   the receipt's first team caption now says the same thing — the acting side is
   always the first group, captioned with its player and the same caret — and the
   lit panel's thicker edge is on the owner's side as before.

   The receipt grows down to just above the wheel. The wheel's default home is
   bottom-middle, under this column, and its top is `100dvh − 157px` on every
   phone measured (844x390, 915x412, 932x430, 740x360, 667x375: the wheel is 132px
   plus its 17px reading, 8px off the bottom edge).

   AND IT STANDS IN THE BAND (same day, "increase a little"). The lane used to
   start under the header band, where the side names sit and the middle column
   says "vs" — 23px given to a word that is decoration once a card is on the
   stage. While the lane is lit it starts 2px from the top and the "vs" steps
   aside; at turn 0 there is no panel and the word is back. The receipt then
   starts 112px down, so its room is `100dvh − 157 − 4 − 112 − 5` (4px clear of
   the wheel, 5px of the panel's foot): 112px at 390 tall (70 before any of this),
   152px at 430. Never less than 70px; never more than 170px, which keeps the lane
   inside the field's 341px. */
@media (max-height: 540px) and (orientation: landscape) {
    .rp-lane {
        --lh-w: 68px;
        --lh-k: 0.6;
        grid-template-areas: "card" "now";
        grid-template-rows: auto minmax(0, auto);
        gap: 2px;
        padding-top: 2px;
    }
    .rp-lane.is-lit { margin-top: 2px; }
    .rp-field:has(> .rp-lane.is-lit) > .rp-vs { visibility: hidden; }
    .rp-lane > .rp-now { max-height: clamp(70px, calc(100dvh - 278px), 170px); }
    .rp-lane[data-owner].is-lit::before { content: none; display: none; }
}

/* THE TILE, READ FROM ACROSS THE ROOM (2026-10-31) ---------------------------
   On a desktop the tile is 126-245px wide, and three of the things on it were
   still sized for the 96px landscape phone: the status icons at 19px, the HP
   figures at 9.9px in weak ink, and the shield's digits at 9px. The owner's
   verdict was that HP and shield were "not noticeable". This block is the
   desktop's own sizes. Every other layout keeps the ones above; the upright
   phone is left out by the second clause, because a tablet held upright matches
   the first (721+ wide, 541+ tall) but gets the phone's portrait layout.

   STATUS ICONS SIZED BY THE STRIP. The strip is the container, so an icon is a
   fifth of its width less the gaps, between 22px and 30px: five to a row from
   a 126px strip up (1920x1080), four below that (1280x800 and 1500x1000), and
   never back to 19. The strip is the tile's content less the rune's 12px corner
   (below), which the first version, at 24-30px, ran its fourth icon under. The row is still reserved at one icon's height, so a rank
   keeps its pictures on one line: since 2026-11-01 by the picture's top margin
   (see below). A zero-width ::before at the full icon's height still sets the
   strip's first line, so smaller crowded icons centre in it. Its -4px margin
   cancels the gap it would otherwise add. The plates grow with the icon, at
   0.48 of its edge, so two of them on one edge still clear each other.

   A CROWDED STRIP SHRINKS BEFORE IT WRAPS, AND A WRAP NEVER MOVES THE BOARD
   (2026-11-01). From 1280 to 1680 wide the strip is 100-110px, room for four
   icons at 22px, so a fifth wrapped. The tile grew a row and its rank grew with
   it: the board jumped 52px for as long as the axie wore five (8a2880a3 steps
   463-570, at every size up to 1680). Two changes:
   - Four badges or more are sized to fit their count in the strip, never more
     than the full size and never under 18px; from five the gap closes to 2px.
     Five now fit on one row at every desktop size (18.3px at 1024-1280, 20.3px
     at 1366-1680, the full 22.5px from 1920), and six from 1920.
   - The strip stands out of the flow, over the top of the tile. Its first row
     is held open by the picture's top margin, the same row height worked out
     from the tile's width (a margin's percentage is of the containing block's
     width, the one length the picture can see). A row beyond the first then
     runs down over the picture instead of pushing the picture down. That is
     the landscape phone's drawing (its strip has stood on the art since the
     phone layout), and honest the same way: nothing is clipped. Only a strip
     past what one row can hold at 18px gets there: seven and up at 1920, six
     and up below. The strip lets pointers through except on its badges,
     because its rune-side padding lies over the rune gem. */
@media (min-width: 821px) and (min-height: 541px),
       (min-width: 721px) and (min-height: 541px) and (orientation: landscape) {
    .rp-axie > .rp-marks {
        container-type: inline-size;
        min-height: 0;
        /* The rune's corner. The gem hangs 12px into the content box at the top-
           OUTER corner, which is where a full row ends, so that much of the strip
           is kept clear on that side and the icons centre in the rest. Every tile
           keeps it, rune or not, so a rank's icons and rows stay one size. */
        padding-inline-start: 12px;
        position: absolute;
        top: var(--sp-3);
        left: var(--sp-3);
        right: var(--sp-3);
        z-index: 2;
        pointer-events: none;
    }
    .rp-axie > .rp-marks > .rp-mark { pointer-events: auto; }
    /* The strip's first row, held open under it: the row height below in terms
       of the tile's content width (100%), less the strip's 12px and its gaps,
       plus the tile's own gap. Not on a loading canvas, which is laid over the
       still at the still's box and would be pushed off it. */
    .rp-axie > .rp-marks ~ .rp-axie-art:not(.is-loading) {
        margin-top: calc(clamp(22px, calc((100% - 12px - 16px) / 5), 30px) + var(--sp-2));
    }
    .rp-side--right .rp-axie > .rp-marks { padding-inline-start: 0; padding-inline-end: 12px; }
    .rp-axie > .rp-marks::before {
        content: "";
        flex: 0 0 0;
        width: 0;
        height: clamp(22px, calc((100cqw - 16px) / 5), 30px);
        margin-inline-end: -4px;
    }
    .rp-axie > .rp-marks .rp-mark--icon {
        --mark-full: clamp(22px, calc((100cqw - 16px) / 5), 30px);
        --mark: var(--mark-full);
        width: var(--mark);
        height: var(--mark);
    }
    /* By count: n icons and their gaps in the strip's width, with half a pixel
       spare. Four at 22px and three 4px gaps are exactly a 100px strip, and at
       1024 wide the tile's width ends in a fraction, so the fourth wrapped. */
    .rp-axie > .rp-marks:has(> :nth-child(4)) .rp-mark--icon {
        --mark: max(18px, min(var(--mark-full), calc((100cqw - 12.5px) / 4)));
    }
    .rp-axie > .rp-marks:has(> :nth-child(5)) { gap: 2px; }
    .rp-axie > .rp-marks:has(> :nth-child(5)) .rp-mark--icon {
        --mark: max(18px, min(var(--mark-full), calc((100cqw - 8.5px) / 5)));
    }
    .rp-axie > .rp-marks:has(> :nth-child(6)) .rp-mark--icon {
        --mark: max(18px, min(var(--mark-full), calc((100cqw - 10.5px) / 6)));
    }
    /* At 18px a plate at 0.48 would be 8.6px with 7px digits; the phone's own
       10px plate and 8px digits are the floor. */
    .rp-axie > .rp-marks .rp-mark--icon .rp-mark-n,
    .rp-axie > .rp-marks .rp-mark--icon .rp-mark-t {
        min-width: max(10px, calc(var(--mark) * 0.48));
        height: max(10px, calc(var(--mark) * 0.48));
        font-size: max(var(--fs-micro), calc(var(--mark) * 0.4));
    }
    .rp-axie > .rp-marks .rp-mark:not(.rp-mark--icon) { max-width: 100%; font-size: var(--fs-fine); }

    /* The team's strip in the header (Bad Luck, Bulwark, Cunning, Vengeance) at
       28px, the tiles' largest: it has the header's width to itself and at most
       four badges, so it needs no container to size it. Its reserved row grows
       with it. */
    .rp-team-marks .rp-mark--icon { --mark: 28px; width: var(--mark); height: var(--mark); }
    .rp-team-marks .rp-mark--icon .rp-mark-n,
    .rp-team-marks .rp-mark--icon .rp-mark-t {
        min-width: calc(var(--mark) * 0.48);
        height: calc(var(--mark) * 0.48);
        font-size: calc(var(--mark) * 0.4);
    }
    /* 4px under it: the outer tile's rune now hangs 12px above its tile, at the
       outer corner, right under where this strip ends on the right-hand side. It
       overlapped the last badge by 3px (0535adba step 537). */
    .rp-team-marks.is-used { min-height: 28px; margin-bottom: 4px; }

    /* HP: a bar half as tall again, and the figure that matters in body ink at
       the size of the axie's name, read on the numerals' baseline with the max
       beside it in the weak ink it already had. The thresholds are cut into a
       12px bar the same way as an 8px one. */
    .rp-form .rp-hp-track { height: 12px; }
    .rp-form .rp-hp-read {
        align-items: baseline;
        min-height: 28px;
        font-size: var(--fs-small);
    }
    .rp-form .rp-hp-read > [data-hp-now] {
        font-size: var(--fs-loud);
        font-weight: 700;
        color: var(--bulma-text);
    }

    /* The shield crest at the game's proportion to the figure: 28px tall against
       14.7px numerals, its own digits as big as the figure's. The read row holds 26px whether
       or not a shield stands, so a shield arriving moves nothing. */
    .rp-form .rp-shield {
        --shield-h: 28px;
        --shield-w: 27px;
        padding-inline: 5px;
        font-size: var(--fs-loud);
        margin-inline-end: 6px;
        align-self: center;
    }

    /* The rune and the class crest, a size up with everything else: the rune
       gem 22 -> 30px with its stars 5 -> 7px, and the crest 15 -> 22px. Both
       overhang their corners further (7 -> 12px, 6 -> 10px), so the part of each
       that lies over the tile grows by only a few pixels: the rune's 12px is the
       corner the status strip keeps clear, and the crest's 12px is the sparkline's
       first turn. */
    .rp-form .rp-rune { top: -12px; inset-inline-start: -12px; }
    .rp-side--right .rp-form .rp-rune { inset-inline-start: auto; inset-inline-end: -12px; }
    .rp-form .rp-rune-img { width: 30px; height: 30px; }
    .rp-form .rp-rune-badge .badge { height: 7px; background-size: 7px 7px; }
    .rp-form .rp-rune-badge .badge.star-1 { width: 7px; }
    .rp-form .rp-rune-badge .badge.star-2 { width: 14px; }
    .rp-form .rp-rune-badge .badge.star-3 { width: 21px; }
    .rp-form .rp-class { width: 22px; height: 22px; bottom: -10px; inset-inline-start: -10px; }
    .rp-side--right .rp-form .rp-class { inset-inline-start: auto; inset-inline-end: -10px; }
}

/* THE LANDSCAPE HAND, WITHOUT ITS NAME PANEL (owner, 2026-10-31) -------------
   "Remove the name of the cards and this will increase the size of the card."
   On a sideways phone the hand is a row of 46-58px cards whose HEIGHT is the
   fixed thing: the two-rank board and this row fill a 390px screen with 3.7px
   to spare (see the ramp above). The bottom 30% of a card is the panel the name
   is printed into — at 46px, 4.4px type nobody could read — and the class mark
   under it. Cut there, a card of the SAME height is 1/0.7 as wide: 65.7px where
   it was 46, 82.9 where it was 58. The row does not move by a pixel.

   What stays is everything a card is read by at this size: the cost gem, the
   value flag, the charm, the art, the part orb and the Attack/Skill/Retain tags
   (64-68% down every one of the 401 faces; the cut is 70%). The owner portrait
   keeps its bottom-left seat, which on the cropped card is exactly the part
   orb's — the axie's face over the part's icon. The name is still in the
   card's panel a tap away, and still read out: it is clipped, not removed.

   Cropped by the IMAGE (`object-fit: cover`, pinned to the top), never by
   `overflow: hidden` on the card: the card's panel is a fixed sheet that lives
   inside the card element, and clipping the card would clip the sheet. The
   overlays positioned in percent of the card's HEIGHT — the gem, the flags —
   are restated in the cropped box's percent (÷ 0.7); the ones sized in cqw
   follow the width and need nothing. */
@media (max-height: 540px) and (orientation: landscape) {
    .rp-hand {
        --hc-crop: 0.7;
        --card-w: calc(clamp(46px, calc(46px + (100dvh - 390px) * 0.55), 58px) / var(--hc-crop));
        height: calc(var(--card-w) * var(--hc-crop) / 0.646);
    }
    /* A CROWDED HAND OVERLAPS instead of shrinking. Shrunk to fit, a cropped card
       is shorter than the full card it replaced at the same width — from seven
       cards on, cutting the name panel would have made the cards SMALLER, the
       opposite of the point. So every card keeps its full 65.7px and the cards
       lie over one another like a held hand (the turn's pile does the same): the
       room left over, shared between the gaps, and never more than the 2px gap a
       hand of five has. Each card shows its left strip — the cost gem, the left of
       the art, the owner's face — which is what a card is picked out by; at ten
       cards that strip is 30px of 65.7, the flag still half in view. Later cards
       lie on top, so the strip a finger lands on is the card it opens.
       `--hand-n` is written by paintHand(). */
    .rp-hand { gap: 0; }
    .rp-hand .rp-hcard {
        flex: 0 0 var(--card-w);
        aspect-ratio: 456 / 494.2;
    }
    .rp-hand .rp-hcard + .rp-hcard {
        margin-inline-start: min(2px, calc((100% - var(--hand-n, 1) * var(--card-w)) / max(1, var(--hand-n, 1) - 1)));
    }
    /* Dimmed by darkening, not by transparency: an overlapped card at 0.45
       opacity showed the card under it through its own art. Same reading — the
       lit cards are the message — and the card stays a solid object. */
    .rp-hand .rp-hcard.is-unplayable { opacity: 1; filter: brightness(0.42) saturate(0.55); }
    .rp-hand .rp-hcard.is-unplayable:hover,
    .rp-hand .rp-hcard.is-unplayable:focus-within,
    .rp-hand .rp-hcard.is-unplayable.is-open { filter: none; }
    .rp-hand .rp-hcard-face:not(.rp-hcard-face--square) {
        object-fit: cover;
        object-position: center top;
        /* The art's own corners are baked in at the top; the cut gets matching ones. */
        border-radius: 0 0 7cqw 7cqw;
    }
    .rp-hand .rp-hcard-face--square { height: calc(69% / 0.7); }
    /* The retain frame follows the cut: the face fills the width from the top. */
    .rp-hand .rp-hcard:not(.is-bare):is(.is-retain, .is-just-kept)::before {
        background-size: 100% auto;
        background-position: center top;
    }
    .rp-hand .rp-hcard-alt { top: calc(5.8% / 0.7); height: calc(10% / 0.7); }
    .rp-hand .rp-hcard-alt--cost { top: calc(2.6% / 0.7); height: auto; }
    .rp-hand .rp-hcard-alt--attack ~ .rp-hcard-alt--shield,
    .rp-hand .rp-hcard-alt--attack ~ .rp-hcard-alt--healing,
    .rp-hand .rp-hcard-alt--shield ~ .rp-hcard-alt--healing { top: calc(16.4% / 0.7); }
    /* Clipped, not `display: none`: it is the card's accessible name. A card
       with no face at all keeps it — there the name is the whole card. */
    .rp-hand .rp-hcard:has(.rp-hcard-face) .rp-hcard-name {
        inset: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* WHOSE CARD IT IS: THE OWNER LIT ON THE BOARD (owner, 2026-10-31) ------------
   Hovering a card — hand, stage or pile — or opening one with a press lights
   the axie it belongs to: every other axie steps back and the owner keeps a thin
   ring. The owner chose this ("spot") out of five drawings built side by side;
   ring, lift, a pin over the head and a tether line went.

   Stepping back is not the same move in the two themes. In dark, a tile at a
   quarter opacity sinks into the page, which is what a spotlight looks like. In
   light the same quarter opacity bleaches every tile to near-white — the board
   looked emptied rather than dimmed (owner's screenshot) — and the white ring
   vanished against the white page. So light greys the others out instead and
   rings the owner in ink. Light's dimming is `filter: opacity()`, which
   multiplies with the tile's own opacity, so a downed tile (0.42) stays the
   dimmest thing on the board; dark's plain `opacity` is the one the owner saw
   and approved, kept as it is.

   The ring is an element of its own, never the tile's border, outline or
   `::before`: those already say focus, the aim reticle and what landed. */
.rp-own-mark {
    position: absolute;
    inset: -4px;
    border-radius: calc(var(--r-card) + 4px);
    box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.75);
    pointer-events: none;
    z-index: 4;
}
html:not(.theme-light) .rp-field.has-own-lit .rp-axie:not(.is-own-lit) { opacity: 0.25; }
html.theme-light .rp-field.has-own-lit .rp-axie:not(.is-own-lit) {
    filter: grayscale(1) brightness(0.9) opacity(0.55);
}
html.theme-light .rp-own-mark {
    box-shadow: 0 0 0 2px rgb(22 28 45 / 0.8), 0 10px 22px rgb(22 28 45 / 0.22);
}

/* THE PHONE'S CARD PANEL DOCKS AT THE FOOT (owner, 2026-10-31: "make tooltip
   below, so that it doesn't block the axies"). It was a sheet centred on the
   screen — 220 to 340px of it over the board's second rank, on top of the very
   axie the card belongs to. The board's tiles end 222px down on every
   landscape phone measured, so the panel stands on the bottom edge, over the
   piles and the hand the card came from, capped at the room under the board
   (`100dvh − 228px`: 162px at 390 tall, 202 at 430), and laid out wider so its
   rules need fewer lines to fit; the tail scrolls inside it as before. */
@media (max-height: 540px) and (orientation: landscape) {
    .rp-hand li.rp-hcard .rp-hcard-tip,
    .rp-lane .rp-played.is-live .rp-hcard-tip {
        top: auto;
        bottom: calc(4px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        max-height: max(120px, calc(100dvh - 228px));
    }
    .rp-hand li.rp-hcard .rp-hcard-tip .tt-rules,
    .rp-lane .rp-played.is-live .rp-hcard-tip .tt-rules { width: min(440px, calc(100vw - 190px)); }
    /* The totals' pull-tab stands at the bottom-middle, which is where the panel
       docks now; it steps under the panel while one is up, as the wheel does. */
    body.rp-sheet-on .rp-drawer-pull--score { z-index: 5; }
}

/* ═════════════════════════════════════════════════════════════════════════
   PLAY FROM HERE (replayFork.js) — and the seam it leaves in a table's log.

   The button is the playback's own: an .rp-btn grown to carry its words, in
   the row after the speed stops and the switches. Its refusals are one line in
   a note over it (the Animated note's clothes), absolute so the row never
   moves under the board — the transport's height is what the wide layout and
   the phone's dock are measured from. On a phone the row is put away and
   replay.js seats the button on a line of its own under the wheel's reading
   (.rp-wheel-tail): inside the box the wheel is clamped to the screen by, and
   off the reading's line so the two round switches keep their centre.

   The seam: a table taken up from a replay logs ONE `Fork` step between the
   logged battle and the simulation. It is a place, not an event — a dashed
   rule in the log and in the rail, the words in the text colour, no hue of
   its own (every hue on this page already means a kind of number).
   ═════════════════════════════════════════════════════════════════════════ */

.rp-fork {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rp-btn.rp-btn--fork {
    width: auto;
    gap: 6px;
    padding: 0 10px;
    font-family: var(--mono);
    font-size: var(--fs-small);
    white-space: nowrap;
}
.rp-btn--fork .fa-solid { font-size: 0.9em; }
.rp-btn--fork:disabled { opacity: 0.45; cursor: not-allowed; }
.rp-btn--fork:disabled:hover { border-color: var(--rail); }
.rp-fork.is-busy .rp-btn--fork:disabled { opacity: 0.7; cursor: progress; }

/* Always in the page, empty until something is said: a live region that is
   there from the start is announced when it changes; one that appears with
   its words already in it mostly is not. Empty, it has no box to see. */
.rp-fork-say {
    position: absolute;
    z-index: 40;
    right: 0;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--rail);
    border-radius: var(--r-badge);
    background: var(--bulma-scheme-main);
    color: var(--bulma-text);
    font-size: var(--fs-small);
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 2px 12px rgb(0 0 0 / 22%);
    pointer-events: auto;
    cursor: pointer;
}
.rp-fork-say:empty { padding: 0; border: 0; box-shadow: none; }
.rp-fork-say.is-bad { color: hsl(var(--hit)); border-color: hsl(var(--hit) / 0.6); }
.rp-fork-say a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Under the wheel. The wrapper takes no touches; the button takes its own back,
   in the round switches' clothes (.rp-anim-sat): the wheel's surface, its ring,
   its lift, 28px. Higher than the phone's .rp-btn floor rules on purpose. */
.rp-wheel-tail {
    display: flex;
    justify-content: center;
    max-width: 100%;
}
.rp-wheel-tail .rp-fork { pointer-events: auto; }
.rp-wheel-tail .rp-btn.rp-btn--fork {
    width: auto;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bulma-scheme-main);
    font-size: var(--fs-small);
    box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
    touch-action: manipulation;
}
.rp-wheel-tail .rp-fork-say {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(260px, calc(100vw - 24px));
}
/* A sentence under the wheel keeps it lit: faded, the line would be 22% ink. */
.rp-wheel-wrap.is-idle:has(.rp-fork-say:not(:empty)) { opacity: 1; }

/* The seam in the log: a record head on a dashed rule. */
.rp-ev[data-head="fork"] {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--bulma-text-weak);
}
.rp-ev[data-head="fork"] .rp-ev-text { color: var(--bulma-text); font-weight: 700; }
.rp-ev-fork { margin-inline-end: 6px; font-size: 0.9em; color: var(--bulma-text-weak); }

/* …and in the rail: a foot between two dashed rules, its words at the left. */
.rp-hist-foot.rp-hist-foot--fork {
    justify-content: flex-start;
    gap: 6px;
    margin: 4px 0;
    padding-top: 4px;
    padding-bottom: 4px;
    border-top: 1px dashed var(--bulma-text-weak);
    border-bottom: 1px dashed var(--bulma-text-weak);
}
.rp-hist-foot--fork .rp-hist-foot-say { color: var(--bulma-text); font-weight: 700; }
.rp-hist-fork-ico { font-size: var(--fs-micro); color: var(--bulma-text-weak); }
