/* Pux, the locker, the Daily screen and the cue offer popup.
 * Motion explains something or it is not here (docs/PUX-SPEC.md 22). Every
 * animation is switched off by prefers-reduced-motion at the bottom. */

/* ---------- a whole cue stick, laid flat, tip on the left ---------- */
.fp-stick { position: relative; overflow: hidden; flex: 0 0 auto; }
.fp-stick-i {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.45));
}

/* ---------- pux amounts and the earn flourish ---------- */
.fp-pux-amt { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.fp-pux-ico { width: 18px; height: 18px; object-fit: contain; display: block; }
.fp-pux-amt.big .fp-pux-ico { width: 26px; height: 26px; }
.fp-pux-amt b { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.fp-pux-pop {
  position: fixed; left: 50%; top: 18%; z-index: 9700;
  transform: translateX(-50%); pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px 12px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #5a4410, #2a1f05 60%, #1a1303);
  border: 2px solid var(--fp-gold);
  box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 4px rgba(255,215,106,.12), 0 0 42px rgba(255,215,106,.55);
  color: #ffe9a8; font-weight: 900; font-size: 30px; font-style: italic;
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 14px rgba(255,215,106,.6);
  animation: fp-pux-pop 2.7s cubic-bezier(.2,.8,.2,1) both;
}
.fp-pux-pop.big { font-size: 38px; padding: 14px 26px 14px 16px; }
.fp-pux-pop b { font-variant-numeric: tabular-nums; min-width: 2ch; }
.fp-pux-pop > img:not(.fp-pux-coin) { width: 40px; height: 40px; animation: fp-pux-spin .9s ease-out both; filter: drop-shadow(0 0 8px rgba(255,215,106,.8)); }
.fp-pux-pop.big > img:not(.fp-pux-coin) { width: 50px; height: 50px; }
.fp-pux-pop span { font-size: 13px; font-style: normal; opacity: .85; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fp-pux-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.fp-pux-shine::before { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: fp-pux-shine 1s .35s ease-out both; }
.fp-pux-coin { position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; opacity: 0;
  animation: fp-pux-coin .95s cubic-bezier(.15,.7,.3,1) both; }
@keyframes fp-pux-pop {
  0%   { opacity: 0; transform: translate(-50%, 30px) scale(.5); }
  12%  { opacity: 1; transform: translate(-50%, 0) scale(1.18); }
  20%  { transform: translate(-50%, 0) scale(.96); }
  28%  { transform: translate(-50%, 0) scale(1.03); }
  36%  { transform: translate(-50%, 0) scale(1); }
  82%  { opacity: 1; transform: translate(-50%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(.94); }
}
@keyframes fp-pux-shine { to { left: 130%; } }
@keyframes fp-pux-coin {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(1) rotate(var(--rot)); }
}
@keyframes fp-pux-spin { from { transform: rotateY(-260deg) scale(.6); } to { transform: rotateY(0) scale(1); } }

/* ---------- the locker ---------- */
.fp-lk-bal {
  font: inherit; border: 1px solid rgba(255,215,106,.4);
  margin-left: auto; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,215,106,.4); color: var(--fp-gold);
}
.fp-lk-tabs { margin: 10px 0 12px; }

.fp-lk-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 12px 12px; margin-bottom: 12px; overflow: hidden;
  border-radius: var(--fp-r-card);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(90,220,204,.14), transparent 60%),
    linear-gradient(180deg, var(--fp-bg-elev-2), var(--fp-bg-elev));
  border: 1px solid var(--fp-hairline);
}
.fp-lk-sweepwrap { position: relative; max-width: 100%; overflow: hidden; }
.fp-lk-hero-stick { max-width: 100%; }
.fp-lk-sweep {
  position: absolute; top: -20%; bottom: -20%; width: 34px; left: -60px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); pointer-events: none; mix-blend-mode: screen;
  animation: fp-lk-sweep 3.4s ease-in-out infinite;
}
@keyframes fp-lk-sweep { 0%, 55% { left: -60px; } 100% { left: 110%; } }
.fp-lk-stage-name { font-weight: 800; font-size: var(--fp-t-md); letter-spacing: .02em; }
.fp-lk-felt { width: 220px; height: 74px; border-radius: 12px; box-shadow: inset 0 0 0 5px rgba(0,0,0,.35), inset 0 -10px 20px rgba(0,0,0,.35); }

.fp-lk-list { display: flex; flex-direction: column; gap: 8px; }
.fp-lk-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 10px;
  border-radius: var(--fp-r-card); cursor: pointer;
  background: var(--fp-bg-elev); border: 1.5px solid var(--fp-hairline);
  transition: border-color var(--fp-tap), transform var(--fp-tap), background var(--fp-tap);
}
.fp-lk-row:active { transform: scale(.992); background: var(--fp-bg-elev-2); }
.fp-lk-row.on { border-color: var(--fp-accent); box-shadow: 0 0 14px rgba(90,220,204,.18); }
.fp-lk-visual { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; max-width: 56%; }
.fp-lk-visual .fp-stick { max-width: 100%; }
.fp-lk-clothchip { width: 120px; height: 38px; border-radius: 8px; box-shadow: inset 0 0 0 3px rgba(0,0,0,.35); }
.fp-lk-meta { flex: 1 1 auto; min-width: 0; }
.fp-lk-name { font-weight: 800; font-size: var(--fp-t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-lk-note { font-size: var(--fp-t-xs); color: var(--fp-ink-dim); margin-top: 2px; }
.fp-lk-act { flex: 0 0 auto; }

.fp-lk-btn, .fp-lk-state {
  min-width: 92px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .08em; cursor: pointer;
}
.fp-lk-btn.equip { background: var(--fp-accent); color: var(--fp-accent-ink); }
.fp-lk-btn.buy { background: linear-gradient(180deg, #ffe08a, #d9a52c); color: #2b1d02; }
.fp-lk-btn.buy .fp-pux-amt { color: #2b1d02; }
.fp-lk-btn.prem { background: transparent; color: var(--fp-gold); border: 1.5px solid var(--fp-gold); }
.fp-lk-btn.claim { background: var(--fp-accent-grad); color: var(--fp-accent-ink); animation: fp-claim-pulse 1.6s ease-in-out infinite; }
.fp-lk-state.on { color: var(--fp-good); border: 1.5px solid rgba(140,255,170,.5); cursor: default; }
.fp-lk-btn:active { transform: scale(.96); }
@keyframes fp-claim-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(90,220,204,.5); } 50% { box-shadow: 0 0 0 8px rgba(90,220,204,0); } }

@media (max-width: 420px) {
  .fp-lk-visual { max-width: 48%; }
  .fp-lk-btn, .fp-lk-state { min-width: 78px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-lk-sweep, .fp-lk-btn.claim, .fp-pux-pop, .fp-pux-pop img, .fp-pux-shine::before { animation: none !important; }
  .fp-pux-coin { display: none; }
  .fp-pux-pop { opacity: 1; }
}

/* ---------- Home: the dock's Premium call to action ---------- */
.fp-promo-chip.dock {
  position: relative; overflow: hidden; padding: 9px 14px 9px 11px;
  font-size: var(--fp-t-xs); font-weight: 900; letter-spacing: .04em;
  background: linear-gradient(180deg, rgba(255,215,106,.26), rgba(217,165,44,.16));
  border: 1.5px solid rgba(255,215,106,.7);
  box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 16px rgba(255,215,106,.28);
  animation: fp-dock-glow 2.6s ease-in-out infinite;
}
.fp-promo-chip.dock .fp-promo-text { display: inline; max-width: 24ch; text-transform: uppercase; }
.fp-promo-chip.dock::after {
  content: ''; position: absolute; top: -30%; bottom: -30%; width: 22px; left: -40px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg); animation: fp-dock-shine 3.6s ease-in-out infinite;
}
@keyframes fp-dock-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 10px rgba(255,215,106,.2); }
  50%      { box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 22px rgba(255,215,106,.5); }
}
@keyframes fp-dock-shine { 0%, 60% { left: -40px; } 100% { left: 120%; } }

/* ---------- Home: pux chip, shop button, dots ---------- */
.fp-pux-chip { color: var(--fp-gold); gap: 5px; }
.fp-pux-chip .fp-pux-ico { width: 16px; height: 16px; }
.fp-shopbtn { position: relative; }
.fp-shopbtn.wobble { animation: fp-shop-wobble 1.3s cubic-bezier(.3,.1,.3,1) both; }
@keyframes fp-shop-wobble {
  0% { transform: scale(1) rotate(0); }
  14% { transform: scale(1.32) rotate(0); }
  28% { transform: scale(1.32) rotate(-16deg); }
  42% { transform: scale(1.32) rotate(13deg); }
  56% { transform: scale(1.28) rotate(-9deg); }
  70% { transform: scale(1.2) rotate(6deg); }
  84% { transform: scale(1.08) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .fp-shopbtn.wobble { animation: none; } }
.fp-pill-dot {
  position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--fp-bad); box-shadow: 0 0 0 2px var(--fp-bg); animation: fp-dot-pulse 1.8s ease-in-out infinite;
}
.fp-pill { position: relative; }
.fp-pill-daily .fp-pill-dot { top: -2px; right: -2px; }
.fp-pill-daily.hot { border-color: rgba(140,255,170,.55); }
@keyframes fp-dot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

@media (prefers-reduced-motion: reduce) {
  .fp-promo-chip.dock, .fp-promo-chip.dock::after, .fp-pill-dot { animation: none !important; }
}

/* ---------- the cue offer popup (ui/cueOffer.js) ---------- */
.fp-offer { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fp-safe-t) + 10px) calc(var(--fp-safe-r) + 12px) calc(var(--fp-safe-b) + 10px) calc(var(--fp-safe-l) + 12px); }
.fp-offer-scrim { position: absolute; inset: 0; background: radial-gradient(70% 90% at 50% 50%, rgba(8,26,18,.7), rgba(0,0,0,.88)); opacity: 0; transition: opacity 240ms ease; }
.fp-offer.in .fp-offer-scrim { opacity: 1; }
.fp-offer.leaving .fp-offer-scrim { opacity: 0; }
.fp-offer-card {
  position: relative; display: flex; width: min(720px, 100%); max-height: 100%;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #123826 0%, #0a2016 60%, #07160f 100%);
  border: 1.5px solid rgba(255,215,106,.55);
  box-shadow: 0 18px 60px rgba(0,0,0,.7), 0 0 40px rgba(255,215,106,.18);
  transform: scale(.82) translateY(24px); opacity: 0;
  transition: transform 460ms cubic-bezier(.2,1.3,.3,1), opacity 220ms ease;
}
.fp-offer.in .fp-offer-card { transform: none; opacity: 1; }
.fp-offer.leaving .fp-offer-card { transform: scale(.94) translateY(10px); opacity: 0; transition: transform 220ms ease, opacity 200ms ease; }

