/* Бустер: the running total on top, a sealed foil pack (then a fan of five cards) in the middle,
   a compact rarity legend under it. */
.g-booster .g-stage { padding: 40px 12px 12px; }

/* header */
.boost-head { height: 50px; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; overflow: hidden; padding-top: 4px; }
.boost-head b { display: inline-block; font-size: min(40px, 10.6vw); font-weight: 900; line-height: 1; letter-spacing: -1px; color: var(--fg); transform-origin: 0 70%; }
.boost-head span { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; color: var(--fg2); }
.boost-head span img { width: 16px; height: 16px; }
.boost-head:not(.boost-run) b { font-size: 32px; letter-spacing: -.6px; }
.boost-head.boost-run span { color: var(--fg); }
.boost-head.boost-up b, .boost-head.boost-won span { color: var(--win); }
.boost-head.boost-lost b { color: var(--fg2); }

/* the stage zone: pack and cards centred */
.boost-zone { position: relative; height: 236px; }
.boost-shadow { position: absolute; left: 50%; bottom: 4px; width: 170px; height: 22px; margin-left: -85px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,123,255,.28), rgba(139,123,255,0)); }
.boost-zone .fx-p { z-index: 9; }
.boost-zone .fx-float { z-index: 10; }
.boost-flash { position: absolute; left: 50%; top: 30px; z-index: 6; width: 220px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(212,255,58,.35) 45%, rgba(212,255,58,0)); opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }

