.gaming-page {
  padding-top: 30px;
  padding-bottom: 40px;
}
.gaming-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.gaming-heading h1 {
  margin: 6px 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.points-wallet {
  min-width: 250px;
  padding: 18px 24px;
  display: grid;
  gap: 5px;
  border-color: #a63246;
  background: linear-gradient(140deg, #411c2a, #21161f);
}
.points-wallet strong {
  color: #fff1f4;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}
.points-wallet small {
  color: var(--muted);
  font-size: 0.72rem;
}
.game-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.game-nav [aria-current="page"] {
  border-color: #ff4c67;
  background: #562331;
}
.points-note {
  margin: 12px 0 20px;
}
.gaming-profile {
  padding: 22px;
  margin-bottom: 18px;
}
.gaming-profile form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.gaming-profile input {
  flex: 1;
  min-width: 160px;
}
.gaming-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 12px 0 20px;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.game-card {
  padding: 20px;
  color: var(--text);
  transition: border-color 0.15s;
}
.game-card:hover {
  border-color: #ed4560;
}
.game-card h2 {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 8px;
}
.game-card p {
  color: var(--muted);
  min-height: 48px;
  line-height: 1.6;
}
.game-card .button {
  margin-top: 12px;
  width: 100%;
}
.game-art {
  height: 175px;
  background: radial-gradient(ellipse at 50% 90%, #81152f55, #180e18);
  border-radius: 12px;
  margin-bottom: 20px;
}
.dice-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #ff4561;
  font-size: 100px;
}
.dice-art span:last-child {
  transform: rotate(20deg);
  font-size: 76px;
}
.mini-keno {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 20px;
}
.mini-keno span {
  display: grid;
  place-items: center;
  background: #31202d;
  border-radius: 5px;
  font-weight: 700;
  color: #9c8b9a;
}
.mini-keno .picked {
  color: white;
  background: #b62945;
}
.plinko-art {
  text-align: center;
  font-size: 44px;
  line-height: 0.75;
  padding: 22px;
  letter-spacing: 5px;
  color: #f6c3ce;
}
.plinko-art > span {
  display: block;
  color: #ff4561;
  font-size: 19px;
  line-height: 1.5;
}
.game-season,
.bet-history,
.payout-panel,
.fairness-panel {
  padding: 22px;
  margin-top: 20px;
}
.game-season h2,
.bet-history h2,
.payout-panel h2 {
  font-size: 1.2rem;
  margin-top: 0;
}
.game-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.game-stat-cards article {
  display: grid;
  gap: 9px;
  padding: 16px;
  border-radius: 8px;
  background: #271b27;
}
.game-stat-cards b {
  font-size: 1.4rem;
  color: #ff8295;
}
.game-stat-cards small {
  color: var(--muted);
}
.game-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  overflow: hidden;
}
.bet-controls {
  padding: 22px;
  background: #251b26;
  border-right: 1px solid #48313e;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bet-controls .field,
.bet-controls p {
  margin: 0;
}
.bet-controls label,
.bet-controls legend {
  font-size: 0.84rem;
  font-weight: 650;
}
.bet-controls input,
.bet-controls select {
  width: 100%;
}
.wager-input {
  display: flex;
  margin: 7px 0;
  gap: 4px;
}
.wager-input input {
  min-width: 0;
}
.wager-input .button {
  padding: 8px;
  flex: 0 0 36px;
}
.bet-preview {
  display: grid;
  gap: 7px;
  background: #161018;
  padding: 14px;
  border-radius: 8px;
}
.bet-preview small {
  color: var(--muted);
  font-size: 0.72rem;
}
.risk-options {
  display: flex;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 0;
}
.risk-options legend {
  margin-bottom: 8px;
}
.risk-options label {
  flex: 1;
  position: relative;
}
.risk-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.risk-options span {
  display: block;
  padding: 12px 4px;
  text-align: center;
  background: #382836;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}
.risk-options input:checked + span {
  background: #ad2843;
  border-color: #ff6a85;
  color: white;
}
.risk-options input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: 2px;
}
.game-board {
  min-width: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(ellipse at top, #35202c88, #100e14 80%);
  min-height: 480px;
}
.game-result {
  text-align: center;
  padding: 16px 8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #2a1b26;
  border: 1px solid #593144;
  border-radius: 8px;
  margin-top: 15px;
}
.game-result.is-win {
  color: #b6efca;
  border-color: #377251;
}
#betProof,
#plinkoResult {
  text-align: center;
  margin-top: 8px;
}
.dice-stage {
  padding: 35px 25px;
  text-align: center;
}
.dice-roll {
  color: #fff3f5;
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dice-stage p {
  color: var(--muted);
}
.dice-track {
  height: 10px;
  background: linear-gradient(90deg, #742436, #e54263);
  border-radius: 9px;
  margin: 55px 0 15px;
  position: relative;
}
#diceMarker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -38%);
  color: white;
  font-size: 28px;
}
.dice-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.keno-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.keno-board button {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #4a3441;
  border-radius: 7px;
  background: #312530;
  color: #d8ccd7;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 750;
  cursor: pointer;
  min-width: 0;
}
.keno-board button.selected {
  background: #8c2540;
  border-color: #f86b8a;
  color: white;
}
.keno-board button.drawn {
  box-shadow: inset 0 0 0 3px #f0cd8c;
}
.keno-board button.matched {
  background: #2d6651;
  border-color: #8de3b3;
}
.keno-key {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.keno-key span:first-child {
  color: #ff8aa4;
}
.keno-key span:nth-child(2) {
  color: #f0cd8c;
}
.keno-key span:last-child {
  color: #8de3b3;
}
#plinkoCanvas {
  width: 100%;
  height: auto;
  display: block;
}
.payout-table {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.payout-table > div {
  min-width: 76px;
  flex: 1 0 76px;
  padding: 10px;
  text-align: center;
  display: grid;
  gap: 6px;
  background: #2e1d29;
  border: 1px solid #523040;
  border-radius: 7px;
}
.payout-table small {
  color: var(--muted);
  font-size: 0.7rem;
}
.payout-table strong {
  font-size: 0.95rem;
  color: #ffbac9;
}
.fairness-panel summary {
  cursor: pointer;
  font-weight: 700;
  padding: 3px 0;
}
.fairness-panel code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.fairness-panel input {
  width: 100%;
  margin: 10px 0;
}
.fairness-panel dt {
  color: var(--muted);
  margin: 12px 0 5px;
}
.fairness-panel dd {
  margin: 0;
}
.gaming-admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gaming-admin-cards section {
  padding: 18px;
  min-width: 0;
}
.gaming-admin-cards ol {
  list-style: none;
  padding: 0;
}
.gaming-admin-cards li {
  border-top: 1px solid #48313e;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.gaming-admin-cards li strong,
.gaming-admin-cards li small {
  display: block;
}
.gaming-admin-cards li b {
  color: #ffacbc;
}
.gaming-admin-cards small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 4px;
}
.verifier-form {
  display: grid;
  gap: 14px;
}
.verifier-form textarea {
  min-height: 200px;
  width: 100%;
  font-family: monospace;
}
@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .gaming-admin-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .gaming-page {
    padding-top: 18px;
  }
  .gaming-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .gaming-heading p {
    margin: 4px 0;
  }
  .points-wallet {
    min-width: 0;
    padding: 14px 18px;
  }
  .points-wallet strong {
    font-size: 1.7rem;
  }
  .game-cards {
    grid-template-columns: 1fr;
  }
  .game-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 4px 16px;
    padding: 16px;
  }
  .game-art {
    grid-row: span 4;
    width: 100px;
    height: 140px;
    margin: 0;
    align-self: center;
  }
  .game-card h2 {
    margin: 6px 0;
  }
  .game-card p {
    font-size: 0.83rem;
    min-height: 0;
    margin: 0;
  }
  .dice-art {
    font-size: 62px;
    gap: 0;
  }
  .dice-art span:last-child {
    display: none;
  }
  .mini-keno {
    padding: 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    font-size: 0.7rem;
  }
  .plinko-art {
    padding: 16px 3px;
    font-size: 27px;
    line-height: 1;
    letter-spacing: 0;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .game-board {
    grid-row: 1;
    min-height: 270px;
    padding: 12px;
  }
  .bet-controls {
    border-right: 0;
    border-top: 1px solid #48313e;
    padding: 18px;
    gap: 14px;
  }
  .dice-stage {
    padding: 5px 20px;
  }
  .dice-track {
    margin-top: 25px;
  }
  .dice-roll {
    font-size: 4rem;
  }
  .keno-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }
  .keno-board button {
    min-height: 44px;
    aspect-ratio: auto;
    font-size: 0.92rem;
  }
  .game-stat-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .game-stat-cards article {
    grid-template-columns: 1fr 1fr;
  }
  .game-stat-cards small {
    grid-column: span 2;
  }
  .bet-history,
  .payout-panel,
  .fairness-panel,
  .game-season {
    padding: 15px;
  }
  .bet-history th,
  .bet-history td {
    padding: 10px 5px;
    font-size: 0.72rem;
  }
  .bet-history .section-title {
    align-items: start;
    gap: 8px;
    flex-direction: column;
  }
  .game-nav .button {
    min-height: 44px;
  }
  .gaming-profile form {
    flex-direction: column;
    align-items: stretch;
  }
  .gaming-profile input {
    min-width: 0;
  }
}

.payout-table > div {
  flex-basis: 110px;
  min-width: 110px;
  padding: 9px;
}
.payout-table strong {
  font-size: 0.84rem;
  white-space: nowrap;
}
.bet-history button.text-link {
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 8px 0;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

/* Give the native slider room for mouse, keyboard and touch input. */
.gaming-page #diceChance {
  appearance: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #ff415b;
  cursor: ew-resize;
  touch-action: pan-y;
}
.gaming-page #diceChance:focus-visible {
  outline: 2px solid #ff8295;
  outline-offset: 3px;
}
.gaming-page #diceChance:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Keep play/recovery feedback beside the control, including on narrow screens. */
.gaming-bet-status {
  min-height: 2.8em;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gaming-bet-status.is-error {
  color: #ffb8ac;
}
#plinkoCanvas {
  aspect-ratio: 720 / 510;
}

/* A blocked action is not a loading state. Only real requests show progress. */
.gaming-page button:disabled {
  cursor: not-allowed;
}
#betButton[aria-busy="true"] {
  cursor: progress;
}
#betButton[aria-disabled="true"] {
  opacity: 0.7;
}
.dice-track {
  --dice-threshold: 50%;
  --dice-left: #ed4362;
  --dice-right: #392937;
  height: 44px;
  margin: 38px 0 5px;
  background: transparent;
}
.dice-track.is-over {
  --dice-left: #392937;
  --dice-right: #ed4362;
}
.dice-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 12px;
  right: 12px;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    var(--dice-left) var(--dice-threshold),
    var(--dice-right) var(--dice-threshold)
  );
  pointer-events: none;
}
.gaming-page .dice-board-slider {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}
.dice-board-slider::-webkit-slider-runnable-track {
  height: 10px;
  background: transparent;
}
.dice-board-slider::-moz-range-track {
  height: 10px;
  background: transparent;
}
.dice-board-slider::-moz-range-progress {
  background: transparent;
}
.dice-board-slider::-webkit-slider-thumb {
  appearance: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin-top: -7px;
  border: 3px solid #ff657e;
  border-radius: 50%;
  background: #fff4f6;
  box-shadow: 0 2px 10px #0007;
}
.dice-board-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 3px solid #ff657e;
  border-radius: 50%;
  background: #fff4f6;
  box-shadow: 0 2px 10px #0007;
}
.gaming-page .dice-board-slider:focus-visible {
  outline: 2px solid #ff8295;
  outline-offset: 3px;
}
.gaming-page .dice-board-slider:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
#diceMarker {
  top: -18px;
  transform: translateX(-50%);
  padding: 3px 6px;
  border-radius: 5px;
  background: #fff4f6;
  color: #281923;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
}

