/* tangibles.fun's aiming, race and draw screens, as its stylesheet draws them (read 2026-10-20 from the live
   site; owner's call: identical in function and look). Its colours and fonts live on these elements only, so
   the rest of the HUD keeps its own look. The class names are tangibles' own: .field-cross / .field-lock /
   .field-hint (aiming), .ring-wrap and .rt-* (the ring), .enc* (the race screen), .draw-* (the draw card),
   .hitword (the words that rise off a creature), .gotcha, .ballchip / .ballico (ball buttons). */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Fira+Mono:wght@500&family=Kaushan+Script&display=swap');

.field-cross, .field-lock, .field-hint, .field-balls, .ring-wrap, .enc, .enc-mash, .draw-card, .draw-dim, .hitword, .gotcha, .flash {
  --vh: 1vh; --paper: #f3edd3; --paper-2: #eae2c4; --navy: #2b3f5c; --navy-d: #1f3048; --charcoal: #2a2a2e; --accent: #e6dc3a;
  --seal: #d9473f; --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; --green: #62d395; --red: #f07a6f; --btn-bg: #f3edd31f; --btn-hi: #f3edd333; --btn-fg: var(--text);
  --pri-bg: #f3edd3; --pri-fg: #2b3f5c; --iron-d: #3f4147; --r: 6px; --fast: 0.1s 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;
  --brush: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='400' viewBox='0 0 1600 400' preserveAspectRatio='none'><defs><filter id='f' x='-6%25' y='-25%25' width='112%25' height='150%25'><feTurbulence type='fractalNoise' baseFrequency='0.0035 0.0175' numOctaves='3' seed='7'/><feDisplacementMap in='SourceGraphic' scale='104' xChannelSelector='R' yChannelSelector='G'/><feGaussianBlur stdDeviation='2.5'/></filter><linearGradient id='g' x1='0' x2='1'><stop offset='0' stop-opacity='0.55'/><stop offset='0.06' stop-opacity='1'/><stop offset='0.78' stop-opacity='1'/><stop offset='1' stop-opacity='0'/></linearGradient></defs><path filter='url(%23f)' fill='url(%23g)' d='M32 80 L1576 52 L1588 348 L20 332 Z'/><path filter='url(%23f)' fill='url(%23g)' opacity='0.55' d='M160 24 L1320 16 L1320 68 L160 80 Z'/><path filter='url(%23f)' fill='url(%23g)' opacity='0.55' d='M280 328 L1488 344 L1488 384 L280 376 Z'/></svg>");
  --torn-r: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40' preserveAspectRatio='none'><path d='M0 0 L7 0 L6.6 4.6 L6.9 8.3 L6.7 11.2 L6 14.9 L5.3 17.9 L5.7 20.8 L6 25.5 L5.1 29.5 L6.5 33.1 L6 37.2 L4.2 40 L0 40zM0 0.9Q15.3 1.9 27.8 0.7Q15.3 3.4 0 2.4zM0 2.3Q11.1 2.1 20.1 5.4Q11.1 5.2 0 5.5zM0 5.6Q15.7 6.3 28.5 6.9Q15.7 8 0 7.4zM0 9Q5.4 8.6 9.8 8.9Q5.4 11 0 11.4zM0 10.1Q7.5 9.2 13.6 13.4Q7.5 14.1 0 15zM0 14.2Q13.6 13.1 24.7 14.1Q13.6 15.5 0 16.5zM0 15.5Q10.6 15.6 19.3 16.6Q10.6 19.9 0 19.8zM0 22.6Q4.8 23.2 8.7 23.2Q4.8 26.3 0 25.7zM0 25Q11.2 24.1 20.4 26.5Q11.2 26.1 0 27zM0 27.2Q5.7 26.7 10.4 27.8Q5.7 29.6 0 30.2zM0 30.2Q4.4 29.7 8 33.6Q4.4 34.6 0 35.1zM0 33.9Q7.9 33.6 14.4 35.3Q7.9 38.2 0 38.5zM14.1 8q1.5 -0.7 3 0.1q-1.5 0.7 -3 0zM25.2 16.1q1 -0.9 2 0.1q-1 0.9 -2 0z'/></svg>");
  font-family: var(--body); color: var(--text);
}
#mpHud .pass { pointer-events: none; }
#mpHud :is(.enc, .field-hint, .field-cross, .field-lock, .draw-card, .ballchip) kbd, #mpHud .ballchip 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 .enc .num, #mpHud .draw-card .num, #mpHud .ballchip .num { font-family: var(--mono); letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; }
#mpHud .enc .btn { all: unset; box-sizing: border-box; cursor: pointer; --cut: 10px; --b-bg: var(--btn-bg); --b-fg: var(--btn-fg); --b-hi: var(--btn-hi); font-family: var(--display); letter-spacing: 0.01em; min-height: 40px;
  padding: 8px calc(var(--cut) + 14px); background: var(--b-bg); color: var(--b-fg); user-select: none; 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%);
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast), filter var(--fast);
  border: none; border-radius: 0; justify-content: center; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 500; line-height: 1.2; text-decoration: none; display: inline-flex; position: relative; }
#mpHud .enc .btn:hover { background: var(--b-hi); box-shadow: inset 0 -3px 0 var(--accent); }
#mpHud .enc .btn:active { filter: brightness(0.96); transform: translateY(1px); }
#mpHud .enc .btn.sm { --cut: 8px; min-height: 30px; padding: 5px calc(var(--cut) + 9px); font-size: 13px; }
#mpHud .enc .btn[disabled] { opacity: 0.4; cursor: default; filter: grayscale(0.5); box-shadow: none; transform: none; }
#mpHud .status-chip { box-sizing: border-box; background: var(--chip-bg); height: 22px; color: var(--cream-ink); font-family: var(--body); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; border: none; border-radius: 2px; align-items: center; gap: 5px; padding: 0 10px; font-size: 12px; font-weight: 600; line-height: 1; display: inline-flex; }
#mpHud .status-chip.danger { background: var(--seal); color: var(--cream-ink); }
#mpHud .flash { z-index: 40; pointer-events: none; transition: opacity 0.6s; position: fixed; inset: 0; }

/* ---- the ball icon and the ball buttons ---- */
/* the icon is the 3D ball itself, rendered by tools/ball-icons.cjs into img/balls/<type>.png (owner 2026-10-22: "make these
   balls in here identical to what the 3D versions look like"); 108% because the pictures keep a thin clear margin */
