/* =============== Three Card Poker =============== */
/* Reuses the UTH look (uth.css): these are the screen-level rules UTH sets on #uth, plus what's different. */

/* ---------- Phone: one screen, never scrolls ---------- */
#tcp.screen { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding: 10px 12px 8px; gap: 8px; }
#tcp .bj-status, #tcp #tcpTimer { flex-shrink: 0; }
#tcpStatus { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tcpFelt { transition: width 0.25s ease, height 0.25s ease; }
#tcpError { height: 20px; min-height: 20px; overflow: visible; position: relative; z-index: 6; font-size: 13px; line-height: 18px; }
#tcpError:not(:empty) { background: rgba(10, 14, 12, 0.88); border-radius: 8px; padding: 1px 8px; height: auto; max-height: 20px; }
#tcp .uth-spot { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
/* the felt: dealer up top, your three cards big in the middle, the bets along the bottom */
#tcpFelt { justify-content: space-around; }
.tcp-dealer { flex-wrap: nowrap; }
.tcp-dealer .card { --w: min(15vw, 60px, 15cqh); }
#tcp .uth-cards.big .card { --w: min(24vw, 96px, 26cqh); }
#tcp .uth-cards.big { gap: 8px; }
.tcp-spots.n2 { grid-template-columns: repeat(2, 1fr); }
.tcp-spots.n3 { grid-template-columns: repeat(3, 1fr); }
.tcp-spots.n4 { grid-template-columns: repeat(4, 1fr); }
#tcp .uth-spot.pairplus .nm, #tcp .uth-spot.six .nm { color: #ffd27a; }
/* the deal: the dealer's three backs, then your three cards, one after another */
#tcp .tcp-deal .card.new { animation: deal 0.3s ease-out backwards; }
#tcp .tcp-dealer .tcp-deal .card:nth-child(2) { animation-delay: 0.1s; }
#tcp .tcp-dealer .tcp-deal .card:nth-child(3) { animation-delay: 0.2s; }
#tcp .mine .tcp-deal .card:nth-child(1) { animation-delay: 0.3s; }
#tcp .mine .tcp-deal .card:nth-child(2) { animation-delay: 0.45s; }
#tcp .mine .tcp-deal .card:nth-child(3) { animation-delay: 0.6s; }
#tcp .tcp-deal .card.turn-up:nth-child(2) { animation-delay: 0.08s; }
#tcp .tcp-deal .card.turn-up:nth-child(3) { animation-delay: 0.16s; }
.tcp-extra { display: block; font-size: 12px; font-weight: 700; color: #ffd27a; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tcp .uth-out { white-space: nowrap; }
/* label, amount and result fit in one spot on a 360x640 phone */
#tcp .uth-spot { gap: 2px; padding: 3px 2px; }
#tcp .uth-spot .nm { white-space: nowrap; }
@media (max-height: 700px) {
  #tcp .casino-chip { width: 52px; height: 52px; }
  #tcp .casino-chip span { inset: 7px; font-size: 15px; }
  #tcp .uth-dock { height: 128px; }
  #tcp .uth-buttons, #tcp .uth-buttons button { height: 54px; }
}

/* ---------- TV: the house frame (tv-frame.js; Blackjack is the model). A half-moon felt: the dealer along the top
   with 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 three cards, the hand, the bet circles). The side panel comes from tv-frame. ---------- */
.tcp-tv .tcp-felt { min-height: 0; }
.tcp-tv .hf-felt-name { top: 30%; --hf-name: 2.9vw; }
/* the dealer: "DEALER" above the cards, the hand under them */
.tcp-tv .tcp-dealer { position: absolute; top: 2vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6vh; z-index: 1; }
.tcp-tv .tcp-dealer .lbl { font-size: 1.6vw; font-weight: 800; color: var(--muted); letter-spacing: 2px; }
.tcp-tv .tcp-dealer .cards { display: flex; gap: 0.8vw; }
.tcp-tv .tcp-dealer .card { --w: 5.6vw; }
.tcp-tv .tcp-dtag { min-height: 2.2vw; display: flex; align-items: center; justify-content: center; }
.tcp-tv .tcp-dtag { min-width: 12vw; }
.tcp-tv .tcp-dtag span { font-size: 1.4vw; font-weight: 900; background: rgba(0, 0, 0, 0.45); border-radius: 999px; padding: 0.2vw 1.1vw; white-space: nowrap; }
.tcp-tv .tcp-dtag .q { color: #fff; }
.tcp-tv .tcp-dtag .nq { color: #ffd27a; }
.tcp-shoe { position: absolute; right: 1.5vw; top: 1.5vh; width: 4.5vw; height: 5.5vw; }
.tcp-shoe .card { --w: 3.6vw; position: absolute; top: 0; right: 0; }
.tcp-shoe .card + .card { top: 0.3vw; right: 0.3vw; }
/* a seat: the name pill, the cards (a fixed 3-card zone), the hand, the bet circles, the ante bonus */
.tcp-tv .tcp-seat { --cw: 3.2vw; display: flex; flex-direction: column; align-items: center; gap: 0.5vh; }
.tcp-tv .tcp-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); }
.tcp-tv .tcp-seat .dec.win { color: #6be39a; }
.tcp-tv .tcp-seat .dec.lose { color: #ff8a80; }
.tcp-tv .tcp-seat.turn .hf-cards .card { box-shadow: 0 0 0 0.25vw var(--accent), 0 0 1.2vw rgba(245, 197, 66, 0.7); }
.tcp-tv .tcp-seat.folded .hf-cards { opacity: 0.45; }
.tcp-tv .tcp-seat.out, .tcp-tv .tcp-seat.idle { opacity: 0.5; }
.tcp-tv .tcp-seat .circles { display: flex; gap: 0.3vw; justify-content: center; }
.tcp-circle {
  width: calc(var(--cw) * 1.05); height: calc(var(--cw) * 1.05); max-width: 3.4vw; max-height: 3.4vw; border-radius: 50%;
  border: 0.15vw dashed rgba(255, 255, 255, 0.4); display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.tcp-circle.has { border-style: solid; border-color: var(--accent); background: rgba(0, 0, 0, 0.25); }
.tcp-circle small { font-size: 0.55vw; font-weight: 900; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.03vw; line-height: 1; }
.tcp-circle.pairplus small, .tcp-circle.six small { color: #ffd27a; }
.tcp-circle b { font-size: 0.8vw; color: var(--accent); line-height: 1.1; }
.tcp-circle em { position: absolute; bottom: -0.9vw; 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; }
.tcp-circle em.win { background: var(--ok); color: #fff; }
.tcp-circle em.lose { color: #ff8a80; }
.tcp-circle em.push { color: #cfd3dc; }
.tcp-tv .tcp-seat .bonus { font-size: 0.8vw; font-weight: 900; color: #ffd27a; height: 1.1vw; line-height: 1.1vw; margin-top: 0.5vw; white-space: nowrap; }
/* the side panel (Craps' boxes), plus the pay tables */
.tcp-banner { display: inline-block; border-radius: 999px; padding: 0.3vw 1.2vw; background: rgba(0, 0, 0, 0.35); }
.tcp-banner.q { color: #6be39a; }
.tcp-banner.nq { color: #ffd27a; }
.tcp-pays { background: var(--panel); border-radius: 12px; padding: 0.8vh 0.8vw; font-size: 0.85vw; flex-shrink: 0; }
.tcp-pays .ttl { font-weight: 900; color: var(--accent); font-size: 0.85vw; margin-top: 0.4vh; text-transform: uppercase; letter-spacing: 0.05vw; }
.tcp-pays .ttl:first-child { margin-top: 0; }
.tcp-pays div:not(.ttl) { display: flex; justify-content: space-between; color: var(--muted); font-weight: 700; line-height: 1.35; }
.tcp-pays b { color: var(--text); }
/* TV seats: the bet circles fit the same width as the 3-card zone above them, so neighbouring seats never touch */
.tcp-tv .tcp-seat .tcp-circle { width: 2.6vw; height: 2.6vw; }
.tcp-tv .tcp-seat .tcp-circle small { font-size: 0.5vw; }
.tcp-tv .tcp-seat .tcp-circle b { font-size: 0.75vw; }
