.video-poker-page {
  --poker-felt-1: #174835;
  --poker-felt-2: #0d231b;
  --poker-felt-3: #07130e;
  --poker-gold: #f3ca63;
  --poker-gold-soft: rgba(243, 202, 99, 0.16);
  --poker-red: #c92a37;
  --poker-cream: #fbf5e4;
  --poker-ink: #10131a;
  --poker-panel: rgba(8, 13, 18, 0.88);
  --poker-line: rgba(243, 202, 99, 0.22);
  --poker-line-strong: rgba(243, 202, 99, 0.72);
  --poker-green: #8df5b3;
  --poker-blue: #142038;
}

.video-poker-page .game-main {
  width: min(1480px, calc(100% - 28px));
  gap: 22px;
  padding-bottom: 36px;
}

.video-poker-page .game-top {
  display: block;
}

.video-poker-page .game-hero {
  padding: 22px;
  border-color: rgba(243, 202, 99, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(243, 202, 99, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(6, 11, 15, 0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.video-poker-page .game-hero h1 {
  margin-bottom: 8px;
}

.video-poker-page .game-hero p {
  max-width: 60ch;
  color: rgba(244, 244, 244, 0.82);
  font-size: 15px;
}

.poker-top-panel {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.poker-bank-panel,
.paytable-card {
  border: 1px solid var(--poker-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--poker-panel);
}

.poker-bank-panel {
  padding: 10px 12px;
  border-radius: 16px;
}

.poker-panel-head,
.paytable-head,
.poker-stage-head,
.poker-table-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.panel-kicker {
  margin: 0;
  color: rgba(243, 202, 99, 0.86);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.poker-bank-panel h3,
.paytable-head h4,
.poker-stage-head h2 {
  margin: 4px 0 0;
}

.poker-bank-panel h3 {
  font-size: 16px;
}

.hud-reset {
  min-height: 34px;
  padding-inline: 12px;
  white-space: nowrap;
  font-size: 12px;
}

.hud-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hud-card {
  position: relative;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid rgba(243, 202, 99, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(5, 9, 12, 0.88);
}

.hud-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.hud-card span,
.hud-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hud-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: #fff4c9;
  font-size: 19px;
  line-height: 1;
}

.hud-card.receive-pulse {
  animation: credits-receive 760ms ease;
}

.hud-card-bet strong {
  margin-top: 0;
}

.bet-stepper {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 6px;
}

.bet-stepper strong {
  margin: 0;
  text-align: center;
}

.bet-arrow {
  border: 1px solid rgba(243, 202, 99, 0.28);
  border-radius: 10px;
  min-height: 32px;
  background: rgba(243, 202, 99, 0.08);
  color: #fff4c9;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.bet-arrow:hover:not(:disabled),
.bet-arrow:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--poker-line-strong);
  background: rgba(243, 202, 99, 0.14);
}

.bet-arrow:disabled {
  opacity: 0.38;
  cursor: default;
}

.paytable-card {
  margin-top: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(243, 202, 99, 0.14), transparent 32%),
    rgba(5, 10, 14, 0.78);
  overflow: hidden;
}

.paytable-head {
  padding: 16px 16px 10px;
}

.paytable-bet {
  border: 1px solid rgba(243, 202, 99, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(243, 202, 99, 0.09);
  color: #fff1bc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.paytable-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.paytable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.paytable-row {
  position: relative;
  padding: 12px 14px;
  border: 1px solid rgba(243, 202, 99, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.02);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.paytable-row::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 202, 99, 0.92), rgba(243, 202, 99, 0));
  opacity: 0.45;
}

.paytable-row.active {
  border-color: rgba(243, 202, 99, 0.84);
  background:
    linear-gradient(180deg, rgba(243, 202, 99, 0.18), rgba(243, 202, 99, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

.paytable-row.active::before {
  opacity: 1;
}

.paytable-name {
  color: #f6f0dd;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.paytable-payout {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 42px;
  min-width: 58px;
  border: 1px solid rgba(243, 202, 99, 0.1);
  border-radius: 12px;
  background: rgba(10, 28, 19, 0.7);
  color: #d6ffe4;
  font-size: 15px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.paytable-payout.is-active-bet {
  border-color: rgba(243, 202, 99, 0.66);
  background: rgba(243, 202, 99, 0.14);
  color: #fff8df;
  box-shadow: 0 0 0 1px rgba(243, 202, 99, 0.18) inset;
}

.paytable-payout.is-winning {
  animation: payout-hit 1s ease infinite;
}

.paytable-row.active .paytable-name {
  color: #fff8df;
}

.poker-bottom-nav {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

.poker-bottom-nav .btn {
  min-width: 220px;
}

.poker-stage-wrap {
  padding: 16px;
  border-radius: 26px;
  border-color: rgba(243, 202, 99, 0.16);
  background:
    radial-gradient(circle at top, rgba(243, 202, 99, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    #08120e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.poker-stage {
  min-height: 620px;
  padding: 28px clamp(18px, 3vw, 34px) 26px;
  border-radius: 22px;
  border-color: rgba(243, 202, 99, 0.12);
  background:
    radial-gradient(circle at top, rgba(86, 214, 140, 0.18), transparent 40%),
    linear-gradient(180deg, var(--poker-felt-1), var(--poker-felt-2) 62%, var(--poker-felt-3));
}

.poker-stage::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.poker-stage::after {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(243, 202, 99, 0.28), transparent 24%),
    linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.22) 48%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-30%) rotate(-7deg);
}

.poker-stage-head {
  position: relative;
  z-index: 1;
}

.poker-stage-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.poker-stage-note {
  max-width: 360px;
  color: rgba(246, 242, 228, 0.8);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.poker-hand {
  position: relative;
  z-index: 1;
  margin-top: 0;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.8vw, 22px);
  padding: 18px 2px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 202, 99, 0.5) transparent;
}

.poker-hand::-webkit-scrollbar {
  height: 10px;
}

.poker-hand::-webkit-scrollbar-thumb {
  background: rgba(243, 202, 99, 0.38);
  border-radius: 999px;
}

.poker-table-controls {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 20px;
}

.board-action {
  min-width: 210px;
  min-height: 52px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.poker-card {
  flex: 0 0 clamp(136px, 15vw, 188px);
  width: clamp(136px, 15vw, 188px);
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: default;
  perspective: 1600px;
}

.poker-card.is-clickable {
  cursor: pointer;
}

.poker-stage.is-winning {
  box-shadow:
    0 0 0 1px rgba(243, 202, 99, 0.16) inset,
    0 0 42px rgba(243, 202, 99, 0.22),
    0 28px 64px rgba(0, 0, 0, 0.32);
  animation: board-bloom 1.4s ease 2;
}

.poker-stage.is-winning::after {
  animation: board-sweep 1.4s ease 2;
}

.poker-stage.is-winning .poker-card:not(.is-empty) .card-inner {
  animation: winning-card-pop 920ms cubic-bezier(0.2, 0.9, 0.18, 1) 2;
}

.poker-stage.is-winning .board-action {
  animation: board-button-glow 900ms ease 2;
}

.poker-stage.is-winning .poker-stage-head h2,
.poker-stage.is-winning .poker-stage-note {
  animation: board-header-glow 900ms ease 2;
}

.poker-card:focus-visible {
  outline: 3px solid rgba(243, 202, 99, 0.95);
  outline-offset: 4px;
  border-radius: 22px;
}

.card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.85, 0.18, 1);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  border-radius: 22px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24), 0 10px 16px rgba(0, 0, 0, 0.18);
}

.card-front {
  grid-template-rows: auto 1fr auto;
  padding: 14px 12px;
  border: 1px solid rgba(16, 19, 26, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #fffdf7, #f0e3c4);
  color: var(--poker-ink);
}

.card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.card-corner.bottom {
  justify-self: end;
  align-self: end;
  transform: rotate(180deg);
}

.card-rank {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.04em;
}

.card-suit {
  font-size: clamp(22px, 2vw, 28px);
}

.card-symbol {
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 1;
  font-size: clamp(62px, 6vw, 88px);
  line-height: 1;
}

.card-back {
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(243, 202, 99, 0.52);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, var(--poker-blue), #4a1d34 48%, #142741);
  transform: rotateY(180deg);
}

.card-back::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(243, 202, 99, 0.72);
  border-radius: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px);
}

.card-back-mark,
.card-back-label {
  position: relative;
  z-index: 1;
}

.card-back-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 2px solid rgba(243, 202, 99, 0.78);
  background: rgba(5, 8, 17, 0.36);
  color: #fff7d8;
  font-size: 28px;
  font-weight: 700;
}

.card-back-label {
  margin-top: 14px;
  color: #fff7d8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-caption {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 228, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.poker-card.is-clickable:not(.is-discard):hover .card-inner,
.poker-card.is-clickable:not(.is-discard):focus-visible .card-inner {
  transform: translateY(-8px) rotateX(2deg);
}

.poker-card.is-clickable:not(.is-discard):hover .card-caption {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.poker-card.is-discard .card-inner {
  transform: rotateY(180deg) translateY(-8px);
}

.poker-card.is-discard .card-caption {
  background: rgba(243, 202, 99, 0.16);
  color: #fff7d8;
}

.poker-card.is-red .card-front,
.poker-card.is-red .card-front .card-corner,
.poker-card.is-red .card-front .card-symbol {
  color: var(--poker-red);
}

.poker-card.is-empty .card-front {
  place-items: center;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    rgba(3, 12, 9, 0.92);
  color: rgba(246, 242, 228, 0.56);
}

.poker-card.is-empty .card-corner {
  opacity: 0;
}

.poker-card.is-empty .card-symbol {
  font-size: clamp(46px, 6vw, 72px);
}

.poker-card.is-empty .card-caption {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 242, 228, 0.56);
}

.credits-flight {
  position: fixed;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(243, 202, 99, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent 50%),
    linear-gradient(145deg, rgba(18, 39, 28, 0.98), rgba(54, 20, 39, 0.96));
  color: #fff8df;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
  overflow: visible;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.credits-flight::before,
.credits-flight::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  pointer-events: none;
}

.credits-flight::before {
  border: 1px solid rgba(243, 202, 99, 0.48);
  opacity: 0.8;
}

.credits-flight::after {
  inset: -12px;
  background: radial-gradient(circle, rgba(243, 202, 99, 0.24), transparent 64%);
  filter: blur(10px);
  opacity: 0.9;
}

.credits-flight-core {
  position: relative;
  z-index: 2;
}

.credits-flight-spark {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 248, 223, 0.95), rgba(243, 202, 99, 0));
  filter: blur(0.4px);
}

.credits-flight-spark.spark-a {
  top: -6px;
  left: 12px;
}

.credits-flight-spark.spark-b {
  right: 10px;
  bottom: -5px;
}

@media (min-width: 980px) {
  .paytable-table {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .paytable-row {
    padding: 9px 10px;
    border-radius: 12px;
    gap: 6px;
  }

  .paytable-name {
    font-size: 12px;
  }

  .paytable-payout {
    min-height: 34px;
    min-width: 46px;
    border-radius: 10px;
    font-size: 13px;
  }
}

@media (min-width: 1180px) {
  .video-poker-page .game-main {
    gap: 14px;
    padding-bottom: 20px;
  }

  .video-poker-page .game-hero {
    padding: 18px;
  }

  .video-poker-page .game-hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 3vw, 40px);
  }

  .video-poker-page .game-hero p {
    font-size: 13px;
  }

  .poker-top-panel {
    margin-top: 12px;
    gap: 6px;
  }

  .hud-cards {
    margin-top: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .poker-bank-panel {
    padding: 8px 10px;
  }

  .paytable-head {
    padding: 10px 12px 8px;
  }

  .paytable-head h4 {
    font-size: 15px;
  }

  .paytable-bet {
    padding: 6px 10px;
    font-size: 10px;
  }

  .paytable-table {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0 10px 10px;
  }

  .paytable-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
    border-radius: 12px;
  }

  .paytable-name {
    font-size: 13px;
  }

  .paytable-payout {
    min-height: 34px;
    min-width: 48px;
    border-radius: 10px;
    font-size: 13px;
  }

  .game-status {
    margin-top: 6px;
    min-height: 16px;
    font-size: 12px;
  }

  .poker-stage-wrap {
    padding: 12px;
  }

  .poker-stage {
    min-height: 0;
    padding: 18px 20px 18px;
  }

  .poker-stage-head h2 {
    font-size: clamp(24px, 3vw, 34px);
  }

  .poker-stage-note {
    max-width: 320px;
    font-size: 12px;
  }

  .poker-hand {
    min-height: 320px;
    gap: clamp(10px, 1.4vw, 16px);
    padding: 12px 2px 4px;
  }

  .poker-table-controls {
    margin-top: 12px;
  }

  .board-action {
    min-width: 190px;
    min-height: 46px;
  }

  .poker-card {
    flex-basis: clamp(118px, 11vw, 158px);
    width: clamp(118px, 11vw, 158px);
    gap: 8px;
  }

  .card-caption {
    padding: 6px 8px;
    font-size: 10px;
  }

  .card-rank {
    font-size: clamp(21px, 1.9vw, 28px);
  }

  .card-suit {
    font-size: clamp(18px, 1.6vw, 24px);
  }

  .card-symbol {
    font-size: clamp(54px, 5vw, 74px);
  }

  .card-back-mark {
    width: 62px;
    height: 62px;
    font-size: 24px;
  }

  .card-back-label {
    margin-top: 10px;
    font-size: 11px;
  }

  .poker-bottom-nav {
    margin-top: -6px;
  }
}

