/* Multiplayer HUD in paodao.fr's look (owner's call 2026-10-21: that site's buttons, text, loading screen
   and camera over our game; our island, characters and creatures untouched). Their pieces, copied:
   Playfair for titles and button words, Lato for everything else, white 1px outlines, the pill button
   that fills white and tilts -3deg on hover, the round key badge, the kraft-paper panel (their menu's
   back.webp) with black text and the X of two bars, the letter-by-letter title, the LOADING screen with
   the walking figure, the bottom dialog band. Fonts and images are theirs, in ./pao (SIL OFL fonts).
   Everything sits above the game's .inputDom (z-index 3). */
@font-face { font-family: 'Playfair'; src: url(/game/client/pao/fonts/PlayfairDisplay-Regular.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(/game/client/pao/fonts/Lato-Regular.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(/game/client/pao/fonts/Lato-Light.ttf) format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }

#mpHud, #paoLoad, #paoMenu, #paoPause {
  --white: #F2F2F7; --black: #0b0b0b; --rgb-white: 242 242 247; --rgb-black: 11 11 11; --blue: #0066ff;
  --paper-img: url(/game/client/pao/img/menu-back.webp);
  --fontFamily-title: 'Playfair', serif; --fontFamily-default: 'Lato', arial, sans-serif;
  --borderSize: 1px; --transitionDuration: .25s; --ease: ease-out;
  --text-shadow: .1em .1em .2em rgba(0, 0, 0, .25);
  /* the names the other sheets (economy, field, battle) read: white over the game, black on paper */
  --paper: #F2F2F7; --paper-2: #FFFFFF; --ink: #0b0b0b; --ink-soft: #3a3a3a; --olive: #4d7a3a; --forest: #0b0b0b; --mustard: #b08a2e;
  --teal: #0b0b0b; --red: #0b0b0b; --sky: #F2F2F7; --cream: #F2F2F7;
  --font-body: var(--fontFamily-default); --font-stamp: var(--fontFamily-title); --font-hand: var(--fontFamily-default);
  --shadow: none; --fast: .18s var(--ease);
  --text: var(--ink); --muted: var(--ink-soft); --line: #0b0b0b33; --line-hi: #0b0b0b66; --row: #0b0b0b0f; --row-hi: #0b0b0b1c; --bar-track: #0b0b0b29;
  --accent: var(--black); --gold: var(--mustard); --green: var(--olive); --blue: #0066ff; --pink: #D96A7A; --violet: #7A6AA8; --exp: #0b0b0b; --hp: var(--olive);
  --kbd-bg: transparent; --kbd-fg: currentColor; --navy: var(--black); --paper-ink: var(--white);
  font-family: var(--fontFamily-default); font-size: 16px; line-height: 1.4; color: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
#mpHud { position: fixed; inset: 0; z-index: 5; pointer-events: none; transition: opacity .6s ease; }
#mpHud.mp-hidden { opacity: 0; visibility: hidden; }
#mpHud [hidden] { display: none !important; }
#mpHud button, #paoLoad button, #paoMenu, #paoPause button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: inherit; }
#mpHud button:focus-visible, #paoLoad button:focus-visible, #paoPause button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; border-radius: 3000em; }
#mpHud .mp-top, #mpHud .mp-chat, #mpHud .mp-balls, #mpHud .mp-throw, #mpHud .mp-panel, #mpHud .mp-toast .mp-btn, #mpHud .mp-bt, #mpHud .mp-sidebtn, #mpHud .mp-dock, #mpHud .mp-mapbox, #mpHud .mp-money, #mpHud .mp-compass { pointer-events: auto; }
/* the round key badge: their .buttonBase_shortcut */
#mpHud kbd, #mpHud .kbd, #paoLoad kbd, #paoPause kbd { box-sizing: border-box; position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; line-height: 1; font: 400 1em var(--fontFamily-default); text-transform: uppercase; white-space: nowrap; flex: none; color: inherit; background: none; box-shadow: none; padding: 0; min-width: 0; border-radius: 1000px; }
#mpHud kbd::after, #mpHud .kbd::after, #paoLoad kbd::after, #paoPause kbd::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 1px solid currentColor; border-radius: 1000px; transform: translate(-50%, -50%); }
#mpHud .ic { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- their pill button (.InteractionButton): 1px outline, Playfair, fills white and tilts on hover ---- */
#mpHud .mp-btn, #mpHud .mp-tab, #mpHud .mp-stakechip, #mpHud .mp-throw, #mpHud .mp-sidebtn, #mpHud .mp-bt-styles button, #mpHud .mp-bt-side button, #mpHud .mp-enc-run, #mpHud .mp-partner, #mpHud .mp-hudbtn, #paoLoad .pao-btn, #paoPause .pao-btn {
  --transition: 0%; --fill: var(--rgb-white); --on: var(--rgb-black);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .5em 2em; border: var(--borderSize) solid rgb(var(--fill)); border-radius: 3000em;
  color: rgb(var(--fill)); font-family: var(--fontFamily-title); font-size: 1.1em; letter-spacing: .4px; line-height: 1.25; white-space: nowrap; text-align: center;
  background: linear-gradient(0deg, rgb(var(--fill)) var(--transition), rgb(var(--fill) / 0) var(--transition));
  transition: box-shadow var(--transitionDuration) var(--ease), transform var(--transitionDuration) var(--ease), color var(--transitionDuration) var(--ease), --transition var(--transitionDuration) var(--ease); }
#mpHud .mp-btn:hover, #mpHud .mp-tab:hover, #mpHud .mp-stakechip:hover, #mpHud .mp-throw:hover, #mpHud .mp-sidebtn:hover, #mpHud .mp-bt-styles button:hover, #mpHud .mp-bt-side button:hover, #mpHud .mp-partner:hover, #mpHud .mp-hudbtn:hover, #paoLoad .pao-btn:hover, #paoPause .pao-btn:hover,
#mpHud .mp-btn:focus-visible, #mpHud .mp-hudbtn:focus-visible, #paoLoad .pao-btn:focus-visible { --transition: 100%; transform: rotate(-3deg); box-shadow: 0 4px 16px #ffffff1f; color: rgb(var(--on)); outline: none; }
#mpHud .mp-btn:active, #mpHud .mp-tab:active, #mpHud .mp-stakechip:active, #mpHud .mp-throw:active, #mpHud .mp-sidebtn:active, #mpHud .mp-hudbtn:active, #paoLoad .pao-btn:active { transform: rotate(-3deg) scale(.97); }
#mpHud .mp-btn[disabled], #mpHud .mp-stakechip[disabled], #mpHud .mp-bt-side button[disabled], #mpHud .mp-bt-move[disabled] { opacity: .5; cursor: default; pointer-events: none; transform: none; }
#mpHud .mp-btn.is-ghost, #mpHud .mp-bt-run { opacity: .8; }
/* on paper (panels, battle dock) the same button in black */
#mpHud .mp-card .mp-btn, #mpHud .mp-card .mp-tab, #mpHud .mp-card .mp-stakechip, #mpHud .mp-card .mp-partner, #mpHud .mp-bt .mp-bt-styles button, #mpHud .mp-bt .mp-bt-side button, #mpHud .mp-stake-custom .mp-btn, #paoPause .pao-btn { --fill: var(--rgb-black); --on: var(--rgb-white); font-weight: 700; padding: .5em 1em; }
#mpHud .mp-card .mp-btn:hover, #mpHud .mp-card .mp-tab:hover, #mpHud .mp-card .mp-stakechip:hover, #mpHud .mp-card .mp-partner:hover, #mpHud .mp-bt .mp-bt-styles button:hover, #mpHud .mp-bt .mp-bt-side button:hover, #paoPause .pao-btn:hover { box-shadow: 0 4px 16px #0000001f; }
#mpHud .mp-yes, #mpHud .mp-tab.is-on, #mpHud .mp-stake-partner, #mpHud .mp-partner.is-on, #mpHud .mp-bt-styles button.is-on, #mpHud .mp-enc-pick.is-on { --transition: 100%; color: rgb(var(--on)); }

/* ---- the sky: off (the clouds were the ride's) ---- */
#mpHud .mp-sky { display: none; }
#mpHud .mp-cloud { display: none; }

/* ---- top left: the trainer plate, partner bar, coach card and nearby list (all off, owner 2026-10-20) ---- */
#mpHud .mp-top { position: absolute; top: 14px; left: 110px; width: 300px; display: grid; gap: 8px; justify-items: start; text-shadow: var(--text-shadow); }
#mpHud .mp-trainer { display: flex; align-items: center; gap: 10px; padding: 6px 14px; color: var(--white); }
#mpHud .mp-lvl { display: inline-flex; align-items: center; gap: 3px; font-family: var(--fontFamily-title); font-size: 1em; flex: none; }
#mpHud .mp-lvl small { font-size: .7em; }
#mpHud .mp-tname { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
#mpHud .mp-tcount { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .8; flex: none; }
#mpHud .mp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
#mpHud .mp-trainer.is-wait .mp-dot { animation: mp-blink 1s ease-in-out infinite; }
#mpHud .mp-trainer.is-offline .mp-dot { background: transparent; border: 1px solid var(--white); }
@keyframes mp-blink { 50% { opacity: .35; } }
#mpHud .mp-pbar { display: grid; gap: 3px; width: 232px; }
#mpHud .mp-pbar-l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
#mpHud .mp-pbar-l span { opacity: .8; }
#mpHud .mp-pieces { display: flex; gap: 3px; }
#mpHud .mp-pieces > span { position: relative; flex: 1; height: 6px; border-radius: 3px; border: 1px solid var(--white); overflow: hidden; }
#mpHud .mp-pieces > span > i { position: absolute; inset: 0 auto 0 0; display: block; background: var(--white); transition: width .6s var(--ease); }
#mpHud .mp-coach { position: relative; max-width: 300px; padding: 9px 0; display: grid; gap: 2px; cursor: pointer; }
#mpHud .mp-coach b { font-family: var(--fontFamily-title); font-size: 18px; font-weight: 400; line-height: 1.12; }
#mpHud .mp-coach p { margin: 0; font-size: 14px; line-height: 1.3; }
#mpHud .mp-coach em { font-style: italic; font-size: 14px; line-height: 1.3; }
#mpHud .mp-coach small { font-size: 12px; opacity: .8; }
#mpHud .mp-coach small kbd { margin: 0 2px; width: 1.3em; height: 1.3em; }
#mpHud .mp-nearby { display: grid; gap: 4px; pointer-events: none; margin-top: 4px; }
#mpHud .mp-nearby p { margin: 0 0 2px 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
#mpHud .mp-near { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 14px; width: max-content; }
#mpHud .mp-near span { opacity: .8; font-variant-numeric: tabular-nums; font-size: 12px; }
#mpHud .mp-near em { font-style: normal; font-size: 10px; color: var(--rc); text-transform: uppercase; letter-spacing: .1em; }
#mpHud .mp-arrow { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--white); position: relative; flex: none; box-sizing: border-box; }
#mpHud .mp-arrow::after { content: ''; position: absolute; left: 4px; top: 2px; border: 4px solid transparent; border-bottom: 7px solid var(--white); border-top: 0; }

/* ---- top centre (owner 2026-10-21): the gems and Cash out on a strip torn out of the settings panel's kraft paper
   (pao/img/money-strip.webp, made by design/paper/money_strip.py: torn edges, the pale fibre layer, loose fibres), every
   word in the Settings panel's own type: Lato bold, one size, black ---- */
#mpHud .mp-money { position: absolute; top: 12px; left: 50%; right: auto; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; padding: .85em 2.6em .95em;
  background: url(/game/client/pao/img/money-strip.webp) center / 100% 100% no-repeat; color: var(--black); text-shadow: none; filter: drop-shadow(0 2px 4px #00000066); }
#mpHud .mp-wallet { display: flex; align-items: baseline; gap: .45em; font: 700 16px/1.2 var(--fontFamily-default); font-variant-numeric: tabular-nums; color: var(--black); white-space: nowrap; }
#mpHud .mp-wallet > * { font: inherit; opacity: 1; }
#mpHud .mp-wallet .mp-gem { display: none; }
#mpHud .mp-wallet .mp-k { text-transform: lowercase; order: 2; margin-left: -.15em; }
#mpHud .mp-wallet .mp-g { order: 1; }
#mpHud .mp-wallet .mp-u { order: 3; }
#mpHud .mp-wallet em { order: 4; }
#mpHud .mp-wallet .mp-u::before, #mpHud .mp-wallet em::before { content: '·'; margin-right: .45em; }   /* the dots: the same room either side */
#mpHud .mp-wallet em { position: relative; font-style: normal; transition: opacity var(--transitionDuration) var(--ease); }
#mpHud .mp-wallet:hover em { opacity: .65; }
#mpHud .mp-wallet.is-up { animation: mp-bump .6s ease; }
@keyframes mp-bump { 30% { transform: scale(1.06); } }
#mpHud .mp-poolline { margin: 0; font: 700 12px/1.2 var(--fontFamily-default); white-space: nowrap; }
#mpHud .mp-poolline b { font-weight: 700; }
#mpHud .mp-poolline:empty { display: none; }
#mpHud .mp-gain { position: absolute; top: 64px; right: 24px; left: auto; font-family: var(--fontFamily-title); font-size: 26px; font-style: italic; color: var(--white); text-shadow: var(--text-shadow); opacity: 0; pointer-events: none; white-space: nowrap; }
#mpHud .mp-gain span { opacity: .8; font-size: .7em; }
#mpHud .mp-gain.is-on { animation: mp-gain 1.6s ease-out; }
@keyframes mp-gain { 0% { opacity: 0; transform: translateY(16px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.05); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }

/* the compass under the gems: a thin white ring, the needle turns with the camera */
#mpHud .mp-compass { position: absolute; right: 24px; top: 64px; width: 44px; height: 44px; border-radius: 50%; transition: transform var(--transitionDuration) var(--ease); }
#mpHud .mp-compass:hover { transform: scale(1.1); }
#mpHud .mp-compass svg { display: block; width: 100%; height: 100%; transition: transform .2s linear; overflow: visible; }
#mpHud .mp-compass circle { fill: rgb(var(--rgb-black) / .25); stroke: var(--white); stroke-width: 1; }
#mpHud .mp-compass-n { fill: var(--white); stroke: none; }
#mpHud .mp-compass-s { fill: rgb(var(--rgb-white) / .35); stroke: none; }
#mpHud .mp-compass text { display: none; }
#mpHud .mp-compass--north circle { stroke-width: 2; }

/* ---- bottom right: the dock, their pill buttons in a row (Collection C, Store V, Leaderboard L, Islands I) ---- */
#mpHud .mp-dock { position: absolute; left: 50%; bottom: 1.5rem; right: auto; top: auto; translate: none; transform: translate(-50%); display: flex; gap: 1rem; align-items: center; transition: transform var(--transitionDuration); }
#mpHud:has(.mp-toast.is-on) .mp-dock, #mpHud.mp-tutorial .mp-dock { transform: translate(-50%, 300%); }
#mpHud .mp-hudbtn { position: relative; width: auto; height: auto; padding: .5em 1.4em .5em 1.4em; font-size: 1em; }
#mpHud .mp-hudbtn::before { display: none; }
#mpHud .mp-hudbtn .ic { display: none; }
#mpHud .mp-hudbtn .mp-dlabel { display: inline; font: inherit; white-space: nowrap; }
#mpHud .mp-hudbtn kbd { font-family: var(--fontFamily-default); font-size: .85em; }
#mpHud .mp-hudbtn .mp-badge { position: absolute; left: -6px; top: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--white); color: var(--black); font: 700 11px/18px var(--fontFamily-default); text-align: center; box-shadow: none; }
#mpHud .mp-hudbtn .mp-badge:empty { display: none; }
#mpHud .mp-round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--white); color: var(--white); display: grid; place-items: center; transition: transform var(--transitionDuration) var(--ease), background var(--transitionDuration), color var(--transitionDuration); }
#mpHud .mp-round:hover { background: var(--white); color: var(--black); transform: rotate(-3deg); }
#mpHud .mp-round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- bottom left: the little map in a thin white frame ---- */
#mpHud .mp-mapbox { position: absolute; left: 24px; bottom: 24px; top: auto; right: auto; width: 124px; height: 104px; padding: 0; border: 1px solid var(--white); border-radius: 1rem; background: rgb(var(--rgb-black) / .35); overflow: hidden; cursor: pointer; transition: transform var(--transitionDuration) var(--ease); }
#mpHud .mp-mapbox:hover { transform: scale(1.03); }
#mpHud .mp-minimap { display: block; width: 100%; height: 100%; border-radius: 0; filter: saturate(0) contrast(1.1); }
#mpHud .mp-maptog { display: none; }
#mpHud .mp-profile { display: none; }

/* ---- bottom left, beside the map: chat, plain white lines like their dialog text ---- */
#mpHud .mp-chat { position: absolute; left: 164px; bottom: 24px; width: min(360px, calc(100vw - 560px)); display: grid; gap: 6px; text-shadow: var(--text-shadow); }
#mpHud .mp-log { max-height: 190px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; justify-content: flex-end; mask-image: linear-gradient(to bottom, transparent, #000 30px); padding: 0 4px 4px 0; }
#mpHud .mp-line { align-self: flex-start; max-width: 100%; width: fit-content; padding: 1px 0; font-size: 14px; line-height: 1.35; color: var(--white); overflow-wrap: anywhere; transition: opacity 1.2s ease; }
#mpHud .mp-line b { font-weight: 700; margin-right: 4px; font-family: var(--fontFamily-title); }
#mpHud .mp-line.is-feed { font-style: italic; opacity: .85; }
#mpHud .mp-line.is-mine b { text-decoration: underline; text-underline-offset: .2em; }
#mpHud .mp-line.is-paid { font-weight: 700; }
#mpHud .mp-line.is-paid a { color: var(--white); }
#mpHud .mp-line.is-old { opacity: 0; }
#mpHud .mp-chat.is-open .mp-line.is-old { opacity: .9; }
#mpHud .mp-form { margin: 0; padding: 0 4px 4px 0; }
#mpHud .mp-form input { all: unset; box-sizing: border-box; width: 100%; height: 30px; padding: 0 2px; border-bottom: 1px solid rgb(var(--rgb-white) / .6); font-family: var(--fontFamily-default); font-size: 14px; color: var(--white); opacity: .7; transition: opacity .2s ease, border-color .2s; }
#mpHud .mp-form input::placeholder { color: rgb(var(--rgb-white) / .7); font-style: italic; }
#mpHud .mp-chat.is-open .mp-form input, #mpHud .mp-form input:focus { opacity: 1; border-color: var(--white); }

/* ---- bottom: ball chips (off); the Throw button on phones; the prompt as their dialog band ---- */
#mpHud .mp-balls { position: absolute; right: 24px; bottom: 90px; display: flex; align-items: center; gap: 12px; pointer-events: auto; transition: opacity .4s ease; }
#mpHud.mp-tutorial .mp-balls, #mpHud.mp-tutorial .mp-prompt { opacity: 0; }   /* the game's own How to Move / Sprint / Jump cards use that spot */
#mpHud .mp-balls .mp-bc { display: inline-flex; align-items: center; gap: 12px; }
#mpHud .mp-balls .mp-hint { display: none; }
#mpHud .mp-chip { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--white); color: var(--white); transition: transform .1s, background .2s; }
#mpHud .mp-chip:hover { transform: scale(1.06); }
#mpHud .mp-chip:active { transform: scale(.96); }
#mpHud .mp-chip.is-on { border-width: 2px; background: rgb(var(--rgb-white) / .15); }
#mpHud .mp-chip b { position: absolute; bottom: -6px; right: -6px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--white); color: var(--black); font: 700 11px/18px var(--fontFamily-default); text-align: center; margin: 0; }
#mpHud .mp-chip kbd { position: absolute; top: -8px; left: -8px; width: 1.3em; height: 1.3em; font-size: 12px; background: var(--black); }
#mpHud .mp-chip .mp-bi { width: 24px; height: 24px; }
#mpHud .mp-chip.is-empty { opacity: .45; }
#mpHud .mp-prompt { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; padding: 2em; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: .5em; background: linear-gradient(0deg, #000000d9 1%, #0000); font-size: 1.1em; color: var(--white); text-align: center; text-shadow: var(--text-shadow); white-space: normal; }
#mpHud .mp-prompt small { font-size: .8em; opacity: .85; }
#mpHud .mp-prompt kbd { margin: 0 2px; }
#mpHud .mp-ballicon { width: 24px; height: 24px; border-radius: 50%; flex: none; position: relative; box-sizing: border-box; border: 1px solid currentColor; background: linear-gradient(currentColor 0 46%, transparent 46% 54%, transparent 54%); opacity: .9; }
#mpHud .mp-ballicon::after { content: ''; position: absolute; width: 8px; height: 8px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid currentColor; }
#mpHud .mp-throw { position: absolute; right: 24px; bottom: 90px; width: auto; height: auto; }
/* bottom right: paodao.fr's bag (their InventoryButton: a 100 x 100 button flush with the corner, the three.js canvas filling it) */
#mpHud .mp-bag { position: absolute; right: 0; bottom: 0; width: 100px; height: 100px; z-index: 3; pointer-events: auto; cursor: pointer; }
#mpHud .mp-bag .three-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#mpHud .mp-bag .three-container canvas { display: block; width: 100px; height: 100px; }
#mpHud.mp-in-battle .mp-bag { display: none; }   /* (the bag sat over the move picker's Esc hint in a battle) */
#mpHud .mp-bag .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#mpHud .mp-throw .mp-ballicon { width: 22px; height: 22px; }
#mpHud .mp-throw.is-held { --transition: 100%; color: var(--black); transform: rotate(-3deg) scale(.97); }

/* (the aiming crosshair, lock ring, race screen and draw card are tangibles.fun's own: field.css) */

/* ---- name tags, toasts (their dialog band), pops, banners (their zone title) ---- */
#mpHud .mp-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#mpHud .mp-tag { position: absolute; left: 0; top: 0; padding: 2px 6px; color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap; will-change: transform; text-shadow: var(--text-shadow), 0 0 6px rgba(0, 0, 0, .5); }
#mpHud .mp-toast { position: absolute; bottom: 0; left: 50%; top: auto; z-index: 2; width: 100%; box-sizing: border-box; padding: 2em; display: flex; align-items: center; justify-content: center; gap: 1rem; background: linear-gradient(0deg, #000000d9 1%, #0000); color: var(--white); font-size: 1.1em; text-align: center; transform: translate(-50%) translateY(200%); transition: transform var(--transitionDuration); pointer-events: none; }
#mpHud .mp-toast > * { filter: drop-shadow(.1em .1em .2em rgba(0, 0, 0, .25)); }
#mpHud .mp-toast.is-on { transform: translate(-50%) translateY(0); }
#mpHud .mp-toast img { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--white); object-fit: cover; }
#mpHud .mp-toast span { display: grid; text-align: left; }
#mpHud .mp-toast b { font-family: var(--fontFamily-title); font-weight: 400; font-size: 1.1em; }
#mpHud .mp-toast small { opacity: .85; font-size: .8em; }
#mpHud .mp-toast .mp-paid { font-family: var(--fontFamily-default); font-weight: 700; font-size: 1em; }
#mpHud .mp-toast .mp-tt { display: block; width: 80%; max-width: 900px; }
#mpHud .mp-toast .mp-tt small { display: block; opacity: .85; font-size: .8em; }
#mpHud .mp-pop { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--fontFamily-title); font-size: 48px; color: var(--white); text-shadow: var(--text-shadow), 0 0 12px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; white-space: nowrap; }
#mpHud .mp-pop.is-on { animation: mp-pop 1.1s ease-out; }
@keyframes mp-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
#mpHud .mp-banner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 4px; padding: 1rem 5rem; border-top: var(--borderSize) solid var(--white); border-bottom: var(--borderSize) solid var(--white); color: var(--white); width: max-content; max-width: 50%; opacity: 0; pointer-events: none; text-shadow: var(--text-shadow); }
#mpHud .mp-banner small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
#mpHud .mp-banner b { font-size: 2.5rem; font-weight: 100; line-height: 1; }
#mpHud .mp-banner span { font-size: 13px; opacity: .85; }
#mpHud .mp-banner.is-on { animation: mp-banner 5.5s ease; }
@keyframes mp-banner { 0% { opacity: 0; transform: translate(-50%, -40%); } 8% { opacity: 1; transform: translate(-50%, -50%); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---- panels: their kraft-paper sheet with black text and the X of two bars ---- */
#mpHud .mp-panel { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #00000077; padding: 16px; }
#mpHud .mp-panel[hidden] { display: none; }
#mpHud .mp-card, #paoPause .tabpanel { position: relative; width: min(620px, 100%); max-height: min(84vh, 760px); overflow: auto; background: var(--paper-img) center / 100% 100% no-repeat; color: var(--black); padding: 3em; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--black) transparent; text-shadow: none; }
#mpHud .mp-card.is-wide { width: min(900px, 100%); }
#mpHud .mp-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em; }
#mpHud .mp-card-h h2 { margin: 0; font-family: var(--fontFamily-title); font-size: 2rem; font-weight: 400; line-height: 1.08; }
#mpHud .mp-x, #paoPause .closeButton { position: absolute; top: 1.2em; right: 1.2em; width: 1.5em; height: 1.5em; border: 0; border-radius: 0; background: none; color: var(--black); transition: transform var(--transitionDuration) var(--ease); }
#mpHud .mp-x svg { display: none; }
#mpHud .mp-x::before, #mpHud .mp-x::after, #paoPause .closeButton::before, #paoPause .closeButton::after { content: ''; position: absolute; top: 50%; left: 50%; width: 100%; height: .2em; background: var(--black); transition: transform var(--transitionDuration) var(--ease); }
#mpHud .mp-x::before, #paoPause .closeButton::before { transform: translate(-50%, -50%) rotate(45deg); }
#mpHud .mp-x::after, #paoPause .closeButton::after { transform: translate(-50%, -50%) rotate(-45deg); }
#mpHud .mp-x:hover, #paoPause .closeButton:hover { transform: scale(1.2); background: none; }
#mpHud .mp-x:hover::before, #paoPause .closeButton:hover::before { transform: translate(-50%, -50%) rotate(135deg); }
#mpHud .mp-x:hover::after, #paoPause .closeButton:hover::after { transform: translate(-50%, -50%) rotate(45deg); }
#mpHud .mp-muted { color: var(--ink-soft); margin: 6px 0 12px; font-size: 14px; line-height: 1.45; }
#mpHud .mp-row { display: grid; grid-template-columns: 1fr 120px 56px auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: var(--borderSize) solid var(--black); font-size: 15px; }
#mpHud .mp-row.is-cur b::after { content: ' · you are here'; font-weight: 400; font-style: italic; }
#mpHud .mp-bar { height: 6px; border-radius: 3px; border: 1px solid var(--black); overflow: hidden; }
#mpHud .mp-bar i { display: block; height: 100%; background: var(--black); }
#mpHud .mp-btn { min-width: 54px; }
#mpHud .mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#mpHud .mp-sp { border: var(--borderSize) solid var(--black); border-radius: 1rem; padding: 12px; display: grid; justify-items: center; text-align: center; gap: 3px; }
#mpHud .mp-sp img { width: 100px; height: 100px; }
#mpHud .mp-sp.is-unknown img { filter: brightness(0) opacity(.25); }
#mpHud .mp-sp b { font-family: var(--fontFamily-title); font-size: 17px; font-weight: 400; }
#mpHud .mp-sp small { color: var(--ink-soft); }
#mpHud .mp-sp p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
#mpHud .mp-tagr { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--black); }
#mpHud .mp-tabs { display: flex; gap: 1.5rem; margin-bottom: 1em; flex-wrap: wrap; }
#mpHud .mp-tab { position: relative; border: 0; padding: .25em 0; font-family: var(--fontFamily-default); font-weight: 700; font-size: 1em; background: none; --transition: 0%; }
#mpHud .mp-tab::after { content: ''; position: absolute; bottom: -.1em; left: 50%; width: 0%; height: .1em; transform-origin: center; background: var(--black); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#mpHud .mp-tab:hover, #mpHud .mp-tab.is-on { transform: none; box-shadow: none; color: var(--black); background: none; }
#mpHud .mp-tab:hover::after, #mpHud .mp-tab.is-on::after { width: 100%; }
#mpHud .mp-tab.is-on { font-size: 1.1em; }
#mpHud .mp-ranks { list-style: none; margin: 0; padding: 0; }
#mpHud .mp-rank { display: grid; grid-template-columns: 30px 18px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-top: var(--borderSize) solid var(--black); font-size: 15px; }
#mpHud .mp-rank small { display: block; font-size: 11px; color: var(--ink-soft); text-align: right; }
#mpHud .mp-pos { font-family: var(--fontFamily-title); font-size: 15px; font-variant-numeric: tabular-nums; }
#mpHud .mp-sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--black); box-sizing: border-box; }
#mpHud .mp-rank span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
#mpHud .mp-rh { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font-family: var(--fontFamily-title); font-size: 1.3em; font-weight: 400; }
#mpHud .mp-rh span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--black); box-sizing: border-box; }
#mpHud .mp-rh em { font-family: var(--fontFamily-default); font-style: italic; font-size: 13px; margin-left: auto; }
#mpHud .mp-type { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
#mpHud .mp-partner { margin-top: 6px; font-size: .95em; }
#mpHud .mp-catches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }   /* which catch to partner (hud.js choosePartner) */
#mpHud .mp-catches .mp-partner { margin-top: 0; }

@media (max-width: 768px) {
  #mpHud .mp-top { top: 42px; left: 8px; width: calc(100vw - 128px); gap: 6px; }
  #mpHud .mp-trainer { width: 230px; }
  #mpHud .mp-pbar { width: 210px; }
  #mpHud .mp-coach { max-width: 240px; }
  #mpHud .mp-coach p { font-size: 13px; }
  #mpHud .mp-near { font-size: 12px; }
  #mpHud .mp-money { top: 6px; padding: .6em 1.8em .7em; }
  #mpHud .mp-wallet { font-size: 13px; gap: 4px; }
  #mpHud .mp-wallet em { display: none; }
  #mpHud .mp-poolline { display: none; }
  #mpHud .mp-compass { right: 8px; top: 48px; width: 38px; height: 38px; }
  #mpHud .mp-dock { display: none; }
  #mpHud .mp-mapbox { left: 8px; bottom: 150px; width: 96px; height: 80px; }
  #mpHud .mp-balls { right: auto; left: 8px; bottom: 150px; gap: 12px; }
  #mpHud .mp-chip { width: 40px; height: 40px; }
  #mpHud .mp-chat { left: 8px; right: auto; bottom: 52px; width: min(300px, calc(100vw - 140px)); }
  #mpHud .mp-chat .mp-form { display: none; }
  #mpHud .mp-chat.is-open .mp-form { display: block; }
  #mpHud .mp-chatbtn { width: 40px; height: 40px; }
  #mpHud .mp-chat.is-open .mp-chatbtn { display: none; }
  #mpHud .mp-log { max-height: 120px; }
  #mpHud .mp-prompt { padding: 1.2em 1em; font-size: 13px; }
  #mpHud .mp-throw { right: 118px; bottom: 44px; font-size: 14px; }   /* left of the game's jump + Nature Manager buttons */
  #mpHud .mp-row { grid-template-columns: 1fr 60px 44px auto; gap: 8px; font-size: 14px; }
  #mpHud .mp-card { padding: 2em 1.2em; }
  #mpHud .mp-gain { top: 48px; font-size: 20px; }
  #mpHud .mp-toast { padding: 1.2em 1em; font-size: 14px; }
  #mpHud .mp-banner { max-width: 90%; padding: .6em 1.5em; }
  #mpHud .mp-banner b { font-size: 1.6rem; }
}

/* ---------- the loading screen and the home screen (loader.js), in their look ---------- */
#paoLoad { position: fixed; inset: 0; z-index: 100; background: #161616; color: var(--white); font-size: 19px; line-height: 150%; user-select: none; -webkit-user-select: none; display: block; transition: background-color .5s ease-in-out, opacity 1s ease-in-out; }
#paoLoad[hidden] { display: none; }
#paoLoad.is-home { background: transparent; }
#paoLoad.is-black { background: #161616; transition: none; }   /* (Travel in: everything at once, owner 2026-10-21) */
#paoLoad.is-gone { opacity: 0; pointer-events: none; }
#paoLoad .loadingContent { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease-in-out; }
#paoLoad.is-home .loadingContent, #paoLoad.is-welcome .loadingContent { opacity: 0; pointer-events: none; }
#paoLoad.is-black .loadingContent { opacity: 1; transition: none; }
#paoLoad.is-black .home, #paoLoad.is-black .welcome { transition: none; opacity: 0; }   /* (Travel: the LOADING screen at once, owner 2026-10-21) */
#paoLoad .loadingContent .content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
#paoLoad .loadingContent .anim { position: relative; height: 30dvh; }
#paoLoad .loadingContent .loading { font-size: 19px; font-weight: 700; }
#paoLoad .informations { position: absolute; width: 100%; left: 0; bottom: 0; }
#paoLoad .informationContent { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; box-sizing: border-box; opacity: 0; transition: opacity .5s ease-in-out; text-align: center; font-size: 19px; }
#paoLoad .informationContent img { height: 3rem; }
#paoLoad .informationContent.active { opacity: 1; }
/* the home screen over the game's own cover picture: their title letter by letter, the picker, the Travel-style button */
#paoLoad .home { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; pointer-events: none; }
/* owner 2026-10-21: the near ground (the bottom and the sides of the view) sits darker than the far island */
#paoLoad .home::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, rgba(6, 8, 32, 0) 42%, rgba(6, 8, 32, .62) 100%), linear-gradient(to right, rgba(6, 8, 32, .55) 0%, rgba(6, 8, 32, 0) 22%, rgba(6, 8, 32, 0) 80%, rgba(6, 8, 32, .55) 100%); }
#paoLoad .home > * { position: relative; z-index: 1; }
#paoLoad .home .titleContainer, #paoLoad .home .buttonContainer, #paoLoad .home .linksContainer { position: absolute; }
#paoLoad.is-home:not(.is-welcome) .home { opacity: 1; pointer-events: auto; transition-duration: 0s; }   /* (owner 2026-10-21: the home's shading is there the moment the cover lifts, no brighten-then-dim; it still fades out over 1.2 s) */
#paoLoad .titleContainer { position: absolute; top: 100px; left: 0; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1rem; box-sizing: border-box; color: var(--white); }
#paoLoad .title { font-family: var(--fontFamily-title); text-shadow: 0 2px 12px rgba(0, 0, 0, .12); font-size: 85.5px; line-height: 100%; }
#paoLoad .subtitle { font-weight: 100; line-height: 100%; font-size: 23px; margin-top: .5rem; letter-spacing: .6px; }
#paoLoad .LetterByLetter .word { display: inline-block; }
#paoLoad .LetterByLetter .letter { display: inline-block; animation: letterByLetter .35s backwards; }
#paoLoad .home .titleContainer .LetterByLetter .word .letter { animation-duration: 1s; }   /* (their home title and subtitle; the Welcome keeps .35 s) */
@media screen and (max-width: 64em) { #paoLoad .titleContainer { top: 10%; } #paoLoad .title { font-size: 76px; } #paoLoad .welcome .title { font-size: 95px; } }
@keyframes letterByLetter { 0% { opacity: 0; transform: translate(9.5px) scale(1.2); } to { opacity: 1; transform: translate(0) scale(1); } }   /* (their .5rem at a 19px root) */
#paoLoad .pickerSlot { width: 100%; display: flex; align-items: flex-start; justify-content: center; overflow: visible; }
#paoLoad .pickerSlot #mpSelect { transform-origin: top center; }
/* their Welcome panel (HomeInstructionReactView): centred box, the big title, the text, the button */
#paoLoad .welcome { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out .3s; pointer-events: none; }
#paoLoad.is-welcome .welcome { opacity: 1; pointer-events: auto; }
#paoLoad .welcome .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; width: 53%; border-radius: 1rem; padding: 2rem; box-sizing: border-box; color: var(--white); text-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
#paoLoad .welcome .title { font-family: var(--fontFamily-title); font-size: 114px; line-height: 70%; }   /* (their 6rem at a 19px root) */
#paoLoad .welcome .text { text-align: center; font-size: 24.7px; line-height: 150%; }   /* (their 1.3rem at a 19px root) */
#paoLoad .welcome .text .second { font-style: italic; font-size: .75em; }
#paoLoad .welcome .buttonContainer { position: static; transform: none; }
#paoLoad .welcome .buttonContainer .pao-btn { animation: fadeIn 2.5s ease-in-out 2s backwards; }
#paoLoad .buttonContainer { position: absolute; bottom: 10%; left: 50%; transform: translate(-50%); display: flex; gap: 1.5rem; align-items: center; justify-content: center; }
#paoLoad .home .buttonContainer .pao-btn { animation: fadeIn 1.5s ease-in-out 4s backwards; }
#paoLoad .pao-btn img { height: 1.5rem; display: inline-block; transition: filter var(--transitionDuration) var(--ease); }
#paoLoad .pao-btn:hover img { filter: invert(1); }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(10%); } to { opacity: 1; transform: translateY(0); } }
#paoLoad .linksContainer { position: absolute; bottom: 1rem; left: 50%; transform: translate(-50%); }
#paoLoad .ContactButton { position: relative; font-size: 1em; color: var(--white); text-decoration: none; transition: transform var(--transitionDuration); }
#paoLoad .ContactButton::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 30%; height: .1em; transform-origin: center; background: var(--white); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoLoad .ContactButton:hover::after { width: 100%; }
#paoLoad .exploreNoAudio, #paoLoad .linkButton { position: static !important; transform: none !important; opacity: 1 !important; font-size: 1em; color: var(--white); cursor: pointer; display: inline-block; transition: transform var(--transitionDuration); text-decoration: none; }
#paoLoad .linkWrap { position: relative; }
#paoLoad .linkWrap::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 30%; height: .1em; transform-origin: center; background: var(--white); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoLoad .linkWrap:hover::after { width: 100%; }
/* the game's own loader pieces stay in the page for their click handlers, out of sight */
body.pao-loading .loadingContainer, body.pao-loading .loadingTextContainer, body.pao-loading .logo, body.pao-loading .exploreNoAudio { visibility: hidden !important; pointer-events: none !important; }
body.pao-loading .loadingScreen { background-color: #161616; }
body.pao-home .loadingScreen { background: transparent !important; }
body.pao-loading #mpSelect { display: none !important; }   /* (the picker is not part of their opening, owner 2026-10-21) */

/* ---------- character picker, laid out by the home screen ---------- */
#mpSelect { font-family: var(--fontFamily-default, 'Lato', sans-serif); color: #F2F2F7; -webkit-font-smoothing: antialiased; font-size: 16px; }
#mpSelect { position: fixed; left: 50%; top: var(--mps-top, 62%); z-index: 2147483001; width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, -50%) scale(var(--mps-scale, 1)); display: grid; justify-items: center; gap: 12px;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
#mpSelect.is-on { opacity: 1; visibility: visible; }
#mpSelect.is-gone { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
#paoLoad #mpSelect { position: static; transform: scale(var(--mps-scale, 1)); transform-origin: center; z-index: auto; max-width: none; }
#paoLoad #mpSelect { gap: 8px; }
#paoLoad #mpSelect .mps-cards { gap: .5rem; max-width: 1240px; }
#paoLoad #mpSelect .mps-card { width: 80px; padding: 4px 4px 6px; }
#paoLoad #mpSelect .mps-pic { width: 64px; height: 70px; }
#paoLoad #mpSelect .mps-card b { font-size: 13px; }
#paoLoad #mpSelect .mps-signin { display: none; }
/* the intro host hides every page element but the map while the intro plays; the picker belongs to the intro */
html.intro-on body > #mpSelect#mpSelect#mpSelect.is-on { opacity: 1 !important; pointer-events: auto !important; }
#mpSelect button { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#mpSelect .mps-k { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
#mpSelect .mps-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1150px; }
#mpSelect .mps-card { width: 104px; padding: 8px 8px 10px; border-radius: 1rem; display: grid; justify-items: center; gap: 6px; border: 1px solid rgb(242 242 247 / .35); transition: transform var(--transitionDuration) ease-out, background .25s ease, border-color .25s ease, color .25s; }
#mpSelect .mps-card:hover { transform: rotate(-3deg); border-color: #F2F2F7; }
#mpSelect .mps-card.is-on { background: #F2F2F7; color: #0b0b0b; border-color: #F2F2F7; }
#mpSelect .mps-card:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
#mpSelect .mps-pic { width: 88px; height: 96px; position: relative; display: grid; place-items: center; }
#mpSelect .mps-pic i { width: 46px; height: 46px; border-radius: 50%; opacity: .9; transition: opacity .4s ease; }
#mpSelect .mps-pic img { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); object-fit: contain; opacity: 0; transition: opacity .5s ease; }
#mpSelect .mps-pic.has-img img { opacity: 1; }
#mpSelect .mps-pic.has-img i { opacity: 0; }
#mpSelect .mps-card b { font: 400 15px/1.1 'Playfair', serif; text-align: center; }
#mpSelect .mps-blurb { margin: 0; min-height: 1.4em; font-size: 14px; line-height: 1.4; text-align: center; max-width: 460px; font-weight: 100; }
#mpSelect .mps-name { display: flex; align-items: center; gap: 10px; padding: 0 2px; height: 34px; border-bottom: 1px solid rgb(242 242 247 / .6); }
#mpSelect .mps-name span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
#mpSelect .mps-name input { all: unset; width: 170px; height: 100%; font: 400 16px/1 'Lato', sans-serif; color: inherit; }
#mpSelect .mps-err { margin: 0; min-height: 1em; font-size: 12px; opacity: .9; }
#mpSelect .mps-signin { position: relative; font-size: 13px; padding: 2px; }
#mpSelect .mps-signin::after { content: ''; position: absolute; bottom: -.15em; left: 50%; width: 30%; height: 1px; background: currentColor; transform: translate(-50%); transition: width var(--transitionDuration) ease-out; }
#mpSelect .mps-signin:hover::after { width: 100%; }
#mpSelect.is-dark, #mpSelect.is-light { color: #F2F2F7; background: none; box-shadow: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

@media (max-width: 520px) {
  /* phones: one row of cards that scrolls sideways (every character reachable, the picker stays short) */
  #mpSelect .mps-cards { gap: 6px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: calc(100vw - 48px);
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px; }
  #mpSelect .mps-cards::-webkit-scrollbar { display: none; }
  #mpSelect .mps-card { flex: 0 0 auto; scroll-snap-align: start; }
  #mpSelect .mps-card { width: 78px; padding: 6px 4px 8px; }
  #mpSelect .mps-pic { width: 66px; height: 74px; }
  #mpSelect .mps-blurb { max-width: 300px; }
  #paoLoad .title { font-size: 2.6rem !important; }
  #paoLoad .welcome .container { width: 90dvw; gap: 1rem; padding: 1rem; }
  #paoLoad .welcome .title { font-size: 4rem; }
  #paoLoad .welcome .text { font-size: 1rem; }
}

/* ---------- the menu: their gears top left (M) and the kraft-paper options panel (menu.js) ---------- */
body.pao-nature #natureManagerUI { z-index: 103 !important; right: 40px !important; top: 80px !important; }   /* (the game's Nature Manager over the opening page) */
#paoMenu { position: fixed; top: 0; left: 0; width: 100px; height: 100px; z-index: 101; display: grid; place-items: center; transition: opacity .5s; }
#paoMenu.hidden, #paoLoad.is-black ~ #paoMenu { opacity: 0; pointer-events: none; }   /* (their LOADING screen has no gears) */
/* their gears: a 100 x 100 three.js canvas in the button (gears.js); the picture only if that fails */
#paoMenu .three-container { position: absolute; top: 0; left: 0; width: 100px; height: 100px; }
#paoMenu .three-container canvas { display: block; width: 100px; height: 100px; }
#paoMenu .three-container img { width: 80%; height: 80%; margin: 10%; object-fit: contain; }
#paoPause { position: fixed; inset: 0; z-index: 102; background: #00000077; color: var(--black); font-size: 16px; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
#paoPause.open { opacity: 1; pointer-events: auto; }
#paoPause:not(.open) * { pointer-events: none !important; }   /* (their sheets set pointer-events: all; closed, nothing of the panel may catch the mouse) */
#paoPause .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateY(20%); transition: transform .35s ease; width: min(760px, calc(100vw - 32px)); }
#paoPause .tabpanel[data-panel="gamepad"] { width: min(1000px, calc(100vw - 32px)); margin-left: calc((min(760px, calc(100vw - 32px)) - min(1000px, calc(100vw - 32px))) / 2); }
#paoPause.open .container { transform: translate(-50%, -50%) translateY(0); }
#paoPause .tablist { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: .25em; z-index: 0; padding: 0 2em; }
#paoPause .tablist button { position: relative; background: var(--paper-img) center / 100% 100% no-repeat; padding: .5em 1.5em 1.9em; margin-bottom: -1.5em; color: var(--black); transition: transform var(--transitionDuration) var(--ease), filter var(--transitionDuration) var(--ease); display: flex; flex-direction: row; align-items: center; gap: .6em; filter: brightness(.5); border-radius: 0; }
#paoPause .tablist button img { height: 3em; width: auto; }
#paoPause .tablist button span { position: relative; display: block; font-size: 1em; font-weight: 700; }
#paoPause .tablist button span::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 0%; height: .1em; transform-origin: center; background: var(--black); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoPause .tablist button.active, #paoPause .tablist button:focus, #paoPause .tablist button:hover { transform: translateY(-.5em); filter: brightness(1); }
#paoPause .tablist button.active span::after, #paoPause .tablist button:focus span::after, #paoPause .tablist button:hover span::after { width: 100%; }
#paoPause .tabpanel { position: relative; z-index: 1; width: 100%; max-height: 60dvh; display: none; flex-direction: column; }
#paoPause .tabpanel.active { display: flex; }
#paoPause .tabpanelContainer { width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; scrollbar-width: none; }
#paoPause .tabpanelContainer::-webkit-scrollbar { display: none; }
/* their SettingsPanel: rows with their icons, the volume sliders, the language pill, the resolution radios, Contact */
#paoPause .SettingsPanel { --color-main: var(--black); --color-secondary: #cdb98a; pointer-events: all; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1rem; margin: 0 auto; }
#paoPause .SettingsPanel svg, #paoPause .SettingsPanel .icon { width: 1.5em; height: auto; stroke: var(--color-main); fill: var(--color-main); flex: none; }
#paoPause .SettingsPanel button { position: relative; display: flex; flex-direction: row !important; align-items: center; justify-content: flex-start; gap: 1rem; z-index: 1; transition: transform .5s; font-weight: 600; font-size: 1em; color: var(--color-main); }
#paoPause .SettingsPanel button span { position: relative; }
#paoPause .SettingsPanel button span::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 0%; height: .1em; transform-origin: center; background: var(--black); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoPause .SettingsPanel button:hover span::after { width: 100%; }
#paoPause .SettingsPanel .volume { display: flex; align-items: center; justify-content: flex-start; width: 100%; gap: 20px; }
#paoPause .SettingsPanel .volume.isMute { opacity: .5; }
#paoPause .SettingsPanel .volume .input-text-container { width: 50%; display: flex; align-items: center; justify-content: flex-start; gap: 1rem; font-weight: 700; line-height: 100%; }
#paoPause .SettingsPanel .volume .input-container { width: 50%; box-sizing: border-box; }
#paoPause .SettingsPanel .volume .inputDeco { position: relative; --height: 15px; --line-size: 8px; display: inline-flex; align-items: center; justify-content: center; height: var(--height); width: 100%; background: var(--color-secondary); border: 1px solid var(--color-main); border-radius: 1000px; box-sizing: border-box; }
#paoPause .SettingsPanel .volume .inputDeco::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 1000px; pointer-events: none; box-sizing: border-box; border: calc((var(--height) - var(--line-size)) * .5) solid var(--color-secondary); }
#paoPause .SettingsPanel .volume .inputDeco input { position: relative; width: 100%; -webkit-appearance: none; appearance: none; height: 100%; border-radius: 1000px; cursor: pointer; overflow: hidden; background: transparent; margin: 0; }
#paoPause .SettingsPanel .volume .inputDeco input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--line-size); height: var(--line-size); background: var(--color-main); border-radius: 50%; border: none; box-shadow: -1000px 0 0 996px var(--color-main); cursor: pointer; }
#paoPause .SettingsPanel .volume .inputDeco input::-moz-range-thumb { width: var(--line-size); height: var(--line-size); background: var(--color-main); border-radius: 50%; border: none; box-shadow: -1000px 0 0 996px var(--color-main); cursor: pointer; }
#paoPause .SettingsPanel .languagesButton { display: flex; gap: 1rem; align-items: center; justify-content: flex-start; }
#paoPause .SettingsPanel .languagesButton .languageLegend { display: flex; gap: 1rem; align-items: center; color: var(--color-main); font-weight: 600; width: 50%; }
#paoPause .SettingsPanel .languagesButton .languageSelect { position: relative; width: 50%; }
#paoPause .SettingsPanel .languagesButton .languageSelect select { width: 100%; background-color: var(--color-main); color: var(--white); border-radius: 1000px; border: none; padding: .5rem; font-weight: 600; font-size: .85em; font-family: inherit; line-height: 100%; cursor: pointer; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none; }
#paoPause .SettingsPanel .radiosContainer { pointer-events: all; color: var(--color-main); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: none; }
#paoPause .SettingsPanel .radiosContainer .qualityButtonContainer { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; width: 50%; }
#paoPause .SettingsPanel .radiosContainer legend { margin-right: 1rem; white-space: nowrap; font-weight: 700; }
#paoPause .SettingsPanel .radiosContainer .choicesContainer { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 50%; }
#paoPause .SettingsPanel .radiosContainer input, #paoPause .SettingsPanel .radiosContainer label { cursor: pointer; }
#paoPause .SettingsPanel .radiosContainer input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#paoPause .SettingsPanel .radiosContainer label { position: relative; font-weight: 400; display: inline-block; transition: transform var(--transitionDuration) var(--ease); }
#paoPause .SettingsPanel .radiosContainer label::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 0%; height: .1em; transform-origin: center; background: var(--black); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoPause .SettingsPanel .radiosContainer input:checked + label { font-weight: 700; transform: translateY(-.1em) scale(1.1); }
#paoPause .SettingsPanel .radiosContainer input:checked + label::after, #paoPause .SettingsPanel .radiosContainer label:hover::after { width: 100%; }
#paoPause .SettingsPanel .radiosContainer label:hover { font-weight: 700; }
#paoPause .SettingsPanel .buttonsContainer { display: flex; align-items: center; justify-content: center; }
#paoPause .SettingsPanel .buttonsContainer .ContactButton { position: relative; color: var(--color-main); font-style: italic; font-weight: 700; text-decoration: none; transition: transform var(--transitionDuration) var(--ease); }
#paoPause .SettingsPanel .buttonsContainer .ContactButton::after { content: ''; position: absolute; bottom: -.25em; left: 50%; width: 30%; height: .1em; background: var(--black); transform: translate(-50%); transition: width var(--transitionDuration) var(--ease); }
#paoPause .SettingsPanel .buttonsContainer .ContactButton:hover::after { width: 100%; }
/* their GamepadPanel: the controller picture with the labels around it */
#paoPause .GamepadPanel{--color-main: var(--color-black);--color-secondary: var(--color-paper);pointer-events:all;display:flex;align-items:center;justify-content:center}
#paoPause .GamepadPanel .gamepadContent{position:relative}
#paoPause .GamepadPanel .gamepadContent .ref{position:relative;height:40dvh;max-height:500px;box-sizing:border-box}
#paoPause .GamepadPanel .gamepadContent .info{position:absolute;font-size:2dvh;transform:translateY(-50%);font-weight:700;line-height:100%}
#paoPause .GamepadPanel .gamepadContent .validate{top:39.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .validate2{top:65.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .cancel{top:47.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .camera{top:84.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .inventory{top:13.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .prev{top:21%;left:19%;transform:translate(-100%,-50%)}
#paoPause .GamepadPanel .gamepadContent .next{top:21%;left:81%}
#paoPause .GamepadPanel .gamepadContent .jump{top:55.5%;left:81%}
#paoPause .GamepadPanel .gamepadContent .menu{top:13.5%;left:19%;transform:translate(-100%,-50%)}
#paoPause .GamepadPanel .gamepadContent .navigate{top:80%;left:19%;text-align:right;transform:translate(-100%,-50%)}
#paoPause .GamepadPanel .gamepadContent .move{top:44.5%;left:19%;transform:translate(-100%,-50%)}
#paoPause .GamepadPanel .gamepadContent .run{top:29.5%;left:81%}

/* the keyboard sheet: a table of titles and key caps */
#paoPause .KeyboardPanel { display: flex; justify-content: center; align-items: flex-start; gap: 2.5rem; margin: 0 auto; }
#paoPause .KeyboardPanel .keycol { display: table; border-spacing: 1rem .5rem; }
#paoPause .KeyboardPanel .keyboardcontainer { display: table-row; }
@media (max-width: 720px) { #paoPause .KeyboardPanel { flex-direction: column; align-items: center; gap: 0; } }
#paoPause .KeyboardPanel .keyboardcontainer > * { display: table-cell; vertical-align: middle; text-align: left; }
#paoPause .KeyboardPanel .title { font-size: 1rem; font-weight: 700; text-align: right !important; white-space: nowrap; }
#paoPause .KeyboardPanel .text { font-size: 1rem; }
#paoPause .KeyboardPanel .row { display: flex; align-items: center; justify-content: flex-start; gap: .5rem; }
/* (the game's own .key and .title rules reach these spans: every one of theirs is set again here) */
#paoPause .KeyboardPanel .key { border: .2rem solid var(--black); padding: .25rem; border-radius: .5rem; height: 1.5rem; min-width: 1.5rem; width: auto; margin: 0; display: flex; align-items: center; justify-content: center; font-weight: 400; font-size: 1rem; line-height: 1; color: var(--black); background: transparent; box-shadow: none; box-sizing: content-box; white-space: nowrap; font-family: var(--fontFamily-default); }
#paoPause .KeyboardPanel .title { font-style: normal; color: var(--black); margin: 0; }
#paoPause .KeyboardPanel img { height: 1.5rem; }
#paoPause .KeyboardPanel .mouse { height: 2.5rem; }
#paoPause .KeyboardPanel .left { transform: rotate(-90deg); }
#paoPause .KeyboardPanel .right { transform: rotate(90deg); }
#paoPause .KeyboardPanel .down { transform: rotate(180deg); }
@media (max-width: 768px) {
  #paoMenu { width: 64px; height: 64px; }
  #paoPause .tabpanel { padding: 2em 1.2em; max-height: 70dvh; }
  #paoPause .SettingsPanel .volume, #paoPause .SettingsPanel .languagesButton, #paoPause .SettingsPanel .radiosContainer { flex-wrap: wrap; }
  #paoPause .SettingsPanel .volume .input-text-container, #paoPause .SettingsPanel .volume .input-container, #paoPause .SettingsPanel .languageLegend, #paoPause .SettingsPanel .languageSelect, #paoPause .SettingsPanel .qualityButtonContainer, #paoPause .SettingsPanel .choicesContainer { width: 100%; justify-content: flex-start; }
}

/* ---- slab races and battles ---- */
#mpHud .mp-sidebtn { position: absolute; right: 24px; width: auto; height: auto; font-size: 1em; }
#mpHud .mp-battlebtn { bottom: 150px; }
#mpHud .mp-racebtn { bottom: 200px; }
/* the battle screen: paper plates and dock */
#mpHud .mp-bt { position: absolute; inset: 0; z-index: 12; }
#mpHud .mp-bt[hidden] { display: none; }
#mpHud.mp-in-battle .mp-balls, #mpHud.mp-in-battle .mp-throw, #mpHud.mp-in-battle .mp-nearby, #mpHud.mp-in-battle .mp-cross, #mpHud.mp-in-battle .mp-ring, #mpHud.mp-in-battle .mp-sidebtn, #mpHud.mp-in-battle .mp-prompt, #mpHud.mp-in-battle .mp-nearprompt, #mpHud.mp-in-battle .mp-coach, #mpHud.mp-in-battle .mp-dock, #mpHud.mp-in-battle .mp-profile, #mpHud.mp-in-battle .mp-mapbox, #mpHud.mp-in-battle .mp-compass { display: none !important; }
#mpHud .mp-bt-plate { position: absolute; width: min(300px, calc(50vw - 24px)); background: var(--paper-img) center / 100% 100% no-repeat; color: var(--black); padding: 1.2em 1.4em; display: grid; gap: 5px; text-shadow: none; }
#mpHud .mp-bt-foe { left: 24px; top: 96px; }
#mpHud .mp-bt-me { right: 24px; bottom: 236px; }
#mpHud .mp-bt-plate.is-hit { animation: mp-bt-hit .35s ease; }
@keyframes mp-bt-hit { 30% { transform: translateX(-6px); filter: brightness(.8); } 60% { transform: translateX(6px); } }
#mpHud .mp-bt-plate.is-fainted { opacity: .55; }
#mpHud .mp-bt-row { display: flex; align-items: center; gap: 8px; }
#mpHud .mp-bt-row b { font-family: var(--fontFamily-title); font-size: 18px; font-weight: 400; }
#mpHud .mp-bt-row .lv { font-size: 13px; }
#mpHud .mp-bt .ty { font-style: normal; font-size: 10px; letter-spacing: .13em; color: #fff; padding: 3px 8px; border-radius: 8px; margin-left: auto; text-transform: uppercase; }
#mpHud .mp-bt-hp { height: 8px; border-radius: 4px; border: 1px solid var(--black); overflow: hidden; }
#mpHud .mp-bt-hp i { display: block; height: 100%; background: var(--black); transition: width .4s ease; }
#mpHud .mp-bt-hp[data-l="mid"] i { background: #6b6b6b; }
#mpHud .mp-bt-hp[data-l="low"] i { background: #a33; }
#mpHud .mp-bt-plate .hpn { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
#mpHud .mp-bt-tag { position: absolute; left: 1.4em; top: -.6em; font-size: 10px; letter-spacing: .13em; padding: 3px 9px; border-radius: 8px; background: var(--black); color: var(--white); text-transform: uppercase; }
#mpHud .mp-bt-tag:empty { display: none; }
#mpHud .mp-bt-text { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); text-align: center; display: grid; gap: 6px; pointer-events: none; }
#mpHud .mp-bt-line { display: inline-block; justify-self: center; color: var(--white); padding: 6px 16px; font-size: 1.2em; text-shadow: var(--text-shadow), 0 0 10px rgba(0, 0, 0, .5); animation: mp-bt-line .25s ease; }
@keyframes mp-bt-line { from { opacity: 0; transform: translateY(6px); } }
#mpHud .mp-bt-dock { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); background: var(--paper-img) center / 100% 100% no-repeat; color: var(--black); padding: 2em 2.2em; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "styles styles" "moves side" "wait wait" "stake stake"; gap: 10px; text-shadow: none; }
#mpHud .mp-bt-styles { grid-area: styles; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#mpHud .mp-bt-styles button { font-size: .9em; padding: .4em 1em; }
#mpHud .mp-bt-why { font-size: 12px; font-style: italic; margin-left: 6px; }
#mpHud .mp-bt-moves { grid-area: moves; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#mpHud .mp-bt-move { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 9px 12px 9px 14px; border-radius: .5rem; border: 1px solid var(--black); border-left-width: 5px; text-align: left; color: var(--black); transition: transform var(--transitionDuration) var(--ease), background .2s; }
#mpHud .mp-bt-move:hover { transform: translateY(-2px); background: rgb(var(--rgb-black) / .06); }
#mpHud .mp-bt-move b { font-family: var(--fontFamily-title); font-size: 15px; font-weight: 400; }
#mpHud .mp-bt-move .pw, #mpHud .mp-bt-move .pp { font-size: 12px; font-variant-numeric: tabular-nums; }
#mpHud .mp-bt-move em { font-style: normal; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; grid-column: 1 / 3; }
#mpHud .mp-bt-move kbd { position: absolute; right: 6px; top: 6px; width: 1.3em; height: 1.3em; font-size: 12px; }
#mpHud .mp-bt-move.e-super { border-left-color: var(--olive); }
#mpHud .mp-bt-move.e-weak { border-left-color: var(--mustard); }
#mpHud .mp-bt-move.e-none { border-left-color: #999; }
#mpHud .mp-bt-side { grid-area: side; display: grid; gap: 10px; align-content: start; }
#mpHud .mp-bt-side button { display: flex; flex-direction: column; gap: 2px; width: 90px; padding: .6em 0; border-radius: 1rem; font-size: .9em; }
#mpHud .mp-bt-ball .mp-ballicon { width: 22px; height: 22px; }
#mpHud .mp-bt-ball .mp-ballicon::after { width: 6px; height: 6px; }
#mpHud .mp-bt-wait { grid-area: wait; font-size: 13px; font-style: italic; text-align: center; min-height: 16px; }
#mpHud .mp-bt.is-turn .mp-bt-wait { font-style: normal; font-weight: 700; }
#mpHud .mp-bt-stake { grid-area: stake; text-align: center; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
#mpHud .mp-bt-stake[hidden] { display: none; }
@media (max-width: 720px) {
  #mpHud .mp-bt-foe { top: 86px; left: 12px; }
  #mpHud .mp-bt-me { right: 12px; bottom: 300px; }
  #mpHud .mp-bt-dock { bottom: 12px; grid-template-columns: 1fr; grid-template-areas: "styles" "moves" "side" "wait" "stake"; }
  #mpHud .mp-bt-side { grid-template-columns: 1fr 1fr; }
  #mpHud .mp-bt-side button { width: auto; }
  #mpHud .mp-bt-why { display: none; }
}

/* battle stakes */
#mpHud .mp-stake-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 14px; }
#mpHud .mp-stakechip { gap: 6px; font-size: 1em; }
#mpHud .mp-stakechip img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid currentColor; }
#mpHud .mp-stake .mp-gem { width: 12px; height: 12px; background: var(--black); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); display: inline-block; }
#mpHud .mp-stake-custom { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px 2px 10px; border-bottom: 1px solid var(--black); }
#mpHud .mp-stake-custom input { all: unset; width: 72px; font-size: 15px; font-weight: 700; font-family: inherit; color: var(--black); }
#mpHud .mp-stake-custom input::placeholder { color: var(--ink-soft); font-weight: 400; font-style: italic; }
#mpHud .mp-stake-custom .mp-btn { padding: .3em .9em; font-size: .9em; }
#mpHud .mp-stake small { display: block; margin-top: 2px; font-size: 13px; }

/* the trainer challenge, tangibles' way (docs/BATTLE-REFERENCE-TANGIBLES.md A12, measured at 1868 x 992): a cream
   760 x 300 card centred a hair above the middle, 16 px radius, the world behind NOT dimmed; CHALLENGE kicker
   10 px grey spaced caps; 'Challenge NAME' 30 px serif italic navy; two 13 px grey lines; the stake drop-down
   200 x 32 cream with a 1 px edge; '◆ Pick something as a reward!' 11 px; the yellow #f2c744 'Challenge' pill
   120 x 34 in navy bold and a plain navy 'Cancel' side by side; it closes with a 0.1 s fade */
#mpHud .mp-panel.is-clear { background: none; }
#mpHud .mp-challenge { position: relative; width: 760px; max-width: 100%; height: 300px; max-height: 100%; box-sizing: border-box; margin-bottom: 22px; padding: 22px 40px 24px; border-radius: 16px; background: #f4efdf; color: #1d2b4f; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; text-shadow: none; transition: opacity .1s linear; }
#mpHud .mp-challenge.is-out { opacity: 0; }
#mpHud .mp-ch-kicker { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #7a7a7a; }
#mpHud .mp-ch-title { margin: 0; font-family: var(--fontFamily-title); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.1; color: #1d2b4f; }
#mpHud .mp-ch-text { margin: 0; font-size: 13px; line-height: 1.5; color: #7a7a7a; }
#mpHud .mp-ch-stake { position: relative; display: inline-flex; align-items: center; width: 200px; height: 32px; box-sizing: border-box; border: 1px solid #1d2b4f66; border-radius: 16px; background: #f4efdf; color: #1d2b4f; font-size: 13px; font-weight: 700; cursor: pointer; }
#mpHud .mp-ch-stake i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; line-height: 1; pointer-events: none; }
#mpHud .mp-ch-stake b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; line-height: 1; pointer-events: none; }
#mpHud .mp-ch-stake select { all: unset; box-sizing: border-box; width: 100%; height: 100%; padding: 0 28px 0 30px; font: 700 13px/30px var(--fontFamily-default); color: #1d2b4f; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
#mpHud .mp-ch-stake select option { color: #1d2b4f; background: #f4efdf; font-weight: 400; }
#mpHud .mp-ch-hint { font-size: 11px; color: #7a7a7a; }
#mpHud .mp-ch-hint i { font-style: normal; color: #d4a73a; }
#mpHud .mp-ch-btns { display: flex; align-items: center; gap: 22px; }
#mpHud .mp-ch-go { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 120px; height: 34px; box-sizing: border-box; border-radius: 17px; background: #f2c744; color: #1d2b4f; font-size: 14px; font-weight: 700; transition: filter var(--transitionDuration) var(--ease); }
#mpHud .mp-ch-go:hover { filter: brightness(1.06); }
#mpHud .mp-ch-go:active { filter: brightness(.96); }
#mpHud .mp-ch-go .ic { width: 15px; height: 15px; stroke-width: 2; }
#mpHud .mp-ch-cancel { padding: 6px 4px; color: #1d2b4f; font-size: 14px; font-weight: 700; }
#mpHud .mp-ch-cancel:hover { text-decoration: underline; }
/* the waiting toast (A10): '◆ You challenged NAME to a battle. Waiting for their answer...', a dark rgba(20,20,20,.75)
   pill 585 x 24 centred at the bottom (its centre 67 px up), 12 px white with a gold diamond; kept until the answer */
#mpHud .mp-waiting { position: absolute; left: 50%; bottom: 55px; transform: translateX(-50%); z-index: 2; display: none; align-items: center; justify-content: center; gap: 6px; min-width: 585px; max-width: calc(100% - 32px); height: 24px; box-sizing: border-box; padding: 0 16px; border-radius: 12px; background: rgba(20, 20, 20, .75); color: #fff; font-size: 12px; line-height: 1; white-space: nowrap; pointer-events: none; }
#mpHud .mp-waiting.is-on { display: flex; }
#mpHud .mp-waiting i { font-style: normal; color: #e8c25c; }
/* the near-trainer prompt (A11): 'E Give NAME a gift  makes a friend · R to race · I to battle', a dark 390 x 36 pill
   centred at the bottom (its centre 137 px up), a white round key badge with a navy letter, 14 px white bold, the rest
   12 px grey; shown while you stand within about 3 body lengths of a trainer and face them */
#mpHud .mp-nearprompt { position: absolute; left: 50%; bottom: 119px; transform: translateX(-50%); z-index: 2; display: none; align-items: center; gap: 8px; min-width: 390px; max-width: calc(100% - 32px); height: 36px; box-sizing: border-box; padding: 0 16px 0 8px; border-radius: 18px; background: rgba(20, 20, 20, .75); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; pointer-events: none; text-shadow: none; }
#mpHud .mp-nearprompt.is-on { display: flex; }
#mpHud .mp-nearprompt kbd { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1d2b4f; font: 700 12px/1 var(--fontFamily-default); }
#mpHud .mp-nearprompt kbd::after { display: none; }
#mpHud .mp-nearprompt small { margin-left: 4px; font-size: 12px; font-weight: 400; color: #b9b9b9; }
@media (max-width: 768px) {
  #mpHud .mp-nearprompt { min-width: 0; height: auto; padding: 6px 14px 6px 8px; white-space: normal; line-height: 1.3; }
  #mpHud .mp-challenge { height: auto; gap: 10px; padding: 18px 16px 20px; }
  #mpHud .mp-ch-title { font-size: 24px; }
  #mpHud .mp-waiting { min-width: 0; height: auto; padding: 6px 14px; white-space: normal; text-align: center; line-height: 1.3; }
}

/* taken off the screen by the owner (2026-10-20): the trainer plate and its partner line, the catching
   tips, the Nearby list, the controls hint at the bottom, the ball counter, and the original game's
   sound, settings and power-up buttons. Their keys still work (C, V, L, I, E, B, R, F, right mouse). */
.mp-trainer, .mp-pbar, .mp-coach, .mp-nearby, .mp-prompt, .mp-balls,
#toggleSound, #settingsButton, .powerUps-container { display: none !important; }
/* and (owner 2026-10-20) the relief strip, the clouds and the prize pool line */
#mpHud .mp-profile, #mpHud .mp-sky, #mpHud .mp-poolline { display: none !important; }

/* ---- the old timing circle over the creature in the crosshair (aim.js): shrinks, throw when it is small ---- */
#mpHud .mp-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: 3; }
#mpHud .mp-ring.is-on { opacity: 1; }
#mpHud .mp-ring-o, #mpHud .mp-ring-i { position: absolute; left: 0; top: 0; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; box-sizing: border-box; }
#mpHud .mp-ring-o { border: 1px solid var(--white); box-shadow: 0 0 6px rgba(0, 0, 0, .35); }
#mpHud .mp-ring-i { border: 3px solid var(--c); transform: scale(var(--k)); }
#mpHud .mp-ring.is-far .mp-ring-i { border-color: rgb(var(--rgb-white) / .4); }
#mpHud .mp-ring-l { position: absolute; left: 0; top: calc(var(--r) + 12px); transform: translateX(-50%); white-space: nowrap; color: var(--white); padding: 4px 10px; font-family: var(--fontFamily-title); font-size: 18px; line-height: 1.12; text-shadow: var(--text-shadow), 0 0 8px rgba(0, 0, 0, .5); }
#mpHud .mp-ring.is-idle .mp-ring-i { display: none; }
#mpHud .mp-ring.is-idle .mp-ring-o { border-color: var(--c); border-width: 1px; border-style: dashed; box-shadow: none; animation: mp-spin 6s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* the game's own tutorial cards (How to Move, Sprint, Jump), in the same type */
.popup { font-family: 'Lato', sans-serif; background-color: #0b0b0bcc; color: #F2F2F7; border-radius: 1rem; box-shadow: none; }
.popup .instruction .title { font-family: 'Playfair', serif; font-weight: 400; }
.popup .key { border: 2px solid #F2F2F7; color: #F2F2F7; background: transparent; }
body.in-battle .popup { display: none !important; }   /* (no How to Move card over a battle: the base game's tutorial waits until it ends) */

/* The desk's published links (CA, X) sit in a row beside Contact on the home screen and in the menu (game/client/site.js) */
#paoLoad .linksContainer { display: flex; gap: 1.5em; align-items: center; white-space: nowrap; }
/* the CA pill to the right of Travel (site.js caButton, owner 2026-10-21): on a screen too narrow for both, it wraps under Travel */
#paoLoad .buttonContainer:has(.mp-ca-btn) { flex-wrap: wrap; width: max-content; max-width: calc(100vw - 32px); row-gap: .8rem; }
/* the CA ring (site.js caButton, owner 2026-10-22: "just be a CA with circle around it"; "remove the tilt animation from the
   ca button"; "make the ca button the same size as the other button but keep the ca button a circle"): a circle exactly as
   tall as the Travel pill beside it and as wide (loader.js sets both from the pill; this size only until it does), the
   letters CA or the tick in the middle; it fills white on hover as the pills do but never tilts */
#paoLoad .pao-btn.mp-ca-btn { box-sizing: border-box; width: calc(1.5rem + 1em + 2 * var(--borderSize)); height: calc(1.5rem + 1em + 2 * var(--borderSize)); padding: 0; gap: 0; border-radius: 50%; flex: none; }
#paoLoad .pao-btn.mp-ca-btn:hover, #paoLoad .pao-btn.mp-ca-btn:focus-visible { transform: none; }
#paoLoad .pao-btn.mp-ca-btn:active { transform: scale(.97); }
#paoPause .SettingsPanel .buttonsContainer { gap: 1.5em; }
/* owner 2026-10-21: the minimap box is off */
#mpHud .mp-mapbox { display: none !important; }
