/* ==============================================
   CoinRush Premium Jackpot - Redesigned CSS
   Clean, premium, dark theme with gold accents
   All pj-* prefixed classes
   VERSION: 15
   ============================================== */

/* ---- CSS Variables ---- */
:root {
  --pj-bg: #0a0c10;
  --pj-bg-card: #0f1218;
  --pj-bg-card-hover: #141820;
  --pj-border: rgba(255,255,255,0.06);
  --pj-border-hover: rgba(255,255,255,0.1);
  --pj-gold: #f0b429;
  --pj-gold-dim: rgba(240,180,41,0.15);
  --pj-green: #4fffb0;
  --pj-green-dim: rgba(79,255,176,0.12);
  --pj-purple: #a855f7;
  --pj-red: #f43f5e;
  --pj-blue: #3b82f6;
  --pj-text: #e2e8f0;
  --pj-text-dim: rgba(255,255,255,0.45);
  --pj-text-muted: rgba(255,255,255,0.3);
  --pj-font: 'Inter', 'Sora', -apple-system, sans-serif;
  --pj-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --pj-radius: 12px;
  --pj-radius-sm: 8px;
  --pj-radius-xs: 6px;
}

/* ---- Reset ---- */
html, body { background: #0a0c10 !important; margin: 0; padding: 0; }
body { min-height: 100vh; color: #e2e8f0; }
.pj-app { font-family: var(--pj-font); color: var(--pj-text); background: var(--pj-bg); min-height: 100vh; }
/* Scoped reset — only apply to pj- prefixed elements, not navbar/avatar standard */
.pj-main *, .pj-main *::before, .pj-main *::after { box-sizing: border-box; }
.pj-app svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---- Loading ---- */
.pj-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 60vh; color: var(--pj-text-dim); }
.pj-loading svg { width: 28px; height: 28px; }

/* ---- Spinner ---- */
.pj-spinner svg, .pj-spin-ico svg { width: 20px; height: 20px; animation: pjSpin 0.8s linear infinite; }
@keyframes pjSpin { to { transform: rotate(360deg); } }

/* ---- Main Layout ---- */
.pj-main { max-width: 1520px; margin: 0 auto; padding: 20px 16px 20px; }

.pj-grid {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 20px;
  align-items: start;
}

.pj-sidebar { display: flex; flex-direction: column; gap: 16px; }
.pj-center { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); }

/* Right sidebar — give chat max vertical space */
.pj-sidebar--right {
  position: sticky;
  top: 140px;
  align-self: start;
  height: calc(100vh - 150px);
  height: calc(100dvh - 150px);
  overflow: hidden;
}
.pj-sidebar--right .cr-chat-container {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: var(--pj-radius);
  border: 1px solid var(--pj-border);
  background: var(--pj-bg-card);
}
.pj-sidebar--right .cr-chat-messages {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
.pj-sidebar--right .cr-chat-input-area {
  flex-shrink: 0 !important;
}

/* ---- Panel (shared) ---- */
.pj-panel {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}
.pj-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--pj-border);
}
.pj-panel__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--pj-text); text-transform: uppercase; letter-spacing: 0.5px; }
.pj-panel__title svg { width: 16px; height: 16px; opacity: 0.5; }
.pj-panel__badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: var(--pj-text-dim);
}
.pj-panel__badge--gold { background: var(--pj-gold-dim); color: var(--pj-gold); }
.pj-panel__body { padding: 8px; max-height: 400px; overflow-y: auto; overflow-x: visible; }
.pj-panel__body::-webkit-scrollbar { width: 4px; }
.pj-panel__body::-webkit-scrollbar-track { background: transparent; }
.pj-panel__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.pj-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; color: var(--pj-text-muted); font-size: 13px; }
.pj-empty svg { width: 24px; height: 24px; opacity: 0.3; }

/* ============================================
   HERO DISPLAY
   ============================================ */
.pj-hero {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.pj-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pj-gold), transparent);
  transition: background 0.8s ease, opacity 0.8s ease;
  opacity: 0.4;
}
.pj-hero.urgent::before { background: linear-gradient(90deg, transparent, var(--pj-red), transparent); opacity: 0.7; }
.pj-hero.spinning::before { background: linear-gradient(90deg, transparent, var(--pj-purple), transparent); animation: pjShimmer 1.5s ease infinite; }
.pj-hero.reveal::before, .pj-hero.intermission::before { background: linear-gradient(90deg, transparent, var(--pj-green), transparent); opacity: 0.8; }

@keyframes pjShimmer { 0%,100% { opacity: 0.3; } 50% { opacity: 0.8; } }

.pj-hero__content {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

/* Smooth fade for hero state transitions */
.pj-hero__content > * { animation: pjContentFade 0.4s ease-out; }
@keyframes pjContentFade { from { opacity: 0; } to { opacity: 1; } }

/* Hero main (trophy + pot) */
.pj-hero__main { display: flex; align-items: center; gap: 14px; }
.pj-hero__main.spinning { animation: pjPulseGlow 2s ease infinite; }
@keyframes pjPulseGlow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }

.pj-hero__trophy-box { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--pj-gold-dim); flex-shrink: 0; }
.pj-hero__trophy-box svg { width: 22px; height: 22px; color: var(--pj-gold); }