@media (min-width: 1180px) and (max-height: 820px) {
  .video-poker-page .game-hero {
    padding: 16px;
  }

  .poker-top-panel {
    margin-top: 10px;
    gap: 5px;
  }

  .poker-bank-panel {
    padding: 7px 9px;
  }

  .poker-bank-panel h3 {
    font-size: 15px;
  }

  .hud-card {
    padding: 8px 10px;
  }

  .hud-card strong {
    font-size: 17px;
  }

  .paytable-head {
    padding: 8px 10px 6px;
  }

  .paytable-row {
    padding: 7px 9px;
  }

  .paytable-payout {
    min-height: 32px;
    font-size: 12px;
  }

  .poker-stage {
    padding: 16px 18px 16px;
  }

  .poker-hand {
    min-height: 296px;
  }

  .poker-card {
    flex-basis: clamp(108px, 10vw, 148px);
    width: clamp(108px, 10vw, 148px);
  }

  .poker-bottom-nav {
    margin-top: -10px;
  }
}

@keyframes payout-hit {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(243, 202, 99, 0);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 28px rgba(243, 202, 99, 0.28);
  }
}

@keyframes board-bloom {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.006);
  }
  65% {
    transform: scale(0.998);
  }
}

@keyframes board-sweep {
  0% {
    opacity: 0;
    transform: translateX(-34%) rotate(-9deg);
  }
  18% {
    opacity: 0.72;
  }
  65% {
    opacity: 0.42;
  }
  100% {
    opacity: 0;
    transform: translateX(30%) rotate(-4deg);
  }
}

