/*
  GodlyFlip Jackpot polish
  This file intentionally scopes every rule to the active Jackpot screen so
  Coinflip remains exactly as it was.
*/

body.on-jackpot #jackpotPage {
  --jp-ink: #0b0a11;
  --jp-panel: #171420;
  --jp-muted: #9a92ad;
  --jp-line: rgba(255, 255, 255, .09);
  --jp-violet: #8d6cff;
  position: relative;
  isolation: isolate;
  gap: 14px !important;
  padding-bottom: 10px;
}

body.on-jackpot #jackpotPage::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 19%;
  width: min(680px, 72vw);
  height: 280px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(105, 79, 205, .14), transparent 69%);
  filter: blur(6px);
}

body.on-jackpot #jackpotPage > * { position: relative; }

/* Keep the page-level "Winner takes all" title as the one clear headline. */
body.on-jackpot .workspace > .page-title { margin-bottom: 4px; }
body.on-jackpot .workspace > .page-title p { color: #a98df6; letter-spacing: .18em; }
body.on-jackpot .workspace > .page-title h1 {
  color: #f8f6fd;
  font-size: clamp(26px, 2.5vw, 33px);
  letter-spacing: -.035em;
}

body.on-jackpot #jackpotPage .jp-masthead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 2px 1px;
}

body.on-jackpot #jackpotPage .jp-mast-copy { min-width: 0; }

body.on-jackpot #jackpotPage .jp-mast-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9a7ec;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .16em;
}

body.on-jackpot #jackpotPage .jp-mast-eyebrow i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a88aff;
  box-shadow: 0 0 11px rgba(168,138,255,.8);
}

body.on-jackpot #jackpotPage .jp-mast-eyebrow em {
  padding: 4px 6px;
  color: #cfc6e4;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .09em;
}

body.on-jackpot #jackpotPage .jp-masthead h2 {
  margin: 7px 0 0;
  color: #f8f6fd;
  font: 800 clamp(25px, 2.7vw, 34px)/1.05 Space Grotesk, Manrope, sans-serif;
  letter-spacing: -.035em;
}

body.on-jackpot #jackpotPage .jp-mast-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.on-jackpot #jackpotPage .jp-mast-meta span {
  padding: 7px 9px;
  color: #91899f;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 7px;
  font: 800 9px/1 DM Mono, monospace;
  letter-spacing: .075em;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-mast-meta b { color: #ded6ef; }

/* Round overview */
body.on-jackpot #jackpotPage .jp-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(180px, .85fr) minmax(250px, 1.1fr) minmax(250px, .85fr) !important;
  min-height: 154px;
  gap: 24px !important;
  padding: 29px 31px 25px !important;
  background:
    radial-gradient(circle at 50% 116%, rgba(137, 105, 255, .20), transparent 39%),
    linear-gradient(116deg, rgba(255,255,255,.045), rgba(255,255,255,.016) 35%, rgba(124,92,255,.065)) !important;
  border: 1px solid rgba(217, 204, 255, .13) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.on-jackpot #jackpotPage .jp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.19) .65px, transparent .8px);
  background-size: 12px 12px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

body.on-jackpot #jackpotPage .jp-hero > :not(.jp-round-context) {
  position: relative;
  z-index: 1;
}

body.on-jackpot #jackpotPage .jp-round-context {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b9b1c9;
  font: 800 9px/1 Manrope, sans-serif;
  letter-spacing: .13em;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-round-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: #d7cdff;
  background: rgba(137, 105, 255, .12);
  border: 1px solid rgba(176, 152, 255, .26);
  border-radius: 99px;
}

body.on-jackpot #jackpotPage .jp-round-state i,
body.on-jackpot #jackpotPage .jp-odds-caption i,
body.on-jackpot #jackpotPage .jp-reel-caption i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 9px rgba(110, 231, 183, .9);
}

body.on-jackpot #jackpotPage .jp-round-copy { opacity: .72; }

body.on-jackpot #jackpotPage .jp-h-time small,
body.on-jackpot #jackpotPage .jp-h-pot small {
  color: #aaa2bb;
  letter-spacing: .19em;
}

body.on-jackpot #jackpotPage .jp-h-time .jp-time {
  color: #f4f0ff !important;
  text-shadow: 0 3px 22px rgba(184, 158, 255, .18);
}

body.on-jackpot #jackpotPage .jp-h-prog {
  width: min(245px, 100%);
  height: 5px;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.22);
}

body.on-jackpot #jackpotPage .jp-h-prog > i {
  background: linear-gradient(90deg, #714fff, #ae9aff) !important;
  box-shadow: 0 0 15px rgba(142, 108, 255, .48);
}

body.on-jackpot #jackpotPage .jp-h-pot {
  position: relative;
  min-width: 0;
  padding: 3px 52px !important;
  border-color: rgba(255,255,255,.08) !important;
}

body.on-jackpot #jackpotPage .jp-h-pot .jp-potbig {
  color: #fff !important;
  font-size: clamp(24px, 2.7vw, 34px) !important;
  gap: 7px !important;
  margin-top: 10px !important;               /* sit lower under the TOTAL POT label */
  text-shadow: 0 5px 28px rgba(167, 138, 255, .18);
}

body.on-jackpot #jackpotPage .jp-h-pot .jp-potbig .g-coin {
  width: 24px !important;
  height: 24px !important;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.32));
}

body.on-jackpot #jackpotPage .jp-h-meta {
  color: #a9a0bb;
  letter-spacing: .01em;
}

body.on-jackpot #jackpotPage .jp-h-cta { gap: 15px; }

body.on-jackpot #jackpotPage .jp-h-avs {
  padding: 5px 0;
  filter: drop-shadow(0 7px 12px rgba(0,0,0,.24));
}

body.on-jackpot #jackpotPage .jp-h-av {
  width: 40px;
  height: 40px;
  padding: 5px;
  background: linear-gradient(145deg, #292139, #15121f);
  box-shadow: 0 0 0 2px #17131f, 0 5px 11px rgba(0,0,0,.42);
}

body.on-jackpot #jackpotPage .jp-deposit {
  min-height: 47px;
  padding: 0 20px;
  background: linear-gradient(135deg, #7655f2, #9578ff) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 11px !important;
  box-shadow: 0 10px 25px rgba(93,66,211,.31), inset 0 1px 0 rgba(255,255,255,.25) !important;
}

body.on-jackpot #jackpotPage .jp-deposit:hover {
  background: linear-gradient(135deg, #8262ff, #a68cff) !important;
  transform: translateY(-1px);
}

/* Odds and draw rail */
body.on-jackpot #jackpotPage .jp-odds-caption,
body.on-jackpot #jackpotPage .jp-reel-caption,
body.on-jackpot #jackpotPage .jp-native-odds,
body.on-jackpot #jackpotPage .jp-stage-meta,
body.on-jackpot #jackpotPage .jp-players-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  padding: 0 2px;
}

body.on-jackpot #jackpotPage .jp-odds-caption > span,
body.on-jackpot #jackpotPage .jp-reel-caption > span,
body.on-jackpot #jackpotPage .jp-native-odds > span,
body.on-jackpot #jackpotPage .jp-stage-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7d0e6;
  font: 800 10px/1 Manrope, sans-serif;
  letter-spacing: .13em;
}

body.on-jackpot #jackpotPage .jp-odds-caption small,
body.on-jackpot #jackpotPage .jp-reel-caption small,
body.on-jackpot #jackpotPage .jp-native-odds small,
body.on-jackpot #jackpotPage .jp-stage-meta small,
body.on-jackpot #jackpotPage .jp-players-caption small {
  color: #878095;
  font: 600 11px/1 Manrope, sans-serif;
}

body.on-jackpot #jackpotPage .jp-odds-caption i { background: #aa91ff; box-shadow: 0 0 9px rgba(170,145,255,.75); }
body.on-jackpot #jackpotPage .jp-reel-caption i { background: #f0c86e; box-shadow: 0 0 9px rgba(240,200,110,.65); }
body.on-jackpot #jackpotPage .jp-native-odds i { background: #aa91ff; box-shadow: 0 0 9px rgba(170,145,255,.75); }
body.on-jackpot #jackpotPage .jp-stage-meta i { background: #f0c86e; box-shadow: 0 0 9px rgba(240,200,110,.65); }

body.on-jackpot #jackpotPage .jp-bar {
  height: 50px !important;
  padding: 4px;
  gap: 4px !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 18px rgba(0,0,0,.11);
}

body.on-jackpot #jackpotPage .jp-seg {
  min-width: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 86%, #fff), var(--c)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -12px 20px rgba(0,0,0,.13);
}

body.on-jackpot #jackpotPage .jp-seg:first-child { border-radius: 9px; }
body.on-jackpot #jackpotPage .jp-seg:last-child { border-radius: 9px; }
body.on-jackpot #jackpotPage .jp-seg em { background: rgba(13,10,21,.22); }

body.on-jackpot #jackpotPage .jp-roller {
  height: 146px !important;
  border: 1px solid rgba(214,198,255,.13) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(118,89,230,.16), transparent 46%),
    linear-gradient(180deg, #0d0b13, #0a0910) !important;
  box-shadow: inset 0 0 45px rgba(0,0,0,.72), 0 11px 26px rgba(0,0,0,.18) !important;
  animation: jp-reel-idle 3.8s ease-in-out infinite;
}

@keyframes jp-reel-idle {
  0%, 100% { box-shadow: inset 0 0 45px rgba(0,0,0,.72), 0 11px 26px rgba(0,0,0,.18); }
  50% { box-shadow: inset 0 0 48px rgba(0,0,0,.76), 0 11px 30px rgba(116,84,226,.20); }
}

body.on-jackpot #jackpotPage .jp-roller::before,
body.on-jackpot #jackpotPage .jp-roller::after { width: 132px; }

body.on-jackpot #jackpotPage .jp-track { top: 35px !important; }

/* Do not change the 72px tile width or 8px rail gap: spin math relies on them. */
body.on-jackpot #jackpotPage .jp-tile {
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, rgba(48,39,65,.92), rgba(18,15,27,.98)) !important;
  box-shadow: 0 7px 16px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.06);
}

body.on-jackpot #jackpotPage .jp-tile::before { height: 3px; box-shadow: 0 0 10px var(--c); }
body.on-jackpot #jackpotPage .jp-tile img { background: transparent; filter: drop-shadow(0 5px 7px rgba(0,0,0,.52)); }

body.on-jackpot #jackpotPage .jp-pointer {
  width: 2px !important;
  background: #dacdff !important;
  box-shadow: 0 0 10px #a684ff, 0 0 34px rgba(126,89,255,.72) !important;
}

