/* ================================================================ meta: pase de batalla, tienda y cajas (meta.js) */

/* ---------------------------------------------------------------- comunes */
.screen.mt-screen { justify-content: flex-start; gap: 0; padding: 0; overflow: hidden; background: rgba(5,7,16,.74); }
.mt-top { position: relative; z-index: 2; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  padding: 20px 24px 0; min-height: 62px; flex: none; }
.mt-wallet { position: absolute; right: 22px; top: 16px; display: flex; gap: 10px; }
.mt-wallet > span { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 11px; color: #fff; text-shadow: 2px 2px 0 #000;
  background: rgba(0,0,0,.62); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; }
.mt-wallet .mt-w-coins b { color: #ffd84a; font-weight: normal; }
.mt-wallet b { font-weight: normal; }
.mt-wallet svg { width: 18px; height: 18px; flex: none; }
.mt-help { flex: none; font-size: 8px; color: #9fb3e6; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; padding: 1.4vh 12px 1.8vh; text-align: center; }
.mt-key { display: inline-block; font-family: Arial, sans-serif; font-style: normal; font-size: 11px; line-height: 1; padding: 2px 5px;
  border: 2px solid #9fb3e6; color: #fff; vertical-align: middle; }
.mt-price { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mt-price svg { width: 1.3em; height: 1.3em; flex: none; }
.mt-price b { font-weight: normal; }
.mt-badge { position: absolute; top: -9px; right: -9px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 5px; box-sizing: border-box; font-size: 8px; font-style: normal; line-height: 1; color: #fff; background: #ff3b3b; text-shadow: 1px 1px 0 #000;
  box-shadow: 0 0 0 2px #000; animation: mt-badge 1.2s ease-in-out infinite; }
.mt-badge:empty { display: none; }
@keyframes mt-badge { 50% { transform: scale(1.18); } }
[data-meta-badge] { position: relative; }
.mt-chip[hidden] { display: none; }
.mt-shake { animation: mt-shake .4s; }
@keyframes mt-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes mt-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* avatar con marco (cara del luchador) */
.mt-av { --c1: #2d3b66; --c2: #121a33; position: relative; display: inline-block; line-height: 0; padding: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #000, 0 0 12px color-mix(in srgb, var(--c1) 55%, transparent); }
.mt-av img { width: 48px; height: 36px; display: block; image-rendering: pixelated; background: #05070f; box-shadow: 0 0 0 2px rgba(0,0,0,.55); }
.mt-av.fa-pulse { animation: fa-pulse 1.1s ease-in-out infinite; }
.mt-av.fa-rainbow { background: linear-gradient(135deg, #ff4f4f, #ffd84a, #5fe08a, #4fd1ff, #c084fc, #ff4f4f); background-size: 400% 400%; animation: fa-rainbow 3s linear infinite; }
@keyframes fa-pulse { 50% { box-shadow: 0 0 0 2px #000, 0 0 22px var(--c1), 0 0 6px var(--c2) inset; } }
@keyframes fa-rainbow { to { background-position: 400% 0; } }

/* iconos de premios: tamaño con --ico según dónde salgan */
.rw-coins { display: inline-flex; align-items: flex-end; }
.rw-coins svg { width: var(--ico, 48px); height: var(--ico, 48px); filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }
.rw-coins svg + svg { margin-left: calc(var(--ico, 48px) * -.5); }
.rw-coins svg:nth-child(2) { transform: translateY(-22%); }
.rw-coins svg:nth-child(3) { transform: translateY(6%); }
.rw-box { position: relative; display: inline-block; line-height: 0; }
.rw-box svg { width: calc(var(--ico, 48px) * 1.25); height: auto; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.6)); }
.rw-box em, .cf-ico em { position: absolute; right: -10px; bottom: -6px; font-style: normal; font-size: 10px; line-height: 1; color: #1a1a1a; background: #ffd84a; padding: 3px 4px; box-shadow: 0 0 0 2px #000; }
.rw-av img { width: calc(var(--ico, 48px) * 1.15); height: calc(var(--ico, 48px) * .86); }
.rw-char { width: calc(var(--ico, 48px) * 2.05); max-width: 100%; image-rendering: pixelated; display: block; box-shadow: 0 0 0 2px #000; }
.ico-star { width: var(--ico, 48px); height: var(--ico, 48px); }

/* ---------------------------------------------------------------- ventanas (confirmar, premios) */
.mt-modal { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(3,5,14,.8); animation: mt-fade .18s; overflow: hidden; }
.mt-modal.out { opacity: 0; transition: opacity .18s; }
@keyframes mt-fade { from { opacity: 0; } }
.mt-modal-box { position: relative; box-sizing: border-box; min-width: min(460px, 92vw); max-width: min(980px, 94vw); max-height: 88vh; padding: 22px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; background: linear-gradient(#1a2552, #0d1330);
  border: 2px solid var(--rc, #ffd84a); box-shadow: 0 0 0 3px #000, 0 10px 0 #000, 0 0 40px color-mix(in srgb, var(--rc, #ffd84a) 25%, transparent); animation: mt-pop-in .3s cubic-bezier(.3,1.5,.5,1); }
@keyframes mt-pop-in { from { transform: scale(.6); opacity: 0; } }
.mt-modal h3 { margin: 0; font-weight: normal; font-size: clamp(12px, 1.3vw, 18px); line-height: 1.5; letter-spacing: 2px; color: #ffd84a; text-align: center;
  text-shadow: 2px 2px 0 #b3261e, 4px 4px 0 #000; }
.mt-modal-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.mt-modal-btns .big-btn { font-size: 12px; padding: 13px 24px; }
.cf-row { display: flex; align-items: center; gap: 22px; }
.cf-ico { position: relative; line-height: 0; }
.cf-ico svg { width: 84px; height: auto; filter: drop-shadow(3px 4px 0 rgba(0,0,0,.6)); }
.cf-card { width: 180px; image-rendering: pixelated; box-shadow: 0 0 0 2px #000, 0 0 0 4px #ffb547, 0 0 24px rgba(255,181,71,.4); }
.cf-txt { display: flex; flex-direction: column; gap: 12px; font-size: 9px; color: #c9d3ee; line-height: 1.6; }
.cf-txt b { font-weight: normal; font-size: 14px; color: #fff; text-shadow: 2px 2px 0 #000; }
.cf-txt .mt-price { font-size: 16px; color: #ffd84a; text-shadow: 2px 2px 0 #000; }
.cf-txt em { font-style: normal; }
.cf-note { margin: 0; max-width: 560px; font-size: 8px; line-height: 2; color: #9fb3e6; text-align: center; padding: 10px 14px; background: rgba(0,0,0,.35); border: 1px dashed #2d3b66; }

/* premios conseguidos */
.mt-pop .mt-modal-box { background: none; border: 0; box-shadow: none; max-width: 96vw; overflow: visible; }
.mt-pop-rays { position: absolute; left: 50%; top: 45%; width: 150vmax; height: 150vmax; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 34%, transparent) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 14%, transparent 38%); mask: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 14%, transparent 38%);
  animation: mt-spin 18s linear infinite; }
.mt-pop h3 { font-size: clamp(18px, 2.4vw, 34px); animation: mt-title 1.4s ease-in-out infinite; }
@keyframes mt-title { 50% { transform: scale(1.06); text-shadow: 2px 2px 0 #b3261e, 4px 4px 0 #000, 0 0 24px rgba(255,216,74,.8); } }
.mt-pop-items { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; max-width: 92vw; }
.mt-pop.many .mt-pop-items { max-height: 60vh; overflow-y: auto; padding: 10px; }
.mt-pop-item { --ico: clamp(48px, 4.6vw, 76px); position: relative; width: clamp(140px, 12vw, 200px); box-sizing: border-box; padding: 14px 10px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 30%, #141b3d), #0b1029 80%); border: 2px solid var(--rc);
  box-shadow: 0 0 0 2px #000, 0 0 26px color-mix(in srgb, var(--rc) 55%, transparent); animation: mt-item-in .55s cubic-bezier(.3,1.6,.5,1) var(--d) both; }
.mt-pop.many .mt-pop-item { --ico: 40px; width: 132px; padding: 10px 6px; }
@keyframes mt-item-in { from { transform: translateY(40px) scale(.2); opacity: 0; } }
.mt-pop-ico { min-height: calc(var(--ico) * 1.1); display: flex; align-items: center; justify-content: center; }
.mt-pop-item b { font-weight: normal; font-size: 10px; color: #fff; text-shadow: 2px 2px 0 #000; line-height: 1.5; }
.mt-pop-item span { font-size: 7px; color: var(--rc); letter-spacing: 1px; }
.mt-pop-rar { font-style: normal; font-size: 7px; color: #000; background: var(--rc); padding: 3px 5px; }
.mt-pop-item em { font-style: normal; font-size: 7px; color: #ffd84a; display: flex; align-items: center; gap: 4px; }
.mt-pop-item em svg { width: 10px; height: 10px; }
.mt-pop-item.rar-legendario { animation: mt-item-in .55s cubic-bezier(.3,1.6,.5,1) var(--d) both, mt-leg 1.6s ease-in-out infinite; }
@keyframes mt-leg { 50% { box-shadow: 0 0 0 2px #000, 0 0 44px #ffd84a, 0 0 90px rgba(255,181,71,.5); } }

/* ================================================================ PASE DE BATALLA */
.ps-head { flex: none; width: min(1500px, 92vw); box-sizing: border-box; margin: 1.4vh auto 0; padding: 14px 20px; display: flex; align-items: center; gap: clamp(14px, 2vw, 34px);
  background: rgba(0,0,0,.55); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; }
.ps-lv { flex: none; width: clamp(74px, 6.4vw, 112px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #1a1a1a; background: radial-gradient(circle at 50% 30%, #fff8b0, #ffd84a 45%, #c79a00);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.ps-lv span { font-size: clamp(6px, .5vw, 8px); letter-spacing: 1px; }
.ps-lv b { font-weight: normal; font-size: clamp(20px, 2.3vw, 38px); }
.ps-xp { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ps-xp-top { display: flex; justify-content: space-between; gap: 10px; font-size: clamp(9px, .75vw, 12px); letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.ps-xp-top span { color: #9fb3e6; }
.ps-xp-top em { font-style: normal; color: #ffd84a; }
.ps-bar { height: clamp(14px, 1.4vh, 20px); background: #141b3a; border: 3px solid #000; box-shadow: 0 0 0 2px #2d3b66; overflow: hidden; }
.ps-bar i { display: block; height: 100%; width: 0; transition: width .6s cubic-bezier(.3,1,.5,1);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px), linear-gradient(#fff07a, #ffd84a 55%, #c79a00);
  background-size: 34px 100%, 100% 100%; animation: ps-stripes 1s linear infinite; }
@keyframes ps-stripes { to { background-position: 34px 0, 0 0; } }
.ps-xp-hint { font-size: clamp(7px, .55vw, 9px); color: #9fb3e6; letter-spacing: 1px; line-height: 1.6; }
.ps-claimall { position: relative; flex: none; font-size: clamp(10px, .85vw, 14px) !important; padding: 16px 22px !important; }
.ps-claimall:disabled { opacity: .35; cursor: default; transform: none !important; background: #9fb3e6; box-shadow: 0 6px 0 #4c5a8a, 0 10px 0 #000; }
.ps-claimall.ready { animation: ps-ready 1.2s ease-in-out infinite; }
@keyframes ps-ready { 50% { box-shadow: 0 6px 0 #b38f00, 0 10px 0 #000, 0 0 28px rgba(255,216,74,.85); } }

.ps-track-wrap { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; }
.ps-track { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; cursor: grab; user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  scrollbar-width: thin; scrollbar-color: #ffd84a #121a33; }
.ps-track.dragging { cursor: grabbing; }
.ps-track::-webkit-scrollbar { height: 10px; }
.ps-track::-webkit-scrollbar-track { background: #121a33; }
.ps-track::-webkit-scrollbar-thumb { background: #ffd84a; border: 2px solid #121a33; }
.ps-rail { display: flex; align-items: flex-end; padding: 0 7vw; }
.ps-cell { --cell: clamp(148px, 10.6vw, 206px); flex: none; width: var(--cell); display: flex; flex-direction: column; align-items: center; }
.ps-card { --rc: #9fb3e6; --ico: clamp(42px, 3.6vw, 66px); position: relative; box-sizing: border-box; width: calc(var(--cell) - 18px); height: clamp(190px, 32vh, 360px);
  padding: 12px 8px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 20%, #121a33), #0a0f22 78%);
  border: 2px solid color-mix(in srgb, var(--rc) 55%, #2d3b66); box-shadow: 0 0 0 2px #000; transition: transform .14s, box-shadow .14s; }
.ps-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rc); }
.ps-card:hover { transform: translateY(-4px); }
.ps-cell.big .ps-card { border-width: 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 34%, #1c1430), #0a0f22 80%); }
.ps-cell.big .ps-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,230,160,.18) 50%, transparent 65%); background-size: 250% 100%; animation: ps-sheen 3s linear infinite; }
.ps-num { align-self: flex-start; font-size: clamp(11px, 1vw, 16px); color: #fff; text-shadow: 2px 2px 0 #000; padding: 2px 4px; }
.ps-ico { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; transition: filter .2s, opacity .2s; }
.ps-name { font-size: clamp(8px, .68vw, 11px); color: #fff; text-align: center; line-height: 1.5; text-shadow: 2px 2px 0 #000; padding: 0 4px; }
.ps-sub { font-size: clamp(6px, .48vw, 8px); color: var(--rc); letter-spacing: 1px; text-align: center; }
.ps-st { width: calc(100% + 16px); margin-top: 6px; padding: 9px 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: clamp(7px, .52vw, 9px); color: #9fb3e6; background: rgba(0,0,0,.55); border-top: 2px solid rgba(0,0,0,.6); letter-spacing: 1px; }
.ps-st svg { width: 12px; height: auto; }
.ps-card.start-st { --rc: #ffd84a; }
.ps-card.start-st .ps-st, .ps-card.claimed .ps-st { color: #7dff8a; }
.ps-card.locked { cursor: default; }
.ps-card.locked:hover { transform: none; }
.ps-card.locked .ps-ico, .ps-card.locked .ps-name { filter: grayscale(.85) brightness(.5); }
.ps-card.locked { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 8%, #0e1428), #080b18 78%); }
.ps-card.claimed .ps-ico { opacity: .5; filter: saturate(.6); }
.ps-card.claimed { cursor: default; }
.ps-card.claimed:hover { transform: none; }
.ps-card.ready { border-color: #ffd84a; transform: translateY(-8px); animation: ps-pulse 1.1s ease-in-out infinite; }
.ps-card.ready:hover { transform: translateY(-12px) scale(1.03); }
.ps-card.ready .ps-st { color: #1a1a1a; background: linear-gradient(#fff07a, #ffd84a); text-shadow: none; animation: ps-blink 1.1s steps(2) infinite; }
.ps-card.ready::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 250% 100%; animation: ps-sheen 1.8s linear infinite; }
@keyframes ps-pulse { 50% { box-shadow: 0 0 0 2px #000, 0 0 22px rgba(255,216,74,.85), 0 0 50px rgba(255,216,74,.35); } }
@keyframes ps-sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes ps-blink { 50% { background: #fff8c0; } }
.ps-cell.focus .ps-card { outline: 3px solid #fff; outline-offset: 4px; }
.ps-card.nope { animation: mt-shake .4s; }
.ps-card.just { animation: ps-just .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes ps-just { 0% { transform: scale(1); } 30% { transform: scale(1.15); box-shadow: 0 0 0 2px #000, 0 0 60px #fff; } 100% { transform: scale(1); } }
.ps-node { position: relative; width: 100%; height: 34px; margin-top: 14px; }
.ps-node::before, .ps-node::after { content: ""; position: absolute; top: 50%; height: 6px; margin-top: -3px; background: #1a2244; box-shadow: 0 2px 0 #000, 0 -2px 0 #000; }
.ps-node::before { left: 0; right: 50%; }
.ps-node::after { left: 50%; right: 0; }
.ps-cell:first-child .ps-node::before, .ps-cell:last-child .ps-node::after { display: none; }
.ps-cell.reached .ps-node::before, .ps-cell.next-reached .ps-node::after { background: linear-gradient(#fff07a, #ffd84a 60%, #c79a00); }
.ps-node i { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; transform: rotate(45deg); z-index: 1;
  background: #2d3b66; box-shadow: 0 0 0 2px #000; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.ps-node i svg { display: none; width: 10px; height: auto; transform: rotate(-45deg); }
.ps-cell.reached .ps-node i { background: #ffd84a; }
.ps-cell.cur .ps-node i { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #fff; animation: ps-cur 1s ease-in-out infinite; }
@keyframes ps-cur { 50% { box-shadow: 0 0 0 2px #000, 0 0 18px #fff, 0 0 30px #ffd84a; } }
.ps-you { display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; white-space: nowrap; font-weight: normal;
  font-size: 7px; color: #1a1a1a; background: #fff; padding: 4px 6px; box-shadow: 0 0 0 2px #000; }
.ps-cell.cur .ps-you { display: block; }
.ps-arrow { position: absolute; top: 44%; z-index: 3; width: 44px; height: 84px; transform: translateY(-50%); cursor: pointer; padding: 0;
  background: rgba(0,0,0,.72); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; transition: opacity .2s, background .1s; }
.ps-arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 20px; margin: -10px 0 0 -7px; background: #ffd84a;
  clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.ps-arrow.r::before { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ps-arrow.l { left: 12px; }
.ps-arrow.r { right: 12px; }
.ps-arrow:hover, .ps-arrow:focus-visible { background: #ffd84a; outline: none; }
.ps-arrow:hover::before, .ps-arrow:focus-visible::before { background: #1a1a1a; }
.ps-arrow.off { opacity: .2; pointer-events: none; }

/* ================================================================ TIENDA */
.sh-tabs { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 1.2vh; padding: 0 12px; }
.sh-tabs button { font: inherit; font-size: clamp(8px, .72vw, 12px); letter-spacing: 2px; min-height: 44px; padding: 0 20px; cursor: pointer; color: #c9d3ee;
  background: rgba(0,0,0,.55); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 #000; }
.sh-tabs button:hover, .sh-tabs button:focus-visible { color: #fff; border-color: #9fb3e6; outline: none; }
.sh-tabs button.on { color: #1a1a1a; background: #ffd84a; border-color: #b38f00; text-shadow: none; }
.sh-body { position: relative; flex: 1; min-height: 0; width: min(1500px, 94vw); margin-top: 1.4vh; overflow-y: auto; overflow-x: hidden; padding: 6px 6px 18px; box-sizing: border-box;
  scrollbar-width: thin; scrollbar-color: #2d3b66 transparent; -webkit-overflow-scrolling: touch; }
.sh-pane { display: none; flex-direction: column; gap: 16px; }
.sh-pane.on { display: flex; }
.sh-offer, .sh-info, .sh-compare, .sh-profile, .sh-prices { background: rgba(0,0,0,.55); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; box-sizing: border-box; }
.sh-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sh-sec-head h3 { margin: 0; font-weight: normal; font-size: clamp(11px, 1vw, 15px); color: #ffd84a; letter-spacing: 2px; text-shadow: 2px 2px 0 #b3261e, 3px 3px 0 #000; }
.sh-sec-head span { font-size: 8px; color: #9fb3e6; letter-spacing: 1px; }
.sh-timer { color: #ff9ad8 !important; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(132px, 10.5vw, 190px), 1fr)); gap: 12px; }
.sh-offers-day { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 260px), 1fr)); }
/* tarjeta de objeto suelto */
.sh-item { --rc: #9fb3e6; --ico: clamp(40px, 3.4vw, 60px); font: inherit; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 8px 0;
  cursor: pointer; color: #fff; text-align: center; overflow: hidden; min-height: 170px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, #121a33), #0a0f22 80%); border: 2px solid color-mix(in srgb, var(--rc) 60%, #2d3b66);
  box-shadow: 0 0 0 2px #000; transition: transform .12s, border-color .12s; }
.sh-item:hover, .sh-item:focus-visible { transform: translateY(-3px); border-color: var(--rc); outline: none; }
.sh-item.offer { min-height: 210px; --ico: clamp(48px, 4.2vw, 74px); border-width: 3px; }
.sh-item.offer::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); background-size: 250% 100%; animation: ps-sheen 2.6s linear infinite; }
.sh-rar { position: absolute; top: 0; left: 0; right: 0; font-style: normal; font-size: 7px; letter-spacing: 1px; color: #000; background: var(--rc); padding: 4px 0; }
.sh-off { position: absolute; z-index: 2; font-style: normal; font-size: 10px; color: #fff; background: #ff3b3b; padding: 5px 6px; box-shadow: 0 0 0 2px #000; text-shadow: 1px 1px 0 #000; }
.sh-item .sh-off { top: 22px; right: 4px; transform: rotate(6deg); }
.sh-item-ico { flex: 1; min-height: calc(var(--ico) * 1.05); display: flex; align-items: center; justify-content: center; width: 100%; }
.sh-item b { font-weight: normal; font-size: clamp(8px, .62vw, 10px); line-height: 1.5; text-shadow: 2px 2px 0 #000; }
.sh-item-sub { font-size: 7px; color: var(--rc); letter-spacing: 1px; }
.sh-foot { width: calc(100% + 16px); min-height: 34px; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 9px;
  background: rgba(0,0,0,.55); border-top: 2px solid rgba(0,0,0,.6); }
.sh-foot svg { width: 12px; height: auto; }
.sh-foot .mt-price svg { width: 14px; height: 14px; }
.sh-foot.buy { color: #ffd84a; }
.sh-foot.buy.poor { color: #ff6a5a; }
.sh-foot s { color: #8890aa; font-size: 7px; }
.sh-foot.own { color: #1a1a1a; background: linear-gradient(#b0e4ff, #7fd0ff); }
.sh-foot.on { color: #7dff8a; }
.sh-item.on { border-color: #7dff8a; box-shadow: 0 0 0 2px #000, 0 0 16px rgba(125,255,138,.35); }
.sh-item:not(.own) .sh-item-ico .mt-av img { filter: grayscale(.4) brightness(.8); }
.sh-item[data-t="char"]:not(.own) .rw-char { filter: grayscale(.4) brightness(.8); }
/* packs y ofertas de cajas */
.sh-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.sh-offer { position: relative; padding: 14px 14px 18px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,216,74,.2), transparent 55%), linear-gradient(#1e2a64, #0c1230); }
.sh-offer.pack { border-color: #c084fc; background: radial-gradient(ellipse at 50% 30%, rgba(192,132,252,.28), transparent 55%), linear-gradient(#271d5e, #0c1230); }
.sh-offer.starter { border-color: #ffb547; background: radial-gradient(ellipse at 50% 30%, rgba(255,181,71,.3), transparent 55%), linear-gradient(#3a2a1a, #120d18); }
.sh-offer h3 { margin: 0; font-weight: normal; font-size: clamp(10px, .9vw, 14px); color: #fff; text-shadow: 2px 2px 0 #000; letter-spacing: 2px; }
.sh-offer p { margin: 0; font-size: 7px; line-height: 1.8; color: #9fb3e6; letter-spacing: 1px; }
.sh-offer .sh-off { top: 10px; left: 8px; transform: rotate(-6deg); }
.sh-old { font-size: 9px; color: #8890aa; }
.sh-old .mt-price svg { width: 10px; height: 10px; opacity: .6; }
.sh-offer .big-btn { margin-top: auto; font-size: clamp(11px, .95vw, 15px); min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; }
.sh-offer .big-btn:disabled { background: #2a8a3a; color: #fff; box-shadow: 0 6px 0 #14501f, 0 10px 0 #000; cursor: default; transform: none; }
.sh-offer .big-btn svg { width: 14px; height: auto; }
.sh-stage { isolation: isolate; position: relative; height: clamp(120px, 18vh, 190px); width: 100%; display: flex; align-items: center; justify-content: center; }
.sh-ribbon { position: absolute; top: 10px; right: 8px; z-index: 2; font-style: normal; font-size: 13px; color: #fff; background: #c084fc; padding: 6px 10px; box-shadow: 0 0 0 2px #000, 3px 3px 0 2px #000;
  transform: rotate(8deg); text-shadow: 2px 2px 0 #000; }
.sh-ribbon.gold { background: #ffb547; color: #1a1a1a; text-shadow: none; font-size: 8px; }
.big-btn.poor { filter: saturate(.25) brightness(.8); }
.big-btn.poor .mt-price b { color: #b3261e; }
.sh-info { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.sh-info h3 { margin: 0; font-weight: normal; font-size: 11px; color: #ffd84a; letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.sh-info p { margin: 0; font-size: 8px; line-height: 2; color: #c9d3ee; }
.sh-odds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sh-odds li { display: grid; grid-template-columns: minmax(96px, 9vw) 44px 1fr; align-items: center; gap: 10px; padding: 8px 10px; font-size: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%); border-left: 4px solid var(--rc); }
.sh-odds b { font-weight: normal; color: var(--rc); text-shadow: 2px 2px 0 #000; }
.sh-odds span { color: #fff; }
.sh-odds em { font-style: normal; color: #9fb3e6; line-height: 1.6; }
.sh-open { position: relative; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; font-size: 13px !important; min-height: 48px; padding: 0 22px !important;
  background: #7fd0ff; box-shadow: 0 6px 0 #2a7aa8, 0 10px 0 #000; }
.sh-open:hover, .sh-open:focus { background: #b0e4ff; }
.sh-open svg { width: 28px; height: auto; }
.sh-open.has { animation: ps-ready 1.2s ease-in-out infinite; }
.sh-msg { position: absolute; left: 50%; bottom: calc(3.4vh + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30; font-size: 9px; padding: 12px 18px; max-width: 92vw; box-sizing: border-box;
  opacity: 0; pointer-events: none; text-align: center; line-height: 1.6;
  background: #0b1024; border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000, 0 6px 0 #000; transition: opacity .2s; display: flex; align-items: center; gap: 8px; }
.sh-msg.show { opacity: 1; }
.sh-msg.show.link { pointer-events: auto; cursor: pointer; }
.sh-msg.err { color: #ff6a5a; border-color: #b3261e; }
.sh-msg.ok { color: #7dff8a; border-color: #2a8a3a; }
.sh-msg svg { width: 20px; height: auto; }
.sh-msg u { text-decoration: none; color: #ffd84a; }
/* luchadores */
.sh-compare { display: flex; align-items: stretch; gap: 14px; padding: 12px 16px; flex-wrap: wrap; }
.sh-compare .cmp { display: flex; flex-direction: column; gap: 8px; justify-content: center; padding: 8px 14px; }
.sh-compare .cmp > span { font-size: 8px; color: #9fb3e6; letter-spacing: 2px; }
.sh-compare .cmp b { font-weight: normal; font-size: clamp(14px, 1.3vw, 20px); color: #ffd84a; text-shadow: 2px 2px 0 #000; }
.sh-compare .cmp em { font-style: normal; font-size: 7px; color: #c9d3ee; line-height: 1.7; }
.sh-compare .cmp.a { flex: 1 1 220px; background: linear-gradient(90deg, rgba(255,181,71,.18), transparent); border-left: 4px solid #ffb547; }
.sh-compare .cmp.a b { font-size: clamp(18px, 1.8vw, 28px); color: #ffb547; }
.sh-compare .cmp.b { flex: 1 1 220px; background: linear-gradient(90deg, rgba(74,168,255,.16), transparent); border-left: 4px solid #4aa8ff; }
.sh-compare .cmp.vs { font-size: 14px; color: #ff6b6b; text-shadow: 2px 2px 0 #000; align-self: center; }
.sh-compare .cmp.eq { font-size: 10px; color: #1a1a1a; background: #ffd84a; padding: 10px 14px; box-shadow: 0 0 0 2px #000; align-self: center; line-height: 1.6; text-align: center; }
.sh-count { font-size: 9px; color: #9fb3e6; letter-spacing: 1px; }
.sh-count b { font-weight: normal; color: #7dff8a; }
.sh-chars { display: flex; flex-direction: column; gap: 14px; }
.sh-cat h4 { margin: 0 0 8px; font-weight: normal; font-size: 10px; letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.sh-cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 9.4vw, 170px), 1fr)); gap: 12px; }
.sh-char { font: inherit; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 8px 10px; cursor: pointer; color: #fff;
  background: #0b1024; border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; transition: transform .12s, border-color .12s; }
.sh-char img { width: 100%; aspect-ratio: 3 / 2; image-rendering: pixelated; display: block; filter: grayscale(.75) brightness(.55); }
.sh-char b { font-weight: normal; font-size: 8px; text-shadow: 2px 2px 0 #000; }
.sh-tag { display: flex; align-items: center; gap: 6px; font-size: 8px; color: #ffd84a; min-height: 14px; }
.sh-tag svg { width: 10px; height: auto; }
.sh-tag .mt-price svg { width: 12px; height: 12px; }
.sh-char:hover, .sh-char:focus-visible { transform: translateY(-3px); border-color: #ffb547; outline: none; }
.sh-char:hover img, .sh-char:focus-visible img { filter: grayscale(.2) brightness(.85); }
.sh-char.poor .sh-tag { color: #ff6a5a; }
.sh-char.own { border-color: #2a8a3a; cursor: default; }
.sh-char.own img { filter: none; }
.sh-char.own .sh-tag { color: #7dff8a; }
.sh-char.own:hover { transform: none; border-color: #2a8a3a; }
/* avatares y marcos: perfil y precios por rareza */
.sh-profile { display: flex; align-items: center; gap: 18px; padding: 12px 16px; flex-wrap: wrap; }
.sh-profile .mt-av { padding: 6px; }
.sh-profile .mt-av img { width: 80px; height: 60px; }
.sh-profile div { display: flex; flex-direction: column; gap: 8px; }
.sh-profile b { font-weight: normal; font-size: 14px; color: #fff; text-shadow: 2px 2px 0 #000; }
.sh-profile span { font-size: 9px; color: #9fb3e6; }
.sh-profile span i { font-style: normal; }
.sh-profile em { font-style: normal; font-size: 7px; color: #6a789e; }
.sh-profile p { margin: 0 0 0 auto; max-width: 420px; font-size: 7px; line-height: 2; color: #9fb3e6; }
.sh-prices { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 14px; font-size: 8px; }
.sh-prices > span { display: flex; align-items: center; gap: 8px; }
.sh-prices b { font-weight: normal; color: var(--rc, #fff); }
.sh-prices .mt-price { color: #ffd84a; }
.sh-prices .mt-price svg { width: 12px; height: 12px; }
.sh-prices .cmp-note { margin-left: auto; color: #ffb547; }

/* ================================================================ CAJA DE BOTÍN 3D (estilo caja de botín de Overwatch) */
.lb { --S: 160px; position: relative; width: var(--S); height: var(--S); perspective: calc(var(--S) * 5.5); perspective-origin: 50% 30%; }
.lb.main { --S: min(29vh, 22vw); cursor: pointer; }
.lb.mini { --S: clamp(64px, 8.6vh, 104px); }
.lb.stack { position: absolute; }
.lb.stack.s0 { transform: translate(-46%, 22%); }
.lb.stack.s1 { transform: translate(46%, 22%); }
.lb.stack.s2 { transform: translate(0, -34%); z-index: -1; }
.lb.stack .lb-float { animation-delay: -1s; }
.lb.stack.s1 .lb-float { animation-delay: -2.1s; }
.lb-float, .lb-shake, .lb-rot { position: absolute; inset: 0; transform-style: preserve-3d; }
.lb-float { animation: lb-float 3.4s ease-in-out infinite; }
.lb-rot { transform: rotateX(-24deg) rotateY(30deg); animation: lb-yaw 8s ease-in-out infinite; }
@keyframes lb-float { 50% { transform: translateY(calc(var(--S) * -.06)); } }
@keyframes lb-yaw { 0%, 100% { transform: rotateX(-24deg) rotateY(24deg); } 50% { transform: rotateX(-20deg) rotateY(37deg); } }
.lb-shadow { position: absolute; z-index: -1; left: 2%; right: 2%; bottom: -34%; height: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,10,.6), rgba(0,0,10,.25) 60%, transparent); animation: lb-shadow 3.4s ease-in-out infinite; }
@keyframes lb-shadow { 50% { transform: scale(.86); opacity: .7; } }
.lb-part { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.lb-body { transform: translateY(calc(var(--S) * .2)); }
.lb-lid { transform: translateY(calc(var(--S) * -.25)); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.lb-f { position: absolute; left: 0; top: 0; box-sizing: border-box; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lb-f > i, .lb-f > div { position: absolute; display: block; }
.lb-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: rgba(10,14,40,var(--sh, 0)); }
.lb-m0 { --sh: 0; } .lb-m1 { --sh: .45; } .lb-m2 { --sh: .6; } .lb-m3 { --sh: .22; }
.lb-c0 { --sh: .2; } .lb-c1 { --sh: .55; } .lb-c2 { --sh: .6; } .lb-c3 { --sh: .1; }
/* cuerpo: gris metálico con paneles y el cierre azul */
.lb-body .lb-side { background: linear-gradient(180deg, #a2a7b0 0%, #868b94 45%, #6c7078 85%, #50535a 100%); }
.lb-body .lb-main { background: linear-gradient(90deg, rgba(255,255,255,.1), transparent 18%, transparent 82%, rgba(0,0,0,.12)),
    linear-gradient(180deg, #a6abb4 0%, #8b9099 40%, #737780 80%, #575a61 100%);
  box-shadow: inset 0 calc(var(--S) * .014) 0 rgba(255,255,255,.28), inset 0 calc(var(--S) * -.022) 0 rgba(0,0,0,.35); }
.lb-body .lb-corner { background: linear-gradient(180deg, #8f949d, #6b6f77 60%, #4b4e55); box-shadow: inset calc(var(--S) * .008) 0 0 rgba(255,255,255,.18), inset calc(var(--S) * -.008) 0 0 rgba(0,0,0,.3); }
.lb-seam { top: 5%; bottom: 7%; width: calc(var(--S) * .012); background: #44474f; box-shadow: calc(var(--S) * .006) 0 0 rgba(255,255,255,.22); }
.lb-seam.l { left: 29%; } .lb-seam.r { right: 29%; }
.lb-latch { left: 32%; width: 36%; top: -3%; bottom: 4%; border-radius: 0 0 calc(var(--S) * .03) calc(var(--S) * .03);
  background: linear-gradient(90deg, #13598c 0%, #2f9fdc 16%, #57c3f3 42%, #44b2ea 62%, #2384c4 84%, #114e7c 100%);
  box-shadow: inset 0 0 0 calc(var(--S) * .006) #0d4470, inset 0 calc(var(--S) * -.018) 0 rgba(0,0,0,.25), 0 0 calc(var(--S) * .02) rgba(0,0,0,.4); }
.lb-tab { left: 13%; right: 13%; top: 11%; height: 13%; border-radius: calc(var(--S) * .012);
  background: linear-gradient(180deg, #ffc061 0%, #ff8a1f 55%, #d45f00 100%); box-shadow: 0 calc(var(--S) * .01) 0 rgba(0,0,0,.35), inset 0 calc(var(--S) * .006) 0 rgba(255,255,255,.4); }
.lb-grill { left: 25%; right: 25%; top: 36%; height: 30%; border-radius: calc(var(--S) * .01);
  background: repeating-linear-gradient(180deg, #0b3a5f 0 20%, #2a8fcb 20% 36%); box-shadow: inset 0 0 0 calc(var(--S) * .006) #0d4470; }
.lb-plate { left: 22%; right: 22%; top: 76%; height: 8%; border-radius: calc(var(--S) * .006); box-shadow: inset 0 0 0 calc(var(--S) * .005) rgba(10,60,100,.8); }
.lb-bolt { bottom: 13%; width: calc(var(--S) * .028); height: calc(var(--S) * .028); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e4e7ec, #6c7078 70%); box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.lb-bolt.l { left: 13%; } .lb-bolt.r { right: 13%; }
.lb-arrow { right: 8%; bottom: 14%; width: calc(var(--S) * .008); height: 16%; background: #3a3d44; }
.lb-arrow::before { content: ""; position: absolute; left: 50%; top: -20%; width: calc(var(--S) * .03); height: calc(var(--S) * .03); transform: translateX(-50%);
  background: #3a3d44; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.lb-foot { left: -10%; right: -10%; bottom: 0; height: 22%; background: linear-gradient(180deg, #5a5e66, #3e4148); box-shadow: inset 0 calc(var(--S) * .008) 0 rgba(255,255,255,.25); }
.lb-body .lb-top { background: radial-gradient(circle, #fffef4 0%, #fff0b0 35%, #ffc94a 70%, #a06a10 100%); }
.lb-body .lb-bottom { background: #24262b; }
/* tapa: blanca perla, redondeada, con emblema y grapas */
.lb-lid .lb-side { background: linear-gradient(180deg, #ffffff 0%, #f6f3fa 30%, #e6e1ee 70%, #c5bfd2 92%, #9e97ae 100%); }
.lb-lid .lb-main { box-shadow: inset 0 calc(var(--S) * .02) calc(var(--S) * .01) rgba(255,255,255,.9); }
.lb-lid .lb-corner { background: linear-gradient(180deg, #fbf9fd 0%, #e9e4f0 35%, #d6d0e0 75%, #a8a1b8 100%);
  box-shadow: inset calc(var(--S) * .01) 0 calc(var(--S) * .012) rgba(255,255,255,.7), inset calc(var(--S) * -.01) 0 calc(var(--S) * .012) rgba(120,110,140,.25); }
.lb-rim { left: 0; right: 0; bottom: 0; height: 9%; background: linear-gradient(180deg, #b7b0c5, #8a8399); }
.lb-tick { width: calc(var(--S) * .032); height: calc(var(--S) * .008); background: #9a93aa; border-radius: 2px; transform: rotate(-35deg); }
.lb-tick.a { left: 9%; bottom: 26%; } .lb-tick.b { right: 24%; bottom: 30%; transform: rotate(35deg); }
.lb-code { right: 6%; top: 24%; display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--S) * .012); }
.lb-bars { display: block; width: calc(var(--S) * .17); height: calc(var(--S) * .035);
  background: repeating-linear-gradient(90deg, #2c2c34 0 6%, transparent 6% 9%, #2c2c34 9% 11%, transparent 11% 15%, #2c2c34 15% 20%, transparent 20% 23%); }
.lb-code b { font-weight: normal; font-size: calc(var(--S) * .07); line-height: 1; color: #33333c; }
.lb-lid .lb-top { background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f7f4fa 45%, #e3dde9 78%, #c9c2d4 100%);
  box-shadow: inset 0 0 calc(var(--S) * .06) rgba(120,110,150,.45); }
.lb-emblem { left: 32%; top: 32%; width: 36%; height: 36%; border-radius: 50%;
  background: radial-gradient(circle, #8f96a2 0 40%, #626874 41% 52%, #b9bec8 53% 62%, #7a808b 63% 100%);
  box-shadow: inset 0 0 0 calc(var(--S) * .008) #4a4f58, 0 0 0 calc(var(--S) * .012) #d8d3e0, 0 0 0 calc(var(--S) * .02) #a69fb5; }
.lb-emblem > i { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; border: calc(var(--S) * .012) solid #c8ccd4; box-sizing: border-box;
  clip-path: polygon(0 0, 44% 0, 50% 50%, 56% 0, 100% 0, 100% 100%, 0 100%); }
.lb-clip { width: 13%; height: 6%; border-radius: calc(var(--S) * .012); background: linear-gradient(180deg, #c5d7e8, #6f8ca8 70%, #4d6680);
  box-shadow: 0 calc(var(--S) * .008) 0 rgba(0,0,0,.3), inset 0 0 0 calc(var(--S) * .004) #3d5269; }
.lb-clip.k0 { left: 21%; top: 22%; transform: rotate(45deg); }
.lb-clip.k1 { right: 21%; top: 22%; transform: rotate(-45deg); }
.lb-clip.k2 { right: 21%; bottom: 22%; transform: rotate(45deg); }
.lb-clip.k3 { left: 21%; bottom: 22%; transform: rotate(-45deg); }
.lb-lid .lb-bottom { background: #6d6780; }
/* estados */
.lb.empty .lb-f { filter: saturate(.25) brightness(.55); }
.lb.charge .lb-lid { transform: translateY(calc(var(--S) * -.3)); transition: transform 1.1s cubic-bezier(.5,0,.9,.6); }
.lb.open .lb-float, .lb.open .lb-rot, .lb.charge .lb-float { animation-play-state: paused; }
.lb.open .lb-lid { transform: translateY(calc(var(--S) * -2.6)) translateZ(calc(var(--S) * -.4)) rotateX(-80deg) rotateZ(16deg); transition: transform .9s cubic-bezier(.12,.75,.3,1); }
.lb.open .lb-lid .lb-f { opacity: 0; transition: opacity .3s .4s; }
.lb.open .lb-body { transform: translateY(calc(var(--S) * .34)) scale3d(.82, .82, .82); transition: transform .7s ease-out; }
.lb.open .lb-body .lb-f { opacity: 0; transition: opacity .45s .55s; }
.lb.open + .lb-shadow, .lb.open .lb-shadow { opacity: 0; transition: opacity .6s .5s; }
.lb.drop .lb-float { animation: lb-drop .75s cubic-bezier(.3,1.35,.6,1) both, lb-float 3.4s ease-in-out .75s infinite; }
@keyframes lb-drop { from { transform: translateY(-110vh); } }

/* ================================================================ PANTALLA DE CAJAS */
.mt-boxes { background: #0b0f2a; }
.lb-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: auto; background: #141b45; }
.mt-boxes .mt-top h2 { font-size: clamp(14px, 1.6vw, 24px); }
.lb-count { position: absolute; z-index: 2; left: 50%; top: calc(62px + 1.6vh); transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 2px; color: #c9d3ee; text-shadow: 2px 2px 0 #000; padding: 8px 14px; background: rgba(0,0,0,.4); border: 2px solid rgba(159,179,230,.35); }
.lb-count svg { width: 30px; height: auto; }
.lb-count b { font-weight: normal; font-size: 20px; color: #fff; }
.lb-count.mt-shake { animation: mt-shake .4s; }
.lb-area { position: absolute; z-index: 1; left: 50%; top: 48%; transform: translate(-50%, -50%); }
.lb-cards { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.lb-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 3.6vh; display: flex; flex-direction: column; align-items: center; gap: 2vh; }
.lb-hint { min-height: 12px; font-size: 9px; letter-spacing: 1px; color: #c9d3ee; text-shadow: 2px 2px 0 #000; text-align: center; line-height: 1.8; padding: 0 12px; }
.lb-hint .err { color: #ff6a5a; }
.lb-hint b { font-weight: normal; color: #ffd84a; }
.lb-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; min-height: 52px; }
.lb-actions .big-btn { position: relative; font-size: clamp(11px, 1vw, 16px); padding: 15px 28px; display: inline-flex; align-items: center; gap: 10px; }
.lb-actions .lb-open { font-size: clamp(14px, 1.3vw, 20px); padding: 16px 44px; animation: ps-ready 1.2s ease-in-out infinite; }
.lb-actions .mt-price svg { width: 16px; height: 16px; }
/* tarjetas de objetos */
.lb-card { --rc: #c9d3ee; --rg: #9fb3e6; --cw: 200px; position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; perspective: 1000px; will-change: transform; }
.lb-lift { position: absolute; inset: 0; transition: transform .15s; }
.lb-card.landed:not(.rev) .lb-lift { animation: lb-bob 2.2s ease-in-out infinite; }
.lb-card:not(.rev):hover .lb-lift { animation: none; transform: translateY(-10px) scale(1.04); }
@keyframes lb-bob { 50% { transform: translateY(-3px); } }
.lb-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.35,.5,1); }
.lb-card.rev .lb-in { transform: rotateY(180deg); }
.lb-card.rev { cursor: default; }
.lb-back, .lb-front { position: absolute; inset: 0; box-sizing: border-box; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.lb-back { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--cw) * .06);
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rc) 55%, #101736) 0%, #0c1230 62%, #070a1c 100%);
  border: 3px solid var(--rc); box-shadow: 0 0 0 3px #000, 0 0 24px var(--rg), 0 0 70px color-mix(in srgb, var(--rg) 60%, transparent); }
.lb-back::before { content: ""; position: absolute; inset: 8px; border: 2px solid color-mix(in srgb, var(--rc) 40%, transparent); pointer-events: none; }
.lb-back::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.3) 50%, transparent 62%); background-size: 260% 100%; animation: ps-sheen 2.2s linear infinite; }
.lb-back-emb svg { width: calc(var(--cw) * .42); height: auto; filter: drop-shadow(0 0 10px var(--rg)); }
.lb-back-q { font-style: normal; font-size: calc(var(--cw) * .2); color: #fff; text-shadow: 3px 3px 0 #000, 0 0 16px var(--rg); }
.lb-front { transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; gap: calc(var(--cw) * .04); padding: calc(var(--cw) * .07) calc(var(--cw) * .05);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 36%, #141b3d), #0b1029 72%); border: 3px solid var(--rc);
  box-shadow: 0 0 0 3px #000, 0 0 30px var(--rg); text-align: center; }
.lb-rar { font-style: normal; font-size: calc(var(--cw) * .045); color: #000; background: var(--rc); padding: 4px 6px; letter-spacing: 1px; }
.lb-ico { --ico: calc(var(--cw) * .38); flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-ico .rw-char { width: 92%; }
.lb-front b { font-weight: normal; font-size: calc(var(--cw) * .064); line-height: 1.4; color: #fff; text-shadow: 2px 2px 0 #000; }
.lb-front span { font-size: calc(var(--cw) * .042); color: var(--rc); letter-spacing: 1px; }
.lb-dupe { font-style: normal; font-size: calc(var(--cw) * .04); line-height: 1.7; color: #ffd84a; background: rgba(0,0,0,.5); padding: 4px 6px; margin-top: 2px; }
.lb-new { font-style: normal; font-size: calc(var(--cw) * .046); color: #7dff8a; text-shadow: 2px 2px 0 #000; animation: ps-blink-t 1s steps(2) infinite; }
@keyframes ps-blink-t { 50% { opacity: .4; } }
.lb-card.pre .lb-lift { animation: lb-pre .65s linear; }
@keyframes lb-pre { 0% { transform: none; } 20% { transform: translate(-3px, -4px) rotate(-2deg) scale(1.04); } 40% { transform: translate(4px, -6px) rotate(2deg) scale(1.07); }
  60% { transform: translate(-4px, -8px) rotate(-3deg) scale(1.1); } 80% { transform: translate(5px, -10px) rotate(3deg) scale(1.13); } 100% { transform: translateY(-10px) scale(1.15); } }
.lb-card.pre .lb-back { box-shadow: 0 0 0 3px #000, 0 0 50px #ffd84a, 0 0 120px #ffb547; }
.lb-card.leg::before { content: ""; position: absolute; left: 50%; top: 50%; width: 260%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,216,74,.45) 0 8deg, transparent 8deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: mt-spin 9s linear infinite; }
.lb-card.leg .lb-front { animation: lb-leg 1.4s ease-in-out infinite; }
.lb-card.leg .lb-front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,240,180,.4) 50%, transparent 62%); background-size: 260% 100%; animation: ps-sheen 1.6s linear infinite; }
@keyframes lb-leg { 50% { box-shadow: 0 0 0 3px #000, 0 0 50px #ffd84a, 0 0 110px rgba(255,181,71,.6); } }
.lb-card.rar-epico.rev .lb-front { box-shadow: 0 0 0 3px #000, 0 0 40px var(--rg); }

/* ================================================================ aviso de nivel y chapa del pase en el menú */
.mt-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.mt-toast { --ico: 34px; pointer-events: auto; font: inherit; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; cursor: pointer; text-align: left; color: #f4ecd8;
  background: linear-gradient(90deg, #33246e, #161d44); border: 2px solid #ffd84a; box-shadow: 0 0 0 2px #000, 0 6px 0 #000, 0 0 34px rgba(255,216,74,.45);
  animation: mt-toast-in .55s cubic-bezier(.3,1.5,.5,1); }
.mt-toast.out { animation: mt-toast-out .45s forwards; }
@keyframes mt-toast-in { from { transform: translateY(-120%) scale(.8); opacity: 0; } }
@keyframes mt-toast-out { to { transform: translateY(-120%); opacity: 0; } }
.mt-toast-ico { flex: none; width: 58px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px #2d3b66; overflow: hidden; }
.mt-toast-ico .rw-char { width: 54px; }
.mt-toast-ico .mt-av img { width: 36px; height: 27px; }
.mt-toast-txt { display: flex; flex-direction: column; gap: 8px; }
.mt-toast-txt b { font-weight: normal; font-size: 14px; color: #ffd84a; text-shadow: 2px 2px 0 #b3261e, 3px 3px 0 #000; letter-spacing: 2px; line-height: 1.5; }
.mt-toast-txt em { font-style: normal; font-size: 8px; color: #c9d3ee; letter-spacing: 1px; }
.mt-chip { position: absolute; right: 4vw; bottom: 4vh; z-index: 2; pointer-events: auto; font: inherit; width: min(330px, 25vw); box-sizing: border-box; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; cursor: pointer; text-align: left; color: #f4ecd8; background: rgba(0,0,0,.6); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; transition: transform .1s, border-color .1s; }
.mt-chip:hover, .mt-chip:focus-visible { border-color: #ffd84a; transform: translateY(-2px); outline: none; }
.mt-chip.has { border-color: #ffd84a; animation: ps-pulse 1.2s ease-in-out infinite; }
.mt-chip-lv { flex: none; width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #1a1a1a;
  background: radial-gradient(circle at 50% 30%, #fff8b0, #ffd84a 45%, #c79a00); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.mt-chip-lv i { font-style: normal; font-size: 5px; }
.mt-chip-lv b { font-weight: normal; font-size: 15px; }
.mt-chip-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.mt-chip-body > i { font-style: normal; font-size: 8px; letter-spacing: 1px; color: #fff; text-shadow: 2px 2px 0 #000; }
.mt-chip-bar { height: 7px; background: #141b3a; border: 2px solid #000; }
.mt-chip-bar s { display: block; height: 100%; background: linear-gradient(#fff07a, #ffd84a 60%, #c79a00); text-decoration: none; }
.mt-chip-body em { font-style: normal; font-size: 7px; color: #9fb3e6; }
.mt-chip.has .mt-chip-body em { color: #ffd84a; }

/* recompensas de liga (bajo el carril del pase) */
.ps-rank { flex: none; width: min(1500px, 92vw); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.ps-rank h4 { flex: none; margin: 0; font-weight: normal; font-size: 8px; letter-spacing: 1px; color: #ffd84a; text-shadow: 2px 2px 0 #000; line-height: 1.8; }
.ps-rank h4 em { display: block; font-style: normal; font-size: 6px; color: #9fb3e6; }
.ps-rank-row { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ps-rk { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 7px 26px 7px 9px; background: rgba(0,0,0,.55); border: 2px solid #1d2748; border-left: 4px solid var(--tc);
  box-shadow: 0 0 0 2px #000; min-width: 0; }
.ps-rk b { font-weight: normal; font-size: 8px; color: var(--tc); text-shadow: 2px 2px 0 #000; }
.ps-rk span { font-size: 6px; color: #9fb3e6; line-height: 1.6; }
.ps-rk svg { position: absolute; right: 7px; top: 50%; width: 11px; height: auto; transform: translateY(-50%); }
.ps-rk.got { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 25%, transparent), rgba(0,0,0,.55)); }
.ps-rk.got span { color: #c9d3ee; }

/* ---------------------------------------------------------------- pantallas bajas (1366x768 y menos) */
@media (max-height: 800px) {
  .mt-top { min-height: 54px; padding-top: 14px; }
  .mt-wallet { top: 12px; }
  .mt-wallet > span { font-size: 9px; padding: 6px 10px; }
  .ps-head { padding: 10px 16px; }
  .ps-card { height: clamp(170px, 28vh, 330px); }
  .lb-count { top: calc(54px + 1vh); }
  .mt-chip { bottom: 3vh; }
}
/* ---------------------------------------------------------------- tableta y móvil (táctil, vertical u horizontal) */
.mt-top { padding-top: max(20px, env(safe-area-inset-top, 0px)); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mt-help { padding-bottom: max(1.8vh, env(safe-area-inset-bottom, 0px)); }
.is-touch .mt-help { display: none; }
.is-touch .ps-arrow { display: none; }
.is-touch .ps-track { -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.is-touch .ps-cell { scroll-snap-align: center; }
.is-touch .sh-item:hover, .is-touch .sh-char:hover, .is-touch .ps-card:hover { transform: none; }
@media (max-width: 1100px) {
  .mt-top { flex-wrap: wrap; gap: 10px; padding-left: 130px; padding-right: 16px; }
  .mt-wallet { position: static; }
  .ps-rank-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .mt-top { padding-left: 110px; justify-content: flex-end; min-height: 48px; }
  .screen .mt-top h2 { font-size: 13px; margin-right: auto; letter-spacing: 2px; }
  .screen.mt-pass { overflow-y: auto; }
  .mt-pass .ps-track-wrap { flex: none; margin: 10px 0; }
  .mt-pass .ps-track { height: auto; padding: 10px 0 4px; }
  .lb-actions .lb-back { display: none; }
  .mt-wallet > span { font-size: 8px; padding: 6px 8px; }
  .ps-head { flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px; margin-top: 8px; }
  .ps-lv { width: 58px; }
  .ps-xp { flex: 1 1 60%; }
  .ps-claimall { flex: 1 1 100%; min-height: 48px; }
  .ps-cell { --cell: 128px; }
  .ps-card { height: clamp(170px, 34vh, 280px); --ico: 40px; }
  .ps-rail { padding: 0 24px; }
  .ps-rank { flex-direction: column; align-items: stretch; gap: 6px; padding: 0 0 10px; }
  .ps-rank-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .sh-tabs { gap: 6px; }
  .sh-tabs button { padding: 0 10px; font-size: 8px; letter-spacing: 1px; }
  .sh-body { width: 100%; padding: 6px 12px 80px; }
  .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sh-offers-day { grid-template-columns: repeat(2, 1fr); }
  .sh-cat-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sh-odds li { grid-template-columns: 1fr 40px; }
  .sh-odds em { grid-column: 1 / -1; }
  .sh-profile p { margin: 0; }
  .sh-prices .cmp-note { margin-left: 0; }
  .lb-count { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .lb-actions { gap: 10px; padding: 0 12px; }
  .lb-actions .big-btn { padding: 0 16px; min-height: 48px; font-size: 10px; }
  .lb-actions .lb-open { padding: 0 26px; font-size: 13px; }
  .mt-modal-box { padding: 18px 14px; }
  .cf-row { flex-direction: column; gap: 12px; text-align: center; }
  .cf-txt { align-items: center; }
  .cf-card { width: 150px; }
  .mt-pop-item { width: 130px; --ico: 44px; }
  .mt-chip { width: auto; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 6px 10px 6px 6px; }
  .mt-chip-body { display: none; }
  .mt-chip-lv { width: 40px; height: 40px; }
  .mt-toast { max-width: 92vw; }
}
@media (orientation: portrait) and (max-width: 900px) {
  .lb.main { --S: min(26vh, 50vw); }
}
@media (max-height: 500px) {
  .mt-top { min-height: 44px; padding-top: max(8px, env(safe-area-inset-top, 0px)); }
  .screen .mt-top h2 { font-size: 12px; }
  .ps-head { margin-top: 4px; padding: 6px 12px; }
  .ps-lv { width: 46px; }
  .ps-xp-hint { display: none; }
  .ps-claimall { flex: 0 0 auto; }
  .ps-card { height: 150px; padding-top: 6px; --ico: 30px; }
  .ps-node { margin-top: 6px; height: 24px; }
  .ps-rank { display: none; }
  .lb.main { --S: 26vh; }
  .lb-count { top: 8px; left: auto; right: 12px; transform: none; bottom: auto; padding: 4px 8px; }
  .mt-boxes .mt-wallet { display: none; }
  .lb-bottom { bottom: max(8px, env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .lb-hint { display: none; }
  .sh-stage { height: 90px; }
}
.sh-offers-day { grid-template-columns: repeat(4, 1fr); }
.sh-old b, .sh-foot s { text-decoration: line-through; }
.cf-txt .sh-old .mt-price { font-size: 10px; color: #8890aa; text-shadow: none; }
@media (max-width: 760px) { .sh-offers-day { grid-template-columns: repeat(2, 1fr); } }
.is-touch .lb-actions .lb-back { display: none; }

/* ================================================================ PULIDO (microinteracciones, detalle por rareza, pase/tienda/cajas) */
/* ---------------------------------------------------------------- comunes */
.mt-confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.mt-confetti > i { position: absolute; display: block; box-shadow: 1px 1px 0 rgba(0,0,0,.55); will-change: transform, opacity; }
.mt-confetti > .mt-fly-coin { width: 20px; height: 20px; background: none; box-shadow: none; line-height: 0; }
.mt-fly-coin svg { width: 20px; height: 20px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }
.mt-delta { position: absolute; right: 6px; top: 100%; margin-top: 4px; font-style: normal; font-size: 9px; white-space: nowrap; text-shadow: 2px 2px 0 #000;
  pointer-events: none; animation: mt-delta 1.25s cubic-bezier(.2,.8,.4,1) forwards; }
.mt-delta.up { color: #7dff8a; }
.mt-delta.down { color: #ff6a5a; }
@keyframes mt-delta { 0% { transform: translateY(-6px); opacity: 0; } 15% { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.mt-wallet > span.bump { animation: mt-bump .35s steps(3); }
.mt-wallet > span.bump svg { animation: mt-coin-spin .5s steps(4); }
@keyframes mt-bump { 40% { transform: translateY(-3px); border-color: #ffd84a; } }
@keyframes mt-coin-spin { 25% { transform: scaleX(.5); } 50% { transform: scaleX(.1); } 75% { transform: scaleX(.5); } }
.mt-screen .big-btn:active:not(:disabled), .mt-modal .big-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.5), 0 4px 0 #000; transition: none; }
.mt-screen button:focus-visible, .mt-modal button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* esquinas pixel de las ventanas */
.mt-corner { position: absolute; width: 10px; height: 10px; pointer-events: none; background: var(--rc, #ffd84a); }
.mt-corner.a { left: -7px; top: -7px; clip-path: polygon(0 0, 100% 0, 100% 40%, 40% 40%, 40% 100%, 0 100%); }
.mt-corner.b { right: -7px; top: -7px; clip-path: polygon(0 0, 100% 0, 100% 100%, 60% 100%, 60% 40%, 0 40%); }
.mt-corner.c { right: -7px; bottom: -7px; clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%, 0 60%, 60% 60%); }
.mt-corner.d { left: -7px; bottom: -7px; clip-path: polygon(0 0, 40% 0, 40% 60%, 100% 60%, 100% 100%, 0 100%); }
.mt-pop .mt-corner { display: none; }
.mt-modal-box > h3 { position: relative; }
/* resumen bajo los premios */
.mt-pop-sum { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: mt-item-in .5s cubic-bezier(.3,1.6,.5,1) .35s both; }
.mt-pop-sum span { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 11px; color: #ffd84a; background: rgba(0,0,0,.6); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 #000; }
.mt-pop-sum svg { width: 18px; height: auto; }
.mt-pop-sum b { font-weight: normal; }
.mt-pop.best-legendario .mt-pop-rays { animation-duration: 9s; }
.mt-pop-item { overflow: hidden; }
.mt-pop-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.45) 50%, transparent 62%); background-size: 260% 100%;
  animation: ps-sheen .9s linear calc(var(--d) + .35s) 1 both; }
.mt-pop-item:is(.rar-raro, .rar-epico, .rar-legendario)::after { opacity: 1; }

/* ventana de confirmar compra */
.mt-confirm .mt-modal-box { background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #ffd84a) 16%, #1a2552), #0d1330 70%); }
.mt-confirm h3 { color: #fff; text-shadow: 2px 2px 0 #000, 0 0 14px color-mix(in srgb, var(--rc, #ffd84a) 55%, transparent); }
.cf-prev { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-width: 120px; min-height: 110px; isolation: isolate; }
.cf-rays { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc, #ffd84a) 38%, transparent) 0 9deg, transparent 9deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 64%); mask: radial-gradient(circle, #000 10%, transparent 64%); animation: mt-spin 14s linear infinite; }
.cf-rar { font-style: normal; color: #000; background: var(--rc, #c9d3ee); padding: 3px 5px; margin-right: 4px; }
.cf-off { font-style: normal; font-size: 9px; color: #fff; background: #ff3b3b; padding: 3px 5px; box-shadow: 0 0 0 2px #000; text-shadow: 1px 1px 0 #000; }
.cf-today { display: flex; align-items: center; gap: 6px; color: #ff9ad8; }
.cf-today svg { width: 10px; height: auto; }
.cf-bal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 10px 16px; font-size: 10px; color: #ffd84a;
  background: rgba(0,0,0,.45); border: 2px solid #1d2748; box-shadow: 0 0 0 2px #000; }
.cf-bal > span { color: #9fb3e6; font-size: 8px; letter-spacing: 1px; }
.cf-bal .mt-price svg { width: 14px; height: 14px; }
.cf-bal .mt-price:last-child { color: #7dff8a; }
.cf-arrow { width: 16px; height: 10px; background: #9fb3e6; clip-path: polygon(0 35%, 55% 35%, 55% 0, 100% 50%, 55% 100%, 55% 65%, 0 65%); }
.cf-short { font-weight: normal; color: #ff6a5a; }
.cf-bal.neg { border-color: #b3261e; }

/* ---------------------------------------------------------------- PASE: cabecera */
.ps-lv { position: relative; transition: transform .2s; }
.ps-lv-max { font-style: normal; font-size: clamp(5px, .42vw, 7px); opacity: .7; }
.ps-lv.max { background: radial-gradient(circle at 50% 30%, #fff, #ffd84a 40%, #ff8a1f); animation: ps-lv-max 1.6s ease-in-out infinite; }
@keyframes ps-lv-max { 50% { filter: brightness(1.2); } }
.ps-bar { position: relative; overflow: visible; }
.ps-bar i.ps-bar-fill { position: relative; overflow: visible; transition: width 1s cubic-bezier(.25,1,.4,1); }
.ps-bar-fill s { position: absolute; right: -2px; top: -3px; bottom: -3px; width: 4px; background: #fff; box-shadow: 0 0 8px #fff, 0 0 16px #ffd84a; text-decoration: none; }
.ps-bar.full .ps-bar-fill s { display: none; }
.ps-bar u { position: absolute; inset: 0; display: flex; justify-content: space-evenly; pointer-events: none; }
.ps-bar u i { width: 2px; height: 100%; background: rgba(0,0,0,.45); animation: none; transition: none; }
.ps-goal { --rc: #ffb547; --ico: 34px; flex: none; position: relative; display: flex; align-items: center; gap: 12px; width: clamp(200px, 18vw, 290px); box-sizing: border-box; padding: 8px 12px 8px 8px; cursor: pointer;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(0,0,0,.4)); border: 2px solid color-mix(in srgb, var(--rc) 55%, #2d3b66); box-shadow: 0 0 0 2px #000;
  transition: transform .12s, border-color .12s; }
.ps-goal:hover { transform: translateY(-2px); border-color: var(--rc); }
.ps-goal[hidden] { display: none; }
.ps-goal-ico { flex: none; width: 64px; height: 52px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 2px #000; }
.ps-goal-ico .rw-char { width: 62px; box-shadow: none; }
.ps-goal-ico .rw-av img { width: 38px; height: 28px; }
.ps-goal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-goal-txt span { font-size: 6px; letter-spacing: 1px; color: #9fb3e6; }
.ps-goal-txt b { font-weight: normal; font-size: 10px; color: #fff; text-shadow: 2px 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-goal-txt em { font-style: normal; font-size: 7px; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-goal-bar { display: block; height: 5px; background: #141b3a; box-shadow: 0 0 0 2px #000; }
.ps-goal-bar s { display: block; height: 100%; background: var(--rc); text-decoration: none; transition: width .8s; }

/* minimapa del pase */
.ps-map-wrap { flex: none; width: min(1500px, 92vw); margin: 10px auto 0; display: flex; align-items: center; gap: 14px; }
.ps-map-lab { flex: none; font-size: 7px; letter-spacing: 1px; color: #9fb3e6; text-shadow: 2px 2px 0 #000; }
.ps-map-lab b { font-weight: normal; color: #7dff8a; }
.ps-map { position: relative; flex: 1; min-width: 0; height: 16px; display: flex; align-items: center; gap: 2px; padding: 0 3px; cursor: pointer; touch-action: none;
  background: rgba(0,0,0,.55); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #1d2748; }
.ps-map > i { flex: 1; height: 6px; background: #2a3458; transition: background .2s; }
.ps-map > i.mile { height: 10px; background: #3b4a7c; }
.ps-map > i.claimed { background: #2a8a3a; }
.ps-map > i.mile.claimed { background: #4fd16a; }
.ps-map > i.ready { background: #ffd84a; animation: ps-blink-t 1.1s steps(2) infinite; }
.ps-map > i.cur { height: 12px; background: #fff; box-shadow: 0 0 6px #fff; }
.ps-map > i.focus { outline: 2px solid #fff; outline-offset: 1px; }
.ps-map-view { position: absolute; top: -4px; bottom: -4px; left: 0; width: 10%; box-sizing: border-box; pointer-events: none; border: 2px solid rgba(255,216,74,.85);
  background: rgba(255,216,74,.08); text-decoration: none; transition: width .2s; box-shadow: 0 0 0 1px #000; }
.ps-jump { flex: none; font: inherit; font-size: 7px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer; color: #1a1a1a;
  background: #fff; border: 0; box-shadow: 0 0 0 2px #000, 0 3px 0 2px #000; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.ps-jump svg { width: 10px; height: 10px; }
.ps-jump.show { opacity: 1; pointer-events: auto; transform: none; }
.ps-jump:hover { background: #ffd84a; }
.ps-jump:active { transform: translateY(2px); box-shadow: 0 0 0 2px #000, 0 1px 0 2px #000; }

/* tarjetas: gema de rareza, hitos, entrada escalonada */
.ps-gem { position: absolute; right: 9px; top: 15px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--rc); box-shadow: 0 0 0 2px #000, 0 0 8px var(--rc); }
.ps-card.rar-comun .ps-gem { box-shadow: 0 0 0 2px #000; }
.ps-card.locked .ps-gem { opacity: .45; }
.ps-mile { position: absolute; right: 24px; top: 11px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 6px; letter-spacing: 1px;
  color: #1a1a1a; background: #ffd84a; padding: 3px 6px; box-shadow: 0 0 0 2px #000; white-space: nowrap; }
.ps-mile svg { width: 8px; height: 8px; }
.ps-cell.mile .ps-card { border-width: 3px; border-color: color-mix(in srgb, var(--rc) 80%, #fff); }
.ps-cell.mile .ps-card.locked { border-color: color-mix(in srgb, var(--rc) 45%, #2d3b66); }
.ps-cell.mile .ps-card::before { height: 7px; background: repeating-linear-gradient(90deg, var(--rc) 0 8px, color-mix(in srgb, var(--rc) 60%, #000) 8px 12px); }
.ps-cell.mile .ps-node i { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.ps-card.rar-epico:not(.locked):not(.ready), .ps-card.rar-legendario:not(.locked):not(.ready) { box-shadow: 0 0 0 2px #000, 0 0 16px color-mix(in srgb, var(--rg, var(--rc)) 40%, transparent); }
.ps-card.claimed .ps-ico, .ps-card.claimed .ps-name { filter: saturate(.6) brightness(.8); }
.ps-card.claimed .ps-st { background: rgba(20,60,30,.65); }
.ps-card.locked .ps-num { color: #6a789e; }
.ps-card.ready:active { transform: translateY(-6px) scale(.98); transition: none; }
.ps-rail.intro .ps-cell { animation: ps-cell-in .5s cubic-bezier(.3,1.4,.5,1) calc(var(--k, 0) * 45ms) both; }
@keyframes ps-cell-in { from { transform: translateY(26px); opacity: 0; } }
.ps-card.just { animation: ps-just .7s cubic-bezier(.3,1.6,.5,1); }
.ps-card.just .ps-ico { animation: ps-ico-pop .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes ps-ico-pop { 30% { transform: scale(1.35) rotate(-6deg); } }
/* nodos del carril según estado */
.ps-cell[data-st="claimed"] .ps-node i, .ps-cell[data-st="start"] .ps-node i { background: #2a8a3a; }
.ps-cell[data-st="claimed"] .ps-node i svg, .ps-cell[data-st="start"] .ps-node i svg { display: block; }
.ps-cell[data-st="ready"] .ps-node i { background: #ffd84a; animation: ps-node-ready 1s ease-in-out infinite; }
@keyframes ps-node-ready { 50% { transform: rotate(45deg) scale(1.3); box-shadow: 0 0 0 2px #000, 0 0 12px #ffd84a; } }
.ps-cell.cur .ps-node i svg { display: none; }
.ps-cell.cur .ps-node::after { background: linear-gradient(90deg, #ffd84a var(--fill, 0%), #1a2244 var(--fill, 0%)); }
.ps-cell.focus .ps-node i { outline: 2px solid #fff; outline-offset: 2px; }

/* ficha del nivel señalado */
.ps-detail { --rc: #9fb3e6; --ico: 34px; position: relative; flex: none; width: min(980px, 92vw); box-sizing: border-box; margin: 8px auto 10px; min-height: 58px; display: flex; align-items: center; gap: 14px; padding: 6px 14px 6px 6px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 18%, rgba(0,0,0,.7)), rgba(0,0,0,.62) 55%); border: 2px solid color-mix(in srgb, var(--rc) 50%, #1d2748); box-shadow: 0 0 0 2px #000;
  opacity: 0; transition: opacity .15s, border-color .15s; }
.ps-detail.on { opacity: 1; }
.ps-d-ico { flex: none; width: 60px; height: 46px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 2px #000; }
.ps-d-ico .rw-char { width: 58px; box-shadow: none; }
.ps-d-ico .rw-av img { width: 36px; height: 27px; }
.ps-d-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-d-txt > span { font-size: 7px; color: #9fb3e6; letter-spacing: 1px; }
.ps-d-mile { font-style: normal; color: #ffd84a; }
.ps-d-txt b { font-weight: normal; font-size: 11px; color: #fff; text-shadow: 2px 2px 0 #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-d-txt b em { font-style: normal; font-size: 7px; color: var(--rc); margin-left: 6px; }
.ps-d-txt small { font-size: 7px; color: #c9d3ee; line-height: 1.6; }
.ps-d-rar { flex: none; font-style: normal; font-size: 7px; color: #000; background: var(--rc); padding: 4px 6px; box-shadow: 0 0 0 2px #000; }
.ps-d-st { flex: none; font-size: 8px; }
.ps-d-st span { display: inline-flex; align-items: center; gap: 6px; line-height: 1.6; }
.ps-d-st svg { width: 11px; height: auto; }
.ps-d-st .ok { color: #7dff8a; }
.ps-d-st .lk { color: #9fb3e6; }
.ps-d-st .go { color: #1a1a1a; background: #ffd84a; padding: 6px 8px; box-shadow: 0 0 0 2px #000; animation: ps-blink 1.1s steps(2) infinite; }

/* ---------------------------------------------------------------- TIENDA */
.sh-tabs { margin-bottom: 4px; }
.sh-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: color .1s, border-color .1s, background .1s, transform .1s; }
.sh-tabs button:active { transform: translateY(2px); }
.sh-tab-n { font-style: normal; font-size: 7px; letter-spacing: 0; color: #9fb3e6; background: rgba(0,0,0,.55); padding: 3px 4px; box-shadow: 0 0 0 1px #000; }
.sh-tab-n:empty { display: none; }
.sh-tabs button.on .sh-tab-n { color: #ffd84a; background: #1a1a1a; }
.sh-tabs button[data-tab="boxes"] .sh-tab-n { color: #fff; background: #ff3b3b; }
.sh-tabs button.on::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 6px; margin-left: -6px; background: #ffd84a; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.sh-pane.from-r { animation: sh-in-r .28s cubic-bezier(.3,1,.5,1); }
.sh-pane.from-l { animation: sh-in-l .28s cubic-bezier(.3,1,.5,1); }
@keyframes sh-in-r { from { transform: translateX(28px); opacity: 0; } }
@keyframes sh-in-l { from { transform: translateX(-28px); opacity: 0; } }
/* cabecera de las ofertas del día con cuenta atrás */
.sh-day-head { align-items: center; }
.sh-day-head h3 { display: flex; align-items: center; gap: 10px; }
.sh-day-head h3 svg { width: 14px; height: auto; }
.sh-timer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.sh-timer > span:first-child { font-size: 7px !important; letter-spacing: 1px; color: #9fb3e6; }
.sh-clock { display: inline-flex; align-items: center; gap: 3px; }
.sh-clock b { font-weight: normal; font-size: 11px; color: #fff; background: #1a1030; padding: 5px 4px; min-width: 2.2ch; text-align: center; box-shadow: 0 0 0 2px #000, inset 0 -3px 0 rgba(255,154,216,.3); text-shadow: 2px 2px 0 #000; }
.sh-clock b.tick { animation: sh-tick .3s steps(2); }
@keyframes sh-tick { 0% { transform: translateY(-2px); color: #ff9ad8; } }
.sh-clock i { font-style: normal; font-size: 10px; color: #ff9ad8; animation: ps-blink-t 1s steps(2) infinite; }
.sh-day { display: block; width: 90px; height: 6px; background: #1a1030; box-shadow: 0 0 0 2px #000; }
.sh-day s { display: block; height: 100%; background: linear-gradient(90deg, #ff4fd8, #ff9ad8); text-decoration: none; }
.sh-timer.urgent .sh-clock b { color: #ff6a5a; animation: ps-blink-t 1s steps(2) infinite; }
.sh-timer.urgent .sh-day s { background: #ff3b3b; }
/* tarjetas de objeto: esquinas por rareza, brillo, pulsado, sin dinero */
.sh-item { transition: transform .12s, border-color .12s, box-shadow .12s; }
.sh-item:hover, .sh-item:focus-visible { box-shadow: 0 0 0 2px #000, 0 6px 0 #000, 0 0 18px color-mix(in srgb, var(--rc) 45%, transparent); }
.sh-item:active { transform: translateY(1px) !important; box-shadow: 0 0 0 2px #000; transition: none; }
.sh-cn { position: absolute; z-index: 1; width: 8px; height: 8px; pointer-events: none; background: var(--rc); }
.sh-cn.a { left: 3px; bottom: 37px; clip-path: polygon(0 0, 35% 0, 35% 65%, 100% 65%, 100% 100%, 0 100%); }
.sh-cn.b { right: 3px; bottom: 37px; clip-path: polygon(65% 0, 100% 0, 100% 100%, 0 100%, 0 65%, 65% 65%); }
.sh-item.rar-comun .sh-cn { display: none; }
.sh-item.rar-epico, .sh-item.rar-legendario { border-width: 3px; }
.sh-item.rar-epico::before, .sh-item.rar-legendario::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 62%); }
.sh-item.rar-legendario { animation: sh-leg 2.2s ease-in-out infinite; }
@keyframes sh-leg { 50% { box-shadow: 0 0 0 2px #000, 0 0 22px color-mix(in srgb, var(--rc) 60%, transparent); } }
.sh-item.rar-epico:not(.offer)::after, .sh-item.rar-legendario:not(.offer)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%); background-size: 250% 100%; animation: ps-sheen 3.2s linear infinite; }
.sh-item > .sh-item-ico, .sh-item > b, .sh-item > .sh-item-sub, .sh-item > .sh-foot { position: relative; z-index: 1; }
.sh-item.poor .sh-item-ico { opacity: .8; }
.sh-item.poor:hover .sh-foot.buy { background: rgba(80,10,10,.6); }
.sh-item.offer { animation: sh-offer-in .45s cubic-bezier(.3,1.5,.5,1) calc(var(--i, 0) * 70ms) both; }
.sh-item.offer.rar-legendario { animation: sh-offer-in .45s cubic-bezier(.3,1.5,.5,1) calc(var(--i, 0) * 70ms) both, sh-leg 2.2s ease-in-out .5s infinite; }
@keyframes sh-offer-in { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.sh-item.offer.own .sh-item-ico, .sh-item.offer.own > b { filter: saturate(.5) brightness(.75); }
.sh-stamp { left: 50%; top: 46%; z-index: 3; font-style: normal; font-size: 10px; letter-spacing: 2px; color: #7dff8a; padding: 6px 10px; border: 3px solid #7dff8a;
  background: rgba(5,20,10,.85); transform: translate(-50%, -50%) rotate(-12deg); box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 #000; }
.sh-item.equip { animation: sh-equip .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes sh-equip { 30% { transform: scale(1.06); box-shadow: 0 0 0 2px #000, 0 0 30px #7dff8a; } }
.sh-offer { transition: transform .12s, box-shadow .12s; }
.sh-offer:not(.done):hover { transform: translateY(-3px); box-shadow: 0 0 0 2px #000, 0 6px 0 #000; }
.sh-offer.bought { animation: sh-equip .55s cubic-bezier(.3,1.6,.5,1); }
.sh-offer.done > :not(.big-btn) { filter: saturate(.45) brightness(.8); }
/* colección (barra) y estado vacío */
.sh-coll { display: flex; align-items: center; gap: 10px; font-size: 8px; color: #9fb3e6; letter-spacing: 1px; min-width: 200px; }
.sh-coll > span { font-size: 8px !important; color: #9fb3e6 !important; }
.sh-coll-bar { flex: 1; min-width: 80px; height: 8px; background: #141b3a; box-shadow: 0 0 0 2px #000; }
.sh-coll-bar s { display: block; height: 100%; background: repeating-linear-gradient(90deg, #7dff8a 0 6px, #4fd16a 6px 8px); text-decoration: none; transition: width .6s; }
.sh-coll b { font-weight: normal; font-size: 9px !important; color: #7dff8a !important; }
.sh-count { max-width: 560px; }
.sh-profile > .sh-coll { flex: 1 1 200px; max-width: 340px; flex-direction: row; }
.sh-prof-lab { font-size: 6px !important; letter-spacing: 2px; color: #6a789e !important; }
.sh-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; text-align: center; background: linear-gradient(180deg, rgba(255,216,74,.12), rgba(0,0,0,.4));
  border: 2px dashed #b38f00; }
.sh-empty[hidden] { display: none; }
.sh-empty svg { width: 32px; height: 32px; }
.sh-empty b { font-weight: normal; font-size: 11px; color: #ffd84a; text-shadow: 2px 2px 0 #000; }
.sh-empty span { font-size: 7px; color: #9fb3e6; line-height: 1.8; }
.sh-char { transition: transform .12s, border-color .12s, box-shadow .12s; }
.sh-char:not(.own):hover { box-shadow: 0 0 0 2px #000, 0 6px 0 #000, 0 0 16px rgba(255,181,71,.35); }
.sh-char:not(.own):active { transform: translateY(1px); transition: none; }
.sh-char.own::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: #7dff8a; box-shadow: 0 0 0 2px #000; }
.sh-msg { transform: translateX(-50%) translateY(10px); transition: opacity .2s, transform .2s cubic-bezier(.3,1.5,.5,1); }
.sh-msg.show { transform: translateX(-50%); }
.sh-msg svg { width: 16px; }

/* ---------------------------------------------------------------- CAJAS */
.lb-count { transition: border-color .2s; }
.lb-count.bump { animation: lb-bump .45s cubic-bezier(.3,1.8,.5,1); }
.lb-count.bump b { color: #ffd84a; }
@keyframes lb-bump { 40% { transform: translateX(-50%) scale(1.18); border-color: #ffd84a; } }
.lb-count.zero b { color: #ff6a5a; }
.lb-odds-btn { position: absolute; z-index: 5; left: max(18px, env(safe-area-inset-left, 0px)); top: calc(62px + 1.6vh); font: inherit; font-size: 7px; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px; cursor: pointer; color: #c9d3ee; background: rgba(0,0,0,.5); border: 2px solid rgba(159,179,230,.35); box-shadow: 0 0 0 2px #000; text-shadow: 2px 2px 0 #000; }
.lb-odds-btn svg { width: 14px; height: auto; }
.lb-odds-btn:hover, .lb-odds-btn.on { color: #fff; border-color: #9fb3e6; }
.lb-odds { position: absolute; z-index: 6; left: max(18px, env(safe-area-inset-left, 0px)); top: calc(62px + 1.6vh + 44px); width: min(300px, calc(100vw - 36px)); box-sizing: border-box; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; background: rgba(6,9,26,.94); border: 2px solid #2d3b66; box-shadow: 0 0 0 2px #000, 0 6px 0 #000; animation: mt-pop-in .2s cubic-bezier(.3,1.5,.5,1); }
.lb-odds[hidden] { display: none; }
.lb-odds h4 { margin: 0; font-weight: normal; font-size: 8px; letter-spacing: 1px; color: #ffd84a; text-shadow: 2px 2px 0 #000; }
.lb-odds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-odds li { display: grid; grid-template-columns: 82px 1fr 30px; align-items: center; gap: 8px; font-size: 7px; }
.lb-odds li b { font-weight: normal; color: var(--rc); text-shadow: 1px 1px 0 #000; }
.lb-odds li i { height: 6px; background: #141b3a; box-shadow: 0 0 0 1px #000; }
.lb-odds li i s { display: block; height: 100%; width: var(--p); min-width: 3px; background: var(--rc); text-decoration: none; }
.lb-odds li span { color: #fff; text-align: right; }
.lb-odds p { margin: 0; font-size: 6px; line-height: 1.9; color: #9fb3e6; }
.lb-pity { display: flex; flex-direction: column; gap: 6px; font-size: 7px; color: #ffb547; line-height: 1.6; }
.lb-pity-bar { display: block; height: 6px; background: #141b3a; box-shadow: 0 0 0 1px #000; }
.lb-pity-bar s { display: block; height: 100%; background: linear-gradient(90deg, #ffb547, #ffd84a); text-decoration: none; }
.lb-pity em { font-style: normal; color: #6a789e; font-size: 6px; }
/* anticipación: halo del color de la rareza detrás de la caja (sin filter: la caja es 3D) */
.lb.main::before { content: ""; position: absolute; left: 50%; top: 50%; width: 190%; height: 190%; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tc, #fff) 70%, transparent), transparent); transition: opacity .4s, transform .5s; }
.lb.tease-epico { --tc: #c084fc; }
.lb.tease-legendario { --tc: #ffd84a; }
.lb.tease-epico::before, .lb.tease-legendario::before { opacity: .85; transform: translate(-50%, -50%) scale(1); animation: lb-tease .18s steps(2) infinite; }
@keyframes lb-tease { 50% { opacity: .55; } }
.lb.main:not(.charge):not(.open):not(.empty):hover .lb-lid { transform: translateY(calc(var(--S) * -.27)); }
/* botón saltar */
.lb-actions .lb-skip { font-size: clamp(10px, .85vw, 13px); padding: 12px 22px; }
.lb-skip-ico { display: inline-block; width: 16px; height: 10px; background: currentColor; clip-path: polygon(0 0, 50% 50%, 50% 0, 100% 50%, 50% 100%, 50% 50%, 0 100%); }
/* reverso de las tarjetas: puntos de rareza */
.lb-back-pips { display: flex; gap: calc(var(--cw) * .03); font-style: normal; }
.lb-back-pips s { width: calc(var(--cw) * .045); height: calc(var(--cw) * .045); background: var(--rc); transform: rotate(45deg); box-shadow: 0 0 0 2px #000, 0 0 8px var(--rg); }
.lb-card.landed:not(.rev):hover .lb-back { box-shadow: 0 0 0 3px #000, 0 0 34px var(--rg), 0 0 90px color-mix(in srgb, var(--rg) 70%, transparent); }
.lb-card.epi .lb-front::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(230,200,255,.35) 50%, transparent 62%); background-size: 260% 100%; animation: ps-sheen 2s linear infinite; }
.lb-card.rev .lb-ico { animation: lb-ico-pop .55s cubic-bezier(.3,1.7,.5,1) .15s both; }
@keyframes lb-ico-pop { from { transform: scale(.3); } }
/* resumen de la caja abierta */
.lb-sum { display: none; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 12px; max-width: 100%; box-sizing: border-box; }
.lb-sum.on { display: flex; animation: mt-item-in .45s cubic-bezier(.3,1.6,.5,1) both; }
.lb-sum span { display: inline-flex; align-items: center; gap: 6px; font-size: 8px; color: #fff; padding: 6px 9px; background: rgba(0,0,0,.6); box-shadow: 0 0 0 2px #000; text-shadow: 1px 1px 0 #000; }
.lb-sum span i { width: 7px; height: 7px; background: var(--rc); transform: rotate(45deg); box-shadow: 0 0 0 1px #000; }
.lb-sum .c { color: #ffd84a; }
.lb-sum .c svg { width: 12px; height: 12px; }
.lb-sum .n { color: #1a1a1a; background: #7dff8a; text-shadow: none; }

/* aviso: barra de tiempo */
.mt-toast { position: relative; overflow: hidden; }
.mt-toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #ffd84a; transform-origin: left; animation: mt-toast-t 4.6s linear forwards; }
@keyframes mt-toast-t { to { transform: scaleX(0); } }

/* ---------------------------------------------------------------- responsive del pulido */
@media (max-width: 1100px) {
  .ps-goal { display: none; }
}
@media (max-height: 800px) {
  .ps-map-wrap { margin-top: 6px; }
  .ps-detail { margin: 4px auto 6px; min-height: 50px; padding: 4px 10px 4px 4px; }
  .ps-d-ico { width: 50px; height: 40px; }
}
@media (max-width: 760px) {
  .ps-map-wrap { width: auto; margin: 8px 12px 0; gap: 8px; flex-wrap: wrap; }
  .ps-map { flex: 1 1 100%; order: 3; height: 18px; }
  .ps-jump { margin-left: auto; }
  .ps-detail { width: auto; margin: 0 12px 10px; flex-wrap: wrap; gap: 8px 10px; padding-right: 8px; }
  .ps-d-txt { flex: 1 1 calc(100% - 80px); }
  .ps-d-txt b { white-space: normal; }
  .ps-d-st { flex: 1 1 100%; }
  .ps-d-rar { position: absolute; right: 8px; top: 8px; }
  .ps-mile { font-size: 5px; }
  .sh-day-head { flex-direction: column; align-items: flex-start; }
  .sh-timer { justify-content: flex-start; }
  .sh-tabs button.on::after { display: none; }
  .sh-tabs button { gap: 5px; }
  .sh-coll { min-width: 0; }
  .sh-item .sh-off { font-size: 8px; padding: 4px 5px; }
  .cf-prev { min-height: 90px; }
  .cf-bal { font-size: 9px; gap: 8px; padding: 8px 10px; }
  .mt-boxes .lb-count { top: calc(84px + env(safe-area-inset-top, 0px)); bottom: auto; left: 12px; transform: none; padding: 6px 10px; gap: 8px; font-size: 8px; }
  .mt-boxes .lb-count b { font-size: 14px; }
  .mt-boxes .lb-count svg { width: 22px; }
  @keyframes lb-bump { 40% { transform: scale(1.18); border-color: #ffd84a; } }
  .lb-odds-btn { top: calc(84px + env(safe-area-inset-top, 0px)); left: auto; right: 12px; padding: 8px; }
  .lb-odds-btn span { display: none; }
  .lb-odds { top: calc(128px + env(safe-area-inset-top, 0px)); left: auto; right: 12px; }
  .ps-xp-top { font-size: 8px; letter-spacing: 1px; }
  .ps-xp-top em { white-space: nowrap; }
  .sh-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; width: 100%; box-sizing: border-box; padding: 4px 12px 6px; scrollbar-width: none; }
  .sh-tabs::-webkit-scrollbar { display: none; }
  .sh-tabs button { flex: none; }
  .lb-sum span { font-size: 7px; padding: 5px 7px; }
}
@media (max-width: 400px) {
  .mt-wallet > span { padding: 5px 6px; gap: 5px; }
  .mt-wallet svg { width: 14px; height: 14px; }
  .sh-tabs button { padding: 0 7px; font-size: 7px; letter-spacing: 0; }
  .sh-tab-n { display: none; }
  .sh-grid, .sh-offers-day { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .sh-item { padding-left: 4px; padding-right: 4px; }
  .sh-cat-row { grid-template-columns: repeat(2, 1fr); }
  .ps-cell { --cell: 116px; }
  .mt-modal-btns .big-btn { padding: 12px 14px; font-size: 10px; }
}
@media (max-height: 500px) {
  .ps-map-wrap, .ps-detail { display: none; }
  .mt-boxes .lb-count { top: 8px; bottom: auto; left: auto; right: 12px; transform: none; }
  .lb-odds-btn { top: 8px; bottom: auto; left: auto; right: 110px; }
  .lb-odds { top: 48px; bottom: auto; left: auto; right: 12px; }
}

/* ---------------------------------------------------------------- menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .mt-screen *, .mt-screen *::before, .mt-screen *::after, .mt-modal *, .mt-modal *::before, .mt-modal *::after,
  .mt-toast, .mt-toast::after, .mt-chip, .mt-badge {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .mt-toast::after { display: none; }
}

/* ---- skins (skins.js): el luchador entero con sus colores, animado (idle), en un lienzo pixel */
.rw-skin { display: block; height: calc(var(--ico, 48px) * 1.75); width: auto; max-width: 100%; image-rendering: pixelated; background: none; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.6)); }
.sh-item[data-t="skin"] { --ico: clamp(46px, 3.8vw, 66px); }
.sh-item[data-t="skin"]:not(.own) .rw-skin { filter: drop-shadow(2px 3px 0 rgba(0,0,0,.6)) brightness(.85); }
.sh-skins .sh-cat { margin-bottom: 18px; }
.sh-skins .sh-cat h4 { margin: 4px 0 10px; font-size: 12px; letter-spacing: 2px; }
.sh-skin-head > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.lb-ico .rw-skin { height: 88%; max-height: calc(var(--ico) * 2); }
.cf-skin .rw-skin { height: 120px; }
.ps-goal-ico .rw-skin, .ps-d-ico .rw-skin { height: 100%; filter: none; }
.mt-toast-ico .rw-skin { height: 40px; }

/* ---------------------------------------------------------------- caja PRIME */
/* Misma caja, en oro (filtro sobre el metal y el cierre) y con brillo. */
/* el filtro va en cada cara: en .lb-rot (preserve-3d) aplanaba la caja y se veía una sola cara */
.lb.prime:not(.empty) .lb-f { filter: sepia(1) saturate(2.4) hue-rotate(-12deg) brightness(.92) contrast(1.08); }
.lb.prime.empty .lb-f { filter: sepia(1) saturate(.6) brightness(.5); }
.lb.prime .lb-shadow { background: radial-gradient(ellipse, rgba(255,181,71,.45), transparent 70%); }
.sh-offer.prime { border-color: #ffd84a; background: radial-gradient(ellipse at 50% 30%, rgba(255,216,74,.32), transparent 55%), linear-gradient(#3a2f12, #140f08); }
.sh-offer.prime h3 { color: #ffd84a; }
.sh-info .sh-prime-h { margin-top: 18px; color: #ffd84a; }
/* selector NORMAL / PRIME en la pantalla de cajas, debajo del contador */
.lb-kinds { position: absolute; z-index: 2; left: 50%; top: calc(104px + 1.6vh); transform: translateX(-50%); display: flex; gap: 8px; }
.lb-kinds button { font: inherit; font-size: 9px; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; cursor: pointer;
  color: #9fb3e6; background: #121a33; border: 2px solid #2d3b66; box-shadow: 0 3px 0 #000; }
.lb-kinds button b { font-weight: normal; color: #fff; }
.lb-kinds button:hover, .lb-kinds button:focus-visible { border-color: #4a5d99; outline: none; }
.lb-kinds button.on { color: #1a1a1a; background: #9fb3e6; border-color: #000; }
.lb-kinds button.on b { color: #1a1a1a; }
.lb-kinds button[data-kind="prime"].on { background: #ffd84a; }
[data-state="opening"] .lb-kinds, [data-state="reveal"] .lb-kinds, [data-state="swap"] .lb-kinds { visibility: hidden; }