@keyframes winning-card-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-12px) scale(1.04);
  }
  70% {
    transform: translateY(-4px) scale(1.01);
  }
}

@keyframes board-button-glow {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  }
  45% {
    box-shadow: 0 0 0 1px rgba(243, 202, 99, 0.18) inset, 0 0 34px rgba(243, 202, 99, 0.28), 0 14px 30px rgba(0, 0, 0, 0.3);
  }
}

@keyframes board-header-glow {
  0%,
  100% {
    color: inherit;
    text-shadow: none;
  }
  45% {
    color: #fff8df;
    text-shadow: 0 0 18px rgba(243, 202, 99, 0.26);
  }
}

@keyframes credits-receive {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(243, 202, 99, 0);
  }
  40% {
    transform: scale(1.05);
    box-shadow: 0 0 36px rgba(243, 202, 99, 0.26);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(243, 202, 99, 0);
  }
}

@media (max-width: 1100px) {
  .hud-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poker-stage {
    min-height: 580px;
  }
}

@media (max-width: 760px) {
  .video-poker-page .game-main {
    width: min(1480px, calc(100% - 18px));
    gap: 16px;
  }

  .poker-panel-head,
  .paytable-head,
  .poker-stage-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hud-cards {
    grid-template-columns: 1fr;
  }

  .paytable-table {
    grid-template-columns: 1fr;
    overflow-x: auto;
  }

  .poker-stage {
    min-height: 480px;
    padding: 22px 16px 22px;
  }

  .poker-stage-note {
    max-width: none;
    text-align: left;
  }

  .poker-hand {
    min-height: 340px;
    justify-content: flex-start;
  }

  .poker-card {
    flex-basis: clamp(118px, 36vw, 144px);
    width: clamp(118px, 36vw, 144px);
  }

  .board-action {
    width: 100%;
    min-width: 0;
  }
}
