/* ==========================================================================
   Throne Room Perfect Season — game UI. Depends on tokens/layout/components.
   ========================================================================== */

.ps-wrap { position: relative; padding-top: calc(var(--nav-h) + var(--space-5)); padding-bottom: var(--space-8); min-height: 90vh; overflow: hidden; }
.ps-bg { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(12,10,18,0.78), rgba(12,10,18,0.94)), url('../img/throne-arena.jpg') center top / cover no-repeat; }
#game-ps { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }

.ps-loading { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-9) var(--space-4); color: var(--text-dim); }
.loader { width: 26px; height: 26px; border: 2px solid rgba(255,255,255,0.08); border-top-color: var(--gold-light); border-radius: 50%; animation: ps-spin 0.8s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }

/* ---- Landing ---- */
.ps-landing { text-align: center; }
.ps-title { font-size: var(--text-3xl); margin: var(--space-3) 0; }
.ps-sub { color: var(--text-dim); max-width: 440px; margin: 0 auto var(--space-5); line-height: var(--leading-normal); }
.ps-toggles { display: flex; gap: var(--space-3); justify-content: center; margin-bottom: var(--space-5); }
.ps-toggle { font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--text-dim); background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 9px 16px; min-height: 40px; cursor: pointer; transition: all var(--t); }
.ps-toggle.on { color: var(--bg); background: var(--grad-crown); border-color: transparent; }
.ps-play { min-width: 220px; }
.ps-best { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--gold-light); }
.ps-board-mini { display: flex; gap: var(--space-4); justify-content: center; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-dim); }
.ps-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-3); }

/* ---- Progress ---- */
.ps-progress { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-sm); color: var(--text-dim); font-weight: var(--weight-semibold); margin-bottom: var(--space-4); }
.ps-dots { display: flex; gap: 6px; }
.ps-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-light); }
.ps-dots i.done { background: var(--gold); }
.ps-dots i.now { background: var(--purple-light); box-shadow: 0 0 0 3px var(--purple-soft); }

/* ---- Slot machine ---- */
.ps-slot { display: flex; gap: var(--space-3); justify-content: center; margin-bottom: var(--space-4); }
.reel {
  flex: 1; max-width: 150px; aspect-ratio: 1 / 0.82;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #0a0810, #171326);
  border: 2px solid var(--border-light); border-radius: var(--radius);
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
  overflow: hidden;
}
.reel.spinning .reel-sym { animation: reel-blur 0.14s linear infinite; }
@keyframes reel-blur { 0% { transform: translateY(-3px); filter: blur(0.5px); } 50% { transform: translateY(3px); filter: blur(1.6px); } 100% { transform: translateY(-3px); filter: blur(0.5px); } }
.reel.locked { border-color: var(--gold); box-shadow: inset 0 0 18px rgba(0,0,0,0.6), 0 0 14px var(--gold-soft); animation: reel-lock 0.4s cubic-bezier(.2,.9,.3,1.4); }
@keyframes reel-lock { 0% { transform: scale(1.12); box-shadow: inset 0 0 18px rgba(0,0,0,0.6), 0 0 34px var(--gold); } 60% { transform: scale(0.97); } 100% { transform: scale(1); box-shadow: inset 0 0 18px rgba(0,0,0,0.6), 0 0 14px var(--gold-soft); } }
.reel-sym { font-size: clamp(1.4rem, 6vw, 2rem); font-weight: var(--weight-black); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.reel-sym img { width: clamp(40px, 13vw, 64px); height: auto; }
.ps-prompt { text-align: center; font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-4); min-height: 1.6em; }

