/* ---------- art direction "BD d'horreur" (15 Oct 2026) ----------
   The menus and the HUD as a horror comic book (EC Comics, Creepshow, Goosebumps covers), to go with the dripping
   logo: thick ink outlines, hard offset shadows, halftone dots, slanted panels, yellow narration captions, sound words
   that slam in (src/ui/juice.js). Loaded after crypt.css: same 640x360 grid (.px), these rules win. Colors: ink, bone,
   blood, slime, caption yellow; each fighter brings his own (--cc), each player his (--pc). */
:root {
  --px-font: 'Bangers', 'Lilita One', 'Arial Black', sans-serif;
  --px-small: 'Barlow Condensed', 'Nunito', 'Segoe UI', sans-serif;
  --ink: #120a1a; --bone: #fff3d6; --blood: #e8202e; --cap: #ffd84a; --night: #1d1030;
  --tone: radial-gradient(circle, rgba(18, 10, 26, .5) .9px, transparent 1.25px) 0 0 / 3px 3px;
}
.px, .px * { letter-spacing: .4px; }
.px .txt { text-shadow: 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink); }
.px small, .px .hint { letter-spacing: .2px; }

/* ink lettering: an outline drawn under the fill, then a hard shadow */
.px .ink-l, .px .cs-title, .px .ptitle, .px .ci-n, .px .cs-card .cn, .px .cs-ready span, .px .ss-blurb2 b {
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }

/* --- the flash, sound words, ink (src/ui/juice.js) --- */
.px .jx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: visible; }
.px .jx-burst { position: absolute; pointer-events: none; }
.px .jx-burst svg { position: absolute; inset: 0; overflow: visible; }
.px .jx-burst b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--px-font); font-weight: normal; letter-spacing: 1px; white-space: nowrap; transform: rotate(-6deg); }
.px .jx-drop { position: absolute; border-radius: 50%; pointer-events: none; }
.px .jx-line { position: absolute; height: 1.6px; transform-origin: 0 50%; border-radius: 2px; pointer-events: none; }
.px .jx-flash { position: absolute; inset: -300px; pointer-events: none; }
@keyframes pulse-s { 50% { transform: scale(1.07); } }

/* --- the press start of the title: a pulse, never a blink --- */
.px .press { animation: pulse-s 1.1s ease-in-out infinite; font-size: 26px; letter-spacing: 2px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }

/* ================= character select ================= */
.px .cs-vignette { position: absolute; inset: -40px; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 5, 18, .78) 0, rgba(10, 5, 18, .35) 60px, transparent 120px),
    radial-gradient(ellipse at 50% 62%, transparent 45%, rgba(10, 5, 18, .55) 100%); }
.px .cs-title { left: 12px; top: 2px; font-size: 34px; line-height: 38px; letter-spacing: 1.5px; color: var(--bone); text-shadow: 3px 3px 0 var(--blood), 5px 5px 0 var(--ink);
  transform: rotate(-2deg); transform-origin: left; animation: title-slam .45s cubic-bezier(.2, 1.7, .4, 1) both; white-space: nowrap; }