.pj-hero__pot-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--pj-gold); text-transform: uppercase; margin-bottom: 2px; }
.pj-hero__pot-amount { display: block; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; font-family: var(--pj-font); }

/* Hero status area */
.pj-hero__status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.pj-status-cd { display: flex; align-items: center; gap: 12px; }

/* ---- Premium VIP Countdown Ring ---- */
.pj-cd-ring {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.pj-cd-ring svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 6px rgba(240,180,41,0.3));
}
.pj-cd-ring .pj-ring-bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 4;
}
.pj-cd-ring .pj-ring-fg {
  fill: none; stroke: url(#pjGoldGrad); stroke-width: 4.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}
.pj-status-cd.urgent .pj-cd-ring .pj-ring-fg {
  stroke: var(--pj-red);
  filter: drop-shadow(0 0 8px rgba(244,63,94,0.5));
  animation: pjRingPulse 0.8s ease infinite;
}
@keyframes pjRingPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.pj-cd-num {
  position: relative; z-index: 1;
  font-size: 22px; font-weight: 800; font-family: var(--pj-mono);
  color: #fff; letter-spacing: -0.5px;
  text-shadow: 0 0 12px rgba(240,180,41,0.4);
}
.pj-status-cd.urgent .pj-cd-num {
  color: var(--pj-red);
  text-shadow: 0 0 12px rgba(244,63,94,0.5);
  animation: pjNumShake 0.4s ease infinite;
}
@keyframes pjNumShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}

.pj-cd-label {
  font-size: 10px; font-weight: 700; color: var(--pj-gold);
  text-transform: uppercase; letter-spacing: 1.5px;
  opacity: 0.7;
}
.pj-status-cd.urgent .pj-cd-label { color: var(--pj-red); opacity: 1; font-weight: 700; }

.pj-status-spin { display: flex; align-items: center; gap: 8px; color: var(--pj-purple); font-size: 13px; font-weight: 600; animation: pjFadeSlideIn 0.5s ease-out; }
.pj-spin-dots { display: flex; gap: 4px; }
.pj-spin-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--pj-purple); animation: pjDots 1.4s ease infinite; }
.pj-spin-dots span:nth-child(2) { animation-delay: 0.2s; }
.pj-spin-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pjDots { 0%,80%,100% { transform: scale(0.4); opacity: 0.3; } 40% { transform: scale(1); opacity: 1; } }

.pj-status-wait { display: flex; align-items: center; gap: 8px; color: var(--pj-text-dim); font-size: 13px; }
.pj-wait-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pj-green); animation: pjPulse 2s ease infinite; }
@keyframes pjPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.pj-hero__stats { display: flex; align-items: center; gap: 12px; }
.pj-player-count, .pj-entry-count { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--pj-text-dim); }
.pj-player-count svg, .pj-entry-count svg { width: 14px; height: 14px; opacity: 0.4; }

/* Bonus badge */
.pj-bonus-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: var(--pj-gold-dim); color: var(--pj-gold);
}
.pj-bonus-badge svg { width: 12px; height: 12px; }
.pj-bonus-badge.special { background: linear-gradient(135deg, rgba(240,180,41,0.2), rgba(168,85,247,0.2)); color: #fbbf24; }

/* Hero winner state */
.pj-hero__winner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; flex-wrap: wrap;
  animation: pjFadeSlideIn 0.6s ease-out both;
}
@keyframes pjFadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pj-hero__winner-left { display: flex; align-items: center; gap: 10px; }
.pj-hero__winner-left svg { width: 24px; height: 24px; color: var(--pj-gold); }
.pj-hero__winner-label { display: block; font-size: 10px; color: var(--pj-text-dim); text-transform: uppercase; letter-spacing: 1px; }
.pj-hero__winner-name { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.pj-hero__winner-amt { font-size: 24px; font-weight: 800; color: var(--pj-green); }
.pj-hero__winner-next { text-align: center; animation: pjFadeSlideIn 0.8s ease-out 0.3s both; }
.pj-hero__next-val { display: block; font-size: 18px; font-weight: 700; color: var(--pj-text); font-family: var(--pj-mono); letter-spacing: 1px; }
.pj-hero__next-lbl { display: block; font-size: 10px; color: var(--pj-text-dim); text-transform: uppercase; }

/* ============================================
   WHEEL
   ============================================ */
.pj-wheel {
  position: relative;
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  padding: 20px 0 16px;
  overflow: visible;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}
.pj-wheel.spinning { border-color: rgba(168,85,247,0.3); box-shadow: 0 0 30px rgba(168,85,247,0.08); }
.pj-wheel.revealed { border-color: rgba(79,255,176,0.3); box-shadow: 0 0 30px rgba(79,255,176,0.08); }

.pj-wheel__pointer {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  z-index: 20; width: 28px; filter: drop-shadow(0 2px 6px rgba(240,180,41,0.4));
}
.pj-wheel__pointer svg { width: 100%; height: auto; }

.pj-wheel__vp {
  margin: 0 auto; overflow: hidden; border-radius: var(--pj-radius-sm);
  position: relative; height: 100px;
}
.pj-wheel__track {
  display: flex; will-change: transform; height: 100%;
}

.pj-wheel__fade { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 10; pointer-events: none; }
.pj-wheel__fade--l { left: 0; background: linear-gradient(90deg, var(--pj-bg-card) 0%, transparent 100%); }
.pj-wheel__fade--r { right: 0; background: linear-gradient(-90deg, var(--pj-bg-card) 0%, transparent 100%); }

/* Segments */
.pj-seg {
  flex-shrink: 0; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: filter 0.6s ease, box-shadow 0.6s ease;
}
.pj-seg.empty { opacity: 0.3; }
.pj-seg.winner {
  filter: brightness(1.3) saturate(1.3);
  box-shadow: inset 0 0 30px rgba(255,255,255,0.15);
  animation: pjSegReveal 0.8s ease-out both;
}
@keyframes pjSegReveal {
  0% { filter: brightness(1); box-shadow: inset 0 0 0 rgba(255,255,255,0); }
  100% { filter: brightness(1.3) saturate(1.3); box-shadow: inset 0 0 30px rgba(255,255,255,0.15); }
}
.pj-seg.winner::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: pjSegPulse 0.8s ease-in-out infinite alternate;
}
@keyframes pjSegPulse { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.pj-seg__in {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 4px; text-align: center; width: 100%;
}
.pj-seg__in.empty { opacity: 0.4; }
.pj-seg__empty {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.2); font-weight: 700;
}

