/* Texas Hold'em table UI */
.ht-wrap { max-width: 860px; margin: 0 auto; }

/* ---- game menu (moved from inline <style> in index.html) ---- */
body { max-width: 900px; margin: 0 auto; padding: 16px; }
.hmodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.hmode { border: 1px solid var(--border); border-radius: 12px; padding: 18px; cursor: pointer; background: var(--panel); -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .2s ease; }
@media (hover: hover) { .hmode:hover { border-color: var(--accent); filter: brightness(1.12); } }
.hmode:active { transform: scale(.97); }
.hmode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hmode b { display: block; font-size: 17px; margin-bottom: 6px; }
.hmode span { font-size: 13px; color: var(--muted); }
/* fixed balance badge (inline style moved from index.html) */
.hbal-badge { position: fixed; top: 10px; right: 10px; background: rgba(0,0,0,.6); padding: 10px 14px; border-radius: 10px; z-index: 9999; color: #ffd700; font-weight: bold; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
/* #hgame's header row (Leave button) sits top-right — clear the fixed badge above it */
#hgame { padding-top: 72px; }
/* friend-room panel: 44px touch targets, 16px input (no iOS zoom) */
#hroom .btn { min-height: 44px; }
#hroomcode { flex: 1; font-size: 16px; padding: 10px 12px; min-height: 44px; }
.ht-table {
  position: relative; width: 100%; aspect-ratio: 16/10; max-height: 62vh;
  background: radial-gradient(ellipse at center, #2e7d4f 0%, #1d5c36 55%, #143d24 100%);
  border: 14px solid #5a3a1e; border-radius: 50%/50%;
  box-shadow: inset 0 0 60px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  margin: 12px 0;
}
.ht-felt-line {
  position: absolute; inset: 26px; border: 2px dashed rgba(255,255,255,.18);
  border-radius: 50%/50%; pointer-events: none;
}
.ht-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.ht-pot {
  display: inline-block; background: rgba(0,0,0,.55); color: #ffd54a; font-weight: bold;
  padding: 6px 16px; border-radius: 20px; font-size: 16px; margin-bottom: 10px;
  border: 1px solid rgba(255,213,74,.4);
}
.ht-comm { display: flex; gap: 6px; justify-content: center; min-height: 76px; }
.ht-street { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 6px; text-transform: uppercase; letter-spacing: 2px; }
.ht-seat { position: absolute; transform: translate(-50%,-50%); text-align: center; width: 120px; }
.ht-seat .ht-pcards { display: flex; gap: 4px; justify-content: center; margin-bottom: 4px; min-height: 56px; }
.ht-ava {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 2px;
  background: linear-gradient(135deg,var(--brand1, #6c5ce7),var(--brand2, #00cec9)); display: flex; align-items: center; justify-content: center;
  font-weight: bold; color: #fff; font-size: 18px; border: 2px solid rgba(255,255,255,.35);
  position: relative;
}
.ht-seat.acting .ht-ava { border-color: #ffd54a; box-shadow: 0 0 12px #ffd54a; }
.ht-seat.folded { opacity: .45; }
.ht-name { color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-stack { color: #ffd54a; font-size: 12px; font-weight: 600; }
.ht-bet {
  position: absolute; background: rgba(0,0,0,.6); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 10px; border: 1px solid #c0392b; white-space: nowrap;
}
.ht-dealer {
  position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #222;
  font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.ht-lastact { color: #7bed9f; font-size: 11px; min-height: 14px; }
/* playing cards */
.ht-card {
  width: 44px; height: 62px; background: #fff; border-radius: 6px; position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); font-family: Georgia, serif;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.ht-card.red { color: #d63031; } .ht-card.black { color: #2d3436; }
.ht-card .r { font-size: 17px; font-weight: bold; line-height: 1; }
.ht-card .s { font-size: 20px; line-height: 1; }
.ht-card.back {
  background: repeating-linear-gradient(45deg, #1a3a6b, #1a3a6b 6px, #274b8f 6px, #274b8f 12px);
  border: 3px solid #fff;
}
.ht-card.small { width: 34px; height: 48px; }
.ht-card.small .r { font-size: 13px; } .ht-card.small .s { font-size: 15px; }
/* action bar */
.ht-actions {
  display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap;
  background: rgba(0,0,0,.35); padding: 12px; border-radius: 14px; margin-top: 8px;
}
.ht-actions button {
  padding: 14px 22px; min-height: 44px; border-radius: 10px; border: none; font-size: 15px; font-weight: 700;
  cursor: pointer; background: #2d6cdf; color: #fff; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .2s ease;
}
.ht-actions button:focus-visible { outline: 2px solid #ffd54a; outline-offset: 2px; }
@media (hover: hover) { .ht-actions button:hover { filter: brightness(1.12); } }
.ht-actions button:active { transform: translateY(2px); }
.ht-actions button[data-a="fold"] { background: #636e72; }
.ht-actions button[data-a="allin"] { background: #d63031; }
.ht-actions button[data-a="check"], .ht-actions button[data-a="call"] { background: #00b894; }
.ht-actions input { padding: 12px; min-height: 44px; border-radius: 10px; border: 1px solid #555; width: 110px; font-size: 16px; }
.ht-winners { text-align: center; margin: 10px 0; font-size: 16px; color: #ffd54a; font-weight: bold; }
.ht-log { max-height: 120px; overflow-y: auto; font-size: 12px; color: #aaa; margin-top: 10px; }
.ht-log div { padding: 2px 0; border-bottom: 1px solid #222; }
/* empty log: dashed placeholder box */
.ht-log:empty { border: 1px dashed #444; border-radius: 10px; min-height: 52px; background: rgba(0,0,0,.2); }
/* waiting-for-players state rendered into #holdem-table */
.pwaiting { text-align: center; color: #aaa; border: 1px dashed #444; border-radius: 12px; padding: 28px 16px; margin: 20px 0; font-size: 15px; background: rgba(0,0,0,.2); }
/* inline hand-drawn svg icons (shield/robot/trophy/bolt) */
.ht-wrap .ei { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
@media (max-width: 640px) {
  .ht-seat { width: 84px; }
  .ht-card { width: 34px; height: 48px; }
  .ht-card .r { font-size: 13px; } .ht-card .s { font-size: 15px; }
  .ht-ava { width: 34px; height: 34px; font-size: 14px; }
  .ht-table { border-width: 8px; }
}

/* Provably-fair verify button */
.ht-fairrow { text-align: right; margin-bottom: 6px; }
.ht-verify { background: rgba(108,92,231,.15); color: #b9aefc; border: 1px solid var(--brand1, #6c5ce7); border-radius: 10px; padding: 10px 18px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .2s ease; }
.ht-verify:active { transform: scale(.96); }
.ht-verify:focus-visible { outline: 2px solid #b9aefc; outline-offset: 2px; }
@media (hover: hover) { .ht-verify:hover { background: rgba(108,92,231,.35); color: #fff; } }

.ht-rake { font-size: 11px; color: var(--muted, #888); font-weight: 400; }
