/* tangibles.fun's battle screen, as its stylesheet draws it (read 2026-10-20 from the live site; owner's call:
   identical in function and look). Every selector is scoped under #mpHud; the class names are tangibles' own
   (.bt, .bt-plate, .bt-hand, .bt-moves, .bt-order, .bt-title, .bt-win ...). Its colours and fonts live on .bt. */
#mpHud .bt, #mpHud .bt-word {
  --vh: 1vh; --paper: #f3edd3; --paper-2: #eae2c4; --paper-3: #ddd2ad; --paper-hi: #fbf7e6; --navy: #2b3f5c; --navy-d: #1f3048; --navy-l: #4a6489; --charcoal: #2a2a2e;
  --accent: #e6dc3a; --accent-d: #b8ad1f; --brass: #c9a13b; --brass-d: #8c6a1e; --seal: #d9473f; --rose: #e0568a; --hp: #3fc07a; --exp: #46b9d6;
  --cream-ink: #f3edd3; --cream-85: #f3edd3d9; --cream-40: #f3edd366; --chip-bg: #1e1e22b3; --card-ink: #1e1e22b8; --strip-bg: #1e1e229e;
  --reticle: var(--cream-85); --hit-shadow: 0 2px 6px #0000008c; --kbd-rim: #2b3f5c59; --text: #f3edd3; --muted: #f3edd3a3; --line: #f3edd329;
  --glass: #1e1e23a8; --gold: #e8c766; --green: #62d395; --green-d: #3fc07a; --red: #f07a6f; --blue: #74cde4; --pink: #f283ab; --violet: #b8a3f2;
  --btn-bg: #f3edd31f; --btn-hi: #f3edd333; --btn-fg: var(--text); --pri-bg: #f3edd3; --pri-fg: #2b3f5c; --kbd-bg: #f5f1e1; --kbd-fg: #2b3f5c;
  --bar-track: #0a0c1273; --up: var(--green); --down: var(--red); --r: 6px; --r-sm: 4px; --fast: 0.1s cubic-bezier(0.2, 0.8, 0.3, 1); --slow: 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
  --body: "Lato", "Fira Sans", "Segoe UI", system-ui, sans-serif; --display: "Playfair", "Fira Sans", serif; --mono: "Lato", "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Kaushan Script", "Fira Sans", cursive;
  font-family: var(--body); font-size: 15px; line-height: 1.35;
}
#mpHud .bt { pointer-events: none; }
#mpHud .bt .bt-menu, #mpHud .bt .bt-order-head, #mpHud .bt .bt-text, #mpHud .bt .bt-win, #mpHud .bt button { pointer-events: auto; }
#mpHud .bt kbd { box-sizing: border-box; letter-spacing: 0; text-transform: none; vertical-align: middle; white-space: nowrap; opacity: 1; border-radius: 9px; flex: none; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; font-style: normal; display: inline-grid; box-shadow: 0 1px 2px #00000047; color: #2b3f5c !important; border: 1px solid var(--kbd-rim) !important; font-family: var(--body) !important; background: #f5f1e1 !important; font-size: 11px !important; font-weight: 700 !important; line-height: 1 !important; }
#mpHud .bt .num { font-family: var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; }
#mpHud .bt .keys { flex-wrap: wrap; align-items: center; gap: 6px 16px; display: flex; }
#mpHud .bt .keys > span { align-items: center; gap: 6px; display: inline-flex; font-size: 13px; color: var(--cream-ink); }
#mpHud .bt .tag-chevron { --cut: 10px; --tc-bg: var(--chip-bg); --tc-fg: var(--cream-ink); min-height: 24px; padding: 3px calc(var(--cut) + 8px); background: var(--tc-bg); color: var(--tc-fg); font-family: var(--body); white-space: nowrap; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%); border: none; border-radius: 0; justify-content: center; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.1; display: inline-flex; }
#mpHud .bt .tag-chevron.danger { --tc-bg: var(--seal); --tc-fg: var(--cream-ink); }
#mpHud .bt .btn-primary { all: unset; box-sizing: border-box; cursor: pointer; --cut: 12px; background: #e6dc3a; height: 40px; min-height: 40px; color: #1f3048; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); border-radius: 0; padding: 0 26px; font: 600 15px/1.2 var(--display); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
#mpHud .bt .btn-primary:hover { background: #ece35a; }
#mpHud .bt .btn-primary.dim { opacity: 0.5; }
#mpHud .bt .bar { --bar: var(--brass); background: var(--bar-track); border-radius: 2px; height: 8px; overflow: hidden; position: relative; }
#mpHud .bt .bar i { background: linear-gradient(180deg, color-mix(in srgb, var(--bar) 80%, #fff), var(--bar) 55%); border-radius: 2px; height: 100%; transition: width 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); display: block; }
#mpHud .bt .bar.exp { --bar: var(--exp); }
#mpHud .bt .ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.1em; fill: currentColor; }
body.in-battle #mpHud :is(.mp-dock, .mp-mapbox, .mp-compass, .mp-sidebtn, .mp-throw, .mp-money, .field-cross, .field-lock, .field-hint, .field-balls, .mp-tags, .enc, .ring-wrap) { display: none !important; }

