/* =============== Ultimate Texas Hold'em: phone =============== */
/* One screen, never scrolls: status, the felt (shrinks to fit), and a dock that's always the same height */
#uth.screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 10px 12px 8px; gap: 8px; }
#uth .bj-status { flex-shrink: 0; }
#uth #uthTimer { flex-shrink: 0; }
.uth-felt {
  flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 10px 8px;
  border-radius: 22px; border: 5px solid var(--rail); background: radial-gradient(ellipse at 50% 35%, var(--felt-1), var(--felt-2) 90%);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.5); container-type: size; overflow: hidden;
  position: relative; /* the double tap's "Checking…" sits over the felt */
}
.uth-row { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; }
.uth-row .lbl { font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); writing-mode: vertical-rl; transform: rotate(180deg); }
.uth-cards { display: flex; gap: 5px; justify-content: center; }
.uth-row.dealer .card { --w: min(13vw, 54px, 13cqh); }
.uth-row.board .card { --w: min(15vw, 58px, 14cqh); }
.uth-row.mine { flex-direction: column; gap: 4px; }
.uth-cards.big .card { --w: min(25vw, 104px, 24cqh); }
.uth-tag { font-size: 13px; font-weight: 900; background: rgba(0, 0, 0, 0.45); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.uth-tag.soft { color: rgba(255, 255, 255, 0.85); }
.uth-tag.win { background: var(--ok); color: #fff; }
.uth-tag.lose { background: rgba(224, 48, 63, 0.75); }
.uth-tag.nq { color: #ffd27a; }
.uth-tag.ghost { visibility: hidden; }
/* Your bets: Trips, Ante, Blind, Play */
.uth-spots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex-shrink: 0; }
.uth-spots.no-trips { grid-template-columns: repeat(3, 1fr); }
.uth-spot {
  position: relative; height: min(76px, 17cqh); min-height: 52px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.18); color: #fff; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0;
  font: inherit; text-align: center; overflow: hidden; touch-action: manipulation;
}
.uth-spot.live { border-color: rgba(245, 197, 66, 0.8); cursor: pointer; }
.uth-spot.live.has { touch-action: none; }
.uth-spot.has { border-style: solid; border-color: var(--accent); }
.uth-spot .nm { font-weight: 900; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1.1; }
.uth-spot small { font-size: 10px; color: rgba(255, 255, 255, 0.65); font-weight: 700; line-height: 1.1; }
.uth-spot.trips .nm { color: #ffd27a; }
.uth-spot .uth-stack { position: relative; width: 26px; height: 14px; margin-top: auto; }
.uth-spot .uth-stack .stack-chip { width: 26px; height: 8px; }
.uth-spot .amt { font-size: 13px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.uth-out { position: absolute; inset: auto 2px 2px; font-style: normal; font-weight: 900; font-size: 13px; border-radius: 999px; padding: 0 4px; background: rgba(0, 0, 0, 0.7); }
.uth-out.win { background: var(--ok); color: #fff; }
.uth-out.lose { color: #ff8a80; }
.uth-out.push { color: #cfd3dc; }
/* The dock: a line (chip tray, hint or result) over a row of buttons, the same height in every phase */
.uth-dock { flex-shrink: 0; height: 142px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.uth-line { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.uth-line .chip-tray { padding: 0; }
.uth-line .result { margin: 0; width: 100%; }
.uth-hint { text-align: center; font-size: 14px; font-weight: 700; }
.uth-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 60px; }
.uth-buttons.n2 { grid-template-columns: 1fr 1fr; }
.uth-buttons.n0 { visibility: hidden; }
.uth-buttons button { height: 60px; padding: 4px 6px; font-size: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; white-space: nowrap; }
.uth-buttons button small { font-size: 12px; font-weight: 700; opacity: 0.85; }
@media (max-height: 700px) {
  .uth-dock { height: 128px; }
  .uth-buttons, .uth-buttons button { height: 54px; }
  #uth .casino-chip { width: 52px; height: 52px; }
  #uth .casino-chip span { inset: 7px; font-size: 15px; }
}

/* =============== Ultimate Texas Hold'em: TV =============== */
.uth-tv { display: flex; flex-direction: column; overflow: hidden; }
/* item 33: the shoe the TV deal flies from (the shared TVDeal, like Three Card Poker) */
.uth-phone .uth-cards .card.deal-in { animation: hand-deal-in 0.32s cubic-bezier(.2,.7,.3,1) both; }
.uth-phone .uth-cards .card.deal-in.d1 { animation-delay: 0.22s; }
.reduce-motion .uth-phone .uth-cards .card.deal-in { animation: none; }
.uth-shoe { z-index: 2; }
/* bets read at a glance: the amount is a gold pill; after the hand, what it did sits under it */
.uth-spot { justify-content: center; gap: 4px; }
.uth-spot .amt { background: var(--accent); color: #2a1e00; border-radius: 999px; padding: 1px 9px; font-size: 14px; line-height: 18px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.uth-out { position: static; font-size: 12px; line-height: 16px; }
.lobby-tip { font-size: 13px; padding: 7px 10px; }

.uth-buttons button.suggested { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- TV: the house frame (tv-frame.js; Blackjack is the model). A half-moon felt: the dealer's two cards and the
   board along the top (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 two cards, the hand, the Trips / Ante / Blind / Play circles. The side panel comes from tv-frame. ---------- */
.uth-tv .uth-table { min-height: 0; }
.uth-tv .hf-felt-name { top: 30%; --hf-name: 2.7vw; }
.uth-tv .uth-top { position: absolute; top: 2vh; left: 50%; transform: translateX(-50%); display: flex; gap: 3vw; align-items: flex-start; z-index: 1; }
.uth-tv .uth-dealer, .uth-tv .uth-board { display: flex; flex-direction: column; align-items: center; gap: 0.6vh; }
.uth-tv .uth-top .lbl { font-size: 1.4vw; font-weight: 800; color: var(--muted); letter-spacing: 2px; }
.uth-tv .uth-top .cards { display: flex; gap: 0.6vw; }
.uth-tv .uth-top .card { --w: 5.2vw; }
.uth-tv .uth-dtag { min-height: 2.2vw; display: flex; align-items: center; justify-content: center; }
.uth-tv .uth-dtag span { font-size: 1.3vw; font-weight: 900; background: rgba(0, 0, 0, 0.45); border-radius: 999px; padding: 0.2vw 1.1vw; white-space: nowrap; }
.uth-tv .uth-dtag .nq { color: #ffd27a; }
/* a seat: the name pill, the two cards (a fixed 2-card zone), the hand, the bet circles */
.uth-tv .uth-seat { --cw: 3.4vw; display: flex; flex-direction: column; align-items: center; gap: 0.5vh; }
.uth-tv .uth-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); }
.uth-tv .uth-seat .dec.win { color: #6be39a; }
.uth-tv .uth-seat .dec.lose { color: #ff8a80; }
.uth-tv .uth-seat.turn .hf-cards .card { box-shadow: 0 0 0 0.25vw var(--accent), 0 0 1.2vw rgba(245, 197, 66, 0.7); }
.uth-tv .uth-seat.folded .hf-cards { opacity: 0.45; }
.uth-tv .uth-seat.out, .uth-tv .uth-seat.idle { opacity: 0.5; }
/* four bet circles fit under the seat (the Three Card circles, a little smaller) */
.uth-tv .uth-seat .circles { display: flex; gap: 0.25vw; justify-content: center; margin-bottom: 1vw; }
.uth-tv .uth-seat .tcp-circle { width: 2.15vw; height: 2.15vw; }
.uth-tv .uth-seat .tcp-circle small { font-size: 0.45vw; }
.uth-tv .uth-seat .tcp-circle b { font-size: 0.7vw; }
.uth-tv .uth-seat .tcp-circle.trips small { color: #ffd27a; }
