.game-main { padding-block: 18px 36px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--dim);
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-gold); }
.crumbs a { color: var(--muted); }

.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas: "stage controls" "stage info";
  grid-template-rows: auto 1fr;
  gap: 18px 22px;
  align-items: start;
}
.stage { grid-area: stage; min-width: 0; container-type: inline-size; }
.controls { grid-area: controls; }
.info { grid-area: info; }

.stage-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.stage-head img {
  width: 64px; height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 26px rgba(224, 54, 143, 0.35);
}
.stage-head h1 { margin: 0; font-size: clamp(1.9rem, 3.2vw, 3rem); }
.stage-head .kicker { margin-bottom: 4px; }
.stage-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.stage-tags li {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.result {
  min-height: 3.4em;
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 7, 30, 0.7);
  color: var(--champagne);
  font-weight: 600;
}
.result.is-win { border-color: rgba(232, 184, 90, 0.7); box-shadow: 0 0 30px rgba(232, 184, 90, 0.18); }

.controls {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(36, 24, 78, 0.92), rgba(16, 11, 40, 0.96));
  box-shadow: var(--shadow);
}
.controls .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.controls .row + .row { margin-top: 12px; }
.controls .grow { flex: 1 1 auto; }
.amount {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.amount-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.amount output {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 5, 26, 0.7);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.amount .button { padding: 0; width: 48px; font-size: 1.4rem; }
.spin-btn { width: 100%; min-height: 58px; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.feature-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--turquoise-2);
}
.feature-note.is-live { color: var(--magenta-2); }

.info {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(16, 11, 40, 0.8);
}
.info .msg { color: var(--muted); font-size: 0.95rem; }
.info details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.info summary { cursor: pointer; font-weight: 700; color: var(--champagne); padding: 6px 0; }
.info ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.info li { margin: 5px 0; }
.info .fine { margin: 12px 0 0; font-size: 0.82rem; color: var(--dim); }
.paytable { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.paytable li { display: flex; align-items: center; gap: 10px; margin: 0 !important; }
.paytable img { width: 40px; height: 40px; border-radius: 8px; flex: 0 0 auto; }
.paytable .gem { border-radius: 50%; }

@media (max-width: 1100px) {
  .game-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "controls" "info";
    grid-template-rows: auto;
  }
  .controls {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin-inline: calc(var(--gutter) * -1);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    border-width: 1px 0 0;
    background: rgba(14, 9, 36, 0.97);
    backdrop-filter: blur(10px);
  }
  .controls .amount-label { display: none; }
  .controls .row { flex-wrap: nowrap; }
  .controls .row.wrap { flex-wrap: wrap; }
  .amount { grid-template-columns: 44px minmax(64px, 1fr) 44px; width: auto; flex: 1 1 46%; }
  .amount .button { width: 44px; min-height: 44px; }
  .amount output { min-height: 44px; font-size: 1.05rem; }
  .spin-btn { min-height: 48px; flex: 1 1 54%; width: auto; font-size: 1rem; }
  .feature-note { margin-top: 6px; font-size: 0.8rem; }
  .stage-head img { width: 52px; height: 52px; }
}
@media (max-width: 640px) {
  .game-main .crumbs { margin-bottom: 8px; }
  .stage-head { gap: 12px; margin-bottom: 10px; }
  .stage-head img { width: 44px; height: 44px; }
  .stage-head h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .stage-head .kicker { font-size: 0.66rem; letter-spacing: 0.12em; }
  .stage-head .kicker::before { display: none; }
  .stage-tags { display: none; }
  .controls .row + .row { margin-top: 8px; }
  .controls .row.wrap .button { min-height: 36px; padding-block: 6px; }
}