body.on-jackpot #jackpotPage .jp-pointer::before { border-top-color: #dacdff !important; }
body.on-jackpot #jackpotPage .jp-pointer::after { border-bottom-color: #dacdff !important; }

body.on-jackpot #jackpotPage .jp-cards {
  margin-top: 3px;
  gap: 12px !important;
}

body.on-jackpot #jackpotPage .jp-card {
  position: relative;
  min-height: 204px !important;
  padding: 21px 16px 17px !important;
  border: 1px solid rgba(255,255,255,.095) !important;
  border-top: 3px solid var(--c) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% -14%, color-mix(in srgb, var(--c) 22%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.015)) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.on-jackpot #jackpotPage .jp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.065), transparent 30%);
}

body.on-jackpot #jackpotPage .jp-card:hover {
  transform: translateY(-4px) !important;
  border-color: color-mix(in srgb, var(--c) 48%, rgba(255,255,255,.13)) !important;
  box-shadow: 0 18px 32px rgba(0,0,0,.27), 0 0 0 1px color-mix(in srgb, var(--c) 12%, transparent);
}

body.on-jackpot #jackpotPage .jp-lead {
  border-color: color-mix(in srgb, var(--c) 58%, rgba(255,255,255,.16)) !important;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--c) 33%, transparent), transparent 47%),
    linear-gradient(180deg, rgba(255,255,255,.076), rgba(255,255,255,.018)) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.23), 0 0 0 1px color-mix(in srgb, var(--c) 13%, transparent);
}

body.on-jackpot #jackpotPage .jp-card-av {
  position: relative;
  z-index: 1;
  width: 64px !important;
  height: 64px !important;
  background: linear-gradient(145deg, #282136, #15111d) !important;
  box-shadow: 0 8px 17px rgba(0,0,0,.34), 0 0 0 4px color-mix(in srgb, var(--c) 13%, transparent) !important;
}

body.on-jackpot #jackpotPage .jp-card-name,
body.on-jackpot #jackpotPage .jp-card-val,
body.on-jackpot #jackpotPage .jp-card-items,
body.on-jackpot #jackpotPage .jp-card-bar,
body.on-jackpot #jackpotPage .jp-card-pct { position: relative; z-index: 1; }

body.on-jackpot #jackpotPage .jp-card-name { color: #faf8ff; }
body.on-jackpot #jackpotPage .jp-card-val { letter-spacing: -.015em; }

body.on-jackpot #jackpotPage .jp-card-items {
  min-height: 52px;
  margin-top: 5px;
  gap: 3px;
}

body.on-jackpot #jackpotPage .jp-card-bar {
  height: 6px;
  background: rgba(255,255,255,.085);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.25);
}

body.on-jackpot #jackpotPage .jp-card-bar > i {
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 76%, #fff), var(--c));
  box-shadow: 0 0 11px color-mix(in srgb, var(--c) 44%, transparent);
}

body.on-jackpot #jackpotPage .jp-card-pct { margin-top: 8px; }

body.on-jackpot #jackpotPage .jp-enter { animation: jp-card-in .42s both ease-out; animation-delay: var(--jp-entry-delay, 0ms); }

@keyframes jp-card-in {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scalable entry roster: one neutral system, with weapon art doing the color work. */
body.on-jackpot #jackpotPage .jp-entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 3px;
}

body.on-jackpot #jackpotPage .jp-entries[data-density="standard"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

body.on-jackpot #jackpotPage .jp-entry {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 11px;
  min-width: 0;
  min-height: 90px;
  padding: 14px;
  background: #19191f;
  border: 1px solid #302f37;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

body.on-jackpot #jackpotPage .jp-entry:hover {
  transform: translateY(-2px);
  background: #1d1d24;
  border-color: #4b4955;
}

body.on-jackpot #jackpotPage .jp-entry-lead {
  background: #1b1a20;
  border-color: #56515f;
  box-shadow: inset 2px 0 #777184, inset 0 1px 0 rgba(255,255,255,.035);
}

body.on-jackpot #jackpotPage .jp-entry-av {
  width: 48px;
  height: 48px;
  padding: 6px;
  object-fit: contain;
  background: #111116;
  border: 1px solid #474450;
  border-radius: 9px;
  box-shadow: 0 4px 9px rgba(0,0,0,.23);
}

body.on-jackpot #jackpotPage .jp-entry-lead .jp-entry-av { border-color: #6e6879; }

body.on-jackpot #jackpotPage .jp-entry-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-entry-main b {
  overflow: hidden;
  color: #f1eff5;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-main span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #aaa6b2;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-main .g-coin {
  width: 15px;
  height: 15px;
}

body.on-jackpot #jackpotPage .jp-entry-items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  position: relative;
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-left: -4px;
  padding: 2px;
  background: #111117;
  border: 1px solid #3b3942;
  border-radius: 7px;
}

body.on-jackpot #jackpotPage .jp-entry-item:first-child { margin-left: 0; }
body.on-jackpot #jackpotPage .jp-entry-item img { width: 100%; height: 100%; object-fit: contain; }

body.on-jackpot #jackpotPage .jp-entry-item b {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 15px;
  padding: 2px 3px;
  color: #e9e4f5;
  background: #3b3549;
  border: 1px solid #625a74;
  border-radius: 5px;
  font: 800 8px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-entry-more {
  color: #aaa5b6;
  font: 800 10px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-entry-odds {
  min-width: 45px;
  padding-left: 9px;
  border-left: 1px solid #35333c;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-entry-odds small {
  display: block;
  margin-bottom: 4px;
  color: #85818e;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .09em;
}

body.on-jackpot #jackpotPage .jp-entry-odds b {
  color: #e8e4f0;
  font-size: 14px;
  font-weight: 800;
}

body.on-jackpot #jackpotPage .jp-entry-lead .jp-entry-odds b { color: #e8e4f0; }
body.on-jackpot #jackpotPage .jp-entry-enter { animation: jp-card-in .34s both ease-out; animation-delay: var(--jp-entry-delay, 0ms); }

body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 9px;
  column-gap: 8px;
}

body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 8px;
}

body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-items { display: none; }
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main { gap: 3px; }
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main b { font-size: 12px; }
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main span { font-size: 10px; }

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"] { grid-template-columns: 1fr; }
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: 1fr; }
  body.on-jackpot #jackpotPage .jp-entry { grid-template-columns: 48px minmax(0, 1fr) auto; }
  body.on-jackpot #jackpotPage .jp-entry-items { display: none; }
}

/* Recent results */
body.on-jackpot #jackpotPage .jp-recent {
  gap: 8px;
  margin-top: 10px;
  padding-top: 2px;
}

body.on-jackpot #jackpotPage .jp-recent-head {
  padding: 0 2px 1px;
}

body.on-jackpot #jackpotPage .jp-recent-head b { color: #e7e1ef; }
body.on-jackpot #jackpotPage .jp-recent-head span { color: #858095; }
body.on-jackpot #jackpotPage .jp-recent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.on-jackpot #jackpotPage .jp-rr {
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr) auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 10px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #302f37;
  border-radius: 10px;
  background: #18181d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.022);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

body.on-jackpot #jackpotPage .jp-rr:hover {
  transform: translateY(-1px);
  border-color: #4d4a55;
  background: #1c1c22;
}

body.on-jackpot #jackpotPage .jp-rr-av {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  padding: 5px;
  background: #111116;
  border-color: #4a4751;
  border-radius: 8px;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-rr-rank {
  grid-column: 1;
  grid-row: 1 / 3;
  color: #77737f;
  font-size: 10px;
}

body.on-jackpot #jackpotPage .jp-rr-id { grid-column: 3; grid-row: 1 / 3; }
body.on-jackpot #jackpotPage .jp-rr-id b { color: #efedf2; font-size: 13px; }
body.on-jackpot #jackpotPage .jp-rr-id small { color: #8f8b98; font-size: 10px; }
body.on-jackpot #jackpotPage .jp-rr-item,
body.on-jackpot #jackpotPage .jp-rr-go { display: none; }

body.on-jackpot #jackpotPage .jp-rr-pct {
  grid-column: 4;
  grid-row: 1;
  align-self: end;
  color: #aaa6b2;
  font-size: 11px;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-rr-pot {
  grid-column: 4;
  grid-row: 2;
  align-self: start;
  color: #e7e3ec;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body.on-jackpot #jackpotPage .jp-recent-list { grid-template-columns: 1fr; }
}

/* Jackpot-only modal finish */
body.on-jackpot #jpJoinModal .jpj-card,
body.on-jackpot #jpDetailModal .jpd-card {
  border-color: rgba(213,199,255,.14) !important;
  box-shadow: 0 32px 100px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.035) !important;
}

body.on-jackpot #jpJoinModal .jpj-card {
  border-radius: 16px;
  background: radial-gradient(circle at 74% -15%, rgba(133,98,255,.13), transparent 35%), #15121e;
}

body.on-jackpot #jpJoinModal .jpj-item {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

body.on-jackpot #jpJoinModal .jpj-item:hover { box-shadow: 0 10px 18px rgba(0,0,0,.2); }
body.on-jackpot #jpJoinModal .jpj-join { border-radius: 10px; box-shadow: 0 8px 18px rgba(93,66,211,.27); }

body.on-jackpot #jpDetailModal .jpd-card {
  border-radius: 16px !important;
  background: radial-gradient(circle at 80% -12%, rgba(133,98,255,.12), transparent 32%), #16121f !important;
}

body.on-jackpot #jackpotPage .jp-tap { animation: jp-tap .36s ease; }
@keyframes jp-tap { 50% { transform: translateY(1px) scale(.985); } }

@media (max-width: 1080px) {
  body.on-jackpot #jackpotPage .jp-hero {
    grid-template-columns: 1fr minmax(220px, 1fr) !important;
  }
  body.on-jackpot #jackpotPage .jp-h-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
  }
  body.on-jackpot #jackpotPage .jp-h-pot { padding: 3px 32px !important; }
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage { gap: 15px !important; }
  body.on-jackpot #jackpotPage .jp-hero {
    grid-template-columns: 1fr !important;
    min-height: 0;
    padding: 45px 20px 21px !important;
    text-align: left !important;
  }
  body.on-jackpot #jackpotPage .jp-round-context { left: 15px; right: auto; }
  body.on-jackpot #jackpotPage .jp-h-time,
  body.on-jackpot #jackpotPage .jp-h-cta { justify-self: stretch; }
  body.on-jackpot #jackpotPage .jp-h-pot {
    align-items: flex-start;
    padding: 15px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
  }
  body.on-jackpot #jackpotPage .jp-h-cta { justify-content: space-between; }
  body.on-jackpot #jackpotPage .jp-deposit { padding: 0 16px; }
  body.on-jackpot #jackpotPage .jp-seg { padding: 0 5px; gap: 4px; }
  body.on-jackpot #jackpotPage .jp-seg b { display: none; }
  body.on-jackpot #jackpotPage .jp-seg em { font-size: 11px; padding: 3px 5px; }
  body.on-jackpot #jackpotPage .jp-roller { height: 126px !important; }
  body.on-jackpot #jackpotPage .jp-track { top: 27px !important; }
  body.on-jackpot #jackpotPage .jp-roller::before,
  body.on-jackpot #jackpotPage .jp-roller::after { width: 62px; }
  body.on-jackpot #jackpotPage .jp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.on-jackpot #jackpotPage .jp-card { grid-column: span 1 !important; min-height: 205px !important; }
  body.on-jackpot #jackpotPage .jp-rr { grid-template-columns: 20px 38px minmax(70px, 1fr) auto auto; gap: 9px; }
  body.on-jackpot #jackpotPage .jp-rr-item,
  body.on-jackpot #jackpotPage .jp-rr-go { display: none; }
  body.on-jackpot #jackpotPage .jp-rr-pot { font-size: 13px; }
}