.fp-offer-left { position: relative; flex: 0 0 38%; display: flex; align-items: center; justify-content: center; min-height: 260px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 55%, rgba(90,220,204,.22), transparent 70%); }
.fp-offer-glow { position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 50%, rgba(255,215,106,.25), transparent 70%); animation: fp-offer-breathe 3.2s ease-in-out infinite; }
.fp-offer-burst { position: absolute; width: 130%; max-width: none; opacity: .5; animation: fp-offer-rot 24s linear infinite; }
.fp-offer-stand { position: relative; overflow: hidden; z-index: 2; animation: fp-offer-float 4.2s ease-in-out infinite; }
.fp-offer-pass { position: absolute; left: -40%; right: -40%; height: 46px; top: -60px; background: linear-gradient(180deg, transparent, rgba(255,255,255,.75), transparent); transform: skewY(-14deg); mix-blend-mode: screen; animation: fp-offer-pass 3.2s ease-in-out 700ms infinite; pointer-events: none; }
.fp-offer-spark { position: absolute; width: 64px; height: 16px; object-fit: cover; object-position: 0 0; opacity: 0; z-index: 3;
  width: 36px; height: 36px; object-fit: none; }
.fp-offer-spark.a { left: 24%; top: 18%; animation: fp-offer-twinkle 2.4s ease-in-out .2s infinite; }
.fp-offer-spark.b { right: 20%; top: 40%; animation: fp-offer-twinkle 2.4s ease-in-out 1.1s infinite; }
.fp-offer-spark.c { left: 34%; bottom: 14%; animation: fp-offer-twinkle 2.4s ease-in-out 1.8s infinite; }

.fp-offer-right { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px 18px 8px; min-width: 0; }
.fp-offer-kicker { color: var(--fp-accent); font-weight: 900; letter-spacing: .26em; font-size: 11px; }
.fp-offer-head {
  font-weight: 900; font-style: italic; text-transform: uppercase; line-height: .98;
  font-size: clamp(26px, 6.4vh, 46px); letter-spacing: .01em; color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 26px rgba(255,215,106,.35);
}
.fp-offer-body { color: var(--fp-ink-dim); font-size: var(--fp-t-sm); min-height: 2.4em; }
.fp-offer-cta {
  position: relative; overflow: hidden; margin-top: 4px; min-height: 54px; border: 0; cursor: pointer;
  border-radius: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
  font: inherit; font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: .06em; color: #2b1d02;
  background: rgba(255,215,106,.28); box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.fp-offer-fill { position: absolute; inset: 0; transform-origin: left center; background: linear-gradient(180deg, #ffe9a6, #e0a92a); transition: transform 220ms linear; }
.fp-offer-ctalabel, .fp-offer-timer { position: relative; z-index: 1; }
.fp-offer-timer { font-size: 15px; font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; }
.fp-offer-cta::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 30px; left: -60px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-18deg); animation: fp-dock-shine 2.4s ease-in-out infinite; z-index: 2; pointer-events: none; }
.fp-offer-cta:active { transform: scale(.98); }
.fp-offer-cta.urgent { animation: fp-offer-shake 700ms ease-in-out infinite; }
.fp-offer-cta.late .fp-offer-fill { transform: scaleX(1) !important; opacity: .9; }
.fp-offer-cta.busy { opacity: .75; pointer-events: none; }
.fp-offer-cta.equip .fp-offer-fill { background: var(--fp-accent-grad); }
.fp-offer-cta.equip { color: var(--fp-accent-ink); }
.fp-offer-bonus { font-size: 12px; color: var(--fp-gold); font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 18px; transition: opacity 300ms; }
.fp-offer-bonus img { width: 14px; height: 14px; }
.fp-offer-bonus.gone { opacity: 0; }
.fp-offer-later { align-self: flex-start; background: none; border: 0; color: var(--fp-ink-faint); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 0; cursor: pointer; }
.fp-offer-card.claimed .fp-offer-head { animation: fp-offer-unlock 700ms cubic-bezier(.2,1.4,.3,1) both; color: var(--fp-good); }
.fp-offer-card.claimed .fp-offer-burst { opacity: .9; animation-duration: 8s; }

@keyframes fp-offer-breathe { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes fp-offer-rot { to { transform: rotate(360deg); } }
@keyframes fp-offer-float { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }
@keyframes fp-offer-pass { 0%, 40% { top: -60px; } 100% { top: 110%; } }
@keyframes fp-offer-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(35deg); } 70% { opacity: 0; transform: scale(.6) rotate(70deg); } }
@keyframes fp-offer-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-3px); } 40% { transform: translateX(3px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
@keyframes fp-offer-unlock { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 560px), (max-height: 380px) {
  .fp-offer-left { flex-basis: 34%; min-height: 220px; }
  .fp-offer-right { padding: 14px 16px 12px 4px; gap: 5px; }
  .fp-offer-cta { min-height: 46px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-offer-glow, .fp-offer-burst, .fp-offer-stand, .fp-offer-pass, .fp-offer-spark, .fp-offer-cta::after, .fp-offer-cta.urgent { animation: none !important; }
  .fp-offer-card { transition: opacity 120ms; transform: none; }
}

/* ---------- the Daily screen (ui/dailyScreen.js) ---------- */
.fp-daily { display: flex; flex-direction: column; gap: 12px; }
.fp-dy-streak { padding: 12px; border-radius: var(--fp-r-card); background: var(--fp-bg-elev); border: 1px solid var(--fp-hairline); }
.fp-dy-streak-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.fp-dy-h { font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--fp-accent); }
.fp-dy-sub { font-size: 12px; color: var(--fp-ink-dim); }
.fp-dy-pips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fp-dy-pip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px;
  background: rgba(0,0,0,.28); border: 1.5px solid transparent; font-size: 11px; color: var(--fp-ink-dim); }
.fp-dy-pip .fp-pux-ico { width: 18px; height: 18px; }
.fp-dy-pip b { color: var(--fp-gold); }
.fp-dy-pip-n { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.fp-dy-pip.done { background: rgba(140,255,170,.12); border-color: rgba(140,255,170,.45); }
.fp-dy-pip.today { border-color: var(--fp-gold); box-shadow: 0 0 12px rgba(255,215,106,.3); animation: fp-claim-pulse 2s ease-in-out infinite; }
.fp-dy-pip.big { background: rgba(255,215,106,.1); }
.fp-dy-note { margin-top: 8px; font-size: 11px; color: var(--fp-ink-faint); }

.fp-dy-cards { display: flex; flex-direction: column; gap: 8px; }
.fp-dy-card { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--fp-r-card);
  background: var(--fp-bg-elev); border: 1.5px solid var(--fp-hairline); }
.fp-dy-card.ready { border-color: var(--fp-accent); box-shadow: 0 0 16px rgba(90,220,204,.2); }
.fp-dy-card.claimed { opacity: 1; background: rgba(140,255,170,.06); }
.fp-dy-card-main { flex: 1 1 auto; min-width: 0; }
.fp-dy-tier { font-size: 10px; font-weight: 900; letter-spacing: .18em; color: var(--fp-ink-faint); }
.fp-dy-card.tier-medium .fp-dy-tier { color: var(--fp-warn); }
.fp-dy-card.tier-hard .fp-dy-tier { color: var(--fp-gold); }
.fp-dy-text { font-weight: 800; font-size: var(--fp-t-sm); margin: 2px 0 6px; }
.fp-dy-bar { height: 8px; border-radius: 99px; background: rgba(0,0,0,.4); overflow: hidden; }
.fp-dy-bar i { display: block; height: 100%; border-radius: 99px; background: var(--fp-accent-grad); transition: width 500ms cubic-bezier(.2,.8,.2,1); }
.fp-dy-count { font-size: 11px; color: var(--fp-ink-dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.fp-dy-card-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.fp-pux-amt.dim { color: var(--fp-gold); opacity: .85; }
.fp-dy-swap { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px dashed var(--fp-hairline); color: var(--fp-ink-dim);
  border-radius: 99px; padding: 3px 10px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.fp-dy-swap .fp-pux-ico { width: 13px; height: 13px; }
.fp-dy-all { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--fp-r-card);
  background: rgba(255,215,106,.08); border: 1px solid rgba(255,215,106,.25); font-weight: 800; font-size: var(--fp-t-sm); }
.fp-dy-all span:nth-child(2) { flex: 1; }
.fp-dy-all.done { border-color: var(--fp-good); background: rgba(140,255,170,.08); }
.fp-dy-cap, .fp-dy-nations { font-size: 12px; color: var(--fp-ink-dim); }
.fp-dy-nations { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--fp-r-card); background: rgba(90,220,204,.07); border: 1px solid rgba(90,220,204,.2); }

/* Children of these columns must never be squeezed by the screen's height:
 * the screen scrolls instead. */
.fp-locker > *, .fp-daily > *, .fp-lk-stage > *, .fp-dy-cards > * { flex-shrink: 0; }
.fp-locker { display: flex; flex-direction: column; }
.fp-lk-sweepwrap { min-height: 28px; }

.fp-nb-pux { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--fp-gold); opacity: .92; }
.fp-nb-pux .fp-pux-ico { width: 13px; height: 13px; }
@media (max-height: 340px) { .fp-nb-pux { display: none; } }

.fp-offer-head.long { font-size: clamp(22px, 4.8vh, 36px); }
.fp-offer-left { padding: 18px 0; }
.fp-lk-stage-note { font-size: var(--fp-t-xs); color: var(--fp-ink-dim); margin-top: -4px; }
.fp-lk-stage-act { margin-top: 2px; }
.fp-lk-stage-act .fp-btn { padding: 10px 22px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.32); background: rgba(255,255,255,.08); color: var(--fp-ink); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }

