/* =====================================================================
   Fun kit (public/js/fx/) + end-of-game reward tray.
   px only — no vw/vh/dvh/svh, no clamp()/min()/max() — so every rule here
   is safe inside the fixed, transform-scaled game stage as well as on a
   normal page. Audience skews older: big type, strong contrast, nothing
   fast-blinking (pulses are slow, >= 1.6s, low amplitude).
   ===================================================================== */

/* One star gold for every reward surface: meter, Star Bar, tray, chip,
   collection and reveal. */
:root{ --star-gold:#ffd23f; --star-gold-deep:#e9a01a; --star-ink:#3a2300; }

/* ---------------- pressable chunky button ---------------- */
.fxPress{
  position:relative; border:none; border-radius:14px; cursor:pointer;
  font-weight:800; letter-spacing:.2px;
  transform:translateY(0); transition:transform .12s cubic-bezier(.3,1.6,.5,1), box-shadow .12s ease;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.fxPress:active{ transform:translateY(4px) scale(.97); }
.fxPressGold{
  background:linear-gradient(180deg,var(--star-gold) 0%,var(--star-gold-deep) 100%); color:#3a2300;
  box-shadow:0 5px 0 #a8701d, 0 8px 14px rgba(0,0,0,.35);
  padding:12px 20px; font-size:18px;
}
.fxPressGold:active{ box-shadow:0 1px 0 #a8701d, 0 3px 6px rgba(0,0,0,.35); }
.fxPressGhost{
  background:transparent; color:#f2efe6; border:2px solid rgba(242,239,230,.45);
  padding:10px 18px; font-size:17px;
}

/* ---------------- shine sweep + glow ---------------- */
.fxShine{ position:relative; overflow:hidden; }
.fxShine::after{
  content:''; position:absolute; top:0; bottom:0; left:-60%; width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-20deg); animation:fxShineSweep 3.2s ease-in-out infinite; pointer-events:none;
}
@keyframes fxShineSweep{ 0%,55%{ left:-60%; } 100%{ left:130%; } }
.fxGlow{ animation:fxGlow 2.4s ease-in-out infinite; }
@keyframes fxGlow{
  0%,100%{ box-shadow:0 0 0 rgba(255,210,90,0), 0 0 10px rgba(255,210,90,.35); }
  50%{ box-shadow:0 0 0 rgba(255,210,90,0), 0 0 22px rgba(255,210,90,.75); }
}
.fxPulse{ animation:fxPulse .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes fxPulse{ 0%{ transform:scale(1); } 40%{ transform:scale(1.12); } 100%{ transform:scale(1); } }

/* ---------------- flying coin ---------------- */
.fxCoin{
  position:fixed; z-index:95; pointer-events:none; width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:20px; color:#7a4c00; font-weight:900;
  background:radial-gradient(circle at 35% 30%,#fff3b8 0%,#ffd45a 45%,#d99a1e 100%);
  box-shadow:0 0 0 2px #b9801a inset, 0 3px 8px rgba(0,0,0,.4);
}

/* ---------------- celebration overlay ---------------- */
.fxCelebrate{
  position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center;
  background:rgba(8,14,22,.72); overflow:hidden; cursor:pointer;
  animation:fxFadeIn .25s ease both;
}
.fxCelebrateOut{ animation:fxFadeOut .25s ease both; }
.fxRays{
  position:absolute; left:50%; top:50%; width:1400px; height:1400px; margin:-700px 0 0 -700px;
  background:repeating-conic-gradient(from 0deg, rgba(255,210,63,.22) 0deg 10deg, transparent 10deg 20deg);
  border-radius:50%; animation:fxSpin 14s linear infinite; pointer-events:none;
  -webkit-mask-image:radial-gradient(circle, #000 0%, transparent 62%);
          mask-image:radial-gradient(circle, #000 0%, transparent 62%);
}
@keyframes fxSpin{ to{ transform:rotate(360deg); } }
.fxCelebrateCard{
  position:relative; text-align:center; padding:28px 34px; border-radius:22px;
  background:linear-gradient(180deg,#1f3a50,#132636); border:3px solid var(--star-gold);
  box-shadow:0 0 40px rgba(255,210,90,.45); color:#f7f1e3;
  animation:fxPopIn .5s cubic-bezier(.3,1.6,.5,1) both;
}
.fxCelebrateIcon{ font-size:76px; line-height:1; }
.fxCelebrateTitle{ font-size:30px; font-weight:900; color:var(--star-gold); margin-top:10px; }
.fxCelebrateSub{ font-size:19px; font-weight:700; margin-top:8px; }
.fxCelebrateTap{ font-size:15px; color:#b9c9d4; margin-top:16px; }
@keyframes fxPopIn{ 0%{ transform:scale(.6); opacity:0; } 100%{ transform:scale(1); opacity:1; } }
@keyframes fxFadeIn{ from{ opacity:0; } to{ opacity:1; } }
@keyframes fxFadeOut{ from{ opacity:1; } to{ opacity:0; } }

/* ---------------- bottom sheet ---------------- */
.fxSheet{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:85;
  margin:0 auto; width:auto; max-width:520px; /* page-level, never inside the stage */
  background:#f7f1e3; color:#1c2630; border-radius:18px; padding:16px 18px;
  box-shadow:0 10px 30px rgba(0,0,0,.45); display:grid; grid-template-columns:auto 1fr; gap:10px 12px;
  align-items:center; animation:fxSheetIn .35s cubic-bezier(.3,1.4,.5,1) both;
}
.fxSheetOut{ animation:fxSheetOutA .25s ease both; }
.fxSheetIcon{ font-size:32px; line-height:1; }
.fxSheetText{ font-size:18px; font-weight:700; line-height:1.35; }
.fxSheetBtns{ grid-column:1 / -1; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.fxSheet .fxPressGhost{ color:#1c2630; border-color:rgba(28,38,48,.35); }
@keyframes fxSheetIn{ from{ transform:translateY(40px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
@keyframes fxSheetOutA{ to{ transform:translateY(40px); opacity:0; } }

/* ---------------- mute toggle ---------------- */
.fxSoundToggle{
  background:rgba(0,0,0,.25); color:#f2efe6; border:1.5px solid rgba(242,239,230,.35);
  border-radius:999px; padding:6px 12px; font-size:15px; font-weight:700; cursor:pointer;
}

@keyframes fxStripes{ from{ background-position:0 0; } to{ background-position:34px 0; } }

/* guest "save your progress" card (home only) */
.guestSaveCard{
  margin:10px auto 0; width:100%; max-width:440px; text-align:left;
  display:grid; grid-template-columns:auto 1fr; gap:8px 12px; align-items:center;
  background:#fdf6e6; color:#1c2630; border-radius:18px; padding:14px 16px;
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
.guestSaveIcon{ font-size:28px; line-height:1; }
.guestSaveText{ font-size:16px; font-weight:700; line-height:1.35; }
.guestSaveBtns{ grid-column:1 / -1; display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.guestSaveCard .fxPressGhost{ color:#1c2630; border-color:rgba(28,38,48,.35); }

/* ---------------- end-of-game reward tray ----------------
   reward-tray.js. Medal reveal -> tokens burst out -> "Collect all ⭐".
   Three size variants (.rtPage on normal pages, .rtLand inside the
   landscape stage — rendered at ~0.45-0.5x on phones, hence the big
   authored sizes — and .rtPort inside the portrait stage at ~1x).
   Same star gold (--star-gold) as the Star Bar / chip / meter. */
.rewardTray{
  display:flex; flex-direction:column; gap:8px; box-sizing:border-box;
  border-radius:16px; padding:10px 12px;
  background:linear-gradient(180deg,rgba(255,210,63,.14),rgba(255,210,63,.04));
  border:2px solid rgba(255,210,63,.6);
  animation:fxPopIn .45s cubic-bezier(.3,1.6,.5,1) both;
}
.rewardTop{ display:flex; align-items:center; gap:10px; }
.rewardBottom{ display:flex; align-items:center; gap:12px; }
.rewardTokens{ display:flex; flex-wrap:wrap; gap:6px; flex:1; min-width:0; justify-content:center; }
.rewardToken{
  display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative;
  background:linear-gradient(180deg,#fff0a0 0%,var(--star-gold) 50%,var(--star-gold-deep) 100%); color:var(--star-ink);
  border:none; border-radius:12px; box-shadow:0 4px 0 #a8701d, 0 6px 10px rgba(0,0,0,.35); cursor:pointer;
}
.rewardTray.intro .rewardToken{ animation:rtBurst .5s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes rtBurst{ 0%{ opacity:0; transform:scale(.2) translateY(20px); } 100%{ opacity:1; transform:scale(1) translateY(0); } }
.rewardToken:active{ box-shadow:0 1px 0 #a8701d, 0 3px 6px rgba(0,0,0,.35); transform:translateY(2px); }
.rewardToken.collecting{ opacity:.5; }
.rewardToken.big29{ background:linear-gradient(180deg,#fff8c8 0%,#ffd23f 50%,#ff9a1a 100%); box-shadow:0 4px 0 #a8701d, 0 0 16px rgba(255,210,63,.95); }
.rewardToken.medalTok{ background:radial-gradient(circle at 35% 30%, var(--medalLite), var(--medal) 70%); }
.rewardToken.medalTok.bronze, .trayMedal.bronze{ --medal:#cd7f32; --medalLite:#f0b27a; }
.rewardToken.medalTok.silver, .trayMedal.silver{ --medal:#aeb8be; --medalLite:#ffffff; }
.rewardToken.medalTok.gold, .trayMedal.gold{ --medal:#ffcc33; --medalLite:#fff2a8; }
.rewardTokenAmt{ font-weight:900; line-height:1; }
.rewardTokenLabel{ font-weight:800; line-height:1.1; white-space:nowrap; }
.rewardToken.collected{
  background:rgba(95,207,155,.16); color:#9fe3c2; box-shadow:none; cursor:default; font-weight:900;
  border:2px solid rgba(95,207,155,.55);
}
.rewardDone{ display:flex; align-items:baseline; gap:8px; justify-content:center; color:#9fe3c2; font-weight:900; }
.rewardDoneAmt{ color:var(--star-gold); text-shadow:0 1px 0 #6b4300; }
.rewardCollectAll{ flex:none; font-weight:900; white-space:nowrap; }
.trayMedal{ flex:none; display:flex; flex-direction:column; align-items:center; gap:4px; }
.trayMedalDisc{
  position:relative; overflow:hidden; border-radius:50%; display:grid; place-items:center;
  background:radial-gradient(circle at 35% 30%, var(--medalLite), var(--medal) 62%);
  border:3px solid #fff; box-shadow:0 0 18px var(--medal), 0 3px 0 rgba(0,0,0,.35);
}
.rewardTray.intro .trayMedalDisc{ animation:medalReveal .7s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes medalReveal{ 0%{ transform:scale(0) rotateY(0); opacity:0; } 60%{ transform:scale(1.2) rotateY(320deg); opacity:1; } 100%{ transform:scale(1) rotateY(360deg); } }
.trayMedalStar{ color:#fff; font-weight:900; line-height:1; text-shadow:0 2px 2px rgba(0,0,0,.35); }
.trayMedalShine{
  position:absolute; inset:0; background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%);
  background-size:250% 100%; animation:sbShine 2.4s linear infinite;
}
.trayMedalLabel{ font-weight:900; color:#fff; white-space:nowrap; text-shadow:0 1px 0 rgba(0,0,0,.5); }
.rewardMeter{ flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; }
.rewardMeterHead{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.rewardMeterTitle{ font-weight:800; color:#f7f1e3; min-width:0; }
/* nowrap + flex:none: "0 / 150" never breaks across lines; when space is
   tight the title folds instead. */
.rewardMeterNums{ font-weight:900; color:var(--star-gold); font-variant-numeric:tabular-nums; white-space:nowrap; flex:none; }
.rewardMeterTrack{ border-radius:10px; background:rgba(0,0,0,.45); overflow:hidden; border:1.5px solid rgba(255,210,63,.4); }
.rewardMeterFill{
  height:100%; width:0; border-radius:10px; background-color:var(--star-gold-deep);
  background-image:repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 10px, rgba(255,255,255,0) 10px 20px);
  background-size:28px 28px; animation:fxStripes 1.4s linear infinite;
  transition:width .9s cubic-bezier(.3,1.3,.5,1);
}
.rewardTray.full .rewardMeterFill{ background-color:var(--star-gold); box-shadow:0 0 12px rgba(255,210,63,.9); }
.rewardMeterFoot{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.rewardMaxTag{ display:none; font-weight:900; color:var(--star-gold); white-space:nowrap; }
.rewardTray.full .rewardMaxTag{ display:block; }
.rewardMsg{ font-weight:800; color:#f7f1e3; text-align:center; flex:1; }
.rewardMsg .big{ display:block; }
.rewardExtra{ font-weight:800; color:var(--star-gold); text-align:center; }
.rewardPending{ font-weight:700; color:#c9d6de; text-align:center; opacity:.85; }

/* page variant (4p end screen, normal flow) */
.rewardTray.rtPage{ margin:12px auto 0; width:460px; max-width:100%; }
.rtPage .rewardToken{ min-width:76px; height:48px; padding:0 8px; }
.rtPage .rewardTokenAmt{ font-size:21px; }
.rtPage .rewardTokenLabel{ font-size:12.5px; margin-top:2px; }
.rtPage .trayMedalDisc{ width:66px; height:66px; } .rtPage .trayMedalStar{ font-size:34px; } .rtPage .trayMedalLabel{ font-size:13px; }
.rtPage .rewardCollectAll{ height:48px; font-size:18px; padding:0 16px; border-radius:14px; }
.rtPage .rewardMeterTitle{ font-size:15px; } .rtPage .rewardMeterNums{ font-size:20px; }
.rtPage .rewardMeterTrack{ height:14px; } .rtPage .rewardMaxTag{ font-size:14px; }
.rtPage .rewardDone{ font-size:20px; } .rtPage .rewardDoneAmt{ font-size:28px; }
.rtPage .rewardMsg, .rtPage .rewardExtra{ font-size:17px; } .rtPage .rewardPending{ font-size:16px; } .rtPage .rewardMsg .big{ font-size:32px; }

/* landscape stage (~0.45-0.5x on phones) */
.rewardTray.rtLand{ width:700px; gap:14px; padding:16px 22px; border-radius:24px; border-width:3px; }
.rtLand .rewardTop{ gap:20px; } .rtLand .rewardBottom{ gap:22px; }
.rtLand .rewardTokens{ gap:12px; }
.rtLand .rewardToken{ min-width:128px; height:78px; padding:0 14px; border-radius:18px; }
.rtLand .rewardTokenAmt{ font-size:36px; }
.rtLand .rewardTokenLabel{ font-size:19px; margin-top:3px; }
.rtLand .trayMedalDisc{ width:112px; height:112px; border-width:5px; } .rtLand .trayMedalStar{ font-size:60px; } .rtLand .trayMedalLabel{ font-size:22px; }
.rtLand .rewardCollectAll{ height:80px; font-size:32px; padding:0 28px; border-radius:22px; }
.rtLand .rewardMeter{ gap:8px; }
.rtLand .rewardMeterTitle{ font-size:24px; } .rtLand .rewardMeterNums{ font-size:34px; }
.rtLand .rewardMeterTrack{ height:24px; border-radius:14px; } .rtLand .rewardMeterFill{ border-radius:14px; }
.rtLand .rewardMaxTag{ font-size:22px; }
.rtLand .rewardDone{ font-size:30px; } .rtLand .rewardDoneAmt{ font-size:46px; }
.rtLand .rewardMsg, .rtLand .rewardExtra{ font-size:26px; } .rtLand .rewardPending{ font-size:24px; } .rtLand .rewardMsg .big{ font-size:48px; }

/* portrait stage (~1x) */
.rewardTray.rtPort{ width:100%; gap:7px; padding:8px 10px; }
.rtPort .rewardTop{ gap:8px; } .rtPort .rewardBottom{ gap:10px; }
.rtPort .rewardTokens{ gap:6px; }
.rtPort .rewardToken{ min-width:62px; height:42px; padding:0 7px; border-radius:11px; }
.rtPort .rewardTokenAmt{ font-size:18px; }
.rtPort .rewardTokenLabel{ font-size:11px; margin-top:1px; }
.rtPort .trayMedalDisc{ width:52px; height:52px; } .rtPort .trayMedalStar{ font-size:28px; } .rtPort .trayMedalLabel{ font-size:11px; }
.rtPort .rewardCollectAll{ height:42px; font-size:16px; padding:0 12px; border-radius:12px; }
.rtPort .rewardMeterTitle{ font-size:13px; } .rtPort .rewardMeterNums{ font-size:17px; }
.rtPort .rewardMeterTrack{ height:12px; } .rtPort .rewardMaxTag{ font-size:12px; }
.rtPort .rewardDone{ font-size:16px; } .rtPort .rewardDoneAmt{ font-size:24px; }
.rtPort .rewardMsg, .rtPort .rewardExtra{ font-size:14px; } .rtPort .rewardPending{ font-size:14px; } .rtPort .rewardMsg .big{ font-size:26px; }

/* Room table shrinks while a tray is showing so the over box's existing
   content budget still fits (see style.css's .stgOverLbWrap comments). */
.stage.landscape .hasTray .stgOverLbWrap{ max-height:170px; }
.stage.portrait .hasTray .stgOverLbWrap{ max-height:80px; } /* tray grew (medal + all tokens + Collect all) */
/* Safety net for the bigger tray: centered when it all fits (auto margins),
   scrolls inside the over box when it doesn't (room table + skunk badge on
   a tight portrait screen) — never spills over the seat bars, which are
   independent absolute boxes. */
.stgOver.hasTray, .stg3POver.hasTray, .stg3Over.hasTray{ justify-content:flex-start; overflow-y:auto; overflow-x:hidden; }
.stgOver.hasTray > :first-child, .stg3POver.hasTray > :first-child, .stg3Over.hasTray > :first-child{ margin-top:auto; }
.stgOver.hasTray > :last-child, .stg3POver.hasTray > :last-child, .stg3Over.hasTray > :last-child{ margin-bottom:auto; }

@media (prefers-reduced-motion: reduce){
  .fxShine::after, .fxGlow, .fxRays, .rewardMeterFill, .rewardToken, .fxPulse { animation:none; }
  .fxPress, .rewardMeterFill { transition:none; }
  .fxCelebrateCard, .rewardTray, .fxSheet{ animation:none; }
}

/* =====================================================================
   My Card Packs (public/js/collection.js) — page-level (never inside the
   fixed stage). Big type, strong contrast, slow gentle motion only.
   ===================================================================== */
.collectionScreen{ max-width:640px; margin:0 auto; }
/* sticky header row: back · title · Stars chip, on a solid background so
   nothing ever slides under it while scrolling */
.collTopBar{
  position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:10px;
  margin:-16px -16px 12px; padding:12px 16px; border-radius:14px 14px 0 0;
  background:#132332; border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 12px -8px rgba(0,0,0,.6);
}
.collTitle{ margin:0; font-size:24px; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.collTopBar .collBack{ flex:none; min-height:0; width:40px; height:40px; padding:0; font-size:20px; border-radius:12px; }
.collIntro{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.collSub{ font-size:16px; color:#c9d6de; line-height:1.35; flex:1 1 220px; }
.collList{ display:flex; flex-direction:column; gap:16px; }
.packCard{
  position:relative;
  background:linear-gradient(180deg,#1d2a36,#121c25);
  border-radius:20px; padding:16px; border:2px solid rgba(255,210,63,.35);
  box-shadow:0 6px 18px rgba(0,0,0,.35); color:#f7f1e3;
}
.packCard.tableUnlocked{ background:radial-gradient(ellipse at 50% 15%, var(--packFelt1), var(--packFelt2)); }
.packCard.complete{ border-color:var(--star-gold); box-shadow:0 0 22px rgba(255,210,63,.35), 0 6px 18px rgba(0,0,0,.35); }
.packCardHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.packCardTitle{ font-size:21px; font-weight:900; line-height:1.2; min-width:0; }
.packCount{ flex:none; white-space:nowrap; font-size:16px; font-weight:900; color:#c9d6de; padding:2px 10px; border-radius:999px; background:rgba(0,0,0,.3); font-variant-numeric:tabular-nums; }
/* "Complete ✨": a small corner badge on the card's top edge — never wraps,
   never takes width from the title */
.packBadge{
  position:absolute; top:-12px; right:14px; white-space:nowrap;
  font-size:13px; font-weight:900; color:#3a2300; padding:3px 10px; border-radius:999px;
  background:linear-gradient(180deg,#ffe48a,var(--star-gold-deep)); box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.collPreview{ display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0 10px; }
.collPreview .pcard{ --cardW:78px; }
.collBoard{ width:150px; height:110px; display:flex; align-items:center; justify-content:center; }
.collBoard .boardPreviewLandscape{ width:150px; }
.collBoardWrap{ position:relative; }
.collBoardLock{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800; color:#c9d6de; text-align:center; pointer-events:none;
}
/* on the light locked-board plate (style.css) the label is a dark chip */
.collBoardWrap.isLocked .collBoardLock{ inset:auto; left:50%; top:50%; transform:translate(-50%,-50%); padding:5px 10px; border-radius:999px; background:#241B57; color:#fff; box-shadow:0 0 0 2px #fff; white-space:nowrap; }
.packSegs{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:4px; }
.packSeg{ height:16px; border-radius:8px; background:rgba(0,0,0,.4); border:1.5px solid rgba(255,255,255,.15); }
.packSeg.done{ background:linear-gradient(180deg,var(--star-gold),var(--star-gold-deep)); border-color:var(--star-gold); }
.packSeg.next{ border-color:var(--star-gold); animation:fxGlow 2.4s ease-in-out infinite; }
.packSegLabels{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:5px; font-size:12.5px; color:#b9c9d4; text-align:center; line-height:1.15; }
.packSegLabels .done{ color:var(--star-gold); font-weight:800; }
.packSegLabels .segShort{ display:none; }
.packNext{ font-size:18px; margin-top:12px; text-align:center; }
.packAction{ display:block; width:100%; margin-top:10px; font-size:20px; padding:14px 18px; }
.packUnlock:disabled{ opacity:.7; animation:none; }
.packUnlock{ display:flex; align-items:center; justify-content:center; gap:10px; white-space:nowrap; }
.packUnlockLabel{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.packUnlockCost{ flex:none; padding:3px 10px; border-radius:999px; background:rgba(58,35,0,.16); border:1.5px solid rgba(58,35,0,.35); font-variant-numeric:tabular-nums; }
/* .packCard prefix: must outrank style.css's phone-wide
   `body:not(.inGame) button{padding:12px 18px;font-size:15px}` (0,1,2) */
@media (max-width:420px){ .packCard .packUnlock{ font-size:15px; padding:13px 10px; gap:6px; } .packUnlockIcon{ display:none; } .packUnlockCost{ padding:2px 7px; font-size:14px; } }
@media (max-width:380px){ .packCard .packUnlock{ font-size:14px; padding:13px 8px; } .packUnlockCost{ font-size:13px; } }
.packBuy{ display:block; width:100%; margin-top:10px; font-size:17px; }
.packSaving{ margin-top:10px; text-align:center; }
.packSaveText{ font-size:20px; font-weight:900; color:var(--star-gold); font-variant-numeric:tabular-nums; }
.packSaveTrack{ height:14px; border-radius:8px; background:rgba(0,0,0,.4); overflow:hidden; margin:6px 0 4px; border:1.5px solid rgba(255,255,255,.12); }
.packSaveFill{ height:100%; border-radius:8px; background:linear-gradient(90deg,var(--star-gold-deep),var(--star-gold)); }
.packSaveHint{ font-size:14.5px; color:#b9c9d4; }

@media (prefers-reduced-motion: reduce){ .packSeg.next{ animation:none; } }

/* completed packs: compact rows, tap to expand */
.collDoneHead{ font-size:15px; font-weight:900; color:#b9c9d4; text-transform:uppercase; letter-spacing:.06em; margin:8px 2px -6px; }
.packDone{ border-radius:16px; border:2px solid rgba(255,210,63,.55); background:linear-gradient(180deg,#1d2a36,#121c25); overflow:visible; }
.packDoneRow{ display:flex; align-items:center; gap:12px; padding:10px 12px; cursor:pointer; }
.packDoneRow:focus-visible{ outline:3px solid #7fd8c4; outline-offset:2px; border-radius:14px; }
.packDoneThumb{ flex:none; }
.packDoneThumb .pcard{ --cardW:38px; }
.packDoneText{ flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.packDoneName{ font-size:17px; font-weight:900; color:#f7f1e3; line-height:1.2; }
.packDonePill{ white-space:nowrap; font-size:12.5px; font-weight:900; color:#3a2300; padding:2px 9px; border-radius:999px; background:linear-gradient(180deg,#ffe48a,var(--star-gold-deep)); }
.packDone .packDoneUse{ flex:none; min-height:0; padding:9px 16px; font-size:16px; border-radius:12px; }
.packDoneChevron{ flex:none; font-size:18px; color:#b9c9d4; transition:transform .2s ease; }
.packDone.expanded .packDoneChevron{ transform:rotate(180deg); }
.packDoneFull{ display:none; padding:4px 10px 12px; }
.packDone.expanded .packDoneFull{ display:block; }
.packDoneFull .packCard{ margin-top:6px; }
/* the row above already shows the name and "Complete ✨" */
.packDoneFull .packBadge, .packDoneFull .packCardHead{ display:none; }

/* phones (portrait 360-430): board on its own row under the two cards so
   nothing overflows the card; one-word piece labels */
@media (max-width:440px){
  .collPreview{ flex-wrap:wrap; gap:10px; }
  .collPreview .pcard{ --cardW:72px; }
  .collBoardWrap{ flex:0 0 100%; }
  .collBoard{ width:100%; height:auto; justify-content:center; }
  .collBoard .boardPreviewLandscape{ width:100%; max-width:280px; margin:0 auto; }
  /* a locked board is only a silhouette: keep it short, the label says what it is */
  .collBoardWrap.isLocked .boardPreviewLandscape{ max-width:200px; }
  .collTitleIcon{ display:none; }
  .collTitle{ white-space:normal; line-height:1.15; }
  .starsChip.bar{ font-size:16px; padding:6px 11px; }
  .packSegLabels{ font-size:12.5px; }
  .packSegLabels .segFull{ display:none; }
  .packSegLabels .segShort{ display:inline; }
  .collTitle{ font-size:20px; }
  .packCardTitle{ font-size:19px; }
}

/* =====================================================================
   Pack-piece reveal (public/js/reveal.js). The scratch area is card-sized
   on purpose (iOS paint cost); nothing else animates while scratching.
   ===================================================================== */
.revealOverlay{
  /* above the gamify nav (10030) and the in-game Packs sheet (10040), below toasts (10060) */
  position:fixed; inset:0; z-index:10050; background:rgba(6,11,17,.88);
  display:flex; align-items:center; justify-content:center; overflow:auto; padding:16px;
  animation:fxFadeIn .25s ease both;
}
.revealSheet{ text-align:center; color:#f7f1e3; max-width:420px; width:100%; }
.revealKicker{ font-size:17px; font-weight:800; color:#9fe3c2; letter-spacing:.4px; }
.revealTitle{ font-size:30px; font-weight:900; color:var(--star-gold); margin-top:4px; }
.revealTitleBig{ font-size:34px; }
.revealPack{ font-size:17px; color:#c9d6de; margin-top:2px; }
.revealBox{ position:relative; margin:16px auto 12px; border-radius:16px; }
.revealBox > .pcard{ --cardW:220px; position:absolute; left:0; top:0; }
.revealBox.revealDone{ box-shadow:0 0 34px rgba(255,210,63,.6); }
.revealFoil{ position:absolute; left:0; top:0; touch-action:none; cursor:grab; border-radius:16px; }
.revealFoilText{ font-size:24px; font-weight:900; fill:#56626d; letter-spacing:2px; pointer-events:none; }
.revealSparkle{ position:absolute; pointer-events:none; color:#fff6c9; font-size:20px; text-shadow:0 0 8px rgba(255,230,140,.9); will-change:transform,opacity; }
.revealHint{ font-size:18px; font-weight:700; color:#c9d6de; }
.revealHint.gone{ visibility:hidden; }
.revealTap{ margin-top:12px; font-size:20px; padding:14px 26px; }
.revealContinue{ margin-top:14px; font-size:20px; padding:14px 26px; }
.revealBoard{ width:320px; height:180px; border-radius:16px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.revealBoard .boardPreviewLandscape{ width:296px; }
.revealCompleteStage{ position:relative; width:340px; height:340px; margin:14px auto 4px; overflow:hidden; border-radius:20px; }
.revealCompleteStage .fxRays{ width:900px; height:900px; margin:-450px 0 0 -450px; }
.revealFanBoard{ position:absolute; left:10px; bottom:6px; }
.revealFan{ position:absolute; left:50%; top:24px; width:0; height:0; }
.revealFan .pcard{ --cardW:96px; position:absolute; left:0; top:0; transform-origin:50% 130%; }
.revealCompleteBtns{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:10px; }
@media (prefers-reduced-motion: reduce){ .revealOverlay{ animation:none; } .revealCompleteStage .fxRays{ animation:none; } }

/* ---------------- Star Bar + flying pops ----------------
   starBar.js. One star gold (--star-gold) shared with the tray, chip and
   meter. Px constants per layout (fixed-stage rules): the landscape stage
   renders at ~0.45-0.5x on phones, so its sizes are authored big; portrait
   is ~1x. Positions sit only in space nothing else uses:
     2p portrait  — merged into your own bar (.stgBarC.hasStarBar grows
                    26->44px, top 618->612: into the 10px gap under rowC
                    (ends 608) and the 16px bottom margin; nothing moves)
     2p landscape — the free strip under rowC (ends 692), x = mid column
     3p portrait  — under your bar (barC 564-590; box ends 660)
     3p landscape — right of your hand (phone box) / right of the board
                    (desktop box)
     4p page      — its own row under your placard
   Pops are body-level position:fixed, animated by main.js (WAAPI). */
.starBar{ font-weight:900; color:var(--star-gold); line-height:1; }
.sbHead{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; white-space:nowrap; }
.sbStars{ color:var(--star-gold); text-shadow:0 1px 0 #6b4300, 0 0 8px rgba(255,210,63,.55); font-variant-numeric:tabular-nums; }
.sbToday{ color:#e8eef0; font-weight:800; opacity:.9; font-variant-numeric:tabular-nums; }
.sbMax{ color:#fff2a8; text-shadow:0 0 10px rgba(255,210,63,.9); }
.sbTrack{
  position:relative; border-radius:999px; background:rgba(0,0,0,.5);
  border:2px solid rgba(255,210,63,.55); box-shadow:inset 0 2px 4px rgba(0,0,0,.5);
}
.sbFill{
  position:absolute; left:0; top:0; bottom:0; border-radius:inherit; overflow:hidden;
  background:linear-gradient(180deg,#fff0a0 0%,var(--star-gold) 45%,var(--star-gold-deep) 100%);
  box-shadow:0 0 12px rgba(255,210,63,.95), 0 0 2px #fff inset;
  transition:width .7s cubic-bezier(.3,1.3,.5,1);
}
.sbShine{
  position:absolute; inset:0;
  background:linear-gradient(100deg, transparent 25%, rgba(255,255,255,.85) 50%, transparent 75%);
  background-size:250% 100%; animation:sbShine 1.9s linear infinite;
}
@keyframes sbShine{ from{ background-position:150% 0; } to{ background-position:-100% 0; } }
.sbMedal{
  position:absolute; top:50%; transform:translate(-50%,-50%);
  width:1.15em; height:1.15em; border-radius:50%; box-sizing:border-box;
  display:grid; place-items:center; font-size:20px; line-height:1;
  color:rgba(255,255,255,.55); background:#2a3a33; border:3px solid var(--medal);
  box-shadow:0 1px 3px rgba(0,0,0,.6);
}
.sbMedal.bronze{ --medal:#cd7f32; --medalLite:#f0b27a; --medalDeep:#7a4416; }
.sbMedal.silver{ --medal:#aab4ba; --medalLite:#f4f7f9; --medalDeep:#5d686f; }
.sbMedal.gold{ --medal:#ffcc33; --medalLite:#fff2a8; --medalDeep:#a8700c; }
.sbMedal.lit{
  /* keep each metal's own colour when lit (white rims made bronze/silver
     read as the same pale disc at small sizes) */
  color:#fff; background:radial-gradient(circle at 35% 30%, var(--medalLite) 0%, var(--medal) 45%, var(--medalDeep) 100%);
  border-color:var(--medalLite); text-shadow:0 1px 1px rgba(0,0,0,.55);
  box-shadow:0 0 10px var(--medal), 0 1px 3px rgba(0,0,0,.6);
}
.sbMedal.just{ animation:sbMedalFlip .9s cubic-bezier(.3,1.6,.5,1); }
@keyframes sbMedalFlip{
  0%{ transform:translate(-50%,-50%) rotateY(0) scale(1); }
  45%{ transform:translate(-50%,-50%) rotateY(180deg) scale(1.7); }
  100%{ transform:translate(-50%,-50%) rotateY(360deg) scale(1); }
}
.starBar.bump .sbTrack, .starBar.landed .sbTrack{ animation:sbGlow .7s ease-out; }
@keyframes sbGlow{ 0%{ box-shadow:0 0 0 rgba(255,210,63,0); } 35%{ box-shadow:0 0 18px 4px rgba(255,210,63,.9); } 100%{ box-shadow:0 0 0 rgba(255,210,63,0); } }
.starBar.capped .sbTrack{ background:linear-gradient(180deg,#fff0a0,var(--star-gold) 50%,var(--star-gold-deep)); border-color:#fff2a8; box-shadow:0 0 14px rgba(255,210,63,.9); }
.starBar.capped .sbFill{ background:transparent; box-shadow:none; }

/* 2p portrait: merged into your own bar */
.stage.portrait .stgBarC.hasStarBar{ top:612px; }
.stage.portrait .stgBar.hasStarBar{
  height:44px; gap:7px; padding:0 8px;
  border:2px solid rgba(255,210,63,.75);
  background:linear-gradient(90deg, rgba(12,26,20,.75), rgba(60,44,6,.65));
  box-shadow:0 0 12px rgba(255,210,63,.35);
}
.stage.portrait .stgBar.hasStarBar .stgBarName{ max-width:64px; }
.stage.portrait .stgBar.hasStarBar .stgBarScore{ margin-left:2px; font-size:18px; }
.stage.portrait .stgBar.hasStarBar .stgBarLab{ display:none; } /* the bar's gold border already marks you */
.sb-merged{ flex:1; min-width:0; margin-left:6px; display:flex; flex-direction:column; gap:4px; }
.sb-merged .sbHead{ font-size:14px; }
.sb-merged .sbToday{ font-size:11.5px; }
.sb-merged .sbTrack{ height:13px; margin:0 9px 0 2px; }
.sb-merged .sbMedal{ font-size:17px; }

/* 2p landscape: under your hand, the mid column */
.stage.landscape .sb-land{
  position:absolute; left:253px; top:700px; width:748px; height:52px;
  display:flex; align-items:center; gap:22px; padding:0 22px;
  border-radius:26px; background:rgba(12,26,20,.62); border:3px solid rgba(255,210,63,.7);
  box-shadow:0 0 18px rgba(255,210,63,.3); box-sizing:border-box;
}
.sb-land .sbHead{ flex-direction:column; align-items:flex-start; gap:3px; width:150px; }
.sb-land .sbStars, .sb-land .sbMax{ font-size:26px; }
.sb-land .sbToday{ font-size:17px; }
.sb-land .sbTrack{ flex:1; height:22px; margin-right:16px; border-width:3px; }
.sb-land .sbMedal{ font-size:32px; }

/* 3p portrait: under your bar */
.stage.portrait.p3 .sb-port3{
  position:absolute; left:10px; top:598px; width:370px; height:54px; box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:center; gap:5px; padding:0 14px;
  border-radius:14px; background:rgba(12,26,20,.62); border:2px solid rgba(255,210,63,.7);
  box-shadow:0 0 12px rgba(255,210,63,.3);
}
.sb-port3 .sbHead{ font-size:16px; }
.sb-port3 .sbToday{ font-size:12.5px; }
.sb-port3 .sbTrack{ height:15px; margin:0 10px; }
.sb-port3 .sbMedal{ font-size:20px; }

/* 3p landscape: right of your hand (phone box) / right of the board (desktop box) */
.stage.landscape.p3 .sb-land3{
  position:absolute; left:1050px; top:630px; width:380px; height:96px; box-sizing:border-box;
  display:flex; flex-direction:column; justify-content:center; gap:10px; padding:0 20px;
  border-radius:20px; background:rgba(12,26,20,.62); border:3px solid rgba(255,210,63,.7);
  box-shadow:0 0 16px rgba(255,210,63,.3);
}
.stage.landscape.p3.desktop3p .sb-land3{ left:996px; top:560px; width:200px; height:150px; padding:0 14px; }
.sb-land3 .sbHead{ font-size:24px; flex-wrap:wrap; }
.sb-land3 .sbToday{ font-size:16px; }
.sb-land3 .sbTrack{ height:20px; margin:0 14px; border-width:3px; }
.sb-land3 .sbMedal{ font-size:28px; }

/* 4p page layout: own row under your placard */
.sb-page{
  width:100%; max-width:440px; margin:8px auto 0; box-sizing:border-box; order:5;
  display:flex; flex-direction:column; gap:6px; padding:9px 16px;
  border-radius:16px; background:rgba(12,26,20,.62); border:2px solid rgba(255,210,63,.7);
}
.sb-page .sbHead{ font-size:17px; }
.sb-page .sbToday{ font-size:13px; }
.sb-page .sbTrack{ height:16px; margin:0 12px; }
.sb-page .sbMedal{ font-size:22px; }

.starPop{
  position:fixed; z-index:9000; pointer-events:none; white-space:nowrap; left:0; top:0;
  transform:translate(-50%,-50%); font-weight:900; font-size:22px; color:var(--star-gold);
  text-shadow:0 2px 0 #6b4300, 0 0 10px rgba(0,0,0,.6);
}
.starPop.big{
  font-size:28px; color:#fff2a8; padding:6px 14px; border-radius:16px;
  background:radial-gradient(ellipse at 50% 50%, rgba(255,207,58,.5), rgba(255,207,58,0) 70%);
  text-shadow:0 2px 0 #6b4300, 0 0 18px rgba(255,215,106,.95);
}
@media (prefers-reduced-motion: reduce){
  .sbShine, .sbMedal.just, .starBar.bump .sbTrack, .starBar.landed .sbTrack{ animation:none; }
  .sbFill{ transition:none; }
}

/* ---------------- hype text (visual only) ----------------
   COMBO! / BIG HAND! / PERFECT 29!! — big, bold, high contrast, a
   ~1.5s stamp over the status line, never over your hand, no taps. */
.hypeText{
  position:fixed; z-index:9001; pointer-events:none; white-space:nowrap;
  transform:translate(-50%,-50%); font-family:'Nunito', ui-rounded, system-ui, sans-serif;
  font-weight:900; font-size:34px; letter-spacing:1px; color:#fff;
  -webkit-text-stroke:2px #6b4300; paint-order:stroke fill;
  text-shadow:0 3px 0 #6b4300, 0 0 16px rgba(255,210,63,.9);
  animation:hypeStamp 1.5s cubic-bezier(.2,1.6,.4,1) forwards;
}
.hypeText.combo{ color:#7ff0d4; text-shadow:0 3px 0 #0c4a3c, 0 0 16px rgba(127,240,212,.9); -webkit-text-stroke-color:#0c4a3c; }
.hypeText.bighand{ color:var(--star-gold); }
.hypeText.perfect29{
  font-size:46px; color:#fff2a8; animation:hypeStampBig 2.6s cubic-bezier(.2,1.6,.4,1) forwards;
  text-shadow:0 3px 0 #6b4300, 0 0 24px rgba(255,210,63,1), 0 0 48px rgba(255,160,40,.8);
}
@keyframes hypeStamp{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(2.2) rotate(-6deg); }
  18%{ opacity:1; transform:translate(-50%,-50%) scale(1) rotate(-4deg); }
  75%{ opacity:1; transform:translate(-50%,-60%) scale(1.05) rotate(-4deg); }
  100%{ opacity:0; transform:translate(-50%,-90%) scale(1.1) rotate(-4deg); }
}
@keyframes hypeStampBig{
  0%{ opacity:0; transform:translate(-50%,-50%) scale(3) rotate(-8deg); }
  12%{ opacity:1; transform:translate(-50%,-50%) scale(1) rotate(-3deg); }
  20%{ transform:translate(-50%,-50%) scale(1.12) rotate(3deg); }
  28%{ transform:translate(-50%,-50%) scale(1) rotate(-3deg); }
  85%{ opacity:1; transform:translate(-50%,-55%) scale(1.04) rotate(-3deg); }
  100%{ opacity:0; transform:translate(-50%,-80%) scale(1.1) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce){
  .hypeText, .hypeText.perfect29{ animation:hypeFade 1.6s ease forwards; }
  @keyframes hypeFade{ 0%,75%{ opacity:1; } 100%{ opacity:0; } }
}

/* ---------------- Stars balance chip (starsChip.js) ----------------
   One currency, one look: star + number in star gold, dark pill, gold
   ring. 'float' = fixed top-right on home / My Card Packs; 'header' =
   inside the fixed stage header at game over (takes the theme pill's
   slot, px per orientation); 'inline' = 4p end-of-game page. */
.starsChip{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; white-space:nowrap;
  font-family:'Nunito', ui-rounded, system-ui, sans-serif; font-weight:900; line-height:1;
  color:var(--star-gold); background:rgba(14,22,28,.88); border:2px solid var(--star-gold);
  border-radius:999px; box-shadow:0 0 10px rgba(255,210,63,.35), 0 3px 8px rgba(0,0,0,.35);
  font-variant-numeric:tabular-nums;
}
.starsChip:active{ transform:scale(.96); }
.starsChip:focus-visible{ outline:3px solid #7fd8c4; outline-offset:2px; }
.starsChip.pulse{ animation:chipPulse .8s cubic-bezier(.3,1.7,.5,1); }
@keyframes chipPulse{ 0%{ transform:scale(1); } 30%{ transform:scale(1.18); box-shadow:0 0 22px rgba(255,210,63,.95); } 100%{ transform:scale(1); } }

.starsChip.bar{ font-size:18px; padding:7px 13px; flex:none; }
/* reserve a strip above the masthead while the floating chip is on the
   page (home, My Card Packs), so it never sits on the title/subtitle */

.stage.portrait .starsChip.header{ font-size:15px; padding:4px 10px; border-width:1.5px; gap:4px; }
.stage.landscape .starsChip.header{ font-size:24px; padding:7px 16px; border-width:2.5px; gap:8px; }
.starsChip.inline{ font-size:20px; padding:8px 16px; margin:10px auto 0; }
@media (prefers-reduced-motion: reduce){ .starsChip.pulse{ animation:none; } }

/* ---- "Preview full pack" gallery (js/packGallery.js) ----
   A centered modal on <body>, above every other sheet (incl. the gamify
   unlock popup). Slides are a native horizontal scroll-snap track (swipe). */
.pgLayer{
  position:fixed; inset:0; z-index:10090; display:flex; align-items:center; justify-content:center; box-sizing:border-box;
  padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background:rgba(8,6,24,.72);
}
.pgDialog{
  position:relative; overflow:hidden; width:100%; max-width:460px; max-height:100%; box-sizing:border-box; overflow-y:auto;
  padding:18px 14px 16px; border-radius:24px; color:#fff; text-align:center;
  background:radial-gradient(120% 70% at 50% 0%,#3A2A8C 0%,#241B57 60%,#1B1440 100%); border:2px solid #3B2F86;
  box-shadow:0 20px 50px rgba(0,0,0,.55); font-family:'Nunito','Avenir Next',system-ui,sans-serif;
}
.pgRibbon{ position:absolute; top:0; left:0; width:120px; height:120px; overflow:hidden; pointer-events:none; }
.pgRibbon span{
  position:absolute; top:22px; left:-34px; width:150px; transform:rotate(-45deg); text-align:center;
  background:linear-gradient(180deg,#FF7EB8,#EE2F7A); color:#fff; font:800 13px/26px 'Nunito',system-ui,sans-serif; letter-spacing:2px;
  box-shadow:0 3px 8px rgba(0,0,0,.4);
}
.pgClose{
  position:absolute; top:10px; right:10px; width:44px; height:44px; border-radius:50%; border:2px solid #3B2F86;
  background:#0E0A26; color:#C9C2F0; font-size:20px; line-height:1; cursor:pointer; padding:0; z-index:2;
}
.pgTitle{ margin:6px 44px 0; font:700 24px 'Fredoka','Avenir Next',system-ui,sans-serif; color:#FFD95A; letter-spacing:0; text-transform:none; }
.pgSub{ margin:4px 0 12px; font-size:14px; color:#C9C2F0; }
.pgStage{ position:relative; display:flex; align-items:center; }
.pgTrack{
  flex:1; min-width:0; display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; scrollbar-width:none; outline:none;
}
.pgTrack::-webkit-scrollbar{ display:none; }
.pgSlide{ flex:0 0 100%; scroll-snap-align:center; scroll-snap-stop:always; box-sizing:border-box; padding:0 4px 6px; display:flex; flex-direction:column; align-items:center; gap:10px; }
.pgSlideTitle{ margin:0; font:800 15px 'Nunito',system-ui,sans-serif; color:#B3AAE6; text-transform:uppercase; letter-spacing:1px; }
.pgCards{ display:flex; flex-direction:column; gap:10px; align-items:center; min-height:250px; justify-content:center; }
.pgRow{ display:flex; gap:10px; justify-content:center; }
.pgCards .pcard{ --cardW:76px; }
.pgBack .pcard{ --cardW:150px; }
.pgTable{ width:100%; min-height:250px; box-sizing:border-box; border-radius:16px; padding:14px; display:flex; align-items:center; justify-content:center; box-shadow:inset 0 0 0 2px rgba(255,255,255,.12); }
.pgTable .boardPreviewLandscape{ width:100%; max-width:330px; }
.pgArrow{
  flex:none; width:36px; height:52px; border-radius:12px; border:0; background:rgba(0,0,0,.3); color:#fff; font-size:30px; line-height:1;
  cursor:pointer; padding:0;
}
.pgArrow:disabled{ opacity:.25; cursor:default; }
.pgDots{ display:flex; justify-content:center; gap:4px; margin-top:10px; }
.pgDot{ width:28px; height:28px; border:0; background:none; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.pgDot::before{ content:''; width:10px; height:10px; border-radius:50%; background:#4A3E96; }
.pgDot.on::before{ background:#FFD95A; }
@media (max-width:380px){
  .pgCards .pcard{ --cardW:66px; }
  .pgArrow{ width:28px; }
}
/* the button that opens it (pack cards, unlock popup tiles) */
.packPreviewBtn{ display:block; width:100%; margin-top:8px; min-height:44px; }

/* ---- pack selection states (gamify v4, js/collection.js) ----
   Equipped: a gold IN USE ribbon with a check; usable: "Use this pack"
   (+ "(3 of 5 pieces)" while partial); locked: "Unlock first piece · cost". */
.packCard.inUse{ box-shadow:0 0 0 3px #FFD23F, 0 10px 26px rgba(0,0,0,.45); }
.packInUse{
  position:absolute; top:-15px; right:14px; z-index:3; display:flex; align-items:center; gap:6px; white-space:nowrap;
  padding:5px 14px 5px 8px; border-radius:999px;
  background:linear-gradient(180deg,#FFE27A,#FFB81F); color:#4A2800; font-weight:900; font-size:15px; letter-spacing:.6px;
  box-shadow:0 3px 0 #C77700, 0 6px 14px rgba(0,0,0,.35);
}
.packInUseCheck{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:#4A2800; color:#FFE27A; font-size:13px; }
.packUse{ width:100%; min-height:52px; font-size:18px; margin-top:10px; }
.packDone.inUse{ border-color:#FFD23F; box-shadow:0 0 0 2px #FFD23F; }
.packInUsePill{ flex:none; display:inline-flex; align-items:center; gap:4px; min-height:36px; padding:0 12px; border-radius:999px;
  background:linear-gradient(180deg,#FFE27A,#FFB81F); color:#4A2800; font-weight:900; font-size:13px; letter-spacing:.4px; }
.collBuyAll{ margin-top:16px; }
/* in-game "Change pack" sheet (main.js openPacksOverlay) */
.sheetScrim.packsOverlay{ z-index:10040; align-items:stretch; }
.packsOverlayBody{ width:100%; max-width:560px; margin:0 auto; max-height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; border-radius:16px; }
.packsOverlayNote{ position:sticky; top:0; z-index:5; text-align:center; font-weight:800; font-size:15px; padding:10px 12px; border-radius:12px;
  background:#241B57; color:#fff; margin-bottom:8px; }
.packsOverlay .collectionScreen{ margin:0; }
.packsOverlay .collTopBar{ position:static; }