@media (max-width: 440px) {
  body.on-jackpot #jackpotPage .jp-round-copy,
  body.on-jackpot #jackpotPage .jp-odds-caption small,
  body.on-jackpot #jackpotPage .jp-reel-caption small,
  body.on-jackpot #jackpotPage .jp-native-odds small,
  body.on-jackpot #jackpotPage .jp-stage-meta small,
  body.on-jackpot #jackpotPage .jp-players-caption small,
  body.on-jackpot #jackpotPage .jp-h-avs { display: none; }
  body.on-jackpot #jackpotPage .jp-h-cta { justify-content: flex-end; }
  body.on-jackpot #jackpotPage .jp-card { padding-left: 11px !important; padding-right: 11px !important; }
  body.on-jackpot #jackpotPage .jp-card-items { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.on-jackpot #jackpotPage *,
  body.on-jackpot #jackpotPage *::before,
  body.on-jackpot #jackpotPage *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-recent-list { grid-template-columns: 1fr; }
  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 18px 38px minmax(0, 1fr) auto;
    grid-template-rows: 1fr 1fr;
    gap: 0 9px;
  }
}

/* Unified Jackpot cards: keep the surface quiet and let the item art provide personality. */
body.on-jackpot #jackpotPage {
  --jp-surface: #19191f;
  --jp-surface-raised: #1d1d24;
  --jp-line: #34333c;
  --jp-line-strong: #4a4852;
  --jp-ink: #f1eff5;
  --jp-muted: #9893a1;
}

body.on-jackpot #jackpotPage .jp-entries {
  gap: 12px;
  grid-auto-rows: 1fr;
}

body.on-jackpot #jackpotPage .jp-entry {
  position: relative;
  grid-template-columns: 54px minmax(0, 1fr) minmax(96px, auto) 62px;
  column-gap: 13px;
  min-height: 108px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1c22, #18181e);
  border-color: var(--jp-line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 18px rgba(0,0,0,.14);
}

body.on-jackpot #jackpotPage .jp-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.035), transparent 35%);
}

body.on-jackpot #jackpotPage .jp-entry > * { position: relative; z-index: 1; }

body.on-jackpot #jackpotPage .jp-entry:hover {
  background: #202027;
  border-color: var(--jp-line-strong);
}

body.on-jackpot #jackpotPage .jp-entry-lead {
  background: linear-gradient(180deg, #202027, #1a1a20);
  border-color: #55515e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 8px 18px rgba(0,0,0,.16);
}

body.on-jackpot #jackpotPage .jp-entry-av {
  width: 54px;
  height: 54px;
  padding: 7px;
  border-color: #4a4651;
  border-radius: 10px;
}

body.on-jackpot #jackpotPage .jp-entry-main b {
  color: var(--jp-ink);
  font-size: 14px;
}

body.on-jackpot #jackpotPage .jp-entry-main span {
  color: var(--jp-muted);
  font-size: 11px;
}

body.on-jackpot #jackpotPage .jp-entry-items {
  min-width: 96px;
  justify-content: flex-start;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  width: 36px;
  height: 36px;
  border-color: #403e48;
  background: #121218;
}

body.on-jackpot #jackpotPage .jp-entry-odds {
  min-width: 62px;
  padding-left: 12px;
  border-left-color: #383640;
}

body.on-jackpot #jackpotPage .jp-entry-odds b {
  color: #e5e1eb;
  font-size: 15px;
}

body.on-jackpot #jackpotPage .jp-recent {
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #29282f;
}

body.on-jackpot #jackpotPage .jp-recent-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

body.on-jackpot #jackpotPage .jp-rr {
  display: grid;
  grid-template-columns: 24px 56px minmax(0, 1fr) minmax(76px, auto) 15px;
  grid-template-rows: auto auto;
  grid-template-areas:
    'rank avatar identity pot go'
    'rank avatar identity odds go';
  align-items: center;
  gap: 0 12px;
  box-sizing: border-box;
  min-height: 112px;
  height: 100%;
  padding: 14px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1c1c22, #18181e);
  border-color: var(--jp-line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 18px rgba(0,0,0,.14);
}

body.on-jackpot #jackpotPage .jp-rr:hover {
  transform: translateY(-2px);
  background: #202027;
  border-color: var(--jp-line-strong);
}

body.on-jackpot #jackpotPage .jp-rr-rank {
  display: grid;
  grid-area: rank;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #aaa5b3;
  background: #232229;
  border: 1px solid #403e47;
  border-radius: 6px;
  font: 800 10px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-rr-av {
  grid-area: avatar;
  width: 56px;
  height: 56px;
  padding: 7px;
  background: #111116;
  border: 1px solid #4a4651;
  border-radius: 10px;
  box-shadow: 0 5px 11px rgba(0,0,0,.25);
}

body.on-jackpot #jackpotPage .jp-rr-id {
  grid-area: identity;
  min-width: 0;
  align-self: center;
}

body.on-jackpot #jackpotPage .jp-rr-id b {
  color: var(--jp-ink);
  font-size: 14px;
}

body.on-jackpot #jackpotPage .jp-rr-id small {
  color: var(--jp-muted);
  font-size: 11px;
}

/* The left tile is the item anchor; showing it twice only makes the card feel busy. */
body.on-jackpot #jackpotPage .jp-rr-item { display: none; }

body.on-jackpot #jackpotPage .jp-rr-pot {
  display: block;
  grid-area: pot;
  align-self: end;
  color: #eeeaf3;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-pot::before {
  content: 'TOTAL POT';
  display: block;
  margin-bottom: 3px;
  color: #898492;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .09em;
}

body.on-jackpot #jackpotPage .jp-rr-pct {
  display: block;
  grid-area: odds;
  align-self: start;
  margin-top: 6px;
  padding-top: 7px;
  color: #c6c1ce;
  border-top: 1px solid #393740;
  font-size: 12px;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-rr-pct::before {
  content: 'WIN CHANCE';
  display: block;
  margin-bottom: 3px;
  color: #898492;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .09em;
}

body.on-jackpot #jackpotPage .jp-rr-go {
  display: block;
  grid-area: go;
  width: 14px;
  height: 14px;
  color: #8e8996;
}

body.on-jackpot #jackpotPage .jp-rr:hover .jp-rr-go { color: #e1dde8; }

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-entry {
    grid-template-columns: 50px minmax(0, 1fr) 58px;
    min-height: 88px;
    padding: 13px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av { width: 50px; height: 50px; }
  body.on-jackpot #jackpotPage .jp-entry-items { display: none; }
  body.on-jackpot #jackpotPage .jp-recent-list { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      'avatar identity pot'
      'avatar identity odds';
    gap: 0 10px;
    padding: 13px;
  }

  body.on-jackpot #jackpotPage .jp-rr-rank,
  body.on-jackpot #jackpotPage .jp-rr-go { display: none; }
}

/* Jackpot board pass: borrow Coinflip's calm row rhythm without touching Coinflip. */
body.on-jackpot #jackpotPage {
  --jp-board: #0f0f14;
  --jp-row: #121118;
  --jp-row-hover: #17151d;
  --jp-board-line: #2a2832;
  --jp-purple: #8c57ee;
  --jp-purple-bright: #c693ff;
  --jp-board-copy: #c9c2d2;
  --jp-board-muted: #817a8c;
}

body.on-jackpot #jackpotPage .jp-entries,
body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  background: var(--jp-board);
  border: 1px solid var(--jp-board-line);
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

body.on-jackpot #jackpotPage .jp-entry-labels {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.35fr) minmax(160px, 1fr) minmax(125px, .8fr) 82px;
  align-items: center;
  min-height: 34px;
  padding: 0 20px;
  color: #817a8c;
  background: #0c0c11;
  border-bottom: 1px solid var(--jp-board-line);
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .1em;
}

body.on-jackpot #jackpotPage .jp-entry-labels span:nth-child(1) { grid-column: 1 / 3; }
body.on-jackpot #jackpotPage .jp-entry-labels span:nth-child(2) { grid-column: 3; }
body.on-jackpot #jackpotPage .jp-entry-labels span:nth-child(3),
body.on-jackpot #jackpotPage .jp-entry-labels span:nth-child(4) { text-align: right; }

body.on-jackpot #jackpotPage .jp-entry,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.35fr) minmax(160px, 1fr) minmax(125px, .8fr) 82px;
  grid-template-areas: 'avatar identity items value odds';
  align-items: center;
  column-gap: 14px;
  min-height: 88px;
  padding: 0 20px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jp-board-line);
  border-radius: 0;
  box-shadow: none;
  transition: background .16s ease, box-shadow .16s ease;
}

body.on-jackpot #jackpotPage .jp-entry:last-child { border-bottom: 0; }
body.on-jackpot #jackpotPage .jp-entry::before { display: none; }
body.on-jackpot #jackpotPage .jp-entry > * { position: relative; z-index: 1; }

body.on-jackpot #jackpotPage .jp-entry:hover {
  transform: none;
  background: var(--jp-row-hover);
  border-color: transparent transparent var(--jp-board-line);
  box-shadow: inset 3px 0 #54495f;
}

body.on-jackpot #jackpotPage .jp-entry-lead {
  background: linear-gradient(90deg, rgba(140,87,238,.13), transparent 26%);
  border-color: transparent transparent var(--jp-board-line);
  box-shadow: inset 3px 0 var(--jp-purple);
}

body.on-jackpot #jackpotPage .jp-entry-av,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
  grid-area: avatar;
  width: 48px;
  height: 48px;
  padding: 5px;
  object-fit: contain;
  background: #211b2c;
  border: 1px solid #3a3545;
  border-radius: 7px;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-entry-lead .jp-entry-av {
  border-color: rgba(171,119,251,.72);
  box-shadow: 0 0 0 2px rgba(140,87,238,.09), 0 0 14px rgba(140,87,238,.14);
}