/* ---- Cards (click to reveal) ---- */
.ps-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); perspective: 1200px; }
.psc { position: relative; height: 300px; flex: 0 0 calc(50% - var(--space-3) / 2); max-width: 200px; transform-style: preserve-3d; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
/* thin rounds (slot landed on a 2-player combo) — widen so they fill the row */
.ps-cards[data-n="2"] .psc { flex-basis: calc((100% - 8px) / 2); max-width: 215px; }
.ps-cards[data-n="1"] .psc { flex-basis: 72%; max-width: 230px; }
@media (min-width: 640px) { .psc { flex-basis: 170px; } }
.psc.flipped { transform: rotateY(180deg); }
/* kill the "?" + hint the instant the flip starts, instead of waiting for the
   90deg backface cutoff; the purple back panel still rotates away cleanly. */
.psc.flipped .psc-q, .psc.flipped .psc-hint { opacity: 0; animation: none; transition: opacity 0.07s linear; }
/* deal-in entrance; `backwards` fill keeps the start state during the stagger
   delay, then reverts to base so the flip transform still works on reveal. */
.psc-deal { animation: psc-deal-in 0.42s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes psc-deal-in { 0% { opacity: 0; transform: translateY(18px) scale(0.8); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.psc-back .psc-q { animation: q-pulse 1.8s ease-in-out infinite; }
@keyframes q-pulse { 0%, 100% { transform: scale(1); opacity: 0.92; } 50% { transform: scale(1.13); opacity: 1; } }
.psc-back, .psc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); }
.psc-back {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--grad-purple) padding-box; border: 1.5px solid var(--border-light); cursor: pointer; width: 100%; color: var(--text);
  background-image: radial-gradient(circle at 50% 38%, var(--purple-soft), transparent 60%);
}
.psc-back:hover { border-color: var(--gold); }
.psc-q { font-size: 2.6rem; color: var(--gold); font-weight: var(--weight-black); }
.psc-hint { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.psc-face { transform: rotateY(180deg); }
.psc-inner { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: var(--space-3); border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--card); }
.psc-common { border-color: var(--border-light); }
.psc-rare { border-color: var(--tier-rare); }
.psc-elite { border-color: var(--purple-light); box-shadow: 0 0 16px var(--purple-soft); }
.psc-allstar { border-color: var(--tier-allstar); box-shadow: 0 0 18px rgba(244,146,59,0.38); }
.psc-throne { border-color: var(--gold); box-shadow: 0 0 22px var(--gold-soft); background: var(--grad-gold-card); }
.psc-goat { border-color: var(--gold-light); border-width: 2px; box-shadow: 0 0 30px rgba(201,162,39,0.45), inset 0 0 18px rgba(201,162,39,0.12); background: linear-gradient(145deg, rgba(224,190,74,0.20) 0%, rgba(107,53,168,0.10) 55%, var(--card) 100%); }
.psc-goat .psc-name { background: linear-gradient(90deg, var(--gold-light), #fff, var(--gold-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.psc-top { display: flex; align-items: center; justify-content: space-between; }
.psc-team { width: 26px; height: 26px; }
.psc-name { font-size: var(--text-md); font-weight: var(--weight-black); line-height: 1.1; min-height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psc-arch { font-size: 0.64rem; color: var(--text-dim); }
.psc-pips { display: flex; flex-direction: column; gap: 1px; font-size: 0.6rem; color: var(--text-dim); letter-spacing: 1px; }
.psc-pips b { display: inline-block; width: 34px; color: var(--text-muted); }
.psc-blurb { font-size: 0.62rem; font-style: italic; color: var(--text-muted); line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psc-draft { width: 100%; margin-top: auto; }

/* Mobile: fit all 3 cards in one row (no scroll). Tighter type, blurb hidden. */
@media (max-width: 600px) {
  .ps-slot { gap: 6px; }
  .reel { flex: 0 0 calc((100% - 12px) / 3); max-width: none; min-width: 0; }
  .ps-cards { flex-wrap: nowrap; gap: 6px; width: 100%; }
  .psc { flex: 0 0 calc((100% - 12px) / 3); min-width: 0; max-width: none; height: 246px; }
  .psc-inner { padding: 9px 7px; gap: 4px; }
  .psc-team { width: 19px; height: 19px; }
  .psc-name { font-size: 0.78rem; min-height: 2.1em; }
  .psc-arch { font-size: 0.5rem; }
  .psc-pips { font-size: 0.5rem; letter-spacing: 0.5px; }
  .psc-pips b { width: 26px; }
  .psc-blurb { display: none; }
  .psc-draft { font-size: 0.72rem; padding: 9px 4px; min-height: 42px; }
  .psc-face .tier { font-size: 0.56rem; }
  .psc-q { font-size: 2rem; }
  .psc-hint { font-size: 0.48rem; }
}

/* Starting-5 tray under the cards: drafted players auto-sorted PG (left) -> C (right). */
.ps-lineup { display: flex; gap: 6px; justify-content: center; margin-top: var(--space-4); }
.ps-slot5 { flex: 1 1 0; min-width: 0; max-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); }
.ps-slot5.empty { border-style: dashed; opacity: 0.45; }
/* The slot being drafted this round pulses gold so the "fill your five" flow reads. */
.ps-slot5.empty.next { opacity: 0.9; border-color: var(--gold); border-style: solid; box-shadow: 0 0 12px var(--gold-soft); animation: slot-next-pulse 1.4s ease-in-out infinite; }
.ps-slot5.empty.next .ps-slot5-pos { color: var(--gold-light); }
@keyframes slot-next-pulse { 0%, 100% { box-shadow: 0 0 8px var(--gold-soft); } 50% { box-shadow: 0 0 18px rgba(201,162,39,0.55); } }
.ps-slot5-team { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.ps-slot5-name { font-size: 0.58rem; font-weight: var(--weight-bold); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-slot5-pos { font-size: 0.48rem; color: var(--text-muted); letter-spacing: 0.05em; }
.ps-slot5-empty-dot { font-size: 1rem; line-height: 1.3; color: var(--text-muted); opacity: 0.6; }

/* reveal flair — escalating persistent glow per tier */
.reveal-rare .psc-inner { animation: rare-pop 0.5s ease; }
.reveal-throne .psc-inner { animation: throne-pop 0.6s ease; }
.reveal-allstar .psc-inner { animation: rare-pop 0.5s ease, allstar-glow 2.6s ease-in-out 0.5s infinite; }
.reveal-legend .psc-inner { animation: throne-pop 0.6s ease, legend-glow 2.6s ease-in-out 0.6s infinite; }
.reveal-goat .psc-inner { animation: throne-pop 0.6s ease, goat-shine 1.9s ease-in-out 0.6s infinite; }
@keyframes allstar-glow { 0%, 100% { box-shadow: 0 0 14px rgba(244,146,59,0.40); } 50% { box-shadow: 0 0 28px rgba(244,146,59,0.78); } }
@keyframes legend-glow { 0%, 100% { box-shadow: 0 0 20px rgba(224,190,74,0.45); } 50% { box-shadow: 0 0 38px rgba(224,190,74,0.82); } }
@keyframes goat-shine {
  0%, 100% { box-shadow: 0 0 30px rgba(201,162,39,0.55), 0 0 64px rgba(224,190,74,0.25); transform: scale(1); }
  50% { box-shadow: 0 0 54px rgba(255,221,110,0.95), 0 0 104px rgba(224,190,74,0.55); transform: scale(1.015); }
}
/* GOAT name shimmer sweep */
.psc-goat .psc-name { background-size: 220% auto; animation: goat-name-shimmer 2.6s linear infinite; }
@keyframes goat-name-shimmer { to { background-position: 220% center; } }
@keyframes rare-pop { 0% { transform: scale(0.9); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes throne-pop { 0% { transform: scale(0.85); } 40% { transform: scale(1.12); } 70% { transform: scale(0.98); } 100% { transform: scale(1); } }
/* light sweep across rare+ cards the moment they flip up */
.reveal-shine .psc-inner { position: relative; overflow: hidden; }
.reveal-shine .psc-inner::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,0.5) 50%, transparent 68%); transform: translateX(-130%); animation: shine-sweep 0.85s ease-out 0.18s; pointer-events: none; z-index: 2; }
@keyframes shine-sweep { to { transform: translateX(130%); } }
.psc-burst { position: absolute; inset: 0; pointer-events: none; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.psc-burst i { font-style: normal; font-size: 1.1rem; animation: burst-fly 1.2s ease-out forwards; }
.psc-burst.big i { font-size: 1.4rem; }
@keyframes burst-fly { 0% { opacity: 0; transform: translateY(10px) scale(0.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-40px) scale(1.2) rotate(20deg); } }

.ps-actions { display: flex; justify-content: center; margin-top: var(--space-4); }
.ps-roster-mini, .ps-roster { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: 4px 10px 4px 5px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--border); }
.chip-team { width: 18px; height: 18px; }
.chip-goat { border-color: var(--gold-light); color: var(--gold-light); background: linear-gradient(145deg, rgba(224,190,74,0.18), rgba(107,53,168,0.10)); box-shadow: 0 0 10px var(--gold-soft); font-weight: var(--weight-bold); }
.chip-throne { border-color: rgba(201,162,39,0.5); color: var(--gold-light); }
.chip-elite { border-color: rgba(139,82,204,0.5); color: var(--purple-light); }
.chip-allstar { border-color: rgba(244,146,59,0.55); color: var(--tier-allstar); }
.chip-rare { border-color: rgba(91,141,217,0.5); color: var(--tier-rare); }

/* ---- Result ---- */
.ps-result { text-align: center; }
.ps-record { font-size: clamp(3rem, 14vw, 5rem); font-weight: var(--weight-black); line-height: 1; color: var(--gold); margin-top: var(--space-3); }
.ps-tier { font-size: var(--text-xl); font-weight: var(--weight-black); text-transform: uppercase; letter-spacing: 0.04em; }
.ps-verdict { color: var(--text-dim); margin: var(--space-3) auto var(--space-5); max-width: 420px; }
.ps-meters { display: grid; gap: var(--space-3); max-width: 420px; margin: 0 auto var(--space-5); }
.meter-top { display: flex; justify-content: space-between; font-size: var(--text-sm); margin-bottom: 4px; }
.meter-top b { color: var(--text); }
.meter-bar { height: 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.meter-fill { display: block; height: 100%; transition: width 0.9s cubic-bezier(.2,.8,.2,1); }
.ps-record { animation: throne-pop 0.5s ease; }
.fill-purple { background: linear-gradient(90deg, var(--purple), var(--purple-light)); }
.fill-gold { background: var(--grad-crown); }
.fill-red { background: linear-gradient(90deg, #b3261e, var(--yt-red)); }
.ps-note { font-size: var(--text-sm); color: var(--text-dim); margin-top: var(--space-2); }
.ps-flaw { color: var(--tag-disrespect); }
.ps-board { max-width: 360px; margin: var(--space-5) auto 0; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); }
.ps-board-h { font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.ps-board-row { display: grid; grid-template-columns: 24px 64px 1fr; gap: var(--space-2); font-size: var(--text-sm); padding: 4px 0; border-top: 1px solid var(--border); }
.ps-board-tier { color: var(--text-dim); text-align: right; }
.ps-result-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-5); }
/* Play Again pulled up under the verdict so mobile players never scroll past the
   full breakdown to hit "one more run". */
.ps-actions-top { margin-top: var(--space-4); margin-bottom: var(--space-2); }

/* ---- Coins + shop ---- */
/* Coin chip sits inline within existing rows — never floats/overlays or adds a row. */
.ps-coin { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: var(--weight-bold); color: var(--gold-light); background: rgba(201,162,39,0.10); border: 1px solid rgba(201,162,39,0.38); border-radius: var(--radius-pill); padding: 4px 11px; white-space: nowrap; }
.ps-coin b { font-size: 0.92rem; }
.ps-prog-right { display: inline-flex; align-items: center; gap: var(--space-3); }
.ps-coinline { display: flex; justify-content: center; margin-top: var(--space-3); }
.ps-coin-earned { margin-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--gold-light); }

/* Shop trigger sits inline with Reveal all; opens an overlay (no reflow). */
.ps-shop-overlay { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(8,6,14,0.72); backdrop-filter: blur(3px); animation: ps-fade 0.18s ease; }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }
.ps-shop { width: 100%; max-width: 380px; background: var(--card); border: 1px solid rgba(201,162,39,0.4); border-radius: var(--radius-lg, 16px); padding: var(--space-4); box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: throne-pop 0.4s ease; }
.ps-shop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); font-weight: var(--weight-black); font-size: 1.05rem; }
.ps-shop-items { display: grid; gap: var(--space-2); }
.ps-shop-item { display: flex; align-items: center; gap: var(--space-3); text-align: left; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: inherit; transition: border-color .15s, transform .08s; }
.ps-shop-item:hover:not(:disabled) { border-color: var(--gold); }
.ps-shop-item:active:not(:disabled) { transform: scale(0.98); }
.ps-shop-emoji { font-size: 1.5rem; }
.ps-shop-info { flex: 1; display: flex; flex-direction: column; }
.ps-shop-info b { font-size: 0.9rem; }
.ps-shop-info small { color: var(--text-muted); font-size: 0.72rem; }
.ps-shop-cost { font-weight: var(--weight-black); color: var(--gold-light); white-space: nowrap; }
.ps-shop-item:disabled { opacity: 0.4; cursor: default; }
.ps-shop-item.cant { opacity: 0.6; }
.ps-shop-item.armed { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-soft); }
.ps-shop-item.shake { animation: ps-shake 0.4s; }
.ps-shop-close { width: 100%; margin-top: var(--space-3); }
@keyframes ps-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ps-toast { position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%) translateY(18px); background: var(--card); border: 1px solid var(--gold); color: var(--gold-light); font-weight: var(--weight-bold); font-size: var(--text-sm); padding: 10px 18px; border-radius: var(--radius-pill); opacity: 0; transition: opacity .25s, transform .25s; z-index: 10003; pointer-events: none; }
.ps-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Team icons are circular logos on a white square — clip to a circle so the
   white corners disappear (no transparent-PNG tooling available locally). */
