/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.25_@types+node@20.19.43_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.25_@types+node@20.19.43_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/components/jackpot/jackpot-board.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*
 * Jackpot board — "velvet & gold" luxury artwork (Diamond Club).
 * Colours here are illustration, not UI tokens (DESIGN_SYSTEM.md §1.9 奖池板).
 * Every rule is scoped under .jp-theme; sizes are driven by the variables below so the
 * portrait / compact variants only override variables.
 * Animations touch transform / opacity / background-position only and stop under
 * prefers-reduced-motion.
 */

.jp-theme {
  --gold-1: #fffbe6;
  --gold-2: #f6d36b;
  --gold-3: #c9902c;
  --gold-4: #7a4e10;
  --text: #fff6df;
  --muted: #d9c39a;
  --velvet-1: #4a0d1c;
  --velvet-2: #24060e;
  --velvet-3: #0d0306;
  --font-num: 'Noto Serif SC', 'Songti SC', Georgia, 'Times New Roman', serif;
  --font-display: 'Noto Serif SC', 'Songti SC', 'STSong', Georgia, serif;
  --gold-frame: linear-gradient(135deg, #fff8d6 0%, #f2cf62 18%, #a9741c 42%, #f7dc85 58%, #8a5a14 80%, #f2cf62 100%);
  --gold-text: linear-gradient(180deg, #fffdf0 0%, #ffe48a 38%, #d9a33a 62%, #fff0b8 100%);

  /* sizing */
  --gem: 58px;
  --row-h: 72px;
  --amount: clamp(1.35rem, 2.4vw, 2.05rem);
  --gap: 10px;
  color: var(--text);
}

/* ——————————————————————————————————————— shell & background */

.jp-theme.jp-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  padding: 14px 18px 18px;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(255, 214, 140, 0.4), transparent 70%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(120, 18, 42, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(120, 18, 42, 0.55), transparent 70%),
    linear-gradient(180deg, var(--velvet-1) 0%, var(--velvet-2) 45%, var(--velvet-3) 100%);
  box-shadow:
    inset 0 0 0 1px #fff3c4,
    inset 0 0 0 3px #8a5a14,
    inset 0 0 0 4px #e9c25a,
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(255, 200, 100, 0.12);
}

.jp-theme .jp-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

/* Gold damask pattern woven into the velvet. */
.jp-theme .jp-damask {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23f2cf62' stroke-width='1.3'%3E%3Cpath d='M36 6c5 11 14 14 20 30-6 16-15 19-20 30-5-11-14-14-20-30 6-16 15-19 20-30z'/%3E%3Cpath d='M36 22c3 6 7 8 9 14-2 6-6 8-9 14-3-6-7-8-9-14 2-6 6-8 9-14z'/%3E%3Cpath d='M0 0c6 4 8 10 4 16M72 0c-6 4-8 10-4 16M0 72c6-4 8-10 4-16M72 72c-6-4-8-10-4-16'/%3E%3C/g%3E%3Ccircle cx='36' cy='36' r='2.2' fill='%23f2cf62'/%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 85%);
}

/* Slow-turning light beams from a "chandelier" above the board. */
.jp-theme .jp-rays {
  position: absolute;
  left: 50%;
  top: -95%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: repeating-conic-gradient(from 0deg, rgba(255, 220, 150, 0.1) 0deg 5deg, transparent 5deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  mask-image: radial-gradient(circle, #000 18%, transparent 60%);
  animation: jp-spin 60s linear infinite;
}

.jp-theme .jp-chandelier {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 70%;
  height: 160px;
  translate: -50% 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 236, 190, 0.45), rgba(255, 200, 110, 0.12) 45%, transparent 70%);
  filter: blur(6px);
}

.jp-theme .jp-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Floating gold bokeh. */
.jp-theme .jp-bokeh span {
  position: absolute;
  bottom: -24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 245, 210, 0.9), rgba(242, 207, 98, 0.35) 45%, transparent 70%);
  filter: blur(0.6px);
  opacity: 0;
  animation: jp-float 14s linear infinite;
}

