/* ============================================================
   JACKPOT SPIN — premium arcade wheel feature
   Jewel-tone palette: magenta / teal / purple / crimson / gold
   ============================================================ */

/* ---------- page ambience (lobby + machine) ---------- */
.jp-page {
  position: relative;
  background:
    radial-gradient(58% 34% at 50% 0%, rgba(133, 52, 214, .22), transparent 70%),
    radial-gradient(46% 30% at 12% 22%, rgba(236, 38, 118, .12), transparent 72%),
    radial-gradient(46% 30% at 88% 30%, rgba(23, 210, 189, .11), transparent 72%);
}
.jp-loading-state {
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .3px;
}
.jp-loading-state .spinner { width: 26px; height: 26px; flex: 0 0 26px; }
.jp-loading-label { color: var(--muted); }
.jp-machine {
  display: flex; flex-direction: column;
  min-height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top, 0px) - var(--tabbar-h) - 64px - env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(64% 38% at 50% 26%, rgba(136, 54, 226, .27), transparent 74%),
    radial-gradient(50% 28% at 8% 40%, rgba(236, 38, 118, .13), transparent 74%),
    radial-gradient(50% 28% at 92% 42%, rgba(23, 210, 189, .13), transparent 74%);
}

/* ---------- compact header (shared) ---------- */
.spk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.spk-back {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--card);
  border: 1px solid var(--stroke-strong);
  display: grid; place-items: center; color: var(--text);
  transition: transform .12s ease;
}
.spk-back svg { width: 15px; height: 15px; }
.spk-back:active { transform: scale(.94); }
.spk-head-title { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.spk-kicker { font-size: 11px; font-weight: 800; letter-spacing: 2.4px; color: var(--gold); text-shadow: 0 0 12px rgba(245,185,62,.55); }
.spk-name { font-size: 16px; font-weight: 800; color: var(--text); }
.spk-balance {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 6px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--stroke-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 12px rgba(245,185,62,.14);
  font-size: 12.5px; font-weight: 800; color: var(--gold);
}

/* ---------- floating sparkle dust ---------- */
.jp-sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.jp-spark {
  position: absolute; bottom: 6%; width: 4px; height: 4px; border-radius: 50%;
  opacity: 0;
}
.jp-spark.s0 { background: #FFE7A8; box-shadow: 0 0 8px rgba(255,231,168,1); animation: jpFloat 7s linear infinite; }
.jp-spark.s1 { background: #FF7BC9; box-shadow: 0 0 8px rgba(255,123,201,.95); animation: jpFloat 8.5s linear infinite; }
.jp-spark.s2 { background: #6BFFDF; box-shadow: 0 0 8px rgba(107,255,223,.95); animation: jpFloat 9.5s linear infinite; }
@keyframes jpFloat {
  0%   { transform: translateY(14px) scale(.6); opacity: 0; }
  18%  { opacity: .75; }
  55%  { opacity: .45; }
  100% { transform: translateY(-84px) scale(1); opacity: 0; }
}

/* ============================================================
   GAME PAGE — compact premium entry post
   ============================================================ */
.jp-post {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 13px;
  width: 100%; text-align: left;
  margin-top: 14px; padding: 15px 15px 15px 17px;
  border-radius: 22px;
  color: var(--stage-text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 46%),
    linear-gradient(160deg, #38296E 0%, #251747 52%, #341850 100%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 130, .42),
    0 0 0 1px rgba(192, 82, 224, .46),
    0 14px 32px rgba(0,0,0,.45),
    0 0 36px rgba(184, 84, 235, .24);
  transition: transform .14s ease, box-shadow .2s ease;
  overflow: hidden;
}
.jp-post::before {
  /* faint neon horizon line across the card top */
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,246,222,.65), rgba(255,124,201,.7), transparent);
  pointer-events: none;
}
.jp-post:active {
  transform: scale(.977);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 120, .55),
    0 0 0 1px rgba(178, 72, 205, .48),
    0 8px 22px rgba(0,0,0,.5),
    0 0 40px rgba(168, 74, 216, .3);
}
.jp-post-art {
  position: relative; flex-shrink: 0;
  width: 86px; height: 86px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(136,54,226,.4), rgba(29,18,54,.24) 68%);
}
.jp-mini-wheel {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #3D2C7E, #251747) padding-box,
    conic-gradient(#FFF0BE, #FF7ED4, #7DF2E0, #C9B2FF, #FFF0BE) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.5), 0 0 24px rgba(201,178,255,.55);
  animation: jpMiniSpin 14s linear infinite;
}
.jp-mini-wheel .wheel-face {
  position: absolute; inset: 5px; border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(0,0,0,.4), inset 0 1px 3px rgba(255,255,255,.14);
}
.jp-mini-wheel .wheel-face::after { content: none; }   /* no vignette on the mini art */
.jp-mini-hub {
  position: relative; z-index: 2;
  width: 17px; height: 17px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFF3C9, #F5B93E 62%, #C07E12);
  box-shadow: 0 0 11px rgba(255,214,120,.85), inset 0 -1px 2px rgba(120,60,0,.5);
}
@keyframes jpMiniSpin { to { transform: rotate(360deg); } }

/* twinkling stars on the entry post artwork */
.jp-post-star { position: absolute; border-radius: 50%; background: #FFE9B8; opacity: .85; }
.jp-post-star.s1 {
  width: 5px; height: 5px; top: 6px; right: 12px;
  box-shadow: 0 0 7px rgba(255,233,184,.95);
  animation: jpTwinkle 2.6s ease-in-out infinite;
}
.jp-post-star.s2 {
  width: 3.5px; height: 3.5px; bottom: 9px; left: 8px;
  background: #5EEAD4; box-shadow: 0 0 6px rgba(94,234,212,.95);
  animation: jpTwinkle 3.4s ease-in-out .9s infinite;
}
@keyframes jpTwinkle { 0%,100% { transform: scale(.55); opacity: .35; } 50% { transform: scale(1.15); opacity: 1; } }

.jp-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jp-post-kicker {
  font-size: 9px; font-weight: 800; letter-spacing: 2.4px;
  color: #FFE3A1;
  text-shadow: 0 0 12px rgba(255,196,86,.55);
}
.jp-post-title {
  font-size: 21px; line-height: 1.04; font-weight: 800; letter-spacing: 2.6px;
  background: linear-gradient(92deg, #8FF2FF 4%, #BCA4FF 48%, #FF7ED4 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(146,124,255,.5));
}
.jp-post-sub { font-size: 11px; font-weight: 700; letter-spacing: 1.1px; color: rgba(233,225,252,.78); }
.jp-post-cost {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  margin-top: 5px; padding: 4.5px 11px 4.5px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: #FFEBB0;
  background: rgba(104,72,14,.52);
  box-shadow: inset 0 0 0 1px rgba(255,214,120,.55), 0 2px 10px rgba(0,0,0,.35), 0 0 12px rgba(245,185,62,.15);
}
.jp-post-chev {
  flex-shrink: 0; align-self: center;
  font-size: 26px; font-weight: 700; line-height: 1;
  color: var(--stage-gold);
  text-shadow: 0 0 12px rgba(245,185,62,.5);
}

/* ============================================================
   GAME LAUNCHERS — separate premium cards, ready for more games
   ============================================================ */
.game-stack {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px;
}

button.game-card {
  --gc-accent: #D9A7FF;
  --gc-accent-soft: rgba(167,104,255,.18);
  --gc-glow: rgba(140,77,255,.20);
  --gc-bg-a: #352163;
  --gc-bg-b: #180D2F;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 96px;
  margin: 0; padding: 10px 12px 10px 10px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--gc-accent) 30%, rgba(255,255,255,.06));
  color: var(--stage-text);
  text-align: left; cursor: pointer;
  background:
    radial-gradient(85% 130% at 4% 50%, var(--gc-accent-soft), transparent 58%),
    radial-gradient(60% 100% at 100% 0%, rgba(255,255,255,.055), transparent 62%),
    linear-gradient(155deg, var(--gc-bg-a) 0%, var(--gc-bg-b) 74%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    0 12px 26px rgba(0,0,0,.38),
    0 0 24px var(--gc-glow);
  overflow: hidden;
  animation: none;
  transform: none;
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s ease;
}
button.game-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gc-accent) 76%, #fff), transparent);
  opacity: .75; pointer-events: none;
}
button.game-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: repeating-linear-gradient(115deg,
    rgba(255,255,255,.045) 0 1px,
    transparent 1px 10px);
  opacity: .18; pointer-events: none;
}
button.game-card > * { position: relative; z-index: 1; }
button.game-card:active {
  transform: scale(.982);
  border-color: color-mix(in srgb, var(--gc-accent) 52%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 7px 16px rgba(0,0,0,.42),
    0 0 30px var(--gc-glow);
}

/* per-game identity */
.game-card.jp-post {
  --gc-accent: #DDAEFF;
  --gc-accent-soft: rgba(156,86,255,.22);
  --gc-glow: rgba(146,74,255,.24);
  --gc-bg-a: #38206B;
  --gc-bg-b: #180D2F;
}
.game-card.bs-entry {
  --gc-accent: #7BD2FF;
  --gc-accent-soft: rgba(43,140,220,.20);
  --gc-glow: rgba(43,140,220,.22);
  --gc-bg-a: #172A4A;
  --gc-bg-b: #0A1526;
}
.game-card.mn-entry {
  --gc-accent: #6BF2BC;
  --gc-accent-soft: rgba(30,175,116,.18);
  --gc-glow: rgba(26,170,112,.20);
  --gc-bg-a: #103227;
  --gc-bg-b: #071913;
}

/* art tiles */
.game-card .jp-post-art,
.game-card .bs-entry-art,
.game-card .mn-entry-art {
  position: relative;
  flex: 0 0 76px; width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 19px;
  border: 1px solid color-mix(in srgb, var(--gc-accent) 34%, rgba(255,255,255,.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 0 20px rgba(0,0,0,.26),
    0 7px 16px rgba(0,0,0,.32);
  overflow: hidden;
}
.game-card .jp-post-art {
  background:
    radial-gradient(circle at 50% 46%, rgba(255,214,120,.20), transparent 62%),
    linear-gradient(158deg, rgba(132,74,230,.78), rgba(30,15,58,.96));
}
.game-card .bs-entry-art {
  background:
    radial-gradient(circle at 50% 30%, rgba(241,196,15,.20), transparent 60%),
    linear-gradient(158deg, #1B3557, #081326);
}
.game-card .bs-entry-art::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: .7; pointer-events: none;
}
.game-card .mn-entry-art {
  background:
    radial-gradient(circle at 50% 40%, rgba(64,245,174,.24), transparent 64%),
    linear-gradient(158deg, #123A2B, #06160F);
}
.game-card .jp-post-art::after,
.game-card .bs-entry-art::after,
.game-card .mn-entry-art::after {
  content: ""; position: absolute; left: 13%; right: 13%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gc-accent), transparent);
  opacity: .4; pointer-events: none;
}

/* artwork fit */
.game-card .jp-mini-wheel { width: 56px; height: 56px; animation-duration: 18s; }
.game-card .jp-mini-hub { width: 14px; height: 14px; }
.game-card .jp-post-star.s1 { top: 7px; right: 8px; }
.game-card .jp-post-star.s2 { bottom: 7px; left: 8px; }
.game-card .bs-brick-stack { padding-bottom: 8px; gap: 2px; }
.game-card .bs-mini-brick { height: 10px; }
.game-card .bs-mini-brick.b1 { width: 48px; }
.game-card .bs-mini-brick.b2 { width: 44px; }
.game-card .bs-mini-brick.b3 { width: 40px; }
.game-card .bs-mini-brick.b4 { width: 36px; }
.game-card .bs-falling-brick { top: 9px; width: 30px; height: 8px; }
.game-card .bs-holder-line { height: 11px; }
.game-card .mn-entry-grid { gap: 3px; transform: rotate(-4deg) scale(.98); }
.game-card .mn-entry-cell { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }

/* copy */
.game-card .jp-post-body,
.game-card .bs-entry-body,
.game-card .mn-entry-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2.5px;
}
.game-card .jp-post-kicker,
.game-card .bs-entry-kicker,
.game-card .mn-entry-kicker {
  display: flex; align-items: center; gap: 6px;
  font-size: 8px; font-weight: 800; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase;
}
.game-card .jp-post-kicker::before,
.game-card .bs-entry-kicker::before,
.game-card .mn-entry-kicker::before {
  content: ""; width: 4px; height: 4px; flex: 0 0 4px;
  background: currentColor; transform: rotate(45deg);
  box-shadow: 0 0 7px currentColor;
}
.game-card .jp-post-kicker { color: #FFDE9E; text-shadow: 0 0 10px rgba(255,196,86,.30); }
.game-card .bs-entry-kicker { color: #8CD8FF; text-shadow: 0 0 10px rgba(52,152,219,.32); }
.game-card .mn-entry-kicker { color: #8CFFCF; text-shadow: 0 0 10px rgba(46,204,113,.32); }
.game-card .jp-post-title,
.game-card .bs-entry-title,
.game-card .mn-entry-title {
  font-size: clamp(14.5px, 4.7vw, 19px);
  line-height: 1.06; font-weight: 800;
  letter-spacing: clamp(1.2px, .48vw, 2.1px);
  white-space: nowrap;
}
.game-card .jp-post-title { filter: drop-shadow(0 2px 8px rgba(154,107,255,.34)); }
.game-card .bs-entry-title { filter: drop-shadow(0 2px 8px rgba(241,196,15,.24)); }
.game-card .mn-entry-title { filter: drop-shadow(0 2px 8px rgba(46,204,113,.24)); }
.game-card .jp-post-sub,
.game-card .bs-entry-sub,
.game-card .mn-entry-sub {
  font-size: clamp(9px, 2.5vw, 10.5px);
  line-height: 1.3; font-weight: 700; letter-spacing: .3px;
  color: rgba(235,228,248,.62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card .jp-post-cost {
  width: fit-content; margin-top: 3px; padding: 3px 8px 3px 6px;
  gap: 4px; font-size: 8.5px; letter-spacing: .4px;
  color: #FFE9AE; border-radius: 999px;
  background: rgba(255,214,120,.08);
  border: 1px solid rgba(255,214,120,.28);
  box-shadow: none;
}
.game-card .jp-post-cost .sp-coin { width: 9px; height: 9px; }
.game-card .bs-entry-meta,
.game-card .mn-entry-meta {
  width: fit-content; margin-top: 3px; padding: 3px 8px;
  gap: 4px; font-size: 8.5px; line-height: 1; font-weight: 800; letter-spacing: .4px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--gc-accent) 78%, #fff);
  background: color-mix(in srgb, var(--gc-accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc-accent) 24%, transparent);
}
.game-card .bs-entry-meta:empty,
.game-card .mn-entry-meta:empty { display: none; }
.game-card .bs-entry-meta .bs-coin-dot { width: 8px; height: 8px; }
.game-card .mn-entry-coin { width: 8px; height: 8px; }

/* play affordance */
.game-card .jp-post-chev,
.game-card .bs-entry-chev,
.game-card .mn-entry-chev {
  flex: 0 0 34px; width: 34px; height: 34px; align-self: center;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 0; line-height: 1;
  color: var(--gc-accent);
  text-shadow: none;
  border: 1px solid color-mix(in srgb, var(--gc-accent) 42%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--gc-accent) 20%, transparent),
    rgba(255,255,255,.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 0 14px color-mix(in srgb, var(--gc-accent) 18%, transparent);
}
.game-card .jp-post-chev::after,
.game-card .bs-entry-chev::after,
.game-card .mn-entry-chev::after {
  content: ""; width: 0; height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 1px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gc-accent) 55%, transparent));
}

@media (max-width: 350px) {
  .game-stack { gap: 8px; margin-top: 12px; }
  button.game-card {
    min-height: 84px; padding: 8px 10px 8px 8px;
    gap: 10px; border-radius: 21px;
  }
  .game-card .jp-post-art,
  .game-card .bs-entry-art,
  .game-card .mn-entry-art {
    flex-basis: 66px; width: 66px; height: 66px; border-radius: 17px;
  }
  .game-card .jp-mini-wheel { width: 49px; height: 49px; }
  .game-card .jp-mini-hub { width: 13px; height: 13px; }
  .game-card .bs-brick-stack { padding-bottom: 7px; gap: 1.5px; }
  .game-card .bs-mini-brick { height: 8px; }
  .game-card .bs-mini-brick.b1 { width: 42px; }
  .game-card .bs-mini-brick.b2 { width: 38px; }
  .game-card .bs-mini-brick.b3 { width: 35px; }
  .game-card .bs-mini-brick.b4 { width: 32px; }
  .game-card .bs-falling-brick { top: 7px; width: 26px; height: 7px; }
  .game-card .bs-holder-line { height: 9px; }
  .game-card .mn-entry-grid { gap: 2px; }
  .game-card .mn-entry-cell { width: 18px; height: 18px; border-radius: 4px; font-size: 8px; }
  .game-card .jp-post-chev,
  .game-card .bs-entry-chev,
  .game-card .mn-entry-chev { flex-basis: 30px; width: 30px; height: 30px; }
  .game-card .jp-post-chev::after,
  .game-card .bs-entry-chev::after,
  .game-card .mn-entry-chev::after {
    border-left-width: 7px; border-top-width: 4.5px; border-bottom-width: 4.5px;
  }
}

/* ============================================================
   DEDICATED SPIN PAGE — header + title
   ============================================================ */
.jp-play-head { margin-bottom: 0; }
.jp-balance {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  height: 32px; padding: 0 10px;
  color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2px;
  border: 1px solid var(--gold-border); border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 55%),
    var(--gold-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.jp-balance .ic svg { width: 13px; height: 13px; }
.jp-balance b { font-size: 12.5px; line-height: 1; font-weight: 800; }
.jp-balance-label { font-size: 7.5px; line-height: 1; letter-spacing: 1.1px; opacity: .72; }

.jp-hero { position: relative; z-index: 2; margin-top: 14px; text-align: center; }
.jp-hero-kicker {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--gold); font-size: 8.5px; font-weight: 800;
  letter-spacing: 2.5px; line-height: 1;
  text-transform: uppercase;
}
.jp-hero-spark {
  width: 4.5px; height: 4.5px; flex-shrink: 0;
  background: currentColor; transform: rotate(45deg);
  box-shadow: 0 0 7px color-mix(in srgb, var(--gold) 65%, transparent);
}
.jp-title {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: 4.2px;
  background: linear-gradient(92deg, #8FF2FF 4%, #BCA4FF 52%, #FF7ED4 96%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(146,124,255,.42));
}
[data-theme="ivory"] .jp-title,
[data-theme="light"] .jp-title,
[data-theme="soda"] .jp-title {
  background: linear-gradient(92deg, #1E6688 0%, #6740B4 54%, #AE205D 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(103,64,180,.16));
}
.jp-tagline {
  margin-top: 7px;
  font-size: 9px; font-weight: 800; letter-spacing: 2.7px;
  color: var(--muted);
}

/* ============================================================
   SPIN CABINET — quiet frame around the untouched wheel
   ============================================================ */
.jp-console {
  position: relative; z-index: 2;
  margin-top: 16px; padding: 11px 10px 9px;
  border: 1px solid rgba(255,218,130,.34);
  border-radius: 28px;
  background:
    radial-gradient(82% 55% at 50% 18%, rgba(150,82,255,.30), transparent 72%),
    radial-gradient(48% 36% at 8% 82%, rgba(236,38,118,.12), transparent 76%),
    linear-gradient(160deg, #352169 0%, #21133F 56%, #2C1547 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 0 0 1px rgba(192,82,224,.16),
    0 18px 40px rgba(20,8,38,.26),
    0 0 34px rgba(168,74,216,.15);
}
.jp-console::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112,246,222,.58), rgba(255,214,120,.64), rgba(255,124,201,.58), transparent);
  pointer-events: none;
}
.jp-console-rail {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 2px 8px 0;
}
.jp-console-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: #FFE4A6; font-size: 9px; font-weight: 800;
  letter-spacing: 2.1px; line-height: 1; text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,196,86,.26);
}
.jp-console-spark {
  font-style: normal; font-size: 9px; line-height: 1;
  color: #FFD166; text-shadow: 0 0 8px rgba(255,209,102,.72);
}
.jp-console-count {
  flex-shrink: 0; padding: 3px 9px;
  color: rgba(255,235,184,.92); font-size: 8px; font-weight: 800;
  letter-spacing: 1.3px; line-height: 1.3; text-transform: uppercase;
  border: 1px solid rgba(255,214,120,.28); border-radius: 999px;
  background: rgba(255,214,120,.07);
}
.jp-console-foot {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 11px;
  margin: 30px 8px 0; padding-top: 10px;
  color: rgba(243,235,255,.55); font-size: 8px; font-weight: 800;
  letter-spacing: 1.4px; line-height: 1;
  border-top: 1px solid rgba(255,255,255,.07);
}
.jp-console-prize { display: inline-flex; align-items: center; gap: 5px; }
.jp-console-prize .ic svg { width: 11px; height: 11px; color: #FFE4A6; }
.jp-console-prize .sp-coin { box-shadow: inset 0 -1px 2px rgba(120,60,0,.36), 0 0 5px rgba(245,185,62,.24); }
.jp-console-sep {
  width: 3px; height: 3px; flex-shrink: 0; border-radius: 50%;
  background: rgba(255,214,120,.55);
  box-shadow: 0 0 5px rgba(255,214,120,.34);
}

/* ============================================================
   THE WHEEL MACHINE
   ============================================================ */
.jp-wheel-zone {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  margin: 2px 0 0;
}
.jp-wheel-stage { position: relative; width: 272px; height: 272px; }

/* restrained radial glow behind everything */
.jp-wheel-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(185,160,255,.28) 0%, rgba(236,38,118,.14) 44%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

/* decorative metallic rings around the wheel */
.jp-wheel-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none; }
.jp-wheel-ring.outer {
  width: 298px; height: 298px;
  border: 1.5px solid rgba(255,216,120,.5);
  box-shadow:
    0 0 24px rgba(245,185,62,.24),
    0 0 44px rgba(185,160,255,.16),
    inset 0 0 18px rgba(245,185,62,.12);
}
.jp-wheel-ring.inner {
  width: 232px; height: 232px;
  border: 1px solid rgba(185,160,255,.42);
  box-shadow: inset 0 0 16px rgba(185,160,255,.18);
}