body.on-jackpot #jackpotPage .jp-entry-main,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main {
  grid-area: identity;
  gap: 4px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-entry-main b,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main b {
  color: #f0edf4;
  font-size: 15px;
}

body.on-jackpot #jackpotPage .jp-entry-main span,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main span {
  display: block;
  overflow: hidden;
  color: var(--jp-board-muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-items,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-items {
  display: flex;
  grid-area: items;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-left: -11px;
  padding: 3px;
  background: linear-gradient(135deg, #272033, #1c1a23);
  border: 1px solid #3a3545;
  border-radius: 5px;
  box-shadow: 0 3px 7px rgba(0,0,0,.17);
}

body.on-jackpot #jackpotPage .jp-entry-item:first-child { margin-left: 0; }
body.on-jackpot #jackpotPage .jp-entry-item img { width: 100%; height: 100%; object-fit: contain; }
body.on-jackpot #jackpotPage .jp-entry-item b { background: #514064; border-color: #7a6098; }
body.on-jackpot #jackpotPage .jp-entry-more { color: #d5c6e7; }

body.on-jackpot #jackpotPage .jp-entry-value {
  display: grid;
  grid-area: value;
  gap: 5px;
  min-width: 0;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-entry-value small,
body.on-jackpot #jackpotPage .jp-entry-odds small {
  color: #aaa1b6;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .09em;
}

body.on-jackpot #jackpotPage .jp-entry-value b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--jp-purple-bright);
  font: 800 19px/1 Space Grotesk, sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 0 13px rgba(184,112,255,.23);
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-value .g-coin { width: 18px; height: 18px; }

body.on-jackpot #jackpotPage .jp-entry-odds,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-odds {
  display: grid;
  grid-area: odds;
  gap: 5px;
  min-width: 0;
  padding-left: 0;
  border-left: 0;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-entry-odds small { margin: 0; }
body.on-jackpot #jackpotPage .jp-entry-odds b {
  color: #f0edf4;
  font: 800 17px/1 Space Grotesk, sans-serif;
}

body.on-jackpot #jackpotPage .jp-recent {
  display: block;
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
  background: var(--jp-board);
  border: 1px solid var(--jp-board-line);
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

body.on-jackpot #jackpotPage .jp-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 22px;
  background: linear-gradient(90deg, #121118, rgba(18,17,24,.7));
  border-bottom: 1px solid var(--jp-board-line);
}

body.on-jackpot #jackpotPage .jp-recent-head b {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eee9f5;
  font: 800 11px Space Grotesk, sans-serif;
}

body.on-jackpot #jackpotPage .jp-recent-head b i {
  width: 3px;
  height: 16px;
  background: linear-gradient(#b889ff, #7444cc);
  border-radius: 99px;
  box-shadow: 0 0 12px rgba(151,92,245,.55);
}

body.on-jackpot #jackpotPage .jp-recent-head span {
  color: #a18cac;
  font: 800 8px DM Mono, monospace;
  letter-spacing: .08em;
}

body.on-jackpot #jackpotPage .jp-recent-list {
  display: block;
  background: var(--jp-board);
  border: 0;
}

body.on-jackpot #jackpotPage .jp-rr {
  display: grid;
  grid-template-columns: 30px 48px minmax(180px, 1.35fr) minmax(140px, 1fr) minmax(135px, .8fr) 96px 16px;
  grid-template-areas: 'rank avatar identity items pot odds go';
  align-items: center;
  column-gap: 13px;
  min-height: 88px;
  height: auto;
  padding: 0 22px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--jp-board-line);
  border-radius: 0;
  box-shadow: none;
  transition: background .16s ease, box-shadow .16s ease;
}

body.on-jackpot #jackpotPage .jp-rr:last-child { border-bottom: 0; }

body.on-jackpot #jackpotPage .jp-rr:first-child {
  background: linear-gradient(90deg, rgba(140,87,238,.11), transparent 31%);
  box-shadow: inset 3px 0 var(--jp-purple);
}

body.on-jackpot #jackpotPage .jp-rr:hover {
  transform: none;
  background: var(--jp-row-hover);
  border-color: transparent transparent var(--jp-board-line);
  box-shadow: inset 3px 0 var(--jp-purple);
}

body.on-jackpot #jackpotPage .jp-rr-rank {
  display: grid;
  grid-area: rank;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #93889e;
  background: #1b1921;
  border: 1px solid #393541;
  border-radius: 5px;
  font: 800 9px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-rr-av {
  grid-area: avatar;
  width: 48px;
  height: 48px;
  padding: 5px;
  object-fit: contain;
  background: #211b2c;
  border: 1px solid #3a3545;
  border-radius: 7px;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-rr-id {
  display: grid;
  grid-area: identity;
  gap: 5px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-rr-id b {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #f0edf4;
  font-size: 14px;
}

body.on-jackpot #jackpotPage .jp-rr-id b span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-id em {
  flex: 0 0 auto;
  padding: 3px 5px;
  color: #d5b9ff;
  background: rgba(140,87,238,.16);
  border: 1px solid rgba(174,121,250,.28);
  border-radius: 3px;
  font: 800 7px/1 DM Mono, monospace;
  letter-spacing: .08em;
  font-style: normal;
}

body.on-jackpot #jackpotPage .jp-rr-id small {
  overflow: hidden;
  color: var(--jp-board-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-items {
  display: flex;
  grid-area: items;
  align-items: center;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-left: -11px;
  padding: 3px;
  background: linear-gradient(135deg, #272033, #1c1a23);
  border: 1px solid #3a3545;
  border-radius: 5px;
  box-shadow: 0 3px 7px rgba(0,0,0,.17);
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item:first-child { margin-left: 0; }
body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item img { width: 100%; height: 100%; object-fit: contain; }

body.on-jackpot #jackpotPage .jp-rr-pot,
body.on-jackpot #jackpotPage .jp-rr-pct {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-rr-pot { grid-area: pot; }
body.on-jackpot #jackpotPage .jp-rr-pct { grid-area: odds; }
body.on-jackpot #jackpotPage .jp-rr-pot::before,
body.on-jackpot #jackpotPage .jp-rr-pct::before { display: none; }

body.on-jackpot #jackpotPage .jp-rr-pot small,
body.on-jackpot #jackpotPage .jp-rr-pct small {
  color: #aaa1b6;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .08em;
}

body.on-jackpot #jackpotPage .jp-rr-pot b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--jp-purple-bright);
  font: 800 19px/1 Space Grotesk, sans-serif;
  letter-spacing: -.02em;
  text-shadow: 0 0 13px rgba(184,112,255,.22);
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-pot .g-coin { width: 18px; height: 18px; }

body.on-jackpot #jackpotPage .jp-rr-pct b {
  color: #f0edf4;
  font: 800 17px/1 Space Grotesk, sans-serif;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-go {
  display: block;
  grid-area: go;
  width: 14px;
  height: 14px;
  color: #8f8599;
}

body.on-jackpot #jackpotPage .jp-rr:hover .jp-rr-go { color: #d9c3ff; }

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-entry-labels,
  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 48px minmax(0, 1.2fr) minmax(125px, 1fr) minmax(112px, .75fr) 76px;
    column-gap: 11px;
  }

  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 26px 46px minmax(150px, 1.2fr) minmax(116px, 1fr) 118px 76px 14px;
    column-gap: 10px;
    padding: 0 16px;
  }

  body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item:nth-child(3) { display: none; }
}

@media (max-width: 800px) {
  body.on-jackpot #jackpotPage .jp-entry-labels { display: none; }

  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 48px minmax(0, 1fr) 100px 70px;
    grid-template-rows: 1fr 34px;
    grid-template-areas:
      'avatar identity value odds'
      'avatar items items odds';
    row-gap: 0;
    min-height: 112px;
    padding: 10px 14px;
  }

  body.on-jackpot #jackpotPage .jp-entry-items { align-self: end; }
  body.on-jackpot #jackpotPage .jp-entry-item { width: 32px; height: 32px; }

  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 24px 44px minmax(0, 1fr) 108px 74px 14px;
    grid-template-areas: 'rank avatar identity pot odds go';
    min-height: 76px;
    padding: 0 14px;
  }

  body.on-jackpot #jackpotPage .jp-rr-items { display: none; }
  body.on-jackpot #jackpotPage .jp-rr-av { width: 44px; height: 44px; }
}

@media (max-width: 560px) {
  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 46px minmax(0, 1fr) 82px;
    grid-template-rows: 1fr 36px;
    grid-template-areas:
      'avatar identity value'
      'items items odds';
    column-gap: 10px;
    min-height: 116px;
    padding: 10px 12px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av { width: 42px; height: 42px; }
  body.on-jackpot #jackpotPage .jp-entry-value b { font-size: 16px; }
  body.on-jackpot #jackpotPage .jp-entry-odds { align-self: center; }

  body.on-jackpot #jackpotPage .jp-recent-head { min-height: 50px; padding: 0 14px; }
  body.on-jackpot #jackpotPage .jp-recent-head span { display: none; }
  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 44px minmax(0, 1fr) 100px;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      'avatar identity pot'
      'avatar identity odds';
    column-gap: 11px;
    min-height: 86px;
    padding: 0 13px;
  }

  body.on-jackpot #jackpotPage .jp-rr-rank,
  body.on-jackpot #jackpotPage .jp-rr-go { display: none; }
  body.on-jackpot #jackpotPage .jp-rr-id em { display: none; }
  body.on-jackpot #jackpotPage .jp-rr-pot b { font-size: 16px; }
  body.on-jackpot #jackpotPage .jp-rr-pct b { font-size: 14px; }
}

/* Entries return to cards; Recent Jackpots intentionally keeps the board above. */
body.on-jackpot #jackpotPage .jp-entries,
body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin-top: 3px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-entry-labels { display: none; }

body.on-jackpot #jackpotPage .jp-entry,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 82px;
  grid-template-rows: minmax(54px, 1fr) 42px;
  grid-template-areas:
    'avatar identity odds'
    'items items value';
  align-items: center;
  gap: 7px 12px;
  min-height: 132px;
  padding: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #17141e, #111116);
  border: 1px solid #322d3d;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 9px 20px rgba(0,0,0,.16);
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.on-jackpot #jackpotPage .jp-entry::before {
  content: '';
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  display: block;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(187,137,255,.58), transparent);
}

body.on-jackpot #jackpotPage .jp-entry:last-child { border-bottom: 1px solid #322d3d; }

body.on-jackpot #jackpotPage .jp-entry:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #1d1827, #131119);
  border-color: #6d5790;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 25px rgba(0,0,0,.22), 0 0 0 1px rgba(140,87,238,.09);
}

