/* Store, wallet and collection panels, ball icons, the (unused) catch screen. Same Ride to Rio
   map look as hud.css: paper cards with ink borders and offset shadows, stamp labels, red for the money. */
#mpHud .mp-enc { pointer-events: auto; }

/* ball icons */
#mpHud .mp-bi, #mpHud .mp-bigball, #mpHud .mp-enc-ball { --t: #C8452C; --b: #FBF4DF; border-radius: 50%; position: relative; flex: none; box-sizing: border-box; border: 2px solid #1E1B16;
  background: linear-gradient(var(--t) 0 46%, #1E1B16 46% 54%, var(--b) 54%); }
#mpHud .mp-bi { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
#mpHud .mp-bi::after, #mpHud .mp-bigball::after, #mpHud .mp-enc-ball::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--b); border: 2px solid #1E1B16; box-sizing: border-box; }
#mpHud .mp-bi-great { --t: #2F8F8B; }
#mpHud .mp-bi-ultra { --t: #1E1B16; --b: #D9A93B; }
#mpHud .mp-bi-prism { --t: #7A6AA8; --b: #FFFFFF; box-shadow: 0 0 10px #B8A3F2; }

/* the catch screen (kept for the old way of catching; not loaded now) */
#mpHud .mp-enc { position: absolute; inset: 0; z-index: 12; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(30,27,22,.28)); touch-action: none; user-select: none; }
#mpHud .mp-enc[hidden] { display: none; }
#mpHud .mp-enc-card { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); background: var(--paper-2); border: 2px solid var(--ink); border-radius: 26px; padding: 14px 22px 16px; box-shadow: 6px 6px 0 var(--ink); text-align: center; min-width: 280px; }
#mpHud .mp-enc-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
#mpHud .mp-enc-name { font-size: 22px; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; }
#mpHud .mp-enc-rar { font-family: var(--font-stamp); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; color: #fff; padding: 4px 9px 3px; border-radius: 8px; box-shadow: 1px 1px 0 var(--ink); }
#mpHud .mp-enc-sub { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }
#mpHud .mp-enc-pay { font-size: 14px; margin-top: 6px; }
#mpHud .mp-enc-pay b, #mpHud .mp-enc-pay span { color: var(--forest); }
#mpHud .mp-enc-run { position: absolute; top: 35px; left: 35px; }
#mpHud .mp-enc-side { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
#mpHud .mp-enc-balls { display: grid; gap: 6px; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); padding: 8px; }
#mpHud .mp-enc-pick { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 13px; min-width: 128px; }
#mpHud .mp-enc-pick.is-out { opacity: .38; }
#mpHud .mp-enc-msg { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: var(--font-stamp); font-size: 40px; text-transform: uppercase; color: var(--cream); text-shadow: 3px 3px 0 var(--red), 5px 5px 0 var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; }
#mpHud .mp-enc-msg.is-on { animation: mp-pop 1.3s ease-out; }
#mpHud .mp-enc-dock { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; }
#mpHud .mp-enc-ball { width: 86px; height: 86px; cursor: grab; touch-action: none; box-shadow: 3px 4px 0 var(--ink); }
#mpHud .mp-enc-hint { margin: 0; font-family: var(--font-hand); font-size: 20px; color: var(--red); text-shadow: 0 0 6px var(--paper), 0 0 2px var(--paper); text-align: center; }

/* store, wallet */
#mpHud .mp-storebal { margin: 4px 0 14px; font-size: 15px; }
#mpHud .mp-items { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
#mpHud .mp-item { background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 2px 2px 0 var(--ink); padding: 14px; display: grid; justify-items: center; text-align: center; gap: 4px; align-content: start; }
#mpHud .mp-item b { font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; }
#mpHud .mp-item img { width: 120px; height: 120px; }
#mpHud .mp-item p { margin: 0; font-size: 13px; color: var(--ink-soft); min-height: 2.6em; }
#mpHud .mp-item small { color: var(--ink-soft); }
#mpHud .mp-item.t-rare { border-color: var(--teal); }
#mpHud .mp-item.t-epic { border-color: var(--mustard); }
#mpHud .mp-item.t-legendary { border-color: var(--red); background: linear-gradient(160deg, #F6E4C4, var(--paper)); }
#mpHud .mp-bigball { width: 64px; height: 64px; margin: 18px 0 12px; box-shadow: 2px 3px 0 var(--ink); }
#mpHud .mp-price { font-weight: 700; font-size: 15px; margin: 4px 0 6px; }
#mpHud .mp-price span { color: var(--forest); font-weight: 600; margin-left: 4px; }
#mpHud .mp-bigmoney { display: flex; align-items: center; gap: 12px; font-size: 18px; flex-wrap: wrap; }
#mpHud .mp-bigmoney b { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; font-variation-settings: "SOFT" 100, "WONK" 1; }
#mpHud .mp-bigmoney strong { color: var(--forest); font-size: 22px; }
#mpHud .mp-bigmoney .mp-gem, #mpHud .mp-bigmoney .mp-gem svg { width: 34px; height: 34px; }
#mpHud .mp-gem svg { fill: var(--teal); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
#mpHud .mp-wsec { border-top: 2px dashed var(--ink); padding: 14px 0 6px; }
#mpHud .mp-wsec h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; font-variation-settings: "SOFT" 100, "WONK" 1; }
#mpHud .mp-wsec p { margin: 0 0 10px; }
#mpHud .mp-wsec a { color: var(--ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
#mpHud .mp-cashrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#mpHud .mp-cashrow input { all: unset; box-sizing: border-box; width: 130px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; font-family: inherit; }
#mpHud .mp-eq { color: var(--forest); font-weight: 700; min-width: 64px; }
#mpHud .mp-unit { color: var(--ink-soft); }
#mpHud .mp-warn { color: #9A7320; font-weight: 600; }
#mpHud .mp-wd { grid-template-columns: 90px 1fr auto 40px; }
#mpHud .mp-st { font-family: var(--font-stamp); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
#mpHud .st-sent { color: var(--forest); }
#mpHud .st-pending, #mpHud .st-stuck, #mpHud .st-waiting { color: #9A7320; }
#mpHud .st-rejected { color: var(--red); }
#mpHud .st-approved, #mpHud .st-sending { color: var(--teal); }

@media (max-width: 768px) {
  #mpHud .mp-items { grid-template-columns: repeat(2, 1fr); }
  #mpHud .mp-item img { width: 96px; height: 96px; }
}