/* Responsive four-game layout; card movement illustrates the saved hand. */
.game-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.gaming-admin-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .gaming-admin-cards {
    grid-template-columns: 1fr;
  }
}
.gaming-admin-cards small {
  overflow-wrap: anywhere;
}
.blackjack-art {
  gap: 8px;
}
.blackjack-art span {
  border-radius: 9px;
  padding: 14px;
  background: #fff5f3;
  color: #291e29;
  transform: rotate(-10deg);
  font-size: 2rem;
}
.blackjack-art span + span {
  color: #c62a47;
  transform: rotate(12deg);
}
.blackjack-table {
  padding: 24px;
  border: 1px solid #79323f;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, #66252e, #291720);
  min-height: 430px;
}
.blackjack-hand .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blackjack-hand h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.playing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 98px;
}
.playing-card {
  width: 60px;
  height: 86px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff3ed;
  border: 1px solid #ffffff66;
  color: #22161c;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 10px #0004;
  /* Cards are animated once by the shared presentation helper. */
}
.playing-card.is-red {
  color: #c62540;
}
.playing-card.is-hidden {
  background: repeating-linear-gradient(45deg, #a22b41 0 4px, #70263a 4px 8px);
  border: 3px solid #efc4c8;
  color: #fff;
}
.blackjack-felt-label {
  text-align: center;
  color: #e3a3ac;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin: 18px 0;
}
.blackjack-felt-label span {
  display: block;
  font-size: 0.6rem;
  margin-top: 4px;
}
.blackjack-actions {
  margin-top: 20px;
  flex-wrap: wrap;
}
.blackjack-actions .button {
  min-height: 44px;
  flex: 1;
}
@keyframes deal-card {
  from {
    opacity: 0;
    transform: translate(18px, -12px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
}
@media (max-width: 600px) {
  .blackjack-table {
    padding: 16px;
  }
  .playing-card {
    width: 48px;
    height: 72px;
  }
  .playing-cards {
    gap: 6px;
    min-height: 78px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .playing-card {
    animation: none;
  }
}
/* Extra games share the same spacing, red palette and native controls. */
.limbo-art { flex-direction:column; gap:14px; }
.limbo-art span { font-size:2.6rem; font-weight:900; letter-spacing:-.06em; color:#ff7186; }
.limbo-art i { width:65%; height:3px; background:linear-gradient(90deg,transparent,#ff4967); transform:rotate(-12deg); }
.coinflip-art span { display:grid; place-items:center; width:88px; height:88px; border-radius:50%; border:6px double #ff7f8f; background:#991632; color:#fff0f1; font-size:3rem; font-weight:900; box-shadow:0 12px 30px #90032644; }
.limbo-stage,.coin-stage { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:345px; padding:24px 10px; text-align:center; background:radial-gradient(ellipse at 50% 55%,#be224b22,transparent 68%); }
.limbo-multiplier { color:#ff7186; font-size:clamp(2.7rem,7vw,5rem); font-weight:900; line-height:1.2; letter-spacing:-.06em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; max-width:100%; }
.limbo-stage.is-win .limbo-multiplier { color:#79e7b3; }
.limbo-trail { width:80%; max-width:390px; height:5px; border-radius:9px; background:#ffffff0d; overflow:hidden; margin:18px 0; }
.limbo-trail span { display:block; width:100%; height:100%; background:linear-gradient(90deg,#97102e,#ff6a84); transform-origin:left; transform:scaleX(0); }
.limbo-targets { margin-top:10px; }
.coin-space { width:170px; height:190px; display:grid; place-items:center; perspective:800px; }
.red-coin { width:140px; height:140px; position:relative; transform-style:preserve-3d; }
.coin-face { position:absolute; inset:0; border:7px double #ff99a9; border-radius:50%; background:radial-gradient(circle at 35% 25%,#dc3556,#780a29); display:flex; flex-direction:column; align-items:center; justify-content:center; backface-visibility:hidden; color:#fff4f6; box-shadow:0 12px 34px #c0193838; }
.coin-face b { font-size:3.1rem; line-height:1.15; }
.coin-face small { font-size:.7rem; letter-spacing:.2em; font-weight:800; }
.coin-tails { transform:rotateY(180deg); background:radial-gradient(circle at 35% 25%,#a32c4b,#461325); }
.coin-options { display:flex; gap:8px; }
.coin-options label { flex:1; }
.poker-table { padding:18px; border:1px solid #ffffff0d; border-radius:20px; background:radial-gradient(ellipse at top,#42192888,#160e16); }
.poker-table h2 { font-size:1.4rem; margin:0; }
.poker-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:22px 0; }
.poker-card { position:relative; width:100%; min-width:0; min-height:125px; padding:12px 5px; border:2px solid #eadde1; border-radius:12px; background:#fff8f5; color:#1c1620; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; box-shadow:0 5px 15px #0003; transform:none; cursor:pointer; transition:border-color .15s,box-shadow .15s; }
.poker-card:hover { transform:none; background:#fff; }
.poker-card:focus-visible { outline:3px solid #ff5878; outline-offset:4px; }
.poker-card b { font-size:clamp(1.1rem,3vw,2rem); line-height:1.2; }
.poker-card small { font-size:.6rem; letter-spacing:.05em; font-weight:900; color:#685763; }
.poker-card.is-red { color:#c42142; }
.poker-card[aria-pressed="true"] { border-color:#fc3157; box-shadow:0 0 0 2px #fc315744,0 5px 15px #0003; }
.poker-card[aria-pressed="true"] small { color:#c42142; }
.poker-card.is-back { color:#ff8b9e; background:repeating-linear-gradient(35deg,#53152a,#53152a 6px,#441322 6px,#441322 12px); border-color:#863049; font-size:2rem; }
.poker-card:disabled { opacity:1; cursor:default; }
.poker-actions { align-items:center; flex-wrap:wrap; }
.poker-actions #pokerDraw { margin-left:auto; }
.poker-paytable { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.poker-paytable > div { display:flex; flex-direction:column; gap:5px; padding:12px; background:#ffffff04; border:1px solid #ffffff0b; border-radius:10px; }
.poker-paytable > div.is-hit { border-color:#ff4768; background:#ff315317; }
.poker-paytable small { color:var(--muted,#c4b5bf); font-size:.7rem; }
@media(max-width:600px) {
  .poker-table { padding:12px 8px; }
  .poker-cards { gap:5px; }
  .poker-card { border-radius:8px; min-height:90px; padding:10px 2px; }
  .poker-card small { font-size:.52rem; }
  .poker-actions { gap:6px; }
  .poker-actions .button { padding:9px; font-size:.75rem; }
  .limbo-stage,.coin-stage { min-height:285px; }
}

/* Center new game artwork after the shared dashboard card rules. */
.game-art.limbo-art,.game-art.coinflip-art {
  display:flex;
  align-items:center;
  justify-content:center;
}
.game-art.limbo-art span { position:static; font-size:2.6rem; }
.game-art.coinflip-art span { position:static; }
@media(min-width:681px) {
  .game-card { display:flex; flex-direction:column; }
  .game-card > .game-art { flex-shrink:0; }
  .game-card > .button { margin-top:auto; text-align:center; }
}

/* Compact screens keep help accessible without competing with the game. */
.gaming-page .payout-panel summary,
.gaming-page .fairness-panel summary { cursor: pointer; font-weight: 650; }
.gaming-page .payout-panel:not([open]),
.gaming-page .fairness-panel:not([open]) { padding-block: 16px; }
.gaming-bet-status { min-height: 0; margin: 0; }
.gaming-bet-status:empty { display: none; }
#gameResult { min-height: 54px; }
#betProof { min-height: 1.5em; }
.keno-board button { transition: background-color .2s, border-color .2s, box-shadow .2s; }
.game-board { overflow: hidden; }
.playing-card, .poker-card { backface-visibility: hidden; }
.baccarat-table { padding: 28px 20px; border: 1px solid #79323f; border-radius: 20px;
  background: radial-gradient(ellipse at center,#66252e,#291720); min-height: 330px;
  display: flex; flex-direction: column; justify-content: center; }
.baccarat-hands { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.baccarat-hand { border: 1px solid #a6526444; border-radius: 12px; padding: 14px 10px;
  transition: border-color .3s, background-color .3s; min-width: 0; }
.baccarat-hand.is-winner { border-color: #eeb39a; background: #be30442a; }
.baccarat-hand .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.baccarat-hand h2 { margin: 0; font-size: 1rem; }
.baccarat-hand output { border-radius: 8px; background: #130f17; font-size: 1.2rem;
  font-weight: 750; min-width: 32px; text-align: center; padding: 4px; }
.baccarat-hand .playing-cards { flex-wrap: nowrap; gap: 5px; min-height: 88px; }
.baccarat-hand .playing-card { width: clamp(32px,4vw,54px); height: 78px; font-size: 1.15rem; }
.baccarat-options small { display: block; opacity: .85; font-size: .72rem; margin-top: 4px; }
#baccaratStatus { margin: 24px 0 0; text-align: center; min-height: 1.5em; }
@media (max-width: 680px) {
  .gaming-page .gaming-heading { gap: 16px; }
  .game-board { padding: 16px 12px; min-height: 340px; }
  .baccarat-table { min-height: 280px; padding: 18px 10px; }
  .baccarat-hands { gap: 8px; }
  .baccarat-hand { padding: 12px 6px; }
  .baccarat-hand .playing-card { width: 30px; height: 58px; font-size: .88rem; }
  .baccarat-hand .playing-cards { min-height: 60px; }
  .baccarat-hand .row { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gaming-page *, .gaming-page *::before, .gaming-page *::after {
    animation-duration: .001ms !important; transition-duration: .001ms !important;
  }
}

.game-art.blackjack-art { display: flex; align-items: center; justify-content: center; }