/* static frame — only .wheel-rot inside rotates */
.wheel { position: relative; border-radius: 50%; }
.jp-machine .wheel {
  background:
    conic-gradient(from 210deg, #FFE29A, #D9A03A 18%, #96681B 32%, #F0BE55 52%, #A5731D 71%, #FFE29A 88%, #D9A03A) border-box,
    #2A1F4D;
  border: 5px solid transparent;
  box-shadow:
    0 0 0 1.5px rgba(255,240,200,.65),
    0 0 0 4px rgba(112, 52, 150, .6),
    0 0 0 5.5px rgba(255,209,102,.38),
    0 22px 46px rgba(0,0,0,.55),
    0 0 54px rgba(168, 74, 216, .22);
}
.wheel-rot { position: absolute; inset: 0; border-radius: 50%; will-change: transform; }
.wheel-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.wheel-face::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, transparent 60%, rgba(0,0,0,.26) 100%),
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.14), transparent 48%);
}
.wheel-win-glow {
  position: absolute; inset: 0; border-radius: 50%;
  animation: jpWinPulse 1.5s ease-in-out infinite;
}
@keyframes jpWinPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* exact radial separators: a crisp gold wedge every 40deg starting at the
   segment origin (12 o'clock) — geometrically locked to conic boundaries */
.wheel-face::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 34%, rgba(0,0,0,.16) 78%, transparent 100%),
    repeating-conic-gradient(from 0deg,
      rgba(255,249,228,1) 0deg .45deg,
      rgba(240,190,90,.75) .45deg 1.05deg,
      transparent 1.05deg 40deg);
}

