/* GodlyFlip interaction polish v13: scoped overrides for Jackpot, profiles,
   Coinflip round details, and the shared Provably Fair checker. */

/* ---------- Jackpot: its own desktop scroller ---------- */
@media (min-width: 851px) {
  body.on-jackpot .columns > #jackpotPage {
    grid-column: 1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 7px !important;
    padding-bottom: 34px !important;
  }
}

@media (min-width: 901px) {
  body.on-jackpot .columns {
    height: 100% !important;
    min-height: 0 !important;
  }
}

body.on-jackpot #jackpotPage .jp-participants {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.on-jackpot #jackpotPage .jp-participants-head {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 18px;
  padding: 0 4px;
  color: #b9b0c7;
}

body.on-jackpot #jackpotPage .jp-participants-head > div {
  display: grid;
  gap: 3px;
  margin-right: auto;
}

body.on-jackpot #jackpotPage .jp-participants-head small,
body.on-jackpot #jackpotPage .jp-participants-head em {
  color: #82798f;
  font: 700 9px/1 DM Mono, monospace;
  font-style: normal;
  letter-spacing: .11em;
}

body.on-jackpot #jackpotPage .jp-participants-head b {
  color: #f3eff8;
  font: 800 13px/1 Manrope, sans-serif;
  letter-spacing: .025em;
}

body.on-jackpot #jackpotPage .jp-participants-head > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #afa5ba;
  font: 700 10px/1 DM Mono, monospace;
  letter-spacing: .08em;
}

body.on-jackpot #jackpotPage .jp-participants-head > span strong {
  color: #c99cff;
  font: 800 17px/1 Manrope, sans-serif;
}

body.on-jackpot #jackpotPage .jp-pointer {
  width: 1px !important;
  margin-left: 0 !important;
  background: linear-gradient(180deg, rgba(190, 148, 255, .25), #ad74ff 18%, #ad74ff 82%, rgba(190, 148, 255, .2)) !important;
  box-shadow: 0 0 10px rgba(164, 104, 255, .38) !important;
  pointer-events: none !important;
}

body.on-jackpot #jackpotPage .jp-pointer::before {
  left: 50% !important;
  top: 0 !important;
  width: 5px !important;
  height: 3px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 0 2px 2px !important;
  background: #c49aff !important;
  transform: translateX(-50%) !important;
  box-shadow: none !important;
}

body.on-jackpot #jackpotPage .jp-pointer::after {
  display: none !important;
}

body.on-jackpot #jackpotPage .jp-rr-go {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  height: 40px !important;
  padding: 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #92889f !important;
}

body.on-jackpot #jackpotPage .jp-rr-go svg {
  width: 19px !important;
  height: 19px !important;
  transition: transform .16s ease, color .16s ease;
}

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

body.on-jackpot #jackpotPage .jp-rr:hover .jp-rr-go svg {
  transform: translateX(2px);
}

@container jackpot-shell (max-width: 720px) {
  body.on-jackpot #jackpotPage .jp-participants-head {
    flex-wrap: wrap;
    gap: 7px 15px;
    padding: 4px 2px;
  }

  body.on-jackpot #jackpotPage .jp-participants-head > div {
    flex: 1 0 100%;
  }
}

/* ---------- Player profile: useful account signals, no filler ---------- */
#profile .profile-card {
  width: min(680px, calc(100vw - 28px)) !important;
  max-width: 680px !important;
  max-height: min(760px, calc(100dvh - 28px)) !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  transform: none !important;
  border: 1px solid #3b3348 !important;
  border-top: 2px solid #a45cf0 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 78% 12%, rgba(132, 76, 204, .12), transparent 35%),
    linear-gradient(145deg, #18151f, #111016) !important;
}

#profile .profile-card > p {
  margin: 0 0 18px !important;
  color: #c893ff !important;
  font: 800 10px/1 DM Mono, monospace !important;
  letter-spacing: .15em !important;
}

#profile .profile-hero {
  grid-template-columns: 112px minmax(0, 1fr) auto !important;
  gap: 22px !important;
  min-height: 112px !important;
}

#profile .profile-online {
  display: inline-flex !important;
}

#profile .profile-primary-stats {
  display: grid;
  grid-template-columns: 1.35fr .8fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

#profile .profile-stat {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 86px;
  padding: 15px 17px;
  border: 1px solid #332c3c;
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
}

#profile .profile-stat-wager {
  border-color: rgba(160, 96, 239, .48);
  background: linear-gradient(135deg, rgba(120, 67, 190, .16), rgba(255, 255, 255, .022));
}

#profile .profile-primary-stats small,
#profile .profile-secondary-stats small,
#profile .profile-member small {
  color: #91879f;
  font: 800 9px/1 DM Mono, monospace;
  letter-spacing: .105em;
}

#profile .profile-primary-stats b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 9px;
  color: #f6f1fb;
  font: 800 22px/1 Manrope, sans-serif;
  letter-spacing: -.025em;
}

#profile .profile-stat-wager b {
  color: #c997ff;
  font-size: 25px;
}

#profile .profile-primary-stats .g-coin {
  width: 24px;
  height: 24px;
  vertical-align: 0;
}

#profile .profile-secondary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid #302a38;
  border-radius: 6px;
  background: #111016;
}

#profile .profile-secondary-stats > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 17px;
  border-right: 1px solid #302a38;
}

#profile .profile-secondary-stats > div:last-child {
  border-right: 0;
}

#profile .profile-secondary-stats b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e7e1ee;
  font: 800 16px/1 Manrope, sans-serif;
}

#profile .profile-secondary-stats .g-coin {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}

#profile .profile-member {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 16px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid #302a38;
  background: rgba(7, 7, 10, .26);
}

#profile .profile-member > svg {
  width: 20px;
  height: 20px;
  padding: 5px;
  color: #b6a9c4;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#profile .profile-member > span {
  display: grid;
  gap: 4px;
}

#profile .profile-member b {
  color: #e5dfea;
  font: 700 12px/1 Manrope, sans-serif;
}

#profile .profile-member em {
  padding: 6px 8px;
  border: 1px solid rgba(75, 213, 151, .22);
  border-radius: 4px;
  background: rgba(75, 213, 151, .07);
  color: #80dcb3;
  font: 800 8px/1 DM Mono, monospace;
  font-style: normal;
  letter-spacing: .08em;
}

@media (max-width: 620px) {
  #profile .profile-card {
    padding: 18px !important;
  }

  #profile .profile-hero {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 13px !important;
  }

  #profile .profile-primary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profile .profile-stat-wager {
    grid-column: 1 / -1;
  }

  #profile .profile-secondary-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profile .profile-secondary-stats > div {
    border-bottom: 1px solid #302a38;
  }

  #profile .profile-secondary-stats > div:nth-child(2) {
    border-right: 0;
  }

  #profile .profile-secondary-stats > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  #profile .profile-member {
    margin: 14px -18px -18px;
    padding: 13px 18px;
  }

  #profile .profile-member em {
    display: none;
  }
}

/* ---------- v15: history index, accelerated page picker, current-user cues ---------- */
body.on-jackpot #jackpotPage .jp-rr-user {
  grid-template-columns: 44px 66px minmax(0, 1fr) !important;
}

body.on-jackpot #jackpotPage .jp-rr-index {
  display: flex !important;
  align-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: auto !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #aaa2b2 !important;
  font: 800 13px/1 DM Mono, monospace !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
}

body.on-jackpot #jackpotPage .jp-page-jump {
  gap: 9px !important;
}

body.on-jackpot #jackpotPage .jp-page-jump > label {
  display: block !important;
  color: #aaa2b1 !important;
  font: 800 10px/1 Manrope, sans-serif !important;
  letter-spacing: .065em !important;
}

body.on-jackpot #jackpotPage .jp-page-field {
  display: grid;
  grid-template-columns: 52px 24px;
  width: 76px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #38333e;
  border-radius: 6px;
  background: #0e0d12;
}

