.pm-pg {
  --pg-bg: #0b0d17;
  --pg-surface: #13182e;
  --pg-card: #18203d;
  --pg-ink: #faf6ee;
  --pg-muted: #c4cbe0;
  --pg-gold: #e8c572;
  --pg-coral: #ff4d6d;
  --pg-mint: #34d399;
  font-family: var(--font-sans, 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif);
  background: var(--pg-bg);
  color: var(--pg-ink);
  border: 1px solid rgba(232, 197, 114, 0.28);
  border-radius: 22px;
  padding: 20px;
  max-width: 1120px;
  margin: 0 auto 28px;
  box-shadow: 0 22px 55px rgba(4, 6, 16, 0.48);
  box-sizing: border-box;
}

.pm-pg *,
.pm-pg *::before,
.pm-pg *::after {
  box-sizing: border-box;
}

.pm-pg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.pm-pg button:focus-visible,
.pm-pg a:focus-visible,
.pm-pg input:focus-visible {
  outline: 2px solid var(--pg-gold);
  outline-offset: 2px;
}

/* Top Tabs */
.pm-pg-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #0d1122;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.pm-pg-tab {
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--pg-muted);
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.pm-pg-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.pm-pg-tab.is-active {
  background: var(--pg-gold);
  color: #151107;
}

.pm-pg-tab-ico {
  font-size: 18px;
}

.pm-pg-pane[hidden] {
  display: none;
}

.pm-pg-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pg-gold);
  margin-bottom: 6px;
}

.pm-pg-subnote {
  font-size: 13px;
  color: var(--pg-muted);
  margin: 0;
  line-height: 1.45;
}

.pm-pg-input {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0a0d1a;
  color: #faf6ee;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  width: 100%;
}

/* Shared Buttons */
.pm-pg-btn-gold,
.pm-pg-btn-coral,
.pm-pg-btn-dark {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.14s ease, filter 0.15s ease;
}

.pm-pg-btn-gold {
  background: var(--pg-gold);
  color: #151107;
}

.pm-pg-btn-coral {
  background: var(--pg-coral);
  color: #ffffff;
}

.pm-pg-btn-dark {
  background: #20294a;
  color: #faf6ee;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pm-pg-btn-gold:hover,
.pm-pg-btn-coral:hover,
.pm-pg-btn-dark:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.pm-pg-full {
  width: 100%;
}

.pm-pg-dual-btns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 10px;
}

.pm-pg-mt {
  margin-top: 14px;
}

.pm-pg-mono-pill {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-gold);
  background: rgba(232, 197, 114, 0.12);
  border: 1px solid rgba(232, 197, 114, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ========================================================= */
/* GAME 1: CRYSTAL BALL                                      */
/* ========================================================= */
.pm-pg-oracle-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
}

.pm-pg-orb-stage {
  background: var(--pg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.pm-pg-namebar {
  width: 100%;
}

.pm-pg-orb-btn {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-pg-orb-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 197, 114, 0.35) 0%, rgba(255, 77, 109, 0.15) 50%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

.pm-pg-orb-sphere {
  position: relative;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a396b 0%, #131a36 58%, #090c19 100%);
  border: 2.5px solid rgba(232, 197, 114, 0.65);
  box-shadow: inset 0 10px 26px rgba(255, 255, 255, 0.18), 0 16px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.pm-pg-orb-btn:hover .pm-pg-orb-sphere {
  transform: scale(1.04);
}

.pm-pg-orb-sphere.is-shaking {
  animation: pmOrbShake 0.58s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes pmOrbShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-8px, -4px) rotate(-5deg); }
  30% { transform: translate(8px, 3px) rotate(5deg); }
  45% { transform: translate(-7px, 4px) rotate(-4deg); }
  60% { transform: translate(7px, -3px) rotate(4deg); }
  75% { transform: translate(-4px, 2px) rotate(-2deg); }
}

.pm-pg-orb-emoji {
  font-size: 54px;
  line-height: 1;
}

.pm-pg-orb-cta {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--pg-gold);
}

.pm-pg-slip-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pm-pg-slip {
  background: #faf6ee;
  color: #151722;
  border: 2px solid #151722;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.pm-pg-slip .pm-pg-mono-pill {
  background: #151722;
  color: #f6df9e;
  border-color: #151722;
}

.pm-pg-slip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pm-pg-mono-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  color: #4a4f62;
}

.pm-pg-slip-for {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #be123c;
  margin: 0 0 8px;
}

.pm-pg-slip-prophecy {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px;
  color: #12141d;
}

.pm-pg-slip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pm-pg-statbox {
  background: #ffffff;
  border: 1.5px solid #151722;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pm-pg-stat-wide {
  grid-column: 1 / -1;
}

.pm-pg-stat-k {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a4f62;
}

.pm-pg-stat-v {
  font-size: 14px;
  font-weight: 700;
  color: #12141d;
  line-height: 1.35;
}

.pm-pg-slip-foot {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1.5px dashed #151722;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 800;
  color: #151722;
}