/* upright stacked labels pinned mid-sector */
.wheel-label {
  position: absolute; left: 50%; top: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,.9);
}
.wheel-label .wl-ic { font-style: normal; font-size: 14px; line-height: 1; }
.wheel-label .wl-tx {
  font-size: 9.5px; font-weight: 800; letter-spacing: .6px;
  line-height: 1.15; white-space: nowrap;
  opacity: .92;
}
.wheel-label .wl-strong { font-size: 10px; letter-spacing: .7px; opacity: 1; }

/* dimensional center hub — static, never rotates */
.wheel-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 26%, #8A4EF5 0%, #5B2BC4 38%, #38156E 74%) padding-box,
    conic-gradient(from 220deg, #FFF3C9, #D9A03A 22%, #96681B 45%, #F0BE55 68%, #FFF3C9) border-box;
  border: 3px solid transparent;
  box-shadow:
    0 10px 24px rgba(0,0,0,.6),
    0 0 24px rgba(245,185,62,.42),
    inset 0 2px 6px rgba(255,255,255,.28),
    inset 0 -4px 10px rgba(20,6,44,.55);
  font-size: 11.5px; font-weight: 800; letter-spacing: 2.4px;
  color: #FFF3C9;
  text-shadow: 0 1px 3px rgba(30,8,60,.7), 0 0 14px rgba(255,233,184,.5);
  z-index: 4;
}