body.on-jackpot #jackpotPage .jp-page-jump input {
  appearance: textfield !important;
  width: 52px !important;
  height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f0ecf3 !important;
  font: 800 14px/1 DM Mono, monospace !important;
  font-variant-numeric: tabular-nums;
  text-align: center !important;
  box-shadow: none !important;
}

body.on-jackpot #jackpotPage .jp-page-jump input::-webkit-inner-spin-button,
body.on-jackpot #jackpotPage .jp-page-jump input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

body.on-jackpot #jackpotPage .jp-page-field:focus-within {
  border-color: #73598a;
  box-shadow: 0 0 0 2px rgba(112, 79, 137, .12);
}

body.on-jackpot #jackpotPage .jp-page-nudges {
  display: grid;
  grid-template-rows: repeat(2, 21px);
  border-left: 1px solid #302c35;
}

body.on-jackpot #jackpotPage .jp-page-nudges > button {
  display: grid !important;
  place-items: center !important;
  min-width: 24px !important;
  width: 24px !important;
  height: 21px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #17151b !important;
  color: #8f8797 !important;
  font: 700 7px/1 Arial, sans-serif !important;
  user-select: none;
  touch-action: none;
}

body.on-jackpot #jackpotPage .jp-page-nudges > button:first-child {
  border-bottom: 1px solid #302c35 !important;
}

body.on-jackpot #jackpotPage .jp-page-nudges > button:hover,
body.on-jackpot #jackpotPage .jp-page-nudges > button:active {
  background: #201a27 !important;
  color: #d2c5dc !important;
}

body.on-jackpot #jackpotPage .jp-page-jump > #jpPageGo {
  min-width: 48px !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-color: #4c3d58 !important;
  background: #1a161f !important;
  color: #ddd5e4 !important;
  font: 800 11px/1 Manrope, sans-serif !important;
}

body.on-jackpot #jackpotPage .jp-page-jump > #jpPageGo:hover {
  border-color: #76588a !important;
  background: #211927 !important;
}

body.on-jackpot #jackpotPage .jp-entry.is-you {
  border-color: #4b3b57 !important;
  box-shadow:
    inset 2px 0 #765494,
    inset 0 1px 0 rgba(255, 255, 255, .025),
    0 10px 22px rgba(0, 0, 0, .18) !important;
}

body.on-jackpot #jackpotPage .jp-you-badge,
body.on-jackpot #jpDetailModal .jpd-you-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 15px;
  padding: 1px 5px;
  border: 1px solid #5e496c;
  border-radius: 3px;
  background: #1d1723;
  color: #bba7c8;
  font: 800 7px/1 DM Mono, monospace;
  font-style: normal;
  letter-spacing: .08em;
}

.lobby.is-current-user {
  background:
    linear-gradient(90deg, rgba(102, 73, 125, .09), transparent 22%),
    #101015 !important;
  box-shadow: inset 2px 0 #71508b !important;
}

.lobby .player[data-owner="GodlyUser"] > span > b::after,
.lobby .live-match-player[data-owner="GodlyUser"] > span > b::after,
#viewer .replay-profile-hit[data-owner="GodlyUser"] .replay-identity > b::after,
.past-game .matchup-player[data-owner="GodlyUser"] b::after {
  content: "YOU";
  display: inline-flex;
  align-items: center;
  min-height: 13px;
  margin-left: 6px;
  padding: 1px 4px;
  border: 1px solid #594764;
  border-radius: 3px;
  background: #1b1720;
  color: #aa98b7;
  font: 800 6px/1 DM Mono, monospace;
  letter-spacing: .07em;
  vertical-align: 2px;
}

@media (max-width: 650px) {
  body.on-jackpot #jackpotPage .jp-rr-user {
    grid-template-columns: 34px 54px minmax(0, 1fr) !important;
  }

  body.on-jackpot #jackpotPage .jp-rr-index {
    width: 34px !important;
    min-height: 32px !important;
    font-size: 11px !important;
  }

  body.on-jackpot #jackpotPage .jp-page-jump {
    flex-wrap: wrap;
    justify-content: center !important;
  }

  body.on-jackpot #jackpotPage .jp-page-jump > label {
    flex: 1 0 100%;
    text-align: center;
  }
}

/* ---------- Coinflip details: participants, quantities, compact summary ---------- */
#viewer .viewer-card {
  width: min(940px, calc(100vw - 28px)) !important;
  max-width: 940px !important;
  max-height: min(900px, calc(100dvh - 24px)) !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 8px !important;
}

#viewer .viewer-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

#viewer .viewer-title-row > h2 {
  min-width: 0;
  margin: 4px 0 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#viewer .viewer-round-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  min-height: 48px;
  border: 1px solid #342d3e;
  border-radius: 5px;
  background: #111016;
}

#viewer .viewer-round-meta > span {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 96px;
  padding: 8px 14px;
  border-right: 1px solid #342d3e;
}

#viewer .viewer-round-meta > span:last-child {
  border-right: 0;
}

#viewer .viewer-round-meta small,
#viewer .viewer-section-label {
  color: #8e849c;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .12em;
}

#viewer .viewer-round-meta b {
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-items: center !important;
  gap: 5px !important;
  color: #ece7f3 !important;
  font: 800 12px/1 Manrope, sans-serif !important;
  letter-spacing: 0 !important;
}

#viewer .viewer-round-meta .g-coin {
  width: 16px;
  height: 16px;
  vertical-align: 0;
}

#viewer .viewer-section-label {
  margin-top: 18px;
}

#viewer .replay-players {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) !important;
  gap: 10px !important;
  margin: 8px 0 12px !important;
}

#viewer .replay-players > strong {
  min-width: 42px !important;
}

#viewer .replay-player {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 10px 14px !important;
  min-height: 112px !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
}

#viewer .replay-profile-hit {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

#viewer .replay-profile-hit:disabled {
  cursor: default !important;
}

#viewer .replay-profile-hit > img {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 52px !important;
  height: 52px !important;
  box-sizing: border-box !important;
  padding: 3px !important;
  border: 1px solid #514061 !important;
  border-radius: 50% !important;
  background: #211a2a !important;
  object-fit: cover !important;
}

#viewer .replay-profile-hit:hover > img,
#viewer .replay-profile-hit:focus-visible > img {
  border-color: #9e65e8 !important;
  box-shadow: 0 0 12px rgba(158, 101, 232, .22) !important;
}

#viewer .replay-identity {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
}

#viewer .replay-identity b {
  display: flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  color: #f4f0f8 !important;
  font: 800 16px/1 Manrope, sans-serif !important;
  letter-spacing: -.01em !important;
}

#viewer .replay-identity small {
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: start !important;
  color: #8e849d !important;
  font: 700 8px/1 DM Mono, monospace !important;
  letter-spacing: .08em !important;
}

#viewer .replay-identity .replay-rank {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
}

#viewer .replay-pick {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: end !important;
  width: 38px !important;
  height: 38px !important;
}

#viewer .replay-pick img {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 7px rgba(141, 97, 238, .22)) !important;
}

#viewer .replay-entry,
#viewer .replay-odds {
  display: grid !important;
  gap: 5px !important;
  padding-top: 9px !important;
  border-top: 1px solid #312a39 !important;
}

#viewer .replay-entry {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

#viewer .replay-odds {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-width: 64px !important;
  text-align: right !important;
}

#viewer .replay-entry small,
#viewer .replay-odds small {
  display: block !important;
  grid-column: auto !important;
  grid-row: auto !important;
  justify-self: auto !important;
  color: #81788d !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .1em !important;
}

#viewer .replay-entry b,
#viewer .replay-odds b {
  display: inline-flex !important;
  grid-column: auto !important;
  grid-row: auto !important;
  align-items: center !important;
  gap: 5px !important;
  color: #cf9fff !important;
  font: 800 16px/1 Manrope, sans-serif !important;
}