body.on-jackpot #jackpotPage .jp-entry-lead {
  background: radial-gradient(circle at 88% 0, rgba(140,87,238,.19), transparent 42%), linear-gradient(145deg, #1b1625, #121016);
  border-color: #725998;
  box-shadow: inset 3px 0 var(--jp-purple), inset 0 1px 0 rgba(255,255,255,.05), 0 10px 23px rgba(0,0,0,.2);
}

body.on-jackpot #jackpotPage .jp-entry-av,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
  grid-area: avatar;
  width: 52px;
  height: 52px;
  padding: 6px;
  background: #211b2c;
  border: 1px solid #4a3b5d;
  border-radius: 9px;
  box-shadow: 0 4px 10px rgba(0,0,0,.24);
}

body.on-jackpot #jackpotPage .jp-entry-main,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main {
  grid-area: identity;
  gap: 4px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-entry-main b,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main b {
  color: #f4eff8;
  font-size: 14px;
}

body.on-jackpot #jackpotPage .jp-entry-main span,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main span {
  overflow: hidden;
  color: #a297ad;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-items,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-items {
  display: flex;
  grid-area: items;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  height: 42px;
  padding: 3px 6px;
  overflow: hidden;
  background: #100f15;
  border: 1px solid #2e2937;
  border-radius: 8px;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  width: 34px;
  height: 34px;
  margin-left: -6px;
  padding: 2px;
  background: linear-gradient(135deg, #2b2338, #17141e);
  border-color: #4a3b5d;
  border-radius: 6px;
  box-shadow: 0 3px 7px rgba(0,0,0,.2);
}

body.on-jackpot #jackpotPage .jp-entry-item:first-child { margin-left: 0; }

body.on-jackpot #jackpotPage .jp-entry-value {
  grid-area: value;
  align-self: center;
  gap: 3px;
  padding-top: 0;
  border-top: 0;
}

body.on-jackpot #jackpotPage .jp-entry-value small { color: #aa9abf; font-size: 7px; }

body.on-jackpot #jackpotPage .jp-entry-value b {
  gap: 4px;
  color: #d2a6ff;
  font-size: 16px;
  text-shadow: 0 0 11px rgba(184,112,255,.25);
}

body.on-jackpot #jackpotPage .jp-entry-value .g-coin { width: 15px; height: 15px; }

body.on-jackpot #jackpotPage .jp-entry-odds,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-odds {
  grid-area: odds;
  align-self: center;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid #383241;
}

body.on-jackpot #jackpotPage .jp-entry-odds small { color: #aa9abf; font-size: 7px; }
body.on-jackpot #jackpotPage .jp-entry-odds b { color: #f5f0fa; font-size: 15px; }

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 560px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: 1fr; }

  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 46px minmax(0, 1fr) 76px;
    grid-template-rows: minmax(50px, 1fr) 38px;
    min-height: 122px;
    padding: 12px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av { width: 46px; height: 46px; }
  body.on-jackpot #jackpotPage .jp-entry-items { height: 38px; }
  body.on-jackpot #jackpotPage .jp-entry-item { width: 30px; height: 30px; }
}

/* Final scale and alignment pass: round profiles, larger cards, balanced recent stats. */
body.on-jackpot #jackpotPage .jp-entries,
body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

body.on-jackpot #jackpotPage .jp-entry,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  grid-template-columns: 62px minmax(0, 1fr) 96px;
  grid-template-rows: minmax(66px, 1fr) 50px;
  grid-template-areas:
    'avatar identity odds'
    'items items value';
  gap: 10px 14px;
  min-height: 160px;
  padding: 16px;
}

body.on-jackpot #jackpotPage .jp-entry-av,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
  width: 60px;
  height: 60px;
  padding: 7px;
  background: radial-gradient(circle at 35% 30%, #34264a, #17121f 72%);
  border-color: #76539a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(140,87,238,.11), 0 6px 14px rgba(0,0,0,.28);
}

body.on-jackpot #jackpotPage .jp-entry-main b,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main b { font-size: 16px; }

body.on-jackpot #jackpotPage .jp-entry-main span,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main span { font-size: 11px; }

body.on-jackpot #jackpotPage .jp-entry-items,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-items {
  height: 50px;
  padding: 4px 8px;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  width: 40px;
  height: 40px;
  margin-left: -7px;
}

body.on-jackpot #jackpotPage .jp-entry-value small,
body.on-jackpot #jackpotPage .jp-entry-odds small { font-size: 8px; }

body.on-jackpot #jackpotPage .jp-entry-value b { font-size: 19px; }
body.on-jackpot #jackpotPage .jp-entry-odds b { color: #dfccff; font-size: 18px; }

body.on-jackpot #jackpotPage .jp-rr {
  grid-template-columns: 28px 58px minmax(210px, 1fr) max-content 132px 104px 16px;
  grid-template-areas: 'rank avatar identity items pot odds go';
  column-gap: 14px;
  min-height: 104px;
  padding: 0 22px;
}

body.on-jackpot #jackpotPage .jp-rr-av {
  width: 58px;
  height: 58px;
  padding: 7px;
  background: radial-gradient(circle at 35% 30%, #312346, #15111d 72%);
  border-color: #76539a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(140,87,238,.11), 0 6px 14px rgba(0,0,0,.28);
}

body.on-jackpot #jackpotPage .jp-rr-id {
  align-content: center;
  gap: 6px;
}

body.on-jackpot #jackpotPage .jp-rr-id b { font-size: 16px; }
body.on-jackpot #jackpotPage .jp-rr-id small { font-size: 11px; }

body.on-jackpot #jackpotPage .jp-rr-items {
  justify-content: flex-start;
  padding: 5px 7px;
  background: #100e16;
  border: 1px solid #393044;
  border-radius: 8px;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item {
  width: 40px;
  height: 40px;
  margin-left: -9px;
  border-radius: 6px;
}

body.on-jackpot #jackpotPage .jp-rr-pot,
body.on-jackpot #jackpotPage .jp-rr-pct {
  align-self: stretch;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid #302a38;
  text-align: center;
}

body.on-jackpot #jackpotPage .jp-rr-pot b {
  justify-content: center;
  font-size: 20px;
}

body.on-jackpot #jackpotPage .jp-rr-pct b {
  font-size: 18px;
  text-align: center;
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 54px minmax(0, 1fr) 82px;
    grid-template-rows: minmax(58px, 1fr) 44px;
    min-height: 142px;
    padding: 13px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av { width: 52px; height: 52px; }
  body.on-jackpot #jackpotPage .jp-entry-items { height: 44px; }
  body.on-jackpot #jackpotPage .jp-entry-item { width: 34px; height: 34px; }

  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 26px 52px minmax(0, 1fr) max-content 122px 92px 14px;
    column-gap: 11px;
    min-height: 92px;
    padding: 0 16px;
  }

  body.on-jackpot #jackpotPage .jp-rr-av { width: 52px; height: 52px; }
  body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item { width: 36px; height: 36px; }
  body.on-jackpot #jackpotPage .jp-rr-pot,
  body.on-jackpot #jackpotPage .jp-rr-pct { padding: 0 8px; }
}

@media (max-width: 560px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] { grid-template-columns: 1fr; }

  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 52px minmax(0, 1fr) 86px;
    grid-template-rows: minmax(58px, 1fr) 44px;
    min-height: 142px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av { width: 50px; height: 50px; }

  body.on-jackpot #jackpotPage .jp-rr {
    grid-template-columns: 48px minmax(0, 1fr) 102px;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      'avatar identity pot'
      'avatar identity odds';
    column-gap: 11px;
    min-height: 94px;
    padding: 0 13px;
  }

  body.on-jackpot #jackpotPage .jp-rr-rank,
  body.on-jackpot #jackpotPage .jp-rr-items,
  body.on-jackpot #jackpotPage .jp-rr-go { display: none; }

  body.on-jackpot #jackpotPage .jp-rr-av { width: 48px; height: 48px; }
  body.on-jackpot #jackpotPage .jp-rr-pot,
  body.on-jackpot #jackpotPage .jp-rr-pct { padding: 0 4px; }
  body.on-jackpot #jackpotPage .jp-rr-pot b { font-size: 17px; }
  body.on-jackpot #jackpotPage .jp-rr-pct b { font-size: 15px; }
}

/* v11 — open item artwork, real profile targets, and a centered history board. */
body.on-jackpot #jackpotPage .jp-entries,
body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 14px;
}

body.on-jackpot #jackpotPage .jp-entry,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  grid-template-columns: 64px minmax(0, 1fr) 112px;
  grid-template-rows: minmax(74px, 1fr) 56px;
  grid-template-areas:
    "avatar identity odds"
    "items items value";
  gap: 10px 15px;
  min-height: 174px;
  padding: 17px;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-entry:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 2px;
}

body.on-jackpot #jackpotPage .jp-entry-av,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
  width: 62px;
  height: 62px;
  padding: 0;
  object-fit: cover;
  background: #18161d;
  border-color: #67507f;
}

body.on-jackpot #jackpotPage .jp-entry-main b,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main b {
  font-size: 17px;
}

body.on-jackpot #jackpotPage .jp-entry-main span,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-main span {
  font-size: 12px;
}

body.on-jackpot #jackpotPage .jp-entry-value,
body.on-jackpot #jackpotPage .jp-entry-odds,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-value,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-odds {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: right;
}

body.on-jackpot #jackpotPage .jp-entry-value small,
body.on-jackpot #jackpotPage .jp-entry-odds small {
  font-size: 9px;
}

body.on-jackpot #jackpotPage .jp-entry-value b,
body.on-jackpot #jackpotPage .jp-entry-odds b {
  font-size: 22px;
}

body.on-jackpot #jackpotPage .jp-entry-items,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-items {
  display: flex;
  height: 56px;
  gap: 5px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.on-jackpot #jackpotPage .jp-entry-item,
body.on-jackpot #jackpotPage .jp-entry-item:first-child {
  width: 48px;
  height: 48px;
  margin-left: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-entry-item img {
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.44));
}

body.on-jackpot #jackpotPage .jp-recent-head {
  min-height: 58px;
  padding: 0 20px;
  background:
    linear-gradient(90deg, rgba(140,87,238,.065), transparent 38%),
    #111016;
}

body.on-jackpot #jackpotPage .jp-recent-head b {
  font-size: 13px;
  letter-spacing: .015em;
}

body.on-jackpot #jackpotPage .jp-recent-head b i {
  width: 4px;
  height: 18px;
}

body.on-jackpot #jackpotPage .jp-recent-head span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  color: #aaa0b7;
  background: rgba(255,255,255,.025);
  border: 1px solid #2e2a35;
  border-radius: 999px;
  font-size: 8px;
}