#mpHud .bt{--bt-bar-h:0px;--bt-you:color-mix(in srgb, color-mix(in srgb, var(--navy) 40%, var(--exp)) 85%, #fff);--bt-you-d:color-mix(in srgb, var(--navy-d) 70%, var(--exp));--bt-foe:color-mix(in srgb, color-mix(in srgb, var(--seal) 64%, var(--paper)) 85%, #fff);--bt-ink:#16171cc7;--bt-row:linear-gradient(90deg, #14181cbd, #14181c80);--bt-sel:linear-gradient(90deg, #fffbea, #f3ebc8 70%, #ebe1b8);--bt-strong:color-mix(in srgb, var(--seal) 58%, var(--brass));--bt-agile:color-mix(in srgb, var(--exp) 88%, #fff);--bt-lb:#0a0b0fdb;z-index:21;color:var(--cream-ink);display:none;position:absolute;inset:0;overflow:hidden}
#mpHud>.bt{pointer-events:none}
#mpHud .bt.on{display:block}
#mpHud :where(.bt) button:not(.btn,#mpHud .btn-primary){font:inherit;color:inherit;background:0 0;border:none;margin:0;padding:0}
body.in-battle :is(.hud-tl,#mpHud .hud-tr,#mpHud .hud-tc,#mpHud .hud-dock,#mpHud .hud-bl,#mpHud .waypoint,#mpHud .prompt,#mpHud .field-balls,#mpHud .field-berries,#mpHud .field-hint,#mpHud .field-cross,#mpHud .field-lock,#mpHud .tbtn,#mpHud .stick-zone){display:none!important}
/* reference section 1 / 2 'Chat' / Part 2 E: the world chat box stays bottom left through the battle, its lines faded,
   sitting above the 440 px fighter card (x 22..462, y 862..952 at 1868 x 992) */
body.in-battle #mpHud .mp-chat{bottom:160px;left:22px;width:400px;max-width:calc(100vw - 44px);pointer-events:auto}
body.in-battle #mpHud .mp-chat:not(.is-open) .mp-line:not(.is-old){opacity:.7}
body.in-battle .chat-emotes{display:none}
#mpHud .bt-bar{height:var(--bt-bar-h);background:var(--bt-lb);transition:transform .2s ease-out,height .3s cubic-bezier(.2,.9,.3,1);position:absolute;left:0;right:0}
#mpHud .bt-bar.top{top:0;transform:translateY(-101%);box-shadow:0 1px #f3edd30f}
#mpHud .bt-bar.bot{bottom:0;transform:translateY(101%);box-shadow:0 -1px #f3edd30f}
#mpHud .bt.lb .bt-bar{transform:none}
@media (pointer:fine){#mpHud .bt-bar{-webkit-backdrop-filter:brightness(.55)saturate(.8);backdrop-filter:brightness(.55)saturate(.8)}
}
#mpHud .bt-foe-top{color:var(--cream-ink);white-space:nowrap;text-shadow:0 1px 2px #000000b3;opacity:0;align-items:center;gap:8px;font-size:13px;font-style:normal;line-height:1;transition:opacity .15s;display:flex;position:absolute;bottom:10px;left:50%;translate:-50%}
#mpHud .bt-foe-top .bt-lv{--cut:7px;height:18px;font-size:11.5px}
#mpHud .bt-foe-top b{font-size:14px;font-weight:500}
#mpHud .bt-foe-top .bt-hp{width:90px;height:5px}
#mpHud .bt-foe-top .bt-hp[data-l]{animation:none}
#mpHud .bt.plates:not(.intro,#mpHud .ending,#mpHud .cutin):has(>.bt-foe.off):not(:has(>.bt-stamp.go:not(.at-row))) .bt-foe-top{opacity:1}
#mpHud .bt-title{opacity:0;place-items:center;display:grid;position:absolute;top:38%;left:50%;translate:-50% -50%}
#mpHud .bt-title>*{grid-area:1/1}
#mpHud .bt-title-word{--bt-outline:drop-shadow(0 0 1px #15100a) drop-shadow(2px 3px 0 #14100a8c) drop-shadow(0 0 16px #140f0a80);font-family:var(--font-display);white-space:nowrap;color:#f6efd6;letter-spacing:.02em;text-transform:uppercase;paint-order:stroke fill;-webkit-text-stroke:6px #f6efd6;filter:var(--bt-outline);padding:0 .15em;font-size:clamp(88px,9.4vw,162px);font-weight:400;line-height:1;position:relative;transform:skew(8deg)}
#mpHud .bt.rough .bt-title-word{filter:url(#bt-rough) var(--bt-outline)}
#mpHud .bt-title-ink{background:#0006;width:760px;height:min(150px,22vh);transform:rotate(-3deg)skew(-8deg);-webkit-mask-image:radial-gradient(closest-side,#000 60%,#0000);mask-image:radial-gradient(closest-side,#000 60%,#0000)}
#mpHud .bt-title-ball{opacity:.3;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23fbf8ef' stroke-width='2.4'><path d='M50 3L97 50L50 97L3 50Z'/><path d='M50 11L89 50L50 89L11 50Z' stroke-width='1'/><circle cx='50' cy='50' r='26'/><path d='M24 50h17M59 50h17'/><circle cx='50' cy='50' r='8.5'/><circle cx='50' cy='50' r='3.5' fill='%23fbf8ef'/></svg>") 50%/contain no-repeat;width:230px;height:230px}
#mpHud .bt-title.in{animation:.2s ease-out forwards bt-title-in}
#mpHud .bt-title.in .bt-title-ink{animation:.34s cubic-bezier(.3,.8,.3,1) 40ms both bt-wipe}
#mpHud .bt-title.in .bt-title-ball{animation:.2s ease-out both bt-ball}
#mpHud .bt-title.out{animation:.35s ease-in forwards bt-title-out}
#mpHud .bt-title.k-victory{place-items:end;inset:auto 5vw calc(70% + 10px) auto;translate:none}
#mpHud .bt-title.k-victory .bt-title-word{transform-origin:100% 100%;--bt-outline:drop-shadow(1px 0 0 #15100a) drop-shadow(-1px 0 0 #15100a) drop-shadow(0 1px 0 #15100a) drop-shadow(0 -1px 0 #15100a) drop-shadow(1px 1px 0 #15100a) drop-shadow(-1px -1px 0 #15100a) drop-shadow(2px 3px 0 #14100a80);margin-right:.08em;padding:0;font-size:96px}
#mpHud .bt-title.k-victory .bt-title-ink{background:#14151b8c;width:560px;height:120px}
#mpHud .bt-title.k-victory .bt-title-ball{display:none}
#mpHud .bt-title.k-defeat{top:42%}
#mpHud .bt-title.k-defeat .bt-title-word{color:var(--cream-85);font-size:88px}
#mpHud .bt-title.k-defeat .bt-title-ink{background:#3c181880;width:620px;height:120px}
#mpHud .bt-title.k-victory.out,#mpHud .bt-title.k-defeat.out{animation-duration:.5s}
@keyframes bt-title-in{0%{opacity:0}
to{opacity:1}
}
@keyframes bt-title-out{to{opacity:0;transform:translateY(-10px)}
}
@keyframes bt-wipe{0%{clip-path:inset(0 100% 0 0)}
to{clip-path:inset(0)}
}
@keyframes bt-ball{0%{opacity:0;transform:scale(1.3)}
to{transform:scale(1)}
}
#mpHud .bt-vig{display:none}
@keyframes bt-word-in{0%{opacity:0;transform:scale(1.25)rotate(-2deg)skew(8deg)}
to{opacity:1;transform:skew(8deg)}
}
#mpHud .bt-plate{opacity:0;transition:opacity .35s;position:absolute}
#mpHud .bt.plates .bt-plate{opacity:1}
#mpHud .bt.plates .bt-foe.off{opacity:0;visibility:hidden;transition:opacity .15s,visibility 0s .15s}
#mpHud .bt.plates.intro .bt-foe,#mpHud .bt.plates.ending .bt-foe{opacity:0}
#mpHud .bt-plate-body{text-align:center;justify-items:center;gap:3px;display:grid;position:relative}
#mpHud .bt-plate-top{align-items:center;gap:6px;display:flex}
#mpHud .bt-name-row{justify-content:center;align-items:center;gap:6px;display:inline-flex}
#mpHud .bt-name-type:empty{display:none}
#mpHud .bt-name-type{display:inline-flex}
#mpHud .bt-tdot{background:radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--tc) 55%, #fff), var(--tc) 60%);border-radius:50%;flex:none;width:14px;height:14px;box-shadow:0 0 0 1px #fff,0 1px 3px #0000008c}
#mpHud .bt-name{font-family:var(--body);color:var(--cream-ink);white-space:nowrap;text-shadow:0 1px 2px #000000b3,0 0 10px #00000059;font-size:17px;font-weight:500;line-height:1.15}
#mpHud .bt-lv{--cut:9px;isolation:isolate;height:22px;padding:0 calc(var(--cut) + 8px);font:500 13.5px/1 var(--body);color:var(--cream-ink);white-space:nowrap;clip-path:polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);background:#f3edd3b3;align-items:center;display:inline-flex;position:relative}
#mpHud .bt-lv:before{content:"";z-index:-1;clip-path:polygon(calc(var(--cut) - .6px) 0, calc(100% - var(--cut) + .6px) 0, 100% 50%, calc(100% - var(--cut) + .6px) 100%, calc(var(--cut) - .6px) 100%, 0 50%);background:#16171cdb;position:absolute;inset:1.5px}
#mpHud .bt-hp{--hpc:var(--hp);background:#080a0e9e;border-radius:4px;width:168px;height:8px;position:relative;overflow:hidden;box-shadow:0 0 0 1px #f3edd338,0 1px 3px #0006}
#mpHud .bt-hp[data-l=mid]{--hpc:#e8c43a}
#mpHud .bt-hp:is([data-l=low],#mpHud [data-l=out]){--hpc:#e2503f}
#mpHud .bt-hp[data-l=low]{animation:.7s ease-in-out infinite alternate bt-hp-low}
@keyframes bt-hp-low{to{box-shadow:0 0 0 1px #ff9682d9,0 0 10px #e2503fbf}
}
#mpHud .bt-hp>i{border-radius:4px;position:absolute;top:0;bottom:0;left:0}
#mpHud .bt-hp>.fill{background:linear-gradient(180deg, color-mix(in srgb, var(--hpc) 70%, #fff), var(--hpc) 55%, color-mix(in srgb, var(--hpc) 82%, #000));transition:background-color .3s}
#mpHud .bt-hp>.lag{background:#fffffff2;transition:width .45s cubic-bezier(.3,.7,.3,1) .15s}
#mpHud .bt-hp.heal>.lag{background:color-mix(in srgb, var(--hp) 55%, #fff);transition:none}
#mpHud .bt-hp.hurt{animation:.32s bt-hp-hit}
@keyframes bt-hp-hit{30%{box-shadow:0 0 0 1px #fff0d2e6,0 0 12px #ff785a99}
}
#mpHud .bt-hpnum{letter-spacing:.02em;color:var(--cream-ink);text-shadow:0 1px 2px #000000b3;font-size:17px;font-weight:500;line-height:1.1}
#mpHud .bt-chips{gap:4px;display:inline-flex}
#mpHud .bt-chips:empty{display:none}
#mpHud .bt-st{background:var(--sc);color:#1b2030;height:18px;font:700 11px/1 var(--body);letter-spacing:.06em;border-radius:2px;place-items:center;padding:0 6px;display:inline-grid;box-shadow:0 1px 2px #0006}
#mpHud .bt-boost{background:var(--chip-bg);height:18px;font:600 11px/1 var(--body);letter-spacing:.04em;border-radius:2px;align-items:center;gap:2px;padding:0 5px;display:inline-flex}
#mpHud .bt-boost>i{border:5px solid #0000;width:0;height:0}
#mpHud .bt-boost.up>i{border-bottom:7px solid var(--green);margin-top:-6px}
#mpHud .bt-boost.down>i{border-top:7px solid var(--red);margin-bottom:-6px}
#mpHud .bt-me{z-index:1;transform-origin:0 100%;width:280px;height:200px;bottom:12px;left:12px;scale:1.15}
#mpHud .bt-me .bt-hpnum{font-size:18px}
#mpHud .bt-me .bt-lv{font-size:14px}
#mpHud .bt-fan{background:repeating-conic-gradient(from 8deg at 50% 50%, #ffffff0d 0 1.2deg, transparent 1.2deg 4.4deg, #0000000f 4.4deg 5.6deg, transparent 5.6deg 9deg), radial-gradient(circle at 50% 50%, var(--bt-you-d) 0 46%, var(--bt-you) 66%, color-mix(in srgb, var(--bt-you) 72%, #fff) 80%, var(--bt-you) 90%);opacity:.95;transform-origin:50%;border-radius:50%;width:300px;height:300px;position:absolute;bottom:-158px;left:-38px;-webkit-mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='b' x='-20%' y='-20%' width='140%' height='140%'><feTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' seed='11'/><feDisplacementMap in='SourceGraphic' scale='9' xChannelSelector='R' yChannelSelector='G'/></filter><g filter='url(%23b)'><circle cx='100' cy='100' r='83'/><g fill='none' stroke='%23000' stroke-linecap='round'><path d='M17 112A84 84 0 0 1 112 17' stroke-width='5' stroke-dasharray='26 5 40 7 16 4 50'/><path d='M12 96A89 89 0 0 1 70 15' stroke-width='3' stroke-dasharray='14 6 22 9 30'/><path d='M6 120A95 95 0 0 1 40 30' stroke-width='2' stroke-dasharray='8 10 20 12'/><path d='M120 17A84 84 0 0 1 183 100' stroke-width='3' stroke-dasharray='30 8 24 12'/></g></g></svg>") 50%/100% 100% no-repeat;mask:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='b' x='-20%' y='-20%' width='140%' height='140%'><feTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' seed='11'/><feDisplacementMap in='SourceGraphic' scale='9' xChannelSelector='R' yChannelSelector='G'/></filter><g filter='url(%23b)'><circle cx='100' cy='100' r='83'/><g fill='none' stroke='%23000' stroke-linecap='round'><path d='M17 112A84 84 0 0 1 112 17' stroke-width='5' stroke-dasharray='26 5 40 7 16 4 50'/><path d='M12 96A89 89 0 0 1 70 15' stroke-width='3' stroke-dasharray='14 6 22 9 30'/><path d='M6 120A95 95 0 0 1 40 30' stroke-width='2' stroke-dasharray='8 10 20 12'/><path d='M120 17A84 84 0 0 1 183 100' stroke-width='3' stroke-dasharray='30 8 24 12'/></g></g></svg>") 50%/100% 100% no-repeat}
#mpHud .bt.plates .bt-fan{animation:.5s cubic-bezier(.2,.9,.3,1) both bt-fan}
@keyframes bt-fan{0%{opacity:0;transform:scale(.5)rotate(-30deg)}
}
#mpHud .bt-me .bt-plate-body{gap:2px;width:196px;position:absolute;bottom:26px;left:14px}
#mpHud .bt-me .bt-plate-top{margin-bottom:2px}
#mpHud .bt-me .bt-hp{width:152px;height:9px;margin-top:2px}
#mpHud .bt-pips{gap:4px;margin-top:3px;display:flex}
#mpHud .bt-pip{background:linear-gradient(#e8443a 0 44%,#1c222b 44% 56%,#f6f3ec 56%);border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 1px #14141ad9,0 1px 2px #0006}
#mpHud .bt-pip.free{opacity:.45;filter:grayscale()brightness(1.15)}
#mpHud .bt-me :is(.bt-name,#mpHud .bt-name-type,#mpHud .bt-hpnum,#mpHud .bt-lv),#mpHud .bt-me .bt-fan{transition:filter .3s,opacity .3s}
#mpHud .bt-me.fainted :is(.bt-name,#mpHud .bt-name-type,#mpHud .bt-hpnum,#mpHud .bt-lv){filter:grayscale();opacity:.7}
#mpHud .bt-me.fainted .bt-fan{filter:grayscale()brightness(.8)}
#mpHud .bt-me.fainted .bt-hp{background:#5a1d1d}
#mpHud .bt-faint{font:400 28px/1 var(--font-display);color:#fbf7e6;white-space:nowrap;clip-path:polygon(6px 0,100% 0,calc(100% - 6px) 100%,0 100%);text-shadow:0 1px 1px #0006;background:#962622eb;padding:1px 12px 3px;font-style:normal;display:none;position:absolute;bottom:58px;left:112px;transform:rotate(-8deg);box-shadow:0 2px 6px #00000059}
#mpHud .bt-me.fainted .bt-faint{animation:.16s cubic-bezier(.2,.9,.4,1) .85s both bt-faint-in;display:block}
@keyframes bt-faint-in{0%{opacity:0;transform:rotate(-8deg)scale(1.5)}
}
#mpHud .bt-timer{flex:none;place-items:center;width:28px;height:28px;display:none;position:relative}
#mpHud .bt-timer.on{display:inline-grid}
#mpHud .bt-timer>*{grid-area:1/1}
#mpHud .bt-ring{--k:1;background:conic-gradient(var(--accent) calc(var(--k) * 360deg), #f3edd338 0);filter:drop-shadow(0 1px 2px #00000080);border-radius:50%;flex:none;width:28px;height:28px;position:relative;-webkit-mask:radial-gradient(circle,#0000 0 66%,#000 70%);mask:radial-gradient(circle,#0000 0 66%,#000 70%)}
#mpHud .bt-timer:before{content:"";background:#0e0f1499;border-radius:50%;grid-area:1/1;width:22px;height:22px}
#mpHud .bt-timer b{font:700 12px/1 var(--body);color:var(--cream-ink);text-shadow:none;position:relative}
#mpHud .bt-timer.hot b{color:#ff8a7a}
#mpHud .bt-timer.hot{animation:.5s ease-in-out infinite alternate bt-pulse}
#mpHud .bt-timer.hot .bt-ring{background:conic-gradient(var(--seal) calc(var(--k) * 360deg), #f3edd329 0)}
@keyframes bt-pulse{to{transform:scale(1.1)}
}
#mpHud .bt-foe{will-change:transform;justify-items:center;gap:2px;padding:0 24px 14px;transition:opacity .2s,visibility;display:grid;top:0;left:0}
#mpHud .bt-foe:before{content:"";z-index:-1;background:radial-gradient(closest-side,#0e0f146b,#0000);border-radius:50%;position:absolute;inset:4px 0 18px}
#mpHud .bt-foe.off,#mpHud .bt:not(.plates) .bt-foe{opacity:0}
#mpHud .bt-foe .bt-hp{border-radius:5px;width:120px;height:10px;box-shadow:0 0 0 1px #0c0d11e6,0 1px 3px #0006}
#mpHud .bt-plate.hit .bt-plate-body{animation:.12s linear bt-foe-hit}
@keyframes bt-foe-hit{25%{translate:3px}
50%{translate:-3px}
75%{translate:3px}
}
#mpHud .bt-foe .bt-lv{height:20px;font-size:12.5px}
#mpHud .bt-foe .bt-name{font-size:16px}
#mpHud .bt-chev{filter:drop-shadow(0 1px 1.5px #000000a6);width:26px;height:18px;margin-left:-13px;animation:1s ease-in-out infinite alternate bt-chev;position:absolute;bottom:0;left:50%}
#mpHud .bt-chev:before,#mpHud .bt-chev:after{content:"";position:absolute;inset:0}
#mpHud .bt-chev:before{clip-path:polygon(0 0,13px 9px,26px 0,26px 9px,13px 18px,0 9px);background:#f6f1de}
#mpHud .bt-chev:after{clip-path:polygon(2px 3.8px,13px 11.4px,24px 3.8px,24px 8px,13px 15.6px,2px 8px);background:#14141af0}
@keyframes bt-chev{to{transform:translateY(3px)}
}
#mpHud .bt-foe-tag{margin-bottom:1px;display:none}
#mpHud .bt-foe.tagged .bt-foe-tag{display:block}
#mpHud .bt-foe-tag .tag-chevron{letter-spacing:.05em;text-transform:uppercase;min-height:20px;font-size:11.5px;font-weight:600}
#mpHud .bt:not(.choosing) .bt-chev{display:none}
#mpHud :is(.bt:not(.choosing),#mpHud .bt.picking-moves) .bt-foe-tag{display:none!important}
#mpHud .bt-foe-ic{display:none}
#mpHud :is(.bt:not(.choosing),#mpHud .bt.picking-moves) .bt-foe.tagged .bt-foe-ic{display:inline-flex}
#mpHud .bt-foe-ic .tag-chevron{letter-spacing:0;clip-path:none;border-radius:3px;place-items:center;gap:0;width:18px;height:18px;min-height:18px;padding:0;font-size:0;display:inline-grid;overflow:hidden}
#mpHud .bt-foe-ic .tag-chevron .ic{margin:0;font-size:12px}
#mpHud :is(.bt:not(.choosing),#mpHud .bt.picking-moves) .bt-meter{display:none!important}
#mpHud .bt.plates.faint .bt-foe:not(.off){opacity:.4}
#mpHud .bt-meter{color:var(--cream-85);background:#0e0f14b3;border-radius:2px;align-items:baseline;gap:6px;margin-top:3px;padding:2px 8px;font-size:13px;display:none}
#mpHud .bt[data-mode=slab] .bt-meter{display:inline-flex}
#mpHud .bt-meter b{color:var(--accent);font-size:13px}
#mpHud .bt-order{right:0;top:calc(var(--bt-bar-h) + 10px);opacity:0;isolation:isolate;justify-items:end;gap:3px;width:340px;padding-right:16px;transition:opacity .2s,translate .2s;display:grid;position:absolute}
#mpHud .bt-order:before{content:"";z-index:-1;pointer-events:none;background:linear-gradient(270deg,#0a0e1873,#0000 80%);width:340px;position:absolute;top:-10px;bottom:-10px;right:0}
#mpHud .bt.plates .bt-order{opacity:1}
#mpHud .bt.plates:not(.choosing) .bt-order{opacity:0;translate:24px}
#mpHud .bt.ending .bt-order{opacity:0}
#mpHud .bt-order-head{white-space:nowrap;color:var(--cream-ink);text-shadow:0 1px 2px #000000bf;border-radius:4px;align-items:center;gap:8px;padding:0 2px 3px 0;font-size:16px;display:flex}
#mpHud .bt-order-head b{text-shadow:0 1px 3px #000000e6,0 0 8px #0006;font-weight:500}
#mpHud .bt-order-head .ic{opacity:.85;font-size:17px}
#mpHud .bt-order-head kbd{cursor:pointer}
#mpHud .bt:not(:has(.v-root)) .bt-order-head kbd{display:none}
#mpHud .bt:has(.v-root) .bt-order-head{pointer-events:auto;cursor:pointer}
#mpHud .bt-order-ic{width:16px;height:13px;color:var(--cream-ink);filter:drop-shadow(0 1px 1.5px #000c);background:linear-gradient(currentColor,currentColor) 0 0/3px 3px no-repeat,linear-gradient(currentColor,currentColor) 5px 0/11px 3px no-repeat,linear-gradient(currentColor,currentColor) 0 5px/3px 3px no-repeat,linear-gradient(currentColor,currentColor) 5px 5px/11px 3px no-repeat,linear-gradient(currentColor,currentColor) 0 10px/3px 3px no-repeat,linear-gradient(currentColor,currentColor) 5px 10px/11px 3px no-repeat;flex:none;display:none}
@media (orientation:landscape),(width>=761px){#mpHud .bt:has(.v-root) .bt-order:not(.open) .bt-order-ic{display:block}
#mpHud .bt:has(.v-root) .bt-order:not(.open) .bt-order-head:not(:hover)>b{display:none}
}
#mpHud .bt[data-mode=pvp] .bt-order-head{text-shadow:none;background:#141828bf;padding:6px 10px}
body.touch .bt-order-head kbd{display:none}
#mpHud .bt-order-tag{background:var(--chip-bg);letter-spacing:.04em;color:var(--accent);text-shadow:none;border-radius:2px;order:-1;padding:2px 8px;font-size:13px;font-weight:600}
#mpHud .bt-order-tag:empty{display:none}
#mpHud .bt-wait{right:16px;top:calc(var(--bt-bar-h) + 12px);background:var(--bt-ink);color:var(--cream-ink);white-space:nowrap;text-shadow:0 1px 2px #000000bf;opacity:0;border-radius:4px;align-items:center;gap:8px;padding:3px 10px 3px 4px;font-size:14px;transition:opacity .2s;display:none;position:absolute}
#mpHud .bt-wait.on{opacity:1;display:inline-flex}
#mpHud .bt-wait .who{order:1}
#mpHud .bt.choosing .bt-wait,#mpHud .bt.ending .bt-wait,#mpHud .bt.intro .bt-wait,#mpHud .bt.cutin .bt-wait{display:none}
#mpHud .bt-order-vs{font-family:var(--font-display);letter-spacing:.01em;color:var(--cream-ink);background:0 0;order:-2;padding:0 2px;font-size:18px;font-weight:400;line-height:1}
#mpHud .bt-order.preview .bt-order-vs{display:none}
#mpHud .bt-order-rows{justify-items:end;gap:3px;width:100%;display:grid}
#mpHud .bt-ord{--oc:var(--bt-you);--ring:var(--exp);color:#fbf7e6;text-shadow:0 1px 1px #0000008c;align-items:center;gap:4px;width:220px;height:25px;padding:0 34px 0 18px;font-size:14px;font-weight:500;display:flex;position:relative}
#mpHud .bt-ord:before{content:"";z-index:-1;background:linear-gradient(90deg, color-mix(in srgb, var(--oc) 70%, transparent), var(--oc) 40%);clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%);opacity:.8;position:absolute;inset:0}
#mpHud .bt-ord{filter:drop-shadow(0 1px #00000059)}
#mpHud .bt-ord:nth-child(2) .bt-ord-name{opacity:.9}
#mpHud .bt-ord:nth-child(3) .bt-ord-name{opacity:.82}
#mpHud .bt-ord:nth-child(n+4) .bt-ord-name{opacity:.75}
#mpHud .bt-ord.foe{--oc:color-mix(in srgb, var(--bt-foe) 55%, #8e3a3a);--ring:var(--seal);text-shadow:0 1px 1px #000000b3}
#mpHud .bt-ord-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}
#mpHud .bt-ord-dia{background:var(--seal);flex:none;width:8px;height:8px;margin-right:5px;transform:rotate(45deg);box-shadow:0 0 0 1.5px #fbf7e6}
#mpHud .bt-ord-face{object-fit:cover;background:radial-gradient(circle at 50% 40%, #fffbea, var(--paper-2));width:24px;height:24px;box-shadow:0 0 0 2px var(--ring), 0 1px 3px #00000059;border-radius:50%;margin-top:-12px;position:absolute;top:50%;right:3px}
#mpHud .bt-ord.now{width:240px;height:34px;padding-right:38px;font-size:17px}
#mpHud .bt-ord.now:before{opacity:1;background:linear-gradient(90deg, color-mix(in srgb, var(--oc) 80%, #fff), color-mix(in srgb, var(--oc) 88%, #fff) 50%);box-shadow:none}
#mpHud .bt-ord.now:after{content:"";background:var(--accent);clip-path:polygon(0 0,45% 0,100% 50%,45% 100%,0 100%,55% 50%);filter:drop-shadow(0 1px 1px #0006);width:9px;height:14px;margin-top:-7px;animation:.9s ease-in-out infinite alternate nudge;position:absolute;top:50%;left:-12px}
#mpHud .bt-ord.now .bt-ord-face{width:30px;height:30px;margin-top:-15px}
#mpHud .bt-ord.in{animation:.28s cubic-bezier(.2,.9,.3,1) both bt-ord-in}
@keyframes bt-ord-in{0%{opacity:0;transform:translate(18px)}
}
#mpHud .bt-order.preview .bt-ord.moved:before{background:repeating-linear-gradient(-45deg, #ffffff29 0 4px, transparent 4px 9px), linear-gradient(90deg, color-mix(in srgb, var(--oc) 70%, transparent), var(--oc) 40%)}
#mpHud .bt-order.preview .bt-ord.moved:not(.now):after{content:"";z-index:-1;clip-path:polygon(evenodd,12px 0,100% 0,100% 100%,12px 100%,0 50%,12px 0,12.4px 1px,calc(100% - 1px) 1px,calc(100% - 1px) calc(100% - 1px),12.4px calc(100% - 1px),1.2px 50%,12.4px 1px);background:#fbf7e680;position:absolute;inset:0}
#mpHud .bt-order.preview .bt-ord.moved.in{animation:.28s cubic-bezier(.2,.9,.3,1) both bt-ord-in,.3s ease-out .2s bt-ord-pulse}
@keyframes bt-ord-pulse{50%{filter:brightness(1.25);transform:scale(1.06)}
}
#mpHud .bt-order[data-style=agile] .bt-order-tag{color:var(--bt-agile)}
#mpHud .bt-order[data-style=strong] .bt-order-tag{color:var(--bt-strong);background:#0e0f14d1}
#mpHud .bt-menu{display:contents}
#mpHud .bt-menu :is(button,#mpHud .bt-roster){pointer-events:auto;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#mpHud .bt-dias{right:calc(6vw + 150px);bottom:calc(var(--bt-bar-h) + 150px);filter:drop-shadow(0 2px 6px #00000073);width:0;height:0;position:absolute;scale:.88}
#mpHud .bt-dias.enter{animation:.22s cubic-bezier(.2,.9,.3,1) backwards bt-menu-in}
@keyframes bt-menu-in{0%{opacity:0;transform:translate(14px)}
}
#mpHud .bt-dias:before{content:"";pointer-events:none;background:radial-gradient(closest-side,#0000004d,#0000);width:300px;height:300px;position:absolute;top:-120px;left:-190px}
#mpHud .bt-dia{--s:84px;--x:0px;--y:0px;--bh:16px;--be:26px;--clip:polygon(50% 0, 100% 50%, 50% 100%, 0 50%);--hit:polygon(50% 0, calc(100% - var(--bh)) calc(50% - var(--bh)), calc(100% + var(--be)) calc(50% - var(--bh)), calc(100% + var(--be)) calc(50% + var(--bh)), calc(100% - var(--bh)) calc(50% + var(--bh)), 50% 100%, var(--bh) calc(50% + var(--bh)), calc(-1 * var(--be)) calc(50% + var(--bh)), calc(-1 * var(--be)) calc(50% - var(--bh)), var(--bh) calc(50% - var(--bh)));--dia:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0L100 50L50 100L0 50Z' fill='%23f3edd3' fill-opacity='.6'/><path d='M50 2.5L97.5 50L50 97.5L2.5 50Z' fill='%230c0d11' fill-opacity='.9'/><path d='M50 5L95 50L50 95L5 50Z' fill='%23141a18' fill-opacity='.8'/></svg>");left:calc(var(--x) - var(--s) / 2);top:calc(var(--y) - var(--s) / 2);width:var(--s);height:var(--s);clip-path:var(--hit);transition:transform var(--fast), filter var(--fast);place-items:center;display:grid;position:absolute}
#mpHud .bt-dia:before{content:"";background:var(--dia) center / 100% 100% no-repeat;position:absolute;inset:0}
#mpHud .bt-dia-word{z-index:1;font-family:var(--font-display);white-space:nowrap;color:var(--cream-ink);paint-order:stroke fill;-webkit-text-stroke:4px #0c0d11d9;text-shadow:0 2px 3px #00000073;font-size:29px;line-height:1;position:relative;transform:rotate(-4deg)}
#mpHud .bt-dia.d-fight{--s:140px;--bh:32px;--be:28px}
#mpHud .bt-dia.d-fight .bt-dia-word{letter-spacing:-.02em;font-size:44px}
#mpHud .bt-dia.d-party{--x:-100px;--y:-52px}
#mpHud .bt-dia.d-items{--x:-100px;--y:52px}
#mpHud .bt-dia.d-run{--s:100px;--x:-38px;--y:106px;--bh:18px}
#mpHud .bt-dia.d-party .bt-dia-word{font-size:26px}
#mpHud .bt-dia.d-run .bt-dia-word{font-size:31px}
#mpHud .bt-dia.on{--dia:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0L100 50L50 100L0 50Z' fill='%23fffdf2' fill-opacity='.85'/><path d='M50 2.5L97.5 50L50 97.5L2.5 50Z' fill='%230c0d11' fill-opacity='.92'/><path d='M50 5L95 50L50 95L5 50Z' fill='%23141a18' fill-opacity='.84'/><path d='M50 10L90 50L50 90L10 50Z' fill='none' stroke='%23fffdf2' stroke-opacity='.9' stroke-width='2' vector-effect='non-scaling-stroke'/></svg>");transform:scale(1.06)}
#mpHud .bt-dia.off{filter:saturate(.4)brightness(.75)}
#mpHud .bt-dia.off .bt-dia-word{opacity:.5}
#mpHud .bt-dia.armed{--dia:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0L100 50L50 100L0 50Z' fill='%23f3edd3' fill-opacity='.6'/><path d='M50 2.5L97.5 50L50 97.5L2.5 50Z' fill='%230c0d11' fill-opacity='.95'/><path d='M50 5L95 50L50 95L5 50Z' fill='%23d9473f'/></svg>")}
#mpHud .bt-dia.armed .bt-dia-word{color:var(--cream-ink)}
#mpHud .bt-dia:active{transform:scale(.97)}
#mpHud .bt-dia-key{z-index:1;pointer-events:none;min-width:18px;height:18px;font:700 11.5px/1 var(--body);border-radius:3px;place-items:center;padding:0 4px;display:grid;position:absolute;translate:-50% -30%;box-shadow:0 0 0 1px #f3edd3d9;color:var(--cream-ink)!important;background:#15151b!important;border:none!important}
#mpHud .bt-dia-key.k-fight{top:70px;left:0}
#mpHud .bt-dia-key.k-party{top:-10px;left:-100px}
#mpHud .bt-dia-key.k-items{top:94px;left:-100px}
#mpHud .bt-dia-key.k-run{top:156px;left:-38px}
#mpHud .bt-dia-key.off{opacity:.5}
@media (pointer:coarse){#mpHud .bt-dia-key{display:none}
}
#mpHud .bt-roster{justify-items:center;gap:2px;width:210px;display:grid;position:absolute;bottom:8px;right:36px}
#mpHud .bt-roster.enter{animation:.22s cubic-bezier(.2,.9,.3,1) 40ms backwards bt-menu-in}
#mpHud .bt-roster-faces{align-items:center;gap:8px;display:flex}
#mpHud .bt-roster-face{object-fit:cover;opacity:.7;background:radial-gradient(circle at 50% 40%,#4a4b52,#24252b);border-radius:50%;width:37px;height:37px;box-shadow:0 0 0 2px #f3edd38c,0 2px 6px #0006}
#mpHud .bt-roster-face.cur{opacity:1;background:radial-gradient(circle at 50% 38%, #fffbea, var(--paper) 72%);width:77px;height:77px;box-shadow:0 0 0 3px #fffdf2,0 4px 12px #00000073}
#mpHud .bt-roster-face.out{filter:grayscale()brightness(.6)}
#mpHud .bt-roster-face.gap{visibility:hidden}
#mpHud .bt-roster-name{text-shadow:0 1px 2px #000000b3;justify-content:space-between;align-self:stretch;align-items:center;gap:12px;min-height:32px;line-height:1.15;display:flex}
#mpHud .bt-roster-txt{flex:1;justify-items:center;display:grid}
#mpHud .bt-roster-name span{color:var(--cream-85);font-size:13px}
#mpHud .bt-roster-name b{letter-spacing:.08em;text-transform:uppercase;font-size:14px;font-weight:600}
#mpHud .bt[data-mode=pvp] .bt-roster-txt{visibility:hidden}
body.touch .bt-roster-key{display:none}
#mpHud .bt-moves{right:30px;bottom:calc(var(--bt-bar-h) + 3vh);justify-items:end;gap:6px;display:grid;position:absolute}
#mpHud .bt-moves.enter{animation:.2s cubic-bezier(.2,.9,.3,1) backwards bt-menu-in}
#mpHud .bt-mv{--tc:var(--brass);width:470px;height:38px;color:var(--cream-ink);pointer-events:auto;cursor:pointer;touch-action:manipulation;transition:right var(--fast), color var(--fast);align-items:center;gap:12px;padding:0 20px 0 30px;display:flex;position:relative;right:0}
#mpHud .bt-mv:nth-of-type(2){right:12px}
#mpHud .bt-mv:nth-of-type(3){right:24px}
#mpHud .bt-mv:nth-of-type(4){right:36px}
#mpHud .bt-mv:before{content:"";z-index:0;clip-path:polygon(16px 0,100% 0,calc(100% - 16px) 100%,0 100%);transition:background var(--fast);background:linear-gradient(#fffaeb38,#fffaeb38) 0 0/100% 1px no-repeat,#282620b8;position:absolute;inset:0}
@media (pointer:fine){#mpHud .bt-mv:not(.on):before{-webkit-backdrop-filter:blur(3px)}
}
#mpHud .bt-mv:not(.on):before{-webkit-mask-image:linear-gradient(90deg,#0000 0,#000 18%);mask-image:linear-gradient(90deg,#0000 0,#000 18%)}
#mpHud .bt-mv.on{color:var(--navy-d)}
#mpHud .bt-mv.on:before{background:var(--bt-sel)}
#mpHud .bt-mv.on{margin-right:18px}
@keyframes bt-mv-step{0%{margin-right:0}
}
#mpHud .bt-mv.off .bt-type{filter:grayscale(.9)brightness(.7)}
#mpHud .bt-mv.on.off{color:#1f304880}
#mpHud .bt-cur{background:var(--accent);clip-path:polygon(0 0,22% 0,50% 50%,22% 100%,0 100%,28% 50%,0 0,50% 0,72% 0,100% 50%,72% 100%,50% 100%,78% 50%,50% 0);filter:drop-shadow(0 1px 1px #00000073);width:22px;height:18px;margin-top:-9px;animation:.9s ease-in-out infinite alternate nudge;display:none;position:absolute;top:50%;left:6px}
#mpHud .on>.bt-cur{display:block}
#mpHud .bt-type{color:#fff;background:var(--tc);clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0 50%);flex:none;place-items:center;width:28px;height:28px;display:inline-grid;position:relative;box-shadow:inset 0 -6px 10px #0000002e}
#mpHud .bt-type:after{content:"";clip-path:inherit;background:linear-gradient(#ffffff47,#0000 55%);position:absolute;inset:0}
#mpHud .bt-type svg{z-index:1;filter:drop-shadow(0 1px #00000040);width:17px;height:17px;position:relative}
#mpHud .bt-mv-name{white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 2px #000;flex:1;min-width:0;font-size:17px;font-weight:500;overflow:hidden}
#mpHud .bt-mv.on .bt-mv-name{text-shadow:none}
#mpHud .bt-pp{min-width:74px;height:24px;color:var(--cream-ink);text-shadow:0 1px 2px #000;background:#0a0b0fe6;border-radius:12px;flex:none;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:15px;display:inline-flex}
#mpHud .bt-mv:not(.on) .bt-pp{background:0 0;box-shadow:inset 0 0 0 1px #f3edd373}
#mpHud .bt-pp small{letter-spacing:.06em;opacity:.5;font-size:10.5px;font-weight:600}
#mpHud .bt-pp i{opacity:.6;font-style:normal}
#mpHud .bt-pp b{font-weight:600}
#mpHud .bt-mv.s-strong .bt-pp b{color:#ffcf7a}
#mpHud .bt-mv.s-agile .bt-pp b{color:#9be6ff}
#mpHud .bt-mv.off .bt-pp{color:var(--cream-40)}
#mpHud .bt-eff{z-index:3;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;height:20px;text-shadow:none;border-radius:10px;flex:none;align-items:center;gap:4px;padding:0 8px 0 6px;font-size:11.5px;font-weight:700;display:inline-flex;position:relative}
#mpHud .bt-eff i{font-size:10px;font-style:normal}
#mpHud .bt-eff.e-super{color:#1f3048;background:var(--accent)}
#mpHud .bt-eff.e-weak{color:var(--cream-ink);background:#0a0b0fe6;box-shadow:inset 0 0 0 1px #f3edd34d}
#mpHud .bt-eff.e-none{color:var(--cream-40);background:#0a0b0fe6;text-decoration:line-through;text-decoration-thickness:1.5px}
#mpHud .bt-mv.on .bt-eff.e-weak,#mpHud .bt-mv.on .bt-eff.e-none{color:#1f3048b3;background:#1f30481a;box-shadow:inset 0 0 0 1px #1f304840}
#mpHud .bt-mv.off .bt-eff{opacity:.5}
#mpHud .bt-best{color:var(--accent);vertical-align:1px;text-shadow:0 1px 1px #0009;margin-left:6px;font-size:13px;font-style:normal}
#mpHud .bt-mv.on .bt-best{color:#b8780c;text-shadow:none}
#mpHud .bt-sty{z-index:3;flex:none;align-items:center;gap:2px;margin-left:8px;display:inline-flex;position:relative}
#mpHud .bt-sty-btn{opacity:0;place-items:center;width:22px;height:30px;display:grid}
#mpHud .bt-sty-btn>i{clip-path:polygon(100% 0,100% 100%,0 50%);background:currentColor;width:7px;height:12px}
#mpHud .bt-sty-btn.r>i{clip-path:polygon(0 0,100% 50%,0 100%)}
#mpHud .bt-mv.on .bt-sty-btn{opacity:.85;color:#fff}
#mpHud .bt-mv.on .bt-sty-btn>i{filter:drop-shadow(0 0 1px #000000e6)drop-shadow(0 1px 1px #0009)}
#mpHud .bt-mv.on .bt-sty-btn:hover{opacity:1}
#mpHud .bt-mv.on .bt-sty-btn.dim{opacity:.2}
#mpHud .bt-sty-btn.no,#mpHud .bt-mv.on .bt-sty-btn.no{visibility:hidden}
#mpHud .bt-sty-gem{border-radius:2px;width:18px;height:18px;position:relative;transform:rotate(45deg)scale(.78);box-shadow:inset 0 0 0 1.8px}
#mpHud .bt-sty-gem.g-strong{background:var(--bt-strong);box-shadow:0 0 0 1px #14100a8c}
#mpHud .bt-sty-gem.g-agile{width:20px;height:16px;box-shadow:none;background:color-mix(in srgb, var(--exp) 80%, #1e6f86);clip-path:polygon(0 0,22% 0,50% 50%,22% 100%,0 100%,28% 50%,0 0,50% 0,72% 0,100% 50%,72% 100%,50% 100%,78% 50%,50% 0);border-radius:0;transform:none}
#mpHud .bt-mv.stamped .bt-sty-gem:is(.g-strong,#mpHud .g-agile){width:18px;height:18px;box-shadow:none;filter:drop-shadow(0 0 1px #14100acc);border-radius:0;animation:.3s ease-out .1s bt-gem-pulse;transform:none}
#mpHud .bt-mv.stamped .bt-sty-gem.g-strong{clip-path:polygon(0 0,0 22%,50% 50%,100% 22%,100% 0,50% 28%,0 0,0 50%,0 72%,50% 100%,100% 72%,100% 50%,50% 78%,0 50%);background:#ffc84a}
#mpHud .bt-mv.stamped .bt-sty-gem.g-agile{clip-path:polygon(0 100%,0 78%,50% 50%,100% 78%,100% 100%,50% 72%,0 100%,0 50%,0 28%,50% 0,100% 28%,100% 50%,50% 22%,0 50%);background:#7fdcff}
@keyframes bt-gem-pulse{50%{transform:scale(1.35)}
}
#mpHud .bt-mv.s-agile:before{background:linear-gradient(90deg,#e9f6fb,#fffbea 40%,#f3ebc8)}
#mpHud .bt-mv.s-strong:before{background:linear-gradient(90deg,#fbe3d6,#fffbea 40%,#f3ebc8)}
#mpHud .bt-mv.on.s-strong:after{content:"";z-index:-1;pointer-events:none;background:radial-gradient(closest-side,#ff8c2880,#ff8c282e 70%,#0000);position:absolute;inset:-10px -14px}
#mpHud .bt-mv-name,#mpHud .bt-pp{transition:opacity .1s}
#mpHud .bt-pp,#mpHud .bt-mv-name,#mpHud .bt-type{z-index:3;position:relative}
#mpHud .bt-mv.stamped .bt-mv-name{z-index:1;opacity:.55}
#mpHud .bt-mv>.bt-cur{z-index:3}
#mpHud .bt-sty-lbl{display:none}
@media (pointer:coarse){#mpHud .bt-mv:not(.on) .bt-sty{visibility:hidden}
#mpHud .bt-mv.on .bt-sty{justify-content:center;min-width:64px;min-height:48px}
#mpHud .bt-mv.on .bt-sty-btn{pointer-events:none;width:18px;height:48px}
}
#mpHud .bt-styles{align-items:center;gap:4px;display:none}
#mpHud .bt-styles>small{font:700 11px/1 var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--cream-85);text-shadow:0 1px 2px #000;margin-right:6px}
#mpHud .bt-styles>.bt-style{appearance:none;height:26px;font:600 13px/1 var(--body);color:var(--cream-85);clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%);cursor:pointer;background:#0e0f14cc;border:0;padding:0 12px}
#mpHud .bt-styles>.bt-style:hover{color:var(--cream-ink)}
#mpHud .bt-styles>.bt-style.on{color:var(--navy-d);background:var(--bt-sel)}
#mpHud .bt-styles>.bt-style.on.s-strong{color:var(--cream-ink);background:var(--bt-strong)}
#mpHud .bt-styles>.bt-style.dim{opacity:.4}
@media (pointer:fine){#mpHud .bt-styles{display:inline-flex}
#mpHud .bt-sty-btn{display:none}
#mpHud .bt-sty{pointer-events:none}
}
#mpHud .bt-mv-cap{right:var(--cap-r,0px);z-index:3;white-space:nowrap;pointer-events:none;text-shadow:0 1px 2px #000,0 0 6px #000000b3;align-items:center;width:470px;height:18px;margin:-4px 18px -4px 0;padding-left:70px;font-size:13.5px;font-weight:600;line-height:1;animation:.15s fadein;display:flex;position:relative}
#mpHud .bt-mv-cap>span+span:before{content:"·";opacity:.7;color:var(--cream-ink);margin:0 8px;font-weight:400}
#mpHud .bt-mv-cap.s-strong{color:#ffc070}
#mpHud .bt-mv-cap.s-agile{color:var(--bt-agile)}
#mpHud .bt-mv-cap.e-super{color:var(--accent)}
#mpHud .bt-mv-cap.e-weak,#mpHud .bt-mv-cap.e-even{color:var(--cream-85)}
#mpHud .bt-mv-cap.e-none{color:var(--cream-40)}
#mpHud .bt-info{clip-path:polygon(16px 0,100% 0,calc(100% - 16px) 100%,0 100%);background:#0e0f14cc;align-content:center;gap:4px;width:470px;margin-top:4px;padding:9px 24px 10px 28px;animation:.2s fadein;display:grid;position:relative;right:48px;box-shadow:inset 0 1px #f3edd31f}
@media (pointer:fine) and (orientation:landscape),(pointer:fine) and (width>=761px){#mpHud .bt-info:not(.full){padding-top:7px;padding-bottom:7px}
#mpHud .bt-info:not(.full) .bt-info-top{gap:4px 10px;font-size:14px}
#mpHud .bt-info:not(.full) .bt-info-dl{font-size:14px}
#mpHud .bt-info:not(.full) p{display:none}
}
#mpHud .bt-info-top{color:var(--cream-85);white-space:nowrap;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:15px;display:flex}
#mpHud .bt-info-top b{color:var(--cream-ink);margin-left:2px;font-size:15px}
#mpHud .bt-info-top em{margin-left:4px;font-size:12px;font-style:normal;font-weight:600}
#mpHud .bt-info-top .bt-info-name{color:var(--cream-ink);margin:0;font-weight:600}
#mpHud .bt-info-name:after{content:"·";opacity:.6;margin-left:10px;font-weight:400}
#mpHud .bt-info-top em.bt-dpill{vertical-align:1px;border-radius:9px;place-items:center;height:17px;margin-left:6px;padding:0 6px;font-size:11.5px;font-weight:700;display:inline-grid}
#mpHud .bt-info-top em.bt-dpill.up{color:#12321c;background:color-mix(in srgb, var(--green) 85%, #fff)}
#mpHud .bt-info-top em.bt-dpill.down{color:#fff;background:color-mix(in srgb, var(--red) 90%, #000)}
#mpHud .bt-info-eff{color:var(--cream-85);white-space:nowrap;flex-wrap:wrap;gap:2px 0;font-size:14px;font-weight:600;display:flex}
#mpHud .bt-info-eff>span+span:before{content:"·";opacity:.6;margin:0 9px;font-weight:400}
#mpHud .bt-info-eff.e-super{color:var(--accent)}
#mpHud .bt-info-eff.e-none{color:var(--cream-40)}
#mpHud .bt-info-eff.e-kept{white-space:normal}
#mpHud .bt-info-dl{white-space:nowrap;flex-wrap:wrap;gap:2px 0;font-size:15px;font-weight:600;display:flex}
#mpHud .bt-info-dl:empty{display:none}
#mpHud .bt-info-dl>span+span:before{content:"·";opacity:.6;margin:0 9px;font-weight:400}
#mpHud .bt-info.s-strong .bt-info-dl{color:var(--bt-strong)}
#mpHud .bt-info.s-agile .bt-info-dl{color:var(--bt-agile)}
#mpHud .bt-info.flip .bt-info-dl{transform-origin:0;animation:.2s ease-out bt-pill}
#mpHud .bt-pill{letter-spacing:.02em;color:#1b1c22;border-radius:10px;align-items:center;height:20px;padding:0 8px;font-size:12px;font-weight:700;display:inline-flex}
#mpHud .bt-pill.p-pow{background:var(--bt-strong)}
#mpHud .bt-pill.p-late{color:#fff;background:#e2503f}
#mpHud .bt-pill.p-soon{background:var(--bt-agile)}
#mpHud .bt-pill.p-acc{background:#f3edd3d9}
#mpHud .bt-info.flip .bt-pill{animation:.2s ease-out bt-pill}
#mpHud .bt-info-pp{color:var(--muted);font-size:12px;font-weight:600}
@keyframes bt-pill{50%{filter:brightness(1.2);transform:scale(1.15)}
}
#mpHud .bt-info-top em.up{color:var(--green)}
#mpHud .bt-info-top em.down{color:var(--red)}
#mpHud .bt-info-type{background:var(--tc);color:#fff;letter-spacing:.08em;text-transform:uppercase;text-shadow:0 1px 1px #00000059;border-radius:2px;align-items:center;height:19px;padding:0 9px;font-size:11px;font-weight:700;display:inline-flex}
#mpHud .bt-cat{letter-spacing:.06em;text-transform:uppercase;color:var(--cream-ink);font-size:12px;font-weight:600}
#mpHud .bt-cat:before{content:"";background:var(--cream-40);vertical-align:0;border-radius:50%;width:8px;height:8px;margin-right:6px;display:inline-block}
#mpHud .bt-cat.c-phys:before{background:#ef8a4a}
#mpHud .bt-cat.c-spec:before{background:#6aa8f0}
#mpHud .bt-info p{color:var(--cream-ink);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:14px;line-height:1.35;display:-webkit-box;overflow:hidden}
#mpHud .bt-info small{color:var(--muted);font-size:11.5px}
#mpHud .bt-back{min-width:44px;height:44px;font:600 14px/1 var(--body);color:var(--cream-ink);background:#0e0f14db;border-radius:22px;flex:none;justify-content:center;align-items:center;gap:7px;padding:0 16px 0 13px;display:none;box-shadow:inset 0 0 0 1.5px #f3edd359}
#mpHud .bt-back>i{clip-path:polygon(0 50%,48% 0,48% 34%,100% 34%,100% 66%,48% 66%,48% 100%);background:currentColor;width:14px;height:12px}
body.touch .bt-back{display:inline-flex}
#mpHud .bt-info-top .bt-back{order:99;margin-left:auto}
#mpHud .bt-menu.v-party,#mpHud .bt-menu.v-items{right:26px;bottom:calc(var(--bt-bar-h) + 14px);justify-items:end;gap:18px;animation:.2s cubic-bezier(.2,.9,.3,1) both bt-menu-in;display:grid;position:absolute}
#mpHud .bt-sheet-head{text-shadow:0 1px 2px #000000bf;justify-content:flex-end;align-items:center;gap:14px;padding-right:6px;display:flex}
#mpHud .bt-sheet-title{justify-items:end;gap:1px;display:grid}
#mpHud .bt-sheet-head .bt-back{text-shadow:none;order:-1}
#mpHud .bt-sheet-head b{font-family:var(--font-display);font-size:30px;font-weight:400;line-height:1.1}
#mpHud .bt-sheet-head small{color:var(--cream-85);font-size:12.5px}
#mpHud .bt-party{align-items:flex-end;gap:8px;display:flex}
#mpHud .bt-mon{width:104px;transition:transform var(--fast), background var(--fast);background:#16171cbd;border-radius:6px;justify-items:center;gap:3px;padding:10px 6px 9px;display:grid;position:relative;box-shadow:inset 0 0 0 1px #f3edd31f}
#mpHud .bt-mon-face{background:radial-gradient(circle at 50% 40%,#4a4b52,#24252b);border-radius:50%;place-items:center;width:60px;height:60px;display:grid;overflow:hidden;box-shadow:0 0 0 2px #f3edd380}
#mpHud .bt-mon-face img{object-fit:cover;width:100%;height:100%}
#mpHud .bt-mon-lv{color:var(--cream-85);font-size:11.5px}
#mpHud .bt-mon b{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:13.5px;font-weight:500;overflow:hidden}
#mpHud .bt-hp.mini{width:74px;height:5px}
#mpHud .bt-mon-tag{background:var(--chip-bg);letter-spacing:.04em;border-radius:2px;padding:1px 5px;font-size:11px;font-weight:600;position:absolute;top:6px;right:6px}
#mpHud .bt-mon-tag.st{background:var(--sc);color:#1b2030}
#mpHud .bt-mon.on{background:var(--bt-sel);color:var(--navy-d);transform:translateY(-6px);box-shadow:0 6px 16px #00000059}
#mpHud .bt-mon.on .bt-mon-lv{color:var(--navy-l)}
#mpHud .bt-mon.on .bt-mon-face{background:radial-gradient(circle at 50% 38%, #fffbea, var(--paper-2) 72%);box-shadow:0 0 0 2px var(--navy)}
#mpHud .bt-mon.on:before{content:"";background:var(--accent);clip-path:polygon(0 0,100% 0,50% 100%);filter:drop-shadow(0 1px 1px #0006);width:18px;height:12px;margin-left:-9px;animation:.6s ease-in-out infinite alternate bob;position:absolute;top:-18px;left:50%}
#mpHud .bt-mon.cur .bt-mon-face{box-shadow:0 0 0 2px var(--bt-you), 0 0 0 4px #f3edd399}
#mpHud .bt-mon.out{opacity:.55}
#mpHud .bt-mon.out .bt-mon-face img{filter:grayscale()}
#mpHud .bt-party-go .btn-primary{min-width:200px;height:44px;font-size:16px}
#mpHud .bt-party-go .btn-primary.dim{filter:grayscale(.8)brightness(.8)}
#mpHud .bt-items{gap:5px;width:400px;display:grid}
#mpHud .bt-item{text-align:left;height:52px;color:var(--cream-ink);grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 40px 0 14px;display:grid;position:relative}
#mpHud .bt-item:before{content:"";z-index:-1;background:var(--bt-row);clip-path:polygon(14px 0,100% 0,calc(100% - 14px) 100%,0 100%);position:absolute;inset:0}
#mpHud .bt-item.on{color:var(--navy-d)}
#mpHud .bt-item.off{opacity:.45}
#mpHud .bt-item-ic{background:#0a0a0e73;border-radius:50%;place-items:center;width:40px;height:40px;display:grid;box-shadow:inset 0 0 0 2px #f3edd366}
#mpHud .bt-item.on .bt-item-ic{background:#2b3f5c1a;box-shadow:inset 0 0 0 2px #2b3f5c4d}
#mpHud .bt-item-txt{min-width:0;display:grid}
#mpHud .bt-item-txt b{font-size:15.5px;font-weight:500}
#mpHud .bt-item-txt small{opacity:.72;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}
#mpHud .bt-item-n{font-size:16px}
#mpHud .bt-potion{background:linear-gradient(#b48ce0 0 34%,#8e5cc8 34%);border-radius:4px 4px 6px 6px;width:16px;height:24px;margin-top:4px;position:relative;box-shadow:inset -3px -3px 4px #00000040,0 0 0 1.5px #3b2b55}
#mpHud .bt-potion:before{content:"";background:linear-gradient(#e8e4dc,#a9a59c);border-radius:2px 2px 0 0;width:10px;height:7px;position:absolute;top:-7px;left:3px;box-shadow:0 0 0 1.5px #3b2b55}
#mpHud .bt-foot{height:var(--bt-bar-h);color:var(--cream-ink);justify-content:flex-end;align-items:center;gap:6px 18px;font-size:clamp(14px,1.2vw,17px);display:flex;position:absolute;bottom:0;right:24px}
#mpHud .bt-foot>span{align-items:center;gap:7px;display:inline-flex}
#mpHud .bt-foot kbd{border-radius:11px;min-width:22px;height:22px;padding:0 6px;font-size:12.5px!important}
#mpHud .bt-note{color:var(--cream-ink);background:var(--strip-bg);white-space:nowrap;-webkit-mask:linear-gradient(#000, #000) left / calc(100% - 28px) 100% no-repeat, var(--torn-r) right / 30px 100% no-repeat;-webkit-mask:linear-gradient(#000, #000) left / calc(100% - 28px) 100% no-repeat, var(--torn-r) right / 30px 100% no-repeat;mask:linear-gradient(#000, #000) left / calc(100% - 28px) 100% no-repeat, var(--torn-r) right / 30px 100% no-repeat;padding:6px 30px 6px 14px;font-size:13px;animation:.2s fadeup;position:absolute;bottom:calc(100% + 6px);right:0}
body.touch .bt-foot>span:not(.bt-note){display:none}
#mpHud .bt:has(.v-root) .bt-foot>span:not(.bt-note){display:none}
#mpHud .bt-stamp{z-index:2;place-items:center;display:none;position:absolute;top:68%;left:50%;translate:-50% -50%}
#mpHud .bt-stamp.go{display:grid}
#mpHud .bt-stamp>*,#mpHud .bt-stamp:before,#mpHud .bt-stamp:after{grid-area:1/1}
#mpHud .bt-stamp-word{font-family:var(--font-display);white-space:nowrap;letter-spacing:.03em;text-transform:uppercase;color:#15151b;-webkit-text-stroke:2px #15151b;text-shadow:0 0 4px #fff,0 0 12px #ffffffb3;font-size:clamp(72px,7vw,116px);font-weight:400;line-height:1.05;position:relative}
#mpHud .bt-stamp:not(.at-row) .bt-stamp-word{transform:skew(8deg)}
#mpHud .bt.rough .bt-stamp:not(.at-row) .bt-stamp-word{filter:url(#bt-rough)}
#mpHud .bt-stamp:not(.at-row) .bt-stamp-ink{background:radial-gradient(closest-side,#fffaeb8c,#fffaeb38 60%,#0000);width:120%;height:170%;transform:none}
#mpHud .bt-stamp.go:not(.at-row) .bt-stamp-ink{animation:.18s ease-out both bt-ink-in,.2s ease-in .85s forwards bt-stamp-out}
@keyframes bt-ink-in{0%{opacity:0;transform:scale(.85,.7)}
}
#mpHud .bt-stamp.go:not(.at-row) .bt-stamp-word{animation:.18s cubic-bezier(.3,.8,.3,1) both bt-stamp-wipe,.2s ease-in .85s forwards bt-stamp-out}
@keyframes bt-stamp-wipe{0%{clip-path:inset(-20% 100% -20% -4%)}
to{clip-path:inset(-20% -4%)}
}
@keyframes bt-stamp-out{to{opacity:0}
}
#mpHud .bt-stamp.at-row{--rw:470px;--rh:38px}
#mpHud .bt-stamp-ink{width:var(--rw);height:calc(var(--rh) * 1.1);clip-path:polygon(16px 0,100% 0,calc(100% - 16px) 100%,0 100%)}
#mpHud .bt-stamp.s-strong.at-row .bt-stamp-ink{background:linear-gradient(90deg,#ffd6781f,#ffbe5a66 25%,#ffa03c57)}
#mpHud .bt-stamp.s-agile.at-row .bt-stamp-ink{background:linear-gradient(90deg,#96e1f51f,#78d2f066 25%,#46aae157)}
#mpHud .bt-stamp.at-row .bt-stamp-word{margin-left:var(--wx,0px);transform-origin:30%;font-size:calc(var(--rh) * 1.45);letter-spacing:-.01em;color:#15151b;paint-order:stroke fill;-webkit-text-stroke:4px #fffbea;text-shadow:0 0 6px #ffd76a,0 0 2px #fff3b0;justify-self:start;line-height:1;translate:0}
#mpHud .bt-stamp.s-agile.at-row .bt-stamp-word{text-shadow:0 0 6px #7fdcff,0 0 2px #d6f6ff}
#mpHud .bt-stamp.at-row:before{content:"";filter:blur(12px);background:radial-gradient(closest-side,#ffffff73,#0000);width:70%;height:150%}
#mpHud .bt-stamp.at-row.go .bt-stamp-word{animation:.76s both bt-stamp-row}
#mpHud .bt-stamp.at-row.go:before{animation:.76s ease-out both bt-stamp-glow}
#mpHud .bt-stamp.at-row.go .bt-stamp-ink{animation:.76s cubic-bezier(.3,.8,.3,1) both bt-stamp-ink}
@keyframes bt-stamp-row{0%{opacity:0;animation-timing-function:cubic-bezier(.34,1.56,.64,1);transform:scale(1.3)rotate(-3deg)}
20%{opacity:1;transform:none}
82%{opacity:1;transform:none}
to{opacity:0;transform:none}
}
@keyframes bt-stamp-glow{0%{opacity:0}
16%,82%{opacity:1}
to{opacity:0}
}
@keyframes bt-stamp-ink{0%{clip-path:inset(0 100% 0 0)}
18%{clip-path:inset(0)}
78%{opacity:1}
to{clip-path:inset(0);opacity:0}
}
#mpHud .bt-cutfx{display:none!important}
#mpHud .bt-cutfx>i{position:absolute;inset:0}
#mpHud .bt-cutfx-flash{opacity:0;background:#fff}
@keyframes bt-cut{0%{opacity:0}
8%,80%{opacity:1}
to{opacity:0}
}
@keyframes bt-cut-flash{0%{opacity:.55}
to{opacity:0}
}
#mpHud .bt-text{left:0;right:0;bottom:calc(var(--bt-bar-h) + 8px);text-align:center;opacity:0;background:linear-gradient(90deg,#0000 20%,#f3edd31f 20% 80%,#0000 80%) 0 0/100% 1px no-repeat,linear-gradient(90deg,#0000,#100f0ec7 20% 80%,#0000);border-radius:0;justify-content:center;align-items:center;width:min(58vw,860px);min-height:54px;margin:0 auto;padding:14px 64px;transition:opacity .14s,transform .14s;display:flex;position:absolute;transform:translateY(6px)}
#mpHud .bt-text.on{opacity:1;pointer-events:auto;cursor:pointer;transform:none}
#mpHud .bt-text p{color:#fbf7e6;letter-spacing:.005em;text-shadow:0 1px 2px #0000008c;margin:0;font-size:clamp(18px,2.8vh + 4px,30px);font-weight:400;line-height:1.35}
#mpHud .bt-text p:after{content:"";vertical-align:.15em;clip-path:polygon(0 0,100% 0,50% 100%);opacity:0;background:#f3ead8;width:11px;height:8px;margin-left:10px;display:inline-block}
#mpHud .bt-text.done p:after{opacity:1;animation:.8s ease-in-out infinite alternate bob}
#mpHud .bt-accent{font-family:var(--font-display);letter-spacing:.01em;vertical-align:-.04em;font-size:1.14em;font-weight:400}
#mpHud .bt-accent-move{color:#fff4cf;font-weight:700}
#mpHud .bt-ghost{visibility:hidden}
#mpHud .bt-word{transform:translate(-50%, -50%) rotate(var(--tilt,-3deg));font-family:var(--font-display);white-space:nowrap;color:var(--cream-ink);paint-order:stroke fill;-webkit-text-stroke:4px #1a1420;text-shadow:0 3px #00000073;font-size:40px;line-height:1;animation:1.5s cubic-bezier(.2,1,.3,1) .22s both bt-word;position:absolute}
#mpHud .bt-word.k-super{color:var(--accent);font-size:40px}
#mpHud .bt-word.k-crit{font-size:44px}
#mpHud .bt-word:is(.k-crit,#mpHud .k-super){-webkit-text-stroke-width:7px}
#mpHud .bt-word.k-crit:after{content:"";background:var(--seal);z-index:-1;border-radius:2px;height:7px;position:absolute;bottom:-6px;left:6%;right:6%;transform:skew(-20deg)}
#mpHud .bt-word.k-weak{color:var(--cream-ink);font-size:32px}
#mpHud .bt-word.k-immune{color:var(--cream-40);font-size:32px}
#mpHud .bt-word.k-miss{font-size:36px}
@keyframes bt-word{0%{opacity:0;transform:translate(-50%, -30%) rotate(var(--tilt)) scale(1.6)}
14%{opacity:1;transform:translate(-50%, -50%) rotate(var(--tilt)) scale(.96)}
22%{transform:translate(-50%, -50%) rotate(var(--tilt)) scale(1)}
78%{opacity:1}
to{opacity:0;transform:translate(-50%, -80%) rotate(var(--tilt)) scale(1)}
}
#mpHud .bt-win{justify-items:stretch;gap:7px;width:min(480px,40vw);display:none;position:absolute;top:30%;left:auto;right:5vw;transform:none}
#mpHud .bt-win:before{content:"";z-index:-2;pointer-events:none;background:radial-gradient(farthest-side,#0a0b109e,#0000);position:absolute;inset:-150px -220px -90px}
#mpHud .bt-win.on{pointer-events:auto;cursor:pointer;animation:.3s fadein;display:grid}
#mpHud .bt-win.k-defeat{width:min(560px,100% - 32px);top:calc(42% + 62px);left:50%;right:auto;transform:translate(-50%)}
#mpHud .bt-win.k-victory{gap:16px}
@media (orientation:landscape),(width>=761px){#mpHud .bt.ending:has(>.bt-win.k-victory) .bt-bar{height:calc(6 * var(--vh));-webkit-backdrop-filter:none;backdrop-filter:none;background:#0a0b0feb}
}
#mpHud .bt-win-panel{background:#f3edd3f0;border-radius:2px;width:100%;transition:opacity .25s;display:grid;box-shadow:0 0 0 1px #15151b8c,0 6px 18px #00000059}
#mpHud .bt-win-panel:not(:has(.bt-xp.in)){opacity:0}
#mpHud .bt-win-panel .bt-xp:before{box-shadow:none;background:0 0}
#mpHud .bt-win-panel .bt-xp+.bt-xp:before{box-shadow:inset 0 1px #15151b2e}
#mpHud .bt-win-panel .bt-win-strip{background:0 0;border-radius:0;box-shadow:inset 0 1px #15151b2e}
#mpHud .bt-win-rows{gap:6px;width:100%;display:grid}
#mpHud .bt-win-panel .bt-win-rows{gap:0}
#mpHud .bt-xp{width:100%;min-height:64px;color:var(--navy-d);opacity:0;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px 14px 6px 12px;transition:opacity .25s,transform .3s cubic-bezier(.2,.9,.3,1);display:grid;position:relative;transform:translate(-16px)}
#mpHud .bt-xp:before{content:"";z-index:-1;background:#f3edd3f0;border-radius:2px;position:absolute;inset:0;box-shadow:inset 0 0 0 1px #15151b8c,0 3px 10px #0000004d}
#mpHud .bt-xp.in{opacity:1;transform:none}
#mpHud .bt-xp-face{background:radial-gradient(circle at 50% 38%, #fffbea, var(--paper-2) 72%);width:52px;height:52px;box-shadow:0 0 0 2px #fffdf2, 0 0 0 3.5px var(--navy-d);border-radius:50%;place-items:center;display:grid;overflow:hidden}
#mpHud .bt-xp-face img{object-fit:cover;width:100%;height:100%}
#mpHud .bt-xp-mid{gap:5px;min-width:0;display:grid}
#mpHud .bt-xp-top{white-space:nowrap;align-items:baseline;gap:10px;display:flex}
#mpHud .bt-xp-top b{font-family:var(--font-display);text-overflow:ellipsis;font-size:20px;font-weight:400;line-height:1.1;overflow:hidden}
#mpHud .bt-xp-lv{color:#2b2a26;font-size:15px}
#mpHud .bt-xp-up{font-family:var(--font-display);color:#b23a2c;opacity:0;font-size:19px;transition:opacity .2s,transform .3s cubic-bezier(.2,1.4,.4,1);transform:scale(1.5)}
#mpHud .bt-xp.lvup .bt-xp-up{opacity:1;transform:rotate(-4deg)}
#mpHud .bt-xp.lvup .bt-xp-lv{color:var(--navy-d);font-weight:600}
#mpHud .bt-xp.lvup .bt-xp-face{animation:.6s bt-lvup}
@keyframes bt-lvup{40%{box-shadow:0 0 0 2px #fffdf2, 0 0 0 3.5px var(--accent), 0 0 22px var(--accent);transform:scale(1.08)}
}
#mpHud .bt-xp-bar{background:#1f304852;border-radius:3px;height:12px;position:relative;box-shadow:0 0 0 1.5px #15151bbf,inset 0 1px 2px #00000040}
#mpHud .bt-xp-bar i{background:linear-gradient(#a8e6f5,#74cfe6 60%);border-radius:3px;transition:width .9s cubic-bezier(.25,.8,.3,1)}
#mpHud .bt-xp-bar i.base{background:linear-gradient(180deg, color-mix(in srgb, var(--exp) 80%, #fff), color-mix(in srgb, var(--exp) 85%, #000) 60%);transition:none;position:absolute;top:0;left:0}
#mpHud .bt-xp-next{color:#2b2a26;justify-self:end;font-size:15px}
#mpHud .bt-xp-gain{color:var(--navy-d);justify-items:end;line-height:1;display:grid}
#mpHud .bt-xp-gain b{font-family:var(--font-display);font-size:22px;font-weight:400}
#mpHud .bt-xp-gain small{letter-spacing:.08em;color:#4a4740;font-size:11px;font-weight:700}
#mpHud .bt-win-strip{color:#2b2a26;opacity:0;background:#f3edd3f0;border-radius:2px;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:40px;padding:6px 14px;font-size:15px;transition:opacity .3s;display:flex;box-shadow:inset 0 0 0 1px #15151b8c,0 3px 10px #0000004d}
#mpHud .bt-win-strip.in{opacity:1}
#mpHud .bt-win-extra{gap:18px;display:flex}
#mpHud .bt-win-extra:empty{display:none}
#mpHud .bt-win-extra span{align-items:center;gap:6px;display:inline-flex}
#mpHud .bt-win-extra b{color:#8c6a1e;font-size:16px}
#mpHud .bt-win-extra .ic{color:#8c6a1e}
#mpHud .bt-win-strip:not(:has(.bt-win-extra>*)){display:none}
#mpHud .bt-win-go{min-height:44px;font:600 15px/1 var(--body);color:var(--cream-ink);opacity:0;background:#0e0f14e0;border-radius:22px;justify-self:end;align-items:center;gap:8px;padding:0 18px;transition:opacity .3s;display:inline-flex;box-shadow:inset 0 0 0 1.5px #f3edd373,0 3px 10px #00000059}
#mpHud .bt-win-go.in{opacity:1}
#mpHud .bt-win-go.in.skip{opacity:.55}
#mpHud .bt-win-go.ready{animation:1.1s ease-in-out 3 bt-go}
@keyframes bt-go{50%{box-shadow:inset 0 0 0 1.5px #f3edd3e6,0 0 0 4px #f3edd32e,0 3px 10px #00000059}
}
#mpHud .bt-win-go .t-touch{display:none}
body.touch .bt-win-go .t-touch{display:inline}
body.touch .bt-win-go .t-key{display:none}
#mpHud .bt-win-sub{text-align:center;color:var(--cream-ink);text-shadow:0 1px 2px #0009;background:linear-gradient(90deg,#0000,#14151ac7 14% 86%,#0000);justify-self:center;margin:0;padding:12px 70px;font-size:16px;line-height:1.4}
#mpHud .bt-win-foot{color:#ffffffe6;justify-content:flex-end;font-size:14px;display:flex}
#mpHud .bt-win.k-defeat .bt-win-foot{color:var(--cream-85);text-shadow:0 1px 2px #000c;font-size:12.5px}
body.touch .bt-win-foot{display:none}
#mpHud .bt.plates.ending .bt-me{opacity:0;pointer-events:none;transition:opacity .4s,transform .4s;transform:translateY(12px)}
#mpHud .bt-invite h2{font-family:var(--font-display);font-size:34px;font-weight:400}
#mpHud .bt-invite .btn{min-height:48px}
@media (prefers-reduced-motion:reduce){#mpHud .bt-stamp.go .bt-stamp-word,#mpHud .bt-stamp.go .bt-stamp-ink,#mpHud .bt-stamp.at-row.go .bt-stamp-word,#mpHud .bt-stamp.at-row.go:before,#mpHud .bt-word,#mpHud .bt-ord.in,#mpHud .bt.cutin .bt-cutfx{animation:none!important}
#mpHud .bt-cutfx>i{display:none}
}
@media (height<=560px),(width<=900px){#mpHud .bt-title-word{font-size:84px}
#mpHud .bt-title-ink{width:520px;height:110px}
#mpHud .bt-title-ball{width:190px;height:190px}
#mpHud .bt-me{scale:.82}
#mpHud .bt-order{transform-origin:100% 0;scale:.85}
#mpHud .bt-dias{right:200px;bottom:calc(var(--bt-bar-h) + 122px);scale:.72}
#mpHud .bt-roster{transform-origin:100% 100%;transform:scale(.85)}
#mpHud .bt-moves{zoom:.88}
#mpHud .bt-foot{display:none}
#mpHud .bt-stamp-word{font-size:64px}
#mpHud .bt-text{width:min(70vw,860px)}
#mpHud .bt-win{width:min(440px,46vw);top:27%;right:3vw}
#mpHud .bt-title.k-victory{right:3vw}
#mpHud .bt-title.k-victory .bt-title-word{font-size:72px}
}
#mpHud .bt-invite .modal{max-height:calc(100% - 32px);overflow-y:auto}
#mpHud .bt-stake-pick{gap:10px;width:100%;display:grid}
#mpHud .bt-stake-pick summary{cursor:pointer;padding:6px 0;font-weight:600}
#mpHud .bt-stake-pick[open] summary{margin-bottom:4px}
#mpHud .bt-stake-row{align-items:center;gap:8px;display:flex}
#mpHud .bt-stake-row svg{width:20px;height:20px}
#mpHud .bt-stake-coins{border:1px solid var(--line-hi);background:var(--row);width:110px;color:inherit;font:inherit;border-radius:8px;padding:6px 8px}
#mpHud .bt-stake-balls{flex-wrap:wrap;gap:8px;display:flex}
#mpHud .bt-stepper{background:var(--row);border:1px solid var(--line);border-radius:10px;align-items:center;gap:6px;padding:4px 8px;display:flex}
#mpHud .bt-stepper.off{opacity:.45;pointer-events:none}
#mpHud .bt-stepper .btn{min-width:32px;padding:0;min-height:32px!important}
#mpHud .bt-stepper b{text-align:center;min-width:2ch}
#mpHud .bt-stake-mons .dex-cell.on{outline:2px solid var(--sun,#f5c84a);outline-offset:-2px}
#mpHud .bt-stake{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;display:flex}
#mpHud .bt-stake.none{color:var(--muted)}
#mpHud .bt-chip{background:var(--row);border:1px solid var(--line-hi);border-radius:999px;align-items:center;gap:4px;padding:3px 9px;font-weight:600;display:inline-flex}
#mpHud .bt-chip svg{width:16px;height:16px}
#mpHud .bt-chip-mon{width:48px;height:48px}
#mpHud .bt-stake-side{justify-items:center;gap:4px;display:grid}
#mpHud .bt-stake-vs{flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;display:flex}
#mpHud .bt-stake-x{font-family:var(--font-display);font-size:26px}
#mpHud .tn{background:var(--row);border:1px solid var(--line-hi);border-radius:14px;gap:10px;margin-bottom:10px;padding:12px 14px;display:grid}
#mpHud .tn.cancelled{opacity:.6}
#mpHud .tn-head{align-items:center;gap:10px;display:flex}
#mpHud .tn-head .grow{flex:1;min-width:0}
#mpHud .tn-prizes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}
#mpHud .tn-prize{border:1px solid var(--line);text-align:center;border-radius:10px;gap:2px;padding:8px 10px;display:grid}
#mpHud .tn-prize small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}
#mpHud .tn-podium{flex-wrap:wrap;gap:6px 16px;font-size:15px;display:flex}
#mpHud .tn-bracket{gap:12px;padding-bottom:4px;display:flex;overflow-x:auto}
#mpHud .tn-round{align-content:start;gap:6px;min-width:170px;display:grid}
#mpHud .tn-match{border:1px solid var(--line);border-radius:8px;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;padding:6px 8px;font-size:13px;display:grid}
#mpHud .tn-match>small:first-child,#mpHud .tn-match .tn-why{color:var(--muted);grid-column:1/-1;font-size:11px}
#mpHud .tn-match span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
#mpHud .tn-match span:last-of-type{text-align:right}
#mpHud .tn-match .w{font-weight:700}
#mpHud .tn-match i{color:var(--muted);font-size:11px}
#mpHud .tn-match.me{border-color:var(--line-hi);box-shadow:inset 3px 0 #f5c84a}
#mpHud .tn-match.live{background:#f5c84a24}
@media (width<=520px){#mpHud .tn-prizes{grid-template-columns:1fr}
}
#mpHud .bt{--bp-paper:var(--paper);--bp-paper-hi:var(--paper-hi);--bp-paper-d:#e2d8b4;--bp-ink:var(--navy-d);--bp-ink-l:var(--navy-l);--bp-edge:inset 0 0 0 2px #2b3f5c1f;--bp-lift:0 6px 18px #00000059;--bp-card:var(--bp-lift), var(--bp-edge)}
#mpHud .bt :is(.bt-me,#mpHud .bt-card,#mpHud .bt-mv,#mpHud .bt-info,#mpHud .bt-text,#mpHud .bt-foe .bt-plate-body,#mpHud .bt-foe-top,#mpHud .bt-item,#mpHud .bt-mon,#mpHud .bt-roster,#mpHud .bt-wait){font-family:var(--body)}
#mpHud .bt-bar{box-shadow:none;background:0 0;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
#mpHud .bt-foe-top{background:var(--bp-paper);color:var(--bp-ink);text-shadow:none;box-shadow:var(--bp-card);border-radius:12px;padding:6px 12px 8px;top:18px;bottom:auto}
#mpHud .bt-foe-top b{font-weight:700}
#mpHud .bt-title-ball,#mpHud .bt-title-ink{display:none}
#mpHud .bt-title-word,#mpHud .bt.rough .bt-title-word{font-family:var(--body);letter-spacing:.02em;text-transform:none;color:var(--bp-paper);-webkit-text-stroke:0;paint-order:normal;filter:drop-shadow(0 8px 18px #00000073);background:var(--navy);clip-path:polygon(0 0,100% 0,calc(100% - 24px) 50%,100% 100%,0 100%,24px 50%);padding:14px 52px 16px 46px;font-size:clamp(26px,2.6vw,40px);font-weight:800;transform:rotate(-2deg)}
#mpHud .bt-title{top:46%}
#mpHud .bt-title.in .bt-title-word{animation:.32s cubic-bezier(.2,.9,.3,1) both bp-ribbon-in}
@keyframes bp-ribbon-in{0%{clip-path:polygon(0 0,0 0,0 50%,0 100%,0 100%,24px 50%);opacity:0}
}
#mpHud .bt-title.k-victory .bt-title-word{background:var(--brass);color:var(--navy-d);padding:12px 46px 14px 40px;font-size:40px;transform:rotate(-1.5deg)}
#mpHud .bt-title.k-defeat .bt-title-word{background:color-mix(in srgb, var(--seal) 88%, #000);color:var(--bp-paper);font-size:36px}
#mpHud .bt-fan{display:none}
/* my fighter card, reference A1 / section 10 (at 1868 x 992): x 22..462, y 862..952 (440 x 90), cream #f4efdf with a 1 px darker
   edge, 14 px radius, tilted about 2 degrees anticlockwise; portrait 74 px at x 45 (2 px navy ring, picture ~50 px); name 24 px
   bold navy at x 134; HP bar 310 x 10 at y 912; the numbers 15 px under its left end, six 14 px party rings at its right end */
#mpHud .bt-me{background:#f4efdf;box-sizing:border-box;width:440px;height:90px;color:#1d2b4f;box-shadow:0 0 0 1px #ddd3b3, 0 6px 16px #00000047;transform-origin:0 100%;border-radius:14px;align-items:center;gap:15px;padding:0 18px 0 23px;display:flex;bottom:40px;left:22px;scale:none;transform:rotate(-2deg)}
#mpHud .bt.plates .bt-me{animation:.35s cubic-bezier(.2,.9,.3,1) both bp-card-in}
@keyframes bp-card-in{0%{opacity:0;transform:translateY(16px)rotate(-2deg)}
}
#mpHud .bt-me-face{object-fit:contain;box-sizing:border-box;padding:12px;background:radial-gradient(circle at 50% 38%, #fffbea, var(--bp-paper-d) 72%);width:74px;height:74px;box-shadow:inset 0 0 0 2px #1d2b4f;border-radius:50%;flex:none}
#mpHud .bt-me .bt-plate-body{text-align:left;flex:1;grid-template-columns:auto 1fr;place-items:center start;gap:2px 8px;width:auto;min-width:0;display:grid;position:static}
#mpHud .bt-me .bt-plate-top{grid-area:1/2;justify-self:start;margin:0}
#mpHud .bt-me .bt-name-row{grid-area:1/1}
#mpHud .bt-me .bt-hp{grid-column:1/-1;width:100%;height:10px;margin-top:12px;background:#d9d4c4;box-shadow:none;border-radius:5px}
#mpHud .bt-me .bt-hpnum{font:400 15px/16px var(--body);color:#1d2b4f;text-shadow:none;grid-column:1}
#mpHud .bt-me .bt-pips{grid-column:2;justify-self:end;gap:2px;margin:0 2px 0 0}
#mpHud .bt-name,#mpHud .bt-me .bt-name{font-family:var(--body);color:var(--bp-ink);text-shadow:none;font-weight:800}
#mpHud .bt-me .bt-name{color:#1d2b4f;font-size:24px;font-weight:700;line-height:24px}
#mpHud .bt-lv,#mpHud .bt-me .bt-lv{--cut:0px;height:20px;font:700 12.5px/1 var(--mono);color:var(--bp-paper);background:var(--navy);clip-path:none;border-radius:6px;padding:0 7px}
#mpHud .bt-lv:before{display:none}
#mpHud .bt-me .bt-lv{height:22px;font:700 13px/1 var(--body);color:#fff;background:#2a3a66;border-radius:8px;padding:0 9px}
#mpHud .bt-me .bt-tdot{background:var(--tc);width:12px;height:12px;box-shadow:0 0 0 1px #1d2b4f}
#mpHud .bt-hp{background:#2b3f5c29;border-radius:6px;box-shadow:inset 0 0 0 1px #2b3f5c2e}
#mpHud .bt-hp>i,#mpHud .bt-hp>.fill{border-radius:6px}
#mpHud .bt-hp>.lag{background:#2b3f5c59}
#mpHud .bt-pip{background:var(--seal);box-sizing:border-box;width:14px;height:14px;box-shadow:inset 0 0 0 1.5px #1d2b4f}
#mpHud .bt-pip.out{opacity:1;background:#2b3f5c59}
#mpHud .bt-pip.free{opacity:1;filter:none;background:0 0}
#mpHud .bt-pip.cur{box-shadow:inset 0 0 0 1.5px #1d2b4f}
#mpHud .bt-tdot{box-shadow:0 0 0 2px var(--bp-paper), 0 0 0 3px #2b3f5c66}
/* fainted (A1): only the name goes mid-grey, the wine-red 'Fainted' ribbon (70 x 20, white bold 13 px) overlaps the card's top
   edge at x 150..220, y 850..870, at once */
#mpHud .bt-me.fainted :is(.bt-name,#mpHud .bt-name-type,#mpHud .bt-hpnum,#mpHud .bt-lv){filter:none;opacity:1}
#mpHud .bt-me.fainted .bt-name{color:#8a8f99}
#mpHud .bt-me.fainted .bt-hp{background:#d9d4c4}
#mpHud .bt-me.fainted .bt-faint{animation-delay:0s}
#mpHud .bt-faint{font:700 13px/20px var(--body);color:#fff;text-shadow:none;box-sizing:border-box;width:70px;height:20px;text-align:center;clip-path:polygon(0 0,100% 0,calc(100% - 6px) 50%,100% 100%,0 100%,6px 50%);background:#8e2a4a;box-shadow:none;padding:0;top:-12px;bottom:auto;left:128px;transform:rotate(-3deg)}
#mpHud .bt-st{border-radius:6px}
/* a stat change (A1): a red pill 'ATK ▼' after the level, white bold with the triangle filled */
#mpHud .bt-boost{background:#c0392b;color:#fff;height:22px;border-radius:8px;gap:3px;padding:0 7px;font:700 13px/1 var(--body);letter-spacing:0}
#mpHud .bt-boost:is(.up,.down)>i{border:0;width:auto;height:auto;margin:0;font-size:10px;font-style:normal;line-height:1}
/* HP fills (A1): green over half, yellow from a quarter to a half, red under a quarter, on a pale grey track */
#mpHud :is(.bt-me,.bt-foe) .bt-hp{--hpc:#47c04f}
#mpHud :is(.bt-me,.bt-foe) .bt-hp[data-l=mid]{--hpc:#e8c43a}
#mpHud :is(.bt-me,.bt-foe) .bt-hp:is([data-l=low],#mpHud [data-l=out]){--hpc:#e23a3a}
#mpHud :is(.bt-me,.bt-foe) .bt-hp>.fill{background:var(--hpc)}
#mpHud .bt-foe:before{display:none}
/* the foe label (A2): a 220 x 56 cream pill, 10 px radius, a 2 px dotted stem 20 px long down to the creature; row 1 the name
   17 px bold navy, a navy pill 'Lv. 50 · Steady' (white 12 px bold) and a 14 px round status medallion; row 2 a 6 px HP bar
   across the pill (12 px in from each side), no numbers */
#mpHud .bt-foe{padding:0 0 20px}
#mpHud .bt-foe .bt-plate-body{background:#f4efdf;box-sizing:border-box;min-width:220px;min-height:56px;color:#1d2b4f;box-shadow:var(--bp-card);text-align:left;border-radius:10px;justify-items:stretch;align-content:center;padding:9px 12px 11px}
#mpHud .bt-foe .bt-name-row{justify-content:flex-start;gap:8px}
#mpHud .bt-foe .bt-name{order:-1;margin-right:auto;color:#1d2b4f;font-size:17px;font-weight:700}
#mpHud .bt-foe .bt-lv{height:22px;font:700 12px/1 var(--body);color:#fff;background:#2a3a66;border-radius:8px;padding:0 8px}
#mpHud .bt-foe .bt-name-type{display:none}
#mpHud .bt-cond{box-sizing:border-box;background:#ebe5d1;border:1.5px solid #a9a493;border-radius:50%;flex:none;width:14px;height:14px}
#mpHud .bt-cond.on{background:var(--sc);border-color:#1d2b4f}
#mpHud .bt-foe .bt-hp{width:100%;height:6px;margin-top:5px;background:#d9d4c4;box-shadow:none;border-radius:3px}
#mpHud .bt-chev{background:repeating-linear-gradient(var(--bp-paper) 0 2px, transparent 2px 4px);filter:drop-shadow(0 1px 1px #00000080);width:2px;height:20px;margin-left:-1px;animation:none;bottom:0}
#mpHud .bt-chev:before,#mpHud .bt-chev:after{display:none}
#mpHud .bt:not(.choosing) .bt-chev{opacity:.6;display:block}
/* mirrored (A2): parked at the top centre on the foe's own close-up (and while the foe is out of frame), one 30 px row, reversed:
   'Lv. 50 · Steady', the name, then the bar (y 10..40); no stem */
#mpHud .bt-foe.mirror{padding-bottom:0}
#mpHud .bt-foe.mirror .bt-chev{display:none}
#mpHud .bt-foe.mirror .bt-plate-body{display:flex;align-items:center;gap:10px;min-width:200px;min-height:0;height:30px;padding:0 10px}
#mpHud .bt-foe.mirror .bt-cond{order:-3}
#mpHud .bt-foe.mirror .bt-lv{order:-2}
#mpHud .bt-foe.mirror .bt-name{order:-1;margin-right:0}
#mpHud .bt-foe.mirror .bt-hp{flex:1 0 44px;width:auto;margin-top:0}
#mpHud .bt-meter{background:var(--navy);color:var(--bp-paper);border-radius:8px}
#mpHud .bt-meter b{color:var(--brass)}
/* the turn chain (A3 / section 10): the navy bar 'vs NAME · Next up · Next up ▾' x 30..235, y 35..70 with a slanted right end,
   then five 55 px coins 60 px apart from x 245 (centre y 55), joined by three white dots; the ring is gold for the turn in hand,
   red for the opponent's turns, plain cream for my later ones */
#mpHud .bt-order{place-items:center start;gap:12px;width:auto;padding:0;display:flex;top:27px;left:30px;right:auto}
#mpHud .bt.plates:not(.choosing) .bt-order{translate:-24px}
#mpHud .bt-order:before{display:none}
#mpHud .bt-order-head{background:#2a3a66;color:#fff;letter-spacing:0;text-shadow:none;clip-path:polygon(0 0,100% 0,calc(100% - 12px) 100%,0 100%);border-radius:0;order:-1;box-sizing:border-box;min-width:205px;height:35px;gap:6px;padding:0 22px 0 8px;font-size:13px;font-weight:700}
#mpHud .bt-order-head b{text-shadow:none}
#mpHud .bt-order-head b{font-size:13px;font-weight:700}
#mpHud .bt .bt-order-head kbd{width:18px;padding:0;border-radius:50%;background:#fff!important;border:none!important;font-size:10px!important}
#mpHud .bt[data-mode=pvp] .bt-order-head{background:#2a3a66;padding:0 22px 0 8px}
#mpHud .bt-order-ic{display:none!important}
@media (orientation:landscape),(width>=761px){#mpHud .bt:has(.v-root) .bt-order:not(.open) .bt-order-head:not(:hover)>b{display:inline}
}
#mpHud .bt-order-tag.bt-order-vs{font-family:var(--body);color:#2a3a66;background:#e8c25c;border-radius:10px;padding:3px 8px;font-size:11px;font-weight:700;line-height:1}
#mpHud .bt-order-tag{background:#f3edd326;border-radius:6px}
#mpHud .bt-order-rows{align-items:center;gap:0;width:auto;display:flex}
#mpHud .bt:has(.v-root) .bt-order:not(.open) .bt-ord{display:grid}
#mpHud .bt-ord{--ring:var(--bp-paper);background:#f4efdf;filter:none;box-sizing:border-box;width:55px;height:55px;border:3px solid var(--ring);box-shadow:0 4px 10px #00000059;border-radius:50%;place-items:center;padding:0;display:grid}
#mpHud .bt-ord+.bt-ord{margin-left:5px}
#mpHud .bt-ord+.bt-ord:after{content:"";z-index:1;background:radial-gradient(circle at 1px 1px,#fff 0 1px,#fff0 1.2px) 0 0/3.5px 2px repeat-x;width:9px;height:2px;margin-top:-1px;position:absolute;top:50%;left:-10px}
#mpHud .bt-ord:before{display:none}
#mpHud .bt-ord.foe{--ring:#d9433f}
#mpHud .bt-ord-name,#mpHud .bt-ord-dia{display:none}
#mpHud .bt-ord-face{object-fit:contain;box-sizing:border-box;width:49px;height:49px;padding:6px;box-shadow:none;background:radial-gradient(circle at 50% 40%, #fffbea, var(--bp-paper-d));margin:0;position:static}
#mpHud .bt-ord.now{--ring:#d4a73a;width:55px;height:55px;padding:0;box-shadow:0 4px 10px #00000059}
#mpHud .bt-ord.now:after{display:none}
#mpHud .bt-ord.now .bt-ord-face{width:49px;height:49px;margin:0}
#mpHud .bt-order.preview .bt-ord.moved:before,#mpHud .bt-order.preview .bt-ord.moved:not(.now):after{display:none}
#mpHud .bt-order.preview .bt-ord.moved{box-shadow:0 0 0 4px #f3edd373, 0 4px 10px #00000059}
/* the chip while the other side chooses (A7): x 15..190, y 15..45 (30 tall), cream, 8 px radius, a 22 px navy disc at x 30 with the
   seconds in white bold 11 px (no ring), then 'NAME is choosing' 14 px navy bold */
#mpHud .bt-wait{background:#f4efdf;color:#1d2b4f;text-shadow:none;box-shadow:var(--bp-card);box-sizing:border-box;height:30px;border-radius:8px;gap:8px;padding:0 16px 0 15px;font:700 14px/1 var(--body);top:15px;left:15px;right:auto}
#mpHud .bt-wait .bt-ring{display:none}
#mpHud .bt-wait .bt-timer{width:22px;height:22px}
#mpHud .bt-wait .bt-timer:before{background:#2a3a66;width:22px;height:22px}
#mpHud .bt-wait .bt-timer b{font:700 11px/1 var(--body);color:#fff}
#mpHud .bt-timer:before{background:var(--navy)}
#mpHud .bt-timer b{color:var(--bp-paper)}
/* the action menu (A4 / section 10, at 1868 x 992): four 50 px pills on a 60 px pitch (10 px apart), right ends at x 1835 (33 px
   in), the last 40 px above the bottom; 235 wide (x 1600..1835), the highlighted one 265 (x 1570..1835: 30 px further left), 25 px
   radius; a 28 px round icon centred 18 px in, the 19 px bold label at +45, a 20 x 20 round key badge at the right end.
   Highlighted: navy #2a3a66 with white text, a gold round icon holding the navy glyph (darker while pressed), a white key badge;
   normal: cream with the navy label and glyph, the badge navy on cream; disabled: 55 % with a grey label. No tilts */
#mpHud .bt-hand{gap:10px;width:265px;justify-items:end;display:grid;position:absolute;bottom:40px;right:33px}
#mpHud .bt-hand.enter{animation:.22s cubic-bezier(.2,.9,.3,1) backwards bt-menu-in}
#mpHud .bt-card{pointer-events:auto;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-sizing:border-box;width:235px;height:50px;box-shadow:0 0 0 1px #ddd3b3, 0 4px 12px #00000040;text-align:left;transition:width var(--fast), background var(--fast);border-radius:25px;align-items:center;gap:13px;display:flex;padding:0 15px 0 4px!important;background:#f4efdf!important;color:#1d2b4f!important;font-family:var(--body)!important;font-size:19px!important;font-weight:700!important;line-height:1!important}
#mpHud .bt-card-ic{color:#1d2b4f;background:0 0;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;font:700 18px/1 var(--body);display:grid;transition:background var(--fast)}
#mpHud .bt-card-word{flex:1}
#mpHud .bt .bt-card-key{box-sizing:border-box;border-radius:50%;flex:none;place-items:center;width:20px;min-width:20px;height:20px;padding:0;display:grid;font:700 11px/1 var(--body)!important;color:#1d2b4f!important;box-shadow:none!important;background:#f4efdf!important;border:1px solid #1d2b4f59!important}
@media (pointer:coarse){#mpHud .bt-card-key{display:none}
}
#mpHud .bt-card.on{width:265px;box-shadow:0 6px 16px #00000059;background:#2a3a66!important;color:#fff!important}
#mpHud .bt-card.on .bt-card-ic{background:#e8c25c;color:#1d2b4f}
#mpHud .bt-card.on:is(:hover,:active) .bt-card-ic{background:#c9a440}
#mpHud .bt .bt-card.on .bt-card-key{color:#1d2b4f!important;background:#fff!important;border-color:#fff!important}
#mpHud .bt-card.off{opacity:.55;color:#8a8f99!important}
#mpHud .bt-card.armed,#mpHud .bt-card.armed.on{background:var(--seal)!important;color:var(--bp-paper)!important}
#mpHud .bt-card:active{transform:none}
/* the "who is out" card (A4): x 1615..1830, y 598..693 (215 x 95: 38 px in, 299 px up), cream, 12 px radius, only the partner's
   62 px coin in the middle (cream disc, navy ring, its picture); it stays while the move picker is up (B 1.1) */
#mpHud .bt-roster{background:#f4efdf;box-sizing:border-box;width:215px;height:95px;color:var(--bp-ink);box-shadow:0 0 0 1px #ddd3b3, 0 4px 12px #00000040;border-radius:12px;place-items:center;gap:0;padding:0;bottom:299px;right:38px}
#mpHud .bt-roster-name{text-shadow:none}
#mpHud .bt-roster-name span{color:var(--bp-ink-l)}
#mpHud .bt-roster-face{box-shadow:0 0 0 2px var(--navy);background:radial-gradient(circle at 50% 40%, #fffbea, var(--bp-paper-d))}
#mpHud .bt-roster-face.cur{object-fit:contain;box-sizing:border-box;opacity:1;width:62px;height:62px;padding:8px;background:radial-gradient(circle at 50% 38%, #fffbea, var(--bp-paper-d) 72%);box-shadow:inset 0 0 0 2px #1d2b4f}
#mpHud .bt:has(.v-root) .bt-foot{right:320px}
#mpHud .bt-foot{text-shadow:0 1px 2px #000c;height:30px;bottom:12px;right:33px;font-size:13px}
/* the move picker (A5 / section 10): 2 x 2 cards, 290 x 70, at x 1150 and 1455, y 790 and 870 (15 px column gap, 10 px row gap:
   123 px in from the right, 52 px up), the style strip above at y 745, sliding in from the right over 0.15 s. A card: translucent
   cream rgba(244,239,223,.78), 8 px radius, a 6 px left edge in the type colour, the 26 px type hexagon 22 px in, the name 17 px
   bold navy and the PP '5 / 5' 13 px grey 60 px in (centred at y +22 / +46), the effectiveness tag 10 px bold grey uppercase at
   x +215, y +18, a gold 12 px star right after a same-type move's name; the hovered card under a 35 % navy wash with a small
   white diamond after its PP (x +95 for '5 / 5'). No caption line. Part 3: it stays inside the window from 1100 px up and never
   runs over my card (x 22..462): it moves in toward the 33 px margin, then narrows */
#mpHud .bt-moves{grid-template-columns:1fr 1fr;justify-items:stretch;gap:10px 15px;box-sizing:border-box;width:min(595px,calc(100% - 503px));display:grid;bottom:52px;right:clamp(33px,calc(100% - 1065px),123px)}
#mpHud .bt-moves.enter{animation-duration:.15s}
#mpHud .bt-mv,#mpHud .bt-mv:nth-of-type(n){box-sizing:border-box;width:auto;min-width:0;height:70px;color:#1d2b4f;background:#f4efdfc7;box-shadow:0 2px 8px #00000038;border-radius:8px;margin:0;padding:0;display:block;right:0;translate:none;overflow:hidden}
#mpHud .bt-mv:before{z-index:1;clip-path:none;width:6px;inset:0 auto 0 0;background:var(--tc)!important;-webkit-backdrop-filter:none!important;-webkit-mask:none!important;mask:none!important}
#mpHud .bt-mv.on,#mpHud .bt-mv.on:is(.s-strong,.s-agile){color:#1d2b4f;background:linear-gradient(#2a3a6659,#2a3a6659),#f4efdfc7;margin:0;translate:none;box-shadow:0 2px 8px #00000038}
#mpHud .bt-mv.on.step{animation:none}
#mpHud .bt-mv.on.s-strong:after{display:none}
#mpHud .bt-mv.off{color:#1f304873}
#mpHud .bt-mv>.bt-mv-name{text-shadow:none;position:absolute;top:12px;left:60px;right:12px;font:700 17px/20px var(--body)}
#mpHud .bt-mv:has(>.bt-eff)>.bt-mv-name{right:80px}
#mpHud .bt-mv>.bt-type{position:absolute;top:22px;left:22px}
#mpHud .bt-mv>.bt-pp{position:absolute;top:38px;left:60px}
#mpHud .bt-mv>.bt-sty{position:absolute;top:50%;right:8px;translate:0 -50%}
@media (pointer:fine){#mpHud .bt-mv>.bt-sty{display:none}
}
#mpHud .bt-mv>.bt-eff{position:absolute;top:11px;left:min(215px,calc(100% - 75px));height:14px;gap:3px;padding:0;border-radius:0;font:700 10px/14px var(--body);letter-spacing:.06em;color:#7a7d85!important;background:0 0!important;box-shadow:none!important}
#mpHud .bt-mv.on>.bt-eff{color:#3b4256!important}
#mpHud .bt-best{color:#d4a73a;text-shadow:none;margin-left:5px;font-size:12px}
#mpHud .bt-mv.on .bt-best{color:#d4a73a}
#mpHud .bt-cur{display:none!important}
#mpHud .bt-type{width:26px;height:26px}
#mpHud .bt-pp{min-width:0;height:16px;gap:4px;font:400 13px/16px var(--body);color:#6b6f78;text-shadow:none;background:0 0;border-radius:0;padding:0}
#mpHud .bt-mv:not(.on) .bt-pp{box-shadow:none;background:0 0}
#mpHud .bt-mv.on .bt-pp{color:#2f3a52;background:0 0}
#mpHud .bt-mv.on>.bt-pp:after{content:"";background:#fff;flex:none;width:6px;height:6px;margin-left:4px;transform:rotate(45deg);box-shadow:0 0 0 1px #1d2b4f40}
#mpHud .bt-sty{margin-left:0}
#mpHud .bt-sty-btn{width:18px}
#mpHud .bt-mv:not(.on) .bt-sty{display:none}
#mpHud .bt-sty-gem{box-shadow:inset 0 0 0 1.8px}
#mpHud .bt-styles{background:#f4efdfc7;box-shadow:0 2px 8px #00000038;border-radius:17px;grid-column:1/-1;justify-self:start;margin-left:40px;padding:4px}
#mpHud .bt-styles>small{color:#7a7d85;text-shadow:none;margin:0 8px 0 6px}
#mpHud .bt-styles>.bt-style{clip-path:none;box-sizing:border-box;min-width:60px;height:26px;border-radius:13px;font-weight:700;padding:0 10px!important;color:#1d2b4f!important;background:0 0!important}
#mpHud .bt-styles>.bt-style:hover{color:var(--bp-ink)!important;background:#2b3f5c1a!important}
#mpHud .bt-styles>.bt-style.on,#mpHud .bt-styles>.bt-style.on:hover{color:#fff!important;background:#3a3a3a!important}
#mpHud .bt-styles>.bt-style.on:is(.s-strong,.s-agile){color:#fff!important;background:#3a3a3a!important}
#mpHud .bt-mv-cap{text-shadow:0 1px 2px #000,0 0 6px #0009;order:10;grid-column:1/-1;width:auto;margin:-2px 0;padding-left:8px;right:0!important}
#mpHud .bt-info{clip-path:none;background:var(--navy-d);width:auto;box-shadow:var(--bp-lift);border-radius:14px;order:11;grid-column:1/-1;margin:0;right:0}
#mpHud .bt-mv.stamped .bt-mv-name{opacity:.25}
#mpHud .bt-stamp-ink,#mpHud .bt-stamp.at-row:before{display:none!important}
#mpHud .bt-stamp-word,#mpHud .bt.rough .bt-stamp:not(.at-row) .bt-stamp-word,#mpHud .bt-stamp.at-row .bt-stamp-word{font-family:var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--bp-paper);filter:drop-shadow(0 8px 18px #00000073);-webkit-text-stroke:0;paint-order:normal;text-shadow:none;clip-path:polygon(0 0,100% 0,calc(100% - 22px) 50%,100% 100%,0 100%,22px 50%);background:var(--navy);margin:0;padding:12px 50px 14px 44px;font-size:clamp(30px,3vw,46px);font-weight:800;transform:rotate(-3deg)}
#mpHud .bt-stamp.s-strong .bt-stamp-word{background:color-mix(in srgb, var(--seal) 90%, #2b1610)}
#mpHud .bt-stamp.s-agile .bt-stamp-word{background:color-mix(in srgb, var(--exp) 70%, var(--navy))}
#mpHud .bt-stamp.at-row .bt-stamp-word{clip-path:polygon(0 0,100% 0,calc(100% - 14px) 50%,100% 100%,0 100%,14px 50%);justify-self:center;padding:8px 30px 9px 26px;font-size:20px}
#mpHud .bt-stamp:not(.at-row){top:72%}
/* the message bar (A6 / section 10): x 470..1360, y 935..985 (890 x 50: 7 px up), cream, 12 px radius, level, a hair of shadow; the
   text 18 px navy bold from x 495, vertically centred, the move name in its type colour, a small navy caret 10 px after the text
   pulsing at about a second; a new line replaces the last in place (no slide). Narrower windows: it ends 33 px in (Part 3) */
#mpHud .bt-text{text-align:left;background:#f4efdf;box-sizing:border-box;width:min(890px,calc(100% - 503px));max-width:none;min-height:50px;box-shadow:0 1px 3px #0000002e;border-radius:12px;justify-content:flex-start;margin:0;padding:12px 25px;bottom:7px;left:470px;right:auto;transform:none;transition:opacity .14s}
#mpHud .bt-text p{color:#1d2b4f;text-shadow:none;font:700 18px/26px var(--body)}
#mpHud .bt-text p:after{background:#1d2b4f;width:8px;height:6px;margin-left:10px;vertical-align:.2em}
#mpHud .bt-text.done p:after{animation:1s ease-in-out infinite bt-caret}
@keyframes bt-caret{50%{opacity:.35}
}
#mpHud .bt-accent{font-family:var(--body);vertical-align:0;color:var(--navy);font-size:1em;font-weight:800}
#mpHud .bt-accent-move{color:var(--tc,var(--seal))}
#mpHud .bt-word{font-family:var(--body);paint-order:normal;text-shadow:none;color:var(--bp-ink);background:var(--bp-paper);box-shadow:var(--bp-card);border-radius:10px;padding:8px 16px;font-weight:800;-webkit-text-stroke:0!important;font-size:22px!important}
#mpHud .bt-word.k-super{color:#fff;background:#d7342f}
#mpHud .bt-word.k-crit{color:var(--navy-d);background:var(--brass)}
#mpHud .bt-word.k-crit:after{display:none}
#mpHud .bt-word.k-immune{color:var(--bp-ink-l)}
/* the judgement slip beside the target (8.4, B 63.8 / 64.0, D4): 'Super effective!' white bold on red #d7342f, 'Not very effective...'
   white on grey, 'Critical hit!' on gold, tilted about 8 degrees (battle.js BattleHud.word sets --tilt), with a dark drop shadow */
#mpHud .bt-word.k-weak{color:#fff;background:#8d8f96}
#mpHud .bt-word:is(.k-super,.k-weak,.k-crit){box-shadow:0 3px 0 #0000003d,0 6px 14px #00000066}
/* the damage slip (A2, B 4.0 / 24.2): a small cream slip about 60 x 24, rounded, the number in navy bold, popped 30 px above the foe
   label (or above my card when mine is hit; battle.js BattleHud.damage places it); it rises about 20 px and fades over 0.6 s */
#mpHud .bt-dmg{position:absolute;z-index:6;box-sizing:border-box;min-width:60px;height:24px;padding:0 10px;display:grid;place-items:center;background:#f4efdf;color:#1d2b4f;border-radius:12px;box-shadow:0 0 0 1px #ddd3b3,0 3px 8px #00000047;font:800 15px/1 var(--body);white-space:nowrap;pointer-events:none;transform:translate(-50%,-50%);animation:.6s ease-out both bt-dmg}
@keyframes bt-dmg{0%{opacity:0;transform:translate(-50%,-50%)scale(.6)}
15%{opacity:1;transform:translate(-50%,-50%)scale(1.08)}
25%{transform:translate(-50%,-50%)scale(1)}
60%{opacity:1}
to{opacity:0;transform:translate(-50%,calc(-50% - 20px))}
}
/* the faint's pink band (B 25.4, C 65.3, D2.6, D5): a pale pink horizontal band across the whole frame at the fainted creature's
   height, the after-image of a beam, under the widgets; in at once, fading out over 0.6 s (battle.js BattleHud.band sets top/height) */
#mpHud .bt-fband{position:absolute;left:0;right:0;z-index:0;pointer-events:none;translate:0 -50%;background:linear-gradient(180deg,#ffc4dc00,#ffc4dcb3 30%,#fff0f6e6 50%,#ffc4dcb3 70%,#ffc4dc00);mix-blend-mode:screen;animation:.6s ease-out both bt-fband}
@keyframes bt-fband{0%{opacity:1}
to{opacity:0}
}
/* the send-out's speech bubble (7.7, A9, C 47.7..49.0): `JON wants to battle!` in white 16 px bold on a navy (#2a3a66) rounded box
   190 x 34 (at 1868 x 992, scaled with the window), a small triangular tail at its bottom-right corner pointing down-right at the other
   trainer's head (battle.js BattleHud.placeBubble keeps the box 60 px above and 80 px left of the head); in over 0.2 s, out by 49.0 */
#mpHud .bt-bubble{position:absolute;top:0;left:0;z-index:5;box-sizing:border-box;min-width:clamp(140px,10.2vw,190px);height:clamp(28px,1.82vw,34px);padding:0 clamp(12px,.86vw,16px);display:flex;align-items:center;justify-content:center;background:#2a3a66;color:#fff;border-radius:10px;font:700 clamp(13px,.86vw,16px)/1 var(--body);white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .2s ease-out;will-change:transform}
#mpHud .bt-bubble:after{content:"";position:absolute;right:-12px;bottom:-12px;width:24px;height:24px;background:#2a3a66;clip-path:polygon(0 0,55% 0,100% 100%,0 55%)}
#mpHud .bt-bubble.on{opacity:1}
#mpHud .bt-bubble.out{opacity:0;transition-duration:.15s;transition-timing-function:ease-in}
#mpHud .bt-bubble.lost{visibility:hidden}
/* a hit on a fighter (B 4.0, section 4.4): its label (or my card) shakes 2 px and flashes for 0.2 s */
#mpHud .bt-plate.hit .bt-plate-body{animation:.2s linear bt-plate-hit}
@keyframes bt-plate-hit{0%{filter:brightness(1.6)}
25%{translate:2px}
50%{translate:-2px;filter:brightness(1.3)}
75%{translate:2px}
to{translate:0;filter:none}
}
#mpHud .bt-win-panel,#mpHud .bt-xp:before,#mpHud .bt-win-strip{background:var(--bp-paper);border-radius:14px}
#mpHud .bt-xp-top b,#mpHud .bt-xp-gain b{font-family:var(--body);font-weight:800}
#mpHud .bt-xp-up{font-family:var(--body);font-size:15px;font-weight:800}
#mpHud .bt-win-go{background:var(--navy)}
/* the Defeated card (A8 / sections 6 and 10, at 1868 x 992): a red #c93a3a ribbon 380 x 70 with notched (swallow-tail) ends and a
   darker red under-shadow, no tilt, centred on the foe creature's screen point (about x 1000, y 480; battle.js sets --bt-rx /
   --bt-ry, else 50 % / 48 %); 'Defeated' 34 px cream serif italic; it fades in over 0.2 s and goes in one frame on Space. Under
   it 'Your team is out of strength.' 16 px white regular, centred 60 px below the ribbon's centre (y 540), and 'Space' (a dark
   rounded key badge, white 12 px) 'Continue' (white 13 px) centred 105 px below it (y 585). The victory card is the same ribbon
   in gold with navy letters, its XP rows under it */
#mpHud .bt-title:is(.k-defeat,.k-victory){inset:auto;top:var(--bt-ry,48%);left:var(--bt-rx,50%);translate:-50% -50%;place-items:center}
#mpHud .bt-title.k-defeat{filter:drop-shadow(0 4px 0 #8a2424)}
#mpHud .bt-title.k-victory{filter:drop-shadow(0 4px 0 #8c6a1e)}
#mpHud .bt-title:is(.k-defeat,.k-victory) .bt-title-word{box-sizing:border-box;width:380px;height:70px;display:grid;place-items:center;margin:0;padding:0 40px;font:italic 400 34px/1 'Playfair',Georgia,serif;letter-spacing:0;text-transform:none;white-space:nowrap;clip-path:polygon(0 0,100% 0,calc(100% - 24px) 50%,100% 100%,0 100%,24px 50%);filter:none;transform:none}
#mpHud .bt-title.k-defeat .bt-title-word{background:#c93a3a;color:#f4efdf}
#mpHud .bt-title.k-victory .bt-title-word{background:var(--brass);color:var(--navy-d)}
#mpHud .bt-title:is(.k-defeat,.k-victory).in .bt-title-word{animation:none}
#mpHud .bt-title.k-defeat.out{animation:none;opacity:0}
#mpHud .bt-win.k-defeat{box-sizing:border-box;width:max-content;max-width:calc(100% - 32px);gap:0;justify-items:center;top:calc(var(--bt-ry,48%) + 60px);left:var(--bt-rx,50%);right:auto;transform:translate(-50%,-50%)}
#mpHud .bt-win.k-defeat.on{animation:.2s ease-out both bt-title-in}
#mpHud .bt-win.k-defeat:before{background:none}
#mpHud .bt-win.k-defeat .bt-win-sub{background:none;padding:0;color:#fff;font:400 16px/22px var(--body);white-space:nowrap;text-shadow:0 1px 2px #0009}
#mpHud .bt-win.k-defeat .bt-win-foot{position:absolute;top:calc(50% + 45px);left:50%;translate:-50% -50%;justify-content:center;white-space:nowrap;color:#fff;font-size:13px;text-shadow:0 1px 2px #0009}
#mpHud .bt-win.k-defeat .bt-win-foot>span{gap:8px;color:#fff;font-size:13px}
#mpHud .bt-win.k-defeat .bt-win-foot kbd{height:20px;padding:0 7px;border-radius:6px;box-shadow:none;color:#fff!important;background:#1e1e22d9!important;border:none!important;font-size:12px!important;font-weight:700!important}
#mpHud .bt-win-foot>span.t-touch{display:none}
@media (pointer:coarse){#mpHud .bt-win.k-defeat:before{inset:-200vh -200vw;pointer-events:auto}
#mpHud .bt-win-foot>span.t-key{display:none}
#mpHud .bt-win-foot>span.t-touch{display:inline-flex}
}
#mpHud .bt-win.k-victory{top:calc(var(--bt-ry,48%) + 49px);left:var(--bt-rx,50%);right:auto;width:min(480px,calc(100% - 32px));transform:translate(-50%)}
@media (orientation:landscape),(width>=761px){#mpHud .bt.ending:has(>.bt-win.k-victory) .bt-bar{background:0 0}
}
#mpHud .bt-sheet-head b{font-family:var(--body);font-size:24px;font-weight:800}
#mpHud .bt-mon{background:var(--bp-paper);color:var(--bp-ink);box-shadow:var(--bp-card);border-radius:14px}
#mpHud .bt-mon-lv{color:var(--bp-ink-l)}
#mpHud .bt-mon.on{background:var(--navy);color:var(--bp-paper)}
#mpHud .bt .bt-item{color:var(--bp-ink)}
#mpHud .bt-item:before{clip-path:none;background:var(--bp-paper);box-shadow:var(--bp-card);border-radius:14px}
#mpHud .bt .bt-item.on{color:var(--bp-paper)}
#mpHud .bt-item.on:before{background:var(--navy)}
@media (height<=560px),(width<=900px){#mpHud .bt-me{scale:.82}
#mpHud .bt-hand{transform-origin:100% 100%;scale:.85}
#mpHud .bt-moves{width:min(595px,calc(100% - 424px));right:clamp(33px,calc(100% - 986px),123px)}
#mpHud .bt-roster{bottom:260px}
#mpHud .bt-text{left:391px;width:min(890px,calc(100% - 424px))}
#mpHud .bt-title-word{font-size:24px}
}
@media (orientation:landscape) and (height<=500px){#mpHud .bt-me{gap:10px;width:300px;padding:8px 12px 8px 8px;bottom:12px;left:12px;scale:.78}
#mpHud .bt-me-face{width:50px;height:50px}
#mpHud .bt-me .bt-name{font-size:18px}
#mpHud .bt-order{gap:8px;top:10px;left:12px}
#mpHud .bt-order-head{padding:4px 12px 4px 8px;font-size:12px}
#mpHud .bt-ord,#mpHud .bt-ord.now{width:34px;height:34px}
#mpHud .bt-ord.now{width:42px;height:42px}
#mpHud .bt-ord-face{width:28px;height:28px}
#mpHud .bt-ord.now .bt-ord-face{width:34px;height:34px}
#mpHud .bt-ord+.bt-ord{margin-left:12px}
#mpHud .bt-ord+.bt-ord:after{width:12px;left:-12px}
#mpHud .bt-foe .bt-plate-body{min-width:170px;padding:6px 10px 8px}
#mpHud .bt-foe .bt-name{font-size:14px}
#mpHud .bt-hand{gap:6px;width:200px;bottom:12px;right:14px;scale:none}
#mpHud .bt-card{width:180px;height:42px;font-size:16px!important}
#mpHud .bt-card.on{width:200px}
#mpHud .bt-card-ic{width:26px;height:26px}
#mpHud .bt-roster{display:none}
#mpHud .bt-moves{gap:6px 8px;width:min(440px,calc(100% - 260px));bottom:12px;right:12px}
#mpHud .bt-mv,#mpHud .bt-mv:nth-of-type(n){height:52px}
#mpHud .bt-mv>.bt-mv-name{top:6px;font-size:15px}
#mpHud .bt-mv>.bt-type{top:13px}
#mpHud .bt-mv>.bt-pp{top:28px}
#mpHud .bt-mv>.bt-eff{top:5px}
#mpHud .bt-text{width:auto;min-height:48px;padding:10px 18px;bottom:12px;left:260px;right:14px}
#mpHud .bt-text p{font-size:16px}
#mpHud .bt-title-word{font-size:22px}
#mpHud .bt-foot{display:none}
#mpHud .bt-menu.v-party,#mpHud .bt-menu.v-items{zoom:.8;gap:8px;bottom:12px;right:12px}
}
/* the turn chain sits to the right of the menu gears (owner 2026-10-21): the gears (#paoMenu, hud.css) are drawn
   100 x 100 px in the top left corner at every size (their box shrinks to 64 up to 768 px wide, the drawing does not);
   this comes last so it wins at every size. Where the strip is scaled down (small screens) it shrinks toward its own
   left end, so it keeps that gap */
#mpHud .bt-order{left:104px;transform-origin:0 0}
/* between turns it only fades (owner 2026-10-21: "still behind, fix"): the slide 24 px to the left it had took the
   "Next up" tab under the gears as it went and came back */
#mpHud .bt.plates:not(.choosing) .bt-order{translate:none}

/* ---- the battle widgets in the paper style (owner 2026-10-21: the ball bar's and the side rail's kraft paper): my
   card, the foe label and the message bar are kraft paper with an ink rim, a dashed stitch inset and a flat ink drop;
   ink text; the HP track is a darker kraft groove with an ink edge; the level pill stays ink with cream letters ---- */
#mpHud .bt-me, #mpHud .bt-foe .bt-plate-body, #mpHud .bt-text {
  background: var(--paper-img) center / 140% 220% no-repeat, #e9d9b4;
  border: 2px solid #2b2620; box-shadow: 3px 4px 0 #2b262038, 0 8px 18px #00000040; color: #2b2620;
}
#mpHud .bt-me::after, #mpHud .bt-foe .bt-plate-body::after, #mpHud .bt-text::after {
  content: ''; position: absolute; inset: 4px; border: 1.5px dashed #2b262055; border-radius: inherit; pointer-events: none;
}
#mpHud .bt-foe .bt-plate-body { position: relative; rotate: 1deg; }
#mpHud .bt-text { rotate: -.4deg; }
#mpHud .bt-me .bt-name, #mpHud .bt-foe .bt-name, #mpHud .bt-text p, #mpHud .bt-me .bt-hpnum { color: #2b2620; }
#mpHud .bt-text p:after { background: #2b2620; }
#mpHud .bt-me .bt-hp, #mpHud .bt-foe .bt-hp { background: #a88b5c; box-shadow: inset 0 1px 2px #2b262066, 0 0 0 1.5px #2b2620; }
#mpHud .bt-me .bt-me-face { background-color: #f6eedb; box-shadow: 0 0 0 2px #2b2620, 2px 3px 0 #2b26202e; }
#mpHud .bt-me .bt-lv, #mpHud .bt-foe .bt-lv { background: #2b2620; color: #f6eedb; }