#viewer .replay-odds b {
  justify-content: flex-end !important;
}

#viewer .replay-entry .g-coin {
  width: 17px;
  height: 17px;
  vertical-align: 0;
}

#viewer .replay-player.waiting .replay-profile-hit {
  opacity: .66;
}

#viewer .flip-stage.is-countdown,
#viewer .flip-stage.is-spinning,
#viewer .flip-stage.is-result {
  min-height: 190px !important;
}

#viewer .flip-stage.is-spinning .flip-coin,
#viewer .flip-stage.is-result .flip-coin {
  width: 108px !important;
  height: 108px !important;
  margin: -54px 0 0 -54px !important;
}

#viewer .flip-stage.is-spinning #flipStatus {
  top: calc(50% + 70px) !important;
}

#viewer .flip-stage.is-result #flipCount {
  top: calc(50% + 62px) !important;
  font-size: 26px !important;
}

#viewer .stake-item {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 48px !important;
  height: 48px !important;
}

#viewer .stake-item > img {
  width: 43px !important;
  height: 43px !important;
}

#viewer .stake-qty {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  display: grid !important;
  place-items: center !important;
  min-width: 19px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border: 1px solid #8162a6 !important;
  border-radius: 999px !important;
  background: #2c213b !important;
  color: #e6d4ff !important;
  font: 800 8px/1 DM Mono, monospace !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35) !important;
}

#viewer .viewer-fair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 12px;
}

#viewer .viewer-fair > div:first-child {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#viewer .viewer-fair > div:first-child > small {
  color: #83798f;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .11em;
}

#viewer #fairnessIdCopy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aaa1b5;
  cursor: pointer;
}

#viewer #fairnessIdCopy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 10px/1 DM Mono, monospace;
}

#viewer #fairnessIdCopy svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

#viewer .viewer-fair .modal-actions {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

#viewer .viewer-fair .modal-actions button {
  flex: none !important;
  min-width: 150px !important;
}

#viewer #fairnessButton {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

#viewer #fairnessButton > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  #viewer .viewer-title-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #viewer .viewer-round-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #viewer .viewer-round-meta > span {
    min-width: 0;
    padding: 8px 9px;
  }

  #viewer .replay-players {
    grid-template-columns: 1fr !important;
  }

  #viewer .replay-players > strong {
    min-width: 0 !important;
    height: 20px;
  }

  #viewer .viewer-fair {
    grid-template-columns: 1fr;
  }

  #viewer .viewer-fair .modal-actions button {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* ---------- One shared, honest Provably Fair checker ---------- */
#provablyFair .pf-form button {
  min-width: 128px;
}

#provablyFair .pf-kv {
  display: grid !important;
  grid-template-columns: 142px minmax(0, 1fr) 26px !important;
  align-items: center !important;
  gap: 10px !important;
}

#provablyFair .pf-kv > b {
  min-width: 0 !important;
}

#provablyFair .pf-kv .pf-kv-value {
  max-width: none !important;
  min-width: 0 !important;
  text-align: left !important;
}

#provablyFair .pf-copy {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px;
  background: rgba(255, 255, 255, .035);
  color: #a99fc0;
  cursor: pointer;
}

#provablyFair .pf-copy:hover {
  border-color: rgba(172, 112, 255, .42);
  color: #d2b4ff;
}

#provablyFair .pf-copy svg {
  width: 14px;
  height: 14px;
}

#provablyFair .pf-seed > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: start;
  gap: 9px;
}

#provablyFair .pf-seedbox > h3 {
  margin: 0;
  color: #f4eff9;
  font: 800 11px/1 Manrope, sans-serif;
  letter-spacing: .08em;
}

#provablyFair .pf-result.error {
  border-color: rgba(235, 99, 114, .28);
  background: rgba(235, 99, 114, .07);
}

#provablyFair .pf-result.error .pf-verdict {
  color: #f0a2aa;
}

#provablyFair .pf-error-copy,
#provablyFair .pf-result-note {
  margin: 10px 0 0;
  color: #a9a0b5;
  font-size: 10.5px;
  line-height: 1.45;
}

#provablyFair .pf-result-note {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

#provablyFair .pf-out.jackpot {
  color: #c99dff;
  font-family: Manrope, sans-serif !important;
  font-weight: 800;
}

@media (max-width: 620px) {
  #provablyFair .pf-kv {
    grid-template-columns: minmax(0, 1fr) 26px !important;
  }

  #provablyFair .pf-kv > b {
    grid-column: 1 / -1;
  }
}

/* ---------- v14: visible reel, real Jackpot scrolling, compact sections ---------- */
@media (min-width: 851px) {
  body.on-jackpot .workspace {
    height: calc(100dvh - 72px) !important;
    min-height: 0 !important;
    grid-template-rows: 66px minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.on-jackpot .workspace > .columns {
    height: auto !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }

  body.on-jackpot .columns > #jackpotPage {
    align-self: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
  }

  body.on-jackpot #jackpotPage > .jp-hero,
  body.on-jackpot #jackpotPage > .jp-roller,
  body.on-jackpot #jackpotPage > .jp-participants,
  body.on-jackpot #jackpotPage > .jp-recent {
    flex: 0 0 auto !important;
  }
}

body.on-jackpot #jackpotPage > .jp-roller {
  flex: 0 0 126px !important;
  width: 100% !important;
  height: 126px !important;
  min-height: 126px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-color: #332d40 !important;
  background:
    linear-gradient(90deg, rgba(9, 8, 13, .96), transparent 10%, transparent 90%, rgba(9, 8, 13, .96)),
    linear-gradient(180deg, #111018, #0d0c12) !important;
}

body.on-jackpot #jackpotPage .jp-participants {
  gap: 12px !important;
}

body.on-jackpot #jackpotPage .jp-participants-head {
  display: grid !important;
  grid-template-columns: minmax(90px, 1fr) minmax(150px, auto) minmax(90px, 1fr) !important;
  place-items: center !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  gap: 20px !important;
  padding: 8px 18px !important;
  border: 1px solid #302b38 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 50% 0, rgba(143, 83, 221, .1), transparent 42%),
    linear-gradient(180deg, #16141c, #111016) !important;
  color: #f3eff8 !important;
  text-align: center !important;
}

body.on-jackpot #jackpotPage .jp-participant-title {
  display: grid !important;
  place-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
}

body.on-jackpot #jackpotPage .jp-participant-title > small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #92879f !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .16em !important;
}

body.on-jackpot #jackpotPage .jp-participant-title > small i {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #52d89d !important;
  box-shadow: 0 0 8px rgba(82, 216, 157, .7) !important;
}

body.on-jackpot #jackpotPage .jp-participant-title > b {
  color: #f5f1f8 !important;
  font: 800 14px/1 Manrope, sans-serif !important;
  letter-spacing: .015em !important;
}

body.on-jackpot #jackpotPage .jp-participant-stat {
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  min-width: 74px !important;
  gap: 4px !important;
  color: #8f879b !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .13em !important;
}

body.on-jackpot #jackpotPage .jp-participant-stat:first-child {
  justify-self: end !important;
}

body.on-jackpot #jackpotPage .jp-participant-stat:last-child {
  justify-self: start !important;
}

body.on-jackpot #jackpotPage .jp-participant-stat > strong {
  color: #c99cff !important;
  font: 800 19px/1 Manrope, sans-serif !important;
  letter-spacing: -.02em !important;
}

body.on-jackpot #jackpotPage .jp-participant-stat > small {
  color: #8f879b !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .13em !important;
}

body.on-jackpot #jackpotPage .jp-recent {
  display: block !important;
  overflow: hidden !important;
  border: 1px solid #302b38 !important;
  border-radius: 8px !important;
  background: #111016 !important;
}

body.on-jackpot #jackpotPage .jp-recent-head {
  appearance: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 8% 0, rgba(146, 84, 229, .11), transparent 28%),
    linear-gradient(180deg, #17151d, #121117) !important;
  color: #f4eff9 !important;
  cursor: pointer !important;
  text-align: left !important;
}