#mpHud .ballico { background: url(/game/client/img/balls/basic.png) center / 108% no-repeat; filter: drop-shadow(0 2px 2px #00000059);
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: block; position: relative; }
#mpHud .ballico:before, #mpHud .ballico > .latch { display: none; }
#mpHud .ballico[data-ball="great"] { background-image: url(/game/client/img/balls/great.png); }
#mpHud .ballico[data-ball="ultra"] { background-image: url(/game/client/img/balls/ultra.png); }
#mpHud .ballico[data-ball="prism"] { background-image: url(/game/client/img/balls/prism.png); }
#mpHud .ballchip { all: unset; box-sizing: border-box; width: 50px; height: 50px; color: var(--cream-ink); cursor: pointer; border: 2px solid var(--cream-85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: #14141880; border-radius: 50%; flex: none; place-items: center; padding: 0; font-size: 13px; transition: transform 0.1s; display: grid; position: relative; box-shadow: 0 3px 10px #00000052, inset 0 -3px 8px #0000001f; font-family: var(--body); }
#mpHud .ballchip:hover { transform: scale(1.06); }
#mpHud .ballchip:active { transform: scale(0.96); }
#mpHud .ballchip .num { background: var(--chip-bg); min-width: 20px; font: 500 11px/1.35 var(--mono); color: var(--cream-ink); text-align: center; border-radius: 2px; padding: 1px 5px; position: absolute; bottom: -6px; right: -7px; }
#mpHud .ballchip kbd { position: absolute; top: -6px; left: -6px; }
#mpHud .ballchip .name { display: none; }
#mpHud .ballchip:is(.empty, .locked) { opacity: 0.45; filter: grayscale(0.8); }
#mpHud .ballchip.ball:first-child { order: 1; } #mpHud .ballchip.ball:nth-child(2) { order: 2; } #mpHud .ballchip.ball:nth-child(3) { order: 3; } #mpHud .ballchip.ball:nth-child(4) { order: 5; }
#mpHud .enc-balls:has(> .ball:first-child.on) > .ball:nth-child(3), #mpHud .field-balls:has(> .ball:first-child.on) > .ball:nth-child(3) { order: 0; }
#mpHud .enc-balls:has(> .ball:nth-child(3).on) > .ball:first-child, #mpHud .field-balls:has(> .ball:nth-child(3).on) > .ball:first-child { order: 4; }
#mpHud .ballchip.ball.on { border-width: 3px; border-color: var(--cream-ink); background: radial-gradient(circle at 50% 34%, #fffdf6d1, #e8dec499 72%); width: 78px; height: 78px; box-shadow: 0 5px 18px #00000061; }
#mpHud .ballchip.ball.on .num { border-radius: 2px; min-width: 46px; padding: 2px 8px; font-size: 15px; bottom: -21px; left: 50%; right: auto; transform: translate(-50%); }
#mpHud .ballchip.ball.on kbd { top: -2px; left: -2px; }
#mpHud .ballchip.ball.on .name { text-align: center; white-space: nowrap; min-width: 150px; font: 500 15px/1.2 var(--body); color: var(--cream-ink); background: var(--chip-bg); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); padding: 5px 24px 6px; display: block; position: absolute; top: calc(100% + 30px); left: 50%; transform: translate(-50%); }
#mpHud .ballchip.on:not(.ball) { border-color: var(--accent); box-shadow: 0 3px 10px #00000052; }
#mpHud .ballchip.ball.on .ballico { width: 50px; height: 50px; filter: drop-shadow(0 3px 3px #00000059); }
#mpHud .field-balls { pointer-events: auto; align-items: center; gap: 8px; display: flex; position: absolute; bottom: 74px; right: 26px; }
/* ---- the ball bar on the island, bottom right (hud.js setBalls; owner 2026-10-21): tangibles' .field-balls as
   their stylesheet draws it (no berry row: the owner took berries out of the game, 2026-10-21) ---- */
#mpHud .mp-ballbar { display: contents; }
#mpHud .field-balls > .ballchip.ball.partner { background: radial-gradient(circle, #fffdf6e6 0 58%, #e0574f 59% 100%); border-color: #e0574f; order: -1; }
#mpHud .field-balls > .ballchip.ball.partner.on { border-color: var(--cream-ink); }
/* a square cut of the picture (its height as a share of the chip does not hold inside the grid, so a tall creature's
   picture kept its own shape and spilled out of the ring): the same width, made square, cropped toward the head */
#mpHud .ballchip.partner .partner-face { display: block; object-fit: cover; object-position: 50% 22%; pointer-events: none; background: var(--cream-85); border-radius: 50%; width: 74%; height: auto; aspect-ratio: 1 / 1; box-shadow: 0 0 0 2px #1414188c; }
#mpHud .ballchip.partner .partner-face:not([src]) { visibility: hidden; }
#mpHud .field-balls > .ballchip.ball.on .name { top: calc(100% + 23px); }
/* where it sits: tangibles' height (74 px up), just left of paodao's bag in the corner (100 x 100) so
   the tag under the ball in hand stays clear of it; on a touch screen left of the Throw / Battle / Race column, without
   the tags; on a phone it is off, as tangibles takes it off there */
#mpHud .mp-ballbar > .field-balls { right: 112px; }
@media (max-width: 720px) {
  #mpHud .mp-ballbar > .field-balls { gap: 6px; bottom: 64px; }
}
@media (pointer: coarse) {
  #mpHud .mp-ballbar > .field-balls { right: 190px; bottom: 100px; }
  #mpHud .field-balls .ballchip.ball.on .name { display: none; }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px), (pointer: coarse) and (orientation: portrait) and (max-width: 760px) {
  #mpHud .mp-ballbar { display: none; }
}
/* off the screen where tangibles takes it off: in a battle, on the race screen, and (as the old counter was) while the
   game's own How to Move / Sprint / Jump cards use that spot */
body:is(.in-battle, .in-encounter) #mpHud .field-balls { display: none !important; }
#mpHud.mp-in-battle .field-balls { display: none !important; }
#mpHud.mp-tutorial .field-balls { opacity: 0; pointer-events: none; }