/* Filigree corners */
.jp-theme .jp-corner {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 210, 110, 0.55));
}
.jp-theme .jp-corner.tl { top: 4px; left: 4px; }
.jp-theme .jp-corner.tr { top: 4px; right: 4px; transform: scaleX(-1); }
.jp-theme .jp-corner.bl { bottom: 4px; left: 4px; transform: scaleY(-1); }
.jp-theme .jp-corner.br { bottom: 4px; right: 4px; transform: scale(-1, -1); }

/* Twinkling stars */
.jp-theme .jp-sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.jp-theme .jp-sparkle-star {
  position: absolute;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 240, 190, 0.95));
  animation: jp-twinkle 4.2s ease-in-out infinite;
}

/* ——————————————————————————————————————— title */

.jp-theme .jp-content {
  position: relative;
  z-index: 1;
}

.jp-theme .jp-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin: 4px auto 12px;
}
.jp-theme .jp-flourish {
  width: 190px;
  height: 57px;
  flex-shrink: 1;
  min-width: 0;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 1px rgba(40, 20, 2, 0.8)) drop-shadow(0 0 5px rgba(255, 210, 110, 0.45));
}
.jp-theme .jp-title-plate {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.jp-theme .jp-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  background: linear-gradient(100deg, #b8862a 0%, #fff4c4 20%, #f2cf62 34%, #a9741c 50%, #fff4c4 66%, #e9c25a 82%, #b8862a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a2c06) drop-shadow(0 0 14px rgba(255, 210, 110, 0.5));
  animation: jp-text-shine 6s linear infinite;
}
.jp-theme .jp-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--gold-2);
  text-indent: 0.4em;
}
.jp-theme .jp-subtitle::before,
.jp-theme .jp-subtitle::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2));
}
.jp-theme .jp-subtitle::after {
  background: linear-gradient(90deg, var(--gold-2), transparent);
}

/* ——————————————————————————————————————— rows */

.jp-theme .jp-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: calc(var(--gap) + 6px);
  align-items: stretch;
}
.jp-theme .jp-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

.jp-theme .jp-row {
  display: grid;
  grid-template-columns: calc(var(--gem) + 18px) minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 0;
  text-align: left;
  cursor: default;
  animation: jp-rise 0.6s ease both;
}
.jp-theme .jp-row:nth-child(2) { animation-delay: 0.06s; }
.jp-theme .jp-row:nth-child(3) { animation-delay: 0.12s; }
.jp-theme .jp-row:nth-child(4) { animation-delay: 0.18s; }
.jp-theme .jp-row:nth-child(5) { animation-delay: 0.24s; }