body.on-jackpot #jackpotPage .jp-recent-head:hover {
  background:
    radial-gradient(circle at 8% 0, rgba(159, 95, 240, .15), transparent 31%),
    linear-gradient(180deg, #1a1721, #131118) !important;
}

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

body.on-jackpot #jackpotPage .jp-recent-title {
  display: grid !important;
  grid-template-columns: 4px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 0 !important;
  gap: 5px 11px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.on-jackpot #jackpotPage .jp-recent-title > i {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 3px !important;
  height: 28px !important;
  border-radius: 4px !important;
  background: #a96cf7 !important;
  box-shadow: 0 0 12px rgba(169, 108, 247, .32) !important;
}

body.on-jackpot #jackpotPage .jp-recent-title > b {
  grid-column: 2 !important;
  color: #f5f1f8 !important;
  font: 800 13px/1.1 Manrope, sans-serif !important;
  letter-spacing: .025em !important;
}

body.on-jackpot #jackpotPage .jp-recent-title > small {
  grid-column: 2 !important;
  display: block !important;
  color: #8e8698 !important;
  font: 600 9px/1.1 Manrope, sans-serif !important;
  letter-spacing: .01em !important;
}

body.on-jackpot #jackpotPage .jp-recent-toggle {
  display: grid !important;
  grid-template-columns: auto 20px !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  justify-items: end !important;
  min-height: 0 !important;
  gap: 4px 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.on-jackpot #jackpotPage .jp-recent-toggle > b {
  grid-column: 1 !important;
  color: #cfa7ff !important;
  font: 800 10px/1 DM Mono, monospace !important;
  letter-spacing: .1em !important;
}

body.on-jackpot #jackpotPage .jp-recent-toggle > small {
  grid-column: 1 !important;
  display: block !important;
  color: #898092 !important;
  font: 700 8px/1 DM Mono, monospace !important;
  letter-spacing: .1em !important;
}

body.on-jackpot #jackpotPage .jp-recent-toggle > svg {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  color: #aaa0b5 !important;
  transition: transform .18s ease, color .18s ease !important;
}

body.on-jackpot #jackpotPage .jp-recent-head[aria-expanded="true"] .jp-recent-toggle > svg {
  color: #d1afff !important;
  transform: rotate(180deg) !important;
}

body.on-jackpot #jackpotPage .jp-recent-body {
  display: block !important;
  border-top: 1px solid #302b38 !important;
}

body.on-jackpot #jackpotPage .jp-recent-body[hidden] {
  display: none !important;
}

@container jackpot-shell (max-width: 720px) {
  body.on-jackpot #jackpotPage .jp-participants-head {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 9px !important;
    padding: 8px 10px !important;
  }

  body.on-jackpot #jackpotPage .jp-participant-stat {
    min-width: 52px !important;
  }

  body.on-jackpot #jackpotPage .jp-participant-stat > strong {
    font-size: 16px !important;
  }

  body.on-jackpot #jackpotPage .jp-recent-title > small,
  body.on-jackpot #jackpotPage .jp-recent-toggle > small {
    display: none !important;
  }
}

@media (max-width: 520px) {
  body.on-jackpot #jackpotPage .jp-participant-title > small {
    display: none !important;
  }

  body.on-jackpot #jackpotPage .jp-participants-head {
    min-height: 50px !important;
  }

  body.on-jackpot #jackpotPage .jp-recent-head {
    min-height: 56px !important;
    padding: 9px 12px !important;
  }
}

/* ---------- v15: darker profile with flat career/performance data ---------- */
#profile .profile-card {
  width: min(620px, calc(100vw - 28px)) !important;
  max-width: 620px !important;
  max-height: min(680px, calc(100dvh - 28px)) !important;
  padding: 22px !important;
  overflow-y: auto !important;
  border: 1px solid #2d2932 !important;
  border-top-color: #5b426f !important;
  border-radius: 7px !important;
  background: #111016 !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .58) !important;
}

#profile .profile-card > p {
  margin: 0 0 14px !important;
  color: #95879f !important;
  font: 800 9px/1 DM Mono, monospace !important;
  letter-spacing: .15em !important;
}

#profile .profile-hero {
  grid-template-columns: 88px minmax(0, 1fr) auto !important;
  min-height: 88px !important;
  gap: 16px !important;
}

#profile .profile-avatar {
  width: 84px !important;
  height: 84px !important;
  border-color: #493a56 !important;
  background: #17141d !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .38) !important;
}

#profile .profile-name-line {
  min-height: 30px !important;
  gap: 8px !important;
}

#profile .profile-card .profile-name-line h2 {
  font-family: Manrope, "Segoe UI", sans-serif !important;
  font-size: 25px !important;
}

#profile .profile-card #profileRank {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  filter: drop-shadow(0 0 4px rgba(145, 92, 199, .28)) !important;
}

#profile .profile-level-line {
  flex-wrap: wrap !important;
  gap: 7px 10px !important;
  margin-top: 6px !important;
}

#profile .profile-rank-name {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 13px !important;
  padding: 0 0 0 10px !important;
  border: 0 !important;
  border-left: 1px solid #37313d !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #b4a5c1 !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .08em !important;
}

#profile .profile-rank-name[hidden] {
  display: none !important;
}

#profile .profile-online {
  padding: 3px 7px !important;
  background: #13231d !important;
  color: #88d7ae !important;
}

#profile .profile-verified {
  color: #6fba96;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#profile .profile-xp {
  margin-top: 12px !important;
}

#profile .profile-xp-track i {
  background: #8052a8 !important;
  box-shadow: none !important;
}

#profile .profile-card #tipPlayer {
  width: 92px !important;
  min-height: 35px !important;
  border-color: #5e466f !important;
  background: #18131e !important;
  color: #d5cadc !important;
  box-shadow: none !important;
}

#profile .profile-card #tipPlayer:hover {
  border-color: #85649b !important;
  background: #1d1724 !important;
  box-shadow: none !important;
}

#profile .profile-career-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  margin-top: 18px;
  border-top: 1px solid #29262f;
  border-bottom: 1px solid #29262f;
}

#profile .profile-career-strip > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 13px 16px 13px 0;
}

#profile .profile-career-strip > div + div {
  padding-left: 22px;
  border-left: 1px solid #29262f;
}

#profile .profile-career-strip small,
#profile .profile-performance small {
  color: #807887;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .11em;
}

#profile .profile-career-strip b,
#profile .profile-performance b {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #f0ecf3;
  font: 800 18px/1 Manrope, sans-serif;
  white-space: nowrap;
}

#profile .profile-career-strip > div:first-child b {
  font-size: 21px;
}

#profile .profile-performance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #29262f;
}

#profile .profile-performance > div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px 13px;
  border-right: 1px solid #29262f;
}

#profile .profile-performance > div:first-child {
  padding-left: 0;
}

#profile .profile-performance > div:last-child {
  padding-right: 0;
  border-right: 0;
}

#profile .profile-career-strip .g-coin,
#profile .profile-performance .g-coin {
  width: 18px;
  height: 18px;
}

@media (max-width: 620px) {
  #profile .profile-card {
    padding: 18px !important;
  }

  #profile .profile-hero {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  #profile .profile-avatar {
    width: 70px !important;
    height: 70px !important;
  }

  #profile .profile-card #tipPlayer {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 4px !important;
  }

  #profile .profile-career-strip {
    grid-template-columns: 1fr;
  }

  #profile .profile-career-strip > div + div {
    padding-left: 0;
    border-top: 1px solid #29262f;
    border-left: 0;
  }

  #profile .profile-performance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #profile .profile-performance > div:nth-child(2) {
    border-right: 0;
  }

  #profile .profile-performance > div:nth-child(-n + 2) {
    border-bottom: 1px solid #29262f;
  }

  #profile .profile-performance > div:nth-child(3) {
    padding-left: 0;
  }

  #profile .profile-verified {
    display: none;
  }
}

