/* ===== Meow Battle · PROFILE — the victory podium (1920 x 1080 canvas scaled to cover) ===== */
#prScr { position: absolute; inset: 0; z-index: 42; opacity: 0; transition: opacity .45s ease; background: #070b1c; overflow: clip; pointer-events: auto; }
#prScr.on { opacity: 1; }
#prScr[hidden] { display: none !important; }
#prScr, #prScr * { box-sizing: border-box; }
#prScr img { max-width: none; }
#prScr button { font: inherit; color: inherit; }
.pr-cvs { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: clip; color: #f3e6cf; font-family: Barlow, sans-serif; }
.pr-haze { position: absolute; inset: -40px; background: url(../pr8/plate.webp) center/cover no-repeat; transition: background-image .9s; filter: blur(26px) brightness(.55) saturate(1.1); }
.pr-bg { position: absolute; left: 0; top: 0; width: 1920px; height: 1084px; background: url(../pr8/plate.webp) 0 0 / 100% 100% no-repeat; }
.pr-bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(4, 6, 20, 0) 55%, rgba(4, 6, 20, .35) 100%); }
.pr-back { z-index: 6; left: calc(var(--vl, 0px) + 26px) !important; top: calc(var(--vt, 0px) + 28px) !important; }

/* picture + frame */

/* ---------- banner ---------- */
.pr-ban { position: absolute; inset: 0; pointer-events: none; }
.pr-ban > * { pointer-events: auto; }
.pr-ban .plate { padding: 0 !important; position: absolute; left: 258px; top: 479px; width: 196px; height: 48px; transform: rotate(6.7deg); display: grid; place-items: center; cursor: text; }
.pr-ban .plate canvas { display: block; pointer-events: none; }
.pr-ban .plate input { display: none; width: 176px; height: 34px; border: 0; border-radius: 6px; padding: 0 8px; text-align: center; font: 900 21px/1 Cinzel, serif; letter-spacing: .05em; color: #3b2208; background: rgba(255, 246, 222, .85); outline: 2px solid rgba(190, 140, 50, .8); text-transform: uppercase; }
.pr-ban .plate.editing canvas { display: none; }
.pr-ban .plate.editing input { display: block; }
.pr-ban .plate:not(.editing):hover canvas { filter: brightness(1.25); }
.pr-ban .ttl { position: absolute; left: 242px; top: 550px; width: 236px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.pr-ban .ttl canvas { display: block; transition: filter .2s; }
.pr-ban .ttl:hover canvas { filter: brightness(1.2); }
.pr-ban .ems { position: absolute; left: 270px; top: 612px; width: 180px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; justify-content: center; }
.pr-ban .ems span { display: grid; grid-template-columns: repeat(2, 66px); gap: 6px 12px; justify-content: center; }
.pr-ban .ems img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(30, 0, 6, .7)); transition: transform .2s; }
.pr-ban .ems:hover img { transform: translateY(-2px) scale(1.05); }

/* ---------- favourite cards in the podium holders ---------- */
.pr-lamp { position: absolute; left: 0; top: 0; width: 800px; height: 800px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 216, 150, .2) 0, rgba(255, 200, 120, .08) 35%, rgba(255, 190, 110, 0) 65%); mix-blend-mode: screen; opacity: 0; transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .5s; }
.pr-lamp.on { opacity: 1; }
.pr-fx { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }

/* ---------- stats carved into the tablet (canvas lettering) ---------- */
.pr-tablet { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; }

/* portrait under a painted frame (banner + panel previews) */
.pr-fr { position: relative; display: block; flex: none; }
.pr-fr .av { position: absolute; border-radius: 50%; background-size: 150% auto; background-position: 50% 15%; background-color: #2a141a; box-shadow: inset 0 8px 18px rgba(0, 0, 0, .55), inset 0 -3px 10px rgba(255, 210, 150, .12); }
.pr-fr img { position: absolute; pointer-events: none; }
.pr-ban .art { position: absolute; inset: 0; pointer-events: none; }
.pr-ban .art .pr-fr { position: absolute; inset: 0; }
.pr-ban .hole { position: absolute; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: box-shadow .25s; }
.pr-ban .hole:hover { box-shadow: 0 0 30px rgba(255, 205, 110, .45), inset 0 0 22px rgba(255, 220, 150, .25); }

/* 3D podium */
.pr-3dwrap { position: absolute; inset: 0; pointer-events: none; }
.pr-3d { position: absolute; left: 0; top: 0; pointer-events: none; }
.pr-flat { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.pr-flat img { display: block; width: 100%; border-radius: 12px; }

/* stats: painted gold numerals in the enamel slots */
.pr-tablet .num { position: absolute; width: 96px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; }
.pr-tablet .num i { display: block; flex: none; background-image: url(../pr5/digits.webp); background-repeat: no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(255, 200, 110, .18)); }
.pr-tablet:hover .num i { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(255, 210, 130, .45)); }