.pj-seg__av { position: relative; }
.pj-seg__name {
  font-size: 10px; font-weight: 700; color: #fff;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.pj-seg__pct {
  font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.75);
  font-family: var(--pj-mono);
}

.pj-seg__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.pj-wheel__empty {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--pj-text-muted); letter-spacing: 0.5px;
  z-index: 5;
}

.pj-wheel__flash {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(79,255,176,0.15) 0%, transparent 70%);
  animation: pjFlash 1.2s ease-out forwards; pointer-events: none; z-index: 15;
}
@keyframes pjFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* Winner glow pulse that stays visible */
.pj-wheel.revealed::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(79,255,176,0.04) 0%, transparent 70%);
  animation: pjWinnerGlow 2s ease-in-out infinite alternate;
  pointer-events: none; border-radius: var(--pj-radius);
}
@keyframes pjWinnerGlow { from { opacity: 0.5; } to { opacity: 1; } }

/* ============================================
   BET PANEL
   ============================================ */
.pj-bet {
  background: var(--pj-bg-card);
  border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius);
  overflow: hidden;
}
.pj-bet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--pj-border);
}
.pj-bet__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pj-bet__title svg { width: 16px; height: 16px; color: var(--pj-gold); }
.pj-bet__bal { font-size: 13px; font-weight: 600; color: var(--pj-gold); font-family: var(--pj-mono); }

.pj-bet__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }

.pj-bet__lock {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 8px 12px; border-radius: var(--pj-radius-xs);
  background: rgba(244,63,94,0.08); color: var(--pj-red);
  font-size: 12px; font-weight: 600;
}
.pj-bet__lock svg { width: 14px; height: 14px; }

.pj-bet__err {
  padding: 8px 12px; border-radius: var(--pj-radius-xs);
  background: rgba(244,63,94,0.08); color: var(--pj-red);
  font-size: 12px; text-align: center;
}

.pj-bet__input {
  position: relative; display: flex; align-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius-sm); transition: border-color 0.2s;
}
.pj-bet__input:focus-within { border-color: var(--pj-gold); }
.pj-bet__input.has-val { border-color: rgba(240,180,41,0.3); }
.pj-bet__input input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 16px; font-weight: 600; padding: 12px 14px;
  font-family: var(--pj-mono); -moz-appearance: textfield; appearance: textfield;
}
.pj-bet__input input::-webkit-outer-spin-button,
.pj-bet__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pj-bet__input input::placeholder { color: var(--pj-text-muted); }
.pj-bet__suffix { font-size: 12px; color: var(--pj-text-dim); padding-right: 14px; font-weight: 500; }

/* Presets */
.pj-bet__presets { display: flex; gap: 6px; flex-wrap: wrap; }
.pj-preset {
  flex: 1; min-width: 46px; padding: 8px 4px; border: 1px solid var(--pj-border);
  border-radius: var(--pj-radius-xs); background: rgba(255,255,255,0.02);
  color: var(--pj-text-dim); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; text-align: center; font-family: var(--pj-font);
}
.pj-preset:hover:not(:disabled) { border-color: var(--pj-border-hover); color: var(--pj-text); background: rgba(255,255,255,0.04); }
.pj-preset.active { border-color: var(--pj-gold); color: var(--pj-gold); background: var(--pj-gold-dim); }
.pj-preset:disabled { opacity: 0.3; cursor: not-allowed; }
.pj-preset--max { color: var(--pj-gold); border-color: rgba(240,180,41,0.2); }

/* Stats */
.pj-bet__stats { display: flex; justify-content: space-between; gap: 8px; }
.pj-stat { display: flex; justify-content: space-between; align-items: center; flex: 1; padding: 8px 10px; background: rgba(255,255,255,0.02); border-radius: var(--pj-radius-xs); }
.pj-stat__l { font-size: 11px; color: var(--pj-text-dim); }
.pj-stat__v { font-size: 13px; font-weight: 600; color: var(--pj-text); font-family: var(--pj-mono); }
.pj-stat__v--gold { color: var(--pj-gold); }

