/* Playfair Rivals — the new client, drawn from the FINAL SCREENS board (docs/260).
   Every measurement is one he drew at 412 wide: a 119px place band, the top
   strip at y 52, an 84x79 door with a 64px ground, a 79px bottom nav with a 96px
   live slot, a 300x86 action key, 44px tap floors. Right-hand things anchor to
   the RIGHT so a 390px phone keeps his margins instead of clipping (the first
   build put the doors at left:327px and lost a column).
   Motion is transform/opacity only (docs/77). */

:root {
  --ink: #e4e0d8;
  --gold: #d0b27a;
  --bg: #211d1e;
  --plate: #191617;
  --card: #221e1f;
  --slot: #35302f;
  --wine: #66023c;
  --wine-d: #3b0122;
  --rule: rgba(228, 224, 216, .14);
  --dim: rgba(228, 224, 216, .58);
  --faint: rgba(228, 224, 216, .34);
  --stam: #ffd24d;
  --souls: #c39bff;
  --common: #c7d2dc;
  --uncommon: #77d18b;
  --rare: #79c7ff;
  --epic: #c08bff;
  --legendary: #e6b14d;
  --mythic: #e05c6a;
  --hp: #b3123c;
  --band: 119px;
  --nav: 79px;
  --serif: Marcellus, Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0d0b0c; color: var(--ink);
  font-family: var(--sans);
  overscroll-behavior: none;
}
body { display: grid; place-items: start center; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; }
.px { image-rendering: pixelated; }

#app {
  position: relative; width: min(100vw, 412px); height: 100%; height: 100dvh; max-height: 100dvh;
  background: var(--bg); overflow: hidden;
}

/* ── type ─────────────────────────────────────────────────────────────────── */
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }
.label { font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 1.6px;
  color: var(--gold); text-transform: uppercase; }
.label.dim { color: var(--faint); letter-spacing: 1px; font-size: 9px; }
.micro { font-family: var(--sans); font-weight: 600; font-size: 7.5px; letter-spacing: .6px;
  color: rgba(228,224,216,.35); text-transform: uppercase; text-align: center; }
.hint { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: var(--faint);
  text-transform: uppercase; }

/* ── the furniture every screen wears ─────────────────────────────────────── */
.band { position: absolute; inset: 0 0 auto 0; height: var(--band); overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,13,.58) 0%, rgba(16,14,15,.44) 55%, rgba(24,21,22,.92) 100%);
}
.band::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 46px;
  background: rgba(0,0,0,.22); z-index: 1; }

.strip { position: absolute; top: 52px; left: 0; right: 0; height: 62px; z-index: 5; }
/* ⭐ WHILE THE QUEUE CARD IS UP THE STRIP RIDES ABOVE ITS SCRIM (docs/306).
   `.qdim` is rgba(13,11,12,.72) at z-index 9 and `#app` makes no stacking
   context, so the pill the card is ABOUT — the energy it is taking — was being
   dimmed to about a quarter of its brightness at exactly the moment he was
   asked to watch it. ⚠️ 10, not 33: `#fx` is 33 and the float has to stay on
   top of the number it is leaving. */
.strip.lifted { z-index: 10; }
/* ⛔ review of the docs/355-363 merge: lifted is for WATCHING the energy leave, not for using. A tap
   on the nameplate or a top door during a PvP search changed the screen and dropped the search on
   this phone only — the server still had him queued and could pair him into a duel he was not
   watching. The way out of a search is its own CANCEL. */
/* ⚠️ `.strip.v2 > *` (later, same specificity) turns every child back to auto — v2.lifted outranks it */
.strip.lifted, .strip.lifted *, .strip.v2.lifted > * { pointer-events: none; }
.ident {
  position: absolute; left: 11px; top: 0; width: 125px; height: 51px; text-align: left;
  background: var(--plate); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden;
}
.ident .xpbar { position: absolute; left: 5px; right: 5px; bottom: 3px; height: 4px; border-radius: 8px;
  background: #292526; overflow: hidden; }
.ident .xpbar b { position: absolute; inset: 0; max-width: none; background: var(--wine); transform-origin: left center;
  transition: transform .6s ease; }   /* max-width: the name's rule reaches this b too */
.ident b { position: absolute; left: 10px; top: 2px; font-family: var(--serif); font-weight: 400;
  font-size: 24px; line-height: 1.2; white-space: nowrap; max-width: 108px; overflow: hidden;
  text-overflow: ellipsis; }
/* ⚠️ A TITLE IS HIS NOW (docs/302), so it can be as long as the field allows —
   and `LV n` sits at 85px. Without a ceiling the two print over each other, which
   is what "The Quiet Hour" did the first time it was typed. */
.ident span { position: absolute; left: 10px; top: 32px; font-size: 8.5px; font-weight: 600;
  letter-spacing: .9px; color: var(--gold); text-transform: uppercase; white-space: nowrap;
  max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.ident em { position: absolute; left: 85px; top: 32px; font-style: normal; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .6px; color: var(--dim); white-space: nowrap; }
.wallet { position: absolute; right: 9px; top: 0; display: flex; gap: 8px; }
.pill {
  display: flex; align-items: center; gap: 5px; height: 26px; min-width: 46px; padding: 0 9px 0 7px;
  background: var(--plate); border: 1px solid var(--rule); border-radius: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--gold); white-space: nowrap;
}
.pill img { width: 14px; height: 14px; object-fit: contain; }
.pill.stam { color: var(--stam); }
.pill.souls { color: var(--souls); }
.topdoors { position: absolute; right: 9px; top: 32px; display: flex; gap: 8px; }
.topdoors button {
  width: 30px; height: 30px; border-radius: 8px; background: var(--plate);
  border: 1px solid var(--rule); display: grid; place-items: center;
}
.topdoors button::after { content: ''; position: absolute; inset: -7px; }
.topdoors button { position: relative; }
.topdoors img { width: 14px; height: 14px; object-fit: contain; }

/* the screen title block: eyebrow at 127, title at 140, back at 348/137 */
.head { position: absolute; left: 20px; right: 20px; top: 126px; height: 48px; z-index: 4; }
.head .eyebrow { position: absolute; left: 0; top: 0; }
.head h1 { position: absolute; left: 0; top: 12px; margin: 0; font-family: var(--serif);
  font-weight: 400; font-size: 30px; line-height: 1.2; white-space: nowrap; max-width: 300px;
  overflow: hidden; text-overflow: ellipsis; }
.head h1.sm { font-size: 26px; top: 16px; }
.head .sub { position: absolute; left: 0; top: 52px; }
/* ⚠ the back arrow's tap box is 44px at right:0, so an aside at right:0 sits
   UNDER it — his report: "key counter should be more to left, as it is behind
   'go back' button". */
.head .aside { position: absolute; right: 52px; top: 24px; }
/* docs/279: what a claim paid, in the head's own slot instead of a box in the
   middle of the screen. It takes the place of the countdown for one beat, so
   that slot never has two painters. */
.claimed {
  display: inline-grid; place-items: center; height: 26px; padding: 0 12px; border-radius: 13px;
  background: var(--wine); border: 1px solid rgba(208,178,122,.55);
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .4px;
  color: var(--gold); white-space: nowrap;
  animation: claimIn .3s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes claimIn {
  0% { opacity: 0; transform: translateX(14px) scale(.9); }
  100% { opacity: 1; transform: none; }
}
.back {
  position: absolute; right: 0; top: -3px; width: 44px; height: 44px; display: grid; place-items: center;
}
.back img { width: 20px; height: 25px; object-fit: contain; }

/* the body: one scroller between the title and the key / nav */
.view { position: absolute; inset: 0 0 var(--nav) 0; overflow: hidden; }
.view.full { inset: 0; }

/* ⭐ THE GROUND IS A PANEL, NOT A VOID (his instruction, 2026-09-14: *"the
   screen is too dark ... the background of backpack ect should have some
   outline, something brighter a little - but keep it at this 'atrament' colour
   (btw i dont like those lines on background)"*).

   Three things, and each one is his sentence: the ink is lifted a step (--bg,
   and this gradient over it) so a screen with little on it is a surface rather
   than an absence; a lit rule under the photograph and a hairline down each
   side give it the edge he asked for; and the ruled paper is gone from
   .forge-wall, which is where the lines he means were drawn.

   ⚠️ It is a ::before, so it is the FIRST thing painted inside .view and every
   child — the band, the head, the body, the nav — is above it. An outline drawn
   on top would have to know what it must not cross. The fight is excluded by
   its own class: that screen is a single arena and owns its ground (docs/88). */
.view:not(.full)::before {
  content: ''; position: absolute; left: 0; right: 0; top: var(--band); bottom: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #272223 0, #221e1f 34%, #1e1a1b 100%);
  border-top: 1px solid rgba(228,224,216,.26);
  box-shadow: inset 1px 0 0 rgba(228,224,216,.13), inset -1px 0 0 rgba(228,224,216,.13),
              inset 0 -1px 0 rgba(228,224,216,.10);
}
.body {
  position: absolute; left: 0; right: 0; top: 186px; bottom: 0;
  overflow-y: auto; overflow-x: hidden; padding: 0 20px 24px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.body.nohead { top: 130px; }
.body.keyed { bottom: 170px; }
.body::-webkit-scrollbar { display: none; }

/* ── the bottom nav: four 79px slots and a 96px live one, raised 17px ────── */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--nav); z-index: 6;
  display: flex; align-items: flex-end; background: var(--plate);
}
.nav button {
  flex: 1 1 0; height: var(--nav); background: var(--slot); display: grid; place-items: center;
  position: relative;
}
.nav button img { width: 39px; height: 39px; object-fit: contain; opacity: .62; }
.nav button.live {
  flex: 0 0 96px; height: 96px; background: var(--wine); border-radius: 12px 12px 0 0;
  grid-template-rows: 1fr auto; padding-bottom: 8px;
}
.nav button.live img { width: 48px; height: 48px; opacity: 1; margin-top: 14px; }
.nav button.live span { font-size: 9px; font-weight: 600; letter-spacing: .5px; color: var(--gold);
  text-transform: uppercase; line-height: 1; }
.nav button span { display: none; }
.nav button.live span { display: block; }
/* a hairline between the slots: the boot frame's own vertical rule, fading out
   at both ends so the nav reads as five doors and not one dark bar. The live
   slot is a raised wine block whose edge already divides, so it takes none and
   neither does the slot on its right. */
.nav button + button::before {
  content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; pointer-events: none;
  background: linear-gradient(transparent, rgba(208,178,122,.24) 26%, rgba(208,178,122,.24) 74%, transparent);
}
.nav button.live::before, .nav button.live + button::before { display: none; }

/* ── the action key: wine by default, gold on PLAY ────────────────────────── */
.keywrap { position: absolute; left: 0; right: 0; bottom: 88px; height: 86px; z-index: 5;
  display: grid; place-items: start center; }
.keywrap.plain { bottom: 74px; }

.key {
  position: relative; display: block; width: 300px; height: 68px; border-radius: 12px;
  background: var(--wine); box-shadow: 0 7px 0 var(--wine-d);
  font-family: var(--serif); font-size: 26px; letter-spacing: 1.2px; color: var(--ink);
  text-transform: uppercase; transition: transform .08s ease;
}
.key:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--wine-d); }
/* ⛔ A KEY YOU CANNOT PRESS MUST LOOK LIKE ONE (his instruction: "when you dont
   have 10 available, button should be grayed out"). It kept the wine and the
   lift, so the only way to find out was to press it and have nothing happen. */
.key:disabled { background: var(--slot); box-shadow: 0 7px 0 #232020;
  color: rgba(228,224,216,.34); }
.key:disabled:active { transform: none; box-shadow: 0 7px 0 #232020; }
/* ⭐ `x1`, not `X1` — the multiplier is a lowercase x and it is smaller than the
   word it multiplies. `.key` is uppercased wholesale, so the x says so itself. */
.xn { text-transform: lowercase; font-size: .64em; font-style: normal; opacity: .85; }
.key[disabled] { background: #2a2426; box-shadow: 0 7px 0 #1a1617; color: rgba(228,224,216,.35); }
.key.gold {
  height: 82px; border-radius: 14px; color: #2a1208; font-size: 34px; letter-spacing: 1.5px;
  font-family: 'Spline Sans', var(--sans); font-weight: 700;
  background: linear-gradient(180deg, #e6c88f, #d0b27a); box-shadow: 0 8px 0 #8a7148;
  display: grid; place-items: start center; padding-top: 12px; line-height: 1;
}
.key.gold:active { transform: translateY(6px); box-shadow: 0 2px 0 #8a7148; }
.key.gold[disabled] { background: #6e6250; box-shadow: 0 8px 0 #3e3629; color: #2a2220; }
.key .mode { position: absolute; left: 50%; top: 48px; transform: translateX(-50%); width: 76px;
  height: 28px; border-radius: 14px; background: #b4986a; }
.key .mode img { position: absolute; left: 17px; top: 7px; width: 14px; height: 14px; }
.key .mode b { position: absolute; left: 37px; top: 0; height: 28px; line-height: 28px; font-family: var(--sans); font-weight: 700;
  font-size: 26px; color: #fff; letter-spacing: 0; }
.key .info { position: absolute; right: 6px; top: 6px; width: 17px; height: 17px; }
.key .info::after { content: ''; position: absolute; inset: -13px; }
.key .info img { width: 17px; height: 17px; }
.key .sub { position: absolute; left: 0; right: 0; top: 46px; font-family: var(--sans);
  font-weight: 600; font-size: 9px; letter-spacing: 1.4px; color: rgba(228,224,216,.7); }
.key-sm { position: relative; display: inline-grid; place-items: center; height: 38px; padding: 0 18px; border-radius: 10px;
  background: var(--wine); box-shadow: 0 4px 0 var(--wine-d); font-family: var(--serif);
  font-size: 16px; letter-spacing: 1.2px; text-transform: uppercase; }
.key-sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--wine-d); }
.key-sm::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; }
.keyhold { position: relative; display: block; width: 300px; height: 86px; }
.keyhold .info { position: absolute; right: 6px; top: 6px; width: 17px; height: 17px; z-index: 2; }
.keyhold .info::after { content: ''; position: absolute; inset: -14px; }
.keyhold .info img { width: 17px; height: 17px; }
.linkkey { position: relative; display: inline-block; padding: 8px 6px; margin: -8px 0; font: inherit; color: inherit;
  text-decoration: underline; text-transform: inherit; letter-spacing: inherit; }
.linkkey::after { content: ''; position: absolute; inset: -6px 0; }
.key-sm[disabled] { background: #2a2426; box-shadow: 0 4px 0 #1a1617; color: rgba(228,224,216,.35); }

/* the run multiplier under a gold key: 176x48, two 48px chevron keys */
/* ── the stake: HIS stepper, and the big one is rationed (docs/307) ───────── */
/* ⛔ THE WIDGET IS THE ONE HE ALREADY HAD (his instruction, 2026-09-14:
   *"changing between x1 and x3 is ugly, previous version was much better"*). The
   two-key version that briefly replaced it is gone; only the STEP changed, from
   ±1 through three values to the distance between the two that are offered.
   ⚠️ `.multi b` is `pointer-events: none` and that is load-bearing: it spans the
   whole widget and comes after the left chevron in the DOM, so without it the
   label paints over that chevron and takes its taps — *"very difficult to
   click"* (docs/267 §4). */
.multi { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 176px;
  height: 48px; border-radius: 14px; background: rgba(25,22,23,.9);
  border: 1px solid rgba(208,178,122,.45); z-index: 5; }
/* the label spans the widget and paints over the less chevron: it must not take the tap (docs/267) */
.multi b { position: absolute; left: 48px; right: 48px; top: 4px; text-align: center; font-family: var(--sans); pointer-events: none;
  font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--ink); }
/* ⭐ THE DAY'S ALLOWANCE RIDES UNDER THE NUMBER, inside the box: the action key
   is 12px above and the nav's raised live slot is below, so there is nowhere
   else on his hub for it. Drawn at BOTH stakes, so it can be read before the
   decision rather than after it. ⚠️ It takes no taps either. */
.multi .daily { position: absolute; left: 44px; right: 44px; bottom: 5px; text-align: center;
  font-style: normal; pointer-events: none; font-family: var(--sans); font-weight: 600;
  font-size: 7px; letter-spacing: .8px; color: var(--gold); opacity: .85; }
.multi .daily.none { color: rgba(228,224,216,.3); }
.chev { position: absolute; top: -1px; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(25,22,23,.9); border: 1px solid rgba(208,178,122,.5); display: grid; place-items: center; }
.chev.less { left: -1px; } .chev.more { right: -1px; }
.chev svg { width: 48px; height: 48px; display: block; }
.chev img { position: absolute; left: 13px; top: 13px; width: 22px; height: 22px; object-fit: contain; }
.chev[disabled] { opacity: .35; }

/* ── the item tile: 88x88, rarity border, art at 68 ──────────────────────── */
.tile {
  position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 10px;
  border: 2px solid rgba(228,224,216,.14); background: var(--card);
  display: grid; place-items: center; overflow: hidden;
}
/* the picture is a square of the tile's WIDTH: a percentage height inside an aspect-ratio box is auto,
   and a tall sword was drawn at its own height and cut to the tip (docs/271) */
.tile img { width: 77%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.tile.px img { image-rendering: pixelated; }
.tile .qty {
  position: absolute; right: -1px; bottom: -1px; min-width: 18px; height: 16px; padding: 0 5px;
  border-radius: 6px 0 8px 0; background: rgba(25,22,23,.95); border: 1px solid rgba(208,178,122,.5);
  font-family: var(--mono); font-weight: 700; font-size: 9px; color: var(--ink); display: grid;
  place-items: center;
}
.tile.priced img { width: 66%; height: auto; margin-bottom: 22px; }
.tile .price {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); height: 18px; padding: 0 12px;
  border-radius: 9px; background: var(--wine); font-family: var(--mono); font-weight: 700;
  font-size: 10px; color: var(--ink); white-space: nowrap; display: grid; place-items: center;
}
.tile.empty { border: 1px dashed rgba(228,224,216,.28); background: var(--card); }
.tile.empty::after { content: ''; width: 12px; height: 12px; border-radius: 3px; background: rgba(228,224,216,.16); }
.tile.sold { opacity: .5; }
.tile.sold img { opacity: .45; }
.tile.lit { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(208,178,122,.35); }
.tile[data-r=common] { border-color: rgba(199,210,220,.6); background: linear-gradient(rgba(199,210,220,.14), rgba(199,210,220,.14)), rgba(25,22,23,.9); }
.tile[data-r=uncommon] { border-color: rgba(119,209,139,.6); background: linear-gradient(rgba(119,209,139,.14), rgba(119,209,139,.14)), rgba(25,22,23,.9); }
.tile[data-r=rare] { border-color: rgba(121,199,255,.6); background: linear-gradient(rgba(121,199,255,.14), rgba(121,199,255,.14)), rgba(25,22,23,.9); }
.tile[data-r=epic] { border-color: rgba(192,139,255,.6); background: linear-gradient(rgba(192,139,255,.14), rgba(192,139,255,.14)), rgba(25,22,23,.9); }
.tile[data-r=legendary] { border-color: rgba(230,177,77,.6); background: linear-gradient(rgba(230,177,77,.14), rgba(230,177,77,.14)), rgba(25,22,23,.9); }
.tile[data-r=mythic] { border-color: rgba(224,92,106,.6); background: linear-gradient(rgba(224,92,106,.14), rgba(224,92,106,.14)), rgba(25,22,23,.9); }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 7px; }
.grid3 > *, .grid4 > *, .grid5 > *, .drops > * { min-width: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cap { margin-top: 5px; text-align: center; font-family: var(--sans); font-size: 10px; font-weight: 600;
  line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap b { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap span { display: block; font-size: 7px; letter-spacing: 1px; text-transform: uppercase; }
.r-common { color: var(--common); } .r-uncommon { color: var(--uncommon); } .r-rare { color: var(--rare); }
.r-epic { color: var(--epic); } .r-legendary { color: var(--legendary); } .r-mythic { color: var(--mythic); }

/* ── rows, windows, chips ─────────────────────────────────────────────────── */
.row {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  min-height: 56px; padding: 10px 14px; margin-bottom: 10px;
  background: var(--card); border: 1px solid rgba(228,224,216,.16); border-radius: 12px;
}
.row .ico { width: 56px; height: 56px; border-radius: 10px; background: var(--slot);
  border: 1px solid rgba(228,224,216,.12); display: grid; place-items: center; flex: 0 0 auto; }
.row .ico img { width: 40px; height: 40px; object-fit: contain; }
.row .ico.sm { width: 44px; height: 44px; }
.row .ico.sm img { width: 30px; height: 30px; }
.row .mid { flex: 1 1 auto; min-width: 0; }
.row .mid b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.25; }
.row .mid small { display: block; font-size: 10px; color: var(--dim); line-height: 1.3; }
.row .mid .hint { display: block; margin-top: 4px; font-size: 8px; }
.row .end { flex: 0 0 auto; text-align: right; }
.row.lit { border-color: rgba(208,178,122,.5); }
.row.dim { opacity: .45; }
.row .chev-r { font-family: var(--sans); font-size: 14px; color: var(--faint); }
.row .dot { position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--gold); }
.row.unread { padding-left: 32px; }
.row.plain { min-height: 56px; }
.row.plain .mid b { font-size: 17px; }
.row .val { font-family: var(--sans); font-weight: 600; font-size: 9px; letter-spacing: 1px;
  color: var(--gold); text-transform: uppercase; }
.row .val.grey { color: var(--faint); }

.window { position: relative; padding: 10px 12px 12px; margin-bottom: 12px;
  background: rgba(34,30,31,.55); border: 1px solid rgba(228,224,216,.08); border-radius: 12px; }
.window.solid { background: var(--card); border-color: rgba(228,224,216,.16); }
.window h3 { margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 10px;
  letter-spacing: 1.1px; color: var(--gold); text-transform: uppercase; display: flex;
  justify-content: space-between; gap: 8px; }
.window h3 i { font-style: normal; text-align: right; }
.window p { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: .3px;
  color: rgba(228,224,216,.75); white-space: pre-line; }
.window .scrollrail { position: absolute; right: 8px; top: 30px; bottom: 12px; width: 3px;
  border-radius: 2px; background: rgba(228,224,216,.1); }
.window .scrollrail i { display: block; width: 3px; height: 45%; border-radius: 2px;
  background: rgba(228,224,216,.38); }
.window.scroll { max-height: 130px; overflow-y: auto; scrollbar-width: none; }
.window.scroll::-webkit-scrollbar { display: none; }

.track { height: 6px; border-radius: 3px; background: rgba(228,224,216,.12); overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--gold); }
.track.hp { height: 8px; border-radius: 4px; }
.track.hp > i { background: var(--hp); }
.track.wine > i { background: linear-gradient(90deg, #8a2a5e, #66023c 46%, #3a0121); }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.stat { height: 50px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  text-align: center; padding-top: 8px; }
.stat span { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px;
  letter-spacing: .8px; color: var(--faint); text-transform: uppercase; }
.stat b { display: block; font-family: var(--mono); font-weight: 400; font-size: 18px; line-height: 1.2;
  margin-top: 3px; }

.chip { display: inline-grid; place-items: center; height: 44px; padding: 0 10px; border-radius: 10px;
  border: 1px solid rgba(228,224,216,.22); font-family: var(--sans); font-weight: 600; font-size: 9px;
  letter-spacing: .9px; color: rgba(228,224,216,.5); text-transform: uppercase; }
.chip.on { background: var(--gold); border-color: var(--gold); color: #292526; }
.chip.sm { height: 24px; padding: 0 9px; border-radius: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 7px;
  border-radius: 9px; background: var(--wine); font-family: var(--mono); font-weight: 700; font-size: 9px;
  color: var(--ink); letter-spacing: .5px; }
.badge.gold { background: var(--gold); color: #292526; }
.count { display: inline-grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 8px;
  background: rgba(25,22,23,.9); border: 1px solid var(--rule); font-family: var(--mono); font-size: 13px;
  color: var(--ink); white-space: nowrap; }

/* ── the hub ──────────────────────────────────────────────────────────────── */
.hub-art { position: absolute; inset: 0 0 var(--nav) 0; overflow: hidden; }
.hub-art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.hub-art::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,12,13,.86) 0%, rgba(14,12,13,.3) 16%, rgba(14,12,13,.06) 42%,
    rgba(14,12,13,.34) 70%, rgba(14,12,13,.88) 100%); }
.hub-art::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 46px;
  background: rgba(0,0,0,.22); z-index: 1; }
.door { position: absolute; width: 84px; height: 79px; z-index: 3; }
/* his CHESTS upgrade on every door (docs/265): a solid ground under the
   translucent one, and the label in a #35302f pill */
.door .ground {
  position: absolute; left: 10px; top: 0; width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(rgba(138,79,50,.5), rgba(138,79,50,.5)), rgba(53,48,47,.8);
  border: 1px solid rgba(228,224,216,.18);
  box-shadow: 0 4px 10px rgba(0,0,0,.45);
}
.door img { position: absolute; left: 14px; top: 4px; width: 56px; height: 56px; object-fit: contain; }
/* the ground is a span too: the pill is the label only */
.door span:not(.ground) { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); height: 20px; line-height: 20px;
  padding: 0 10px; border-radius: 10px; background: #35302f; white-space: nowrap; font-family: var(--sans);
  font-weight: 600; font-size: 9px; letter-spacing: 1.1px; color: var(--ink); text-transform: uppercase; }
/* a long word (CONSUMABLES) in a tighter face, so the pill stays inside the phone (docs/271) */
.door span.long { font-size: 8px; letter-spacing: .5px; }
.door.l { left: 1px; } .door.r { right: 1px; }
.door.y1 { top: 126px; } .door.y2 { top: 217px; }
/* the figure: one canvas the rig module draws into (docs/263) */
/* the figure's canvas is a roomy box (docs/266 §5): a raised sword or a
   swing must never meet an edge; the body's size is data-fig, not the box */
.figure { display: block; width: 260px; height: 280px; pointer-events: none; }
.hub-figure { position: absolute; left: 50%; bottom: 200px; transform: translateX(-50%); width: 340px; height: 330px; z-index: 2; }
.fig { display: block; }

/* the menu popover over the hub (23) */
.menu-scrim { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.45); }
.menu { position: absolute; right: 22px; top: 126px; width: 206px; padding: 6px 0; z-index: 21;
  background: rgba(25,22,23,.96); border: 1px solid rgba(208,178,122,.45); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.menu button { display: flex; align-items: center; justify-content: space-between; width: 100%;
  height: 50px; padding: 0 16px; font-family: var(--serif); font-size: 18px; text-align: left; }
.menu button + button { border-top: 1px solid rgba(228,224,216,.08); }
.menu .chev-r { color: var(--faint); font-size: 13px; }
.menu-close { position: absolute; left: 0; right: 0; top: 422px; z-index: 21; }

/* ── gear: two columns of 80px slots around the fighter ───────────────────── */
.gear-col { position: absolute; top: 146px; width: 80px; display: grid; gap: 12px; z-index: 3; }
@media (max-height: 820px) { .gear-col { gap: 4px; } .slot { height: 88px; } .slot span { top: 80px; } }
.slot.ghost { opacity: .45; }
.gear-col.l { left: 14px; } .gear-col.r { right: 14px; }
.slot { position: relative; width: 80px; height: 94px; display: block; }
.slot .tile { width: 80px; border-radius: 14px; }
.slot .tile img { width: 68px; height: 68px; }
.slot span { position: absolute; left: 0; right: 0; top: 83px; text-align: center; font-family: var(--sans);
  font-weight: 600; font-size: 8px; letter-spacing: .8px; color: var(--dim); text-transform: uppercase; }
.gear-fig { position: absolute; left: 50%; top: 210px; transform: translateX(-50%); width: 320px; height: 300px; z-index: 2; }
.gear-foot { position: absolute; left: 20px; right: 20px; bottom: 10px; z-index: 3; }
.gear-foot .hint { display: block; margin-bottom: 8px; }
/* ⛔ THE LINES ARE GONE (his instruction, 2026-09-14) — the repeating 9px rule
   that used to be printed over this wall was the "lines on background" he
   named. And the wall is no longer a GROUND: it is a warm light over the one
   the panel above already paints, so gear, forge and your own page are lit
   rather than separately dark, and there is one ink in the client. */
.forge-wall { position: absolute; inset: var(--band) 0 var(--nav) 0; pointer-events: none;
  background: radial-gradient(ellipse 200px 440px at 50% 48%,
    rgba(255,214,172,.085), rgba(255,214,172,.028) 55%, rgba(0,0,0,0) 100%); }

/* the worn line on item browse */
.worn { position: relative; height: 60px; margin: 0 14px 0 14px; }
.worn .tile { position: absolute; left: 0; top: 0; width: 52px; }
.worn .tile img { width: 44px; height: 44px; }
.worn .wl { position: absolute; left: 64px; top: 0; }
.worn .wl b { display: block; font-family: var(--serif); font-weight: 400; font-size: 14px; margin-top: 3px; }
/* docs/359: the name stops short of TAKE OFF and wraps instead. It always ran under the key when
   long ("Panoply of the First Conqueror Gauntlets"), and a raised piece's step is at the END of
   its name — exactly the part the key was covering */
.worn .wl { right: 124px; }
.worn .wl b { line-height: 1.15; }
.worn .wl b.lng { font-size: 11px; }
/* and on this 52px tile the level and the step share the top edge, so both badges are smaller */
.worn .tile > .lvreq, .worn .tile > .plus { height: 12px; padding: 0 3px; font-size: 7px; line-height: 10px; }
.worn .wl small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.worn .wl small.dimm { color: var(--faint); }
.worn .off { position: absolute; right: 0; top: 8px; }
.rule { height: 1px; background: rgba(228,224,216,.12); margin: 0 14px 5px; }

/* ── the info screens (07, 12, 18, 19): a big tile beside an info window ──── */
.infotop { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.infotop .tile { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 12px; }
.infotop .tile img { width: 64px; height: 64px; }
.infotop .window { flex: 1 1 auto; margin: 0; }
.infotop .tile.big { flex-basis: 132px; width: 132px; height: 120px; }
.infotop .tile.big img { width: 100px; height: 100px; }

/* the ladder on 06 and 07 */
.ladder { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 36px;
  padding: 0 10px 0 14px; margin-bottom: 5px; text-align: left; background: var(--card);
  border: 1px solid rgba(228,224,216,.1); border-radius: 10px; overflow: hidden; }
.ladder::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bar, rgba(228,224,216,.16)); }
.ladder .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--slot);
  border: 1px solid rgba(228,224,216,.12); display: grid; place-items: center; flex: 0 0 auto; }
.ladder .ico img { width: 24px; height: 24px; object-fit: contain; }
.ladder .mid { flex: 1 1 auto; min-width: 0; }
.ladder .mid small { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px;
  letter-spacing: 1px; color: var(--dim); text-transform: uppercase; }
.ladder .mid b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder .end { flex: 0 0 auto; text-align: right; font-family: var(--sans); font-weight: 600; font-size: 7.5px;
  letter-spacing: .8px; color: var(--faint); text-transform: uppercase; }
.ladder.cur { border-color: rgba(121,199,255,.6); --bar: #5d7fa7; }
.ladder.cur .end { color: var(--rare); }
.ladder.next { border-color: rgba(192,139,255,.6); --bar: #c08bff; }
.ladder.next .end, .ladder.next .mid small { color: var(--epic); }
.ladder.done { --bar: #77d18b; }
.ladder.far { opacity: .55; }

/* ── the collection (05) is THE CABINET now (docs/368): its block is the last in this sheet ── */

/* ── places (08): tall cards with a picture ───────────────────────────────── */
.place { position: relative; display: block; width: 100%; height: 138px; margin-bottom: 12px; text-align: left;
  background: var(--card); border: 1px solid rgba(228,224,216,.16); border-radius: 12px; overflow: hidden; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.place::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,30,31,.85) 0%, rgba(34,30,31,.2) 60%, rgba(34,30,31,.9) 100%); }
.place b { position: absolute; left: 17px; top: 11px; font-family: var(--serif); font-weight: 400; font-size: 17px; z-index: 1; }
.place small { position: absolute; left: 17px; right: 17px; bottom: 12px; z-index: 1; }
.place .end { position: absolute; right: 14px; top: 12px; z-index: 1; }

/* ⭐ docs/367 · HIS PICTURE OF THE PLACE, full-bleed and at full strength, as on his board
   ("IMAGES for screen instances lower": a 372x138 card, rounded, the name top-left in the
   serif). The veil and the half-strength picture were for a shared stand-in plate; his own
   picture is the card. The words keep a soft shadow instead, so a bright sky or a lava field
   never swallows them — a shadow on the letters, never a darkening over his painting. */
.place.pic > img { opacity: 1; }
.place.pic::after { content: none; }
.place.pic > b { text-shadow: 0 1px 2px rgba(0,0,0,.72), 0 0 10px rgba(0,0,0,.4); }
.place.pic > .lvreq { color: rgba(208,178,122,.95); text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.55); }

/* ⭐ docs/367 · THE MAP UNDER THE LIST (his: "when you are at the very top of the screen, and you
   scroll to see whats higher, the images are moving down - revealing the background image").
   The map hangs in a window ABOVE the first card — `bottom: 100%` of the list, the phone's full
   width — so at rest it is outside the scroller and clipped away, and a pull (app.js, PULL)
   moves the list down and uncovers exactly the gap it opens: no clip-path, no height, no
   layout, only the list's transform. The map inside counter-moves so it lies still behind the
   cards (or, with motion allowed, drifts at a third of their speed), a veil lifts off it as it
   opens, and a shadow is cast up onto it by the first card, so the list reads as a sheet lifted
   off the map.
   ⛔ `touch-action: pan-down` ONLY at the very top: a finger going UP is the browser's own
   scroll there, and a finger going DOWN is the pull — which a scroller that still said
   `pan-y` would have claimed (and cancelled) within a few pixels. Anywhere below the top the
   list is an ordinary scroller. */
.body.places { overscroll-behavior-y: contain; }
.body.places.attop { touch-action: pan-down; }
.body.places > .plist { position: relative; }
.body.places > .plist.pulling { will-change: transform; }

/* ⭐⭐ docs/370 · HIS MAP IS THE WHOLE SCREEN'S GROUND (his, 2026-09-28: *"background of the
   whole instances screen behind currencies, nickname, as well as instances windows"*). docs/367's
   window above the first card is retired: `.pbg` is the first thing in the view, full width and
   full height, so the header and every card are drawn over it, and it replaces the band
   photograph and the grey ground on this screen only (the ground's ::before stays underneath
   as the fallback while the picture decodes).
   ⭐ PARALLAX BY PROPORTION, ON THE COMPOSITOR: the list names its scroll (`--pmap`), the view
   lends that name to its sibling (`timeline-scope`), and two layers ride it — the frame travels
   DOWN by its own height (the screen's) and the picture UP by its own (the map's), so the net is
   exactly −(map − screen) × the list's scroll fraction: the top of the map at the top of the
   list, its middle half way, its bottom at the bottom. Nothing is typed per place or per phone;
   a list that cannot scroll has an inactive timeline and the map simply lies at its top.
   ⛔ Transform only, on the compositor. `.sda` is written by app.js when the browser has the
   API (`PMAP_SDA`); without it `pmapSync` writes the same transform on a scroll event.
   ⚠️ `animation-timeline` comes AFTER the `animation` shorthand, which resets it.
   ⭐ Reduced motion keeps the proportion (my call, docs/370: the finger moves it, in the cards'
   own direction). The global rule's .001ms needs no exception here: on a scroll timeline a time
   duration is converted to a share of the range, and one iteration with no delay is all of it
   (measured: -123.96 at half way either way). */
.view.pmapv { timeline-scope: --pmap; }
.view.pmapv > .pbg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transform-origin: 50% 0; }
.view.pmapv > .pbg > .pbgr { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.view.pmapv > .pbg > .pbgr > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%;
  object-fit: cover; object-position: 50% 0; display: block; }
.view.pmapv.sda > .body.places { scroll-timeline: --pmap y; }
.view.pmapv.sda > .pbg > .pbgr { animation: pmap-down linear both; animation-timeline: --pmap; }
.view.pmapv.sda > .pbg > .pbgr > img { animation: pmap-up linear both; animation-timeline: --pmap; }
@keyframes pmap-down { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,100%,0); } }
@keyframes pmap-up { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-100%,0); } }
/* ⭐ Contrast is given to the THINGS on his painting, never laid over it (docs/367's rule): the
   cards sit on it as objects — a dark hairline and a soft shadow under each — and the one bare
   word in the header (the XP percent under the medal) gets a shadow on its letters. The
   plates and pills are already dark, as on his board. */
.view.pmapv .place { box-shadow: 0 0 0 1px rgba(25,22,23,.55), 0 3px 9px rgba(20,14,10,.45); }
.view.pmapv .strip.v2 .ident .lvpct { text-shadow: 0 1px 0 #191617, 0 0 4px rgba(0,0,0,.9), 0 0 9px rgba(0,0,0,.6); }

/* the gate pager on 09 */
.pager { position: relative; height: 56px; margin: 0 0 12px; }
.pager .chev { top: 8px; }
.pager .chev.less { left: 0; } .pager .chev.more { right: 0; }
.pager b { position: absolute; left: 48px; right: 48px; top: 6px; text-align: center; font-family: var(--serif);
  font-weight: 400; font-size: 24px; line-height: 1.2; }
.pager small { position: absolute; left: 48px; right: 48px; top: 38px; text-align: center; font-family: var(--sans);
  font-weight: 600; font-size: 9px; color: rgba(208,178,122,.75); text-transform: uppercase; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 10px; }
.foes { display: flex; align-items: center; gap: 10px; height: 50px; }
.foes .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--slot);
  border: 1px solid rgba(228,224,216,.12); display: grid; place-items: center; flex: 0 0 auto; }
.foes .ico img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; }
.foes b { flex: 1 1 auto; font-family: var(--serif); font-weight: 400; font-size: 15px; }
.foes small { font-family: var(--mono); font-size: 11px; color: rgba(228,224,216,.55); }
/* ⛔⛔ THE GATE'S LOOT ROW IS `lootrow`, AND IT HAS TO BE. `.loot` is also the
   FIGHT's full-screen loot window further down this file (`position:absolute;
   inset:0`), which wins on source order over anything here — so this row was out
   of flow and painted over its own window's title, in a build where every check
   asking the DOM was green. */
.lootrow { display: flex; gap: 31px; }
.lootrow .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--slot);
  border: 1px solid rgba(228,224,216,.12); display: grid; place-items: center; }
.lootrow .ico img { width: 34px; height: 34px; object-fit: contain; }
.lootrow .ico.empty::after { content: ''; width: 36px; height: 36px; border-radius: 7px; background: rgba(228,224,216,.07);
  border: 1px solid rgba(228,224,216,.12); }

/* ── consumables (13): six plates, the bag, a hint ────────────────────────── */
.plates { display: flex; justify-content: space-between; padding: 0 50px; }
/* ⚠ 34px was right for a bag that held six bottles and never scrolled. There
   are twenty-four now, so the plates give a third of a row back to the bag. */
.plates > div { display: grid; gap: 18px; }
.plate { width: 56px; height: 56px; border-radius: 12px; background: var(--slot);
  border: 2px solid rgba(208,178,122,.45); display: grid; place-items: center; position: relative; }
.plate img { width: 44px; height: 44px; object-fit: contain; }
.plate.empty { border: 1px dashed rgba(208,178,122,.45); background: var(--card); }
/* docs/284: twenty-four bottles, so a plate says which tier it is — the same
   six colours the tiles use, never a seventh language. */
.plate[data-r="common"] { border-color: #c7d2dc; }
.plate[data-r="uncommon"] { border-color: #77d18b; }
.plate[data-r="rare"] { border-color: #79c7ff; }
.plate[data-r="epic"] { border-color: #c08bff; }
.plate[data-r="legendary"] { border-color: #e6b14d; }
.plate[data-r="mythic"] { border-color: #e05c6a; }
.plate.empty::after { content: ''; width: 12px; height: 12px; border-radius: 3px; background: rgba(228,224,216,.16); }
.plate .qty { position: absolute; right: -2px; bottom: -2px; min-width: 16px; height: 14px; padding: 0 4px;
  border-radius: 5px 0 9px 0; background: rgba(25,22,23,.95); border: 1px solid rgba(208,178,122,.5);
  font-family: var(--mono); font-weight: 700; font-size: 8px; display: grid; place-items: center; }
.plate.picked { box-shadow: 0 0 0 2px var(--gold); }
/* ⭐ AN ARMED PLATE IS THE OTHER HALF OF HIS INSTRUCTION — tap an empty one and
   the next bottle goes into IT. A dashed outline that has gone solid gold is the
   whole explanation, which is the point: *"the design should be enough
   explanation of how to navigate in this game"*. */
.plate.empty.picked { border-style: solid; border-color: var(--gold); }
.plate[disabled] { opacity: .4; }
/* ⭐ `--cols` IS THE CLIENT'S (`docs/329`, `bagCols`): five while the bag fits
   in four rows of five, six once it does not. Five is the default so every other
   screen that borrows this grid is untouched. */
.bag5 { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 8px 8px; }
/* ⚠️⚠️ THIS LINE USED TO REPAINT THE RARITY AWAY. `.tile[data-r=…]` (above) and
   `.bag5 .tile` have the SAME specificity, and this one comes later — so every
   bottle in the bag was the same grey while the plate holding it three lines up
   wore its tier. Seven white glyphs in a row, and the only way to tell an Apple
   from a Cooked Meat was to hold one. Owner, 2026-09-13: "make bag tiles show
   rarity colors like slot plates."
   ⛔ One painter, or the last writer wins (root CLAUDE.md trap 3) — so this rule
   sets the shape and says nothing about colour. */
.bag5 .tile { border-radius: 10px; }
/* ⚠ the picture follows the CELL, or a sixth column draws a 48px glyph in a
   51px tile with no room left for the rarity edge */
.bag5 .tile img { width: min(48px, calc(100% - 12px)); height: auto; aspect-ratio: 1; }
.bagline { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }

/* ⛔⛔ THE CONSUMABLES SCREEN SCROLLED, AND THE LINE THAT SCROLLED OFF WAS THE
   ONE TELLING YOU WHAT TO DO. 468px of content in 409px of room at 390x844, so
   the hint sat at y 616 — twenty-five pixels BELOW the EQUIP key's top edge,
   behind it, unreachable. Nothing looked broken: the plates and the bag were
   both visible, and the instruction simply was not there.
   ⚠️ Root CLAUDE.md: no screen in this game should require scrolling. The room
   is bought back from the rhythm — the gaps between the plates, around the rule
   and above the hint — because every one of those was set when the bag held six
   bottles and there are eighteen now. */
.body.cons { padding-bottom: 10px; }
.body.cons .plates > div { gap: 10px; }
.body.cons .rule { margin: 14px 0 6px !important; }
.body.cons .bagline { margin: 12px 0 8px; }
.body.cons .bag5 { gap: 7px; }
/* ⭐ THE BAG TOOK THE KEY'S ROOM (owner, 2026-09-13: *"delete the equip button,
   let the bag take the space"*). With no action key the body runs to 26px off
   the view's floor — clear of the raised GEAR button, which stands 17px proud of
   the nav — so the bag holds FOUR rows of five, twenty bottles, and nothing
   scrolls. It was two rows and a button this morning. */
.body.cons { bottom: 26px; }

/* ── THE ANVIL (docs/305) ─────────────────────────────────────────────────── */
/* His instruction, 2026-09-14: *"You put one item on anvil, and there is button
   destroy. in this screen you see currency on top right, under general
   currencies ... add option to change screens on bottom, 50% button destruct
   (default) and 50% of wide of screen construct."*
   ⚠️ NOTHING HERE SCROLLS EXCEPT THE BAG. The floor is built from the bottom up
   — nav 79, the two halves clear of the live slot's raised block at 96, the key
   at 150, and the body ends above it — so the four fixed things never overlap on
   a 390x844 phone and the only thing that moves is the gear you are choosing
   from (root CLAUDE.md: no screen should require scrolling). */

/* the anvil's own two purses, under the general ones and on the right (his
   words). They are drawn ONLY on this screen: a currency you can neither earn
   nor spend anywhere else has no business in the strip every screen wears. */
.anvilcur { position: absolute; right: 14px; top: 92px; z-index: 5;
  display: flex; gap: 6px; }
.anvilcur .pill { height: 24px; }
.anvilcur .pill img { width: 15px; height: 15px; }
.anvilcur .pill.gems { color: var(--rare); }
.anvilcur .pill.pieces { color: var(--ink); }

/* ⚠️⚠️ `.view` STOPS AT THE NAV, NOT AT THE PHONE'S FLOOR (`bottom: var(--nav)`),
   so every `bottom` in this block is measured from 765 and not from 844. The
   first cut read 844 and put all three 79px too low — the key landed over the
   bag and the halves sat in a hole. ⚠️ And 22 is not slack: the nav's LIVE slot
   is 96px tall against the bar's 79, so it rises 17px into the view and would
   cut the middle out of the halves. */
.body.anvil { top: 214px; bottom: 172px; }
.keywrap.anvil { bottom: 78px; }

/* the bay: what is on the anvil, what it is, and what it will pay */
.anvilbay { display: flex; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid rgba(208,178,122,.22); }
.anvilslot { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 14px; position: relative;
  background: var(--slot); border: 2px solid rgba(208,178,122,.45); display: grid; place-items: center; }
.anvilslot img { width: 62px; height: 62px; object-fit: contain; image-rendering: pixelated; }
.anvilslot.empty { border-style: dashed; background: var(--plate); }
.anvilslot.empty::after { content: ''; width: 16px; height: 16px; border-radius: 4px;
  background: rgba(228,224,216,.14); }
.anvilslot[data-r="common"] { border-color: #c7d2dc; }
.anvilslot[data-r="uncommon"] { border-color: #77d18b; }
.anvilslot[data-r="rare"] { border-color: #79c7ff; }
.anvilslot[data-r="epic"] { border-color: #c08bff; }
.anvilslot[data-r="legendary"] { border-color: #e6b14d; }
.anvilslot[data-r="mythic"] { border-color: #e05c6a; }
.anvilslot .qty { position: absolute; right: -4px; bottom: -4px; min-width: 24px; height: 20px; padding: 0 6px;
  border-radius: 7px; background: rgba(25,22,23,.97); border: 1px solid rgba(208,178,122,.6);
  font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--gold);
  display: grid; place-items: center; }
.anvilwhat { flex: 1 1 auto; min-width: 0; }
.anvilwhat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* docs/359: a raised piece's name carries its step at the END, and an ellipsis would cut exactly
   that off ("Panoply of the First Conqueror Gauntlets +10" is 44 characters) — so on the anvil the
   name wraps onto a second line instead, and the no-break space keeps the step on the last word */
.anvilwhat b:not(.dim) { white-space: normal; line-height: 1.15; }
.anvilwhat b.dim { color: var(--faint); font-size: 13px; }
.anvilwhat small { display: block; margin-top: 2px; font-family: var(--sans); font-weight: 600;
  font-size: 8px; letter-spacing: 1.2px; }
.anvilwhat small.dim { color: var(--faint); }
/* ⭐ WHAT IT PAYS, BEFORE IT IS PRESSED. Destruction has no undo, so the number
   is on the glass first — and it is the SERVER's number (forge.salvage), never a
   second copy of the ladder. */
.anvilpay { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.anvilpay span { display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 13px; color: var(--ink); }
.anvilpay img { width: 15px; height: 15px; }
.anvilpay .gem { color: var(--rare); }
.anvilpay .dim { font-family: var(--sans); font-weight: 600; font-size: 7.5px; letter-spacing: .9px;
  color: var(--faint); }
.anvilpay.none span { opacity: .35; }

/* HIS LITTLE WINDOW. It floats under the bay rather than taking a row, so the
   bag below does not jump when it opens. */
.stepper { position: relative; z-index: 4; margin: 10px auto 0; width: 268px; height: 44px;
  display: grid; grid-template-columns: 52px 46px 1fr 46px 52px; align-items: center;
  border-radius: 12px; background: rgba(25,22,23,.97); border: 1px solid rgba(208,178,122,.45);
  box-shadow: 0 10px 22px -8px rgba(0,0,0,.7); }
.stepper button { height: 100%; font-family: var(--mono); font-size: 12px; color: var(--gold); }
.stepper button[disabled] { color: rgba(208,178,122,.25); }
.stepper b { text-align: center; font-family: var(--mono); font-weight: 700; font-size: 18px;
  color: var(--ink); }
.stepper button + b, .stepper b + button { border-left: 1px solid rgba(208,178,122,.18); }

/* ⛔ RED IS RESERVED FOR HP (root CLAUDE.md), so the destroying key is not red.
   It is the wine key with its gold taken away — the game's own "this is heavy"
   without borrowing the one colour that means damage. */
.key.danger { background: #3b0122; box-shadow: 0 7px 0 #220114; color: #e9c9d8; }
.key.danger:active { transform: translateY(5px); box-shadow: 0 2px 0 #220114; }

/* the bag you choose from: the only thing on this screen that moves */
.bagpick { padding-bottom: 8px; }

/* the two halves (his words), clear of the nav's raised live slot */
.halves { position: absolute; left: 0; right: 0; bottom: 22px; height: 46px; z-index: 6;
  display: flex; gap: 0; padding: 0 14px; }
.halves button { flex: 1 1 50%; height: 100%; background: var(--slot);
  font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 1.6px;
  color: rgba(228,224,216,.5); border: 1px solid rgba(208,178,122,.2); }
.halves button:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.halves button:last-child { border-radius: 0 12px 12px 0; }
.halves button.on { background: var(--wine); color: var(--gold); border-color: rgba(208,178,122,.55); }

/* ── THE ANVIL RAISES A PIECE, +1 .. +10 (docs/359) ──────────────────────────
   His instruction, 2026-09-27: *"Forge construct should make item go to +1, +2,
   +X rank ... each upgrade should be cost as much as deconstructing, but with odds
   going down quickly"*. This is the half that used to say THE FORGE IS COLD and
   print the salvage ladder (docs/305); the ladder is now the price on the bay.
   Black Desert's enhancement window (the piece, its chance, the failstack beside
   it) and MapleStory's Star Force (every step in one row, the next one lit). */
.body.anvil.up .anvilpay { margin-top: 5px; }
.anvilpay.short .dim { font-size: 8px; color: rgba(228,224,216,.62); }
/* where the piece is, where it would go, and the chance WITH his pity — all shipped */
.enhline { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; min-height: 20px; }
.enhline .st { font-family: var(--mono); font-size: 12px; color: rgba(228,224,216,.8); }
.enhline .pc { font-family: var(--mono); font-weight: 700; font-size: 17px; color: var(--gold); }
.enhline .py { font-family: var(--sans); font-weight: 600; font-size: 7.5px; letter-spacing: 1px;
  color: rgba(208,178,122,.8); }
.enhline.top .st { color: var(--gold); letter-spacing: 1px; }
/* his table, the whole of it, in one row: the steps reached, and the next one lit */
.enhladder { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.enhladder .step { display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 38px; border-radius: 8px; background: var(--card); border: 1px solid rgba(228,224,216,.08);
  font-style: normal; }
.enhladder .step b { font-family: var(--mono); font-weight: 700; font-size: 10px; color: rgba(228,224,216,.5); }
.enhladder .step em { margin-top: 2px; font-family: var(--mono); font-style: normal; font-size: 8px;
  color: rgba(228,224,216,.35); }
.enhladder .step.got { background: rgba(208,178,122,.14); border-color: rgba(208,178,122,.4); }
.enhladder .step.got b { color: var(--gold); }
.enhladder .step.got em { color: rgba(208,178,122,.5); }
.enhladder .step.next { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 0 10px rgba(208,178,122,.25); }
.enhladder .step.next b { color: var(--ink); }
.enhladder .step.next em { color: var(--gold); font-weight: 700; }
.enhnote { margin-top: 6px; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 7.5px;
  letter-spacing: 1px; color: var(--faint); }
/* a worn piece in the list says so: the server raises the worn copy first */
.bagpick .enhworn { position: absolute; left: 3px; bottom: 3px; z-index: 3; height: 13px; padding: 0 4px;
  border-radius: 4px; background: rgba(25,22,23,.9); font-family: var(--sans); font-weight: 700;
  font-style: normal; font-size: 7px; letter-spacing: .8px; line-height: 13px; color: var(--gold);
  pointer-events: none; }
/* ⭐ a raised piece says its step on every tile, in the corner opposite its level */
.tile > .plus { position: absolute; right: -1px; top: -1px; z-index: 2; height: 15px; padding: 0 5px;
  border-radius: 0 0 0 7px; background: rgba(25,22,23,.92); border: 1px solid rgba(208,178,122,.55);
  font-family: var(--mono); font-weight: 700; font-style: normal; font-size: 9px; line-height: 13px;
  color: var(--gold); white-space: nowrap; pointer-events: none; }
/* docs/359 review: on the body his notification mark (docs/328) owns that corner, and it sat
   square on the step — a +3 read as "+" and a yellow dot. While the mark is up the step steps
   down under it, so both are read and neither of his moves */
.gear2 .slot.glowup .tile > .plus { top: 13px; border-radius: 7px 0 0 7px; }

/* ── MOTION (docs/359) · THE RINGS CLOSE IN, +7 BECOMES +8 — ported from his gallery
   card `rew2-enhance-plus` (81_rewards_more.js), at 9/8 of its size. Every layer reads
   `--ea` (time since the press, negative) or `--er` (time until the reveal) as its
   delay, so a render mid-roll carries it on. The two rings' curves are the card's own
   functions, sampled once into `enh-ra` / `enh-rb` by app.js (`enhCss`).
   ⛔ Transform and opacity only. Nothing here is red: red is HP's. */
/* it covers the heading, the bay, the ladder, the key and the halves — everything but the two
   purses, which is where the price is seen leaving */
.enhstage { position: absolute; left: 0; right: 0; top: 122px; bottom: 0; z-index: 9;
  display: grid; place-items: center; background: rgba(14,11,12,.985);
  animation: enh-in 240ms ease-out both; animation-delay: var(--ea, 0ms); }
.enhstage.out { animation: enh-gone 260ms ease-in both; }
@keyframes enh-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes enh-gone { from { opacity: 1; } to { opacity: 0; } }
.enhbox { position: relative; width: 300px; height: 330px; margin-top: -60px; }
.enhbox > * { position: absolute; }
.enhbox .nm { left: -30px; right: -30px; top: 0; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.enhbox .pl { left: 0; right: 0; top: 28px; height: 26px; text-align: center; }
.enhbox .num { display: inline-block; height: 26px; overflow: hidden; vertical-align: top;
  font: 700 22px 'Spline Sans', var(--sans); line-height: 26px; color: var(--rc, var(--epic)); }
.enhbox .num .col { display: block; }
.enhbox .num .col b { display: block; height: 26px; }
.enhbox .num .col b + b { color: #FFC300; }
.enhstage.ok .num .col { animation: enh-roll .45s cubic-bezier(.3,1.7,.5,1) both; animation-delay: var(--er); }
@keyframes enh-roll { from { transform: translateY(0); } to { transform: translateY(-26px); } }
/* his chevron, turned to point up, tinted gold */
.enhbox .chev { position: absolute; left: calc(50% + 20px); top: 5px; width: 16px; height: 16px;
  background: #FFC300; transform: rotate(-90deg); opacity: 0;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.enhstage.ok .chev { animation: enh-chev .9s ease-out both; animation-delay: calc(var(--er) + 250ms); }
@keyframes enh-chev { 0% { opacity: 0; transform: translateY(8px) rotate(-90deg); }
  30% { opacity: 1; transform: rotate(-90deg); } 100% { opacity: 0; transform: translateY(-14px) rotate(-90deg); } }
/* the two rings: the card's rune ring and its diamond ring, in the tier's colour */
.enhbox .rg { left: 60px; top: 80px; width: 180px; height: 180px; }
.enhbox .rg svg { display: block; }
.enhbox .rb { color: var(--rc, var(--epic)); }
.enhbox .ra { animation: enh-ra 1900ms linear both; animation-delay: calc(var(--ea) + 100ms); }
.enhbox .rb { animation: enh-rb 1900ms linear both; animation-delay: calc(var(--ea) + 100ms); }
.enhstage.ok .rg svg { animation: enh-out .5s ease-out both; animation-delay: calc(var(--er) + 50ms); }
@keyframes enh-out { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
/* the failure: the rings shudder, then slump and sink out */
.enhstage.no .rg svg { animation: enh-slump .75s cubic-bezier(.5,0,.8,.6) both; animation-delay: calc(var(--er) + 40ms); }
@keyframes enh-slump { 0% { opacity: 1; transform: none; } 16% { transform: translateX(-3px) rotate(-3deg); }
  32% { transform: translateX(3px) rotate(3deg); } 48% { opacity: .9; transform: translateY(2px); }
  100% { opacity: 0; transform: translateY(30px) scale(.92); } }
/* the piece in its tier frame (his frames, docs/346) */
.enhbox .et { left: 102px; top: 122px; width: 96px; height: 96px; }
.enhbox .et img { position: absolute; left: 0; top: 0; width: 96px; height: 96px; border-radius: 16px; }
.enhbox .et .wp { left: 16px; top: 9px; width: 64px; height: 78px; object-fit: contain;
  image-rendering: pixelated; border-radius: 0; }
.enhstage.ok .et { animation: enh-kick .6s linear both; animation-delay: calc(var(--er) + 30ms); }
@keyframes enh-kick { 0% { transform: none; animation-timing-function: cubic-bezier(.2,.9,.3,1.4); }
  20% { transform: scale(1.2); } 50% { transform: scale(.96); } 100% { transform: none; } }
.enhstage.no .et { animation: enh-nod .55s ease-out both; animation-delay: calc(var(--er) + 20ms); }
@keyframes enh-nod { 0% { transform: none; } 15% { transform: translateX(-8px) rotate(-3deg); }
  32% { transform: translateX(7px) rotate(2.5deg); } 50% { transform: translateX(-5px) rotate(-1.5deg); }
  68% { transform: translateX(3px); } 84% { transform: translateX(-1px); } 100% { transform: none; } }
.enhbox .flash { left: 38px; top: 58px; width: 224px; height: 224px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fffaf0, rgba(255,214,130,.55) 35%, transparent); }
.enhstage.ok .flash { animation: enh-fl .7s ease-out forwards; animation-delay: var(--er); }
@keyframes enh-fl { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.5); } }
.enhbox .sw { left: 82px; top: 102px; width: 136px; height: 136px; border-radius: 50%; opacity: 0;
  border: 3px solid #FFC300; box-sizing: border-box; }
.enhstage.ok .sw { animation: enh-sw .6s ease-out forwards; animation-delay: calc(var(--er) + 50ms); }
@keyframes enh-sw { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.9); } }
.enhbox .ash { left: 105px; top: 150px; width: 90px; height: 64px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(170,160,150,.5), transparent); }
.enhstage.no .ash { animation: enh-ash .9s ease-out forwards; animation-delay: calc(var(--er) + 60ms); }
@keyframes enh-ash { 0% { opacity: .75; transform: translateY(-6px) scale(.6); }
  100% { opacity: 0; transform: translateY(36px) scale(1.5); } }
/* the card's sparks, drawn IN from the edge along their arms while the rings tighten */
.enhbox .sparks { left: 150px; top: 170px; width: 0; height: 0; }
.enhbox .sparks .pw { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.enhbox .sparks .p { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: #fff1c9; opacity: 0;
  animation: enh-p .6s cubic-bezier(.6,0,.9,.6) both; animation-delay: calc(var(--ea) + 200ms + var(--d)); }
@keyframes enh-p { 0% { opacity: 0; transform: translateY(var(--r)); } 30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px) scale(.5); } }
/* the chance line holds its breath, then gives the floor to the answer */
.enhbox .ch { left: 0; right: 0; top: 286px; text-align: center; font-family: var(--mono); font-weight: 700;
  font-size: 12px; letter-spacing: 1px; color: rgba(228,224,216,.62);
  animation: enh-hold 1900ms both; animation-delay: calc(var(--ea) + 100ms); }
@keyframes enh-hold { 0% { opacity: 1; transform: none; } 63.158% { opacity: 1; transform: scale(1.04); }
  78.947% { opacity: .6; transform: scale(.98); } 94.737% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); } }
/* docs/359 review: THE ANSWER IS LATE (a weak signal). The card's breath ends at 1.9s, faded out,
   because on the card the answer is always there by then — on a phone it may not be, and a stage
   of stopped rings and no words reads as a hung game. Until the answer lands the chance keeps
   being SAID, breathing; it takes over at 1.9s (the hold's own 1.8s, as it starts 100ms in), the
   one frame where the hold is fully lit and at the same scale, so nothing jumps. The moment the
   answer lands (.ok / .no) this stops matching and the hold ends as the card's does. Opacity
   only, and the compositor runs it. */
.enhstage:not(.ok):not(.no) .enhbox .ch { animation: enh-hold 1900ms both, enh-late 1.4s ease-in-out infinite;
  animation-delay: calc(var(--ea) + 100ms), calc(var(--ea) + 1900ms); }
@keyframes enh-late { 0%, 100% { opacity: 1; transform: scale(1.06); } 50% { opacity: .5; transform: scale(1.06); } }
.enhbox .rs { left: 0; right: 0; top: 278px; text-align: center; font: 700 17px var(--sans);
  letter-spacing: 6px; text-indent: 6px; color: #FFC300; opacity: 0;
  animation: enh-ok .45s cubic-bezier(.2,.9,.3,1.5) both; animation-delay: calc(var(--er) + 150ms); }
@keyframes enh-ok { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
.enhstage.no .rs { color: rgba(228,224,216,.8); letter-spacing: 5px; text-indent: 5px;
  animation-name: enh-sag; animation-timing-function: ease-out; }
@keyframes enh-sag { 0% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
.enhbox .sub { left: 0; right: 0; top: 306px; text-align: center; font-family: var(--sans); font-weight: 600;
  font-size: 9px; letter-spacing: 1.6px; color: rgba(208,178,122,.85); opacity: 0;
  animation: enh-sub .4s ease-out both; animation-delay: calc(var(--er) + 380ms); }
.enhstage.no .sub { color: rgba(228,224,216,.6); }
@keyframes enh-sub { 0% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
/* stillness: nothing turns or flies (the global rule collapses every animation to its
   end), but the chance must still be SAID while it waits, since its end is opacity 0 */
@media (prefers-reduced-motion: reduce) {
  .enhstage .ch { animation: none !important; opacity: 1; }
  .enhstage.ok .ch, .enhstage.no .ch { opacity: 0; }
}
/* ⭐ SKIP (docs/375): where the ENHANCE key was — the anvil's key sits in `.keywrap.anvil`
   (bottom 78px, the 68px key at its top), so this 38px key is centred on the same spot.
   Centred by margin, not transform, so `.key-sm:active`'s press does not throw it sideways.
   A skipped reveal gives the chance line's floor to the answer at once — its breath is timed
   to the full wind-up and would otherwise sit under SUCCESS / FAILED. */
.enhstage .enhskip { position: absolute; left: 50%; bottom: 111px; width: 132px; margin-left: -66px; z-index: 2;
  color: var(--ink); }
.enhstage.skip.ok .enhbox .ch, .enhstage.skip.no .enhbox .ch { animation: none; opacity: 0; }

/* ── the forge (16) ───────────────────────────────────────────────────────── */
.anvil-top { display: flex; gap: 12px; align-items: flex-start; }
.anvil-top .fig { width: 110px; height: 130px; flex: 0 0 60px; margin: -12px -25px -12px -25px; }
.anvil-top .txt { flex: 1 1 auto; min-width: 0; }
.tierline { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.tierline .arrow { color: var(--faint); font-size: 16px; }
.tierline .cost { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: 0; }
.odds { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 9.5px;
  color: rgba(228,224,216,.55); letter-spacing: .5px; }
.odds b { font-weight: 400; color: var(--epic); }
.filters { display: flex; gap: 6px; margin: 10px 0 12px; }
.filters .chip { flex: 1 1 0; height: 26px; border-radius: 8px; position: relative; }
.filters .chip::after { content: ''; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.tray .tile.empty::after { content: attr(data-n); width: auto; height: auto; background: none;
  font-family: var(--mono); font-size: 18px; color: var(--faint); }

/* ── the fight (10): a belt of drawn objects ──────────────────────────────── */
.arena { position: absolute; inset: 0 0 432px 0; overflow: hidden; background: #171314; }
.arena.tall { inset: 0; }
.arena::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 270px 242px at 50% 45%, rgba(58,51,51,.8), rgba(58,51,51,0) 100%),
    radial-gradient(ellipse 270px 242px at 14% 80%, rgba(102,2,60,.11), rgba(102,2,60,0) 100%),
    linear-gradient(180deg, rgba(58,48,44,0) 60%, rgba(58,48,44,.2) 80%, rgba(58,48,44,0) 100%); }
.arena::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 46px; background: rgba(0,0,0,.22); }
.plate-name { position: absolute; top: 56px; width: 156px; z-index: 2; text-align: left; }
/* docs/276: the health number sits ON the bar, at the end the bar drains from */
.plate-name .track { position: relative; height: 15px; border-radius: 3px; }
.plate-name .hpn { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--mono);
  font-size: 10px; letter-spacing: .4px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.plate-name.you .hpn { left: 6px; }
.plate-name.them .hpn { right: 6px; }
/* ⛔⛔ THE SHIELD, ON THE HEALTH BAR AND TO ITS SCALE (his instruction,
   2026-09-17, docs/326: "if max hp is 100 and shield is 50, the shield (light
   blue color) should cover half of the length of the bar").
   It lies OVER the fill rather than beyond it: a bar that can be longer than
   itself has no scale to read against. Blue is the one colour free to take it --
   red is reserved for HP (root CLAUDE.md) and gold is the purse.
   ⭐ 8ACFF8 IS HIS, TYPED OUT (docs/327), off his own health bar on "11 Fight ·
   stance down" in the CLAUDE ZONE -- V2. The number is a darker variation of the
   same hue rather than a second colour, which is what he asked for. */
/* ⛔⛔ AND IT COVERS THE TOP HALF OF THE BAR, NOT ALL OF IT (his instruction,
   2026-09-17, `docs/337`, off his own frame: *"there is shield covering top half of
   the health bar, with shield amount info on 'inside side' (health is on edge side
   for both entities)"*). It was the full height, which hides the health it is
   supposed to sit in front of — at a full shield the red bar was simply not there.
   ⭐ Half the height keeps both readable at once: how much cover is left along the
   top, how much health under it, on one bar and to one scale. The WIDTH is
   unchanged (`docs/326`: a shield of 50 against a maximum of 100 covers half the
   length) and it still grows from the end the bar drains from. */
.plate-name .track > u { position: absolute; top: 0; height: 50%; left: 0; display: block;
  background: #8ACFF8; border-radius: 3px 0 0 0; }
.plate-name.them .track > u { left: auto; right: 0; border-radius: 0 3px 0 0; }
/* ⛔ THE COUNTS SIT ON OPPOSITE ENDS, AND HE CORRECTED ME ON WHICH (docs/327:
   "with number on the opposit side (im sorry i think i wrote wrong side earlier
   in that prompt)"). Health keeps the end it always had -- left on his plate,
   right on theirs -- and the shield takes the other one. They never move, so a
   shield appearing does not shuffle the numbers under his eye. */
/* ⚠ THE COUNTS DID NOT MOVE, AND THAT IS DELIBERATE (`docs/337`). His
   instruction about the band is VERTICAL and his instruction about the two
   counts is HORIZONTAL — *"shield amount info on 'inside side' (health is on
   edge side for both entities)"* — and both of those are already true. A first
   cut also lifted `.shn` into the band, which is a change he did not ask for and
   which moves it AWAY from the blue: the band grows from the drain end, so the
   inside end where his count sits is the end the band reaches last. */
/* ⭐ docs/355, his: *"Shield number in fight should be more visible."* It was dark blue text
   standing on whatever was under it — and the band grows from the DRAIN end, so the inside
   end where the count sits is the end the band reaches last: most of the time #10496B lay on
   the red fill or the dark track and could not be read. The count now carries its own piece
   of his blue — a chip in 8ACFF8, bold, a size up — so it reads the same on red, on dark
   and on the band. `:empty` keeps the chip away while there is no shield (paintHealth writes
   the text in place, so the chip comes and goes with the number). */
.plate-name .shn { position: absolute; top: 1px; bottom: 1px; min-width: 16px; padding: 0 5px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
  background: #8ACFF8; box-shadow: 0 0 0 1px rgba(8,30,46,.55), 0 0 6px rgba(138,207,248,.55);
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .3px; line-height: 1; color: #06283d; }
.plate-name .shn:empty { display: none; }
.plate-name.you .shn { right: 6px; }
.plate-name.them .shn { left: 6px; }
/* the level reads outward from the middle: right of your name, left of theirs */
.plate-name b .lv { font-family: var(--sans); font-weight: 600; font-size: 9px; letter-spacing: 1px;
  color: var(--dim); vertical-align: middle; }
.plate-name.you b .lv { margin-left: 7px; }
.plate-name.them b .lv { margin-right: 7px; }
/* ⛔ A BOT IS ALWAYS LABELLED A BOT (docs/120, kept in docs/306). It reads as a
   tag and not as part of the name — a rule the old client learned when "PLAY"
   was printed over a player's own name. */
.plate-name.them b .botTag { display: inline-block; margin-right: 7px; padding: 1px 5px;
  border-radius: 5px; background: rgba(208,178,122,.18); border: 1px solid rgba(208,178,122,.5);
  font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 8px; letter-spacing: 1.2px;
  color: var(--gold); vertical-align: middle; }
.plate-name.you { left: 14px; }
.plate-name.them { right: 14px; text-align: right; }
.plate-name b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plate-name small { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px; letter-spacing: 1px;
  color: var(--dim); text-transform: uppercase; margin-top: 1px; }
.plate-name .track { margin-top: 6px; }
.plate-name.them .track > i { margin-left: auto; }
.fighter { position: absolute; bottom: 10px; width: 104px; z-index: 1; }
.fighter.you { left: 48px; }
.fighter.them { right: 48px; }
.fighter .figure { width: 380px; height: 370px; margin-left: -138px; }
.fighter .shadow { position: absolute; left: 50%; bottom: -6px; width: 104px; height: 22px; margin-left: -52px;
  border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent 70%); }
.parts { position: absolute; left: 0; right: 0; bottom: 300px; height: 132px; z-index: 2; background: #2e2a2b;
  border-top: 1px solid rgba(208,178,122,.25); border-bottom: 1px solid rgba(208,178,122,.25); }
.parts .team { position: absolute; top: 5px; width: 46%; }
.parts .team.a { left: 16px; } .parts .team.b { right: 16px; }
.parts .team small { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px; letter-spacing: 1px;
  color: var(--dim); text-transform: uppercase; margin-bottom: 5px; }
/* docs/276: two at a time, and you scroll for the rest */
/* ⭐ THE LIST IN THE FIGHT SCROLLS LIKE THE ONE ON THE LOADING SCREEN (his
   instruction, 2026-09-14). Momentum, a snap so a row never rests half shown,
   and the scroll stays inside the box instead of dragging the screen behind it.
   ⚠️ `proximity`, not `mandatory`: with two rows visible a mandatory snap fights
   a small nudge and the list feels stuck. */
.parts .plist { max-height: 105px; overflow-y: auto; overscroll-behavior: contain;  /* three rows: a gate now holds up to twelve (docs/319) */
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity; scroll-padding-top: 2px; }
.parts .plist .p { scroll-snap-align: start; }
/* the edge says there is more below, and stops saying it at the end */
.parts .plist { mask-image: linear-gradient(180deg, #000 0, #000 78%, rgba(0,0,0,.35) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 78%, rgba(0,0,0,.35) 100%); }
.parts .plist::-webkit-scrollbar { width: 0; height: 0; }
/* ⛔ THE HEALTH BAR RAN THROUGH THE NAME (docs/322). The row was 28px with the
   name's line box ending at its 458th pixel and the track starting at its 455th
   — three pixels of overlap, which on a 12px serif is a line straight through
   the descender of "Mummy". Every monster in the game wore a strikethrough, on
   the widget he reads to see who is left. Two more pixels of row and a line
   height that does not reach for them is the whole fix. */
.parts .p { position: relative; height: 33px; margin-bottom: 2px; padding: 2px 46px 0 8px; border-radius: 4px; border: 0; font: inherit;
  line-height: 15px;        /* AFTER `font: inherit`, which is a shorthand and resets it */
  background: #d9d9d9; color: #141112; text-align: left; width: 100%; display: block; overflow: hidden; }
/* ⛔ A NAME THAT DOES NOT FIT SAYS SO (docs/322). `overflow: hidden` with no
   `text-overflow` cut a long name mid-letter and took its LV chip with it,
   and FACING / DEAD are absolutely positioned on the same line with no
   gutter reserved — so a long name ran straight under the word. */
/* ⚠️ AND THE ROW OWNS ITS LINE HEIGHT. `vertical-align: bottom` aligns an
   inline-block with the bottom of the LINE BOX, and the line box is as tall as
   the row's inherited font — which pushed the name ten pixels down, straight
   back onto the bar it had just been lifted off. */

.parts .p b { display: inline-block; max-width: calc(100% - 34px); overflow: hidden;
  text-overflow: ellipsis; vertical-align: top;
  font-family: var(--serif); font-weight: 400; font-size: 12px; line-height: 15px; white-space: nowrap; }
.parts .p em { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 8px; line-height: 15px; letter-spacing: .8px; color: rgba(20,17,18,.5); margin-left: 6px; }
/* ⛔⛔ HIS SKILLS, IN THE LINE-UP, TO THE RIGHT OF THE LEVEL (2026-09-17,
   docs/328: "so their name, their level, and their skills, and under this info -
   healthbar (as is)"). docs/324 put them behind a tap, in the chip bar at the
   top of the arena; this is the always-on reading he asked for, and the tap is
   untouched.
   ⚠️ 13px on a 33px row whose top line is 15px: "a little smaller icons", and
   small enough that four of them plus a name still fit a 390px phone. The bar
   keeps its own 5px strip at the bottom of the row, unmoved.
   ⚠️ pointer-events: none -- the ROW is the button (you pick a participant by
   tapping it), and a pip that swallowed the tap would make the bodies with the
   most skills the hardest to select. */
/* ⚠️ INLINE-FLEX, not inline-block. `white-space: nowrap` did not hold the pips
   on one line — photographed and MEASURED: a Raven with two skills had a 24px
   pip box on a 33px row, two 12px images stacked, and the second one sat on the
   health bar. A flex row does not wrap by default, so the guarantee is
   structural rather than a property that can be out-specified. */
.parts .p .pips { display: inline-flex; align-items: center; vertical-align: top;
  height: 15px; margin-left: 5px; pointer-events: none; }
.parts .p .pips img { width: 12px; height: 12px; vertical-align: -1px; margin-right: 1px;
  opacity: .8; -webkit-user-drag: none; user-select: none; }
/* ⛔⛔ THE ROW MAY NOT WRAP. `b`, `em` and the pips are three inline-blocks on a
   33px row whose bar is absolutely positioned 3px from its bottom — so the
   moment they total more than the width, the pips drop to a second line and land
   ON the bar. Photographed: a Raven with two skills. The row holds one line and
   the NAME is what gives way, which is what its ellipsis is already for. */
.parts .p { white-space: nowrap; }
/* the name gives up the room the pips take. ⚠️ Measured rather than guessed: the
   level is ~30px, four pips are 52px, and the row already reserves 46px on the
   right for FACING — so 84px leaves the longest name in the roster readable and
   still ellipses the ones that cannot fit. */
.parts .p:has(.pips) b { max-width: calc(100% - 84px); }
/* ⛔ A BAR, NOT AN UNDERLINE (docs/322). Three pixels of dark hairline two
   pixels under the descenders of a 12px serif reads as text decoration, and
   this strip is the ONLY place the health of the bodies that are not drawn
   can be seen — when a queued foe drops to a tenth, nothing said so. */
/* ⚠ SIX, NOT FIVE: half of five pixels is two and a half and does not read, and
   the band is half the bar's height by his rule. */
.parts .p .track { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 6px;
  border-radius: 3px; overflow: hidden; }
/* ⛔ AND THE SHIELD IS ON THE LINE-UP'S BARS TOO (his instruction, `docs/337`:
   *"Shield should display on hp bar of participants."*). Same band, same colour,
   same half-height rule — the strip is where the health of the bodies that are not
   drawn can be seen, and a body that cannot be hurt yet was saying nothing there.
   ⚠ No counts: five pixels has no room for a number, and `trackHp(..., bare)` is
   the one place that decides that. */
.parts .p .track > u { position: absolute; top: 0; height: 50%; left: 0; display: block;
  background: #8ACFF8; border-radius: 3px 0 0 0; }
.parts .p.lit { box-shadow: 0 0 0 3px #ffe100; }
.parts .p .track { background: #292526; }
/* ⭐⭐ THE ONES THAT ANSWERED, ON THE BEAT THEY ANSWERED ON (docs/307). Only one
   opponent is drawn (docs/274), so a blow that comes from two bodies you cannot
   see used to be explained by animating the CORPSE — this is the honest version.
   ⛔ THE DELAY IS `EX.answer` (820ms) and it is a CSS delay on purpose: nothing
   may re-render inside an exchange (docs/297), so the class is baked in by the
   render that opens it and the animation waits for its own moment.
   ⚠️ It must not move the plate: the strip scrolls and a transform would shift
   what the thumb is over. It is light, not motion. */
.parts .p.swung { animation: pf2-swung .46s ease-out .82s both; }
@keyframes pf2-swung {
  0%   { background: #d9d9d9; }
  22%  { background: #fff0f2; box-shadow: 0 0 0 2px var(--hp); }
  100% { background: #d9d9d9; box-shadow: none; }
}
/* the one you are facing keeps its rule while it flashes */
.parts .p.facing.swung { animation-name: pf2-swung-facing; }
@keyframes pf2-swung-facing {
  0%   { background: #d9d9d9; box-shadow: inset 4px 0 0 var(--hp); }
  22%  { background: #fff0f2; box-shadow: inset 4px 0 0 var(--hp), 0 0 0 2px var(--hp); }
  100% { background: #d9d9d9; box-shadow: inset 4px 0 0 var(--hp); }
}
/* ⛔ DARK INK ON A LIGHT PILL (docs/322). This was `var(--dim)` —
   rgba(228,224,216,.58), which is the colour the rest of the game writes on a
   BLACK background — on a row whose background is #d9d9d9. A contrast ratio of
   about 1.0: the word was there, in the DOM, on screen, and invisible. In a gate
   of six identical Mummies the only thing telling him which ones were already
   down was an empty 3px bar. */
.parts .p.dead::after { content: 'DEAD'; position: absolute; right: 8px; top: 8px; font-family: var(--sans);
  font-weight: 600; font-size: 8px; letter-spacing: 1px; color: rgba(20,17,18,.58); }
.parts .p.dead { opacity: .62; }
.parts .foot { position: absolute; left: 0; right: 0; bottom: 4px; }
.console { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: 3; background: #141112; }
/* ⭐ the account of the exchange, in the band above the dial. It arrives on the
   beat the blow does — `EX.impact` — because the whole exchange lands in one
   response and words at t=0 would describe something that has not happened yet. */
.log { position: absolute; top: 6px; left: 80px; right: 80px; height: 28px; overflow: hidden; text-align: center;
  font-family: var(--mono); font-size: 10px; line-height: 1.4; color: rgba(228,224,216,.55);
  animation: logSaid 2.4s ease-out .3s both; pointer-events: none; }
@keyframes logSaid {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { opacity: .38; }
}
@media (prefers-reduced-motion: reduce) { .log { animation: none; opacity: 1; } }
/* ⛔ GIVE UP IS GONE (his instruction, 2026-09-17) and so is its rule — a class
   nothing emits is a feature the next reader has to decide is dead. The band it
   sat in is the fight log's now (docs/322). */
/* ⭐ WHAT FINISHING THE PLACE PAYS, apart from what every gate does. It sits at
   the end of the loot row with its own word under it, because drawing it in the
   same row is what made the old window read as "this gate might pay this". */
.lootrow .lootrun { position: relative; display: grid; place-items: center; gap: 2px;
  margin-left: auto; padding-left: 12px; border-left: 1px solid rgba(208,178,122,.22); }
.lootrow .lootrun img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.lootrow .lootrun em { font-style: normal; font-family: var(--sans); font-weight: 600;
  font-size: 7px; letter-spacing: 1px; color: var(--faint); }
.dial { position: absolute; left: 50%; bottom: 34px; width: 240px; height: 240px; margin-left: -120px; }
.dial .backing { position: absolute; left: 0; right: 0; top: 30px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(58,49,48,.85), rgba(36,31,32,.75) 72%, rgba(36,31,32,0) 100%); }
.dial .ring { position: absolute; left: 12px; top: 12px; width: 216px; height: 216px; border-radius: 50%;
  border: 1px solid rgba(208,178,122,.22); }
.dial .halo { position: absolute; left: -10px; top: -10px; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid rgba(208,178,122,.55); box-shadow: 0 0 18px rgba(208,178,122,.25); opacity: 0;
  transition: opacity .2s ease; pointer-events: none; }
.dial.held .halo { opacity: 1; }
.dial .basic {
  position: absolute; left: 43px; top: 40px; width: 154px; height: 160px; border-radius: 50%;
  background: var(--wine); border: 3px solid rgba(208,178,122,.75); display: grid; place-items: center;
  transition: transform .08s ease;
}
.dial .basic:active { transform: scale(.96); }
.dial .basic img { width: 98px; height: 98px; object-fit: contain; }
/* his two skill keys: 100x72 pills at +-60 degrees on a ring of 108, the icon counter-rotated */
.dial .sk {
  position: absolute; width: 100px; height: 72px; border-radius: 30px; background: rgba(53,48,47,.98);
  border: 2px solid rgba(93,127,167,.8); display: grid; place-items: center; transition: opacity .1s ease;
}
.dial .sk:active img { transform: scale(.9) rotate(var(--ccw, 0deg)); }
.dial .sk img { width: 48px; height: 48px; object-fit: contain; transform: rotate(var(--ccw, 0deg)); }
/* ⛔ NOTHING ELSE SAYS "ON COOLDOWN". The key used to fade to 55% and wear a
   gold rim; both are gone, because the clock is now the only vocabulary for it
   (his instruction, 2026-09-14) and three signals for one fact is how a screen
   stops meaning anything. */
.dial .sk.cd { border-color: rgba(212,166,47,.45); }
.dial .sk.s1 { left: -24px; top: 30px; transform: rotate(-60deg); --ccw: 60deg; border-color: rgba(212,166,47,.6); }
.dial .sk.s2 { left: 164px; top: 30px; transform: rotate(60deg); --ccw: -60deg; }
.dial .sk.toggle { left: 69px; top: 192px; width: 102px; height: 72px; border-radius: 31px;
  border-color: rgba(208,178,122,.8); transform: none; --ccw: 0deg; }
/* the wedge counter-rotates with the icon, so twelve o'clock is twelve o'clock
   on a key the dial has turned (the two skill pills sit at ±60°) */
.dial .sk .cool { transform: rotate(var(--ccw, 0deg)); }
.dial .on { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 2px 10px;
  border-radius: 7px; background: var(--gold); color: #292526; font-family: var(--sans); font-weight: 600;
  font-size: 8px; letter-spacing: 1px; }
.cons-rail { position: absolute; bottom: 22px; display: grid; gap: 32px; z-index: 4; }
.cons-rail.left { left: 14px; }
.cons-rail.right { right: 14px; }
.cons-rail .plate { width: 56px; height: 56px; }
.tip { position: absolute; left: 14px; top: 160px; width: 178px; padding: 10px 12px 8px; z-index: 6;
  background: rgba(25,22,23,.97); border: 1px solid rgba(208,178,122,.45); border-radius: 10px; }
.tip::before { content: ''; position: absolute; left: 80px; top: -7px; border: 6px solid transparent;
  border-bottom-color: rgba(208,178,122,.45); border-top: 0; }
.tip h4 { margin: 0 0 4px; font-family: var(--sans); font-weight: 600; font-size: 9px; letter-spacing: 1.2px;
  color: var(--gold); text-transform: uppercase; }
.tip p { margin: 0; font-family: var(--mono); font-size: 9.5px; line-height: 1.4; color: rgba(228,224,216,.75); }
.tip small { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 600; font-size: 7px;
  letter-spacing: .8px; color: var(--faint); text-transform: uppercase; }
/* ⭐⭐ THE CARD GREW A LITTLE, BECAUSE IT REPLACED A SCREEN (his instruction,
   2026-09-14). It still has to be a floating window on a 390px phone, so 200px
   is the ceiling and the facts are one dense uppercase line, not a table. */
.tip { width: 200px; }
.tip h4 i { margin-left: 6px; font-style: normal; font-size: 8px; letter-spacing: .9px; }
/* the numbers that decide whether you want it */
.tip .facts { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(208,178,122,.22);
  font-family: var(--sans); font-weight: 600; font-size: 7.5px; letter-spacing: .8px;
  line-height: 1.5; color: rgba(228,224,216,.55); text-transform: uppercase; }
.tip .facts b { color: var(--gold); font-size: 9px; }
/* ⭐ AN ACCESSORY'S ACTIVE SKILL, WITH ITS OWN PICTURE BESIDE WHAT IT DOES (his
   instruction). Until 2026-09-14 `skill.icon` was the accessory again on all
   thirty-six of them, so this row would have drawn the ring twice. */
.tip .skl { display: flex; gap: 8px; margin-top: 7px; padding-top: 7px;
  border-top: 1px solid rgba(208,178,122,.22); }
.tip .skl img { flex: 0 0 26px; width: 26px; height: 26px; object-fit: contain; opacity: .9; }
.tip .skl b { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px;
  letter-spacing: 1px; color: var(--gold); }
.tip .skl i { display: block; font-style: normal; font-family: var(--sans); font-weight: 600;
  font-size: 6.5px; letter-spacing: .8px; color: var(--faint); }
.tip .skl span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 8.5px;
  line-height: 1.35; color: rgba(228,224,216,.7); }
/* the slot picker lost its key, so its body runs to the nav */
.body.picker { bottom: 26px; }

/* the hit: one number, one rise, transform and opacity only (docs/77) */
/* ⭐⭐ HIS DAMAGE LANGUAGE (2026-09-14, docs/298). *"physical should be yellow
   'ffe14c'. true just white. magical: '80ffdb' ... crit will be a little darker
   and bold."* THE COLOUR IS THE KIND OF DAMAGE AND NOTHING ELSE — which side
   dealt it is already said by which side of the arena it floats on, and it used
   to be said by the colour TOO (gold for theirs, red for yours), which is what
   made the numbers read as arbitrary.
   ⚠️ The mono face ships 400 and 700 only, so "bold for crit" means the ordinary
   number is NOT bold — at 700 for everything there is no weight left to spend. */
.hitnum {
  position: absolute; font-family: var(--mono); font-weight: 700; z-index: 3;
  font-size: 26px; text-shadow: 0 2px 6px #000; pointer-events: none;
  /* ⛔⛔ SLOW ENOUGH TO READ (his instruction, 2026-09-17: *"Make the damage float
     slower, so i can read what text says"*). At .85s a number was legible for
     about half a second before it started fading, and the WORDS — MISS, TURNED,
     SHIELDED, DODGE, and the sub-lines under them — are the ones that need
     reading, not the digits. 1.6s, and it holds full opacity most of the way up
     instead of starting to go at a quarter. */
  animation: hitRise 1.6s cubic-bezier(.2,.7,.35,1) both;
  --dmg: #ffe14c;                      /* physical, and the default */
  --fat: .9px;                         /* how much thicker than the face can go */
  color: var(--dmg);
  /* ⛔⛔ THE FACE ONLY SHIPS 400 AND 700, so "thicker" cannot be a weight — at
     700 there is nothing above it and the browser would either synthesise or
     ignore it (his instruction, 2026-09-14: *"I want all of it thicker (crit and
     non crit)"*). The glyph is fattened by painting its own outline around it.
     ⚠️ `currentColor`, NEVER `var(--dmg)`: the WORDS below are `--ink` while
     `--dmg` is still yellow, so a stroke keyed to --dmg would ring MISS and
     DODGE in a colour they are not. */
  -webkit-text-stroke: var(--fat) currentColor;
  paint-order: stroke fill;
}
.hitnum.k-true { --dmg: #ffffff; }
.hitnum.k-magic { --dmg: #80ffdb; }
.hitnum.them { right: 70px; top: 170px; }
.hitnum.you { left: 70px; top: 170px; }
/* ⭐ HIS CRITICAL (2026-09-14): *"bold and glow on crit"*, over the size bump he
   asked to keep. Everything about it is DERIVED from the colour the number
   already has — the halo is `currentColor`, so a magic critical glows green and
   a true one white, and a fourth damage kind needs nothing added here (trap #4).
   ⚠️ Bold no longer separates a critical from an ordinary hit, because he wants
   both thick; the GLOW and the size are what say it now. */
.hitnum.crit {
  font-size: 34px;
  --fat: 1.1px;
  filter: brightness(.86);
  text-shadow: 0 0 10px currentColor, 0 0 24px currentColor, 0 2px 6px #000;
}
/* ⛔⛔ A HEAL AND A BITE MUST NOT SHARE A PIXEL (docs/322's rule, which was
   stated for the sub-lines and never reached the numbers). The bite floats at 0s
   and the heal at 0.3s, both for 1.6s — so a turn where you rally while poisoned,
   which is the ordinary way that pair happens, painted two numbers on top of each
   other for most of a second. They are different KINDS of event and they go on
   different LINES; the delay alone was never enough to separate them.
   ⚠️ It is a row, not a nudge: 44px is the float's own reach, so the two never
   cross even at the top of their rise. */
.hitnum.heal { color: var(--uncommon); top: 250px; }
/* ⛔ AND NEITHER MAY WHAT IT PRICKED BACK. Thorns land at 0.3s, a bite at 0s and
   the answer at 1.12s — all three are `.hitnum.you` at top:170, and a 1.6s float
   means the bite is still climbing when the thorns appear. Third row, same 44px
   pitch the heal uses, so nothing crosses at the top of its rise. */
.hitnum.you.thorns { top: 206px; }
@keyframes hitRise {
  0%   { opacity: 0; transform: translateY(10px) scale(.8); }
  12%  { opacity: 1; transform: translateY(-4px) scale(1.15); }
  72%  { opacity: 1; transform: translateY(-30px) scale(1); }
  100% { opacity: 0; transform: translateY(-46px) scale(1); }
}
.struck { animation: struck .34s ease both; }
/* THE EXCHANGE (docs/261): your action, then theirs, staged by delay. Every
   keyframe is transform/opacity only (docs/77). Idle breathing runs between. */
/* the rig swings the limbs; the whole fighter only steps in a little */
/* the step carries a WIND-UP (the old client's own curve): a lean back at 28%
   sells the commit at 55%, and the whole thing is over in .6s (docs/273) */
.ex-lunge .fighter.you { animation: lunge .6s cubic-bezier(.22,.9,.3,1) both; }
.ex-lunge.ex-heavy .fighter.you { animation: lungeHeavy .74s cubic-bezier(.22,.9,.3,1) both; }
.ex-lunge.ex-crit .fighter.you { animation: lungeCrit .66s cubic-bezier(.22,.9,.3,1) both; }
@keyframes lunge { 0% { transform: translateX(0) scale(1); } 28% { transform: translateX(-9px) scale(.985); }
  55% { transform: translateX(26px) scale(1.03); } 100% { transform: translateX(0) scale(1); } }
@keyframes lungeCrit { 0% { transform: translateX(0) scale(1); } 26% { transform: translateX(-13px) scale(.98); }
  55% { transform: translateX(34px) scale(1.06); } 100% { transform: translateX(0) scale(1); } }
@keyframes lungeHeavy { 0% { transform: translateX(0); } 20% { transform: translateX(-14px); }
  50% { transform: translateX(34px); } 100% { transform: translateX(0); } }
/* the step is on the fighter, the jolt on its canvas: two elements, so both play */
/* ONLY the body you aimed at flinches. Without `.aimed` this matched every
   foe in the line and all three jolted at one swing (docs/273). */
.ex-them-hit .fighter.them.aimed .figure { animation: struckThem .38s ease .3s both; }
@keyframes struckThem { 0% { transform: translateX(0); opacity: 1; } 30% { transform: translateX(12px) rotate(1.5deg); opacity: .55; }
  60% { transform: translateX(-4px); opacity: 1; } 100% { transform: translateX(0) rotate(0); opacity: 1; } }
/* a critical jolts the sprite white as well. Two animations on one element, so
   the flinch is not thrown away by the flash (the shorthand is last-writer-wins). */
.ex-them-hit.ex-crit .fighter.them.aimed .figure {
  animation: struckThem .42s ease .3s both, critFlash .3s ease-out .3s both; }
@keyframes critFlash { 0% { filter: none; } 15% { filter: brightness(4) saturate(0); }
  45% { filter: brightness(2.2) saturate(.3); } 100% { filter: none; } }
/* their answer: the one in front of you steps in.
   ⚠️ --dscale is in EVERY keyframe. It is 1 now that a single body is drawn, but a
   bare translateX() in a keyframe THROWS AWAY any scale on the element, which is
   how a whole rank of the line once jumped to full size mid-answer (docs/273). */
.ex-back .fighter.them { animation: lungeBack .56s cubic-bezier(.22,.9,.3,1) .82s both; }
@keyframes lungeBack {
  0% { transform: translateX(0) scale(var(--dscale, 1)); }
  28% { transform: translateX(9px) scale(var(--dscale, 1)); }
  55% { transform: translateX(-30px) scale(var(--dscale, 1)); }
  100% { transform: translateX(0) scale(var(--dscale, 1)); } }
.ex-you-hit .fighter.you .figure { animation: struckYou .38s ease 1.09s both; }
@keyframes struckYou { 0% { transform: translateX(0); opacity: 1; } 30% { transform: translateX(-12px) rotate(-1.5deg); opacity: .55; }
  60% { transform: translateX(4px); opacity: 1; } 100% { transform: translateX(0) rotate(0); opacity: 1; } }
.ex-miss .fighter.you .figure { animation: dodge .44s ease 1.02s both; }
@keyframes dodge { 0% { transform: translateX(0); } 40% { transform: translateX(-22px); } 100% { transform: translateX(0); } }
.hitnum.them { animation-delay: .32s; }
.hitnum.you { animation-delay: 1.12s; }
/* ⛔⛔ AND WHAT YOU ARE CARRYING BITES BEFORE YOU SWING (his report, 2026-09-17,
   docs/325: "after i killed it, it hit me back"). A bleed or a poison ticks at
   the TOP of the round — the engine's own first beat, ahead of the player's
   action — so drawing it at 1.12s, the beat the monsters' answer is timed to,
   put it most of a second AFTER the body he had just killed hit the floor.
   ⚠️ ZERO, and it is still not instant: hitRise fades in over its first 12%, so
   at a 1.6s float the number is only readable around 190ms — measured with a
   per-frame sampler, not guessed. That puts it AHEAD of the swing it precedes
   (.hitnum.them at 0.32s, the death clip at 300ms) instead of on top of it. A
   delay of 0.14s put it at 305ms, simultaneous with the body falling, which is
   better than 1090ms and still not the order it happened in. */
.hitnum.you.bite { animation-delay: 0s; }
/* ⛔ THORNS ARE PAID OUT OF THE BLOW THAT PROVOKED THEM, so the number arrives on
   the beat that blow lands — `EX.impact`, the same 0.3s the opponent's own number
   and the heal already use — and not at 1.12s with the monsters' answer, which is
   where it has been hiding inside `taken` since the rule was written. */
.hitnum.you.thorns { animation-delay: .3s; }
/* ⛔ AND THE SAME BEAT ON THE OTHER SIDE OF THE ARENA. In a duel the other
   player's own poison bites at the top of THEIR round, before they act — so the
   number that explains their bar dropping belongs ahead of whatever they did,
   exactly as yours does (`docs/336`, found and left: *"their bar drops with no
   number and no flinch"*). */
.hitnum.them.bite { animation-delay: 0s; }
/* their heal arrives on the beat their action plays, not on yours */
.hitnum.them.heal { animation-delay: .32s; }
/* ⭐ docs/377: the yard's bot drinks when its round CLOSES, after its answer — its heal
   floats on that beat, when the bar it explains climbs (the line's upkeep beat) */
.hitnum.them.heal.drink { animation-delay: 1.2s; }
/* ⭐⭐ docs/392: THE MOVE BANNER — what either side used this round (a skill or a bottle), on a
   ribbon across the arena under the damage rows (124-250), sliding in from the side that acted and
   out the other way. His pick off the :7784 lab. It reads WHO, the move, what it did; never a verb.
   `--d` is its beat, `--n` its row; transform/opacity only. */
.actwrap { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.actcard { position: absolute; left: 0; right: 0; top: calc(296px + var(--n, 0) * 50px); height: 46px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px; opacity: 0;
  border-top: 1px solid color-mix(in srgb, var(--rc) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--rc) 70%, transparent);
  animation: acBanner 2.3s cubic-bezier(.2,.8,.2,1) var(--d, 1.2s) both; }
.actcard.theirs { --dx: 1; flex-direction: row-reverse;
  background: linear-gradient(90deg, transparent, rgba(12,9,10,.9) 22%, rgba(12,9,10,.94) 70%, color-mix(in srgb, var(--rc) 30%, rgba(12,9,10,.94))); }
.actcard.theirs .ac-txt { text-align: right; align-items: flex-end; }
.actcard.mine { --dx: -1;
  background: linear-gradient(270deg, transparent, rgba(12,9,10,.9) 22%, rgba(12,9,10,.94) 70%, color-mix(in srgb, var(--rc) 30%, rgba(12,9,10,.94))); }
.actcard .ac-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.actcard.theirs .ac-ico { transform: rotate(-6deg); }
.actcard.mine .ac-ico { transform: rotate(6deg); }
.actcard .ac-ico img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 6px var(--rc)); }
.actcard .ac-txt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.actcard small { font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: 1.4px; color: var(--rc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.actcard b { font-family: var(--serif); font-size: 17px; letter-spacing: .5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actcard em { font-style: normal; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: 1px; color: rgba(228,224,216,.78); }
@keyframes acBanner {
  0% { opacity: 0; transform: translateX(calc(var(--dx) * 60%)); }
  14% { opacity: 1; transform: translateX(calc(var(--dx) * -2%)); }
  20%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(calc(var(--dx) * -30%)); }
}
@media (prefers-reduced-motion: reduce) {
  .actcard { animation-name: acCalm; animation-timing-function: linear; }
}
@keyframes acCalm { 0%, 100% { opacity: 1; transform: none; } }
/* ⛔⛔ HIS DIVINE DAGGER'S TRUE HALF IS ITS OWN NUMBER (his report, 2026-09-27,
   docs/356: *"normal dmg as yellow + true dmg as white, two separate floating
   damages"*). White is `.k-true`, already his colour for true damage; this only
   gives it its own ROW — the thorns' pitch, 36px under the swing's number, so the
   two never share a pixel at the top of the rise — and a breath after the swing,
   so it reads as the second blow riding the first rather than as one number
   split in two. */
.hitnum.them.truex { top: 206px; animation-delay: .46s; }
/* the fight is over: the console is scenery until the loot rises */
.view.over .console { pointer-events: none; }

/* THE LOOT WINDOW (his frame "10 Fight · loot screen", docs/264): the arena
   stays under a dim, a wine band of eight plates takes the participants'
   place, CLAIM sits where the dial was. Bottom-anchored like the fight. */
.loot { position: absolute; inset: 0; z-index: 6; }
.loot .dim { position: absolute; inset: 0; background: rgba(25,22,23,.9); }
/* not .band — that is the screen head's picture strip, pinned to the top */
.lband { position: absolute; left: 0; right: 0; bottom: 311px; height: 344px; background: var(--wine); }
/* row one: the level and its bar on the left, the purse on the right; row
   two: LOOT and the stake; then two rows of plates whose captions have their
   own room (docs/267 — the first cut had them on top of each other) */
.loot h2 { position: absolute; left: 0; right: 0; top: 36px; margin: 0; text-align: center; font-family: var(--serif);
  font-weight: 400; font-size: 30px; line-height: 34px; color: var(--ink); }
.loot h2 i { font-style: normal; font-size: 10px; vertical-align: 6px; margin-left: 3px; }
.loot .wallet { right: 16px; top: 8px; }
.llv { position: absolute; left: 16px; top: 8px; height: 26px; display: flex; align-items: center; gap: 6px; }
.llv b { font-family: var(--serif); font-weight: 400; font-size: 13px; color: var(--ink); white-space: nowrap; }
.lxp { position: relative; width: 64px; height: 4px; border-radius: 8px; background: rgba(25,22,23,.6); overflow: hidden; }
.lxp .fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left center; }
.llv small { font-family: var(--mono); font-size: 9px; color: rgba(228,224,216,.75); white-space: nowrap; }
/* ⭐ IT SCROLLS NOW, because nothing is cut any more (docs/301). The band's
   height is his frame's; what changed is that a ninth thing is reachable instead
   of silently dropped. `overscroll-behavior` keeps a flick inside the window. */
.lgrid { position: absolute; left: 50%; top: 78px; bottom: 8px; width: 354px; margin-left: -177px; display: grid;
  grid-template-columns: repeat(4, 84px); column-gap: 6px; row-gap: 8px;
  align-content: start; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lgrid::-webkit-scrollbar { width: 0; height: 0; }
/* ⚠️ while the list is landing the grid is walking itself; a finger on it then
   would fight the animation, so it is untouchable for those few hundred ms */
.lgrid.landing { pointer-events: none; }
/* one plate at a time, quickly: the delay is the cell's index and nothing
   recomputes per frame (docs/77) */
.lslot { animation: pf2-loot-in 300ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(120ms + var(--i, 0) * 70ms); }
@keyframes pf2-loot-in {
  from { transform: translateY(14px) scale(.86); opacity: 0; }
  to { transform: none; opacity: 1; }
}
/* the window itself arrives, rather than being already there */
.loot .lband { animation: pf2-band-in 320ms cubic-bezier(.16,1,.3,1) both; }
.loot .dim { animation: pf2-qdim 240ms ease-out both; }
.loot .lkey { animation: pf2-loot-in 280ms cubic-bezier(.16,1,.3,1) both; animation-delay: 200ms; }
@keyframes pf2-band-in {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lkey .key[disabled] { opacity: .45; }
@media (prefers-reduced-motion: reduce) {
  .lslot, .loot .lband, .loot .dim, .loot .lkey { animation: none; }
}
.lslot { position: relative; height: 126px; }   /* the cell is still his frame's */
.lplate { width: 84px; height: 84px; box-sizing: border-box; border-radius: 24px; background: rgba(53,48,47,.95);
  border: 2px solid rgba(228,224,216,.14); display: grid; place-items: center; }
.lplate img { width: 70px; height: 70px; object-fit: contain; }
.lcap { position: absolute; left: 0; top: 88px; width: 84px; height: 38px; box-sizing: border-box; padding: 3px 4px 2px;
  border-radius: 12px; background: #35302f; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.lcap b { font-family: var(--serif); font-weight: 400; font-size: 15px; line-height: 16px; white-space: nowrap; }
.lcap b.long { font-size: 12px; }
.lcap span { font-family: var(--serif); font-size: 9px; line-height: 10px; color: var(--ink); width: 76px; max-height: 20px;
  overflow: hidden; text-align: center; }
.lnote { position: absolute; left: 28px; right: 28px; top: 90px; margin: 0; font-family: var(--mono); font-size: 11px;
  line-height: 1.5; color: rgba(228,224,216,.85); text-align: center; }
.lkey { position: absolute; left: 50%; bottom: 178px; margin-left: -150px; }

/* what the fight changed: a number under the pill, rising for a gain and
   sinking for a spend; only the hub after a fight shows it (docs/264) */
.pill { position: relative; }
/* the change rises from the number itself, in the pill's own colour and
   size, and the number takes it when the float ends (docs/267 — the first cut
   hung them under the pills, each in a different place) */
.delta { position: absolute; right: 9px; top: 6px; pointer-events: none; z-index: 2; font-family: var(--mono);
  font-size: 11px; font-weight: 700; line-height: 14px; white-space: nowrap; color: inherit; text-shadow: 0 1px 4px #000; }
.delta.up { animation: deltaUp 1.1s ease-out both; }
.delta.down { color: rgba(228,224,216,.6); animation: deltaDown 1.1s ease-out both; }
.delta.xp { right: auto; left: 10px; top: auto; bottom: 8px; color: var(--ink); }
/* a gain rises from below and lands on the number; a spend leaves the number and sinks */
@keyframes deltaUp { 0% { opacity: 0; transform: translateY(26px); } 20% { opacity: 1; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); } }
@keyframes deltaDown { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(22px); } }
.pill .num { display: inline-block; }
.pill .num.pop { animation: pop .35s ease both; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
/* the heal arrives with the health it explains: EX.impact, same as .hitnum.them */
.hitnum.heal { animation-delay: .3s; }
@keyframes struck {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  60% { transform: translateX(4px); }
}

/* ── the reward (17): one big tile, a row of three, three numbers ─────────── */
.spoil { width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; border: 2px solid var(--epic);
  background: var(--card); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 12px 8px 10px;
  position: relative; }
.spoil img { width: 118px; height: 118px; object-fit: contain; }
.spoil .cap { margin: 0; }
.spoil .cap span { margin-bottom: 4px; font-size: 8px; }
.spoil .cap b { font-family: var(--serif); font-weight: 400; font-size: 20px; }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drop { height: 86px; border-radius: 10px; border: 2px solid rgba(228,224,216,.3); background: var(--card);
  display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 8px 4px 6px; }
.drop img { width: 46px; height: 46px; object-fit: contain; }
.drop b { font-family: var(--mono); font-weight: 700; font-size: 9px; }
.sums { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 22px 0 8px; }
.sums small { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px; letter-spacing: 1.2px;
  color: var(--dim); text-transform: uppercase; }
.sums b { display: block; margin-top: 6px; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--gold); }

/* ── the chest, as it opens (22): it strains, it gives, the prize rises ─────

   ⭐ RETIMED ON HIS INSTRUCTION (2026-09-13): "make animation not skippable, and
   a little faster; but the part where icon emerges and rotates can be slower."
   Those pull opposite ways, so the time comes out of the STRAIN — the part with
   nothing to read — and goes into the rise and the two turns, which are the part
   he is watching. 1.10 + 1.60 = 2.70s becomes 0.70 + 1.85 = 2.55s, with the rise
   and the turns given 88% of their clip instead of 78%.

   ⛔ `--chest-strain` IS THE ONE COPY OF THE FIRST NUMBER. `app.js::chestStrain`
   READS it off the document rather than keeping its own: the script has to know
   when to draw the loot, and a script waiting 700ms for an animation that takes
   1100 lays the loot over a chest still shaking, with nothing in the console. */
:root { --chest-strain: 700ms; }
/* ⛔ ONE PLATE, EVERY STATE, AND THE LOOT COMES OUT INSIDE IT (owner,
   2026-09-13, working on the Figma twins himself: he set every vault to
   350x306, blew the open chest up to match the shut one, and floated the loot
   over the top of the plate — *"now it looks like loot icon came out of the
   chest"*). The plate no longer resizes between shut, straining and given, so
   nothing under it moves while the chest opens. */
/* ⭐ docs/381 §2: the chest's guaranteed way up, under the vault */
/* ⚠️ compact on purpose: the opened chest must still fit without a scroll (phone walk) */
.pity { margin-top: 8px; padding: 6px 12px 7px; border-radius: 12px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--pc) 35%, transparent); }
.pity-txt { display: flex; align-items: baseline; gap: 8px; line-height: 1.1; white-space: nowrap; }
.pity-txt small { font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: 1.8px; color: rgba(228,224,216,.55); }
.pity-txt b { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.pity-track { display: grid; grid-template-columns: repeat(var(--pn), 1fr); gap: 3px; margin-top: 5px; }
.pity-track i { height: 5px; border-radius: 3px; background: rgba(228,224,216,.12); }
.pity-track i.on { background: color-mix(in srgb, var(--pc) 70%, #fff 0%); }
.pity-track i.goal { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pc); }
.vault { position: relative; height: 306px; border-radius: 16px; background: var(--card);
  border: 1px solid rgba(228,224,216,.16); overflow: hidden; }
/* ⭐ THE CHEST IS SIZED BY WIDTH AND STANDS ON A FLOOR. The art is trimmed to its
   own ink at build time (build_pf2_content._trim), so 300px IS 300px of chest —
   an open chest and a shut one read the same size, which is what he asked for
   and what `object-fit` inside a padded cell could never give. */
.vault .chest { position: absolute; left: 50%; width: 300px; height: auto;
  margin-left: -150px; image-rendering: pixelated; }
.vault.shut .chest { animation: chestRest 3.4s ease-in-out infinite; }
.vault.given .chest { animation: chestShake var(--chest-strain) cubic-bezier(.36,.07,.19,.97) both; }
/* ⭐ docs/399: SKIP the reveal — in the vault's corner, clear of the OPEN keys under it */
.vault .chskip { position: absolute; right: 10px; bottom: 10px; z-index: 6; width: 84px; height: 36px; padding: 0; color: var(--ink); }
.vault .burst { position: absolute; left: 50%; top: 16px; width: 280px; height: 280px; margin-left: -140px;
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.4), rgba(208,178,122,.3) 40%, transparent 70%); }
.vault.given .burst { animation: chestGlow var(--chest-strain) ease both; }
/* the reveal re-render must not strain the chest a second time under the prize (review) */
.vault.shown .chest { animation: none; }
.vault.shown .burst { animation: none; opacity: .25; transform: scale(1.1); }
/* ⚠️ `prizeFly` OUTLIVED THE CARD IT WAS WRITTEN FOR. The chest's prize card is
   gone — one opening and ten now speak the same language, `.lootgrid` — but the
   rise and the two turns are the moment he asked to slow down, so the clip moved
   onto `.lootgrid.n1 .lootcell` rather than being deleted with the card.
   The fight screen's own `.prize` is a different element in a different file. */
@keyframes prizeFly {
  0% { opacity: 0; transform: translateY(170px) scale(.3); }
  38% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: scaleX(0); } 63% { opacity: 1; transform: scaleX(1); }
  76% { opacity: 1; transform: scaleX(0); } 88% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 1; transform: none; } }
@keyframes prizeRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes chestRest { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-2px,0) scale(1.012); } }
@keyframes chestShake {
  0% { transform: translate3d(0,0,0) scale(.96); } 20% { transform: translate3d(-3px,0,0); }
  40% { transform: translate3d(4px,-1px,0); } 55% { transform: translate3d(0,-5px,0) scale(1.05); }
  100% { transform: translate3d(0,0,0) scale(1); } }
@keyframes chestGlow { 0% { opacity: 0; transform: scale(.5); } 45% { opacity: 1; transform: scale(1); }
  100% { opacity: .25; transform: scale(1.1); } }
.chestrow img.art { width: 96px; height: 53px; object-fit: contain; image-rendering: pixelated; flex: 0 0 auto; }
.chestrow .keyq { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; color: var(--gold); }
.chestrow .keyq img { width: 22px; height: 22px; object-fit: contain; image-rendering: pixelated; }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.frames div { height: 48px; border-radius: 8px; background: var(--card); border: 1px solid rgba(228,224,216,.1);
  display: grid; place-items: center; }
.frames img { width: 70px; height: 40px; object-fit: contain; image-rendering: pixelated; }

/* ── the shop (20): three columns, the price on the art, keys below ───────── */
.shelfhead { position: absolute; right: 20px; top: 128px; text-align: right; z-index: 4; }
.reroll { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; margin-top: 6px;
  border-radius: 16px; border: 1px solid var(--gold); background: rgba(25,22,23,.9); font-family: var(--sans);
  font-weight: 600; font-size: 10px; letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; }
.reroll svg { width: 14px; height: 14px; }
.reroll::after { content: ''; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.reroll[disabled] { opacity: .45; }
/* how many are left and when they come back — it ticks itself (data-until) */
.rerollsleft { margin-top: 5px; opacity: .7; letter-spacing: 1px; }

/* ── settings: a toggle, values on the right ──────────────────────────────── */
.toggle { width: 50px; height: 26px; border-radius: 13px; background: var(--gold); position: relative; }
.toggle::after { content: ''; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--plate); }
.toggle.off { background: rgba(228,224,216,.16); }
.toggle.off::after { right: auto; left: 3px; }
input.promo { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; color: var(--ink); font-family: var(--mono);
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase; outline: none; }
input.promo::placeholder { color: var(--faint); }

/* notices: a coloured bar on the left */
.notice { position: relative; padding: 12px 14px 12px 18px; margin-bottom: 12px; background: var(--card);
  border: 1px solid rgba(228,224,216,.16); border-radius: 12px; overflow: hidden; }
.notice::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bar, var(--gold)); }
.notice small { display: block; font-family: var(--sans); font-weight: 600; font-size: 8px; letter-spacing: 1.2px;
  color: var(--bar, var(--gold)); text-transform: uppercase; }
.notice b { display: block; margin-top: 4px; font-family: var(--serif); font-weight: 400; font-size: 17px; }
.notice p { margin: 6px 0 0; font-family: var(--sans); font-size: 10px; color: var(--dim); line-height: 1.4; }
.update { padding: 12px 14px; margin-bottom: 12px; background: var(--card); border: 1px solid rgba(228,224,216,.16);
  border-radius: 12px; }
.update.lit { border-color: rgba(208,178,122,.5); }
.update h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700;
  font-size: 13px; letter-spacing: 1px; }
.update h3 i { margin-left: auto; font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 8px;
  letter-spacing: 1px; color: var(--dim); }
.update p { margin: 0; font-family: var(--sans); font-size: 11px; color: rgba(228,224,216,.8); line-height: 1.7; white-space: pre-line; }
.letter { font-family: var(--sans); font-size: 12px; line-height: 1.55; color: rgba(228,224,216,.85); white-space: pre-line; }
.letter b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.letter .sign { display: block; margin-top: 10px; color: var(--dim); font-size: 11px; }
.letter .fromline { display: block; margin: 0 0 12px; }

.toast {
  position: absolute; left: 20px; right: 20px; bottom: calc(var(--nav) + 184px); z-index: 30;
  padding: 12px 14px; border-radius: 12px; background: rgba(13,11,12,.95);
  border: 1px solid rgba(208,178,122,.45); font-family: var(--sans); font-size: 12px; text-align: center;
  animation: toastIn .18s ease both;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* ⛔ NOT ON TOP OF THE EFFECT CHIPS (docs/322). At `top: 124px` with a
   z-index of 30 the toast covered the whole 35px chip row on both sides for
   its 2.6 seconds — so every refusal during a fight ("one drink a turn")
   blanked out every badge on the screen at exactly the moment he was trying
   to work out why his tap did nothing. It sits at the foot of the arena,
   clear of the chips and of the card one of them opens. */
.view.full + .toast { bottom: auto; top: 340px; }

.sheet { position: absolute; inset: 0; z-index: 25; background: rgba(0,0,0,.6); display: grid; place-items: end center; }
.sheet > div {
  width: 100%; max-height: 74%; overflow-y: auto; padding: 18px 20px 26px;
  background: #161314; border-radius: 20px 20px 0 0; border-top: 2px solid rgba(208,178,122,.4);
  animation: sheetIn .18s ease both;
}
@keyframes sheetIn { from { transform: translateY(20px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      animation-delay: 0s !important; transition-duration: .001ms !important; }
  /* the number is information: shown still, cleared by the next exchange */
  .hitnum { animation: none !important; opacity: 1; transform: none; }
  .lootcell { animation: none !important; opacity: 1; transform: none; }
}

/* docs/269: the turn — while their answer plays, the console takes no tap */
.dial.wait > button, .cons-rail.wait .plate { pointer-events: none; opacity: .45; }
/* the accessories' skills: two small round keys low on the dial */
.dial .sk.acc { width: 56px; height: 56px; border-radius: 50%; left: -6px; top: 150px; transform: none; --ccw: 0deg;
  border-color: rgba(208,178,122,.6); }
.dial .sk.acc.a2 { left: auto; right: -6px; }
/* ⚠️ The key wears the SKILL's symbol now, not the accessory's photograph
   (2026-09-16), and the two are not framed the same way: a photograph was
   cropped into the circle with `cover`, which on a full-bleed white symbol eats
   its corners. A symbol is CONTAINED, unrounded, and sits inside the key. */
.dial .sk.acc img { width: 34px; height: 34px; border-radius: 0; object-fit: contain; }
/* the weapon in hand is the basic attack's face; the off-hand is the stance's */
.dial .basic img.px, .dial .sk.toggle img.px { image-rendering: pixelated; }
/* ── THE COOLDOWN CLOCK (his instruction, 2026-09-14) ──────────────────────
   His drawing, bottom right of `CLAUDE ZONE — V2`: the area still to wait is
   covered, the rest is open, and the turns left are written across the middle.
   ⭐ `--gone` is the sector already served, opening CLOCKWISE FROM TWELVE, which
   is where his quarter-arcs end. The wash never changes strength — only how much
   of the icon it is over.
   ⚠️ `border-radius: inherit` is what lets one rule serve a round key and a
   rounded plate; the wedge is oversized so counter-rotating it on a turned key
   cannot uncover a corner, and `overflow: hidden` crops it back to the button.
   ⚠️⚠️ THE WASH IS DARK, THOUGH HIS DRAWING IS LIGHT. He drew the wedge as flat
   #323031 on the board's near-black card, which is white at about 13% — and
   shipped as that colour it measured TWO levels of difference against the dial
   key's own #353029: a correctly-built clock that could not be seen. The lift
   was how he made the shape visible on an empty card; the meaning is COVER, and
   only a cover reads on every ground this game puts an icon on. */
.cool { position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: grid; place-items: center; pointer-events: none; }
.cool::before {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(rgba(0,0,0,0) 0deg var(--gone, 0deg), rgba(14,12,13,.72) var(--gone, 0deg) 360deg);
}
.cool b { position: relative; font-family: var(--sans); font-weight: 700; font-size: 23px;
  line-height: 1; color: var(--ink); text-shadow: 0 1px 3px rgba(0,0,0,.85); }
/* a spent plate carries the clock instead of the fade — the fade is reserved for
   a plate with nothing left in it, which is not a wait */
.cons-rail .plate.cooling[disabled] { opacity: 1; }

/* the clock under the energy pill */
.pill .tick { position: absolute; left: 50%; top: 100%; margin-top: 3px; transform: translateX(-50%); font-family: var(--mono);
  font-size: 9px; color: rgba(228,224,216,.7); white-space: nowrap; }

/* docs/270 */
/* the WORDS are their own family and share one style — a miss, a blow a rule
   turned aside, and a dodge are not damage and must not read like a number. */
.hitnum.dodge, .hitnum.word { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: 2px; }
/* ⛔ THE TOP OF HIS PHONE IS UNDER THE CAMERA (owner, docs/276) — nothing that
   has to be read may sit in the first ~46px. The clock is centred at the top of
   the arena but BELOW that band, level with the name plates. */
.turnclock { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 5;
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--gold); letter-spacing: 1px;
  padding: 2px 7px; border-radius: 4px; background: rgba(20,17,18,.72); }
.turnclock.low { color: var(--legendary); }
.lfell { position: absolute; left: 0; right: 0; top: 72px; text-align: center; font-family: var(--sans); font-weight: 600;
  font-size: 8px; letter-spacing: 1.4px; color: rgba(228,224,216,.7); }
.loot.lost .lgrid { top: 86px; }

/* the monster's own rig in its info box, not its symbol (docs/271: one family) */
.mfig { position: relative; height: 150px; overflow: hidden; }
.mfig .figure { position: absolute; left: 50%; bottom: -6px; width: 220px; height: 214px; margin-left: -110px; }

/* ── an instance is one run through its gates (docs/272) ─────────────────── */
.gatetag { position: absolute; left: 50%; top: 98px; transform: translateX(-50%); z-index: 3; font-family: var(--sans);
  font-weight: 600; font-size: 9px; letter-spacing: 1.6px; color: var(--gold); }
.gateplate { position: absolute; left: 50%; top: 44%; width: 250px; margin-left: -125px; z-index: 6; text-align: center;
  padding: 14px 12px 12px; border-radius: 14px; background: rgba(102,2,60,.94); border: 1px solid rgba(208,178,122,.5);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: gateIn .5s cubic-bezier(.2,.8,.3,1) both; }
.gateplate b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: 1.5px; color: var(--ink); }
.gateplate small { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 600; font-size: 9px; letter-spacing: 1.6px; color: var(--gold); }
.gateplate.next { background: rgba(25,22,23,.94); }
/* docs/274: one body of the line falls. The same plate, quieter — a gate is the
   event, a body is a beat inside it. */
.gateplate.body { background: rgba(25,22,23,.9); top: 38%; width: 260px; margin-left: -130px; }
.gateplate.body b { font-size: 20px; }
@keyframes gateIn { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
.lgates { position: absolute; left: 0; right: 0; top: 68px; text-align: center; font-family: var(--sans); font-weight: 600; font-size: 9px;
  letter-spacing: 1.6px; color: var(--gold); }
.loot.run .lgrid { top: 90px; }
.loot.run.lost .lfell { top: 82px; }
.loot.run.lost .lgrid { top: 102px; }

/* ── a gate holds a line, and you pick who you swing at (docs/273) ────────── */
/* docs/274: ONE opponent is on the screen at a time — his instruction, and the
   old client's own model, a chain of duels. The rest of the gate's line is read
   in the participants strip, never drawn. The rank/depth rules that stood here
   are gone with them; `--dscale` stays defined at 1 so the keyframes that carry
   it keep working for the single body. */
.fighter.them { --dscale: 1; }
/* the participants strip says two different things, and they must not be confused:
   `facing` is who you are fighting, which is the server's; `lit` is only what you
   have picked up to read. */
.parts .p.facing { box-shadow: inset 4px 0 0 var(--hp); }
.parts .p.facing.lit { box-shadow: inset 4px 0 0 var(--hp), 0 0 0 3px #ffe100; }
.parts .p.facing::before { content: 'FACING'; position: absolute; right: 8px; top: 7px; font-family: var(--sans);
  font-weight: 600; font-size: 8px; letter-spacing: 1px; color: rgba(20,17,18,.45); }
.parts .p.facing.dead::before { content: none; }

/* ── the impact, ported from the old fight screen (docs/273) ───────────────
   His words: "sometimes, im not even sure what i did if i hit or they dodged."
   A ring at the point of contact says a blow ARRIVED; the shake is spent only
   on a critical or a kill, because a stage that shakes at every jab stops
   saying anything by turn three. Transform and opacity only (docs/77). */
.impact { position: absolute; z-index: 5; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; pointer-events: none; border: 3px solid var(--gold);
  box-shadow: 0 0 18px -2px var(--gold); animation: impactRing .3s ease-out forwards; }
.impact.crit { width: 132px; height: 132px; margin: -66px 0 0 -66px; border-width: 4px;
  border-color: #fff3cf; box-shadow: 0 0 26px -2px #fff3cf; animation-duration: .42s; }
@keyframes impactRing { 0% { transform: scale(.25); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
.arena.shake { animation: stageShake .34s cubic-bezier(.36,.07,.19,.97); }
@keyframes stageShake {
  10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); } }
@media (prefers-reduced-motion: reduce) { .impact { display: none; } .arena.shake { animation: none; } }

/* the small word under a number: what the sum does not say (docs/273) */
/* ⛔ `--n` IS THE ROW (docs/322). Five sub-lines shared one coordinate and one
   delay, and two of them could be true at once — a bleed bit at the top of the
   round while the dodge count came from the answer — so they were painted on
   top of each other. */
/* ⛔⛔ AND THEY ARE READABLE (his, 2026-09-29, docs/375: *"those little texts that appear
   sometimes as floating are unreadable"*). They were 9px at 82% ink with a soft shadow, over a
   moving arena — and at 208px they floated THROUGH the thorns number (206px) and up into the
   blow's own row, so two things were painted on one spot. Now: 12px bold full ink on a dark
   plate of their own, on rows 24px apart, and below every number's row — the numbers rise from
   170 and 206 and the heal's from 250, so the words start at 292 and climb no higher than the
   float's own 46px. */
.hitsub { position: absolute; top: calc(292px + var(--n, 0) * 24px); z-index: 4; font-family: var(--sans); font-weight: 700;
  font-size: 12px; line-height: 16px; letter-spacing: .8px; color: var(--ink); text-shadow: 0 1px 2px #000;
  padding: 2px 8px; border-radius: 6px; background: rgba(13,11,12,.8); box-shadow: 0 0 0 1px rgba(228,224,216,.14);
  pointer-events: none; white-space: nowrap; animation: hitRise 1.6s cubic-bezier(.2,.7,.35,1) both; }
.hitsub.you { left: 16px; animation-delay: 1.16s; }
.hitsub.them { right: 16px; animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .hitsub { animation: none !important; opacity: 1; transform: none; } }

/* ── the monsters keep their rules now, and the screen says so (docs/275) ───
   A swing that finds nothing and a blow a rule turns aside both used to be a
   silent zero. They are words where the number would have been. */
/* .hitnum.word is styled with .dodge above — one word family, one look. */
/* a critical of THEIRS reads like one of yours, on your side of the arena */
.ex-tcrit .fighter.you .figure { animation: struckYou .42s ease 1.09s both, critFlash .3s ease-out 1.09s both; }

/* docs/276: when the last of them is down, its body stays where it fell — the
   death clip is held on its final frame (rig `hold`) and the skeleton greys.
   ⛔⛔ AND IT IS THE LOSER WHO GREYS, NOT ALWAYS THE OPPONENT (his report,
   2026-09-18: *"When u die, opponent gets gray and not you."*). This was stated
   over `.them` alone, which is right for every fight he won and backwards for
   every one he lost — the body still standing faded and the corpse kept its
   colour. `screenFight` tags the view `won` or `lost` off the fight's own flag. */
/* ⛔ docs/375: NOT A STATIC RULE ANY MORE — it landed with the killing blow, before the body had
   fallen (*"Dead enemy become gray too early"*). `mfGreyFallen` in app.js fades the same grey
   (grayscale(1) brightness(.7), opacity .6, the shadow to .3) in once the death clip has played. */

/* ⛔ `transparent` IS HIS WORD FOR THREE OF HIS BODIES (his report, 2026-09-18:
   *"Evil spirit has player skin, and not transparent."*). His own sheet's `skin`
   column says it for the Evil Spirit, the Mummy and the Ice Spirit, and the
   builder had no branch for the value — so all three wore the ordinary foe body
   at full opacity.
   ⛔⛔ AND FADING THE FIGURE WAS NOT IT (his report the next day: *"Ice spirit
   doesnt have transparent skin."*). The same sheet answers it in its own
   `skin_notes`: *"transparent: the body is NOT drawn; only the armour is on
   screen"* — so 55% was neither, the flesh tone still there in the same places
   and his armour dimmed along with it. The BODY is dropped in `rig.js`
   (`bodyless`) and nothing here touches the figure's opacity any more.
   ⚠️ The shadow stays soft: a thing with no body still stands somewhere, and a
   full-strength shadow under floating armour reads as a missing texture. */
.fighter.ghostly .shadow { opacity: .35; }

/* ── THE EFFECT CHIPS AND THEIR CARD (his board, 417:360 / 417:465) ─────────
   docs/276. The chips were an HTML `title=` before, which is a hover and is
   unreachable with a thumb. A tap opens a card under that chip's own column,
   sized and placed off his frame: 14 in from the side, 156 from the top,
   178 wide there and 156 here, because the board is 412 and the phone is 390. */
/* ⛔⛔ AND THE ROWS WRAP RATHER THAN FOLDING ANYTHING AWAY (his instruction,
   2026-09-17, `docs/337`: *"When an entity has more skills, the skills should
   start occupying the second row and so on, it can cover entity, even fully, its
   okay."*). `docs/322` capped each row at four and put the rest behind one
   invented chip; he has rejected that.
   ⚠ The WIDTH is shipped inline by `fxRowWidth()` so it cannot be a second copy
   of `FX_PER_ROW` here (trap #4), and `align-content` keeps the rows stacked from
   the top rather than spread. */
/* ⚠ THE GUTTER AND THE ROW PITCH ARE HIS: chips 38.5 apart across (35 + 3.5)
   and 40 down (35 + 5), read off `Effects you` on the frame he made. */
.fxrow { position: absolute; top: 124px; display: flex; flex-wrap: wrap;
  align-content: flex-start; gap: 5px 3.5px; z-index: 3; }
.fxrow.you { left: 14px; }
.fxrow.them { right: 14px; flex-direction: row-reverse; }
/* ⛔ WHOSE ROW THIS IS, WHEN IT IS NOT THE BODY IN FRONT OF YOU (his report,
   2026-09-18). It sits in the band between their health plate and the first row
   of chips, on their side, and it is also the way back: 44px of tappable height
   around a 12px line, which is the root contract's floor on the AREA and not on
   the ink. ⚠️ It is not drawn at all while you are reading the direct enemy —
   a caption that is always there is furniture, and this row is his default. */
.fxwho { position: absolute; top: 96px; right: 14px; z-index: 4;
  display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px;
  border: 1px solid rgba(168,45,58,.5); border-radius: 7px; background: rgba(20,17,18,.72);
  font-family: var(--mono); font-size: 9px; letter-spacing: .8px; color: #e7d8bd; cursor: pointer; }
.fxwho::before { content: ''; position: absolute; inset: -9px -8px; }
.fxwho i { display: block; width: 9px; height: 9px; opacity: .8;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 1.4px no-repeat,
              linear-gradient(currentColor, currentColor) 50% 50% / 1.4px 100% no-repeat;
  transform: rotate(45deg); }
.plate.fx { padding: 0; background: rgba(20,17,18,.55); cursor: pointer; }
.plate.fx.on { box-shadow: 0 0 0 3px var(--gold); }
/* ⭐ HOW MANY OF IT YOU ARE CARRYING, ON THE ICON (his report, 2026-09-27,
   docs/356: *"you get hit 10 times by bear and gather 20 bleedings overall - it
   should display on icon in fight"*). Bottom-right, where World of Warcraft's aura
   frames and League of Legends' buff bar put a stack count, and in the game's own
   count pill — the `.plate .qty` every bottle plate wears — so it is not a
   second language. Ink, never red: red is HP's.
   ⚠️ The node is always there and EMPTY below two (`paintStacks` writes it on the
   beat), so a hidden one takes no room and a count that arrives has a home. */
.plate.fx .fxn { position: absolute; right: -4px; bottom: -4px; min-width: 15px; height: 14px;
  padding: 0 3px; border-radius: 5px 0 8px 0; background: rgba(25,22,23,.95);
  border: 1px solid rgba(208,178,122,.6); color: #f3ead7; font-style: normal;
  font-family: var(--mono); font-weight: 700; font-size: 9px; line-height: 12px; text-align: center;
  pointer-events: none; display: none; }
.plate.fx .fxn.on { display: block; }
.fxrow.them .plate.fx .fxn { border-color: rgba(168,45,58,.7); }
/* a count that just changed says so — transform only (docs/77) */
.plate.fx .fxn.bump { animation: fxnBump .34s cubic-bezier(.2,.7,.35,1.4) both; }
@keyframes fxnBump { 0% { transform: scale(.6); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
.fxcard.them .plate.fx.on { box-shadow: 0 0 0 3px var(--hp); }
.fxcard { position: absolute; top: 156px; width: 156px; z-index: 6; padding: 10px 12px;
  border-radius: 8px; background: rgba(25,22,23,.96); border: 1px solid rgba(208,178,122,.45); }
.fxcard.you { left: 14px; }
.fxcard.them { right: 14px; border-color: rgba(168,45,58,.5); }
.fxcard .caret { position: absolute; top: -7px; width: 0; height: 0; margin-left: -7px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(208,178,122,.45); }
.fxcard.them .caret { margin-left: 0; margin-right: -7px; border-bottom-color: rgba(168,45,58,.5); }
.fxcard h4 { margin: 0 0 6px; font-family: var(--sans); font-weight: 600; font-size: 9px;
  letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; }
.fxcard.them h4 { color: var(--hp); }
.fxcard p { margin: 0; font-family: var(--mono); font-size: 9.5px; line-height: 1.45; color: rgba(228,224,216,.8); }
.fxcard small { display: block; margin-top: 8px; font-family: var(--sans); font-weight: 600; font-size: 7px;
  letter-spacing: .9px; color: var(--faint); text-transform: uppercase; }

/* ── a chest's odds, printed on the chest (docs/286) ─────────────────────── */
/* ⚠ THE CHEST GIVES THE ROOM UP. A 350px vault and sixteen rows of odds do not
   both fit above the key at 390x844, and the first cut showed ONE row with the
   other fifteen scrolled out of sight — which is worse than not printing them.
   A shut chest is 230px; it goes back to 350 the moment it has something to
   show, which is when the picture is the point. */
/* both stand on the same line, so the plate does not lurch when the lid opens */
.vault.shut .chest { bottom: 44px; }
.vault.given .chest { bottom: 38px; }

/* ⭐ PB AND SOULS ARE LOOT, NOT A CAPTION (his instruction). Everything a chest
   pays is one cell with one picture; ten openings collapse into the same grid
   with a count on each, which is the only way ten results can be READ. */
/* ⚠️⚠️ NOT `.loot`. That name is ALREADY TAKEN TWICE in this sheet — a flex row
   of icons at :505 and the fight's full-screen loot window at :729, which is
   `position:absolute; inset:0`. The chest's grid took the window's box and drew
   itself over the chest, at the top of the screen, with nothing in the console.
   One painter, or the last writer wins (root CLAUDE.md trap 3). */
/* ⭐ THE LOOT BAND IS THE TOP OF THE PLATE. Same height whatever came out — one
   thing or ten — so the chest underneath never moves and the eye has one place
   to look. 129px is his own number, measured off the single cell he sized in
   the Figma twin. */
.chestloot { position: absolute; left: 0; right: 0; top: 12px; height: 129px; z-index: 2;
  display: grid; place-items: center; }
/* ⛔ FIVE ACROSS, BECAUSE TEN OPENINGS CAN PAY TEN DIFFERENT THINGS and the
   screen must not scroll (root CLAUDE.md). One row per opening is the rule
   (docs/286), so ten is the ceiling, and 5x2 is the only shape that holds it
   above the keys at 390x844. */
.lootgrid { display: grid; grid-template-columns: repeat(5, 64px); gap: 7px; }
/* one or two things came out: they get the room, not a quarter of it */
/* ⭐ ONE THING CAME OUT, SO ONE THING RISES. This is the part he asked to make
   SLOWER — "the part where icon emerges and rotates" — and it is the same
   `prizeFly` the card used to play, moved onto the cell so that a chest paying
   PB gets the same moment as a chest paying a sword. */
.lootgrid.n1 { grid-template-columns: 144px; justify-items: center; }
.lootgrid.n1 .lootcell { width: 144px; height: 129px; padding: 12px 8px 10px;
  grid-template-rows: 1fr auto; gap: 4px;
  animation: prizeFly 1.85s cubic-bezier(.3,.7,.3,1) both; }
.lootgrid.n1 .lootcell img { width: 88px; height: 88px; }
.lootgrid.n1 .lootcell span { display: block; font-size: 11px; letter-spacing: 1.1px; }
.lootgrid.n1 .lootcell .qty { right: 8px; top: 8px; font-size: 13px; padding: 2px 8px; }
/* 2-4 things: the same 64px cells, just fewer of them, so every batch reads the
   same way. Only ONE thing gets the big treatment. */
.lootgrid.n2 { grid-template-columns: repeat(2, 64px); }
.lootgrid.n3 { grid-template-columns: repeat(3, 64px); }
.lootgrid.n4 { grid-template-columns: repeat(4, 64px); }
/* ⚠ HE TOOK THE PLATE'S FILL DOWN so the cell reads as a thing in the air rather
   than a card stuck to the screen. Ten of them, five across, two rows, and
   NO NAMES — his instruction: the name "takes space", and the grid has to fit
   the same 129px the single one does. */
.lootcell { position: relative; height: 61px; padding: 4px 3px; border-radius: 10px;
  background: rgba(34,30,31,.62); border: 1.5px solid rgba(228,224,216,.18);
  display: grid; place-items: center;
  animation: lootIn .34s cubic-bezier(.3,.8,.35,1) both; }
.lootcell img { width: 46px; height: 46px; }
.lootgrid .lootcell:nth-child(2) { animation-delay: .04s; }
.lootgrid .lootcell:nth-child(3) { animation-delay: .08s; }
.lootgrid .lootcell:nth-child(4) { animation-delay: .12s; }
.lootgrid .lootcell:nth-child(5) { animation-delay: .16s; }
.lootgrid .lootcell:nth-child(n+6) { animation-delay: .20s; }
.lootcell img { width: 36px; height: 36px; object-fit: contain; }
.lootcell img.px { image-rendering: pixelated; }
.lootcell span { display: none; font-family: var(--sans); font-weight: 600; font-size: 8px;
  letter-spacing: .9px; text-transform: uppercase; text-align: center; line-height: 1.15;
  max-width: 100%; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lootcell .qty { position: absolute; right: 4px; top: 4px; padding: 1px 5px; border-radius: 8px;
  background: rgba(12,10,11,.85); border: 1px solid var(--gold); font-family: var(--mono);
  font-style: normal; font-size: 10px; color: var(--gold); }
/* ⭐ the batch rises out of the chest too, just faster and in a stagger — a 14px
   nudge read as a card fading in, not as ten things coming out of a box. */
@keyframes lootIn { from { opacity: 0; transform: translateY(96px) scale(.72); } to { opacity: 1; transform: none; } }

/* how many you hold, beside the name */
.head .aside .havechest { display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 17px; color: var(--gold); }
.head .aside .havechest img { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.head .aside .havechest.none { color: var(--dim); opacity: .6; }

/* his info symbol, and the sheet it opens */
/* ⭐ THE INFO SYMBOL SITS ON THE NAME, NOT UNDER THE CHEST (his instruction, and
   he moved it there himself). A 44px-wide bar across the screen was reading as
   a second action next to OPEN; a 14px mark after the title reads as a footnote,
   which is what it is. ⚠ The TAP area is still 44px — the painted mark is small,
   the target is not (root CLAUDE.md). */
.oddsbtn { position: relative; display: inline-grid; place-items: center;
  width: 16px; height: 16px; vertical-align: 6px; margin-left: 9px; background: none; border: 0; }
.oddsbtn::after { content: ''; position: absolute; inset: -14px; }
.oddsbtn img { width: 14px; height: 14px; object-fit: contain; opacity: .55; }
.oddsbtn span { display: none; }
.oddssheet { position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 40;
  background: rgba(8,7,8,.94); padding: 104px 20px 24px; overflow-y: auto;
  animation: oddsIn .18s ease both; }
.oddshead { margin-bottom: 14px; text-align: center; }
.oddshead b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.oddshead span { display: block; margin-top: 4px; font-family: var(--sans); font-weight: 600;
  font-size: 8px; letter-spacing: 1.4px; color: var(--dim); text-transform: uppercase; }
.oddssheet .odds { margin-top: 0; gap: 2px 14px; }
.oddssheet .oddrow { min-height: 26px; font-size: 12px; color: rgba(228,224,216,.78); }
.oddssheet .oddrow b { font-size: 12px; min-width: 32px; }
@keyframes oddsIn { from { opacity: 0; } to { opacity: 1; } }

/* OPEN x1 and OPEN x10, side by side (his instruction) */
.chestkeys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 300px; }
.chestkeys .key { width: 100%; height: 68px; font-size: 19px; letter-spacing: .6px; }
.odds { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.oddrow { display: flex; align-items: baseline; gap: 6px; min-width: 0; min-height: 17px;
  font-size: 10.5px; letter-spacing: .2px; color: rgba(228,224,216,.62); }
.oddrow b { font-family: var(--mono); font-size: 10.5px; min-width: 26px; text-align: right; flex: none; }
/* ⚠ A flex child will not shrink below its content without this, so the
   ellipsis never fires and the text runs off the right-hand edge instead. */
.oddrow span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── carrying an icon, and the press that answers on contact (docs/300) ───── */

/* The carried icon lives OUTSIDE #app, because render() replaces #app's whole
   innerHTML and would destroy it mid-gesture (the same reason #fx is a sibling,
   docs/278). It is never in the way: nothing here takes a pointer. */
#drag { position: fixed; inset: 0; z-index: 58; pointer-events: none; }
#drag .drag-ghost { position: absolute; will-change: transform; transform-origin: 50% 50%;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }
/* the carried thing is a CLONE of the icon (touch.js), so it arrives wearing
   its own class and its own rules; all this has to do is make it fill the
   box the gesture measured off the original. */
#drag .drag-ghost > * { width: 100%; height: 100%; margin: 0; }
#drag .drag-ghost .tile { width: 100%; height: 100%; }

/* ⛔⛔ `none`, AND IT HAS TO BE. `pan-y` looks like the considerate choice — the
   page keeps vertical scrolling, a sideways nudge lifts the icon — and it does
   not work: the browser claims the gesture and fires POINTERCANCEL on the first
   few pixels, before any direction is decided, so the carry dies and the press
   below it fires as a tap instead. Nothing in the console says a word.
   ⚠️ The cost is that a list cannot be scrolled by dragging from a tile; both
   screens that carry are built not to scroll (docs/293), and the gaps around the
   grid still pan. */
[data-drag] { touch-action: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
/* ⛔⛔ NOTHING IN THIS GAME IS TEXT YOU SELECT (his report, 2026-09-17, docs/326:
   "Sometimes when i tap on skill in fight to see info, it start to mark text for
   some reason"). A press held for a moment -- which is what reading a skill IS,
   since the card opens on a hold -- puts the browser's own selection handles and
   the blue wash over the fight, and on Android they stay up until he taps
   somewhere else. The gesture the client wants and the gesture the browser
   invents are the same press, so the browser's has to be refused outright.
   ⚠️ INPUTS ARE THE EXCEPTION, and they are named rather than the rule being
   scattered: the only typing in this game is the name and title box, and a field
   you cannot select text in is a field you cannot correct a typo in. */
#app, #fx, #drag, .tip, .fxcard { -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; }
#app input, #app textarea, #app [contenteditable] {
  -webkit-user-select: text; user-select: text; }
[data-drag] img, #drag .drag-ghost img { -webkit-user-drag: none; pointer-events: none; }
[data-drag].dragging { opacity: .26; }
[data-drag].dragging .tile { box-shadow: none; }

/* ⭐ THE SLOT OPENS BEFORE THE ICON ARRIVES. `--near` is a continuous 0..1 of
   distance written by touch.js every frame, never a class flipped at a
   threshold: by the time the thumb decides, the slot is already open. */
[data-drop] { --near: 0; }
[data-drop].near { transform: scale(calc(1 + var(--near) * .05)); }
.plate[data-drop].near { box-shadow: 0 0 0 calc(var(--near) * 3px) rgba(208,178,122,.45); }
.plate[data-drop].over { border-color: var(--gold); }
.bag5[data-drop].near { box-shadow: inset 0 0 0 calc(var(--near) * 2px) rgba(208,178,122,.3); border-radius: 12px; }
/* the contact: both compress, once, and it is over in a quarter of a second */
[data-drop].landed { animation: pf2-land 240ms cubic-bezier(.2,.8,.2,1); }
@keyframes pf2-land {
  0% { transform: scale(1.06); }
  40% { transform: scale(.94); }
  100% { transform: scale(1); }
}

/* ⭐ EVERY "GO BACK" ANSWERS ON CONTACT (his instruction, 2026-09-14: *"all 'go
   back' should behave like ... REFINED"*). Compression within the frame the
   finger lands, a spring back THROUGH rest on release, and nothing at all when
   the release happens off the key. */
[data-back], [data-go], [data-press] { transition: transform 70ms cubic-bezier(.2,.8,.2,1); }
[data-back].pressing, [data-press].pressing { transform: scale(.9) translateY(1px); }
/* ⚠️ A BIG THING SCALES LESS. The same 10% that reads as a firm click on a 44px
   icon reads as a toy on an 84px door, so a place presses by 4%. */
[data-go].pressing { transform: scale(.955) translateY(1px); }
[data-back].rebound, [data-press].rebound { animation: pf2-rebound 220ms cubic-bezier(.2,.8,.2,1); }
[data-go].rebound { animation: pf2-rebound-soft 200ms cubic-bezier(.2,.8,.2,1); }
@keyframes pf2-rebound-soft {
  0% { transform: scale(.955); }
  55% { transform: scale(1.018); }
  100% { transform: scale(1); }
}
@keyframes pf2-rebound {
  0% { transform: scale(.9); }
  55% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

/* ⛔ AND THE BOTTOM BAR IS OUT OF IT (his instruction, 2026-09-14). touch.js
   never adds the classes to a tab; this refuses them anyway, because a rule kept
   in one place is a rule the second place will miss. */
.nav button, .nav button.pressing, .nav button.rebound {
  transform: none; animation: none; transition: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-drop].near, [data-drop].landed { transform: none; animation: none; }
  [data-back].rebound, [data-press].rebound, [data-go].rebound { animation: none; }
}

/* ── an icon is an OBJECT, not a picture (docs/301) ───────────────────────── */
/* Owner, 2026-09-14: "all icons should have some nicer background, for them to
   not be so easily mistakenable for something non-clickable. each icon should
   'feel' like a button, like a seperate object which you can interact with."

   ⭐ Three pixels of edge do the whole job (the depth switch from the
   laboratory): a light from above across the face, a dark lip along the bottom,
   and a contact shadow under it. The rarity border is untouched — it is still
   the only thing saying what tier a thing is. */
.tile:not(.empty), .plate:not(.empty), .lplate:not(.empty), .ico:not(.empty),
.keyq, .havechest:not(.none) {
  background-image: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,0) 42%, rgba(0,0,0,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.34),
              0 2px 3px rgba(0,0,0,.34);
  transition: transform 70ms cubic-bezier(.2,.8,.2,1), box-shadow 90ms linear;
}
/* ⚠️ The lit plate keeps its gold ring: a rule that only ADDS a shadow would
   have been overwritten by the one above, which is trap 3 in one line. */
.tile.lit:not(.empty) {
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(208,178,122,.35),
              inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.34);
}
/* an empty socket is the opposite object: it sits BELOW the surface */
.tile.empty, .plate.empty, .lplate.empty {
  background-image: linear-gradient(rgba(0,0,0,.22), rgba(255,255,255,.03));
  box-shadow: inset 0 2px 3px rgba(0,0,0,.4);
}
/* the press: the face goes down onto its own lip, which thins as it lands */
.tile.pressing:not(.empty), .plate.pressing:not(.empty), .lplate.pressing:not(.empty),
.ico.pressing:not(.empty), .keyq.pressing, .havechest.pressing {
  transform: translateY(2px) scale(.97);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.3),
              0 1px 1px rgba(0,0,0,.3);
}
.tile.rebound:not(.empty), .plate.rebound:not(.empty), .lplate.rebound:not(.empty),
.ico.rebound:not(.empty), .keyq.rebound, .havechest.rebound {
  animation: pf2-rebound-soft 200ms cubic-bezier(.2,.8,.2,1);
}

/* ── the queue: PLAY looks for someone before it moves you (docs/301) ─────── */
.qwrap { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; }
.qdim { position: absolute; inset: 0; background: rgba(13,11,12,.72);
  animation: pf2-qdim 220ms ease-out both; }
@keyframes pf2-qdim { from { opacity: 0; } to { opacity: 1; } }
.qcard {
  position: relative; width: 268px; padding: 22px 18px 18px;
  border-radius: 18px; text-align: center;
  background: linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.2)), var(--card);
  border: 1px solid rgba(208,178,122,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 40px rgba(0,0,0,.6);
  animation: pf2-qin 260ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes pf2-qin {
  from { transform: translateY(10px) scale(.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.qcard h3 { margin: 14px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: .4px; }
.qcard p { margin: 0; font-size: 12px; color: var(--dim); }
.qdots { margin: 0 auto; }
/* found: the ring stops turning and the card takes the colour of a commitment */
.qcard.found { border-color: var(--gold); }
.qcard.found .qdots { animation-play-state: paused; opacity: .35; }
.qcard.found h3 { color: var(--gold); }
/* walking into a place: committed like `found`, but the ring keeps turning —
   the wait is real, there is simply nobody being looked for (2026-09-14) */
.qcard.enter { border-color: var(--gold); }
.qcard.enter h3 { color: var(--gold); font-size: 17px; letter-spacing: .8px; }
/* ⚠️ Its own line: inline-flex put the cost beside CANCEL and the button ate it. */
.qcost { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 13px; color: var(--stam); opacity: .9; }
.qcost img { width: 16px; height: 16px; }
.qcancel { margin-top: 14px; min-width: 120px; }
/* ⭐ HIS BUTTON, AND ITS CLOCK IS ON IT (docs/306). It is the gold key on this
   card — the way through — and the cancel below it stays the quiet one. */
.qbot { margin-top: 14px; min-width: 168px; position: relative;
  background: var(--gold); color: #292526; border-color: var(--gold); }
.qbot i { font-style: normal; margin-left: 8px; font-family: var(--mono); font-size: 11px; opacity: .8; }
.qbot[disabled] { background: rgba(208,178,122,.22); color: rgba(228,224,216,.55); border-color: rgba(208,178,122,.4); }
.qbot + .qcancel { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .qcard, .qdim { animation: none; }
}

/* ── a relic changing level: the cabinet RE-LIGHTS ITS CASE now (docs/364, docs/368); the
   burst that lived here (docs/301) went with the old relic screen ───────────────── */
.infotop .tile { position: relative; overflow: visible; }

/* ── changing your name and your title (docs/302) ─────────────────────────── */
/* ⭐ The pencil sits ON the thing it edits, at the right of it, which is where
   he asked for it — never a row somewhere else that says "edit profile". */
.pname, .ptitle { display: flex; align-items: center; gap: 8px; }
.pencil {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 9px; color: var(--gold);
  background: linear-gradient(rgba(255,255,255,.07), rgba(0,0,0,.18)), var(--card);
  border: 1px solid rgba(208,178,122,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.34);
}
.pencil.small { width: 26px; height: 26px; border-radius: 7px; color: var(--dim); }
.pencil.pressing { transform: translateY(2px) scale(.94); }
.qcard.edit { width: 296px; }
.einput {
  width: 100%; margin-top: 14px; height: 46px; padding: 0 12px;
  border-radius: 10px; border: 1px solid rgba(208,178,122,.4);
  background: var(--plate); color: var(--ink);
  font-family: var(--serif); font-size: 19px; text-align: center;
}
.einput:focus { outline: none; border-color: var(--gold); }
.eerr { margin-top: 8px !important; color: var(--mythic) !important; font-size: 11.5px !important; }
.erow { display: flex; gap: 8px; margin-top: 14px; }
.erow .key-sm { flex: 1 1 0; }
.erow .key-sm.gold { background: var(--gold); color: #1b1819; border-color: var(--gold); font-weight: 700; }
/* ⭐ docs/399: the title is picked from the ones achievements gave — a list in the card, which scrolls
   inside itself (the card is a fixed size on the phone; nothing under it moves) */
.qcard.titles { width: 320px; padding: 18px 14px 14px; }
.qcard.titles h3 { margin-top: 2px; }
.tlist { margin-top: 12px; max-height: min(470px, 58vh); overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 6px;
  padding: 2px 2px 4px; text-align: left; scrollbar-width: none; }
.tlist::-webkit-scrollbar { display: none; }
.trow { position: relative; display: grid; gap: 2px; min-height: 48px; padding: 8px 12px 8px 26px; border-radius: 10px; font: inherit; color: var(--ink);
  text-align: left; background: rgba(255,255,255,.04); border: 1px solid rgba(208,178,122,.22); }
.trow b { font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.15; }
.trow small { font: 600 8.5px var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.trow .tdot { position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--tc, #5a5355); }
.trow:not(:has(.tdot)) { padding-left: 12px; }
.trow.have:active { transform: scale(.98); }
.trow.on { border-color: var(--gold); background: rgba(208,178,122,.12); }
.trow.on small { color: var(--gold); }
.trow.locked { opacity: .42; }
.trow.locked .tdot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tc, #5a5355); }
.tsep { margin: 8px 2px 0; font: 700 9px var(--sans); letter-spacing: 1.6px; color: var(--dim); }

/* ── the gate window holds the same space whatever stands in it ───────────
   His instruction, 2026-09-16: *"loot in instance info should be separate from
   monster list, monster window should always occupie the same space, no matter
   how many different monsters are at the same gate."*

   A gate holds between one and ELEVEN different names, so the list used to push
   LOOT off the bottom of the phone on the big gates and leave it halfway up on
   the small ones. The body is a COLUMN: the pager and the loot are pinned to its
   two ends and the list takes everything between them, scrolling inside itself.
   ⚠️ Not a fixed pixel height — that would be right for one phone. The space it
   holds is the SCREEN's, so it is the same on every gate of every place. */
.body.runbody { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; }
.body.runbody > * { flex: 0 0 auto; }
.body.runbody .foeswin {
  flex: 1 1 auto; min-height: 0; margin-bottom: 14px;
  display: grid; grid-template-rows: auto minmax(0, 1fr);
}
.body.runbody .foeslist { overflow-y: auto; scrollbar-width: none; min-height: 0; }
.body.runbody .foeslist::-webkit-scrollbar { display: none; }
.body.runbody .loot-win { margin-bottom: 0; }
.window h3 i.sep { opacity: .55; }

/* ── "you have something better in the bag" ───────────────────────────────
   His instruction, 2026-09-16: *"if i have item of higher rarity that i can
   equip, gear should glow a little periodically slowly."*

   ⛔ OPACITY ONLY, on a pseudo-element that is already painted (root contract:
   never per-frame work). A tween on `box-shadow` repaints the element every
   frame for as long as the screen is open. ⚠️ And it is mostly OFF: the bloom is
   a sixth of a six-second cycle, which is what "a little, periodically, slowly"
   is. Gold, because red is the health colour and nothing else may use it. */
.glowup { position: relative; }
.glowup::after {
  content: ''; position: absolute; inset: -3px; border-radius: inherit;
  pointer-events: none; opacity: 0;
  box-shadow: 0 0 14px 3px rgba(208,178,122,.55), inset 0 0 10px rgba(208,178,122,.30);
  animation: pf2-glowup 6s ease-in-out infinite;
}
.nav button.glowup::after { inset: 6px 8px; border-radius: 12px; }
.slot.glowup::after { inset: -2px; border-radius: 14px; }
/* ⭐ AND THE SLOT WEARS A MARK, not only a glow (his words, docs/328: "there
   should be notification mark next to the slot where you have an equipment item
   of better rarity possible to equip"). A glow is atmosphere; a mark is a thing
   you can point at, and this game already has one -- the hamburger's `.ping`.
   It sits at the slot's top-right corner, outside the tile. */
.slot { position: relative; }
.slot .ping { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(20,17,18,.85);
  pointer-events: none; }
/* ⛔⛔ THE BLOOM HAS TO BE REACHABLE (his report, 2026-09-17, docs/328: the gear
   symbol "should glow slowly periodically" -- it already did, and he never saw
   it). The bloom was at 80% of a six-second cycle, so the first 3.72s of every
   run is a flat zero -- and `render()` replaces #app, which restarts the
   animation from 0%. On the gear and hub screens something renders often enough
   that the cycle rarely reached 62%, let alone 80%: a glow that is real, shipped,
   and effectively invisible.
   ⭐ The bloom is near the FRONT now, so it is seen ~0.84s after the node exists
   and again every six seconds. Still slow, still periodic, still opacity-only
   (docs/77), same class and same reduced-motion pin. */
@keyframes pf2-glowup {
  0%        { opacity: 0; }
  14%       { opacity: 1; }
  36%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  /* ⛔ docs/276: stillness pins it at a visible value, it never gates the thing
     being there at all — a player who turned motion off still has to be told. */
  .glowup::after { animation: none; opacity: .55; }
}

/* ── the hamburger says when something behind it is waiting ───────────────
   His instruction, 2026-09-16: *"hamburger on hub should get notification if
   some of the stuff inside also gets notification."* One dot, derived from the
   very rows the menu draws — `menuNotes()` is the only place that decides, so
   the door and what is behind it cannot disagree (root trap #4). */
.topdoors button .ping, .menu button .ping {
  position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 2px var(--plate), 0 0 7px rgba(208,178,122,.8);
}
.menu button .ping { position: static; margin-left: 6px; }

/* ══ THE HUB AND GEAR SCREENS AS HE LAID THEM OUT (docs/347) ═══════════════════
   Ported from `Playfair Rivals Final` (screens 02-05 and 06), in the board's own
   numbers: every px below is measured off the 412x891 frame. ⛔ Scoped to
   `.strip.v2`, `.key.bone`, `.multi.bone`, `.hub-art.v2`, `.hub-figure.v2` and
   `.gear2`, because the other twenty-one screens keep the old furniture until he
   says otherwise (*"change only things that we changed now"*). */

/* ── the header: level medallion with the XP ring, nameplate, currencies, doors ── */
.strip.v2 { top: 46px; height: 80px; display: flex; align-items: flex-start; padding: 1px 11px 0 13px;
  pointer-events: none; }
.strip.v2 > * { pointer-events: auto; }
/* ⛔ docs/399, his: *"Energy bar further from name so it doesnt overlap."* 16px, of which the energy pill's
   socket (left -4px) takes four: 12px of clear air between the nameplate and the socket on every phone */
.strip.v2 .ident { position: relative; left: auto; top: auto; width: auto; height: 42px; flex: 0 1 auto; min-width: 0;
  margin-right: 16px; display: block; background: none; border: 0; border-radius: 0; overflow: visible; }
/* an <i> is italic by default and the name sits inside one */
.strip.v2 .ident i, .strip.v2 .ident em { font-style: normal; }
.strip.v2 .medal { position: absolute; left: 0; top: 0; width: 42px; height: 42px; z-index: 2; }
/* 1.5px of ink round the ring and a 2px lip under it, the same object language as
   the bone key (both are Figma strokes-outside + a hard drop shadow) */
.strip.v2 .xpring { position: absolute; inset: 0; border-radius: 50%; background: var(--slot);
  box-shadow: 0 0 0 1.5px #191617, 0 2px 0 1.5px #191617, 0 4px 10px 1.5px rgba(0,0,0,.45); }
.strip.v2 .xpring > i { position: absolute; inset: 0; }
.strip.v2 .xpring .xr { clip-path: inset(0 0 0 50%); }
.strip.v2 .xpring .xl { clip-path: inset(0 50% 0 0); }
.strip.v2 .ident .xpring b { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none;
  border-radius: 50%; font-size: 0; transition: transform .6s ease; }
.strip.v2 .ident .xpring .xr b { background: linear-gradient(90deg, var(--wine) 50%, rgba(0,0,0,0) 50%); }
.strip.v2 .ident .xpring .xl b { background: linear-gradient(90deg, rgba(0,0,0,0) 50%, var(--wine) 50%); }
.strip.v2 .lvcore { position: absolute; left: 4.5px; top: 4.5px; width: 33px; height: 33px; border-radius: 50%;
  background: #191617; box-shadow: inset 0 2px 3px rgba(0,0,0,.55); }
/* the trailing letter-space is paid back on the left, so the ink is centred */
.strip.v2 .lvcore small { position: absolute; left: 0; right: 0; top: 3px; height: 9px; line-height: 9px;
  text-align: center; font-family: var(--sans); font-weight: 700; font-size: 7px; letter-spacing: 1.2px;
  padding-left: 1.2px; color: var(--gold); }
.strip.v2 .lvcore strong { position: absolute; left: 0; right: 0; top: 9.5px; height: 20px; line-height: 20px;
  text-align: center; font-family: 'Spline Sans', var(--sans); font-weight: 700; font-size: 18px; color: var(--ink); }
.strip.v2 .ident .lvpct { position: absolute; left: 50%; top: 35px; width: 32px; margin-left: -16px; height: 12px;
  line-height: 12px; text-align: center; font-style: normal; font-family: 'Spline Sans', var(--sans);
  font-weight: 700; font-size: 10px; letter-spacing: 0; color: var(--ink); text-shadow: 0 1px 0 #191617; }
/* ⚠️ docs/399: the floor is the room LEFT after the plate's own 18px margin — `100%` alone let a 141px
   plate stick 17px out of a shrunk ident, under the energy pill (a 360px phone, a long name) */
.strip.v2 .npl { position: relative; display: block; margin: 3px 0 0 18px; height: 36px; min-width: min(141px, calc(100% - 18px));
  padding: 0 14px 0 31px; border-radius: 10px; text-align: left;
  background: linear-gradient(180deg, rgba(34,30,31,.94), rgba(25,22,23,.94));
  box-shadow: 0 0 0 1.5px #191617, 0 2px 0 1.5px #191617, 0 4px 10px 1.5px rgba(0,0,0,.45); }
.strip.v2 .npl::after { content: ''; position: absolute; inset: 2px; border-radius: 8px;
  border: 1px solid rgba(228,224,216,.28); pointer-events: none; }
.strip.v2 .ident b.nm { position: static; display: block; margin-top: -1px; height: 24px; line-height: 24px;
  font-size: 20px; max-width: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip.v2 .npl .tt { display: block; margin-top: 1px; height: 9px; line-height: 9px; font-style: normal;
  font-family: var(--sans); font-weight: 600; font-size: 8.5px; letter-spacing: 1.2px; color: var(--gold);
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* docs/358 · A NEW TITLE IS ENGRAVED INTO THE NAMEPLATE (his pick `rew2-title-engrave`, in
   81_rewards_more.js). app.js `engravePlate` draws it for one span after the title changes:
   every beat is `--eg` (minus its age) plus its own delay, so a render in the middle carries
   on. Beats, the line's width and where each letter stands are read off the laid-out plain
   title by app.js (`engraveMeasure`), one copy; this sheet only says how a beat moves. The
   letters are placed where the plain title's glyphs are and the line keeps its width, so
   the plate does not change size when the cut starts or ends. The burin, the tip and the
   tag are the card's, halved to the plate's 8.5px title line. */
.strip.v2 .npl.eng .tt { position: relative; overflow: visible; }
.strip.v2 .npl.eng .el { position: absolute; top: 0; display: block; opacity: 0;
  animation: eng-lt .18s ease-out both; animation-delay: calc(var(--eg, 0ms) + var(--ld, 0ms)); }
@keyframes eng-lt { 0% { opacity: 0; transform: translateY(2px) scale(1.5); } 100% { opacity: 1; transform: none; } }
.strip.v2 .npl .eshw { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; pointer-events: none; }
.strip.v2 .npl .esh { position: absolute; left: 0; top: -14px; width: 100%; height: 64px; transform: translateX(-70%);
  background: linear-gradient(110deg, rgba(255,241,201,0) 42%, rgba(255,241,201,.26) 50%, rgba(255,241,201,0) 58%);
  animation: eng-sh .9s ease-in-out both; animation-delay: calc(var(--eg, 0ms) + var(--es, 0ms)); }
@keyframes eng-sh { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
.strip.v2 .npl .ebur { position: absolute; left: 28px; top: 15px; width: 7px; height: 17px; z-index: 3; opacity: 0; pointer-events: none;
  animation: eng-bur var(--eT, 1s) linear both; animation-delay: calc(var(--eg, 0ms) + var(--eb, 0ms)); }
@keyframes eng-bur { 0% { opacity: 0; transform: translate(-3px, -3px) rotate(35deg); } 6% { opacity: 1; transform: translate(0, 0) rotate(35deg); }
  94% { opacity: 1; transform: translate(var(--ew, 0px), 0) rotate(35deg); } 100% { opacity: 0; transform: translate(calc(var(--ew, 0px) + 4px), -4px) rotate(35deg); } }
.strip.v2 .npl .ebur::before { content: ''; position: absolute; left: 2px; top: 0; width: 3px; height: 11px; border-radius: 1px;
  background: linear-gradient(90deg, #6b4f22, #d0b27a 50%, #6b4f22); }
.strip.v2 .npl .ebur::after { content: ''; position: absolute; left: 1.5px; top: 10px; width: 4px; height: 6px;
  background: linear-gradient(90deg, #c7d2dc, #fff 50%, #9aa4ad); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.strip.v2 .npl .etip { position: absolute; left: -2.5px; top: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,241,201,.9), rgba(255,195,0,.3) 50%, rgba(255,195,0,0));
  animation: eng-tip .12s ease-in-out alternate both; animation-iteration-count: var(--eti, 14); animation-delay: calc(var(--eg, 0ms) + var(--eb, 0ms)); }
@keyframes eng-tip { from { opacity: 1; transform: scale(1); } to { opacity: .5; transform: scale(.7); } }
.strip.v2 .npl .esp { position: absolute; top: 30px; width: 2px; height: 2px; background: #FFC300; opacity: 0; z-index: 3; pointer-events: none;
  animation: eng-sp .35s ease-out forwards; animation-delay: calc(var(--eg, 0ms) + var(--ld, 0ms)); }
@keyframes eng-sp { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -10px)) scale(.4); } }
.strip.v2 .npl .etag { position: absolute; right: 8px; top: -8px; padding: 2px 5px; border-radius: 4px; background: #FFC300;
  font-family: var(--sans); font-weight: 700; font-size: 6.5px; line-height: 8px; letter-spacing: 1.4px; color: #191617;
  white-space: nowrap; box-shadow: 0 1.5px 0 #191617; transform-origin: 50% 0; opacity: 0; z-index: 4; pointer-events: none;
  animation: eng-tag 1.4s both, eng-out .4s forwards;
  animation-delay: calc(var(--eg, 0ms) + var(--et, 0ms)), calc(var(--eg, 0ms) + var(--eo, 0ms)); }
@keyframes eng-tag {
  0% { opacity: 0; transform: translateY(-7px) rotate(0deg); animation-timing-function: cubic-bezier(.3,1.4,.5,1); }
  21.43% { opacity: 1; transform: translateY(0) rotate(8deg); animation-timing-function: ease-in-out; }
  46.43% { opacity: 1; transform: translateY(0) rotate(-4deg); animation-timing-function: ease-in-out; }
  67.86% { opacity: 1; transform: translateY(0) rotate(2deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); } }
@keyframes eng-out { 0% { opacity: 1; } 100% { opacity: 0; } }
.strip.v2 .delta.xp { left: 26px; top: 30px; bottom: auto; }
/* the currencies ride the top row, right-anchored; the number is centred between
   the socket and the capsule's end */
.strip.v2 .wallet { position: relative; right: auto; top: auto; margin: 10px 0 0 auto; flex: none; gap: 10px; }
.strip.v2 .pill { height: 22px; min-width: 0; padding: 0 6px 0 26px; gap: 0; justify-content: center;
  border: 0; border-radius: 11px; background: rgba(25,22,23,.92); font-weight: 700; font-size: 11px;
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.22), 0 2px 0 #191617, 0 4px 10px rgba(0,0,0,.45); }
.strip.v2 .pill .sock { position: absolute; left: -4px; top: -1px; width: 24px; height: 24px; border-radius: 50%;
  background: #191617; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 1.5px 2px rgba(0,0,0,.5), 0 2px 0 #191617; }
.strip.v2 .pill .sock img { width: 14px; height: 14px; }
.strip.v2 .delta { right: 6px; top: 4px; }
/* the three doors sit under the currencies on the hub */
.strip.v2 .topdoors { right: 11px; top: 43px; gap: 6px; }
.strip.v2 .topdoors button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(25,22,23,.92);
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.3), 0 2px 0 #191617, 0 4px 10px rgba(0,0,0,.45); }
.strip.v2 .topdoors button::after { inset: -6px; }
.strip.v2 .topdoors img { width: 16px; height: 16px; }
.strip.v2 .topdoors button .ping { top: -1px; right: -1.5px; box-shadow: 0 0 0 1.5px #191617; }

/* ── the hub: his painting, the bigger fighter, the bone key ──────────────────── */
.hub-art.v2 { inset: 0; }
.hub-art.v2 img { position: absolute; left: 50%; top: 0; width: 457px; height: 812px; margin-left: -214.5px;
  object-fit: cover; image-rendering: auto; }
.hub-art.v2::after { display: none; }
/* the canvas grows with the body (data-fig 308 = the board's 1.58x) and stands
   where his feet stand: bottom 196 = 812 - (95 + 521) */
.hub-figure.v2 { width: 412px; height: 521px; bottom: 196px; }
/* ⭐ THE KEY IS THE DESIGN SYSTEM'S WHITE (his, docs/347: *"make sure white color of
   button is the same white color that we have in our design system"*): --ink,
   flat, with --plate for the ink. The bevels are edges, never a tint. */
.key.gold.bone { background: var(--ink); color: #191617; border: 2px solid #191617; padding-top: 10px;
  letter-spacing: 3px; text-indent: 3px; text-shadow: 0 1px 0 rgba(255,255,255,.5);
  box-shadow: 0 0 36px 3px rgba(228,224,216,.25), 0 14px 20px rgba(0,0,0,.55), 0 5px 0 #191617,
              inset 0 -6px 0 #b9b4ab, inset 0 3px 0 rgba(255,255,255,.6); }
.key.gold.bone:active { transform: translateY(4px);
  box-shadow: 0 0 30px 2px rgba(228,224,216,.2), 0 8px 14px rgba(0,0,0,.5), 0 1px 0 #191617,
              inset 0 -4px 0 #b9b4ab, inset 0 2px 0 rgba(255,255,255,.5); }
.key.gold.bone[disabled] { background: #8a857d; color: rgba(25,22,23,.72); text-shadow: none;
  box-shadow: 0 5px 0 #191617, inset 0 -6px 0 #6d6962, inset 0 3px 0 rgba(255,255,255,.22); }
.key.gold.bone[disabled]:active { transform: none; }
.key.gold.bone .mode { top: 46px; background: #191617; text-indent: 0;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.5); }
.key.gold.bone .mode b { color: var(--ink); text-shadow: none; }
.multi.bone { background: linear-gradient(180deg, rgba(34,30,31,.94), rgba(25,22,23,.94));
  border: 1px solid rgba(228,224,216,.45);
  box-shadow: 0 3px 10px rgba(0,0,0,.55), inset 0 1px 0 rgba(228,224,216,.16); }
.multi.bone .chev { background: #221e1f; border: 1.5px solid rgba(228,224,216,.7); }
.multi.bone .chev img { left: 11.5px; top: 11.5px; }
/* the multiplier sits on the plate's centre line (his, docs/347: "make sure x3
   multiplier text is centered properly") */
.multi.bone b { top: 0; bottom: 0; display: grid; place-items: center; line-height: 1;
  font-family: 'Spline Sans', var(--sans); font-weight: 700; font-size: 22px; color: var(--ink); }

/* ── gear: his four pictures, the slots, the frames, the stats ─────────────────── */
.gear2 .gscene { position: absolute; left: 50%; width: 412px; margin-left: -206px; display: block; pointer-events: none; }
.gear2 .gscene.back { top: calc(var(--gfig) - 31px); height: 724px; z-index: 0; }
.gear2 .gscene.bar { height: 45px; }
/* his second bar is the first one FLIPPED (its Figma transform is a vertical mirror at
   y 194), so it hangs from 149 to 194 under the top one: the pair frames the band */
.gear2 .gscene.bar.lo { top: 149px; transform: scaleY(-1); z-index: 1; }
.gear2 .gscene.top { top: 0; height: 148px; z-index: 4; }
.gear2 .gscene.bar.hi { top: 104px; z-index: 4; }
/* the fighter, 1.6x (data-fig 286), with his feet on the painted platform at 505 — 150px
   down, or higher on a phone too short for the doors under his feet (`--gfig`, docs/373) */
.gear2 .gear-fig { top: var(--gfig); width: 412px; height: 375px; }
/* ⚠️⚠️ THE BOARD IS 891 TALL AND HIS PHONE IS ABOUT 840. At the board's numbers the
   last row of slots would run 35px into the square stats on a real phone, so the
   columns rise and tighten by exactly the height that is missing — and at 891 and
   taller the deficit is zero and this is the board to the pixel. The second term of
   the min() is the column hung from the stats, which takes over on phones shorter
   than his (down to ~760 tall); 140 is the floor under the ornament bars. */
.gear2 { --gdef: clamp(0px, 891px - 100dvh, 200px); --ggap: clamp(4px, 12px - var(--gdef) * .12, 12px);
  --gslot: 94px; --gfoot: 38px; --gstat: 58px; --gdh: 86px; --gnh: 9px;
  /* ⭐ docs/373 · THE STAGE RISES ONLY BY WHAT THE DOORS NEED. The figure's canvas stands at
     150 and his feet at 150 + 366; under them go 4px, the arch of the doors' niches (--gnh),
     the doors (--gdh), 8px, and the stats.
     On his phone and taller that is room to spare and this is 150 exactly — the board. On a
     shorter one the figure AND his painting (.gscene.back, which is drawn 31px above it)
     rise together, so the feet stay on the plinth, down to 100 (the head clear of the band
     and its bar). ⚠️ `100%` is a token here: it resolves against the view at each use. */
  --gfig: clamp(100px, calc(100% - var(--gfoot) - var(--gstat) - 378px - var(--gnh) - var(--gdh)), 150px); }
/* ⚠️ AND BELOW ~750 TALL THE 140 FLOOR PUSHED THE LAST LABELS INTO THE STATS (measured
   2026-09-25: 13px at 360x740, 53px at 390x700 — his other phone). So 140 is where the
   column PREFERS to stop, and it rises past it — to 104, clear of the nameplate — only when
   hanging it from the stats demands it (the slots draw over his top picture now, see below). */
.gear2 .gear-col { gap: var(--ggap); top: max(104px, min(max(140px, calc(184px - var(--gdef) * .56)),
  calc(100% - var(--gfoot) - var(--gstat) - 8px - 4 * (var(--gslot) + var(--ggap)) - var(--gslot)))); }
.gear2 .gear-col.l { left: 17px; } .gear2 .gear-col.r { right: 17px; }
/* ⚠️ THE SLOTS DRAW OVER HIS TOP PICTURE (his, 2026-09-25: "the image on top is covering
   partially icons. make sure that icons are on top of that image in drawing order"). On a
   phone shorter than his the columns rise to their 140px floor, into the band (0-148) and
   the upper bar (104-149), which sit at z 4 — so the first row slid under them. z 5 is the
   header strip's: the strip comes later in the markup and never reaches y 140; the card (.tip)
   is 6 and stays above. */
.gear2 .gear-col { z-index: 5; }
.gear2 .slot { height: var(--gslot); }
/* a <button> centres its content vertically: pinned, the tile IS the board's row */
.gear2 .slot .tile { position: absolute; left: 0; top: 0; }
.gear2 .slot > span { top: calc(var(--gslot) - 20px); height: 20px; line-height: 20px; border-radius: 10px; background: #35302f;
  color: var(--ink); font-size: 12px; letter-spacing: .8px; padding-left: .8px; z-index: 3; }
/* his dot: bigger, yellower, no black ring (docs/347) */
.gear2 .slot .ping { top: -1px; right: 0; width: 12px; height: 12px; background: #ffc300; box-shadow: none; z-index: 4; }
.gear2 .slot .tile:not(.empty) { border: 0; background: none; box-shadow: none; overflow: visible; }
.gear2 .slot .tile:not(.empty) > img { position: relative; z-index: 2; }
.gear2 .slot .tile.pressing:not(.empty) { box-shadow: none; }
.gear2 .gear-foot { bottom: var(--gfoot); }
.stats.full .stat { position: relative; height: auto; aspect-ratio: 1 / 1; padding: 0; }
.stats.full .stat span { position: absolute; left: 0; right: 0; top: 7px; height: 10px; line-height: 10px;
  font-weight: 700; font-size: 7px; letter-spacing: .5px; padding-left: .5px; color: var(--ink); }
.stats.full .stat b { position: absolute; left: 0; right: 0; top: 19px; height: 32px; line-height: 32px; margin: 0;
  font-size: 32px; color: var(--ink); }
.stats.full .stat b.d3 { font-size: 24px; }
.stats.full .stat b.d4 { font-size: 19px; }
@media (max-height: 820px) {
  .gear2 { --gslot: 88px; --gfoot: 28px; --gstat: 50px; }
  .stats.full .stat { aspect-ratio: auto; height: 50px; }
  .stats.full .stat b { top: 16px; height: 30px; line-height: 30px; }
}
/* the shortest phones (app under ~730 tall): the tile is 80, so an 80 pitch still never overlaps
   one tile with the next — the name pill sits a little further up on its icon */
@media (max-height: 730px) { .gear2 { --gslot: 80px; } }

/* ── docs/373 · THE FORGE AND THE BOTTLES, SET INTO THE FRONT OF HIS PLINTH ─────────────────
   His, 2026-09-28: *"Move consumables and forge to the gear screen. Maybe under skeleton, over
   stats - be creative."* The hub's own two doors (app.js doorBtn: his ground, his symbol alive,
   his label), side by side under the figure's feet, either side of the red blade of the
   plinth's emblem: their grounds leave the blade's 20px showing between them. Where the room
   allows, they hang where his painting puts the plinth's front face (416px under the figure's
   canvas, just below the slab's lip); a taller stats row pushes them up to 8px above it, and a
   shorter phone lifts the whole stage (--gfig). The pair is two doors wide and never wider than
   the gap between the slot columns (17 + 80 on each side). */
.gear2 .gear-doors { position: absolute; left: 0; right: 0; margin-inline: auto; width: min(168px, calc(100% - 194px));
  height: var(--gdh); z-index: 3;
  top: min(calc(var(--gfig) + 416px), calc(100% - var(--gfoot) - var(--gstat) - 8px - var(--gdh))); }
.gear2 .gear-doors .door { top: 0; }
.gear2 .gear-doors .door.gd-l { left: 0; }
.gear2 .gear-doors .door.gd-r { right: 0; }
/* ⭐ SET INTO THE STONE, NOT LAID ON IT: behind each door an arched alcove is cut into the
   plinth's face — a Roman niche, dark inside, its lip throwing a shadow down onto the door
   and a warm light pooled on its sill. On the PAIR, not on the doors: the press (touch.js)
   moves a door, and a niche that moved with it would be a picture, not a place. Static paint,
   no symbol (the symbol is his, in the door), and behind the doors (z -1 in the pair's own
   stacking context). ::before is the forge's (the first two doors' ground at 10-74), ::after
   the bottles' (the last 74px of the pair, whose right edge is the right door's). */
.gear2 .gear-doors::before, .gear2 .gear-doors::after { content: ''; position: absolute; top: calc(0px - var(--gnh)); width: 78px; height: 81px;
  z-index: -1; pointer-events: none; border-radius: 39px 39px 9px 9px;
  background: radial-gradient(60% 34% at 50% 100%, rgba(230,160,90,.2), rgba(230,160,90,0)),
    linear-gradient(180deg, rgba(5,3,4,.88), rgba(14,10,11,.6));
  box-shadow: inset 0 9px 12px rgba(0,0,0,.8), inset 0 -1.5px 0 rgba(208,178,122,.26), 0 1px 0 rgba(228,224,216,.1); }
.gear2 .gear-doors::before { left: 3px; }
.gear2 .gear-doors::after { right: 3px; }
/* the shortest phones (app under ~720 tall): the ground and his symbol at three quarters, about
   their own centre, and the label pill over the ground's lower edge, as the gear slots wear
   theirs — 58px from the top of the ground to the bottom of the label */
@media (max-height: 720px) {
  .gear2 { --gdh: 58px; --gnh: 6px; }
  .gear2 .gear-doors .door { height: 58px; }
  .gear2 .gear-doors .door .ground, .gear2 .gear-doors .door > img, .gear2 .gear-doors .door .dsym { scale: .75; translate: 0 -8px; }
  .gear2 .gear-doors .door span:not(.ground) { top: 42px; height: 16px; line-height: 16px; }
  .gear2 .gear-doors::before, .gear2 .gear-doors::after { width: 60px; height: 60px; border-radius: 30px 30px 8px 8px; }
  .gear2 .gear-doors::before { left: 12px; }
  .gear2 .gear-doors::after { right: 12px; }
}

/* ── the lava-crack rarity frame (docs/346) ──────────────────────────────────────
   ⛔ Transform and opacity only, on pictures that were painted once (root contract,
   docs/77); `--ph` phase-locks every loop to the wall clock so a re-render does not
   restart them. The outer glow is a static shadow. */
.rf { position: absolute; inset: 0; z-index: 0; border-radius: 14px; overflow: hidden; pointer-events: none;
  box-shadow: 0 2px 3px rgba(0,0,0,.34); }
.rf[data-r=rare] { --b: .84; box-shadow: 0 2px 3px rgba(0,0,0,.34), 0 0 6px rgba(99,162,235,.22); }
.rf[data-r=uncommon] { --b: .9; }
.rf[data-r=epic] { --b: .8; box-shadow: 0 2px 3px rgba(0,0,0,.34), 0 0 8px rgba(177,62,245,.32); }
.rf[data-r=legendary] { --b: .82; box-shadow: 0 2px 3px rgba(0,0,0,.34), 0 0 10px rgba(247,188,36,.42); }
.rf[data-r=mythic] { --b: .78; box-shadow: 0 2px 3px rgba(0,0,0,.34), 0 0 12px rgba(232,34,44,.5); }
.rf > * { position: absolute; pointer-events: none; }
.slot .tile .rf > img { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill;
  image-rendering: auto; }
.rf .rf-glow { animation: rf-breath 6s ease-in-out infinite; animation-delay: var(--ph, 0s); }
.rf[data-r=common] .rf-glow { animation: none; }
@keyframes rf-breath { 0%, 100% { opacity: 1; } 50% { opacity: var(--b, 1); } }
.rf .rf-mist { left: -20px; top: -20px; width: 120px; height: 120px; background-size: 100% 100%; }
.rf .rf-mist.a { background-image: url(/static/pf2/art/frames/epic_cloud_a.webp); opacity: .5;
  animation: rf-mist-a 12s ease-in-out infinite; animation-delay: var(--ph, 0s); }
.rf .rf-mist.b { background-image: url(/static/pf2/art/frames/epic_cloud_b.webp); opacity: .38;
  animation: rf-mist-b 12s ease-in-out infinite; animation-delay: var(--ph, 0s); }
@keyframes rf-mist-a { 0%, 100% { transform: translate(0, 0); opacity: .5; } 25%, 75% { opacity: .66; }
  50% { transform: translate(-14px, 5px); opacity: .42; } }
@keyframes rf-mist-b { 0%, 100% { transform: translate(0, 0); opacity: .38; } 25%, 75% { opacity: .26; }
  50% { transform: translate(12px, -4px); opacity: .46; } }
/* one texture period (80px) per loop, so the wrap cannot be seen */
.rf .rf-water { left: 0; top: 0; background-size: 100% 100%; }
.rf .rf-water.a { width: 160px; height: 80px; background-image: url(/static/pf2/art/frames/mythic_water_a.webp);
  opacity: .42; animation: rf-flow-x 12s linear infinite; animation-delay: var(--ph, 0s); }
.rf .rf-water.b { width: 80px; height: 160px; background-image: url(/static/pf2/art/frames/mythic_water_b.webp);
  opacity: .32; animation: rf-flow-y 12s linear infinite; animation-delay: var(--ph, 0s); }
@keyframes rf-flow-x { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes rf-flow-y { from { transform: translateY(0); } to { transform: translateY(-80px); } }
.rf .rf-sheen { left: -78px; top: -40px; width: 40px; height: 160px; opacity: .55; transform: rotate(-25deg);
  background: url(/static/pf2/art/frames/legendary_sheen.webp) 0 0 / 100% 100% no-repeat;
  animation: rf-sheen 6s infinite; animation-delay: calc(var(--ph, 0s) + .8s); }
@keyframes rf-sheen { 0% { transform: translateX(0) rotate(-25deg); animation-timing-function: ease-in-out; }
  20%, 100% { transform: translateX(196px) rotate(-25deg); } }
.rf .rf-glint { width: 12px; height: 12px; opacity: 0;
  background: url(/static/pf2/art/frames/legendary_glint.webp) 0 0 / 100% 100% no-repeat;
  animation: rf-glint 6s infinite; }
.rf .rf-glint.g1 { left: 59px; top: 9px; animation-delay: calc(var(--ph, 0s) + 2s); }
.rf .rf-glint.g2 { left: 9px; top: 59px; animation-delay: calc(var(--ph, 0s) + 4.4s); }
@keyframes rf-glint { 0% { opacity: 0; transform: scale(.3) rotate(0deg); animation-timing-function: ease-out; }
  5.83% { opacity: 1; transform: scale(1) rotate(-15.6deg); animation-timing-function: ease-in; }
  15%, 100% { opacity: 0; transform: scale(.3) rotate(-40deg); } }
.rf .rf-em { border-radius: 50%; opacity: 0; background: var(--core); box-shadow: 0 0 3px var(--halo);
  animation: rf-ember 6s linear infinite; animation-delay: calc(var(--ph, 0s) + var(--d, 0s)); }
.rf[data-r=common] .rf-em { box-shadow: none; }
@keyframes rf-ember {
  0% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: var(--pk, .6); }
  18% { transform: translate(var(--w, 0px), calc(var(--r, -20px) * .55)); }
  34% { opacity: calc(var(--pk, .6) * .7); }
  37% { transform: translate(calc(var(--w, 0px) * -.5), calc(var(--r, -20px) * .88)); }
  55%, 100% { opacity: 0; transform: translate(calc(var(--w, 0px) * .4), var(--r, -20px)); }
}
@media (prefers-reduced-motion: reduce) {
  .rf .rf-glow, .rf .rf-mist, .rf .rf-water { animation: none; }
  .rf .rf-sheen, .rf .rf-glint, .rf .rf-em { animation: none; opacity: 0; }
  .strip.v2 .ident .xpring b { transition: none; }
}

/* ── MOTION (docs/352) · flow — screens & flow ────────────────────────────────────
   Six of the eighteen he picked in the animation gallery (*"for now add:"*), each ported
   off its gallery card (scripts/anim_gallery/demos/50_entrances.js): the chest landing,
   the grid ripple, stacking toasts, the queue card's boing, the shelf reroll and the
   loot flying home.
   ⛔ render() REPLACES #app's children on every change, so every one-shot here is drawn
   PHASE-LOCKED: the painter stamps the moment the event happened (app.js `FLOW`) and every
   later render writes a NEGATIVE delay (`--lt`, `--rt`, `--rr`, `--qa`) so the animation
   carries on from where it was instead of starting again — and once it is over the class
   is simply not drawn, so a re-render cannot replay it.
   ⛔ Transform and opacity only; no keyframe reads a custom property (Chrome drops those
   off the compositor), so the per-tile variety is carried by wrappers and by the delay.
   ⚠️ Stillness: app.js draws none of the one-shot classes, and the base state of every
   element here is its resting state, so the global collapse rule has nothing to hide. */

/* 1 · the chest lands (card ent-back-in-down): every ARRIVAL at the chest, once */
.vault .cdrop { position: absolute; inset: 0; transform-origin: 50% calc(100% - 44px); pointer-events: none; }
.vault.clwait .cdrop { opacity: 0; }
.vault.cland { animation: flow-thump .32s linear both; animation-delay: calc(var(--lt, 0ms) + 600ms); }
@keyframes flow-thump { 0% { transform: none; } 25% { transform: translateY(4px); } 50% { transform: translateY(-2px); }
  75% { transform: translateY(1px); } 100% { transform: none; } }
.vault.cland .cdrop { animation: flow-drop 1.2s both; animation-delay: var(--lt, 0ms); }
@keyframes flow-drop {
  0% { opacity: .7; transform: translateY(-250px) scale(.7); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  50% { opacity: .8; transform: translateY(0) scale(.7); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  58% { transform: translateY(0) scale(.8, .6); }
  72% { opacity: 1; transform: translateY(-12px) scale(1.06, 1.08); animation-timing-function: cubic-bezier(.5,0,.5,1); }
  86% { transform: translateY(0) scale(1.03, .96); }
  100% { opacity: 1; transform: none; } }
.vault .cfloor { position: absolute; left: 50%; top: 246px; width: 280px; height: 34px; margin-left: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,0)); opacity: 0; pointer-events: none; }
.vault.cland .cfloor { animation: flow-floor 1.9s both; animation-delay: var(--lt, 0ms); }
@keyframes flow-floor {
  0% { opacity: .1; transform: scale(.2); animation-timing-function: cubic-bezier(.55,0,1,.45); }
  31.6% { opacity: .7; transform: scale(.72); } 45.5% { opacity: .5; transform: scale(.92); }
  63% { opacity: .85; transform: none; } 100% { opacity: 0; transform: none; } }
.vault .lglow { position: absolute; left: 50%; top: 40px; width: 320px; height: 250px; margin-left: -160px; border-radius: 50%;
  opacity: 0; pointer-events: none; }
.vault.cland .lglow { animation: flow-glow 1.15s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--lt, 0ms) + 700ms); }
@keyframes flow-glow { 0% { opacity: 0; transform: scale(.5); } 40% { opacity: .85; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.04); } }
/* the dust: each puff's direction and reach are its WRAPPER's rotation and scale, so one
   keyframe serves all ten and none of them reads a variable */
.vault .cdust { position: absolute; inset: 0; pointer-events: none; }
.vault .cdust b { position: absolute; width: 0; height: 0; }
.vault .cdust i { position: absolute; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(208,186,150,.6), rgba(208,186,150,0));
  animation: flow-dust .85s cubic-bezier(.1,.7,.3,1) both; animation-delay: calc(var(--lt, 0ms) + var(--dd, 600ms)); }
@keyframes flow-dust { 0% { opacity: 0; transform: translateX(0) scale(.3); } 18% { opacity: .8; }
  100% { opacity: 0; transform: translateX(46px) scale(1.5); } }

/* 2 · the chest's results ripple out from the centre (card ent-grid-ripple), once per opening */
.chestloot .cwave { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(208,178,122,.7); opacity: 0; pointer-events: none;
  animation: flow-wave 1.1s cubic-bezier(.2,.6,.4,1) both; animation-delay: var(--rt, 0ms); }
.chestloot .cwave.w2 { border-width: 1px; border-color: rgba(228,224,216,.5); animation-delay: calc(var(--rt, 0ms) + 160ms); }
@keyframes flow-wave { 0% { opacity: 0; transform: scale(.2); } 10% { opacity: .9; } 100% { opacity: 0; transform: scale(6); } }
.lootgrid .lootcell.rip { animation: flow-pop .55s cubic-bezier(.3,.7,.4,1) both;
  animation-delay: calc(var(--rt, 0ms) + var(--d, 0ms)); }
@keyframes flow-pop { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.12); }
  80% { transform: scale(.97); } 100% { opacity: 1; transform: none; } }
.lootcell .fl { position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.6); opacity: 0;
  pointer-events: none; animation: flow-fl .5s ease-out both; animation-delay: calc(var(--rt, 0ms) + var(--d, 0ms) + 180ms); }
@keyframes flow-fl { 0% { opacity: 0; } 20% { opacity: .55; } 100% { opacity: 0; } }
/* (the card's sheen on the top two tiers is not ported: the rarity ladder already gives
   every loot cell its tier's language, and a second shine would be a second painter) */
/* the single opening's rise, phase-locked the same way, and every grid at rest once it has played */
.lootgrid.n1 .lootcell { animation-delay: var(--rt, 0ms); }
.lootgrid.rest .lootcell { animation: none; }

/* 7 · OPEN x10: THE CASCADE (docs/358, his pick `rew-x10-cascade` in 80_rewards.js). Ten cards
   leave the chest's mouth and arc into the band face-down (X eases out while Y first dips
   and then rises — the card's own two curves), turn over in a wave, and the best card, if it
   is above the chest's tier, trembles and turns last with its rays, a ring and sparks.
   Every delay is `--ct` (the NEGATIVE age of the answer, app.js `flowCascade`) plus the
   card's own beat, so a render in the middle carries on from the same frame. Positions and
   beats are app.js's (`CAS`), one copy; this sheet only says how a beat moves.
   Transform and opacity only; the rest state (`.ck` without `.live`) is the face alone. */
.chestloot.cas { display: block; }
.chestloot .ccas { position: relative; margin: 0 auto; top: 0; }
.ccas .ck { position: absolute; width: 64px; height: 61px; }
.ccas .ck > .lootcell { position: absolute; inset: 0; animation: none; }
.ccas .cx { position: absolute; inset: 0; z-index: 2;
  animation: cas-x .62s cubic-bezier(.25,.1,.35,1) both; animation-delay: calc(var(--ct, 0ms) + var(--d, 0ms)); }
.ccas .cy { position: absolute; inset: 0; perspective: 420px;
  animation: cas-y .62s both; animation-delay: calc(var(--ct, 0ms) + var(--d, 0ms)); }
@keyframes cas-x { 0% { transform: translateX(var(--fx, 0px)); } 100% { transform: translateX(0); } }
@keyframes cas-y { 0% { opacity: 0; transform: translateY(var(--fy, 0px)) scale(.3); animation-timing-function: cubic-bezier(.3,-.9,.6,1); }
  8% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.ccas .cc { position: absolute; inset: 0; transform-style: preserve-3d;
  animation: cas-flip .42s cubic-bezier(.3,1.35,.5,1) both; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms)); }
.ccas .cc.prize { animation-duration: .5s; }
@keyframes cas-flip { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(180deg); } }
.ccas .ctrem { position: absolute; inset: 0; perspective: 420px; transform-style: preserve-3d;
  animation: cas-trem .7s linear both; animation-delay: calc(var(--ct, 0ms) + var(--t, 0ms)); }
@keyframes cas-trem { 0% { transform: rotateZ(0deg); } 20% { transform: rotateZ(-4deg) scale(1.04); } 40% { transform: rotateZ(4deg) scale(1.06); }
  60% { transform: rotateZ(-5deg) scale(1.08); } 80% { transform: rotateZ(5deg) scale(1.1); } 100% { transform: rotateZ(0deg) scale(1); } }
.ccas .cface { position: absolute; inset: 0; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ccas .cfront { transform: rotateY(180deg); }
.ccas .cfront > .lootcell { position: absolute; inset: 0; animation: none; }
/* the back of every card: his wine, a gold rule inside it and a gold lozenge (the card's own) */
.ccas .cback { background: radial-gradient(circle at 50% 38%, #8a0a52, #66023c 45%, #3b0122);
  box-shadow: inset 0 0 0 2px #d0b27a, inset 0 0 0 5px #3b0122, inset 0 0 0 6px rgba(208,178,122,.5); }
.ccas .cem { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  transform: rotate(45deg); border: 2px solid #d0b27a; box-sizing: border-box; }
/* a rare-or-better card lights the band behind it as it turns, and keeps a little of it */
.ccas .cg { position: absolute; left: -26px; top: -28px; width: 116px; height: 116px; border-radius: 50%; z-index: 0; opacity: 0;
  pointer-events: none; animation: cas-cg .8s ease-out both; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms) + 200ms); }
.ccas .cg.rest { animation: none; opacity: .7; }
@keyframes cas-cg { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; transform: scale(1.15); } 100% { opacity: .7; transform: scale(1); } }
/* the one that waited: its rays swell and turn a little while, a ring leaves it, sparks fly */
.ccas .crz { position: absolute; left: -48px; top: -50px; width: 160px; height: 160px; z-index: 1; opacity: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent); mask-image: radial-gradient(closest-side, #000 25%, transparent);
  animation: cas-rz 1.6s both; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms)); }
@keyframes cas-rz { 0% { opacity: 0; transform: scale(.2); animation-timing-function: cubic-bezier(.2,.9,.3,1.3); }
  20% { opacity: 1; transform: scale(1); } 70% { opacity: .85; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05); } }
.ccas .crs { position: absolute; inset: 0; animation: cas-rs 1.6s linear both; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms)); }
.ccas .crs svg { display: block; }
@keyframes cas-rs { from { transform: rotate(0deg); } to { transform: rotate(64deg); } }
.ccas .crg { position: absolute; left: -8px; top: -9.5px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid #FFC300;
  box-sizing: border-box; z-index: 3; opacity: 0; pointer-events: none;
  animation: cas-rg .7s ease-out forwards; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms) + 100ms); }
@keyframes cas-rg { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.ccas .cpw { position: absolute; left: 32px; top: 30.5px; width: 0; height: 0; z-index: 4; pointer-events: none; }
.ccas .cp { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: #fff1c9; opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: cas-p .7s cubic-bezier(.15,.7,.3,1) forwards; animation-delay: calc(var(--ct, 0ms) + var(--f, 0ms) + 100ms); }
@keyframes cas-p { 0% { opacity: 1; transform: translateY(-30px) scale(1.2); } 100% { opacity: 0; transform: translateY(var(--r, -80px)) scale(.2); } }

/* 3 · the shelf reroll: out, then in (card ent-reroll-shelf) — after the server answered */
.rrwrap { position: relative; }
.rrwrap .rrout { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.rrwrap.lock > .grid3 { pointer-events: none; }
.rrout > div { animation: flow-rrout-a .48s both; animation-delay: calc(var(--rr, 0ms) + var(--i, 0) * 45ms); }
.rrout > div:nth-child(3n+2) { animation-name: flow-rrout-b; }
.rrout > div:nth-child(3n) { animation-name: flow-rrout-c; }
@keyframes flow-rrout-a { 0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  100% { opacity: 0; transform: translateY(24px) scale(.5) rotate(-11deg); } }
@keyframes flow-rrout-b { 0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  100% { opacity: 0; transform: translateY(24px) scale(.5) rotate(8deg); } }
@keyframes flow-rrout-c { 0% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  100% { opacity: 0; transform: translateY(24px) scale(.5) rotate(-5deg); } }
.rrin { transform-origin: 50% 100%; animation: flow-rrin 1.04s both;
  animation-delay: calc(var(--rr, 0ms) + 560ms + var(--i, 0) * 45ms); }
@keyframes flow-rrin {
  0% { opacity: 0; transform: translateY(-50px) scale(.7); animation-timing-function: cubic-bezier(.3,0,.3,1); }
  46.2% { opacity: 1; transform: translateY(0) scale(1.07, .93); }
  76.9% { transform: translateY(-3px) scale(.98, 1.02); }
  100% { opacity: 1; transform: none; } }
.reroll.spun svg { animation: flow-spin .96s cubic-bezier(.3,0,.3,1) both; animation-delay: var(--rr, 0ms); }
@keyframes flow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 4 · the queue card swings down on two cords (card ent-boing-in), once per search.
   ⚠️ THE SWAY IS STEPPED (67ms holds): a box that moves on every frame is never "stable"
   to a harness finger, and CANCEL / FIGHT BOT live on this card. At .75deg a hold is
   under a pixel, which the eye reads as the same slow pendulum. */
.qwrap .qsw { position: relative; transform-origin: 50% -320px;
  animation: flow-sway 3.2s steps(6, end) infinite; animation-delay: calc(var(--qa, 0ms) + 1400ms); }
@keyframes flow-sway { 0% { transform: rotate(0deg); } 12.5% { transform: rotate(.53deg); } 25% { transform: rotate(.75deg); }
  37.5% { transform: rotate(.53deg); } 50% { transform: rotate(0deg); } 62.5% { transform: rotate(-.53deg); }
  75% { transform: rotate(-.75deg); } 87.5% { transform: rotate(-.53deg); } 100% { transform: rotate(0deg); } }
.qsw .qcord { position: absolute; bottom: 100%; width: 1px; height: 100vh; pointer-events: none;
  background: linear-gradient(rgba(208,178,122,0), rgba(208,178,122,.55));
  animation: flow-cord .18s ease-out both; animation-delay: var(--qa, 0ms); }
@keyframes flow-cord { from { opacity: 0; } to { opacity: 1; } }   /* the cords arrive with the card, not before it */
.qsw .qcord.l { left: 34px; }
.qsw .qcord.r { right: 34px; }
.qcard.qq { transform-origin: 50% 0; animation: flow-boing 1.5s both; animation-delay: var(--qa, 0ms); }
@keyframes flow-boing {
  0% { opacity: 0; transform: perspective(700px) rotateX(-92deg); animation-timing-function: cubic-bezier(.5,0,.7,.4); }
  12% { opacity: 1; }
  30% { transform: perspective(700px) rotateX(40deg); animation-timing-function: ease-in-out; }
  48% { transform: perspective(700px) rotateX(-18deg); animation-timing-function: ease-in-out; }
  64% { transform: perspective(700px) rotateX(8deg); animation-timing-function: ease-in-out; }
  80% { transform: perspective(700px) rotateX(-3deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: perspective(700px) rotateX(0deg); } }
/* the scrim is locked to the same clock, so the render that arms FIGHT BOT does not blink it */
.qwrap.qqw .qdim { animation-delay: var(--qa, 0ms); }

/* 5 · CLAIM: the loot flies home (card ent-claim-fly) — the plates arc into the gear tab.
   The flight is in `#pf2m .lflyer`, beside #app, so a render cannot take it off the glass. */
#pf2m .lflyer { position: absolute; inset: 0; }
.lflyer .lbag { position: absolute; width: 44px; height: 44px; border-radius: 11px; background: #35302f; z-index: 2;
  display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); pointer-events: none; }
.lflyer .lbag img { width: 32px; height: 32px; opacity: .85; }
.lflyer .lplus { position: absolute; left: 28px; top: -10px; height: 16px; padding: 0 5px; border-radius: 8px;
  background: #ffc300; font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 16px; color: #191617;
  opacity: 0; transform: scale(0); }
.lflyer .lfly { position: absolute; margin: 0; z-index: 3; pointer-events: none; }
/* a loot window a render REBUILT while the prizes are in the air: nothing of its entrance
   replays (an animation would outrank the opacity below — that is how the first cut of this
   rule never took effect), its prizes have gone, and once the window has started to leave it
   is drawn already gone */
.loot.claiming .dim, .loot.claiming .lband, .loot.claiming .lkey, .loot.claiming .lslot { animation: none; }
.loot.claiming .lplate:not(.empty), .loot.claiming .lcap { opacity: 0; }
.loot.claiming.leaving .lband, .loot.claiming.leaving .lkey { opacity: 0; }

/* 6 · toasts that stack and leave (card ent-toast). They live in #toasts, a sibling of #app
   made by app.js, so a render never replays their entrance and a screen change never cuts
   one short. ⚠️ The old `.toast` rules above still match the newest one; everything they
   set is restated here, because an id outranks them. */
#toasts { position: fixed; top: 0; left: 0; right: 0; margin-inline: auto;
  width: min(100vw, 412px); height: 100%; height: 100dvh; max-height: 100dvh;
  overflow: hidden; pointer-events: none; z-index: 30; }   /* under #fx 33 and #boot 40, as .toast always was */
#toasts .tst { position: absolute; left: 20px; right: 20px; top: auto; bottom: calc(var(--nav) + 184px); z-index: auto;
  box-sizing: border-box; padding: 12px 14px 13px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,0)), rgba(13,11,12,.95);
  border: 1px solid rgba(208,178,122,.45); box-shadow: 0 8px 18px rgba(0,0,0,.5);
  font-family: var(--sans); font-size: 12px; line-height: 1.35; color: var(--ink); text-align: center; animation: none; }
/* ⛔ in a fight it sits at the foot of the arena, clear of the effect chips (docs/322) */
#toasts.full .tst { top: 340px; bottom: auto; }
#toasts .tst .tleft { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--gold);
  opacity: .7; transform-origin: 0 50%; animation: flow-tleft 2.6s linear both; }
@keyframes flow-tleft { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .vault.cland, .vault.cland .cdrop, .vault.cland .cfloor, .vault.cland .lglow, .vault .cdust i,
  .chestloot .cwave, .lootgrid .lootcell.rip, .lootcell .fl,
  .rrout > div, .rrin, .reroll.spun svg, .qwrap .qsw, .qcard.qq, .qsw .qcord, #toasts .tst .tleft { animation: none; }
  .rrout, .cdust, .chestloot .cwave { display: none; }
}

/* ── MOTION (docs/352) · gear — gear & items ─────────────────────────────────────
   Four of his picks out of the animation gallery (docs/348), in the game: the six
   stats count, a held slot unfolds its card, every item tile speaks its tier in
   motion, and the consumables door hints at the move you could make.
   ⛔ Transform and opacity only (the float is the `translate` property, which is a
   transform); no frame loop, no interval. Every loop on a node render() redraws is
   phase-locked to the wall clock (`--lph`, `--hph`, `--tu`, the tick's delays), so
   a re-render carries on instead of starting over. Decoration never takes a tap.
   ⛔ Under reduced motion none of it moves and nothing waits for it: the numbers
   are the new numbers, the card is simply there, and the tiles are still. */

/* 1 · one language, six volumes (frm-rarity-ladder) — tile() and the chest's loot
   cells; never the gear slots, which wear his lava-crack frame (docs/347) */
.tile.lad-on, .lootcell.lad-on { isolation: isolate; }
.lad, .lad2 { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.lad { z-index: -1; }
.lad > i, .lad2 > * { position: absolute; display: block; }
/* common: the rim breathes */
.lad .lr { inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--lc); opacity: .25;
  animation: pf2m-rim 4s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--lph, 0s); }
@keyframes pf2m-rim { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }
/* uncommon and up: a halo breathes behind the item, louder with every tier */
.lad .lh { left: -30%; top: -30%; width: 160%; height: 160%; border-radius: 50%; opacity: .18;
  background: radial-gradient(closest-side, var(--lc), rgba(0,0,0,0));
  animation: pf2m-halo 3s cubic-bezier(.45,0,.55,1) infinite; animation-delay: var(--lph, 0s); }
.lad-epic > .lad .lh { opacity: .22; }
.lad-legendary > .lad .lh { opacity: .28; }
.lad-mythic > .lad .lh { opacity: .34; animation-duration: 2.2s; }
@keyframes pf2m-halo { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.08); } }
/* uncommon and mythic: the item floats */
.lad-uncommon > img, .lad-mythic > img { animation: pf2m-float 2.8s cubic-bezier(.45,0,.55,1) infinite;
  animation-delay: var(--lph, 0s); }
@keyframes pf2m-float { 0%, 100% { translate: 0 2.5%; } 50% { translate: 0 -5%; } }
/* rare and up: a sheen crosses the face, under the item */
.lad .lb { left: 0; top: -26%; width: 30%; height: 152%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0));
  transform: translateX(-185%) rotate(20deg);
  animation: pf2m-band 3s cubic-bezier(.55,.05,.25,1) infinite; animation-delay: var(--lph, 0s); }
@keyframes pf2m-band { 0% { transform: translateX(-185%) rotate(20deg); } 36%, 100% { transform: translateX(494%) rotate(20deg); } }
/* the chest's loot cells may already carry a sheen of their own (the flow lane's): one sheen, not two */
.lootcell:has(> .sh) > .lad .lb { display: none; }
/* epic and up: a light turns round the rim — a conic layer ROTATED under a static ring mask */
.lad .ls { inset: 0; box-sizing: border-box; padding: 2.5px; border-radius: inherit; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.lad .ls > i { position: absolute; display: block; left: -52%; top: -52%; width: 204%; height: 204%; border-radius: 50%;
  animation: pf2m-spin 3.4s linear infinite; animation-delay: var(--lph, 0s); }
.lad .ls > .a { background: conic-gradient(from 0deg, rgba(0,0,0,0) 0deg 230deg, var(--lc) 330deg, #fff 356deg, rgba(0,0,0,0) 360deg); }
.lad .ls > .b { background: conic-gradient(from 180deg, rgba(0,0,0,0) 0deg 280deg, var(--epic) 350deg, rgba(0,0,0,0) 360deg);
  animation-duration: 5s; animation-direction: reverse; }
@keyframes pf2m-spin { to { transform: rotate(360deg); } }
/* legendary: two glints (over the item, under the count) */
.lad2 .lg { width: 26%; height: 26%; fill: #fff6dc; opacity: 0;
  animation: pf2m-glint 3.2s linear infinite; animation-delay: var(--lph, 0s); }
.lad2 .g1 { right: 4%; top: 4%; }
.lad2 .g2 { left: 4%; bottom: 4%; animation-delay: calc(var(--lph, 0s) + 1.6s); }
@keyframes pf2m-glint { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 6% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  14%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }
/* mythic: motes rise — each dot rides a tile-sized carrier, so the rise is the tile's height at any size */
.lad2 .lm { left: 0; top: 0; width: 100%; height: 100%; opacity: 0;
  animation: pf2m-mote 2.4s cubic-bezier(.2,.6,.4,1) infinite; animation-delay: var(--lph, 0s); }
.lad2 .lm > i { position: absolute; display: block; top: 81%; width: 3px; height: 3px; border-radius: 50%; background: #ffc2c8;
  box-shadow: 0 0 4px 1px rgba(224,92,106,.7); }
.lad2 .m1 > i { left: 15%; } .lad2 .m2 > i { left: 41%; } .lad2 .m3 > i { left: 67%; } .lad2 .m4 > i { left: 85%; }
.lad2 .m2 { animation-delay: calc(var(--lph, 0s) + .6s); }
.lad2 .m3 { animation-delay: calc(var(--lph, 0s) + 1.2s); }
.lad2 .m4 { animation-delay: calc(var(--lph, 0s) + 1.8s); }
@keyframes pf2m-mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-85%); } }

/* 2 · the stats count up as it goes on (frm-gear-stat-tick) — statsRow's `tick` */
.stats.full { --pf2m-up: #77d18b; }
.stats.full .stat { --sh: 32px; }
@media (max-height: 820px) { .stats.full .stat { --sh: 30px; } }
.stats.full .stat b.roll { overflow: hidden; }
.stats.full .stat b.roll .col { display: block; will-change: transform; }
.stats.full .stat b.roll .col > i { display: block; height: var(--sh); line-height: var(--sh); font-style: normal; }
.stats.full .stat b.roll .gc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; opacity: 0; }
.stats.full .stat b.roll .gc .col > i { color: var(--pf2m-up); }
.stats.full .stat.tk .tkhl { position: absolute; inset: -1px; border-radius: 9px; border: 1.5px solid var(--pf2m-up);
  box-shadow: 0 0 12px 2px rgba(119,209,139,.4); opacity: 0; pointer-events: none; }
.stats.full .stat.tk .tkc { position: absolute; left: 50%; top: -10px; width: 34px; margin-left: -17px; height: 16px;
  border-radius: 8px; font-family: 'Spline Sans', var(--sans); font-weight: 700; font-style: normal; font-size: 10.5px;
  line-height: 16px; text-align: center; opacity: 0; pointer-events: none; z-index: 1; }
.stats.full .stat.tk.up .tkc { background: #1f3a26; color: #9fe3b0; box-shadow: inset 0 0 0 1px rgba(119,209,139,.5); }
.stats.full .stat.tk.dn .tkc { background: #2a2526; color: rgba(228,224,216,.7); box-shadow: inset 0 0 0 1px rgba(228,224,216,.2); }
@keyframes pf2m-roll { from { transform: translateY(var(--y0)); } to { transform: translateY(var(--y1)); } }
@keyframes pf2m-o01 { from { opacity: 0; } to { opacity: 1; } }
@keyframes pf2m-o10 { from { opacity: 1; } to { opacity: 0; } }
@keyframes pf2m-upin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(-12px); } }
@keyframes pf2m-upout { from { opacity: 1; transform: translateY(-12px); } to { opacity: 0; transform: translateY(-18px); } }
@keyframes pf2m-dnin { from { opacity: 0; transform: translateY(-10px); } to { opacity: .9; transform: translateY(-4px); } }
@keyframes pf2m-dnout { from { opacity: .9; transform: translateY(-4px); } to { opacity: 0; transform: translateY(4px); } }

/* 3 · hold a slot, and the hold charges (frm-gear-hold-card) — the gear slots and the picker.
   docs/357: the card it opens is the item's FULL card and GROWS out of the piece (section 5 of
   docs/353 below); the unfold and the fold that used to follow the line are gone — one entrance */
/* a layer BESIDE #app, so a render cannot cut a line off; under #fx (33) and #boot (40) */
/* the column #app is (as #fx copies it), and it clips like #app does: a card cut at the phone's
   edge collapses home cut at the same edge, never drawn past the column on a wide screen */
#pf2m { position: fixed; top: 0; left: 0; right: 0; margin-inline: auto; width: min(100vw, 412px); height: 100%;
  height: 100dvh; max-height: 100dvh; overflow: hidden; z-index: 32; pointer-events: none; }
#pf2m * { pointer-events: none; }
.pf2m-trace { position: absolute; }
.pf2m-trace i { position: absolute; display: block; background: #e6b14d; box-shadow: 0 0 6px rgba(230,177,77,.7); border-radius: 2px; }
.pf2m-trace .t { top: -3.5px; height: 2.5px; transform-origin: 0 50%; animation: pf2m-tx 87.5ms linear 100ms both; }
.pf2m-trace .r { width: 2.5px; transform-origin: 50% 0; animation: pf2m-ty 87.5ms linear 187.5ms both; }
.pf2m-trace .b { height: 2.5px; transform-origin: 100% 50%; animation: pf2m-tx 87.5ms linear 275ms both; }
.pf2m-trace .l { left: -3.5px; width: 2.5px; transform-origin: 50% 100%; animation: pf2m-ty 87.5ms linear 362.5ms both; }
@keyframes pf2m-tx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pf2m-ty { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pf2m-trace.done { animation: pf2m-out 160ms linear 90ms both; }
/* a cancelled line STOPS where it got to while it fades (a quick tap never flashes gold) */
.pf2m-trace.cancel { animation: pf2m-out 120ms linear both; }
.pf2m-trace.cancel i { animation-play-state: paused; }
@keyframes pf2m-out { from { opacity: 1; } to { opacity: 0; } }
/* the piece lifts under the finger; !important because the press (touch.js) moves the same tile */
#app .tile.pf2m-lift:not(.empty) { transform: translateY(-3px) scale(1.06) !important;
  transition: transform 330ms cubic-bezier(.2,.8,.3,1) !important; }

/* 4 · the move you could make leans out (att2-idle-hint) — the consumables door.
   ⭐ docs/355, his: *"Consumables animation of item placing self on an empty slot should have the
   same colors as rarity of item."* The ring on the bottle, the warm dashed plate and the ghost all
   read `--hc`, the bottle's tier colour (app.js hintDrawn, off the content's rarity_color); his
   yellow is only the fallback. */
.bag5 .pf2m-lean { position: relative; transform-origin: 50% 80%; animation: pf2m-lean 5.6s infinite;
  animation-delay: var(--hph, 0ms); }
@keyframes pf2m-lean {
  0%, 50% { transform: translate(0, 0) rotate(0deg) scale(1); animation-timing-function: cubic-bezier(.3,0,.3,1.4); }
  53% { transform: translate(var(--hx, -3px), -8px) rotate(var(--hr, -5deg)) scale(1.07); animation-timing-function: cubic-bezier(.5,0,.5,1); }
  56% { transform: translate(0, 0) rotate(0deg) scale(1); animation-timing-function: cubic-bezier(.3,0,.3,1.4); }
  59% { transform: translate(var(--hx, -3px), -8px) rotate(var(--hr, -5deg)) scale(1.07); animation-timing-function: cubic-bezier(.5,0,.5,1); }
  63% { transform: translate(0, 1px) rotate(calc(var(--hr, -5deg) * -.2)) scale(.98); }
  66%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); } }
.bag5 .pf2m-hl { position: absolute; display: block; inset: -2px; border-radius: 12px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px var(--hc, #ffc300), 0 0 12px color-mix(in srgb, var(--hc, #ffc300) 45%, transparent); animation: pf2m-hl 5.6s infinite; animation-delay: var(--hph, 0ms); }
@keyframes pf2m-hl { 0%, 50% { opacity: 0; } 53% { opacity: 1; } 64% { opacity: .8; } 72%, 100% { opacity: 0; } }
.plate.pf2m-warm { animation: pf2m-pe 5.6s infinite; animation-delay: var(--hph, 0ms); }
@keyframes pf2m-pe { 0%, 75% { transform: scale(1); } 78% { transform: scale(1.06); } 82% { transform: scale(.98); } 86%, 100% { transform: scale(1); } }
.plate .pf2m-wm { position: absolute; display: block; inset: -3px; box-sizing: border-box; border-radius: 13px; border: 2px dashed var(--hc, #ffc300);
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--hc, #ffc300) 40%, transparent), 0 0 14px color-mix(in srgb, var(--hc, #ffc300) 25%, transparent); opacity: 0; pointer-events: none;
  animation: pf2m-warm 5.6s infinite; animation-delay: var(--hph, 0ms); }
@keyframes pf2m-warm { 0%, 74% { opacity: 0; } 78% { opacity: 1; } 90% { opacity: .4; } 97%, 100% { opacity: 0; } }
/* the ghost: the plate's size, centred on the bottle; X eases in and Y eases out, so it arcs */
.pf2m-ghost { position: absolute; display: block; z-index: 4; pointer-events: none; }
.pf2m-ghost i { position: absolute; inset: 0; display: block; }
.pf2m-ghost .gx { animation: pf2m-gx 5.6s infinite; animation-delay: var(--hph, 0ms); }
.pf2m-ghost .gy { animation: pf2m-gy 5.6s infinite; animation-delay: var(--hph, 0ms); }
.pf2m-ghost .gh { display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hc, #ffc300) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--hc, #ffd66b) 70%, transparent); opacity: 0; animation: pf2m-gh 5.6s infinite; animation-delay: var(--hph, 0ms); }
.pf2m-ghost .gh img { width: 64%; height: 64%; object-fit: contain; opacity: .9; }
@keyframes pf2m-gx { 0%, 60% { transform: translateX(0); animation-timing-function: cubic-bezier(.45,0,.75,.6); }
  76%, 100% { transform: translateX(var(--hdx, 0px)); } }
@keyframes pf2m-gy { 0%, 60% { transform: translateY(0); animation-timing-function: cubic-bezier(.2,.75,.35,1); }
  76%, 100% { transform: translateY(var(--hdy, 0px)); } }
@keyframes pf2m-gh { 0%, 60% { opacity: 0; transform: scale(var(--h0, 1)); }
  62% { opacity: .75; transform: scale(calc(var(--h0, 1) * 1.02)); }
  74% { opacity: .7; transform: scale(.97); }
  77% { opacity: .75; transform: scale(1.12, .86); }
  80% { opacity: .65; transform: scale(.95, 1.07); }
  84% { opacity: .55; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .lad, .lad2, #pf2m .pf2m-trace, .pf2m-ghost, .pf2m-hl, .pf2m-wm { display: none; }
  .lad-on > img, .bag5 .pf2m-lean, .plate.pf2m-warm { animation: none; }
  #app .tile.pf2m-lift { transform: none !important; }
  /* a count caught by the switch mid-way shows the NEW number, still */
  .stats.full .stat.tk .col { animation: none; transform: translateY(var(--y1)); }
  .stats.full .stat.tk .gc, .stats.full .stat.tk .tkhl, .stats.full .stat.tk .tkc { display: none; }
}

/* ── MOTION (docs/352) · hub — Hub & header ──────────────────────────────────────
   Seven of his picks out of the gallery (scripts/anim_gallery), ported onto the
   hub's own nodes; app.js's `moPaint` (the one painter) says WHEN, this says HOW.
   ⛔ Transform and opacity only, and the INDIVIDUAL transform properties
   (`translate`, `scale`, `rotate`): the press (touch.js) owns `transform` on every
   door, and `.multi` is centred by translateX(-50%) — a property of their own
   composes with both instead of fighting them.
   ⛔ Every one-shot is `backwards`/`both` on a NEGATIVE delay taken from app.js
   (`--mo-arr`, `--mo-pk`), so a node that render() makes in
   the middle of one carries on where the last one was; every loop runs on
   `--mo-ph`, the wall clock modulo app.js's MO_PH, set on the node that runs it.
   ⛔ Nothing here takes a tap except the tooltip, which is part of its door. */

/* ── "The hub arriving whole" (ent-hub-arrive): the tabs rise, the nameplate
   drops, the pills and doors pop in hierarchy order, PLAY is set down on its lip,
   the stake follows, the ping lands last. After the LOADING SCREEN only; held,
   frozen at its first frame, while the overlay is still opaque (`.mo-held`). ── */
@keyframes mo-hub-art { from { scale: 1.06; } to { scale: 1; } }
@keyframes mo-hub-rise { from { translate: 0 100px; } to { translate: 0 0; } }
@keyframes mo-hub-drop { from { opacity: 0; translate: 0 -70px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-hub-pop { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
@keyframes mo-hub-label { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-hub-ping { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-hub-key {
  0% { opacity: 0; translate: 0 260px; }
  55% { opacity: 1; translate: 0 -12px; }
  72% { translate: 0 5px; }
  86% { translate: 0 -1px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes mo-hub-stake { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
/* his painting settles only while it is the GAME's copy on the glass; once the
   living hub has it (docs/351) the view is `.mo-flat` and the fade of the loading
   screen is its arrival */
.view.mo-arrive:not(.mo-flat) .hub-art { animation: mo-hub-art 1.4s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: var(--mo-arr, 0ms); }
.nav.mo-arrive { animation: mo-hub-rise .6s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + .15s); }
.view.mo-arrive .strip.v2 .ident { animation: mo-hub-drop .6s cubic-bezier(.2,.9,.3,1.15) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + .3s); }
.view.mo-arrive .strip.v2 .pill,
.view.mo-arrive .strip.v2 .topdoors button { animation: mo-hub-pop .45s cubic-bezier(.3,1.5,.5,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + var(--mo-d, .42s)); }
.view.mo-arrive .strip.v2 .pill.souls { --mo-d: .49s; }
.view.mo-arrive .strip.v2 .pill.pb, .view.mo-arrive .strip.v2 .topdoors button:nth-of-type(1) { --mo-d: .56s; }
.view.mo-arrive .strip.v2 .topdoors button:nth-of-type(2) { --mo-d: .63s; }
.view.mo-arrive .strip.v2 .topdoors button:nth-of-type(3) { --mo-d: .70s; }
/* the hub's doors are not on the card (it draws a smaller hub); they pop in
   its order, after the header — three of them since docs/373 (FORGE and CONSUMABLES stand
   on the gear screen's plinth, which has no arrival of its own). The DISC pops (ground and symbol share a centre),
   the label follows — never the door itself, whose box the press and the phone
   walk both read. ⭐ docs/369: a symbol that is alive is a `.dsym` of his picture in
   parts, and it pops WHOLE (its parts and their light together, about the ground's
   centre); the plain picture (reduced motion) is the door's own <img>. */
.view.mo-arrive .door .ground, .view.mo-arrive .door > img, .view.mo-arrive .door .dsym { animation: mo-hub-pop .45s cubic-bezier(.3,1.5,.5,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + var(--mo-d, .6s)); }
.view.mo-arrive .door > span:not(.ground) { animation: mo-hub-label .35s ease-out backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + var(--mo-d, .6s) + .12s); }
.view.mo-arrive .door[data-go="chests"] { --mo-d: .58s; }
.view.mo-arrive .door[data-go="quests"] { --mo-d: .62s; }
.view.mo-arrive .door[data-go="rewards"] { --mo-d: .70s; }
.view.mo-arrive .keywrap { animation: mo-hub-key .95s cubic-bezier(.2,.8,.3,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + .55s); }
.view.mo-arrive .multi { animation: mo-hub-stake .55s cubic-bezier(.2,.9,.3,1.2) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + .95s); }
.view.mo-arrive .strip.v2 .topdoors .ping { animation: mo-hub-ping .45s cubic-bezier(.3,1.6,.5,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + 1.25s); }
/* a breathing ping lands too: the two lists are one declaration, and the breath
   keeps running when the landing leaves the list */
.view.mo-arrive .strip.v2 .topdoors .ping.mo-breathe {
  animation: mo-hub-ping .45s cubic-bezier(.3,1.6,.5,1) backwards, mo-breathe-dot 2.8s ease-in-out infinite;
  animation-delay: calc(var(--mo-arr, 0ms) + 1.25s), var(--mo-ph, 0ms); }
/* the REWARD door's dot lands with the header's, after its door has popped */
.view.mo-arrive .door .ping { animation: mo-hub-ping .45s cubic-bezier(.3,1.6,.5,1) backwards;
  animation-delay: calc(var(--mo-arr, 0ms) + 1.25s); }
/* held: every entrance frozen at its first frame under the opaque loading screen */
.nav.mo-held, .mo-held .hub-art, .mo-held .strip.v2 .ident, .mo-held .strip.v2 .pill,
.mo-held .strip.v2 .topdoors button, .mo-held .strip.v2 .topdoors .ping, .mo-held .door .ground,
.mo-held .door img, .mo-held .door .dsym, .mo-held .door > span:not(.ground), .mo-held .door .ping, .mo-held .keywrap,
.mo-held .multi { animation-play-state: paused !important; }

/* ── "PLAY key — ripple from your finger" (btn-play-ripple): a dark ink ripple
   from the touch, a wine ring outrunning it, and a gold ring leaking out round the
   key; the key sinks and springs back. The layer is a child of <body>, beside
   #app, because render() replaces the key the instant the press starts the queue.
   z-index 8: over the key (5), under the queue's scrim (9). ── */
.mo-rip { position: fixed; z-index: 8; pointer-events: none; transform: none;
  transition: transform .42s cubic-bezier(.3,.7,.4,1.5); }
.mo-rip.dn { transform: translateY(4px); transition: transform .05s linear; }
.mo-rip .clip { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; }
.mo-rip .clip i { position: absolute; border-radius: 50%; }
.mo-rip .ink { background: radial-gradient(closest-side, rgba(25,22,23,.26), rgba(25,22,23,.2) 70%, rgba(25,22,23,0));
  animation: mo-rip-ink .75s cubic-bezier(.2,.7,.2,1) forwards; }
.mo-rip .ring { border: 2px solid rgba(102,2,60,.7); animation: mo-rip-ring .6s cubic-bezier(.1,.6,.3,1) forwards; }
.mo-rip .out { position: absolute; inset: -1px; border-radius: 15px; border: 2px solid rgba(208,178,122,.85);
  opacity: 0; animation: mo-rip-out .7s cubic-bezier(.1,.6,.3,1); }
@keyframes mo-rip-ink { 0% { scale: 0; opacity: 1; } 55% { opacity: 1; } 100% { scale: 1; opacity: 0; } }
@keyframes mo-rip-ring { 0% { scale: 0; opacity: 1; } 100% { scale: 1; opacity: 0; } }
@keyframes mo-rip-out { 0% { opacity: .9; scale: 1; } 100% { opacity: 0; scale: 1.1 1.45; } }
.key.gold.bone.mo-dn { transform: translateY(4px); transition: transform .05s linear; }

/* (docs/369: the CHESTS door's "Bounce with squash and dust" is DELETED — his "too dynamic
   and ugly". Its symbol breathes on its own slow loop, below, and nothing else moves it.) */

/* ── "A letter peeks out from behind the menu" (att-letter-peek): his letter rises
   from behind the hamburger into the gap under the currencies, waves twice as if
   held up, and tucks back down; the button takes the bump as it lands and the ping
   kicks. One cycle of the card's, then it rests. `z-index: -1` puts the letter
   under the strip's pills and doors alike, so only the gap between them shows it. ── */
.strip.v2 .topdoors .mo-letter { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; z-index: -1;
  pointer-events: none; opacity: 0; animation: mo-pk-rise 3.6s both; animation-delay: var(--mo-pk, 0ms); }
.strip.v2 .topdoors .mo-letter > i { position: absolute; inset: 0; transform-origin: 50% 100%;
  background: center / contain no-repeat; animation: mo-pk-wave 3.6s both; animation-delay: var(--mo-pk, 0ms); }
.strip.v2 .topdoors.mo-peek [data-menu] { animation: mo-pk-bump 3.6s both; animation-delay: var(--mo-pk, 0ms); }
.strip.v2 .topdoors.mo-peek [data-menu] .ping { animation: mo-pk-ping 3.6s both; animation-delay: var(--mo-pk, 0ms); }
.strip.v2 .topdoors.mo-peek [data-menu] .ping.mo-breathe { animation: mo-pk-ping 3.6s both, mo-breathe-dot 2.8s ease-in-out infinite;
  animation-delay: var(--mo-pk, 0ms), var(--mo-ph, 0ms); }
@keyframes mo-pk-rise {
  0%, 21% { translate: 0 0; opacity: 0; animation-timing-function: cubic-bezier(.2,.9,.3,1.3); }
  24% { opacity: 1; }
  31.5% { translate: 0 -16px; }
  72.3% { translate: 0 -16px; opacity: 1; animation-timing-function: cubic-bezier(.5,0,.8,.4); }
  84% { translate: 0 0; opacity: 1; }
  87%, 100% { translate: 0 0; opacity: 0; }
}
@keyframes mo-pk-wave {
  0%, 30.3% { rotate: 0deg; animation-timing-function: cubic-bezier(.45,0,.55,1); }
  37.3% { rotate: -14deg; } 44.3% { rotate: 12deg; } 51.3% { rotate: -9deg; } 58.3% { rotate: 5deg; }
  64.2%, 100% { rotate: 0deg; }
}
@keyframes mo-pk-bump { 0%, 82.8% { scale: 1; } 86.3% { scale: 1.06 .95; } 92.2% { scale: .98 1.02; } 98%, 100% { scale: 1; } }
@keyframes mo-pk-ping {
  0%, 23.3% { transform: scale(1); } 26.8% { transform: scale(1.3); } 32.7%, 84% { transform: scale(1); }
  87.5% { transform: scale(1.35); } 93.3% { transform: scale(.92); } 99.2%, 100% { transform: scale(1); }
}

/* ── "Unread dot that breathes" (att-unread-breathe): the dot breathes on a slow
   sine over a bloom of its own gold, the row's wine wash breathes with it and a
   sheen crosses the unread row now and then — on the mail rows, on the menu rows
   that carry a badge (the badge is their dot), and on the hamburger's ping while it
   marks an unread letter. ── */
@keyframes mo-breathe-dot { 0%, 100% { scale: .9; } 50% { scale: 1.25; } }
@keyframes mo-breathe-badge { 0%, 100% { scale: .96; } 50% { scale: 1.1; } }
.strip.v2 .topdoors [data-menu] .ping.mo-breathe, .row.unread .dot.mo-breathe {
  animation: mo-breathe-dot 2.8s ease-in-out infinite; animation-delay: var(--mo-ph, 0ms); }
.menu .badge.mo-breathe { animation: mo-breathe-badge 2.8s ease-in-out infinite; animation-delay: var(--mo-ph, 0ms); }
.row.mo-row, .menu button.mo-row { position: relative; isolation: isolate; }
.mo-row > .mo-wash { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none;
  background: linear-gradient(90deg, rgba(102,2,60,.55), rgba(102,2,60,.12) 70%, rgba(102,2,60,0));
  animation: mo-wash 2.8s ease-in-out infinite; animation-delay: var(--mo-ph, 0ms); }
.mo-row > .mo-wash > i { position: absolute; left: 0; top: 0; width: 60px; height: 100%; translate: -80px 0;
  background: linear-gradient(100deg, rgba(228,224,216,0), rgba(228,224,216,.14), rgba(228,224,216,0));
  animation: mo-shn 5.6s cubic-bezier(.4,0,.2,1) infinite; animation-delay: var(--mo-ph, 0ms); }
/* the menu's first and last rows sit inside its rounded corners */
.menu button.mo-row:first-child > .mo-wash { border-radius: 9px 9px 0 0; }
.menu button.mo-row:last-child > .mo-wash { border-radius: 0 0 9px 9px; }
.row.mo-row > .mo-bloom { position: absolute; left: 6px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(208,178,122,.6), rgba(208,178,122,0));
  animation: mo-bloom 2.8s ease-in-out infinite; animation-delay: var(--mo-ph, 0ms); }
@keyframes mo-wash { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mo-shn { 0%, 70% { translate: -80px 0; } 90%, 100% { translate: 420px 0; } }
@keyframes mo-bloom { 0%, 100% { opacity: .15; scale: .7; } 50% { opacity: .9; scale: 1.25; } }

/* ── HIS DOT ON THE REWARD DOOR (docs/354) — the gear slot's dot (docs/347: bigger,
   yellower, no black ring), on the top-right corner of the door's ground, while the
   day's gift waits. It replaced the "Bobbing tooltip", which hung 100px below the
   door and took the right column's third row. A child of the door, so a tap on it
   IS a tap on the door; it takes none itself. ── */
.door .ping { position: absolute; left: 65px; top: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: #ffc300; z-index: 4; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  /* nothing moves; nothing is hidden or held because of it (app.js marks nothing
     either) — the tooltip still says what it says, standing still */
  .view.mo-arrive .hub-art, .nav.mo-arrive, .view.mo-arrive .strip.v2 .ident, .view.mo-arrive .strip.v2 .pill,
  .view.mo-arrive .strip.v2 .topdoors button, .view.mo-arrive .strip.v2 .topdoors .ping, .view.mo-arrive .door .ground,
  .view.mo-arrive .door img, .view.mo-arrive .door .dsym, .view.mo-arrive .door > span:not(.ground), .view.mo-arrive .keywrap, .view.mo-arrive .multi,
  .strip.v2 .topdoors.mo-peek [data-menu], .strip.v2 .topdoors .ping, .row.unread .dot, .menu .badge,
  .mo-row > .mo-wash, .mo-row > .mo-wash > i, .row.mo-row > .mo-bloom, .door .ping { animation: none !important; }
  .mo-rip,
  .strip.v2 .topdoors .mo-letter, .mo-row > .mo-wash > i { display: none; }
  .key.gold.bone.mo-dn { transform: none; }
}

/* ── MOTION (docs/353) · hub ──────────────────────────────────────────────────────
   Three more of his picks out of the gallery, ported onto the hub and the header;
   app.js's `mo2Paint` says WHEN, this says HOW. Transform and opacity only (the
   individual `translate` / `scale` / `rotate` where something else owns `transform`),
   nothing here takes a tap, and under reduced motion none of it plays. */

/* ── the hub's five door symbols, a little smaller (his, 2026-09-26: "make symbols on
   icons in hub a little smaller"): 56 -> 48px, -14%, on the same centre of the same
   64px ground. ── */
.door img { left: 18px; top: 8px; width: 48px; height: 48px; }

/* ── THE HUB'S FIVE SYMBOLS ARE ALIVE, ALL THE TIME, VERY SLOWLY (docs/369) ─────────────
   His, 2026-09-28: *"From 'http://localhost:7778/?cat=icons', add animations for Chest,
   forge, consumables, quests and rewards icons ... playing out non-stop on loop, but very
   slowly ... Delete current animation of chest icon, its too dynamic and ugly - it should
   be slow and slight."* Five cards off the gallery's icons shelf
   (scripts/anim_gallery/demos/96_icons.js), ported onto the door's own 48px symbol. app.js's
   doorSym draws his picture again for every part that moves; THIS is where each part is
   cut and how it moves. The REWARD door's docs/353 gift lid, which lived here, is gone:
   one animation per symbol.
   ⭐ THE CUTS ARE HIS PICTURE'S OWN, measured off the PNG's alpha (docs/369 §3): through a
   transparent gap wherever the picture has one (the apple's leaf, the forge's hammer, the
   chest's seam — stepped round the lock's hasp so no ink is split), and with a one-row
   overlap where the ink runs across (the scroll's side edges, the bow's knot), so at rest
   the parts ARE his drawing. Every cut is a clip-path on a full-size copy (the `.door img`
   box, 48px at 18,8), so a pivot is in the DOOR's pixels: x = 18 + 48·sx/256,
   y = 8 + 48·sy/256 for a source pixel (sx, sy). A card's 96px design box is x0.5 here.
   ⭐ NON-STOP AND SLOW: 9-13s a loop (the cards are 3.6-5.4s), moving for nearly all of it —
   a breath, never a burst and a long rest (the currencies are the ones that rest). The
   period is app.js's (`--dp`) and so is the wall-clock phase (`--dph`): render() never
   restarts one, and the five periods differ so the wall never moves in step.
   ⛔ Transform and opacity only, on the INDIVIDUAL properties; nothing takes a tap; a
   static layer per part (`will-change`) so the parts rasterise alike and the symbol matches
   itself at rest (docs/354's lesson on the gift). ── */
.door .dsym { position: absolute; inset: 0; pointer-events: none; transform-origin: 42px 32px; }
.door .dsym i { position: absolute; pointer-events: none; font-style: normal; }
.door .dsym > i { animation-duration: var(--dp, 10s); animation-delay: var(--dph, 0ms);
  animation-timing-function: ease-in-out; animation-iteration-count: infinite; }
.door .dsym .ds-p { inset: 0; }
.door .dsym .ds-p img { will-change: transform; }

/* chests (ico-door-chest, 10s): the lid breathes on its hinge — up 1.4px and a hair wider,
   a small give, and down — while a line of gold light swells in the seam and two motes rise
   out of it. The cut runs along the transparent seam (row 107) and steps up to row 104 round
   the lock's hasp, which belongs to the body. */
.dsym.ds-chest .ds-base img { clip-path: polygon(0 41.796875%, 42.1875% 41.796875%, 42.1875% 40.625%, 57.8125% 40.625%,
  57.8125% 41.796875%, 100% 41.796875%, 100% 100%, 0 100%); }
.dsym.ds-chest .ds-lid img { clip-path: polygon(0 0, 100% 0, 100% 41.796875%, 57.8125% 41.796875%, 57.8125% 40.625%,
  42.1875% 40.625%, 42.1875% 41.796875%, 0 41.796875%); }
.dsym.ds-chest .ds-lid { transform-origin: 42px 27.875px; animation-name: mo-ds-chest-lid; }
.dsym.ds-chest .ds-seam { left: 22.5px; top: 26px; width: 39px; height: 5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fff2c4 0%, rgba(255,195,0,.85) 45%, rgba(255,195,0,0));
  animation-name: mo-ds-chest-seam; }
.dsym.ds-chest .ds-mote { top: 26.75px; width: 1.5px; height: 1.5px; border-radius: 50%; background: #ffe39a; opacity: 0;
  animation-name: mo-ds-chest-mote; animation-timing-function: ease-out; }
.dsym.ds-chest .ds-m1 { left: 35.25px; }
.dsym.ds-chest .ds-m2 { left: 49.125px; animation-name: mo-ds-chest-mote2; }
@keyframes mo-ds-chest-lid {
  0%, 100% { translate: 0 0; scale: 1 1; }
  42% { translate: 0 -1.4px; scale: 1.012 1; }
  58% { translate: 0 -1.15px; scale: 1.008 1; }
}
@keyframes mo-ds-chest-seam {
  0%, 100% { opacity: 0; scale: .45 .6; }
  42% { opacity: .8; scale: 1 1; }
  58% { opacity: .65; scale: .95 .9; }
}
@keyframes mo-ds-chest-mote {
  0%, 36% { opacity: 0; translate: 0 0; }
  44% { opacity: .85; translate: -.3px -2px; }
  72%, 100% { opacity: 0; translate: -1.5px -11px; }
}
@keyframes mo-ds-chest-mote2 {
  0%, 42% { opacity: 0; translate: 0 0; }
  50% { opacity: .85; translate: .2px -2px; }
  78%, 100% { opacity: 0; translate: 1px -10px; }
}

/* forge (ico-door-forge, 12s): the smith lifts his hammer slowly about his own hand (six
   seconds up), lets it fall, it rebounds and settles; the anvil face glows like a coal under
   a layer masked to his ink, flares on the blow, and three sparks jump. The hammer is alone
   in the picture's top-right corner (x >= 172, y < 118: nothing else is inked there). */
.dsym.ds-forge .ds-base img { clip-path: polygon(0 0, 67.1875% 0, 67.1875% 46.09375%, 100% 46.09375%, 100% 100%, 0 100%); }
.dsym.ds-forge .ds-ham img { clip-path: inset(0 0 53.90625% 67.1875%); }
.dsym.ds-forge .ds-ham { transform-origin: 54.9375px 28.625px; animation-name: mo-ds-forge-ham; }
.dsym.ds-forge .ds-heat { left: 18px; top: 8px; width: 48px; height: 48px; opacity: .2;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; animation-name: mo-ds-forge-heat; }
.dsym.ds-forge .ds-hot { left: 13.125px; top: 24px; width: 24.375px; height: 7.875px; border-radius: 50%;
  background: radial-gradient(closest-side, #ffcf5a 0%, rgba(230,177,77,.8) 40%, rgba(230,177,77,0)); }
.dsym.ds-forge .ds-spk { left: 46.125px; top: 33.875px; width: 1.5px; height: 1.5px; border-radius: 50%; background: #fff2c4;
  opacity: 0; animation-timing-function: linear; }
.dsym.ds-forge .ds-s1 { animation-name: mo-ds-forge-s1; }
.dsym.ds-forge .ds-s2 { animation-name: mo-ds-forge-s2; }
.dsym.ds-forge .ds-s3 { animation-name: mo-ds-forge-s3; }
@keyframes mo-ds-forge-ham {
  0% { rotate: 0deg; animation-timing-function: cubic-bezier(.45,0,.55,1); }
  50% { rotate: 10deg; animation-timing-function: cubic-bezier(.45,0,.55,1); }
  57% { rotate: 11deg; animation-timing-function: cubic-bezier(.6,0,1,.6); }
  62% { rotate: -4deg; animation-timing-function: cubic-bezier(.2,.8,.4,1); }
  69% { rotate: 1.2deg; }
  77% { rotate: -.4deg; }
  86%, 100% { rotate: 0deg; }
}
@keyframes mo-ds-forge-heat {
  0%, 100% { opacity: .2; }
  22% { opacity: .27; }
  42% { opacity: .17; }
  56% { opacity: .24; }
  61.5% { opacity: .2; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  63% { opacity: .85; }
  72% { opacity: .5; }
  86% { opacity: .28; }
}
@keyframes mo-ds-forge-s1 {
  0%, 61.8% { opacity: 0; translate: 0 0; scale: 1; }
  62.4% { opacity: .9; translate: 0 0; scale: 1; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  73%, 100% { opacity: 0; translate: -6px -5px; scale: .5; }
}
@keyframes mo-ds-forge-s2 {
  0%, 61.8% { opacity: 0; translate: 0 0; scale: 1; }
  62.4% { opacity: .9; translate: 0 0; scale: 1; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  71%, 100% { opacity: 0; translate: 1.5px -7.5px; scale: .5; }
}
@keyframes mo-ds-forge-s3 {
  0%, 61.8% { opacity: 0; translate: 0 0; scale: 1; }
  62.4% { opacity: .9; translate: 0 0; scale: 1; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  75%, 100% { opacity: 0; translate: 6.5px -3.5px; scale: .5; }
}

/* consumables (ico-door-apple, 13s): the leaf sways slowly from its stem, a gust pushes it
   over and it shivers back — half-periods of half a second, not the card's fifth — and the
   apple leans a tenth as far, a beat behind it. The leaf is its own shape above a transparent
   gap (rows 60-71); the cut is in the middle of it. */
.dsym.ds-apple .ds-body img { clip-path: inset(25.78125% 0 0 0); }
.dsym.ds-apple .ds-leaf img { clip-path: inset(0 0 74.21875% 0); }
.dsym.ds-apple .ds-body { transform-origin: 42px 56px; animation-name: mo-ds-apple-body; }
.dsym.ds-apple .ds-leaf { transform-origin: 40.875px 19.25px; animation-name: mo-ds-apple-leaf; }
@keyframes mo-ds-apple-leaf {
  0%, 100% { rotate: 0deg; }
  14% { rotate: 2deg; }
  28% { rotate: -1.4deg; }
  38% { rotate: 0deg; animation-timing-function: cubic-bezier(.2,.7,.3,1); }
  42% { rotate: -9deg; }
  46% { rotate: -4deg; }
  50% { rotate: -7.5deg; }
  54% { rotate: -3deg; }
  58% { rotate: -5deg; }
  63% { rotate: -1.5deg; }
  70% { rotate: -2.2deg; }
  80% { rotate: 1.4deg; }
  90% { rotate: -.6deg; }
}
@keyframes mo-ds-apple-body {
  0%, 100% { rotate: 0deg; }
  15% { rotate: .2deg; }
  29% { rotate: -.14deg; }
  39% { rotate: 0deg; animation-timing-function: cubic-bezier(.2,.7,.3,1); }
  43% { rotate: -.9deg; }
  47% { rotate: -.4deg; }
  51% { rotate: -.75deg; }
  55% { rotate: -.3deg; }
  59% { rotate: -.5deg; }
  64% { rotate: -.15deg; }
  71% { rotate: -.22deg; }
  81% { rotate: .14deg; }
  91% { rotate: -.06deg; }
}

/* quests (ico-door-scroll, 11s): the parchment stretches 4% from its top edge while the
   curled roll at the bottom travels down by exactly the stretch at the join, so the join
   never opens; a give, a roll back with the smallest overshoot. The cut is at row 205, where
   only the scroll's two side edges cross (13 inked pixels, the card's row 212 crossed 153),
   with a row of overlap. The two loops share their keyframe offsets and easing, so at every
   instant the roll's travel IS the stretch: 205 rows x 0.1875px x the stretch. */
.dsym.ds-scroll .ds-bd img { clip-path: inset(0 0 19.53125% 0); }
.dsym.ds-scroll .ds-rl img { clip-path: inset(80.078125% 0 0 0); }
.dsym.ds-scroll .ds-bd { transform-origin: 42px 8px; animation-name: mo-ds-scroll-bd; }
.dsym.ds-scroll .ds-rl { animation-name: mo-ds-scroll-rl; }
@keyframes mo-ds-scroll-bd {
  0%, 100% { scale: 1 1; }
  44% { scale: 1 1.04; }
  58% { scale: 1 1.036; }
  90% { scale: 1 .997; }
}
@keyframes mo-ds-scroll-rl {
  0%, 100% { translate: 0 0; }
  44% { translate: 0 1.5375px; }
  58% { translate: 0 1.38375px; }
  90% { translate: 0 -.1153px; }
}

/* rewards (ico-door-reward, 9s): only the bow moves — lifted out of his gift at the knot, it
   breathes in two beats (in, a small give, settle) and once more, smaller. His yellow dot
   (docs/354) is the door's `.ping` and stays exactly where it is, still: it says the gift
   waits; the bow only lives, gift or no gift. */
.dsym.ds-gift .ds-box img { clip-path: inset(26.953125% 0 0 0); }
.dsym.ds-gift .ds-bow img { clip-path: inset(0 0 72.65625% 0); }
.dsym.ds-gift .ds-bow { transform-origin: 42px 20.75px; animation-name: mo-ds-gift-bow; }
@keyframes mo-ds-gift-bow {
  0%, 100% { scale: 1 1; rotate: 0deg; }
  26% { scale: 1.035 1.07; rotate: -1deg; }
  40% { scale: .99 .975; rotate: .4deg; }
  54% { scale: 1.012 1.022; rotate: 0deg; }
  68% { scale: 1 1; rotate: 0deg; }
  84% { scale: 1.012 1.025; rotate: -.3deg; }
}

@media (prefers-reduced-motion: reduce) {
  /* app.js draws the plain picture under stillness; this is the guard for the instant between */
  .door .dsym > i { animation: none !important; }
  .door .dsym .ds-seam, .door .dsym .ds-mote, .door .dsym .ds-heat, .door .dsym .ds-spk { display: none; }
}

/* ── "A warning that closes in — amber, never red" (att2-converge): every ping in the
   game travels OUT, a warning travels IN. Three amber outlines of the energy pill's own
   shape converge onto it one after another (behind it, so the last one lands under its
   edge), the pill flinches as it lands, the number shakes its head, the bolt dims for a
   beat, and NEED N drops out from under it. One cycle of the card's 3.4s per refused
   press. On a screen with no energy pill it closes in on the refused key itself. ── */
.mo2-warn > .mo2-wfx { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.mo2-wfx i, .mo2-wfx b { font-style: normal; }
.mo2-wfx .amb { position: absolute; left: -17%; right: -17%; top: -59%; bottom: -59%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(230,177,77,.4), rgba(230,177,77,0));
  animation: mo2-wn-amb 3.4s both; animation-delay: var(--mo2-wn, 0ms); }
.mo2-wfx .rg { position: absolute; inset: 0; box-sizing: border-box; border-radius: inherit; border: 2.5px solid #e6b14d; opacity: 0;
  animation: mo2-wn-rg 3.4s cubic-bezier(.3,0,.5,1) both; animation-delay: var(--mo2-wn, 0ms); }
.mo2-wfx .rg.r1 { animation-delay: calc(var(--mo2-wn, 0ms) + .24s); }
.mo2-wfx .rg.r2 { animation-delay: calc(var(--mo2-wn, 0ms) + .48s); }
/* the tag hangs below the energy clock that sits under the pill */
.mo2-wfx .tag { position: absolute; left: 50%; top: calc(100% + 17px); height: 18px; padding: 0 8px; box-sizing: border-box;
  transform: translateX(-50%); border-radius: 9px; background: #221e1f; border: 1.5px solid #e6b14d; white-space: nowrap;
  font-family: var(--sans); font-weight: 700; font-size: 9.5px; line-height: 15px; letter-spacing: 1.2px; color: #e6b14d;
  opacity: 0; animation: mo2-wn-tag 3.4s both; animation-delay: var(--mo2-wn, 0ms); }
.mo2-onkey > .mo2-wfx .tag { top: calc(100% + 12px); height: 24px; padding: 0 12px; border-radius: 12px; font-size: 11px; line-height: 21px; }
.strip .pill.stam.mo2-warn.mo2-onpill, .key.mo2-warn.mo2-onkey { animation: mo2-wn-pill 3.4s both; animation-delay: var(--mo2-wn, 0ms); }
.strip .pill.stam.mo2-warn .num { animation: mo2-wn-n 3.4s both; animation-delay: var(--mo2-wn, 0ms); }
/* the bolt dims under a veil of its own socket's ground, so nothing that animates the
   symbol itself is overridden */
.strip.v2 .pill.stam.mo2-warn .sock::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: #191617;
  pointer-events: none; opacity: 0; animation: mo2-wn-bo 3.4s both; animation-delay: var(--mo2-wn, 0ms); }
@keyframes mo2-wn-amb { 0%, 20% { opacity: 0; scale: .9; } 41% { opacity: .9; scale: 1.05; } 70% { opacity: .15; scale: .9; } 100% { opacity: 0; scale: .9; } }
@keyframes mo2-wn-rg { 0%, 4% { opacity: 0; scale: 1.5 2.9; } 12% { opacity: .8; scale: 1.36 2.1; } 26% { opacity: .95; scale: 1.02; }
  29% { opacity: 0; scale: .97; } 100% { opacity: 0; scale: .97; } }
@keyframes mo2-wn-pill { 0%, 40% { scale: 1; } 42% { scale: .93; } 46% { scale: 1.02; } 50%, 100% { scale: 1; } }
@keyframes mo2-wn-n { 0%, 42% { translate: 0 0; } 44% { translate: -4px 0; } 46% { translate: 3.5px 0; } 48% { translate: -2.5px 0; }
  50% { translate: 1.5px 0; } 52%, 100% { translate: 0 0; } }
@keyframes mo2-wn-bo { 0%, 40% { opacity: 0; } 42% { opacity: .65; } 52% { opacity: .5; } 60%, 100% { opacity: 0; } }
@keyframes mo2-wn-tag {
  0%, 44% { opacity: 0; translate: 0 -12px; scale: .9; animation-timing-function: cubic-bezier(.2,.9,.3,1.3); }
  51% { opacity: 1; translate: 0 0; scale: 1; } 88% { opacity: 1; translate: 0 0; } 95%, 100% { opacity: 0; translate: 0 -4px; }
}

/* ── "Level up — ray fan and number roll" (rew-levelup-rays): on the medal, at half the
   card's size (its badge is 84px, the medal's core 33): a glow blooms, two ray fans
   turn opposite ways at different speeds, a gold ring leaves, sparks fly, the badge
   pops and the old level rolls to the new one with an overshoot, LEVEL UP drops in
   letter by letter under the medal, and the whole of it fades back to the medal. A
   layer beside #app, anchored on the medal's centre (app.js), under the toasts and
   the screen-change cover. Before it plays (`.wait`) only the badge is there, holding
   the OLD number over the medal's new one. ── */
.mo2-lv { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 12; pointer-events: none; }
.mo2-lv i, .mo2-lv b, .mo2-lv small { font-style: normal; pointer-events: none; }
.mo2-lv.wait > :not(.bdg) { display: none; }
.mo2-lv.go { animation: mo2-lv-out .5s ease-in 2.45s both; }
.mo2-lv .glow { position: absolute; left: -55px; top: -55px; width: 110px; height: 110px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,214,130,.6), rgba(230,177,77,.14) 55%, rgba(230,177,77,0));
  animation: mo2-lv-glow 1.4s .45s ease-out both; }
.mo2-lv .rays { position: absolute; left: -75px; top: -75px; width: 150px; height: 150px; opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  animation: mo2-lv-in .8s .45s cubic-bezier(.2,.9,.3,1.25) both; }
.mo2-lv .rays svg { display: block; animation: mo2-lv-spin 3s linear both; }
.mo2-lv .rays.r2 svg { animation-name: mo2-lv-spin2; }
.mo2-lv .ring { position: absolute; left: -21px; top: -21px; width: 42px; height: 42px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #FFC300; opacity: 0; animation: mo2-lv-ring .7s .5s cubic-bezier(.2,.7,.3,1) both; }
.mo2-lv .pw { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mo2-lv .p { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #fff1c9;
  box-shadow: 0 0 0 1.5px rgba(255,195,0,.35); opacity: 0; animation: mo2-lv-p .8s .5s cubic-bezier(.15,.7,.3,1) both; }
/* the badge is the medal's own core, to the pixel (.strip.v2 .lvcore) */
.mo2-lv .bdg { position: absolute; left: -16.5px; top: -16.5px; width: 33px; height: 33px; border-radius: 50%;
  background: #191617; box-shadow: inset 0 2px 3px rgba(0,0,0,.55); }
.mo2-lv .bdg small { position: absolute; left: 0; right: 0; top: 3px; height: 9px; line-height: 9px; text-align: center;
  font-family: var(--sans); font-weight: 700; font-size: 7px; letter-spacing: 1.2px; padding-left: 1.2px; color: var(--gold); }
.mo2-lv .bdg .num { position: absolute; left: 0; right: 0; top: 9.5px; height: 20px; overflow: hidden; }
.mo2-lv .bdg .col { display: block; }
.mo2-lv .bdg .col b { display: block; height: 20px; line-height: 20px; text-align: center; font-family: 'Spline Sans', var(--sans);
  font-weight: 700; font-size: 18px; color: var(--ink); }
.mo2-lv.go .bdg { animation: mo2-lv-badge 1.2s cubic-bezier(.3,.8,.4,1) both; }
.mo2-lv.go .bdg .col { animation: mo2-lv-roll .55s .5s cubic-bezier(.3,1.5,.5,1) both; }
.mo2-lv .word { position: absolute; left: -21px; top: 27px; white-space: nowrap; font-family: var(--serif); font-size: 18px;
  letter-spacing: 2px; color: #e6b14d; text-shadow: 0 2px 0 #191617, 0 0 10px rgba(0,0,0,.6); }
.mo2-lv .word b { display: inline-block; font-weight: 400; animation: mo2-lv-l .5s calc(.62s + var(--i) * .05s) cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes mo2-lv-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mo2-lv-glow { 0% { opacity: 0; scale: .4; } 25% { opacity: 1; scale: 1.15; } 100% { opacity: .75; scale: 1; } }
@keyframes mo2-lv-in { 0% { opacity: 0; scale: .1; } 100% { opacity: 1; scale: 1; } }
@keyframes mo2-lv-spin { from { rotate: 0deg; } to { rotate: 60deg; } }
@keyframes mo2-lv-spin2 { from { rotate: 0deg; } to { rotate: -40deg; } }
@keyframes mo2-lv-ring { 0% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 2.3; } }
@keyframes mo2-lv-p { 0% { opacity: 1; translate: 0 -19px; scale: 1.2; } 100% { opacity: 0; translate: 0 var(--r); scale: .3; } }
@keyframes mo2-lv-badge { 0% { scale: 1; } 20% { scale: 1.08; } 34% { scale: 1; } 42% { scale: 1.22; } 58% { scale: .95; } 72% { scale: 1.02; } 100% { scale: 1; } }
@keyframes mo2-lv-roll { from { translate: 0 0; } to { translate: 0 calc(var(--mo2-rows, 1) * -20px); } }
@keyframes mo2-lv-l { 0% { opacity: 0; translate: 0 -16px; scale: 1.5; } 100% { opacity: 1; translate: 0 0; scale: 1; } }

@media (prefers-reduced-motion: reduce) {
  /* app.js plays none of these; this is the guard for the instant between */
  .strip .pill.stam.mo2-warn.mo2-onpill, .key.mo2-warn.mo2-onkey, .strip .pill.stam.mo2-warn .num { animation: none !important; }
  .mo2-warn > .mo2-wfx, .strip.v2 .pill.stam.mo2-warn .sock::after, .mo2-lv { display: none; }
}

/* ── MOTION (docs/369) · the header — THE THREE CURRENCIES, OFF HIS :7778 CARDS, MOVING A
   FIFTH OF THE TIME ──────────────────────────────────────────────────────────────────────
   His, 2026-09-28: *"add animations for PB, souls and energy ... the animations for
   currencies should be playing only 20% of the time and very slow too."* The docs/355 loops
   (the soul's wander, the charge's crackle, the coin's bob, their afterimages and pools)
   are DELETED: one animation per picture, never two painters on one symbol.
   app.js's pillPaint puts `cu-live`, the cycle (`--pp`, 36s) and where in it this pill is
   (`--pl`, the three staggered a third apart) on the pill after every render. Every
   keyframe below moves ONLY in its first 20% (7.2s) and is his plain symbol for the other
   80%: at 0% and from 20% on, every property is at its rest value.
   The symbol sits in `.cu-hole` — the socket's inner circle, 21px inside the 1.5px rim —
   because the souls' ghost hides behind that rim. Everything below is in the hole's pixels,
   his 14px symbol at 3.5,3.5, so a card's 96px design box is x14/96 here.
   ⛔ Transform and opacity only, on the INDIVIDUAL properties; nothing takes a tap. ── */
.strip.v2 .pill .sock .cu-hole { position: relative; width: 21px; height: 21px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; isolation: isolate; }
.strip.v2 .pill .cu-hole img { position: relative; z-index: 1; }
.strip.v2 .pill .cu-hole i { position: absolute; pointer-events: none; font-style: normal; }
.strip.v2 .pill.cu-live .cu-hole img, .strip.v2 .pill.cu-live .cu-hole i {
  animation-duration: var(--pp, 36s); animation-delay: var(--pl, 0ms);
  animation-timing-function: ease-in-out; animation-iteration-count: infinite; }

/* energy (ico-pill-bolt): his bolt dims, a fill rises inside it — masked to his own ink — in
   six hard ticks of 0.72s (the card's are 0.6s: slower, never faster) with his #FFC300 riding
   its top edge, it flashes once when
   full and glows, and his bolt is back. */
.strip.v2 .pill.stam.cu-live .cu-hole img { animation-name: mo-cu-bolt-dim; }
.strip.v2 .pill.stam .cu-glo { inset: 0; z-index: 0; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,195,0,.5), rgba(255,195,0,0)); }
.strip.v2 .pill.stam .cu-fm { left: 3.5px; top: 3.5px; width: 14px; height: 14px; z-index: 2;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.strip.v2 .pill.stam .cu-fill { left: 0; top: 0; width: 14px; height: 14px; opacity: 0;
  background: linear-gradient(#FFC300 0 .75px, #fff2c4 .75px 1.2px, #e4e0d8 1.2px); }
.strip.v2 .pill.stam .cu-fl { inset: 0; background: #ffffff; opacity: 0; }
.strip.v2 .pill.stam.cu-live .cu-glo { animation-name: mo-cu-bolt-glow; }
.strip.v2 .pill.stam.cu-live .cu-fill { animation-name: mo-cu-bolt-fill; }
.strip.v2 .pill.stam.cu-live .cu-fl { animation-name: mo-cu-bolt-flash; animation-timing-function: linear; }
@keyframes mo-cu-bolt-dim { 0% { opacity: 1; } 1.5%, 14% { opacity: .3; } 15.5%, 100% { opacity: 1; } }
@keyframes mo-cu-bolt-fill {
  0% { translate: 0 14px; opacity: 1; }
  1.5% { translate: 0 14px; opacity: 1; animation-timing-function: steps(6, end); }
  13.5%, 16% { translate: 0 -1px; opacity: 1; }
  19.5%, 100% { translate: 0 -1px; opacity: 0; }
}
@keyframes mo-cu-bolt-flash { 0%, 13.4% { opacity: 0; } 14% { opacity: .9; } 16.5%, 100% { opacity: 0; } }
@keyframes mo-cu-bolt-glow {
  0%, 13.2% { opacity: 0; scale: .8; }
  14.6% { opacity: 1; scale: 1; }
  17% { opacity: .5; scale: .95; }
  19.8%, 100% { opacity: 0; scale: .8; }
}

/* souls (ico-pill-soul): the shy ghost ducks into its socket with a small bounce, peeks with
   only its eyes above the lower rim, looks left, looks right, and pops back up with an
   overshoot — nothing is drawn but his ghost and the socket it already lives in. */
.strip.v2 .pill.souls.cu-live .cu-hole img { transform-origin: 7px 14px; animation-name: mo-cu-soul; }
@keyframes mo-cu-soul {
  0% { translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(.55,0,.85,.45); }
  3% { translate: 0 12.5px; rotate: 0deg; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  4.5% { translate: 0 11.5px; rotate: 0deg; }
  7%, 8.5% { translate: -.75px 11.95px; rotate: -6deg; }
  11.5%, 13% { translate: .75px 10.35px; rotate: 5deg; }
  15% { translate: 0 11.5px; rotate: 0deg; animation-timing-function: cubic-bezier(.3,.7,.4,1.25); }
  19.5%, 100% { translate: 0 0; rotate: 0deg; }
}

/* PB (ico-pill-coin): one slow whole turn — edge-on, round, edge-on, round, a quarter every
   1.8s — never leaving its socket; its face darkens toward the edge (a shade masked to its
   own ink) and a lit rim shows for the instant it is edge-on. */
.strip.v2 .pill.pb.cu-live .cu-hole img { animation-name: mo-cu-coin; }
.strip.v2 .pill.pb .cu-shade { left: 3.5px; top: 3.5px; width: 14px; height: 14px; z-index: 2; opacity: 0;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }
.strip.v2 .pill.pb .cu-sh { inset: 0; background: linear-gradient(90deg, #6f6658, #2a2526); }
.strip.v2 .pill.pb .cu-rim { left: 9.9px; top: 4.2px; width: 1.2px; height: 12.6px; border-radius: .6px; z-index: 3; opacity: 0;
  background: linear-gradient(90deg, #8c8373, #f4efe6 50%, #8c8373); }
.strip.v2 .pill.pb.cu-live .cu-shade { animation-name: mo-cu-coin-shade; }
.strip.v2 .pill.pb.cu-live .cu-rim { animation-name: mo-cu-coin-rim; animation-timing-function: linear; }
@keyframes mo-cu-coin {
  0% { scale: 1 1; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  5% { scale: .05 1; animation-timing-function: cubic-bezier(0,.55,.45,1); }
  10% { scale: 1 1; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  15% { scale: .05 1; animation-timing-function: cubic-bezier(0,.55,.45,1); }
  20%, 100% { scale: 1 1; }
}
@keyframes mo-cu-coin-shade {
  0% { scale: 1 1; opacity: 0; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  5% { scale: .05 1; opacity: .7; animation-timing-function: cubic-bezier(0,.55,.45,1); }
  10% { scale: 1 1; opacity: 0; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  15% { scale: .05 1; opacity: .7; animation-timing-function: cubic-bezier(0,.55,.45,1); }
  20%, 100% { scale: 1 1; opacity: 0; }
}
@keyframes mo-cu-coin-rim { 0%, 4.3% { opacity: 0; } 5% { opacity: 1; } 5.7%, 14.3% { opacity: 0; } 15% { opacity: 1; } 15.7%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  /* app.js marks none of these; this is the guard for the instant between */
  .strip.v2 .pill .cu-hole img, .strip.v2 .pill .cu-hole i { animation: none !important; }
  .strip.v2 .pill .cu-deco { display: none; }
}

/* ── MOTION (docs/353) · gear ─────────────────────────────────────────────────────
   Five of his, on the gear screen, the picker, the consumables screen and the shop.
   Transform and opacity only (root contract, docs/77); every layer is painted once and
   then moved or faded; nothing here takes a tap; under reduced motion app.js starts
   none of it and the last rule below pins anything that could still move.  */

/* 1 · a piece lands with its flare (frm-gear-equip-flare) — the tier sets the colour and
   the strength (app.js FLARE_POWER): --fc/--fl are its frame's halo and core light */
.gear2 .slot .tile[data-eq="wait"] { opacity: 0; }
.gear2 .slot .tile[data-eq="land"] { animation: m2-eqland 575ms linear both; animation-delay: var(--fe, 0ms); }
@keyframes m2-eqland {
  0% { opacity: 0; transform: translateY(var(--fdy, -26px)) scale(var(--fds, 1.34)); animation-timing-function: cubic-bezier(.6,0,1,.5); }
  17.4% { opacity: 1; }
  43.5% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  56.5% { transform: translateY(2px) scale(1.06, .9); }
  78.3% { transform: translateY(-1px) scale(.98, 1.03); }
  100% { opacity: 1; transform: none; }
}
/* behind EVERY slot (z -1 in the column's own stacking context): the rays open into the gaps and
   out past the column, never over a neighbour's frame or picture */
.gear2 .slot > .eqfl { position: absolute; left: 40px; top: 40px; width: 0; height: 0; z-index: -1; pointer-events: none; }
.eqfl > i { position: absolute; display: block; opacity: 0; pointer-events: none; }
.eqfl .rays { left: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--fray) 0deg 5deg, rgba(0,0,0,0) 9deg 24deg);
  animation: m2-rays 1200ms cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--fe, 0ms) + 250ms); }
.eqfl .rays.b { animation-name: m2-rays-b; }
@keyframes m2-rays { 0% { opacity: 0; transform: scale(.35) rotate(0deg); } 8.3% { opacity: var(--fry); }
  100% { opacity: 0; transform: scale(1.15) rotate(28deg); } }
@keyframes m2-rays-b { 0% { opacity: 0; transform: scale(.3) rotate(12deg); } 10% { opacity: calc(var(--fry) * .7); }
  100% { opacity: 0; transform: scale(1.3) rotate(-24deg); } }
.eqfl .core { left: -80px; top: -80px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,248,236,.95), var(--fc55) 40%, rgba(0,0,0,0));
  animation: m2-core 700ms cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--fe, 0ms) + 250ms); }
@keyframes m2-core { 0% { opacity: 0; transform: scale(.5); } 7.1% { opacity: var(--fco); } 100% { opacity: 0; transform: scale(1.25); } }
.eqfl .ring { left: -42px; top: -42px; width: 84px; height: 84px; box-sizing: border-box; border-radius: 16px;
  border: 2px solid var(--fc); animation: m2-ring 750ms cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--fe, 0ms) + 250ms); }
.eqfl .ring.b { border-color: var(--fl); border-width: 1.5px; animation-delay: calc(var(--fe, 0ms) + 390ms); }
@keyframes m2-ring { 0% { opacity: 0; transform: scale(1); } 4% { opacity: var(--fco); } 100% { opacity: 0; transform: scale(2.1); } }
.eqfl .sp { left: -3px; top: -3px; width: 6px; height: 6px; background: var(--fl); box-shadow: 0 0 6px 1px var(--fc80);
  animation: m2-spark 800ms cubic-bezier(.1,.75,.3,1) both; animation-delay: calc(var(--fe, 0ms) + 250ms); }
@keyframes m2-spark { 0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(1); } 3.75% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(45deg) scale(.3); } }
/* over the piece: the white-out as it seats, then the sheen crossing it */
.gear2 .slot > .eqwh { position: absolute; left: 0; top: 0; width: 80px; height: 80px; border-radius: 14px; overflow: hidden;
  z-index: 3; pointer-events: none; }
.eqwh > i { position: absolute; display: block; pointer-events: none; }
.eqwh .wh { inset: 0; opacity: 0; background: radial-gradient(closest-side, #fff, var(--fl) 70%, var(--fc55));
  animation: m2-wh 310ms linear both; animation-delay: calc(var(--fe, 0ms) + 240ms); }
@keyframes m2-wh { 0% { opacity: 0; } 3.2% { opacity: var(--fwh); } 100% { opacity: 0; } }
.eqwh .sh { left: -60px; top: -40px; width: 34px; height: 160px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  animation: m2-sheen 800ms linear both; animation-delay: calc(var(--fe, 0ms) + 900ms); }
.eqwh .sh.his { background: url(/static/pf2/art/frames/legendary_sheen.webp) 0 0 / 100% 100% no-repeat; }
@keyframes m2-sheen { 0% { opacity: var(--fsh); transform: translateX(0) rotate(-25deg); }
  100% { opacity: var(--fsh); transform: translateX(190px) rotate(-25deg); } }
/* the slot's name flashes in the tier's light, laid exactly over the real label */
.gear2 .slot > .eqlab { position: absolute; left: 0; right: 0; top: calc(var(--gslot) - 20px); height: 20px; line-height: 20px;
  border-radius: 10px; background: var(--fl); color: #191617; font-family: var(--sans); font-style: normal; font-weight: 600;
  font-size: 12px; letter-spacing: .8px; padding-left: .8px; text-align: center; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; z-index: 3; pointer-events: none; opacity: 0;
  animation: m2-lab 1050ms linear both; animation-delay: calc(var(--fe, 0ms) + 300ms); }
@keyframes m2-lab { 0% { opacity: 0; } 7.1% { opacity: 1; } 52.4% { opacity: 1; } 100% { opacity: 0; } }

/* 2 · the card's arrow stands at the held thing's centre, and on the bottom edge of a card
   that opened above it (app.js tipAim) */
.tip::before { left: calc(var(--ax, 86px) - 6px); }
.tip.above::before { top: auto; bottom: -7px; border-top: 6px solid rgba(208,178,122,.45); border-bottom: 0; }

/* 3 · the better piece catches the light — the GEAR symbol itself, not a rim round it */
.nav button.glowup::after { content: none; }
.nav button .upg, .nav button .upx { grid-area: 1 / 1; pointer-events: none; }
/* ⚠️ the symbol is placed in that same cell explicitly: an auto-placed item steps round a
   cell an explicit one holds, so the icon would drop a row under its own light */
.nav button.glowup > img { grid-area: 1 / 1; }
.nav button.glowup.live > span { grid-area: 2 / 1; }
.nav button .upg { position: relative; display: block; width: 39px; height: 39px; overflow: hidden;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.nav button.live .upg { width: 48px; height: 48px; margin-top: 14px; }
.nav button .upg > i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; display: block;
  background: linear-gradient(100deg, rgba(255,214,107,0), rgba(255,230,160,.95) 50%, rgba(255,214,107,0));
  transform: translateX(-130%); animation: m2-upg 6s cubic-bezier(.4,0,.6,1) infinite; animation-delay: var(--up, 0ms); }
@keyframes m2-upg { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(230%); } }
.nav button .upx { display: block; width: 11px; height: 11px; translate: 17px -16px; opacity: 0; background: #ffe7a8;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: m2-upx 6s linear infinite; animation-delay: var(--up, 0ms); }
.nav button.live .upx { translate: 21px -9px; }
@keyframes m2-upx { 0%, 19% { opacity: 0; transform: scale(0) rotate(0deg); } 24% { opacity: 1; transform: scale(1.15) rotate(45deg); }
  32%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }

/* 4 · a tile lifts off its shadow (frm-tile-lift), and leans into a moving finger */
.body.picker { --tly: -4px; --tls: 1.03; }
.body.cons { --tly: -7px; --tls: 1.07; }
.body.picker .grid4 [data-wear], .body.cons .bag5 [data-equipcons] { position: relative; }
.body.picker .grid4 .tile, .body.picker .worn > .tile, .body.cons .bag5 .tile {
  transition: transform 70ms cubic-bezier(.2,.8,.2,1), box-shadow 90ms linear,
              translate 420ms cubic-bezier(.3,1.6,.5,1), rotate 420ms cubic-bezier(.3,1.6,.5,1); }
.body.cons .plates .plate > img { transition: translate 420ms cubic-bezier(.3,1.6,.5,1), rotate 420ms cubic-bezier(.3,1.6,.5,1); }
.body.picker .grid4.m2fit { touch-action: none; }
.body.picker .grid4 .tile.m2lift, .body.cons .bag5 .tile.m2lift { animation: m2-lift 1000ms both; animation-delay: var(--tlu, 0ms); }
.body.picker .grid4 .tile.m2lift.pressing, .body.cons .bag5 .tile.m2lift.pressing { transform: none; }
@keyframes m2-lift {
  0% { translate: 0 0; scale: 1; rotate: 0deg; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  26% { translate: 0 var(--tly); scale: var(--tls); rotate: var(--tlr, -1.5deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  50% { translate: 0 calc(var(--tly) * .82); scale: var(--tls); rotate: calc(var(--tlr, -1.5deg) * -.66); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  74% { translate: 0 calc(var(--tly) * .94); scale: var(--tls); rotate: calc(var(--tlr, -1.5deg) * .33); }
  100% { translate: 0 calc(var(--tly) * .9); scale: var(--tls); rotate: 0deg; }
}
.body.picker .grid4 .tile.m2land, .body.cons .bag5 .tile.m2land { animation: m2-land 280ms both; }
@keyframes m2-land {
  0% { translate: var(--t0, 0 0); scale: var(--s0, 1); rotate: 0deg; animation-timing-function: cubic-bezier(.6,0,.9,.5); }
  40% { translate: 0 1px; scale: 1.04 .93; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  70% { translate: 0 -1.5px; scale: .99 1.02; }
  100% { translate: 0 0; scale: 1; rotate: 0deg; }
}
/* the contact shadow is its own layer on the button: it stays on the ground as the tile rises */
.body.picker .grid4 [data-wear].m2up, .body.cons .bag5 [data-equipcons].m2up { z-index: 2; }
.m2up::before { content: ''; position: absolute; left: 14%; right: 14%; top: calc(100% - 8px); height: 12px; border-radius: 50%;
  z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(0,0,0,.7), rgba(0,0,0,0));
  animation: m2-sh 1000ms both; animation-delay: var(--tlu, 0ms); }
.m2up.m2down::before { animation: m2-shl 300ms both; }
@keyframes m2-sh { 0% { opacity: .55; scale: 1; animation-timing-function: cubic-bezier(.2,.8,.3,1); } 26%, 100% { opacity: .22; scale: .68; } }
@keyframes m2-shl { 0% { opacity: .22; scale: .68; animation-timing-function: cubic-bezier(.6,0,.9,.5); } 40% { opacity: .7; scale: 1.12; }
  100% { opacity: 0; scale: 1; } }
/* the lean: toward where the finger is going, a few px and degrees; the spring back is the
   resting transition above */
.body.picker .grid4 .tile.m2lean, .body.picker .worn > .tile.m2lean, .body.cons .bag5 .tile.m2lean,
.body.cons .plates .plate > img.m2lean {
  translate: var(--lnx, 0px) var(--lny, 0px); rotate: var(--lnr, 0deg);
  transition: transform 70ms cubic-bezier(.2,.8,.2,1), box-shadow 90ms linear, translate 110ms ease-out, rotate 110ms ease-out; }

/* 5 · the shop's tile grows into its full card (ent-shared-zoom). No `#app` in these: the
   collapse is a copy in a shadow root wearing the card's own rules (app.js holdSheet) */
.tip.full { left: 20px; right: 20px; width: auto; padding: 0; background: none; border: 0; border-radius: 18px; }
.tip.full::before { display: none; }
.zdim { position: absolute; inset: 0; z-index: 6; background: rgba(13,11,12,.58);
  animation: m2-zdim 260ms ease-out both; animation-delay: var(--zu, 0ms); }
@keyframes m2-zdim { from { opacity: 0; } to { opacity: 1; } }
.tip.full .zf { position: absolute; inset: 0; display: block; border-radius: 18px; transform-origin: 0 0; pointer-events: none;
  border: 2px solid var(--zc, var(--gold));
  background: linear-gradient(rgba(255,255,255,.07), rgba(255,255,255,0) 30%), #191617;
  box-shadow: inset 0 0 44px -14px var(--zc, var(--gold)), 0 24px 40px rgba(0,0,0,.55); }
.tip.full .zhero { position: absolute; left: 50%; top: 16px; width: 124px; height: 124px; margin-left: -62px;
  object-fit: contain; transform-origin: 0 0; pointer-events: none; }
.tip.full.px .zhero { image-rendering: pixelated; }
.tip.full .zi { position: relative; padding: 150px 22px 14px; text-align: center; }
.tip.full h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 23px; letter-spacing: .3px;
  line-height: 1.15; text-transform: none; color: var(--ink); }
.tip.full .zk { margin-top: 6px; font-family: var(--sans); font-weight: 700; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
.tip.full p { margin: 10px 0 2px; font-size: 10.5px; }
.tip.full .zl { display: flex; justify-content: space-between; height: 30px; margin-top: 6px; padding: 0 12px; border-radius: 9px;
  background: rgba(13,11,12,.6); font-family: var(--sans); font-size: 12px; line-height: 30px; color: rgba(228,224,216,.72); text-align: left; }
.tip.full .zl b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.tip.full .facts { font-size: 8.5px; text-align: left; }
.tip.full .skl { text-align: left; }
.tip.full .zp { margin-top: 12px; font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 1.6px; color: var(--gold); }
.tip.full .zp b { font-family: var(--mono); font-size: 14px; letter-spacing: 0; color: var(--ink); }
.tip.full small { margin-top: 10px; }
/* ── BUY ON THE SHELF'S CARD (docs/354, his template: `ent-shared-zoom`'s wine key,
   serif, a 6px shadow step). Full width of the card's inside, 52px on the full card
   and 40px on the small energy card — both over the 44px floor once the ::after
   margin is counted. It presses like every [data-press] (touch.js). ── */
.tip .tbuy { position: relative; display: block; width: 100%; height: 40px; margin-top: 9px; padding: 0; border: 0;
  border-radius: 10px; background: var(--wine); box-shadow: 0 4px 0 var(--wine-d); font-family: var(--serif);
  font-size: 14px; letter-spacing: 1px; line-height: 40px; color: var(--ink); white-space: nowrap; }
.tip .tbuy::after { content: ''; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.tip.full .tbuy { height: 52px; margin-top: 16px; border-radius: 12px; box-shadow: 0 6px 0 var(--wine-d);
  font-size: 18px; letter-spacing: 1.2px; line-height: 52px; }
.tip.full.zin .zf { animation: m2-zframe 300ms cubic-bezier(.2,0,0,1) both; animation-delay: var(--zu, 0ms); }
@keyframes m2-zframe { from { transform: translate(var(--zx, 0px), var(--zy, 0px)) scale(var(--zsx, 1), var(--zsy, 1)); } to { transform: none; } }
.tip.full.zin .zhero { animation: m2-zhero 320ms cubic-bezier(.2,0,0,1) both; animation-delay: var(--zu, 0ms); }
@keyframes m2-zhero { from { transform: translate(var(--hx, 0px), var(--hy, 0px)) scale(var(--hs, 1)); } to { transform: none; } }
.tip.full.zin .zi { animation: m2-zinfo 260ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--zu, 0ms) + 170ms); }
@keyframes m2-zinfo { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view.m2zoom .grid3 .tile:not(.m2src) { animation: m2-sink 300ms cubic-bezier(.2,0,0,1) both;
  animation-delay: calc(var(--zu, 0ms) + var(--zd, 0) * 40ms); }
@keyframes m2-sink { to { opacity: .35; transform: scale(.93); } }
.view.m2unzoom .grid3 .tile:not(.m2src):not(.m2home) { animation: m2-rise 260ms cubic-bezier(.2,0,0,1) both; animation-delay: var(--zu, 0ms); }
@keyframes m2-rise { from { opacity: .35; transform: scale(.93); } to { opacity: 1; transform: none; } }
/* docs/357: whatever was held — a tile, a plate, a loot cell, a key counter — is the card while
   it is out, so it is hidden, whatever kind of element it is */
#app .m2src { opacity: 0 !important; }
#pf2m .pf2m-zoom { position: absolute; inset: 0; }

/* 6 · docs/357 · THE CARD TILTS UNDER THE FINGER — his gallery card `frm-tilt-card` ("3D tilt card
   — drag it", vanilla-tilt.js with its glare), ported. app.js `cardTilt` writes the card's
   rotation and the glare's place from the finger; everything that eases is here.
   ⛔ `touch-action: none`: a drag on the card is the card's, never a pan the browser takes — a
   pan would CANCEL the pointer a few pixels in (measured). The scrim too: a drag off the card
   must not scroll the screen behind it. */
.tip.full, .zdim { touch-action: none; }
.tip.full .zf { overflow: hidden; }
/* the glare: a soft light the size of the card and a half, centred on it, running OPPOSITE the
   finger. Inside the frame, so it is clipped to it and grows with it; dark until a finger tilts */
.tip.full .zg { position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%; display: block;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,246,224,.26), rgba(255,246,224,.08) 55%, rgba(255,246,224,0));
  transition: transform 120ms cubic-bezier(.2,.7,.3,1), opacity 260ms ease-out; }
/* `tilt` is the 3D context, on while a finger has the card and until it has sprung home;
   the spring is an overshoot, so it comes back THROUGH flat, the way the gallery card eases */
.tip.full.tilt { transform-style: preserve-3d; transition: transform 560ms cubic-bezier(.34,1.56,.64,1); }
/* while the finger tracks, only a short smoothing: the card follows, it does not lag */
.tip.full.tilting { transition: transform 120ms cubic-bezier(.2,.7,.3,1); }
/* the depth: the picture nearest, the words behind it, the frame at the back — so the card has
   parallax inside it (the gallery card's blade, name and frame). The individual `translate`
   property, so it composes with the grow's own `transform` on the same picture */
.tip.full.tilt .zhero, .tip.full.tilt .zi { transition: translate 260ms cubic-bezier(.2,.7,.3,1); }
.tip.full.tiltz .zhero { translate: 0 0 40px; }
.tip.full.tiltz .zi { translate: 0 0 18px; }
.tip.full.tiltz .zg { opacity: 1; }
/* a render mid-drag puts the tilt on the NEW card at once (app.js tiltDrawn): a new node has
   nothing to transition from, and would otherwise ease up from flat — a flick under a still finger */
.tip.full.tiltnow, .tip.full.tiltnow * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  /* nothing moves, and nothing is hidden or held because of it */
  .gear2 .slot > .eqfl, .gear2 .slot > .eqwh, .gear2 .slot > .eqlab, #pf2m .pf2m-zoom { display: none; }
  .gear2 .slot .tile[data-eq] { animation: none; opacity: 1; }
  .m2lift, .m2land, .tip.full .zf, .tip.full .zhero, .tip.full .zi, .zdim,
  .view.m2zoom .grid3 .tile, .view.m2unzoom .grid3 .tile { animation: none !important; }
  .m2lean { translate: none !important; rotate: none !important; }
  .m2up::before { display: none; }
  #app .m2src { opacity: 1 !important; }
  /* docs/357: nothing tilts (app.js never starts one here either) */
  .tip.full.tilt { transform: none !important; }
  .tip.full .zg { display: none; }
  /* the better piece is still told: the symbol holds a warm wash and the glint stands still */
  .nav button .upg > i { animation: none; transform: none; left: 0; width: 100%; background: rgba(255,214,107,.42); }
  .nav button .upx { animation: none; opacity: .9; transform: scale(.9); }
}

/* ── MOTION (docs/353) · levels ──────────────────────────────────────────────────
   His: *"'Locked tile rattles' add required level to all items in the game"* and
   *"'Padlock unlocks and shatters' add this for instances, and add lvl lock for them"*.
   The padlock is the icon pack's own (`art/1x1/padlock.png`), cut in two at its gap by
   scripts/build_lock_icons.py so the shackle and the body can move apart; it is coloured
   here, by a mask over a gradient, so the white ink is the only copy of the shape.
   ⛔ Every level is the SERVER's (`req_level` in the content, the level in the snapshot);
   this only draws it. Transform and opacity only, one-shots phase-locked through `--lka`
   (app.js stamps the event; a render in the middle carries on), decoration never takes a
   tap, and under reduced motion the lock is simply drawn, still. */
.tile > .lvlock, .plate > .lvlock, .place > .lvlock { position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; z-index: 1; }
/* both layers are <i>, which is italic by default — the words inside them are not */
.lvlock, .lvlock *, .lkbrk, .lkbrk * { font-style: normal; }
.tile > .lvlock, .plate > .lvlock { background: linear-gradient(180deg, rgba(10,8,9,.22), rgba(10,8,9,.5)); }
.tile.lvl-locked > img, .plate.lvl-locked > img { filter: grayscale(1) brightness(.62); }
.tile.lvl-locked > .qty, .tile.lvl-locked > .price, .plate.lvl-locked > .qty { z-index: 2; }
.lvlock .lvlk { position: absolute; right: 5%; top: 4%; width: 34%; aspect-ratio: 1 / 1; transform-origin: 50% 6%;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.75)); }
.lvlk > i, .lkbrk .lk > .shk, .lkbrk .lk > .bdy, .lkbrk .sd { position: absolute; inset: 0; display: block;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.lvlk > .shk, .lkbrk .lk > .shk { -webkit-mask-image: url(/static/pf2/art/ui/lock_shackle.png);
  mask-image: url(/static/pf2/art/ui/lock_shackle.png); background: linear-gradient(#e4e0d8, #9f978a 50%); }
.lvlk > .bdy, .lkbrk .lk > .bdy, .lkbrk .sd { -webkit-mask-image: url(/static/pf2/art/ui/lock_body.png);
  mask-image: url(/static/pf2/art/ui/lock_body.png);
  background: linear-gradient(180deg, #ecd6a3 48%, #c9a45e 74%, #8c6a32 98%); }
/* the level: the qty badge's own shape, mirrored into the free top-left corner */
.lvlock .lvlv { position: absolute; left: -1px; top: -1px; height: 15px; padding: 0 5px; border-radius: 0 0 7px 0;
  background: rgba(25,22,23,.95); border: 1px solid rgba(208,178,122,.55); font-family: var(--mono); font-weight: 700;
  font-size: 9px; line-height: 13px; letter-spacing: .4px; color: #d0b27a; white-space: nowrap; transform-origin: 0 0; }
.lvlock .lvsh { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.lvlock .lvsh::before { content: ''; position: absolute; left: 0; top: -30%; width: 30%; height: 160%; opacity: 0;
  background: linear-gradient(90deg, rgba(190,220,255,0), rgba(190,220,255,.26), rgba(190,220,255,0));
  translate: -120% 0; rotate: 20deg; }
/* ⭐ docs/355 · the level an item needs, when he HAS it: the padlock's number badge, quiet —
   ink at half strength instead of gold, and no padlock. Same corner, so a tile that locks
   or unlocks keeps its number where it was. */
.tile > .lvreq { position: absolute; left: -1px; top: -1px; z-index: 2; height: 15px; padding: 0 5px;
  border-radius: 0 0 7px 0; background: rgba(25,22,23,.88); border: 1px solid rgba(228,224,216,.22);
  font-family: var(--mono); font-weight: 700; font-style: normal; font-size: 8.5px; line-height: 13px;
  letter-spacing: .4px; color: rgba(228,224,216,.62); white-space: nowrap; pointer-events: none; }
.place > .lvreq { position: absolute; right: 14px; bottom: 12px; z-index: 1; font-family: var(--sans); font-weight: 700;
  font-style: normal; font-size: 10px; letter-spacing: 2px; line-height: 14px; color: rgba(208,178,122,.75);
  pointer-events: none; }
/* a place: a heavier veil under its name, a bigger padlock, and the level it opens at */
.place.lvl-locked > .lvlock { background: rgba(13,11,12,.5); }
.place.lvl-locked > b, .place.lvl-breaking > b { z-index: 3; }
.place > .lvlock .lvlk, .place > .lkbrk .lk { right: 26px; top: 26px; width: 54px; }
.place > .lvlock .lvlv { left: auto; right: 14px; top: auto; bottom: 12px; height: auto; padding: 0;
  border: 0; border-radius: 0; background: none; font-family: var(--sans); font-weight: 700; font-size: 10px;
  letter-spacing: 2px; line-height: 14px; transform-origin: 100% 50%; }

/* frm-locked-tile · the tap: the padlock swings from its shackle with a decaying rattle
   while the shackle hops (0-.7s), then a cold sheen crosses (.7-1.4s), and the level
   answers with one bump. The card's own 58%-100% of 3.2s, played once. */
.lvlock.lvl-rat .lvlk { animation: lvl-rattle 1.4s linear both; animation-delay: var(--lka, 0ms); }
.lvlock.lvl-rat .lvlk > .shk { animation: lvl-hop 1.4s linear both; animation-delay: var(--lka, 0ms); }
.lvlock.lvl-rat .lvsh::before { animation: lvl-sheen 1.4s cubic-bezier(.5,0,.3,1) both; animation-delay: var(--lka, 0ms); }
.lvlock.lvl-rat .lvlv { animation: lvl-lv 1.4s ease-out both; animation-delay: var(--lka, 0ms); }
@keyframes lvl-rattle { 0% { rotate: 0deg; } 6.8% { rotate: -11deg; } 15.9% { rotate: 9deg; } 25% { rotate: -6deg; }
  34.1% { rotate: 3.5deg; } 43.2% { rotate: -1.5deg; } 50%, 100% { rotate: 0deg; } }
@keyframes lvl-hop { 0% { translate: 0 0; } 6.8% { translate: 0 -12%; } 13.6% { translate: 0 0; } 20.5% { translate: 0 -6%; }
  27.3%, 100% { translate: 0 0; } }
@keyframes lvl-sheen { 0%, 45% { opacity: 0; translate: -120% 0; } 50% { opacity: 1; translate: -120% 0; }
  100% { opacity: 1; translate: 440% 0; } }
@keyframes lvl-lv { 0%, 100% { scale: 1; } 10% { scale: 1.16; } 30% { scale: 1; } }

/* rew-padlock-break · the first time he sees a place open: the keyhole glows while the
   lock rattles, the shackle springs off, the body breaks into four and falls, a flash and a
   ring, the painting lights up and the card pops, "Unlocked" — then everything is gone and
   what is left is exactly the open card. 3.2s, every piece on the same clock (`--lka`). */
.place > .lkbrk { position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit; }
.lkbrk > i, .lkbrk > b { position: absolute; display: block; animation-duration: 3.2s; animation-fill-mode: both;
  animation-delay: var(--lka, 0ms); }
.place.lvl-breaking { animation: lvlb-card 3.2s linear both; animation-delay: var(--lka, 0ms); }
.lkbrk .dim { inset: 0; background: rgba(13,11,12,.5); animation-name: lvlb-dim; animation-timing-function: ease-out; }
.lkbrk .edge { inset: 0; border-radius: inherit; animation-name: lvlb-edge; animation-timing-function: ease-out;
  box-shadow: inset 0 0 0 2px #e6b14d, inset 0 0 26px rgba(230,177,77,.38); }
.lkbrk .lk { aspect-ratio: 1 / 1; transform-origin: 50% 85%; animation-name: lvlb-rattle; animation-timing-function: linear;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.75)); }
.lkbrk .lk > * { animation-duration: 3.2s; animation-fill-mode: both; animation-delay: var(--lka, 0ms); }
.lkbrk .lk > .shk { transform-origin: 78% 47%; animation-name: lvlb-shk; }
.lkbrk .lk > .bdy { animation-name: lvlb-bdy; animation-timing-function: step-end; }
.lkbrk .lk > .kg { position: absolute; left: 27%; top: 39%; width: 46%; height: 46%; border-radius: 50%; display: block;
  background: radial-gradient(closest-side, rgba(255,214,110,.95), rgba(255,195,0,.3) 50%, rgba(255,195,0,0));
  animation-name: lvlb-kg; animation-timing-function: ease-in-out; }
.lkbrk .sd { inset: auto; right: 26px; top: 26px; width: 54px; height: 54px; opacity: 0; animation-name: lvlb-sd; }
.lkbrk .s1 { clip-path: polygon(0 49%, 55% 49%, 45% 72.5%, 0 78.4%);
  --x1: -61%; --y1: -54%; --x2: -104%; --y2: 161%; --r1: -60deg; --r2: -150deg; }
.lkbrk .s2 { clip-path: polygon(55% 49%, 100% 49%, 100% 71%, 45% 72.5%);
  --x1: 64%; --y1: -61%; --x2: 111%; --y2: 157%; --r1: 70deg; --r2: 170deg; }
.lkbrk .s3 { clip-path: polygon(0 78.4%, 45% 72.5%, 52% 98%, 0 98%);
  --x1: -46%; --y1: -14%; --x2: -79%; --y2: 179%; --r1: -40deg; --r2: -110deg; }
.lkbrk .s4 { clip-path: polygon(45% 72.5%, 100% 71%, 100% 98%, 52% 98%);
  --x1: 54%; --y1: -18%; --x2: 89%; --y2: 171%; --r1: 50deg; --r2: 130deg; }
.lkbrk .flash { right: -7px; top: -7px; width: 120px; height: 120px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fffaf0, rgba(255,214,130,.6) 40%, rgba(255,214,130,0)); animation-name: lvlb-flash; }
.lkbrk .ring { right: 13px; top: 13px; width: 80px; height: 80px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid #FFC300; opacity: 0; animation-name: lvlb-ring; }
/* ⚠️ `.place b` (the name's rule) reaches every <b> in the card, so left/top are put back */
.lkbrk .un, .lkbrk .was { left: auto; top: auto; right: 14px; bottom: 12px; font-weight: 700; white-space: nowrap; }
.lkbrk .un { font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: 5px; line-height: 16px;
  text-transform: uppercase; color: #e6b14d; opacity: 0; animation-name: lvlb-un; }
.lkbrk .was { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; line-height: 14px; color: #d0b27a;
  animation-name: lvlb-was; }
@keyframes lvlb-card { 0%, 40.6% { scale: 1; } 48.1% { scale: 1.03; } 59.4%, 100% { scale: 1; } }
@keyframes lvlb-dim { 0%, 40.6% { opacity: 1; } 62.5%, 100% { opacity: 0; } }
@keyframes lvlb-edge { 0%, 43.75% { opacity: 0; } 62.5%, 81.25% { opacity: 1; } 96.9%, 100% { opacity: 0; } }
@keyframes lvlb-rattle { 0%, 7.8% { rotate: 0deg; } 10.4% { rotate: -7deg; } 13.1% { rotate: 6deg; } 15.7% { rotate: -4deg; }
  18.3% { rotate: 0deg; } 20.9% { rotate: -8deg; } 23.6% { rotate: 7deg; } 26.6% { rotate: -3deg; } 29.7%, 100% { rotate: 0deg; } }
@keyframes lvlb-kg { 0%, 4.7% { opacity: 0; scale: .5; } 12.8% { opacity: 1; scale: 1; } 20.2% { opacity: .4; scale: 1; }
  27.5% { opacity: 1; scale: 1.2; } 32.8%, 39.1% { opacity: .8; scale: 1.1; } 39.2%, 100% { opacity: 0; scale: 1.1; } }
@keyframes lvlb-shk {
  0%, 30.9% { opacity: 1; translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
  34.4%, 39.1% { translate: 0 -25%; rotate: -16deg; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  49.5% { translate: -82% -79%; rotate: -110deg; animation-timing-function: cubic-bezier(.6,0,.9,.5); }
  66.7% { opacity: 1; }
  68.75%, 100% { opacity: 0; translate: -125% 196%; rotate: -220deg; } }
@keyframes lvlb-bdy { 0%, 39.1% { opacity: 1; } 39.2%, 100% { opacity: 0; } }
@keyframes lvlb-sd {
  0%, 39.1% { opacity: 0; translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  39.2% { opacity: 1; }
  48.1% { translate: var(--x1) var(--y1); rotate: var(--r1); animation-timing-function: cubic-bezier(.6,0,.9,.5); }
  65.3% { opacity: 1; }
  68.75%, 100% { opacity: 0; translate: var(--x2) var(--y2); rotate: var(--r2); } }
@keyframes lvlb-flash { 0%, 39.05% { opacity: 0; scale: .3; } 39.1% { opacity: 1; scale: .3; animation-timing-function: ease-out; }
  54.7%, 100% { opacity: 0; scale: 1.8; } }
@keyframes lvlb-ring { 0%, 39.6% { opacity: 0; scale: .4; } 39.7% { opacity: 1; scale: .4; animation-timing-function: ease-out; }
  58.4%, 100% { opacity: 0; scale: 2.1; } }
@keyframes lvlb-un { 0%, 46.9% { opacity: 0; translate: 0 10px; animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  65.6%, 84.4% { opacity: 1; translate: 0 0; } 96.9%, 100% { opacity: 0; translate: 0 0; } }
@keyframes lvlb-was { 0%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  /* the lock is drawn and says its level; nothing swings, nothing breaks (app.js draws no
     `.lkbrk` and no pending card under reduced motion — this is the guard for the instant between) */
  .lvlock.lvl-rat .lvlk, .lvlock.lvl-rat .lvlk > .shk, .lvlock.lvl-rat .lvsh::before, .lvlock.lvl-rat .lvlv,
  .place.lvl-breaking, .lkbrk > i, .lkbrk > b, .lkbrk .lk > * { animation: none !important; }
  .place > .lkbrk { display: none; }
}

/* ── MOTION (docs/353) · flow — the chest bursts, the day turns, the island ───────────────
   Three more of his gallery picks, on docs/352's rules: every one-shot is drawn PHASE-LOCKED
   (app.js stamps the event and each render writes a negative delay: `--bt`, `--dt`, `--qa`,
   `--qf`), so a render in the middle carries on and a render after the end draws nothing;
   transform and opacity only, and no keyframe reads a custom property. Under stillness
   app.js draws none of these classes, and the base state of everything here is at rest.
   ⚠️ The island's geometry (six pieces, linear in its width and height) is NOT in this sheet:
   app.js writes its keyframes from `islePose`, the one copy, into <style id="pf2-isle">. */

/* 1 · his chest: shake, burst open, loot rises (card rew-chest-open), timed off the strain.
   The shake builds, the chest squashes, the still gives way to the open chest on the stretch
   (0.63 of the shake = 0.82 of a strain), and the gold burst leaves its mouth on that beat. */
.vault .cshake { position: absolute; inset: 0; transform-origin: 50% calc(100% - 44px); pointer-events: none; }
.vault.cburst .cshake { animation: flow-cshake calc(var(--chest-strain) * 1.3) linear both; animation-delay: var(--bt, 0ms); }
@keyframes flow-cshake {
  0% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  6.6% { transform: translateY(0) rotate(-1.5deg) scale(1, 1); }
  11.5% { transform: translateY(0) rotate(1.5deg) scale(1, 1); }
  16.4% { transform: translateY(0) rotate(-2deg) scale(1, 1); }
  21.3% { transform: translateY(-1px) rotate(2.5deg) scale(1, 1); }
  26.3% { transform: translateY(0) rotate(-3deg) scale(1, 1); }
  31.2% { transform: translateY(-2px) rotate(3.5deg) scale(1, 1); }
  36.1% { transform: translateY(0) rotate(-4deg) scale(1, 1); }
  41% { transform: translateY(-3px) rotate(4.5deg) scale(1, 1); }
  46% { transform: translateY(0) rotate(-5deg) scale(1, 1); }
  49% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  58.5% { transform: translateY(0) rotate(0deg) scale(1.1, .86); }
  67% { transform: translateY(-8px) rotate(0deg) scale(.94, 1.1); }
  75% { transform: translateY(0) rotate(0deg) scale(1.03, .97); }
  86% { transform: translateY(0) rotate(0deg) scale(.99, 1.01); }
  100% { transform: translateY(0) rotate(0deg) scale(1, 1); } }
/* the shut chest stands where it stood (docs/352's 44px) and the open one waits under it */
.vault.cburst .chest { animation: none; }
.vault.cburst .chest.cst { bottom: 44px; animation: flow-cst calc(var(--chest-strain) * 1.3) linear both; animation-delay: var(--bt, 0ms); }
.vault.cburst .chest.cop { animation: flow-cop calc(var(--chest-strain) * 1.3) linear both; animation-delay: var(--bt, 0ms); }
@keyframes flow-cst { 0%, 62.9% { opacity: 1; } 63%, 100% { opacity: 0; } }
@keyframes flow-cop { 0%, 62.9% { opacity: 0; } 63%, 100% { opacity: 1; } }
/* the old white-gold glow gives the strain to the burst, and is back at rest for the reveal */
.vault.cburst:not(.shown) .burst { animation: none; opacity: 0; }
.vault .cfx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cfx .cglow { position: absolute; left: 50%; top: 100px; width: 320px; height: 200px; margin-left: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,210,120,.7), rgba(230,177,77,.18) 55%, rgba(230,177,77,0)); opacity: 0;
  animation: flow-cglow calc(var(--chest-strain) * 4.3) both; animation-delay: var(--bt, 0ms); }
@keyframes flow-cglow { 0% { opacity: 0; transform: scale(.6); } 14% { opacity: .55; transform: scale(.9); }
  19.1% { opacity: 1; transform: scale(1.5); } 30% { opacity: .6; transform: scale(1.2); } 60% { opacity: .45; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.25); } }
.cfx .crays { position: absolute; left: 50%; top: 196px; width: 0; height: 0; opacity: 0; transform-origin: 0 0;
  animation: flow-crays calc(var(--chest-strain) * 4.3) cubic-bezier(.2,.8,.3,1) both; animation-delay: var(--bt, 0ms); }
@keyframes flow-crays { 0%, 19.1% { opacity: 0; transform: scaleY(0); } 24% { opacity: 1; transform: scaleY(1.08); }
  28% { opacity: 1; transform: scaleY(1); } 55% { opacity: .8; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }
.cfx .csway { position: absolute; left: 0; top: 0; animation: flow-csway calc(var(--chest-strain) * 4.3) ease-in-out both; animation-delay: var(--bt, 0ms); }
@keyframes flow-csway { 0%, 19.1% { transform: rotate(-4deg); } 60% { transform: rotate(4deg); } 100% { transform: rotate(-1deg); } }
.cfx .csway i { position: absolute; left: -17px; top: -190px; width: 34px; height: 190px; transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(255,232,170,.8), rgba(230,177,77,.28) 50%, rgba(230,177,77,0));
  clip-path: polygon(38% 100%, 62% 100%, 100% 0, 0 0); }
.cfx .cflash { position: absolute; left: 50%; top: 200px; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(closest-side, #fffaf0, rgba(255,214,130,.6) 40%, rgba(255,214,130,0)); opacity: 0;
  animation: flow-cflash calc(var(--chest-strain) * 4.3) ease-out both; animation-delay: var(--bt, 0ms); }
@keyframes flow-cflash { 0%, 19% { opacity: 0; transform: scale(.3); } 19.1% { opacity: 1; transform: scale(.3); }
  27% { opacity: 0; transform: scale(1.8); } 100% { opacity: 0; transform: scale(1.8); } }
/* nine sparks: direction and reach are the wrapper's rotate and scale (app.js), one keyframe */
.cfx .csparks { position: absolute; left: 50%; top: 196px; width: 0; height: 0; }
.cfx .csparks b { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.cfx .csparks i { position: absolute; background: #fff1c9; opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: flow-cspk calc(var(--chest-strain) * 4.3) cubic-bezier(.15,.7,.3,1) both; animation-delay: var(--bt, 0ms); }
@keyframes flow-cspk { 0%, 19.1% { opacity: 0; transform: translateY(0) scale(1.3); } 19.3% { opacity: 1; transform: translateY(-4px) scale(1.3); }
  36% { opacity: 0; transform: translateY(-110px) scale(.2); } 100% { opacity: 0; transform: translateY(-110px) scale(.2); } }
/* three twinkles round the light, twice each (his card loops them; a one-shot does not) */
.cfx .ctw { position: absolute; width: 12px; height: 12px; background: #fff6d8; opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: flow-ctw0 calc(var(--chest-strain) * 4.3) ease-in-out both; animation-delay: var(--bt, 0ms); }
.cfx .ctw.t1 { animation-name: flow-ctw1; }
.cfx .ctw.t2 { animation-name: flow-ctw2; }
@keyframes flow-ctw0 { 0%, 30% { opacity: 0; transform: scale(0) rotate(0deg); } 33% { opacity: 1; transform: scale(1) rotate(60deg); }
  36%, 52% { opacity: 0; transform: scale(0) rotate(120deg); } 55% { opacity: 1; transform: scale(1) rotate(180deg); }
  58%, 100% { opacity: 0; transform: scale(0) rotate(240deg); } }
@keyframes flow-ctw1 { 0%, 37% { opacity: 0; transform: scale(0) rotate(0deg); } 40% { opacity: 1; transform: scale(1) rotate(60deg); }
  43%, 59% { opacity: 0; transform: scale(0) rotate(120deg); } 62% { opacity: 1; transform: scale(1) rotate(180deg); }
  65%, 100% { opacity: 0; transform: scale(0) rotate(240deg); } }
@keyframes flow-ctw2 { 0%, 44% { opacity: 0; transform: scale(0) rotate(0deg); } 47% { opacity: 1; transform: scale(1) rotate(60deg); }
  50%, 66% { opacity: 0; transform: scale(0) rotate(120deg); } 69% { opacity: 1; transform: scale(1) rotate(180deg); }
  72%, 100% { opacity: 0; transform: scale(0) rotate(240deg); } }

/* 2 · the day turns: 00:00, and both rerolls come back (card att2-day-turns) — in the shop, on
   the server's answer. A line that turns over pops, a sheen crosses it, and its words flip on a
   hinge: what it said, the news, what it says now (the live countdown, which stays). */
.shelfhead [data-drop] { display: inline-block; }
.shelfhead .dflip { position: relative; display: inline-grid; justify-items: end; vertical-align: top; overflow: hidden;
  perspective: 240px; animation: flow-dpop 2.8s both; animation-delay: var(--dt, 0ms); }
.shelfhead .dface { grid-area: 1 / 1; white-space: nowrap; backface-visibility: hidden; }
.shelfhead .dface.fa { animation: flow-dfa 2.8s both; animation-delay: var(--dt, 0ms); }
.shelfhead .dface.fb { color: var(--gold); font-weight: 700; animation: flow-dfb 2.8s both; animation-delay: var(--dt, 0ms); }
.shelfhead .dface.fc { animation: flow-dfc 2.8s both; animation-delay: var(--dt, 0ms); }
.shelfhead .dshn { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shelfhead .dshn i { position: absolute; left: -34px; top: -6px; width: 22px; height: calc(100% + 12px);
  background: linear-gradient(90deg, rgba(255,240,200,0), rgba(255,240,200,.8) 50%, rgba(255,240,200,0));
  transform: translateX(0) rotate(18deg); animation: flow-dshn 2.8s both; animation-delay: var(--dt, 0ms); }
@keyframes flow-dpop { 0% { transform: scale(1); } 6% { transform: scale(1.12); } 12% { transform: scale(.97); } 17%, 100% { transform: scale(1); } }
@keyframes flow-dshn { 0%, 3% { transform: translateX(0) rotate(18deg); animation-timing-function: cubic-bezier(.5,0,.4,1); }
  17%, 100% { transform: translateX(320px) rotate(18deg); } }
@keyframes flow-dfa { 0%, 6% { opacity: 1; transform: rotateX(0deg); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  12%, 100% { opacity: 0; transform: rotateX(90deg); } }
@keyframes flow-dfb { 0%, 12% { opacity: 0; transform: rotateX(-90deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.3); }
  12.5% { opacity: 1; } 19% { opacity: 1; transform: rotateX(0deg); }
  56% { opacity: 1; transform: rotateX(0deg); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  62%, 100% { opacity: 0; transform: rotateX(90deg); } }
@keyframes flow-dfc { 0%, 62% { opacity: 0; transform: rotateX(-90deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.3); }
  62.5% { opacity: 1; } 69%, 100% { opacity: 1; transform: rotateX(0deg); } }
/* the reroll pips: his reroll symbol, gold while it is there to spend */
/* a token each, not a bare glyph: at this size his arc alone reads as the letter C */
.rerollsleft .rpips { display: inline-flex; gap: 4px; margin-right: 7px; vertical-align: -4px; }
.rpip { position: relative; display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: #221e1f;
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.2); color: rgba(228,224,216,.3); }
.rpip.on { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(208,178,122,.65); }
.rpip svg { position: absolute; left: 3.5px; top: 3.5px; width: 9px; height: 9px; }
.rpip.back .dim, .rpip.back .lit { position: absolute; inset: 0; border-radius: 50%; }
.rpip.back .dim { color: rgba(228,224,216,.3); background: #221e1f; box-shadow: inset 0 0 0 1px rgba(228,224,216,.2); }
.rpip.back .lit { color: var(--gold); background: #221e1f; box-shadow: inset 0 0 0 1px rgba(208,178,122,.65); opacity: 0; }
.rpip .pr { position: absolute; left: -2px; top: -2px; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%;
  border: 1.5px solid var(--gold); opacity: 0; }
.rpip .ps { position: absolute; width: 7px; height: 7px; background: #fff1c9; opacity: 0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.rpip .ps.s1 { left: 13px; top: -4px; } .rpip .ps.s2 { left: -4px; top: 12px; }
.rpip.back.b0 { animation: flow-dpip0 2.8s both; animation-delay: var(--dt, 0ms); }
.rpip.back.b1 { animation: flow-dpip1 2.8s both; animation-delay: var(--dt, 0ms); }
.rpip.back.b0 .lit { animation: flow-dlit0 2.8s both; animation-delay: var(--dt, 0ms); }
.rpip.back.b1 .lit { animation: flow-dlit1 2.8s both; animation-delay: var(--dt, 0ms); }
.rpip.back.b0 .pr { animation: flow-dpr0 2.8s cubic-bezier(.15,.6,.3,1) both; animation-delay: var(--dt, 0ms); }
.rpip.back.b1 .pr { animation: flow-dpr1 2.8s cubic-bezier(.15,.6,.3,1) both; animation-delay: var(--dt, 0ms); }
.rpip.back.b0 .ps { animation: flow-dps0 2.8s both; animation-delay: var(--dt, 0ms); }
.rpip.back.b1 .ps { animation: flow-dps1 2.8s both; animation-delay: var(--dt, 0ms); }
@keyframes flow-dpip0 { 0%, 24% { transform: scale(1); } 27% { transform: scale(1.4); } 31% { transform: scale(.92); } 35%, 100% { transform: scale(1); } }
@keyframes flow-dpip1 { 0%, 34% { transform: scale(1); } 37% { transform: scale(1.4); } 41% { transform: scale(.92); } 45%, 100% { transform: scale(1); } }
@keyframes flow-dlit0 { 0%, 24% { opacity: 0; } 26%, 100% { opacity: 1; } }
@keyframes flow-dlit1 { 0%, 34% { opacity: 0; } 36%, 100% { opacity: 1; } }
@keyframes flow-dpr0 { 0%, 24.5% { opacity: 0; transform: scale(1); } 25% { opacity: .95; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes flow-dpr1 { 0%, 34.5% { opacity: 0; transform: scale(1); } 35% { opacity: .95; transform: scale(1); } 50%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes flow-dps0 { 0%, 25% { opacity: 0; transform: scale(0) rotate(0deg); } 28% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  34%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }
@keyframes flow-dps1 { 0%, 35% { opacity: 0; transform: scale(0) rotate(0deg); } 38% { opacity: 1; transform: scale(1.2) rotate(45deg); }
  44%, 100% { opacity: 0; transform: scale(0) rotate(90deg); } }

/* 3 · Dynamic Island: the queue pill grows into the match (card ent2-dynamic-island).
   ⛔⛔ REDRAWN (docs/355, his: "this looks really ugly and needs to be corrected"). It wears his
   header's object language now: near-black with a hairline edge (the nameplate's inner rule,
   docs/347), the price in the header pill's socket, the keys in Spline Sans with a hard lip, and
   the way through in the PLAY key's bone. It sits UNDER the header (top 128: the top doors end at
   121) and never over it; the hub's doors step back while it is up (`.view.qon`), so nothing
   pokes out round its edges. */
/* ⭐ THE SCRIM LEAVES THE HEADER ALONE: clear down to the strip's foot (126), then falling away
   into the dark under the island — so the energy the island is taking is never dimmed, and the
   copy CANCEL fades out in the motion layer (above the header) dims none of it either. On the
   search's clock, so a render mid-search does not fade it in again. */
.qwrap.qisw .qdim {
  background: linear-gradient(180deg, rgba(11,9,10,0) 0, rgba(11,9,10,0) 124px, rgba(11,9,10,.8) 176px, rgba(11,9,10,.74) 100%);
  animation-delay: var(--qa, 0ms);
}
.view.qon .door { animation: isle-doors .26s ease-out both; animation-delay: var(--qa, 0ms); }
@keyframes isle-doors { to { opacity: 0; } }
.view.qoff .door { animation: isle-doors-back var(--qd, .46s) ease-out both; animation-delay: var(--qo, 0ms); }
@keyframes isle-doors-back { 0%, 35% { opacity: 0; } 100% { opacity: 1; } }
/* ⛔ NO BOX IN THIS BLOCK HAS A SIZE OR A PLACE: app.js `isleCss` writes every one of them from
   ISLE_W / ISLE_H / ISLE_R — the same four numbers the growth's keyframes are posed from — so the
   layout and the motion cannot drift apart. What is here is what the pieces are MADE of. */
.qcard.isle { position: absolute; left: 50%; top: 128px; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; text-align: left; }
.qcard.isle.m-s, .qcard.isle.m-e { animation: flow-iappear .82s both; animation-delay: var(--qa, 0ms); }
@keyframes flow-iappear { 0% { opacity: 0; } 7%, 100% { opacity: 1; } }
/* the fill: two bands and four discs that overlap, so no seam can open between them */
.qcard.isle .ip { position: absolute; background: #0f0d0e; pointer-events: none; }
.qcard.isle .ip.a, .qcard.isle .ip.b { transform-origin: 50% 0; }
.qcard.isle .ip.tl, .qcard.isle .ip.tr, .qcard.isle .ip.bl, .qcard.isle .ip.br { border-radius: 50%; }
/* the wine that breathes under it (the card's glow) */
.qcard.isle .ip.g { border-radius: 50%;
  background: radial-gradient(closest-side, rgba(102,2,60,.7), rgba(102,2,60,.26) 60%, rgba(102,2,60,0)); }
/* the edge: four arcs that travel with the corners and four lines scaled only along their own
   length, so the hairline is one pixel on every frame of the growth; lit from above */
.qcard.isle .ip.io { background: none; }
.qcard.isle .ip.otl, .qcard.isle .ip.otr, .qcard.isle .ip.obl, .qcard.isle .ip.obr { box-sizing: border-box;
  border: 0 solid rgba(228,224,216,.2); }
.qcard.isle .ip.otl { border-width: 1px 0 0 1px; }
.qcard.isle .ip.otr { border-width: 1px 1px 0 0; }
.qcard.isle .ip.obl { border-width: 0 0 1px 1px; border-color: rgba(228,224,216,.1); }
.qcard.isle .ip.obr { border-width: 0 1px 1px 0; border-color: rgba(228,224,216,.1); }
.qcard.isle .ip.ot, .qcard.isle .ip.ob { transform-origin: 50% 0; }
.qcard.isle .ip.ot { background: rgba(228,224,216,.2); }
.qcard.isle .ip.ob { background: rgba(228,224,216,.1); }
.qcard.isle .ip.ol, .qcard.isle .ip.or { transform-origin: 0 0; background: linear-gradient(rgba(228,224,216,.2), rgba(228,224,216,.1)); }
/* the pill it starts as: a pulsing gold dot and the island's own label (`.mlab` is `.ilab`'s
   twin, so when it has travelled to where the label lives the two are the same pixels).
   ⭐ WHERE IT SITS AND WHERE IT TRAVELS ARE WRITTEN BY app.js `isleCss`, from the same numbers
   the label's own place is — the compact view becoming the expanded one, as a live activity's
   leading label does when Apple's island opens. */
.qcard.isle .imini { position: absolute; opacity: 0; }
.qcard.isle .imini i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffc300;
  animation: flow-idot 1.1s ease-in-out infinite; }
@keyframes flow-idot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
/* what it holds: the search and the match, each the whole box. The title's and the name's left
   edge, and the gold dot's height, are written by app.js `isleLabelCss` from ISLE_LAB / ISLE_R. */
.qcard.isle .isearch, .qcard.isle .ibig { position: absolute; inset: 0; }
.qcard.isle.ilock .isearch, .qcard.isle .isearch.iout { pointer-events: none; }
.qcard.isle .idotw { position: absolute; left: 11px; top: 10px; width: 44px; height: 44px; }
.qcard.isle .idotw .qdots { display: block; margin: 0; }
.qcard.isle .ilab, .qcard.isle .mlab { position: absolute; font-family: var(--sans); font-size: 9px; font-weight: 700;
  line-height: 11px; letter-spacing: 2.2px; color: var(--gold); white-space: nowrap; }
.qcard.isle .ilab span, .qcard.isle .mlab span { font-family: var(--mono); font-weight: 400; letter-spacing: .6px; }
.qcard.isle h3 { position: absolute; top: 28px; margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: 20px; line-height: 24px; letter-spacing: .2px; color: var(--ink); white-space: nowrap; }
/* the price, in the header pill's own object (`.strip.v2 .pill` and its socket) */
.qcard.isle .icost { position: absolute; right: 14px; top: 16px; margin: 0; height: 22px; padding: 0 9px 0 27px; display: flex;
  align-items: center; gap: 0; border-radius: 11px; background: rgba(25,22,23,.92); font-family: var(--mono); font-size: 11px;
  font-weight: 700; color: var(--stam); opacity: 1; box-shadow: inset 0 0 0 1px rgba(228,224,216,.22), 0 2px 0 #070606; }
.qcard.isle .icost .isock { position: absolute; left: -3px; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: #191617;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 1.5px 2px rgba(0,0,0,.5), 0 2px 0 #070606; }
.qcard.isle .icost img { width: 14px; height: 14px; }
/* the keys: Spline Sans on a hard lip, like PLAY; the way through is bone, the way out is quiet */
.qcard.isle .ikeys { position: absolute; left: 12px; right: 12px; top: 64px; height: 42px; display: flex; gap: 10px; }
.qcard.isle .key-sm { position: relative; flex: 1 1 0; min-width: 0; width: auto; height: 40px; margin: 0; padding: 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; overflow: visible;
  font-family: 'Spline Sans', var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(#2a2526, #211d1e); border: 0;
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.16), 0 3px 0 #060505; }
.qcard.isle .key-sm:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(228,224,216,.16), 0 1px 0 #060505; }
.qcard.isle .key-sm > span { position: relative; }
.qcard.isle .qbot { flex: 1.35 1 0; }
.qcard.isle .qbot:not([disabled]) { color: #191617; background: linear-gradient(#f3efe8, #e4e0d8 60%, #d8d3ca);
  box-shadow: 0 3px 0 #9d958a; }
.qcard.isle .qbot:not([disabled]):active { box-shadow: 0 1px 0 #9d958a; }
.qcard.isle .qbot[disabled] { color: rgba(228,224,216,.6); background: linear-gradient(#211d1e, #1a1718); }
.qcard.isle .qbot i[data-botin] { position: relative; font-style: normal; margin: 0; font-family: var(--mono); font-size: 11px;
  font-weight: 400; letter-spacing: .5px; color: var(--gold); opacity: 1; }
.qcard.isle .qbot i[data-botin]:empty { display: none; }
/* FIGHT BOT charges while it waits: a gold light fills it from the left on the wait's own clock */
.qcard.isle .qchg { position: absolute; inset: 0; margin: 0; border-radius: 12px; overflow: hidden; pointer-events: none; }
.qcard.isle .qchg i { position: absolute; inset: 0; margin: 0; opacity: 1; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(208,178,122,.06), rgba(208,178,122,.26));
  box-shadow: inset -1px 0 0 rgba(230,200,143,.7);
  animation: isle-charge var(--bd, 7000ms) linear both; animation-delay: var(--bw, 0ms); }
@keyframes isle-charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qcard:not(.isle) .qchg { display: none; }
.qcard.isle .qcancel { flex: 1 1 0; }
/* the match: who (or the place), the price, and a gold bar running down to the ground opening.
   ⛔ THREE ROWS, AS APPLE'S EXPANDED LIVE ACTIVITY IS (docs/355 review): the label and the price
   share the top row, the name has a row of its own UNDER the price, the line under that. The
   first cut put a 24px name level with the price, so "The Abandoned House" ran 49px under the
   pill and "The Wrongdoers' Camp" was cut to an ellipsis — a place's own name, on the one screen
   that says where he is going. At 22px every place he has fits the row (_pf2_355_fit_probe). */
.qcard.isle .ibig .iav { position: absolute; left: 14px; top: 16px; width: 60px; height: 60px; border-radius: 50%; background: #191617;
  box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 3px #0f0d0e, 0 0 16px rgba(208,178,122,.25); display: grid; place-items: center; }
.qcard.isle .ibig .iav img { width: 36px; height: 36px; object-fit: contain; }
.qcard.isle .ibig .idotw { left: 22px; top: 24px; }
.qcard.isle .ibig b { position: absolute; top: 41px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 28px; color: var(--ink); }
.qcard.isle .ibig p { position: absolute; top: 70px; margin: 0; font-family: var(--sans); font-size: 11.5px; line-height: 14px;
  color: var(--dim); white-space: nowrap; }
/* the bar sits in a wrapper so it arrives with the words (the wrapper fades in) and runs down
   on its own clock (the bar drains) — one element cannot carry both animations */
.qcard.isle .ibig .ibarw { position: absolute; left: 16px; right: 16px; top: 99px; height: 3px; border-radius: 2px;
  background: rgba(228,224,216,.08); }
.qcard.isle .ibig .ibar { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #b8955a, var(--gold) 70%, #e6c88f);
  transform-origin: 0 50%; transform: scaleX(0); animation: flow-ibar 1.1s linear both; }
.qcard.isle .ibig .ibar.bf { animation-delay: calc(var(--qf, 0ms) + 160ms); }
.qcard.isle .ibig .ibar.be { animation-delay: calc(var(--qa, 0ms) + 620ms); }
@keyframes flow-ibar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* the words arrive while the shape is still growing — a box is never empty for long — in
   order, and `backwards`, so a key's own press is not held under a finished animation (docs/122) */
.qcard.isle.m-s .isearch > *, .qcard.isle.m-e .ibig > * { animation: flow-iin .82s backwards; animation-delay: var(--qa, 0ms); }
.qcard.isle.m-f .ibig > * { animation: flow-iin2 .42s backwards; animation-delay: var(--qf, 0ms); }
.qcard.isle.m-s .isearch > :nth-child(n+2), .qcard.isle.m-e .ibig > :nth-child(n+2) { animation-delay: calc(var(--qa, 0ms) + 30ms); }
.qcard.isle.m-s .isearch > :nth-child(n+4), .qcard.isle.m-e .ibig > :nth-child(n+4) { animation-delay: calc(var(--qa, 0ms) + 60ms); }
.qcard.isle.m-s .isearch > :nth-child(n+5) { animation-delay: calc(var(--qa, 0ms) + 90ms); }
.qcard.isle.m-f .ibig > :nth-child(n+2) { animation-delay: calc(var(--qf, 0ms) + 30ms); }
.qcard.isle.m-f .ibig > :nth-child(n+4) { animation-delay: calc(var(--qf, 0ms) + 60ms); }
@keyframes flow-iin { 0%, 62% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(.2,.8,.2,1); } 88%, 100% { opacity: 1; transform: none; } }
@keyframes flow-iin2 { 0%, 28% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(.2,.8,.2,1); } 80%, 100% { opacity: 1; transform: none; } }
/* a match takes over from the search it grew out of: the search's copy lifts away first */
.qcard.isle.m-f .isearch.iout { animation: flow-iout .42s both; animation-delay: var(--qf, 0ms); }
@keyframes flow-iout { 0% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-6px); } }
/* CANCEL's shrinking copy and its scrim, in the motion layer (app.js `flowIsleLeave`) */
#pf2m .qcard.isle.iexit { position: absolute; }
#pf2m .qcard.isle.iexit .idotx { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ffc300; }
#pf2m .qwrap.iexitw { position: absolute; inset: 0; }

/* the boing card, behind QUEUE_LOOK = 'card': his "higher on screen, and it should shake less" —
   it hangs under the header, swings three times instead of five and sways a third as far */
.qwrap.qqw { place-items: start center; padding-top: 140px; }
.qcard.qq { animation-name: flow-boing2; }
@keyframes flow-boing2 {
  0% { opacity: 0; transform: perspective(700px) rotateX(-92deg); animation-timing-function: cubic-bezier(.5,0,.7,.4); }
  14% { opacity: 1; }
  34% { transform: perspective(700px) rotateX(16deg); animation-timing-function: ease-in-out; }
  56% { transform: perspective(700px) rotateX(-5deg); animation-timing-function: ease-in-out; }
  76% { transform: perspective(700px) rotateX(1.5deg); animation-timing-function: ease-in-out; }
  100% { opacity: 1; transform: perspective(700px) rotateX(0deg); } }
.qwrap .qsw { animation-name: flow-sway2; }
@keyframes flow-sway2 { 0% { transform: rotate(0deg); } 12.5% { transform: rotate(.18deg); } 25% { transform: rotate(.25deg); }
  37.5% { transform: rotate(.18deg); } 50% { transform: rotate(0deg); } 62.5% { transform: rotate(-.18deg); }
  75% { transform: rotate(-.25deg); } 87.5% { transform: rotate(-.18deg); } 100% { transform: rotate(0deg); } }

@media (prefers-reduced-motion: reduce) {
  .vault.cburst .cshake, .vault.cburst .chest.cst, .vault.cburst .chest.cop, .cfx *, .shelfhead .dflip, .shelfhead .dface,
  .shelfhead .dshn i, .rpip, .rpip .lit, .rpip .pr, .rpip .ps, .qcard.isle, .qcard.isle .imini, .qcard.isle .imini i,
  .qcard.isle .isearch > *, .qcard.isle .ibig > *, .qcard.isle .ibar { animation: none; }
  .cfx, .vault.cburst .chest.cst, .shelfhead .dface.fa, .shelfhead .dface.fb, .shelfhead .dshn, .qcard.isle .imini, .qcard.isle .ibarw,
  .qcard.isle .qchg { display: none; }
  .rpip.back .lit { opacity: 1; }
}

/* ── MOTION (docs/353) · fight ── */
/* His six for the fight, off the :7778 cards: txt2-versus + txt-countdown (the start of a fight),
   txt-turn-clock, txt2-stunned, frm-notched-draw and ent2-loot-window (the end of it).
   ⛔ Transform and opacity only. The frame that "draws itself (PAINT)" is ten straight strokes that
   each grow along their own length (scaleX), which is the card's picture without its per-frame
   stroke repaint. ⛔ render() replaces #app on every exchange, so every one-shot below carries a
   delay RELATIVE TO ITS EVENT (--ia the intro, --sd a stun, --la the loot window) and the next
   render draws the same moment again — never a replay. ⛔ Nothing here takes a tap. */

/* 1 · two names and a VS, then 3 · 2 · 1 · FIGHT! — in the arena's middle band, over the fighters,
   under the plates' row and the chips; the dial is held by app.js until FIGHT! lands */
.mf-vs { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.mf-vs * { pointer-events: none; }
.mf-vsb { position: absolute; left: 0; right: 0; }
.mf-bl { position: absolute; top: 0; width: 250px; }
.mf-bl .bx { position: absolute; inset: 0; transform: skewX(-14deg); }
.mf-bl.L { left: -30px; animation: mf-l .5s cubic-bezier(.2,.9,.3,1.1) calc(var(--ia) + .1s) both,
  mf-kl .4s ease-out calc(var(--ia) + .62s) forwards, mf-lo .3s cubic-bezier(.5,0,.8,.4) calc(var(--ia) + 1.3s) forwards; }
.mf-bl.R { right: -30px; animation: mf-r .5s cubic-bezier(.2,.9,.3,1.1) calc(var(--ia) + .2s) both,
  mf-kr .4s ease-out calc(var(--ia) + .62s) forwards, mf-ro .3s cubic-bezier(.5,0,.8,.4) calc(var(--ia) + 1.3s) forwards; }
.mf-bl.L .bx { background: linear-gradient(90deg, rgba(59,1,34,.1), #3b0122 34%, #66023c); box-shadow: inset 0 -2px 0 rgba(208,178,122,.6); }
.mf-bl.R .bx { background: linear-gradient(90deg, #3d3637, #2a2526 66%, rgba(42,37,38,.1)); box-shadow: inset 0 2px 0 rgba(228,224,216,.3); }
@keyframes mf-l { 0% { transform: translateX(-300px); } 100% { transform: none; } }
@keyframes mf-r { 0% { transform: translateX(300px); } 100% { transform: none; } }
@keyframes mf-kl { 0% { transform: translateX(-9px); } 100% { transform: none; } }
@keyframes mf-kr { 0% { transform: translateX(9px); } 100% { transform: none; } }
@keyframes mf-lo { 0% { transform: none; opacity: 1; } 100% { transform: translateX(-320px); opacity: 0; } }
@keyframes mf-ro { 0% { transform: none; opacity: 1; } 100% { transform: translateX(320px); opacity: 0; } }
.mf-bl .in { position: absolute; top: 8px; width: 128px; }
.mf-bl.L .in { left: 58px; } .mf-bl.R .in { right: 58px; text-align: right; }
.mf-bl:not(.one) .in { top: 7px; }
/* a side of several takes the room toward the phone's edge (its rows are right- or left-
   aligned, so only a long name ever reaches the VS side): a name, its count and its level */
.mf-bl:not(.one) .in { width: 150px; }
.mf-bl.L:not(.one) .in { left: 35px; } .mf-bl.R:not(.one) .in { right: 35px; }
.mf-bl .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 30px; color: var(--ink); text-shadow: 0 3px 0 #0d0b0c; }
.mf-bl .nm.l { font-size: 22px; } .mf-bl .nm.xl { font-size: 18px; }
.mf-bl .sb { display: block; margin-top: 4px; white-space: nowrap; font-family: var(--sans); font-weight: 800; font-size: 10px;
  letter-spacing: 2.5px; color: var(--gold); }
.mf-bl.R .sb { color: rgba(228,224,216,.72); }
.mf-bl .rw { display: flex; align-items: baseline; gap: 5px; height: 22px; line-height: 22px; white-space: nowrap;
  font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--ink); text-shadow: 0 2px 0 #0d0b0c; }
.mf-bl.R .rw { justify-content: flex-end; }
.mf-bl .rw span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mf-bl .rw em { flex: none; font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--gold); }
.mf-bl .rw small { flex: none; font-family: var(--sans); font-weight: 800; font-size: 8px; letter-spacing: 1px; color: rgba(228,224,216,.62); }
.mf-bl .more { display: block; height: 16px; line-height: 16px; font-family: var(--sans); font-weight: 800; font-size: 9px;
  letter-spacing: 2px; color: var(--gold); }
.mf-vsb .sl { position: absolute; left: 50%; top: -20px; bottom: -20px; width: 3px; margin-left: -1.5px;
  background: linear-gradient(transparent, #e6c98c 30%, #fff3d2 50%, #e6c98c 70%, transparent); transform: rotate(14deg) scaleY(0);
  animation: mf-sl .35s cubic-bezier(.2,.8,.3,1) calc(var(--ia) + .45s) both, mf-gone .3s ease-in calc(var(--ia) + 1.3s) forwards; }
@keyframes mf-sl { 0% { opacity: 1; transform: rotate(14deg) scaleY(0); } 100% { opacity: .7; transform: rotate(14deg) scaleY(1); } }
@keyframes mf-gone { to { opacity: 0; } }
.mf-vsb .fl { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,243,210,.8), rgba(230,177,77,.2) 60%, transparent); opacity: 0;
  animation: mf-fl .6s ease-out calc(var(--ia) + .6s) both; }
@keyframes mf-fl { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.5); } }
.mf-vsb .spk { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.mf-vsb .spk i { position: absolute; left: -1.5px; top: -6px; width: 3px; height: 12px; border-radius: 2px; background: #fff3d2; opacity: 0;
  animation: mf-spk .55s cubic-bezier(.15,.7,.3,1) calc(var(--ia) + .6s) both; }
@keyframes mf-spk { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-10px); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(var(--d)) scaleY(.4); } }
.mf-vsb .vs { position: absolute; left: 0; right: 0; top: 50%; height: 64px; margin-top: -32px; text-align: center; }
.mf-vsb .vs b { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 56px; line-height: 64px; letter-spacing: 2px;
  color: #e6c98c; -webkit-text-stroke: 8px #191617; paint-order: stroke fill; text-shadow: 0 3px 0 #0d0b0c, 0 6px 12px rgba(0,0,0,.55);
  animation: mf-slam .45s cubic-bezier(.25,.8,.3,1) calc(var(--ia) + .55s) both, mf-vso .3s ease-in calc(var(--ia) + 1.3s) forwards; }
@keyframes mf-slam { 0% { opacity: 0; transform: scale(3.2) rotate(-24deg); } 50% { opacity: 1; transform: scale(.86) rotate(4deg); }
  75% { transform: scale(1.06) rotate(-2deg); } 100% { opacity: 1; transform: rotate(-4deg); } }
@keyframes mf-vso { 0% { opacity: 1; transform: rotate(-4deg); } 100% { opacity: 0; transform: rotate(-4deg) scale(1.5); } }
.mf-cd { position: absolute; left: 50%; top: 58%; width: 0; height: 0; }
.mf-cd .disc { position: absolute; left: -80px; top: -80px; width: 160px; height: 160px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(102,2,60,.75), rgba(59,1,34,.35) 70%, transparent);
  animation: mf-disc .9s ease-out calc(var(--ia) + 1.35s) 3 forwards, mf-gone .5s ease-in calc(var(--ia) + 4.45s) forwards; }
@keyframes mf-disc { 0% { transform: scale(1.12); opacity: 1; } 60% { transform: scale(.96); opacity: .7; } 100% { transform: scale(1); opacity: .8; } }
.mf-cd .it { position: absolute; left: -120px; top: -120px; width: 240px; height: 240px; display: grid; place-items: center; }
.mf-cd .it b { grid-area: 1 / 1; font-family: var(--mono); font-weight: 700; font-size: 96px; line-height: 1; color: var(--ink);
  -webkit-text-stroke: 9px #191617; paint-order: stroke fill; text-shadow: 0 4px 0 #0d0b0c, 0 8px 16px rgba(0,0,0,.55); white-space: nowrap;
  opacity: 0; animation: mf-beat .9s cubic-bezier(.2,.9,.3,1) calc(var(--ia) + var(--bd)) both; }
.mf-cd .it .rg { grid-area: 1 / 1; width: 120px; height: 120px; box-sizing: border-box; border-radius: 50%; border: 3px solid rgba(228,224,216,.7);
  opacity: 0; animation: mf-rg .9s ease-out calc(var(--ia) + var(--bd)) both; }
.mf-cd .it.go b { font-family: var(--serif); font-weight: 400; font-size: 52px; letter-spacing: 2px; color: #e6c98c; -webkit-text-stroke: 7px #191617;
  animation-name: mf-fight; animation-duration: 1.1s; }
.mf-cd .it.go .rg { border-color: var(--gold); }
@keyframes mf-beat { 0% { opacity: 0; transform: scale(2.6); } 20% { opacity: 1; transform: scale(.9); } 36% { transform: scale(1.06); }
  48% { transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.55); } }
@keyframes mf-fight { 0% { opacity: 0; transform: scale(2.8) rotate(-6deg); } 16% { opacity: 1; transform: scale(.92) rotate(2deg); }
  23% { transform: translate(-4px, 2px) scale(1.04); } 29% { transform: translate(4px, -2px); } 36% { transform: translate(-2px, 1px) rotate(-1deg); }
  43% { transform: none; } 72% { opacity: 1; transform: scale(1.02); } 82%, 100% { opacity: 0; transform: scale(1.5); } }
@keyframes mf-rg { 0% { opacity: 0; transform: scale(.5); } 16% { opacity: .9; } 64%, 100% { opacity: 0; transform: scale(1.7); } }
/* a short phone has a short arena (the console is a fixed 432px under it): the names and the count
   step down a size there, so they stay under the GATE line and the digits do not fill the arena */
@media (max-height: 790px) { .mf-vsb, .mf-cd { transform: scale(.82); } }

/* 2 · the turn clock: twenty ticks for twenty seconds, one going dark a second; each second the old
   number drops out and the next drops in (app.js, Web Animations, once per tick — never per frame);
   from 0:05 on YOUR turn the ticks and the digits are gold and the plate knocks once a second —
   never red, red is health. The count stays the one text of [data-turn]. */
/* 42px between the two health bars (they end 25px either side of the middle), under the camera
   band and clear of the GATE / ROUND line at 98px */
.mf-clock { position: absolute; left: 50%; top: 49px; width: 42px; height: 42px; margin-left: -21px; z-index: 5; pointer-events: none; }
.mf-clock .mfh { position: absolute; left: -17px; top: -17px; width: 76px; height: 76px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(230,177,77,.5), rgba(230,177,77,.12) 55%, transparent); }
.mf-clock .mfp { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 36%, #2b2527, #191617 68%);
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.12), 0 6px 12px rgba(0,0,0,.5); }
.mf-clock .tk { position: absolute; left: 21px; top: 21px; width: 0; height: 0; }
.mf-clock .tk b, .mf-clock .tk s { position: absolute; left: -1.1px; top: -19.5px; width: 2.2px; height: 4.5px; border-radius: 2px; }
.mf-clock .tk b { background: #35302f; }
.mf-clock .tk s { background: var(--ink); }
.mf-clock.hot .tk s { background: var(--legendary); }
.mf-clock .tk.dark s { opacity: 0; }
.mf-clock .tk.off s { animation: mf-off .5s cubic-bezier(.5,0,.8,.5) forwards; }
@keyframes mf-off { 0% { opacity: 1; transform: none; } 30% { opacity: 1; transform: translateY(-2px) scaleY(1.25); } 100% { opacity: 0; transform: translateY(4px) scaleY(.4); } }
.mf-clock .turnclock, .mf-clock .mf-ghost { position: absolute; left: 0; right: 0; top: 0; height: 42px; margin: 0; padding: 0; transform: none;
  background: none; border-radius: 0; line-height: 42px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0; color: var(--ink); -webkit-text-stroke: 3px #191617; paint-order: stroke fill; }
.mf-clock .turnclock.low, .mf-clock.hot .mf-ghost { color: var(--legendary); }
.mf-clock.theirs .mfp, .mf-clock.theirs .tk { opacity: .7; }
.mf-clock.zero .turnclock, .mf-clock.zero .tk { opacity: .4; }

/* 3 · STUNNED, with stars circling his stun head — a child of the stunned FIGHTER (so it rides its
   lunges), anchored at the top of that body's head (--hy), beside the STUNNED chip and the sub-line,
   never instead of them. It lands on the beat the stun does and loops while the stun holds; the word
   says it once; the exchange that spends the stun fades it (.out at --so). */
.mf-stun { position: absolute; left: 50%; bottom: var(--hy, 216px); width: 0; height: 0; z-index: 3; pointer-events: none;
  animation: mf-sin .35s cubic-bezier(.2,.9,.3,1.3) var(--sd) both; }
.mf-stun.out { animation: mf-sin .35s cubic-bezier(.2,.9,.3,1.3) var(--sd) both, mf-sout .35s ease-in var(--so) forwards; }
@keyframes mf-sin { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: none; } }
@keyframes mf-sout { 0% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.mf-stun .hd { position: absolute; left: -17px; top: -40px; width: 34px; height: 34px; transform-origin: 50% 90%;
  animation: mf-bonk 3.6s cubic-bezier(.3,.7,.4,1) var(--sd) infinite; }
.mf-stun .hd img { display: block; width: 34px; height: 34px; animation: mf-wob 1.8s ease-in-out var(--sd) infinite; }
@keyframes mf-bonk { 0% { transform: scale(1.2, .72); } 6% { transform: scale(.9, 1.14); } 12% { transform: scale(1.04, .96); } 18%, 100% { transform: none; } }
@keyframes mf-wob { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.mf-stun .ring { position: absolute; left: -25px; top: -48px; width: 50px; height: 50px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid rgba(230,177,77,.7); opacity: 0; animation: mf-sring 3.6s ease-out var(--sd) infinite; }
@keyframes mf-sring { 0% { opacity: .9; transform: scale(.5); } 14%, 100% { opacity: 0; transform: scale(1.4); } }
.mf-stun .orb { position: absolute; left: 0; top: -38px; width: 0; height: 0; }
.mf-stun .ox { position: absolute; left: 0; top: 0; animation: mf-ox .7s ease-in-out calc(var(--sd) + var(--dx)) infinite alternate; }
.mf-stun .oy { position: absolute; left: 0; top: 0; animation: mf-oy .7s ease-in-out calc(var(--sd) + var(--dy)) infinite alternate; }
.mf-stun .st { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px;
  animation: mf-oz .7s ease-in-out calc(var(--sd) + var(--dy)) infinite alternate; }
.mf-stun .st svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mf-stun .st path { fill: #e6b14d; stroke: #fff3d2; stroke-width: 1.2; }
@keyframes mf-ox { 0% { transform: translateX(-26px); } 100% { transform: translateX(26px); } }
@keyframes mf-oy { 0% { transform: translateY(-6px); } 100% { transform: translateY(6px); } }
@keyframes mf-oz { 0% { opacity: .45; transform: scale(.62) rotate(0deg); } 100% { opacity: 1; transform: scale(1.12) rotate(40deg); } }
.mf-stun .w { position: absolute; left: -70px; top: 4px; width: 140px; text-align: center; white-space: nowrap; opacity: 0;
  animation: mf-word 2s ease-out var(--sd) both; }
.mf-stun .w i { display: inline-block; font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 20px; line-height: 1;
  color: var(--ink); -webkit-text-stroke: 5px #191617; paint-order: stroke fill; text-shadow: 0 2px 0 #0d0b0c;
  animation: mf-dz 1.3s ease-in-out calc(var(--sd) + var(--i) * -.19s) 2; }
.mf-stun .sub { position: absolute; left: -70px; top: 28px; width: 140px; text-align: center; white-space: nowrap; opacity: 0;
  font-family: var(--sans); font-weight: 800; font-size: 9px; letter-spacing: 3px; text-indent: 3px; color: var(--gold);
  text-shadow: 0 1px 3px #000; animation: mf-word 2s ease-out calc(var(--sd) + 80ms) both; }
@keyframes mf-word { 0% { opacity: 0; transform: scale(1.3) translateY(-4px); } 8% { opacity: 1; transform: scale(.95); } 14% { transform: none; }
  82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes mf-dz { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-3px) rotate(5deg); } }

/* 4 · the end of a fight: the loot window assembles itself (a gold line across the band, the wine
   opens top and bottom from it, four brackets fly in and lock, the title stamps, each spoil drops into
   its socket and flashes its rarity, CLAIM is set down on its lip with a sheen), and above it the
   notched VICTORY frame draws itself — DEFEAT in ash for a loss. ⛔ No empty sockets (his: "leaves out
   2 empty slot icons"): only what the fight paid is drawn, centred. Everything waits on ONE clock
   (--la, from the window's first draw), which is also the clock app.js lights CLAIM on. */
.loot.mf .dim { animation-delay: var(--la); }
.loot.mf .lband { animation: none; background: none; }
.loot.mf .mf-wine { position: absolute; inset: 0; background: var(--wine); transform-origin: 50% 50%;
  animation: mf-open .42s cubic-bezier(.2,.9,.3,1.08) calc(var(--la) + .38s) both; }
@keyframes mf-open { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
.loot.mf .mf-line { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; margin-top: -1px; opacity: 0;
  background: linear-gradient(90deg, rgba(243,220,166,0), #f3dca6 20%, #fff6e0 50%, #f3dca6 80%, rgba(243,220,166,0));
  box-shadow: 0 0 8px rgba(243,220,166,.8); animation: mf-line .8s cubic-bezier(.2,.8,.2,1) calc(var(--la) + .12s) both; }
.loot.mf.lost .mf-line { background: linear-gradient(90deg, rgba(228,224,216,0), rgba(228,224,216,.55) 30%, rgba(228,224,216,.55) 70%, rgba(228,224,216,0));
  box-shadow: none; }
@keyframes mf-line { 0% { opacity: 1; transform: scaleX(0); } 45% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
.loot.mf .mf-br { position: absolute; width: 24px; height: 24px; box-sizing: border-box; border: 0 solid var(--gold);
  animation: mf-br .38s cubic-bezier(.3,1.4,.5,1) calc(var(--la) + var(--bd)) backwards; }
.loot.mf .mf-br.b1 { left: 4px; top: 4px; border-top-width: 3px; border-left-width: 3px; --dx: -36px; --dy: -36px; --bd: .7s; }
.loot.mf .mf-br.b2 { right: 4px; top: 4px; border-top-width: 3px; border-right-width: 3px; --dx: 36px; --dy: -36px; --bd: .75s; }
.loot.mf .mf-br.b3 { left: 4px; bottom: 4px; border-bottom-width: 3px; border-left-width: 3px; --dx: -36px; --dy: 36px; --bd: .8s; }
.loot.mf .mf-br.b4 { right: 4px; bottom: 4px; border-bottom-width: 3px; border-right-width: 3px; --dx: 36px; --dy: 36px; --bd: .85s; }
.loot.mf.lost .mf-br { border-color: rgba(228,224,216,.45); }
@keyframes mf-br { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(-30deg); } 100% { opacity: 1; transform: none; } }
.loot.mf .mf-glint { position: absolute; inset: -2px; border-radius: 4px; opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(243,220,166,.8), 0 0 24px 6px rgba(208,178,122,.35); animation: mf-glint .6s ease-out calc(var(--la) + 1.08s) both; }
.loot.mf.lost .mf-glint { display: none; }
@keyframes mf-glint { 0% { opacity: 0; transform: scale(1.03); } 25% { opacity: 1; } 100% { opacity: 0; transform: none; } }
.loot.mf .lband > h2 { animation: mf-stamp .42s cubic-bezier(.3,1.4,.5,1) calc(var(--la) + .88s) backwards; }
@keyframes mf-stamp { 0% { opacity: 0; transform: scale(1.6); } 100% { opacity: 1; transform: none; } }
.loot.mf .llv, .loot.mf .lband > .wallet, .loot.mf .lgates, .loot.mf .lfell { animation: mf-in .4s ease-out calc(var(--la) + .98s) backwards; }
@keyframes mf-in { 0% { opacity: 0; } 100% { opacity: 1; } }
/* no empty sockets, and a short last row is centred rather than left hanging */
.loot.mf .lgrid { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; }
.loot.mf .lslot { flex: 0 0 84px; width: 84px; animation: none; }
.loot.mf .lslot::before { content: ''; position: absolute; left: 0; top: 0; width: 84px; height: 84px; border-radius: 24px;
  background: rgba(0,0,0,.35); box-shadow: inset 0 2px 6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(228,224,216,.07);
  animation: mf-in .3s ease-out calc(var(--la) + var(--ld) - .24s) backwards; }
.loot.mf .lplate { position: relative; z-index: 1; transform-origin: 50% 100%;
  animation: mf-drop .42s calc(var(--la) + var(--ld)) backwards; }
@keyframes mf-drop { 0% { opacity: 0; transform: translateY(-46px) scale(1.25); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  20% { opacity: 1; } 62% { transform: translateY(0) scale(1.1, .88); animation-timing-function: cubic-bezier(.2,.8,.3,1); } 100% { opacity: 1; transform: none; } }
.loot.mf .lslot::after { content: ''; position: absolute; left: -8px; top: -8px; width: 100px; height: 100px; box-sizing: border-box;
  border-radius: 30px; z-index: 2; pointer-events: none; opacity: 0; box-shadow: 0 0 0 3px var(--rc, var(--gold)), 0 0 18px 4px var(--rc, var(--gold));
  animation: mf-lring .5s ease-out calc(var(--la) + var(--ld) + .3s) backwards; }
@keyframes mf-lring { 0% { opacity: 0; transform: scale(.86); } 20% { opacity: .9; } 100% { opacity: 0; transform: scale(1.12); } }
.loot.mf .lcap { animation: mf-in .3s ease-out calc(var(--la) + var(--ld) + .26s) backwards; }
.loot.mf .lkey { animation: mf-key .5s cubic-bezier(.3,1.3,.5,1) calc(var(--la) + var(--lk)) backwards; }
@keyframes mf-key { 0% { opacity: 0; transform: translateY(26px); } 100% { opacity: 1; transform: none; } }
.loot.mf .lkey .mf-sheen { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.loot.mf .lkey .mf-sheen i { position: absolute; left: 0; top: -10px; width: 34px; height: 88px;
  background: linear-gradient(90deg, rgba(255,243,214,0), rgba(255,243,214,.2), rgba(255,243,214,0)); transform: translateX(-60px) skewX(-18deg);
  animation: mf-sheen 2.6s cubic-bezier(.5,.1,.3,1) calc(var(--la) + var(--lk) + .45s) infinite; }
.loot.mf .lkey .key[disabled] .mf-sheen { display: none; }
@keyframes mf-sheen { 0% { transform: translateX(-60px) skewX(-18deg); } 50%, 100% { transform: translateX(340px) skewX(-18deg); } }
/* a window a render rebuilt while CLAIM's prizes fly: nothing of the assembly is drawn again (docs/352) */
.loot.mf.claiming .lplate, .loot.mf.claiming .lcap, .loot.mf.claiming .lkey, .loot.mf.claiming .lslot::before,
.loot.mf.claiming .lslot::after { animation: none; }
/* the notched frame, 12px above the band (a child of it, so CLAIM's leave carries it off). The band is
   pinned 311px off the floor and 344px tall, so on a phone shorter than ~750px there is no room above
   it: the frame is then held 4px under the top of the column rather than cut off by it */
.loot.mf .mf-vict { position: absolute; left: 50%; top: max(-96px, calc(659px - 100dvh)); width: 300px; height: 84px; margin-left: -150px; pointer-events: none; }
.mf-vict .fill { position: absolute; left: 2px; top: 2px; right: 2px; bottom: 2px;
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
  background: radial-gradient(120% 90% at 50% 0%, #3a2d22, #191617 70%); animation: mf-in .3s linear calc(var(--la) + var(--vf)) backwards; }
.mf-vict .halo { position: absolute; left: 50px; right: 50px; top: 10px; bottom: 10px; border-radius: 50%; opacity: .7;
  background: radial-gradient(closest-side, rgba(230,177,77,.24), rgba(230,177,77,0));
  animation: mf-in .4s ease-out calc(var(--la) + var(--vt)) backwards, mf-halo 2.6s cubic-bezier(.45,0,.55,1) calc(var(--la) + var(--vt) + .4s) infinite; }
@keyframes mf-halo { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.05); } }
.mf-vict .sg { position: absolute; height: 2.5px; margin-top: -1.25px; border-radius: 1.25px; background: var(--gold); transform-origin: 0 50%;
  transform: rotate(var(--r)); animation: mf-seg var(--gd) linear calc(var(--la) + var(--g0)) backwards; }
@keyframes mf-seg { 0% { transform: rotate(var(--r)) scaleX(0); } 100% { transform: rotate(var(--r)) scaleX(1); } }
.mf-vict .gl { position: absolute; width: 16px; height: 16px; fill: #fff3d6; opacity: 0; animation: mf-gl .5s linear calc(var(--la) + var(--g0)) both; }
@keyframes mf-gl { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 30% { opacity: 1; transform: scale(1.3) rotate(45deg); } 100% { opacity: 0; transform: scale(0) rotate(90deg); } }
.mf-vict b { position: absolute; left: 0; right: 0; top: 0; height: 84px; line-height: 84px; text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: 30px; letter-spacing: 8px; text-indent: 8px; color: var(--legendary); text-shadow: 0 2px 0 #0d0b0c;
  animation: mf-vt .5s cubic-bezier(.3,1.3,.5,1) calc(var(--la) + var(--vt)) backwards; }
@keyframes mf-vt { 0% { opacity: 0; transform: scale(1.3); } 70% { opacity: 1; transform: scale(.97); } 100% { opacity: 1; transform: none; } }
/* the loss: the same frame in ash, drawn from the bottom up, no glints — ash sinks from its corners —
   and the word drops in heavy instead of stamping; no gold, no halo, and no red (red is health) */
.mf-vict.lost .sg { background: rgba(228,224,216,.42); }
.mf-vict.lost .fill { background: radial-gradient(120% 90% at 50% 100%, #2a2627, #161314 70%); }
.mf-vict.lost .halo { display: none; }
.mf-vict.lost b { color: rgba(228,224,216,.84); letter-spacing: 10px; text-indent: 10px; animation-name: mf-dt; animation-timing-function: cubic-bezier(.5,0,.3,1); }
@keyframes mf-dt { 0% { opacity: 0; transform: translateY(-12px); } 60% { opacity: 1; transform: translateY(2px); } 100% { opacity: 1; transform: none; } }
.mf-vict .ash { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(228,224,216,.5); opacity: 0;
  animation: mf-ash .9s ease-in calc(var(--la) + var(--g0)) both; }
@keyframes mf-ash { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px) scale(.5); } }

@media (prefers-reduced-motion: reduce) {
  /* nothing moves and nothing waits: the intro is never armed (app.js), a stun is simply there, the
     window is simply assembled and CLAIM lights at once (lootListing) */
  .mf-vs { display: none; }
  .mf-stun, .mf-stun *, .loot.mf *, .loot.mf *::before, .loot.mf *::after, .mf-clock * { animation: none !important; }
  .mf-stun .w, .mf-stun .sub { opacity: 1; }
  .mf-stun.out, .loot.mf .mf-line, .loot.mf .mf-glint, .loot.mf .mf-sheen, .loot.mf .lslot::after, .mf-vict .gl, .mf-vict .ash { display: none; }
  .mf-stun .ox:nth-child(1) { transform: translateX(-22px); }
  .mf-stun .ox:nth-child(2) { transform: translate(22px, 2px); }
  .mf-stun .ox:nth-child(3) { transform: translate(2px, -8px); }
  .mf-clock .tk.off s { opacity: 0; }
}

/* ── docs/355 · he arranges his own bags, and the order is kept ────────────────────────────────────
   The key on the bag's line is the visible way in (a gesture nobody discovers is a feature nobody has):
   ARRANGE sets the tiles wiggling, a tap picks one up, a tap on another puts it in that place, DONE
   ends it. Carrying a tile inside its bag does the same without the key (touch.js slides the others
   aside with the `translate` below). Transform and opacity only; the wiggle runs only while the bag is
   being arranged, and every cell carries its own phase (`--wph`) so a render does not restart it. */
.bagline.pick { margin: 8px 0 14px; }
.arrkey { position: relative; align-self: center; height: 26px; margin: -6px 0; padding: 0 12px; border-radius: 8px;
  border: 1px solid rgba(208,178,122,.55); background: rgba(208,178,122,.08); color: var(--gold);
  font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 1.6px; line-height: 24px;
  text-transform: uppercase; white-space: nowrap; }
/* ⚠️ THE 44px PAD REACHES UP, NOT DOWN: the first row of tiles starts 8px under the line and is later in
   the page, so a pad reaching down would be under those tiles — the tiles would take the taps and the
   key would be smaller than it looks (templates/CLAUDE.md: a pad that overlaps is worse than a small one).
   Above it there is nothing to tap: the rule and the gap under the plates. */
.arrkey::after { content: ''; position: absolute; left: -10px; right: -10px; top: -18px; bottom: -1px; }
.arrkey.on { background: var(--gold); color: #1b1819; border-color: var(--gold); }
[data-sort] > [data-okey] { transition: translate 190ms cubic-bezier(.2,.8,.2,1); }
[data-sort][data-arranging] > [data-okey] { transform-origin: 50% 60%; animation: arr-wig 1.1s ease-in-out infinite;
  animation-delay: var(--wph, 0ms); }
@keyframes arr-wig { 0%, 100% { rotate: -1.6deg; } 50% { rotate: 1.6deg; } }
/* the one picked up: still, lifted, ringed in gold — the only gold ring in the bag */
[data-sort][data-arranging] > [data-okey].arrpick { animation: none; scale: 1.08; z-index: 3; }
[data-sort][data-arranging] > [data-okey].arrpick > .tile { outline: 2px solid var(--gold); outline-offset: 2px;
  box-shadow: 0 10px 18px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) {
  [data-sort] > [data-okey] { transition: none; }
  /* still, and still plainly arranging: a dashed ring on every tile in place of the wiggle */
  [data-sort][data-arranging] > [data-okey] { animation: none; }
  [data-sort][data-arranging] > [data-okey]:not(.arrpick) > .tile { outline: 1px dashed rgba(208,178,122,.6); outline-offset: 2px; }
}

/* ── docs/361 · THE DAILY STREAK AND THE KEY WHEEL ─────────────────────────────────────────
   Two of his gallery picks on one sheet (81_rewards_more.js): `rew2-streak-flame` on top and
   `rew2-prize-wheel` under it. The sheet is #daily, a sibling of #app made by app.js (`dyLayer`),
   so render() can never rebuild it from under a spin. Transform and opacity only; the wheel's
   curve is baked once per spin into Web Animations keyframes (app.js `dyLand`), never a loop.
   ⚠️ Under reduced motion the global rule collapses every animation to its LAST frame, so every
   `both` below ends on the state that must be seen: the flame lit, the week in, the wheel in. */
#daily { position: fixed; top: 0; left: 0; right: 0; margin-inline: auto; width: min(100vw, 412px); height: 100%;
  height: 100dvh; max-height: 100dvh; overflow: hidden; z-index: 29; display: none; }   /* under #toasts 30, #pf2m 32, #fx 33, #boot 40 */
#daily.on { display: block; }
/* opaque (docs/361 review): at .95 the hub's white PLAY key ghosted through directly above SPIN —
   two keys stacked on the glass, one of them dead under the sheet */
.dy-scrim { position: absolute; inset: 0; background: #090809; animation: dy-in .25s ease-out both; }
.dy-sheet { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  padding-top: max(34px, env(safe-area-inset-top)); transform-origin: 50% 0; }
#daily.out .dy-scrim, #daily.out .dy-sheet { animation: dy-out .2s ease-in both; }
@keyframes dy-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dy-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-height: 790px) { .dy-sheet { transform: scale(.9); } }
@media (max-height: 700px) { .dy-sheet { transform: scale(.8); } }

/* the streak — the card's stage, 240 wide */
.dy-streak { position: relative; width: 240px; height: 250px; flex: 0 0 auto; }
.dy-glow { position: absolute; left: 40px; top: 0; width: 160px; height: 150px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,195,0,.5), rgba(230,177,77,.14) 55%, transparent); opacity: .8;
  animation: dy-br 1.1s ease-in-out infinite alternate; }
.dy-sheet.catch .dy-glow { opacity: 0; animation: dy-glow 1.2s .9s ease-out both, dy-br 1.1s 2.1s ease-in-out infinite alternate; }
@keyframes dy-glow { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: .8; transform: scale(1); } }
@keyframes dy-br { from { opacity: .8; } to { opacity: .55; } }
.dy-fl { position: absolute; left: 88px; top: 16px; width: 64px; height: 90px; }
.dy-fl .cold, .dy-fl .lay, .dyc-fl i {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2090%22%3E%3Cpath%20d%3D%22M32%202%20C36%2018%2058%2030%2058%2056%20C58%2075%2046%2088%2032%2088%20C18%2088%206%2075%206%2056%20C6%2044%2013%2036%2019%2028%20C20%2036%2024%2041%2028%2042%20C26%2028%2027%2014%2032%202%20Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2090%22%3E%3Cpath%20d%3D%22M32%202%20C36%2018%2058%2030%2058%2056%20C58%2075%2046%2088%2032%2088%20C18%2088%206%2075%206%2056%20C6%2044%2013%2036%2019%2028%20C20%2036%2024%2041%2028%2042%20C26%2028%2027%2014%2032%202%20Z%22%2F%3E%3C%2Fsvg%3E") center / 100% 100% no-repeat; }
.dy-fl .cold { position: absolute; left: 0; top: 0; width: 64px; height: 90px; background: linear-gradient(to top, #3c3537, #5b5254);
  transform-origin: 50% 100%; opacity: 0; }
/* the grey flame shivers, and then it catches (the card's timeline, in ms of its 1.1s) */
.dy-sheet.catch .dy-fl .cold { animation: dy-cold 1.1s linear both; }
@keyframes dy-cold { 0% { opacity: 1; transform: none; } 13.6% { transform: scale(.97,1.02) skewX(2deg); } 27.3% { transform: scale(1.02,.98) skewX(-2deg); }
  40.9% { transform: scale(.98,1.02) skewX(1deg); } 54.5% { transform: scale(1.03,.97) skewX(-2deg); } 68.2% { transform: scale(.96,1.03); }
  81.8% { opacity: 1; transform: scale(1.06,.9); } 100% { opacity: 0; transform: scale(1.1,.8); } }
.dy-fl .ig { position: absolute; left: 50%; bottom: 0; transform-origin: 50% 100%; }
.dy-sheet.catch .dy-fl .ig { animation: dy-ig .6s cubic-bezier(.2,.9,.3,1.35) both; }
.dy-fl .o { width: 64px; height: 90px; margin-left: -32px; animation-delay: .9s; }
.dy-fl .mi { width: 44px; height: 62px; margin-left: -22px; animation-delay: .98s; }
.dy-fl .co { width: 24px; height: 36px; margin-left: -12px; animation-delay: 1.06s; }
@keyframes dy-ig { 0% { opacity: 0; transform: scale(.1,.05); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.dy-fl .lay { position: absolute; inset: 0; transform-origin: 50% 100%; }
/* three tongues, each on its own period, skewed so it licks rather than pulses */
.dy-fl .o .lay { background: linear-gradient(to top, #b9691a, #e6a53a 35%, #FFC300 70%, #ffe08a); animation: dy-fk1 .46s ease-in-out infinite alternate; }
.dy-fl .mi .lay { background: linear-gradient(to top, #e6a53a, #FFC300 45%, #ffe7a3); animation: dy-fk2 .38s ease-in-out infinite alternate; }
.dy-fl .co .lay { background: linear-gradient(to top, #fff8e6, #fff1c9); animation: dy-fk3 .3s ease-in-out infinite alternate; }
.dy-sheet.catch .dy-fl .lay { animation-delay: 1.5s; }
@keyframes dy-fk1 { from { transform: scale(1,1) skewX(0deg); } to { transform: scale(.95,1.06) skewX(-3deg); } }
@keyframes dy-fk2 { from { transform: scale(1.04,.96) skewX(2deg); } to { transform: scale(.96,1.08) skewX(-2deg); } }
@keyframes dy-fk3 { from { transform: scale(.9,1.08) skewX(-3deg); } to { transform: scale(1.08,.94) skewX(3deg); } }
.dy-sq { position: absolute; top: 70px; width: 5px; height: 5px; opacity: 0; animation: dy-sq 1s var(--d) cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes dy-sq { 0% { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1.2); } 100% { opacity: 0; transform: translate(var(--dx), var(--up)) rotate(var(--rz)) scale(.4); } }
.dy-cnt { position: absolute; left: 0; right: 0; top: 112px; text-align: center; }
.dy-cnt .num { display: inline-block; height: 46px; overflow: hidden; font: 700 40px 'Spline Sans', var(--sans); line-height: 46px;
  color: var(--ink); vertical-align: top; }
.dy-cnt .col { display: block; }
.dy-cnt .col b { display: block; height: 46px; font-weight: 700; }
.dy-sheet.catch .dy-cnt .col { animation: dy-roll .55s 1.15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes dy-roll { from { transform: translateY(0); } to { transform: translateY(-46px); } }
.dy-cnt .lb { display: block; margin-top: -2px; font: 700 10px var(--sans); letter-spacing: 4px; text-indent: 4px;
  text-transform: uppercase; color: #e6b14d; font-style: normal; }
.dy-wk { position: absolute; left: 50%; top: 178px; width: 172px; margin-left: -86px; height: 40px; display: flex; justify-content: space-between; }
.dy-sheet.catch .dy-wk { animation: dy-wk .5s 1.3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes dy-wk { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.dy-dy { position: relative; width: 22px; height: 40px; }
.dy-dy em { position: absolute; left: -4px; right: -4px; top: 0; text-align: center; font: 700 9px var(--mono); color: rgba(228,224,216,.5); font-style: normal; }
.dy-dy .ok { position: absolute; left: 2px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: #35302f;
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.12); }
.dy-dy.done .ok, .dy-dy.today .ok { background: linear-gradient(170deg, #fff1c9, #e6b14d); box-shadow: none; }
.dy-dy .ok b { position: absolute; background: #191617; border-radius: 1px; opacity: 0; }
.dy-dy.done .ok b, .dy-dy.today .ok b { opacity: 1; }
.dy-dy .ok .a { left: 4.5px; top: 8.5px; width: 2.5px; height: 5px; transform: rotate(-45deg); }
.dy-dy .ok .b { left: 8px; top: 4px; width: 2.5px; height: 9px; transform: rotate(40deg); }
.dy-dy.today em { color: #FFC300; }
/* today pops in last — gold, never red */
.dy-sheet.catch .dy-dy.today .ok { background: #35302f; box-shadow: inset 0 0 0 1.5px #FFC300; }
.dy-sheet.catch .dy-dy.today .ok::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(170deg, #fff1c9, #e6b14d); animation: dy-td .4s 1.75s cubic-bezier(.2,.9,.3,1.6) both; }
@keyframes dy-td { 0% { opacity: 0; transform: scale(1.9); } 100% { opacity: 1; transform: none; } }
.dy-sheet.catch .dy-dy.today .ok b { z-index: 1; }
.dy-sheet.catch .dy-dy.today .ok .a { animation: dy-tka .3s 1.95s ease-out both; }
.dy-sheet.catch .dy-dy.today .ok .b { animation: dy-tkb .3s 1.95s ease-out both; }
@keyframes dy-tka { 0% { opacity: 0; transform: rotate(-45deg) scale(0); } 100% { opacity: 1; transform: rotate(-45deg) scale(1); } }
@keyframes dy-tkb { 0% { opacity: 0; transform: rotate(40deg) scale(0); } 100% { opacity: 1; transform: rotate(40deg) scale(1); } }
.dy-said { position: absolute; left: -60px; right: -60px; top: 226px; text-align: center; font: 600 8.5px var(--sans);
  letter-spacing: 1.2px; color: rgba(228,224,216,.55); text-transform: uppercase; }
.dy-said.lost { color: #e6b14d; }
.dy-sheet.catch .dy-said { animation: dy-up .45s 2s ease-out both; }

/* the wheel — the card's 180 drawn at 240, the pointer knocked by every peg */
.dy-wbox { position: relative; width: 260px; height: 330px; flex: 0 0 auto; margin-top: 4px; }
.dy-sheet.catch .dy-wbox { animation: dy-up .5s 2.2s cubic-bezier(.2,.8,.3,1) both; }
@keyframes dy-up { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }
.dy-title { position: absolute; left: -40px; right: -40px; top: 0; height: 24px; display: flex; justify-content: center; align-items: center;
  font: 400 19px var(--serif); letter-spacing: 1.4px; color: var(--ink); }
.dy-title .oddsbtn { margin-left: 10px; vertical-align: 0; }
.dy-title .oddsbtn img { opacity: .8; width: 16px; height: 16px; }
/* the wheel takes no tap (SPIN turns it): its glow must not eat the (i)'s pad above it */
.dy-stage { position: absolute; left: 0; top: 30px; width: 260px; height: 260px; pointer-events: none; }
.dy-wglow { position: absolute; left: -10px; top: -10px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230,177,77,.32), transparent); opacity: 0; }
.dy-wind { position: absolute; left: 10px; top: 10px; width: 240px; height: 240px; }
.dy-wheel { position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; box-shadow: 0 10px 22px rgba(0,0,0,.55); }
.dy-wheel svg { position: absolute; left: 0; top: 0; }
.dy-sl { position: absolute; left: 120px; top: 120px; width: 0; height: 0; }
.dy-sl img { position: absolute; left: -19px; top: -88px; width: 38px; height: 38px; object-fit: contain; image-rendering: pixelated; }
.dy-pg { position: absolute; left: -3.5px; top: -114px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4cc, #d0b27a 60%, #7a5a28); box-shadow: 0 1px 0 #191617; }
.dy-hi { position: absolute; left: 10px; top: 10px; opacity: 0; transform-origin: 120px 120px; pointer-events: none; }
.dy-hub { position: absolute; left: 104px; top: 104px; width: 52px; height: 52px; perspective: 240px; }
.dy-flip { position: absolute; inset: 0; transform-style: preserve-3d; }
.dy-fa { position: absolute; inset: 0; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: inset 0 0 0 2.5px #d0b27a, 0 0 0 3px #191617, 0 4px 8px rgba(0,0,0,.5); background: radial-gradient(circle at 50% 35%, #342c2e, #191617 70%); }
.dy-fa.fr::after { content: ''; position: absolute; inset: 12px; background: #d0b27a;
  -webkit-mask: url(/static/pf2/art/ui/door_chests.png) center / contain no-repeat; mask: url(/static/pf2/art/ui/door_chests.png) center / contain no-repeat; }
.dy-fa.bk { transform: rotateY(180deg); background: radial-gradient(circle at 50% 35%, #2a2426, #141112 70%);
  box-shadow: inset 0 0 0 2.5px var(--rc, #d0b27a), 0 0 0 3px #191617, 0 0 18px var(--rc, #d0b27a); }
.dy-fa.bk img { position: absolute; left: 8px; top: 8px; width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.dy-fa.bk img:not([src]) { display: none; }
.dy-ptr { position: absolute; left: 118px; top: -2px; width: 24px; height: 34px; transform-origin: 12px 4px; z-index: 3; }
.dy-ptr::before { content: ''; position: absolute; left: -2px; top: -2px; width: 28px; height: 38px; background: #191617;
  clip-path: polygon(50% 100%, 0 28%, 18% 0, 82% 0, 100% 28%); }
.dy-ptr b { position: absolute; inset: 0; background: linear-gradient(#fff4cc, #e6b14d 60%, #9c7a3e);
  clip-path: polygon(50% 100%, 0 28%, 18% 0, 82% 0, 100% 28%); }
.dy-lab { position: absolute; left: -50px; right: -50px; top: 296px; text-align: center; opacity: 0; }
.dy-lab b { display: block; font: 400 20px var(--serif); letter-spacing: .6px; }
.dy-lab small { display: block; margin-top: 3px; font: 600 8px var(--sans); letter-spacing: 1.2px; color: rgba(228,224,216,.45); }
/* it has stopped: the glow, the winning wedge lifts outward, the hub flips over to show the key */
.dy-sheet.landed .dy-wglow { animation: dy-wglow 1.2s ease-out both; }
@keyframes dy-wglow { 0% { opacity: 0; transform: scale(.7); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: .6; transform: scale(1); } }
.dy-sheet.landed .dy-hi { animation: dy-hi .6s .1s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes dy-hi { 0% { opacity: 0; transform: scale(1); } 100% { opacity: 1; transform: translateY(-4px) scale(1.07); } }
.dy-sheet.landed .dy-flip { animation: dy-flip .6s .2s cubic-bezier(.3,.8,.3,1.2) both; }
@keyframes dy-flip { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(180deg); } }
.dy-sheet.landed .dy-lab { animation: dy-lab .5s .4s ease-out both; }
@keyframes dy-lab { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 100% { opacity: 1; transform: none; } }
/* opened after today's spin: the same state, standing still */
.dy-sheet.rest .dy-wglow { opacity: .6; }
.dy-sheet.rest .dy-hi { opacity: 1; transform: translateY(-4px) scale(1.07); }
.dy-sheet.rest .dy-flip { transform: rotateY(180deg); }
.dy-sheet.rest .dy-lab { opacity: 1; }
.dy-sheet.rest .dy-lab small { display: none; }

.dy-keys { display: grid; justify-items: center; gap: 2px; margin-top: 10px; flex: 0 0 auto; }
.dy-sheet.catch .dy-keys { animation: dy-up .5s 2.45s cubic-bezier(.2,.8,.3,1) both; }
.key.gold.dy-spin { height: 70px; padding-top: 0; place-items: center; font-size: 30px; }
.dy-later { height: 44px; padding: 0 22px; font: 600 10px var(--sans); letter-spacing: 1.8px; color: rgba(228,224,216,.5); }
.dy-later[hidden] { display: block; visibility: hidden; }

/* the (i): today's odds and tomorrow's, as the server shipped them */
.dy-odds { position: absolute; inset: 0; z-index: 5; padding: 110px 22px 24px; background: rgba(8,7,8,.97); animation: dy-in .18s ease both; }
.dy-odds[hidden] { display: none; }
.dy-orow { display: grid; grid-template-columns: 34px 1fr 64px 76px; align-items: center; gap: 8px; height: 44px;
  border-bottom: 1px solid rgba(228,224,216,.08); font: 600 12px var(--sans); color: rgba(228,224,216,.8); }
.dy-orow img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.dy-orow b { font: 700 13px var(--mono); color: var(--ink); text-align: right; }
.dy-orow b.nx { color: #e6b14d; }
.dy-orow.dy-ohead { height: 26px; font: 700 8px var(--sans); letter-spacing: 1.4px; color: var(--faint); }
.dy-orow.dy-ohead b { font: 700 8px var(--sans); letter-spacing: 1.4px; color: var(--faint); }
.dy-onote { margin-top: 16px; line-height: 1.8; }

/* the REWARD door's row for it */
.dycard { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 86px; margin-bottom: 14px;
  padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid rgba(230,177,77,.5); text-align: left; }
.dycard.spun { border-color: rgba(228,224,216,.16); }
.dyc-fl { position: relative; flex: 0 0 44px; width: 44px; height: 60px; }
.dyc-fl i { position: absolute; inset: 0; background: linear-gradient(to top, #b9691a, #e6a53a 35%, #FFC300 70%, #ffe08a); }
.dycard.spun .dyc-fl i { background: linear-gradient(to top, #6d4a2a, #a8834d 50%, #d0b27a); }
.dyc-fl b { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 17px 'Spline Sans', var(--sans); color: #2a1208; }
.dyc-mid { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.dyc-mid small { font: 600 9px var(--sans); letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
.dyc-mid b { font: 400 18px var(--serif); color: var(--ink); white-space: nowrap; }
.dyc-mid .dyc-sub { font-size: 7.5px; letter-spacing: .8px; color: rgba(228,224,216,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dyc-spin { flex: 0 0 auto; pointer-events: none; }
/* the whole row is the key: a press anywhere on it presses the SPIN drawn on it */
.dycard:active .dyc-spin { transform: translateY(3px); box-shadow: 0 1px 0 var(--wine-d); }
.dyc-won { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 12px; border: 2px solid; background: var(--slot); display: grid; place-items: center; }
.dyc-won img { width: 40px; height: 40px; object-fit: contain; }
.spoil.dygift { width: 180px; height: 128px; }
.spoil.dygift img { width: 58px; height: 58px; }
.spoil.dygift .cap b { font-size: 17px; }

/* ── docs/361 · the quests: three lines strike through, the chest answers (`rew2-quest-list`) ── */
.qbody { padding-bottom: 8px; }
.qrow { height: 76px; min-height: 76px; padding: 8px 10px; margin-bottom: 7px; border-radius: 14px; gap: 10px; }
.qrow.lit { border-width: 2px; }
.qrow .ico { position: relative; width: 50px; height: 50px; border-radius: 12px; border-color: rgba(208,178,122,.35); }
.qrow .ico img { width: 34px; height: 34px; }
.qrow .mid b { font-size: 17px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow .mid small { margin-top: 1px; font-weight: 600; font-size: 11px; color: rgba(228,224,216,.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrow em { position: relative; font-style: normal; }
/* the strike is a bar that SCALES, never a painted stroke (the card's rule) */
.qrow em::after { content: ''; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 1px; background: #e6b14d;
  transform-origin: 0 50%; transform: scaleX(0); }
.qrow .mid small em::after { height: 1.5px; }
.qrow .track { margin-top: 7px; width: 150px; height: 4px; }
.qrow .track > i { background: rgba(208,178,122,.85); }
.qside { flex: 0 0 84px; display: grid; justify-items: center; gap: 3px; }
.qpay { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--mono); color: var(--gold); }
.qpay img { width: 14px; height: 14px; }
/* docs/382: the pair of bottles and the fragment beside the PB */
.qbonus { display: inline-flex; gap: 6px; font: 700 10px var(--mono); color: var(--gold); }
.qbonus i { display: inline-flex; align-items: center; gap: 2px; font-style: normal; }
.qbonus img { width: 14px; height: 14px; object-fit: contain; }
/* 38 + the key's own 3px pad above and below: the 44px floor is the TAPPABLE area */
.key-sm.qclaim { width: 84px; height: 38px; padding: 0; font-size: 14px; }
.qstate { height: 38px; display: grid; place-items: center; font: 700 10px var(--sans); letter-spacing: 1.4px; color: var(--faint); }
.qstate.count { font: 700 13px var(--mono); letter-spacing: 0; color: rgba(228,224,216,.55); }
.qtick { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 6px;
  background: linear-gradient(170deg, #fff1c9, #e6b14d); box-shadow: 0 0 0 2px #191617; opacity: 0; transform: scale(0); }
.qtick b { position: absolute; background: #191617; border-radius: 1px; }
.qtick .a { left: 5px; top: 9.5px; width: 3px; height: 6px; transform: rotate(-45deg); }
.qtick .b { left: 9px; top: 4.5px; width: 3px; height: 11px; transform: rotate(40deg); }
.qrow.struck { opacity: .5; }
.qrow.struck .qtick { opacity: 1; transform: none; }
.qrow.struck em::after { transform: scaleX(1); }
/* the claim: the box pops a tick, the rule strikes left to right, the row settles to half light */
.qrow.strike { animation: qs-dim .4s calc(var(--qa, 0ms) + 500ms) both; }
.qrow.strike .qtick { animation: qs-on .35s cubic-bezier(.2,.9,.3,1.6) var(--qa, 0ms) both; }
.qrow.strike .mid b em::after { animation: qs-strike .3s cubic-bezier(.5,0,.3,1) calc(var(--qa, 0ms) + 50ms) both; }
.qrow.strike .mid small em::after { animation: qs-strike .3s cubic-bezier(.5,0,.3,1) calc(var(--qa, 0ms) + 200ms) both; }
@keyframes qs-dim { from { opacity: 1; } to { opacity: .5; } }
@keyframes qs-on { 0% { opacity: 0; transform: scale(1.8); } 100% { opacity: 1; transform: none; } }
@keyframes qs-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .dy-fl .lay { animation: none; }
  .dy-glow { animation: none; opacity: .7; }
}

/* ══ ACHIEVEMENTS BEHIND THE TROPHY (docs/360) ═══════════════════════════════════
   His, 2026-09-27: *"'Achievement — the disc opens into a toast' this is cool, the left
   button under currencies should be achievements."*
   The screen: three tabs (Genshin's categories), a row per achievement (Steam's and Xbox's
   list: a medal, the name, the sentence and a bar), PlayStation's bronze / silver / gold
   on the rim and the pips, and CLAIM on the row (Genshin, Clash Royale). Every number on
   it is the server's (`snap.achievements`). Seven rows at most, so a 390x844 phone does
   not scroll. */
.strip.v2 .topdoors button .ping.gold { width: 12px; height: 12px; top: -2px; right: -2px; background: #ffc300;
  box-shadow: none; pointer-events: none; }
.achv .head .aside { top: 14px; }
/* a shorter title than the house size: the aside carries what a claim paid (`+250 PB · KEY`), and at
   30px 'Achievements' ran under it on a 390px phone */
.achv .head h1 { font-size: 26px; }
.asum { font-family: var(--mono); font-size: 12px; letter-spacing: .6px; color: var(--dim); white-space: nowrap; }
.asum b { font-weight: 700; color: var(--gold); }
.atabs { position: absolute; left: 20px; right: 20px; top: 180px; height: 40px; display: flex; gap: 6px; z-index: 4; }
.atabs button { position: relative; flex: 1 1 0; height: 40px; border-radius: 10px; background: var(--plate);
  border: 1px solid var(--rule); font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--dim); }
.atabs button.on { background: var(--wine); color: var(--gold); border-color: rgba(208,178,122,.55); }
.atabs button::after { content: ''; position: absolute; left: -3px; right: -3px; top: -3px; bottom: -3px; }
.atabs button .ping.gold { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%;
  background: #ffc300; pointer-events: none; }
.body.abody { top: 230px; padding: 0 20px 10px; }
.arow { position: relative; display: flex; align-items: center; gap: 10px; height: 68px; margin-bottom: 6px;
  padding: 0 8px 0 8px; border-radius: 12px; background: var(--card); border: 1px solid rgba(228,224,216,.14); }
.arow.lit { border-color: rgba(255,195,0,.55); background: linear-gradient(90deg, rgba(255,195,0,.07), rgba(255,195,0,0) 70%), var(--card); }
.arow.done { opacity: .62; }
.amed { position: relative; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3a3033, #191617 70%);
  box-shadow: inset 0 0 0 2.5px var(--tc, #5a5355), 0 3px 8px rgba(0,0,0,.5); }
.amed > img { position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; object-fit: contain; }
.amed > .asil { position: absolute; left: 7px; top: 7px; width: 36px; height: 36px; background: var(--ink);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.amed.dark > img, .amed.dark > .asil { opacity: .42; }
.apips { position: absolute; left: 50%; bottom: -5px; display: flex; gap: 3px; transform: translateX(-50%); }
.apips i { width: 8px; height: 8px; border-radius: 50%; background: #2a2426; box-shadow: 0 0 0 1.5px #191617; }
.apips i.on { background: var(--tc); }
.amid { position: relative; flex: 1 1 auto; min-width: 0; }
.amid b { display: block; font-family: var(--serif); font-weight: 400; font-size: 16px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amid b em { display: inline-block; vertical-align: 2px; margin-left: 4px; min-width: 18px; height: 16px; padding: 0 5px;
  border-radius: 8px; background: var(--tc); font-style: normal; font-family: var(--sans); font-weight: 700;
  font-size: 10px; line-height: 16px; letter-spacing: .6px; text-align: center; color: #191617; }
.amid small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; color: var(--dim); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atrk { position: relative; display: block; width: calc(100% - 64px); height: 4px; margin-top: 7px; border-radius: 3px;
  background: #35302f; overflow: hidden; }
.atrk > i { position: absolute; inset: 0; border-radius: 3px; transform-origin: 0 50%;
  background: linear-gradient(90deg, #b08a4c, #e6b14d, #fff1c9); }
.acnt { position: absolute; right: 0; bottom: -3px; font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: rgba(228,224,216,.6); white-space: nowrap; }
/* the reward he is working toward, quiet — his yellow is kept for the one waiting */
.arw { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 3px; width: 84px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: rgba(228,224,216,.5); }
.arw img { width: 15px; height: 15px; opacity: .6; }
.arw img.px { width: 18px; height: 18px; image-rendering: pixelated; }
.aclaim { flex: 0 0 auto; width: 84px; height: 46px; padding: 0 4px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; font-size: 14px; letter-spacing: 1.4px; }
.aclaim > b { font-weight: 400; line-height: 1; }
.aclaim .apz { display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0; color: #ffc300; line-height: 1; }
.aclaim .apz img { width: 12px; height: 12px; }
.aclaim .apz img.px { width: 14px; height: 14px; image-rendering: pixelated; }
.adone { flex: 0 0 auto; width: 84px; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 10px;
  letter-spacing: 1.6px; color: var(--legendary); }
.tip .atier { margin-top: 5px; font-family: var(--mono); font-size: 9px; line-height: 1.35; color: rgba(228,224,216,.6); }
.tip .atier b { font-family: var(--sans); font-weight: 700; letter-spacing: .8px; }
.tip .atier.got { color: rgba(228,224,216,.9); }

/* ── THE UNLOCK: "Achievement — the disc opens into a toast" (his gallery pick
   `rew2-achievement-toast`, scripts/anim_gallery/demos/81_rewards_more.js, after the Xbox One
   achievement popup). The card's own numbers, moved from its 412x220 stage into a 332x60 box
   (x - 40, y - 80), on the card's one 5s clock; every keyframe is transform or opacity.
   It lives in #toasts (a sibling of #app, docs/352), 58px down — over the header row, where
   a trophy pops on a console, and never over the key he is about to press.
   ⛔ It TAKES a tap (docs/375): it sits over the round doors, and a toast that let the tap
   through sent him to NOTICES. The tap opens the achievements; `.off` (app.js, once the pill
   has folded) hands the doors back under the lifting disc. ── */
#toasts .achpop { position: absolute; left: 50%; top: 58px; width: 332px; height: 60px; margin-left: -166px;
  pointer-events: auto; cursor: pointer; z-index: 2; --rim: #d0b27a;
  --metal: linear-gradient(170deg, #fff4cc 0%, #f0d48e 30%, #d0b27a 58%, #9c7a3e 100%); }
#toasts .achpop.off { pointer-events: none; }
#toasts .achpop.t1 { --rim: #c08457; --metal: linear-gradient(170deg, #ffe6cc 0%, #e8b184 30%, #c08457 58%, #7a4e2c 100%); }
#toasts .achpop.t2 { --rim: #c7d2dc; --metal: linear-gradient(170deg, #ffffff 0%, #e6ecf1 30%, #c7d2dc 58%, #7f8a94 100%); }
.achpop > i, .achpop > div { position: absolute; display: block; }
.achpop .mid { left: 30px; top: 0; width: 272px; height: 60px; background: linear-gradient(180deg, #2a2426, #1d191a);
  box-shadow: inset 0 1px 0 rgba(228,224,216,.14), inset 0 -1px 0 rgba(0,0,0,.5), 0 10px 22px rgba(0,0,0,.5);
  transform-origin: 0 50%; animation: ach-mid 5s linear both; }
.achpop .cap { left: 272px; top: 0; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(180deg, #2a2426, #1d191a);
  box-shadow: inset 0 1px 0 rgba(228,224,216,.14), 0 10px 22px rgba(0,0,0,.5); animation: ach-cap 5s linear both; }
@keyframes ach-mid {
  0%, 8.8% { opacity: 0; transform: scaleX(0); }
  9% { opacity: 1; transform: scaleX(0); animation-timing-function: cubic-bezier(.2,.9,.3,1); }
  19% { opacity: 1; transform: scaleX(1); }
  70% { opacity: 1; transform: scaleX(1); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  78% { opacity: 1; transform: scaleX(0); }
  78.2%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes ach-cap {
  0%, 8.8% { opacity: 0; transform: translateX(-272px); }
  9% { opacity: 1; transform: translateX(-272px); animation-timing-function: cubic-bezier(.2,.9,.3,1); }
  19% { opacity: 1; transform: translateX(0); }
  70% { opacity: 1; transform: translateX(0); animation-timing-function: cubic-bezier(.6,0,.8,.4); }
  78% { opacity: 1; transform: translateX(-272px); }
  78.2%, 100% { opacity: 0; transform: translateX(-272px); } }
.achpop .shc { left: 0; top: 0; width: 332px; height: 60px; border-radius: 30px; overflow: hidden; }
.achpop .sheen { position: absolute; left: -80px; top: -20px; width: 50px; height: 100px;
  background: linear-gradient(90deg, transparent, rgba(255,236,190,.28), transparent);
  transform: translateX(0) rotate(20deg); animation: ach-sh .9s 1.45s cubic-bezier(.5,0,.4,1) both; }
@keyframes ach-sh { 0% { transform: translateX(0) rotate(20deg); } 100% { transform: translateX(460px) rotate(20deg); } }
.achpop .txt { left: 68px; top: 0; width: 190px; height: 60px; overflow: hidden; }
.achpop .txt b { position: absolute; left: 0; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.achpop .k { top: 9px; font: 700 9px 'Source Sans 3', sans-serif; letter-spacing: 3px; text-transform: uppercase; color: #e6b14d;
  animation: ach-ln 5s linear both; }
.achpop .t { top: 21px; font: 400 17px Marcellus, Georgia, serif; color: #e4e0d8; animation: ach-ln2 5s linear both; }
.achpop .s { top: 42px; font: 600 10px 'Source Sans 3', sans-serif; color: rgba(228,224,216,.6); animation: ach-ln3 5s linear both; }
@keyframes ach-ln {
  0%, 15.6% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  21.6%, 65% { opacity: 1; transform: none; }
  69%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes ach-ln2 {
  0%, 17.6% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  23.6%, 65.6% { opacity: 1; transform: none; }
  69.4%, 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes ach-ln3 {
  0%, 19.6% { opacity: 0; transform: translateY(14px); animation-timing-function: cubic-bezier(.2,.8,.3,1); }
  25.6%, 66% { opacity: 1; transform: none; }
  69.8%, 100% { opacity: 0; transform: translateY(-8px); } }
.achpop .rw { left: 258px; top: 18px; width: 64px; height: 24px; opacity: 0; animation: ach-rw 5s linear both; }
.achpop .rw img { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; }
.achpop .rw b { position: absolute; left: 22px; top: 0; font: 700 16px/24px 'Spline Sans', sans-serif; color: #ffc300; white-space: nowrap; }
@keyframes ach-rw {
  0%, 21% { opacity: 0; transform: scale(.4); animation-timing-function: cubic-bezier(.2,.9,.3,1.6); }
  27%, 66% { opacity: 1; transform: none; }
  69.6%, 100% { opacity: 0; transform: scale(.6); } }
.achpop .dw { left: 0; top: 0; width: 60px; height: 60px; z-index: 3; animation: ach-dw 5s linear both; }
@keyframes ach-dw {
  0% { opacity: 0; transform: scale(0); animation-timing-function: cubic-bezier(.2,.9,.3,1.5); }
  7.6% { opacity: 1; transform: none; }
  81% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5,0,.8,.5); }
  89%, 100% { opacity: 0; transform: translateY(-50px) scale(.6); } }
.achpop .disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a3033, #191617 70%);
  box-shadow: inset 0 0 0 3px var(--rim), 0 0 0 3px #191617, 0 6px 14px rgba(0,0,0,.55); }
.achpop .tr { position: absolute; left: 15px; top: 14px; width: 30px; height: 30px; background: var(--metal);
  -webkit-mask: url(/static/pf2/art/ui/top_trophy.png) center / contain no-repeat;
  mask: url(/static/pf2/art/ui/top_trophy.png) center / contain no-repeat; }
.achpop .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ffc300; box-sizing: border-box; opacity: 0;
  animation: ach-ring .6s .3s ease-out forwards; }
@keyframes ach-ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.achpop .pw { position: absolute; left: 30px; top: 30px; width: 0; height: 0; }
.achpop .p { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; background: #ffc300;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); opacity: 0; animation: ach-p .6s .3s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes ach-p { 0% { opacity: 1; transform: translateY(var(--r0)); } 100% { opacity: 0; transform: translateY(var(--r)) scale(.3); } }
/* ⛔ stillness: the toast is still SAID — drawn whole and standing, for three seconds, and gone
   without a movement (app.js removes it); nothing is hidden because motion is off */
.achpop.still .mid, .achpop.still .cap, .achpop.still .txt b, .achpop.still .rw, .achpop.still .dw,
.achpop.still .sheen, .achpop.still .ring, .achpop.still .p { animation: none !important; }
.achpop.still .mid, .achpop.still .cap, .achpop.still .txt b, .achpop.still .rw, .achpop.still .dw { opacity: 1; transform: none; }
.achpop.still .ring, .achpop.still .pw, .achpop.still .shc { display: none; }
@media (prefers-reduced-motion: reduce) {
  .achpop .mid, .achpop .cap, .achpop .txt b, .achpop .rw, .achpop .dw, .achpop .sheen, .achpop .ring, .achpop .p { animation: none !important; }
  .achpop .mid, .achpop .cap, .achpop .txt b, .achpop .rw, .achpop .dw { opacity: 1; transform: none; }
  .achpop .ring, .achpop .pw, .achpop .shc { display: none; }
}

/* ════════════════════════════════════════ THE CABINET (docs/362, 364, 368) ═══
   His, 2026-09-27: *"yes, and btw, its not 'his' its mine."* The collection screen and the relic's
   own screen, moved in whole from the :7781 lab (scripts/collection_live/ — whose own designs now
   build on this block rather than keep a copy of it). What they draw is app.js's screenCollection
   and screenRelic; every picture is a class of static/pf2/art/collection/kit.css, GENERATED by
   scripts/build_collection_kit.py from his sprite sheet, and so is every position on the case
   (--k-*), so this block says only how things look and move.
   ⛔ Every loop and every arrival moves transform and opacity only, and reads the clocks the screens
   write on their roots: --ar (the arrival, negative ms since it began), --pl (the loops,
   -(now % 48s) - 48s; every loop's length divides 48s, so a node rebuilt by render() carries on
   exactly where the one it replaced had got to) and, on the relic screen, --lu (the level-up).
   Arrival pieces carry `.ar`, and only they pause while a cover is still up. Per case the screen
   writes --i (its place), --lc (the level's colour, his mapping: relicColour), --lcg/--lch (the
   same at 25% / 60%), --c/--r (its column and row) and --t (when the spark reaches it).
   ⚠️ Appended LAST in app.css on purpose: in the lab these rules came after every sheet of the
   game's, and the cascade he approved is that one. */

.body.cab-body { top: 120px; padding: 0 8px 18px; }
.cab-root { position: relative; height: 100%; min-height: 540px; }
.cab-slot { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0;
  text-align: center; color: inherit; }
.cab-slot i { font-style: normal; }
.cab-slot img { -webkit-user-drag: none; user-select: none; }
/* the press: a big thing scales less (docs/300) */
.cab-root .cab-slot.pressing { transform: scale(.965) translateY(1px); }
.cab-root .cab-slot.rebound { animation: pf2-rebound-soft 200ms cubic-bezier(.2,.8,.2,1); }
/* HIS yellow dot (#FFC300 — the gear slot's and the REWARD door's): ready to assemble NOW */
.cab-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%;
  background: #ffc300; z-index: 8; pointer-events: none; box-shadow: 0 0 0 2px rgba(20,15,16,.9);
  animation: cab-dot 440ms cubic-bezier(.3,1.7,.5,1) backwards; animation-delay: calc(var(--ar) + var(--dd, 900ms) + var(--i) * 60ms); }
@keyframes cab-dot { from { opacity: 0; transform: scale(.1); } }
/* the cover is still up: the arrival waits, the loops do not */
.cab-hold .ar { animation-play-state: paused !important; }

/* ══ THE CABINET'S CASES (docs/362) — built out of his sprite sheet ════════════════════════
   A case is his EMPTY CASE with his back wall, velvet and brass put into it; each layer is the
   whole case canvas at 100% 100%, so they line up by construction.
   ⛔ THE LIGHT HAS NO SOURCE (docs/372; his: *"fire at collection screen ... ugly. Maybe turn
   collection screens fire into just light (but no source)"*). The electric fitting on his back
   wall is left out by the builder, and since docs/372 NOTHING burns in its place: the light is
   his lamp's own glow (case_lit) falling from a lintel you cannot see into — a museum vitrine's
   hidden light — coloured by a mask of what that glow adds (case_light), with a pool of the same
   colour on the velvet. The colour and the pool breathe on ONE slow clock a case (9.6s, a few
   per cent): a light that lives, never a flicker.
   THE ARRIVAL (--t per cell): the cases come on one after another, boustrophedon, the way a
   gallery's lights come on at opening — each rises smoothly into its level's colour; a case you
   do not own stays dark.
   ⛔ transform and opacity only; the clocks are the root's --ar and --pl (see the top). */
.cab-kit { --gx: 5px; --gy: 4px; --tag-h: 34px; --tag-lap: 5px; height: 100%; image-rendering: pixelated; }
.cab-kit .kc-grid { height: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gy) var(--gx);
  padding: 3px 0 0; }
.kc-cell, .kc-spare { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; }
.kc-cq { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; container-type: size;
  --kc-w: min(100cqw, calc((100cqh - var(--tag-h) + var(--tag-lap)) * (var(--k-case-ar)))); }
.kc-cq > *, .kc-case > * { pointer-events: none; }
.kc-case { position: relative; display: block; flex: none; width: var(--kc-w); aspect-ratio: var(--k-case-ar);
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.kc-case > i, .kc-case > b, .kc-case > img, .kc-case > span { position: absolute; display: block; }
.kc-l { inset: 0; background-size: 100% 100%; background-repeat: no-repeat; }

/* the relic, standing on his velvet — his symbol, drawn smooth (it is not pixel art) */
.kc-relic { left: var(--k-relic-x); top: var(--k-relic-y); width: var(--k-relic-w); height: var(--k-relic-h);
  object-fit: contain; object-position: 50% 100%; image-rendering: auto;
  filter: drop-shadow(0 1.5px 0 rgba(22,8,6,.8)) drop-shadow(0 0 3px var(--lch)); }
.kc-cell.dark .kc-relic { filter: brightness(.16) sepia(.5); opacity: .9; }

/* the darkness: a case you own sheds it as its light comes up; one you do not keeps it */
.kc-dim { background: rgba(8,4,5,.46); }
.kc-cell.lit .kc-dim { opacity: 0; animation: kc-undim 900ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--ar) + var(--t)); }
@keyframes kc-undim { from { opacity: 1; } to { opacity: 0; } }

/* his lamp's glow with no lamp: the light comes UP, smoothly (docs/372 — docs/362's uneven catch was
   a wick's, and there is no wick) */
.kc-lit { opacity: 1; animation: kc-lightup 900ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--ar) + var(--t)); }
@keyframes kc-lightup { from { opacity: 0; } to { opacity: 1; } }

/* the level's colour, laid over exactly what his lamp lights (the mask), and a pool of it on the
   velvet under the relic: both on ONE slow clock a case — 9.6s, and never more than a few per cent */
.kc-lightw { opacity: 1; animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--ar) + var(--t) + 80ms); }
.kc-lightw > i { position: absolute; display: block; }
@keyframes kc-fadein { from { opacity: 0; } }
.kc-tint { background-color: var(--lc); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: .9; animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }
@keyframes kc-glow { 0%, 100% { opacity: .92; } 50% { opacity: .74; } }
.kc-pool { left: calc(var(--k-relic-x) - var(--k-relic-w) * .35); width: calc(var(--k-relic-w) * 1.7);
  top: calc(var(--k-relic-y) + var(--k-relic-h) * .6); aspect-ratio: 2.4; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,250,236,.55) 0, var(--lch) 32%, var(--lcg) 62%, rgba(0,0,0,0) 100%);
  opacity: .9; animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }

/* the opening: the glass's glint (clipped to the case) — and dust in the relic screen's light */
.kc-open { left: var(--k-open-x); top: var(--k-open-y); width: var(--k-open-w); height: var(--k-open-h); overflow: hidden; }
.kc-open > i { position: absolute; display: block; }
/* dust turning in the light: pale, small and slow, no glow of its own (a mote, never a spark) */
.kc-mote { position: absolute; width: 1.5px; height: 1.5px; background: rgba(240,230,214,.8);
  opacity: 0; animation: kc-dust 9.6s linear infinite; animation-delay: calc(var(--pl) - var(--i) * 611ms); }
.kc-mote.m1 { left: 40%; top: 18%; }
.kc-mote.m2 { left: 58%; top: 34%; animation-duration: 8s; animation-delay: calc(var(--pl) - var(--i) * 437ms - 2600ms); }
.kc-mote.m3 { left: 49%; top: 8%; width: 1px; height: 1px; animation-duration: 12s; animation-delay: calc(var(--pl) - var(--i) * 293ms - 5200ms); }
@keyframes kc-dust { 0% { opacity: 0; transform: translate(0, 0); } 12% { opacity: .55; } 50% { opacity: .35; transform: translate(4px, 22px); }
  85% { opacity: .5; } 100% { opacity: 0; transform: translate(-3px, 44px); } }
.kc-glint { top: -30%; bottom: -30%; left: 0; width: 34%;
  background: linear-gradient(90deg, rgba(255,250,236,0) 0, rgba(255,250,236,.22) 45%, rgba(255,250,236,.34) 50%, rgba(255,250,236,.22) 55%, rgba(255,250,236,0) 100%);
  opacity: 0; transform: translateX(-120%) skewX(-22deg);
  animation: kc-glint 9.6s linear infinite; animation-delay: calc(var(--pl) - (var(--c) + var(--r)) * 190ms); }
@keyframes kc-glint { 0% { opacity: 0; transform: translateX(-120%) skewX(-22deg); } 2% { opacity: 1; }
  13% { opacity: 1; transform: translateX(330%) skewX(-22deg); } 14%, 100% { opacity: 0; transform: translateX(330%) skewX(-22deg); } }
.kc-streaks { opacity: .26; }
.kc-cell.dark .kc-streaks { opacity: .12; }

/* the level, in enamel on his brass plate */
.kc-lv { left: calc(var(--k-plate-x) + var(--k-plate-w) * .1); width: calc(var(--k-plate-w) * .8);
  top: calc(var(--k-plate-y) + var(--k-plate-h) * .16); height: calc(var(--k-plate-h) * .68);
  place-items: center; border-radius: 1.5px;
  background-color: var(--lc); background-image: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 55%, rgba(0,0,0,.16));
  box-shadow: 0 0 0 1px rgba(46,24,10,.9), 0 0 5px var(--lcg);
  font: 700 9px/1 var(--mono); letter-spacing: .5px; color: #1d1112; text-shadow: 0 1px 0 rgba(255,255,255,.3);
  animation: kc-stamp 380ms cubic-bezier(.3,1.7,.5,1) both; animation-delay: calc(var(--ar) + var(--t) + 260ms); }
@keyframes kc-stamp { from { opacity: 0; transform: scale(.4); } }

.kc-case > .kc-lv { display: grid; }

/* his yellow dot (#FFC300, the ASSEMBLE rule's) over the case's corner, and the relic calling */
.cab-kit .cab-dot { top: 1px; right: 1px; width: 11px; height: 11px; animation-delay: calc(var(--ar) + var(--t) + 540ms); }
.kc-aura { left: calc(var(--k-relic-x) - 10%); top: calc(var(--k-relic-y) - 6%); width: calc(var(--k-relic-w) + 20%); aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,195,0,.55) 0, rgba(255,195,0,.22) 38%, rgba(255,195,0,0) 68%);
  opacity: .85; animation: kc-call 2.4s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 97ms); }
@keyframes kc-call { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }

/* the name, in gilt on his brass plaque, and under it the fragments toward the next level */
.kc-tag { position: relative; flex: none; display: grid; grid-template-rows: minmax(0, 1fr) auto; width: min(100%, calc(var(--kc-w) + 6px));
  height: var(--tag-h); margin-top: calc(var(--tag-lap) * -1); padding: 3px 7px 5px; background-size: 100% 100%; background-repeat: no-repeat;
  z-index: 1; filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)); }
.kc-nm { display: grid; place-items: center; min-width: 0; min-height: 0; }
.kc-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%;
  font-family: var(--serif); font-size: 9.5px; line-height: 9.6px; letter-spacing: .2px; color: #fbe9c0;
  text-shadow: 0 1px 0 rgba(22,10,3,.95), 0 0 2px rgba(22,10,3,.6); overflow-wrap: anywhere; }
.kc-name.long { font-size: 8.4px; line-height: 8.8px; letter-spacing: 0; }
/* a shorter phone narrows every case (they are height-bound), and at 800 tall the 36 letters of the longest
   name wrapped to a third line that the clamp cut to an ellipsis — measured, 7.6px is two lines there */
@media (max-height: 820px) { .cab-kit .kc-name.long { font-size: 7.6px; line-height: 8.2px; } }
/* ...and a NARROWER phone narrows every plaque by its cell, not by its case (the plaque is
   min(the cell, the case + 6px)): at 360 wide — the commonest Android width — 7.6px still wrapped
   "Wooden Figurine of an Ancient Dragon" to a third line at 360x800 and the clamp cut it to an
   ellipsis (docs/368 review). Measured: 7.2px is two lines there and at 360x780. */
@media (max-width: 370px) { .cab-kit .kc-name.long { font-size: 7.2px; line-height: 7.8px; } }
.kc-cell.dark .kc-tag { filter: drop-shadow(0 2px 1px rgba(0,0,0,.6)) brightness(.8) saturate(.75); }
.kc-cell.dark .kc-name { color: #d9cbb0; }
.kc-tag .kb-s { margin: 1.5px 3px 0; }
.kc-cell .kb { --pour: calc(var(--t) + 380ms); }
.kc-cell.dark .kb { opacity: .8; }

/* ── THE FRAGMENT BAR (docs/364), the cases' and the relic screen's ────────────────────────────
   A channel cut into the brass, dark inside with a lit lip under it; the gold in it MOLTEN (lit
   from above, dark where it pools), a sheen crossing it slowly, and a glow at the leading edge that
   breathes on the case's own LIGHT clock (the same 9.6s, the same per-case offset — docs/372: it
   was an ember on the flame's 1.6s flicker, and there is no flame). A step of
   eight fragments or fewer is cut into cells (--n). The count is written in the channel; READY
   (his #FFC300 in the gold, and a halo breathing on the dot's 2.4s clock) only when the ASSEMBLE
   rule says so; MAX in gold leaf. The gold POURS in on arrival by translating from behind the
   channel's left lip — transform only, never a width. */
.kb { position: relative; display: block; flex: none; font-style: normal; }
.kb i, .kb b { position: absolute; display: block; font-style: normal; }
.kb-ch { inset: 0; border-radius: 2.5px;
  background: linear-gradient(180deg, #0c0503 0%, #1c0d06 45%, #2c170a 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.95), inset 0 -1px 0 rgba(255,210,140,.1),
    0 0 0 1px #3b220e, 0 1px 0 1px rgba(255,222,165,.3); }
.kb-clip { inset: 1px; overflow: hidden; border-radius: 1.5px; }
.kb-fill { left: 0; top: 0; bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #fff5cc 0%, #ffd66b 24%, #eba633 56%, #b8691a 84%, #7a3f0b 100%);
  box-shadow: inset -1px 0 0 rgba(255,246,214,.75); }
.kb-fill.ar, .kb-capw.ar { animation: kb-pour 760ms cubic-bezier(.3,.65,.25,1) both; animation-delay: calc(var(--ar) + var(--pour, 0ms)); }
@keyframes kb-pour { from { transform: translateX(-100%); } }
/* the sheen: as wide as the whole channel (the fill is --p of it), so it crosses at one speed
   whatever the count, and shows only where there is gold */
.kb-sheen { top: 0; bottom: 0; left: 0; width: calc(100% / max(var(--p), .04));
  background: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,253,238,.8) 50%, rgba(255,255,255,0) 58%);
  transform: translateX(-60%); animation: kb-sheen 4.8s linear infinite; animation-delay: calc(var(--pl) - var(--i, 0) * 173ms); }
@keyframes kb-sheen { 0% { transform: translateX(-60%); } 30%, 100% { transform: translateX(60%); } }
/* the glow at the leading edge of the molten gold, on its case's light clock (slow and slight) */
.kb-track { inset: 1px; }
.kb-capw { left: 0; top: 0; bottom: 0; }
.kb-cap { right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: radial-gradient(circle, #fffef4 0, #ffe9a6 22%, rgba(255,184,76,.62) 46%, rgba(255,140,40,0) 72%);
  animation: kb-edge 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i, 0) * 1300ms); }
@keyframes kb-edge { 0%, 100% { opacity: .92; transform: scale(1); } 50% { opacity: .7; transform: scale(.9); } }
/* the cells of a small step: a line struck across the channel between every fragment */
.kb-cells .kb-clip::after { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) calc(100% / var(--n) - 1.5px),
    rgba(24,10,3,.95) calc(100% / var(--n) - 1.5px), rgba(24,10,3,.95) calc(100% / var(--n) - .5px),
    rgba(255,222,160,.2) calc(100% / var(--n) - .5px), rgba(255,222,160,.2) calc(100% / var(--n))); }
/* the count, stamped in the channel: cream with a dark edge reads on the gold AND on the empty */
.kb-n { left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; white-space: nowrap;
  font: 700 7px/1 var(--mono); letter-spacing: .1px; color: #fff4d8;
  text-shadow: 1px 0 0 #1a0b03, -1px 0 0 #1a0b03, 0 1px 0 #1a0b03, 0 -1px 0 #1a0b03, 0 0 3px rgba(18,7,2,.85); }
/* READY: his yellow in the gold, the word in dark ink, a halo breathing on the dot's clock */
.kb-ready .kb-fill { background: linear-gradient(180deg, #fffbe2 0%, #ffe57e 26%, #ffc300 58%, #c98a06 86%, #87570a 100%); }
.kb-ready::before { content: ''; position: absolute; inset: -2.5px; border-radius: 4px;
  box-shadow: 0 0 5px 1px rgba(255,195,0,.7), inset 0 0 0 1px rgba(255,214,90,.95);
  animation: cab-breathe 2.4s ease-in-out infinite; animation-delay: var(--pl); }
.kb-ready .kb-n, .kb-max .kb-n { font-family: var(--sans); font-weight: 800; letter-spacing: 1.1px; color: #2b1404;
  text-shadow: 0 1px 0 rgba(255,246,206,.6); }
/* MAX: gold leaf, beaten, never the level's colour — the case already says it. The hammering is two
   soft dimple layers at different pitches, so it has no period to read: evenly spaced vertical lines
   (the first cut) looked like the CELLS a small step is cut into, which is a count, and MAX has none */
.kb-max .kb-fill { background:
  radial-gradient(circle at 35% 30%, rgba(255,253,236,.28) 0, rgba(255,253,236,0) 2.2px) 0 0 / 9px 6px,
  radial-gradient(circle at 60% 70%, rgba(112,70,14,.11) 0, rgba(112,70,14,0) 2.4px) 3px 2px / 7px 5px,
  linear-gradient(180deg, #fff9e0 0%, #f4d992 30%, #d9b25a 62%, #9f7631 100%);
  box-shadow: inset 0 0 0 1px rgba(122,84,28,.4); }
/* the two sizes */
.kb-s { height: 8px; }
.kb-s .kb-n { font-size: 6.6px; }
.kb-s.kb-ready .kb-n, .kb-s.kb-max .kb-n { font-size: 6px; letter-spacing: .8px; }
.kb-big { height: 16px; }
.kb-big .kb-ch { border-radius: 4px; box-shadow: inset 0 2px 3px rgba(0,0,0,.95), inset 0 -1px 0 rgba(255,210,140,.12),
    0 0 0 1.5px #3b220e, 0 1.5px 0 1.5px rgba(255,222,165,.3); }
.kb-big .kb-clip { inset: 2px; border-radius: 2.5px; }
.kb-big .kb-track { inset: 2px; }
.kb-big .kb-n { font-size: 10.5px; letter-spacing: .4px; }
.kb-big.kb-ready .kb-n, .kb-big.kb-max .kb-n { font-size: 9.5px; letter-spacing: 2px; }
.kb-big .kb-cap { width: 20px; height: 20px; margin-top: -10px; right: -10px; }
.kb-big.kb-ready::before { inset: -3.5px; border-radius: 6px; box-shadow: 0 0 8px 2px rgba(255,195,0,.65), inset 0 0 0 1.5px rgba(255,214,90,.95); }

/* the spare cell: his banner hung on the wall behind his vase, and the key to the dot.
   docs/372: his lit candles stood here, and an unlit candle is only a promise of a flame */
.kc-still { position: relative; flex: 1 1 auto; width: 100%; min-height: 0; }
.kc-still > i { position: absolute; display: block; background-size: 100% 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.kc-banner { left: 50%; top: 3%; height: 86%; aspect-ratio: 230 / 278; transform: translateX(-54%); filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)) brightness(.9); }
.kc-vase { right: 9%; bottom: 3%; height: 56%; aspect-ratio: 128 / 183; }
.kc-key span { display: block; font: 700 7px/8.5px var(--sans); letter-spacing: .6px; color: #25160b; text-align: center;
  text-shadow: 0 1px 0 rgba(255,228,176,.42); }
.kc-kdot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 3px 0 0; background: #ffc300;
  box-shadow: 0 0 0 1px rgba(40,20,8,.9); vertical-align: 0; }

/* the band: HIS SHELF, mounted on the room's wall behind the currencies (docs/372: the wall shows
   through it now, where the band was a flat #120d0e, and nothing burns on its candle) */
.kc-band { container-type: size; background: transparent; }
.kc-band::before { display: none; }
.kc-band::after { background: linear-gradient(180deg, rgba(10,6,6,.5) 0%, rgba(10,6,6,.12) 38%, rgba(10,6,6,0) 72%); }
.kc-band > i { position: absolute; display: block; }
.kc-shelf { left: 0; top: 0; width: 100%; aspect-ratio: var(--k-shelf-ar); background-size: 100% 100%; image-rendering: pixelated; }

/* ══ THE ROOM (docs/372) ══════════════════════════════════════════════════════════════════════
   His, 2026-09-28: *"I think there should be some background for collection screen and collection
   info screen - since currently is just gray."* Both screens stand in a room of his wood: kc-room is
   the first thing in the view, over the grey ground panel (which stays, for every other screen), from
   the top of the screen to the bar. It is ONE node with one picture and one pseudo, painted once:
     the wall   his planks (kit.css `k-wall`, built from his EMPTY CASE's back wall — the wood with no
                lamp on it), tiled at the SAME size of pixel the cases are drawn at, so wall and case
                are one pixel art: a quarter of the grid's width is one case canvas (267 of his px)
     the light  a wash high on the wall with no source (Hollow Knight's Hall of Gods: the alcoves lit
                from nowhere), the shelf's shadow under it, the corners and the floor in shadow — the
                dark edges keep the cases, the names and the bars the brightest things on the screen
     the rail   his back wall's sill (kit.css `k-rail`) as the skirting where the wall meets the bar
   The relic screen's room is the same at the BIG case's pixel size (--kw of 267, the stage's rule).
   ⛔ Nothing in it moves. */
.kc-room { position: absolute; inset: 0; display: block; pointer-events: none; overflow: hidden;
  background-color: #1d0f0c; background-repeat: repeat; background-position: 50% 0; image-rendering: pixelated;
  background-size: calc((100% - 31px) / 4 / 267 * var(--k-wall-w)) auto; }
.kc-room::after { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(90% 38% at 50% 24%, rgba(255,214,168,.11) 0, rgba(255,214,168,0) 100%),
    linear-gradient(180deg, rgba(8,4,3,0) 0, rgba(8,4,3,0) 108px, rgba(8,4,3,.6) 119px, rgba(8,4,3,0) 176px),
    linear-gradient(90deg, rgba(6,3,3,.62) 0, rgba(6,3,3,0) 15%, rgba(6,3,3,0) 85%, rgba(6,3,3,.62) 100%),
    linear-gradient(0deg, rgba(6,3,3,.6) 0, rgba(6,3,3,0) 24%); }
.kc-room > i { position: absolute; display: block; }
.kc-rail { left: 0; right: 0; bottom: 0; z-index: 1; background-repeat: repeat-x; image-rendering: pixelated;
  height: calc((100vw - 31px) / 4 / 267 * var(--k-rail-h)); max-height: 6px;
  background-size: auto 100%; box-shadow: 0 -2px 3px rgba(0,0,0,.45); }
.kr-room { background-size: calc(min(250px, 100% - 132px) / 267 * var(--k-wall-w)) auto; }
.kr-room .kc-rail { height: calc(min(250px, 100vw - 132px) / 267 * var(--k-rail-h)); max-height: 15px; }
.kr-room::after { background:
    radial-gradient(80% 30% at 50% 28%, rgba(255,214,168,.10) 0, rgba(255,214,168,0) 100%),
    linear-gradient(180deg, rgba(8,4,3,0) 0, rgba(8,4,3,0) 108px, rgba(8,4,3,.6) 119px, rgba(8,4,3,0) 176px),
    linear-gradient(90deg, rgba(6,3,3,.62) 0, rgba(6,3,3,0) 14%, rgba(6,3,3,0) 86%, rgba(6,3,3,.62) 100%),
    linear-gradient(0deg, rgba(6,3,3,.7) 0, rgba(6,3,3,.25) 30%, rgba(6,3,3,0) 55%); }

/* ══ THE RELIC'S OWN SCREEN (docs/364) ══════════════════════════════════════════════
/* ── the column ─────────────────────────────────────────────────────────────── */
.kr-root { position: absolute; left: 0; right: 0; top: 124px; bottom: 20px; z-index: 1; display: flex; flex-direction: column;
  align-items: center; padding: 0 14px; image-rendering: pixelated; --c: 0; --r: 0; overflow: hidden; }
.kr-root i, .kr-root b { font-style: normal; }
.kr-root img { -webkit-user-drag: none; user-select: none; }

/* ── the stage and his case ─────────────────────────────────────────────────── */
.kr-stage { position: relative; flex: 1 1 auto; min-height: 110px; width: 100%; container-type: size;
  --kw: min(250px, calc(100cqw - 104px), calc(100cqh * 267 / 284)); }
.kr-root .kr-back { position: absolute; left: -10px; right: auto; top: 0; z-index: 4; }
/* his two columns either side of the case, at the case's own scale, standing on its floor */
.kr-col { position: absolute; bottom: 0; display: block; width: calc(var(--kw) * 58 / 267); aspect-ratio: 58 / 271; background-size: 100% 100%;
  background-repeat: no-repeat; filter: drop-shadow(0 4px 5px rgba(0,0,0,.55)) brightness(.8); }
.kr-col.l { left: calc(50% - var(--kw) / 2 - var(--kw) * 58 / 267 + var(--kw) * .03); }
.kr-col.r { left: calc(50% + var(--kw) / 2 - var(--kw) * .03); }
.kr-col.ar { animation: kc-fadein 600ms ease-out both; animation-delay: calc(var(--ar) + 20ms); }
.kr-case { position: absolute; left: 50%; bottom: 0;
  width: var(--kw); aspect-ratio: var(--k-case-ar); margin-left: calc(var(--kw) / -2);
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }
.kr-case > i, .kr-case > b, .kr-case > img, .kr-case > span { position: absolute; display: block; pointer-events: none; }
.kr-relic { left: var(--k-relic-x); top: var(--k-relic-y); width: var(--k-relic-w); height: var(--k-relic-h);
  object-fit: contain; object-position: 50% 100%; image-rendering: auto;
  filter: drop-shadow(0 2px 0 rgba(22,8,6,.85)) drop-shadow(0 0 7px var(--lch)); }
.kr-root.dark .kr-relic { filter: brightness(.16) sepia(.5); opacity: .9; }

/* the light behind the case, spilling onto the wall in the level's colour (docs/372) — the room's
   one coloured light, breathing on the case's clock */
.kr-spill { position: absolute; display: block; left: 50%; bottom: calc(var(--kw) * -.34); width: calc(var(--kw) * 1.9); aspect-ratio: 1.1;
  margin-left: calc(var(--kw) * -.95); pointer-events: none;
  animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--ar) + 200ms); }
.kr-spill::before { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--lcg) 0, var(--lcg) 30%, rgba(0,0,0,0) 100%);
  opacity: .9; animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }
/* the darkness the case sheds as its light comes up (a relic not yet his keeps it) */
.kr-dim { background: rgba(8,4,5,.5); }
.kr-root.lit .kr-dim { opacity: 0; animation: kc-undim 900ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--ar) + 200ms); }
/* his lamp's glow with no lamp, coming up; the level's colour over exactly what it lights, and its pool */
.kr-lit { animation: kc-lightup 900ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--ar) + 200ms); }
.kr-lightw { animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--ar) + 260ms); }
.kr-lightw > i { position: absolute; display: block; }
.kr-tint { background-color: var(--lc); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: .9; animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }
.kr-pool { left: calc(var(--k-relic-x) - var(--k-relic-w) * .35); width: calc(var(--k-relic-w) * 1.7);
  top: calc(var(--k-relic-y) + var(--k-relic-h) * .6); aspect-ratio: 2.4; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,250,236,.55) 0, var(--lch) 32%, var(--lcg) 62%, rgba(0,0,0,0) 100%);
  opacity: .9; animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }
/* the light falling from the hidden lintel onto the velvet, a few beams, breathing with it */
.kr-rays { left: var(--k-lamp-x); top: var(--k-lamp-y); width: 0; height: 0; animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--ar) + 380ms); }
.kr-rays > i { position: absolute; display: block; left: calc(var(--kw) * -.33); top: 0; width: calc(var(--kw) * .66); height: calc(var(--kw) * .62);
  clip-path: polygon(50% 0, 100% 100%, 0 100%); transform-origin: 50% 0;
  background: repeating-conic-gradient(from 180deg at 50% 0%, rgba(255,240,210,0) 0deg 4deg, var(--lcg) 6deg, rgba(255,244,220,.2) 7deg, rgba(255,240,210,0) 9deg 13deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 100%);
  animation: kr-rays 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }
@keyframes kr-rays { 0%, 100% { opacity: .75; transform: rotate(-1.5deg); } 50% { opacity: .6; transform: rotate(1.5deg); } }
/* the opening: dust turning in the light, the glass's glint */
.kr-open { left: var(--k-open-x); top: var(--k-open-y); width: var(--k-open-w); height: var(--k-open-h); overflow: hidden; }
.kr-open > i { position: absolute; display: block; }
.kr-motes { inset: 0; animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--ar) + 600ms); }
.kr-motes .kc-mote.m4 { left: 30%; top: 26%; animation-duration: 9.6s; animation-delay: calc(var(--pl) - 3900ms); }
.kr-motes .kc-mote.m5 { left: 66%; top: 12%; width: 1px; height: 1px; animation-duration: 12s; animation-delay: calc(var(--pl) - 7100ms); }
.kr-streaks { opacity: .26; }
.kr-root.dark .kr-streaks { opacity: .14; }
/* the level, in enamel on his brass plate (and, during a level-up, the old one going out under it) */
.kr-lvplate, .kr-lvold { left: calc(var(--k-plate-x) + var(--k-plate-w) * .1); width: calc(var(--k-plate-w) * .8);
  top: calc(var(--k-plate-y) + var(--k-plate-h) * .16); height: calc(var(--k-plate-h) * .68); display: grid !important; place-items: center; border-radius: 2px;
  background-color: var(--lc); background-image: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 55%, rgba(0,0,0,.16));
  box-shadow: 0 0 0 1.5px rgba(46,24,10,.9), 0 0 8px var(--lcg);
  font: 700 15px/1 var(--mono); color: #1d1112; text-shadow: 0 1px 0 rgba(255,255,255,.3);
  animation: kc-stamp 380ms cubic-bezier(.3,1.7,.5,1) both; animation-delay: calc(var(--ar) + 440ms); }
/* a ready relic calls: his yellow behind it */
.kr-aura { left: calc(var(--k-relic-x) - 12%); top: calc(var(--k-relic-y) - 8%); width: calc(var(--k-relic-w) + 24%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,195,0,.5) 0, rgba(255,195,0,.2) 38%, rgba(255,195,0,0) 68%);
  opacity: .85; animation: kc-call 2.4s ease-in-out infinite; animation-delay: var(--pl); }

/* ── the name, on his big brass plaque (nine-sliced: the rivets keep their shape) ── */
.kr-plaque { position: relative; z-index: 3; flex: none; width: min(100%, 320px); height: 50px; margin-top: -13px;
  display: grid; place-items: center; padding: 6px 24px 7px; border-style: solid; border-width: 0; border-image-width: 17px 19px 18px 19px;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.65)); transform-origin: 50% 0;
  animation: kr-hang 760ms linear both; animation-delay: calc(var(--ar) + 520ms); }
/* dropped onto its two nails, it swings and settles */
@keyframes kr-hang { 0% { opacity: 0; transform: translateY(-18px) rotate(-3deg); animation-timing-function: cubic-bezier(.5,0,.9,.5); }
  30% { opacity: 1; transform: translateY(2px) rotate(1.6deg); animation-timing-function: ease-in-out; }
  52% { transform: translateY(-1px) rotate(-.9deg); animation-timing-function: ease-in-out; }
  72% { transform: translateY(.5px) rotate(.4deg); animation-timing-function: ease-in-out; } 100% { transform: none; } }
.kr-name { display: block; max-width: 100%; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.24;
  letter-spacing: .6px; color: #fbe9c0; text-shadow: 0 1px 0 rgba(22,10,3,.95), 0 0 3px rgba(22,10,3,.7); overflow-wrap: anywhere; }
.kr-name.long { font-size: 15px; line-height: 1.2; letter-spacing: .3px; }
.kr-root.dark .kr-plaque { filter: drop-shadow(0 3px 2px rgba(0,0,0,.65)) brightness(.78) saturate(.75); }
.kr-root.dark .kr-name { color: #dccfb4; }

/* ── the museum placard: which relic, what it does, what it gives now and next ── */
.kr-placard { position: relative; flex: none; width: 100%; margin-top: 7px; padding: 8px 14px 7px; border-radius: 3px;
  background: linear-gradient(180deg, #1e1819 0%, #161213 100%);
  box-shadow: inset 0 0 0 1px rgba(208,178,122,.42), inset 0 0 0 3px #161213, inset 0 0 0 4px rgba(208,178,122,.14), 0 3px 6px rgba(0,0,0,.45);
  animation: kr-up 480ms cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--ar) + 600ms); }
@keyframes kr-up { from { opacity: 0; transform: translateY(8px); } }
.kr-eye { display: flex; align-items: center; gap: 7px; white-space: nowrap; font: 700 8.5px/1 var(--sans); letter-spacing: 1.5px; color: var(--gold); }
.kr-eye b { font-weight: 700; }
.kr-lvtext { color: var(--dim); }
.kr-sep { display: block; width: 3px; height: 3px; background: rgba(208,178,122,.55); transform: rotate(45deg); }
.kr-no { margin-left: auto; color: rgba(208,178,122,.62); }
.kr-what { margin: 6px 0 0; font: 600 12.5px/1.3 var(--sans); color: var(--ink); }
.kr-note { margin: 3px 0 0; font: italic 400 10.5px/1.3 var(--sans); color: var(--dim); }
.kr-vals { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(208,178,122,.18); }
.kr-val { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.kr-val.next { justify-content: flex-end; }
.kr-val small { font: 700 8px/1 var(--sans); letter-spacing: 1.3px; color: var(--dim); white-space: nowrap; }
.kr-val b { font: 700 16px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.kr-val.now b { color: var(--lc); }
.kr-root.dark .kr-val.now b { color: var(--faint); }
/* his arrow (chev_r, the mask set by the screen), in the placard's brass */
.kr-to { display: block; flex: none; width: 13px; height: 13px; background: rgba(208,178,122,.7);
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; }

/* ── the fragments (the cabinet's bar, big) ─────────────────────────────────── */
.kr-meter { flex: none; width: 100%; margin-top: 9px; display: flex; align-items: center; gap: 10px;
  animation: kr-up 420ms cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--ar) + 660ms); }
.kr-ml { flex: none; font: 700 8.5px/1 var(--sans); letter-spacing: 1.5px; color: var(--gold); }
.kr-meter .kb { flex: 1 1 auto; --pour: 760ms; }

/* ── the ladder: his small brass plates, the reached ones enamelled in their own colour ── */
.kr-ladder { flex: none; width: 100%; margin-top: 10px; display: grid; gap: 5px; }
.kr-row { display: flex; justify-content: center; gap: 5px; }
.kr-rung { position: relative; flex: 0 0 calc((100% - 25px) / 6); height: 29px; display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 5px; border-style: solid; border-width: 0; border-image-width: 10.5px 11px;
  animation: kr-strike 320ms cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--ar) + 640ms + var(--k) * 28ms); }
@keyframes kr-strike { from { opacity: 0; transform: scale(.55); } }
.kr-rn { display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 2px;
  font: 700 9px/1 var(--mono); color: #1d1112; background: var(--rc);
  background-image: linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 55%, rgba(0,0,0,.18));
  box-shadow: 0 0 0 1px rgba(46,24,10,.92); text-shadow: 0 1px 0 rgba(255,255,255,.3); }
.kr-rv { font: 700 10px/1 var(--mono); color: #fff1d2; white-space: nowrap;
  text-shadow: 1px 0 0 #1c0c04, -1px 0 0 #1c0c04, 0 1px 0 #1c0c04, 0 -1px 0 #1c0c04; }
/* not reached: the number engraved into the brass, unenamelled */
.kr-rung.next .kr-rn, .kr-rung.far .kr-rn { background: rgba(28,13,5,.62); color: rgba(255,226,176,.7); text-shadow: none;
  box-shadow: inset 0 1px 1.5px rgba(0,0,0,.85), 0 1px 0 rgba(255,222,165,.25); }
.kr-rung.far { filter: brightness(.52) saturate(.55); }
.kr-rung.next::after { content: ''; position: absolute; inset: -3px; border: 1px dashed rgba(255,222,150,.7); border-radius: 4px; }
.kr-root.ready .kr-rung.next::after { border: 1.5px solid #ffc300; box-shadow: 0 0 6px rgba(255,195,0,.55);
  animation: cab-breathe 2.4s ease-in-out infinite; animation-delay: var(--pl); }
/* the level it is at, raised, lit from behind by its own light (the case's slow clock, docs/372) */
.kr-rung.cur::before { content: ''; position: absolute; inset: -9px -7px; z-index: -1;
  background: radial-gradient(closest-side, var(--lch), var(--lcg) 55%, rgba(0,0,0,0) 100%);
  animation: kc-glow 9.6s ease-in-out infinite; animation-delay: calc(var(--pl) - var(--i) * 1300ms); }

/* ── the cost, have against need ────────────────────────────────────────────── */
.kr-cost { flex: none; width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px;
  animation: kr-up 420ms cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--ar) + 700ms); }
.kr-costl { flex: none; width: 50px; font: 700 7.5px/1.25 var(--sans); letter-spacing: 1.2px; color: var(--dim); }
.kr-cost.whole .kr-costl { width: auto; font-size: 8.5px; letter-spacing: 1.5px; color: var(--gold); }
.kr-chip { position: relative; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 5px; align-items: center;
  height: 32px; padding: 0 20px 0 7px; border-radius: 16px; background: #1c1718; box-shadow: inset 0 0 0 1px rgba(208,178,122,.42); }
.kr-chip img { grid-row: 1 / span 2; width: 19px; height: 19px; object-fit: contain; }
.kr-chip b { align-self: end; font: 700 12.5px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.kr-chip small { align-self: start; margin-top: 2px; font: 700 6.5px/1 var(--sans); letter-spacing: .9px; color: var(--dim); }
.kr-tick { position: absolute; right: 9px; top: 50%; margin-top: -5px; width: 3.5px; height: 6.5px; border: solid var(--gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
/* short: said, never red — dimmed, the rim gone, have/need written */
.kr-chip.short { background: #171314; box-shadow: inset 0 0 0 1px rgba(228,224,216,.1); }
.kr-chip.short img { opacity: .5; }
.kr-chip.short b { color: rgba(228,224,216,.55); }
.kr-chip.short .kr-tick { display: none; }

/* ── the ASSEMBLE key: wine enamel in a brass rim, the step on his small brass plate ── */
.kr-root .keywrap.kr-keywrap { position: relative; left: auto; right: auto; bottom: auto; height: auto; flex: none; width: 100%;
  margin-top: auto; padding-top: 10px; padding-bottom: 8px; display: grid; place-items: center; z-index: 2;
  animation: kr-up 480ms cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--ar) + 740ms); }
.kr-root .key.kr-key { position: relative; width: 100%; height: 60px; padding: 0; border-radius: 9px; display: block;
  background: radial-gradient(120% 90% at 50% 0%, #9a0a5c 0%, #6b0340 48%, #470229 100%);
  box-shadow: inset 0 0 0 1.5px #d9b877, inset 0 0 0 3px #3a1a0c, inset 0 0 0 4px rgba(236,206,140,.35), inset 0 10px 14px -8px rgba(255,210,230,.28),
    0 6px 0 #2e0119, 0 8px 12px rgba(0,0,0,.45);
  font-family: var(--serif); text-transform: uppercase; color: #f7e9c9; overflow: hidden; }
.kr-root .key.kr-key:active { transform: translateY(4px); box-shadow: inset 0 0 0 1.5px #d9b877, inset 0 0 0 3px #3a1a0c, inset 0 0 0 4px rgba(236,206,140,.35), 0 2px 0 #2e0119; }
/* four rivets in the rim, drawn in the plaque's own brass */
.kr-root .key.kr-key::before { content: ''; position: absolute; inset: 6px; pointer-events: none;
  background: radial-gradient(circle at 3px 3px, #ffe6a8 0 1px, #b8893f 1.6px, rgba(0,0,0,0) 2.4px),
    radial-gradient(circle at calc(100% - 3px) 3px, #ffe6a8 0 1px, #b8893f 1.6px, rgba(0,0,0,0) 2.4px),
    radial-gradient(circle at 3px calc(100% - 3px), #ffe6a8 0 1px, #b8893f 1.6px, rgba(0,0,0,0) 2.4px),
    radial-gradient(circle at calc(100% - 3px) calc(100% - 3px), #ffe6a8 0 1px, #b8893f 1.6px, rgba(0,0,0,0) 2.4px); }
.kr-kl { position: absolute; left: 0; right: 0; top: 7px; text-align: center; font-size: 26px; line-height: 1; letter-spacing: 1.8px;
  text-shadow: 0 2px 0 rgba(30,2,16,.9), 0 0 8px rgba(255,214,150,.25); }
.kr-sub { position: absolute; left: 50%; top: 36px; width: 152px; height: 17px; margin-left: -76px; display: grid; place-items: center;
  font: 700 8.5px/1 var(--sans); letter-spacing: 1.4px; color: #fff1d2; text-shadow: 0 1px 0 #1c0c04, 0 0 2px rgba(28,12,4,.8);
  border-style: solid; border-width: 0; border-image-width: 6px 6.5px; }
.kr-kshine { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,240,220,0), rgba(255,240,220,.22) 50%, rgba(255,240,220,0));
  transform: translateX(-120%) skewX(-18deg); animation: kr-kshine 4.8s linear infinite; animation-delay: var(--pl); }
@keyframes kr-kshine { 0% { transform: translateX(-120%) skewX(-18deg); } 24%, 100% { transform: translateX(330%) skewX(-18deg); } }
.kr-keyhold { position: relative; display: block; width: min(100%, 300px); }
.kr-keyhold .cab-dot { top: -5px; right: -5px; width: 13px; height: 13px; animation-delay: calc(var(--ar) + 1000ms); }
.kr-root .key.kr-key:disabled { background: linear-gradient(180deg, #2d2728 0%, #221d1e 100%); color: rgba(228,224,216,.36);
  box-shadow: inset 0 0 0 1.5px rgba(217,184,119,.35), inset 0 0 0 3px #1c1718, 0 6px 0 #151112; }
.kr-root .key.kr-key:disabled .kr-kl { text-shadow: none; }
.kr-root .key.kr-key:disabled .kr-sub { filter: brightness(.55) saturate(.6); color: rgba(255,241,210,.75); }
.kr-root .key.kr-key:disabled::before { opacity: .35; }

/* ── THE LEVEL-UP: the case re-lit in the new colour (--lu) ─────────────────── */
/* the old colour's light fades out (docs/372: smoothly — it guttered like a flame, and sank to an
   ember, when there was one) */
.kr-oldw { opacity: 0; animation: kr-fadeout 460ms ease-in both; animation-delay: var(--lu); }
@keyframes kr-fadeout { from { opacity: 1; } to { opacity: 0; } }
.kr-tint.kr-old { background-color: var(--lcf); }
/* the case dims as it goes, then the new light comes up */
.kr-lu .kr-dim { animation: kr-dip 900ms ease-in-out both; animation-delay: var(--lu); }
@keyframes kr-dip { 0% { opacity: 0; } 35% { opacity: .7; } 100% { opacity: 0; } }
.kr-lu.kr-first .kr-dim { animation: kc-undim 800ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--lu) + 300ms); }
.kr-lu.kr-first .kr-lit { animation: kc-lightup 800ms cubic-bezier(.3,.1,.3,1) both; animation-delay: calc(var(--lu) + 300ms); }
.kr-lu .kr-lightw { animation: kr-relight 800ms ease-out both; animation-delay: calc(var(--lu) + 300ms); }
@keyframes kr-relight { from { opacity: 0; } to { opacity: 1; } }
/* ...and its pool BLOOMS up in the new colour: a scale, on top of its own slow glow (opacity) */
.kr-lu .kr-pool { animation: kr-bloom 900ms cubic-bezier(.2,.8,.3,1) both, kc-glow 9.6s ease-in-out infinite;
  animation-delay: calc(var(--lu) + 300ms), calc(var(--pl) - var(--i) * 1300ms); }
@keyframes kr-bloom { 0% { transform: scale(.4); } 55% { transform: scale(1.2); } 100% { transform: scale(1); } }
.kr-lu .kr-rays { animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--lu) + 420ms); }
.kr-lu .kr-lvplate { animation: kc-stamp 420ms cubic-bezier(.3,1.7,.5,1) both; animation-delay: calc(var(--lu) + 540ms); }
/* the old number is not wiped at the press: it goes out with the old light, just before the new one is stamped */
.kr-lvold { background-color: var(--lcf); box-shadow: 0 0 0 1.5px rgba(46,24,10,.9); opacity: 0;
  animation: kr-lvout 520ms ease-in both; animation-delay: var(--lu); }
@keyframes kr-lvout { 0%, 55% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.72); } }
/* a FIRST level: the relic was a dark shape, and it is the LIGHT that shows it, never the press. The dark
   copy (the dark case's own filter, static) hands over to the lit one as the light comes up — opacity only */
.kr-shade { filter: brightness(.16) sepia(.5); opacity: 0; }
.kr-lu.kr-first .kr-relic { animation: kr-knock 640ms cubic-bezier(.16,1,.3,1) both, kc-fadein 700ms linear both;
  animation-delay: calc(var(--lu) + 280ms), calc(var(--lu) + 300ms); }
.kr-lu.kr-first .kr-relic.kr-shade { animation: kr-knock 640ms cubic-bezier(.16,1,.3,1) both, kr-unshade 700ms linear both;
  animation-delay: calc(var(--lu) + 280ms), calc(var(--lu) + 300ms); }
@keyframes kr-unshade { 0% { opacity: 1; } 100% { opacity: 0; } }
.kr-lu.kr-first .kr-motes { animation: kc-fadein 900ms ease-out both; animation-delay: calc(var(--lu) + 700ms); }
.kr-lu .kr-relic { animation: kr-knock 640ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--lu) + 280ms); }
@keyframes kr-knock { 0% { transform: scale(1); } 30% { transform: scale(.9); } 60% { transform: scale(1.09); } 100% { transform: scale(1); } }
/* a ring of the new light thrown out (docs/372: the eight sparks that flew with it are gone) */
.kr-burst { inset: 0; }
.kr-burst > i { position: absolute; display: block; }
.kr-ring { left: 50%; top: 56%; width: 72%; aspect-ratio: 1; margin: -36% 0 0 -36%; border-radius: 50%;
  border: 2px solid var(--lc); box-shadow: 0 0 12px var(--lcg), inset 0 0 12px var(--lcg);
  opacity: 0; animation: kr-ring 780ms cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--lu) + 300ms); }
@keyframes kr-ring { 0% { opacity: 0; transform: scale(.2); } 24% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
/* the plaque takes the knock; the new level's plate is gilded; the gold pours in again */
.kr-lu .kr-plaque { animation: kr-plaque-knock 460ms ease-out both; animation-delay: calc(var(--lu) + 320ms); }
@keyframes kr-plaque-knock { 0% { transform: none; } 30% { transform: translateY(2px); } 100% { transform: none; } }
.kr-rung.gild { animation: kr-gild 760ms cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--lu) + 600ms); }
@keyframes kr-gild { 0% { transform: scale(1); } 35% { transform: scale(1.2); } 100% { transform: scale(1); } }
.kr-rung.gild::after { content: ''; position: absolute; inset: -4px; border-radius: 4px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,250,228,.95), var(--lch) 60%, rgba(0,0,0,0));
  opacity: 0; animation: kr-flashout 760ms ease-out both; animation-delay: calc(var(--lu) + 600ms); }
@keyframes kr-flashout { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
.kr-lu .kr-meter .kb-fill.ar, .kr-lu .kr-meter .kb-capw.ar { animation-delay: calc(var(--lu) + 760ms); }

/* ── a shorter phone: the same column, tighter ──────────────────────────────── */
@media (max-height: 820px) {
  .kr-placard { margin-top: 5px; padding: 6px 12px 6px; }
  .kr-what { margin-top: 4px; font-size: 12px; }
  .kr-vals { margin-top: 5px; padding-top: 4px; }
  .kr-meter { margin-top: 7px; }
  .kr-ladder { margin-top: 8px; gap: 4px; }
  .kr-rung { height: 27px; }
  .kr-cost { margin-top: 7px; }
  .kr-root .keywrap.kr-keywrap { padding-top: 7px; padding-bottom: 8px; }
}

/* the breath of a thing waiting on HIS yellow: the READY bar's halo and the next plate's frame */
@keyframes cab-breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── reduced motion: nothing moves, nothing is hidden, the new level simply there ── */
@media (prefers-reduced-motion: reduce) {
  .cab-root *, .cab-root *::before, .cab-root *::after { animation: none !important; }
  /* the cabinet: every case already lit, its light still (docs/362, docs/372) */
  .kc-band *, .kc-band *::before, .kc-band *::after { animation: none !important; }
  .kr-root *, .kr-root *::before, .kr-root *::after, .kr-root, .kr-band *, .kr-band *::before, .kr-band *::after { animation: none !important; }
  .kr-oldw, .kr-burst, .kr-lvold, .kr-shade { display: none !important; }
}

/* ── docs/377 · SETTINGS IN A FIGHT, AND A TURN A STUN HAS TAKEN ──────────────────────
   His: *"Opening Settings during fight."* The header's own round door (his top_menu
   symbol), in the console's top-right corner where GIVE UP stood until docs/322 — clear
   of the reading band (it ends 80px from the edge) and of the rail's first plate (46px
   down). 34px painted, 44px to the finger. */
.fset { position: absolute; right: 25px; top: 6px; width: 34px; height: 34px; padding: 0; z-index: 5;
  border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(25,22,23,.92);
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.3), 0 2px 0 #191617, 0 4px 10px rgba(0,0,0,.45); }
.fset::after { content: ''; position: absolute; inset: -5px; }
.fset img { width: 16px; height: 16px; object-fit: contain; }
.view.over .fset { display: none; }
/* ⛔ His: *"Shouldnt be able to click basic attack at stun, nor use consumables."* The dial
   and the rail are down (`.wait`) and the dial says why; the turn passes by itself. */
.dial.stunned::after { content: 'STUNNED'; position: absolute; left: 0; right: 0; top: 116px; z-index: 4;
  text-align: center; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 3px;
  color: var(--ink); text-shadow: 0 1px 0 #000, 0 0 8px rgba(0,0,0,.8); pointer-events: none; }
/* ⛔⛔ docs/399, his: *"it should darken your whole bottom part of your screen (covering consumables too, whole
   bottom part, not just dial)"*. The veil covers the whole console — the dial, the stance key, both rails of
   bottles — and takes every tap on it; it comes down on the stun's own beat and lifts when the stunned round's
   answer has played. Only Settings (`.fset`) stays above it: it is not an action in the fight. */
.stunveil { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 4px;
  background: rgba(8,6,7,.78); pointer-events: auto; touch-action: none;
  animation: stunveil-in .32s ease-out both; animation-delay: var(--sv, 0ms); }
.stunveil img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); }
.stunveil b { font: 700 18px var(--sans); letter-spacing: 4px; color: var(--ink); text-shadow: 0 1px 0 #000, 0 0 10px rgba(0,0,0,.9); }
.stunveil small { font: 700 9px var(--sans); letter-spacing: 1.8px; color: var(--dim); }
.stunveil.off { animation: stunveil-out .24s ease-in both; pointer-events: none; }
@keyframes stunveil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stunveil-out { from { opacity: 1; } to { opacity: 0; } }
.console .fset { z-index: 7; }
.dial.stunned::after { content: none; }      /* the veil says it now, once, over the whole console */
@media (prefers-reduced-motion: reduce) { .stunveil, .stunveil.off { animation: none; } }
/* ⭐ docs/377: a chest's coin on its way to the purse — over #app in the motion layer */
#pf2m .coinfly { position: absolute; margin: 0; z-index: 3; object-fit: contain; }

/* ── docs/377 · THE ANVIL'S ALL, BESIDE DESTROY ───────────────────────────────────────
   His: *"Destroy all (toggle button) next to destroy button at forge."* The key shrinks to
   make the room and the switch is the settings screen's own (`.toggle`), so ON reads the
   way every other switch in the game does. */
.keywrap.anvil.two { display: flex; justify-content: center; align-items: flex-start; gap: 10px; }
.keywrap.anvil.two .key { width: 232px; }
.alltog { width: 74px; height: 68px; border: 0; border-radius: 12px; padding: 8px 0 0; display: grid;
  justify-items: center; align-content: start; gap: 6px; background: #2a2426; box-shadow: 0 7px 0 #1a1617;
  color: rgba(228,224,216,.7); font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 2px; }
.alltog b { font-weight: 700; }
.alltog.on { background: #3b0122; box-shadow: 0 7px 0 #220114; color: var(--ink); }
.anvilslot.all img { width: 50px; height: 50px; image-rendering: auto; }
.bagpick.all .tile { box-shadow: 0 0 0 2px rgba(224,92,106,.55); }

/* ⭐ docs/390: the public demo's last word — over the fight, outside #app (a render would take it). */
#demo-end { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(8, 6, 10, .72); }
#demo-end .demo-card { width: min(360px, 100%); display: grid; gap: 12px; padding: 22px 20px;
  background: var(--plate); border: 1px solid var(--gold); border-radius: 16px; text-align: center; }
#demo-end h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; color: var(--ink, #f3e7cf); }
#demo-end p { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink, #f3e7cf); }
#demo-end .demo-sub { color: var(--dim); font-size: 13px; }
#demo-end .demo-join, #demo-end .demo-again { display: block; min-height: 48px; line-height: 48px; border-radius: 12px;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: .6px; text-decoration: none; cursor: pointer; }
#demo-end .demo-join { background: var(--gold); color: #1a1410; }
#demo-end .demo-again { background: transparent; color: var(--gold); border: 1px solid var(--gold); }

/* ── docs/391 · the gleam: what can be pressed, said with light ───────────────────────────
   One band crosses each pressable thing a beat after a screen arrives (app.js gleamRun). Its
   own layer, outside #app, under the daily sheet (29) and the toasts (30); never takes a touch. */
#gleam { position: fixed; inset: 0; z-index: 28; pointer-events: none; }
#gleam > i { position: fixed; overflow: hidden; pointer-events: none; }
#gleam > i > b { position: absolute; top: -10%; left: 0; width: 38px; height: 120%;
  background: linear-gradient(90deg, rgba(255,240,205,0) 0%, rgba(255,240,205,.30) 45%, rgba(255,250,230,.42) 50%,
    rgba(255,240,205,.30) 55%, rgba(255,240,205,0) 100%);
  will-change: transform; transform: translateX(-60px) skewX(-20deg); }
@media (prefers-reduced-motion: reduce) { #gleam { display: none; } }

/* ⭐⭐ docs/393 — THE END OF A FIGHT IS ITS OWN SCREEN, AND IT IS HIS C2 (picked off the :7785 lab).
   *"i dislike this color and fact that there are different styles of things on this screen"* — so ONE
   style: a charcoal ground, one hairline, the game's three faces, gold the only accent, no wine. The word
   sits LOW (*"VICTORY text should be lower"*). YOUR team is the LEFT column; BOTH columns scroll (*"for
   when i have fights 10vs 10"*), fade at the bottom and say how many are below. The loot window's own
   nodes (.lband, .lgrid > .lslot > .lplate, .lkey) stay, so CLAIM's flight and its clock are the same.
   Transform/opacity only. */
.view.results { inset: 0; background: #121011; }
.view.results::before { display: none; }
.loot.rs .dim { background: #121011; animation: none; }
.loot.rs .lband { position: absolute; top: 0; bottom: 92px; left: 0; right: 0; height: auto; background: none;
  display: flex; flex-direction: column; padding: 0 14px; box-sizing: border-box; animation: none; }
.loot.rs .lkey { left: 14px; right: 14px; bottom: 22px; margin: 0; }
.loot.rs .lkey .key { width: 100%; height: 56px; border-radius: 14px; border: 1px solid var(--gold); background: linear-gradient(#24201c, #191617);
  box-shadow: none; font-family: var(--serif); font-size: 22px; letter-spacing: 4px; color: #f3d48a; }
.loot.rs.lost .lkey .key { border-color: rgba(228,224,216,.18); color: var(--ink); }
.rs-res { flex: none; text-align: center; padding-top: 86px; animation: mf-stamp .42s cubic-bezier(.3,1.4,.5,1) calc(var(--la) + .1s) backwards; }
.rs-res b { display: block; font: 400 44px/1 var(--serif); letter-spacing: 10px; padding-left: 10px; color: #f3d48a; }
.loot.rs.lost .rs-res b { color: #cfc8bd; }
.rs-res small { display: block; margin-top: 10px; font: 700 11px var(--sans); letter-spacing: 1.4px; color: rgba(228,224,216,.55); text-transform: uppercase; }
.rs-res .rs-fell { margin-top: 4px; letter-spacing: .8px; }
.rs-rule { flex: none; height: 1px; margin: 14px 0 12px; background: linear-gradient(90deg, transparent, rgba(208,178,122,.28), transparent); }
.rs-sums { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center;
  animation: mf-in .4s ease-out calc(var(--la) + .5s) backwards; }
.rs-sums b { display: block; font: 700 26px var(--mono); color: var(--ink); }
.rs-sums small { font: 700 11px var(--sans); letter-spacing: 1.2px; color: rgba(228,224,216,.55); }
.rs-sums span { font: 400 14px var(--serif); color: rgba(228,224,216,.55); }
.rs .dl { color: #f3d48a; } .rs .tk { color: #e9a3b2; } .rs .sh { color: #8acff8; } .rs .hl { color: #77d18b; }
.rs .nil { color: rgba(228,224,216,.22) !important; font-weight: 400; }
.rs-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  animation: mf-in .4s ease-out calc(var(--la) + .7s) backwards; }
.rs-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.rs-th { flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(208,178,122,.28); }
.rs-th b { font: 400 15px var(--serif); color: var(--ink); }
.rs-th.mine b { color: #f3d48a; }
.rs-th span { font: 700 11px var(--sans); letter-spacing: 1.2px; color: rgba(228,224,216,.55); white-space: nowrap; }
.rs-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-right: 3px;
  scrollbar-width: thin; scrollbar-color: rgba(208,178,122,.55) transparent; -webkit-overflow-scrolling: touch; }
.rs-scroll::-webkit-scrollbar { width: 4px; }
.rs-scroll::-webkit-scrollbar-thumb { background: rgba(208,178,122,.55); border-radius: 4px; }
.rs-scroll.more { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.rs-more { flex: none; min-height: 17px; padding-top: 4px; text-align: center; font: 700 11px var(--sans); letter-spacing: 1px; color: var(--gold); }
.rs-gate { font: 700 11px var(--sans); letter-spacing: 1.4px; color: var(--gold); padding: 9px 0 2px; }
.rs-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 7px 2px;
  border-bottom: 1px solid rgba(228,224,216,.12); }
.rs-row.fell { opacity: .78; }
.rs-pic { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 8px; background: #3a3436;
  box-shadow: inset 0 0 0 1px rgba(228,224,216,.12); display: grid; place-items: center; overflow: hidden; }
.rs-pic img { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; }
.rs-who { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.rs-who b { font: 400 14px var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rs-row.me .rs-who b { color: #f3d48a; }
.rs-who i { font: 700 11px var(--mono); font-style: normal; color: rgba(228,224,216,.55); }
.rs-big { grid-row: 1; grid-column: 3; font: 700 15px var(--mono); color: #f3d48a; }
.rs-small { grid-column: 2 / span 2; display: flex; gap: 0 7px; font: 700 11px var(--mono); white-space: nowrap; }
.rs-key { flex: none; margin-top: 6px; text-align: center; font: 700 11px var(--sans); letter-spacing: .6px; color: rgba(228,224,216,.55); }
.rs-xp { flex: none; display: flex; align-items: center; gap: 8px; }
.rs-xp b { font: 400 14px var(--serif); color: var(--ink); white-space: nowrap; }
.rs-xp .tr { flex: 1; height: 5px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.rs-xp .tr i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(var(--x1));
  animation: rs-xp 1.1s cubic-bezier(.3,.7,.3,1) calc(var(--la) + 1.2s) backwards; }
@keyframes rs-xp { from { transform: scaleX(var(--x0)); } to { transform: scaleX(var(--x1)); } }
.rs-xp em { font: 700 11px var(--mono); font-style: normal; color: #f3d48a; white-space: nowrap; }
/* the loot: one row of 48px plates with the count in the corner, the window's own landing clock */
.loot.rs .lgrid { position: relative; left: auto; top: auto; bottom: auto; width: auto; margin: 10px 0 0; flex: none;
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 112px; overflow-y: auto; }
.loot.rs .lslot { flex: 0 0 48px; width: 48px; height: 48px; }
.loot.rs .lslot::before { width: 48px; height: 48px; border-radius: 12px; }
.loot.rs .lslot::after { left: -5px; top: -5px; width: 58px; height: 58px; border-radius: 15px; }
.loot.rs .lplate { width: 48px; height: 48px; border-radius: 12px; border-width: 1px; background: #1b1819; }
.loot.rs .lplate img { width: 32px; height: 32px; }
.loot.rs .lcap { display: none; }
.rs-n { position: absolute; right: -3px; bottom: -3px; font: 700 11px var(--mono); font-style: normal; color: var(--ink);
  background: #0e0c0d; border: 1px solid; border-radius: 6px; padding: 0 4px; line-height: 15px; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .rs-res, .rs-sums, .rs-cols, .rs-xp .tr i { animation: none; }
}

/* ⭐ docs/393 — EVERY EFFECT ICON IN A FIGHT: its RARITY on the edge (a bottle's own, or the rule's
   from his catalogue), the ROUNDS LEFT in the middle when it has a clock, the STACKS bottom-right
   (`.fxn`, as before). The middle number sits over the picture on a dark halo so it reads on any icon. */
.plate.fx.rar { box-shadow: inset 0 0 8px color-mix(in srgb, var(--rc) 35%, transparent); }
.plate.fx.rar.on { box-shadow: 0 0 0 3px var(--gold), inset 0 0 8px color-mix(in srgb, var(--rc) 35%, transparent); }
.plate.fx .fxt { position: absolute; left: 0; right: 0; top: 50%; margin-top: -9px; height: 18px; text-align: center;
  font-family: var(--mono); font-weight: 800; font-size: 15px; line-height: 18px; color: #fff; pointer-events: none;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000; }
.plate.fx .fxn { border-color: var(--rc, rgba(208,178,122,.6)); }

/* ⭐⭐ docs/395 — HIS R5, THE ECLIPSE (off the :7786 lab). A gold disc in a corona of light lines that
   turns behind it: the corona wears the rarity your armour mostly is (--rc), turns faster as your health
   drops (--spin) and goes HP red below a third (.low), and flares once in the colour of what you just
   did (.fl, --fc). The two ring skills sit on an arc above, the stance is a coin under the disc, and the
   six bottles are round, three per thumb. Coordinates are the dial's own box (240x240, bottom 34). */
.dial.eclipse { overflow: visible; }
.dial.eclipse .corona { position: absolute; left: 10px; top: 29px; width: 220px; height: 220px; pointer-events: none; overflow: visible; }
.dial.eclipse .corona line { stroke: var(--rc); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.dial.eclipse .corona line.long { opacity: .95; }
.dial.eclipse .corona .rim { fill: none; stroke: var(--rc); stroke-width: 1.2; opacity: .4; }
.dial.eclipse.low .corona line, .dial.eclipse.low .corona .rim { stroke: var(--hp); }
.dial.eclipse .corona .turn { transform-box: view-box; transform-origin: 110px 110px;
  animation: eclTurn var(--spin, 20s) linear infinite; animation-delay: calc(-1 * var(--t, 0s)); }
@keyframes eclTurn { to { transform: rotate(360deg); } }
.dial.eclipse .corona .flare { transform-box: view-box; transform-origin: 110px 110px; }
.dial.eclipse.fl .corona .flare { animation: eclFlare .8s cubic-bezier(.2,.7,.2,1); }
@keyframes eclFlare { 0% { transform: scale(1); } 30% { transform: scale(1.2); } 100% { transform: scale(1); } }
.dial.eclipse.fl .corona line { animation: eclTint .8s cubic-bezier(.2,.7,.2,1); }
@keyframes eclTint { 0%, 45% { stroke: var(--fc); opacity: 1; } 100% { } }
/* STRIKE: the gold disc, the only gold ground on the console */
.dial.eclipse .basic { left: 52px; top: 71px; width: 136px; height: 136px; border-radius: 50%; border: 0; z-index: 1;
  background: radial-gradient(circle at 50% 30%, #fbe6ad, #d8ae62 45%, #9c7232 100%);
  box-shadow: inset 0 0 0 3px rgba(120,84,36,.6), inset 0 2px 0 rgba(255,250,230,.7), 0 10px 22px rgba(0,0,0,.6); }
.dial.eclipse .basic img { width: 76px; height: 76px; filter: drop-shadow(0 2px 2px rgba(60,40,15,.55)); }
.dial.eclipse.fl .basic { animation: eclPress .45s cubic-bezier(.2,.8,.2,1); }
@keyframes eclPress { 0% { transform: scale(1); } 30% { transform: scale(.94); } 100% { transform: scale(1); } }
/* the two ring skills: round keys on an arc above the disc, edged in your armour's colour */
.dial.eclipse .sk.acc { width: 62px; height: 62px; top: 12px; left: 10px; border: 0;
  background: radial-gradient(circle at 50% 35%, #2c2627, #161314); box-shadow: inset 0 0 0 1.5px var(--rc), 0 6px 14px rgba(0,0,0,.55); }
.dial.eclipse .sk.acc.a2 { left: auto; right: 10px; }
.dial.eclipse .sk.acc img { width: 36px; height: 36px; }
.dial.eclipse .sk.acc.cd { box-shadow: inset 0 0 0 1.5px rgba(228,224,216,.15), 0 6px 14px rgba(0,0,0,.55); }
.dial.eclipse.low .sk.acc:not(.cd) { box-shadow: inset 0 0 0 1.5px var(--hp), 0 6px 14px rgba(0,0,0,.55); }
/* the stance: a small coin under the disc, gold-ringed while it is held */
.dial.eclipse .sk.toggle { left: 87px; top: 202px; width: 66px; height: 66px; border-radius: 50%; border: 0; z-index: 1;
  background: #1d1a1b; box-shadow: inset 0 0 0 1.5px rgba(228,224,216,.25); }
.dial.eclipse.held .sk.toggle { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 3px rgba(208,178,122,.18); }
.dial.eclipse .sk.toggle img { width: 42px; height: 42px; }
/* ⛔ docs/397, his: *"there appears some dark dot there more often than not at the toggle button"*. It was
   the SETTINGS switch's knob — the global `.toggle::after` (a dark 20px disc) matches the stance key too,
   whose class is `toggle`. The `.row`/`.back` trap a third time. Here its box is the key's tap area. */
.dial.eclipse .sk.toggle::after { content: ''; position: absolute; inset: -8px; width: auto; height: auto; background: none; border-radius: 50%; box-shadow: none; }
.dial.eclipse .sk.toggle .on { bottom: -8px; font-size: 9px; padding: 1px 7px; }
/* six round bottles, a column of three per thumb */
.console .cons-rail { gap: 16px; bottom: 24px; }
.console .cons-rail .plate { width: 60px; height: 60px; border-radius: 50%; }
.console .cons-rail .plate img { width: 36px; height: 36px; }
@media (prefers-reduced-motion: reduce) {
  .dial.eclipse .corona .turn, .dial.eclipse.fl .corona .flare, .dial.eclipse.fl .corona line, .dial.eclipse.fl .basic { animation: none; }
}

/* docs/396: what your shield ate, in the shield's own blue (#8ACFF8, docs/327) — beside the health number
   when both landed, in its place when the shield took it all */
.hitnum.you.shd { --dmg: #8acff8; }
.hitnum.you.shd.beside { left: 150px; }

/* docs/396: what a participant lost this exchange rises off its own plate — the blow's beat on their side
   (EX.impact .3s), the answer's on yours (1.12s). Transform/opacity only. */
.parts .p .phit { position: absolute; right: 46px; top: 3px; z-index: 2; font: 700 15px var(--mono); font-style: normal; color: var(--hp);
  text-shadow: 0 1px 0 #fff, 0 0 4px rgba(255,255,255,.9); pointer-events: none; opacity: 0;
  animation: phitRise 1.4s cubic-bezier(.2,.7,.35,1) .3s both; }
.parts .p .phit.you { animation-delay: 1.12s; }
@keyframes phitRise { 0% { opacity: 0; transform: translateY(5px); } 15% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .parts .p .phit { animation: none; opacity: 1; } }

/* docs/396: the energy pill is a way to the shop — a small plus on its right end, drawn as two bars */
button.pill { cursor: pointer; }
.pill.stam .plus { position: relative; flex: none; width: 12px; height: 12px; margin-left: 2px; border-radius: 50%;
  background: var(--stam, #f3d48a); }
.pill.stam .plus::before, .pill.stam .plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: #141112; border-radius: 1px; }
.pill.stam .plus::before { width: 7px; height: 2px; margin: -1px 0 0 -3.5px; }
.pill.stam .plus::after { width: 2px; height: 7px; margin: -3.5px 0 0 -1px; }

/* docs/396: a place whose first clear today still pays its bonus wears a small gold tag */
.place > .fcb { position: absolute; left: 14px; bottom: 12px; z-index: 2; font: 700 10px var(--sans); font-style: normal; letter-spacing: 1.2px;
  color: #191617; background: linear-gradient(#f3d48a, #c99a4e); border-radius: 5px; padding: 3px 7px; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
/* docs/399: and which key it pays, how many — the key's own picture with its count, inside the tag */
.place > .fcb { display: flex; align-items: center; gap: 6px; }
.fck { display: inline-flex; align-items: center; gap: 2px; }
/* ⚠️ `.place img` (the card's picture, inset 0) and `.place b` (its name) reach into the tag too */
.fck img, .place .fck img { position: static; inset: auto; width: 22px; height: 22px; margin: -5px 0; opacity: 1;
  object-fit: contain; image-rendering: pixelated; }
.fck b, .place .fck b { position: static; font: 700 11px var(--sans); letter-spacing: .3px; text-shadow: none; }
.lootrow .lootday { margin-left: 0; }
.lootrow .lootday .fck img { width: 34px; height: 34px; margin: 0; }
.lootrow .lootday .fck b { color: var(--gold, #e6b14d); font-size: 12px; }
.rs-res .rs-fcb { margin-top: 6px; letter-spacing: 1px; }

/* docs/396: the shelf is one grid of twenty, four across — and a key deal wears its discount */
.shelf20 { gap: 8px 7px; }
.shelf20 .dealt { position: relative; }
/* ⭐ docs/399, his: *"Symbol/image of armor should be lower, in the middle, and the price should also be
   in the middle (so that amount is visible)"*. Three rows on one tile: the picture in the middle of the
   space between the level row and the price, the price centred along the foot, and the count a chip of
   its own on the picture's corner, above the price — the stack count of every inventory he knows — so
   neither ever covers the other (docs/398 raised the price over the picture instead). */
.shelf20 .tile.priced img { width: 54%; margin: 0 0 9px; }
.shelf20 .tile .price { bottom: 5px; height: 17px; padding: 0 9px; }
.shelf20 .tile .qty { right: 3px; bottom: 25px; border-radius: 6px; }
.shelf20 .deal { position: absolute; right: -3px; top: -5px; z-index: 3; font: 700 11px var(--mono); font-style: normal; color: #191617;
  background: linear-gradient(#f3d48a, #c99a4e); border-radius: 6px; padding: 1px 5px; box-shadow: 0 2px 5px rgba(0,0,0,.5); }

/* docs/396: a gear row of the odds opens every piece it can pay — the (i) beside the row, then the
   pieces as tiles you can hold for their card */
.oddrow.gear { align-items: center; }
.oddsi { flex: none; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20,14,12,.8); box-shadow: inset 0 0 0 1px rgba(208,178,122,.55); position: relative; }
.oddsi::after { content: ''; position: absolute; inset: -9px; }
.oddsi img { width: 15px; height: 15px; }
.oddspieces .oddsback { text-align: center; margin-bottom: 10px; }
.oddspieces .oddsline { text-align: center; font: 700 12px var(--sans); letter-spacing: 1.2px; text-transform: uppercase; }
.oddspieces .micro { text-align: center; }
.oddspieces .op { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.oddspieces .op small { font: 600 11px var(--sans); color: var(--dim); text-align: center; line-height: 1.15; max-width: 100%;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* docs/396: a slot or plate the player's level has not opened yet — dimmed, its level on it */
.slot.slotlock > .tile, .plate.platelock { opacity: .4; }
.slot.slotlock, .plate.platelock { position: relative; }
.slv { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; font: 700 11px var(--mono); font-style: normal;
  color: var(--ink); background: rgba(14,12,13,.85); border: 1px solid rgba(208,178,122,.45); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.slot.slotlock .slv { top: 42%; }

/* ⭐ docs/396, his: *"make it much easier to see symbol of collection and color of rarity and if you have
   any assembleable collection"*. A relic not yet his is a clear grey shape, not a black one; a relic he
   owns wears its level's colour as a rim on the case; one that can be assembled says ASSEMBLE on the
   glass in gold, and the count of them is said above the cabinet. */
.kc-cell.dark .kc-relic { filter: grayscale(1) brightness(.85) contrast(.9); opacity: .55; }
.kc-cell.dark .kc-dim { background: rgba(8,4,5,.22); }
.kc-cell.lit .kc-case::after { content: ''; position: absolute; inset: 0; z-index: 5; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--lc); }
.kc-cell.lit .kc-relic { width: calc(var(--k-relic-w) * 1.12); }
.kc-ready { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); z-index: 6; white-space: nowrap;
  font: 700 10px var(--sans); letter-spacing: 1px; color: #191617; background: linear-gradient(#f3d48a, #c99a4e);
  border-radius: 5px; padding: 2px 6px; box-shadow: 0 2px 5px rgba(0,0,0,.6); }
.kc-ready.full { background: rgba(20,14,12,.85); color: #f3d48a; box-shadow: inset 0 0 0 1px rgba(208,178,122,.6), 0 2px 5px rgba(0,0,0,.6); }

/* ════ docs/397 — HIS F1 IN THE GAME: engraved plates, the new bar, two strips on the arena floor ════ */
/* the arena runs down to the console; the strips stand on its floor and the fighters stand above them */
.view.full .arena:not(.tall) { bottom: 300px; }
.view.full .arena .fighter { bottom: 78px; }
/* the fighters stand 64px lower than they did, and what floats over them goes with them */
.view.full .arena .hitnum, .view.full .arena .hitsub { margin-top: 64px; }
/* the plates: a picture at the outer end, the name and level beside it, the bar under */
.plate-name { top: 48px; width: 160px; }   /* border-box: the 50px picture + a 110px bar, clear of the clock */
.plate-name.you { left: 10px; padding-left: 50px; }
.plate-name.them { right: 10px; padding-right: 50px; }
.plate-name .ppic { position: absolute; top: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(236,228,214,.42), rgba(236,228,214,0) 62%), radial-gradient(circle at 50% 35%, #463d3f, #262122);
  box-shadow: inset 0 0 0 1px rgba(208,178,122,.45), 0 3px 8px rgba(0,0,0,.5); }
.plate-name.you .ppic { left: 0; } .plate-name.them .ppic { right: 0; }
.plate-name .ppic img { width: 34px; height: 34px; object-fit: contain; }
.plate-name b { font-size: 16px; }
.plate-name .ptag { position: absolute; right: 50px; bottom: -18px; padding: 1px 5px; border-radius: 4px;
  font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 8px; letter-spacing: 1px; line-height: 12px; }
.plate-name .ptag.front { color: #191617; background: #f3d48a; }
.plate-name .ptag.mark { color: #f3d48a; box-shadow: inset 0 0 0 1px #f3d48a; }
/* THE BAR — recessed, lit, a scale every tenth, the last blow a pale trail draining after it */
.plate-name .track { height: 16px; margin-top: 5px; border-radius: 8px; overflow: hidden;
  background: linear-gradient(#120b0c, #1d1213);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 0 0 1px rgba(208,178,122,.28), 0 1px 0 rgba(255,255,255,.05); }
.plate-name .track > i { position: relative; z-index: 0; border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg, #f0567a 0%, #c41845 45%, #8c0b2c 100%);
  box-shadow: inset 0 1px 0 rgba(255,210,220,.55), inset 0 -2px 0 rgba(60,0,15,.35); }
.plate-name.them .track > i { border-radius: 0 8px 8px 0; }
.plate-name .track > s { position: absolute; inset: 0; z-index: 0; text-decoration: none; background: rgba(255,230,235,.75);
  transform-origin: left center; transition: transform .7s cubic-bezier(.4,0,.6,1) .35s; }
.plate-name.them .track > s { transform-origin: right center; }
.plate-name .track::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(0,0,0,.28) calc(10% - 1px) 10%); }
.plate-name .track > u { z-index: 1; background: linear-gradient(180deg, #c8ecff, #8acff8); box-shadow: 0 1px 0 rgba(16,73,107,.6); border-radius: 8px 0 0 0; }
.plate-name.them .track > u { border-radius: 0 8px 0 0; }
.plate-name .hpn { z-index: 2; font-weight: 700; font-size: 11px; }
.plate-name .shn { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .plate-name .track > s { transition: none; } }
/* the figure in front: a tap on it aims there (drawn only while somebody else is the target) */
.aimfront { position: absolute; right: 0; width: 52%; top: 150px; bottom: 80px; z-index: 2; background: none; border: 0; padding: 0; cursor: crosshair; }
/* the strips: a team each, the line scrolls past five and keeps its place */
.strips { position: absolute; left: 0; right: 0; bottom: 300px; height: 74px; z-index: 3; display: flex; gap: 10px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(20,17,18,0), rgba(20,17,18,.72) 40%); border-bottom: 1px solid rgba(208,178,122,.18); }
.s6 { min-width: 0; display: flex; flex-direction: column; }
.s6.a { flex: none; } .s6.f { flex: 1; }
.s6 small { display: block; margin: 0 2px 1px; font-family: var(--sans); font-weight: 700; font-size: 9px; letter-spacing: 1.2px; white-space: nowrap; }
.s6.a small { color: #8acff8; } .s6.f small { color: var(--gold); text-align: right; }
.s6sc { display: flex; gap: 6px; padding: 7px 7px 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain;
  scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x; }
.s6.f .s6sc { flex-direction: row-reverse; }
.s6sc::-webkit-scrollbar { display: none; }
.s6.cut .s6sc { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent); }
.m6 { position: relative; flex: none; width: 40px; height: 40px; border-radius: 9px; border: 0; padding: 0; font: inherit;
  scroll-snap-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(236,228,214,.36), rgba(236,228,214,0) 64%), #3a3436; box-shadow: inset 0 0 0 1px rgba(228,224,216,.14); display: grid; place-items: center; }
.m6::before { content: ''; position: absolute; inset: -4px -3px; }
.m6 img { width: 30px; height: 30px; margin-top: -4px; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.m6 .track { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(179,18,60,.25); }
.m6 .track > i { display: block; height: 100%; background: var(--hp); }
.m6 .track > s { display: none; }
.m6 .track > u { position: absolute; left: 0; top: 0; height: 50%; display: block; background: #8acff8; }
.m6.front { box-shadow: inset 0 0 0 2.5px #f3d48a, 0 0 0 1px rgba(0,0,0,.5); }
.m6.dead { opacity: .3; }
.m6 .ret { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #f3d48a; pointer-events: none;
  box-shadow: 0 0 8px rgba(243,212,138,.45); }
.m6.f:active:not(:disabled) { transform: scale(.92); }
.m6.swung { animation: m6swung .46s ease-out .82s both; }
@keyframes m6swung { 0% { transform: none; } 30% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
.m6 .phit { position: absolute; left: 50%; top: 8px; z-index: 2; font: 700 13px var(--mono); font-style: normal; color: #ff5a7a;
  text-shadow: 0 1px 0 #000, 0 0 4px #000; pointer-events: none; opacity: 0; white-space: nowrap; margin-left: -50px; width: 100px; text-align: center;
  animation: phitRise 1.4s cubic-bezier(.2,.7,.35,1) .3s both; }
.m6 .phit.you { animation-delay: 1.12s; }
/* ⭐ docs/399: your MARKED blow — the portrait it landed on flinches on the impact beat, and the number
   is the blow's own, in its kind's colour and a size up (the arena's figure in front is left alone) */
.m6.struck { animation: m6struck .38s ease .3s both; }
.m6.struck.crit { animation-duration: .5s; }
@keyframes m6struck { 0% { transform: none; } 25% { transform: translateX(4px) rotate(4deg) scale(1.08); }
  55% { transform: translateX(-3px) rotate(-3deg); } 100% { transform: none; } }
.m6 .phit.mk { top: -6px; font-size: 17px; color: var(--hp); }
.m6 .phit.mk.k-physical { color: #ffe14c; } .m6 .phit.mk.k-magic { color: #80ffdb; } .m6 .phit.mk.k-true { color: #fff; }
.m6 .phit.mk.crit { font-size: 21px; }
.m6 .phit.mk.word { font-size: 12px; letter-spacing: 1px; color: #e4e0d8; }
@media (prefers-reduced-motion: reduce) { .m6 .phit { animation: none; opacity: 1; } .m6.swung, .m6.struck { animation: none; } }

/* docs/398: a letter's shelf rerolls — the shelf's own reroll symbol, in its gold, with the count */
.tile.rrgift svg { width: 50%; height: auto; overflow: visible; color: #d0b27a; }

/* docs/398: Daily | Weekly on the Quests board — the achievements' tabs, under the head */
.atabs.qtabs { top: 176px; }
.atabs.qtabs button { font: 700 11px var(--sans); letter-spacing: 1.2px; }
.body.qbody.tabbed { top: 226px; }
.body.qbody.tabbed .qrow { height: 70px; min-height: 70px; margin-bottom: 6px; }
.qrow.wkall { margin-top: 12px; border: 2px solid var(--rc); }

/* docs/398, his: *"when you see item info by holding armor item - its info is displayed UNDER the current
   screen with armor infos"* — the odds sheet is a fixed layer at 40; a card held inside it goes over it */
#app:has(.oddssheet) > .zdim { z-index: 45; }
#app:has(.oddssheet) > .tip { z-index: 46; }