/* ---------- the six gold buttons on the podium ---------- */
.pr-btns { position: absolute; inset: 0; pointer-events: none; }
.pr-btn { position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; transition: box-shadow .25s, background .25s; }
.pr-btn::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 150, .28), rgba(255, 210, 120, 0) 70%); opacity: 0; transition: opacity .25s; mix-blend-mode: screen; }
.pr-btn:hover::before, .pr-btn.on::before { opacity: 1; }
.pr-btn:hover { box-shadow: 0 0 0 2px rgba(255, 222, 150, .55), 0 0 26px rgba(255, 200, 100, .55); }
.pr-btn.on { box-shadow: 0 0 0 3px rgba(255, 226, 150, .95), 0 0 34px 6px rgba(255, 200, 100, .7); }
.pr-btn .lbl { position: absolute; left: 50%; bottom: 100%; margin-bottom: 14px; transform: translate(-50%, 6px); white-space: nowrap; padding: 7px 14px 6px; border-radius: 6px; font: 700 13px/1 Barlow, sans-serif; letter-spacing: .18em; color: #ffe7b0; background: linear-gradient(180deg, rgba(40, 14, 20, .95), rgba(20, 6, 12, .95)); box-shadow: 0 0 0 1px rgba(220, 175, 90, .6), 0 6px 14px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.pr-btn:hover .lbl { opacity: 1; transform: translate(-50%, 0); }
.pnl-open .pr-btn .lbl { display: none; }

/* ---------- customize panel ---------- */
.pr-pnl { position: absolute; left: 507px; top: 652px; width: 940px; height: 330px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .65)); opacity: 0; transform: translateY(26px) scale(.98); pointer-events: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.1); z-index: 4; }
.pr-pnl.on { opacity: 1; transform: none; pointer-events: auto; }
.pr-pnl::before { content: ''; position: absolute; inset: 0; border-style: solid; border-width: 84px 40px 40px; border-image: url(../pr2/panel.webp) 125 60 60 fill / 84px 40px 40px; pointer-events: none; }
.pr-pnl .hd { position: absolute; left: 60px; right: 60px; top: 46px; height: 32px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pr-pnl .hd b { font: 900 21px/1 Cinzel, serif; letter-spacing: .1em; background: linear-gradient(180deg, #fff4cf 0%, #f0cf7f 50%, #c08a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .8)); }
.pr-pnl .hd small { font: 500 13px/1 Barlow, sans-serif; letter-spacing: .06em; color: rgba(230, 210, 175, .75); }
.pr-pnl .hd small::before { content: '·'; margin-right: 14px; color: rgba(240, 200, 120, .6); }
.pr-pnl .x { position: absolute; right: 18px; top: 34px; width: 50px; height: 50px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; color: #f1d48a; background: url(../pr2/close.webp) center/contain no-repeat; transition: transform .2s, filter .2s; }
.pr-pnl .x svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 1px #000); }
.pr-pnl .x:hover { transform: scale(1.08); filter: brightness(1.2); }
.pr-pnl .body { position: absolute; left: 40px; right: 40px; top: 90px; bottom: 34px; display: flex; flex-wrap: wrap; align-content: safe center; justify-content: center; gap: 4px 10px; overflow: auto; scrollbar-width: none; }
.pr-pnl .body { scrollbar-width: thin !important; scrollbar-color: rgba(226, 182, 96, .75) rgba(0, 0, 0, .25); overscroll-behavior: contain; }
.pr-pnl .body::-webkit-scrollbar { width: 8px; }
.pr-pnl .body::-webkit-scrollbar-track { background: rgba(0, 0, 0, .3); border-radius: 4px; }
.pr-pnl .body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f3d488, #b9862f); border-radius: 4px; }
/* favourite cards: a taller panel and a scrolling grid of every card you own */
.pr-pnl.tall { top: 548px; height: 434px; }
.pr-pnl .body.cards { display: block; padding: 4px 6px 10px 0; overflow-y: auto; }
.pr-cardrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; justify-items: center; }
.pr-pc { width: 112px !important; height: 157px !important; }

/* cosmetic items (pictures, frames, emotes) */
.pr-it { position: relative; width: 112px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pr-it .ring { position: relative; width: 96px; height: 96px; display: grid; place-items: center; transition: transform .2s; }
.pr-it .ring .sl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.pr-it.on .ring .sl { inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); }
.pr-it .ring .av { position: absolute; inset: 12px; border-radius: 50%; background-size: 150% auto; background-position: 50% 15%; background-color: #2a1418; z-index: 2; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55); }
.pr-it.on .ring .av { inset: 14px; }
.pr-it .ring .pr-fr { z-index: 3; }
.pr-it .ring .em { position: relative; z-index: 3; width: 62px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.pr-it.frame .ring .sl { display: none; }
.pr-it.frame .ring { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pr-it.frame.on .ring::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .45), rgba(255, 210, 120, 0) 70%); }
.pr-it.emote { width: 94px; }
.pr-it.emote .ring { width: 82px; height: 82px; }
.pr-it.emote .ring .em { width: 56px; height: 56px; }
.pr-pnl .body.emote { flex-wrap: nowrap; gap: 4px 8px; align-items: center; }
.pr-it:hover .ring { transform: translateY(-3px); }
.pr-it b { margin-top: 4px; font: 700 13px/1.15 'Barlow Condensed', sans-serif; letter-spacing: .04em; color: #f6e8c8; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.pr-it small { margin-top: 3px; font: 600 10.5px/1.2 Barlow, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(220, 200, 165, .6); }
.pr-it.on small { color: #ffd77a; }
.pr-it.locked .ring > :not(.sl):not(.lk) { filter: grayscale(.85) brightness(.45); }
.pr-it.locked .ring .sl { filter: grayscale(.6) brightness(.7); }
.pr-it.locked b { color: rgba(230, 215, 190, .55); }
.pr-it.locked small { color: rgba(210, 180, 130, .55); text-transform: none; letter-spacing: .02em; font-size: 11px; }
.pr-it .lk { position: absolute; z-index: 4; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #f1d48a; background: rgba(20, 8, 12, .8); box-shadow: 0 0 0 1px rgba(220, 175, 90, .6); }
.pr-it .lk svg, .pr-tt .lk svg { width: 15px; height: 15px; }
.pr-it .eq { position: absolute; right: -4px; top: -4px; z-index: 5; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 800 14px/1 'Barlow Condensed', sans-serif; color: #2b1606; background: radial-gradient(circle at 35% 30%, #fff1c2, #e3b555 60%, #a8741f); box-shadow: 0 2px 5px rgba(0, 0, 0, .6); }

/* titles */
.pr-pnl .body.title { display: grid; grid-template-columns: repeat(3, 262px); align-content: center; justify-content: center; gap: 12px 14px; }
.pr-tt { position: relative; height: 70px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(180deg, rgba(110, 22, 34, .55), rgba(58, 10, 20, .65)); box-shadow: inset 0 0 0 1px rgba(214, 170, 90, .45), inset 0 0 20px rgba(0, 0, 0, .45); transition: box-shadow .2s, transform .2s; }
.pr-tt b { font: 800 16px/1 Cinzel, serif; letter-spacing: .07em; white-space: nowrap; background: linear-gradient(180deg, #fff4cf 0%, #f0cf7f 50%, #c08a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-tt small { font: 600 11px/1 Barlow, sans-serif; letter-spacing: .1em; color: rgba(225, 205, 170, .65); }
.pr-tt:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(240, 200, 120, .8), inset 0 0 20px rgba(0, 0, 0, .35), 0 0 18px rgba(255, 200, 100, .25); }
.pr-tt.on { box-shadow: inset 0 0 0 2px #f0cf7f, inset 0 0 22px rgba(255, 200, 100, .2), 0 0 22px rgba(255, 200, 100, .4); }
.pr-tt.on small { color: #ffd77a; }
.pr-tt.locked { background: linear-gradient(180deg, rgba(40, 30, 40, .55), rgba(20, 14, 22, .65)); box-shadow: inset 0 0 0 1px rgba(160, 140, 120, .3); }
.pr-tt.locked b { background: none; color: rgba(200, 185, 165, .45); -webkit-background-clip: border-box; background-clip: border-box; }
.pr-tt.locked small { letter-spacing: .03em; text-transform: none; font-size: 12px; color: rgba(210, 180, 130, .6); }
.pr-tt .lk { position: absolute; right: 8px; top: 6px; color: rgba(220, 190, 130, .7); }

/* favourite cards picker */
.pr-pnl .body.cards { display: block; padding: 0; }
.pr-pc { flex: none; width: 128px; height: 179px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; position: relative; transition: transform .2s; }
.pr-pc img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 12px rgba(0, 0, 0, .5); }
.pr-pc:hover { transform: translateY(-4px); }
.pr-pc.on img { box-shadow: 0 0 0 4px #f0cf7f, 0 0 24px rgba(255, 200, 100, .6); }
.pr-pc.used img { filter: brightness(.6); }
.pr-pc.used::after { content: 'ON PODIUM'; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 4px 9px; border-radius: 4px; font: 700 10px/1 Barlow, sans-serif; letter-spacing: .16em; color: #ffe7b0; background: rgba(20, 6, 12, .85); box-shadow: 0 0 0 1px rgba(220, 175, 90, .6); white-space: nowrap; }

/* achievements */
.pr-pnl .body.ach { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 4px 40px; padding: 0 16px; }
.pr-ach { display: flex; align-items: center; gap: 12px; height: 46px; }
.pr-ach .md { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.pr-ach .md img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-ach .md i { position: relative; font: 900 18px/1 Cinzel, serif; font-style: normal; color: rgba(220, 200, 165, .5); }
.pr-ach.done .md i { color: #ffe3a0; text-shadow: 0 0 8px rgba(255, 200, 100, .8); }
.pr-ach:not(.done) .md img { filter: grayscale(.7) brightness(.6); }
.pr-ach .tx { flex: 1; min-width: 0; }
.pr-ach .tx b { display: block; font: 800 15px/1 Cinzel, serif; letter-spacing: .05em; color: #f6e8c8; }
.pr-ach.done .tx b { color: #ffd77a; }
.pr-ach .tx small { display: block; margin-top: 4px; font: 500 12px/1.2 Barlow, sans-serif; color: rgba(220, 200, 165, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-ach .trk { margin-top: 6px; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px rgba(200, 160, 90, .25); overflow: hidden; }
.pr-ach .trk u { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, #b9862f, #ffd77a); }
.pr-ach em { flex: none; width: 52px; text-align: right; font: 800 15px/1 'Barlow Condensed', sans-serif; font-style: normal; color: rgba(230, 210, 175, .75); }
.pr-ach.done em { color: #ffd77a; font-size: 20px; }

/* toast */
.pr-toast { position: absolute; left: 50%; top: 540px; z-index: 8; transform: translate(-50%, 10px); padding: 12px 22px; border-radius: 8px; font: 600 15px/1 Barlow, sans-serif; letter-spacing: .04em; color: #ffe7b0; background: linear-gradient(180deg, rgba(40, 14, 20, .96), rgba(20, 6, 12, .96)); box-shadow: 0 0 0 1px rgba(220, 175, 90, .6), 0 10px 24px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; }
.pr-toast.on { animation: prToast 2.4s ease forwards; }
@keyframes prToast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@media (prefers-reduced-motion: reduce) { #prScr *, #prScr { transition: none !important; animation: none !important; } }

/* battle record panel */
.pr-pnl .body.rec { display: grid; grid-template-columns: repeat(5, 1fr); align-content: center; gap: 14px 10px; padding: 0 10px; }
.pr-rec { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 10px; background: linear-gradient(180deg, rgba(14, 22, 52, .75), rgba(8, 12, 30, .8)); box-shadow: inset 0 0 0 1px rgba(214, 170, 90, .5), inset 0 0 18px rgba(0, 0, 0, .5); }
.pr-rec .n { height: 42px; display: flex; align-items: flex-end; justify-content: center; }
.pr-rec .n i { display: block; flex: none; background-image: url(../pr5/digits.webp); background-repeat: no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .7)); }
.pr-rec small { font: 700 10.5px/1 Barlow, sans-serif; letter-spacing: .16em; color: rgba(235, 215, 175, .8); text-align: center; }
.pr-tablet .num { align-items: flex-end !important; padding-bottom: 6px; }
/* frame previews: a window onto that frame's banner */
.pr-it.frame .ring { width: 104px; height: 104px; }
.pr-it.frame .pr-fr { overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 1px rgba(220, 175, 90, .55), 0 6px 14px rgba(0, 0, 0, .5); }
.pr-it.frame.on .pr-fr { box-shadow: 0 0 0 3px #f0cf7f, 0 0 22px rgba(255, 200, 100, .55); }
.pr-it.frame.on .ring::before { display: none; }
.pr-it.frame.locked .ring > .pr-fr { filter: grayscale(.85) brightness(.45); }
.pr-ban .plate input { width: 160px !important; }

/* trophy wall: earned trophies shine, the rest wait as dark stone statuettes */
.pr-troph { position: absolute; inset: 0; pointer-events: none; }
.pr-troph .tr { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
.pr-troph .tr img { display: block; width: 100%; height: 100%; filter: grayscale(1) sepia(.25) brightness(.42) contrast(1.15); transition: filter .3s, transform .3s; }
.pr-troph .tr.got img { filter: drop-shadow(0 0 10px rgba(255, 205, 110, .55)); animation: prTr 3.2s ease-in-out infinite; }
.pr-troph .tr:hover img { transform: translateY(-3px) scale(1.04); }
.pr-troph .tr:not(.got):hover img { filter: grayscale(.6) sepia(.2) brightness(.7) contrast(1.1); }
@keyframes prTr { 0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 205, 110, .45)); } 50% { filter: drop-shadow(0 0 16px rgba(255, 215, 130, .8)) brightness(1.08); } }
.pr-troph .tip { position: absolute; left: 50%; bottom: 100%; margin-bottom: 8px; transform: translate(-50%, 6px); white-space: nowrap; padding: 8px 14px 7px; border-radius: 7px; text-align: center; background: linear-gradient(180deg, rgba(40, 14, 20, .96), rgba(20, 6, 12, .96)); box-shadow: 0 0 0 1px rgba(220, 175, 90, .6), 0 8px 18px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5; }
.pr-troph .tip b { display: block; font: 800 15px/1 Cinzel, serif; letter-spacing: .06em; color: #ffd77a; }
.pr-troph .tip small { display: block; margin-top: 5px; font: 600 12px/1 Barlow, sans-serif; letter-spacing: .03em; color: rgba(235, 215, 175, .8); }
.pr-troph .tr:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.pnl-open .pr-troph { pointer-events: none; }

/* arena tinted to the banner: cross-fade between the regraded plates */
.pr-bg i { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat; opacity: 0; transition: opacity .9s ease; }
.pr-bg i.on { opacity: 1; }

/* ---------- friends: search bar (top right), friends panel, visiting another player ---------- */
.pr-find { position: absolute; right: calc(var(--vr, 0px) + 40px); top: calc(var(--vt, 0px) + 30px); width: 456px; height: 58px; z-index: 7; display: flex; align-items: center; gap: 12px; }
.pr-find .box, .pr-find .pals { box-shadow: inset 0 0 0 1.5px rgba(236, 196, 116, .85), inset 0 0 0 4px rgba(36, 18, 10, .92), inset 0 0 0 5.5px rgba(196, 146, 66, .5), 0 10px 24px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 200, 110, .08);
  background: radial-gradient(120% 140% at 50% 0%, rgba(70, 36, 52, .92), rgba(16, 8, 16, .94) 70%); }
.pr-find .box { flex: 1; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-radius: 30px; cursor: text; transition: box-shadow .25s; }
.pr-find .box:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255, 222, 150, 1), inset 0 0 0 4px rgba(36, 18, 10, .92), inset 0 0 0 5.5px rgba(230, 180, 90, .75), 0 10px 24px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 200, 110, .35); }
.pr-find .box svg { flex: none; width: 22px; height: 22px; color: #f1cf82; filter: drop-shadow(0 1px 1px #000); }
.pr-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 600 18px/1 Barlow, sans-serif; letter-spacing: .03em; color: #fbefd5; text-shadow: 0 1px 2px #000; }
.pr-find input::placeholder { color: rgba(232, 208, 165, .55); }
.pr-find input::-webkit-search-cancel-button { filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(1.1); cursor: pointer; }
.pr-find .pals { position: relative; flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: #f1cf82; cursor: pointer; transition: transform .2s, filter .2s; }
.pr-find .pals svg { width: 27px; height: 27px; filter: drop-shadow(0 1px 1px #000); }
.pr-find .pals:hover { transform: scale(1.06); filter: brightness(1.15); }
.pr-find .n { position: absolute; right: -4px; top: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: none; place-items: center; font: 800 13px/1 'Barlow Condensed', sans-serif; font-style: normal; color: #fff;
  background: radial-gradient(circle at 40% 30%, #ff6a5a, #c4141f 70%); box-shadow: 0 0 0 2px #f0c66e, 0 2px 6px rgba(0, 0, 0, .6); }
.pr-find .n.on { display: grid; animation: prPing 2s ease-in-out infinite; }
@keyframes prPing { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }

.pr-pnl.pr-fpnl { left: auto; right: calc(var(--vr, 0px) + 16px); top: calc(var(--vt, 0px) + 96px); width: 520px; height: 620px; z-index: 8; transform: translateY(-14px) scale(.98); }
.pr-pnl.pr-fpnl.on { transform: none; }
.pr-fpnl .body { display: block; top: 92px; left: 34px; right: 30px; bottom: 32px; padding: 2px 8px 6px 2px; overflow-y: auto; align-content: start; }
.pr-fsec { display: flex; align-items: center; gap: 10px; margin: 10px 4px 8px; font: 800 12.5px/1 Cinzel, serif; letter-spacing: .2em; color: rgba(244, 206, 128, .9); }
.pr-fsec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(240, 200, 120, .5), rgba(240, 200, 120, 0)); }
.pr-fsec i { order: 0; font: 800 12px/1 'Barlow Condensed', sans-serif; font-style: normal; padding: 3px 7px; border-radius: 9px; color: #2b1606; background: linear-gradient(180deg, #ffe3a0, #d29b45); }
.pr-fempty { padding: 26px 10px; text-align: center; font: 500 15px/1.4 Barlow, sans-serif; color: rgba(230, 210, 175, .7); }
.pr-fempty b { color: #ffd77a; }
.pr-frow { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 6px 12px 6px 6px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 230, 190, .07), rgba(0, 0, 0, .25)); box-shadow: inset 0 0 0 1px rgba(230, 190, 120, .16); transition: background .2s, box-shadow .2s, transform .2s; }
.pr-frow:hover, .pr-frow:focus-visible { outline: 0; transform: translateX(2px); background: linear-gradient(180deg, rgba(255, 220, 150, .14), rgba(40, 14, 20, .3)); box-shadow: inset 0 0 0 1px rgba(240, 200, 120, .45), 0 0 18px rgba(255, 200, 110, .12); }
.pr-frow .fav { position: relative; flex: none; width: 74px; height: 74px; }
.pr-frow .fav .sl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pr-frow .fav .av { position: absolute; inset: 10px; z-index: 2; border-radius: 50%; background-color: #2a1418; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55); }
.pr-frow .fav::after { content: ''; position: absolute; inset: 3px; z-index: 3; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px var(--fc, rgba(0, 0, 0, 0)); opacity: .9; }
.pr-frow .fav.f-sapphire { --fc: #4f7be0; } .pr-frow .fav.f-amethyst { --fc: #a560e8; } .pr-frow .fav.f-genesis { --fc: #e0507e; }
.pr-frow .dot { position: absolute; right: 6px; bottom: 6px; z-index: 5; width: 13px; height: 13px; border-radius: 50%; background: #6d6d6d; box-shadow: 0 0 0 2px #1a0c12; }
.pr-frow.online .dot { background: #4fe08a; box-shadow: 0 0 0 2px #1a0c12, 0 0 8px #4fe08a; }
.pr-frow .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pr-frow .tx b { font: 800 17px/1 Cinzel, serif; letter-spacing: .05em; color: #f8e9c6; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-frow .tx b em, .pr-visit .who em { margin-left: 6px; font: 600 13px/1 Barlow, sans-serif; font-style: normal; letter-spacing: .04em; color: rgba(225, 200, 160, .55); }
.pr-frow .tx small { font: 600 11.5px/1.2 Barlow, sans-serif; letter-spacing: .06em; color: rgba(225, 205, 170, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa { flex: none; display: flex; gap: 6px; }
.fb { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; cursor: pointer; font: 800 13.5px/1 'Barlow Condensed', sans-serif !important; letter-spacing: .1em; white-space: nowrap; transition: transform .15s, filter .15s, box-shadow .2s; }
.fb:hover { transform: translateY(-1px); filter: brightness(1.1); }
.fb.gold { color: #2b1606 !important; background: linear-gradient(180deg, #fff1bf 0%, #f0c66c 45%, #c58b34 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px #7c4f1a, 0 3px 8px rgba(0, 0, 0, .5); text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.fb.sent { color: rgba(240, 215, 165, .85) !important; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(230, 190, 120, .45); }
.fb.sent:hover { color: #ffb1a1 !important; box-shadow: inset 0 0 0 1px rgba(255, 140, 120, .6); }
.fb.ok { color: #c6f5d6 !important; background: rgba(20, 60, 36, .55); box-shadow: inset 0 0 0 1px rgba(110, 220, 150, .55); cursor: default; }
.fb.no { width: 34px; padding: 0; color: rgba(240, 215, 165, .85) !important; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(230, 190, 120, .4); }
.fb.no:hover { color: #ffb1a1 !important; }

/* visiting someone: their banner, cards, stats and trophies; nothing of theirs can be edited */
.pr-visit { position: absolute; left: 985px; top: calc(var(--vt, 0px) + 12px); z-index: 7; display: none; align-items: center; gap: 14px; padding: 7px 8px 7px 24px; border-radius: 40px; transform: translateX(-50%);
  background: radial-gradient(120% 160% at 50% 0%, rgba(70, 36, 52, .94), rgba(16, 8, 16, .95) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(236, 196, 116, .85), inset 0 0 0 4px rgba(36, 18, 10, .92), inset 0 0 0 5.5px rgba(196, 146, 66, .5), 0 10px 26px rgba(0, 0, 0, .6); }
.viewing .pr-visit { display: flex; animation: prVisit .45s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes prVisit { from { opacity: 0; transform: translate(-50%, -14px); } }
.pr-visit .who { display: flex; flex-direction: column; gap: 4px; padding-right: 6px; }
.pr-visit .who small { font: 700 10.5px/1 Barlow, sans-serif; letter-spacing: .3em; color: rgba(240, 200, 120, .75); }
.pr-visit .who b { font: 900 21px/1 Cinzel, serif; letter-spacing: .06em; white-space: nowrap; background: linear-gradient(180deg, #fff4cf 0%, #f0cf7f 50%, #c08a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px #000); }
.pr-visit .who b em { -webkit-text-fill-color: rgba(225, 200, 160, .6); }
.pr-visit .fb { height: 38px; padding: 0 20px; border-radius: 19px; font-size: 15px !important; }
.pr-visit .fb.no { width: 40px; padding: 0; }
.pr-visit .mine { height: 40px; padding: 0 18px; border: 0; border-radius: 20px; cursor: pointer; font: 800 14px/1 'Barlow Condensed', sans-serif !important; letter-spacing: .1em; color: #f1d48a !important; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(230, 190, 120, .5); transition: filter .15s; }
.pr-visit .mine:hover { filter: brightness(1.3); }
.viewing .pr-btns, .viewing .pr-ban .hole, .viewing .pr-ban .plate, .viewing .pr-tablet, .viewing .pr-troph .tr { pointer-events: none; }
.viewing .pr-troph .tr { pointer-events: auto; cursor: default; }
/* the treasure chest floats above its pedestal, bobbing gently */
.pr-troph .tr:nth-child(7) { animation: prFloat 3.6s ease-in-out infinite; }
@keyframes prFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