/* ---- aiming, as the owner's video of tangibles shows it (read frame by frame, 2026-10-21): the reticle mid-screen is
   four 2x8 ticks 18 px out and a 14 px ring; on a creature the ring is cyan and dashed and two cyan arcs of radius
   42 px stand either side of the reticle (fixed to it); out of reach the ring goes faint grey and the arcs a faint full
   ring. One cream script label sits 56 px under the reticle with a 3 px accent bar: "<Species> · Unaware" when locked
   (cyan bar), "Out of reach" when too far (grey bar). The hint lines sit bottom right. ---- */
/* every size is a share of the screen height (--vh = 1% of it): tangibles' 678 px tall reference drew the ring 14 px,
   the ticks 2x7 with a dark outline 20 to 27 px out (25 to 26 out of reach), the brackets on a radius of 43 px over
   60 degrees each, the label 17 px tall 48 px below, the faint big ring on a radius of 48 px (docs/FIVE-ITEMS.md item 1) */
#mpHud .field-cross { pointer-events: none; --vh: 1vh; --c: #fbf8ef; --tk: #fbf8ef; --arc: #7fe6ff; --tick: calc(var(--vh) * 2.95); width: 0; height: 0; position: absolute; top: 50%; left: 50%; }
#mpHud .field-cross > i { left: calc(var(--vh) * -4.5); top: calc(var(--vh) * -4.5); width: calc(var(--vh) * 9); height: calc(var(--vh) * 9); position: absolute; }
/* the four ticks: a capsule each, the dark outline under the pale bar; they slide out when out of reach */
#mpHud .field-cross > i:before { content: ""; position: absolute; inset: calc(50% - var(--tick) - var(--vh) * 1.03) 0 auto 0; height: calc(var(--vh) * 1.03); width: calc(var(--vh) * 0.3); margin: 0 auto; background: var(--tk); border-radius: 99px; box-shadow: 0 0 0 1px #262a30b3; transition: inset 0.2s;
  }