/* CTA */
.pj-bet__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; border: none; border-radius: var(--pj-radius-sm);
  background: linear-gradient(135deg, var(--pj-gold), #d4a017);
  color: #000; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--pj-font); transition: all 0.2s; letter-spacing: 0.3px;
}
.pj-bet__cta svg { width: 16px; height: 16px; }
.pj-bet__cta:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.pj-bet__cta:active:not(:disabled) { transform: translateY(0); }
.pj-bet__cta:disabled { opacity: 0.4; cursor: not-allowed; filter: none; transform: none; }
.pj-bet__cta.loading { pointer-events: none; opacity: 0.7; }

.pj-bet__footer { display: flex; justify-content: space-between; font-size: 11px; color: var(--pj-text-muted); padding-top: 4px; }

/* ============================================
   PLAYERS LIST  (mirror of jp-players in jackpot-clean.css)
   ============================================ */
.pj-players { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.pj-players .pj-panel__body { flex: 1 1 0; min-height: 0; overflow: hidden; }
.pj-players__list { display: flex; flex-direction: column; gap: 4px; max-height: 100%; overflow-y: auto; }
.pj-players__list::-webkit-scrollbar { width: 4px; }
.pj-players__list::-webkit-scrollbar-thumb { background: rgba(240,180,41,0.3); border-radius: 4px; }
.pj-player {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--pj-radius-xs);
  transition: background 0.15s;
  overflow: visible;
}
.pj-player:hover { background: rgba(255,255,255,0.03); }
.pj-player.is-you { background: rgba(240,180,41,0.08); border: 1px solid rgba(240,180,41,0.15); }