.px .cs-title b { font-weight: normal; color: var(--cap); }
@keyframes title-slam { 0% { transform: translateX(-60px) rotate(-8deg) scale(1.6); opacity: 0; } 100% { transform: rotate(-2deg); opacity: 1; } }
.px .cs-room { border: 0; background: var(--cap); border-radius: 0; box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--ink); transform: rotate(2deg); height: 32px; top: 6px; }
.px .cs-room small, .px .cs-room i { color: var(--ink); text-shadow: none; }
.px .cs-room b { color: var(--blood); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.px .cs-room b { font-size: 21px; letter-spacing: 1px; top: -3px; } /* (6 letters since 18 Oct 2026) */
.px .cs-room[title] { cursor: pointer; pointer-events: auto; }
.px .cs-room.locked { background: #b9b2a4; }
.px .cs-room.locked b { color: #5a5a5a; text-decoration: line-through; text-decoration-thickness: 3px; }

.px .cs-grid2 { left: 12px; top: 46px; width: 350px; height: 147px; }
.px .cs-tile { width: 42px; height: 46px; border: 0; outline: 0; border-radius: 0; background: none; box-shadow: none !important; transform: none !important; filter: none !important;
  animation: tile-in .4s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 16ms + 120ms); }
@keyframes tile-in { from { transform: translateY(-30px) rotate(-12deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.px .cs-tile .ti { position: absolute; inset: 0; transition: transform .12s ease-out, filter .12s; }
.px .cs-tile .tb { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.px .cs-tile .tb::before, .px .cs-tile .tb::after { content: ''; position: absolute; inset: 2px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.px .cs-tile .tb::before { background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cc) 70%, #fff) 0, var(--cc) 38%, color-mix(in srgb, var(--cc) 30%, var(--ink)) 100%); }
.px .cs-tile .tb::after { background: var(--tone); -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 90%); mask-image: linear-gradient(180deg, transparent 20%, #000 90%); }
.px .cs-tile img { position: absolute; left: -3px; top: -5px; width: 48px; height: 48px; transition: transform .14s cubic-bezier(.2, 1.8, .4, 1);
  filter: drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)); }
.px .cs-tile .q { position: absolute; inset: 0 0 8px; font-size: 36px; line-height: 40px; color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; }
.px .cs-tile .nm { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; padding: 0 3px; background: var(--ink); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  font-size: 8px; line-height: 10.5px; color: var(--bone); white-space: nowrap; overflow: hidden; text-align: center; }
.px .cs-tile .nm em { display: inline-block; font-style: normal; transform-origin: 50% 50% !important; }
.px .cs-tile .sh { position: absolute; inset: 2px; pointer-events: none; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); overflow: hidden; }
.px .cs-tile .sh::after { content: ''; position: absolute; top: -10px; bottom: -10px; width: 10px; left: -20px; background: rgba(255, 255, 255, .55); transform: skewX(-20deg); }
.px .cs-tile:hover .ti { filter: brightness(1.12); }
/* under a cursor: it jumps out, the frame takes the player's color, the head pops, a shine runs over it */
.px .cs-tile.hot { z-index: 4; }
.px .cs-tile.hot .ti { transform: translateY(-4px) scale(1.16) rotate(-3deg); filter: drop-shadow(0 0 5px var(--pc)) drop-shadow(2px 3px 0 var(--ink)); transition: transform .2s cubic-bezier(.2, 2, .4, 1); }
.px .cs-tile.hot .tb { background: var(--pc); }
.px .cs-tile.hot img { transform: scale(1.14) translateY(-3px); }
.px .cs-tile.hot .sh::after { animation: shine .5s ease-out .05s both; }
@keyframes shine { from { left: -20px; } to { left: 60px; } }
.px .cs-tok { width: auto; height: auto; z-index: 6; animation: tok .45s ease-in-out infinite alternate; }
.px .cs-tok b { position: static; display: block; padding: 0 3px; font-size: 9px; line-height: 10px; color: #fff; background: var(--pc); border: 1.5px solid var(--ink); border-radius: 6px 6px 6px 1px; box-shadow: 1.5px 1.5px 0 var(--ink); text-shadow: 1px 1px 0 var(--ink); }

/* the poster of the fighter under the cursor */
.px .cs-info2 { left: 368px; top: 44px; right: auto; width: 262px; height: 150px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; animation: none !important; overflow: visible; }
.px .cs-info2 .ib { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.px .cs-info2 .ib::before, .px .cs-info2 .ib::after { content: ''; position: absolute; inset: 2.5px; clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 100%, 0 100%); }
.px .cs-info2 .ib::before { background: radial-gradient(circle at 76% 48%, color-mix(in srgb, var(--cc) 60%, transparent) 0, transparent 58%), linear-gradient(165deg, #2f1a46 0, #170c24 70%); }
.px .cs-info2 .ib::after { background: radial-gradient(circle, color-mix(in srgb, var(--cc) 55%, transparent) 1px, transparent 1.5px) 0 0 / 5px 5px;
  -webkit-mask-image: radial-gradient(circle at 76% 50%, #000 0, transparent 62%); mask-image: radial-gradient(circle at 76% 50%, #000 0, transparent 62%); }
.px .ci-p { position: absolute; right: 2px; bottom: 2.5px; width: 146px; height: 146px; clip-path: inset(-20px 0 0 0);
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)) drop-shadow(5px 2px 0 rgba(10, 5, 18, .6)); }
.px .ci-n { position: absolute; left: 14px; top: 8px; z-index: 2; font-size: 38px; line-height: 40px; letter-spacing: 1.5px; color: var(--cc); text-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap; transform: rotate(-4deg); transform-origin: 0 50%; -webkit-text-stroke: 5px var(--ink); }
.px .ci-n em { display: inline-block; font-style: normal; }
.px .ci-n.ci-wait { color: var(--bone); animation: pulse-s 1.2s ease-in-out infinite; }
.px .ci-t { position: absolute; left: 16px; top: 52px; z-index: 2; max-width: 150px; margin: 0; padding: 2px 5px; background: var(--cap); color: var(--ink); text-shadow: none;
  font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 9px; line-height: 10px; text-transform: uppercase; box-shadow: 0 0 0 1.5px var(--ink), 2.5px 2.5px 0 1.5px var(--ink); transform: rotate(-1.5deg); }
.px .ci-sp { position: absolute; left: 13px; top: 76px; z-index: 2; width: 156px; display: grid; gap: 3px; }
.px .ci-s { display: flex; align-items: center; gap: 3px; height: 14.5px; padding-right: 6px; background: rgba(12, 6, 20, .86); border-left: 3px solid var(--cc); text-shadow: none;
  font-family: var(--px-font); font-size: 12px; line-height: 14.5px; color: var(--bone); white-space: nowrap; overflow: hidden; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.px .ci-s b.kx { flex: none; width: 11px; height: 11px; margin-left: 2px; border-radius: 50%; background: #3b8bff; color: #fff; box-shadow: 0 0 0 1.2px var(--ink); font-size: 9px; line-height: 11.5px; text-align: center; }
.px .ci-s i { flex: none; width: 9px; font-style: normal; text-align: center; font-family: var(--px-small); font-weight: 900; font-size: 11px; color: var(--cap); }
.px .cs-info2.flip .ci-n { animation: name-slam .34s cubic-bezier(.2, 1.8, .4, 1) both; }
.px .cs-info2.flip .ci-p { animation: bust-in .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.px .cs-info2.flip .ci-t { animation: cap-in .3s cubic-bezier(.2, 1.8, .4, 1) .07s both; }
.px .cs-info2.flip .ci-s { animation: sp-in .26s cubic-bezier(.2, 1.6, .4, 1) both; }
.px .cs-info2.flip .ci-s:nth-child(2) { animation-delay: .05s; } .px .cs-info2.flip .ci-s:nth-child(3) { animation-delay: .1s; } .px .cs-info2.flip .ci-s:nth-child(4) { animation-delay: .15s; }
@keyframes name-slam { 0% { transform: translateX(50px) rotate(-10deg) scale(1.7); opacity: 0; } 100% { transform: rotate(-4deg); opacity: 1; } }
@keyframes bust-in { 0% { transform: translateX(50px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes cap-in { 0% { transform: rotate(-12deg) scale(.3); opacity: 0; } 100% { transform: rotate(-1.5deg); opacity: 1; } }
@keyframes sp-in { 0% { transform: translateX(-30px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* the four players' cards */
.px .cs-cards { left: 8px; top: 300px; height: 56px; }
.px .cs-card { width: 150px; height: 54px; border: 0; background: none; box-shadow: none !important; opacity: 1; padding: 0; overflow: visible; }
.px .cs-card .cb { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.px .cs-card .cb::before, .px .cs-card .cb::after { content: ''; position: absolute; inset: 2px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.px .cs-card .cb::before { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--pc) 16%, transparent) 0 5px, transparent 5px 10px), #170d22; }
.px .cs-card.used .cb::before { background: linear-gradient(105deg, var(--pc) 0 36%, color-mix(in srgb, var(--pc) 35%, var(--ink)) 36.5% 39%, #1b0f28 39.5%); }
.px .cs-card.used .cb::after { background: radial-gradient(circle, rgba(255, 255, 255, .28) .9px, transparent 1.3px) 0 0 / 3.5px 3.5px; -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 45%); mask-image: linear-gradient(90deg, #000 0, transparent 45%); }
.px .cs-card.ready { filter: drop-shadow(0 0 4px var(--pc)); }
.px .cs-card .cp { left: 2px; top: -14px; width: 62px; height: 66px; border: 0; outline: 0; border-radius: 0; background: none; overflow: visible; clip-path: inset(-30px -10px 2px -10px); }
.px .cs-card .cp img { position: absolute; left: 0; bottom: 0; width: 64px; height: 64px; filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
.px .cs-card .cp .q { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 34px; line-height: 40px; color: var(--ink); text-shadow: none; }
.px .cs-card .cj { left: -6px; top: -11px; z-index: 3; padding: 0 4px; font-size: 13px; line-height: 14px; color: #fff; background: var(--pc); box-shadow: 0 0 0 1.5px var(--ink), 2px 2px 0 1.5px var(--ink); transform: rotate(-8deg); text-shadow: 1px 1px 0 var(--ink); }
.px .cs-card:not(.used) .cj { left: 14px; top: 8px; font-size: 30px; line-height: 32px; padding: 0; background: none; box-shadow: none; color: var(--pc); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); transform: rotate(-5deg); }
.px .cs-card .cn { left: 66px; top: 9px; right: auto; width: 82px; font-size: 19px; line-height: 20px; letter-spacing: .8px; color: var(--bone); text-shadow: 2px 2px 0 var(--ink); overflow: visible; }
.px .cs-card .cn em { display: inline-block; font-style: normal; }
.px .cs-card .cw { left: 67px; top: 32px; right: 10px; font-family: var(--px-small); font-weight: 700; font-size: 8px; line-height: 9px; text-transform: uppercase; color: #cdbde0; text-shadow: 1px 1px 0 var(--ink); }
.px .cs-card:not(.used) .cw { left: 54px; top: 18px; right: 6px; font-family: var(--px-font); font-weight: normal; font-size: 12px; line-height: 14px; color: var(--bone); animation: pulse-s 1.1s ease-in-out infinite; transform-origin: 30% 50%; }
.px .cs-card .cw b.ka { display: inline-block; width: 13px; height: 13px; margin-right: 2px; border-radius: 50%; background: #3bdc5a; color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); text-align: center; font-size: 10px; line-height: 14px; text-shadow: none; }
.px .cs-card .stamp { left: 6px; right: auto; top: 26px; z-index: 4; padding: 0 5px; font-size: 20px; line-height: 20px; letter-spacing: 1px; color: var(--blood); background: var(--bone); border: 2.5px solid var(--blood);
  box-shadow: 0 0 0 1.5px var(--ink), 3px 3px 0 1.5px var(--ink); text-shadow: none; transform: rotate(-9deg); animation: stamp2 .32s cubic-bezier(.3, 1.9, .5, 1) both; }
@keyframes stamp2 { from { transform: rotate(-35deg) scale(3.4); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }
.px .cs-card.slam .cp { animation: slam .3s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes slam { 0% { transform: scale(1.9) rotate(-8deg); filter: brightness(3); } 100% { transform: none; filter: none; } }

.px .cs-help2 { top: 279px; font-family: var(--px-small); font-weight: 700; font-size: 9px; color: #e6d8f2; text-transform: uppercase; }
.px .cs-help2 b { font-weight: normal; font-size: 12px; }

/* everyone ready: a striped warning band slams across the screen */
.px .cs-ready { left: -40px; right: -40px; top: 184px; height: 46px; background: none; border: 0; transform: translateX(-115%) skewY(-4deg) rotate(-1deg); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); z-index: 10; }
.px .cs-ready.on { transform: skewY(-4deg) rotate(-1deg); }
.px .cs-ready .rb { position: absolute; inset: 0; background: repeating-linear-gradient(-50deg, var(--blood) 0 16px, #a80c1a 16px 32px); box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), 0 -6px 0 var(--cap), 0 6px 0 var(--cap), 0 -8px 0 var(--ink), 0 8px 0 var(--ink); }
.px .cs-ready span { position: relative; font-size: 36px; line-height: 38px; letter-spacing: 3px; color: var(--bone); text-shadow: 4px 4px 0 var(--ink); -webkit-text-stroke: 5px var(--ink); }
.px .cs-ready.on span { animation: ready-pump .5s ease-in-out infinite alternate; }
@keyframes ready-pump { from { transform: scale(1); } to { transform: scale(1.05) rotate(-1deg); } }
.px .cs-ready small { position: relative; display: inline-block; margin-top: -2px; padding: 0 6px; background: var(--cap); color: var(--ink); text-shadow: none; box-shadow: 0 0 0 1.5px var(--ink);
  font-family: var(--px-font); font-size: 10px; line-height: 12px; animation: pulse-s 1s ease-in-out infinite; }

/* ================= stage select: comic panels pinned askew ================= */
.px .ss-grid2 { left: 18px; top: 48px; width: 604px; height: 150px; }
.px .ss-tile { width: 97px; height: 74px; border: 0; outline: 0; border-radius: 0; background: none; box-shadow: none !important; transform: none !important; filter: none !important;
  animation: panel-in .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 40ms + 100ms); }
@keyframes panel-in { from { transform: translateY(-40px) rotate(-14deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.px .ss-tile .ti { position: absolute; inset: 0; padding: 2px; background: var(--ink); transform: rotate(var(--r)); box-shadow: 3px 3px 0 rgba(10, 5, 18, .75); transition: transform .18s cubic-bezier(.2, 1.8, .4, 1); }
.px .ss-tile img { display: block; width: 93px; height: 50px; object-fit: cover; outline: 1px solid rgba(255, 243, 214, .45); outline-offset: -1px; transition: filter .15s; }
.px .ss-grid2 .ss-tile:not(.on) img { filter: saturate(.7) brightness(.72); }
.px .ss-tile .nm { display: flex; justify-content: center; height: 12px; margin-top: 1px; font-size: 10px; line-height: 13px; color: var(--bone); text-align: center; white-space: nowrap; overflow: hidden; letter-spacing: .8px; }
.px .ss-tile .q { display: block; height: 50px; font-size: 40px; line-height: 52px; text-align: center; color: var(--ink); text-shadow: none; background: repeating-linear-gradient(-45deg, #9dff3a 0 8px, #6ec324 8px 16px); }
.px .ss-tile .nm em { display: inline-block; font-style: normal; transform-origin: 50% 50% !important; }
.px .ss-tile.on { z-index: 3; }
.px .ss-grid2.ss7 .ss-tile { width: 84px; height: 68px; }
.px .ss-grid2.ss7 .ss-tile img { width: 80px; height: 44px; }
.px .ss-grid2.ss7 .ss-tile .q { height: 44px; line-height: 46px; }
.px .ss-tile.on .ti { transform: rotate(0deg) scale(1.14) translateY(-3px); background: var(--cap); box-shadow: 0 0 0 2px var(--ink), 5px 5px 0 2px var(--ink), 0 0 16px rgba(255, 216, 74, .55); }
.px .ss-tile.on .nm { color: var(--ink); }
.px .ss-tile.pop .ti { animation: wobble .3s ease-out; }
@keyframes wobble { 0% { transform: rotate(-6deg) scale(1.22); } 50% { transform: rotate(3deg) scale(1.1); } 100% { transform: rotate(0) scale(1.14) translateY(-3px); } }
.px .ss-tile.pick { animation: none; }
.px .ss-tile.pick .ti { animation: slam .32s cubic-bezier(.2, 1.6, .4, 1); }

/* the narration caption: where the fight happens */
.px .ss-blurb2 { left: 22px; right: 22px; top: 208px; height: auto; min-height: 38px; padding: 3px 9px 4px; border: 0; border-radius: 0; background: var(--cap);
  box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink); transform: rotate(-.6deg); }
.px .ss-blurb2.flip { animation: cap-flip .26s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes cap-flip { 0% { transform: rotate(-4deg) scale(.92); } 100% { transform: rotate(-.6deg); } }
.px .ss-blurb2 small { font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 9px; color: var(--ink); text-shadow: none; letter-spacing: .5px; }
.px .ss-blurb2 b { display: inline-block; margin-left: 5px; font-size: 22px; line-height: 22px; letter-spacing: 1.2px; color: var(--blood); text-shadow: 2px 2px 0 var(--ink); -webkit-text-stroke: 3.5px var(--ink); }
.px .ss-blurb2 span { display: block; font-family: var(--px-small); font-weight: 700; font-size: 10px; line-height: 11px; color: var(--ink); text-shadow: none; }

/* the rules: little ink cards, their label on a black strip */
.px .ss-rules2 { left: 18px; right: 18px; top: 262px; gap: 8px; }
.px .ss-rule { height: 34px; border: 0; border-radius: 0; background: #1d1030; box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--ink); filter: none !important; transition: transform .14s cubic-bezier(.2, 1.8, .4, 1); }
.px .ss-rule small { display: block; height: 11px; background: var(--ink); color: var(--cap); font-family: var(--px-small); font-weight: 800; font-size: 8px; line-height: 11px; text-shadow: none; letter-spacing: 1px; }
.px .ss-rule span { margin-top: 3px; font-size: 16px; line-height: 17px; }
.px .ss-rule span b { font-weight: normal; color: var(--bone); text-shadow: 2px 2px 0 var(--ink); }
.px .ss-rule.on { transform: translateY(-3px) rotate(-1.5deg); background: #2c1745; box-shadow: 0 0 0 2px var(--slime), 4px 4px 0 2px var(--ink), 0 0 10px rgba(157, 255, 58, .45); }
.px .ss-rule.on small { color: var(--slime); }
.px .ss-rule.on span b { color: var(--slime); }
.px .ss-rule.on img { opacity: 1; animation: tok .35s ease-in-out infinite alternate; }
.px .ss-help { top: 304px; }

/* ================= in-match HUD: a slanted comic panel per fighter ================= */
.px .phc { top: 306px; width: 132px; height: 48px; border: 0; background: none; box-shadow: none; overflow: visible; animation: hud-in .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes hud-in { from { transform: translateY(90px) rotate(-8deg); } to { transform: none; } }
.px .phc .hb { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.px .phc .hb::before, .px .phc .hb::after { content: ''; position: absolute; inset: 2px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.px .phc .hb::before { background: linear-gradient(105deg, color-mix(in srgb, var(--cc) 75%, var(--ink)) 0 30%, var(--pc) 30.5% 33%, #1b0f28 33.5%), #1b0f28; }
.px .phc .hb::after { background: radial-gradient(circle, rgba(255, 255, 255, .22) .9px, transparent 1.3px) 0 0 / 3.5px 3.5px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 40%); mask-image: linear-gradient(90deg, #000, transparent 40%); }
.px .phc .pp { left: -4px; top: -18px; width: 50px; height: 64px; border: 0; background: none; overflow: visible; clip-path: inset(-30px -10px 2px -10px); }
.px .phc .pp img { position: absolute; left: 0; bottom: 0; width: 52px; height: 52px; margin: 0; filter: drop-shadow(1.5px 0 0 var(--ink)) drop-shadow(-1.5px 0 0 var(--ink)) drop-shadow(0 -1.5px 0 var(--ink)); }
.px .phc .pct { left: 46px; top: -1px; font-size: 34px; line-height: 36px; text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 4.5px var(--ink); paint-order: stroke fill; transform-origin: 30% 80%; white-space: nowrap; }
.px .phc .pct b { display: inline-block; font-weight: normal; transform: skewX(-8deg); letter-spacing: 1px; }
.px .phc .pct small { font-size: 16px; -webkit-text-stroke: 3px var(--ink); }
.px .phc .pct.bump { animation: pct-bump .24s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pct-bump { 0% { filter: brightness(4); } 100% { filter: none; } }
.px .phc .tag { position: absolute; left: 44px; right: 7px; bottom: 3px; height: 11px; padding: 0 5px 0 6px; display: flex; gap: 4px; align-items: center; background: var(--pc); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); white-space: nowrap; overflow: hidden; }
.px .phc .pj { position: static; font-size: 9px; line-height: 11px; color: var(--ink); text-shadow: none; font-weight: normal; }
.px .phc .pj i { font-style: normal; font-size: 7px; color: var(--ink); opacity: .7; }
.px .phc .pn { position: static; max-width: none; font-family: var(--px-font); font-size: 9px; line-height: 11px; color: var(--bone); text-shadow: 1px 1px 0 var(--ink); overflow: hidden; }
.px .phc .stocks { right: 12px; top: -7px; z-index: 2; gap: 1px; max-width: none; flex-wrap: nowrap; align-items: center; }
.px .phc .st, .px .jx-layer .st { display: block; width: 11px; height: 11px; border-radius: 50%; overflow: hidden; background: var(--pc); box-shadow: 0 0 0 1.2px var(--ink); }
.px .phc .st img, .px .jx-layer .st img { width: 15px; height: 15px; margin: -1px 0 0 -2px; }
.px .jx-layer .st.fall { position: absolute; z-index: 5; }
.px .phc .sx { font-size: 10px; line-height: 11px; color: var(--bone); text-shadow: 1px 1px 0 var(--ink); font-weight: normal; }
.px .phc .cds { right: 8px; top: 8px; gap: 3px; flex-direction: column; }
.px .phc .cds i { width: 7px; height: 7px; border: 0; border-radius: 50%; box-shadow: 0 0 0 1.2px var(--ink); background: conic-gradient(rgba(12, 6, 20, .85) calc(var(--f, 0) * 360deg), var(--cc) 0); }
.px .phc .cds i.ready { animation: cd-pop .3s cubic-bezier(.2, 2, .4, 1); }
@keyframes cd-pop { 0% { transform: scale(2); filter: brightness(3); } 100% { transform: none; filter: none; } }
/* past 100 % the number trembles, past 150 % the panel glows red (slowly: a pulse, not a strobe) */
.px .phc.hot .pct b { animation: tremble .12s steps(2) infinite; }
@keyframes tremble { 0% { transform: skewX(-8deg) translate(.4px, -.3px); } 100% { transform: skewX(-8deg) translate(-.4px, .3px); } }
.px .phc.danger { animation: danger-c 1s ease-in-out infinite; }
.px .phc.danger .pct b { animation: tremble .08s steps(2) infinite; }
@keyframes danger-c { 50% { filter: drop-shadow(0 0 6px #ff2a2a); } }
.px .phc.lost { animation: ko-card .45s ease-out; }
@keyframes ko-card { 0% { transform: translate(5px, -4px) rotate(4deg); filter: brightness(3); } 30% { transform: translate(-4px, 3px) rotate(-3deg); } 60% { transform: translate(2px, 1px); } 100% { transform: none; filter: none; } }
.px .phc.lost .pp { animation: slam .35s ease-in-out; }
.px .phc.out { filter: grayscale(1) brightness(.55); }
.px .phud-timer { top: 2px; font-size: 32px; letter-spacing: 2px; color: var(--bone); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--blood); }
.px .phud-timer.low { color: var(--blood); text-shadow: 3px 3px 0 var(--ink); animation: pulse-s .5s ease-in-out infinite; }
/* le prochain mini-jeu : seulement ses 5 dernières secondes, un gros encadré de BD centré sous le haut (la surprise) */
.px .phud-mg { left: 0; right: 0; top: 38px; margin: 0 auto; width: max-content; padding: 2px 10px 4px; background: var(--cap); color: var(--ink); border: 0;
  box-shadow: 0 0 0 1.5px var(--ink), 3px 3px 0 1.5px var(--ink); transform: rotate(-1.5deg);
  font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 8px; line-height: 11px; text-shadow: none; }
.px .phud-mg b { font-family: var(--px-font); font-style: normal; font-size: 30px; line-height: 30px; color: var(--blood); text-shadow: none; }
.px .phud-mg em { display: block; font-family: var(--px-font); font-style: normal; font-size: 20px; line-height: 22px; color: var(--blood); text-transform: uppercase; }
.px .phud-mg.tick { animation: cd-pop .45s ease-out; }

/* the victory line over the slow motion of the last KO (fx.js 'game'): huge, tilted, inked, on a red slash */
.popups .banner.vic { width: calc(var(--k, 2) * 520px); white-space: normal; text-align: center; line-height: .95; font-size: calc(var(--k, 2) * 46px) !important; color: #fff3d6 !important;
  -webkit-text-stroke: calc(var(--k, 2) * 5px) #120a1a !important; paint-order: stroke fill; letter-spacing: calc(var(--k, 2) * 1.5px);
  text-shadow: calc(var(--k, 2) * 4px) calc(var(--k, 2) * 4px) 0 #e8202e, calc(var(--k, 2) * 6px) calc(var(--k, 2) * 6px) 0 #120a1a !important;
  animation: vic-in 2.3s cubic-bezier(.2, 1.8, .4, 1) both !important; }
.popups .banner.vic::before { content: ''; position: absolute; left: -12%; right: -12%; top: 18%; bottom: 18%; z-index: -1; background: repeating-linear-gradient(-50deg, #e8202e 0 calc(var(--k, 2) * 14px), #a80c1a 0 calc(var(--k, 2) * 28px));
  transform: skewY(-4deg); box-shadow: 0 calc(var(--k, 2) * -3px) 0 #120a1a, 0 calc(var(--k, 2) * 3px) 0 #120a1a; }
@keyframes vic-in { 0% { transform: translate(-50%, -50%) rotate(-14deg) scale(3.2); opacity: 0; } 8% { transform: translate(-50%, -50%) rotate(-3deg) scale(.92); opacity: 1; }
  14% { transform: translate(-50%, -50%) rotate(-5deg) scale(1.04); } 85% { transform: translate(-50%, -50%) rotate(-4deg) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-4deg) scale(1.6); opacity: 0; } }

/* ================= lists on a panel (options, pause, results' menu) ================= */
.px .plist { border: 0; border-radius: 0; background: #1b0f28; box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink); padding: 3px 6px; }
.px .prow { font-size: 15px; letter-spacing: .8px; color: #e6d8f2; text-shadow: 1px 1px 0 var(--ink); }
.px .prow .pl { font-weight: normal; }
.px .prow.on { background: var(--cap); color: var(--ink); text-shadow: none; box-shadow: none; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.px .prow.on .pv { color: var(--blood); }
.px .prow .pv b { font-weight: normal; }

/* ================= results: the cover of a horror comic ================= */
.px .rs-cover { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 5px var(--ink), inset 0 0 0 7px var(--bone), inset 0 0 0 9px var(--ink);
  background: linear-gradient(90deg, transparent 50%, rgba(10, 5, 18, .62) 56%), radial-gradient(ellipse at 25% 55%, transparent 40%, rgba(10, 5, 18, .5) 100%); animation: cover-in .3s ease-out both; }
@keyframes cover-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.px .rs-mast { position: absolute; left: 14px; top: 10px; animation: mast-in .45s cubic-bezier(.2, 1.7, .4, 1) .15s both; }
.px .rs-mast img { filter: drop-shadow(2px 2px 0 var(--ink)); }
.px .rs-mast span { display: inline-block; margin: -3px 0 0 8px; padding: 1px 6px; background: var(--cap); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), 2px 2px 0 1.5px var(--ink); transform: rotate(-2deg);
  font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 8px; line-height: 10px; }
@keyframes mast-in { from { transform: translateY(-80px) rotate(-6deg); } to { transform: none; } }
.px .rs-head { position: absolute; left: 16px; top: 302px; max-width: 300px; padding: 3px 8px 4px; background: var(--cap); box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink); transform: rotate(-1.5deg);
  animation: head-in .4s cubic-bezier(.2, 1.8, .4, 1) 1.5s both; }
.px .rs-head small { display: block; font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 8px; line-height: 9px; color: var(--blood); }
.px .rs-head b { display: block; font-weight: normal; font-size: 18px; line-height: 18px; letter-spacing: 1px; color: var(--ink); }
@keyframes head-in { 0% { transform: rotate(-12deg) scale(.2); opacity: 0; } 100% { transform: rotate(-1.5deg); opacity: 1; } }
.px .rs-title { left: 352px; right: 12px; top: 12px; }
.px .rs-title b { font-weight: normal; font-size: 44px; line-height: 46px; color: var(--cap); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--blood), 6px 6px 0 var(--ink);
  animation: letter2 .38s cubic-bezier(.2, 1.9, .4, 1) both; animation-delay: calc(var(--i) * 55ms + 350ms); }
@keyframes letter2 { 0% { transform: translateY(-90px) rotate(-30deg) scale(2); opacity: 0; } 100% { transform: none; opacity: 1; } }
.px .rs-win { left: 352px; right: 12px; top: 56px; animation: win-in .4s cubic-bezier(.2, 1.9, .4, 1) .95s both; }
.px .rs-win span { display: block; font-size: 34px; line-height: 36px; letter-spacing: 1.5px; color: var(--cc) !important; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); }
.px .rs-win span em { display: inline-block; font-style: normal; transform-origin: 50% 50% !important; }
.px .rs-win small { display: inline-block; margin-top: 1px; padding: 0 6px; background: var(--ink); color: var(--bone); font-family: var(--px-small); font-weight: 800; font-style: italic; font-size: 8.5px; line-height: 12px; letter-spacing: .6px; }
@keyframes win-in { 0% { transform: scale(3) rotate(10deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.px .rs-rows { left: 358px; right: 12px; top: 118px; }
.px .rs-row { height: 29px; margin-bottom: 4px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: row-in2 .4s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 120ms + 1.2s); }
@keyframes row-in2 { from { transform: translateX(300px) rotate(8deg); } to { transform: none; } }
.px .rs-row .rb { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.px .rs-row .rb::before { content: ''; position: absolute; inset: 2px; clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); background: linear-gradient(105deg, var(--pc) 0 15%, color-mix(in srgb, var(--pc) 35%, var(--ink)) 15.5% 17%, #1b0f28 17.5%); }
.px .rs-row.p1 .rb::before { background: linear-gradient(105deg, var(--cap) 0 15%, #b8860b 15.5% 17%, #3a2350 17.5%); }
.px .rs-row.p1 { transform-origin: 0 50%; filter: drop-shadow(0 0 5px rgba(255, 216, 74, .5)); }
.px .rs-row .pl { left: 6px; top: 2px; font-weight: normal; font-size: 22px; line-height: 26px; color: var(--bone) !important; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.px .rs-row .pl sup { font-size: 10px; vertical-align: 9px; }
.px .rs-row.p1 .pl { color: var(--cap) !important; }
.px .rs-row .rp { left: 38px; top: -11px; width: 40px; height: 43px; border: 0; border-radius: 0; background: none; overflow: visible; clip-path: inset(-20px -6px 2px -6px); }
.px .rs-row .rp img { position: absolute; left: 0; bottom: 0; width: 42px; height: 42px; margin: 0; filter: drop-shadow(1.2px 0 0 var(--ink)) drop-shadow(-1.2px 0 0 var(--ink)) drop-shadow(0 -1.2px 0 var(--ink)); }
.px .rs-row .rn { left: 82px; top: 2px; font-size: 13px; line-height: 14px; letter-spacing: .6px; }
.px .rs-row .rn em { display: inline-block; font-style: normal; }
.px .rs-row .rn small { margin-left: 4px; font-family: var(--px-small); font-weight: 700; font-size: 7.5px; color: #cdbde0; }
.px .rs-row .rst { top: 15px; font-family: var(--px-small); font-weight: 700; font-size: 7px; line-height: 12px; color: #cdbde0; text-transform: uppercase; }
.px .rs-row .rst b { font-weight: normal; font-family: var(--px-font); font-size: 11px; color: var(--cap); }
.px .rs-row .rst:nth-of-type(2) { left: 82px; } .px .rs-row .rst:nth-of-type(3) { left: 140px; } .px .rs-row .rst:nth-of-type(4) { left: 188px; }
.px .rs-blood { left: 358px; right: 12px; top: 252px; font-family: var(--px-font); font-size: 12px; letter-spacing: 1px; color: var(--bone); text-shadow: 1px 1px 0 var(--ink); animation: head-in .4s cubic-bezier(.2, 1.8, .4, 1) 1.75s both; }
.px .rs-blood b { font-weight: normal; font-size: 15px; color: var(--blood); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.px .rs-menu { animation: menu-in .4s cubic-bezier(.2, 1.6, .4, 1) 2s both; }
@keyframes menu-in { from { transform: translateY(120px); } to { transform: none; } }

/* main menu: the painted stone slabs keep their art, the lettering is inked */
.px .pbtn .lab { font-size: 18px; letter-spacing: 1.2px; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.px .pbtn.on .lab { color: var(--cap); }
.px .pbtn .hint { font-weight: 700; font-size: 7.5px; }
.px .ptitle { color: var(--bone); letter-spacing: 2px; text-shadow: 3px 3px 0 var(--blood), 5px 5px 0 var(--ink); -webkit-text-stroke: 4px var(--ink); }
/* the rules being set: the arenas step back, the picked one keeps its yellow frame */
.px .ss-grid2.away .ss-tile.on .ti { transform: rotate(0deg) scale(1.06); filter: brightness(.8); }
.px .ss-rule { cursor: pointer; }
.px .ss-rule.bump span b { display: inline-block; animation: cd-pop .25s cubic-bezier(.2, 2, .4, 1); }

/* the zoom of a duel's big blow (fx.js 'zoom'): manga speed lines rushing out of the impact, a dark rim on the KO one */
.popups .zoomlines { position: fixed; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-conic-gradient(from 0deg at var(--cx) var(--cy), rgba(255, 243, 214, 0) 0deg 3deg, rgba(255, 243, 214, .55) 3deg 3.7deg, rgba(255, 243, 214, 0) 3.7deg 7deg, rgba(255, 243, 214, .3) 7deg 7.4deg, rgba(255, 243, 214, 0) 7.4deg 11deg);
  -webkit-mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent 22%, #000 62%); mask-image: radial-gradient(circle at var(--cx) var(--cy), transparent 22%, #000 62%);
  animation: zl-in var(--life, .9s) ease-out both; }
.popups .zoomlines.big { background: repeating-conic-gradient(from 0deg at var(--cx) var(--cy), rgba(18, 10, 26, 0) 0deg 2.5deg, rgba(18, 10, 26, .75) 2.5deg 3.4deg, rgba(18, 10, 26, 0) 3.4deg 6deg, rgba(255, 243, 214, .5) 6deg 6.5deg, rgba(18, 10, 26, 0) 6.5deg 9deg),
  radial-gradient(circle at var(--cx) var(--cy), transparent 30%, rgba(18, 10, 26, .55) 85%); }
@keyframes zl-in { 0% { opacity: 0; transform: scale(1.4); } 10% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1.03) rotate(.4deg); } 100% { opacity: 0; transform: scale(1.1); } }

/* the stone buttons of the other menus: once in, their entrance never plays again (src/ui/screens.js PixelMenu) */
.px .pbtn.in { animation: none; }
.px .pbtn.in.pop { animation: pop .22s ease-in-out; }
.px .pbtn.in.press { animation: press-btn .18s ease-in-out; }

/* ================= the main menu: a comic page (src/ui/comicMenu.js) ================= */
.px .cm { position: absolute; inset: 0; }
.px .cm-col { position: absolute; height: 12px; text-align: center; font-family: var(--px-small); font-weight: 800; font-size: 8.5px; line-height: 12px; letter-spacing: 3px; color: var(--cap); background: var(--ink);
  box-shadow: 2px 2px 0 rgba(10, 5, 18, .6); transform: rotate(-1deg); animation: cap-in .35s cubic-bezier(.2, 1.8, .4, 1) both; animation-delay: calc(var(--k) * 90ms + 150ms); }
/* the frame: only the entrance (dropped in, one after the other) */
.px .cb { position: absolute; cursor: pointer; animation: cb-in .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--k) * 45ms + 200ms); }
@keyframes cb-in { from { transform: translateY(-36px) rotate(-10deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* the inside: the choice */
.px .cb .ci { position: absolute; inset: 0; transition: transform .16s cubic-bezier(.2, 1.9, .4, 1), filter .16s; filter: drop-shadow(3px 3px 0 rgba(10, 5, 18, .8)); }
.px .cb .cf { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.px .cb .cf::after { content: ''; position: absolute; inset: 2px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transition: background .12s;
  background: radial-gradient(circle, rgba(255, 243, 214, .07) .9px, transparent 1.3px) 0 0 / 3.5px 3.5px, linear-gradient(180deg, #2f1a46, #1b0f28); }
.px .cb .ic { position: absolute; left: 10px; top: 0; bottom: 0; display: flex; align-items: center; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif; font-size: 15px; font-weight: normal;
  filter: drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)) drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink)); transition: transform .16s cubic-bezier(.2, 2, .4, 1); }
.px .cb .lab { position: absolute; left: 34px; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; font-size: 15px; letter-spacing: 1px; color: var(--bone); white-space: nowrap;
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.px .cb .sh { position: absolute; inset: 2px; overflow: hidden; pointer-events: none; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.px .cb .sh::after { content: ''; position: absolute; top: -10px; bottom: -10px; left: -30px; width: 14px; background: rgba(255, 255, 255, .6); transform: skewX(-20deg); }
.px .cb:not(.on) .ci { filter: drop-shadow(3px 3px 0 rgba(10, 5, 18, .8)) brightness(.86); }
/* chosen: it jumps out, caption yellow, the icon bounces, a shine runs over it */
.px .cb.on { z-index: 3; }
.px .cb.on .ci { transform: translateX(6px) scale(1.12) rotate(-2deg); filter: drop-shadow(0 0 7px rgba(255, 216, 74, .7)) drop-shadow(4px 4px 0 var(--ink)); }
.px .cb.on .cf::after { background: radial-gradient(circle, rgba(18, 10, 26, .12) .9px, transparent 1.3px) 0 0 / 3.5px 3.5px, linear-gradient(180deg, #ffe680, var(--cap)); }
.px .cb.on .lab { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.px .cb.on .ic { transform: scale(1.3) rotate(-10deg); }
.px .cb.on .ci.pop .ic { animation: ic-bounce .45s cubic-bezier(.2, 2, .4, 1); }
.px .cb.on .ci.pop .sh::after { animation: cm-shine .45s ease-out both; }
@keyframes ic-bounce { 0% { transform: scale(.6) rotate(20deg); } 60% { transform: scale(1.5) rotate(-14deg); } 100% { transform: scale(1.3) rotate(-10deg); } }
@keyframes cm-shine { from { left: -30px; } to { left: 180px; } }
.px .cb.hit .ci { animation: cb-hit .24s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes cb-hit { 0% { transform: translateX(6px) scale(1.3) rotate(-4deg); filter: brightness(2.5); } 100% { transform: translateX(6px) scale(1.12) rotate(-2deg); } }
.px .cm-hand { position: absolute; z-index: 4; pointer-events: none; transition: left .16s cubic-bezier(.2, 1.6, .4, 1), top .16s cubic-bezier(.2, 1.6, .4, 1); animation: hand .5s ease-in-out infinite alternate;
  filter: drop-shadow(2px 2px 0 rgba(10, 5, 18, .7)); }
/* the explanation of the chosen entry */
.px .cm-cap { position: absolute; z-index: 2; padding: 4px 10px 5px; box-sizing: border-box; background: var(--cap); box-shadow: 0 0 0 2px var(--ink), 4px 4px 0 2px var(--ink); transform: rotate(-.8deg); text-align: center;
  animation: cap-in .35s cubic-bezier(.2, 1.8, .4, 1) .55s both; }
.px .cm-cap b { display: block; font-weight: normal; font-size: 16px; line-height: 17px; letter-spacing: 1px; color: var(--blood); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.px .cm-cap span { display: block; font-family: var(--px-small); font-weight: 800; font-size: 10px; line-height: 12px; color: var(--ink); }
.px .cm-cap.in b, .px .cm-cap.in span { animation: cap-txt .22s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes cap-txt { from { transform: translateY(6px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.px .cm-hand.flip { transform: scaleX(-1); animation-name: hand-r; }
@keyframes hand-r { from { translate: 0 0; } to { translate: 4px 0; } }

/* --- the gate: the very first screen, before the title (Screens.gate) --- */
.gate { position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .05) 0 4deg, transparent 4deg 11deg), radial-gradient(ellipse at 50% 50%, #22307e 0%, #121a4e 50%, #070a20 100%); } /* (the same as #boot, style.css) */
.gate .g-glow { position: absolute; left: 50%; top: 52%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 60, .32) 0%, rgba(255, 70, 120, .14) 40%, transparent 70%); animation: g-breathe 3.2s ease-in-out infinite; }
.gate .g-ember { position: absolute; bottom: -10px; border-radius: 50%; background: #ffcf6a; box-shadow: 0 0 6px 2px rgba(255, 140, 40, .7);
  animation-name: g-rise; animation-timing-function: linear; animation-iteration-count: infinite; opacity: 0; }
.gate.go { animation: g-out .56s ease-in forwards; }
@keyframes g-breathe { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes g-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(30px, -105vh); opacity: 0; } }
@keyframes g-out { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
.px.gate-px { pointer-events: none; }
.gate-px .g-row { position: absolute; left: 0; right: 0; top: 140px; display: flex; align-items: center; justify-content: center; gap: 12px; animation: g-in .7s cubic-bezier(.2, 1.5, .4, 1) both; }
.gate-px .g-lead { font-size: 26px; color: var(--bone); letter-spacing: 2px; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--ink); }
.gate-px .g-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: normal; color: #fff;
  background: radial-gradient(circle at 35% 30%, #8cf07a, #2fae3c 55%, #17702a); border: 3px solid var(--ink); box-shadow: 2px 3px 0 var(--ink), 0 0 18px 4px rgba(120, 255, 120, .35);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; animation: g-btn 1.2s ease-in-out infinite; }
.gate-px .g-btn i { position: absolute; left: 7px; top: 5px; width: 12px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-25deg); }
.gate-px .g-line { position: absolute; left: 0; right: 0; top: 190px; text-align: center; font-size: 19px; color: var(--cap); letter-spacing: 1px; white-space: nowrap; }
.gate-px .g-c { display: inline-block; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink);
  animation: g-letter .5s cubic-bezier(.2, 1.6, .4, 1) both, g-wave 2.4s ease-in-out infinite; animation-delay: calc(.35s + var(--i) * 28ms), calc(1.2s + var(--i) * 70ms); }
.gate-px .g-sp { display: inline-block; width: 7px; }
.gate-px .g-sub { position: absolute; left: 0; right: 0; top: 222px; text-align: center; font-family: var(--px-small); font-size: 10px; color: rgba(255, 243, 214, .55); letter-spacing: 1px; animation: g-in .6s 1s both; }
.gate-px .g-ring { position: absolute; left: 50%; top: 159px; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 3px solid #fff; opacity: 0; pointer-events: none; }
.gate-px .g-flash { position: absolute; inset: -400px; background: #fff; opacity: 0; pointer-events: none; }
@keyframes g-in { from { opacity: 0; transform: scale(.6); } }
@keyframes g-letter { from { opacity: 0; transform: translateY(14px) scale(.3); } }
@keyframes g-wave { 50% { transform: translateY(-3px); } }
@keyframes g-btn { 50% { transform: scale(1.1); box-shadow: 2px 3px 0 var(--ink), 0 0 26px 8px rgba(120, 255, 120, .5); } }
/* the press: the button sinks then pops, two shock rings, the words burst away, a flash */
.gate-px.go .g-btn { animation: g-press .5s ease-out forwards; }
.gate-px.go .g-lead, .gate-px.go .g-sub { animation: g-vanish .3s ease-in forwards; }
.gate-px.go .g-c { animation: g-burst .5s cubic-bezier(.3, 0, .8, .6) forwards; animation-delay: calc(var(--i) * 6ms); }
.gate-px.go .g-ring { animation: g-ring .55s ease-out forwards; }
.gate-px.go .g-ring2 { animation-delay: .1s; border-color: var(--cap); }
.gate-px.go .g-flash { animation: g-flash .56s ease-in forwards; }
@keyframes g-press { 0% { transform: scale(1); } 18% { transform: scale(.8); } 45% { transform: scale(1.7); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes g-vanish { to { opacity: 0; transform: scale(1.3); } }
@keyframes g-burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rz)) scale(.4); opacity: 0; } }
@keyframes g-ring { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(12); border-width: 1px; } }
@keyframes g-flash { 0%, 55% { opacity: 0; } 85% { opacity: .9; } 100% { opacity: 1; } }

/* --- the VS screen before every fight, its loading (src/ui/versus.js): transforms and opacity only, so it keeps
   moving even while the page is busy preparing the match behind it --- */
.px.vs2-px { z-index: 60; overflow: visible; }
.vs2-px .vs2-bg { position: absolute; inset: -300px; background: radial-gradient(ellipse at 50% 45%, #2a1440 0%, #120a1a 60%, #07040c 100%); }
.vs2-px .vs2-rays { position: absolute; left: 320px; top: 170px; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 216, 74, .10) 0 6deg, transparent 6deg 18deg); animation: vs2-spin 14s linear infinite; will-change: transform; }
.vs2-px .vs2-panel { position: absolute; top: -30px; bottom: -30px; overflow: hidden; transform: skewX(-8deg); will-change: transform;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--pc) 80%, #fff) 0, var(--pc) 38%, color-mix(in srgb, var(--pc) 30%, #120a1a) 100%);
  border-left: 5px solid #120a1a; border-right: 5px solid #120a1a; animation: vs2-in-l .45s cubic-bezier(.2, 1.4, .4, 1) calc(var(--i) * 70ms) both; }
.vs2-px .vs2-panel.r { animation-name: vs2-in-r; }
.vs2-px .vs2-panel .vs2-tone { position: absolute; inset: 0; background: radial-gradient(circle, rgba(18, 10, 26, .35) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.vs2-px .vs2-panel img { position: absolute; left: 50%; bottom: 58px; width: 250px; height: 250px; margin-left: -125px; transform: skewX(8deg);
  filter: drop-shadow(3px 0 0 #120a1a) drop-shadow(-3px 0 0 #120a1a) drop-shadow(0 -3px 0 #120a1a) drop-shadow(8px 6px 0 rgba(10, 5, 18, .5));
  animation: vs2-pop .5s cubic-bezier(.2, 1.6, .4, 1) calc(.15s + var(--i) * 70ms) both; }
.vs2-px .vs2-panel.r img { transform: skewX(8deg) scaleX(-1); }
.vs2-px .vs2-panel b { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; transform: skewX(8deg) rotate(-3deg); font-weight: normal; font-size: 36px; line-height: 40px;
  color: #fff3d6; letter-spacing: 1.5px; white-space: nowrap; -webkit-text-stroke: 6px #120a1a; paint-order: stroke fill; text-shadow: 4px 4px 0 #120a1a;
  animation: vs2-name .45s cubic-bezier(.2, 1.9, .4, 1) calc(.7s + var(--i) * 90ms) both; }
.vs2-px .vs2-panel b em { display: inline-block; font-style: normal; }
.vs2-px .vs2-panel small { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%) skewX(8deg); padding: 0 6px; background: #120a1a; color: #ffd84a;
  font-family: var(--px-small); font-weight: 800; font-size: 9px; line-height: 14px; letter-spacing: 1px; white-space: nowrap; animation: vs2-fade .3s calc(1s + var(--i) * 90ms) both; }
.vs2-px .vs2-bolt { position: absolute; left: 280px; top: -20px; width: 80px; height: 400px; background: #fff3d6; filter: drop-shadow(0 0 8px #fff);
  clip-path: polygon(52% 0, 60% 0, 46% 42%, 62% 42%, 40% 100%, 50% 56%, 34% 56%); opacity: 0; animation: vs2-bolt .5s .45s both; }
.px.vs2-px.n3 .vs2-bolt, .px.vs2-px.n4 .vs2-bolt { display: none; }
.vs2-px .vs2-vs { position: absolute; left: 320px; top: 168px; width: 0; height: 0; animation: vs2-slam .5s cubic-bezier(.3, 1.8, .4, 1) .45s both; will-change: transform; }
.vs2-px .vs2-vs b { position: absolute; left: -90px; top: -60px; width: 180px; height: 120px; display: flex; align-items: center; justify-content: center; font-weight: normal; font-size: 104px;
  color: #ffd84a; letter-spacing: -4px; -webkit-text-stroke: 9px #120a1a; paint-order: stroke fill; text-shadow: 6px 6px 0 #120a1a, 0 0 30px rgba(255, 216, 74, .6);
  transform: rotate(-8deg); animation: vs2-throb 1s ease-in-out 1s infinite; }
.vs2-px .vs2-round { position: absolute; left: 0; right: 0; top: 36px; text-align: center; font-size: 22px; color: #ffd84a; letter-spacing: 2px; -webkit-text-stroke: 4px #120a1a; paint-order: stroke fill;
  text-shadow: 3px 3px 0 #120a1a; animation: vs2-fade .4s .3s both; }
.vs2-px .vs2-stage { position: absolute; left: 50%; top: 10px; transform: translateX(-50%) rotate(-1deg); padding: 2px 12px; background: #ffd84a; border: 3px solid #120a1a; box-shadow: 3px 3px 0 #120a1a;
  font-family: var(--px-small); font-weight: 800; font-size: 11px; color: #120a1a; letter-spacing: 1px; white-space: nowrap; animation: vs2-fade .3s 1.2s both; }
.vs2-px .vs2-stage b { font-family: var(--px-font); font-weight: normal; font-size: 14px; letter-spacing: 1px; }
.vs2-px .vs2-load { position: absolute; left: 50%; bottom: 6px; width: 180px; margin-left: -90px; text-align: center; animation: vs2-fade .3s 1.3s both; }
.vs2-px .vs2-load i { display: block; height: 3px; background: rgba(255, 243, 214, .2); border-radius: 2px; overflow: hidden; position: relative; }
.vs2-px .vs2-load i::after { content: ''; position: absolute; inset: 0; background: #ffd84a; transform-origin: 0 50%; animation: vs2-bar 3s linear both; }
.vs2-px .vs2-load span { display: block; margin-top: 2px; font-family: var(--px-small); font-size: 8px; color: rgba(255, 243, 214, .6); letter-spacing: 1px; }
.px.vs2-px.shake { animation: vs2-shake .35s ease-in-out; }
/* the exit: the panels fly apart, the VS bursts, everything fades on a flash */
.px.vs2-px.out .vs2-panel { animation: vs2-out-l .5s cubic-bezier(.6, 0, .9, .4) forwards; }
.px.vs2-px.out .vs2-panel.r { animation-name: vs2-out-r; }
.px.vs2-px.out .vs2-vs { animation: vs2-boom .45s ease-in forwards; }
.px.vs2-px.out .vs2-bg, .px.vs2-px.out .vs2-rays, .px.vs2-px.out .vs2-stage, .px.vs2-px.out .vs2-load, .px.vs2-px.out .vs2-round, .px.vs2-px.out .vs2-bolt { animation: vs2-gone .4s ease-in forwards; }
@keyframes vs2-spin { to { transform: rotate(360deg); } }
@keyframes vs2-in-l { from { transform: translateX(-700px) skewX(-8deg); } }
@keyframes vs2-in-r { from { transform: translateX(700px) skewX(-8deg); } }
@keyframes vs2-pop { from { opacity: 0; transform: skewX(8deg) translateY(60px) scale(.6); } }
.vs2-px .vs2-panel.r img { animation-name: vs2-pop-r; }
@keyframes vs2-pop-r { from { opacity: 0; transform: skewX(8deg) scaleX(-1) translateY(60px) scale(.6); } }
@keyframes vs2-name { from { opacity: 0; transform: skewX(8deg) rotate(-3deg) scale(2.2); } }
@keyframes vs2-fade { from { opacity: 0; } }
@keyframes vs2-bolt { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: .9; } }
@keyframes vs2-slam { from { opacity: 0; transform: scale(4) rotate(20deg); } }
@keyframes vs2-throb { 50% { transform: rotate(-8deg) scale(1.08); } }
@keyframes vs2-bar { from { transform: scaleX(0); } }
@keyframes vs2-shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -3px 2px; } 80% { translate: 2px -1px; } }
@keyframes vs2-out-l { to { transform: translateX(-800px) skewX(-8deg); } }
@keyframes vs2-out-r { to { transform: translateX(800px) skewX(-8deg); } }
@keyframes vs2-boom { to { transform: scale(3.5); opacity: 0; } }
@keyframes vs2-gone { to { opacity: 0; } }

/* ---------- l'écran titre en 3D (src/ui/titleBrawl.js) : bulles d'insultes au-dessus des bagarreurs dans l'octogone ---------- */
.tb-veil { position: fixed; inset: 0; background: #05030a; opacity: 0; pointer-events: none; transition: opacity .35s; }
.px.tb-ui { pointer-events: none; }
/* derrière un menu : des bulles plus étroites, qui tiennent dans les marges à gauche et à droite des panneaux */
.px.tb-ui.narrow .tb-bub span { max-width: 124px; font-size: 9px; line-height: 10px; padding: 3px 7px 4px; }
.px .tb-bub { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .15s; z-index: 2; --off: -50px; --tail: 50px; }
.px .tb-bub.on { opacity: 1; }
/* la bulle : --off = son bord gauche par rapport à la tête, --tail = où tombe la pointe dans la bulle (calculés par titleBrawl.js) */
.px .tb-bub span { position: absolute; bottom: 10px; left: var(--off); width: max-content; max-width: 150px; padding: 4px 9px 5px; transform-origin: var(--tail) 100%;
  background: #fffdf4; border: 2px solid var(--ink); border-radius: 50% / 46%; box-shadow: 3px 3px 0 var(--ink); text-align: center;
  font-family: var(--px-small); font-weight: 900; font-style: italic; font-size: 10px; line-height: 11px; text-transform: uppercase; color: var(--ink); }
.px .tb-bub span::after { content: ''; position: absolute; left: var(--tail); bottom: -9px; margin-left: -4px; border: 5px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }
.px .tb-bub span::before { content: ''; position: absolute; left: var(--tail); bottom: -5px; margin-left: -2px; border: 3px solid transparent; border-top: 6px solid #fffdf4; border-bottom: 0; z-index: 1; }
.px .tb-bub b { display: block; margin: -1px 0 1px; font-family: var(--px-font); font-weight: normal; font-style: normal; font-size: 10px; line-height: 11px; letter-spacing: .5px;
  -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; }
.px .tb-bub em { font-style: inherit; }
/* les potes (ils chauffent, puis ils calment) : un cartouche jaune, carré */
.px .tb-bub.hype span { background: var(--cap); border-radius: 3px; font-style: normal; }
.px .tb-bub.hype span::before { border-top-color: var(--cap); }
.px .tb-bub.pop span { animation: tb-pop .3s cubic-bezier(.2, 1.9, .4, 1); }
.px .tb-bub.pop.shout em { display: inline-block; animation: tb-shake .12s linear .3s 4; }
@keyframes tb-pop { 0% { transform: scale(.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes tb-shake { 25% { translate: -1px 1px; } 75% { translate: 1px -1px; } }
.px .tb-vein, .px .tb-steam { position: absolute; font-style: normal; font-size: 16px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%); }
.px .tb-vein { animation: tb-vein 1s ease-out forwards; }
.px .tb-steam { font-size: 13px; animation: tb-steam 1s ease-out forwards; }
@keyframes tb-vein { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 20% { transform: translate(-50%, -60%) scale(1.3); opacity: 1; } 35% { transform: translate(-50%, -60%) scale(.9); }
  50% { transform: translate(-50%, -60%) scale(1.15); } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1); opacity: 0; } }
@keyframes tb-steam { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 25% { opacity: .9; } 100% { transform: translate(-50%, -260%) scale(1.4); opacity: 0; } }