/* the sealed pack: foil body, a crimped tear-off strip on top, a crimped seal at the bottom */
.boost-pack { position: absolute; left: 50%; top: 6px; width: 150px; height: 222px; margin-left: -75px; z-index: 2; filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); }
.boost-strip { position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 2; border-radius: 6px 6px 2px 2px; overflow: hidden; background: linear-gradient(100deg, #b9aaff 0%, #7a63ff 30%, #e2dbff 52%, #6c53f0 76%, #a796ff 100%); }
.boost-crimp { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 2px, rgba(30,16,90,.32) 2px 4px); }
.boost-notch { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(20,10,60,.7) 0 5px, rgba(20,10,60,0) 5px 9px); }
.boost-body { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; border-radius: 2px 2px 8px 8px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(150deg, #2a1d78 0%, #5b3df0 26%, #b9a8ff 44%, #6a4cff 58%, #2c1c82 82%, #170f4a 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -26px 30px rgba(10,6,40,.45); }
.boost-sheen { position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,0) 0 18px, rgba(255,255,255,.12) 18px 22px, rgba(255,255,255,0) 22px 34px); pointer-events: none; }
.boost-brand { position: relative; margin-top: -6px; font-family: Shrikhand, Figtree, sans-serif; font-size: 22px; line-height: 1; color: #fff; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(20,10,60,.6); }
.boost-bolt { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(closest-side, #1a1046 70%, rgba(26,16,70,0)); box-shadow: 0 0 22px rgba(212,255,58,.35); }
.boost-bolt svg { width: 28px; height: 50px; filter: drop-shadow(0 2px 0 #5c7a0a); }
.boost-five { position: relative; height: 24px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; background: rgba(10,6,40,.55); color: #fff; font-size: 13px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.boost-crimp-b { top: auto; bottom: 0; height: 12px; }

/* cards: 64 × 98, placed from the zone centre */
.boost-card { position: absolute; left: 50%; top: 50%; width: 64px; height: 98px; margin: -49px 0 0 -32px; z-index: 4; border-radius: 9px; opacity: 0; will-change: transform; }
.boost-back { position: absolute; inset: 0; border-radius: 9px; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 4px, rgba(255,255,255,0) 4px 9px), linear-gradient(160deg, #4a36c8 0%, #2a1d78 60%, #1b1254 100%); box-shadow: inset 0 0 0 2px #8b7bff, inset 0 0 0 4px #1b1254, 0 4px 0 #120c38; }
.boost-back .boost-bolt { width: 36px; height: 36px; box-shadow: 0 0 12px rgba(212,255,58,.3); }
.boost-back .boost-bolt svg { width: 15px; height: 27px; }
.boost-back[hidden], .boost-face[hidden] { display: none; }
.boost-face { position: absolute; inset: 0; border-radius: 9px; padding: 5px 3px 0; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 42%, rgba(255,255,255,.08), rgba(255,255,255,0)), #12131c; box-shadow: inset 0 0 0 3px var(--c), 0 4px 0 var(--e); }
.boost-face small { font-size: 8.5px; font-weight: 800; line-height: 1; letter-spacing: -.1px; color: var(--c); white-space: nowrap; }
.boost-face img { width: 48px; height: 48px; margin-top: 4px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.55)); }
.boost-face b { position: absolute; left: 3px; right: 3px; bottom: 3px; height: 22px; border-radius: 0 0 6px 6px; display: grid; place-items: center; background: var(--c); color: #0b0c10; font-size: 14px; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.boost-face.boost-r-c b { background: #3a3d4f; color: var(--fg); }
.boost-face.boost-r-m { background: radial-gradient(90% 60% at 50% 42%, rgba(255,195,55,.28), rgba(255,195,55,0)), #1e0c06; box-shadow: inset 0 0 0 3px #ff5a36, inset 0 0 0 5px #ffc337, 0 4px 0 #a82a12; }
.boost-face.boost-r-m b { background: linear-gradient(90deg, #ff5a36, #ffc337); }
.boost-face.boost-r-l { background: radial-gradient(90% 60% at 50% 42%, rgba(255,195,55,.22), rgba(255,195,55,0)), #1a1306; }

/* legend: colour dot, multiplier, chance */
.boost-leg { margin-top: 10px; padding-bottom: 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.boost-li { height: 40px; min-width: 0; border-radius: 10px; background: var(--tile); box-shadow: 0 4px 0 var(--tile-edge), inset 0 1px 0 rgba(255,255,255,.06); display: grid; place-content: center; justify-items: center; gap: 3px; color: var(--fg); }
.boost-li b { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 900; line-height: 1; white-space: nowrap; }
.boost-li b i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.boost-li small { font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--fg2); white-space: nowrap; }
.boost-li.on { box-shadow: 0 4px 0 var(--c), inset 0 0 0 1.5px var(--c); background: var(--tile-hi); }

/* lobby tile: three cards fanned out over a glow, the mythic in front */
.boost-tile { overflow: hidden; }
.boost-tglow { position: absolute; left: 4cqw; right: 4cqw; top: 6cqw; height: 86cqw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,120,60,.5), rgba(255,120,60,.1) 60%, rgba(139,123,255,0)); }
.boost-tfan { position: absolute; left: 0; right: 0; top: 17cqw; height: 66cqw; }
.boost-tcard { position: absolute; left: 50%; top: 0; width: 36cqw; height: 54cqw; margin-left: -18cqw; border-radius: 4.5cqw; overflow: hidden; background: #12131c; box-shadow: inset 0 0 0 1.4cqw var(--c), 0 2.2cqw 0 rgba(0,0,0,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 12cqw; }
.boost-tcard img { width: 26cqw; height: 26cqw; object-fit: contain; }
.boost-tcard b { position: absolute; left: 1.4cqw; right: 1.4cqw; bottom: 1.4cqw; height: 11cqw; display: grid; place-items: center; background: var(--c); color: #0b0c10; font-family: Figtree, Inter, sans-serif; font-size: 7.5cqw; font-weight: 900; letter-spacing: -.3cqw; }
.boost-tcard.boost-tmyth { z-index: 1; width: 40cqw; height: 60cqw; margin-left: -20cqw; top: -3cqw; background: radial-gradient(90% 60% at 50% 40%, rgba(255,195,55,.3), rgba(255,195,55,0)), #1e0c06; box-shadow: inset 0 0 0 1.4cqw #ff5a36, inset 0 0 0 2.4cqw #ffc337, 0 2.2cqw 0 rgba(0,0,0,.55), 0 0 12cqw rgba(255,120,60,.7); }
.boost-tmyth img { width: 30cqw; height: 30cqw; }
.boost-tmyth b { left: 2.4cqw; right: 2.4cqw; bottom: 2.4cqw; background: linear-gradient(90deg, #ff5a36, #ffc337); font-size: 8.5cqw; }