.pj-player__rank {
  font-size: 11px; font-weight: 700; color: var(--pj-text-dim);
  min-width: 28px; font-family: var(--pj-mono);
}
.pj-player__info { flex: 1; min-width: 0; }
.pj-player__name {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pj-player__bet { display: block; font-size: 11px; color: var(--pj-text-dim); font-family: var(--pj-mono); }
.pj-player__chance { font-size: 13px; font-weight: 800; font-family: var(--pj-mono); white-space: nowrap; }
.pj-you-badge { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: var(--pj-gold-dim); color: var(--pj-gold); font-weight: 700; text-transform: uppercase; }

/* ============================================
   HISTORY PANEL
   ============================================ */
.pj-history__list { display: flex; flex-direction: column; gap: 2px; }
.pj-history__row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--pj-radius-xs);
  transition: background 0.15s;
}
.pj-history__row:hover { background: rgba(255,255,255,0.02); }
.pj-history__crown svg { width: 14px; height: 14px; color: var(--pj-gold); flex-shrink: 0; }
.pj-history__name { flex: 1; font-size: 13px; font-weight: 600; color: var(--pj-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-history__amt { font-size: 12px; font-weight: 600; color: var(--pj-green); font-family: var(--pj-mono); white-space: nowrap; }
.pj-history__time { font-size: 11px; color: var(--pj-text-muted); white-space: nowrap; }

/* ============================================
   AVATAR  (mirror of jp-avatar in jackpot-clean.css)
   Uses cr-avatar-standard.css for base sizing.
   ============================================ */
.pj-avatar {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  isolation: isolate;
}
.pj-avatar .cr-user-avatar__inner {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; text-transform: uppercase;
  z-index: 1;
}
/* Ensure frame sits on top */
.pj-avatar .cr-user-avatar__frame {
  z-index: 2 !important;
}
.pj-avatar__lvl {
  position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pj-gold), #7c3aed);
  color: #fff; font-size: 8px; font-weight: 800;
  padding: 1px 5px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 15; white-space: nowrap;
  line-height: 1.2;
}
.pj-avatar__auth {
  position: absolute; top: -2px; right: -4px;
  width: 16px; height: 16px;
  background: rgba(15,12,35,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 15;
}
.pj-avatar__auth svg { width: 10px; height: 10px; }

/* Player list avatar needs enough room for frame + level badge */
.pj-player .pj-avatar {
  min-width: 42px;
  min-height: 42px;
  margin: 4px 0;
}

/* ============================================
   FAIRNESS CHIP
   ============================================ */
.pj-fair { margin-top: 8px; }
.pj-fair__btn {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 8px 12px; border: 1px solid var(--pj-border); border-radius: var(--pj-radius-xs);
  background: rgba(255,255,255,0.02); color: var(--pj-text-dim);
  font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: var(--pj-font);
}
.pj-fair__btn:hover { border-color: var(--pj-border-hover); color: var(--pj-text); }
.pj-fair__btn svg { width: 14px; height: 14px; }
.pj-fair__ticket { font-family: var(--pj-mono); color: var(--pj-green); font-weight: 600; margin-left: auto; }
.pj-fair__chev { margin-left: 4px; transition: transform 0.2s; }
.pj-fair__chev.up { transform: rotate(180deg); }
.pj-fair__chev svg { width: 14px; height: 14px; }

.pj-fair__body { margin-top: 6px; padding: 10px; background: rgba(255,255,255,0.02); border-radius: var(--pj-radius-xs); display: flex; flex-direction: column; gap: 8px; }
.pj-fair__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pj-fair__label { font-size: 11px; color: var(--pj-text-dim); white-space: nowrap; }
.pj-fair__val { display: flex; align-items: center; gap: 6px; }
.pj-fair__val code { font-size: 11px; font-family: var(--pj-mono); color: var(--pj-text); background: rgba(255,255,255,0.04); padding: 2px 6px; border-radius: 4px; }
.pj-fair__copy {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 4px; background: rgba(255,255,255,0.04);
  color: var(--pj-text-dim); cursor: pointer; transition: all 0.15s;
}
.pj-fair__copy:hover { background: rgba(255,255,255,0.08); color: var(--pj-text); }
.pj-fair__copy.done { color: var(--pj-green); }
.pj-fair__copy svg { width: 12px; height: 12px; }
.pj-fair__ticket-num { font-family: var(--pj-mono); font-size: 12px; color: var(--pj-green); font-weight: 600; }

/* ============================================
   TOASTS
   ============================================ */
.pj-toasts {
  position: fixed; top: 80px; right: 20px; z-index: 10000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; max-width: 360px;
}
.pj-toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--pj-radius-sm);
  background: var(--pj-bg-card); border: 1px solid var(--pj-border);
  color: var(--pj-text); font-size: 13px; font-weight: 500;
  pointer-events: auto; animation: pjSlideIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
@keyframes pjSlideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.pj-toast__icon { display: flex; flex-shrink: 0; }
.pj-toast__icon svg { width: 18px; height: 18px; }
.pj-toast--success .pj-toast__icon { color: var(--pj-green); }
.pj-toast--error .pj-toast__icon { color: var(--pj-red); }
.pj-toast--info .pj-toast__icon { color: var(--pj-blue); }
.pj-toast--win .pj-toast__icon { color: var(--pj-gold); }
.pj-toast--win { border-color: rgba(240,180,41,0.2); }

/* ============================================
   WINNER OVERLAY
   ============================================ */
.pj-win-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.pj-win-backdrop.visible { opacity: 1; pointer-events: auto; }

.pj-win-card {
  position: relative; width: 360px; max-width: 90vw;
  background: var(--pj-bg-card); border: 1px solid rgba(240,180,41,0.2);
  border-radius: 20px; padding: 40px 30px; text-align: center;
  transform: scale(0.8); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.pj-win-card.visible { transform: scale(1); opacity: 1; }

.pj-win-card__close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.05);
  color: var(--pj-text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 5;
}
.pj-win-card__close:hover { background: rgba(255,255,255,0.1); color: var(--pj-text); }
.pj-win-card__close svg { width: 16px; height: 16px; }

.pj-win-card__glow {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(240,180,41,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.pj-win-card__rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 300px; height: 300px; pointer-events: none; }
.pj-win-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(240,180,41,0.08); }
.pj-win-ring--1 { width: 200px; height: 200px; animation: pjRingPulse 3s ease infinite; }
.pj-win-ring--2 { width: 260px; height: 260px; animation: pjRingPulse 3s ease 0.5s infinite; }
.pj-win-ring--3 { width: 320px; height: 320px; animation: pjRingPulse 3s ease 1s infinite; }
@keyframes pjRingPulse { 0%,100% { opacity: 0.2; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.5; transform: translate(-50%,-50%) scale(1.05); } }

.pj-win-card__trophy { position: relative; z-index: 2; margin-bottom: 12px; }
.pj-win-card__trophy svg { width: 48px; height: 48px; color: var(--pj-gold); }

.pj-win-card__title { position: relative; z-index: 2; font-size: 28px; font-weight: 800; color: var(--pj-gold); letter-spacing: 3px; margin-bottom: 6px; }
.pj-win-card__sub { position: relative; z-index: 2; font-size: 14px; color: var(--pj-text-dim); margin-bottom: 20px; }

.pj-win-card__amt { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 24px; }
.pj-win-plus { font-size: 20px; font-weight: 700; color: var(--pj-green); }
.pj-win-val { font-size: 36px; font-weight: 800; color: #fff; font-family: var(--pj-mono); }
.pj-win-lbl { font-size: 14px; color: var(--pj-text-dim); margin-left: 4px; }

.pj-win-card__collect {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border: none; border-radius: var(--pj-radius-sm);
  background: linear-gradient(135deg, var(--pj-gold), #d4a017);
  color: #000; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--pj-font); transition: all 0.2s; overflow: hidden;
}
.pj-win-card__collect:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pj-collect-shine {
  position: absolute; top: -100%; left: -100%; width: 300%; height: 300%;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: pjShine 2s ease infinite;
}
@keyframes pjShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============================================
   MODALS (Rules, Daily Reward)
   ============================================ */
.pj-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  animation: pjFadeIn 0.2s ease;
}
@keyframes pjFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pj-modal {
  position: relative; width: 520px; max-width: 92vw; max-height: 85vh;
  background: var(--pj-bg-card); border: 1px solid var(--pj-border);
  border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  animation: pjScaleIn 0.3s ease;
}
@keyframes pjScaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pj-modal__close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.05);
  color: var(--pj-text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; z-index: 5;
}
.pj-modal__close:hover { background: rgba(255,255,255,0.1); color: var(--pj-text); }
.pj-modal__close svg { width: 16px; height: 16px; }

.pj-modal__header { padding: 24px 24px 16px; display: flex; align-items: center; gap: 12px; }
.pj-modal__icon { display: flex; }
.pj-modal__icon svg { width: 24px; height: 24px; color: var(--pj-gold); }
.pj-modal__header h2 { font-size: 18px; font-weight: 700; color: #fff; }

.pj-modal__body { padding: 0 24px; overflow-y: auto; flex: 1; }
.pj-modal__body::-webkit-scrollbar { width: 4px; }
.pj-modal__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.pj-rules-sec { margin-bottom: 20px; }
.pj-rules-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pj-text); margin-bottom: 10px; }
.pj-rules-sec h3 svg { width: 16px; height: 16px; color: var(--pj-gold); }
.pj-rules-sec ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pj-rules-sec li { font-size: 13px; color: var(--pj-text-dim); padding-left: 16px; position: relative; line-height: 1.5; }
.pj-rules-sec li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--pj-gold); opacity: 0.5; }