body.on-jackpot #jackpotPage .jp-recent-head span i {
  width: 5px;
  height: 5px;
  background: #65ca98;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(101,202,152,.45);
}

body.on-jackpot #jackpotPage .jp-recent-list {
  display: block !important;
}

body.on-jackpot #jackpotPage .jp-rr,
body.on-jackpot #jackpotPage .jp-rr:first-child {
  grid-template-columns: 32px 64px minmax(240px, 1.25fr) minmax(220px, .8fr) minmax(150px, .48fr) minmax(150px, .48fr) 18px;
  grid-template-areas: "rank avatar identity items pot odds go";
  align-items: center;
  column-gap: 16px;
  min-height: 112px;
  padding: 0 22px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-rr:hover,
body.on-jackpot #jackpotPage .jp-rr:first-child:hover {
  background: #16141c;
  box-shadow: inset 3px 0 rgba(140,87,238,.72);
}

body.on-jackpot #jackpotPage .jp-rr:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: -3px;
}

body.on-jackpot #jackpotPage .jp-rr-av {
  width: 60px;
  height: 60px;
  padding: 0;
  object-fit: cover;
  background: #18161d;
  border-color: #67507f;
  border-radius: 50%;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-rr-av:focus-visible,
body.on-jackpot #jackpotPage .jp-rr-id:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 3px;
}

body.on-jackpot #jackpotPage .jp-rr-id {
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-rr-items {
  width: 100%;
  min-width: 0;
  justify-content: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item,
body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item:first-child {
  width: 50px;
  height: 50px;
  margin-left: 0;
  padding: 0;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item img {
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.44));
}

body.on-jackpot #jackpotPage .jp-rr-pot,
body.on-jackpot #jackpotPage .jp-rr-pct {
  align-self: center;
  display: grid;
  width: 100%;
  min-height: 76px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
}

body.on-jackpot #jackpotPage .jp-rr-pot b {
  justify-content: center;
  font-size: 23px;
}

body.on-jackpot #jackpotPage .jp-rr-pct b {
  font-size: 24px;
}

body.on-jackpot #jackpotPage .jp-rr-pot small,
body.on-jackpot #jackpotPage .jp-rr-pct small {
  font-size: 9px;
}

/* A calmer reel keeps the weapon colors doing the work. */
body.on-jackpot #jackpotPage .jp-roller {
  background:
    radial-gradient(ellipse at 50% 105%, rgba(140,87,238,.09), transparent 48%),
    linear-gradient(180deg, #0e0d12, #0a090d) !important;
  border-color: #2e2a36 !important;
  box-shadow: inset 0 0 42px rgba(0,0,0,.72), 0 12px 28px rgba(0,0,0,.22) !important;
  animation: none;
}

body.on-jackpot #jackpotPage .jp-tile {
  background: linear-gradient(145deg, #201c27, #121016) !important;
  border-color: #36303f !important;
}

/* Jackpot detail — neutral, full-width, and collapsed until requested. */
body.on-jackpot #jpDetailModal .jpd-card {
  width: min(980px, 96vw) !important;
  background: #111116 !important;
  border-color: #302d37 !important;
}

body.on-jackpot #jpDetailModal .jpd-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 20px;
  background: linear-gradient(180deg, #19181e, #151419);
  border: 1px solid #302d37;
  border-left: 3px solid #8c57ee;
}

body.on-jackpot #jpDetailModal .jpd-winner {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body.on-jackpot #jpDetailModal .jpd-winner:hover .jpd-hid h2 {
  color: #d9c1ff;
}

body.on-jackpot #jpDetailModal .jpd-winner:focus-visible,
body.on-jackpot #jpDetailModal .jpd-player:focus-visible,
body.on-jackpot #jpDetailModal .jpd-fair-h:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 3px;
}

body.on-jackpot #jpDetailModal .jpd-av {
  padding: 0;
  object-fit: cover;
  background: #19171e;
  border-color: #8059ae;
}

body.on-jackpot #jpDetailModal .jpd-hid span,
body.on-jackpot #jpDetailModal .jpd-verify {
  display: none;
}

body.on-jackpot #jpDetailModal .jpd-hpot {
  min-width: 170px;
  text-align: center;
}

body.on-jackpot #jpDetailModal .jpd-round-stats,
body.on-jackpot #jpDetailModal .jpd-items-played,
body.on-jackpot #jpDetailModal .jpd-players {
  margin-top: 16px;
}

body.on-jackpot #jpDetailModal .jpd-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.on-jackpot #jpDetailModal .jpd-sec-h span {
  color: #796f87;
  font: 700 9px/1 DM Mono, monospace;
}

body.on-jackpot #jpDetailModal .jpd-stats {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #151419;
  border: 1px solid #2d2a33;
  border-radius: 11px;
}

body.on-jackpot #jpDetailModal .jpd-stats > div {
  display: grid;
  place-content: center;
  min-height: 78px;
  padding: 12px;
  background: #1a191f;
  border: 0;
  border-radius: 8px;
  text-align: center;
}

body.on-jackpot #jpDetailModal .jpd-stats > .primary {
  background: linear-gradient(135deg, rgba(140,87,238,.14), #1a181f);
}

body.on-jackpot #jpDetailModal .jpd-stats b {
  color: #eee9f6;
  font-size: 21px;
}

body.on-jackpot #jpDetailModal .jpd-stats > .primary b {
  color: #d7bbff;
  font-size: 29px;
}

body.on-jackpot #jpDetailModal .jpd-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #151419;
  border: 1px solid #2d2a33;
  border-radius: 11px;
}

body.on-jackpot #jpDetailModal .jpd-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  flex: 1 1 185px;
  min-width: 0;
}

body.on-jackpot #jpDetailModal .jpd-item img {
  width: 54px;
  height: 48px;
  object-fit: contain;
  border: 0;
  background: none;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.5));
}

body.on-jackpot #jpDetailModal .jpd-item span {
  display: grid;
  gap: 3px;
}

body.on-jackpot #jpDetailModal .jpd-item b {
  overflow: hidden;
  color: #eeeaf3;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jpDetailModal .jpd-item small {
  color: #988da7;
  font: 700 9px/1 DM Mono, monospace;
}

body.on-jackpot #jpDetailModal .jpd-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.on-jackpot #jpDetailModal .jpd-player {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar identity chance"
    "avatar items chance";
  align-items: center;
  gap: 4px 11px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #2d2a33;
  border-radius: 10px;
  background: #17161b;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body.on-jackpot #jpDetailModal .jpd-player:hover {
  background: #1d1a23;
  border-color: #654d81;
}

body.on-jackpot #jpDetailModal .jpd-player-av {
  grid-area: avatar;
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid #5f4778;
  border-radius: 50%;
}

body.on-jackpot #jpDetailModal .jpd-player-id {
  grid-area: identity;
  min-width: 0;
}

body.on-jackpot #jpDetailModal .jpd-player-id b {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #f2eef7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jpDetailModal .jpd-player-id em {
  flex: none;
  padding: 3px 5px;
  background: rgba(140,87,238,.15);
  color: #c99eff;
  font: 800 7px/1 DM Mono, monospace;
  font-style: normal;
}

body.on-jackpot #jpDetailModal .jpd-player-id small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #8e849d;
  font-size: 9px;
}

body.on-jackpot #jpDetailModal .jpd-player-id .g-coin {
  width: 12px;
  height: 12px;
}

body.on-jackpot #jpDetailModal .jpd-player-items {
  grid-area: items;
}

body.on-jackpot #jpDetailModal .jpd-player-items img {
  width: 34px;
  height: 28px;
  object-fit: contain;
  border: 0;
  background: none;
  filter: drop-shadow(0 4px 5px rgba(0,0,0,.42));
}

body.on-jackpot #jpDetailModal .jpd-player-chance {
  display: grid;
  grid-area: chance;
  justify-items: end;
  gap: 4px;
}

body.on-jackpot #jpDetailModal .jpd-player-chance small {
  color: #857b94;
  font: 800 8px/1 DM Mono, monospace;
}

body.on-jackpot #jpDetailModal .jpd-player-chance b {
  color: #d8c4f7;
  font-size: 16px;
}

body.on-jackpot #jpDetailModal .jpd-fair {
  margin-top: 16px;
  background: #141318;
  border-color: #302d37;
}

body.on-jackpot #jpDetailModal .jpd-fair-h {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 0;
  color: #8fe6c6;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

body.on-jackpot #jpDetailModal .jpd-fair-h > span {
  display: grid;
  gap: 4px;
}

body.on-jackpot #jpDetailModal .jpd-fair-h b {
  color: #9ce8cd;
  font-size: 13px;
}

body.on-jackpot #jpDetailModal .jpd-fair-h small {
  color: #6f9f8d;
  font-size: 9px;
}

body.on-jackpot #jpDetailModal .jpd-fair-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform .16s ease;
}

body.on-jackpot #jpDetailModal .jpd-fair-h[aria-expanded="true"] .jpd-fair-chevron {
  transform: rotate(180deg);
}

body.on-jackpot #jpDetailModal .jpd-fair-body[hidden] {
  display: none;
}

body.on-jackpot #jpDetailModal .jpd-fair-body {
  border-top: 1px solid #302d37;
}

@media (min-width: 1500px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: 28px 58px minmax(190px, 1fr) minmax(130px, .55fr) minmax(130px, .55fr) 16px;
    grid-template-areas: "rank avatar identity pot odds go";
    column-gap: 13px;
  }

  body.on-jackpot #jackpotPage .jp-rr-items {
    display: none;
  }
}

@media (max-width: 760px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.on-jackpot #jackpotPage .jp-entry,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
    grid-template-columns: 54px minmax(0, 1fr) 94px;
    grid-template-rows: minmax(62px, 1fr) 48px;
    min-height: 150px;
    padding: 13px;
  }

  body.on-jackpot #jackpotPage .jp-entry-av,
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry-av {
    width: 52px;
    height: 52px;
  }

  body.on-jackpot #jackpotPage .jp-entry-items {
    display: flex;
    height: 48px;
  }

  body.on-jackpot #jackpotPage .jp-entry-item {
    width: 38px;
    height: 38px;
  }

  body.on-jackpot #jackpotPage .jp-entry-value b,
  body.on-jackpot #jackpotPage .jp-entry-odds b {
    font-size: 19px;
  }
}