/* ---------- the light pass, clipped to the cue (FP.cues masks it) ---------- */
.fp-stick-i, .fp-upright { position: relative; overflow: hidden; }
.fp-stick-i { position: absolute; }
.fp-stick { filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); }
.fp-stick-i { filter: none; }
.fp-stick-sweep {
  position: absolute; left: -20%; right: -20%; height: 16%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.85), transparent);
  pointer-events: none; animation: fp-stick-sweep 3.2s ease-in-out .6s infinite;
}
@keyframes fp-stick-sweep { 0%, 45% { top: -30%; } 100% { top: 120%; } }
.fp-lk-sweep, .fp-offer-pass { display: none; }

/* ---------- a cloth, shown as a little table ---------- */
.fp-minitable {
  --felt: #1f7a4d; position: relative; width: 132px; height: 50px; border-radius: 10px; flex: 0 0 auto;
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(255,255,255,.16), transparent 70%),
    linear-gradient(var(--felt), var(--felt));
  border: 6px solid #5b3519;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 0 14px rgba(0,0,0,.45), 0 0 0 1px #2c180a, 0 4px 10px rgba(0,0,0,.45);
  background-clip: padding-box;
}
.fp-minitable::before {
  content: ''; position: absolute; inset: -5px;
  background:
    radial-gradient(circle at 0 0, #050505 4px, transparent 5px),
    radial-gradient(circle at 100% 0, #050505 4px, transparent 5px),
    radial-gradient(circle at 0 100%, #050505 4px, transparent 5px),
    radial-gradient(circle at 100% 100%, #050505 4px, transparent 5px),
    radial-gradient(circle at 50% 0, #050505 3.5px, transparent 4.5px),
    radial-gradient(circle at 50% 100%, #050505 3.5px, transparent 4.5px);
  pointer-events: none;
}
.fp-minitable::after {
  content: ''; position: absolute; left: 24%; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfcfcf 60%, #8a8a8a);
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.fp-minitable.big { width: 260px; height: 104px; border-width: 11px; border-radius: 16px; }
.fp-minitable.big::before {
  inset: -9px;
  background:
    radial-gradient(circle at 0 0, #050505 8px, transparent 9px),
    radial-gradient(circle at 100% 0, #050505 8px, transparent 9px),
    radial-gradient(circle at 0 100%, #050505 8px, transparent 9px),
    radial-gradient(circle at 100% 100%, #050505 8px, transparent 9px),
    radial-gradient(circle at 50% 0, #050505 7px, transparent 8px),
    radial-gradient(circle at 50% 100%, #050505 7px, transparent 8px);
}
.fp-minitable.big::after { width: 13px; height: 13px; margin-top: -6.5px; }
@media (prefers-reduced-motion: reduce) { .fp-stick-sweep { animation: none; display: none; } }

.fp-lk-state.working { border: 1.5px solid var(--fp-hairline); cursor: default; }
.fp-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.2); border-top-color: var(--fp-accent); animation: fp-spin .8s linear infinite; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
.fp-lk-unlocked {
  position: fixed; left: 50%; top: 30%; z-index: 9700; pointer-events: none; transform: translate(-50%, -50%);
  padding: 14px 34px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(18,56,38,.96), rgba(7,22,15,.96));
  border: 1.5px solid var(--fp-gold); box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 30px rgba(255,215,106,.3);
  animation: fp-unlocked 2.1s cubic-bezier(.2,1.2,.3,1) both;
}
.fp-lk-unlocked small { display: block; color: var(--fp-accent); font-weight: 900; letter-spacing: .3em; font-size: 11px; }
.fp-lk-unlocked b { display: block; color: #fff; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; letter-spacing: .02em; text-shadow: 0 0 20px rgba(255,215,106,.4); }
@keyframes fp-unlocked {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  28% { transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(.98); }
}
@media (prefers-reduced-motion: reduce) { .fp-lk-unlocked { animation: none; } .fp-spin { animation-duration: 2s; } }

.fp-lk-head { margin: 10px 2px 0; font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; color: var(--fp-accent); }
.fp-lk-head:first-child { margin-top: 0; }

/* ---------- the road to a country cue (cueOffer.showProgress) ---------- */
.fp-ccprog-bar { height: 14px; border-radius: 99px; background: rgba(0,0,0,.45); overflow: hidden; margin-top: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.fp-ccprog-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffe08a, #d9a52c); box-shadow: 0 0 12px rgba(255,215,106,.5);
  transition: width 900ms cubic-bezier(.2,.8,.2,1); }
.fp-ccprog-count { font-weight: 900; font-size: var(--fp-t-md); color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-ccprog .fp-offer-cta { color: var(--fp-accent-ink); }
.fp-ccprog .fp-offer-fill { background: var(--fp-accent-grad); }

/* ---------- What's new (ui/whatsNew.js) ---------- */
.fp-news { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fp-safe-t) + 10px) calc(var(--fp-safe-r) + 14px) calc(var(--fp-safe-b) + 10px) calc(var(--fp-safe-l) + 14px); }
.fp-news-scrim { position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 50%, rgba(8,30,20,.82), rgba(0,0,0,.94)); opacity: 0; transition: opacity 260ms; }
.fp-news.in .fp-news-scrim { opacity: 1; }
.fp-news.leaving .fp-news-scrim { opacity: 0; }
.fp-news-card { position: relative; width: min(900px, 100%); max-height: 100%; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #123826, #071a10);
  border: 1.5px solid rgba(90,220,204,.45); box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 50px rgba(90,220,204,.15);
  transform: translateY(30px) scale(.9); opacity: 0; transition: transform 480ms cubic-bezier(.2,1.25,.3,1), opacity 220ms; }
.fp-news.in .fp-news-card { transform: none; opacity: 1; }
.fp-news.leaving .fp-news-card { transform: translateY(16px) scale(.96); opacity: 0; transition: transform 240ms, opacity 220ms; }
.fp-news-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; height: min(62vh, 420px); }
.fp-news-page { position: absolute; inset: 0; display: flex; animation: fp-news-in 380ms cubic-bezier(.2,.9,.3,1) both; }
.fp-news-page.from-left { animation-name: fp-news-in-l; }
.fp-news-page.to-left { animation: fp-news-out-l 300ms ease both; }
.fp-news-page.to-right { animation: fp-news-out-r 300ms ease both; }
@keyframes fp-news-in { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-news-in-l { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-news-out-l { to { transform: translateX(-60px); opacity: 0; } }
@keyframes fp-news-out-r { to { transform: translateX(60px); opacity: 0; } }
.fp-news-art { flex: 0 0 52%; background: #0a2016 center / cover no-repeat; position: relative;
  animation: fp-news-art 700ms cubic-bezier(.2,.9,.3,1) both; }
.fp-news-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 70%, #0d2a1c); }
@keyframes fp-news-art { from { transform: scale(1.08); filter: brightness(.6); } to { transform: none; filter: none; } }
.fp-news-text { flex: 1 1 auto; min-width: 0; padding: 26px 26px 10px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: auto; }
.fp-news-kicker { color: var(--fp-accent); font-weight: 900; letter-spacing: .26em; font-size: 11px; animation: fp-news-rise 400ms 120ms both; }
.fp-news-title { font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1; font-size: clamp(24px, 5.6vh, 40px);
  color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 24px rgba(255,215,106,.3); animation: fp-news-rise 420ms 200ms both; }
.fp-news-body { color: var(--fp-ink-dim); font-size: var(--fp-t-sm); line-height: 1.4; animation: fp-news-rise 420ms 280ms both; }
.fp-news-bullets { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.fp-news-bullet { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fp-t-sm); animation: fp-news-rise 420ms both; }
.fp-news-bi { width: 22px; height: 22px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; color: var(--fp-gold); }
img.fp-news-bi { object-fit: contain; }
@keyframes fp-news-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.fp-news-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--fp-hairline); }
.fp-news-dots { flex: 1; display: flex; justify-content: center; gap: 7px; }
.fp-news-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); transition: width 250ms, background 250ms; }
.fp-news-dots i.on { width: 24px; background: var(--fp-accent); }
.fp-news-skip { background: none; border: 0; color: var(--fp-ink-faint); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; padding: 8px 4px; }
.fp-news-next, .fp-news-cta { min-height: 44px; padding: 0 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-style: italic; letter-spacing: .06em; font-size: 15px; }
.fp-news-next { background: var(--fp-accent-grad); color: var(--fp-accent-ink); }
.fp-news-next.last { background: linear-gradient(180deg, #ffe08a, #d9a52c); color: #2b1d02; animation: fp-claim-pulse 1.6s ease-in-out infinite; }
.fp-news-cta { background: transparent; color: var(--fp-gold); border: 1.5px solid var(--fp-gold); }
.fp-news-next:active, .fp-news-cta:active { transform: scale(.97); }
@media (max-width: 560px) { .fp-news-art { flex-basis: 40%; } .fp-news-text { padding: 16px 16px 8px 10px; } }
@media (max-height: 380px) { .fp-news-stage { height: 64vh; } .fp-news-nav { padding: 8px 14px 10px; } }
@media (prefers-reduced-motion: reduce) {
  .fp-news-page, .fp-news-art, .fp-news-kicker, .fp-news-title, .fp-news-body, .fp-news-bullet, .fp-news-next.last { animation: none !important; }
  .fp-news-card { transition: opacity 150ms; transform: none; }
}

/* ---------- table borders in the locker (js/tables.js preview) ---------- */
.fp-minitable.has-rail { border-color: transparent; box-shadow: inset 0 0 14px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.45); }
.fp-minitable-rail { position: absolute; inset: -6px; border-radius: 10px; pointer-events: none;
  background-repeat: no-repeat; background-size: 100% 100%; }
.fp-minitable.big .fp-minitable-rail { inset: -11px; border-radius: 16px; }
.fp-minitable.has-rail::before { z-index: 1; }
.fp-minitable-rail.sheet { background-position: 0 0; animation: fp-rail-sheet 0.8s steps(1) infinite; }
@keyframes fp-rail-sheet { 0% { background-position: 0 0; } 25% { background-position: 100% 0; } 50% { background-position: 0 100%; } 75% { background-position: 100% 100%; } }
.fp-minitable-rail.fx-hue { animation: fp-rail-hue 6s linear infinite; }
@keyframes fp-rail-hue { to { filter: hue-rotate(360deg); } }
.fp-minitable-rail.fx-pulse { animation: fp-rail-pulse 2.8s ease-in-out infinite; }
@keyframes fp-rail-pulse { 50% { filter: brightness(1.35); } }
.fp-minitable-rail.fx-shimmer { -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0,0,0,.7) 50%, #000 60%); -webkit-mask-size: 300% 100%; animation: fp-rail-shimmer 3s linear infinite; }
@keyframes fp-rail-shimmer { from { -webkit-mask-position: 100% 0; filter: brightness(1); } 50% { filter: brightness(1.25); } to { -webkit-mask-position: 0 0; filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .fp-minitable-rail { animation: none !important; } }

/* ---------- Codex art in the Daily screen and the cue popup ---------- */
.fp-dy-h { display: inline-flex; align-items: center; gap: 6px; }
.fp-dy-flame { width: 22px; height: 22px; }
.fp-dy-chest { width: 34px; height: 34px; object-fit: contain; margin: -6px 0 -4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.fp-dy-tier { display: flex; align-items: center; gap: 6px; }
.fp-dy-badge { width: 22px; height: 22px; }
.fp-offer-pedestal { position: absolute; bottom: 4%; left: 50%; width: 74%; transform: translateX(-50%); z-index: 1; opacity: .95; }
.fp-offer-confetti { position: absolute; left: 6%; top: 8%; width: 30%; aspect-ratio: 1; z-index: 5; pointer-events: none;
  background: url(../assets/offer/offer_confetti_8x_2048x256.png) 0 0 / 800% 100% no-repeat;
  animation: fp-confetti 1.1s steps(7) forwards; transform: scale(1.6); }
@keyframes fp-confetti { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .fp-offer-confetti { display: none; } }

/* ---------- the end of a match against a persona (ui/aiResult.js) ---------- */
.fp-ar { position: fixed; inset: 0; z-index: 9400; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fp-safe-t) + 8px) calc(var(--fp-safe-r) + 12px) calc(var(--fp-safe-b) + 8px) calc(var(--fp-safe-l) + 12px); }
.fp-ar-scrim { position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 45%, rgba(8,30,20,.78), rgba(0,0,0,.95)); opacity: 0; transition: opacity 260ms; }
.fp-ar.in .fp-ar-scrim { opacity: 1; }
.fp-ar-rays { position: absolute; width: min(120vh, 900px); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; }
.fp-ar.win.in .fp-ar-rays { opacity: .5; animation: fp-offer-rot 28s linear infinite; }
.fp-ar.lose .fp-ar-rays { display: none; }
.fp-ar-card { position: relative; display: flex; gap: 18px; width: min(860px, 100%); max-height: 100%; padding: 18px;
  border-radius: 22px; background: linear-gradient(160deg, #123826, #071a10);
  border: 1.5px solid rgba(255,215,106,.5); box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 40px rgba(255,215,106,.12);
  transform: translateY(26px) scale(.92); opacity: 0; transition: transform 460ms cubic-bezier(.2,1.25,.3,1), opacity 220ms; overflow: auto; }
.fp-ar.lose .fp-ar-card { border-color: rgba(255,255,255,.18); box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.fp-ar.in .fp-ar-card { transform: none; opacity: 1; }
.fp-ar.out .fp-ar-card { transform: scale(.96); opacity: 0; transition: transform 200ms, opacity 200ms; }
.fp-ar-main { flex: 1 1 56%; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fp-ar-side { flex: 1 1 40%; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 9px; }

.fp-ar-banner { text-align: left; }
.fp-ar-kicker { font-size: 11px; font-weight: 900; letter-spacing: .3em; color: var(--fp-accent); animation: fp-news-rise 400ms 200ms both; }
.fp-ar.lose .fp-ar-kicker { color: var(--fp-ink-dim); }
.fp-ar-title { font-weight: 900; font-style: italic; line-height: .95; font-size: clamp(38px, 11vh, 72px); letter-spacing: .01em; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.45), 0 0 34px rgba(255,215,106,.45); transform-origin: left center; animation: fp-ar-slam 620ms 120ms cubic-bezier(.2,1.6,.3,1) both; }
.fp-ar.lose .fp-ar-title { color: #d8ded9; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
.fp-ar-reason { font-size: var(--fp-t-xs); color: var(--fp-ink-dim); margin-top: 2px; }
@keyframes fp-ar-slam { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.96); opacity: 1; } 100% { transform: none; } }

.fp-ar-vs { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--fp-hairline); animation: fp-news-rise 420ms 380ms both; }
.fp-ar-face { flex: 0 0 auto; width: clamp(54px, 13vh, 84px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,215,106,.55);
  background-repeat: no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.fp-ar-who { min-width: 0; }
.fp-ar-name { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: var(--fp-t-lg); }
.fp-ar-style { color: var(--fp-gold); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.fp-ar-note { color: var(--fp-ink-dim); font-size: 12px; font-style: italic; margin-top: 2px; }

.fp-ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; animation: fp-news-rise 420ms 500ms both; }
.fp-ar-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--fp-hairline); }
.fp-ar-stat b { font-size: var(--fp-t-lg); font-variant-numeric: tabular-nums; }
.fp-ar-stat span { font-size: 9px; letter-spacing: .14em; color: var(--fp-ink-faint); font-weight: 800; }

.fp-ar-pay { padding: 10px 12px; border-radius: 14px; background: rgba(255,215,106,.06); border: 1px dashed rgba(255,215,106,.3); animation: fp-news-rise 420ms 620ms both; }
.fp-ar-pay.paid { background: rgba(255,215,106,.12); border: 1.5px solid rgba(255,215,106,.6); box-shadow: 0 0 22px rgba(255,215,106,.18); }
.fp-ar-pay.none { background: rgba(255,255,255,.03); border-color: var(--fp-hairline); }
.fp-ar-payline { display: flex; align-items: center; gap: 8px; }
.fp-ar-coin { width: 30px; height: 30px; }
.fp-ar-pay.paid .fp-ar-coin { animation: fp-pux-spin .9s ease-out both; }
.fp-ar-amt { font-weight: 900; font-size: 28px; color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-ar-pay.none .fp-ar-amt, .fp-ar-pay.none .fp-ar-coin { opacity: .35; }
.fp-ar-why { font-size: 12px; color: var(--fp-ink-dim); margin-top: 2px; }

.fp-ar-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 52px; padding: 10px 16px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--fp-ink);
  background: var(--fp-bg-elev); border: 1.5px solid var(--fp-hairline); animation: fp-news-rise 420ms 700ms both; }
.fp-ar-btn b { font-weight: 900; font-style: italic; letter-spacing: .05em; font-size: 15px; }
.fp-ar-btn span { font-size: 11px; opacity: .8; font-weight: 600; }
.fp-ar-btn.primary { background: var(--fp-accent-grad); color: var(--fp-accent-ink); border-color: transparent; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.fp-ar-btn.primary.hot { animation: fp-news-rise 420ms 700ms both, fp-claim-pulse 1.8s 1.4s ease-in-out infinite; }
.fp-ar-btn.ghost { background: transparent; min-height: 40px; }
.fp-ar-btn:active { transform: scale(.98); }
.fp-ar-note2 { font-size: 11px; color: var(--fp-ink-faint); text-align: center; margin-top: 2px; }

@media (max-width: 640px), (max-height: 380px) {
  .fp-ar-card { gap: 12px; padding: 12px; }
  .fp-ar-title { font-size: clamp(30px, 9vh, 52px); }
  .fp-ar-btn { min-height: 44px; padding: 8px 12px; }
  .fp-ar-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-ar-title, .fp-ar-kicker, .fp-ar-vs, .fp-ar-stats, .fp-ar-pay, .fp-ar-btn, .fp-ar-rays, .fp-ar-coin { animation: none !important; }
}

/* ---------- cloth overlays in the locker preview (tables.js preview) ---------- */
.fp-minitable-ov { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; z-index: 0; }
.fp-minitable-ov.tile { background-repeat: repeat; background-size: 46px 46px; }
.fp-minitable.big .fp-minitable-ov.tile { background-size: 96px 96px; }

/* ---------- the rated result screen, in the new look (ui/resultScreen.js) ---------- */
.fp-res-rays { position: absolute; z-index: 1; width: min(130vh, 980px); left: 50%; top: 38%; transform: translate(-50%, -50%);
  opacity: .38; pointer-events: none; animation: fp-offer-rot 30s linear infinite; }
.fp-res-kicker { font-size: 11px; font-weight: 900; letter-spacing: .3em; color: var(--fp-accent); margin-bottom: 4px; animation: fp-news-rise 400ms 160ms both; }
.fp-res-loss .fp-res-kicker, .fp-res-void .fp-res-kicker { color: var(--fp-ink-dim); }
.fp-res-title { font-style: italic; letter-spacing: .02em; }
.fp-res-pux { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,215,106,.12); border: 1.5px solid rgba(255,215,106,.55); box-shadow: 0 0 22px rgba(255,215,106,.18);
  animation: fp-news-rise 420ms both; }
.fp-res-pux-ico { width: 26px; height: 26px; animation: fp-pux-spin .9s ease-out both; }
.fp-res-pux-amt { font-weight: 900; font-size: 24px; color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-res-pux-for { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fp-ink-dim); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .fp-res-rays, .fp-res-kicker, .fp-res-pux, .fp-res-pux-ico { animation: none !important; } }

/* The rays are centred with a transform, so their spin has to carry the centring too. */
@keyframes fp-rays-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.fp-res-rays { animation-name: fp-rays-spin !important; }
.fp-ar.win.in .fp-ar-rays { animation-name: fp-rays-spin; }

/* ---------- the daily bullseye (ui/dartGame.js) ---------- */
.fp-dart { position: fixed; inset: 0; z-index: 9550; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fp-safe-t) + 8px) calc(var(--fp-safe-r) + 12px) calc(var(--fp-safe-b) + 8px) calc(var(--fp-safe-l) + 12px); }
.fp-dart-scrim { position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 45%, rgba(8,30,20,.85), rgba(0,0,0,.95)); opacity: 0; transition: opacity 260ms; }
.fp-dart.in .fp-dart-scrim { opacity: 1; }
.fp-dart-card { position: relative; display: flex; align-items: center; gap: 22px; width: min(900px, 100%); max-height: 100%; padding: 18px 22px;
  border-radius: 22px; background: linear-gradient(160deg, #123826, #071a10); border: 1.5px solid rgba(255,215,106,.5);
  box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 40px rgba(255,215,106,.12); overflow: auto;
  transform: translateY(26px) scale(.92); opacity: 0; transition: transform 460ms cubic-bezier(.2,1.25,.3,1), opacity 220ms; }
.fp-dart.in .fp-dart-card { transform: none; opacity: 1; }
.fp-dart.leaving .fp-dart-card { transform: scale(.95); opacity: 0; transition: transform 220ms, opacity 200ms; }
.fp-dart.leaving .fp-dart-scrim { opacity: 0; }
.fp-dart-left { flex: 0 0 auto; }
.fp-dart-stage { position: relative; width: clamp(200px, 66vh, 400px); aspect-ratio: 1; touch-action: manipulation; cursor: crosshair; }
.fp-dart-stage.hit { animation: fp-dart-shake 300ms ease; }
@keyframes fp-dart-shake { 0%, 100% { transform: none; } 25% { transform: translate(-4px, 2px) rotate(-.6deg); } 60% { transform: translate(3px, -2px) rotate(.4deg); } }
.fp-dart-board, .fp-dart-over { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-dart-board { filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); }
.fp-dart-sight { transition: opacity 200ms; filter: drop-shadow(0 0 4px rgba(255,255,255,.7)); }
.fp-dart-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none;
  font-weight: 900; font-style: italic; font-size: clamp(34px, 9vh, 64px); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 24px rgba(255,215,106,.6); }
.fp-dart-pop.show { animation: fp-dart-pop 1100ms cubic-bezier(.2,1.5,.3,1) both; }
.fp-dart-pop.r4 { color: #ffd76a; font-size: clamp(40px, 11vh, 76px); }
.fp-dart-pop.r0 { color: #b8c4bd; }
@keyframes fp-dart-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 70% { opacity: 1; transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -110%) scale(1); } }

.fp-dart-right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fp-dart-kicker { font-size: 11px; font-weight: 900; letter-spacing: .3em; color: var(--fp-accent); }
.fp-dart-title { font-weight: 900; font-style: italic; line-height: .95; font-size: clamp(30px, 8vh, 52px); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 26px rgba(255,215,106,.35); }
.fp-dart-body { color: var(--fp-ink-dim); font-size: var(--fp-t-sm); }
.fp-dart-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 2px 0 4px; }
.fp-dart-lrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fp-ink-dim); }
.fp-dart-lrow i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); flex: 0 0 auto; }
.fp-dart-lrow span { flex: 1; }
.fp-dart-lrow b { color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-dart-throw { position: relative; overflow: hidden; min-height: 56px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 900; font-style: italic; letter-spacing: .08em; font-size: 22px; color: #2b1d02;
  background: rgba(255,215,106,.25); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.fp-dart-throw .fp-dart-fill { position: absolute; inset: 0; background: linear-gradient(180deg, #ffe9a6, #e0a92a); }
.fp-dart-throw span { position: relative; z-index: 1; }
.fp-dart-throw::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 30px; left: -60px; background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent); transform: skewX(-18deg); animation: fp-dock-shine 2.4s ease-in-out infinite; z-index: 2; pointer-events: none; }
.fp-dart-throw:active { transform: scale(.98); }
.fp-dart-throw.busy { opacity: .7; pointer-events: none; }
.fp-dart-throw.go .fp-dart-fill { background: var(--fp-accent-grad); }
.fp-dart-throw.go { color: var(--fp-accent-ink); }
.fp-dart-skip { align-self: flex-start; background: none; border: 0; color: var(--fp-ink-faint); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 2px; cursor: pointer; }
.fp-dart-skip:disabled { opacity: .4; }
.fp-dart-retrybox { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.fp-dart-retry { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); color: var(--fp-ink); font: inherit; cursor: pointer; }
.fp-dart-retry-t { font-weight: 900; letter-spacing: .08em; font-size: 14px; }
.fp-dart-retry-s { font-size: 12px; color: var(--fp-ink-dim); font-weight: 700; }
.fp-dart-retry:disabled { opacity: .45; cursor: default; }
.fp-dart-retry.busy { opacity: .6; }
.fp-dart-rnote { font-size: 12px; color: var(--fp-ink-dim); }
.fp-dart-result { display: flex; flex-direction: column; gap: 10px; animation: fp-news-rise 420ms both; }
.fp-dart-rtitle { font-weight: 900; font-style: italic; font-size: clamp(26px, 7vh, 44px); color: var(--fp-gold); line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.45); }
.fp-dart-rpay { display: flex; align-items: center; gap: 8px; }
.fp-dart-rpay img { width: 34px; height: 34px; animation: fp-pux-spin .9s ease-out both; }
.fp-dart-rpay b { font-size: 34px; color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-dart-rpay span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fp-ink-dim); font-weight: 800; }
.fp-dart-rstreak { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,140,60,.1); border: 1px solid rgba(255,140,60,.4); font-weight: 800; font-size: 14px; }
.fp-dart-rstreak img { width: 22px; height: 22px; }
.fp-dart-rhint { font-size: 12px; color: var(--fp-ink-faint); }
@media (max-width: 640px), (max-height: 380px) {
  .fp-dart-card { gap: 14px; padding: 12px 14px; }
  .fp-dart-stage { width: clamp(180px, 68vh, 280px); }
  .fp-dart-legend { display: none; }
  .fp-dart-throw { min-height: 48px; font-size: 18px; }
}

