/* =============== Video Poker =============== */
/* The phone reuses the UTH / Three Card Poker frame (uth.css); the TV reuses Three Card Poker's (three-card.css). */

/* ---------- Phone: one screen, never scrolls ---------- */
#vp.screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 10px 12px 8px; gap: 8px; }
#vp .bj-status, #vp #vpTimer { flex-shrink: 0; }
#vpStatus { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#vpError { height: 20px; min-height: 20px; overflow: visible; position: relative; z-index: 6; font-size: 13px; line-height: 18px; }
#vpError:not(:empty) { background: rgba(10, 14, 12, 0.88); border-radius: 8px; padding: 1px 8px; height: auto; max-height: 20px; }
#vp .uth-spot { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; gap: 2px; padding: 3px 2px; }
#vp .uth-spot .nm { white-space: nowrap; }
#vp .uth-out { white-space: nowrap; }
#vpFelt { justify-content: space-around; }
/* the game's name (tap for the pay table) and the multiplier badge */
.vp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; min-width: 0; }
.vp-game { background: rgba(0, 0, 0, 0.35); color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 900;
  min-height: 0; height: 28px; width: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vp-game small { color: var(--accent); font-weight: 800; margin-left: 4px; }
.vp-mult { flex-shrink: 0; background: linear-gradient(180deg, #ffe08a, #f5b400); color: #2a1e00; font-weight: 900; font-size: 15px; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.vp-mult.idle { background: rgba(255, 255, 255, 0.2); color: #fff; }
/* your five cards, tap to hold */
.vp-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; align-items: end; min-height: 0; }
.vp-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; margin: 0;
  min-height: 0; height: auto; width: auto; -webkit-tap-highlight-color: transparent; transition: transform 0.12s ease; }
.vp-slot .card { --w: min(17vw, 74px, 30cqh); }
button.vp-slot { cursor: pointer; }
.vp-slot.held { transform: translateY(-8px); }
.vp-slot.held .card { box-shadow: 0 0 0 3px var(--accent), 0 6px 14px rgba(0, 0, 0, 0.5); }
.vp-slot.tip .card { outline: 3px dashed #fff; outline-offset: 2px; }
.vp-held { font-size: 12px; font-weight: 900; letter-spacing: 1px; color: #2a1e00; background: var(--accent); border-radius: 4px; padding: 1px 6px; line-height: 15px; }
.vp-held.ghost { visibility: hidden; }
.vp-tagrow { display: flex; justify-content: center; flex-shrink: 0; }
.uth-tag.pays { color: #ffd27a; }
/* the deal: your five cards slide in one after another */
#vp .vp-hand .card.new { animation: deal 0.3s ease-out backwards; }
#vp .vp-hand .card.new.d1 { animation-delay: 0.1s; }
#vp .vp-hand .card.new.d2 { animation-delay: 0.2s; }
#vp .vp-hand .card.new.d3 { animation-delay: 0.3s; }
#vp .vp-hand .card.new.d4 { animation-delay: 0.4s; }
.reduce-motion #vp .vp-hand .card.new, .reduce-motion .vp-slot { animation: none; transition: none; }
/* the bets: Bet, and the Multiplier switch */
.vp-spots.n1 { grid-template-columns: 1fr; width: 50%; margin: 0 auto; }
.vp-spots.n2 { grid-template-columns: 1fr 1fr; }
#vp .uth-spot.multi .nm { color: #ffd27a; }
/* your chips on the spot: a stack in the casino chip colours beside the amount, like Blackjack and Baccarat */
.vp-chips { display: flex; align-items: center; gap: 6px; }
.vp-stack { position: relative; width: 26px; height: 35px; flex-shrink: 0; }
.vp-stack .stack-chip { width: 26px; height: 8px; border-width: 1px; }
#vp .uth-spot.multi.on { border-style: solid; border-color: #ffd27a; background: rgba(245, 180, 0, 0.12); }
.vp-joker { background: linear-gradient(160deg, #fff, #f1e3ff); }
.vp-joker .rank { color: #7a2ee0; }
.vp-joker .suit { color: #7a2ee0; font-size: calc(var(--w, 60px) * 0.17); font-weight: 900; letter-spacing: 0.5px; }
@media (max-height: 700px) {
  #vp .casino-chip { width: 52px; height: 52px; }
  #vp .casino-chip span { inset: 7px; font-size: 15px; }
  #vp .uth-dock { height: 128px; }
  #vp .uth-buttons, #vp .uth-buttons button { height: 54px; }
  .vp-slot.held { transform: translateY(-5px); }
}

/* ---------- TV: the house frame (tv-frame.js; Blackjack is the model). A half-moon felt: the pay table board along the
   top (the dealer's spot; the shoe in the corner), the game's name printed in the open felt, a seat for each player on
   the curve: name pill, the five cards, the hand, the Bet / Multiplier circles. The side panel comes from tv-frame. ---------- */
.vp-tv .vp-felt { min-height: 0; }
.vp-tv .hf-felt-name { top: 30%; --hf-name: 3vw; }
.vp-shoe { top: 1.5vh; right: 1.5vw; }
/* the pay table board: the dealer's spot, its rows in two columns so it stays short */
.vp-board { position: absolute; top: 2vh; left: 50%; transform: translateX(-50%); z-index: 1; width: 46vw; box-sizing: border-box;
  background: linear-gradient(180deg, #0d2c63, #071a3c); border: 0.25vw solid #f5c542; border-radius: 1.2vw; padding: 0.5vh 1.2vw 0.8vh;
  box-shadow: 0 0.6vw 2vw rgba(0, 0, 0, 0.5); }
.vp-board-top { text-align: center; font-size: 0.8vw; font-weight: 900; letter-spacing: 0.15vw; color: #ffd84d; margin-bottom: 0.4vh; }
.vp-rows { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(var(--half, 5), auto); column-gap: 1.6vw; row-gap: 0.15vh; }
.vp-row { display: grid; grid-template-columns: 3.4vw 1fr auto; align-items: center; gap: 0.5vw; padding: 0 0.5vw; border-radius: 0.5vw;
  font-size: 1vw; line-height: 1.4; font-weight: 800; color: #e8edf7; transition: background 0.2s; white-space: nowrap; }
.vp-row b { color: #ffd84d; font-size: 1.1em; }
.vp-row .dots { display: flex; gap: 0.2vw; justify-content: flex-end; }
.vp-row .dots i { width: 0.8vw; height: 0.8vw; border-radius: 50%; border: 0.12vw solid #fff; }
.vp-row.soft { background: rgba(255, 255, 255, 0.08); }
.vp-row.hit { background: #f5c542; color: #2a1e00; }
.vp-row.hit b { color: #2a1e00; }
.vp-row.big { animation: vp-glow 0.9s ease-in-out 4 alternate; }
@keyframes vp-glow { from { box-shadow: 0 0 0 rgba(255, 216, 77, 0); } to { box-shadow: 0 0 1.6vw rgba(255, 216, 77, 0.95); } }
.reduce-motion .vp-row.big { animation: none; }
/* a seat: the name pill, the five cards (a fixed zone the seat's width; --cw is set from the seat size), the hand, the bets */
.vp-tv .vp-seat { display: flex; flex-direction: column; align-items: center; gap: 0.4vh; }
.vp-tv .vp-seat > * { flex-shrink: 0; }
.vp-tv .vp-seat.out, .vp-tv .vp-seat.idle { opacity: 0.5; }
.vp-hand { display: flex; justify-content: center; align-items: flex-start; padding-top: 0.8vw; }
.vp-c { display: flex; flex-direction: column; align-items: center; gap: 0.15vw; transition: transform 0.15s ease; flex: 0 0 auto; }
.vp-c + .vp-c { margin-left: calc(var(--cw) * -0.3); }
.vp-c .card { --w: var(--cw); }
.vp-c > span { font-size: 0.6vw; font-weight: 900; letter-spacing: 0.05vw; color: #2a1e00; background: var(--accent); border-radius: 0.2vw; padding: 0 0.3vw; visibility: hidden; line-height: 1.3; }
.vp-c.held { transform: translateY(-0.8vw); }
.vp-c.held > span { visibility: visible; }
.vp-c.held .card { box-shadow: 0 0 0 0.15vw var(--accent); }
.vp-tv .vp-seat .dec { font-size: 1.15vw; font-weight: 800; color: rgba(255, 255, 255, 0.9); height: 1.5vw; line-height: 1.5vw; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
.vp-tv .vp-seat .dec.win { color: #6be39a; }
.vp-tv .vp-seat .dec.lose { color: #ff8a80; }
.vp-under { display: flex; align-items: flex-start; gap: 0.5vw; }
.vp-tv .vp-seat .circles { display: flex; gap: 0.3vw; }
/* each bet: a circle with the amount in it, then how it did */
.vp-bet { display: flex; flex-direction: column; align-items: center; gap: 0.15vw; }
.vp-tv .vp-seat .tcp-circle { width: 2.6vw; height: 2.6vw; }
.vp-tv .vp-seat .tcp-circle small { font-size: 0.5vw; }
.vp-tv .vp-seat .tcp-circle b { font-size: 0.8vw; }
.vp-bet.vc-multi small { color: #ffd27a; }
.vp-bet > em { position: static; font-style: normal; font-size: 0.7vw; font-weight: 900; border-radius: 999px; padding: 0 0.3vw; background: rgba(0, 0, 0, 0.75); white-space: nowrap; line-height: 1.3; }
.vp-bet > em.none { background: none; }
.vp-bet > em.win { background: var(--ok); color: #fff; }
.vp-bet > em.lose { color: #ff8a80; }
.vp-bet > em.push { color: #cfd3dc; }
.vp-badge { margin-top: 0.7vw; font-size: 0.9vw; font-weight: 900; color: #2a1e00; background: linear-gradient(180deg, #ffe08a, #f5b400); border-radius: 999px; padding: 0.1vw 0.5vw; white-space: nowrap; }
.vp-badge.ghost { visibility: hidden; }
