.surface:has(> #content[data-game="jackpot"]) > #live-strip { display: none; }

#content[data-game="jackpot"] {
  width: min(100%, 1586px);
  max-width: none;
  min-width: 0;
  padding: 0;
  color-scheme: light;
}

.jackpot-game {
  --jp-ink: #17110d;
  --jp-cream: #fff2da;
  --jp-yellow: #ffec15;
  --jp-pink: #ff2873;
  --jp-mint: #80f6b4;
  --jp-paper: url("/redesign-art/jackpot/cream-paper.webp");
  --jp-display: "Case Opening Roboto", Impact, "Arial Narrow", sans-serif;
  container-type: inline-size;
  min-width: 0;
  overflow: clip;
  padding-bottom: clamp(19px, 2vw, 35px);
  color: var(--jp-ink);
  background: #fb1570 url("/redesign-art/jackpot/red-print.webp") top left repeat;
}

.jackpot-game [hidden] { display: none !important; }
.jackpot-game :is(h1, h2, ul, p) { margin: 0; }
.jackpot-game section + section { margin-top: 0; }
.jackpot-game ul { padding: 0; list-style: none; }
.jackpot-game :is(button, input, select, summary) { font: inherit; }
.jackpot-game :is(button, input, select, summary, ul):focus-visible { outline: 3px solid #851a46; outline-offset: 2px; }
.jackpot-game button { touch-action: manipulation; }
.jackpot-game button:disabled { cursor: default; }

.jackpot-heading {
  position: relative;
  height: 9.46cqw;
}

.jackpot-title {
  position: absolute;
  inset: .19cqw auto auto .88cqw;
  width: 32.28cqw;
  height: 10.60cqw;
  z-index: 2;
  background: url("/redesign-art/jackpot/title.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.jackpot-title span, .jackpot-sticker {
  color: transparent;
}

.jackpot-title span { position: absolute; inset: 0; }

.jackpot-heading-stat {
  position: absolute;
  inset: 2.02cqw auto auto 33.42cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .20em;
  width: 21.82cqw;
  height: 6.05cqw;
  padding-inline: 1.15cqw;
  background: url("/redesign-art/jackpot/paper-bank.webp") center / 100% 100% no-repeat;
  font: italic 900 3.05cqw/.98 var(--jp-display);
  text-shadow: .45px 0 currentColor;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.jackpot-heading-stat strong { font: inherit; }

.jackpot-heading-stat:first-of-type strong {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 1.12em;
  padding: .04em .25em .06em;
  border: .07em solid var(--jp-ink);
  border-radius: .15em;
  background: var(--jp-mint);
  box-shadow: 3px 3px var(--jp-ink);
  transform: skewX(-10deg);
}

.jackpot-round {
  inset: 2.46cqw auto auto 55.42cqw;
  width: 13.31cqw;
  height: 4.80cqw;
  padding-inline: .8cqw;
  background-image: url("/redesign-art/jackpot/paper-round.webp");
  font-size: 2.20cqw;
}

.jackpot-capacity {
  position: absolute;
  inset: 2.70cqw auto auto 69.60cqw;
  box-sizing: border-box;
  display: grid;
  align-items: center;
  width: 28.32cqw;
  height: 4.99cqw;
  padding: .62cqw .79cqw;
  border: max(2px, .22cqw) solid var(--jp-ink);
  border-radius: 1.48cqw;
  background: var(--jp-cream) var(--jp-paper) center;
  box-shadow: 0 .30cqw var(--jp-ink);
}

.jackpot-capacity-track {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  padding-inline: 2.65cqw .4cqw;
  border: max(2px, .20cqw) solid var(--jp-ink);
  border-radius: .95cqw;
  background: #f2dfbd;
  font: italic 900 2.13cqw/1.05 var(--jp-display);
  letter-spacing: -.05em;
  text-align: center;
  text-shadow: .4px 0 currentColor;
  white-space: nowrap;
}

.jackpot-capacity-track svg { position: absolute; left: .78cqw; width: 2.15cqw; }
.jackpot-capacity-copy strong { margin-right: .22em; font: inherit; }

.jackpot-capacity-fill {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--jp-yellow);
  transition: width .32s ease-out;
}

.jackpot-stage {
  position: relative;
  min-width: 0;
  margin-inline: .69cqw;
}

.jackpot-stage-tools {
  position: absolute;
  z-index: 3;
  inset: 79.5% 25% auto;
  display: grid;
  justify-items: center;
  gap: 2px;
  pointer-events: none;
}

.jackpot-clock {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: .52em;
  padding: .31em .73em .35em;
  border: 2px solid var(--jp-ink);
  border-radius: .5em;
  background: var(--jp-cream) var(--jp-paper) center;
  box-shadow: 0 3px var(--jp-ink);
  font-size: clamp(10px, 1.25cqw, 20px);
  font-weight: 850;
  line-height: 1.04;
}

.jackpot-clock strong {
  font: italic 900 clamp(15px, 2.25cqw, 35px)/1 var(--jp-display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jackpot-game[data-phase="betting"] .jackpot-clock { background: var(--jp-mint); }
.jackpot-game[data-phase="spinning"] .jackpot-clock { background: var(--jp-yellow); }
.jackpot-network { background: var(--jp-cream); padding: .2em .5em; font-size: .85rem; font-weight: 850; text-align: center; }

.jackpot-result-row, .jackpot-winner {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.jackpot-winner {
  color: var(--jp-ink);
  font: italic 900 2.95cqw/1 var(--jp-display);
  letter-spacing: -.058em;
  white-space: nowrap;
  text-shadow: .45px 0 currentColor;
}

.jackpot-winner > strong, .jackpot-ticket {
  position: absolute;
  left: 50.43%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  padding-inline: 1em;
  font: inherit;
}

.jackpot-winner > strong {
  top: 65.4%;
  width: 24.46cqw;
  height: 5.93cqw;
  padding-top: .02em;
  padding-bottom: .18em;
  padding-inline: .46em;
  background: url("/redesign-art/jackpot/paper-winner.webp") center / 100% 100% no-repeat;
}

.jackpot-winner strong span {
  min-width: 0;
  overflow: hidden;
  transform: rotate(-5deg);
  text-overflow: ellipsis;
}

.jackpot-winner .jackpot-ticket {
  top: 84.7%;
  width: 15.95cqw;
  height: 4.03cqw;
  background: url("/redesign-art/jackpot/paper-ticket.webp") center / 100% 100% no-repeat;
  font-size: 1.90cqw;
}
.jackpot-ticket span { transform: rotate(-4deg); }

.jackpot-game .jackpot-proof-button {
  position: absolute;
  z-index: 1;
  inset: 78.8% auto auto 75.08%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55cqw;
  width: 18.35cqw;
  height: 3.66cqw;
  padding-inline: .42em;
  border: none;
  border-radius: 0;
  background: url("/redesign-art/jackpot/paper-proof.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  font: italic 900 1.56cqw/1 var(--jp-display);
  text-shadow: .45px 0 currentColor;
  letter-spacing: -.04em;
  pointer-events: auto;
  white-space: nowrap;
}

.jackpot-proof-button:hover:not(:disabled) { filter: brightness(1.12); }
.jackpot-proof-button svg { flex: 0 0 2.03cqw; width: 2.03cqw; }

.jackpot-details {
  display: grid;
  grid-template-columns: minmax(0, 1.883fr) minmax(0, 1fr);
  gap: 1.20cqw;
  align-items: start;
  margin: 1.39cqw 2.08cqw 0;
}

.jackpot-round-details {
  display: grid;
  min-width: 0;
  gap: .46cqw;
}

.jackpot-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  align-content: start;
}

.jackpot-round-details .jackpot-panel::before {
  position: absolute;
  z-index: -1;
  inset: 1.72cqw -.15cqw -.13cqw -.25cqw;
  background: url("/redesign-art/jackpot/paper-chances.webp") center / 100% 100% no-repeat;
  content: "";
}

.jackpot-odds-panel {
  min-height: 14.50cqw;
  gap: .91cqw;
  padding: 3.97cqw 1.01cqw .97cqw;
}

.jackpot-sticker {
  position: absolute;
  inset: 0 auto auto .06cqw;
  width: 20.11cqw;
  height: 3.97cqw;
  background: url("/redesign-art/jackpot/label-odds.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

.jackpot-bank-header .jackpot-sticker {
  inset-inline-start: -.20cqw;
  width: 16.14cqw;
  height: 3.34cqw;
  background-image: url("/redesign-art/jackpot/label-pool.webp");
}

.jackpot-share-track {
  display: flex;
  width: 100%;
  height: 3.50cqw;
  overflow: hidden;
  border: max(2px, .17cqw) solid var(--jp-ink);
  border-radius: .91cqw;
  background: #f1d7af;
  box-shadow: 0 .17cqw var(--jp-ink);
}

.jackpot-share-track > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  background: var(--jackpot-owner-color);
  box-shadow: inset -1px 0 var(--jp-ink);
  font: italic 900 2.30cqw/.94 var(--jp-display);
  text-shadow: .55px 0 currentColor;
  letter-spacing: -.06em;
  white-space: nowrap;
}

.jackpot-share-track > span:last-child { box-shadow: none; }

.jackpot-players, .jackpot-bank-items {
  display: grid;
  grid-auto-flow: column;
  gap: .7cqw;
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: #b23a6b #fae2ba;
}

.jackpot-players { grid-auto-columns: calc((100% - 2.1cqw) / 4); }

.jackpot-player {
  display: flex;
  align-items: center;
  gap: .61cqw;
  min-width: 0;
  height: 5.03cqw;
  padding: .20cqw .43cqw .20cqw .53cqw;
  border: max(1px, .12cqw) solid var(--jp-ink);
  border-radius: .76cqw;
  background: var(--jp-cream) var(--jp-paper) center;
  box-shadow: inset 0 -.19cqw var(--jp-ink);
}

.jackpot-player-face {
  flex: 0 0 4.63cqw;
  height: 4.44cqw;
  overflow: hidden;
  border: 1px solid var(--jp-ink);
  border-radius: .54cqw;
  background: var(--jackpot-owner-color);
  font: italic 900 2.25cqw/1 var(--jp-display);
}

.jackpot-player-label {
  position: relative;
  display: flex;
  flex: 1;
  align-items: baseline;
  min-width: 0;
  padding-bottom: .50em;
  font: italic 900 1.56cqw/.95 var(--jp-display);
  text-shadow: .25px 0 currentColor;
  letter-spacing: -.071em;
  white-space: nowrap;
}

.jackpot-player-label::after {
  position: absolute;
  inset: auto 4% 0 0;
  height: .38em;
  clip-path: polygon(0 90%, 7% 24%, 44% 10%, 95% 0, 100% 26%, 53% 51%, 42% 88%, 12% 100%, 13% 77%);
  background: var(--jackpot-owner-color);
  content: "";
}

.jackpot-player strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jackpot-player-share { flex: none; margin-left: .1em; white-space: pre; }

.jackpot-bank-panel {
  min-height: 10.70cqw;
  padding: 3.45cqw 1.01cqw .74cqw;
}

.jackpot-round-details .jackpot-bank-panel::before {
  inset: 1.43cqw -.42cqw -.06cqw -.32cqw;
  background-image: url("/redesign-art/jackpot/paper-skins.webp");
}

.jackpot-bank-items {
  grid-auto-columns: calc((100% - 3.5cqw) / 6);
  overscroll-behavior-inline: contain;
  overflow-anchor: none;
}

.jackpot-bank-scroll {
  position: absolute;
  top: .54cqw;
  inset-inline-end: .8cqw;
  display: flex;
  gap: 5px;
}

.jackpot-bank-scroll button {
  display: grid;
  place-items: center;
  width: clamp(25px, 2cqw, 32px);
  height: clamp(23px, 1.75cqw, 28px);
  padding: 0 0 .1em;
  border: 2px solid var(--jp-ink);
  border-radius: 5px;
  background: var(--jp-yellow);
  box-shadow: 1px 2px var(--jp-ink);
  color: var(--jp-ink);
  font: 900 clamp(19px, 1.7cqw, 27px)/.7 var(--jp-display);
}

.jackpot-bank-scroll button:hover:not(:disabled) { background: var(--jp-mint); }
.jackpot-bank-scroll button:disabled { opacity: .52; box-shadow: none; }

.jackpot-odds-empty,
.jackpot-bank-empty {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.jackpot-odds-empty {
  min-height: clamp(66px, 8.5cqw, 135px);
  border: 2px solid var(--jp-ink);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), #50302270 0) 0 0 / 25% 100% repeat-x,
    repeating-linear-gradient(-35deg, transparent 0 5px, #af824f26 5px 7px),
    #f7dfb2 var(--jp-paper) center;
  box-shadow: 0 2px var(--jp-ink);
}

.jackpot-bank-empty { min-height: 6.22cqw; }

.jackpot-bank-empty-slots {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7cqw;
}

.jackpot-bank-empty-slots span {
  border: 1px solid #3321128c;
  border-radius: .65cqw;
  background:
    radial-gradient(circle, #62422b8c 1px, transparent 1.7px) center 3px / 9px 5px repeat-x,
    radial-gradient(circle, #62422b8c 1px, transparent 1.7px) center calc(100% - 3px) / 9px 5px repeat-x,
    repeating-linear-gradient(-35deg, transparent 0 6px, #af824f1c 6px 8px),
    #f6e2bf var(--jp-paper) center;
  box-shadow: 0 2px #65492f3d;
}

.jackpot-empty-ticket {
  position: relative;
  isolation: isolate;
  padding: .28em .75em .43em;
  color: var(--jp-ink);
  font: italic 900 clamp(18px, 1.58cqw, 26px)/1 var(--jp-display);
  text-align: center;
  transform: rotate(-2deg);
}

.jackpot-empty-ticket::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: url("/redesign-art/jackpot/paper-winner.webp") center / 100% 100% no-repeat;
}

.jackpot-empty-ticket::after {
  position: absolute;
  inset: auto 18% .30em 16%;
  height: 2px;
  transform: rotate(-3deg);
  background: var(--jp-pink);
  content: "";
}

.jackpot-bank-item {
  position: relative;
  display: grid;
  align-content: end;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  height: 6.22cqw;
  overflow: hidden;
  padding: .26cqw .38cqw .42cqw;
  border: max(1px, .10cqw) solid var(--jp-ink);
  border-radius: .65cqw;
  background: color-mix(in srgb, var(--jackpot-owner-color) 17%, #ffe5d2);
  box-shadow: inset 0 -.22cqw var(--jackpot-owner-color);
  line-height: 1.08;
  text-align: center;
}

.jackpot-bank-owner {
  position: absolute;
  inset: .26cqw .31cqw auto;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  font-size: clamp(8px, .59cqw, 10px);
  font-weight: 800;
  color: #4e3b35;
}

.jackpot-bank-owner span, .jackpot-skin-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jackpot-bank-owner time { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jackpot-bank-price { font-size: clamp(13px, 1.05cqw, 17px); font-weight: 850; }
.jackpot-bank-item .jackpot-skin-name { font-size: clamp(11px, .88cqw, 14px); }

.jackpot-skin-art {
  display: grid;
  width: 100%;
  height: 3.24cqw;
  place-items: center;
  color: #604935;
}

.jackpot-skin-art img { width: 100%; height: 100%; padding: 0; object-fit: contain; }
.jackpot-credit-art svg { width: min(100%, 5.27cqw); max-height: 100%; }
.jackpot-bank-item .jackpot-skin-art img { transform: scale(1.30); }
.jackpot-inventory-card .jackpot-skin-art img { transform: scale(1.23); }
.jackpot-skin-art .skin-preview-label { font-size: .75rem; }

.jackpot-inventory {
  min-height: 25.35cqw;
  gap: .63cqw;
  padding: .68cqw 1.30cqw 1.20cqw 1.15cqw;
}

.jackpot-inventory::before {
  position: absolute;
  z-index: -1;
  inset: 0 -.18cqw -.25cqw -.38cqw;
  background: url("/redesign-art/jackpot/paper-inventory.webp") center / 100% 100% no-repeat;
  content: "";
}

.jackpot-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jackpot-tabs button, .jackpot-small-button, .jackpot-submit {
  border: 2px solid var(--jp-ink);
  border-radius: 8px;
  color: var(--jp-ink);
  background: var(--jp-cream);
  cursor: pointer;
}

.jackpot-tabs button {
  min-height: 2.76cqw;
  padding: .25em .55em;
  background: var(--jp-cream) var(--jp-paper) center;
  border-radius: .69cqw;
  font: 850 clamp(13px, 1.35cqw, 22px)/1.06 var(--font-interface, system-ui);
  letter-spacing: -.03em;
}

.jackpot-tabs button + button { margin-left: -2px; }
.jackpot-tabs button[aria-selected="true"] { background: var(--jp-yellow); }

.jackpot-inventory form, .jackpot-inventory [role="tabpanel"] {
  display: grid;
  align-content: start;
  gap: .70cqw;
  min-width: 0;
}

.jackpot-inventory-heading {
  display: flex;
  align-items: center;
  gap: .40cqw;
  min-height: 2.16cqw;
}

.jackpot-inventory-heading > span {
  padding: .18em .56em .26em;
  border: max(1px, .12cqw) solid var(--jp-ink);
  border-radius: .47cqw;
  background: var(--jp-mint);
  box-shadow: 0 .08cqw var(--jp-ink);
  font-size: clamp(9px, .93cqw, 15px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.jackpot-own-items { margin-inline-start: auto; }

.jackpot-own-items strong {
  margin-left: .25em;
  font: italic 900 1.37cqw/1 var(--jp-display);
  white-space: nowrap;
}

.jackpot-shop-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35em;
}

.jackpot-shop-button svg { width: 1.05em; height: 1.05em; flex: none; }

.jackpot-game .jackpot-shop-empty {
  display: grid;
  place-items: center;
  min-height: 11.45cqw;
}

.jackpot-game .jackpot-shop-button {
  padding-inline: .62em;
}

[data-jackpot-shop-host] {
  --shop-text: var(--jp-ink);
  --shop-field-background: var(--jp-cream) var(--jp-paper) center;
  --shop-balance-background: var(--jp-mint);
  --shop-control-border: 1px solid var(--jp-ink);
  --shop-card-height: max(56px, 5.55cqw);
  --shop-card-border: max(1px, .12cqw) solid var(--jp-pink);
  --shop-action-background: var(--jp-yellow);
  --shop-action-color: var(--jp-ink);
  --shop-action-font: italic 900 clamp(14px, 1.28cqw, 21px)/1.06 var(--jp-display);
}

@container (width > 700px) {
  [data-jackpot-shop-host] {
    --shop-grid-height: calc(3 * max(56px, 5.55cqw) + 2 * .63cqw);
    --shop-grid-overflow: auto;
    --shop-scrollbar: #b23a6b #fae2ba;
  }
}

.jackpot-picker-tools { position: static; }
.jackpot-picker-tools summary {
  width: clamp(17px, 1.13cqw, 20px);
  height: clamp(17px, 1.13cqw, 20px);
  border: 1px solid var(--jp-ink);
  background: radial-gradient(circle, #281e18 0 26%, transparent 35%) center / 3px 3px;
  cursor: pointer;
  list-style: none;
}
.jackpot-picker-tools summary::-webkit-details-marker { display: none; }

.jackpot-picker-panel {
  position: absolute;
  z-index: 3;
  inset: 6.7cqw 1.2cqw auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px;
  border: 2px solid var(--jp-ink);
  border-radius: 8px;
  background: var(--jp-cream) var(--jp-paper) center;
  box-shadow: 2px 3px var(--jp-ink);
}

.jackpot-game :is(.jackpot-picker-panel input, .jackpot-picker-panel select) {
  width: 100%;
  min-width: 0;
  padding: .42em .55em;
  border: 1px solid var(--jp-ink);
  border-radius: 6px;
  color: var(--jp-ink);
  background: var(--jp-mint);
  font-size: clamp(12px, .98cqw, 15px);
}

.jackpot-game input::placeholder { color: #385746; }

.jackpot-inventory-grid {
  --jp-inventory-card-height: 5.55cqw;
  --jp-inventory-card-gap: .63cqw;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jp-inventory-card-gap);
  max-height: calc(2 * var(--jp-inventory-card-height) + var(--jp-inventory-card-gap));
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b23a6b #fae2ba;
}

.jackpot-inventory-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1.03fr);
  align-items: center;
  gap: .35cqw;
  min-width: 0;
  height: var(--jp-inventory-card-height);
  overflow: hidden;
  padding: .33cqw .53cqw;
  border: max(1px, .12cqw) solid var(--jp-pink);
  border-radius: .66cqw;
  background: #ffdfcd;
  line-height: 1.1;
  cursor: pointer;
}
.jackpot-inventory-card input { position: absolute; opacity: 0; }
.jackpot-inventory-card:has(input:focus-visible) { outline: 2px solid #851a46; outline-offset: -3px; }
.jackpot-inventory-card:has(input:checked) { background: #ffc8d7; box-shadow: inset 0 0 0 1px #b8004d; }
.jackpot-inventory-card:has(input:disabled) { cursor: default; }
.jackpot-inventory-card .jackpot-skin-art { height: 4.42cqw; }
.jackpot-inventory-caption { display: grid; min-width: 0; gap: .28em; }
.jackpot-inventory-caption .jackpot-skin-name { font-size: clamp(11px, .96cqw, 15px); font-weight: 750; }

.jackpot-selection-box {
  position: absolute;
  top: .26cqw;
  right: .28cqw;
  display: grid;
  place-items: center;
  width: clamp(14px, .96cqw, 17px);
  aspect-ratio: 1;
  border: 1px solid var(--jp-ink);
  border-radius: 4px;
  background: #fff4dd;
}

.jackpot-inventory-card :checked + .jackpot-selection-box { background: var(--jp-pink); color: white; }
.jackpot-inventory-card :checked + .jackpot-selection-box::before { content: "✓"; font-size: 12px; font-weight: 900; }
.jackpot-inventory-card :disabled:not(:checked) + .jackpot-selection-box { opacity: .45; }

.jackpot-game:is([data-phase="settled"], [data-phase="spinning"]) .jackpot-selection-box { display: none; }

.jackpot-game .jackpot-submit {
  width: 100%;
  min-height: 3.98cqw;
  margin-top: .82cqw;
  padding: .18em .4em .22em;
  background: var(--jp-yellow);
  box-shadow: 0 .19cqw var(--jp-ink);
  font: italic 900 clamp(21px, 2.13cqw, 34px)/1.08 var(--jp-display);
  letter-spacing: -.045em;
}

.jackpot-game .jackpot-submit:disabled { background: #b0a69b; color: #5c5149; box-shadow: none; opacity: .82; }
.jackpot-game .jackpot-submit:hover:not(:disabled) { background: #fff53e; }
.jackpot-game:is([data-phase="settled"], [data-phase="spinning"]) .jackpot-submit:disabled {
  color: transparent;
  border: none;
  background: url("/redesign-art/jackpot/label-closed.webp") center / 100% 100% no-repeat;
  opacity: 1;
  min-height: 4.10cqw;
}

.jackpot-game .jackpot-small-button:not(.jackpot-proof-button) {
  padding: .40em .65em;
  box-shadow: 0 2px var(--jp-ink);
  font: 750 clamp(12px, .99cqw, 16px)/1.1 var(--font-interface, system-ui);
}
.jackpot-small-button:not(.jackpot-proof-button):hover:not(:disabled) { background: var(--jp-yellow); }
.jackpot-secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.35cqw 2.08cqw 0; }
.jackpot-secondary-actions button:first-child { background: #ff9bc5; }
.jackpot-empty, .jackpot-feedback { padding: .2em .15em; color: #604935; font-size: .875rem; }
.jackpot-feedback { color: #8f1540; font-weight: 750; }

.jackpot-rules { display: grid; gap: .85em; }
.jackpot-results { display: grid; gap: .45em; margin: 0; padding: 0; list-style: none; }
.jackpot-results li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) auto;
  align-items: center;
  gap: .5em;
  border-bottom: 1px solid currentColor;
  padding-block: .25em .55em;
}
.jackpot-results small { display: block; }
.jackpot-results strong { overflow-wrap: anywhere; }

@container (max-width: 900px) {
  .jackpot-odds-panel { min-height: 139px; }
  .jackpot-players { grid-auto-columns: max(112px, calc((100% - 2.1cqw) / 4)); }
  .jackpot-player { height: 41px; }
  .jackpot-player-label { font-size: clamp(13px, 1.65cqw, 23px); }
  .jackpot-player-face { flex-basis: 33px; height: 33px; }
  .jackpot-bank-item { height: 78px; }
  .jackpot-bank-empty { min-height: 78px; }
  .jackpot-bank-item .jackpot-skin-art { height: 31px; }
  .jackpot-credit-art svg { width: 47px; }
  .jackpot-bank-items { grid-auto-columns: max(96px, calc((100% - 3.5cqw) / 6)); }
  .jackpot-inventory-grid { --jp-inventory-card-height: 67px; }
  .jackpot-inventory-card .jackpot-skin-art { height: 34px; }
}

@container (max-width: 700px) {
  .jackpot-heading { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 10px 10px; }
  .jackpot-title { position: relative; width: 100%; height: auto; aspect-ratio: 512/168; inset: auto; grid-column: 1; }
  .jackpot-heading-stat, .jackpot-capacity {
    position: relative; inset: auto; width: 100%; height: 40px; align-self: center;
    font-size: clamp(18px, 5cqw, 30px);
  }
  .jackpot-heading-stat:first-of-type strong { border-width: 1.5px; box-shadow: 2px 2px var(--jp-ink); }
  .jackpot-round { font-size: clamp(17px, 4.7cqw, 25px); }
  .jackpot-capacity { padding: 4px 6px; border-radius: 8px; }
  .jackpot-capacity-track { font-size: clamp(13px, 4cqw, 24px); padding-inline: 18px 2px; border-radius: 6px; }
  .jackpot-capacity-track svg { left: 3px; width: 14px; }
  .jackpot-stage { margin-inline: 8px; }
  .jackpot-stage-tools { inset-inline: 15%; top: 81%; }
  .jackpot-clock { padding: .2em .4em; }
  .jackpot-winner { font-size: clamp(17px, 4.6cqw, 26px); }
  .jackpot-winner > strong { top: 67%; width: min(178px, 48cqw); height: 38px; }
  .jackpot-winner .jackpot-ticket { top: 84%; width: min(117px, 32cqw); height: 27px; font-size: clamp(11px, 3cqw, 18px); }
  .jackpot-game .jackpot-proof-button { inset: auto 0 -35px auto; width: 128px; height: 28px; font-size: 12px; }
  .jackpot-proof-button svg { flex-basis: 14px; width: 14px; }
  .jackpot-details { grid-template-columns: minmax(0, 1fr); gap: 11px; margin: 16px 10px 0; }
  .jackpot-round-details { display: contents; }
  .jackpot-odds-panel { min-height: 120px; grid-row: 1; gap: 8px; padding: 31px 11px 10px; }
  .jackpot-inventory { grid-row: 2; }
  .jackpot-game[data-phase="settled"] .jackpot-details { margin-top: 39px; }
  .jackpot-round-details .jackpot-panel::before { inset-block-start: 15px; }
  .jackpot-sticker { width: 155px; height: 31px; }
  .jackpot-bank-header .jackpot-sticker { width: 129px; height: 27px; }
  .jackpot-share-track { height: 29px; border-radius: 8px; }
  .jackpot-share-track > span { font-size: 15px; }
  .jackpot-players, .jackpot-bank-items { gap: 6px; }
  .jackpot-player { padding-inline: 4px; gap: 5px; border-radius: 6px; }
  .jackpot-player-face { border-radius: 4px; font-size: 19px; }
  .jackpot-bank-panel { min-height: 108px; padding: 32px 10px 7px; }
  .jackpot-bank-scroll { top: 3px; inset-inline-end: 9px; }
  .jackpot-bank-items { grid-auto-columns: 95px; }
  .jackpot-bank-item { padding: 4px; border-radius: 6px; }
  .jackpot-inventory { padding: 10px; gap: 8px; border-radius: 11px; min-height: 0; }
  .jackpot-inventory form, .jackpot-inventory [role="tabpanel"] { gap: 7px; }
  .jackpot-tabs button { min-height: 33px; border-radius: 6px; }
  .jackpot-inventory-heading { min-height: 25px; gap: 5px; }
  .jackpot-inventory-heading > span { border-radius: 4px; }
  .jackpot-own-items strong { font-size: 13px; }
  .jackpot-game .jackpot-shop-empty { min-height: 89px; }
  .jackpot-picker-panel { top: 67px; left: 8px; right: 8px; }
  .jackpot-inventory-grid { --jp-inventory-card-gap: 6px; --jp-inventory-card-height: 68px; }
  .jackpot-inventory-card { border-radius: 6px; padding: 4px; gap: 4px; }
  [data-jackpot-shop-host] {
    --shop-card-height: 68px;
    --shop-card-padding: 4px;
    --shop-card-gap: 4px;
    --shop-grid-gap: 6px;
  }
  .jackpot-game .jackpot-submit { min-height: 43px; }
  .jackpot-game:is([data-phase="settled"], [data-phase="spinning"]) .jackpot-submit:disabled { min-height: 43px; }
  .jackpot-secondary-actions { margin-top: 13px; }
}

@media (max-width: 530px) {
  .jackpot-results li { grid-template-columns: minmax(0, 1fr) auto; }
  .jackpot-results li button { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .jackpot-capacity-fill { transition: none; }
}