@media (max-width: 680px) {
  body.on-jackpot #jpDetailModal .jpd-hero {
    grid-template-columns: 1fr;
  }

  body.on-jackpot #jpDetailModal .jpd-hpot {
    min-width: 0;
    text-align: left;
  }

  body.on-jackpot #jpDetailModal .jpd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.on-jackpot #jpDetailModal .jpd-stats > .primary {
    grid-column: 1 / -1;
  }

  body.on-jackpot #jpDetailModal .jpd-player-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.on-jackpot #jackpotPage .jp-entries,
  body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
  body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
    grid-template-columns: 1fr;
  }

  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: 54px minmax(0, 1fr) 108px;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
      "avatar identity pot"
      "avatar identity odds";
    column-gap: 11px;
    min-height: 100px;
    padding: 0 13px;
  }

  body.on-jackpot #jackpotPage .jp-rr-rank,
  body.on-jackpot #jackpotPage .jp-rr-items,
  body.on-jackpot #jackpotPage .jp-rr-go {
    display: none;
  }

  body.on-jackpot #jackpotPage .jp-rr-av {
    width: 52px;
    height: 52px;
  }

  body.on-jackpot #jackpotPage .jp-rr-pot,
  body.on-jackpot #jackpotPage .jp-rr-pct {
    min-height: 50px;
    padding: 0;
  }

  body.on-jackpot #jackpotPage .jp-rr-pot b {
    font-size: 18px;
  }

  body.on-jackpot #jackpotPage .jp-rr-pct b {
    font-size: 18px;
  }

  body.on-jackpot #jackpotPage .jp-recent-head span {
    display: none;
  }
}

/* v12 — scoped profile hits, ranked players, paged history, and compact dialogs. */
.top-brand img,
.logo img {
  object-fit: contain !important;
  mix-blend-mode: normal !important;
  background: transparent !important;
}

body.on-jackpot #jackpotPage .jp-roller {
  height: 126px !important;
  margin-top: -6px;
}

body.on-jackpot #jackpotPage .jp-track {
  top: 27px !important;
}

body.on-jackpot #jackpotPage .jp-entry,
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] .jp-entry {
  overflow: visible;
  cursor: default;
}

body.on-jackpot #jackpotPage .jp-entries,
body.on-jackpot #jackpotPage .jp-entries[data-density="standard"],
body.on-jackpot #jackpotPage .jp-entries[data-density="compact"] {
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
}

body.on-jackpot #jackpotPage .jp-entry:not(.jp-entry-lead):hover {
  transform: none;
  background: linear-gradient(145deg, #17141e, #111116);
  border-color: #322d3d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 9px 20px rgba(0,0,0,.16);
}

body.on-jackpot #jackpotPage .jp-entry-lead:hover {
  transform: none;
  background: radial-gradient(circle at 88% 0, rgba(140,87,238,.19), transparent 42%), linear-gradient(145deg, #1b1625, #121016);
  border-color: #725998;
  box-shadow: inset 3px 0 var(--jp-purple), inset 0 1px 0 rgba(255,255,255,.05), 0 10px 23px rgba(0,0,0,.2);
}

body.on-jackpot #jackpotPage .jp-entry-avatar-hit,
body.on-jackpot #jackpotPage .jp-entry-name-hit {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-entry-avatar-hit {
  display: block;
  grid-area: avatar;
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

body.on-jackpot #jackpotPage .jp-entry-avatar-hit .jp-entry-av {
  display: block;
  grid-area: auto;
}

body.on-jackpot #jackpotPage .jp-entry-name-hit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  max-width: 100%;
}

body.on-jackpot #jackpotPage .jp-entry-name-hit b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-entry-avatar-hit:hover .jp-entry-av,
body.on-jackpot #jackpotPage .jp-entry-avatar-hit:focus-visible .jp-entry-av {
  border-color: #b47aff;
  box-shadow: 0 0 0 3px rgba(140,87,238,.15), 0 7px 16px rgba(0,0,0,.3);
}

body.on-jackpot #jackpotPage .jp-entry-name-hit:hover b,
body.on-jackpot #jackpotPage .jp-entry-name-hit:focus-visible b {
  color: #ead8ff;
  text-shadow: 0 0 11px rgba(188,113,255,.4);
}

body.on-jackpot #jackpotPage .jp-entry-avatar-hit:focus-visible,
body.on-jackpot #jackpotPage .jp-entry-name-hit:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 3px;
}

body.on-jackpot #jackpotPage .jp-rank-icon {
  display: block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(183,112,255,.38));
}

body.on-jackpot #jackpotPage .jp-entry-meta {
  display: block;
}

body.on-jackpot #jackpotPage .jp-entry-value .g-coin {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body.on-jackpot #jackpotPage .jp-entry-item {
  z-index: 1;
  overflow: visible;
}

body.on-jackpot #jackpotPage .jp-entry-item::after {
  content: attr(data-item-label);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 170px;
  padding: 7px 9px;
  pointer-events: none;
  opacity: 0;
  color: #f2edf7;
  background: #0e0d12;
  border: 1px solid #4a4056;
  border-radius: 6px;
  box-shadow: 0 9px 22px rgba(0,0,0,.48);
  font: 800 10px/1.1 Space Grotesk, sans-serif;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity .13s ease, transform .13s ease;
}

body.on-jackpot #jackpotPage .jp-entry-item:hover {
  z-index: 20;
}

body.on-jackpot #jackpotPage .jp-entry-item:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.on-jackpot #jackpotPage .jp-recent-head:focus {
  outline: 0;
}

body.on-jackpot #jackpotPage .jp-recent-head span {
  min-height: 0;
  padding: 0;
  color: #8f879a;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 9px;
  letter-spacing: .13em;
}

body.on-jackpot #jackpotPage .jp-rr,
body.on-jackpot #jackpotPage .jp-rr:first-child {
  grid-template-columns: minmax(330px, 1fr) minmax(280px, 1fr) minmax(330px, 1fr) 38px;
  grid-template-areas: "user middle summary go";
  column-gap: 18px;
  min-height: 112px;
  padding: 0 22px;
}

body.on-jackpot #jackpotPage .jp-rr-user {
  display: grid;
  grid-area: user;
  grid-template-columns: 40px 66px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-rr-rank {
  display: grid;
  grid-area: auto;
  place-items: center;
  width: 36px;
  height: 36px;
  padding-top: 1px;
  color: #aaa0b8;
  background: #1a1820;
  border: 1px solid #3b3545;
  border-radius: 7px;
  font: 800 11px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-rr-avatar-hit,
body.on-jackpot #jackpotPage .jp-rr-name-hit {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-rr-avatar-hit {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

body.on-jackpot #jackpotPage .jp-rr-avatar-hit .jp-rr-av {
  display: block;
  grid-area: auto;
  width: 64px;
  height: 64px;
}

body.on-jackpot #jackpotPage .jp-rr-crown {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #211a2a;
  border: 2px solid #111016;
  border-radius: 50%;
}

body.on-jackpot #jackpotPage .jp-rr-crown svg {
  width: 12px;
  height: 12px;
  fill: #f1c85c;
}

body.on-jackpot #jackpotPage .jp-rr-id {
  display: grid;
  grid-area: auto;
  align-content: center;
  gap: 7px;
  min-width: 0;
  cursor: default;
}

body.on-jackpot #jackpotPage .jp-rr-name-hit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
}

body.on-jackpot #jackpotPage .jp-rr-name-hit > span {
  overflow: hidden;
  color: #f2eef7;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-id small {
  color: #91889f;
  font-size: 11px;
}

body.on-jackpot #jackpotPage .jp-rr-avatar-hit:hover .jp-rr-av,
body.on-jackpot #jackpotPage .jp-rr-avatar-hit:focus-visible .jp-rr-av {
  border-color: #b47aff;
  box-shadow: 0 0 0 3px rgba(140,87,238,.15), 0 7px 16px rgba(0,0,0,.3);
}

body.on-jackpot #jackpotPage .jp-rr-name-hit:hover > span,
body.on-jackpot #jackpotPage .jp-rr-name-hit:focus-visible > span {
  color: #ead8ff;
  text-shadow: 0 0 11px rgba(188,113,255,.4);
}

body.on-jackpot #jackpotPage .jp-rr-avatar-hit:focus-visible,
body.on-jackpot #jackpotPage .jp-rr-name-hit:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 3px;
}

body.on-jackpot #jackpotPage .jp-rr-middle {
  display: grid;
  grid-area: middle;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-rr-middle .jp-rr-items {
  display: flex;
  grid-area: auto;
  width: auto;
  min-width: 0;
  justify-content: center;
}

body.on-jackpot #jackpotPage .jp-rr-item {
  position: relative;
  overflow: visible;
}

body.on-jackpot #jackpotPage .jp-rr-item::after {
  content: attr(data-item-label);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 170px;
  padding: 7px 9px;
  pointer-events: none;
  opacity: 0;
  color: #f2edf7;
  background: #0e0d12;
  border: 1px solid #4a4056;
  border-radius: 6px;
  box-shadow: 0 9px 22px rgba(0,0,0,.48);
  font: 800 10px/1.1 Space Grotesk, sans-serif;
  text-align: center;
  transform: translate(-50%, 4px);
  transition: opacity .13s ease, transform .13s ease;
}

body.on-jackpot #jackpotPage .jp-rr-item:hover {
  z-index: 20;
}

body.on-jackpot #jackpotPage .jp-rr-item:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.on-jackpot #jackpotPage .jp-rr-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #817989;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .08em;
}

body.on-jackpot #jackpotPage .jp-rr-meta b {
  padding: 4px 6px;
  color: #cdbbe0;
  background: rgba(140,87,238,.1);
  border: 1px solid rgba(178,121,248,.18);
  border-radius: 4px;
}

body.on-jackpot #jackpotPage .jp-rr-summary {
  display: grid;
  grid-area: summary;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: stretch;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-rr-summary .jp-rr-pot,
body.on-jackpot #jackpotPage .jp-rr-summary .jp-rr-pct {
  grid-area: auto;
  min-height: 0;
}

body.on-jackpot #jackpotPage .jp-rr-go {
  display: grid;
  grid-area: go;
  align-self: center;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 8px;
  color: #9a90a7;
  background: #18161d;
  border: 1px solid #37313e;
  border-radius: 50%;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-rr-go svg {
  display: block;
  width: 16px;
  height: 16px;
}

body.on-jackpot #jackpotPage .jp-rr:hover .jp-rr-go {
  color: #eadfff;
  border-color: #70558d;
  transform: translateX(2px);
}

body.on-jackpot #jackpotPage .jp-recent-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  padding: 10px 18px;
  background: #100f14;
  border-top: 1px solid #2b2731;
}

body.on-jackpot #jackpotPage .jp-pages {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.on-jackpot #jackpotPage .jp-pages button,
body.on-jackpot #jackpotPage .jp-page-jump button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: #a9a1b4;
  background: #17151c;
  border: 1px solid #35303c;
  border-radius: 6px;
  font: 800 10px/1 DM Mono, monospace;
  cursor: pointer;
}