/* fixed jewel pointer at 12 o'clock */
.jp-pointer {
  position: absolute; left: 50%; top: -13px; transform: translateX(-50%);
  width: 26px; height: 36px; z-index: 6;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.55));
  pointer-events: none;
}
.jp-pointer::before {
  /* gold trim backing */
  content: ""; position: absolute; inset: -2.5px -2px;
  background: conic-gradient(from 200deg, #FFF3C9, #D9A03A 30%, #96681B 52%, #F0BE55 76%, #FFF3C9);
  clip-path: polygon(50% 0%, 100% 60%, 50% 100%, 0% 60%);
}
.jp-pointer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, #A9FFF3 6%, #35E8C0 46%, #0FA985 90%);
  clip-path: polygon(50% 0%, 100% 60%, 50% 100%, 0% 60%);
}
.jp-pointer-gem {
  position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 34% 30%, #FFFFFF, #C4FFF4 55%, #35E8C0);
  box-shadow: 0 0 10px rgba(169,255,243,1);
}

.spk-status {
  position: relative; z-index: 2;
  min-height: 18px; margin: 10px 2px 0;
  font-size: 11.5px; font-weight: 600; line-height: 1.45;
  text-align: center; color: var(--muted);
}
.jp-machine .spk-status { margin-top: auto; padding-top: 14px; }
.jp-machine .jp-cta { margin-top: 8px; }