.reel-sym img, .psc-team, .chip-team { border-radius: 50%; object-fit: cover; }

/* ---- Confetti (great results) ---- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti i { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 1px; opacity: 0.95; animation-name: confetti-fall; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes confetti-fall { 0% { transform: translateY(-16px) rotate(0); } 100% { transform: translateY(108vh) rotate(600deg); opacity: 0.85; } }

/* ---- Result: why-this-grade breakdown ---- */
.ps-breakdown { max-width: 380px; margin: var(--space-4) auto 0; text-align: left; display: grid; gap: 5px; }
.ps-bd-row { font-size: var(--text-sm); display: flex; gap: 8px; align-items: flex-start; }
.ps-bd-row.pro { color: var(--gold-light); }
.ps-bd-row.con { color: var(--tag-disrespect); }

/* ---- Achievements ---- */
.ps-ach { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-5); }
.ps-ach-title { width: 100%; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-light); font-weight: var(--weight-bold); }
.ps-ach-badge { font-size: var(--text-xs); font-weight: var(--weight-bold); background: var(--grad-gold-card); border: 1px solid rgba(201,162,39,0.45); border-radius: var(--radius-pill); padding: 5px 12px; animation: throne-pop 0.6s ease; }
.reveal-all-btn { margin-left: var(--space-2); }

