/* Accounts and friends (account.js, 2 Oct 2026). The screens wear the online art pack's look (pronline.css: the stadium
   behind, the pack's top pictures, navy panels with glowing cyan borders, the gold plate, Barlow Condensed with a dark rim)
   at the phone's own width, since they hold text boxes and lists that grow; then the match invite that drops in over any
   screen, a player's card, and the Online hub's pieces (the corner chip, the Friends section) in the hub's own look. */

/* ---- the layer: over every screen and PitchWorks' dialogs, under the game's own dialogs (FSUI.ask, 9000) */
.pra { position: fixed; inset: 0; z-index: 8500; display: flex; flex-direction: column; color: #fff; background: #071630; font-family: var(--font-ui); -webkit-tap-highlight-color: transparent; animation: praIn 0.2s ease-out both; }
.pra.out { animation: praOut 0.16s ease-in both; pointer-events: none; }
.pra-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 14, 32, 0) 30%, rgba(5, 14, 32, 0.6) 60%, rgba(5, 14, 32, 0.85) 100%), linear-gradient(90deg, rgba(255, 40, 40, 0.24), rgba(255, 40, 40, 0) 40%, rgba(30, 110, 255, 0) 60%, rgba(30, 110, 255, 0.26)), url("assets/dr_bg.webp") center top / cover no-repeat, #071630; }
/* (the game's button look off, with no weight: each button's own class wins) */
:where(.pra, .pra-sheet, .pra-inv) button { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; color: inherit; font: inherit; letter-spacing: 0; cursor: pointer; touch-action: manipulation; }
:where(.pra, .pra-sheet, .pra-inv) button:active { transform: none; box-shadow: none; }
.pra-head { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: calc(var(--safe-t, 0px) + 6px) 14px 6px 8px;
  background: linear-gradient(180deg, #0f2649, #0a1b37); border-bottom: 2px solid #1d4a86; box-shadow: 0 2px 0 #040b18, 0 6px 14px rgba(0, 0, 0, 0.45); }
.pra .pra-back { flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.pra-back img { width: 40px; height: 40px; display: block; }
.pra .pra-back:active { transform: scale(0.94); }
.pra-ttl { flex: 1 1 auto; min-width: 0; margin: 0; padding-right: 46px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 italic 30px/1.1 var(--font-display); text-transform: uppercase; }
/* the pack's lettering: white to ice blue, a dark rim round each letter */
.pra-ttl, .pra-ice, .pra-h { background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #c7dcf7 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1.5px 0 0 #06162e) drop-shadow(-1.5px 0 0 #06162e) drop-shadow(0 1.5px 0 #06162e) drop-shadow(0 -1.5px 0 #06162e) drop-shadow(0 2.5px 0 #1d56a6); }
.pra-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none;
  padding: 0 14px calc(var(--safe-b, 0px) + 28px + var(--kb, 0px)); }
.pra-scroll::-webkit-scrollbar { display: none; }
.pra-band { display: block; width: calc(100% + 28px); max-width: none; margin: 0 -14px -34px; aspect-ratio: 1080 / 628; object-fit: cover; object-position: center 30%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.pra-body { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 520px; margin: 0 auto; }
@media (min-height: 760px) { .pra-band { margin-bottom: -26px; } }

/* ---- panels (the pack's navy with the glowing cyan rim; quiet: the dimmer one, not .dim: style.css fades any .dim), headings, words */
.pra-panel { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(13, 37, 76, 0.97), rgba(8, 26, 56, 0.97));
  border: 2.5px solid #19d6f0; box-shadow: 0 0 0 1.5px #051226, 0 0 10px rgba(25, 214, 240, 0.5), inset 0 0 10px rgba(25, 214, 240, 0.18); }
.pra-panel.quiet { border-color: rgba(25, 214, 240, 0.35); background: linear-gradient(180deg, rgba(10, 30, 62, 0.93), rgba(7, 22, 48, 0.93)); box-shadow: 0 0 0 1.5px #051226, inset 0 0 10px rgba(25, 214, 240, 0.08); }
.pra-h { margin: 0; font: 800 italic 26px/1.05 var(--font-display); text-transform: uppercase; align-self: flex-start; }
.pra-p { margin: 0; font: 600 14.5px/1.4 var(--font-ui); color: #d8eaff; }
.pra-sh { display: flex; align-items: center; gap: 8px; margin: 8px 2px -2px; font: 800 15px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #8fc3ff; }
.pra-sh span { margin-left: auto; font: 600 12.5px/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: #4dff8f; }
.pra-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font: 800 14px/1 var(--font-display); font-style: normal; letter-spacing: 0; color: #0b1a33; background: linear-gradient(180deg, #d4fbff, #5ee6ff 45%, #18b4ea); }

/* ---- text boxes: dark wells in the cyan rim, 18 px words (no zoom on a phone), the rim green / coral as the line says */
.pra-lab { margin: 4px 0 -2px; font: 800 13px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #8fc3ff; }
.pra-fline { display: flex; gap: 10px; align-items: stretch; }
.pra-field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 54px; border-radius: 12px; background: linear-gradient(180deg, #04112a, #0a2147);
  border: 2.5px solid #2a9fe0; box-shadow: 0 0 0 1.5px #04101f, inset 0 3px 8px rgba(0, 0, 0, 0.55); transition: border-color 0.15s, box-shadow 0.15s; }
.pra-field:focus-within { border-color: #ffd23a; box-shadow: 0 0 0 1.5px #04101f, 0 0 10px rgba(255, 210, 58, 0.55), inset 0 3px 8px rgba(0, 0, 0, 0.55); }
.pra-field[data-st='ok'], .pra-field[data-st='ok']:focus-within { border-color: #39d98a; box-shadow: 0 0 0 1.5px #04101f, 0 0 10px rgba(57, 217, 138, 0.5), inset 0 3px 8px rgba(0, 0, 0, 0.55); }
.pra-field[data-st='bad'], .pra-field[data-st='bad']:focus-within { border-color: #ff7a6a; box-shadow: 0 0 0 1.5px #04101f, 0 0 10px rgba(255, 122, 106, 0.45), inset 0 3px 8px rgba(0, 0, 0, 0.55); }
.pra-at { flex: none; padding-left: 14px; font: 800 22px/1 var(--font-display); color: #5ee6ff; }
.pra-in { flex: 1 1 auto; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border: 0; outline: none; border-radius: 12px; background: transparent; box-shadow: none;
  font: 600 18px/1 var(--font-ui); color: #fff; caret-color: #ffd23a; -webkit-user-select: text; user-select: text; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.pra-field.at .pra-in { padding-left: 4px; }
.pra-in::placeholder { color: #5f8fd6; opacity: 1; font-weight: 500; }
.pra .pra-show { flex: none; align-self: stretch; min-width: 64px; margin: 4px; padding: 0 12px; border-radius: 9px; font: 800 15px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #d8eaff;
  background: linear-gradient(180deg, #123468, #0a2147); border: 1.5px solid #2fb8ff; }
.pra-msg { min-height: 18px; margin: 0; font: 600 13px/1.35 var(--font-ui); color: #8fb0d8; }
.pra-msg.ok { color: #4dff8f; } .pra-msg.bad { color: #ffb4a8; } .pra-msg.wait { color: #9fdcff; }
.pra-err { margin: 2px 0 0; padding: 9px 12px; border-radius: 10px; font: 700 14px/1.35 var(--font-ui); color: #ffd0c8; background: rgba(232, 64, 47, 0.16); border: 1.5px solid rgba(255, 122, 106, 0.6); }
.pra-err[hidden] { display: none; }

/* ---- buttons: the pack's gold plate (its ends kept, its middle stretched), navy plates, small gold pills */
.pra .pra-gold { --h: 58px; position: relative; display: grid; place-items: center; width: 100%; height: var(--h); margin-top: 4px; border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09); border-image: url("assets/pro/plate_gold.webp") 0 190 0 200 fill / 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09) stretch; }
.pra-gold b { white-space: nowrap; font: 800 27px/1 var(--font-display); text-transform: uppercase; color: #0b1a33; }
.pra .pra-gold:active, .pra-inv .pra-gold:active, .pra-sheet .pra-gold:active { transform: scale(0.97); filter: brightness(1.08); }
.pra .pra-gold:disabled, .pra-sheet .pra-gold:disabled { filter: saturate(0.25) brightness(0.65); cursor: default; }
.pra-badge { position: absolute; right: calc(var(--h) * -0.6); top: 4px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; font: 800 16px/1 var(--font-display); font-style: normal; color: #fff;
  background: linear-gradient(180deg, #ff6b5a, #d12b1c); box-shadow: 0 0 0 2px #2a0703, 0 2px 6px rgba(0, 0, 0, 0.5); }
.pra-badge[hidden] { display: none; }
.pra-navy, .pra .pra-navy { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 16px; border-radius: 14px; color: #fff;
  background: linear-gradient(180deg, #123468, #0a2147); border: 2.5px solid #2fb8ff; box-shadow: 0 0 0 1.5px #04101f, 0 0 8px rgba(25, 180, 255, 0.4), inset 0 1.5px 0 rgba(255, 255, 255, 0.16); }
.pra-navy span { font: 600 14px/1.2 var(--font-ui); color: #b8d4f5; }
.pra-navy b { font: 800 21px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; }
.pra-navy.danger { border-color: #ff6b6b; background: linear-gradient(180deg, #4a1220, #2a0a14); box-shadow: 0 0 0 1.5px #1e0204, 0 0 8px rgba(255, 60, 60, 0.35), inset 0 1.5px 0 rgba(255, 255, 255, 0.12); }
.pra-navy.danger b { color: #ffd0c8; }
.pra-navy.sm { width: auto; flex: 0 0 38%; padding: 8px 6px; }
.pra-navy.sm b { white-space: nowrap; font-size: clamp(16px, 5vw, 21px); }
.pra .pra-navy:active, .pra-inv .pra-navy:active, .pra-sheet .pra-navy:active { transform: scale(0.97); filter: brightness(1.12); }
.pra-two { display: flex; gap: 10px; align-items: center; }
.pra-two .pra-gold { flex: 1 1 auto; width: auto; margin-top: 0; }
.pra-sm { flex: none; min-width: 76px; min-height: 44px; padding: 0 14px; border-radius: 12px; font: 800 17px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: #0b1a33; }
.pra-sm.gold, .pra .pra-sm.gold { background: linear-gradient(180deg, #fff0a0 0%, #ffd84a 40%, #f5b316 100%); box-shadow: inset 0 0 0 1.5px #fff6c4, 0 0 0 2px #3a2400, 0 3px 0 2px #7a4a00; }
.pra-sm.big { min-height: 54px; min-width: 84px; font-size: 20px; }
.pra-sm b { font: inherit; }
.pra .pra-sm:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px #fff6c4, 0 0 0 2px #3a2400, 0 1px 0 2px #7a4a00; }
.pra .pra-sm:disabled { filter: saturate(0.2) brightness(0.6); cursor: default; }
.pra .pra-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #ffb4a8; background: rgba(255, 122, 106, 0.1); border: 1.5px solid rgba(255, 122, 106, 0.45); }
.pra-ico svg { width: 20px; height: 20px; }

/* ---- the facts (no email, write it down, forget it, it's all kept) */
.pra-facts { gap: 12px; }
.pra-fact { display: flex; align-items: flex-start; gap: 12px; }
.pra-fic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #5ee6ff; background: rgba(25, 214, 240, 0.1); border: 1.5px solid rgba(25, 214, 240, 0.35); }
.pra-fic svg { width: 24px; height: 24px; }
.pra-fic img { width: 36px; height: 36px; object-fit: contain; }
.pra-fact > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pra-fact b { font: 800 17px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; color: #fff; }
.pra-fact small { font: 600 13.5px/1.35 var(--font-ui); color: #b8d4f5; }

/* ---- signed in: you in your club's ring, your numbers, a row that opens Change password */
.pra-id { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
.pra-ring { position: relative; flex: none; isolation: isolate; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #c3141d 0%, #8c0b12 50%, #4f050a 100%); box-shadow: 0 0 0 1.5px #1a0204, 0 0 12px 2px rgba(255, 40, 40, 0.6); }
.pra-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 7px; background: conic-gradient(from 210deg, #ffffff, #8e99aa 18%, #f1f5fb 32%, #707b8c 50%, #e9eef6 66%, #8c97a8 82%, #ffffff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pra-ring.blue { background: radial-gradient(circle at 50% 42%, #2f7bff 0%, #1447c4 50%, #0a2266 100%); box-shadow: 0 0 0 1.5px #020a1e, 0 0 12px 2px rgba(40, 140, 255, 0.6); }
.pra-ring .crest { position: relative; z-index: 1; width: 64%; height: 64%; display: grid; place-items: center; }
.pra-ring .crest svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.pra-ring.big { width: 124px; height: 124px; }
.pra-ring.big::before { padding: 9px; }
.pra-idt { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pra-idt small { font: 800 12px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #8fc3ff; }
.pra-idt b { font: 800 italic 30px/1.05 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 4px 2px 2px; }
.pra-idt em { font: 600 14px/1.2 var(--font-ui); font-style: normal; color: #ffe08a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pra-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pra-stats.three { grid-template-columns: repeat(3, 1fr); width: 100%; }
.pra-stat { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px 8px; border-radius: 12px; background: rgba(4, 16, 36, 0.72); border: 1.5px solid rgba(25, 214, 240, 0.3); }
.pra-stat b { font: 800 23px/1 var(--font-display); color: #fff; white-space: nowrap; }
.pra-stat small { font: 800 11px/1 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: #8fc3ff; }
.pra .pra-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left; }
.pra-row > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pra-row b { font: 800 19px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.03em; }
.pra-row small { font: 600 13px/1.3 var(--font-ui); color: #b8d4f5; }
.pra-chev { flex: none; width: 24px; height: 24px; color: #5ee6ff; }
.pra-chev svg { width: 24px; height: 24px; }
.pra-wait { align-items: center; text-align: center; gap: 12px; padding: 22px 16px; }
.pra-wait > b { font: 700 16px/1.35 var(--font-ui); color: #d8eaff; }
.pra-wait .pra-h { align-self: center; }
.pra-spin { width: 54px; height: 54px; animation: proSpin 1.4s linear infinite; }
.pra-bigic { width: 64px; height: 64px; color: #5ee6ff; }
.pra-bigic svg { width: 64px; height: 64px; }

/* ---- friends: rows of crest, username, club / online now, and their button */
.pra-list { gap: 0; padding: 4px 12px; }
.pra-fr { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 0; }
.pra-fr + .pra-fr { border-top: 1.5px solid rgba(60, 120, 190, 0.4); }
.pra .pra-who { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 11px; min-height: 48px; text-align: left; }
.pra-crest, .on-frcrest { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1d4fa8, #0b2552 75%); box-shadow: 0 0 0 2px #2a9fe0, 0 0 0 3.5px #04101f; }
.pra-crest svg, .on-frcrest svg { width: 80%; height: 80%; }
.pra-who > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pra-who b { font: 800 20px/1.1 var(--font-display); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pra-who small { font: 600 13px/1.2 var(--font-ui); color: #9fbbe0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pra-who em, .on-frwho em { font-style: normal; font-weight: 700; color: #4dff8f; }
.on-frdot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: #3d5d8a; box-shadow: 0 0 0 2.5px #071a3a; }
.on-frdot.on { background: #39d98a; box-shadow: 0 0 0 2.5px #071a3a, 0 0 8px rgba(57, 217, 138, 0.9); }
.pra-empty { align-items: flex-start; gap: 6px; }
.pra-empty b { font: 800 19px/1 var(--font-display); text-transform: uppercase; }
.pra-empty small { font: 600 13.5px/1.4 var(--font-ui); color: #b8d4f5; }

/* ---- a player's card: a sheet over everything, their ring, @name, club, numbers and what you can do */
.pra-sheet { position: fixed; inset: 0; z-index: 8600; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 8, 20, 0.66); animation: praIn 0.18s ease-out both; }
.pra-sheet.out { animation: praOut 0.15s ease-in both; pointer-events: none; }
.pra-card { position: relative; width: min(520px, 100%); max-height: 88vh; overflow-y: auto; padding: 22px 16px calc(var(--safe-b, 0px) + 18px); border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #12345f, #061730); border: 2.5px solid #19d6f0; border-bottom: 0; box-shadow: 0 0 14px rgba(25, 214, 240, 0.5), 0 -10px 30px rgba(0, 0, 0, 0.5); animation: praUp 0.26s cubic-bezier(0.2, 1.2, 0.4, 1) both; }
.pra-sheet .pra-x { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #d8eaff; background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(143, 195, 255, 0.35); }
.pra-x svg { width: 22px; height: 22px; }
.pra-cbody { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pra-cname { font: 800 italic 32px/1.05 var(--font-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; }
.pra-cclub { margin-top: -4px; font: 700 15px/1.2 var(--font-ui); color: #ffe08a; }
.pra-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 800 14px/1 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: #d8e8ff; background: linear-gradient(180deg, #3d5d8a, #22395c); box-shadow: inset 0 0 0 1.5px #8fb3e3; }
.pra-tag.green { color: #e9fff1; background: linear-gradient(180deg, #2fe07a, #0d9a47); box-shadow: inset 0 0 0 1.5px #a8ffca; }
.pra-tag svg { width: 16px; height: 16px; }
.pra-cacts { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 4px; }
.pra-cacts:empty { display: none; }
.pra-sheet .pra-gold { --h: 58px; position: relative; display: grid; place-items: center; width: 100%; height: var(--h); border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09); border-image: url("assets/pro/plate_gold.webp") 0 190 0 200 fill / 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09) stretch; }

/* ---- a friend's match invite, dropping in over any screen (above the game's dialogs too) */
.pra-inv { position: fixed; left: 0; right: 0; top: 0; z-index: 9500; display: flex; justify-content: center; padding: calc(var(--safe-t, 0px) + 10px) 10px 0; pointer-events: none; animation: praDrop 0.34s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.pra-inv.out { animation: praLift 0.2s ease-in both; }
.pra-invc { pointer-events: auto; position: relative; overflow: hidden; width: min(500px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; align-items: center; padding: 14px 14px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 44, 90, 0.98), rgba(8, 26, 56, 0.98)); border: 3px solid #19d6f0; box-shadow: 0 0 0 1.5px #051226, 0 0 18px rgba(25, 214, 240, 0.65), 0 14px 30px rgba(0, 0, 0, 0.55); color: #fff; font-family: var(--font-ui); }
.pra-invc .pra-ring { width: 64px; height: 64px; }
.pra-invc .pra-ring::before { padding: 5px; }
.pra-invt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pra-invt small { font: 800 12px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #ffd23a; }
.pra-invt b { font: 800 italic 26px/1.05 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 4px 1px 1px; }
.pra-invt em { font: 600 13.5px/1.25 var(--font-ui); font-style: normal; color: #d8eaff; }
.pra-invc .pra-two { grid-column: 1 / -1; }
.pra-inv .pra-navy { min-height: 54px; }
.pra-inv .pra-gold { --h: 54px; display: grid; place-items: center; height: var(--h); border-style: solid; border-color: transparent;
  border-width: 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09); border-image: url("assets/pro/plate_gold.webp") 0 190 0 200 fill / 0 calc(var(--h) * 1.04) 0 calc(var(--h) * 1.09) stretch; }
.pra-invbar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, #ffd23a, #19d6f0); transform-origin: left; animation: praBar 90s linear both; }

/* ---- a toast at the top (a tappable one: a friend request, which opens Friends) */
.pra-toast { position: fixed; left: 50%; top: calc(var(--safe-t, 0px) + 12px); z-index: 9600; max-width: min(92vw, 440px); transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; text-align: center;
  font: 700 15px/1.3 var(--font-ui); color: #fff; background: #0d2a52; border: 2px solid #31eaff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 12px rgba(49, 234, 255, 0.4); animation: praToast 0.22s ease-out both; pointer-events: none; }
button.pra-toast { min-height: 48px; margin: 0; letter-spacing: 0; pointer-events: auto; cursor: pointer; background: #0d2a52; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), 0 0 12px rgba(49, 234, 255, 0.4); }
button.pra-toast::after { content: ' ›'; color: #ffd23a; }
.pra-toast.out { opacity: 0; transition: opacity 0.3s; }

/* ---- the Online hub (rivals.css's look): the corner chip in its top bar, and the Friends section on its Play tab */
.topbar .on-acchip { position: relative; flex: 0 1 auto; max-width: 52%; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 999px; text-align: left; color: #fff;
  background: linear-gradient(180deg, #1c2e5c, #0f1a3a); border: 1.5px solid rgba(94, 230, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 10px rgba(25, 214, 240, 0.25); }
.topbar .on-acchip:active { transform: scale(0.96); box-shadow: none; }
.on-acav { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #5ee6ff; background: radial-gradient(circle at 50% 40%, #1d4fa8, #0b2552 75%); box-shadow: 0 0 0 1.5px #2a9fe0; }
.on-acav svg { width: 80%; height: 80%; }
.on-acchip > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.on-acchip small { font: 800 9.5px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: #8fc3ff; }
.on-acchip b { font: 800 16px/1 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .on-acchip.get { color: #2a1700; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); border-color: #fff0b1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #8a5200; }
.on-acchip.get .on-acav { color: #2a1700; background: rgba(255, 255, 255, 0.35); box-shadow: none; }
.on-acchip.get b { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.on-acn { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font: 800 12px/1 var(--font-display); font-style: normal; color: #fff; background: linear-gradient(180deg, #ff6b5a, #d12b1c); box-shadow: 0 0 0 2px #0b1228; }
.on-frs { gap: 8px; }
.on-frget { width: 100%; min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; text-align: left; color: var(--text); font: inherit;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 200, 61, 0.2), transparent 60%), linear-gradient(180deg, #1c2745, #0d1428); border: 1px solid rgba(255, 224, 138, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 0 #03050b; }
.on-frget:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 #03050b; }
.on-frget > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.on-frget b { font: 800 16px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: #ffe08a; }
.on-frget small { font: 600 12px/1.3 var(--font-ui); color: var(--text-2); }
.on-frrow { display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 7px 8px 7px 10px; border-radius: 16px; background: linear-gradient(180deg, #1c2745, #0d1428); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.on-frrow.req { border-color: rgba(255, 224, 138, 0.5); }
.on-frwho { flex: 1 1 auto; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0; text-align: left; color: var(--text); background: none; border: 0; box-shadow: none; font: inherit; }
.on-frwho:active { transform: none; box-shadow: none; opacity: 0.8; }
.on-frcrest { width: 40px; height: 40px; }
.on-frwho > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.on-frwho b { font: 800 17px/1 var(--font-display); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-frwho small { font: 600 11.5px/1.2 var(--font-ui); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-frsm { flex: none; min-width: 72px; min-height: 44px; padding: 0 12px; border-radius: 12px; font: 800 14px/1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none; }
.on-frsm.gold { color: #2a1700; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #8a5200; }
.on-frsm:active { transform: translateY(2px); box-shadow: none; }
.on-frico { flex: none; width: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; color: #ff9a90; background: rgba(255, 90, 90, 0.08); border: 1px solid rgba(255, 120, 110, 0.35); box-shadow: none; }
.on-frico svg { width: 18px; height: 18px; }
.on-frico:active { transform: scale(0.95); box-shadow: none; }
.on-frnone { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; font: 600 12.5px/1.35 var(--font-ui); color: var(--text-2); background: rgba(255, 255, 255, 0.04); border: 1px dashed rgba(255, 255, 255, 0.18); }
.on-frnone > span { flex: 1 1 auto; }
.on-frrow.skel i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.on-frrow.skel b { flex: 0 0 46%; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)); background-size: 200% 100%; animation: praShim 1.2s linear infinite; }

@keyframes praIn { from { opacity: 0; } }
@keyframes praOut { to { opacity: 0; } }
@keyframes praUp { from { transform: translateY(40%); } }
@keyframes praDrop { from { transform: translateY(-120%); } }
@keyframes praLift { to { transform: translateY(-120%); opacity: 0; } }
@keyframes praBar { to { transform: scaleX(0); } }
@keyframes praToast { from { transform: translate(-50%, -14px); opacity: 0; } }
@keyframes praShim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pra, .pra-sheet, .pra-card, .pra-inv, .pra-toast { animation: none; } .pra-spin { animation-duration: 3s; } }
