/* Poker memakai tata letak Cangkulan (kursi, meja, area pemain); ini tampilannya sendiri. */
.poker .felt { flex-direction: column; gap: 14px; }
.poker .center { display: grid; justify-items: center; gap: 12px; }
.pot {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .35);
  font-weight: 800; font-size: 16px; color: var(--ivory);
}
.chip-icon {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, #fff 0 32%, #c8322b 33% 100%);
  border: 2px dashed #fff; box-sizing: border-box;
}
.board { display: flex; gap: 6px; }
.board .slot { width: 48px; }
.board .slot.empty { height: 67px; border-radius: 6px; border: 2px dashed rgba(246, 239, 223, .25); }
.board .card-svg { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); animation: drop .3s ease-out; }
.board .slot.win .card-svg { outline: 3px solid var(--amber); outline-offset: 1px; border-radius: 6px; }
.blinds { font-size: 12px; color: var(--ink-2); font-weight: 600; }

/* Kursi: chip, taruhan, tanda tombol/blind, dua kartu */
.poker .seat { position: relative; }
.pk-chips { font-weight: 800; color: var(--amber); font-size: 13px; }
.pk-bet {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 2px;
  padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 12px; font-weight: 700; color: var(--ivory);
}
.pk-tag { position: absolute; top: -8px; left: -6px; z-index: 2; display: flex; gap: 3px; }
.pk-tag span { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.pk-tag .d { background: #f6efdf; color: #1c1712; }
.pk-tag .b { background: #2f6fc6; color: #fff; }
.seat-cards { display: flex; gap: 2px; margin-top: 3px; }
.seat-cards .card-svg { width: 24px; }
.seat-cards.big .card-svg { width: 34px; }
.poker .seat.is-folded { opacity: .45; }
.poker .seat.is-winner { box-shadow: 0 0 0 2px var(--amber), 0 0 24px rgba(242, 169, 59, .5); }
.poker .seat.is-out { opacity: .35; }
.seat-note { font-size: 11px; font-weight: 700; color: var(--ink-2); }

/* Kartuku */
.my-hand { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 0; }
.my-hand .cards { display: flex; gap: 6px; }
.my-hand .card-svg { width: min(22vw, 92px); width: 22vw; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45)); }
@supports (width: min(1px, 2px)) { .my-hand .card-svg { width: min(22vw, 92px, calc(var(--app-h) * .12)); } }
.my-hand .card-svg:nth-child(1) { transform: rotate(-5deg); }
.my-hand .card-svg:nth-child(2) { transform: rotate(5deg); }
.my-hand .best { max-width: 9em; font-size: 14px; font-weight: 700; color: var(--amber); }
.my-hand .folded { color: var(--ink-3); }

.pk-actions { display: grid; gap: 8px; }
.pk-row { display: flex; gap: 8px; }
.pk-row .btn { flex: 1; min-height: 50px; }
.pk-raise { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.pk-amount { display: flex; align-items: center; gap: 8px; }
.pk-amount output { flex: 1; text-align: center; font-weight: 800; font-size: 20px; color: var(--amber); }
.pk-amount .btn { min-width: 52px; font-size: 20px; }
.pk-presets { display: flex; gap: 6px; }
.pk-presets .btn { flex: 1; min-height: 38px; font-size: 13px; padding: 0 6px; }

/* Layar bandar: pemain melingkari meja, kartu meja besar */
@media (min-width: 900px) {
  .poker.is-dealer .ck-seats.round-table { grid-row: 3; grid-column: 1; position: relative; display: block; z-index: 2; pointer-events: none; }
  .poker.is-dealer .ck-seats.round-table .seat {
    position: absolute; width: 220px; transform: translate(-50%, -50%);
    background: rgba(28, 22, 16, .92);
  }
  .poker.is-dealer .ck-seats.round-table .seat.is-active { box-shadow: 0 0 0 2px var(--amber), 0 0 28px rgba(242, 169, 59, .45); }
  .poker.is-dealer .board .slot { width: 96px; }
  .poker.is-dealer .board .slot.empty { height: 134px; }
  .poker.is-dealer .pot { font-size: 24px; padding: 8px 20px; }
  .poker.is-dealer .blinds { font-size: 15px; }
  .poker.is-dealer .seat-cards .card-svg { width: 30px; }
  .poker.is-dealer .seat-cards.big .card-svg { width: 52px; }
  .poker.is-dealer .host.on { left: 50%; transform: translateX(-120px); }
}

/* HP mendatar */
@media (max-height: 480px) {
  .poker .me { overflow-y: auto; align-content: start; }
  .my-hand .card-svg { width: 44px; }
  .my-hand .best { font-size: 13px; }
  .pk-row .btn { min-height: 40px; }
  .pk-raise { padding: 6px; gap: 6px; }
  .pk-amount .btn, .pk-presets .btn { min-height: 34px; }
}

/* HP mendatar: kartu pemain lain dipadatkan supaya tombol taruhan punya ruang. */
@media (max-height: 480px) {
  .poker .ck-seats .seat { padding: 4px 8px; }
  .poker .ck-seats .seat-cards, .poker .ck-seats .avatar { display: none; }
  .poker .ck-seats .pk-bet { margin-top: 0; }
}
@media (max-height: 480px) {
  .poker .me { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
  .poker .me > * { flex: none; }
  .poker .my-hand { min-height: auto; }
  .poker .my-hand .card-svg { transform: none; }
}
