/* tangibles.fun's catch notifications, as its stylesheets draw them (read 2026-10-21 from the live site's
   player-DqGjDGah.css and base-TW-VRT1V.css; owner's call: identical). Toasts (.toasts / .toast), the cards column
   (.cards / .fxcard: the step tile and the catch card), the drop banner (.banner), the gotcha brush (.gotcha), the
   screen flash (.flash) and the confetti canvas (.confetti). Every value is tangibles' own; only the "#mpHud "
   prefix is ours so the game's HUD rules never win. The variables are field.css's block plus the few these need.
   The nodes come from game/client/catch/notify.js; the page links this file from its head. */

#mpHud .toasts, #mpHud .cards, #mpHud .banner, #mpHud .gotcha, #mpHud .flash, #mpHud .confetti {
  --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", "Playfair", "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>");
  --gold: #e8c766; --cream-85: #f3edd3d9; --cream-40: #f3edd366; --chip-bg: #1e1e22b3; --muted: #f3edd3a3; --line: #f3edd329;
  --torn-l: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40' preserveAspectRatio='none'><path transform='translate(30 0) scale(-1 1)' d='M0 0 L3.8 0 L5.8 3.9 L5 7 L6.7 11.1 L7.3 15.2 L7.3 17.7 L6.4 22.2 L6.8 24.7 L5.2 28 L5.6 31.1 L4.5 34.7 L6.4 38.6 L5 40 L0 40zM0 1.8Q15 1.3 27.2 2Q15 4.7 0 5.1zM0 3.2Q7.1 3.7 13 4.5Q7.1 8 0 7.4zM0 5.5Q12.9 5.8 23.4 8Q12.9 10.1 0 9.8zM0 9.6Q8.5 10.7 15.4 10.7Q8.5 13 0 11.9zM0 15.9Q16.2 15.7 29.5 18.5Q16.2 20.7 0 20.8zM0 18.9Q4.4 19.7 8 21.5Q4.4 24.6 0 23.9zM0 22.4Q9.4 23.1 17.2 22.5Q9.4 24.9 0 24.2zM0 26.2Q8.7 26 15.8 28.8Q8.7 29.4 0 29.6zM0 28.4Q15 27.9 27.2 29.3Q15 32.6 0 33.2zM0 31.2Q15 31.6 27.3 33.1Q15 35.4 0 34.9zM0 35.6Q14.2 36.3 25.8 37.8Q14.2 39.4 0 38.7zM25.2 22.6q1.2 -1 2.4 0.4q-1.2 1 -2.4 0zM25.7 9.3q1.5 -0.9 3.1 -0.3q-1.5 0.9 -3.1 0zM23.8 22.4q1.6 -0.8 3.2 -0q-1.6 0.8 -3.2 0z'/></svg>");
  font-family: var(--body); color: var(--text);
}
#mpHud .pass { pointer-events: none; }

/* the icons these nodes carry (base.css .ic) */
#mpHud :is(.toast, .fxcard, .banner) .ic {vertical-align:-.14em;fill:none;stroke:currentColor;stroke-width:1.75px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:1em;height:1em;overflow:visible}
#mpHud :is(.toast, .fxcard, .banner) .ic .w {fill:currentColor;fill-opacity:.22;stroke:none}
#mpHud :is(.toast, .fxcard, .banner) .ic .f {fill:currentColor;stroke:none}
#mpHud .fxcard .ico .ic {width:1em;height:1em}
#mpHud :is(.fxcard, .banner) .num {font-family:var(--mono);letter-spacing:0;font-variant-numeric:tabular-nums lining-nums;font-weight:500}
#mpHud .fxcard .gain {color:var(--green);font-size:12px}
#mpHud .fxcard .gain span {color:var(--gold);margin-left:8px}

/* toasts: bottom centre, wiped in, a diamond or an icon before the text */
#mpHud .toasts {z-index:36;justify-items:center;gap:6px;display:grid;position:absolute;bottom:25%;left:50%;transform:translate(-50%)}
#mpHud .toast {text-align:center;max-width:78vw;font-size:14px;font-weight:500;transition:opacity .3s,transform .3s;animation:.3s ease-out wipe}
#mpHud .toast:before {content:"";background:var(--cream-85);flex:none;width:7px;height:7px;transform:rotate(45deg)}
#mpHud .toast>.ic {font-size:15px}
#mpHud .toast>.ic~span {margin-left:-2px}
#mpHud .toast:has(>.ic):before {display:none}
#mpHud .toast.error:before {background:var(--seal)}
#mpHud .toast.good:before {background:var(--accent)}
#mpHud .toast.out {opacity:0;transform:translateY(8px)}
@keyframes wipe {0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}