/* fit smaller phones without clipping rings or pointer */
@media (max-width: 379px) {
  .jp-wheel-stage { transform: scale(.87); transform-origin: top center; }
  .jp-wheel-zone { margin-bottom: -30px; }
}
@media (max-width: 339px) {
  .jp-wheel-stage { transform: scale(.79); }
  .jp-wheel-zone { margin-bottom: -52px; }
}

/* keep the wheel, helper line and action together on shorter screens */
@media (max-height: 700px) {
  .jp-hero { margin-top: 4px; }
  .jp-title { font-size: 28px; }
  .jp-tagline { margin-top: 4px; }
  .jp-console { margin-top: 6px; padding-top: 7px; padding-bottom: 5px; }
  .jp-machine .spk-status { min-height: 14px; padding-top: 2px; }
  .jp-machine .jp-cta { margin-top: 4px; min-height: 54px; padding-top: 6px; padding-bottom: 6px; }
}
@media (max-height: 660px) {
  .jp-tagline { display: none; }
  .jp-machine .spk-status { padding-top: 0; }
  .jp-console { padding-bottom: 4px; }
  .game-stack { gap: 9px; margin-top: 10px; }
}
@media (max-height: 600px) {
  .jp-tagline { display: none; }
  .jp-wheel-stage { transform: scale(.70); }
  .jp-wheel-zone { margin-bottom: -82px; }
  .jp-console-foot { display: none; }
  .jp-console { padding-top: 7px; padding-bottom: 6px; }
  .game-stack { gap: 8px; margin-top: 8px; }
  button.game-card {
    min-height: 76px; padding: 7px 9px 7px 8px;
    gap: 9px; border-radius: 21px;
  }
  .game-card .jp-post-art,
  .game-card .bs-entry-art,
  .game-card .mn-entry-art {
    flex-basis: 60px; width: 60px; height: 60px; border-radius: 15px;
  }
  .game-card .jp-mini-wheel { width: 45px; height: 45px; }
  .game-card .jp-mini-hub { width: 12px; height: 12px; }
  .game-card .bs-brick-stack { padding-bottom: 6px; gap: 1px; }
  .game-card .bs-mini-brick { height: 7px; }
  .game-card .bs-mini-brick.b1 { width: 34px; }
  .game-card .bs-mini-brick.b2 { width: 31px; }
  .game-card .bs-mini-brick.b3 { width: 28px; }
  .game-card .bs-mini-brick.b4 { width: 25px; }
  .game-card .bs-falling-brick { top: 6px; width: 22px; height: 6px; }
  .game-card .bs-holder-line { height: 8px; }
  .game-card .mn-entry-grid { gap: 2px; }
  .game-card .mn-entry-cell { width: 16px; height: 16px; border-radius: 4px; font-size: 8px; }
  .game-card .jp-post-chev,
  .game-card .bs-entry-chev,
  .game-card .mn-entry-chev { flex-basis: 28px; width: 28px; height: 28px; }
  .game-card .jp-post-chev::after,
  .game-card .bs-entry-chev::after,
  .game-card .mn-entry-chev::after {
    border-left-width: 6.5px; border-top-width: 4px; border-bottom-width: 4px;
  }
}