/* ---------- v15: calmer, better-separated Jackpot round detail ---------- */
body.on-jackpot #jpDetailModal .jpd-card {
  width: min(1120px, calc(100vw - 36px)) !important;
  padding: 20px !important;
  border-color: #2d2a32 !important;
  background: #101015 !important;
}

body.on-jackpot #jpDetailModal .jpd-body {
  grid-template-columns: minmax(260px, .56fr) minmax(0, 1.44fr) !important;
  column-gap: 28px !important;
}

body.on-jackpot #jpDetailModal .jpd-hero {
  min-height: 78px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #2b2831 !important;
  border-left: 2px solid #684b7b !important;
  border-radius: 4px !important;
  background: #121117 !important;
}

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

body.on-jackpot #jpDetailModal .jpd-av {
  width: 50px !important;
  height: 50px !important;
  border-color: #4d3c58 !important;
}

body.on-jackpot #jpDetailModal .jpd-name-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

body.on-jackpot #jpDetailModal .jpd-name-row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f1edf4 !important;
  font: 800 21px/1 Manrope, sans-serif !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jpDetailModal .jpd-winner-rank {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(145, 88, 196, .28));
}

body.on-jackpot #jpDetailModal .jpd-hpot {
  min-width: 150px !important;
}

body.on-jackpot #jpDetailModal .jpd-hpot b {
  color: #f1edf4 !important;
  font-size: 25px !important;
}

body.on-jackpot #jpDetailModal .jpd-sec-h {
  min-height: 24px;
  color: #8d8595;
  font: 800 9px/1 DM Mono, monospace;
  letter-spacing: .1em;
}

body.on-jackpot #jpDetailModal .jpd-sec-h > b {
  color: inherit;
  font: inherit;
}

body.on-jackpot #jpDetailModal .jpd-items-played {
  padding-right: 20px;
  border-right: 1px solid #29262e;
}

body.on-jackpot #jpDetailModal .jpd-players-head {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
}

body.on-jackpot #jpDetailModal .jpd-players-head > b {
  grid-column: 2;
  justify-self: center;
  color: #aaa2b2;
}

body.on-jackpot #jpDetailModal .jpd-players-head > span {
  grid-column: 3;
  justify-self: end;
}

body.on-jackpot #jpDetailModal .jpd-item-list {
  min-height: 150px !important;
  border-color: #2c2931 !important;
  background: #131218 !important;
}

body.on-jackpot #jpDetailModal .jpd-player-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-content: flex-start !important;
  gap: 8px !important;
}

body.on-jackpot #jpDetailModal .jpd-player {
  flex: 0 1 calc(33.333% - 6px) !important;
  width: calc(33.333% - 6px) !important;
  max-width: calc(33.333% - 6px) !important;
  border-color: #2e2b34 !important;
  background: #141319 !important;
}

body.on-jackpot #jpDetailModal .jpd-player.is-you {
  border-color: #4e3e59 !important;
  box-shadow: inset 2px 0 #705188 !important;
}

body.on-jackpot #jpDetailModal .jpd-player-id b > .jpd-you-badge {
  font-size: 6px;
}

@media (max-width: 900px) {
  body.on-jackpot #jpDetailModal .jpd-body {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  body.on-jackpot #jpDetailModal .jpd-items-played {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 760px) {
  body.on-jackpot #jpDetailModal .jpd-player {
    flex-basis: calc(50% - 4px) !important;
    width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
  }
}

@media (max-width: 520px) {
  body.on-jackpot #jpDetailModal .jpd-player {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ---------- v15: compact, dark shared Provably Fair checker ---------- */
#provablyFair .pf-card {
  width: min(840px, calc(100vw - 32px)) !important;
  max-width: 840px !important;
  max-height: min(760px, calc(100dvh - 32px)) !important;
  padding: 20px 22px !important;
  border: 1px solid #302d37 !important;
  border-top-color: #5b456b !important;
  border-radius: 7px !important;
  background: #111116 !important;
  box-shadow: 0 26px 76px rgba(0, 0, 0, .62) !important;
}

#provablyFair .pf-hero > p:first-child {
  color: #8f779f !important;
  font: 800 9px/1 DM Mono, monospace !important;
  letter-spacing: .18em !important;
}

#provablyFair .pf-hero > h2 {
  margin: 5px 0 6px !important;
  color: #f4f1f6 !important;
  font: 800 22px/1.05 Manrope, sans-serif !important;
  letter-spacing: -.02em !important;
}

#provablyFair .pf-lead {
  max-width: 72ch !important;
  margin: 0 0 14px !important;
  color: #aaa3b2 !important;
  font: 600 11.5px/1.45 Manrope, sans-serif !important;
  letter-spacing: 0 !important;
}

#provablyFair .pf-grid {
  grid-template-columns: minmax(250px, .84fr) minmax(330px, 1.16fr) !important;
  gap: 14px !important;
}

#provablyFair .pf-how > h3,
#provablyFair .pf-box > h3,
#provablyFair .pf-seedbox > h3 {
  margin: 0 0 10px !important;
  color: #d9d4df !important;
  font: 800 10px/1 Manrope, sans-serif !important;
  letter-spacing: .075em !important;
}

#provablyFair .pf-steps {
  gap: 9px !important;
}

#provablyFair .pf-step {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 8px !important;
}

#provablyFair .pf-step > span {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 28px !important;
  height: auto !important;
  min-height: 20px !important;
  padding-top: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #806b91 !important;
  font: 800 9px/1 DM Mono, monospace !important;
  letter-spacing: .04em !important;
}

#provablyFair .pf-step b {
  margin-bottom: 2px !important;
  color: #e7e2eb !important;
  font: 800 12px/1.2 Manrope, sans-serif !important;
}

#provablyFair .pf-step p {
  color: #9f98a7 !important;
  font: 600 11px/1.38 Manrope, sans-serif !important;
  letter-spacing: 0 !important;
}

#provablyFair .pf-side {
  gap: 10px !important;
}

#provablyFair .pf-box {
  padding: 13px !important;
  border: 1px solid #302d37 !important;
  border-radius: 5px !important;
  background: #151419 !important;
}

#provablyFair .pf-box > p {
  margin: 0 0 10px !important;
  color: #9f98a7 !important;
  font: 600 11px/1.4 Manrope, sans-serif !important;
}

#provablyFair .pf-form input {
  min-height: 40px !important;
  padding: 10px 11px !important;
  border-color: #37333d !important;
  border-radius: 4px !important;
  background: #0e0d12 !important;
  color: #e7e2eb !important;
  font: 700 10.5px/1 DM Mono, monospace !important;
}

#provablyFair .pf-form input:focus {
  border-color: #74578a !important;
}

#provablyFair .pf-form button {
  min-width: 118px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 4px !important;
  background: #5d416f !important;
  color: #eee8f2 !important;
  font: 800 10px/1 Manrope, sans-serif !important;
}

#provablyFair .pf-form button:hover {
  background: #6b4b7f !important;
}

#provablyFair .pf-result {
  margin-top: 10px !important;
  padding: 11px !important;
  border-color: #2e5545 !important;
  border-radius: 4px !important;
  background: #121a17 !important;
}

#provablyFair .pf-verdict {
  margin-bottom: 8px !important;
  color: #77cda5 !important;
  font: 800 11px/1.3 Manrope, sans-serif !important;
}

#provablyFair .pf-kv {
  grid-template-columns: 118px minmax(0, 1fr) 26px !important;
  gap: 8px !important;
  padding: 7px 0 !important;
  border-color: #2a302d !important;
}

#provablyFair .pf-kv > b {
  color: #948c9d !important;
  font: 700 10px/1.2 Manrope, sans-serif !important;
}

#provablyFair .pf-kv .pf-kv-value {
  color: #ddd7e3 !important;
  font: 650 9.5px/1.3 DM Mono, monospace !important;
}