/* the brush strip the toast sits on, the chips */
#mpHud .strip-brush {color:var(--cream-ink);background:var(--strip-bg);box-shadow:none;text-shadow:0 1px 2px #00000059;-webkit-mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;-webkit-mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;border:none;border-radius:0;align-items:center;gap:10px;padding:8px 42px;font-size:14px;line-height:1.3;display:inline-flex;position:relative}
#mpHud .status-chip {box-sizing:border-box;background:var(--chip-bg);height:22px;color:var(--cream-ink);font-family:var(--body);letter-spacing:.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 .ic {font-size:12px}
#mpHud .types {flex-wrap:wrap;align-items:center;gap:4px;margin:3px 0;display:flex}
#mpHud .types i {text-transform:uppercase;letter-spacing:.06em;color:#fff;text-shadow:0 1px 1px #00000059;border-radius:2px;padding:2px 7px;font-size:11px;font-style:normal;font-weight:600}

/* the cards column on the right: step tiles and catch cards */
#mpHud .cards {z-index:22;gap:8px;width:300px;display:grid;position:absolute;top:250px;right:14px}
#mpHud .fxcard {--c:var(--gold);border-radius:var(--r);background:var(--card-ink);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:var(--cream-ink);border:none;align-items:center;gap:12px;padding:10px 16px;transition:opacity .4s,transform .4s;animation:.4s cubic-bezier(.2,1,.4,1) slidein;display:flex;box-shadow:0 8px 22px #0000004d}
#mpHud .fxcard.out {opacity:0;transform:translate(30px)}
#mpHud .fxcard img {filter:drop-shadow(0 3px 5px #00000080);width:64px;height:64px}
#mpHud .fxcard .ico {font-size:30px}
#mpHud .fxcard small {color:var(--cream-85);text-transform:uppercase;letter-spacing:.07em;align-items:center;gap:4px;font-size:11px;font-weight:600;display:inline-flex}
#mpHud .fxcard.fresh small .ic {color:var(--accent)}
#mpHud .fxcard b {font-family:var(--body);font-size:18px;font-weight:500;display:block}
#mpHud .fxcard .types {margin:4px 0}
#mpHud .fxcard .find {color:var(--cream-85);align-items:center;gap:5px;margin-top:5px;font-size:12px;display:flex}
#mpHud .fxcard .find .ic {color:var(--gold)}
#mpHud .fxcard .find.found {color:var(--gold);font-weight:600}
#mpHud .fxcard .find.barline {color:#e0a874}
#mpHud .fxcard .find.barline small {color:var(--cream-85);font-size:11px}
#mpHud .fxcard .find.barline.still {color:var(--cream-85);margin-top:2px;font-weight:600}
#mpHud .fxcard .find.barline.done {color:var(--gold);font-weight:700}
#mpHud .fxcard .find.no {border-top:1px solid var(--line);color:var(--cream-ink);gap:1px;margin-top:7px;padding-top:6px;font-size:13px;line-height:1.25;display:grid}
#mpHud .fxcard .find.no em {text-transform:uppercase;letter-spacing:.07em;color:var(--red);align-items:center;gap:4px;font-size:11px;font-style:normal;font-weight:600;display:inline-flex}
#mpHud .fxcard .find.no .ic {color:var(--red)}
#mpHud .fxcard .gain, #mpHud .fxcard .gain span {color:var(--cream-85)}
#mpHud .fxcard .rewards {color:var(--cream-ink);flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;line-height:14px;display:flex}
/* (owner 2026-10-21) the cards never run past the screen: the column is capped to the window and kept inside it, every
   line wraps inside the card, and the rows get room: kicker, name, chips, the stats row, then a note on its own line */
#mpHud .cards {width:min(300px, calc(100vw - 28px));box-sizing:border-box}
#mpHud .fxcard {box-sizing:border-box;width:100%;max-width:100%;gap:14px;padding:14px 18px 15px}
#mpHud .fxcard > div {min-width:0;flex:1;display:grid;gap:6px;justify-items:start}
#mpHud .fxcard > div > * {max-width:100%}
#mpHud .fxcard img {width:58px;height:58px;flex:none}
#mpHud .fxcard b {line-height:1.15;overflow-wrap:anywhere}
#mpHud .fxcard .types {margin:0;gap:6px}
#mpHud .fxcard .rewards {gap:4px 14px;line-height:1.3}
#mpHud .fxcard .note {color:var(--cream-85);font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;border-top:1px solid #f3edd329;padding-top:6px;width:100%}
#mpHud .rewards>span {white-space:nowrap;display:inline-block}
#mpHud .rewards .ic {stroke-width:1.75px;vertical-align:-3px;width:16px;min-width:16px;height:16px;margin-left:4px}
#mpHud .rewards .ic .w {fill-opacity:.25}
#mpHud .grade-chev {--cut:9px;gap:6px;min-height:28px;margin:6px 0 4px;padding:2px 18px}
#mpHud .grade-chev b {font-size:18px;font-weight:600;display:inline}
#mpHud .grade-chev span {font-size:12px}
#mpHud .grade-chev i {opacity:.7;font-size:11px;font-style:normal}
@keyframes slidein {0%{opacity:0;transform:translate(40px)}}
#mpHud .fxcard .note-act {pointer-events:auto;margin-top:6px}