/* ---------- Masquerade Reels cabinet ---------- */
.cabinet {
  position: relative;
  margin-inline: auto;
  padding: clamp(10px, 1.6vw, 22px);
  border-radius: 30px;
  isolation: isolate;
}
.cabinet-masq {
  width: min(100%, calc((100dvh - 456px) * 1.6));
  min-width: min(100%, 300px);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(224, 54, 143, 0.35), transparent 60%),
    linear-gradient(180deg, #2a1240 0%, #12082a 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 2px #b8842e,
    0 0 0 5px #2a1240,
    0 0 0 7px #ffdc8f,
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(224, 54, 143, 0.25);
}
.cabinet-masq::before {
  content: "";
  position: absolute;
  left: 50%; top: -30px;
  z-index: -1;
  width: 70%; height: 80px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255, 220, 143, 0.45), transparent 70%);
  filter: blur(6px);
}
.marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 clamp(8px, 1.2vw, 14px);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marquee::before,
.marquee::after {
  content: "";
  flex: 1 1 40px;
  max-width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.marquee::after { background: linear-gradient(90deg, var(--gold), transparent); }
.reel-window {
  position: relative;
  aspect-ratio: 5 / 3.15;
  border-radius: 18px;
  overflow: hidden;
  background: #090418;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 143, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.8);
}
.reel-window canvas { width: 100%; height: 100%; }
.cabinet-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: clamp(8px, 1.2vw, 14px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.cabinet-foot strong { color: var(--gold-2); font-variant-numeric: tabular-nums; }

.win-banner {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%) scale(0.7);
  padding: 14px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 220, 143, 0.8);
  background: rgba(14, 8, 34, 0.9);
  box-shadow: 0 0 60px rgba(232, 184, 90, 0.4);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease), transform 420ms var(--ease);
}
.win-banner.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.win-banner b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.05; }
.win-banner span { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Tideglass Cascade cabinet ---------- */
.cabinet-tide {
  width: min(100%, calc((100dvh - 520px) * 1.25 + 140px));
  min-width: min(100%, 300px);
  padding-top: clamp(16px, 2.4vw, 30px);
  border-radius: 220px 220px 30px 30px / 120px 120px 30px 30px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(47, 214, 200, 0.32), transparent 65%),
    linear-gradient(180deg, #06283a 0%, #061423 70%, #0b0a26 100%);
  box-shadow:
    0 0 0 2px #9ad8e8,
    0 0 0 6px #0a2232,
    0 0 0 8px rgba(214, 246, 255, 0.7),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(47, 214, 200, 0.25);
}
.tide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(8px, 1.4vw, 16px);
  align-items: stretch;
}
.gem-window {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, #0b3a4c, #041019 75%);
  box-shadow: inset 0 0 0 1px rgba(154, 216, 232, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.7);
}
.gem-window canvas { width: 100%; height: 100%; }
.tide-body > div:last-child { display: flex; flex-direction: column; gap: 6px; min-height: 0; width: 72px; contain: size; }
.tide-body .gem-window { align-self: start; }
.meter li { min-height: 0; }
.tide-body .meter-label { font-size: 0.62rem; letter-spacing: 0.1em; line-height: 1.2; }
.meter {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.meter li {
  display: grid;
  place-items: center;
  flex: 1 1 0;
  min-width: 54px;
  max-height: 48px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(154, 216, 232, 0.3);
  background: rgba(4, 16, 25, 0.7);
  font-weight: 700;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: transform 260ms var(--ease), background 260ms, color 260ms, box-shadow 260ms;
}
.meter li.is-hit { color: var(--turquoise-2); border-color: rgba(47, 214, 200, 0.6); }
.meter li.is-live {
  transform: scale(1.12);
  color: #04131c;
  background: linear-gradient(180deg, #b8fff7, #2fd6c8);
  box-shadow: 0 0 26px rgba(47, 214, 200, 0.6);
}
.meter-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--dim);
}
@container (max-width: 560px) {
  .tide-body { gap: 6px; }
  .tide-body > div:last-child { width: 44px; }
  .meter-label { display: none; }
  .meter { flex: 1 1 auto; gap: 4px; }
  .meter li { min-width: 40px; min-height: 0; flex: 1 1 0; padding: 2px 4px; border-radius: 9px; font-size: 0.78rem; }
}

