/* Party Crawlers - shared look for the big screen and the devices */
:root {
  --bg: #130f1c;
  --bg2: #1c1629;
  --panel: #251d36;
  --panel2: #30264a;
  --line: #43365f;
  --ink: #f4ecd8;
  --dim: #a99dbe;
  --gold: #ffc94d;
  --red: #ff5d5d;
  --green: #5fdc8a;
  --blue: #62b6ff;
  --purple: #b98bff;
  /* item rarity, v0.9.0: the classic ladder (John, 4 Dec 2026: "colors and rarity for wow classic"). white, green, blue,
     purple, orange. Only loot and ability rarity use these; the purple of the interface itself is --purple. */
  --common: #ffffff;
  --uncommon: #1eff00;
  --rare: #0070dd;
  --epic: #a335ee;
  --legendary: #ff8000;
  --slab: #0b0812;            /* what an item sits on: near black, so the classic blue and purple read */
  /* The brand's five colours, read off John's press-kit sheet (4 Dec 2026): the nameplate's green, its gold rim, its lettering, the arch's stone, the outline. */
  --brand-green: #135530;
  --brand-gold: #fdb802;
  --brand-mint: #c1f2ac;
  --brand-purple: #6f4e7b;
  --brand-ink: #201a27;
  --display: "Copperplate", "Copperplate Gothic Bold", "Rockwell", Georgia, serif;
  --body: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: .04em; font-weight: 700; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

/* ---- the title mark as a picture (DJ.mark) and the launch screen (DJ.launch): the logo, three gold dots, what is being waited for ---- */
.mark.pic img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
.launch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; text-align: center; }
.launch p { margin: 0; color: var(--brand-mint); opacity: .8; }
.launch .dots { display: flex; gap: .75em; font-size: .8rem; }
.launch .dots i { width: 1em; height: 1em; border-radius: 50%; background: var(--brand-gold); animation: launchdot 1.2s ease-in-out infinite; }
.launch .dots i:nth-child(2) { animation-delay: .2s; }
.launch .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes launchdot { 0%, 80%, 100% { opacity: .35; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .launch .dots i { animation: none; } }

/* --- paper-doll sprite: class body + whatever is equipped ----------------- */
.spr { position: relative; display: inline-block; font-size: 1em; line-height: 1; width: 1.354em; height: 1.25em; vertical-align: middle; }
.spr > img { display: block; width: 100%; height: 100%; }
/* v0.7.0: a hero is drawn on 36 x 32 pixels and is bigger than its box: the body fills the box, and a tall
   hat, a raised weapon or a flung arm sticks out of it. So no page had to be laid out again. */
.spr[data-k] > img.px { position: absolute; left: 50%; bottom: 0; width: 1.62em; height: 1.44em; margin-left: -.81em; max-width: none; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
img.mon { display: inline-block; vertical-align: middle; width: auto; height: auto; }
img.face { height: 1.3em; width: 1.3em; vertical-align: -.3em; }
.spr > span { position: absolute; display: block; line-height: 1; }
.spr .bod { left: 50%; top: 54%; transform: translate(-50%, -50%); font-size: 1em; }
.spr .hat { left: 50%; top: -.06em; transform: translateX(-50%) rotate(-8deg); font-size: .46em; z-index: 2; }
.spr .mh { right: -.2em; bottom: -.02em; font-size: .5em; z-index: 2; transform: rotate(12deg); }
.spr .oh { left: -.2em; bottom: -.02em; font-size: .46em; z-index: 2; }
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
/* v0.11.0 (87): a move's pixel icon in place of its emoji (DJ.abi). One cell of the sheet, as big as the emoji was. */
.abi { display: inline-block; width: 1.375em; height: 1.375em; vertical-align: -.34em; background-repeat: no-repeat; font-style: normal;
  image-rendering: pixelated; image-rendering: crisp-edges; }

/* --- bits ------------------------------------------------------------------ */
.bar { position: relative; height: .7em; border-radius: 1em; background: #0c0912; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#7df0a0, #33b866);
  border-radius: 1em; transition: width .45s cubic-bezier(.2,.8,.2,1), background .3s; }
.bar.low > i { background: linear-gradient(#ffb36b, #f0762e); }
.bar.crit > i { background: linear-gradient(#ff8a8a, #e23c3c); }
.bar.xp > i { background: linear-gradient(#ffe08a, #f0a92e); }

.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); }

.chip { display: inline-flex; align-items: center; gap: .3em; padding: .15em .6em; border-radius: 99px;
  background: var(--panel2); font-size: .85em; white-space: nowrap; }
.dot { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--pc, #888); box-shadow: 0 0 0 2px rgba(0,0,0,.45); font-size: .9em; }

@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
/* a hero locks in: their picture spins in (plain, the lawful coin-flip, the chaotic tumble) */
@keyframes lkpop { 0% { transform: translateY(-1.2rem) scale(.2); opacity: 0; } 55% { transform: translateY(0) scale(1.22); opacity: 1; } 100% { transform: none; } }
@keyframes lkflip { 0% { transform: rotateY(-720deg) scale(.4); opacity: 0; } 20% { opacity: 1; } 80% { transform: rotateY(0) scale(1.12); } 100% { transform: none; } }
@keyframes lktumble { 0% { transform: rotate(-540deg) scale(.25); opacity: 0; } 25% { opacity: 1; } 60% { transform: rotate(14deg) scale(1.2); } 78% { transform: rotate(-9deg) scale(.96); } 90% { transform: rotate(4deg); } 100% { transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,201,77,.0); } 50% { box-shadow: 0 0 1.4em .1em rgba(255,201,77,.45); } }

/* --- the d20 (DJ.die / DJ.rollDie) ------------------------------------------ */
.d20v { position: relative; display: inline-grid; place-items: center; width: 1em; height: 1em; font-size: 3rem; line-height: 1;
  vertical-align: middle; flex: none; --dc: #efe6cf; --dn: #1a1322; }
.d20v svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .05em 0 rgba(0,0,0,.6)); }
.d20v .o { fill: var(--dc); stroke: #120d1a; stroke-width: 5; stroke-linejoin: round; }
.d20v .f { fill: rgba(255,255,255,.38); }
.d20v .l { stroke: rgba(0,0,0,.3); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.d20v b { position: relative; font-family: var(--display); font-weight: 900; font-size: .34em; color: var(--dn); transform: translateY(.14em); letter-spacing: 0; }
/* v0.11.0: a hero's own die (DJ.dieLook): body, number and edge colours, a finish and a flourish (djgame/dice.py) */
.d20v.dlk .l { stroke: var(--de); stroke-opacity: .5; }
.d20v.dlk .f { fill: rgba(255,255,255,.16); }                         /* fainter, so a coloured die keeps its colour (dice.FACE) */
.d20v.dlk.f-edge .o { stroke: var(--de); stroke-width: 9; }
.d20v .dsp { fill: var(--dn); fill-opacity: .35; }
/* v0.11.0: the result never paints over the die. It is a ring around it and a mark on its corner, so a crit and a fail
   read on any colour of die and without colour at all: crit a star, good a tick, miss a dash, fail a cross. */
.d20v::before { content: ''; position: absolute; inset: -.13em; border-radius: 50%; border: .06em solid var(--dr, transparent); pointer-events: none; }
.d20v::after { position: absolute; right: -.55em; bottom: -.45em; z-index: 1; display: grid; place-items: center; width: 1.5em; height: 1.5em;
  border-radius: 50%; background: var(--dr); color: #120d1a; font: 900 .26em/1 var(--display); box-shadow: 0 0 0 .12em #120d1a; pointer-events: none; }
.d20v.good { --dr: #7df0a0; }
.d20v.good::after { content: '\2713'; }
.d20v.crit { --dr: #ffc94d; }
.d20v.crit::after { content: '\2605'; }
.d20v.crit svg { filter: drop-shadow(0 0 .22em #ffc94d) drop-shadow(0 .05em 0 rgba(0,0,0,.6)); }
.d20v.miss { --dr: #8d86a0; }
.d20v.miss::after { content: '\2013'; }
.d20v.fail { --dr: #e23c3c; }
.d20v.fail::after { content: '\2715'; color: #fff; }
.d20v.rolling svg { animation: dtumble .28s linear infinite; }
.d20v.rolling b { opacity: .8; }
.d20v.landed { animation: dland .5s cubic-bezier(.2,1.7,.4,1); }
.d20v.x-still.rolling svg { animation-duration: .9s; }                  /* the Monk's jade: rolls slowly, lands still */
.d20v.x-still.landed { animation: dstill .4s ease-out; }
@keyframes dstill { from { opacity: .5; } }
@keyframes dtumble { to { transform: rotate(360deg); } }
@keyframes dland { 0% { transform: scale(1.9) rotate(-16deg); } 100% { transform: none; } }

/* Effects off (the ✨ switch, or the system's reduced-motion setting): nothing moves, nothing flashes. */

/* ---- cut-in: whoever is acting, drawn large beside the dice ---- */
.cutin { position: relative; flex: none; display: inline-block; width: 1.7em; height: 1.5em; font-size: 6rem; pointer-events: none; --cc: #c8414f;
  animation: cutin .24s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes cutin { from { transform: translateX(-45%) skewX(-16deg); opacity: 0; } }
.cutin .cbg { position: absolute; inset: 4% 12% 0; transform: skewX(-13deg); border-radius: .05em; box-shadow: 0 0 0 .03em rgba(0,0,0,.6), 0 .05em .3em rgba(0,0,0,.5);
  background:
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)) 1.6em 16% / .9em .035em no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0)) 2.1em 42% / 1.1em .03em no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.65), rgba(255,255,255,0)) 1.8em 68% / .8em .04em no-repeat,
    linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0)) 2.6em 88% / 1em .03em no-repeat,
    linear-gradient(180deg, var(--ab, var(--cc)) 5%, #150d24 135%);
  animation: cutstreak .42s linear infinite; }
@keyframes cutstreak { to { background-position: -1em 16%, -1.2em 42%, -.9em 68%, -1.1em 88%, 0 0; } }
.cutin .cwho { position: absolute; left: 50%; bottom: .05em; line-height: 0; transform: translateX(-50%); transform-origin: 50% 88%;
  filter: drop-shadow(0 .04em 0 rgba(0,0,0,.55)); }
.cutin .cwho .spr, .cutin .cwho img.mon { font-size: 1em; }
.cutin.enemy .cwho img { transform: scaleX(-1); }            /* monsters face the dice too */
.cutin .cico { position: absolute; z-index: 2; right: 0; top: 0; font-size: .36em; line-height: 1; opacity: 0; }
/* winding up while the dice are in the air */
.cutin.cwind .cwho { animation: cutwind .62s cubic-bezier(.3,0,.7,1) both; }
@keyframes cutwind { to { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: brightness(1.25) drop-shadow(0 .04em 0 rgba(0,0,0,.55)); } }
/* the dice have landed */
.cutin.cgo .cico { opacity: 1; animation: cuticon .45s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes cuticon { from { opacity: 0; transform: translate(-1.3em, 1.5em) scale(.3) rotate(-40deg); } }
.cutin.cgo.k-attack .cwho { transform: translateX(-42%) rotate(3deg) scale(1.08); animation: cutlunge .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cutlunge { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 32% { transform: translateX(-22%) rotate(10deg) scale(1.24); } }
.cutin.cgo.k-attack::after { content: ''; position: absolute; z-index: 2; left: 30%; top: 46%; width: 1.3em; height: .075em; border-radius: 99px; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 55%, rgba(255,255,255,0)); transform: rotate(-24deg) scaleX(1.15); transform-origin: 0 50%;
  animation: cutslash .36s ease-out .05s both; }
@keyframes cutslash { 0% { transform: rotate(-24deg) scaleX(0); opacity: 1; } 60% { transform: rotate(-24deg) scaleX(1); opacity: 1; } }
.cutin.cgo.k-cast .cwho { transform: translateX(-50%) translateY(-4%) scale(1.06); filter: brightness(1.15) drop-shadow(0 0 .12em var(--cc)); animation: cuthop .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cuthop { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: none; } 40% { transform: translateX(-50%) translateY(-17%) scale(1.15); filter: brightness(1.7) drop-shadow(0 0 .2em var(--cc)); } }
.cutin.cgo.k-cast::after { content: ''; position: absolute; left: 50%; bottom: .02em; width: 1.15em; height: .32em; border-radius: 50%; border: .035em solid #fff; opacity: 0;
  transform: translateX(-50%) scale(1.25); animation: cutring .6s ease-out both; }
@keyframes cutring { 0% { transform: translateX(-50%) scale(.2); opacity: 1; } }
/* a natural 1, or nothing landed */
.cutin.cgo.p-fail .cwho, .cutin.cgo.p-out .cwho { transform: translateX(-50%) translateY(7%) rotate(-17deg); filter: grayscale(.75) brightness(.72); animation: cutflop .6s ease-out both; }
@keyframes cutflop { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: none; } 25% { transform: translateX(-36%) rotate(12deg); filter: none; }
  55% { transform: translateX(-52%) translateY(9%) rotate(-22deg); } 78% { transform: translateX(-50%) translateY(6%) rotate(-13deg); } }
.cutin.cgo.p-fail::after, .cutin.cgo.p-out::after { display: none; }
.cutin.cgo.p-fail::before, .cutin.cgo.p-out::before { content: '💦'; position: absolute; z-index: 2; right: .12em; top: .1em; font-size: .3em; line-height: 1; animation: cutdrop .6s ease-out both; }
.cutin.cgo.p-out::before { content: '☠️'; font-size: .42em; }
@keyframes cutdrop { from { opacity: 0; transform: translateY(-.5em); } }
/* a critical hit, a natural 20 */
.cutin.cgo.p-crit { transform: scale(1.16); z-index: 3; animation: cutcrit .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cutcrit { 0% { transform: scale(1); filter: brightness(2.1); } 30% { transform: scale(1.36); filter: brightness(1.6); } }
.cutin.cgo.p-crit .cbg { box-shadow: 0 0 0 .04em var(--gold), 0 0 .55em rgba(255,201,77,.8); }
.cutin.cgo.p-crit::before { content: '✦'; position: absolute; z-index: 2; left: .02em; top: -.12em; font-size: .5em; line-height: 1; color: #fff8d6; text-shadow: 0 0 .3em var(--gold);
  animation: cutstar .6s ease-out both; }
@keyframes cutstar { 0% { transform: scale(0) rotate(-90deg); opacity: 0; } 50% { transform: scale(1.5) rotate(20deg); opacity: 1; } }
.cutin.coh .cbg { animation: cutstreak .3s linear infinite, cutoh 1.6s linear infinite; }
@keyframes cutoh { to { filter: hue-rotate(360deg); } }
/* a death save: flat on the floor until the die says otherwise */
.cutin.k-save .cwho { transform: translateX(-34%) translateY(-8%) rotate(-80deg); filter: grayscale(1) brightness(.62); }
.cutin.k-save.cwind .cwho { animation: cutstir .3s ease-in-out infinite alternate; }
@keyframes cutstir { to { transform: translateX(-34%) translateY(-8%) rotate(-70deg); } }
.cutin.k-save.cgo.p-good .cwho { transform: translateX(-50%) translateY(-4%) scale(1.06); filter: brightness(1.15) drop-shadow(0 0 .12em #5fdc8a); animation: cutrise .6s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes cutrise { 0% { transform: translateX(-34%) translateY(-8%) rotate(-80deg); filter: grayscale(1) brightness(.62); } 45% { transform: translateX(-50%) translateY(-20%) scale(1.16); filter: brightness(1.7) drop-shadow(0 0 .2em #5fdc8a); } }
.cutin.k-save.cgo.p-fail .cwho, .cutin.k-save.cgo.p-out .cwho { transform: translateX(-34%) translateY(-8%) rotate(-88deg); filter: grayscale(1) brightness(.45); animation: cutslump .5s ease-out both; }
@keyframes cutslump { 0% { transform: translateX(-34%) translateY(-8%) rotate(-70deg); } 40% { transform: translateX(-34%) translateY(-15%) rotate(-58deg); } }

/* --- v0.6.0: recoloured monsters, class-stat badges ------------------------ */
/* A reskinned monster is the same sprite with a colour filter on it (the name comes with the fighter). */
img.px.mon[class*="tint-"] { filter: var(--tint); }
img.tint-moss { --tint: sepia(.9) hue-rotate(70deg) saturate(1.5) brightness(.95); }
img.tint-dusk { --tint: sepia(.9) hue-rotate(230deg) saturate(1.5) brightness(.9); }
img.tint-steel { --tint: grayscale(1) sepia(.35) hue-rotate(175deg) brightness(1.1) contrast(1.1); }
img.tint-ink { --tint: sepia(.8) hue-rotate(190deg) saturate(1.3) brightness(.6) contrast(1.2); }
img.tint-paper { --tint: sepia(.75) saturate(.7) brightness(1.2); }
img.tint-wood { --tint: sepia(1) saturate(1.3) brightness(.8); }
img.tint-pale { --tint: grayscale(.8) brightness(1.35) contrast(.9); }
img.tint-gold { --tint: sepia(1) hue-rotate(5deg) saturate(2.4) brightness(1.1); }
img.tint-blood { --tint: sepia(1) hue-rotate(-40deg) saturate(2.6) brightness(.85); }
img.tint-frost { --tint: sepia(.9) hue-rotate(150deg) saturate(1.4) brightness(1.15); }
img.tint-star { --tint: sepia(.9) hue-rotate(200deg) saturate(2) brightness(1.05); }
/* STR / DEX / INT / WIS */
.stt { display: inline-block; font-style: normal; font-weight: 800; font-size: .72em; letter-spacing: .06em; line-height: 1; padding: .22em .5em; border-radius: 99px;
  color: #14101d; background: var(--dim); margin-left: .35em; vertical-align: .12em; white-space: nowrap; }
.stt.s-str { background: #e05252; color: #fff; }
.stt.s-dex { background: #4fbf6b; }
.stt.s-int { background: #4f8fe0; color: #fff; }
.stt.s-wis { background: #e0c24f; }

/* v0.6.1: the dice a hero was made with (colours, size) and a change for good (a form) are CSS on the same sprite. */
.spr.hlk > img.px, img.px.face.hlk { filter: var(--lc, brightness(1)) var(--lf, brightness(1)); }
.c-moss { --lc: hue-rotate(75deg) saturate(1.1); }
.c-dusk { --lc: hue-rotate(215deg) saturate(.9); }
.c-rust { --lc: hue-rotate(-28deg) saturate(1.5); }
.c-sand { --lc: sepia(.6) brightness(1.15); }
.c-frost { --lc: hue-rotate(165deg) saturate(.7) brightness(1.2); }
.c-shadow { --lc: brightness(.5) contrast(1.35) saturate(.6); }
.c-crimson { --lc: sepia(1) saturate(4) hue-rotate(-35deg) brightness(.9); }
.c-gilded { --lc: sepia(1) saturate(3.2) hue-rotate(-8deg) brightness(1.18); }
.spr.c-prism > img.px, img.px.face.c-prism { animation: prism 4s linear infinite; }
@keyframes prism { from { filter: hue-rotate(0deg) saturate(1.5); } to { filter: hue-rotate(360deg) saturate(1.5); } }
.f-ghost { --lf: grayscale(.75) brightness(1.55) opacity(.7); }
.f-wererat { --lf: sepia(.7) saturate(1.3) brightness(.85); }
.f-cinder { --lf: sepia(1) saturate(3.5) hue-rotate(-28deg) brightness(.8) contrast(1.2); }
.f-plagued { --lf: sepia(1) saturate(2.6) hue-rotate(45deg) brightness(.95); }
.f-vampire { --lf: grayscale(.6) brightness(1.15) contrast(1.25) hue-rotate(300deg); }
.f-slayer { --lf: sepia(.5) saturate(2) brightness(1.15); }
.spr.z-s > img.px { transform: scale(.86); transform-origin: 50% 100%; }
.spr.z-l > img.px { transform: scale(1.16); transform-origin: 50% 100%; }
html.nofx .spr.c-prism > img.px, html.nofx img.px.face.c-prism { animation: none; }
html.nofx *, html.nofx *::before, html.nofx *::after { animation: none !important; transition: none !important; }

/* ==== v0.6.2 ==== */
/* ---- cut-in: a move for every ability (m-<pose>). A natural 1 still flops (p-fail), so these stand aside for it. ---- */
.cutin.cgo[class*=" m-"]::after { opacity: 0; }
.cutin.cgo.m-bite:not(.p-fail):not(.p-out) .cwho { transform: translateX(-36%) rotate(8deg) scale(1.12); animation: cutbite .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cutbite { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 30% { transform: translateX(-20%) rotate(14deg) scale(1.3); } 50% { transform: translateX(-30%) rotate(4deg) scale(1.18); } 70% { transform: translateX(-20%) rotate(14deg) scale(1.3); } }
.cutin.cgo.m-bite:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 58%; top: 34%; width: .62em; height: .46em; border-radius: 50%; border: .07em dashed #fff; background: none;
  transform: scaleY(.15); animation: cutjaws .5s ease-in .05s both; }
@keyframes cutjaws { 0% { transform: scaleY(1.5); opacity: 1; } 35% { transform: scaleY(.15); opacity: 1; } 55% { transform: scaleY(1.3); opacity: 1; } 85% { transform: scaleY(.15); opacity: 1; } }
.cutin.cgo.m-slash:not(.p-fail):not(.p-out) .cwho { transform: translateX(-40%) rotate(6deg) scale(1.1); animation: cutswing .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes cutswing { 0% { transform: translateX(-66%) rotate(-22deg) scale(1.05); } 35% { transform: translateX(-26%) rotate(20deg) scale(1.24); } }
.cutin.cgo.m-slash:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 34%; top: 8%; width: 1.15em; height: 1.15em; border-radius: 50%; background: none;
  border: .1em solid transparent; border-top-color: #fff; border-right-color: rgba(255,255,255,.75); transform: rotate(70deg); animation: cutarc .38s ease-out .04s both; }
@keyframes cutarc { 0% { transform: rotate(-80deg); opacity: 1; } 70% { transform: rotate(50deg); opacity: 1; } }
.cutin.cgo.m-stab:not(.p-fail):not(.p-out) .cwho { transform: translateX(-34%) rotate(2deg) scale(1.08); animation: cutstab .42s cubic-bezier(.1,1.2,.3,1) both; }
@keyframes cutstab { 0% { transform: translateX(-70%) rotate(-6deg) scale(1.02); } 28% { transform: translateX(-8%) rotate(4deg) scale(1.18); } }
.cutin.cgo.m-stab:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 40%; top: 50%; width: 1.4em; height: .06em; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%, #fff); transform-origin: 0 50%; transform: scaleX(1.1); animation: cutthrust .3s ease-out .03s both; }
@keyframes cutthrust { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } }
.cutin.cgo.m-smash:not(.p-fail):not(.p-out) .cwho { transform: translateX(-40%) rotate(4deg) scale(1.08); animation: cutsmash .6s cubic-bezier(.3,0,.3,1) both; }
@keyframes cutsmash { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 32% { transform: translateX(-52%) translateY(-24%) rotate(-16deg) scale(1.22); } 56% { transform: translateX(-34%) translateY(7%) rotate(12deg) scale(1.16, 1.04); } }
.cutin.cgo.m-smash:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 50%; bottom: -.02em; width: 1.5em; height: .3em; border-radius: 50%; background: none;
  border: .05em solid #fff; transform: translateX(-30%) scale(1.3); animation: cutquake .45s ease-out .3s both; }
@keyframes cutquake { 0% { transform: translateX(-30%) scale(.1); opacity: 1; } 60% { opacity: .9; } }
.cutin.cgo.m-shoot:not(.p-fail):not(.p-out) .cwho { transform: translateX(-54%) rotate(2deg) scale(1.05); animation: cutrecoil .5s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes cutrecoil { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 22% { transform: translateX(-44%) rotate(4deg) scale(1.1); } 42% { transform: translateX(-72%) rotate(-7deg) scale(1.08); } }
.cutin.cgo.m-shoot:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 46%; top: 44%; width: .55em; height: .07em; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,0), var(--ab, #fff) 40%, #fff); transform: translateX(1.6em); animation: cutfly .34s ease-in .08s both; }
@keyframes cutfly { 0% { transform: translateX(0); opacity: 1; } 80% { opacity: 1; } }
.cutin.cgo.m-breathe:not(.p-fail):not(.p-out) .cwho { transform: translateX(-58%) rotate(6deg) scale(1.1); animation: cutblow .6s ease-out both; }
@keyframes cutblow { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 25% { transform: translateX(-62%) rotate(-14deg) scale(1.16); } 45% { transform: translateX(-54%) rotate(10deg) scale(1.14); } }
.cutin.cgo.m-breathe:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 54%; top: 22%; width: .95em; height: .6em; border-radius: 0;
  background: linear-gradient(90deg, #fff, var(--ab, #ff7a2e) 35%, rgba(255,255,255,0)); clip-path: polygon(0 50%, 100% 0, 100% 100%); transform-origin: 0 50%; transform: scaleX(1.1);
  animation: cutcone .55s ease-out .2s both; }
@keyframes cutcone { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 70% { opacity: .9; } }
.cutin.cgo.m-cast:not(.p-fail):not(.p-out) .cwho, .cutin.cgo.m-call:not(.p-fail):not(.p-out) .cwho { transform: translateX(-50%) translateY(-4%) scale(1.06); filter: brightness(1.15) drop-shadow(0 0 .12em var(--ab, var(--cc))); animation: cuthop .55s cubic-bezier(.2,1.4,.4,1) both; }
.cutin.cgo.m-cast:not(.p-fail):not(.p-out)::after, .cutin.cgo.m-call:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 1; left: 50%; top: auto; bottom: .02em; width: 1.15em; height: .32em; border-radius: 50%; background: none;
  border: .035em solid #fff; transform: translateX(-50%) scale(1.25); animation: cutring .6s ease-out both; }
.cutin.cgo.m-call:not(.p-fail):not(.p-out)::after { border-color: var(--gold, #ffc94d); border-width: .06em; }
.cutin.cgo.m-heal:not(.p-fail):not(.p-out) .cwho { transform: translateX(-50%) translateY(-6%) scale(1.06); filter: brightness(1.2) drop-shadow(0 0 .14em #5fdc8a); animation: cutfloat .7s ease-out both; }
@keyframes cutfloat { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: none; } 50% { transform: translateX(-50%) translateY(-15%) scale(1.1); filter: brightness(1.5) drop-shadow(0 0 .2em #5fdc8a); } }
.cutin.cgo.m-heal:not(.p-fail):not(.p-out)::after { content: '✚'; position: absolute; z-index: 2; left: 66%; top: 6%; width: auto; height: auto; background: none; border: 0; font-size: .34em; line-height: 1; color: #c9ffdc;
  text-shadow: 0 0 .3em #5fdc8a; transform: translateY(-1em); animation: cutplus .8s ease-out both; }
@keyframes cutplus { 0% { transform: translateY(1.6em) scale(.5); opacity: 0; } 30% { opacity: 1; } 75% { opacity: 1; } }
.cutin.cgo.m-block:not(.p-fail):not(.p-out) .cwho { transform: translateX(-50%) scale(1.14, .95); filter: drop-shadow(0 .04em 0 rgba(0,0,0,.55)); animation: cutbrace .5s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes cutbrace { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); } 40% { transform: translateX(-50%) scale(1.28, .84); } }
.cutin.cgo.m-block:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 30%; top: 8%; width: 1.05em; height: 1.25em; border-radius: 50%; background: none;
  border: .07em solid #d6ebff; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg) scale(1.1); animation: cutward .6s ease-out both; }
@keyframes cutward { 0% { transform: rotate(45deg) scale(.5); opacity: 0; } 35% { transform: rotate(45deg) scale(1); opacity: 1; } 75% { opacity: 1; } }
.cutin.cgo.m-power:not(.p-fail):not(.p-out) .cwho { transform: translateX(-50%) scale(1.16); filter: brightness(1.3) drop-shadow(0 0 .16em #ffc94d); animation: cutflex .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes cutflex { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: none; } 35% { transform: translateX(-50%) scale(.94); } 60% { transform: translateX(-50%) scale(1.32); filter: brightness(1.8) drop-shadow(0 0 .24em #ffc94d); } }
.cutin.cgo.m-power:not(.p-fail):not(.p-out)::after { content: '▲'; position: absolute; z-index: 2; left: 8%; top: 4%; width: auto; height: auto; background: none; border: 0; font-size: .28em; line-height: 1; color: #ffe9a8;
  text-shadow: 0 1.1em 0 rgba(255,233,168,.6), 0 0 .3em #ffc94d; transform: translateY(-1em); animation: cutplus .7s ease-out both; }
.cutin.cgo.m-curse:not(.p-fail):not(.p-out) .cwho { transform: translateX(-52%) skewX(-6deg) scale(1.06); filter: drop-shadow(0 0 .14em #a66bff); animation: cuthex .7s ease-in-out both; }
@keyframes cuthex { 0% { transform: translateX(-64%) rotate(-10deg) scale(1.05); filter: none; } 30% { transform: translateX(-46%) skewX(10deg) scale(1.12); } 55% { transform: translateX(-56%) skewX(-12deg) scale(1.12); filter: brightness(.8) drop-shadow(0 0 .22em #a66bff); } 80% { transform: translateX(-50%) skewX(6deg) scale(1.08); } }
.cutin.cgo.m-curse:not(.p-fail):not(.p-out)::after { content: ''; position: absolute; z-index: 2; left: 56%; top: 20%; width: .7em; height: .7em; border-radius: 50%; border: 0;
  background: conic-gradient(from 0deg, rgba(166,107,255,0), #c9a4ff, rgba(166,107,255,0) 70%); transform: rotate(360deg) scale(1.3); animation: cutswirl .7s ease-out both; }
@keyframes cutswirl { 0% { transform: rotate(0) scale(.3); opacity: 1; } 70% { opacity: .9; } }

/* ---- cut-in: the panel behind matches the kind of move (bg-<kind>) and takes its colour from the ability (--ab) ---- */
.cutin.bg-heal:not(.coh) .cbg { background: radial-gradient(circle at 50% 72%, rgba(255,255,255,.6), rgba(255,255,255,0) 58%), linear-gradient(180deg, var(--ab, #5fdc8a) 0%, #0f2a1c 140%); animation: cutglow 1.1s ease-in-out infinite alternate; }
@keyframes cutglow { to { filter: brightness(1.3); } }
.cutin.bg-shield:not(.coh) .cbg { background: repeating-radial-gradient(circle at 50% 105%, rgba(255,255,255,.26) 0 .05em, rgba(255,255,255,0) .05em .22em), linear-gradient(180deg, var(--ab, #6fb6ff) 0%, #0d1830 140%); animation: none; }
.cutin.bg-buff:not(.coh) .cbg { background: repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 .04em, rgba(255,255,255,0) .04em .26em), linear-gradient(180deg, var(--ab, #ffc94d) 0%, #2a1c05 140%); animation: cutrise2 .5s linear infinite; }
@keyframes cutrise2 { to { background-position: 0 -.26em, 0 0; } }
.cutin.bg-hex:not(.coh) .cbg { background: repeating-linear-gradient(135deg, rgba(0,0,0,.32) 0 .08em, rgba(0,0,0,0) .08em .22em), linear-gradient(180deg, var(--ab, #a66bff) 0%, #0c0714 125%); animation: cutcreep 1.2s linear infinite; }
@keyframes cutcreep { to { background-position: .31em 0, 0 0; } }

/* ---- who a move lands on: a second panel on the right of the banner ---- */
.tgts { flex: none; display: flex; align-items: flex-end; gap: .06em; font-size: 4.4rem; pointer-events: none; }
.tgts:empty { display: none; }
.ctg { position: relative; flex: none; display: inline-block; width: 1.12em; height: 1.4em; --cc: #c8414f; animation: tgin .24s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes tgin { from { transform: translateX(45%) skewX(16deg); opacity: 0; } }
.ctg .tbg { position: absolute; inset: 6% 6% 0; transform: skewX(13deg); border-radius: .05em; background: linear-gradient(180deg, var(--cc) 5%, #150d24 135%); opacity: .92;
  box-shadow: 0 0 0 .03em rgba(0,0,0,.6), 0 .05em .3em rgba(0,0,0,.5); }
.ctg .twho { position: absolute; left: 50%; bottom: .05em; line-height: 0; transform: translateX(-50%); transform-origin: 50% 90%; filter: drop-shadow(0 .04em 0 rgba(0,0,0,.55)); }
.ctg .twho .spr, .ctg .twho img.mon { font-size: .82em; }
.ctg.hero .twho .spr { transform: scaleX(-1); }            /* they face whoever is coming at them */
.ctg .tnum { position: absolute; z-index: 3; left: 50%; top: -.05em; transform: translateX(-50%); font-size: .26em; font-weight: 900; line-height: 1; white-space: nowrap; color: #fff;
  text-shadow: 0 .08em 0 #000, 0 0 .3em #000; opacity: 0; }
.ctg.tgo .tnum { opacity: 1; animation: tgnum .4s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes tgnum { from { transform: translateX(-50%) translateY(.9em) scale(.4); opacity: 0; } }
.ctg.r-hit .twho { animation: tghit .42s ease-out both; }
.ctg.r-crit .twho { animation: tghit .6s ease-out both; }
@keyframes tghit { 0% { transform: translateX(-50%); filter: brightness(3) saturate(0); } 20% { transform: translateX(-28%) rotate(9deg); filter: brightness(1.6); } 45% { transform: translateX(-62%) rotate(-5deg); } 70% { transform: translateX(-44%) rotate(3deg); } }
.ctg.r-hit .tnum { color: #ff9c9c; }
.ctg.r-crit .tnum { color: #ffd866; font-size: .34em; }
.ctg.r-crit .tbg { box-shadow: 0 0 0 .04em var(--gold, #ffc94d), 0 0 .5em rgba(255,201,77,.8); }
.ctg.r-miss .twho { transform: translateX(-22%) rotate(10deg); animation: tgdodge .4s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes tgdodge { 0% { transform: translateX(-50%); } 45% { transform: translateX(-8%) rotate(16deg); } }
.ctg.r-miss .tnum { color: #c9c6d2; }
.ctg.r-heal .twho { filter: brightness(1.2) drop-shadow(0 0 .14em #5fdc8a); animation: tgbob .6s ease-out both; }
@keyframes tgbob { 0% { transform: translateX(-50%); } 45% { transform: translateX(-50%) translateY(-14%) scale(1.08); } }
.ctg.r-heal .tnum { color: #8ff0b0; }
.ctg.r-shield .twho { filter: drop-shadow(0 0 .12em #6fb6ff) drop-shadow(0 0 .04em #fff); animation: tgbob .5s ease-out both; }
.ctg.r-shield .tnum { color: #a9d4ff; }
.ctg.r-buff .twho { filter: brightness(1.25) drop-shadow(0 0 .14em #ffc94d); animation: tgbob .5s ease-out both; }
.ctg.r-hex .twho { transform: translateX(-50%) skewX(7deg); filter: brightness(.75) drop-shadow(0 0 .14em #a66bff); animation: tgwobble .6s ease-in-out both; }
@keyframes tgwobble { 0% { transform: translateX(-50%); } 30% { transform: translateX(-44%) skewX(-12deg); } 60% { transform: translateX(-56%) skewX(12deg); } }
.ctg.r-hex .tnum { color: #cfb0ff; }
.ctg.r-down .twho { transform: translateX(-42%) translateY(-6%) rotate(-84deg); filter: grayscale(1) brightness(.6); animation: tgfall .55s cubic-bezier(.4,0,.6,1.3) both; }
@keyframes tgfall { 0% { transform: translateX(-50%); filter: brightness(3) saturate(0); } 30% { transform: translateX(-34%) translateY(-22%) rotate(-24deg); filter: none; } }
.ctg.r-down .tnum { color: #ff6b6b; font-size: .32em; }
.ctg.r-spawn .twho { animation: tgpop .45s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes tgpop { 0% { transform: translateX(-50%) scale(0); } }
.ctg.r-spawn .tnum { color: #ffd866; font-size: .2em; }
.tmore { align-self: center; font-size: .3em; font-weight: 900; color: #fff; text-shadow: 0 .08em 0 #000; margin-left: .2em; }

/* ---- emotes: a bubble over whoever said it, or in a lane at the top ---- */
#emotes { position: fixed; left: 0; right: 0; top: 4.4rem; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: .3rem; pointer-events: none; font-size: 1rem; }
.emo { display: inline-flex; align-items: center; gap: .45em; max-width: 92vw; background: #fdfaf0; color: #1b1422; border: .16em solid var(--pc, #ffd43b); border-radius: 1.3em;
  padding: .22em .8em .22em .3em; font-weight: 800; line-height: 1.15; box-shadow: 0 .2em .7em rgba(0,0,0,.55); animation: emopop .28s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes emopop { from { transform: translateY(.8em) scale(.5); opacity: 0; } }
.emo.at { position: fixed; transform: translate(-50%, -105%); animation-name: emopopat; }
@keyframes emopopat { from { transform: translate(-50%, -60%) scale(.4); opacity: 0; } }
.emo.bye { opacity: 0; transition: opacity .45s; }
.emo .ea { flex: none; display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--pc, #ffd43b); }
.emo .ea img.emoi { width: 1.45em; height: 1.45em; image-rendering: pixelated; }
.emo .ea .d20v { font-size: 1.7em; }
.emo .et b { margin-right: .15em; }
.emo.said { max-width: min(19em, 60vw); padding: .3em .8em; font-style: italic; border-radius: 1.1em 1.1em 1.1em .3em; }
.emo.said .et b { font-style: normal; }
.emo.lucky { border-color: var(--gold, #ffc94d); background: #fff6d6; }
.emo.unlucky { border-color: #e0443e; background: #ffe9e6; }
img.emoi { image-rendering: pixelated; }

/* ---- victory: whoever is still standing celebrates ---- */
@keyframes cheer { 0%, 50%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-16%) rotate(-6deg); } 75% { transform: translateY(-16%) rotate(6deg); } }
@keyframes gloat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(-3deg); } }
.cheer .spr, .spr.cheer { display: inline-block; animation: cheer .9s ease-in-out infinite; }

/* ---- rules of a room, a monster's variant tag ---- */
.rulec { display: inline-flex; align-items: baseline; gap: .3em; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.25); border-radius: .5em; padding: .1em .5em; font-weight: 700; }
.rulec b { color: var(--gold, #ffc94d); }
.rulec.nm { border-color: #e0443e; background: rgba(120,10,20,.55); }
.rulec.nm b { color: #ff8d8d; }
/* a room's rules and "this dive" chips are shared by both screens */
.rulec .emoji { font-style: normal; }

/* v0.7.1: sheet sprites (sprites.js). A cell is 72 x 72 art pixels with the feet at (30, 64); one art pixel is .048em.
   The picture is bigger than the box it stands in, on purpose: weapons swing and effects fly outside it. */
.spr.sheet[data-k] > img.px { width: 3.456em; height: 3.456em; left: 50%; margin-left: -1.464em; bottom: -.288em; pointer-events: none; }
.spr.sheet.z-s > img.px, .spr.sheet.z-l > img.px { transform-origin: 42.4% 91%; }
.msp { position: relative; display: block; margin: 0 auto; }
.msp > img.px.mon { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.msp.on > img.px.mon { position: absolute; max-width: none; object-fit: fill; pointer-events: none; }
img.sico { width: 1.05em; height: 1.05em; vertical-align: -.18em; }

/* v0.8.0, the story layer: the job card, a rumour, a chapter. Shared by the big screen and devices. */
.tale, .rumour { display: flex; gap: .7em; align-items: flex-start; text-align: left; margin: .6em auto; padding: .6em .85em; max-width: 46em;
  border-radius: .7em; background: rgba(20, 16, 30, .78); border: 1px solid rgba(255, 196, 92, .35); box-shadow: 0 .2em .9em rgba(0, 0, 0, .35); }
.tale .ti, .rumour .ti { font-size: 1.7em; line-height: 1; flex: none; }
.tale small, .rumour small { display: block; font-size: .68em; letter-spacing: .09em; text-transform: uppercase; color: #ffc45c; opacity: .9; margin-bottom: .2em; }
.tale p, .rumour p { margin: 0; font-size: .95em; line-height: 1.4; }
.tale p i { opacity: .78; }
.tale.t-turn { border-color: rgba(150, 190, 255, .4); }
.tale.t-turn small { color: #a9c6ff; }
.rumour { border-color: rgba(190, 150, 255, .45); border-style: dashed; }
.rumour small { color: #cdb2ff; }
.chip.chap { background: rgba(255, 196, 92, .16); border-color: rgba(255, 196, 92, .5); }
.chapl { margin: .35em 0; padding: .5em .7em; border-left: 3px solid rgba(255, 196, 92, .55); background: rgba(255, 255, 255, .04); border-radius: 0 .5em .5em 0; text-align: left; }
.chapl b { display: block; font-size: .9em; margin-bottom: .15em; }
.chapl p { margin: 0; font-size: .9em; line-height: 1.4; opacity: .92; }
.chapl.ru { border-left-color: rgba(190, 150, 255, .6); display: flex; gap: .5em; }
.chapl.ru b { flex: none; color: #cdb2ff; }
.chapl.new { animation: chapin .7s ease-out both; }
@keyframes chapin { from { opacity: 0; transform: translateY(.5em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chapl.new { animation: none; } }


/* v0.9.0: what a piece of gear looks like on a hero (DJ.lookLine) */
.item small.lk { text-transform: none; margin-top: .15rem; }
.lkdot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .4em; vertical-align: -.05em; box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.25); }

/* who a piece of gear is for (rare and better) */
.item small.only { display: block; text-transform: none; color: var(--gold); font-weight: 700; margin-top: .15rem; letter-spacing: 0; }
.item small.only.no { color: var(--red); }

/* the notes page, shown over the game (common.js DJ.notes) */
#notesbox { position: fixed; inset: 0; z-index: 400; background: var(--bg); }
#notesbox iframe { display: block; width: 100%; height: 100%; border: 0; }

/* v0.9.3: the job's own screen and its ending (big screen .jobv, devices .jobd), and the stages of the tale card */
.tale.t-step { border-color: rgba(255, 196, 92, .28); }
.tale.t-boss { border-color: rgba(255, 120, 120, .5); }
.tale.t-boss small { color: #ff9c9c; }
.jrows { display: grid; gap: .45em; margin-top: .9em; }
.jrows > div { display: grid; grid-template-columns: 7.2em 1fr; gap: .8em; align-items: baseline; padding-top: .45em; border-top: 1px solid rgba(255, 255, 255, .1); }
.jrows small { font-size: .68em; letter-spacing: .09em; text-transform: uppercase; color: #ffc45c; opacity: .9; }
.jrows b { font-weight: 600; line-height: 1.3; }
.jface { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3b2f58, #1a1426); border: 2px solid #ffc45c; flex: none; line-height: 1; }
.jask { margin: .3em 0 0; line-height: 1.45; }
.jask i { opacity: .78; }
.jstamp { display: inline-block; align-self: center; padding: .15em .9em; border: 3px solid currentColor; border-radius: .4em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); }
.win > .jstamp { color: #8fe39b; }
.lose > .jstamp { color: #ff8e8e; }

/* v0.10.0 (115): rarity is never colour alone. Every step up from common carries its own mark after the name. */
.item.r-uncommon > div > b:first-child::after, .slotb.r-uncommon small::after, .wrow.r-uncommon .wn b::after, .chip.r-uncommon::after { content: ' ◆'; }
.item.r-rare > div > b:first-child::after, .slotb.r-rare small::after, .wrow.r-rare .wn b::after, .chip.r-rare::after { content: ' ★'; }
.item.r-epic > div > b:first-child::after, .slotb.r-epic small::after, .wrow.r-epic .wn b::after, .chip.r-epic::after { content: ' ❖'; }
.item.r-legendary > div > b:first-child::after, .slotb.r-legendary small::after, .wrow.r-legendary .wn b::after, .chip.r-legendary::after { content: ' ♛'; }

/* v0.10.0 (113): a heckle from beyond */
.emo.ghost { filter: saturate(.35) brightness(1.15); font-style: italic; opacity: .92; }
.emo.ghost .ea { font-size: 1.4em; font-style: normal; }

/* v0.11.0 (215): each class's own frame and badge, cut from the 7 Souls UI pack we own (art/ui, baked by
   _Claude Creations/made/bake_ui.py; art/ui/frames.css gives each .cls-<class> its --fr, --frs and --bx). The frame is a
   ring laid over the edge of the box, --frp screen pixels to a picture pixel (whole pixels only); the inside stays the
   page's own dark, so no text colour changes. It never takes a tap. A class with no frame baked yet gets none, and its
   badge shows the class mark alone. */
.framed { --frw: calc(var(--frs, 0) * var(--frp, 2px)); }
.framed::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: var(--frw) solid transparent;
  border-image: var(--fr, none) var(--frs, 0) / var(--frw) repeat; image-rendering: pixelated; }
.cbadge { --bs: 32px; display: grid; place-items: center; width: var(--bs); height: var(--bs); font-style: normal; line-height: 1;
  image-rendering: pixelated; background: url(/art/ui/badges.png) calc(var(--bx, -100) * var(--bs) * -1) 0 / calc(var(--bxn, 12) * var(--bs)) var(--bs) no-repeat; }