/* the grade chevron and the tile's action button (base.css .tag-chevron / .btn) */
#mpHud .tag-chevron {--cut:10px;--tc-bg:var(--chip-bg);--tc-fg:var(--cream-ink);min-height:24px;padding:3px calc(var(--cut) + 8px);background:var(--tc-bg);color:var(--tc-fg);font-family:var(--body);white-space:nowrap;clip-path:polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);border:none;border-radius:0;justify-content:center;align-items:center;gap:6px;font-size:13px;font-weight:500;line-height:1.1;display:inline-flex}
#mpHud .tag-chevron.cream {--tc-bg:var(--paper);--tc-fg:var(--navy)}
#mpHud .fxcard .btn {--cut:10px;--b-bg:var(--btn-bg);--b-fg:var(--btn-fg);--b-hi:var(--btn-hi);font-family:var(--display);letter-spacing:.01em;min-height:40px;padding:8px calc(var(--cut) + 14px);background:var(--b-bg);color:var(--b-fg);-webkit-user-select:none;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 .fxcard .btn:hover {background:var(--b-hi);box-shadow:inset 0 -3px 0 var(--accent)}
#mpHud .fxcard .btn:active {filter:brightness(.96);transform:translateY(1px)}
#mpHud .fxcard .btn:focus-visible {box-shadow:inset 0 0 0 2px var(--accent), inset 0 -3px 0 var(--accent);outline:none}
#mpHud .fxcard .btn.sm {--cut:8px;min-height:30px;padding:5px calc(var(--cut) + 9px);font-size:13px}

/* the drop banner */
#mpHud .banner {color:var(--cream-ink);background:var(--strip-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:25;max-width:86vw;-webkit-mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;-webkit-mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;mask:var(--torn-l) left / 32px 100% no-repeat, linear-gradient(#000, #000) center / calc(100% - 62px) 100% no-repeat, var(--torn-r) right / 32px 100% no-repeat;align-items:center;gap:16px;padding:14px 54px;transition:opacity .5s;animation:.5s cubic-bezier(.2,1,.4,1) drop;display:flex;position:absolute;top:17%;left:50%;transform:translate(-50%)}
#mpHud .banner .banner-ic {color:var(--accent)}
#mpHud .banner.out {opacity:0}
#mpHud .banner b {font-family:var(--body);font-size:22px;font-weight:500;display:block}
#mpHud .banner small {color:var(--cream-85);margin-top:2px;font-size:13px;display:block}
@keyframes drop {0%{opacity:0;transform:translate(-50%,-40px)scale(.9)}}

/* the gotcha brush */
#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;-webkit-mask:var(--brush) 0 0 / 100% 100% no-repeat;mask:var(--brush) 0 0 / 100% 100% no-repeat;background:#0e0e0cd1;animation:.5s cubic-bezier(.2,.8,.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:.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%)}}
#mpHud .gotcha.open {width:min(300px,70vw);height:46px;animation-duration:2.2s;top:auto;bottom:13%;left:min(62%,100% - 500px)}
#mpHud .gotcha.open .gotcha-ink:after {bottom:8px}
#mpHud .gotcha.open .gotcha-text {white-space:nowrap;align-items:baseline;gap:8px;display:flex;left:11%;right:9%}
#mpHud .gotcha.open .gotcha-text b {font-size:24px}
#mpHud .gotcha.open .gotcha-text span {text-overflow:ellipsis;font-size:14px;overflow:hidden}

/* the screen flash and the confetti canvas */
#mpHud .flash {z-index:40;pointer-events:none;transition:opacity .6s;position:fixed;inset:0}
#mpHud .confetti {z-index:45;pointer-events:none;position:fixed;inset:0}

/* on touch screens a banner or card can be tapped away (tangibles gates this on body.touch; notify.js adds the class only on coarse pointers) */
#mpHud .tap-away {pointer-events:auto;cursor:pointer}

/* a trainer's challenge as a catch card (owner 2026-10-21, notify.js challengeCard): its creature, the Battle challenge kicker,
   the trainer's name, the creature and the stake, Accept (the cream button) and Decline, and a line along its foot running
   down the 30 s to answer */
#mpHud .fxcard.challenge {position:relative;overflow:hidden;pointer-events:auto}
#mpHud .fxcard.challenge .types {display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
#mpHud .fxcard.challenge .types .line {font-size:13px;color:var(--cream-ink)}
#mpHud .fxcard.challenge .acts {display:flex;gap:8px;margin-top:4px}
#mpHud .fxcard.challenge .btn {pointer-events:auto}
#mpHud .fxcard.challenge .btn.yes {--b-bg:var(--pri-bg);--b-fg:var(--pri-fg);--b-hi:#fffaf0}
#mpHud .fxcard.challenge .btn:disabled {opacity:.45;cursor:default;box-shadow:none}
#mpHud .fxcard.challenge .life {position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--c);transform-origin:0;animation:challenge-life linear forwards}
@keyframes challenge-life {to{transform:scaleX(0)}}
