/* Texas Hold'em table. Reuses the board-game menu pieces (.bg-option,
   .bg-pick, .bg-room, .bg-actions) from boardgame.css's look, restated here
   so the poker page needs only this file. */

.pk [hidden] { display: none !important; }
.pk { max-width: 980px; margin: 0 auto; padding: clamp(24px, 4vw, 44px) 0 72px; }
.pk-title { text-align: center; margin-bottom: 22px; }
.pk-setup { display: grid; gap: 16px; max-width: 420px; margin: 0 auto; }
.bg-option { display: grid; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bg-option .btn { width: 100%; font-size: 18px; padding: 16px 20px; }
.bg-pick { display: flex; gap: 12px; flex-wrap: wrap; }
.bg-pick label, .pk-host label { flex: 1 1 140px; display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pk select { font: 500 16px var(--body); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.pk-fine { text-align: center; font-size: 13px; color: var(--ink-2); margin: 0; }
.bg-room { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 14px 0 0; font-size: 15px; }
.bg-room b { font-family: var(--mono); letter-spacing: .08em; }
.bg-room .btn-small, .bg-actions .btn-small, .pk-host .btn-small { margin: 0; }
.bg-watchers { color: var(--ink-2); }
.bg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* ----------------------------------------------------------------- table */

.pk-table { padding: 34px 6% 40px; }
.pk-felt {
  position: relative; aspect-ratio: 2 / 1.05; border-radius: 999px;
  background: radial-gradient(ellipse at 50% 40%, #1f7a4d 0%, #135c39 55%, #0c4229 100%);
  box-shadow: 0 0 0 12px #5a3a22, 0 0 0 14px #3e2716, 0 24px 50px -20px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.35);
}
.pk-center { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; }
.pk-board { display: flex; gap: 6px; }
.pk-pot { font: 700 16px var(--display); color: #F6E7B8; min-height: 1.2em; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ----------------------------------------------------------------- cards */

.pk-card {
  width: 46px; height: 64px; border-radius: 6px; background: #fff; color: #1d1b16;
  display: inline-grid; grid-template-rows: auto 1fr; justify-items: start; padding: 3px 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,.35); font-family: var(--display); line-height: 1; flex: none;
}
.pk-card b { font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.pk-card i { font-style: normal; font-size: 22px; align-self: end; justify-self: end; }
.pk-card.red { color: #c62828; }
.pk-card.back { background: repeating-linear-gradient(45deg, #9e2b25 0 4px, #b8352e 4px 8px); border: 2px solid #fff; }
.pk-card.slot { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.pk-card.sm { width: 34px; height: 48px; padding: 2px 4px; }
.pk-card.sm b { font-size: 15px; }
.pk-card.sm i { font-size: 16px; }

/* ----------------------------------------------------------------- seats */

.pk-seat { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; width: 128px; z-index: 2; }
.pk-seat.empty { width: 54px; height: 54px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.25); }
.pk-hole { display: flex; gap: 3px; min-height: 48px; }
.pk-seat.is-me .pk-hole { min-height: 64px; }
.pk-plate {
  display: grid; justify-items: center; min-width: 108px; padding: 5px 10px; border-radius: 12px;
  background: #1d1b16; color: #f3ede1; border: 2px solid #3a352b; box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.pk-name { font-weight: 600; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chips { font: 700 15px var(--display); color: #F2B134; }
.pk-seat.is-turn .pk-plate { border-color: #F2B134; box-shadow: 0 0 0 3px rgba(242,177,52,.4), 0 4px 10px rgba(0,0,0,.35); }
.pk-seat.is-win .pk-plate { border-color: #4CC3B8; box-shadow: 0 0 0 3px rgba(76,195,184,.45); }
.pk-seat.is-out .pk-hole { opacity: .35; }
.pk-seat.is-me .pk-plate { background: #2b2821; }
.pk-tag { font: 600 12px var(--body); background: #f3ede1; color: #1d1b16; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pk-dealer { position: absolute; right: 4px; top: 38px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1d1b16; font: 800 12px/22px var(--display); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pk-bet {
  position: absolute; transform: translate(-50%, -50%); z-index: 1;
  font: 700 13px var(--display); color: #1d1b16; background: #F2B134; padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.pk-sit { font: 600 13px var(--body); color: #fff; background: rgba(0,0,0,.35); border: 2px dashed rgba(255,255,255,.5); border-radius: 999px; padding: 10px 14px; cursor: pointer; }
.pk-sit:hover { background: rgba(0,0,0,.5); }

.pk-msg { text-align: center; font: 700 19px/1.35 var(--display); min-height: 1.35em; margin: 4px 0 6px; }
.pk-clock { text-align: center; font: 600 14px var(--mono); color: var(--ink-2); margin: 0 0 8px; }
.pk-clock.low { color: var(--tomato); }

/* --------------------------------------------------------------- actions */

.pk-bar { display: grid; gap: 12px; max-width: 560px; margin: 8px auto 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pk-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.pk-main .btn { width: 100%; padding: 14px 10px; }
.btn-raise { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.pk-sizer { display: grid; grid-template-columns: 1fr 96px; gap: 8px 12px; align-items: center; }
.pk-presets { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.pk-presets button { flex: 1; font: 600 14px var(--body); padding: 8px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.pk-presets button:hover { border-color: var(--ink-2); }
#pk-slider { width: 100%; accent-color: var(--tomato); }
#pk-amount { font: 600 16px var(--body); padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.pk-host { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 10px; margin-top: 14px; }
.pk-host label { flex: 0 1 200px; }

@media (max-width: 720px) {
  .pk-table { padding: 40px 0 44px; }
  .pk-felt { aspect-ratio: 1 / 1.25; border-radius: 46% / 36%; }
  .pk-seat { width: 96px; }
  .pk-plate { min-width: 84px; padding: 4px 6px; }
  .pk-name { font-size: 12px; max-width: 84px; }
  .pk-card { width: 36px; height: 50px; }
  .pk-card b { font-size: 16px; } .pk-card i { font-size: 17px; }
  .pk-card.sm { width: 26px; height: 37px; }
  .pk-card.sm b { font-size: 12px; } .pk-card.sm i { font-size: 12px; }
  .pk-hole { min-height: 37px; }
  .pk-seat.is-me .pk-hole { min-height: 50px; }
  .pk-board { gap: 3px; }
  .pk-dealer { top: 30px; }
}