#provablyFair .pf-seedbox {
  gap: 8px !important;
}

#provablyFair .pf-seed small {
  margin-bottom: 4px !important;
  color: #847b8d !important;
  font: 800 8px/1 DM Mono, monospace !important;
  letter-spacing: .1em !important;
}

#provablyFair .pf-seed b {
  color: #cfc9d6 !important;
  font: 650 9.5px/1.35 DM Mono, monospace !important;
}

#provablyFair .pf-copy {
  border-color: #36313b !important;
  background: #19171d !important;
  color: #8f8797 !important;
}

#provablyFair .pf-copy:hover {
  border-color: #624d70 !important;
  color: #c4b6cc !important;
}

@media (max-width: 760px) {
  #provablyFair .pf-card {
    width: min(560px, calc(100vw - 20px)) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 18px !important;
  }

  #provablyFair .pf-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- v16: transparent brand mark, optical row centering, livelier profile ---------- */
.top-brand img.brand-logo-new {
  width: 58px !important;
  height: 58px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 0 11px rgba(159, 77, 255, .28)) !important;
}

@media (max-width: 900px) {
  .top-brand img.brand-logo-new {
    width: 42px !important;
    height: 42px !important;
  }
}

@media (min-width: 721px) {
  body.on-jackpot #jackpotPage .jp-rr-middle,
  body.on-jackpot #jackpotPage .jp-rr-summary {
    position: relative;
    top: 4px;
  }

  body.on-jackpot #jackpotPage .jp-rr-summary {
    align-self: center !important;
    min-height: 76px;
  }

  body.on-jackpot #jackpotPage .jp-rr-summary .jp-rr-pot,
  body.on-jackpot #jackpotPage .jp-rr-summary .jp-rr-pct {
    height: 76px;
    place-content: center !important;
  }
}

#profile .profile-rank-name,
#profile .profile-verified {
  display: none !important;
}

#profile .profile-card {
  border-color: #403549 !important;
  border-top: 2px solid #9f5ce1 !important;
  background:
    radial-gradient(circle at 18% -8%, rgba(160, 75, 231, .18), transparent 36%),
    radial-gradient(circle at 91% 115%, rgba(100, 55, 168, .1), transparent 40%),
    linear-gradient(145deg, #18131f 0%, #121016 58%, #0f0e13 100%) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .035),
    0 26px 74px rgba(0, 0, 0, .62),
    0 0 30px rgba(113, 54, 166, .08) !important;
}

#profile .profile-card > p {
  color: #c28ee9 !important;
  text-shadow: 0 0 13px rgba(180, 92, 241, .25);
}

#profile .profile-avatar {
  border-color: #7b52a0 !important;
  background: #1a1422 !important;
  box-shadow:
    0 0 0 3px rgba(132, 73, 181, .08),
    0 11px 28px rgba(0, 0, 0, .45),
    0 0 24px rgba(151, 76, 218, .12) !important;
}

#profile .profile-card .profile-name-line h2 {
  color: #fffaff !important;
  text-shadow: 0 0 18px rgba(190, 112, 245, .11);
}

#profile .profile-card #profileRank {
  filter: drop-shadow(0 0 8px rgba(174, 94, 236, .42)) !important;
}

#profile .profile-level-line {
  color: #d5c8df !important;
}

#profile .profile-online {
  border: 1px solid rgba(84, 202, 145, .13) !important;
  background: #12271f !important;
  color: #8be0b5 !important;
  box-shadow: 0 0 12px rgba(75, 197, 137, .08);
}

#profile .profile-xp-track {
  background: #26202d !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

#profile .profile-xp-track i {
  background: linear-gradient(90deg, #8147bd, #bd6bf1) !important;
  box-shadow: 0 0 11px rgba(178, 91, 236, .25) !important;
}

#profile .profile-card #tipPlayer {
  border-color: #76518f !important;
  background: linear-gradient(135deg, #261731, #19121f) !important;
  color: #eee3f5 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .03) !important;
}

#profile .profile-card #tipPlayer:hover {
  border-color: #a875c8 !important;
  background: linear-gradient(135deg, #321d40, #21152a) !important;
  box-shadow: 0 0 18px rgba(161, 83, 212, .16) !important;
}

#profile .profile-career-strip {
  border-color: #352d3c !important;
  background: linear-gradient(90deg, rgba(148, 76, 199, .07), transparent 68%);
}

#profile .profile-career-strip > div + div,
#profile .profile-performance > div {
  border-color: #352d3c !important;
}

#profile .profile-career-strip small,
#profile .profile-performance small {
  color: #9689a2 !important;
}

#profile .profile-career-strip > div:first-child b {
  color: #d5a7f7 !important;
  text-shadow: 0 0 14px rgba(181, 99, 232, .15);
}

#profile .profile-performance > div:first-child b {
  color: #89dbb5 !important;
  text-shadow: 0 0 12px rgba(85, 205, 148, .1);
}

#profile .profile-performance > div:nth-child(2) b {
  color: #e0c2f6 !important;
}

@media (max-width: 780px) {
  #profile .profile-card {
    transform: none !important;
  }
}

/* ---------- v17: denser fairness checker and energized round report ---------- */
#provablyFair .pf-card {
  width: min(1080px, calc(100vw - 28px)) !important;
  max-width: 1080px !important;
  max-height: min(680px, calc(100dvh - 24px)) !important;
  padding: 18px 20px !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(166, 91, 226, .52) transparent !important;
  scrollbar-gutter: auto !important;
}

#provablyFair .pf-card::-webkit-scrollbar {
  width: 4px !important;
}

#provablyFair .pf-card::-webkit-scrollbar-track {
  background: transparent !important;
}

#provablyFair .pf-card::-webkit-scrollbar-thumb {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(166, 91, 226, .52) !important;
}

#provablyFair .pf-hero > p:first-child {
  color: #b97be8 !important;
}

#provablyFair .pf-hero > h2 {
  font-size: 24px !important;
}

#provablyFair .pf-lead {
  margin-bottom: 12px !important;
  font-size: 12px !important;
}

#provablyFair .pf-grid {
  grid-template-columns: minmax(340px, .86fr) minmax(480px, 1.14fr) !important;
  grid-template-areas:
    "how side"
    "commit side";
  gap: 14px 22px !important;
  align-items: start !important;
}

#provablyFair .pf-how {
  grid-area: how;
  min-width: 0;
}

#provablyFair .pf-side {
  grid-area: side;
  min-width: 0;
}

#provablyFair .pf-grid > .pf-seedbox {
  grid-area: commit;
  min-width: 0;
  margin: 0 !important;
}

#provablyFair .pf-step {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 10px !important;
}

#provablyFair .pf-step > span {
  width: 36px !important;
  min-height: 22px !important;
  padding-top: 1px !important;
  color: #b379e6 !important;
  font: 800 11.5px/1 DM Mono, monospace !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .025em !important;
  text-shadow: 0 0 10px rgba(169, 87, 224, .2);
}

#provablyFair .pf-step b {
  color: #f0ebf3 !important;
  font-size: 12.5px !important;
}

#provablyFair .pf-step p {
  color: #aaa1b0 !important;
  font-size: 11.5px !important;
  line-height: 1.42 !important;
}

#provablyFair .pf-box {
  padding: 14px !important;
  border-color: #3a3342 !important;
  background:
    linear-gradient(135deg, rgba(135, 69, 177, .045), transparent 42%),
    #151419 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

#provablyFair .pf-box > h3,
#provablyFair .pf-seedbox > h3 {
  color: #e4dce9 !important;
  font-size: 10.5px !important;
}

#provablyFair .pf-box > p {
  color: #aaa1b0 !important;
  font-size: 11.5px !important;
}

#provablyFair .pf-form input {
  font-size: 11.5px !important;
}

#provablyFair .pf-form button {
  min-width: 128px !important;
  font-size: 10.5px !important;
  background: #704b87 !important;
}