/* ---- Lock & Re-roll: keep-a-card chooser ---- */
.psc-lockchoice { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 300px; flex: 0 0 calc(50% - var(--space-3) / 2); max-width: 200px; padding: var(--space-3); border: 2px dashed var(--gold); border-radius: var(--radius); background: rgba(201,162,39,0.06); cursor: pointer; color: inherit; text-align: center; transition: background .15s, transform .08s; animation: psc-deal-in 0.3s ease; }
.psc-lockchoice:hover { background: rgba(201,162,39,0.14); }
.psc-lockchoice:active { transform: scale(0.97); }
.psc-lockchoice.hidden { border-color: var(--border-light); background: rgba(255,255,255,0.03); }
.psc-lockchoice-lbl { font-weight: var(--weight-black); font-size: 0.95rem; line-height: 1.1; }
.psc-lockchoice-sub { font-size: 0.72rem; color: var(--text-dim); }
.psc-lockchoice-cta { margin-top: var(--space-2); font-size: 0.72rem; font-weight: var(--weight-bold); color: var(--gold-light); background: rgba(201,162,39,0.12); border: 1px solid rgba(201,162,39,0.4); border-radius: var(--radius-pill); padding: 4px 12px; }
.ps-cards[data-n="1"] .psc-lockchoice { flex-basis: 72%; }
@media (min-width: 640px) { .psc-lockchoice { flex-basis: 170px; } }
@media (max-width: 400px) { .psc-lockchoice { height: 246px; flex: 0 0 calc((100% - 12px) / 3); max-width: none; } }