/* ---------- the streak (ui/streakPopup.js, the Home chip, Daily) ---------- */
.fp-streak-chip { gap: 5px; color: #ffb066; }
.fp-streak-chip-ico { width: 17px; height: 17px; display: flex; color: #ff8a2a; }
.fp-streak-chip b { font-variant-numeric: tabular-nums; }
.fp-streak-chip.lit { border-color: rgba(255,160,80,.7); box-shadow: 0 0 14px rgba(255,140,60,.35); }
.fp-streak-chip.open { border-color: rgba(255,160,80,.45); animation: fp-streak-open 1.8s ease-in-out infinite; }
.fp-streak-chip.open .fp-streak-chip-ico { animation: fp-pill-dot-beat 1.8s ease-in-out infinite; }
.fp-streak-chip.none { color: var(--fp-ink-faint); }
.fp-streak-chip.none .fp-streak-chip-ico { color: var(--fp-ink-faint); opacity: .6; }
@keyframes fp-streak-open { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,60,.45); } 50% { box-shadow: 0 0 0 7px rgba(255,140,60,0); } }
@keyframes fp-pill-dot-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }

.fp-streak { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--fp-safe-t) + 8px) calc(var(--fp-safe-r) + 12px) calc(var(--fp-safe-b) + 8px) calc(var(--fp-safe-l) + 12px); }
.fp-streak-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.82); opacity: 0; transition: opacity 240ms; }
.fp-streak.in .fp-streak-scrim { opacity: 1; }
.fp-streak.leaving .fp-streak-scrim { opacity: 0; }
.fp-streak-card { position: relative; width: min(720px, 100%); padding: 18px 20px 16px; border-radius: 22px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, #3a1d0a, #160a04 70%); border: 1.5px solid rgba(255,160,80,.6);
  box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 44px rgba(255,140,60,.2);
  transform: translateY(26px) scale(.92); opacity: 0; transition: transform 460ms cubic-bezier(.2,1.3,.3,1), opacity 220ms; max-height: 100%; overflow: auto; }
