/* The catch style for three more pieces (owner 2026-10-21, one after another: "this button put in the catch style popup",
   "make this into catch style popup", "make this catch style popup"). Loaded after paper.css, so these win.
   - The near-trainer prompt ("E Give NAME a gift" and what else you can do) as the catch card (notify.css .fxcard): the dark
     card, its key where the card's picture is, the gift in the card's name type, the rest under it in the card's kicker.
   - The battle's Continue as the catch card: the dark card, Space as a cream key; only the key line, or only "Tap to
     continue" on a touch screen (both showed on a touch laptop, and the key was squeezed into a circle).
   - Victory as the catch's Gotcha banner (notify.css .gotcha): a dark brush stroke, the word in the Gotcha script, cream,
     the gold line under it; the brush draws in and the word slides in, as the banner's do.
   - The island's notes in the middle of the screen (a Legendary or Mythic appearing, something stirring, the kinds of the
     hour) as the catch card: the creature's picture when the note names one, the rarity as the kicker in its colour, the
     line in the card's name type, "Check Nearby to find it" under it. */

/* ---- the near-trainer prompt ---- */
#mpHud .mp-nearprompt.mp-nearprompt {   /* (doubled: above paper.css's strip rule, whose :is() counts two classes) */
  background: #1e1e22b8 !important; color: #f3edd3 !important; border: none !important; box-shadow: none !important; text-shadow: none !important;
  filter: none !important; -webkit-mask: none !important; mask: none !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 6px !important; rotate: none;
  height: auto; min-width: 0; width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; padding: 10px 18px 11px 12px;
  grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 3px; align-items: center; white-space: normal;
  font-family: "Lato", "Fira Sans", "Segoe UI", system-ui, sans-serif;
}
#mpHud .mp-nearprompt.is-on { display: grid; animation: .4s cubic-bezier(.2, 1, .4, 1) both catch-near-in; }
#mpHud .mp-nearprompt kbd { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: #f3edd3 !important; color: #2b3f5c !important; font: 700 14px/1 "Lato", sans-serif; }
#mpHud .mp-nearprompt b { grid-column: 2; font: 500 17px/1.15 "Lato", sans-serif; color: #f3edd3; }
#mpHud .mp-nearprompt small { grid-column: 2; margin: 0; color: #f3edd3d9 !important; font: 600 11px/1.25 "Lato", sans-serif; text-transform: uppercase; letter-spacing: .07em; }
@keyframes catch-near-in { 0% { opacity: 0; translate: 0 10px; } }

/* ---- the battle's Continue ---- */
#mpHud .bt-win-go { background: #1e1e22b8; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 6px; color: #f3edd3;
  font: 500 16px/1 "Lato", sans-serif; min-height: 42px; padding: 0 18px 0 12px; }
#mpHud .bt-win-go kbd { width: auto; min-width: 0; height: 24px; padding: 0 8px; border-radius: 4px; background: #f3edd3 !important; color: #2b3f5c !important;
  border: none !important; box-shadow: none; font: 700 12px/1 "Lato", sans-serif !important; }
#mpHud .bt-win-go kbd::after { display: none; }
/* (above battle.css's #mpHud .bt .keys > span, which showed both lines everywhere) */
#mpHud .bt .bt-win-go > .t-key { display: inline-flex; align-items: center; gap: 8px; }
#mpHud .bt .bt-win-go > .t-touch { display: none; }
body.touch #mpHud .bt .bt-win-go > .t-key { display: none; }
body.touch #mpHud .bt .bt-win-go > .t-touch { display: inline-flex; }

/* ---- the Defeated card's Continue (owner 2026-10-22: "the space to continue looks weird, i want it more styled like the catch
   popup"): the battle's Continue above, the dark card with Space as a cream key (it was white words with Space in a ring),
   under the line; only the key line, or only "Tap to continue" on a touch screen ---- */
#mpHud .bt-win.k-defeat .bt-win-foot { top: calc(50% + 58px); align-items: center; box-sizing: border-box; min-height: 42px; padding: 0 18px 0 12px;
  background: #1e1e22b8; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 6px; color: #f3edd3; text-shadow: none;
  font: 500 16px/1 "Lato", sans-serif; animation: .4s cubic-bezier(.2, 1, .4, 1) .15s both catch-foot-in; }
@keyframes catch-foot-in { 0% { opacity: 0; translate: -50% calc(-50% + 10px); } }   /* (it is centred by its translate) */
#mpHud .bt-win.k-defeat .bt-win-foot > span { color: #f3edd3; font-size: 16px; text-shadow: none; }
#mpHud .bt-win.k-defeat .bt-win-foot kbd { width: auto; min-width: 0; height: 24px; padding: 0 8px; border-radius: 4px; background: #f3edd3 !important;
  color: #2b3f5c !important; border: none !important; box-shadow: none; font: 700 12px/1 "Lato", sans-serif !important; }
#mpHud .bt-win.k-defeat .bt-win-foot kbd::after { display: none; }
#mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-key { display: inline-flex; align-items: center; gap: 8px; }
#mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-touch { display: none; }
body.touch #mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-key { display: none; }
body.touch #mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-touch { display: inline-flex; }
/* (a touch screen is also one whose pointer is coarse, as aim.js reads it: the page never sets body.touch) */
@media (pointer: coarse) {
  #mpHud .bt .bt-win-go > .t-key, #mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-key { display: none; }
  #mpHud .bt .bt-win-go > .t-touch, #mpHud .bt .bt-win.k-defeat .bt-win-foot > .t-touch { display: inline-flex; }
}

