/* Pack Battles (owner 11/3: "Pack battles would be cool"). public-site/card-battles.js. Prefix pbt-.
   Dark glass + gold, same language as the Cards page (cards.css: .tc-card, .tc-pk, rarity --rc; cases.css: .cx-btn, .cx-h). */
.pbt-wrap { position: relative; min-width: 0; }
.pbt-fx { position: absolute; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.pbt { display: grid; gap: 18px; min-width: 0; font-family: "Barlow Condensed", system-ui, sans-serif; color: #d3d8e1; --pg: #f6d77a; --pg2: #cf961f; }
.pbt > * { min-width: 0; }
.pbt button { min-height: 0 !important; }
.pbt-loading { display: grid; justify-items: center; gap: 12px; padding: 36px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); font-size: 17px; text-align: center; color: #d3d8e1; }
.pbt-loading p { margin: 0; }
.pbt-note { padding: 12px 16px; border-radius: 12px; background: rgba(228,174,57,.08); border: 1px solid rgba(228,174,57,.28); color: #f3d9a6; font-size: 16px; font-weight: 600; }

/* ── hero ── */
.pbt-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 24px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(70% 160% at 0% 50%, rgba(228,174,57,.32), transparent 62%), radial-gradient(50% 120% at 100% 0%, rgba(255,211,107,.12), transparent 60%), linear-gradient(135deg, #271c07, #0e0d10 70%);
  border: 1px solid rgba(246,215,122,.5); box-shadow: 0 0 34px -12px rgba(228,174,57,.7), inset 0 1px 0 rgba(255,236,190,.18); }
.pbt-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(246,215,122,.04) 22px 24px); }
.pbt-hero-packs { position: relative; width: 156px; height: 118px; z-index: 1; }
.pbt-hp { position: absolute; bottom: 4px; }
.pbt-hp .tc-pk { width: 62px; }
.pbt-hp.p0 { left: 0; transform: rotate(-13deg); }
.pbt-hp.p1 { left: 46px; bottom: 16px; z-index: 2; }
.pbt-hp.p1 .tc-pk { width: 66px; }
.pbt-hp.p2 { left: 94px; transform: rotate(13deg); }
.pbt-hero-txt { position: relative; z-index: 1; display: grid; gap: 4px; min-width: 0; }
.pbt-hero-txt em { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #ffd98a; font-style: normal; }
.pbt-hero-txt b { font: 800 38px/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 0 0 20px rgba(228,174,57,.55); }
.pbt-hero-txt > span { color: #efe3c8; font-size: 16px; line-height: 1.35; }
.pbt-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pbt-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(0,0,0,.32); border: 1px solid rgba(246,215,122,.25); font: 700 14px/1 "Barlow Condensed", sans-serif; color: #f3e6c4; }
.pbt-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 900 13px/1 "Barlow Condensed", sans-serif; font-style: normal; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); }

/* ── start a battle ── */
.pbt-create { display: grid; gap: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 60%); border: 1px solid rgba(255,255,255,.09); }
.pbt-create .cx-h { margin: 0; }
.pbt-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pbt-pack { display: grid; justify-items: center; gap: 5px; padding: 14px 8px 12px !important; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #dfe3ea; cursor: pointer; text-transform: none;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.pbt-pack .tc-pk { width: 70px; animation: none; }
.pbt-pack b { font: 800 18px/1.05 "Barlow Condensed", sans-serif; color: #fff; margin-top: 4px; }
.pbt-pack span { font: 700 15px/1 "Barlow Condensed", sans-serif; color: var(--pg); }
.pbt-pack:hover { border-color: rgba(246,215,122,.45); transform: translateY(-2px); }
.pbt-pack.on { border-color: var(--pg); background: radial-gradient(80% 70% at 50% 30%, rgba(246,215,122,.2), transparent 70%), rgba(255,255,255,.04); box-shadow: 0 0 22px -6px rgba(246,215,122,.75), inset 0 1px 0 rgba(255,255,255,.12); }
.pbt-pack.on .tc-pk { animation: tcPkFloat 3s ease-in-out infinite; }
.pbt-opts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: end; }
.pbt-seg small, .pbt-to small { display: block; margin-bottom: 7px; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8d95a5; }
.pbt-to small i { font-style: normal; letter-spacing: .02em; text-transform: none; opacity: .8; }
.pbt-seg > div { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.pbt-seg button { width: 48px; height: 38px; padding: 0 !important; border-radius: 999px; border: 0; background: transparent; color: #c9d0da; font: 800 19px/1 "Barlow Condensed", sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.pbt-seg button:hover:not(:disabled):not(.on) { background: rgba(255,255,255,.07); color: #fff; }
.pbt-seg button.on { color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); box-shadow: 0 4px 14px rgba(228,174,57,.35); }
.pbt-seg button:disabled { opacity: .28; cursor: not-allowed; }
.pbt-to { display: block; min-width: 0; }
.pbt-to input { display: block; width: 100%; box-sizing: border-box; height: 46px; margin: 0; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); color: #fff; font: 600 17px/1 "Barlow Condensed", sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.pbt-to input::placeholder { color: #6f7786; }
.pbt-to input:focus { border-color: var(--pg); box-shadow: 0 0 0 3px rgba(246,215,122,.15); }
.pbt-solo { margin: -6px 0 0; color: #f3d9a6; font-size: 14px; }
.pbt-solo[hidden] { display: none; }
.pbt-go { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: linear-gradient(100deg, rgba(228,174,57,.13), rgba(228,174,57,.02) 60%); border: 1px solid rgba(228,174,57,.26); }
.pbt-pot { display: grid; gap: 3px; }
.pbt-pot small { font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c9b98f; }
.pbt-pot b { font: 800 30px/1 "Barlow Condensed", sans-serif; color: #fff; }
.pbt-pot span { font-size: 14px; color: #c9b98f; }
.pbt-go-act { display: grid; justify-items: end; gap: 6px; text-align: right; }
.pbt-go-act small { max-width: 360px; font-size: 13px; color: #9aa2b1; }

/* ── lists ── */
.pbt-lists { display: grid; gap: 20px; min-width: 0; }
.pbt-sec { display: grid; gap: 12px; min-width: 0; }
.pbt-rows { display: grid; gap: 10px; }
.pbt-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.pbt-row.open { border-color: rgba(246,215,122,.3); background: linear-gradient(100deg, rgba(228,174,57,.1), rgba(255,255,255,.02) 55%); }
.pbt-row-pack { width: 52px; display: grid; place-items: center; }
.pbt-row-pack .tc-pk { width: 44px; animation: none; }
.pbt-row-main { display: grid; gap: 4px; min-width: 0; }
.pbt-row-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pbt-row-t b { font: 800 20px/1 "Barlow Condensed", sans-serif; color: #fff; }
.pbt-row-main > small { font-size: 14px; color: #9aa2b1; overflow-wrap: anywhere; }
.pbt-row-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.pbt-row-act .cx-btn { height: 40px; padding: 0 16px !important; font-size: 15px; }
.pbt-clock { padding: 0 4px; font: 800 16px/1 "Barlow Condensed", sans-serif; color: var(--pg); font-variant-numeric: tabular-nums; }
.pbt-clock.low, .pbt-status b.low { color: #ff8a6a; }
.pbt-pips { display: inline-flex; align-items: center; gap: 4px; }
.pbt-pips i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(246,215,122,.5); box-sizing: border-box; }
.pbt-pips i.on { background: var(--pg); border-color: var(--pg); box-shadow: 0 0 8px rgba(246,215,122,.6); }
.pbt-pips i.me { background: #fff; border-color: #fff; }
.pbt-pips small { margin-left: 4px; font: 700 13px/1 "Barlow Condensed", sans-serif; color: #c9b98f; }
.pbt-chip { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.pbt-chip.inv { color: #ffd98a; background: rgba(246,215,122,.1); }
.pbt-chip.won { color: #6dff9a; background: rgba(109,255,154,.08); }
.pbt-chip.lost { color: #ff7a7a; background: rgba(255,122,122,.08); }
.pbt-chip.tie { color: #d4dbe6; background: rgba(212,219,230,.06); }
.pbt-chip.off { color: #9aa2b1; border-color: rgba(255,255,255,.16); }
.pbt-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: #c3c9d3; }
.pbt-vs span { overflow-wrap: anywhere; }
.pbt-vs span.w { color: var(--pg); font-weight: 700; }
.pbt-vs span.me { color: #8fe3ff; }
.pbt-vs span.w.me { color: var(--pg); }
.pbt-vs em { font-style: normal; font-weight: 700; color: #fff; }
.pbt-vs > i { font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6f7786; }
.cx-btn.pbt-new small { padding: 3px 6px; border-radius: 999px; background: #1c1405; color: var(--pg); font-size: 11px; letter-spacing: .1em; opacity: 1; }
.cx-btn.pbt-sure { border: 0 !important; color: #fff !important; background: linear-gradient(135deg, #ff9a4a, #e0451b) !important; box-shadow: 0 6px 20px rgba(224,69,27,.45) !important; animation: pbtSure .9s ease-in-out infinite; }
@keyframes pbtSure { 50% { filter: brightness(1.18); } }
.cx-btn.pbt-x { border-color: rgba(255,120,100,.4); color: #ffb3a3; }
.pbt-empty { display: grid; gap: 5px; padding: 22px 16px; text-align: center; border-radius: 14px; border: 1px dashed rgba(246,215,122,.3); background: rgba(246,215,122,.03); }
.pbt-empty b { font: 800 20px/1.1 "Barlow Condensed", sans-serif; color: #fff; }
.pbt-empty span { color: #9aa2b1; font-size: 15px; }

/* ── battle screen ── */
.pbt-battle { position: relative; gap: 14px; padding: 16px; border-radius: 20px; isolation: isolate;
  background: radial-gradient(100% 55% at 50% 0%, rgba(228,174,57,.14), transparent 70%), linear-gradient(180deg, #16130d, #0b0b0e);
  border: 1px solid rgba(246,215,122,.35); box-shadow: 0 0 50px -18px rgba(228,174,57,.6), 0 30px 60px -30px #000; }
.pbt-battle::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(255,236,170,.28), transparent 70%); }
.pbt-battle.pbt-flash::after { animation: pbtFlash .9s ease-out; }
@keyframes pbtFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.pbt-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cx-btn.pbt-backbtn { height: 40px; padding: 0 14px !important; font-size: 15px; gap: 6px; }
.pbt-bar-mid { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pbt-bar-mid > div { min-width: 0; }
.pbt-bar-pk .tc-pk { width: 34px; animation: none; }
.pbt-bar-mid b { display: block; font: 800 22px/1.05 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbt-bar-mid small { font-size: 13px; color: #9aa2b1; }
.pbt-potbox { padding: 7px 14px; border-radius: 12px; text-align: right; background: rgba(0,0,0,.35); border: 1px solid rgba(246,215,122,.25); }
.pbt-potbox small { display: block; font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c9b98f; }
.pbt-potbox b { display: block; margin-top: 3px; font: 800 24px/1 "Barlow Condensed", sans-serif; color: var(--pg); font-variant-numeric: tabular-nums; }
.pbt-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.035); font: 700 17px/1.25 "Barlow Condensed", sans-serif; color: #e8e2d0; text-align: center; }
.pbt-status b { color: var(--pg); font-variant-numeric: tabular-nums; }
.pbt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pg); box-shadow: 0 0 10px var(--pg); animation: cxPulse 1.2s ease-in-out infinite; }
.pbt-dot.hot { background: #ff6a3d; box-shadow: 0 0 12px #ff6a3d; }
.pbt-suspense .pbt-status { color: #fff; letter-spacing: .06em; }

.pbt-seats { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 12px; }
.pbt-n2 { --n: 2; } .pbt-n3 { --n: 3; } .pbt-n4 { --n: 4; }
.pbt-seat { position: relative; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .3s, box-shadow .3s, opacity .5s, filter .5s; }
.pbt-seat.me { border-color: rgba(143,227,255,.35); }
.pbt-seat.empty { border-style: dashed; border-color: rgba(246,215,122,.25); background: rgba(246,215,122,.02); }
.pbt-seat-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pbt-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 16px/1 "Barlow Condensed", sans-serif; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); }
.pbt-seat.me .pbt-av { background: linear-gradient(135deg, #bff1ff, #4fb6dc); }
.pbt-seat.empty .pbt-av { color: #8d95a5; background: rgba(255,255,255,.08); }
.pbt-seat-h b { min-width: 0; font: 800 18px/1.1 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbt-seat.empty .pbt-seat-h b { color: #8d95a5; }
.pbt-seat-h em { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: rgba(143,227,255,.15); color: #8fe3ff; font: 800 11px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.pbt-crown { flex: 0 0 auto; margin-left: auto; font-size: 18px; line-height: 1; opacity: 0; transform: scale(.4) translateY(6px); transition: opacity .35s, transform .35s cubic-bezier(.2,.8,.3,1.4); }
.pbt-seat.lead .pbt-crown, .pbt-seat.won .pbt-crown { opacity: 1; transform: none; }
.pbt-got { position: absolute; top: -10px; right: 10px; z-index: 3; padding: 4px 9px; border-radius: 999px; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; white-space: nowrap; color: #1c1405; background: linear-gradient(135deg, #f6d77a, #cf961f); box-shadow: 0 4px 14px rgba(228,174,57,.5); animation: pbtPop .5s cubic-bezier(.2,.8,.3,1.5) 1.2s both; }
@keyframes pbtPop { from { opacity: 0; transform: scale(.4); } }
.pbt-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.3); }
.pbt-total small { font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8d95a5; white-space: nowrap; }
.pbt-total b { font: 800 24px/1 "Barlow Condensed", sans-serif; color: #fff; font-variant-numeric: tabular-nums; transition: color .3s, text-shadow .3s; }
.pbt-seat.lead .pbt-total b, .pbt-seat.won .pbt-total b { color: var(--pg); text-shadow: 0 0 14px rgba(246,215,122,.5); }
.pbt-seat.lead { border-color: rgba(246,215,122,.55); box-shadow: 0 0 24px -10px rgba(246,215,122,.8); }
.pbt-seat.won { border-color: var(--pg); background: radial-gradient(90% 45% at 50% 0%, rgba(246,215,122,.22), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow: 0 0 44px -8px rgba(246,215,122,.85), inset 0 0 0 1px rgba(246,215,122,.35); }
.pbt-seat.lost { opacity: .5; filter: grayscale(.7); }
.pbt-seat.lost .pbt-pull em { text-decoration: line-through; text-decoration-color: rgba(255,120,100,.8); }
.pbt-seat.pbt-hit { animation: pbtHit 1.1s ease-out; }
@keyframes pbtHit { 25% { box-shadow: 0 0 48px 2px rgba(246,215,122,.85); border-color: var(--pg); } }
.pbt-seat.pbt-gulp { animation: pbtGulp .55s cubic-bezier(.2,.8,.3,1.4); }
@keyframes pbtGulp { 40% { transform: scale(1.035); } }
.pbt-sent { margin-top: -4px; text-align: center; font: 800 12px/1.2 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #ff9a8a; }

/* the stage: sealed pack → card flips → best card */
.pbt-stage { position: relative; width: min(180px, 74%); aspect-ratio: 5 / 7; margin: 4px auto 6px; display: grid; place-items: center; }
.pbt-sealed { display: grid; place-items: center; width: 100%; height: 100%; }
.pbt-sealed .tc-pk { width: 72%; }
.pbt-ph-ripping .pbt-sealed .tc-pk { animation: pbtShake .13s linear infinite; filter: drop-shadow(0 0 18px rgba(246,215,122,.75)); }
@keyframes pbtShake { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-2px, 1px) rotate(-2deg); } 75% { transform: translate(2px, -1px) rotate(2deg); } }
.pbt-wait { display: grid; justify-items: center; gap: 12px; padding: 0 6px; text-align: center; font: 700 15px/1.2 "Barlow Condensed", sans-serif; color: #9aa2b1; }
.pbt-wait i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(246,215,122,.15); border-top-color: var(--pg); animation: cxSpin 1s linear infinite; }
.pbt-flip { position: absolute; inset: 0; }
.pbt-face { position: absolute; inset: 0; z-index: 1; }
.pbt-face .tc-card { width: 100%; height: 100%; }
.pbt-back { position: absolute; inset: 0; z-index: 2; border-radius: 12px; opacity: 0; background: #120a22 url(/assets/cards/back.webp?v=2) center / 100% 100% no-repeat; box-shadow: 0 10px 24px rgba(0,0,0,.55); }
.pbt-back.on { opacity: 1; animation: pbtBackPulse 1.1s ease-in-out infinite; }
@keyframes pbtBackPulse { 0%, 100% { box-shadow: 0 10px 24px rgba(0,0,0,.55), 0 0 0 0 rgba(246,215,122,0); transform: scale(1); } 50% { box-shadow: 0 10px 24px rgba(0,0,0,.55), 0 0 30px 4px rgba(246,215,122,.55); transform: scale(1.03); } }
.pbt-suspense .pbt-stage { animation: pbtTremble .16s linear infinite; }
@keyframes pbtTremble { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-1px, 1px); } 66% { transform: translate(1px, -1px); } }
.pbt-flip.go { animation: pbtFlip .55s ease-in-out both; }
.pbt-flip.go .pbt-face { animation: pbtShow .55s linear both; }
.pbt-flip.go .pbt-back { animation: pbtHide .55s linear both; }
@keyframes pbtFlip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes pbtShow { 0%, 49% { visibility: hidden; } 50%, 100% { visibility: visible; } }
@keyframes pbtHide { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.pbt-burst { position: absolute; inset: -18%; z-index: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--rc, #fff) 55%, transparent), transparent 72%); }
.pbt-flip.big .pbt-burst { inset: -42%; }
.pbt-flip.go .pbt-burst { animation: pbtBurst 1.1s ease-out .25s both; }
.pbt-flip.still.big .pbt-burst { opacity: .4; }
@keyframes pbtBurst { 0% { opacity: 0; transform: scale(.55); } 35% { opacity: 1; } 100% { opacity: .35; transform: scale(1.08); } }
/* compact card face on the stage (no info line), like the duel screen */
.pbt-stage .tc-info, .pbt-fly .tc-info { display: none !important; }
.pbt-stage .tc-inner, .pbt-fly .tc-inner { grid-template-rows: auto 1fr auto auto !important; gap: 4px; padding: 8px; }
.pbt-stage .tc-art, .pbt-fly .tc-art { min-height: 0; }
.pbt-stage .tc-art img, .pbt-fly .tc-art img { object-fit: contain !important; width: 100%; height: 100%; }
.pbt-stage .tc-name { font-size: 16px !important; line-height: 1.05; }
.pbt-stage .tc-fin { max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the five pulls under each seat */
.pbt-pulls { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pbt-slot, .pbt-pull { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 38px; margin: 0; padding: 0 9px 0 4px; border-radius: 9px; box-sizing: border-box; list-style: none; }
.pbt-slot { grid-template-columns: 1fr; place-items: center; background: rgba(255,255,255,.025); border: 1px dashed rgba(255,255,255,.08); color: #4b515c; font: 800 13px/1 "Barlow Condensed", sans-serif; }
.pbt-pull { background: linear-gradient(90deg, color-mix(in srgb, var(--rc, #9ea4ac) 22%, transparent), rgba(255,255,255,.03) 72%); border: 1px solid color-mix(in srgb, var(--rc, #9ea4ac) 45%, transparent); }
.pbt-pull.in { animation: pbtIn .45s cubic-bezier(.2,.8,.3,1.25) .2s both; }
@keyframes pbtIn { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
.pbt-pull.f-gold, .pbt-pull.f-black, .pbt-pull.f-prism, .pbt-pull.f-genesis { box-shadow: inset 0 0 0 1px rgba(246,215,122,.55), 0 0 14px -4px rgba(246,215,122,.7); }
.pbt-pull.f-animated { box-shadow: inset 0 0 0 1px rgba(255,170,90,.6), 0 0 14px -4px rgba(255,140,60,.75); } /* Animated (11/5) */
.pbt-th { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: rgba(0,0,0,.4); }
.pbt-th img { width: 100%; height: 100%; object-fit: contain; }
.pbt-th.av { border-radius: 50%; }
.pbt-th.av img { object-fit: cover; }
.pbt-pn { display: grid; gap: 2px; min-width: 0; }
.pbt-pn b { font: 700 14px/1.05 "Barlow Condensed", sans-serif; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbt-pn small { font: 700 10px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--rc, #9ea4ac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbt-pull em { font: 800 15px/1 "Barlow Condensed", sans-serif; font-style: normal; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbt-pull.big em { color: var(--pg); }

/* winner banner + actions */
.pbt-banner { position: relative; display: grid; justify-items: center; gap: 5px; padding: 16px; border-radius: 16px; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #3a2a08, #17120a); border: 1px solid var(--pg); box-shadow: 0 0 40px -10px rgba(246,215,122,.8); animation: pbtBan .6s cubic-bezier(.2,.8,.3,1.3) both; }
.pbt-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.22) 48%, transparent 60%); background-size: 260% 100%; animation: pbtSweep 2.8s ease-in-out .4s infinite; }
@keyframes pbtSweep { 0% { background-position: 140% 0; } 60%, 100% { background-position: -40% 0; } }
@keyframes pbtBan { from { opacity: 0; transform: scale(.82) translateY(-8px); } }
.pbt-banner small { position: relative; font: 800 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: #ffd98a; }
.pbt-banner b { position: relative; font: 900 clamp(32px, 6vw, 48px)/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: transparent;
  background: linear-gradient(180deg, #fff6d8, #f6d77a 48%, #cf961f); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 2px 10px rgba(228,174,57,.45)); overflow-wrap: anywhere; }
.pbt-banner span { position: relative; font-size: 15px; color: #efe3c8; }
.pbt-banner.tie { border-color: #d4dbe6; background: linear-gradient(135deg, #23262c, #121317); box-shadow: 0 0 30px -14px rgba(212,219,230,.6); }
.pbt-banner.tie b { background: linear-gradient(180deg, #fff, #aeb5c0); -webkit-background-clip: text; background-clip: text; }
.pbt-banner.lost { border-color: rgba(255,140,110,.6); }
.pbt-banner.lost span { color: #ffc9bf; }
.pbt-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pbt-foot:empty { display: none; }

/* the losers' cards flying to the winner + confetti (inside .pbt-fx) */
.pbt-fly { position: absolute; z-index: 2; margin: 0; pointer-events: none; will-change: transform, opacity; transition: transform .95s cubic-bezier(.55,0,.25,1), opacity .35s ease .65s; }
.pbt-fly .pbt-burst { display: none; }
.pbt-confetti { position: absolute; width: 0; height: 0; }
.pbt-confetti i { position: absolute; left: 0; top: 0; width: var(--w); height: calc(var(--w) * .45); border-radius: 1px; background: var(--c); opacity: 0; animation: pbtConf var(--t) linear var(--d) forwards; }
@keyframes pbtConf {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); animation-timing-function: cubic-bezier(.15,.7,.35,1); }
  32% { opacity: 1; transform: translate(calc(var(--dx) * .8), var(--dy)) rotate(calc(var(--r) * .4)); animation-timing-function: cubic-bezier(.45,0,.8,.6); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + var(--fall))) rotate(var(--r)); }
}

/* ── phones ── */
@media (max-width: 760px) {
  .pbt { gap: 14px; }
  .pbt-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pbt-hero-packs { display: none; }
  .pbt-hero-txt b { font-size: 30px; }
  .pbt-hero-txt > span { font-size: 15px; }
  .pbt-steps span { font-size: 13px; }
  .pbt-create { padding: 14px; gap: 14px; }
  .pbt-packs { gap: 8px; }
  .pbt-pack { padding: 10px 4px 10px !important; }
  .pbt-pack .tc-pk { width: 54px; }
  .pbt-pack b { font-size: 15px; }
  .pbt-pack span { font-size: 14px; }
  .pbt-opts { grid-template-columns: minmax(0, 1fr); }
  .pbt-go { display: grid; padding: 12px; }
  .pbt-go-act { justify-items: stretch; text-align: left; }
  .pbt-go-act .cx-btn { width: 100%; }
  .pbt-row { grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px; }
  .pbt-row-act { grid-column: 1 / -1; justify-content: flex-start; }
  .pbt-row-act .cx-btn { flex: 1 1 auto; padding: 0 12px !important; }
  .pbt-battle { padding: 10px; gap: 10px; border-radius: 16px; }
  .pbt-bar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .pbt-backbtn span { display: none; }
  .pbt-bar-mid b { font-size: 18px; }
  .pbt-bar-mid small { font-size: 12px; }
  .pbt-potbox { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 6px 12px; }
  .pbt-potbox b { margin: 0; font-size: 20px; }
  .pbt-status { font-size: 15px; padding: 8px 10px; }
  .pbt-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pbt-seat { padding: 8px; gap: 7px; border-radius: 12px; }
  .pbt-av { width: 24px; height: 24px; font-size: 13px; }
  .pbt-seat-h { gap: 6px; }
  .pbt-seat-h b { font-size: 15px; }
  .pbt-seat-h em { padding: 2px 5px; font-size: 10px; }
  .pbt-crown { font-size: 15px; }
  .pbt-total { justify-content: center; padding: 6px 8px; }
  .pbt-total small { display: none; }
  .pbt-total b { font-size: 20px; }
  .pbt-stage { width: min(150px, 84%); margin: 2px auto 4px; }
  .pbt-stage .tc-name { font-size: 13px !important; }
  .pbt-stage .tc-inner { padding: 6px; }
  .pbt-slot, .pbt-pull { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 5px; height: 32px; padding: 0 6px 0 3px; border-radius: 7px; }
  .pbt-slot { grid-template-columns: 1fr; }
  .pbt-th { width: 24px; height: 24px; border-radius: 5px; }
  .pbt-pn b { font-size: 12px; }
  .pbt-pn small { font-size: 8.5px; letter-spacing: .05em; }
  .pbt-pull em { font-size: 12px; }
  .pbt-got { top: -9px; right: 6px; padding: 3px 7px; font-size: 11px; }
  .pbt-sent { font-size: 10px; }
  .pbt-banner { padding: 12px 10px; }
  .pbt-banner span { font-size: 14px; }
  .pbt-foot .cx-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pbt-flip.go, .pbt-flip.go .pbt-face, .pbt-flip.go .pbt-back, .pbt-suspense .pbt-stage, .pbt-ph-ripping .pbt-sealed .tc-pk, .pbt-banner::before { animation: none !important; }
  .pbt-flip.go .pbt-back { opacity: 0; }
}