body.on-jackpot #jackpotPage .jp-pages button:hover,
body.on-jackpot #jackpotPage .jp-page-jump button:hover {
  color: #fff;
  border-color: #735493;
}

body.on-jackpot #jackpotPage .jp-pages button:focus-visible,
body.on-jackpot #jackpotPage .jp-page-jump button:focus-visible,
body.on-jackpot #jackpotPage .jp-rr-go:focus-visible {
  outline: 2px solid #a979f1;
  outline-offset: 2px;
}

body.on-jackpot #jackpotPage .jp-pages button.active {
  color: #fff;
  background: #6840a4;
  border-color: #9866da;
  box-shadow: 0 0 14px rgba(140,87,238,.18);
}

body.on-jackpot #jackpotPage .jp-pages button:disabled {
  opacity: .35;
  cursor: default;
}

body.on-jackpot #jackpotPage .jp-page-step svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.on-jackpot #jackpotPage .jp-page-dots {
  width: 22px;
  color: #77707e;
  text-align: center;
}

body.on-jackpot #jackpotPage .jp-page-jump {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

body.on-jackpot #jackpotPage .jp-page-jump > label {
  color: #7f7788;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .1em;
}

body.on-jackpot #jackpotPage .jp-page-jump input {
  width: 64px;
  height: 34px;
  padding: 0 9px;
  color: #eee9f4;
  background: #0d0c11;
  border: 1px solid #39333f;
  border-radius: 6px;
  outline: 0;
  font: 800 11px/1 DM Mono, monospace;
}

body.on-jackpot #jackpotPage .jp-page-jump input:focus {
  border-color: #9a69d8;
  box-shadow: 0 0 0 3px rgba(140,87,238,.12);
}

body.on-jackpot #jackpotPage {
  container-name: jackpot-shell;
  container-type: inline-size;
}

/* Wide, short round report. The body owns the layout instead of generic modal sections. */
body.on-jackpot #jpDetailModal .jpd-card {
  width: min(1180px, calc(100vw - 36px)) !important;
  max-height: 92dvh;
  padding: 22px !important;
}

body.on-jackpot #jpDetailModal .jpd-body {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.35fr);
  grid-template-areas:
    "hero hero"
    "stats stats"
    "items players"
    "fair fair";
  gap: 14px 16px;
}

body.on-jackpot #jpDetailModal .jpd-hero {
  grid-area: hero;
  min-height: 92px;
  padding: 13px 18px;
}

body.on-jackpot #jpDetailModal .jpd-round-stats {
  grid-area: stats;
}

body.on-jackpot #jpDetailModal .jpd-items-played {
  grid-area: items;
}

body.on-jackpot #jpDetailModal .jpd-players {
  grid-area: players;
}

body.on-jackpot #jpDetailModal .jpd-fair {
  grid-area: fair;
}

body.on-jackpot #jpDetailModal .jpd-round-stats,
body.on-jackpot #jpDetailModal .jpd-items-played,
body.on-jackpot #jpDetailModal .jpd-players,
body.on-jackpot #jpDetailModal .jpd-fair {
  min-width: 0;
  margin: 0;
}

body.on-jackpot #jpDetailModal .jpd-winner {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
}

body.on-jackpot #jpDetailModal .jpd-av {
  width: 58px;
  height: 58px;
}

body.on-jackpot #jpDetailModal .jpd-hid h2 {
  font-size: 22px;
}

body.on-jackpot #jpDetailModal .jpd-hpot b {
  font-size: 28px;
}

body.on-jackpot #jpDetailModal .jpd-stats {
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  padding: 7px;
}

body.on-jackpot #jpDetailModal .jpd-stats > div {
  min-height: 62px;
  padding: 9px;
}

body.on-jackpot #jpDetailModal .jpd-stats b {
  font-size: 19px;
}

body.on-jackpot #jpDetailModal .jpd-stats > .primary b {
  font-size: 26px;
}

body.on-jackpot #jpDetailModal .jpd-item-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 148px;
  padding: 9px 11px;
}

body.on-jackpot #jpDetailModal .jpd-item {
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 42px;
}

body.on-jackpot #jpDetailModal .jpd-item img {
  width: 46px;
  height: 40px;
}

body.on-jackpot #jpDetailModal .jpd-player-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 7px;
}

body.on-jackpot #jpDetailModal .jpd-player {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-height: 70px;
  padding: 8px 9px;
}

body.on-jackpot #jpDetailModal .jpd-player-av {
  width: 38px;
  height: 38px;
}

body.on-jackpot #jpDetailModal .jpd-player-id b {
  gap: 5px;
  font-size: 11px;
}

body.on-jackpot #jpDetailModal .jpd-player-id b > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.on-jackpot #jpDetailModal .jpd-player-id .jpd-player-rank {
  width: 16px;
  height: 16px;
}

body.on-jackpot #jpDetailModal .jpd-player-id em {
  padding: 2px 4px;
  font-size: 6px;
}

body.on-jackpot #jpDetailModal .jpd-player-items img {
  width: 29px;
  height: 23px;
}

body.on-jackpot #jpDetailModal .jpd-player-chance b {
  font-size: 14px;
}

body.on-jackpot #jpDetailModal .jpd-fair-h {
  min-height: 56px;
}

/* Join Jackpot uses the same inventory language and proportions as Create Coinflip. */
body.on-jackpot #jpJoinModal .jp-join-creator {
  width: min(1160px, calc(100vw - 36px)) !important;
  height: min(820px, 92dvh) !important;
  max-height: none !important;
  padding: 28px !important;
  background: #121016 !important;
  border-color: #37313f !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator > h2 {
  font-size: 32px !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-sub {
  margin: 4px 0 0;
  color: #9d92ac;
  font-size: 12px;
  letter-spacing: 0;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-picker {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 18px !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-search {
  position: sticky !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-grid {
  align-content: start !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-item[hidden] {
  display: none !important;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-item > strong {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-item > strong .g-coin {
  width: 18px;
  height: 18px;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-check {
  z-index: 3;
  top: 10px;
  right: 10px;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-total {
  display: flex !important;
  align-items: center;
  gap: 13px;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-total > span {
  flex: 1 1 auto;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-amount {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #d5a7ff;
  font: 800 25px/1 Space Grotesk, sans-serif;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-amount .g-coin {
  width: 29px;
  height: 29px;
}

body.on-jackpot #jpJoinModal .jp-join-creator #jpjClear {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  color: #e1cff7;
  background: #211a2a;
  border: 1px solid #705b85;
  border-radius: 5px;
  font: 800 12px/1 Space Grotesk, sans-serif;
  cursor: pointer;
}

body.on-jackpot #jpJoinModal .jp-join-creator #jpjClear:disabled {
  opacity: .4;
  cursor: default;
}

body.on-jackpot #jpJoinModal .jp-join-creator .jpj-join {
  width: 100%;
  min-height: 52px;
}

@media (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: minmax(290px, 1fr) minmax(220px, .8fr) minmax(270px, 1fr) 36px;
    column-gap: 13px;
    padding: 0 16px;
  }

  body.on-jackpot #jackpotPage .jp-rr-user {
    grid-template-columns: 36px 58px minmax(0, 1fr);
    gap: 11px;
  }

  body.on-jackpot #jackpotPage .jp-rr-avatar-hit,
  body.on-jackpot #jackpotPage .jp-rr-avatar-hit .jp-rr-av {
    width: 58px;
    height: 58px;
  }

  body.on-jackpot #jackpotPage .jp-rr-middle .jp-rr-items {
    display: flex;
  }
}

@media (max-width: 900px) {
  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr) 36px;
    grid-template-areas:
      "user summary go"
      "middle middle middle";
    row-gap: 8px;
    min-height: 158px;
    padding: 12px 15px;
  }

  body.on-jackpot #jackpotPage .jp-recent-foot {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  body.on-jackpot #jackpotPage .jp-pages,
  body.on-jackpot #jackpotPage .jp-page-jump {
    grid-column: 1;
    justify-self: center;
  }

  body.on-jackpot #jpDetailModal .jpd-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "stats"
      "items"
      "players"
      "fair";
  }

  body.on-jackpot #jpDetailModal .jpd-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  body.on-jackpot #jackpotPage .jp-entry-avatar-hit {
    width: 52px;
    height: 52px;
  }

  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "user go"
      "middle middle"
      "summary summary";
    min-height: 230px;
  }

  body.on-jackpot #jackpotPage .jp-rr-user {
    grid-template-columns: 34px 54px minmax(0, 1fr);
  }

  body.on-jackpot #jackpotPage .jp-rr-rank {
    display: grid;
    width: 32px;
    height: 32px;
  }

  body.on-jackpot #jackpotPage .jp-rr-avatar-hit,
  body.on-jackpot #jackpotPage .jp-rr-avatar-hit .jp-rr-av {
    width: 54px;
    height: 54px;
  }

  body.on-jackpot #jackpotPage .jp-rr-go {
    display: block;
  }

  body.on-jackpot #jackpotPage .jp-rr-summary {
    min-height: 62px;
  }

  body.on-jackpot #jackpotPage .jp-pages {
    gap: 4px;
  }

  body.on-jackpot #jackpotPage .jp-pages button {
    min-width: 31px;
    height: 31px;
    padding: 0 6px;
  }

  body.on-jackpot #jackpotPage .jp-page-jump > label {
    display: none;
  }

  body.on-jackpot #jpDetailModal .jpd-card {
    width: calc(100vw - 18px) !important;
    padding: 17px !important;
  }

  body.on-jackpot #jpDetailModal .jpd-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.on-jackpot #jpDetailModal .jpd-stats > .primary {
    grid-column: 1 / -1;
  }

  body.on-jackpot #jpDetailModal .jpd-player-grid {
    grid-template-columns: 1fr;
  }

  body.on-jackpot #jpJoinModal .jp-join-creator {
    width: calc(100vw - 18px) !important;
    height: 94dvh !important;
    padding: 18px !important;
  }

  body.on-jackpot #jpJoinModal .jp-join-creator > h2 {
    font-size: 27px !important;
  }
}

/* The Jackpot shares horizontal room with Live Chat, so these final layout
   switches respond to the game column itself instead of the browser width. */
@container jackpot-shell (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr) 36px;
    grid-template-areas:
      "user summary go"
      "middle middle middle";
    row-gap: 8px;
    min-height: 158px;
    padding: 12px 15px;
  }
}

@container jackpot-shell (max-width: 720px) {
  body.on-jackpot #jackpotPage .jp-rr,
  body.on-jackpot #jackpotPage .jp-rr:first-child {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "user go"
      "middle middle"
      "summary summary";
    min-height: 230px;
  }

  body.on-jackpot #jackpotPage .jp-rr-go {
    display: grid;
  }
}