#provablyFair .pf-form button:hover {
  background: #80569a !important;
}

#provablyFair .pf-result {
  border-color: #32624e !important;
  background:
    radial-gradient(circle at 0 0, rgba(83, 205, 153, .07), transparent 34%),
    #111a16 !important;
}

#provablyFair .pf-verdict {
  font-size: 12px !important;
}

#provablyFair .pf-kv {
  grid-template-columns: 124px minmax(0, 1fr) 28px !important;
  min-height: 36px;
  padding: 8px 0 !important;
}

#provablyFair .pf-kv > b {
  font-size: 10.5px !important;
}

#provablyFair .pf-kv .pf-kv-value {
  font-size: 10.5px !important;
}

#provablyFair .pf-seed small {
  color: #a27db7 !important;
  font-size: 8.5px !important;
}

#provablyFair .pf-seed b {
  min-width: 0;
  color: #ddd4e2 !important;
  font-size: 10.5px !important;
  overflow-wrap: anywhere;
}

#provablyFair .pf-copy {
  flex: none;
}

body.on-jackpot #jpDetailModal .jpd-card {
  width: min(1200px, calc(100vw - 28px)) !important;
  max-height: min(850px, calc(100dvh - 24px)) !important;
  padding: 18px !important;
  border-color: #3a3142 !important;
  background:
    radial-gradient(circle at 74% 0, rgba(133, 64, 176, .07), transparent 34%),
    #100f14 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 85, 177, .48) transparent;
}

body.on-jackpot #jpDetailModal .jpd-card::-webkit-scrollbar {
  width: 5px;
}

body.on-jackpot #jpDetailModal .jpd-card::-webkit-scrollbar-track {
  background: transparent;
}

body.on-jackpot #jpDetailModal .jpd-card::-webkit-scrollbar-thumb {
  border: 0;
  border-radius: 10px;
  background: rgba(143, 85, 177, .48);
}

body.on-jackpot #jpDetailModal .jpd-card > p {
  margin-bottom: 11px;
  color: #b87be5;
}

body.on-jackpot #jpDetailModal .jpd-body {
  gap: 10px 24px !important;
}

body.on-jackpot #jpDetailModal .jpd-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 250px) !important;
  min-height: 86px !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #3a3142 !important;
  border-left: 3px solid #985bc9 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 88% 0, rgba(171, 82, 220, .15), transparent 36%),
    linear-gradient(105deg, #18141d, #111016 68%, #17121c) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

body.on-jackpot #jpDetailModal .jpd-winner {
  align-self: stretch;
  padding: 13px 18px !important;
  border-radius: 7px;
  transition: background .16s ease;
}

body.on-jackpot #jpDetailModal .jpd-winner:hover {
  background: rgba(150, 82, 193, .055);
}

body.on-jackpot #jpDetailModal .jpd-av {
  width: 54px !important;
  height: 54px !important;
  border-color: #7a4f94 !important;
  box-shadow: 0 0 18px rgba(157, 79, 204, .1);
}

body.on-jackpot #jpDetailModal .jpd-hid > small {
  margin-bottom: 5px;
  color: #c18ce8 !important;
  font: 800 9px/1 DM Mono, monospace !important;
  letter-spacing: .14em !important;
}

body.on-jackpot #jpDetailModal .jpd-crown {
  color: #ca8cff;
  background: #23172d;
  border-color: #151119;
  box-shadow: 0 0 14px rgba(166, 84, 220, .2);
}

body.on-jackpot #jpDetailModal .jpd-crown svg {
  fill: currentColor !important;
}

body.on-jackpot #jpDetailModal .jpd-hpot {
  align-self: stretch;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0 !important;
  padding: 12px 22px;
  border-left: 1px solid #392f41;
  background: linear-gradient(90deg, rgba(126, 66, 166, .025), rgba(147, 75, 190, .09));
  text-align: center;
}

body.on-jackpot #jpDetailModal .jpd-hpot small {
  margin-bottom: 7px;
  color: #aa96b5;
  font: 800 9px/1 DM Mono, monospace;
  letter-spacing: .13em;
}

body.on-jackpot #jpDetailModal .jpd-hpot b {
  color: #f3edf7 !important;
  font: 800 30px/1 Manrope, sans-serif !important;
  letter-spacing: -.035em;
}

body.on-jackpot #jpDetailModal .jpd-hpot .g-coin {
  width: 23px !important;
  height: 23px !important;
}

body.on-jackpot #jpDetailModal .jpd-players-head > b {
  color: #baa7c7 !important;
}

body.on-jackpot #jpDetailModal .jpd-player-grid {
  gap: 10px !important;
}

body.on-jackpot #jpDetailModal .jpd-player {
  flex: 1 1 calc(33.333% - 7px) !important;
  width: auto !important;
  max-width: none !important;
  min-width: 210px;
  min-height: 84px !important;
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  gap: 5px 11px !important;
  padding: 11px 13px !important;
  border-color: #3a3242 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 0 50%, rgba(156, 81, 203, .075), transparent 34%),
    #15141a !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.on-jackpot #jpDetailModal .jpd-player:hover {
  border-color: #76528a !important;
  background:
    radial-gradient(circle at 0 50%, rgba(170, 91, 218, .13), transparent 38%),
    #19161e !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 8px 22px rgba(0, 0, 0, .24);
  transform: translateY(-1px);
}

body.on-jackpot #jpDetailModal .jpd-player.win {
  border-color: #674678 !important;
  background:
    linear-gradient(110deg, rgba(161, 79, 211, .12), transparent 48%),
    #17141b !important;
  box-shadow: inset 3px 0 #955bc2, inset 0 1px rgba(255, 255, 255, .035);
}

body.on-jackpot #jpDetailModal .jpd-player.is-you {
  background:
    linear-gradient(110deg, rgba(128, 79, 160, .11), transparent 48%),
    #16141b !important;
}

body.on-jackpot #jpDetailModal .jpd-player-av {
  width: 46px !important;
  height: 46px !important;
  border-color: #76528d !important;
  box-shadow: 0 0 14px rgba(141, 77, 180, .1);
}

body.on-jackpot #jpDetailModal .jpd-player-id b {
  gap: 6px !important;
  color: #f6f1f8 !important;
  font: 800 14px/1.1 Manrope, sans-serif !important;
}

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

body.on-jackpot #jpDetailModal .jpd-player-entry {
  display: flex !important;
  align-items: center;
  gap: 5px !important;
  margin-top: 6px !important;
  color: #d8cedd !important;
  font: 700 11px/1 Manrope, sans-serif !important;
}

body.on-jackpot #jpDetailModal .jpd-player-entry > span {
  color: #a98db8;
  font: 800 8px/1 DM Mono, monospace;
  letter-spacing: .08em;
}

body.on-jackpot #jpDetailModal .jpd-player-entry .g-coin {
  width: 15px !important;
  height: 15px !important;
}

body.on-jackpot #jpDetailModal .jpd-player-entry strong {
  color: #e4d8e9;
  font: 800 13px/1 Manrope, sans-serif;
}

body.on-jackpot #jpDetailModal .jpd-player-items img {
  width: 38px !important;
  height: 32px !important;
}

body.on-jackpot #jpDetailModal .jpd-player-chance {
  align-self: stretch;
  align-content: center;
  min-width: 78px;
  padding-left: 12px;
  border-left: 1px solid rgba(164, 105, 193, .17);
}

body.on-jackpot #jpDetailModal .jpd-player-chance small {
  color: #ad9bb8 !important;
  font: 800 9px/1 DM Mono, monospace !important;
  letter-spacing: .075em;
}

body.on-jackpot #jpDetailModal .jpd-player-chance b {
  color: #ead9f5 !important;
  font: 800 20px/1 Manrope, sans-serif !important;
  letter-spacing: -.025em;
  text-shadow: none !important;
}