.pj-rules-edge { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255,255,255,0.02); border-radius: var(--pj-radius-xs); }
.pj-rules-edge__val { font-size: 22px; font-weight: 800; color: var(--pj-gold); font-family: var(--pj-mono); }
.pj-rules-edge span:last-child { font-size: 13px; color: var(--pj-text-dim); }

.pj-rules-states { display: flex; flex-direction: column; gap: 8px; }
.pj-state { display: flex; align-items: center; gap: 10px; }
.pj-state__b { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.pj-state--wait { background: var(--pj-green-dim); color: var(--pj-green); }
.pj-state--spin { background: rgba(168,85,247,0.12); color: var(--pj-purple); }
.pj-state--win { background: var(--pj-gold-dim); color: var(--pj-gold); }
.pj-state span:last-child { font-size: 13px; color: var(--pj-text-dim); }

.pj-modal__footer { padding: 16px 24px; border-top: 1px solid var(--pj-border); }
.pj-modal__btn {
  width: 100%; padding: 10px; border: none; border-radius: var(--pj-radius-sm);
  background: linear-gradient(135deg, var(--pj-gold), #d4a017);
  color: #000; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--pj-font); transition: all 0.2s;
}
.pj-modal__btn:hover { filter: brightness(1.1); }

/* ============================================
   DAILY REWARD MODAL
   ============================================ */
.pj-daily-modal {
  position: relative; width: 440px; max-width: 92vw; max-height: 85vh;
  background: var(--pj-bg-card); border: 1px solid var(--pj-border);
  border-radius: 16px; overflow: hidden;
  animation: pjScaleIn 0.3s ease;
}

.pj-daily__content { padding: 24px; overflow-y: auto; max-height: calc(85vh - 40px); }
.pj-daily__content::-webkit-scrollbar { width: 4px; }
.pj-daily__content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.pj-daily__loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px; color: var(--pj-text-dim); }
.pj-daily__login { text-align: center; padding: 32px; }
.pj-daily__login-icon { margin-bottom: 12px; }
.pj-daily__login-icon svg { width: 40px; height: 40px; color: var(--pj-text-dim); }
.pj-daily__login h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.pj-daily__login p { font-size: 14px; color: var(--pj-text-dim); margin-bottom: 20px; }
.pj-daily__login-btn {
  padding: 10px 28px; border: none; border-radius: var(--pj-radius-sm);
  background: linear-gradient(135deg, var(--pj-gold), #d4a017);
  color: #000; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--pj-font);
}

.pj-daily__hero { text-align: center; margin-bottom: 20px; }
.pj-daily__hero-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.pj-daily__hero-icon svg { width: 28px; height: 28px; color: #fff; }

.pj-daily__streak { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.pj-daily__streak-icon svg { width: 18px; height: 18px; color: var(--pj-gold); }
.pj-daily__streak-num { font-size: 20px; font-weight: 800; color: var(--pj-gold); }
.pj-daily__streak-text { font-size: 12px; color: var(--pj-text-dim); }

.pj-daily__title { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pj-daily__subtitle { font-size: 13px; color: var(--pj-text-dim); }

.pj-daily__reward {
  display: flex; align-items: center; gap: 12px; position: relative;
  padding: 14px; border-radius: var(--pj-radius); margin-bottom: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--pj-border);
}
.pj-daily__reward.claimed { opacity: 0.6; }
.pj-daily__reward-badge { position: absolute; top: -8px; left: 12px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--pj-gold-dim); color: var(--pj-gold); }
.pj-daily__reward-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pj-daily__reward-icon svg { width: 20px; height: 20px; color: #fff; }
.pj-daily__reward-info { flex: 1; }
.pj-daily__reward-info h3 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.pj-daily__reward-info p { font-size: 12px; color: var(--pj-text-dim); }
.pj-daily__reward-check svg { width: 20px; height: 20px; color: var(--pj-green); }

.pj-daily__timeline { margin-bottom: 16px; }
.pj-daily__timeline-label { font-size: 11px; font-weight: 600; color: var(--pj-text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.pj-daily__timeline-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.pj-daily__timeline-track::-webkit-scrollbar { height: 3px; }
.pj-daily__timeline-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.pj-daily__day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; position: relative; }
.pj-daily__day-num { font-size: 10px; color: var(--pj-text-muted); }
.pj-daily__day-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pj-border); }
.pj-daily__day-icon svg { width: 16px; height: 16px; }
.pj-daily__day.current .pj-daily__day-icon { border-color: var(--pj-gold); box-shadow: 0 0 8px rgba(240,180,41,0.2); }
.pj-daily__day.past .pj-daily__day-icon { opacity: 0.4; }
.pj-daily__day.future .pj-daily__day-icon { opacity: 0.3; }
.pj-daily__day-check { position: absolute; bottom: -2px; right: 4px; }
.pj-daily__day-check svg { width: 12px; height: 12px; color: var(--pj-green); }

.pj-daily__bonuses { margin-bottom: 16px; }
.pj-daily__bonuses-label { font-size: 11px; font-weight: 600; color: var(--pj-text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.pj-daily__bonuses-row { display: flex; flex-wrap: wrap; gap: 6px; }

.pj-power-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.04); color: var(--pj-text-dim);
}
.pj-power-chip svg { width: 12px; height: 12px; }
.pj-power-chip--xp { color: var(--pj-gold); background: var(--pj-gold-dim); }
.pj-power-chip--cf { color: var(--pj-blue); background: rgba(59,130,246,0.1); }
.pj-power-chip--bd { color: var(--pj-red); background: rgba(244,63,94,0.1); }
.pj-power-chip--jp { color: var(--pj-purple); background: rgba(168,85,247,0.1); }

.pj-daily__action { text-align: center; }
.pj-daily__claim-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 32px; border: none; border-radius: var(--pj-radius-sm);
  background: var(--btn-gradient, linear-gradient(135deg, var(--pj-gold), #d4a017));
  color: #000; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: var(--pj-font); transition: all 0.2s;
}
.pj-daily__claim-btn svg { width: 16px; height: 16px; }
.pj-daily__claim-btn:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.pj-daily__claim-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pj-daily__claim-btn.loading { pointer-events: none; }

.pj-daily__claimed { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--pj-text-dim); }
.pj-daily__claimed svg { width: 16px; height: 16px; }
.pj-daily__error { margin-top: 8px; font-size: 12px; color: var(--pj-red); }

/* Daily confetti */
.pj-daily__confetti { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; pointer-events: none; border-radius: 16px; }
.pj-confetti-piece {
  position: absolute; top: -10px; width: 6px; height: 12px; border-radius: 2px;
  animation: pjConfettiFall linear forwards;
}
@keyframes pjConfettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* ============================================
   HISTORY TICKER (HistoryTicker component)
   ============================================ */
.pj-ticker {
  position: relative; z-index: 2;
  padding: 8px 0; overflow: hidden;
  margin-top: 72px; /* clear fixed navbar */
  background: rgba(10, 12, 16, 0.6);
  border-bottom: 1px solid var(--pj-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pj-ticker--empty {
  text-align: center;
  padding: 10px 0;
}
.pj-ticker::before, .pj-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px;
  z-index: 5; pointer-events: none;
}
.pj-ticker::before { left: 0; background: linear-gradient(90deg, var(--pj-bg), transparent); }
.pj-ticker::after { right: 0; background: linear-gradient(-90deg, var(--pj-bg), transparent); }
.pj-ticker-track {
  display: flex; gap: 8px; width: max-content;
  animation: pj-ticker-scroll 80s linear infinite;
  will-change: transform;
}
.pj-ticker-track:hover { animation-play-state: paused; }
@keyframes pj-ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.pj-ticker-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--pj-border);
  border-radius: 20px; white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease;
}
.pj-ticker-item:hover { border-color: rgba(240, 180, 41, 0.3); }
.pj-ticker-crown svg { width: 12px; height: 12px; color: var(--pj-gold); flex-shrink: 0; }
.pj-ticker-winner { font-size: 11px; font-weight: 700; color: var(--pj-text); }
.pj-ticker-text { font-size: 10px; color: var(--pj-text-dim); }
.pj-ticker-amount { font-size: 11px; font-weight: 700; font-family: var(--pj-mono); color: var(--pj-gold); }
.pj-ticker-chance { font-size: 10px; font-weight: 600; color: var(--pj-green); font-family: var(--pj-mono); }

/* New history item slide-in + glow animation */
.pj-ticker-item--new {
  animation: pj-ticker-new-pop 1.2s ease-out;
  border-color: var(--pj-gold) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4), inset 0 0 6px rgba(251, 191, 36, 0.1);
}
@keyframes pj-ticker-new-pop {
  0%   { opacity: 0; transform: scale(0.7); border-color: var(--pj-gold); box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }
  30%  { opacity: 1; transform: scale(1.08); }
  60%  { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); box-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
}

/* ============================================
   HOW TO PLAY MODAL STYLES
   ============================================ */
.pj-htp-modal { max-width: 680px; }
.pj-htp-body { display: flex; flex-direction: column; gap: 24px; }

.pj-htp-section {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--pj-radius);
}
.pj-htp-section-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.pj-htp-section-header h3 {
  font-size: 16px; font-weight: 800; color: #fff; margin: 0;
}
.pj-htp-section-icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(240, 180, 41, 0.12); flex-shrink: 0;
}
.pj-htp-section-icon svg { color: var(--pj-gold); }
.pj-htp-desc {
  font-size: 13px; color: var(--pj-text-dim); line-height: 1.6; margin: 0 0 10px;
}
.pj-htp-desc strong { color: #fff; }

/* Steps */
.pj-htp-steps { display: flex; flex-direction: column; gap: 12px; }
.pj-htp-step {
  display: flex; align-items: flex-start; gap: 12px;
}
.pj-htp-step-num {
  width: 28px; height: 28px; min-width: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pj-gold), #d4a017);
  border-radius: 50%; font-size: 13px; font-weight: 800; color: #1a1200;
}
.pj-htp-step h4 { font-size: 13px; font-weight: 700; color: #fff; margin: 0 0 3px; }
.pj-htp-step p { font-size: 12px; color: var(--pj-text-dim); margin: 0; line-height: 1.5; }

/* Example callout */
.pj-htp-example {
  margin-top: 12px; padding: 14px;
  background: rgba(240, 180, 41, 0.06);
  border: 1px solid rgba(240, 180, 41, 0.15);
  border-radius: var(--pj-radius-sm);
}
.pj-htp-example-label {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pj-gold); margin-bottom: 6px;
}
.pj-htp-example p {
  font-size: 12px; color: var(--pj-text-dim); margin: 0; line-height: 1.5;
}
.pj-htp-example p strong { color: #fff; }

/* Tips list */
.pj-htp-tips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pj-htp-tips li {
  position: relative; padding-left: 16px;
  font-size: 12px; color: var(--pj-text-dim); line-height: 1.5;
}
.pj-htp-tips li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--pj-gold);
}
.pj-htp-tips li strong { color: #fff; }

/* ============================================
   HOW TO PLAY FAB — bottom left
   ============================================ */
.pj-htp-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px;
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid rgba(240, 180, 41, 0.25);
  border-radius: 50px;
  color: var(--pj-gold);
  font-size: 13px; font-weight: 700; font-family: var(--pj-font);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}