/* ============================================================
   PRIMARY CTA — single spin button
   ============================================================ */
.jp-cta {
  position: relative; z-index: 2;
  width: 100%; margin-top: 12px; padding: 10px 12px 10px 10px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 11px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0) 44%),
    linear-gradient(135deg, #9350FF 0%, #6A30F5 42%, #C42A85 100%);
  border: 1.5px solid rgba(255,214,120,.72);
  box-shadow:
    0 14px 30px rgba(106, 48, 245, .38),
    0 0 24px rgba(196, 42, 133, .25),
    inset 0 1px 0 rgba(255,255,255,.32);
  transition: transform .12s ease, opacity .16s ease, box-shadow .2s ease;
}
.jp-cta::after {
  content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,233,184,.78), transparent);
}
.jp-cta:active {
  transform: translateY(1px) scale(.985);
  box-shadow: 0 8px 20px rgba(90, 43, 217, .32), inset 0 1px 0 rgba(255,255,255,.2);
}
.jp-cta[disabled] { opacity: .45; filter: saturate(.55); box-shadow: none; }
.jp-cta.loading { pointer-events: none; animation: ctaPulse 1.1s ease-in-out infinite; }
@keyframes ctaPulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }
.jp-cta-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #FFE9B8;
  background: rgba(33, 14, 67, .32);
  border: 1px solid rgba(255,226,161,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.jp-cta-ic .ic svg { width: 19px; height: 19px; }
.jp-cta-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jp-cta-main {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; line-height: 1.2; font-weight: 800; letter-spacing: 1.5px; color: #fff;
  text-shadow: 0 1px 4px rgba(36, 10, 70, .6);
}
.jp-cta-sub {
  font-size: 9px; line-height: 1.3; font-weight: 700; letter-spacing: .55px;
  color: rgba(255,255,255,.72);
}
.jp-cta-cost {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 6px 9px; border-radius: 999px;
  color: #FFEBB0; font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  border: 1px solid rgba(255,226,161,.25);
  background: rgba(33, 14, 67, .26);
}
.jp-cta-cost .sp-coin { box-shadow: inset 0 -1px 2px rgba(120,60,0,.36), 0 0 6px rgba(245,185,62,.28); }

/* ============================================================
   REWARD REVEAL
   ============================================================ */
.jp-res { padding-top: 4px; }
.jp-res-pop { text-align: center; animation: popReveal .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.jp-won {
  font-size: 13px; font-weight: 800; letter-spacing: 4.5px; color: var(--gold);
  text-shadow: 0 0 14px rgba(245,185,62,.45);
  margin-bottom: 14px;
}
.jp-coin-win {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 46px; font-weight: 800; color: var(--gold);
  text-shadow: 0 4px 18px rgba(245,185,62,.4);
  margin: 6px 0 2px;
}
.jp-coin-win .sp-coin { width: 36px; height: 36px; }
.jp-coin-label { margin-top: 2px; letter-spacing: 6px; font-size: 14px; font-weight: 800; color: var(--text); }

.spk-char-frame {
  position: relative; width: 216px; max-width: 66vw; margin: 0 auto; aspect-ratio: 3 / 3.6;
  border-radius: 18px; overflow: hidden;
  border: 2px solid var(--rc, var(--stroke-strong));
  box-shadow: 0 0 0 4px rgba(0,0,0,.22), 0 14px 34px rgba(0,0,0,.5),
              0 0 26px color-mix(in srgb, var(--rc, #9691AE) 34%, transparent);
  background: var(--card);
}
.spk-char-frame .new-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 1.5px; color: #1A1608;
  background: linear-gradient(180deg, #FFD98C, var(--gold));
}
.sp-char-img, .spk-char-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spk-char-name { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--text); }

/* premium coin dot (shared across spin UI) */
.sp-coin {
  display: inline-block; width: var(--sz, 14px); height: var(--sz, 14px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF3C9, #F7BE45 68%, #D0901A);
  box-shadow: inset 0 -1px 2px rgba(120,60,0,.4), 0 0 8px rgba(255,214,120,.5);
  flex-shrink: 0;
}

/* legacy reel styles (unused by Lucky Spin, kept for older deep links) */
.reel-window {
  position: relative;
  height: 168px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(var(--accent-rgb),.25);
}
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-item { height: 140px; margin: 14px 0; display: grid; place-items: center; }
.reel-item img {
  height: 128px; width: 96px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--rc, var(--stroke-strong));
  opacity: .92;
}
.reel-center-line {
  position: absolute; left: 8px; right: 8px; top: 50%;
  height: 148px; transform: translateY(-50%);
  border-radius: 18px;
  border: 2px solid rgba(var(--accent-rgb), .55);
  box-shadow: 0 0 26px rgba(var(--accent-rgb),.28), inset 0 0 26px rgba(var(--accent-b-rgb),.12);
  pointer-events: none;
}
.reel-side { position: absolute; left: 0; right: 0; height: 56px; z-index: 3; pointer-events: none; }
.reel-side.top { top: 0; background: linear-gradient(180deg, var(--card), transparent); }
.reel-side.bot { bottom: 0; background: linear-gradient(0deg, var(--card), transparent); }

.spin-result-pop { text-align: center; animation: popReveal .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popReveal { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spin-result-img {
  width: min(64vw, 250px);
  aspect-ratio: 3/3.7;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--rc, var(--stroke-strong));
  box-shadow: 0 0 44px color-mix(in srgb, var(--rc, transparent) 45%, transparent), 0 18px 46px rgba(0,0,0,.5);
  margin: 4px auto 16px;
}
.new-badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--on-accent);
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: .6px;
}

.odds-row {
  display: flex; justify-content: space-between;
  padding: 9px 2px;
  font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--stroke);
}
.odds-row:last-child { border-bottom: none; }

/* ===== AUCTION LIST ===== */
.auc-list { display: flex; flex-direction: column; gap: 12px; }
.auc-row {
  display: flex; gap: 13px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 17px;
  padding: 11px;
  transition: transform .15s ease;
}
.auc-row:active { transform: scale(.98); }
.auc-thumb {
  width: 86px; height: 104px;
  border-radius: 13px; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--rc, var(--stroke-strong));
}
.auc-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.auc-row .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auc-row .sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bidbar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.bn-flag {
  font-size: 9.5px; font-weight: 800; color: var(--cyan);
  border: 1px solid rgba(var(--accent-rgb),.35);
  border-radius: 99px; padding: 1.5px 7px;
  margin-left: 7px;
}