.fp-streak.in .fp-streak-card { transform: none; opacity: 1; }
.fp-streak.leaving .fp-streak-card { transform: scale(.95); opacity: 0; transition: transform 220ms, opacity 200ms; }
.fp-streak-head { display: flex; align-items: center; gap: 14px; }
.fp-streak-flame { width: clamp(52px, 12vh, 84px); height: auto; filter: drop-shadow(0 0 16px rgba(255,140,60,.6)); animation: fp-pux-spin .9s ease-out both, fp-flame-flick 2.2s ease-in-out .9s infinite; }
@keyframes fp-flame-flick { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.06) rotate(-2deg); } 70% { transform: scale(.97) rotate(2deg); } }
.fp-streak-htext { flex: 1; min-width: 0; }
.fp-streak-kicker { font-size: 11px; font-weight: 900; letter-spacing: .3em; color: #ffb066; }
.fp-streak-title { font-weight: 900; font-style: italic; line-height: .95; font-size: clamp(34px, 9vh, 60px); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.5), 0 0 26px rgba(255,140,60,.5); animation: fp-ar-slam 600ms 120ms cubic-bezier(.2,1.6,.3,1) both; transform-origin: left center; }
.fp-streak-pay { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255,215,106,.14); border: 1.5px solid rgba(255,215,106,.6); }
.fp-streak-pay img { width: 26px; height: 26px; }
.fp-streak-pay b { font-size: 24px; color: var(--fp-gold); font-variant-numeric: tabular-nums; }
.fp-streak-pay span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fp-ink-dim); font-weight: 800; }
.fp-streak-pips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fp-streak-pip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: rgba(0,0,0,.32); border: 1.5px solid transparent; font-size: 11px; color: var(--fp-ink-dim); animation: fp-news-rise 380ms both; }
.fp-streak-pip .n { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.fp-streak-pip img { width: 22px; height: 22px; object-fit: contain; }
.fp-streak-pip.big img { width: 30px; height: 30px; margin: -4px 0; }
.fp-streak-pip b { color: var(--fp-gold); }
.fp-streak-pip.done { background: rgba(140,255,170,.12); border-color: rgba(140,255,170,.45); }
.fp-streak-pip.today { border-color: #ffb066; box-shadow: 0 0 16px rgba(255,140,60,.5); transform: scale(1.06); }
.fp-streak-rule { color: var(--fp-ink-dim); font-size: var(--fp-t-sm); line-height: 1.4; }
.fp-streak-row { display: flex; gap: 10px; align-items: center; }
.fp-streak-go { min-height: 46px; padding: 0 30px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 900; font-style: italic; letter-spacing: .08em; font-size: 16px; background: linear-gradient(180deg, #ffe9a6, #e0a92a); color: #2b1d02; }
.fp-streak-more { background: none; border: 1.5px solid rgba(255,255,255,.25); color: var(--fp-ink); min-height: 46px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }

/* the bullseye card on the Daily screen */
.fp-dy-dart { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--fp-r-card); text-align: left; cursor: pointer; font: inherit; color: var(--fp-ink);
  background: linear-gradient(135deg, rgba(255,215,106,.14), rgba(255,107,74,.1)); border: 1.5px solid rgba(255,215,106,.5); }
button.fp-dy-dart { animation: fp-claim-pulse 2s ease-in-out infinite; }
.fp-dy-dart.done { cursor: default; background: rgba(140,255,170,.06); border-color: rgba(140,255,170,.3); }
.fp-dy-dart-badge { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: radial-gradient(circle, #ff6b4a 0 22%, #f1c95a 23% 48%, #d9a52c 49% 100%); color: #2b1d02; font-weight: 900; }
.fp-dy-dart-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fp-dy-dart-text span { font-size: 12px; color: var(--fp-ink-dim); }
.fp-dy-dart-go { padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, #ffe9a6, #e0a92a); color: #2b1d02; font-weight: 900; font-style: italic; letter-spacing: .06em; }

@media (max-width: 560px) { .fp-streak-pips { gap: 4px; } .fp-streak-pip { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .fp-streak-flame, .fp-streak-title, .fp-streak-pip, .fp-streak-chip.open, .fp-streak-chip.open .fp-streak-chip-ico, .fp-dart-throw::after, .fp-dart-pop.show, button.fp-dy-dart { animation: none !important; }
  .fp-dart-pop.show { opacity: 1; }
}

/* ---------- the table preview (js/tables.js preview) ---------- */
.fp-pt { --felt: #1f7a4d; position: relative; width: 132px; aspect-ratio: 1480 / 813; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.fp-pt.big { width: min(100%, 580px); }
.fp-pt-play { position: absolute; left: 3.2%; right: 3.2%; top: 5.8%; bottom: 5.8%; overflow: hidden; background-color: var(--felt);
  background-image: radial-gradient(70% 90% at 50% 40%, rgba(255,255,255,.16), transparent 70%); box-shadow: inset 0 0 18px rgba(0,0,0,.45); }
.fp-pt-ov { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; }
.fp-pt-ov.tile { background-repeat: repeat; background-size: 18.5% auto; }
.fp-pt-ball { position: absolute; width: 3.6%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 32%), var(--ball, #ddd);
  box-shadow: 0 1.5px 2.5px rgba(0,0,0,.55), inset -1.5px -2px 3px rgba(0,0,0,.35); }
.fp-pt-ball.cue { width: 3.6%; background: radial-gradient(circle at 34% 30%, #fff 0, #f3f3f3 40%, #bdbdbd 100%); }
.fp-pt:not(.big) .fp-pt-ball { width: 4.6%; }
.fp-pt-frame { position: absolute; inset: 0; pointer-events: none; }
.fp-pt-frame.art { background-repeat: no-repeat; background-size: 100% 100%; }
.fp-pt-frame.art.sheet { background-position: 0 0; animation: fp-rail-sheet 0.8s steps(1) infinite; }
.fp-pt-frame.art.fx-hue { animation: fp-rail-hue 6s linear infinite; }
.fp-pt-frame.art.fx-pulse { animation: fp-rail-pulse 2.8s ease-in-out infinite; }
.fp-pt-frame.art.fx-shimmer { -webkit-mask-image: linear-gradient(100deg, #000 40%, rgba(0,0,0,.7) 50%, #000 60%); -webkit-mask-size: 300% 100%; animation: fp-rail-shimmer 3s linear infinite; }
.fp-pt-frame.classic { box-sizing: border-box; padding: 3.2%; border-radius: 2.4% / 4.4%;
  background: linear-gradient(180deg, #7a4a27, #5b3519 45%, #43260f);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; }
.fp-pt-frame.classic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 2px 5px rgba(255,255,255,.18); }
.fp-pt-holes { position: absolute; inset: 0; pointer-events: none; }
.fp-pt-pocket { position: absolute; width: 5.4%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #000 58%, #111); transform: translate(-50%, -50%); }
.fp-pt-pocket.tm, .fp-pt-pocket.bm { width: 3.8%; }
.fp-pt-pocket.tl { left: 3.5%; top: 6.4%; } .fp-pt-pocket.tr { left: 96.5%; top: 6.4%; }
.fp-pt-pocket.bl { left: 3.5%; top: 93.6%; } .fp-pt-pocket.br { left: 96.5%; top: 93.6%; }
.fp-pt-pocket.tm { left: 50%; top: 5.25%; } .fp-pt-pocket.bm { left: 50%; top: 94.75%; }
.fp-pt-sight { position: absolute; width: 1.1%; aspect-ratio: 1; background: #e8d9a8; transform: translate(-50%, -50%) rotate(45deg); opacity: .85; }
.fp-pt-sight.t { top: 2.6%; } .fp-pt-sight.b { top: 97.4%; }
@media (prefers-reduced-motion: reduce) { .fp-pt-frame.art { animation: none !important; } }

.fp-lk-stage-acts { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.fp-lk-btn.try { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.34); color: var(--fp-ink); font-weight: 800; letter-spacing: .06em; }
.fp-lk-btn.try svg { flex: 0 0 auto; }

.fp-promo-chip { transition: opacity 200ms ease, transform 200ms ease; }
.fp-promo-chip.swap { opacity: 0; transform: translateY(3px) scale(.97); }
.fp-promo-chip .fp-promo-stick { flex: 0 0 auto; height: auto; max-width: 74px; margin: 0 2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.fp-promo-chip .fp-promo-stick img, .fp-promo-chip .fp-promo-stick canvas { max-width: 100%; height: auto; }

/* the top three nations, over the player's own country (homeHero.js) */
.fp-nb-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fp-podium.fp-nb-podium { margin-left: 0; gap: 6px; }
.fp-nb-podium-label { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--fp-ink-dim); margin-right: 4px; }
.fp-nb-podium .fp-podium-flag { font-size: 20px; }

.fp-fr-remove { color: #ff8a7a; }
.fp-fr-remove.confirm { color: #fff; background: rgba(255,90,70,.28); border-color: rgba(255,120,100,.6); }

.fp-lk-act { display: flex; align-items: center; gap: 8px; }
.fp-lk-trial { margin-left: auto; margin-right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 13px; letter-spacing: .02em; color: #2a1a00; position: relative; overflow: hidden;
  background: linear-gradient(90deg, #ffd66b, #ffb13b); box-shadow: 0 0 0 0 rgba(255,190,70,.6); animation: fp-trial-pulse 2.4s ease-in-out infinite; }
.fp-lk-trial::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: fp-trial-shine 3.2s ease-in-out infinite; }
@keyframes fp-trial-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,190,70,.5); } 50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,190,70,0); } }
@keyframes fp-trial-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .fp-lk-trial, .fp-lk-trial::after { animation: none; } }

/* ---------- the daily deal (ui/dealPopup.js) ---------- */
.fp-deal-card { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 22px 22px 16px; border-radius: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #123826 0%, #0a2016 60%, #07160f 100%); border: 1.5px solid rgba(255,215,106,.55);
  box-shadow: 0 18px 60px rgba(0,0,0,.7), 0 0 40px rgba(255,215,106,.18); transform: translateY(14px) scale(.96); opacity: 0; transition: transform 300ms cubic-bezier(.2,.9,.3,1.2), opacity 220ms; }
.fp-deal.in .fp-deal-card { transform: none; opacity: 1; }
.fp-deal.leaving .fp-deal-card { opacity: 0; transform: scale(.97); }
.fp-deal-tag { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: 16px; color: #2a1200; background: linear-gradient(90deg, #ffd66b, #ff9f3b); transform: rotate(6deg); box-shadow: 0 4px 14px rgba(255,160,60,.4); }
.fp-deal-kicker { font-size: 11px; letter-spacing: .22em; font-weight: 800; color: #5be0cd; }
.fp-deal-title { font-size: clamp(22px, 5vh, 32px); font-weight: 900; font-style: italic; color: #fff; line-height: 1.05; }
.fp-deal-vis { width: 100%; display: flex; justify-content: center; padding: 6px 0; }
.fp-deal-vis .fp-pt.big { width: min(100%, 360px); }
.fp-deal-prices { display: flex; align-items: center; gap: 14px; }
.fp-deal-amt { display: inline-flex; align-items: center; gap: 6px; }
.fp-deal-amt img { width: 22px; height: 22px; }
.fp-deal-amt.was b { font-size: 18px; color: var(--fp-ink-dim); text-decoration: line-through; }
.fp-deal-amt.now img { width: 30px; height: 30px; }
.fp-deal-amt.now b { font-size: 32px; color: var(--fp-gold); }
.fp-deal-sub { font-size: 13px; color: var(--fp-ink-dim); max-width: 40ch; }
.fp-deal-row { display: flex; gap: 10px; width: 100%; justify-content: center; flex-wrap: wrap; }
.fp-deal-claim { flex: 1 1 200px; padding: 13px 16px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 15px; color: #052019; background: linear-gradient(90deg, #6ff0c0, #3ccbe8); }
.fp-deal-claim.busy { opacity: .6; }
.fp-deal-subbtn { flex: 0 1 auto; padding: 13px 16px; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 800; color: var(--fp-gold); background: rgba(255,215,106,.1); border: 1.5px solid rgba(255,215,106,.45); }
.fp-deal-later { background: none; border: 0; color: var(--fp-ink-faint); font: inherit; font-weight: 700; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.fp-deal-card.won .fp-deal-later { color: #052019; background: linear-gradient(90deg, #6ff0c0, #3ccbe8); border-radius: 14px; padding: 12px 22px; font-weight: 900; }
.fp-deal-note { font-size: 12px; color: #ffb3a6; min-height: 0; }

/* ---------- the "earn the rest" dialog (ui/earnPux.js) ---------- */
.fp-earn-card { position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 18px 18px 14px; border-radius: 22px;
  background: radial-gradient(120% 70% at 85% 0%, rgba(255,215,106,.12), transparent 60%), linear-gradient(160deg, #123826 0%, #0a2016 60%, #07160f 100%);
  border: 1.5px solid rgba(255,215,106,.5); box-shadow: 0 18px 60px rgba(0,0,0,.7), 0 0 44px rgba(255,215,106,.16);
  transform: translateY(14px) scale(.96); opacity: 0; transition: transform 300ms cubic-bezier(.2,.9,.3,1.2), opacity 220ms; }
.fp-earn.in .fp-earn-card { transform: none; opacity: 1; }
.fp-earn.leaving .fp-earn-card { opacity: 0; transform: scale(.97); }
.fp-earn-head { display: flex; align-items: center; gap: 14px; padding-right: 30px; }
.fp-earn-vis { flex: 0 0 38%; max-width: 200px; display: flex; justify-content: center; align-items: center; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.fp-earn-vis .fp-pt.big { width: 100%; }
.fp-earn-htext { min-width: 0; }
.fp-earn-kicker { font-size: 11px; letter-spacing: .22em; font-weight: 800; color: #5be0cd; }
.fp-earn-name { font-size: clamp(20px, 4.6vh, 28px); font-weight: 900; font-style: italic; color: #fff; line-height: 1.05; margin: 2px 0 6px; }
.fp-earn-cost { display: inline-flex; align-items: center; gap: 6px; }
.fp-earn-cost img { width: 24px; height: 24px; }
.fp-earn-cost b { font-size: 26px; color: var(--fp-gold); }
.fp-earn-cost span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fp-ink-dim); font-weight: 800; }
.fp-earn-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 22px; line-height: 1; color: var(--fp-ink-dim); background: rgba(255,255,255,.07); }
.fp-earn-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 14px 0 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.fp-earn-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6ff0c0, #ffd66b); box-shadow: 0 0 12px rgba(255,214,107,.55); animation: fp-earn-fill 700ms cubic-bezier(.2,.9,.3,1) both; transform-origin: left; }
@keyframes fp-earn-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fp-earn-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--fp-ink-dim); font-weight: 700; }
.fp-earn-line b { color: var(--fp-gold); }
.fp-earn-title { margin: 14px 0 8px; font-size: 12px; letter-spacing: .2em; font-weight: 800; color: var(--fp-ink-dim); text-transform: uppercase; }
.fp-earn-list { display: flex; flex-direction: column; gap: 8px; }
.fp-earn-route { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; text-align: left; cursor: pointer; font: inherit; color: var(--fp-ink);
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12); animation: fp-earn-in 380ms cubic-bezier(.2,.9,.3,1.1) both; }
.fp-earn-route:active { transform: scale(.985); background: rgba(255,255,255,.1); }
.fp-earn-route.hot { border-color: rgba(255,214,107,.7); background: linear-gradient(90deg, rgba(255,214,107,.16), rgba(255,255,255,.05)); box-shadow: 0 0 18px rgba(255,214,107,.18); }
@keyframes fp-earn-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.fp-earn-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #5be0cd; background: rgba(91,224,205,.12); }
.fp-earn-route.hot .fp-earn-ic { color: #ffd66b; background: rgba(255,214,107,.16); }
.fp-earn-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fp-earn-tx b { font-size: 15px; font-weight: 800; }
.fp-earn-tx small { font-size: 12px; color: var(--fp-ink-dim); line-height: 1.25; }
.fp-earn-rw { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; color: var(--fp-ink-dim); }
.fp-earn-rw em { font-style: normal; font-weight: 900; font-size: 13px; color: var(--fp-gold); white-space: nowrap; }
.fp-earn-prem { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit; text-align: left; color: #2a1a00;
  background: linear-gradient(90deg, #ffd66b, #ffb13b); border: 0; box-shadow: 0 4px 18px rgba(255,160,60,.3); }
.fp-earn-ptx { display: flex; flex-direction: column; }
.fp-earn-ptx b { font-size: 15px; font-weight: 900; }
.fp-earn-ptx small { font-size: 12px; opacity: .8; font-weight: 700; }
@media (max-height: 420px) { .fp-earn-card { padding: 12px; } .fp-earn-vis { display: none; } .fp-earn-tx small { display: none; } .fp-earn-bar { margin: 8px 0 4px; } .fp-earn-title { margin: 8px 0 6px; } }
@media (prefers-reduced-motion: reduce) { .fp-earn-route, .fp-earn-bar i { animation: none; } }

/* ================= Home, redesigned (ui/homeV3.js) ================= */
body.fp-home-v3 .fp-homedock { display: none !important; }
.fp-h3 { display: flex; flex-direction: column; gap: clamp(5px, 1.6vh, 10px); }
.fp-h3 > .fp-h3-top, .fp-h3 > .fp-offline-strip, .fp-h3 > .fp-h3-ribbon, .fp-h3 > .fp-h3-body, .fp-h3 > .fp-adslot { position: relative; z-index: 2; }

/* ---- top bar ---- */
.fp-h3-top { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 12px); }
.fp-h3-id { display: flex; align-items: center; gap: 8px; min-width: 0; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.fp-h3-idtext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-h3-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fp-h3-nametext { font-size: var(--fp-t-sm); font-weight: 800; max-width: 22vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-h3-sub { display: flex; align-items: baseline; gap: 6px; font-size: var(--fp-t-xs); color: var(--fp-ink-dim); font-weight: 700; white-space: nowrap; }
.fp-h3-wallet { display: flex; align-items: center; border-radius: 999px; background: rgba(0,0,0,.34); border: 1px solid var(--fp-hairline); padding: 0 2px; }
.fp-h3-wallet .fp-pill { background: transparent; border: 0; border-radius: 999px; padding: 6px 10px; box-shadow: none; animation: none; }
.fp-h3-wallet .fp-pill + .fp-pill { border-left: 1px solid rgba(255,255,255,.1); border-radius: 0; }
.fp-h3-wallet .fp-streak-chip.lit, .fp-h3-wallet .fp-streak-chip.open { box-shadow: none; }
.fp-h3-more .fp-h3-dots { letter-spacing: 1px; font-size: 14px; line-height: 1; color: var(--fp-ink); }
.fp-h3-menu { position: fixed; z-index: 9800; min-width: 190px; padding: 6px; border-radius: 14px; background: linear-gradient(160deg, #123826, #0a2016); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 14px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.fp-h3-mi { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: var(--fp-ink); font: inherit; font-weight: 700; font-size: 14px; text-align: left; cursor: pointer; }
.fp-h3-mi:active { background: rgba(255,255,255,.08); }

/* ---- the ribbon ---- */
.fp-h3-ribbon { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 12px; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; color: var(--fp-ink);
  background: linear-gradient(90deg, rgba(255,214,107,.2), rgba(255,255,255,.05)); border: 1px solid rgba(255,214,107,.45); animation: fp-h3-rib-in 420ms cubic-bezier(.2,.9,.3,1.1) both; }
.fp-h3-ribbon.streak { background: linear-gradient(90deg, rgba(255,140,60,.22), rgba(255,255,255,.04)); border-color: rgba(255,150,70,.5); }
.fp-h3-ribbon.deal { background: linear-gradient(90deg, rgba(91,224,205,.22), rgba(255,255,255,.04)); border-color: rgba(91,224,205,.5); }
.fp-h3-rib-ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #ffd66b; background: rgba(255,214,107,.16); }
.fp-h3-ribbon.deal .fp-h3-rib-ic { color: #5be0cd; background: rgba(91,224,205,.16); }
.fp-h3-ribbon.streak .fp-h3-rib-ic { color: #ff9a4a; background: rgba(255,150,70,.16); }
.fp-h3-rib-tx { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.fp-h3-rib-tx b { font-size: var(--fp-t-sm); font-weight: 800; }
.fp-h3-rib-tx small { font-size: var(--fp-t-xs); color: var(--fp-ink-dim); font-weight: 700; }
@keyframes fp-h3-rib-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- body ---- */
.fp-h3-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(10px, 2.2vw, 20px); align-items: center; }
.fp-h3-left { display: flex; flex-direction: column; justify-content: center; gap: clamp(7px, 1.8vh, 12px); min-width: 0; }
.fp-h3-right { display: flex; flex-direction: column; justify-content: center; gap: clamp(7px, 1.6vh, 10px); min-width: 0; }

/* where you stand */
.fp-h3-nation { display: flex; align-items: center; gap: clamp(8px, 1.6vh, 14px); min-width: 0; }
.fp-h3-flag { font-size: clamp(30px, 8vh, 50px); line-height: 1; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); animation: fp-flag-in 620ms cubic-bezier(.16,1,.3,1) both; }
.fp-h3-flag.none { opacity: .45; }
.fp-h3-ntext { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.fp-h3-nname { font-size: clamp(16px, 4.2vh, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-h3-nsub { display: flex; align-items: baseline; gap: 7px; font-size: var(--fp-t-xs); color: var(--fp-ink-dim); font-weight: 700; flex-wrap: wrap; }
.fp-h3-left .fp-cta { width: 100%; }
.fp-h3-left .fp-promo-chip { align-self: flex-start; }

/* nations strip */
.fp-h3-nations { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 4px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--fp-hairline); }
.fp-h3-nat-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--fp-ink); font: inherit; cursor: pointer; text-align: left; padding: 2px 4px; }
.fp-h3-nat-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #5be0cd; background: rgba(91,224,205,.12); }
.fp-h3-nat-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fp-h3-nat-tx b { font-size: var(--fp-t-sm); font-weight: 800; }
.fp-h3-nat-tx small { font-size: 11px; color: var(--fp-ink-dim); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-h3-podium { margin-left: 0; gap: 4px; flex: 0 0 auto; }

/* tiles */
.fp-h3-tiles { display: grid; gap: clamp(6px, 1.3vh, 9px); grid-template-columns: 1fr 1fr; }
.fp-h3-tiles.n1 { grid-template-columns: 1fr; }
.fp-h3-tile { position: relative; display: flex; align-items: center; gap: 9px; min-width: 0; padding: clamp(16px, 3.8vh, 26px) 10px; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: var(--fp-ink);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid var(--fp-hairline); animation: fp-rise 460ms cubic-bezier(.16,1,.3,1) both; }
.fp-h3-tile:nth-child(2) { animation-delay: 60ms; } .fp-h3-tile:nth-child(3) { animation-delay: 120ms; } .fp-h3-tile:nth-child(4) { animation-delay: 180ms; }
.fp-h3-tile:active { transform: scale(.985); }
.fp-h3-tile.disabled { opacity: .45; cursor: default; }
.fp-h3-tile.hot { border-color: rgba(255,214,107,.6); background: linear-gradient(160deg, rgba(255,214,107,.18), rgba(255,255,255,.04)); box-shadow: 0 0 16px rgba(255,214,107,.16); }
.fp-h3-tile-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #5be0cd; background: rgba(91,224,205,.12); }
.fp-h3-tile.hot .fp-h3-tile-ic { color: #ffd66b; background: rgba(255,214,107,.16); }
.fp-h3-tile-tx { display: flex; flex-direction: column; min-width: 0; }
.fp-h3-tile-tx b { font-size: var(--fp-t-sm); font-weight: 800; line-height: 1.1; }
.fp-h3-tile-tx small { font-size: 11px; color: var(--fp-ink-dim); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.fp-h3-dot { position: absolute; top: 7px; right: 8px; }
.fp-h3-badge { position: absolute; top: 5px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff5a4a; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* the quieter row */
.fp-h3-more-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fp-h3-pill { min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: clamp(12px, 3vh, 20px) 4px; overflow: hidden; border-radius: 999px; cursor: pointer; font: inherit; font-size: var(--fp-t-xs); font-weight: 800; color: var(--fp-ink);
  background: rgba(0,0,0,.3); border: 1px solid var(--fp-hairline); white-space: nowrap; }
.fp-h3-pill:active { background: rgba(255,255,255,.1); }
.fp-h3-pill.disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .fp-h3-ribbon, .fp-h3-tile, .fp-h3-flag { animation: none; } }

.fp-h3-pill span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .fp-h3-pill svg { display: none; } }

.fp-h3-meter { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--fp-ink-dim); }
.fp-h3-meter-bar { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.fp-h3-meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6ff0c0, #35c8f0); }
.fp-h3-meter-r { color: var(--fp-ink); }

/* short screens (a phone on its side): the same layout, a size down */
@media (max-height: 420px) {
  .fp-h3 { gap: 5px; }
  .fp-h3-ribbon { padding: 4px 10px; }
  .fp-h3-rib-ic { width: 22px; height: 22px; }
  .fp-h3-nations { padding: 6px 6px 6px 2px; }
  .fp-h3-nat-ic { width: 24px; height: 24px; }
  .fp-h3-nat-tx small { display: none; }
  .fp-h3-tiles { gap: 5px; }
  .fp-h3-tile { padding: 10px 8px; gap: 7px; }
  .fp-h3-tile-ic { width: 26px; height: 26px; border-radius: 8px; }
  .fp-h3-tile-tx small { font-size: 10px; margin-top: 0; }
  .fp-h3-pill { padding: 10px 3px; }
  .fp-h3-right { gap: 5px; }
  .fp-h3-left { gap: 6px; }
}

/* The deal card on a short screen (a phone held sideways is about 360px tall).
   Stacked, the picture alone used up the height and the Claim button fell
   below the fold. Beside each other, picture left and copy and buttons right,
   the whole card fits with nothing to scroll to. */
@media (max-height: 520px) {
  .fp-deal-card { width: min(720px, 100%); padding: 12px 16px 10px; gap: 4px 18px; overflow: visible;
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; justify-items: center; }
  .fp-deal-card > * { grid-column: 2; }
  .fp-deal-card > .fp-deal-vis { grid-column: 1; grid-row: 1 / span 9; align-self: center; padding: 0; }
  .fp-deal-vis .fp-pt.big { width: min(100%, 250px); }
  .fp-deal-tag { top: 8px; right: 10px; font-size: 13px; padding: 4px 9px; }
  .fp-deal-title { font-size: clamp(18px, 6vh, 24px); }
  .fp-deal-amt.now b { font-size: 24px; }
  .fp-deal-amt.now img { width: 24px; height: 24px; }
  .fp-deal-sub { font-size: 12px; }
  .fp-deal-claim, .fp-deal-subbtn { padding: 9px 12px; font-size: 14px; }
  .fp-deal-row { gap: 8px; }
  .fp-deal-later { padding: 2px 8px; }
}
@media (max-height: 340px) { .fp-deal-vis .fp-pt.big { width: min(100%, 190px); } .fp-deal-sub { display: none; } }

/* ---------- cue ball strike markings and the strike panel (main.js spin widget) ---------- */
/* The small ball gets the same guide lines as the panel, so the red tip marker
   is read against the centre and the edge rather than guessed at. */
#spin::before, #spin::after { content: ''; position: absolute; pointer-events: none; }
#spin::before { inset: 0; border-radius: 50%;
  background:
    linear-gradient(rgba(60,50,40,.35), rgba(60,50,40,.35)) center / 1px 76% no-repeat,
    linear-gradient(rgba(60,50,40,.35), rgba(60,50,40,.35)) center / 76% 1px no-repeat; }
#spin::after { left: 7.5%; top: 7.5%; right: 7.5%; bottom: 7.5%; border-radius: 50%; border: 1px dashed rgba(60,50,40,.35); }
#spin-dot { z-index: 1; }

#spinbig { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); padding: 12px; }
#spinbig.hidden { display: none; }
#spinbig .sb-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px 12px;
  border-radius: 20px; background: linear-gradient(160deg, #123826, #07160f); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.6); max-height: 100%; }
#spinbig .sb-title { font-size: 12px; letter-spacing: .2em; font-weight: 800; color: #5be0cd; text-transform: uppercase; }
#spinbig .sb-ballwrap { position: relative; padding: 22px 40px; }
#spinbig .sb-ball { position: relative; width: min(300px, 58vmin); height: min(300px, 58vmin); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e3dfd3 55%, #a9a393 100%);
  box-shadow: 0 8px 26px rgba(0,0,0,.55), inset 0 -10px 24px rgba(0,0,0,.18); touch-action: none; cursor: crosshair; }
#spinbig .sb-h, #spinbig .sb-v { position: absolute; background: rgba(60,50,40,.45); pointer-events: none; }
#spinbig .sb-h { left: 7.5%; right: 7.5%; top: 50%; height: 1px; }
#spinbig .sb-v { top: 7.5%; bottom: 7.5%; left: 50%; width: 1px; }
#spinbig .sb-ring { position: absolute; left: 50%; top: 50%; width: var(--r); height: var(--r); transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px dashed rgba(60,50,40,.4); pointer-events: none; }
#spinbig .sb-pt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: rgba(60,50,40,.45); pointer-events: none; }
#spinbig .sb-centre { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: rgba(60,50,40,.7); }
#spinbig-dot { position: absolute; width: 13%; height: 13%; border-radius: 50%; transform: translate(-50%,-50%);
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c41d1d); box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.65);
  pointer-events: none; left: 50%; top: 50%; }
#spinbig .sb-lbl { position: absolute; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.7); }
#spinbig .sb-top { top: 0; left: 50%; transform: translateX(-50%); }
#spinbig .sb-bot { bottom: 0; left: 50%; transform: translateX(-50%); }
#spinbig .sb-left { left: 0; top: 50%; transform: translateY(-50%); }
#spinbig .sb-right { right: 0; top: 50%; transform: translateY(-50%); }
/* Everything but the ball, in a column of FIXED size. The description is
   the only part whose length changes, so it gets a box of its own fixed
   width and two-line height and wraps inside it: nothing around it moves. */
#spinbig .sb-side { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 240px; }
#spinbig .sb-words { width: 100%; height: 2.6em; line-height: 1.3em; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 14px; font-weight: 700; color: #ffd76a; }
#spinbig .sb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
#spinbig .sb-btns button { padding: 10px 0; border-radius: 12px; border: 0; font: inherit; font-weight: 800; cursor: pointer; }
#spinbig .sb-reset { background: rgba(255,255,255,.1); color: #fff; }
#spinbig .sb-done { background: linear-gradient(90deg, #6ff0c0, #3ccbe8); color: #052019; }
/* Landscape: ball on the left, the side column on the right. */
@media (orientation: landscape) and (max-height: 520px) {
  #spinbig .sb-card { flex-direction: row; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; }
  #spinbig .sb-ball { width: min(240px, calc(100vh - 110px)); height: min(240px, calc(100vh - 110px)); }
  #spinbig .sb-ballwrap { padding: 20px 36px; }
  #spinbig .sb-side { width: 190px; align-items: stretch; gap: 12px; }
  #spinbig .sb-title { text-align: left; }
  #spinbig .sb-words { justify-content: flex-start; text-align: left; height: 3.9em; font-size: 15px; }
  #spinbig .sb-btns { grid-template-columns: 1fr; }
}

/* PvP result (resultScreen.js): the AI ending, with a card for each player. */
.fp-pr-vs { justify-content: space-around; gap: 8px; }
.fp-pr-player { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; opacity: .8; }
.fp-pr-player.winner { opacity: 1; }
.fp-pr-player.winner .fp-pr-face { border-color: var(--fp-gold); box-shadow: 0 0 0 3px rgba(255,215,106,.25), 0 0 22px rgba(255,215,106,.45); }
.fp-pr-face { width: clamp(46px, 11vh, 72px); }
.fp-pr-face.fp-avatar-sprite { background-size: 1000% 100%; background-position: calc(var(--fp-av) * 11.111%) 0; background-image: url(../assets/avatars.png); }
.fp-pr-tag { font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--fp-ink-faint); }
.fp-pr-player.winner .fp-pr-tag { color: var(--fp-gold); }
.fp-pr-name { justify-content: center; max-width: 100%; font-size: var(--fp-t-md, 15px); }
.fp-pr-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-pr-elo { font-size: 11px; color: var(--fp-ink-dim); font-variant-numeric: tabular-nums; }
.fp-pr-vsword { flex: 0 0 auto; font-weight: 900; font-style: italic; font-size: 22px; color: var(--fp-accent); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.fp-pr .fp-res-hero { padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,.28); }
.fp-pr .fp-ar-btn[disabled] { filter: grayscale(.9) brightness(.55); pointer-events: none; }
.fp-pr .fp-ar-card { overflow-y: auto; }
