/* Loja, Ouro e abertura de boosters (shop.js). Valores e visual provisórios. */
:root { --goldA: #ffd36b; --goldB: #c98a2e; }
.coin { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; font-style: normal; color: #5a3a0a; background: radial-gradient(circle at 35% 30%, #fff4c7, var(--goldA) 45%, var(--goldB)); box-shadow: 0 0 10px #ffd36b88, inset 0 -2px 0 #9a6420; font-size: .8em; line-height: 1; }
.coin.dim { filter: grayscale(.8) brightness(.7); box-shadow: none; }
.goldChip { display: inline-flex; align-items: center; gap: 8px; border-color: #e8c98b88 !important; background: linear-gradient(180deg, #3a2a14, #22180c) !important; color: #ffe2a0; font-weight: 700; }
.goldChip b { font-size: 1.1em; min-width: 2ch; text-align: right; }
#goldPill .coin { animation: coinSpin 4s ease-in-out infinite; }
@keyframes coinSpin { 0%, 80% { transform: rotateY(0); } 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* Menu */
#menuShop { position: relative; overflow: hidden; }
.menuShop { position: relative; border-color: #e8c98b88 !important; background: linear-gradient(135deg, #3a2240, #2a1830 60%, #3a2a14) !important; overflow: hidden; }
.menuShop::after, #menuShop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #fff3 45%, transparent 60%); transform: translateX(-120%); animation: foilSweep 3.2s ease-in-out infinite; pointer-events: none; }
.menuShop.ready, #menuShop.shopReady { box-shadow: 0 0 0 2px #ffd36baa, 0 0 26px #ffd36b66; animation: readyPulse 1.6s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 0 2px #ffd36b, 0 0 40px #ffd36b99; } }
@keyframes foilSweep { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }

/* Tela da loja */
.shopView { max-width: 1400px; margin: auto; padding: 18px max(28px, env(safe-area-inset-right)) 56px max(28px, env(safe-area-inset-left)); }
.shopHead { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.shopHead small { font-size: 13px; letter-spacing: 3px; color: var(--gold); }
.shopHead h2 { font: clamp(28px, 2.6vw, 42px) Georgia, serif; margin: 2px 0 6px; }
.shopHead p { margin: 0; color: #c9bdd2; font-size: clamp(15px, 1.1vw, 18px); max-width: 860px; line-height: 1.5; }
.shopHead p b { color: var(--gold); }
#shopBack { flex-shrink: 0; font-size: 17px; padding: 12px 18px; }
.shopStage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.packWrap { position: relative; display: grid; place-items: center; min-height: clamp(380px, 52vh, 600px); }
.packRays { position: absolute; width: min(620px, 90%); aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #ffd36b22 0 8deg, transparent 8deg 22deg); mask: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 26s linear infinite; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
.pack { position: relative; width: clamp(200px, 18vw, 290px); aspect-ratio: 2 / 3; border-radius: 16px; padding: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px solid #f1cf84 !important; color: #fff1c4; background: linear-gradient(150deg, #5b2a63, #23123a 45%, #6b2a3a 80%, #c98a2e) !important; box-shadow: 0 30px 60px #000c, 0 0 0 6px #ffd36b22, inset 0 0 40px #ffd36b33; animation: packBob 3.4s ease-in-out infinite; cursor: pointer; transition: transform .18s, box-shadow .2s; }
.pack::before { content: ''; position: absolute; inset: 10px; border: 1px solid #ffd36b66; border-radius: 10px; pointer-events: none; }
.packFoil { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 35%, #ffffff55 45%, #ffd36b44 50%, transparent 60%); animation: foilMove 2.6s ease-in-out infinite; pointer-events: none; mix-blend-mode: screen; }
@keyframes foilMove { 0% { transform: translateX(-40%) translateY(-10%); } 60%, 100% { transform: translateX(40%) translateY(10%); } }
.packSigil { font-size: clamp(64px, 6vw, 110px); color: var(--goldA); text-shadow: 0 0 30px #ffd36baa; }
.packName { font: 700 clamp(20px, 1.8vw, 30px)/1.1 Georgia, serif; letter-spacing: 4px; text-align: center; }
.packCount { font-size: 13px; letter-spacing: 3px; padding: 5px 12px; border-radius: 20px; background: #0006; border: 1px solid #ffd36b66; }
@keyframes packBob { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.pack:hover { box-shadow: 0 34px 70px #000d, 0 0 0 6px #ffd36b44, 0 0 60px #ffd36b55; }
.pack.ready { box-shadow: 0 30px 60px #000c, 0 0 0 6px #ffd36b55, 0 0 70px #ffd36b88, inset 0 0 50px #ffd36b44; }
.shopSide { display: flex; flex-direction: column; gap: 16px; }
.goldBig { display: flex; align-items: center; gap: 14px; font-size: 22px; color: #ffe2a0; }
.goldBig .coin { font-size: 46px; }
.goldBig b { font: 700 56px Georgia, serif; line-height: 1; }
.goldBig small { letter-spacing: 3px; font-size: 14px; color: #c9a86a; }
.shopBuy { min-height: 64px; font-size: 22px !important; font-weight: 800; display: flex; justify-content: center; align-items: center; gap: 14px; background: linear-gradient(180deg, #ffe08f, #d79b3c) !important; color: #2a1806 !important; border-color: #ffe08f !important; box-shadow: 0 8px 26px #d79b3c55; }
.shopBuy span { font-size: 16px; padding: 4px 10px; border-radius: 14px; background: #0002; }
.shopBuy:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 34px #d79b3c88; }
.shopBuy:not(:disabled):active { transform: scale(.97); }
.shopBuy:disabled { background: #2d2436 !important; color: #a69aac !important; border-color: #5a4868 !important; box-shadow: none; }
.goalTrack { height: 10px; border-radius: 10px; background: #2d2436; overflow: hidden; }
.goalTrack i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c98a2e, #ffe08f); transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.goalTrack.owned i { background: linear-gradient(90deg, #5fd6cf, #9fe0c0); }
.collectProgress { display: flex; flex-direction: column; gap: 8px; font-size: 17px; color: #c9bdd2; }
.collectProgress b { font-size: 24px; color: #9fe0c0; }
.shopMissing small { font-size: 13px; letter-spacing: 2px; color: #a69aac; }
.shopMissing div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.miss { width: 40px; height: 52px; border-radius: 6px; background-size: cover; background-position: 50% 20%; filter: brightness(.12) saturate(0); box-shadow: 0 0 0 1px var(--r); }
.provisional { font-size: 13px; color: #8d8198; margin: 0; }

/* Recompensa no fim do duelo */
.goldReward { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; padding: 14px 18px; border-radius: 14px; border: 1px solid #5a4868; background: #19141f; }
.goldReward.win { border-color: #ffd36b; background: linear-gradient(90deg, #3a2a14, #1f1610); box-shadow: 0 0 30px #ffd36b33; }
.goldReward .coin { font-size: 40px; }
.goldReward b { font: 700 26px Georgia, serif; color: #ffe2a0; display: block; }
.goldReward small { color: #c9bdd2; font-size: 15px; }
.goldReward button { margin-left: auto; }

/* Partículas */
.confetti { position: fixed; width: 10px; height: 14px; z-index: 1100; pointer-events: none; border-radius: 2px; }
.flyCoin { position: fixed; z-index: 1100; pointer-events: none; font-size: 22px; color: #ffd36b; text-shadow: 0 0 10px #ffd36b; font-style: normal; }
.suck { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: #ffe9b0; box-shadow: 0 0 10px #ffd36b; z-index: 1100; pointer-events: none; }

/* Abertura */
body.packOpen { overflow: hidden; }
.packOverlay { position: fixed; inset: 0; z-index: 995; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 56px; background: radial-gradient(ellipse 140% 120% at 50% 42%, #281538 0%, #0b0812 100%); overflow: hidden; padding: 20px 16px max(20px, env(safe-area-inset-bottom)); }
.poRays { position: absolute; left: 50%; top: 42%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(#ffd36b18 0 6deg, transparent 6deg 18deg); animation: spin 30s linear infinite; opacity: 0; transition: opacity .6s; pointer-events: none; }
.packOverlay.burst .poRays { opacity: 1; }
.poStage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pack.big { width: clamp(220px, 26vw, 340px); animation: none; }
.poRow { position: relative; z-index: 1; width: 100%; display: flex; gap: clamp(10px, 1.6vw, 26px); justify-content: center; flex-wrap: nowrap; perspective: 1400px; }
.poCard { position: relative; width: clamp(130px, 15vw, 230px); aspect-ratio: 5 / 8; padding: 0; border: 0 !important; background: none !important; cursor: pointer; }
.poInner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.8,.3,1); }
.poCard.flipped .poInner { transform: rotateY(180deg); }
.poBack, .poFront { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; }
.poBack { display: grid; place-items: center; border: 2px solid #c9a86a; background: radial-gradient(circle at 50% 40%, #4a2660, #1b1030 70%); box-shadow: 0 16px 36px #000c, 0 0 18px var(--r); font-size: clamp(40px, 5vw, 72px); color: #e8c98b; }
@keyframes hintPulse { 50% { box-shadow: 0 16px 36px #000c, 0 0 46px var(--r); } }
.poCard:not(.flipped):hover .poInner { transform: translateY(-10px) rotateY(-8deg); }
.poFront { transform: rotateY(180deg); }
.poFront .card.duel { width: 100%; height: 100%; margin: 0; pointer-events: none; }
.poCard.isNew::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; background: repeating-conic-gradient(var(--r) 0 7deg, transparent 7deg 20deg); mask: radial-gradient(circle, #000 15%, transparent 60%); -webkit-mask: radial-gradient(circle, #000 15%, transparent 60%); opacity: .55; animation: spin 9s linear infinite; pointer-events: none; }
.poCard.isNew .poFront { box-shadow: 0 0 0 3px var(--r), 0 0 50px var(--r); }
.poCard.isDupe .poFront { filter: saturate(.5) brightness(.75); }
.stamp { position: absolute; top: 8%; left: 50%; translate: -50% 0; rotate: -10deg; z-index: 3; padding: 6px 16px; border-radius: 8px; font: 900 clamp(18px, 2vw, 30px) Georgia, serif; letter-spacing: 2px; white-space: nowrap; animation: stampIn .45s cubic-bezier(.34,1.56,.64,1) both; }
.stamp.new { background: linear-gradient(180deg, #fff1c4, var(--goldA)); color: #3a1806; box-shadow: 0 6px 24px #ffd36b99; }
.stamp.dupe { background: #2d2436; color: #c9bdd2; border: 1px solid #6b5b7d; font-size: clamp(14px, 1.4vw, 20px); }
@keyframes stampIn { from { scale: 3; opacity: 0; } to { scale: 1; opacity: 1; } }
.rarityTag { position: absolute; bottom: -34px; left: 50%; translate: -50% 0; font-weight: 800; letter-spacing: 3px; font-size: 15px; color: var(--r); text-shadow: 0 0 12px var(--r); white-space: nowrap; }
.dupeGold { position: absolute; bottom: -34px; left: 50%; translate: -50% 0; font-weight: 800; color: var(--goldA); font-size: 17px; white-space: nowrap; animation: stampIn .4s both; }
.packOverlay:not(.burst) .poHud { opacity: 0; }
.poHud { transition: opacity .3s; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.poHud p { margin: 0; font-size: clamp(17px, 1.4vw, 22px); color: #f1ecdf; text-align: center; }
.poHud p b { color: var(--goldA); }
.poActions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.poActions button { min-height: 48px; font-size: 17px; padding: 10px 20px; }

@media (max-width: 860px) {
  .shopStage { grid-template-columns: 1fr; }
  .packWrap { min-height: 360px; }
  .shopHead { align-items: flex-start; }
  .goldBig b { font-size: 44px; }
  .poCard { width: 28vw; }
  .poRow { flex-wrap: wrap; row-gap: 46px; }
  .packOverlay { gap: 40px; justify-content: flex-start; padding-top: 48px; overflow-y: auto; }
}
@media (max-width: 640px) {
  .shopView { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  #shopBack .kbd { display: none; }
  .poCard { width: 42vw; }
  .actions #goldPill, .actions #gemPill { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .pack, .packFoil, .packRays, .poRays, .menuShop::after, .menuShop.ready, #menuShop::after, #menuShop.shopReady, #goldPill .coin, #gemPill .gem, .poCard .poBack, .poCard.isNew::before { animation: none !important; }
  .poInner { transition: none; }
}
.reduced .pack, .reduced .packFoil, .reduced .packRays, .reduced .poRays, .reduced .menuShop::after, .reduced .menuShop.ready, .reduced #menuShop::after, .reduced #menuShop.shopReady, .reduced #goldPill .coin, .reduced #gemPill .gem, .reduced .poCard .poBack, .reduced .poCard.isNew::before { animation: none !important; }
.reduced .poInner { transition: none; }

/* ---------- Diamantes, carteira, abas, chances e pacotes (01/10/2026) ---------- */
.gem { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; font-style: normal; font-size: .9em; line-height: 1; color: #e9f8ff; background: linear-gradient(160deg, #e3fbff, #6fd3f5 40%, #3a6fe0 75%, #7a3cff); clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%); filter: drop-shadow(0 0 6px #6fd3f5aa); }
.gem { color: transparent; }
.gemChip { display: inline-flex; align-items: center; gap: 8px; border-color: #8fd8ff88 !important; background: linear-gradient(180deg, #14283a, #0c1824) !important; color: #c9f0ff; font-weight: 700; }
.gemChip b { font-size: 1.1em; min-width: 2ch; text-align: right; }
#gemPill .gem { animation: gemGlint 5s ease-in-out infinite; }
@keyframes gemGlint { 0%, 85%, 100% { filter: drop-shadow(0 0 6px #6fd3f5aa); } 92% { filter: drop-shadow(0 0 14px #fff) brightness(1.6); } }
.flyCoin.gem { color: #8fe3ff; text-shadow: 0 0 10px #6fd3f5; background: none; clip-path: none; filter: none; width: auto; height: auto; }

.shopHead { flex-wrap: wrap; }
.shopHead > div:first-child { flex: 1 1 380px; }
.wallet { display: flex; gap: 12px; flex-wrap: wrap; }
.walletBig { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 16px; text-align: left; min-height: 64px; }
.walletBig > span:last-child { display: flex; flex-direction: column; }
.walletBig b { font: 700 32px/1 Georgia, serif; }
.walletBig small { font-size: 11px; letter-spacing: 2px; opacity: .8; margin-top: 4px; white-space: nowrap; }
.walletBig { min-width: 170px; }
.walletBig .coin, .walletBig .gem { font-size: 30px; }
.walletBig.gold { border-color: #e8c98b88 !important; background: linear-gradient(180deg, #3a2a14, #22180c) !important; color: #ffe2a0; }
.walletBig.gems { border-color: #8fd8ff88 !important; background: linear-gradient(180deg, #14283a, #0c1824) !important; color: #c9f0ff; }

.shopTabs { display: flex; gap: 6px; margin: 0 0 22px; padding: 5px; border-radius: 14px; background: #120e18; border: 1px solid #3a2f45; width: fit-content; max-width: 100%; }
.shopTabs button { min-height: 46px; padding: 8px 22px; font-size: 17px; font-weight: 700; border: 0 !important; background: none !important; color: #a69aac; border-radius: 10px; }
.shopTabs button.on { background: linear-gradient(180deg, #3a2a4a, #2a1f36) !important; color: #fff1c4; box-shadow: inset 0 0 0 1px #e8c98b66, 0 4px 14px #0008; }
.shopTabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.packWrap { flex-direction: column; }
.packPrice { position: relative; margin-top: 16px; padding: 6px 18px; border-radius: 20px; font-weight: 800; font-size: 20px; color: #c9f0ff; background: #0c1824; border: 1px solid #8fd8ff88; }
.shopBuy.short { background: linear-gradient(180deg, #2a4a66, #183048) !important; color: #c9f0ff !important; border-color: #8fd8ff88 !important; box-shadow: none; }

.odds { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px; border-radius: 14px; background: #15111b; border: 1px solid #3a2f45; }
.odds > small { font-size: 12px; letter-spacing: 2px; color: #a69aac; margin-bottom: 2px; }
.odd { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3.6em; align-items: center; gap: 10px; font-size: 15px; }
.oddName { color: var(--r); font-weight: 700; white-space: nowrap; }
.oddBar { height: 8px; border-radius: 8px; background: #2d2436; overflow: hidden; }
.oddBar i { display: block; height: 100%; background: var(--r); box-shadow: 0 0 10px var(--r); border-radius: 8px; }
.odd b { text-align: right; color: #f1ecdf; }
.odd small { color: #8d8198; font-size: 13px; }
.odd.rt-collector .oddName { background: linear-gradient(100deg, #ff7ad9, #ffd36b, #5fd6cf, #ff7ad9); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: holoSlide 3s linear infinite; }
.odd.rt-collector .oddBar i { background: linear-gradient(90deg, #ff7ad9, #7a3cff); }
.miss { box-shadow: 0 0 0 2px var(--r); }

.shopGems { display: flex; flex-direction: column; gap: 20px; }
.gemGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.gemPack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px 18px; border-radius: 18px; border: 1px solid #8fd8ff55 !important; background: radial-gradient(circle at 50% 20%, #1c3a55, #0e1824 70%) !important; color: #e9f8ff; overflow: hidden; }
.gemPack:disabled { opacity: 1; cursor: not-allowed; }
.gemPack.best { border-color: #ffd36b !important; box-shadow: 0 0 0 1px #ffd36b88, 0 0 30px #ffd36b33; }
.gemStack { font-size: 30px; letter-spacing: -6px; color: #8fe3ff; text-shadow: 0 0 14px #6fd3f5; min-height: 40px; }
.gemPack b { font: 700 30px Georgia, serif; }
.gemPack em { font-style: normal; font-size: 14px; color: #9fe0c0; font-weight: 700; }
.gemPrice { font-size: 18px; font-weight: 800; padding: 6px 16px; border-radius: 12px; background: #ffffff14; color: #c9bdd2; text-decoration: line-through #c9bdd288; }
.gemSoon { font-size: 11px; letter-spacing: 2px; color: #a69aac; }
.bestTag { position: absolute; top: 10px; right: -34px; rotate: 35deg; padding: 4px 40px; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; background: #ffd36b; color: #2a1806; }
.gemNote { margin: 0; padding: 12px 16px; border-radius: 12px; background: #1d1824; border: 1px dashed #5a4868; color: #c9bdd2; font-size: 15px; }
.goldInfo { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: linear-gradient(90deg, #2a1f10, #15111b); border: 1px solid #e8c98b44; }
.goldInfo .coin { font-size: 36px; flex: none; }
.goldInfo div { display: flex; flex-direction: column; gap: 4px; }
.goldInfo b { color: #ffe2a0; font-size: 18px; }
.goldInfo small { color: #c9bdd2; font-size: 15px; line-height: 1.45; }
.shopView .provisional { margin-top: 22px; }

.poWallet { display: flex; gap: 10px; }
.poWallet > span { padding: 6px 12px; border-radius: 20px; border: 1px solid; }
.packOverlay .pack.big { --glow: var(--best, #ffd36b); }
.collectorBanner { position: fixed; left: 50%; top: 22%; z-index: 1200; pointer-events: none; white-space: nowrap; font: 900 clamp(34px, 7vw, 96px) Georgia, serif; letter-spacing: .08em; background: linear-gradient(100deg, #ff7ad9, #ffd36b, #5fd6cf, #7a3cff, #ff7ad9); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px #ff7ad9) drop-shadow(0 6px 0 #0008); animation: holoSlide 1.6s linear infinite; }

@media (max-width: 860px) {
  .wallet { width: 100%; }
  .walletBig { flex: 1 1 0; }
  .odd { grid-template-columns: 7.5em minmax(0, 1fr) 3.4em; }
  .odd small { display: none; }
}
@media (max-width: 640px) {
  .shopTabs { width: 100%; }
  .shopTabs button { flex: 1; padding: 8px 10px; }
  .walletBig b { font-size: 26px; }
  .gemGrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gemPack { padding: 20px 10px 14px; }
  .gemPack b { font-size: 22px; }
}
/* Celular estreito: o Ouro sai do topo (continua na loja e no fim da partida) para o cabeçalho caber. */
@media (max-width: 440px) { .actions #goldPill { display: none; } }
@media (prefers-reduced-motion: reduce) { .odd.rt-collector .oddName, .collectorBanner { animation: none !important; } }
.reduced .odd.rt-collector .oddName, .reduced .collectorBanner { animation: none !important; }

.poCard.isDupe .dupeGold { bottom: -60px; }

/* ---------- Loja ligada ao servidor (01/10/2026) ---------- */
.boosterPick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.boosterPick button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 14px; border-radius: 14px; text-align: left; background: #15111b !important; border: 1px solid #3a2f45 !important; color: #c9bdd2; min-height: 64px; }
.boosterPick button b { color: #f1ecdf; font-size: 17px; }
.boosterPick button span { font-size: 14px; }
.boosterPick button.on { border-color: #e8c98b !important; background: linear-gradient(180deg, #3a2a4a, #22182c) !important; box-shadow: 0 0 0 1px #e8c98b66, 0 0 20px #e8c98b22; }
.boosterPick button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pack.pack-v1 { border-color: #9fd8ff !important; background: linear-gradient(150deg, #1d3a6b, #10162e 45%, #3a2a6b 80%, #5fd6cf) !important; box-shadow: 0 30px 60px #000c, 0 0 0 6px #8fd8ff22, inset 0 0 40px #8fd8ff33; color: #e3f6ff; }
.pack.pack-v1::before { border-color: #8fd8ff66; }
.pack.pack-v1 .packCount { border-color: #8fd8ff66; }
.pack.pack-v2 { border-color: #ff9ad9 !important; background: linear-gradient(150deg, #6b1d4f, #2a1030 45%, #6b2a3a 80%, #ff7ad9) !important; }
.pack.pack-v3 { border-color: #9fe0c0 !important; background: linear-gradient(150deg, #1d5b44, #102a20 45%, #2a6b4a 80%, #9fe0c0) !important; }
.gemPack:not(:disabled) { cursor: pointer; transition: transform .15s, box-shadow .2s; }
.gemPack:not(:disabled):hover, .gemPack:not(:disabled):focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px #8fd8ff, 0 14px 34px #000a, 0 0 30px #6fd3f544; }
.gemPrice.live { text-decoration: none; color: #2a1806; background: linear-gradient(180deg, #ffe08f, #d79b3c); }

/* ===== Verso das cartas no booster (Leo, 01/10/2026) =====
   Arte do verso (assets/verso.webp) e efeito por raridade ANTES de virar: quanto mais rara, mais forte.
   Comum: nada. Incomum: brilho suave. Rara: aura pulsando e reflexo passando. Lendária: raios girando atrás.
   Collector: moldura arco-íris girando, raios e tremida leve. Depois de virar, mostra o VALOR MÉDIO em Ouro. */
.poBack { background: #0b0812 url('assets/verso.webp') center / cover; border: 0; overflow: hidden; }
.poAura { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.poCard.rt-incomum:not(.flipped) .poBack { animation: backGlow 2.4s ease-in-out infinite; }
.poCard.rt-rara:not(.flipped) .poBack { animation: backGlow 1.6s ease-in-out infinite; }
.poCard:is(.rt-rara, .rt-lendaria, .rt-collector):not(.flipped) .poAura { background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--r) 55%, #fff0) 45%, #fff8 50%, transparent 62%) -150% 0 / 250% 100% no-repeat; mix-blend-mode: screen; animation: backSheen 2.2s ease-in-out infinite; }
.poCard.rt-lendaria:not(.flipped) .poBack { animation: backGlow 1.2s ease-in-out infinite; }
.poCard.rt-collector:not(.flipped) .poBack { animation: backGlow .9s ease-in-out infinite; }
.poCard:is(.rt-lendaria, .rt-collector):not(.flipped)::after { content: ''; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; background: repeating-conic-gradient(var(--r) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 12%, transparent 58%); -webkit-mask: radial-gradient(circle, #000 12%, transparent 58%); opacity: .5; animation: spin 7s linear infinite; }
.poCard.rt-collector:not(.flipped)::after { background: repeating-conic-gradient(#ff7ad9 0 6deg, transparent 6deg 12deg, #ffd36b 12deg 18deg, transparent 18deg 24deg, #5fd6cf 24deg 30deg, transparent 30deg 36deg); opacity: .7; animation-duration: 4s; }
.poCard.rt-collector:not(.flipped) .poInner { animation: backShake 1.8s ease-in-out infinite; }
.poCard.rt-collector:not(.flipped) .poBack::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 3px; background: conic-gradient(from var(--a, 0deg), #ff7ad9, #ffd36b, #5fd6cf, #7a3cff, #ff7ad9); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: backRing 2s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes backGlow { 0%, 100% { box-shadow: 0 16px 36px #000c, 0 0 14px var(--r); } 50% { box-shadow: 0 16px 36px #000c, 0 0 38px var(--r), 0 0 70px color-mix(in srgb, var(--r) 50%, transparent); } }
@keyframes backSheen { 0% { background-position: -150% 0; } 60%, 100% { background-position: 250% 0; } }
@keyframes backShake { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-1.5deg) scale(1.02); } 88% { transform: rotate(1.5deg) scale(1.02); } 92% { transform: rotate(-1deg); } }
@keyframes backRing { to { --a: 360deg; } }
.poCard:not(.flipped):hover .poInner { animation: none; }
.poValue { position: absolute; top: -46px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 12px 5px; border-radius: 10px; white-space: nowrap; background: linear-gradient(180deg, #3a2a14f0, #22180cf0); border: 1px solid #e8c98b88; box-shadow: 0 6px 18px #000a; color: #ffe2a0; z-index: 3; pointer-events: auto; }
.poValue small { font-size: 10px; letter-spacing: 2px; color: #c9b289; }
.poValue b { font-size: 17px; display: flex; align-items: center; gap: 5px; }
.poValue em { font-style: normal; font-variant-numeric: tabular-nums; }
.poValue.market { border-color: #ffd36b; box-shadow: 0 6px 18px #000a, 0 0 14px #ffd36b55; }
@media (prefers-reduced-motion: reduce) { .poCard:not(.flipped) :is(.poBack, .poAura, .poInner), .poCard:not(.flipped)::after, .poCard .poBack::before { animation: none !important; } }
.reduced .poCard:not(.flipped) :is(.poBack, .poAura, .poInner), .reduced .poCard:not(.flipped)::after, .reduced .poCard .poBack::before { animation: none !important; }
@media (max-width: 760px) { .packOverlay .poRow { } .poValue { top: -40px; padding: 3px 9px; } .poValue b { font-size: 14px; } }
.poCard { isolation: isolate; }

/* ===== Pacote metálico e vitrine de boosters (Leo, 01/10/2026) =====
   O botão .pack vira só o "palco" do pacote de booster-pack.css: sem fundo, borda nem recorte próprios. */
.pack { aspect-ratio: 5 / 8; border: 0 !important; background: none !important; box-shadow: none !important; overflow: visible; border-radius: 0; gap: 0; display: block; }
.pack::before, .pack:hover, .pack.ready { box-shadow: none !important; }
.pack::before { display: none; }
.pack:hover .boosterPack, .pack.ready .boosterPack { filter: drop-shadow(0 22px 34px #000d) drop-shadow(0 0 26px var(--glow)); }
.pack.half .boosterPack { filter: none; }
.packPrice.gold { color: #ffe2a0; background: #2a1d0c; border-color: #e8c98b88; }
.boosterPick { grid-template-columns: 1fr; gap: 8px; max-height: min(46vh, 440px); overflow-y: auto; padding: 2px 4px 2px 2px; }
.boosterPick button { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; min-height: 0; }
.boosterPick .bpMini { width: 52px; flex: none; aspect-ratio: 5 / 8; pointer-events: none; }
.boosterPick .bpMini .bpTag, .boosterPick .bpMini .bpCount { display: none; }
.boosterPick .bpMini .bpFoil { animation: none; }
.boosterPick .bpInfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.boosterPick .bpCost { font-weight: 800; color: #c9f0ff; }
.boosterPick .bpCost.gold { color: #ffe2a0; }
.boosterPick em { font-style: normal; font-size: 12px; color: #b8a9c6; }
.boosterPick button.off { opacity: .55; }
.boosterPick button.off em:last-child { color: #ff9fb4; }
@media (max-width: 760px) { .boosterPick { max-height: none; } }
.boosterPick .bpMini :is(.bpLogo, .bpName, .bpTag, .bpCount, .bpPrice) { display: none; } .boosterPick .bpMini .bpBody { justify-content: center; } .boosterPick .bpCost { white-space: nowrap; }

/* Pacote realista: no seletor, só a capa e o metal (o texto fica ilegível em miniatura). */
.boosterPick .bpMini :is(.bpHead, .bpTitle, .bpFoot, .bpRibbon) { display: none; }
.boosterPick .bpMini .bpCover { -webkit-mask: none; mask: none; }
.pack { width: clamp(220px, 20vw, 320px); }

/* ===== Faixa de boosters (Leo, 01/10/2026): pacotes lado a lado acima da vitrine, rolagem horizontal se não couber ===== */
.boosterRail { grid-column: 1 / -1; display: flex; gap: clamp(10px, 1.4vw, 20px); justify-content: center; overflow-x: auto; overflow-y: visible; padding: 14px 6px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #6c536c transparent; }
.railItem { flex: none; width: clamp(96px, 8.5vw, 124px); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 !important; border: 0 !important; background: none !important; color: #c9bdd2; scroll-snap-align: center; transition: transform .2s cubic-bezier(.2,.8,.3,1), opacity .2s; }
.railItem:hover { transform: translateY(-5px); background: none !important; }
.railPack { width: 100%; aspect-ratio: 5 / 8; pointer-events: none; border-radius: 6px; transition: filter .2s; filter: brightness(.72) saturate(.8); }
.railItem:hover .railPack, .railItem.on .railPack { filter: none; }
.railItem.on { transform: translateY(-8px); }
.railItem.on .railPack { filter: drop-shadow(0 0 14px var(--gold)); }
.railItem.on .railPack .boosterPack { outline: 2px solid #ffe08a; outline-offset: 3px; border-radius: 4px; }
.railItem b { font-size: 13px; line-height: 1.15; text-align: center; color: #f1ecdf; }
.railItem em { font-style: normal; font-size: 11px; line-height: 1.2; text-align: center; color: #b8a9c6; }
.railItem.off { opacity: .55; }
.railItem.off em { color: #ff9fb4; }
.railItem:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.railPack :is(.bpHead, .bpTitle, .bpFoot, .bpCorner) { display: none; }
.railPack .bpCover { -webkit-mask: none; mask: none; transform: none; }
.railPack .bpFoil, .railPack .bpHolo { animation: none; }
@media (max-width: 760px) { .boosterRail { justify-content: flex-start; } .railItem { width: 84px; } }
.railPack .boosterPack { filter: drop-shadow(0 6px 8px #0009); }
#shopBoosters.shopStage { align-items: start; } #shopBoosters .packWrap { align-self: start; }

/* ===== Loja numa tela só, com carrossel de boosters (Leo, 01/10/2026) =====
   A aba Boosters ocupa a altura da janela menos o topo (--hdr, medido em fitShop). A vitrine é um carrossel:
   o pacote escolhido no centro e até 2 vizinhos de cada lado, menores, inclinados e apagados; setas e pontinhos embaixo. */
.boosterRail { display: none; }
@media (min-width: 761px) and (min-height: 560px) {
  .shopView.fit { height: calc(100dvh - var(--hdr, 90px)); display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 14px; overflow: hidden; }
  .shopView.fit .shopHead { margin-bottom: 8px; }
  .shopView.fit .shopHead h2 { font-size: clamp(24px, 2.2vw, 34px); margin: 0 0 2px; }
  .shopView.fit .shopHead p { font-size: 14px; }
  .shopView.fit .walletBig { padding-block: 8px; }
  .shopView.fit .shopTabs { margin-bottom: 10px; }
  .shopView.fit #shopBoosters { flex: 1; min-height: 0; align-items: stretch; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
  .shopView.fit .packWrap { min-height: 0; height: 100%; container-type: size; }
  .shopView.fit .shopSide { min-height: 0; overflow-y: auto; justify-content: center; gap: 12px; padding-right: 4px; scrollbar-width: thin; }
  .shopView.fit .provisional { display: none; }
  .shopView.fit .shopMissing div { flex-wrap: nowrap; overflow: hidden; }
}
.packWrap { perspective: 1200px; }
.shopView.fit .pack, .shopView.fit .cfSide { height: min(78cqh, 560px); width: auto; aspect-ratio: 5 / 8; }
.cfSides { position: absolute; inset: 0; pointer-events: none; }
.cfSide { position: absolute; left: 50%; top: 50%; width: clamp(170px, 15vw, 250px); aspect-ratio: 5 / 8; padding: 0 !important; border: 0 !important; background: none !important; pointer-events: auto; cursor: pointer;
  transform: translate(-50%, -50%) translateX(calc(var(--o) * 74%)) scale(calc(1 - (max(var(--o), -1 * var(--o)) * .17))) rotateY(calc(var(--o) * -32deg));
  filter: brightness(.45) saturate(.6); z-index: calc(3 - max(var(--o), -1 * var(--o))); transition: transform .35s cubic-bezier(.2,.8,.3,1), filter .25s; }
.cfSide:hover { filter: brightness(.7) saturate(.85); background: none !important; }
.cfSide .boosterPack { pointer-events: none; }
.cfSide.off { filter: brightness(.3) grayscale(.6); }
.packWrap .pack { position: relative; z-index: 4; }
.cfNav { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 5; pointer-events: none; }
.cfArrow { pointer-events: auto; position: absolute; bottom: 50cqh; width: 48px; height: 48px; padding: 0 !important; border-radius: 50% !important; font: 700 30px/1 Georgia, serif !important; display: grid; place-items: center;
  background: #1a1322cc !important; border: 1px solid #e8c98b66 !important; color: #ffe2a0; box-shadow: 0 6px 18px #000a; }
.cfArrow.prev { left: 2%; } .cfArrow.next { right: 2%; }
.cfArrow:disabled { opacity: .25; }
.cfDots { display: flex; gap: 7px; padding-bottom: 2px; }
.cfDots i { width: 8px; height: 8px; border-radius: 50%; background: #5a4868; transition: background .2s, transform .2s; }
.cfDots i.on { background: #ffe08a; transform: scale(1.3); }
.boosterInfo { display: flex; flex-direction: column; gap: 6px; }
.boosterInfo h3 { font: 700 clamp(22px, 1.9vw, 30px) Georgia, serif; color: #fff1c4; margin: 0; }
.boosterInfo p { margin: 0; color: #c9bdd2; font-size: 15px; }
.boosterInfo .bChips { display: flex; flex-wrap: wrap; gap: 6px; }
.boosterInfo .bChips span { font-size: 13px; padding: 4px 10px; border-radius: 20px; background: #221a2c; border: 1px solid #4a3a5a; color: #d9cde3; }
.boosterInfo .bChips span.bad { color: #ffb3c0; border-color: #ff7a9a66; }
@media (max-width: 760px) { .cfSide { display: none; } .cfArrow { bottom: auto; top: 40%; width: 40px; height: 40px; } }
.shopView.fit .packWrap { overflow-x: clip; overflow-y: visible; }

/* Ajustes (Leo): sem os quadros de Ouro e Diamante no topo da loja (o cabeçalho já mostra). O vizinho do carrossel
   guarda a própria transformação também ao ser pressionado (o :active geral dos botões trocava por scale e jogava ele para baixo). */
.shopView .shopHead .wallet { display: none; }
.cfSide { --cf: translate(-50%, -50%) translateX(calc(var(--o) * 74%)) scale(calc(1 - (max(var(--o), -1 * var(--o)) * .17))) rotateY(calc(var(--o) * -32deg)); transform: var(--cf); }
.cfSide:active:not(:disabled), .cfSide:hover { transform: var(--cf) !important; }
.cfArrow:active:not(:disabled) { transform: scale(.94); }

/* ===== Abertura do pacote (Leo, 01/10/2026): rasgo da selagem, maço subindo e pacote caindo (shop.js, openPack) ===== */
.poPiece { position: fixed; z-index: 1102; pointer-events: none; }
.poPiece .boosterPack { width: 100%; height: 100%; }
.poPiece.top { z-index: 1104; transform-origin: 0% 100%; filter: drop-shadow(0 10px 14px #000a); }
.poStack { position: fixed; z-index: 1101; pointer-events: none; }
.poStack i { position: absolute; inset: 0; border-radius: 10px; background: #0b0812 url('assets/verso.webp') center / cover; box-shadow: 0 6px 16px #000c, 0 0 18px var(--r, #ffd36b55); transform-origin: 50% 100%; }
.poTearGlow { position: fixed; z-index: 1103; height: 12px; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at center, #fff 0%, var(--best, #ffd36b) 40%, transparent 72%); filter: blur(2px); box-shadow: 0 0 40px 14px color-mix(in srgb, var(--best, #ffd36b) 70%, transparent); }

/* ===== Cena da Collector (Leo, 01/10/2026) ===== */
.cxStage { position: fixed; inset: 0; z-index: 1300; cursor: pointer; perspective: 1400px; overflow: hidden; }
.cxVeil { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 120% 100% at 50% 45%, #2a0f3a99 0%, #07040df0 100%); }
.cxRays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #ff7ad944 0 4deg, transparent 4deg 10deg, #ffd36b33 10deg 14deg, transparent 14deg 20deg, #5fd6cf33 20deg 24deg, transparent 24deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 100%); mask: radial-gradient(closest-side, #000 22%, transparent 100%); }
.cxStage.landed .cxRays { animation: cxSpin 14s linear infinite; }
@keyframes cxSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
.cxRing { position: absolute; left: 50%; top: 45%; width: 40vmin; height: 40vmin; border-radius: 50%; opacity: 0; pointer-events: none; border: 6px solid #fff; box-shadow: 0 0 40px #ff7ad9, inset 0 0 40px #5fd6cf; }
.cxCard { position: fixed; transform-style: preserve-3d; transform-origin: 50% 50%; filter: drop-shadow(0 0 30px #ff7ad9aa) drop-shadow(0 20px 40px #000c); }
.cxCard > .card { width: 100% !important; height: 100% !important; margin: 0 !important; pointer-events: none; }
.cxHolo { position: absolute; inset: 0; z-index: 3; border-radius: 10px; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0;
  background: linear-gradient(115deg, transparent 20%, #ff7ad9 35%, #ffd36b 45%, #5fd6cf 55%, #7a3cff 65%, transparent 80%) 0 0 / 300% 100%; }
.cxStage.landed .cxHolo { opacity: .55; animation: cxHolo 2.4s linear infinite; }
@keyframes cxHolo { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.cxTitle { position: absolute; left: 0; right: 0; bottom: 13vh; display: flex; justify-content: center; gap: .08em; pointer-events: none; font: 900 clamp(34px, 6vw, 84px)/1 Georgia, serif; }
.cxTitle span { opacity: 0; background: linear-gradient(180deg, #fff, #ff7ad9 40%, #ffd36b 70%, #5fd6cf); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #fff8; }
.cxStage.landed .cxTitle span { animation: cxLetter .55s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 70ms) forwards; }
@keyframes cxLetter { from { opacity: 0; transform: translateY(-60px) scale(1.8) rotate(-12deg); } to { opacity: 1; transform: none; } }
.cxName { position: absolute; left: 0; right: 0; bottom: 8.5vh; text-align: center; pointer-events: none; opacity: 0; font: 700 clamp(16px, 1.6vw, 24px) Georgia, serif; letter-spacing: .12em; color: #fff1c4; text-shadow: 0 0 14px #ff7ad9; }
.cxHint { position: absolute; left: 0; right: 0; bottom: 4vh; text-align: center; pointer-events: none; opacity: 0; font-size: 13px; letter-spacing: .2em; color: #c9bdd2; text-transform: uppercase; }
.cxStage.landed .cxName { animation: cxFade .6s .75s forwards; }
.cxStage.landed .cxHint { animation: cxFade .6s 1.4s forwards; }
@keyframes cxFade { to { opacity: 1; } }
.cxStage.leaving :is(.cxVeil, .cxRays, .cxTitle, .cxName, .cxHint) { transition: opacity .45s; opacity: 0 !important; }

/* Selos NOVA/REPETIDA pequenos, no canto de cima da carta, sem tapar a arte; cartas do booster só com os ícones de ataque e dano. */
.poCard .stamp { top: -12px; left: auto; right: -8px; translate: none; rotate: 8deg; padding: 3px 9px; border-radius: 6px; font: 900 clamp(11px, .95vw, 14px)/1.2 system-ui, sans-serif; letter-spacing: 1px; }
.poCard .stamp.dupe { font-size: clamp(10px, .85vw, 12px); }
.poFront .cardStats :is(.atk, .dmg) small { display: none !important; }
/* Cartas do booster: nome no topo, centralizado; sem o texto de raridade embaixo (a etiqueta fica só na própria carta). */
.poFront .card .cardName { left: 6%; right: 6%; text-align: center; z-index: 2; }
.poCard > .rarityTag { display: none; }
/* Vaga da carta na abertura com a mesma proporção da carta (1:1,4): sem faixa vazia em cima e embaixo. */
.poCard { aspect-ratio: 5 / 7; }
.poFront .card.duel, .poFront .card { width: 100% !important; height: 100% !important; }
/* Abertura: pacote um pouco menor e mais baixo, para o maço que sobe caber na tela. */
.pack.big { width: clamp(170px, min(19vw, 33vh), 270px); margin-top: min(12vh, 110px); }
/* Verso inteiro na carta (a arte é 2:3 e a carta 1:1,4): sem cortar o topo nem a base. */
.poBack, .poStack i { background-size: 100% 100% !important; }
.dupeGold { white-space: nowrap; font-size: 13px; }
/* Repetida: "x2", "x3"... colado embaixo da carta (quantas vezes o jogador já tirou o personagem). */
.poCopies { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; padding: 1px 12px; border-radius: 0 0 10px 10px; font: 900 clamp(16px, 1.5vw, 22px)/1.2 Impact, 'Arial Black', sans-serif; letter-spacing: 1px; color: #fff1c4; background: linear-gradient(#3a2a4a, #22182c); border: 1px solid #e8c98b66; border-top: 0; text-shadow: 0 2px 0 #000; z-index: 2; animation: stampIn .4s cubic-bezier(.34,1.56,.64,1) both; }
.poCard .dupeGold { display: none; }
/* Collector: a carta recebe o mouse para inclinar (antes era só enfeite). */
.cxCard { cursor: grab; }
.cxCard > .card { transform-origin: 50% 50%; will-change: transform; }
.cxHolo { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.cxStage.landed .cxHolo { animation: none; }
/* Collector nítida: sem filtro na carta (filtro faz o navegador desenhar a carta como imagem); a sombra e o brilho viram box-shadow. */
.cxCard { filter: none; }
.cxCard > .card { will-change: auto; box-shadow: 0 0 40px #ff7ad9aa, 0 24px 50px #000c; border-radius: 10px; -webkit-font-smoothing: antialiased; }
/* Cartas da abertura nunca cortam informação: a carta é uma coluna em que a arte cede espaço e o texto (clã, habilidades,
   ataque/estrelas/dano) sempre cabe inteiro; cada habilidade tem no máximo 2 linhas. */
.poFront .card, .cxCard > .card { display: flex !important; padding: 0 !important; margin: 0 !important; flex-direction: column; overflow: hidden; }
.poFront .card .art, .cxCard .card .art { flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; }
.poFront .card .cardText, .cxCard .card .cardText { flex: none; position: relative !important; inset: auto !important; padding: 2.5cqw 4cqw 3cqw !important; background: #120d18 !important; }
.poFront .card .cardText p, .cxCard .card .cardText p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 0 !important; margin: 0 0 1cqw !important; font-size: max(10px, 5.4cqw) !important; line-height: 1.25 !important; }
.poFront .card .cardText > small, .cxCard .card .cardText > small { font-size: max(9px, 4.4cqw) !important; }
.poFront .card .cardStats, .cxCard .card .cardStats { position: relative !important; inset: auto !important; margin-top: 1.5cqw; padding: 0 !important; border: 0 !important; }
.poFront .card .cardAction, .cxCard .card .cardAction { display: none; }
.cxCard .cardStats :is(.atk, .dmg) small { display: none !important; }

/* Abertura com qualquer quantidade de cartas (Leo, 02/10/2026): grade calculada em shop.js (layoutRow) para ocupar a tela sem rolagem */
.packOverlay .poRow { display: grid; grid-template-columns: repeat(var(--cols, 5), var(--pcw, 200px)); gap: var(--pgy, 50px) var(--pgx, 16px); justify-content: center; align-content: center; padding-top: 0; flex-wrap: unset; }
.packOverlay .poRow .poCard { width: var(--pcw, clamp(130px, 15vw, 230px)); }
.packOverlay { gap: clamp(10px, 2vh, 28px); }
.packOverlay.poScroll { justify-content: flex-start; overflow-y: auto; }
.poRow.dense .poValue { top: -36px; padding: 2px 8px; } .poRow.dense .poValue small { font-size: 8px; } .poRow.dense .poValue b { font-size: 13px; }
.poRow.tiny .poValue small { display: none; } .poRow.tiny .poValue { top: -26px; }
.poRow.dense .poCard .stamp { font-size: 9px; padding: 2px 6px; top: -8px; }
.poRow.tiny .poValue { top: -25px; padding: 1px 7px; border-radius: 7px; } .poRow.tiny .poValue b { font-size: 12px; } .poRow.tiny .poValue small { display: none; }
.poRow.tiny .poCard .stamp { font-size: 8px; padding: 1px 5px; right: -4px; top: -6px; }

/* ===== Loja redesenhada (Leo, 06/10/2026): abas Boosters / Diamantes / Ouro, painéis de moedas com cartões de pacote ===== */
.shopTabs{width:100%;gap:0;padding:0;background:none;border:0;border-bottom:1px solid #3a2f45;border-radius:0;margin-bottom:20px}
.shopTabs button{position:relative;display:inline-flex;align-items:center;gap:8px;flex:1 1 0;justify-content:center;min-height:52px;font-size:18px;letter-spacing:.02em;border-radius:12px 12px 0 0;color:#a69aac;transition:color .2s,background .2s}
.shopTabs button:hover{color:#fff1c4;background:#ffffff08!important}
.shopTabs button.on{background:linear-gradient(180deg,#ffffff00,#e8c98b1a)!important;box-shadow:none;color:#fff1c4}
.shopTabs button.on::after{content:"";position:absolute;left:12%;right:12%;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:linear-gradient(90deg,transparent,#ffd36b,transparent);box-shadow:0 0 14px #ffd36b}
.shopTabs button .coin,.shopTabs button .gem{font-size:18px}
.moneyPanel{gap:22px}
.moneyLead{align-self:stretch;display:flex;gap:16px;align-items:center;padding:16px 20px;border-radius:16px;border:1px solid #ffffff1a}
.moneyLead>span{font-size:44px;flex:none}
.moneyLead div{display:flex;flex-direction:column;gap:4px}
.moneyLead b{font:700 24px Georgia,serif;color:#fff}
.moneyLead small{color:#c9bdd2;font-size:15px;line-height:1.45}
.moneyLead.leadGold{background:radial-gradient(ellipse 60% 120% at 0 50%,#ffd36b26,transparent 70%),linear-gradient(90deg,#2a1f10,#15111b);border-color:#e8c98b55}
.moneyLead.leadGold b{color:#ffe2a0}
.moneyLead.leadGems{background:radial-gradient(ellipse 60% 120% at 0 50%,#6fd3f526,transparent 70%),linear-gradient(90deg,#10202f,#15111b);border-color:#8fd8ff55}
.moneyLead.leadGems b{color:#c9f0ff}
.moneyGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
.moneyCard{--c1:#8fe3ff;--c2:#3a6fe0;--glow:#6fd3f5;position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 16px 18px;border-radius:20px;overflow:hidden;cursor:pointer;color:#fff;border:1px solid color-mix(in srgb,var(--glow) 40%,transparent)!important;background:radial-gradient(circle at 50% 0,color-mix(in srgb,var(--glow) 28%,transparent),transparent 62%),linear-gradient(180deg,#1b1530,#0f0b18)!important;transition:transform .18s,box-shadow .25s}
.isGold .moneyCard{--c1:#fff4c7;--c2:#d79b3c;--glow:#ffd36b}
.moneyCard::before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 35%,#ffffff22 50%,transparent 65%);transform:translateX(-120%);transition:transform .7s}
.moneyCard:not(:disabled):hover,.moneyCard:not(:disabled):focus-visible{transform:translateY(-6px) scale(1.015);box-shadow:0 0 0 1px var(--glow),0 18px 40px #000b,0 0 34px color-mix(in srgb,var(--glow) 35%,transparent)}
.moneyCard:hover::before{transform:translateX(120%)}
.moneyCard:disabled{cursor:not-allowed;opacity:.85}
.moneyCard.best{border-color:#ffd36b!important;box-shadow:0 0 0 1px #ffd36b88,0 0 34px #ffd36b30}
.moneyArt{display:flex;justify-content:center;align-items:flex-end;height:74px;margin-bottom:4px;filter:drop-shadow(0 6px 10px #000a)}
.moneyArt i{font-size:calc(30px + var(--t) * 6px);margin-left:-.42em;transform:translateY(calc(var(--k) * -4px)) rotate(calc(var(--k) * 6deg - 9deg));animation:moneyBob 3.4s ease-in-out infinite;animation-delay:calc(var(--k) * -.5s)}
.moneyArt i:first-child{margin-left:0}
@keyframes moneyBob{0%,100%{translate:0 0}50%{translate:0 -4px}}
.moneyName{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#cdbfd8}
.moneyQty{display:inline-flex;align-items:center;gap:8px;font:700 32px/1 Georgia,serif;color:#fff;text-shadow:0 2px 12px #0008}
.moneyQty .coin,.moneyQty .gem{font-size:26px}
.moneyBonus{font-style:normal;font-size:14px;font-weight:800;color:#9fe0c0;padding:2px 10px;border-radius:999px;background:#9fe0c01c;border:1px solid #9fe0c044}
.moneyBonus.none{background:none;border-color:transparent}
.moneyPrice{margin-top:4px;font-size:20px;font-weight:800;padding:7px 18px;border-radius:12px;background:#ffffff14;color:#c9bdd2;text-decoration:line-through #c9bdd288}
.moneyPrice.live{text-decoration:none;color:#2a1806;background:linear-gradient(180deg,#ffe08f,#d79b3c)}
.moneyBuy{font-size:11px;letter-spacing:.2em;color:var(--glow);font-weight:800}
.moneyCard .bestTag{top:12px;right:-38px}
.moneyEmpty{grid-column:1/-1;margin:0;padding:24px;text-align:center;color:#a69aac;border:1px dashed #5a4868;border-radius:14px}
@media (max-width:760px){.moneyGrid{grid-template-columns:1fr 1fr;gap:10px}.moneyCard{padding:24px 10px 14px}.moneyQty{font-size:24px}.moneyLead{padding:12px 14px}.moneyLead>span{font-size:34px}.shopTabs button{font-size:15px;padding:8px 4px}}
@media (prefers-reduced-motion:reduce){.moneyArt i{animation:none}.moneyCard,.moneyCard::before{transition:none}}
.reduced .moneyArt i{animation:none}

/* Diamantes e Ouro ficam na mesma estrutura dos Boosters (altura da janela, sem o conteúdo descer ao trocar de aba) */
@media (min-width: 761px) and (min-height: 560px) { .shopView.fit .moneyPanel:not([hidden]) { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding: 2px 4px 6px 0; scrollbar-width: thin; } }

/* Clãs de um booster por seleção (06/10/2026): ícone e nome de cada clã que pode sair no pacote */
.packClans{margin-top:8px;padding:10px 12px;border-radius:12px;border:1px solid #e8c98b33;background:#ffffff08}
.packClans small{display:block;margin-bottom:8px;font-size:11px;letter-spacing:.18em;color:#b9a98c}
.packClans ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin:0;padding:0;list-style:none}
.packClans li{display:flex;align-items:center;gap:8px;font-size:14px;color:#f1e6cc}
.packClans .clanDot{width:30px;height:30px;margin:0;vertical-align:middle}
