/* Loja de Pérolas v4 (public/js/hud-store.js): vitrine de MMORPG com raridades, destaque rotativo, prévia e confirmação. */
#hud #hud-win.win-store { width: min(1240px, calc(100vw - 20px)) !important; max-height: min(94vh, 960px) !important; }
#hud #hud-win.win-store > .wbody { padding: 0 !important; overflow: hidden !important; display: flex; }
#hud #hud-win .pst {
  --gold: #f3c463; --gold2: #ffe7a3; --ink: #e9edf6; --muted: #98a3b8; --line: rgba(255, 214, 120, .18); --panel: rgba(10, 14, 26, .82);
  --rare: #4aa8ff; --epic: #b56bff; --legend: #ffad33; --mythic: #ff4f7b; --gift: #4fe3b0; --none: #6c7690;
  position: relative; display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(min(94vh, 960px) - 52px); color: var(--ink);
}
#hud #hud-win .pst button { font: inherit; cursor: pointer; }
#hud #hud-win .pst svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* pérola */
#hud #hud-win .pst-pearl { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 5px; vertical-align: -2px; flex: none;
  background: radial-gradient(circle at 34% 30%, #fff 0 14%, #d9ecff 22%, #8aa2ee 58%, #3b3f92 100%); box-shadow: 0 0 6px rgba(160, 190, 255, .7); }

/* topo */
#hud #hud-win .pst-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
  background: linear-gradient(90deg, rgba(64, 30, 110, .55), rgba(16, 24, 48, .7) 45%, rgba(70, 46, 10, .45)); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
#hud #hud-win .pst-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 240, 200, .12) 50%, transparent 70%); transform: translateX(-100%); animation: pstShine 6s ease-in-out infinite; pointer-events: none; }
@keyframes pstShine { 60%, 100% { transform: translateX(100%); } }
#hud #hud-win .pst-crest { display: flex; align-items: center; gap: 12px; }
#hud #hud-win .pst-crest small { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); }
#hud #hud-win .pst-crest strong { display: block; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; font-family: Georgia, 'Times New Roman', serif;
  color: #ffe08a !important; -webkit-text-fill-color: #ffe08a; opacity: 1; text-shadow: 0 0 12px rgba(255, 190, 70, .45), 0 2px 2px #000; }
#hud #hud-win .pst-gem { width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #fff 0 10%, #dcefff 20%, #8ea5f1 55%, #343a8c 100%); box-shadow: 0 0 0 3px #b8862e, 0 0 0 5px #3a2508, 0 0 18px rgba(140, 170, 255, .8); animation: pstGlow 3s ease-in-out infinite alternate; }
@keyframes pstGlow { to { box-shadow: 0 0 0 3px #e2b04a, 0 0 0 5px #3a2508, 0 0 28px rgba(170, 200, 255, 1); } }
#hud #hud-win .pst-top-r { display: flex; align-items: center; gap: 10px; }
#hud #hud-win .pst-vipbadge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 20px; font-weight: 800; font-size: 12px; color: #2a1800;
  background: linear-gradient(180deg, #ffe9a6, #f0b440); box-shadow: 0 0 12px rgba(255, 190, 70, .6); }
#hud #hud-win .pst-vipbadge svg { width: 14px; height: 14px; }
#hud #hud-win .pst-wallet { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 26px; background: rgba(6, 9, 18, .8); border: 1px solid rgba(160, 185, 255, .35); box-shadow: inset 0 0 14px rgba(100, 130, 255, .18); }
#hud #hud-win .pst-wallet b { font-size: 18px; color: #fff; }
#hud #hud-win .pst-wallet span { color: var(--muted); font-size: 12px; margin-right: 4px; }
#hud #hud-win .pst-wallet .pst-pearl { width: 18px; height: 18px; }
#hud #hud-win .pst-wallet button { width: 28px; height: 28px; border-radius: 50%; border: 0; font-size: 18px; font-weight: 900; line-height: 1; color: #2a1800;
  background: linear-gradient(180deg, #ffe9a6, #f0b440); box-shadow: 0 0 10px rgba(255, 190, 70, .55); }

/* corpo: menu, vitrine, prévia */
#hud #hud-win .pst-body { display: grid; grid-template-columns: 218px minmax(0, 1fr) 240px; min-height: 0; flex: 1; }
#hud #hud-win .pst-nav { padding: 12px 10px; border-right: 1px solid var(--line); overflow-y: auto; background: rgba(5, 8, 16, .55); display: flex; flex-direction: column; gap: 3px; }
#hud #hud-win .pst-nav small { margin: 10px 8px 4px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #8c7a55; }
#hud #hud-win .pst-nav small:first-child { margin-top: 0; }
#hud #hud-win .pst-nav button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #c9d1e2; text-align: left; transition: .15s; }
#hud #hud-win .pst-nav button span { flex: 1; min-width: 0; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
#hud #hud-win .pst-nav button em { font-style: normal; font-size: 10px; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 10px; }
#hud #hud-win .pst-nav button:hover { background: rgba(255, 214, 120, .07); color: #fff; }
#hud #hud-win .pst-nav button.on { background: linear-gradient(90deg, rgba(243, 196, 99, .25), rgba(243, 196, 99, .04)); border-color: rgba(243, 196, 99, .45); color: var(--gold2); box-shadow: inset 3px 0 0 var(--gold); }
#hud #hud-win .pst-main { padding: 16px 18px 22px; overflow-y: auto; min-height: 0; }
#hud #hud-win .pst-side { padding: 14px; border-left: 1px solid var(--line); overflow-y: auto; background: rgba(5, 8, 16, .55); }

/* destaque rotativo */
#hud #hud-win .pst-hero { position: relative; height: 210px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 214, 120, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); margin-bottom: 8px; }
#hud #hud-win .pst-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 42% 1fr; align-items: center; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform .6s; pointer-events: none; cursor: pointer; }
#hud #hud-win .pst-slide.on { opacity: 1; transform: none; pointer-events: auto; }
#hud #hud-win .pst-slide.s-vip { background: radial-gradient(80% 120% at 20% 50%, rgba(255, 190, 60, .4), transparent 60%), linear-gradient(110deg, #2a1708, #160c25 60%, #0a0f1f); }
#hud #hud-win .pst-slide.s-star { background: radial-gradient(70% 110% at 22% 50%, color-mix(in srgb, var(--rc, var(--epic)) 45%, transparent), transparent 62%), linear-gradient(110deg, #150b28, #0a0f1f 70%); }
#hud #hud-win .pst-slide.s-pack { background: radial-gradient(80% 120% at 22% 50%, rgba(120, 150, 255, .45), transparent 60%), linear-gradient(110deg, #0b1438, #0a0f1f 70%); }
#hud #hud-win .pst-slide-art { display: grid; place-items: center; height: 100%; }
#hud #hud-win .pst-slide-art .pst-pile { width: 170px; height: 170px; filter: drop-shadow(0 0 18px rgba(140, 170, 255, .6)); animation: pstFloat 4s ease-in-out infinite; }
#hud #hud-win .pst-slide-art .pst-art-name, #hud #hud-win .pst-slide-art .pst-art-title { font-size: 30px; }
#hud #hud-win .pst-slide-art .pst-art-frame .frame-sample { transform: scale(1.8); }
@keyframes pstFloat { 50% { transform: translateY(-6px); } }
#hud #hud-win .pst-slide-txt { padding: 18px 24px 18px 0; }
#hud #hud-win .pst-slide-txt small { font-size: 11px; letter-spacing: .22em; color: var(--gold); font-weight: 700; }
#hud #hud-win .pst-slide-txt h2 { margin: 6px 0; font: 700 28px/1.1 Georgia, 'Times New Roman', serif; color: #fff; text-shadow: 0 2px 8px #000; }
#hud #hud-win .pst-slide-txt p { margin: 0 0 12px; color: #cbd3e4; font-size: 13px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
#hud #hud-win .pst-crown { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; color: #ffd36b;
  background: radial-gradient(circle, rgba(255, 200, 80, .35), transparent 70%); filter: drop-shadow(0 0 16px rgba(255, 190, 60, .8)); animation: pstFloat 4s ease-in-out infinite; }
#hud #hud-win .pst-crown svg { width: 84px; height: 84px; stroke-width: 1.4; fill: rgba(255, 200, 80, .25); }
#hud #hud-win .pst-cta { padding: 9px 18px; border-radius: 22px; border: 0; font-weight: 800; color: #2a1800; background: linear-gradient(180deg, #fff0b8, #f0b440 60%, #c98418); box-shadow: 0 4px 14px rgba(240, 170, 50, .45), inset 0 1px 0 #fff7; }
#hud #hud-win .pst-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
#hud #hud-win .pst-dots { position: absolute; right: 14px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
#hud #hud-win .pst-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .3); }
#hud #hud-win .pst-dots button.on { background: var(--gold); width: 22px; border-radius: 5px; }

/* títulos de seção */
#hud #hud-win .pst-sechead { margin: 16px 0 10px; }
#hud #hud-win .pst-sechead:first-child { margin-top: 0; }
#hud #hud-win .pst-sechead h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 17px Georgia, 'Times New Roman', serif; color: var(--gold2); letter-spacing: .03em; }
#hud #hud-win .pst-sechead h3::after { content: ""; flex: 1; height: 1px; margin-left: 8px; background: linear-gradient(90deg, rgba(243, 196, 99, .5), transparent); }
#hud #hud-win .pst-sechead p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

/* cards */
#hud #hud-win .pst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
#hud #hud-win .pst-card { --rc: var(--epic); position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, #0b1020), #080b16 70%); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .15s, box-shadow .15s; }
#hud #hud-win .pst-card:hover, #hud #hud-win .pst-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 18px color-mix(in srgb, var(--rc) 50%, transparent); outline: none; }
#hud #hud-win .pst-card.r-rare, #hud #hud-win .pst-dlg.r-rare { --rc: var(--rare); }
#hud #hud-win .pst-card.r-epic, #hud #hud-win .pst-dlg.r-epic { --rc: var(--epic); }
#hud #hud-win .pst-card.r-legend, #hud #hud-win .pst-dlg.r-legend, #hud #hud-win .pst-slide.r-legend { --rc: var(--legend); }
#hud #hud-win .pst-card.r-mythic, #hud #hud-win .pst-dlg.r-mythic, #hud #hud-win .pst-slide.r-mythic { --rc: var(--mythic); }
#hud #hud-win .pst-card.r-gift, #hud #hud-win .pst-dlg.r-gift { --rc: var(--gift); }
#hud #hud-win .pst-card.r-none { --rc: var(--none); }
#hud #hud-win .pst-card.r-mythic::before { content: ""; position: absolute; inset: -1px; border-radius: 12px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--pst-a, 0deg), #ff4f7b, #ffad33, #fff16b, #4fe3b0, #4aa8ff, #b56bff, #ff4f7b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: pstSpin 4s linear infinite; }
@property --pst-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pstSpin { to { --pst-a: 360deg; } }
#hud #hud-win .pst-card.eq { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(243, 196, 99, .45); }
#hud #hud-win .pst-art { height: 96px; display: grid; place-items: center; padding: 8px; overflow: hidden; text-align: center;
  background: radial-gradient(70% 80% at 50% 45%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 6px, transparent 6px 12px); }
#hud #hud-win .pst-art-name { font-size: 19px; font-weight: 800; letter-spacing: .02em; word-break: break-word; }
#hud #hud-win .pst-art-title { font-size: 14px; font-weight: 700; color: #f2e6c8; line-height: 1.25; }
#hud #hud-win .pst-art-none { font-size: 34px; color: #59627a; }
#hud #hud-win .pst-art-none svg { width: 40px; height: 40px; }
#hud #hud-win .pst-art-frame .frame-sample { margin: 0; }
#hud #hud-win .pst-art-pod { width: 80px; height: 80px; image-rendering: pixelated; }
#hud #hud-win .pst-info { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; min-height: 48px; }
#hud #hud-win .pst-info b { font-size: 13px; line-height: 1.2; color: #fff; }
#hud #hud-win .pst-rar { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rc, var(--epic)); }
#hud #hud-win .pst-foot { padding: 6px 10px 10px; margin-top: auto; display: flex; justify-content: flex-end; }
#hud #hud-win .pst-price { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 14px; background: rgba(4, 6, 14, .7); border: 1px solid rgba(160, 185, 255, .3); }
#hud #hud-win .pst-price b { color: #fff; font-size: 13px; }
#hud #hud-win .pst-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
#hud #hud-win .pst-state.on { color: var(--gold2); font-weight: 700; }
#hud #hud-win .pst-state svg { width: 14px; height: 14px; }
#hud #hud-win .pst-owned { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #08210f; background: #59e08f; box-shadow: 0 0 8px rgba(89, 224, 143, .7); }
#hud #hud-win .pst-owned svg { width: 12px; height: 12px; stroke-width: 3; }

/* botões */
#hud #hud-win .pst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700;
  color: #eaf0ff; background: linear-gradient(180deg, #2e4f9a, #1c3270); border: 1px solid #5f86e0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 8px rgba(0, 0, 0, .35); }
#hud #hud-win .pst-btn:hover:not(:disabled) { filter: brightness(1.12); }
#hud #hud-win .pst-btn:disabled { opacity: .45; cursor: default; }
#hud #hud-win .pst-btn.gold { color: #2a1800; background: linear-gradient(180deg, #fff0b8, #f0b440 60%, #c98418); border-color: #ffd77a; }
#hud #hud-win .pst-btn.big { padding: 11px 22px; font-size: 15px; border-radius: 11px; }

/* coleção */
#hud #hud-win .pst-colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#hud #hud-win .pst-coll { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 10px; text-align: left;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); }
#hud #hud-win .pst-coll svg { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); }
#hud #hud-win .pst-coll small { color: var(--muted); }
#hud #hud-win .pst-coll:hover { border-color: rgba(243, 196, 99, .5); }

/* pacotes */
#hud #hud-win .pst-banner { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; margin-bottom: 16px;
  background: radial-gradient(70% 140% at 12% 50%, rgba(120, 150, 255, .4), transparent 60%), linear-gradient(110deg, #101a44, #0a0f1f 70%); border: 1px solid rgba(160, 185, 255, .35); }
#hud #hud-win .pst-banner .pst-pile { width: 120px; height: 120px; filter: drop-shadow(0 0 14px rgba(140, 170, 255, .6)); }
#hud #hud-win .pst-banner small { font-size: 11px; letter-spacing: .22em; color: #9fb6ff; font-weight: 700; }
#hud #hud-win .pst-banner h2 { margin: 4px 0; font: 700 26px Georgia, 'Times New Roman', serif; color: #fff; }
#hud #hud-win .pst-banner p { margin: 0; color: #c2cbe0; font-size: 13px; }
#hud #hud-win .pst-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
#hud #hud-win .pst-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 25%, rgba(120, 150, 255, .28), transparent 70%), linear-gradient(180deg, #121a38, #080b16); border: 1px solid rgba(140, 165, 255, .4); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); transition: transform .15s; }
#hud #hud-win .pst-pack:hover { transform: translateY(-3px); }
#hud #hud-win .pst-pack.popular { border-color: #b56bff; box-shadow: 0 0 22px rgba(181, 107, 255, .45); }
#hud #hud-win .pst-pack.best { border-color: #ffd77a; background: radial-gradient(90% 60% at 50% 25%, rgba(255, 200, 90, .3), transparent 70%), linear-gradient(180deg, #2a1d08, #0b0b14); box-shadow: 0 0 26px rgba(255, 190, 70, .45); }
#hud #hud-win .pst-pack-art .pst-pile { width: 96px; height: 96px; filter: drop-shadow(0 0 10px rgba(140, 170, 255, .55)); }
#hud #hud-win .pst-pack-n { display: flex; align-items: center; font-size: 22px; }
#hud #hud-win .pst-pack-n b { color: #fff; }
#hud #hud-win .pst-bonus { font-size: 12px; font-weight: 800; color: #2a1800; background: linear-gradient(180deg, #ffe9a6, #f0b440); padding: 2px 9px; border-radius: 10px; }
#hud #hud-win .pst-bonus.none { background: none; }
#hud #hud-win .pst-total { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
#hud #hud-win .pst-pack .pst-btn { width: 100%; }
#hud #hud-win .pst-ribbon { position: absolute; top: 20px; right: -40px; transform: rotate(35deg); width: 150px; text-align: center; padding: 3px 0; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #8a3ee0; box-shadow: 0 2px 6px #0008; }
#hud #hud-win .pst-pack.best .pst-ribbon { color: #2a1800; background: linear-gradient(180deg, #ffe9a6, #f0b440); }
#hud #hud-win .pst-secure { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* VIP */
#hud #hud-win .pst-vip { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 20px; border-radius: 16px; margin-bottom: 16px;
  background: radial-gradient(60% 120% at 12% 40%, rgba(255, 190, 60, .32), transparent 60%), linear-gradient(120deg, #2a1708, #140b22 55%, #0a0f1f); border: 1px solid rgba(255, 214, 120, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
#hud #hud-win .pst-vip.on { box-shadow: 0 0 0 2px rgba(255, 214, 120, .6), 0 0 30px rgba(255, 190, 60, .35); }
#hud #hud-win .pst-vip-crest { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
#hud #hud-win .pst-vip-crest small { letter-spacing: .25em; color: var(--gold); font-weight: 800; font-size: 12px; }
#hud #hud-win .pst-crown.big { width: 150px; height: 150px; }
#hud #hud-win .pst-crown.big svg { width: 104px; height: 104px; }
#hud #hud-win .pst-vip-body h2 { margin: 0; font: 700 26px Georgia, 'Times New Roman', serif; color: var(--gold2); }
#hud #hud-win .pst-vip-status { margin: 4px 0 6px; font-weight: 700; color: #fff; }
#hud #hud-win .pst-perks { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
#hud #hud-win .pst-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #e2e7f2; }
#hud #hud-win .pst-perks svg { width: 16px; height: 16px; color: #59e08f; stroke-width: 3; margin-top: 1px; }
#hud #hud-win .pst-vip-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
#hud #hud-win .pst-bonus-line { display: block; color: var(--gold2); margin-bottom: 4px; }
#hud #hud-win .pst-muted { color: var(--muted); font-size: 12px; display: block; }

/* linhas (conta, personagem, licença) */
#hud #hud-win .pst-rows { display: grid; gap: 10px; }
#hud #hud-win .pst-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
#hud #hud-win .pst-row b { display: block; font-size: 15px; color: #fff; }
#hud #hud-win .pst-row small { display: block; color: #c3cbdb; font-size: 12px; margin-top: 2px; }
#hud #hud-win .pst-row-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(243, 196, 99, .1); border: 1px solid rgba(243, 196, 99, .3); }
#hud #hud-win .pst-row-ico svg { width: 24px; height: 24px; }
#hud #hud-win .pst-pips { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
#hud #hud-win .pst-pips i { width: 18px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
#hud #hud-win .pst-pips i.on { background: linear-gradient(90deg, #f0b440, #ffe9a6); box-shadow: 0 0 6px rgba(240, 180, 64, .6); }
#hud #hud-win .pst-pips small { margin: 0 0 0 6px !important; color: var(--muted) !important; }
#hud #hud-win .pst-field { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; color: var(--muted); }
#hud #hud-win .pst-field input, #hud #hud-win .pst-code input { padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(160, 185, 255, .35); background: rgba(4, 6, 14, .8); color: #fff; font-size: 14px; }
#hud #hud-win .pst-code { display: flex; gap: 10px; max-width: 460px; }
#hud #hud-win .pst-code input { flex: 1; letter-spacing: .15em; text-transform: uppercase; }

/* prévia */
#hud #hud-win .pst-plate { position: relative; padding: 22px 12px 18px; text-align: center; border-radius: 12px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 30%, color-mix(in srgb, var(--pf1, #6c7cff) 26%, transparent), transparent 70%), linear-gradient(180deg, #0f1530, #070a14);
  border: 2px solid color-mix(in srgb, var(--pf1, #5a6690) 80%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--pf1, #5a6690) 40%, transparent), inset 0 0 18px rgba(0, 0, 0, .6); }
#hud #hud-win .pst-plate small { position: absolute; top: 6px; left: 0; right: 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
#hud #hud-win .pst-plate-name { font-size: 21px; font-weight: 800; color: #fff; word-break: break-word; }
#hud #hud-win .pst-plate-title { margin-top: 4px; font-size: 13px; color: #e6dcc4; }
#hud #hud-win .pst-podview { margin-top: 8px; padding: 10px 8px 9px; display: grid; justify-items: center; gap: 4px; border-radius: 12px;
  background: radial-gradient(70% 80% at 50% 40%, rgba(90, 200, 255, .16), transparent 70%), linear-gradient(180deg, #0f1530, #070a14); border: 1px solid rgba(120, 190, 255, .28); }
#hud #hud-win .pst-pod-big { width: 112px; height: 112px; image-rendering: pixelated; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
#hud #hud-win .pst-podview b { font-size: 12.5px; color: #dfeaff; text-align: center; }
#hud #hud-win .pst-hint { margin: 8px 2px 14px; font-size: 11.5px; color: var(--muted); text-align: center; }
#hud #hud-win .pst-side h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8c7a55; }
#hud #hud-win .pst-wear { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
#hud #hud-win .pst-wear li { display: grid; grid-template-columns: 1fr auto; padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); }
#hud #hud-win .pst-wear small { grid-column: 1; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
#hud #hud-win .pst-wear b { grid-column: 1; font-size: 12.5px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hud #hud-win .pst-wear b.dim { color: #5f6880; font-weight: 400; }
#hud #hud-win .pst-wear button { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 80, 80, .12); color: #ff9c9c; padding: 0; line-height: 1; }
#hud #hud-win .pst-rule { font-size: 11px; color: var(--muted); line-height: 1.4; padding: 10px; border-radius: 8px; background: rgba(89, 224, 143, .06); border: 1px solid rgba(89, 224, 143, .2); }

/* confirmação */
#hud #hud-win .pst-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(2, 4, 10, .72); backdrop-filter: blur(3px); animation: pstFade .15s; }
@keyframes pstFade { from { opacity: 0; } }
#hud #hud-win .pst-dlg { --rc: var(--epic); width: min(380px, 92%); padding: 20px; border-radius: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 18%, #0c1124), #070a14 75%);
  border: 1px solid color-mix(in srgb, var(--rc) 65%, transparent); box-shadow: 0 20px 60px rgba(0, 0, 0, .7), 0 0 30px color-mix(in srgb, var(--rc) 35%, transparent); animation: pstPop .2s ease-out; }
@keyframes pstPop { from { transform: scale(.94); opacity: 0; } }
#hud #hud-win .pst-dlg h3 { margin: 0 0 12px; font: 700 18px Georgia, 'Times New Roman', serif; color: var(--gold2); text-align: center; }
#hud #hud-win .pst-dlg-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
#hud #hud-win .pst-dlg-item .pst-art { height: 90px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--rc) 45%, transparent); }
#hud #hud-win .pst-dlg-item b { display: block; font-size: 16px; color: #fff; }
#hud #hud-win .pst-dlg-item .pst-art-name { font-size: 15px; white-space: nowrap; word-break: normal; }
#hud #hud-win .pst-dlg dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); }
#hud #hud-win .pst-dlg dt { color: var(--muted); font-size: 13px; }
#hud #hud-win .pst-dlg dd { margin: 0; display: flex; align-items: center; justify-content: flex-end; font-weight: 700; color: #fff; }
#hud #hud-win .pst-dlg dd.neg { color: #ff8c8c; }
#hud #hud-win .pst-short { margin: 0 0 10px; color: #ffb0b0; font-size: 13px; text-align: center; }
#hud #hud-win .pst-dlg-btns { display: flex; gap: 10px; }
#hud #hud-win .pst-dlg-btns .pst-btn { flex: 1; padding: 10px; }

/* telas menores: prévia some, menu vira faixa */
@media (max-width: 1100px) {
  #hud #hud-win .pst-body { grid-template-columns: 180px minmax(0, 1fr); }
  #hud #hud-win .pst-side { display: none; }
}
@media (max-width: 760px) {
  #hud #hud-win .pst-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  #hud #hud-win .pst-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  #hud #hud-win .pst-nav small { display: none; }
  #hud #hud-win .pst-nav button { width: auto; flex: none; padding: 7px 10px; }
  #hud #hud-win .pst-nav button span { white-space: nowrap; }
  #hud #hud-win .pst-nav button em { display: none; }
  #hud #hud-win .pst-top { padding: 8px 10px; }
  #hud #hud-win .pst-crest strong { font-size: 16px; }
  #hud #hud-win .pst-crest small, #hud #hud-win .pst-wallet span { display: none; }
  #hud #hud-win .pst-gem { width: 30px; height: 30px; }
  #hud #hud-win .pst-main { padding: 10px; }
  #hud #hud-win .pst-hero { height: 170px; }
  #hud #hud-win .pst-slide { grid-template-columns: 36% 1fr; }
  #hud #hud-win .pst-slide-txt h2 { font-size: 19px; }
  #hud #hud-win .pst-slide-txt p { display: none; }
  #hud #hud-win .pst-slide-art .pst-pile { width: 110px; height: 110px; }
  #hud #hud-win .pst-crown { width: 90px; height: 90px; }
  #hud #hud-win .pst-crown svg { width: 60px; height: 60px; }
  #hud #hud-win .pst-grid, #hud #hud-win .pst-packs, #hud #hud-win .pst-colls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #hud #hud-win .pst-vip { grid-template-columns: 1fr; }
  #hud #hud-win .pst-banner { grid-template-columns: 90px 1fr; }
  #hud #hud-win .pst-banner .pst-pile { width: 80px; height: 80px; }
  #hud #hud-win .pst-row { grid-template-columns: 1fr auto; }
  #hud #hud-win .pst-row-ico { display: none; }
}

/* celular (qualquer largura): menu em faixa no topo, destaque baixo e tudo mais compacto */
body.mobile-ui #hud #hud-win .pst { max-height: calc(100vh - 60px); }
body.mobile-ui #hud #hud-win .pst-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
body.mobile-ui #hud #hud-win .pst-side { display: none; }
body.mobile-ui #hud #hud-win .pst-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; gap: 4px; }
body.mobile-ui #hud #hud-win .pst-nav small, body.mobile-ui #hud #hud-win .pst-nav button em { display: none; }
body.mobile-ui #hud #hud-win .pst-nav button { width: auto; flex: none; padding: 6px 10px; min-height: 0; }
body.mobile-ui #hud #hud-win .pst-nav button span { white-space: nowrap; }
body.mobile-ui #hud #hud-win .pst-top { padding: 6px 12px; }
body.mobile-ui #hud #hud-win .pst-crest small, body.mobile-ui #hud #hud-win .pst-wallet span { display: none; }
body.mobile-ui #hud #hud-win .pst-crest strong { font-size: 17px; }
body.mobile-ui #hud #hud-win .pst-gem { width: 28px; height: 28px; }
body.mobile-ui #hud #hud-win .pst-main { padding: 10px 12px 16px; }
body.mobile-ui #hud #hud-win .pst-hero { height: 140px; }
body.mobile-ui #hud #hud-win .pst-slide { grid-template-columns: 30% 1fr; }
body.mobile-ui #hud #hud-win .pst-slide-txt { padding: 10px 14px 10px 0; }
body.mobile-ui #hud #hud-win .pst-slide-txt h2 { font-size: 20px; }
body.mobile-ui #hud #hud-win .pst-slide-txt p { display: none; }
body.mobile-ui #hud #hud-win .pst-slide-art .pst-pile { width: 96px; height: 96px; }
body.mobile-ui #hud #hud-win .pst-crown { width: 80px; height: 80px; }
body.mobile-ui #hud #hud-win .pst-crown svg { width: 54px; height: 54px; }
body.mobile-ui #hud #hud-win .pst-dots button { width: 8px !important; height: 8px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; }
body.mobile-ui #hud #hud-win .pst-dots button.on { width: 18px !important; }
body.mobile-ui #hud #hud-win .pst-grid, body.mobile-ui #hud #hud-win .pst-colls { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
body.mobile-ui #hud #hud-win .pst-art { height: 72px; }
body.mobile-ui #hud #hud-win .pst-vip { grid-template-columns: 120px 1fr; padding: 14px; align-items: start; }
body.mobile-ui #hud #hud-win .pst-vip-crest { justify-content: flex-start; padding-top: 6px; }
body.mobile-ui #hud #hud-win .pst-crown.big { width: 100px; height: 100px; }
body.mobile-ui #hud #hud-win .pst-crown.big svg { width: 70px; height: 70px; }
body.mobile-ui #hud #hud-win .pst-banner { grid-template-columns: 90px 1fr; padding: 10px 14px; }
body.mobile-ui #hud #hud-win .pst-banner .pst-pile { width: 80px; height: 80px; }
body.mobile-ui #hud #hud-win .pst-dlg { padding: 14px; }
body.mobile-ui #hud #hud-win .pst-dlg-item { grid-template-columns: 90px 1fr; margin-bottom: 8px; }
body.mobile-ui #hud #hud-win .pst-dlg-item .pst-art { height: 66px; }

/* arte pintada (assets/store) */
#hud #hud-win .pst-img { display: block; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
#hud #hud-win .pst-img.hero { width: 170px; height: 170px; animation: pstFloat 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(255, 200, 90, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
#hud #hud-win .pst-img.banner { width: 120px; height: 120px; }
#hud #hud-win .pst-img.pack { width: 104px; height: 104px; transition: transform .2s; }
#hud #hud-win .pst-pack:hover .pst-img.pack { transform: scale(1.08) rotate(-2deg); }
#hud #hud-win .pst-img.crest { width: 160px; height: 160px; animation: pstFloat 4s ease-in-out infinite; filter: drop-shadow(0 0 20px rgba(255, 200, 90, .5)); }
#hud #hud-win .pst-row-ico.art { background: none; border: 0; width: 56px; height: 56px; }
#hud #hud-win .pst-row-ico.art .pst-img { width: 56px; height: 56px; }
body.mobile-ui #hud #hud-win .pst-img.hero { width: 100px; height: 100px; }
body.mobile-ui #hud #hud-win .pst-img.crest { width: 100px; height: 100px; }
body.mobile-ui #hud #hud-win .pst-img.banner { width: 80px; height: 80px; }
body.mobile-ui #hud #hud-win .pst-img.pack { width: 80px; height: 80px; }
@media (max-width: 760px) { #hud #hud-win .pst-img.hero { width: 100px; height: 100px; } }