/* Gem medal */
.jp-theme .jp-medal {
  position: relative;
  justify-self: center;
  width: var(--gem);
  height: var(--gem);
}
.jp-theme .jp-halo {
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity: 0.55;
  animation: jp-pulse 3.4s ease-in-out infinite;
}
.jp-theme .jp-gem {
  position: relative;
  display: block;
  width: 128%;
  height: 128%;
  margin: -16% 0 0 -14%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px var(--glow));
}
.jp-theme .jp-glint {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 46%;
  height: 46%;
  opacity: 0;
  filter: drop-shadow(0 0 5px #ffffff);
  animation: jp-glint 4.8s ease-in-out infinite;
  animation-delay: var(--glint-delay, 0s);
}
/* Top tier: slow golden rays behind a brighter halo */
.jp-theme .jp-medal.is-featured .jp-halo { inset: -38%; opacity: 0.85; }
.jp-theme .jp-rays-mini {
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 160, 0.42) 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%);
  mask-image: radial-gradient(circle, #000 18%, transparent 68%);
  animation: jp-spin 18s linear infinite;
}
.jp-theme .jp-medal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}
.jp-theme .jp-ribbon {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  padding: 1px 9px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  color: #2a1606;
  background: linear-gradient(180deg, #fff3c4 0%, #f2cf62 45%, #b8862a 100%);
  box-shadow: 0 2px 0 #5a3a0a, 0 0 8px rgba(255, 210, 110, 0.5);
  border: 1px solid #fff8d6;
}

/* Value bar: gold frame around tier-coloured velvet */
.jp-theme .jp-bar {
  position: relative;
  height: var(--row-h);
  min-width: 0;
  padding: 3px;
  border-radius: 14px;
  background: var(--gold-frame);
  box-shadow: 0 0 14px rgba(255, 205, 100, 0.28), 0 6px 14px rgba(0, 0, 0, 0.5);
}
.jp-theme .jp-row:first-child .jp-bar {
  box-shadow: 0 0 22px rgba(255, 225, 150, 0.55), 0 6px 14px rgba(0, 0, 0, 0.5);
}
.jp-theme .jp-bar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(40, 20, 4, 0.8);
  background:
    radial-gradient(ellipse 60% 90% at 28% 30%, var(--tier-light), transparent 70%),
    radial-gradient(ellipse 80% 120% at 100% 100%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(90deg, var(--tier-deep) 0%, var(--tier-dark) 50%, var(--tier-deep) 100%);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.12), inset 0 -6px 12px rgba(0, 0, 0, 0.45);
}
.jp-theme .jp-bar-inner::before {
  /* fine velvet sparkle dust */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 0.8px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 230, 160, 0.45) 0 0.8px, transparent 1.6px);
  background-size: 17px 17px, 29px 29px;
  background-position: 0 0, 9px 11px;
  opacity: 0.35;
  animation: jp-dust 9s linear infinite;
}
.jp-theme .jp-bar-shine {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 32%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.07) 30%, rgba(255, 250, 225, 0.42) 50%, rgba(255, 255, 255, 0.07) 70%, transparent 100%);
  transform: skewX(-18deg);
  animation: jp-sweep 5.5s ease-in-out infinite;
  animation-delay: var(--shine-delay, 0s);
}