.pj-htp-fab:hover {
  background: rgba(240, 180, 41, 0.18);
  border-color: rgba(240, 180, 41, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(240, 180, 41, 0.15);
}
.pj-htp-fab svg { flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .pj-grid { grid-template-columns: 300px 1fr; }
  .pj-sidebar--right { display: none; }
  .pj-center { min-height: auto; }
  .pj-players { flex: 0 0 auto; }
  .pj-players__list { max-height: 380px; }
}

@media (max-width: 900px) {
  .pj-grid { grid-template-columns: 1fr; }
  .pj-sidebar--left { order: 2; }
  .pj-center { order: 1; }
  .pj-main { padding: 16px 10px 12px; }
}

@media (max-width: 700px) {
  .pj-wheel__vp { width: 100% !important; }
  .pj-hero__content { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pj-hero__status { flex-wrap: wrap; }
  .pj-hero__pot-amount { font-size: 22px; }
  .pj-hero__winner { flex-direction: column; align-items: flex-start; }

  /* Ticker compact */
  .pj-ticker { margin-top: 64px; }
  .pj-ticker-item { padding: 4px 8px; }
  .pj-ticker-crown svg { width: 10px; height: 10px; }
  .pj-ticker-winner { font-size: 10px; }
  .pj-ticker-amount { font-size: 10px; }
  .pj-ticker-chance { font-size: 9px; }

  /* FAB compact */
  .pj-htp-fab { bottom: 16px; left: 12px; padding: 8px 14px 8px 10px; font-size: 12px; gap: 6px; }
  .pj-htp-fab svg { width: 16px; height: 16px; }

  /* HTP modal compact */
  .pj-htp-section { padding: 14px; }
  .pj-htp-section-header h3 { font-size: 14px; }
  .pj-htp-step-num { width: 24px; height: 24px; min-width: 24px; font-size: 11px; }
}

@media (max-width: 480px) {
  .pj-main { padding: 12px 6px 8px; }
  .pj-hero { padding: 14px; }
  .pj-bet__presets { gap: 4px; }
  .pj-preset { min-width: 40px; padding: 6px 2px; font-size: 11px; }
  .pj-hero__pot-amount { font-size: 20px; }
  .pj-cd-ring { width: 48px; height: 48px; }
  .pj-cd-num { font-size: 18px; }
  .pj-modal { max-width: 96vw; }
  .pj-daily-modal { max-width: 96vw; }
  .pj-win-card { max-width: 95vw; padding: 28px 20px; }
  .pj-win-val { font-size: 28px; }
  .pj-htp-fab { bottom: 12px; left: 8px; padding: 7px 12px 7px 9px; font-size: 11px; }
  .pj-htp-fab svg { width: 14px; height: 14px; }
}

/* ============================================
   FOOTER OVERRIDE — Dark seamless
   ============================================ */
.cr-footer {
  background: #0a0c10 !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  margin-top: 40px !important;
}
.cr-footer::before {
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.2), transparent) !important;
}

/* ============================================
   SCROLLBAR — Global dark
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ============================================
   MISC POLISH
   ============================================ */

/* Input autofill — dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #e2e8f0 !important;
  -webkit-box-shadow: 0 0 0 40px #0f1218 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Selection */
::selection { background: rgba(240,180,41,0.25); color: #fff; }

/* Anchor default */
.pj-app a { color: var(--pj-gold); text-decoration: none; }
.pj-app a:hover { text-decoration: underline; }