.status-pill { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.st-active { color: var(--success); background: rgba(70,170,120,.1); }
.st-sold, .st-completed { color: var(--cyan); background: rgba(var(--accent-rgb),.1); }
.st-ended_unsold { color: var(--muted); background: var(--chip-bg); }
.st-cancelled { color: var(--danger); background: rgba(var(--danger-rgb),.08); }

.fab {
  position: fixed;
  right: max(16px, calc(50vw - 260px + 16px));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
  width: 54px; height: 54px;
  border-radius: 18px;
  background: var(--gradient);
  color: var(--on-accent);
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(var(--accent-b-rgb), .45);
  z-index: 40;
  transition: transform .15s ease;
}
.fab:active { transform: scale(.9); }
.fab svg { width: 24px; height: 24px; }

/* ===== AUCTION DETAIL ===== */
.cd-timer { display: flex; gap: 8px; justify-content: center; margin: 4px 0 2px; }
.cd-seg {
  min-width: 58px;
  background: var(--card-2);
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 8px 6px;
  text-align: center;
}
.cd-seg b { display: block; font-size: 19px; font-weight: 800; }
.cd-seg span { font-size: 9.5px; color: var(--muted); font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.cd-timer.urgent .cd-seg { border-color: rgba(var(--danger-rgb),.4); }
.cd-timer.urgent .cd-seg b { color: var(--danger); }


.bid-history { display: flex; flex-direction: column; }
.bh-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--stroke);
  font-size: 13px;
}
.bh-row:last-child { border-bottom: none; }
.bh-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card-2); border: 1px solid var(--stroke-strong);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted);
}
.bh-top { color: var(--gold); font-weight: 800; }