.jp-theme .tone-diamond { --tier-light: rgba(255, 120, 140, 0.45); --tier-deep: #7a1424; --tier-dark: #2a060c; }
.jp-theme .tone-amethyst { --tier-light: rgba(200, 120, 255, 0.45); --tier-deep: #5a1f8a; --tier-dark: #1a0830; }
.jp-theme .tone-sapphire { --tier-light: rgba(90, 160, 255, 0.5); --tier-deep: #17469a; --tier-dark: #071632; }
.jp-theme .tone-ruby { --tier-light: rgba(255, 80, 90, 0.5); --tier-deep: #a0141f; --tier-dark: #2e050a; }
.jp-theme .tone-emerald { --tier-light: rgba(60, 230, 140, 0.42); --tier-deep: #127042; --tier-dark: #041d12; }

.jp-theme .jp-amount {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  font-family: var(--font-num);
  font-size: var(--amount);
  font-weight: 900;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(50, 24, 2, 0.95)) drop-shadow(0 0 8px rgba(255, 210, 110, 0.4));
}
.jp-theme .jp-amount .odometer-glyph,
.jp-theme .jp-amount .odometer-sep {
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jp-theme .jp-plaque {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding: 1px 10px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: #2a1606;
  background: linear-gradient(180deg, #fff3c4 0%, #e9c25a 50%, #a9741c 100%);
  border: 1px solid #fff8d6;
  box-shadow: 0 1px 0 #4a2c06;
}

/* ——————————————————————————————————————— winners */

.jp-theme .jp-winners-frame {
  /* Height follows the pool list; the 8 winner rows share it evenly (never scrolls). */
  contain: size;
  min-height: 100%;
  min-width: 0;
  padding: 3px;
  border-radius: 14px;
  background: var(--gold-frame);
  box-shadow: 0 0 14px rgba(255, 205, 100, 0.25), 0 6px 14px rgba(0, 0, 0, 0.5);
}
.jp-theme .jp-winners {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 11px;
  background:
    repeating-linear-gradient(45deg, rgba(242, 207, 98, 0.035) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(242, 207, 98, 0.035) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1e0a0e 0%, #0c0405 100%);
}
.jp-theme .winners-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 6px;
  border-bottom: 1px solid rgba(242, 207, 98, 0.45);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 110, 0.18), transparent 70%), linear-gradient(180deg, #3a1a12, #160808);
}
.jp-theme .winners-head strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jp-theme .winners-gem {
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(145deg, #ffffff, #a9c1e0);
  filter: drop-shadow(0 0 4px rgba(220, 235, 255, 0.9));
}
.jp-theme .winners-list {
  /* Exactly 8 equal rows filling the frame (docs/JACKPOT.md §4): fixed, no scrolling. */
  flex: 1;
  display: grid;
  grid-template-rows: repeat(8, minmax(0, 1fr));
  min-height: 0;
  margin: 0;
  padding: 2px 0;
  overflow: hidden;
  list-style: none;
}
.jp-theme .winners-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  -moz-column-gap: 8px;
       column-gap: 8px;
  row-gap: 1px;
  min-height: 0;
  padding: 0 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 207, 98, 0.14);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}
.jp-theme .winners-list .w-prize { overflow: hidden; text-overflow: ellipsis; }
.jp-theme .winners-list li.is-placeholder {
  display: block;
  background: repeating-linear-gradient(90deg, rgba(242, 207, 98, 0.05) 0 6px, transparent 6px 12px) center / 60% 1px no-repeat;
}
.jp-theme .winners-list li:last-child { border-bottom: none; }
.jp-theme .winners-list .w-gem {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 3px rgba(255, 240, 200, 0.55));
}
/* In-game wins: the game's artwork, framed in gold */
.jp-theme .winners-list .w-thumb {
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(242, 207, 98, 0.7);
  filter: none;
}
.jp-theme .winners-list .w-name { overflow: hidden; text-overflow: ellipsis; color: var(--gold-1); font-weight: 700; }
.jp-theme .winners-list .w-prize { font-size: 10px; color: var(--muted); }
.jp-theme .winners-list .w-amt {
  font-family: var(--font-num);
  font-weight: 900;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jp-theme .winners-list .w-at { font-size: 10px; color: rgba(255, 246, 223, 0.5); text-align: right; }
.jp-theme .winners-list li.is-empty {
  display: block;
  grid-row: 1 / -1;
  align-self: center;
  padding: 24px 8px;
  text-align: center;
  color: rgba(255, 246, 223, 0.45);
}
.jp-theme .winners-list li.is-new { animation: jp-new-winner 2.6s ease-out; }


/* ——————————————————————————————————————— toggle button */

.jp-theme .jp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: #2a1606;
  background: linear-gradient(180deg, #fff3c4 0%, #e9c25a 50%, #a9741c 100%);
  border: 1px solid #fff8d6;
  box-shadow: 0 2px 0 #4a2c06, 0 0 10px rgba(255, 210, 110, 0.35);
  cursor: pointer;
}
.jp-theme .jp-toggle:focus-visible { outline: 2px solid #fff6c8; outline-offset: 2px; }
.jp-theme .jp-toggle-corner { position: absolute; z-index: 4; top: 12px; right: 14px; }

/* ——————————————————————————————————————— collapsed bar */

.jp-theme.jp-collapsed {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--velvet-1), var(--velvet-2) 60%, var(--velvet-1));
  box-shadow: inset 0 0 0 1px #fff3c4, inset 0 0 0 2px #8a5a14, 0 6px 16px rgba(0, 0, 0, 0.4);
}
.jp-theme .jp-collapsed-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jp-theme .jp-mini-gems { display: inline-flex; gap: 2px; }
.jp-theme .jp-mini-gems svg { width: 24px; height: 22px; filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)); }

/* ——————————————————————————————————————— compact strip (in game) */

.jp-theme.jp-compact {
  --gem: 34px;
  --row-h: 38px;
  --amount: 1.02rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(180deg, var(--velvet-1) 0%, var(--velvet-3) 100%);
  border-bottom: 1px solid rgba(242, 207, 98, 0.55);
  box-shadow: inset 0 -1px 0 #8a5a14;
}
.jp-theme .jp-compact-list {
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.jp-theme .jp-compact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 0 158px;
  min-width: 158px;
}
.jp-theme .jp-compact-item .jp-bar { flex: 1; border-radius: 10px; padding: 2px; }
.jp-theme .jp-compact-item .jp-bar-inner { border-radius: 8px; }
.jp-theme .jp-compact-name {
  position: relative;
  z-index: 1;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

/* ——————————————————————————————————————— celebration */

.jp-celebrate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8, 3, 4, 0.78);
  animation: jp-fade 0.25s ease-out;
}
.jp-theme.jp-celebrate {
  --gem: 96px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: min(440px, 100%);
  padding: 30px 22px 22px;
  border-radius: 22px;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 214, 140, 0.45), transparent 70%), linear-gradient(180deg, var(--velvet-1), var(--velvet-3));
  box-shadow: inset 0 0 0 1px #fff3c4, inset 0 0 0 3px #8a5a14, inset 0 0 0 4px #e9c25a, 0 0 50px rgba(255, 210, 110, 0.55);
  animation: jp-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.jp-theme .jp-celebrate .jp-medal { width: 96px; height: 96px; margin: 22px auto 10px; }