/* ---- the battle's opening line (owner 2026-10-22, "A wild Bulbasaur appeared!": "change this to catch popup style"): the catch
   card as the island's notes have it, the foe's picture, the kind of battle as the kicker (a wild one's rarity in its colour), the
   line in the card's name type; it slides in as the card does (battle.js intro, showTitle's card) ---- */
#mpHud .bt-title.k-battle .bt-title-card { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; row-gap: 5px; align-items: center;
  justify-items: start; text-align: left; width: max-content; max-width: min(560px, calc(100vw - 28px)); box-sizing: border-box; padding: 14px 24px 15px 18px;
  background: #1e1e22b8; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 6px; color: #f3edd3;
  font-family: "Lato", "Fira Sans", "Segoe UI", system-ui, sans-serif; }
#mpHud .bt-title.k-battle .bt-title-card:has(> img) { grid-template-columns: auto minmax(0, 1fr); padding-left: 14px; }
#mpHud .bt-title.k-battle .bt-title-card > img { grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 5px #00000080); }
#mpHud .bt-title.k-battle .bt-title-card:has(> img) > :not(img) { grid-column: 2; }
#mpHud .bt-title.k-battle .bt-title-card small { color: var(--bc, #f3edd3d9); font: 600 11px/1.2 "Lato", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
#mpHud .bt-title.k-battle .bt-title-card b { font: 500 22px/1.2 "Lato", sans-serif; color: #f3edd3; white-space: normal; overflow-wrap: anywhere; }
#mpHud .bt-title.k-battle.in .bt-title-card { animation: .4s cubic-bezier(.2, 1, .4, 1) both catch-near-in; }

/* ---- Victory ---- */
#mpHud .bt-title.k-victory { --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>"); }
#mpHud .bt-title.k-victory > .bt-title-ink, #mpHud .bt-title.k-victory > .bt-title-word { justify-self: center; align-self: center; }
#mpHud .bt-title.k-victory .bt-title-ink { display: block; position: relative; width: clamp(300px, 40vw, 470px); height: clamp(84px, 11vw, 112px); background: #0e0e0cd1;
  transform: none; transform-origin: 0; -webkit-mask: var(--brush) 0 0 / 100% 100% no-repeat; mask: var(--brush) 0 0 / 100% 100% no-repeat; }
#mpHud .bt-title.k-victory .bt-title-ink::after { content: ''; position: absolute; left: 8%; right: 30%; bottom: 18%; height: 2px; background: linear-gradient(90deg, #e6dc3a, transparent); }
#mpHud .bt-title.k-victory .bt-title-word, #mpHud .bt.rough .bt-title.k-victory .bt-title-word { background: none; clip-path: none; filter: none; -webkit-text-stroke: 0; transform: none;
  padding: 0 0 .12em; color: #f3edd3; font: 400 clamp(40px, 5.6vw, 66px)/1 "Kaushan Script", "Fira Sans", cursive; letter-spacing: .01em; text-transform: none; text-shadow: 0 2px 6px #0000008c; }
#mpHud .bt-title.k-victory.in .bt-title-ink { animation: .5s cubic-bezier(.2, .8, .2, 1) both gotcha-ink; }
#mpHud .bt-title.k-victory.in .bt-title-word { animation: .7s ease-out both catch-victory-in; }
@keyframes catch-victory-in { 0% { opacity: 0; translate: -14px 0; } }
@media (prefers-reduced-motion: reduce) {
  #mpHud .mp-nearprompt.is-on, #mpHud .bt-title.k-victory.in .bt-title-ink, #mpHud .bt-title.k-victory.in .bt-title-word { animation: none; }
}

/* ---- the island's notes (a Legendary or Mythic appearing, ...) ---- */
#mpHud .mp-banner.mp-banner {   /* (doubled: above paper.css's card rule and popups.css) */
  background: #1e1e22b8 !important; color: #f3edd3 !important; border: none !important; box-shadow: none !important; text-shadow: none !important;
  filter: none !important; -webkit-mask: none !important; mask: none !important; border-radius: 6px !important; rotate: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 14px; row-gap: 5px; align-items: center; justify-items: start; text-align: left;
  width: max-content; max-width: min(520px, calc(100vw - 28px)); box-sizing: border-box; padding: 14px 22px 15px 18px;
  font-family: "Lato", "Fira Sans", "Segoe UI", system-ui, sans-serif;
}
#mpHud .mp-banner.mp-banner:has(> img) { grid-template-columns: auto minmax(0, 1fr); padding-left: 14px; }
#mpHud .mp-banner.mp-banner > img { grid-row: 1 / span 3; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 5px #00000080); }
#mpHud .mp-banner.mp-banner:has(> img) > :not(img) { grid-column: 2; }
#mpHud .mp-banner.mp-banner small { color: var(--bc, #f3edd3d9); font: 600 11px/1.2 "Lato", sans-serif; letter-spacing: .07em; text-transform: uppercase; opacity: 1; }
#mpHud .mp-banner.mp-banner b { font: 500 22px/1.2 "Lato", sans-serif; color: #f3edd3; overflow-wrap: anywhere; }
#mpHud .mp-banner.mp-banner span { font: 400 13px/1.3 "Lato", sans-serif; color: #f3edd3d9; opacity: 1; }