@media (max-width: 900px) {
  #provablyFair .pf-card {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 17px !important;
  }

  #provablyFair .pf-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "how"
      "side"
      "commit";
  }
}

@media (max-width: 760px) {
  body.on-jackpot #jpDetailModal .jpd-player {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    min-width: 180px;
  }
}

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

  body.on-jackpot #jpDetailModal .jpd-hpot {
    align-items: flex-start;
    padding: 13px 16px;
    border-top: 1px solid #392f41;
    border-left: 0;
    text-align: left;
  }
}

@media (max-width: 520px) {
  #provablyFair .pf-card {
    padding: 14px !important;
  }

  #provablyFair .pf-step {
    grid-template-columns: 32px minmax(0, 1fr) !important;
  }

  #provablyFair .pf-step > span {
    width: 32px !important;
    font-size: 10.5px !important;
  }

  #provablyFair .pf-kv {
    grid-template-columns: 96px minmax(0, 1fr) 28px !important;
  }

  body.on-jackpot #jpDetailModal .jpd-player {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
}

/* ---------- v18: unified profile metrics and expandable round items ---------- */
#profile .profile-career-strip > div:first-child b,
#profile .profile-performance > div:first-child b,
#profile .profile-performance > div:nth-child(2) b,
#profile #profileStreak,
#profile #profileUpset {
  color: #f5f0f7 !important;
  text-shadow: none !important;
}

#profile .profile-career-strip > div:first-child b {
  gap: 8px !important;
}

#profile .profile-career-strip > div:first-child .g-coin {
  width: 24px !important;
  height: 24px !important;
  filter: drop-shadow(0 0 8px rgba(165, 91, 222, .24));
}

#profile #profileStreak,
#profile #profileUpset {
  display: flex;
  align-items: baseline;
  gap: 6px !important;
  font-family: "Space Grotesk", Manrope, sans-serif !important;
}

#profile .profile-metric-number {
  color: #f5f0f7;
  font: 700 19px/1 "Space Grotesk", Manrope, sans-serif;
  letter-spacing: -.035em;
}

#profile .profile-metric-unit {
  color: #a99eae;
  font: 800 8px/1 "DM Mono", monospace;
  font-style: normal;
  letter-spacing: .08em;
  transform: translateY(-1px);
}

body.on-jackpot #jackpotPage .jp-rr-crown {
  right: -4px !important;
  bottom: -4px !important;
  width: 28px !important;
  height: 28px !important;
  color: #f5cc66;
  background: linear-gradient(145deg, #2a2033, #17131d) !important;
  border: 2px solid #111016 !important;
  box-shadow: 0 0 0 1px rgba(174, 105, 221, .22), 0 5px 13px rgba(0, 0, 0, .42), 0 0 12px rgba(181, 103, 227, .16);
  pointer-events: none;
}

body.on-jackpot #jackpotPage .jp-rr-crown svg {
  width: 16px !important;
  height: 16px !important;
  fill: #f5cc66 !important;
  filter: drop-shadow(0 1px 3px rgba(242, 195, 82, .25));
}

body.on-jackpot #jackpotPage .jp-rr-middle .jp-rr-items {
  align-items: flex-start;
  gap: 8px !important;
  overflow: visible;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item,
body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item:first-child {
  display: grid !important;
  grid-template-rows: 50px auto;
  align-items: start;
  justify-items: center;
  width: 50px !important;
  height: auto !important;
  gap: 4px;
  margin: 0;
}

body.on-jackpot #jackpotPage .jp-rr-items .jp-rr-item img {
  display: block;
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
}

body.on-jackpot #jackpotPage .jp-rr-item::after {
  display: none !important;
}

body.on-jackpot #jackpotPage .jp-rr-item figcaption,
body.on-jackpot #jackpotPage .jp-rr-expanded-item figcaption {
  display: block;
  overflow: hidden;
  width: 100%;
  color: #a99ead;
  font: 700 9px/1.15 Manrope, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.on-jackpot #jackpotPage .jp-rr-items-more {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 50px;
  margin: 0;
  padding: 0;
  color: #e3d1f2;
  background:
    radial-gradient(circle at 50% 20%, rgba(178, 101, 231, .14), transparent 58%),
    #19151e;
  border: 1px solid #51405e;
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  font: 800 12px/1 "DM Mono", monospace;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}

body.on-jackpot #jackpotPage .jp-rr-items-more:hover {
  color: #fff;
  background:
    radial-gradient(circle at 50% 20%, rgba(190, 111, 245, .22), transparent 62%),
    #211829;
  border-color: #8c5cac;
  transform: translateY(-1px);
}

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

body.on-jackpot #jackpotPage .jp-rr.is-items-expanded,
body.on-jackpot #jackpotPage .jp-rr.is-items-expanded:first-child {
  grid-template-areas:
    "user middle summary go"
    "tray tray tray tray" !important;
  row-gap: 10px;
  min-height: 0;
  padding-block: 10px 14px !important;
  background:
    linear-gradient(90deg, rgba(155, 83, 205, .055), transparent 35%),
    #131118;
  box-shadow: inset 3px 0 #8d58b4, inset 0 1px rgba(255, 255, 255, .025);
}

body.on-jackpot #jackpotPage .jp-rr.is-items-expanded .jp-rr-middle,
body.on-jackpot #jackpotPage .jp-rr.is-items-expanded .jp-rr-summary {
  top: 0;
}

body.on-jackpot #jackpotPage .jp-rr-items-expanded {
  display: grid;
  grid-area: tray;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 9px;
  width: 100%;
  padding: 13px;
  cursor: default;
  background:
    radial-gradient(circle at 50% 0, rgba(148, 75, 203, .075), transparent 46%),
    #100e14;
  border: 1px solid #342c3a;
  border-radius: 8px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

body.on-jackpot #jackpotPage .jp-rr-items-expanded[hidden] {
  display: none !important;
}

body.on-jackpot #jackpotPage .jp-rr-expanded-item {
  display: grid;
  grid-template-rows: 60px auto;
  place-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 8px 7px 9px;
  background: linear-gradient(155deg, #191620, #131117);
  border: 1px solid #332c3a;
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

body.on-jackpot #jackpotPage .jp-rr-expanded-item:hover {
  background: linear-gradient(155deg, #211926, #151219);
  border-color: #654778;
  transform: translateY(-1px);
}

body.on-jackpot #jackpotPage .jp-rr-expanded-item img {
  display: block;
  width: 62px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .42));
}

body.on-jackpot #jackpotPage .jp-rr-expanded-item figcaption {
  color: #d4cbd9;
  font-size: 10px;
}

@media (max-width: 900px) {
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded,
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded:first-child {
    grid-template-areas:
      "user summary go"
      "middle middle middle"
      "tray tray tray" !important;
  }
}

@media (max-width: 650px) {
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded,
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded:first-child {
    grid-template-areas:
      "user go"
      "middle middle"
      "summary summary"
      "tray tray" !important;
  }

  body.on-jackpot #jackpotPage .jp-rr-items-expanded {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 7px;
    padding: 9px;
  }

  body.on-jackpot #jackpotPage .jp-rr-expanded-item {
    grid-template-rows: 48px auto;
    padding: 6px;
  }

  body.on-jackpot #jackpotPage .jp-rr-expanded-item img {
    width: 50px;
    height: 48px;
  }
}

@container jackpot-shell (max-width: 1180px) {
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded,
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded:first-child {
    grid-template-areas:
      "user summary go"
      "middle middle middle"
      "tray tray tray" !important;
  }
}

@container jackpot-shell (max-width: 720px) {
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded,
  body.on-jackpot #jackpotPage .jp-rr.is-items-expanded:first-child {
    grid-template-areas:
      "user go"
      "middle middle"
      "summary summary"
      "tray tray" !important;
  }

  body.on-jackpot #jackpotPage .jp-rr-items-expanded {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 7px;
    padding: 9px;
  }
}