.jp-theme .jp-celebrate-title {
  margin: 14px 0 2px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jp-theme .jp-celebrate-amount {
  margin: 4px 0 6px;
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #4a2c06) drop-shadow(0 0 14px rgba(255, 210, 110, 0.6));
}
.jp-theme .jp-celebrate-note { margin: 0 0 16px; font-size: 13px; color: var(--muted); }

/* ——————————————————————————————————————— odometer (from onlineslotsystem RollingNumber) */

.jp-theme .odometer {
  --digit-w: 0.62em;
  --sep-w: 0.3em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'kern' 0;
  font-kerning: none;
  letter-spacing: 0;
}
.jp-theme .odometer-slot {
  position: relative;
  flex: 0 0 var(--digit-w);
  width: var(--digit-w);
  height: 1em;
  overflow: hidden;
  contain: size layout paint;
}
.jp-theme .odometer-slot.is-lead,
.jp-theme .odometer-sep.is-lead { display: none; }
.jp-theme .odometer-window {
  position: relative;
  display: block;
  width: 100%;
  height: 1em;
  overflow: hidden;
}
.jp-theme .odometer-strip {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  will-change: transform;
  transition: transform 0.16s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.jp-theme .odometer-strip.is-snap { transition: none; }
.jp-theme .odometer-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1em;
  line-height: 1em;
  margin-bottom: 0;
}
.jp-theme .odometer-sep {
  display: inline-flex;
  flex: 0 0 var(--sep-w);
  align-items: center;
  justify-content: center;
  width: var(--sep-w);
  height: 1em;
}
.jp-theme .odometer-sep.is-dot { font-weight: 900; }

/* ——————————————————————————————————————— keyframes */

@keyframes jp-spin { to { rotate: 360deg; } }
@keyframes jp-float {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.85; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-460px) scale(1.1); opacity: 0; }
}
@keyframes jp-twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  72% { opacity: 1; transform: scale(1) rotate(45deg); }
  84% { opacity: 0.2; transform: scale(0.5) rotate(90deg); }
}
@keyframes jp-glint {
  0%, 70%, 100% { opacity: 0; transform: scale(0.1) rotate(0deg); }
  78% { opacity: 1; transform: scale(1) rotate(30deg); }
  88% { opacity: 0; transform: scale(0.3) rotate(80deg); }
}
@keyframes jp-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.92); }
  50% { opacity: 0.75; transform: scale(1.06); }
}
@keyframes jp-sweep {
  0%, 55% { transform: translateX(0) skewX(-18deg); }
  100% { transform: translateX(560%) skewX(-18deg); }
}
@keyframes jp-dust {
  from { background-position: 0 0, 9px 11px; }
  to { background-position: 17px 34px, 38px 40px; }
}
@keyframes jp-text-shine {
  from { background-position: 0% 0; }
  to { background-position: 220% 0; }
}
@keyframes jp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes jp-rise {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes jp-new-winner {
  0% { background: rgba(255, 210, 110, 0.45); }
  100% { background: transparent; }
}
@keyframes jp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jp-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* ——————————————————————————————————————— responsive */

@media (max-width: 640px) {
  .jp-theme { --gem: 40px; --row-h: 52px; --amount: clamp(0.95rem, 4.4vw, 1.3rem); --gap: 8px; }
  .jp-theme.jp-shell { padding: 10px 10px 12px; }
  .jp-theme .jp-split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 8px; }
  .jp-theme .jp-flourish { width: 92px; height: 28px; margin-bottom: 6px; }
  .jp-theme .jp-title { margin-top: 30px; } /* clear the corner toggle */
  .jp-theme .jp-ribbon { font-size: 9px; padding: 0 6px; margin-top: -6px; }
  .jp-theme .jp-plaque { font-size: 7px; margin-top: 2px; padding: 0 6px; }
  .jp-theme .winners-list li { padding: 0 7px; font-size: 11px; -moz-column-gap: 6px; column-gap: 6px; grid-template-columns: 15px minmax(0, 1fr) auto; }
  .jp-theme .winners-list .w-gem { width: 15px; height: 15px; }
  .jp-theme .jp-corner { width: 32px; height: 32px; }
}

