/* DROPA — arte gerada: pacote metalizado e raspadinha estilo crachá */

/* ------------------------------------------------------------ pacote: embalagem metalizada */
.pouch { aspect-ratio: 2 / 3; position: relative; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)); }
.pouch-body { position: absolute; left: 2%; right: 2%; top: 5%; bottom: 5%; border-radius: 6% / 4%; overflow: hidden; background: #b9b9c4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pouch-art, .pouch-gen { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; }
.pouch-tint, .pouch-wr, .pouch-glare { position: absolute; inset: 0; pointer-events: none; }
.pouch-wr { background: #fff; mix-blend-mode: overlay; opacity: .6; }
.pouch-glare { background: linear-gradient(105deg, transparent 22%, rgba(255, 255, 255, .55) 34%, transparent 44%, transparent 62%, rgba(255, 255, 255, .25) 70%, transparent 78%); background-size: 260% 100%; animation: foil 5s ease-in-out infinite; mix-blend-mode: screen; }
.pouch-body::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 1.4em rgba(0, 0, 0, .55), inset .5em 0 1em rgba(255, 255, 255, .18), inset -.6em 0 1em rgba(0, 0, 0, .35); }
.pouch-strip { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: rgba(8, 4, 8, .78); display: grid; place-items: center; overflow: hidden; }
.pouch-strip span { transform: rotate(-90deg); white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 1.05em; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.pouch-name { position: absolute; left: 27%; bottom: 13%; font-family: var(--display); font-weight: 700; font-size: 1.25em; line-height: .95; text-transform: uppercase; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.pouch-name small { display: block; margin-top: .45em; font-family: var(--body); font-size: .42em; letter-spacing: .14em; font-weight: 800; opacity: .9; }
.pouch-code { position: absolute; right: 7%; bottom: 6%; width: 30%; height: 7%; }
.pouch-code i { position: absolute; top: 0; bottom: 0; background: rgba(10, 5, 10, .85); }
.crimp { position: absolute; left: 0; right: 0; height: 7.5%; border-radius: 3px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .7) 0 1.5px, rgba(0, 0, 0, .28) 1.5px 3.5px), linear-gradient(90deg, #8c8c98, #f2f2f7 30%, #a5a5b2 55%, #eeeef4 80%, #8c8c98); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.crimp.top { top: 0; }
.crimp.bottom { bottom: 0; }
.f-silver .pouch-gen { filter: grayscale(1) contrast(1.15) !important; }
.f-silver .pouch-tint { background: linear-gradient(100deg, rgba(255, 255, 255, .5), rgba(150, 150, 165, .15) 40%, rgba(255, 255, 255, .45) 70%, rgba(110, 110, 125, .3)); mix-blend-mode: overlay; }
.f-holo .pouch-tint { background: linear-gradient(120deg, #ff6ec7, #7b5cff, #4bd0ff, #7affc8, #ffe66b, #ff6ec7); background-size: 300% 300%; mix-blend-mode: color-dodge; opacity: .55; animation: holo 6s linear infinite; }
@keyframes holo { to { background-position: 300% 0; } }
.f-gold .pouch-tint { background: linear-gradient(160deg, #f6ea7a, #b7a326 50%, #f3e46a); mix-blend-mode: multiply; opacity: .85; }
.f-gold .crimp { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .6) 0 1.5px, rgba(0, 0, 0, .25) 1.5px 3.5px), linear-gradient(90deg, #8c7a14, #f6ea7a 35%, #b7a326 60%, #f3e46a 85%, #8c7a14); }
.f-dark .pouch-body { background: #0b070b; }
.f-dark .pouch-art, .f-dark .pouch-gen { mix-blend-mode: screen; opacity: .9; }
.f-dark .pouch-tint { background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.f-dark .crimp { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .25) 0 1.5px, rgba(0, 0, 0, .5) 1.5px 3.5px), linear-gradient(90deg, #1a121a, #4a3a4a 40%, #1a121a); }
.f-dark .pouch-strip { background: rgba(255, 61, 154, .18); }
.f-pastel .pouch-tint { background: linear-gradient(170deg, rgba(255, 214, 233, .65), rgba(230, 200, 255, .35) 50%, rgba(255, 230, 240, .6)); mix-blend-mode: soft-light; }
.f-pastel .pouch-body { background: #f1d5e3; }
.f-pastel .crimp { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .75) 0 1.5px, rgba(120, 60, 90, .25) 1.5px 3.5px), linear-gradient(90deg, #c7a3b6, #fbeaf2 35%, #d9b6c8 60%, #fbeaf2 85%, #c7a3b6); }
.f-pastel .pouch-strip { background: rgba(80, 30, 60, .55); }
.pack-card .pack.pouch { width: 140px; font-size: 12px; }
.inv-item .pack.pouch { font-size: 11px; }
.tear-zone .pack.pouch { font-size: 18px; }

/* ------------------------------------------------------------ raspadinha estilo crachá */
.badge-card { --bg: #0d0b0d; --ink: #c6f432; position: relative; aspect-ratio: 100 / 140; border-radius: .7em; background: var(--bg); overflow: hidden; box-shadow: 0 1.4em 2.6em rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); user-select: none; flex: none; }
.badge-card .bc-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.bc-window { position: absolute; left: 12%; right: 12%; top: 19%; height: 46%; border-radius: .55em; overflow: hidden; display: grid; place-items: center; }
.bc-icon { width: 92%; height: 92%; fill: var(--ink); }
.badge-card .bc-title { position: absolute; left: 0; right: 0; top: 67%; text-align: center; font-family: var(--badge); font-style: italic; font-weight: 800; font-size: 2.15em; line-height: 1; color: var(--ink); padding: 0 6%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-card .bc-id { position: absolute; left: 0; right: 0; top: 77.5%; text-align: center; font-family: var(--badge); font-style: italic; font-weight: 600; font-size: .78em; color: var(--ink); opacity: .9; }
.badge-card.m-light .bc-window, .badge-card.m-accent .bc-window { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.badge-card .s-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: .3em; padding: .45em; background: #f6f2f5; }
.badge-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: .55em; }
.badge-card .cell { border-radius: .45em; background: #fff; border: 1px dashed rgba(0, 0, 0, .12); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #1a0f18; font-size: 1.15em; text-align: center; line-height: 1; transition: transform .4s var(--spring), opacity .4s; }
.badge-card .cell small { display: block; font-size: .5em; color: #8d7a88; font-family: var(--body); font-weight: 800; margin-bottom: 2px; }
.badge-card .cell.decoy { color: #b9a8b5; font-size: 1.4em; }
.badge-card .cell.pk { color: var(--pc); font-size: 1.25em; }
.badge-card .cell.pk small { color: #1a0f18; margin: 3px 0 0; font-size: .42em; }
.badge-card .cell.win { background: linear-gradient(180deg, #ffe3f1, #ff9fcf); border: 0; box-shadow: 0 0 0 2px #ff3d9a, 0 0 22px rgba(255, 61, 154, .9); animation: winpop .7s var(--spring) both; }
.badge-card .cell.dimmed { opacity: .35; }
.flip { aspect-ratio: 100 / 140; }
.flip .badge-card { width: 100% !important; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; max-width: 360px; }
.legend .lg { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); color: var(--muted); transition: .3s; }
.legend .lg.pk { color: var(--gold2); }
.legend .lg.hit { background: var(--gold); color: #fff; border-color: transparent; transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 61, 154, .6); }
.how { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; }
.how b { color: var(--text); }
.scratch-prog { width: min(300px, 80vw); height: 6px; border-radius: 99px; background: var(--panel3); overflow: hidden; margin-top: 14px; }
.scratch-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--gold2)); transition: width .2s; }
.hand-hint { position: absolute; left: 50%; top: 45%; font-size: 3em; color: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); pointer-events: none; animation: handmove 1.8s ease-in-out infinite; z-index: 5; }
@keyframes handmove { 0%, 100% { transform: translate(-80%, -20%) rotate(-10deg); } 50% { transform: translate(10%, 10%) rotate(10deg); } }

/* moldura HUD (cantos) inspirada na referência */
.banner::after, .jp-top::after { content: ''; position: absolute; inset: 8px; pointer-events: none; z-index: 1; border-radius: 12px; opacity: .7;
  background: linear-gradient(var(--gold), var(--gold)) top left / 18px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) top left / 2px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 18px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) bottom right / 2px 18px no-repeat; }
.modes a.on { color: #fff; }

/* pacote sem imagem: arte no estilo crachá das raspadinhas */
.pouch.has-gen .pouch-gen { inset: 0; width: 100%; height: 100%; filter: none !important; }
.pouch.has-gen .pouch-name { left: 0; right: 0; bottom: auto; top: 66%; text-align: center; font-family: var(--badge); font-style: italic; font-weight: 800; text-transform: none; font-size: 1.7em; color: var(--c2); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.pouch.has-gen .pouch-name small { font-family: var(--badge); font-style: italic; font-weight: 600; letter-spacing: .02em; font-size: .4em; text-transform: none; color: #fff; opacity: .9; }
.pouch-brand { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: .7em; letter-spacing: .35em; color: rgba(255, 255, 255, .85); }
.pouch.has-gen.f-silver .pouch-tint { opacity: .7; }
.pouch.has-gen.f-gold .pouch-tint { opacity: .45; }

/* vitrine e página do pacote */
.pack-tile .cv { height: 170px; }
.pack-tile .pack.pouch { width: 104px; font-size: 9px; transition: transform .5s var(--spring); }
.pack-tile:hover .pack.pouch { transform: translateY(-6px) rotate(-4deg) scale(1.06); }
.pack-hero { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; padding: 26px; margin-top: 12px; position: relative; overflow: hidden; }
.pack-hero-art { display: grid; place-items: center; position: relative; padding: 10px 0; }
.pack-hero-art::before { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--glow); filter: blur(70px); opacity: .45; }
.pack-hero-art .pack.pouch { width: 210px; font-size: 17px; animation: floaty2 5s ease-in-out infinite; }
@keyframes floaty2 { 50% { transform: translateY(-14px) rotate(2deg); } }
.qty-box { margin-top: 18px; }
.qty-n { font-family: var(--display); font-size: 28px; min-width: 46px; text-align: center; }
.qty-box .btn.on { border-color: var(--gold); color: var(--gold2); }
.count-bars { display: flex; gap: 12px; align-items: flex-end; }
.count-bars .cb { flex: 1; max-width: 110px; text-align: center; }
.count-bars .cb-bar { height: 120px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: flex-end; overflow: hidden; }
.count-bars .cb-bar i { display: block; width: 100%; background: linear-gradient(180deg, var(--gold2), var(--orange)); border-radius: 8px 8px 0 0; }
.count-bars b { display: block; font-family: var(--display); font-size: 20px; margin-top: 6px; }
.count-bars span { font-size: 12px; color: var(--muted); font-weight: 800; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.type-card { display: flex; gap: 16px; padding: 14px; align-items: center; }
.type-card h3 { font-size: 18px; margin: 4px 0; }
.type-card .legend { justify-content: flex-start; margin-top: 10px; }
.type-card .legend .lg { font-size: 11px; padding: 3px 7px; }
@media (max-width: 760px) { .pack-hero { grid-template-columns: 1fr; text-align: center; } .pack-hero .row { justify-content: center; } }

/* roleta de boas-vindas */
.wh-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; text-align: center; font-size: clamp(30px, 6vw, 50px); line-height: 1; background: linear-gradient(180deg, #fff, var(--gold2) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(255, 61, 154, .45)); }
.wh-title small { display: block; font-size: 12px; letter-spacing: .5em; color: var(--gold2); -webkit-text-fill-color: var(--gold2); margin-bottom: 8px; }
.wh { --sz: min(440px, 84vw, calc(100vh - 300px)); position: relative; width: var(--sz); height: var(--sz); }
.wh-rays { position: absolute; inset: -30%; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 61, 154, .14) 0 8deg, transparent 8deg 22deg); mask-image: radial-gradient(circle, #000 30%, transparent 70%); animation: spin 26s linear infinite; pointer-events: none; }
.wh.go .wh-rays { animation-duration: 4s; }
.wh::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: conic-gradient(from 0deg, #ff9fcf, #d01b78, #7b5cff, #ff3d9a, #ffc2e0, #d01b78, #ff9fcf); box-shadow: 0 0 60px rgba(255, 61, 154, .5), inset 0 0 20px rgba(0, 0, 0, .6); }
.wh::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: #120812; box-shadow: inset 0 0 18px rgba(0, 0, 0, .9); }
.wh-leds { position: absolute; inset: -12px; z-index: 2; pointer-events: none; }
.wh-leds i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff, 0 0 18px var(--gold); transform: rotate(var(--a)) translateY(calc(var(--sz) / -2 - 6px)); animation: led 1.2s var(--d) infinite; }
.wh.go .wh-leds i { animation-duration: .35s; }
.wh.won .wh-leds i { animation: led .25s infinite alternate; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.wh-disc { position: absolute; inset: 0; border-radius: 50%; z-index: 1; overflow: hidden; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .15), inset 0 0 50px rgba(0, 0, 0, .55); }
.wh-disc::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .22), transparent 55%); pointer-events: none; }
.wh-line { position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); transform-origin: 50% 100%; transform: rotate(var(--r)); }
.wh-seg { position: absolute; left: 50%; top: 0; width: 30%; height: 50%; margin-left: -15%; transform-origin: 50% 100%; transform: rotate(var(--r)); display: flex; justify-content: center; padding-top: 7%; }
.wh-seg span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .55); transition: transform .4s var(--spring); }
.wh-seg i { font-size: calc(var(--sz) * .075); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.wh-seg b { font-family: var(--display); font-size: calc(var(--sz) * .036); text-transform: uppercase; text-align: center; line-height: 1.05; max-width: 100%; }
.wh-seg.hit span { transform: scale(1.25); filter: drop-shadow(0 0 14px #fff); }
.wh-pointer { position: absolute; left: 50%; top: -34px; width: 44px; margin-left: -22px; z-index: 4; transform-origin: 50% 28%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6)); }
.wh-pointer.flick { animation: flick .14s ease-out; }
@keyframes flick { 40% { transform: rotate(-16deg); } }
.wh-hub { position: absolute; left: 50%; top: 50%; width: 26%; height: 26%; transform: translate(-50%, -50%); z-index: 3; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffc2e0, var(--gold) 50%, var(--orange)); box-shadow: 0 0 0 6px #120812, 0 0 0 9px var(--gold2), 0 10px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 61, 154, .6); color: #fff; font-family: var(--display); font-weight: 700; font-size: calc(var(--sz) * .055); letter-spacing: .06em; animation: hubpulse 1.6s ease-in-out infinite; }
.wh-hub:disabled { cursor: default; }
.wh-hub.spinning { animation: none; }
.wh-hub i { font-size: 1.6em; }
@keyframes hubpulse { 50% { box-shadow: 0 0 0 6px #120812, 0 0 0 9px var(--gold2), 0 10px 30px rgba(0, 0, 0, .6), 0 0 70px rgba(255, 61, 154, .9); transform: translate(-50%, -50%) scale(1.05); } }

/* pacote aberto: raspadinhas viradas para cima, toque para raspar */
.pack-hub { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hub-row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.hub-row.enter .hub-card { animation: hubin .55s var(--spring) both; }
@keyframes hubin { from { opacity: 0; transform: translateY(60px) scale(.85); } }
.hub-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; border-radius: 14px; transition: transform .2s ease, background .2s; }
.hub-card:not(.done):hover { transform: translateY(-6px); background: rgba(255, 61, 154, .08); }
.hub-card .hub-go { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: linear-gradient(180deg, #ff6db3, var(--gold) 55%, var(--orange)); padding: 6px 14px; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%); }
.hub-card.done { cursor: default; }
.hub-card.done .badge-card { filter: grayscale(.65) brightness(.6); }
.hub-res { font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 8px; background: var(--panel3); color: var(--muted); }
.hub-res.win { background: rgba(47, 224, 138, .15); color: #7ff5b8; }
.sc-view { display: flex; flex-direction: column; align-items: center; width: 100%; }