/* ===== FORMS ===== */
.form-label { font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 14px 2px 7px; text-transform: uppercase; letter-spacing: .5px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.input-affix { position: relative; }
.input-affix input { padding-right: 74px; }
.input-affix .affix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 5px;
  color: var(--gold); font-weight: 800; font-size: 13px;
}
.input-affix .affix::before { content:''; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #FFE7A8, #F5B93E 70%); }

.duration-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dur-btn {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 13px;
  padding: 11px 2px;
  font-size: 12.5px; font-weight: 800; color: var(--muted);
  transition: all .15s ease;
}
.dur-btn.active {
  background: rgba(var(--accent-rgb),.16);
  border-color: rgba(var(--accent-rgb), .55);
  color: var(--text);
}

.review-box { background: var(--card-2); border: 1px dashed var(--stroke-strong); border-radius: 16px; padding: 15px; }
.rv-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.rv-row b { font-weight: 800; }

/* ===== Auction marketplace (two-column collectible grid) ===== */
.auc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 330px) {
  .auc-grid { grid-template-columns: 1fr; }
}

.auc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  animation: cardIn .22s ease both;
  display: flex;
  flex-direction: column;
}
.auc-card:active { transform: scale(.975); }

.auc-card .ac-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--surface-2);
}
.auc-card .ac-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.auc-card .ac-body { padding: 10px 11px 11px; min-width: 0; }
.ac-name {
  font-size: 13.5px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-sub { margin-top: 3px; font-size: 10.5px; color: var(--text-muted); font-weight: 600;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-label { font-size: 9.5px; letter-spacing: .6px; text-transform: uppercase;
            color: var(--text-muted); font-weight: 800; margin-top: 8px; }
.ac-price { display: flex; align-items: center; gap: 5px; margin-top: 3px;
            font-size: 14px; font-weight: 800; color: var(--gold); }
.ac-foot { display: flex; align-items: center; justify-content: space-between;
           margin-top: 7px; font-size: 10.5px; color: var(--text-muted); font-weight: 700; }
.ac-flag { font-size: 9px; font-weight: 800; color: var(--accent);
           border: 1px solid rgba(var(--accent-rgb), .35); border-radius: 99px;
           padding: 1px 6px; }
.your-listing { font-size: 10px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* ===== Theme segmented control ===== */
.theme-seg {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 4px; gap: 4px;
}
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 0; border-radius: 10px;
  font-size: 13.5px; font-weight: 800; color: var(--text-muted);
  transition: all .16s ease;
}
.seg-btn.active { background: var(--surface); color: var(--accent);
                  box-shadow: var(--shadow-soft); }

.auc-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