/* ---- Big pull: top-5 "wow" player / GOAT jackpot moment ---- */
.reveal-jackpot .psc-inner { animation: jackpot-punch 0.7s cubic-bezier(.2,.9,.3,1.5); z-index: 4; }
@keyframes jackpot-punch { 0% { transform: scale(0.7) rotate(-3deg); } 35% { transform: scale(1.22) rotate(2deg); } 60% { transform: scale(0.96); } 100% { transform: scale(1) rotate(0); } }
/* Big emoji that pops UP OVER the revealed card (anchored to the card's face,
   never the screen center). */
.psc-bigpop { position: absolute; left: 50%; top: 42%; z-index: 6; pointer-events: none;
  font-size: clamp(3rem, 22vw, 5rem); line-height: 1; filter: drop-shadow(0 0 16px rgba(224,190,74,0.85));
  transform: translate(-50%, -50%); animation: psc-bigpop 1.35s cubic-bezier(.2,.9,.3,1.5) forwards; }
@keyframes psc-bigpop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-12deg); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(6deg); }
  70% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -108%) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .psc { transition: none; }
  .psc-burst, .confetti, .reveal-shine .psc-inner::after, .psc-bigpop { display: none; }
  .reveal-rare .psc-inner, .reveal-throne .psc-inner, .reveal-goat .psc-inner,
  .reveal-legend .psc-inner, .reveal-allstar .psc-inner, .reveal-jackpot .psc-inner, .psc-goat .psc-name, .ps-ach-badge,
  .psc-deal, .psc-back .psc-q, .reel.spinning .reel-sym, .reel.locked, .ps-record { animation: none; }
  .meter-fill { transition: none; }
}