/* ---------- Gilded Orbit Roulette ---------- */
.roulette-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@container (min-width: 760px) {
  .roulette-layout { grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); }
}
.wheel-stage {
  position: relative;
  width: min(91%, 460px, calc((100dvh - 300px) * 1.1));
  min-width: min(91%, 260px);
  margin-inline: auto;
  perspective: 1100px;
}
.wheel-stage::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 2%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.65), transparent);
  z-index: -1;
}
.wheel-tilt {
  transform: rotateX(34deg);
  transform-origin: 50% 60%;
  transform-style: preserve-3d;
}
.wheel-tilt canvas { width: 100%; aspect-ratio: 1; }
.recent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}
.recent .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-right: 4px; }
.pip {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.pip-red { background: #b3123f; }
.pip-black { background: #16121f; }
.pip-green { background: #0f8a5f; }
.pip:first-of-type { box-shadow: 0 0 0 2px var(--gold); }

.felt {
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: 22px;
  border: 1px solid rgba(232, 184, 90, 0.5);
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(47, 214, 200, 0.12), transparent 60%),
    linear-gradient(180deg, #0d2a3a, #081a28);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.board {
  display: grid;
  grid-template-columns: 1.1fr repeat(12, minmax(0, 1fr)) 1.1fr;
  grid-template-rows: repeat(3, minmax(40px, 1fr)) 42px 42px;
  gap: 4px;
}
.spot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  min-width: 0;
  padding: 2px;
  border: 1px solid rgba(246, 227, 192, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: 700 0.92rem/1 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms var(--ease), box-shadow 180ms, background 180ms;
}
.spot:hover { box-shadow: 0 0 0 2px var(--gold); z-index: 2; }
.spot:active { transform: scale(0.96); }
.spot.n-red { background: linear-gradient(180deg, #c8174a, #8e0e32); }
.spot.n-black { background: linear-gradient(180deg, #241d31, #100c18); }
.spot.n-green { background: linear-gradient(180deg, #13a571, #0b6b49); }
.spot.out { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--champagne); }
.spot.out.red-o { background: linear-gradient(180deg, #c8174a, #8e0e32); }
.spot.out.black-o { background: linear-gradient(180deg, #241d31, #100c18); }
.spot.is-hit { box-shadow: 0 0 0 3px var(--gold-2), 0 0 24px rgba(255, 220, 143, 0.7); z-index: 3; }
.chip-mark {
  position: absolute;
  right: -4px; top: -6px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 28px; height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle at 35% 30%, #ff8cc6, #e0368f 55%, #8e1659);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  animation: chipdrop 260ms var(--ease);
}
@keyframes chipdrop { from { transform: translateY(-10px) scale(1.3); opacity: 0; } to { transform: none; opacity: 1; } }
@container (max-width: 600px) {
  .board {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 0.9fr 0.9fr;
    grid-template-rows: 38px repeat(12, 36px) 38px;
  }
  .spot { min-height: 34px; font-size: 0.86rem; }
  .spot.out { font-size: 0.72rem; writing-mode: vertical-rl; transform: rotate(180deg); }
  .spot.out.col { writing-mode: horizontal-tb; transform: none; }
  .spot.out:active { transform: rotate(180deg) scale(0.96); }
  .spot.out.col:active { transform: scale(0.96); }
}
.chip-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip-picker legend { padding: 0; margin-bottom: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.chip-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.7);
  background: radial-gradient(circle at 35% 30%, #ffe6a8, #e8b85a 55%, #8a5f1d);
  color: #1b1004;
  font: 700 0.8rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  transition: transform 160ms var(--ease), box-shadow 160ms;
}
.chip-btn:nth-of-type(2) { background: radial-gradient(circle at 35% 30%, #9ff7ee, #2fd6c8 55%, #0d6f68); }
.chip-btn:nth-of-type(3) { background: radial-gradient(circle at 35% 30%, #ff9fd0, #e0368f 55%, #8e1659); color: #fff; }
.chip-btn:nth-of-type(4) { background: radial-gradient(circle at 35% 30%, #cdb8ff, #8a5cf6 55%, #4a2a9e); color: #fff; }
.chip-btn:nth-of-type(5) { background: radial-gradient(circle at 35% 30%, #5a4a7a, #221a38 55%, #0c0818); color: #fff; }
.chip-btn:nth-of-type(6) { background: radial-gradient(circle at 35% 30%, #fff7e6, #f6e3c0 55%, #b39a6a); }
.chip-btn[aria-pressed="true"] { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px var(--turquoise), 0 10px 20px rgba(0, 0, 0, 0.5); }
.stack-note { margin: 10px 0 0; font-size: 0.88rem; font-weight: 700; color: var(--gold-2); }
@media (max-width: 1100px) {
  .chip-picker legend { display: none; }
  .chip-picker { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .chip-btn { width: 44px; height: 44px; flex: 0 0 auto; font-size: 0.74rem; }
  .controls .tools .button { flex: 1 1 0; min-height: 44px; padding-inline: 8px; }
  .stack-note { margin-top: 6px; font-size: 0.8rem; }
}

/* ---------- Velvet Blackjack ---------- */
.bj-table {
  position: relative;
  min-height: clamp(380px, calc(100dvh - 370px), 600px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: clamp(14px, 2.4vw, 30px);
  border-radius: 40px 40px 220px 220px / 40px 40px 120px 120px;
  background:
    radial-gradient(80% 70% at 50% 35%, rgba(138, 92, 246, 0.45), transparent 70%),
    radial-gradient(120% 100% at 50% 100%, #2a0f4a, #12072a 70%);
  box-shadow:
    0 0 0 3px #b8842e,
    0 0 0 9px #2a1240,
    0 0 0 11px #ffdc8f,
    inset 0 0 80px rgba(0, 0, 0, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  perspective: 1200px;
}
.bj-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bj-row.dealer { align-items: flex-start; }
.bj-who { flex: 0 0 auto; text-align: center; }
.bj-who img { width: 58px; height: 58px; margin: 0 auto 4px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--violet-2); }
.bj-who b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.bj-total {
  display: inline-grid;
  place-items: center;
  min-width: 46px; height: 32px;
  padding: 0 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(7, 5, 26, 0.75);
  border: 1px solid var(--line-gold);
  font-weight: 700;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.bj-arc {
  align-self: center;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 220, 143, 0.85);
}
.bj-arc small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(246, 227, 192, 0.7); }
.shoe {
  position: absolute;
  right: clamp(14px, 3vw, 40px);
  top: clamp(14px, 3vw, 34px);
  width: clamp(48px, 6vw, 72px);
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  background: url("../assets/img/cardback.webp?v=20261023-pvc") center / cover;
  box-shadow: 4px 4px 0 #3a1d5c, 8px 8px 0 #2a1240, 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 2px solid #e8b85a;
}
.cards { display: flex; align-items: center; min-height: calc(var(--cw) * 1.4); padding-left: 4px; }
.bj-table { --cw: clamp(62px, min(7.2vw, 10.5dvh), 104px); }
.hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.hand {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: border-color 200ms, background 200ms;
}
.hand.is-active { border-color: rgba(47, 214, 200, 0.7); background: rgba(47, 214, 200, 0.07); }
.hand-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hand-head .bj-total { margin: 0; height: 28px; }
.hand-stake { color: var(--gold-2); }

.pcard {
  position: relative;
  flex: 0 0 auto;
  width: var(--cw);
  aspect-ratio: 5 / 7;
  margin-left: calc(var(--cw) * -0.42);
  transform-style: preserve-3d;
}
.pcard:first-child { margin-left: 0; }
.pcard-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 560ms var(--ease);
}
.pcard.is-down .pcard-inner { transform: rotateY(180deg); }
.pcard-face {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--cw) * 0.1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.pcard-front {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fffdf8 0%, #f4ead8 100%);
  border: 1px solid #d8c597;
  color: #1d1630;
}
.pcard-front.red { color: #b3123f; }
.pcard-front .pip-big { font-size: calc(var(--cw) * 0.46); line-height: 1; }
.pcard-front .corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  line-height: 1;
  font-size: calc(var(--cw) * 0.2);
}
.pcard-front .corner small { font-size: 0.85em; }
.pcard-front .tl { left: 8%; top: 6%; }
.pcard-front .br { right: 8%; bottom: 6%; transform: rotate(180deg); }
.pcard-back {
  transform: rotateY(180deg);
  background: url("../assets/img/cardback.webp?v=20261023-pvc") center / cover;
  border: 2px solid #e8b85a;
}
.pcard.is-new { animation: deal 560ms var(--ease) both; }
@keyframes deal {
  from { transform: translate(var(--dx, 300px), var(--dy, -200px)) rotate(-14deg) scale(0.85); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
.bj-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bj-actions .button { padding-inline: 6px; }
.bj-actions[hidden] { display: none; }
@media (max-width: 600px) {
  .bj-table { --cw: clamp(54px, 15vw, 72px); border-radius: 30px 30px 110px 110px / 30px 30px 70px 70px; min-height: 0; gap: 6px; }
  .bj-who img { width: 44px; height: 44px; }
  .shoe { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard-inner { transition: none; }
  .pcard.is-new { animation: none; }
}