/* Portrait: board pinned under the header (see PORTRAIT_PIN) — keep it short. */
@media (orientation: portrait) {
  .jp-theme.jp-pinned.jp-pinned {
    position: sticky;
    top: var(--space-16); /* site header height (h-16) */
    z-index: 10;
    box-shadow:
      0 0 0 8px var(--color-bg-main),
      inset 0 0 0 1px #fff3c4,
      inset 0 0 0 3px #8a5a14,
      inset 0 0 0 4px #e9c25a,
      0 16px 18px -6px rgba(0, 0, 0, 0.8);
  }
}
@media (orientation: portrait) and (max-width: 900px) {
  .jp-theme { --gem: 31px; --row-h: 42px; --amount: clamp(0.9rem, 4vw, 1.2rem); --gap: 5px; }
  .jp-theme.jp-shell { padding: 8px 8px 10px; }
  .jp-theme .jp-title { margin: 26px auto 6px; } /* clear the corner toggle */
  .jp-theme .jp-title h2 { font-size: clamp(1.05rem, 5vw, 1.6rem); }
  .jp-theme .jp-subtitle { display: none; }
  .jp-theme .jp-flourish { width: 76px; height: 23px; margin-bottom: 3px; }
  .jp-theme .jp-plaque { display: none; }
  .jp-theme .jp-ribbon { font-size: 8px; line-height: 1.3; margin-top: -5px; padding: 0 5px; }
  .jp-theme .jp-row { grid-template-columns: calc(var(--gem) + 12px) minmax(0, 1fr); }
  .jp-theme .winners-head { padding: 5px 4px; }
  .jp-theme .winners-head strong { font-size: 11px; }
  .jp-theme .winners-list li { padding: 0 6px; font-size: 10px; line-height: 1.1; row-gap: 0; }
  .jp-theme .winners-list .w-prize,
  .jp-theme .winners-list .w-at { font-size: 8px; }
  .jp-theme .jp-toggle-corner { top: 8px; right: 8px; padding: 3px 9px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .jp-theme *,
  .jp-theme.jp-celebrate,
  .jp-celebrate-backdrop {
    animation: none !important;
    transition: none !important;
  }
  .jp-theme .jp-sparkle-star,
  .jp-theme .jp-glint,
  .jp-theme .jp-bokeh span { display: none; }
}