#mpHud .field-cross > i > s { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: block; }
#mpHud .field-cross > i > s:before, #mpHud .field-cross > i > s:after, #mpHud .field-cross > i > b:before { content: ""; position: absolute; background: var(--tk); border-radius: 99px; box-shadow: 0 0 0 1px #262a30b3; transition: transform 0.2s; }
#mpHud .field-cross > i > s:before { left: calc(var(--vh) * -0.15); top: var(--tick); width: calc(var(--vh) * 0.3); height: calc(var(--vh) * 1.03); }   /* below */
#mpHud .field-cross > i > s:after { top: calc(var(--vh) * -0.15); left: calc(-1 * var(--tick) - var(--vh) * 1.03); height: calc(var(--vh) * 0.3); width: calc(var(--vh) * 1.03); }   /* left */
#mpHud .field-cross > i > b { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: block; }
#mpHud .field-cross > i > b:before { top: calc(var(--vh) * -0.15); left: var(--tick); height: calc(var(--vh) * 0.3); width: calc(var(--vh) * 1.03); }   /* right */
#mpHud .field-cross.far { --tick: calc(var(--vh) * 3.75); --tk: #b4b7bf; }
/* the centre ring: four dashes; white with nothing under it, cyan when locked, a blurred grey when out of reach */
#mpHud .field-cross > i:after { content: ""; box-sizing: border-box; width: calc(var(--vh) * 2.06); height: calc(var(--vh) * 2.06); margin: calc(var(--vh) * -1.03) 0 0 calc(var(--vh) * -1.03); border-radius: 50%; position: absolute; left: 50%; top: 50%;
  background: repeating-conic-gradient(from 12deg, var(--c) 0 66deg, transparent 66deg 90deg); transition: filter 0.12s, width 0.12s, height 0.12s;
  -webkit-mask: radial-gradient(circle closest-side, #0000 0 calc(50% - 1.8px), #000 calc(50% - 1.4px) calc(50% - 0.2px), #0000); mask: radial-gradient(circle closest-side, #0000 0 calc(50% - 1.8px), #000 calc(50% - 1.4px) calc(50% - 0.2px), #0000); }
/* the reload ring round the eye (owner 2026-10-21): fills clockwise from the top over the 0.9 s after a throw (--rl 0..1,
   aim.js), a dark track under it; full, it grows a touch and fades: the next ball is ready */
#mpHud .field-cross > i > u { position: absolute; left: 50%; top: 50%; width: calc(var(--vh) * 4.2); height: calc(var(--vh) * 4.2); margin: calc(var(--vh) * -2.1) 0 0 calc(var(--vh) * -2.1); border-radius: 50%;
  background: conic-gradient(var(--tk) calc(var(--rl, 1) * 360deg), #262a3073 0);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - var(--vh) * 0.5), #000 calc(100% - var(--vh) * 0.5 + 0.6px)); mask: radial-gradient(farthest-side, #0000 calc(100% - var(--vh) * 0.5), #000 calc(100% - var(--vh) * 0.5 + 0.6px));
  opacity: 0; scale: 1.25; transition: opacity 0.28s ease-out, scale 0.28s ease-out; }
#mpHud .field-cross.reload > i > u { opacity: 1; scale: 1; transition: none; }
#mpHud .field-cross.reload > i:after { opacity: 0.55; }
#mpHud .field-cross.far > i:after { background: #ffffff8c; filter: blur(1px); width: calc(var(--vh) * 2.5); height: calc(var(--vh) * 2.5); margin: calc(var(--vh) * -1.25) 0 0 calc(var(--vh) * -1.25); }
/* the two brackets: 60 degrees each, left and right, on a radius of 6.3% of the height, with a soft glow; and the
   faint big ring (radius 7.1%) with nothing under the reticle and when out of reach */
#mpHud .field-cross:before { content: ""; left: calc(var(--vh) * -6.3); top: calc(var(--vh) * -6.3); width: calc(var(--vh) * 12.6); height: calc(var(--vh) * 12.6); border-radius: 50%; opacity: 0; scale: 1.1;
  background: conic-gradient(transparent 0 60deg, var(--arc) 60deg 120deg, transparent 120deg 240deg, var(--arc) 240deg 300deg, transparent 300deg);
  -webkit-mask: radial-gradient(circle closest-side, #0000 0 calc(100% - 2.4px), #000 calc(100% - 1.9px) calc(100% - 0.3px), #0000); mask: radial-gradient(circle closest-side, #0000 0 calc(100% - 2.4px), #000 calc(100% - 1.9px) calc(100% - 0.3px), #0000);
  filter: drop-shadow(0 0 2px #5fd3e0b3); transition: opacity 0.15s, scale 0.15s cubic-bezier(0.2, 0.9, 0.3, 1); position: absolute; }
#mpHud .field-cross.on:before { opacity: 1; scale: 1; }
#mpHud .field-cross:after { content: ""; left: calc(var(--vh) * -7.1); top: calc(var(--vh) * -7.1); width: calc(var(--vh) * 14.2); height: calc(var(--vh) * 14.2); border-radius: 50%; position: absolute; opacity: 0.13; background: #fff; transition: opacity 0.15s;
  -webkit-mask: radial-gradient(circle closest-side, #0000 0 calc(100% - 3px), #000 calc(100% - 2.4px) calc(100% - 0.4px), #0000); mask: radial-gradient(circle closest-side, #0000 0 calc(100% - 3px), #000 calc(100% - 2.4px) calc(100% - 0.4px), #0000); }
#mpHud .field-cross.on:after { opacity: 0; }
/* the label: cream, square corners, a shadow line under and right, a 2 px accent bar on the left, dark script text */
/* the label under the reticle in the Gotcha banner's style (owner 2026-10-21: "change this to the same style as the caught
   popup", notify.css .gotcha.open): a dark brush stroke, the creature's name in the script, how it stands after it in the
   body type, both cream, and the line under it in the reticle's colour (cyan unaware, yellow sensed, red about to run,
   faint grey out of reach); the brush draws in and the words slide in when it appears (aim.js adds .in) */
#mpHud .field-cross > small { left: 0; top: calc(var(--vh) * 6.6); position: absolute; transform: translate(-50%); isolation: isolate; display: flex; align-items: baseline; gap: calc(var(--vh) * .9);
  box-sizing: border-box; white-space: nowrap; padding: calc(var(--vh) * 1.15) calc(var(--vh) * 3.2) calc(var(--vh) * 1.45) calc(var(--vh) * 2.8);
  background: none; box-shadow: none; border-radius: 0; color: var(--cream-ink); font: 600 calc(var(--vh) * 1.6)/1.2 var(--body); text-shadow: 0 1px #00000080; }
#mpHud .field-cross > small::before { content: ''; position: absolute; inset: 0; z-index: -1; transform-origin: 0; background: #0e0e0cd1;
  -webkit-mask: var(--brush) 0 0 / 100% 100% no-repeat; mask: var(--brush) 0 0 / 100% 100% no-repeat; }
#mpHud .field-cross > small::after { content: ''; position: absolute; left: 8%; right: 30%; bottom: calc(var(--vh) * .85); height: 2px; background: linear-gradient(90deg, var(--c), transparent); }
#mpHud .field-cross > small b { font: 400 calc(var(--vh) * 2.6)/1 var(--font-display); color: var(--cream-ink); text-shadow: var(--hit-shadow); }
#mpHud .field-cross > small.in::before { animation: .5s cubic-bezier(.2, .8, .2, 1) both gotcha-ink; }
#mpHud .field-cross > small.in > * { animation: .6s ease-out both cross-label-in; }
@keyframes cross-label-in { 0% { opacity: 0; translate: -10px 0; } }
@media (prefers-reduced-motion: reduce) { #mpHud .field-cross > small.in::before, #mpHud .field-cross > small.in > * { animation: none; } }
#mpHud .field-cross > small:empty { display: none; }
#mpHud .field-cross.on { --c: #7fe6ff; }
#mpHud .field-cross.a1 { --c: #ffd23f; --arc: #ffd23f; }
#mpHud .field-cross.a2 { --c: #ff5a4f; --arc: #ff5a4f; }
#mpHud .field-cross.far { --c: #b4b7bf4d; }
#mpHud .field-hint { font: 500 13px/1.3 var(--body); color: var(--cream-ink); white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #000c, 0 0 8px #00000059; align-items: center; gap: 4px 14px; padding: 0; display: flex; position: absolute; bottom: 30px; right: 26px; }
#mpHud .field-hint > .hint { align-items: center; gap: 6px; display: inline-flex; }
#mpHud .field-hint:empty { display: none; }
/* while aiming the rest of the HUD steps aside, as tangibles' does */
body.field-aiming #mpHud :is(.mp-dock, .mp-mapbox, .mp-compass, .mp-chat, .mp-tags, .mp-toast, .mp-sidebtn) { opacity: 0 !important; pointer-events: none; transition: opacity 0.15s; }
body.field-aiming #mpHud .mp-money { opacity: 0; transition: opacity 0.15s; }
body.aiming #mpHud .field-balls > .ballchip { opacity: 0; transition: scale 0.15s, opacity 0.15s; scale: 0.7; }
body.aiming #mpHud .field-balls > .ballchip.on + .ballchip, body.aiming #mpHud .field-balls > .ballchip:has(+ .ballchip.on) { opacity: 0.45; }
body.aiming #mpHud .field-balls > .ballchip.on { opacity: 1; scale: 1; box-shadow: 0 0 0 3px #fbf8efe6, 0 5px 18px #00000061; }
body.aiming #mpHud .field-balls .name { display: none !important; }

/* ---- the words that rise off a creature: Nice / Great! / Excellent!! / Dodged! / Missed / Back strike! ---- */
#mpHud .hitword { font: 500 30px/1 var(--body); white-space: nowrap; z-index: 20; isolation: isolate; text-shadow: var(--hit-shadow); padding: 8px 34px 10px 26px; animation: 1.1s linear forwards rise; position: absolute; transform: translate(-50%, -50%); color: var(--cream-ink) !important; }
#mpHud .hitword:before { content: ""; z-index: -1; -webkit-mask: var(--brush) 0 0 / 100% 100% no-repeat; mask: var(--brush) 0 0 / 100% 100% no-repeat; background: #10100ecc; position: absolute; inset: -2px -6px; }
#mpHud .hitword:after { content: ""; background: var(--cream-40); height: 1px; position: absolute; bottom: 5px; left: 18%; right: 26%; }
@keyframes rise { 0% { opacity: 0; animation-timing-function: ease-out; transform: translate(-50%, -50%) translateY(6px); } 12% { opacity: 1; animation-timing-function: linear; transform: translate(-50%, -50%) translateY(0); } 65% { opacity: 1; animation-timing-function: ease-in; transform: translate(-50%, -50%) translateY(-8px); } to { opacity: 0; transform: translate(-50%, -50%) translateY(-18px); } }
#mpHud .gotcha { z-index: 26; width: min(600px, 84vw); height: 84px; animation: 3.2s linear forwards gotcha-life; position: absolute; bottom: 15%; left: 64%; transform: translate(-50%); }
#mpHud .gotcha.mirror { left: 36%; }
#mpHud .gotcha-ink { transform-origin: 0; -webkit-mask: var(--brush) 0 0 / 100% 100% no-repeat; mask: var(--brush) 0 0 / 100% 100% no-repeat; background: #0e0e0cd1; animation: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both gotcha-ink; position: absolute; inset: 0; }
#mpHud .gotcha-ink:after { content: ""; background: linear-gradient(90deg, var(--accent), transparent); height: 2px; position: absolute; bottom: 13px; left: 8%; right: 30%; }
#mpHud .gotcha-text { gap: 3px; animation: 0.7s ease-out both gotcha-text; display: grid; position: absolute; top: 50%; left: 10%; transform: translateY(-50%); }
#mpHud .gotcha-text b { font: 400 34px/1 var(--font-display); color: var(--cream-ink); text-shadow: var(--hit-shadow); }
#mpHud .gotcha-text span { font: 600 19px/1.2 var(--body); color: var(--cream-ink); text-shadow: 0 1px #00000080; }
@keyframes gotcha-life { 0%, 88% { opacity: 1; } to { opacity: 0; } }
@keyframes gotcha-ink { 0% { opacity: 0; transform: scaleX(0); } }
@keyframes gotcha-text { 0% { opacity: 0; transform: translate(-14px, -50%); } to { opacity: 1; transform: translateY(-50%); } }

/* ---- the ring: closes in on the creature, white > yellow (Great) > green (Excellent); ❗ when it is about to dodge ---- */
#mpHud .ring-wrap { --rc: var(--reticle); color: var(--rc); transition: opacity 0.25s; position: absolute; top: 0; left: 0; pointer-events: none; }
#mpHud .ring-wrap[data-q="1"] { --rc: var(--accent); }
#mpHud .ring-wrap[data-q="2"] { --rc: var(--green); }
#mpHud .ring-wrap[data-q="x"] { --rc: var(--seal); }
#mpHud .rt-art { filter: drop-shadow(0 0 1px #000000d9) drop-shadow(0 1px 2px #00000073); position: absolute; top: -1px; left: -1px; overflow: visible; }
#mpHud .rt-art path, #mpHud .rt-art circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
#mpHud .rt-brackets { opacity: 0.92; fill: currentColor !important; stroke: none !important; }
#mpHud .rt-ticks { stroke-width: 1.8px; opacity: 0.9; }
#mpHud .rt-inner { stroke-width: 1.6px; opacity: 0.85; }
#mpHud .rt-core { opacity: 0; transition: opacity 0.12s; stroke: none !important; fill: currentColor !important; }
#mpHud .ring-wrap[data-q="1"] .rt-art { filter: drop-shadow(0 0 1px #000000d9) drop-shadow(0 1px 3px #00000073); }
#mpHud .ring-wrap[data-q="1"] .rt-inner { opacity: 1; }
#mpHud .ring-wrap[data-q="2"] .rt-art { filter: drop-shadow(0 0 1px #000000bf) drop-shadow(0 1px 3px #00000073); }
#mpHud .ring-wrap[data-q="2"] .rt-brackets, #mpHud .ring-wrap[data-q="2"] .rt-ticks { opacity: 1; }
#mpHud .ring-wrap[data-q="2"] .rt-ticks { stroke-width: 2.4px; }
#mpHud .ring-wrap[data-q="2"] .rt-inner { stroke-width: 2.4px; opacity: 1; }
#mpHud .ring-wrap[data-q="2"] .rt-core { opacity: 0.16; }
#mpHud .ring-wrap[data-q="x"] .rt-brackets, #mpHud .ring-wrap[data-q="x"] .rt-ticks { animation: 0.14s steps(2, end) infinite rt-jit; }
#mpHud .ring-wrap[data-q="x"] .rt-inner { stroke-dasharray: 5 4; }
@keyframes rt-jit { 50% { transform: translate(2px); } }
#mpHud .rt-mark { place-items: center; width: 32px; height: 32px; display: grid; position: absolute; top: 0; left: 0; }
#mpHud .rt-mark:before { content: ""; background: var(--chip-bg); border: 2px solid var(--reticle); border-radius: 2px; position: absolute; inset: 5px; transform: rotate(45deg); box-shadow: 0 2px 6px #00000059; }
#mpHud .rt-mark:after { content: ""; background: var(--reticle); border-radius: 2px; width: 2px; height: 11px; margin-left: -1px; position: absolute; top: calc(100% - 2px); left: 50%; }
#mpHud .rt-glyph { background: radial-gradient(circle, var(--cream-ink) 0 20%, var(--charcoal) 22% 34%, transparent 36%), linear-gradient(var(--cream-ink) 0 44%, var(--charcoal) 44% 58%, var(--cream-85) 58%); width: 12px; height: 12px; box-shadow: 0 0 0 1px var(--charcoal); border-radius: 50%; position: relative; }
#mpHud .rt-eye { width: 14px; height: 8px; margin-top: 1px; display: none; position: relative; }
#mpHud .rt-eye:before { content: ""; border: 1.6px solid var(--cream-ink); background: radial-gradient(circle, var(--cream-ink) 0 1.6px, transparent 2.2px); border-radius: 50%; position: absolute; inset: 0; }
#mpHud .rt-eye:after { content: ""; background: var(--cream-ink); border-radius: 1px; width: 2px; height: 15px; margin: -7.5px 0 0 -1px; position: absolute; top: 50%; left: 50%; transform: rotate(45deg); box-shadow: 0 0 0 1px #12141699; }
#mpHud .rt-bang { font: 700 15px/1 var(--body); color: var(--cream-ink); text-shadow: 0 1px #00000080; display: none; position: relative; }
#mpHud .ring-wrap[data-q="1"] .rt-mark:before { border-color: var(--accent); }
#mpHud .ring-wrap[data-q="2"] .rt-mark:before { background: var(--chip-bg); border-color: var(--green); }
#mpHud .ring-wrap[data-calm="1"] .rt-mark:before { background: var(--chip-bg); border-color: var(--cream-40); }
#mpHud .ring-wrap[data-calm="1"] .rt-mark:after { background: var(--cream-40); }
#mpHud .ring-wrap[data-calm="1"] .rt-glyph { display: none; }
#mpHud .ring-wrap[data-calm="1"] .rt-eye { display: block; }
#mpHud .ring-wrap[data-q="x"] .rt-mark { animation: 0.25s ease-in-out infinite alternate tell; }
#mpHud .ring-wrap[data-q="x"] .rt-mark:before { background: var(--seal); border-color: var(--cream-ink); }
#mpHud .ring-wrap[data-q="x"] .rt-mark:after { background: var(--seal); }
#mpHud .ring-wrap[data-q="x"] .rt-glyph, #mpHud .ring-wrap[data-q="x"] .rt-eye { display: none; }
#mpHud .ring-wrap[data-q="x"] .rt-bang { display: block; }
@keyframes tell { to { margin-top: -8px; } }

/* ---- the race screen: the title card and meter bottom left, balls and Throw bottom right, Run ---- */
#mpHud .enc { pointer-events: none; position: absolute; inset: 0; z-index: 8; }
#mpHud .enc > * { pointer-events: auto; }
#mpHud .enc-top { justify-items: start; gap: 8px; display: grid; position: absolute; bottom: 66px; left: 20px; }
#mpHud .enc-title { border-radius: var(--r); background: var(--card-ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: none; flex-wrap: wrap; order: 9; align-items: center; gap: 6px 8px; max-width: min(440px, 46vw); padding: 10px 18px 11px 16px; display: flex; box-shadow: 0 4px 16px #0003; }
#mpHud .enc-title b { font-family: var(--body); color: var(--cream-ink); text-shadow: 0 1px #0006; margin-right: 4px; font-size: 22px; font-weight: 500; }
#mpHud .enc-title small { color: var(--muted); flex-basis: 100%; margin-top: 2px; font-size: 12.5px; }
#mpHud .enc-title small.enc-tip { color: var(--accent); }
#mpHud .enc-title small.enc-tip:empty { display: none; }
#mpHud .enc-title .types { display: inline-flex; gap: 4px; }
#mpHud .enc-title .types i { font-style: normal; font: 600 10px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; padding: 5px 7px 4px; border-radius: 2px; }
#mpHud .enc-meter { color: var(--cream-ink); background: var(--strip-bg); -webkit-mask: linear-gradient(#000, #000) left / calc(100% - 30px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat; mask: linear-gradient(#000, #000) left / calc(100% - 30px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat; grid-template-columns: auto 300px auto; align-items: center; gap: 12px; padding: 7px 34px 7px 16px; display: grid; }
#mpHud .enc-meter b { font-family: var(--body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--cream-ink); font-size: 12px; font-weight: 500; }
#mpHud .enc-meter .bar { border-radius: 0; height: 5px; background: #f3edd326; position: relative; overflow: hidden; }
#mpHud .enc-meter .bar i { background: var(--accent); border-radius: 0; display: block; height: 100%; transition: width 0.25s; }
#mpHud .enc-meter.hurt { animation: 0.35s shake; }
/* the mash (owner 2026-10-21): the click count, the seconds left as a bar */
#mpHud .enc-mash { position: absolute; left: 50%; top: 18%; transform: translate(-50%, 0); display: grid; justify-items: center; gap: 6px; padding: 14px 28px 16px; min-width: 260px; border-radius: var(--r); background: var(--card-ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--cream-ink); box-shadow: 0 4px 16px #0003; text-align: center; }
#mpHud .enc-mash b { font: 500 34px/1 var(--body); text-transform: uppercase; letter-spacing: 0.06em; color: #ffe27a; }
#mpHud .enc-mash .num { font: 500 44px/1 var(--mono); font-variant-numeric: tabular-nums; }
#mpHud .enc-mash .bar { width: 100%; height: 6px; background: #f3edd326; overflow: hidden; }
#mpHud .enc-mash .bar i { display: block; height: 100%; background: var(--accent); }
#mpHud .enc-mash small { color: var(--muted); font-size: 12.5px; }
#mpHud .enc-mash.pop { animation: 0.12s mashpop; }
@keyframes mashpop { 40% { transform: translate(-50%, 0) scale(1.06); } }
@keyframes shake { 25% { transform: translate(-6px); } 75% { transform: translate(6px); } }
#mpHud .enc-meter > span.num { text-align: right; font-variant-numeric: tabular-nums; color: #f3edd3; justify-self: end; min-width: 64px; font-size: 15px; }
#mpHud .enc-bottom { display: contents; }
#mpHud .enc-bottom > * { pointer-events: auto; }
#mpHud .enc .btn.run { --b-bg: var(--chip-bg); --b-hi: var(--card-ink); --b-fg: var(--cream-ink); font-size: 13px; position: absolute; bottom: 20px; left: 20px; }
#mpHud .enc-balls { align-items: center; gap: 8px; display: flex; position: absolute; bottom: 74px; right: 26px; }
#mpHud .enc-items { gap: 6px; bottom: 182px; right: 34px; }
#mpHud .enc .btn.throw { --cut: 14px; height: 48px; min-height: 48px; font: 500 19px/1 var(--body); letter-spacing: 0.02em; --b-bg: var(--card-ink); --b-hi: #1e1e22db; --b-fg: var(--cream-ink); box-shadow: none; text-shadow: 0 1px #00000080; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: none; border-radius: 0; gap: 10px; padding: 0 30px 0 22px; position: absolute; bottom: 90px; right: 240px; }
#mpHud .enc .btn.throw:before { content: ""; background: radial-gradient(circle at 50% 63%, #9a9ca4 0 16%, #3f4147 17% 20%, #0000 21%), radial-gradient(circle at 36% 22%, #fffc 0 8%, #fff0 24%), linear-gradient(#e8443a 0 59%, #3f4147 59% 68.5%, #e4cfa6 68.5%); border-radius: 50%; flex: none; width: 26px; height: 26px; box-shadow: 0 0 0 1.5px #3f4147, inset -2px -3px 4px #0000004d; }
#mpHud .enc .btn.throw kbd { margin-left: 4px; }
#mpHud .enc .btn.throw:hover { box-shadow: inset 0 -3px 0 var(--accent); }
#mpHud .enc .btn.throw.wait { filter: grayscale(0.75) brightness(0.8); }
#mpHud .enc .btn.throw[disabled] { filter: grayscale() brightness(0.7); }
#mpHud .enc.no-wheel .btn.throw { bottom: 88px; right: 24px; }
#mpHud .status-chip.rivals { background: var(--chip-bg); }
@media (height <= 560px), (width <= 900px) {
  #mpHud .enc-meter { grid-template-columns: auto 160px auto; }
  #mpHud .enc-balls { gap: 6px; bottom: 64px; right: 16px; }
  #mpHud .ballchip { width: 42px; height: 42px; }
  #mpHud .ballchip .ballico { width: 25px; height: 25px; }
  #mpHud .ballchip.ball.on { width: 64px; height: 64px; }
  #mpHud .ballchip.ball.on .ballico { width: 41px; height: 41px; }
  #mpHud .ballchip.ball.on .name { width: 170px; font-size: 13px; top: calc(100% + 27px); }
  #mpHud .enc .btn.throw { height: 48px; padding: 0 16px 0 10px; font-size: 16px; bottom: 73px; right: 196px; }
  #mpHud .enc.no-wheel .btn.throw { bottom: 73px; right: 16px; }
  #mpHud .enc-top { bottom: 58px; left: 14px; }
  #mpHud .enc-title b { font-size: 18px; }
}
#mpHud:has(> .gotcha) .enc-top { opacity: 0.25; transition: opacity 0.25s; }
#mpHud:has(> .gotcha) .enc .btn.throw { opacity: 0.3; transition: opacity 0.25s; }
#mpHud:has(> .gotcha) .enc .enc-balls { opacity: 0.45; transition: opacity 0.25s; }
body.in-encounter #mpHud :is(.mp-dock, .mp-mapbox, .mp-compass, .mp-chat, .mp-sidebtn, .mp-throw, .field-cross, .field-lock, .field-hint) { display: none !important; }

/* ---- the draw card: the pile of balls, the countdown, the pick ---- */
#mpHud .draw-card { z-index: 40; pointer-events: none; box-sizing: border-box; background: linear-gradient(180deg, #ffffff0f, #fff0 40%), var(--card-ink); min-width: 300px; max-width: calc(100vw - 32px); color: var(--cream-ink); font-family: var(--body); text-align: center; border-radius: 4px; justify-items: center; gap: 6px; padding: 10px 22px 12px;
  transition: box-shadow 0.4s, translate 0.7s cubic-bezier(0.2, 1, 0.3, 1), scale 0.7s cubic-bezier(0.2, 1, 0.3, 1); display: grid; position: fixed; top: 70px; left: 50%; transform: translate(-50%); box-shadow: 0 8px 28px #00000047, inset 0 0 0 1px #ffffff14; }
#mpHud .draw-card, #mpHud .draw-dim { will-change: transform, opacity; }
#mpHud .draw-ring { will-change: transform; }
#mpHud .draw-ball { will-change: transform, opacity; }
#mpHud .draw-card.stage { translate: var(--dx, 0) var(--dy, 0); scale: var(--k, 1.4); z-index: 41; }
#mpHud .draw-dim { z-index: 39; pointer-events: none; opacity: 0; background: radial-gradient(at 50% 40%, #08080e26, #08080e9e 75%); transition: opacity 0.6s; position: fixed; inset: 0; }
#mpHud .draw-dim.on { opacity: 1; }
#mpHud .draw-card.in { animation: 0.42s cubic-bezier(0.2, 1, 0.3, 1) draw-in; }
#mpHud .draw-card.out { animation: 0.26s ease-in forwards draw-out; }
@keyframes draw-in { 0% { opacity: 0; translate: 0 -14px; scale: 0.94; } }
@keyframes draw-out { to { opacity: 0; translate: 0 -10px; scale: 0.97; } }
#mpHud .draw-card.final, #mpHud .draw-card.spinning { box-shadow: 0 8px 28px #00000047, inset 0 0 0 1px #e6dc3a73, 0 0 22px #e6dc3a38; }
#mpHud .draw-card.won { box-shadow: 0 8px 28px #00000047, inset 0 0 0 2px var(--accent), 0 0 40px #e6dc3a8c; }
#mpHud .draw-kicker { letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; font-size: 12px; font-weight: 600; }
#mpHud .draw-secs { font-family: var(--font-display); text-align: center; min-width: 0.8em; height: 1em; font-size: 44px; font-weight: 400; line-height: 1em; }
#mpHud .draw-secs.pop { animation: 0.38s cubic-bezier(0.2, 1.6, 0.4, 1) draw-pop; }
#mpHud .draw-card.final .draw-secs { color: #ff6a4d; text-shadow: 0 0 18px #ff6a4d99; }
#mpHud .draw-card.final .draw-secs.pop { animation: 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) draw-pop-hard; }
@keyframes draw-pop { 0% { opacity: 0.4; scale: 1.35; } }
@keyframes draw-pop-hard { 0% { opacity: 0.2; scale: 1.9; } 60% { scale: 0.94; } }
#mpHud .draw-card.mine:not(.final) .draw-secs { color: var(--accent); }
#mpHud .draw-pile { flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 420px; display: flex; position: relative; }
#mpHud .draw-ring { pointer-events: none; opacity: 0; border-radius: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; transition: opacity 0.2s; position: absolute; top: 0; left: 0; box-shadow: 0 0 0 2px #fff6a8, 0 0 18px 4px #e6dc3abf, inset 0 0 12px #fff6a880; }
#mpHud .draw-ring.on { opacity: 1; }
#mpHud .draw-ring.pulse { animation: 0.42s ease-out infinite draw-pulse; }
@keyframes draw-pulse { 0% { scale: 1; } 18% { scale: 1.22; } 36% { scale: 1.02; } 52% { scale: 1.14; } to { scale: 1; } }
#mpHud .draw-card.drawn .draw-ring { opacity: 0; }
#mpHud .draw-ball { border-radius: 50%; place-items: center; width: 32px; height: 32px; transition: scale 0.35s cubic-bezier(0.2, 1.4, 0.4, 1), translate 0.35s, opacity 0.35s, box-shadow 0.35s; display: inline-grid; position: relative; }
#mpHud .draw-ball .ballico { width: 26px; height: 26px; }
#mpHud .draw-ball.new { animation: 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) draw-drop; }
@keyframes draw-drop { 0% { opacity: 0; translate: 0 -26px; scale: 0.6; } }
#mpHud .draw-ball.you { box-shadow: 0 0 0 2px var(--accent); }
#mpHud .draw-you { text-transform: uppercase; color: var(--accent); font-size: 11px; font-style: normal; font-weight: 700; position: absolute; bottom: -13px; }
#mpHud .draw-more { opacity: 0.85; font-size: 13px; font-weight: 600; }
#mpHud .draw-line { margin-top: 4px; font-size: 13px; line-height: 1.35; }
#mpHud .draw-bar { background: linear-gradient(90deg, var(--accent), #fff6a8); transform-origin: 0; height: 3px; box-shadow: 0 0 8px var(--accent); border-radius: 0 0 4px 4px; position: absolute; bottom: 0; left: 0; right: 0; }
#mpHud .draw-card.final .draw-bar { background: linear-gradient(90deg, #ff6a4d, #ffc04d); box-shadow: 0 0 10px #ff6a4d; }
#mpHud .draw-card.drawn .draw-bar, #mpHud .draw-card.spinning .draw-bar { opacity: 0; transition: opacity 0.3s; }
#mpHud .draw-card.rattle .draw-ball { animation: 0.18s ease-in-out infinite alternate draw-rattle; }
#mpHud .draw-card.rattle .draw-ball:nth-child(2n) { animation-delay: 90ms; }
@keyframes draw-rattle { 0% { translate: 0; rotate: -12deg; } to { translate: 0 -2px; rotate: 12deg; } }
#mpHud .draw-card.spinning .draw-ball { opacity: 0.45; transition-duration: 0.18s; }
#mpHud .draw-card.spinning .draw-ball.lit { opacity: 1; transition-duration: 80ms; scale: 1.22; }
#mpHud .draw-card.drawn .draw-ball { opacity: 0.25; scale: 0.9; }
#mpHud .draw-card.drawn .draw-ball.chosen { opacity: 1; box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent); animation: 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) draw-chosen; translate: 0 -4px; scale: 1.45; }
#mpHud .draw-card.drawn .draw-ball.chosen:after { content: ""; border: 2px solid var(--accent); border-radius: 50%; animation: 0.7s ease-out forwards draw-shock; position: absolute; inset: -2px; }
@keyframes draw-chosen { 0% { scale: 1.9; } 45% { scale: 1.3; } }
@keyframes draw-shock { 0% { opacity: 1; scale: 1; } to { opacity: 0; scale: 3; } }
#mpHud .draw-card.drawn .draw-you { opacity: 0; transition: opacity 0.2s; }
@media (prefers-reduced-motion: reduce) { #mpHud .draw-card.rattle .draw-ball, #mpHud .draw-card.in, #mpHud .draw-ball.new, #mpHud .draw-secs.pop, #mpHud .draw-card.final .draw-secs.pop { animation: none; } }
/* owner 2026-10-21: the aim hint line (Hold right mouse or F ...) is off */
#mpHud .field-hint { display: none !important; }

/* ---- the ball bar in the paper style (owner 2026-10-21: "more leaned into the paper design"): each chip is a
   disc cut from the menu's kraft paper with an ink rim and a soft drop shadow, set a degree or two off straight like
   paper pinned to the screen; the counts are ink on little paper tabs; the name is a torn paper label; the key
   letters are ink rings on paper ---- */
#mpHud .field-balls > .ballchip { background: var(--paper-img) center / 700% 700% no-repeat, #efe4c8; border: 2px solid #2b2620; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 2px 3px 0 #2b26202e, 0 6px 14px #0000003d; color: #2b2620; }
#mpHud .field-balls > .ballchip:nth-child(odd) { rotate: -2deg; }
#mpHud .field-balls > .ballchip:nth-child(even) { rotate: 1.5deg; }
#mpHud .field-balls > .ballchip:hover { transform: scale(1.06) rotate(-1deg); }
#mpHud .field-balls > .ballchip.ball.on { background: var(--paper-img) center / 600% 600% no-repeat, #f3e9cf; border: 2.5px solid #2b2620; box-shadow: 3px 4px 0 #2b262038, 0 8px 20px #00000047; rotate: 0deg; }
#mpHud .field-balls > .ballchip.ball.on::after { content: ''; position: absolute; inset: 4px; border: 1.5px dashed #2b262066; border-radius: 50%; pointer-events: none; }
#mpHud .field-balls > .ballchip .num { background: #f6eedb; color: #2b2620; font: 700 11px/1.35 var(--body); border: 1.5px solid #2b2620; border-radius: 3px; box-shadow: 1px 2px 0 #2b26202e; rotate: 3deg; }
#mpHud .field-balls > .ballchip.ball.on .num { font-size: 15px; rotate: -2deg; }
#mpHud .field-balls > .ballchip.ball.on .name { background: var(--paper-img) center / 500% 500% no-repeat, #efe4c8; color: #2b2620; font: 700 14px/1.2 var(--body); clip-path: polygon(2% 8%, 9% 0, 22% 6%, 37% 1%, 52% 7%, 68% 0, 83% 6%, 96% 1%, 100% 40%, 98% 92%, 86% 100%, 71% 94%, 55% 100%, 40% 93%, 24% 100%, 10% 94%, 0 98%, 3% 55%); padding: 7px 26px 8px; filter: drop-shadow(1px 2px 0 #2b26202e); rotate: -1deg; }
#mpHud .field-balls > .ballchip kbd { background: #f6eedb; color: #2b2620; border-radius: 50%; font-weight: 700; box-shadow: 1px 1px 0 #2b26202e; }
#mpHud .field-balls > .ballchip kbd::after { border-color: #2b2620; border-width: 1.5px; }
#mpHud .field-balls > .ballchip.ball.partner { background: var(--paper-img) center / 700% 700% no-repeat, #efe4c8; border: 2px solid #c8422b; box-shadow: inset 0 0 0 3px #c8422b40, 2px 3px 0 #2b26202e, 0 6px 14px #0000003d; }
#mpHud .field-balls > .ballchip.ball.partner.on { border-color: #2b2620; }
#mpHud .field-balls > .ballchip.partner .partner-face { background: #f6eedb; box-shadow: 0 0 0 1.5px #2b2620; }
#mpHud .field-balls > .ballchip .ballico { filter: drop-shadow(1px 2px 0 #2b262040); }
#mpHud .field-balls > .ballchip.ball.on .ballico { filter: drop-shadow(2px 3px 0 #2b262040); }