.pm-pg-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================================= */
/* GAME 2: MOST LIKELY TO 2027                               */
/* ========================================================= */
.pm-pg-roster-box {
  background: var(--pg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.pm-pg-roster-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.pm-pg-roster-quick {
  display: flex;
  gap: 8px;
}

.pm-pg-mini-btn {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(232, 197, 114, 0.35);
  background: rgba(232, 197, 114, 0.1);
  color: #f6df9e;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.pm-pg-addplayer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.pm-pg-player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-pg-pchip {
  min-height: 46px;
  padding: 2px 4px 2px 14px;
  border-radius: 999px;
  background: #0d1122;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #faf6ee;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pm-pg-pchip-del {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fda4af;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pm-pg-likely-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.pm-pg-deck-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pm-pg-pill {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d1122;
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.pm-pg-pill.is-active {
  background: var(--pg-gold);
  color: #151107;
  border-color: var(--pg-gold);
}

.pm-pg-supercard {
  background: var(--pg-card);
  border: 2px solid rgba(232, 197, 114, 0.42);
  border-radius: 20px;
  padding: 22px;
}

.pm-pg-super-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pm-pg-round {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-muted);
}

.pm-pg-super-prompt {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.28;
  color: #ffffff;
  margin: 0 0 20px;
}

.pm-pg-vote-area {
  margin-bottom: 18px;
}

.pm-pg-vote-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-pg-votebtn {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(232, 197, 114, 0.45);
  background: #0e1326;
  color: #faf6ee;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.12s ease;
}

.pm-pg-votebtn:hover {
  background: rgba(232, 197, 114, 0.22);
  transform: translateY(-1px);
}

.pm-pg-deal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pm-pg-link-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #fda4af;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.pm-pg-link-btn:hover {
  text-decoration: underline;
}

.pm-pg-leaderboard {
  background: var(--pg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
}

.pm-pg-lb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pm-pg-lb-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.pm-pg-lb-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-gold);
}

.pm-pg-lb-list,
.pm-pg-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-pg-lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0d1122;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.pm-pg-lb-crowns {
  color: var(--pg-gold);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 800;
}

.pm-pg-summary-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pm-pg-log-item {
  font-size: 12px;
  line-height: 1.4;
  color: var(--pg-muted);
  background: #0b0e1c;
  padding: 8px 10px;
  border-radius: 10px;
}

.pm-pg-log-item strong {
  color: #f6df9e;
}

/* ========================================================= */
/* GAME 3: 2027 PLOT TWIST SLOTS                             */
/* ========================================================= */
.pm-pg-slots-box {
  background: var(--pg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
}

.pm-pg-slots-head {
  text-align: center;
  margin-bottom: 20px;
}

.pm-pg-slots-title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 10px 0 6px;
  color: #ffffff;
}

.pm-pg-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pm-pg-reel-card {
  background: #0b0e1c;
  border: 2px solid rgba(232, 197, 114, 0.38);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}

.pm-pg-reel-card.is-spinning .pm-pg-reel-val {
  opacity: 0.65;
  transform: translateY(3px);
}

.pm-pg-reel-tag {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 800;
  color: var(--pg-gold);
}

.pm-pg-reel-window {
  min-height: 92px;
  background: #141a33;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pm-pg-reel-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  color: #faf6ee;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.pm-pg-hold-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #13182e;
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.pm-pg-hold-btn.is-held {
  background: rgba(52, 211, 153, 0.18);
  border-color: #34d399;
  color: #6ee7b7;
}

.pm-pg-spin-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.pm-pg-spin-btn {
  min-height: 54px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, #e8c572 0%, #f6df9e 50%, #e8c572 100%);
  color: #141006;
  font-size: 16px;
  font-weight: 900;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(232, 197, 114, 0.3);
}

.pm-pg-spin-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.pm-pg-jackpot {
  background: #10152b;
  border: 1.5px solid rgba(255, 77, 109, 0.45);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.pm-pg-jackpot-line {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 16px;
  line-height: 1.32;
}

.pm-pg-jackpot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pm-pg-status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: #f6df9e;
  min-height: 16px;
}

/* Modal */
.pm-pg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pm-pg-modal[hidden] {
  display: none;
}

.pm-pg-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, 0.82);
  backdrop-filter: blur(5px);
}

.pm-pg-modal-card {
  position: relative;
  z-index: 1;
  background: #13182e;
  border: 1px solid rgba(232, 197, 114, 0.45);
  border-radius: 20px;
  padding: 18px;
  max-width: 430px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  color: #faf6ee;
}

.pm-pg-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pm-pg-modal-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0b0e1c;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.pm-pg-modal-tip {
  font-size: 12px;
  color: var(--pg-muted);
  margin: 0 0 12px;
}

.pm-pg-modal-imgwrap {
  background: #080a12;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.pm-pg-modal-imgwrap img {
  width: 100%;
  max-width: 290px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.pm-pg-modal-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 880px) {
  .pm-pg-oracle-grid,
  .pm-pg-likely-grid,
  .pm-pg-reels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pm-pg {
    padding: 14px;
    border-radius: 18px;
  }
  .pm-pg-tabs {
    grid-template-columns: 1fr;
  }
  .pm-pg-slip-stats,
  .pm-pg-dual-btns,
  .pm-pg-addplayer,
  .pm-pg-modal-btns {
    grid-template-columns: 1fr;
  }
  .pm-pg-jackpot-actions {
    flex-direction: column;
  }
  .pm-pg-jackpot-actions > * {
    width: 100%;
  }
}
