.poker { max-width: 1200px; margin: 0 auto; padding: 10px 12px 170px; display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.ptable-wrap { position: relative; }
.ptable { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.felt { position: absolute; inset: 9% 7%; border-radius: 50% / 50%; background: radial-gradient(ellipse at 50% 40%, #1e6b46, #11432c 70%, #0d3322); border: 10px solid #3b2a1c; box-shadow: inset 0 0 40px rgba(0, 0, 0, .55), 0 20px 50px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(255, 255, 255, .06); }
.felt .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.pot { font: 700 15px var(--display); color: #fde68a; background: rgba(0, 0, 0, .35); padding: 4px 12px; border-radius: 999px; min-height: 26px; }
.board { display: flex; gap: 6px; min-height: 64px; }
.result { font-weight: 800; font-size: 14px; color: #fff; text-align: center; min-height: 20px; text-shadow: 0 1px 2px #000; max-width: 70%; }

.pcard { width: 44px; height: 62px; border-radius: 6px; background: #fff; color: #111; display: flex; flex-direction: column; justify-content: space-between; padding: 4px 5px; font: 800 15px/1 var(--body); box-shadow: 0 3px 8px rgba(0, 0, 0, .45); position: relative; }
.pcard.red { color: #d81e2c; }
.pcard .s { font-size: 20px; align-self: flex-end; }
.pcard.back { background: repeating-linear-gradient(45deg, #5b21b6 0 6px, #7c3aed 6px 12px); border: 3px solid #ede9fe; }
.pcard.sm { width: 30px; height: 42px; font-size: 11px; padding: 3px; }
.pcard.sm .s { font-size: 13px; }
.pcard.win { box-shadow: 0 0 0 3px #facc15, 0 3px 8px rgba(0, 0, 0, .45); }

#seats .seat { position: absolute; width: 120px; margin-left: -60px; margin-top: -40px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: opacity .2s; }
.seat .who { display: flex; align-items: center; gap: 6px; background: rgba(11, 16, 32, .85); border: 2px solid var(--border2); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; font-weight: 800; white-space: nowrap; max-width: 150px; position: relative; }
.seat .who .n { overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
.seat .who .ch { color: #fde68a; font-family: var(--display); }
.seat.acting .who { border-color: #facc15; box-shadow: 0 0 18px rgba(250, 204, 21, .5); }
.seat.folded { opacity: .45; }
.seat.off .who { border-style: dashed; }
.seat .cards { display: flex; gap: 3px; height: 42px; }
.seat .bet { font: 700 12px var(--display); color: #fff; background: rgba(0, 0, 0, .5); border-radius: 999px; padding: 2px 8px; display: flex; align-items: center; gap: 4px; }
.seat .bet::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(#f87171, #991b1b); border: 2px dashed #fff; box-sizing: border-box; }
.seat .btn-d { position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #111; font: 800 11px var(--display); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.seat .tag { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: 1px; }
.seat .timer { width: 100px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.seat .timer i { display: block; height: 100%; background: #facc15; transform-origin: left; }
.seat.me .who { border-color: #a855f7; }

.pside { display: flex; flex-direction: column; gap: 12px; }
.pinfo { padding: 12px 14px; margin: 0; font-size: 14px; }
.pinfo .row { justify-content: space-between; }
.plog { padding: 12px 14px; margin: 0; }
.plog .log { max-height: 360px; overflow: auto; font-size: 13px; }
.plog .log div { padding: 2px 0; border-top: 1px solid var(--border); }
.plog .log div.h { color: var(--yellow); font-weight: 800; }

.pactions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(11, 16, 32, .97) 30%); }
.pactions .inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pactions .mycards { display: flex; gap: 8px; }
.pactions .mycards .pcard { width: 64px; height: 90px; font-size: 22px; padding: 6px 8px; }
.pactions .mycards .pcard .s { font-size: 30px; }
.pactions .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pactions .raise { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pactions .raise input[type=range] { width: 200px; }
.pactions .raise input[type=number] { width: 110px; padding: 8px 10px; }
.pactions .msg { color: var(--soft); font-weight: 700; }
.pactions .quick { display: flex; gap: 6px; }
.pactions .quick .btn { padding: 6px 10px; font-size: 12px; }
.btn.fold { background: rgba(244, 63, 94, .25); border-color: var(--red); }
.btn.call { background: rgba(163, 230, 53, .25); border-color: var(--lime); }
.btn.raise-btn { background: var(--grad); border: 0; color: #fff; }

@media (max-width: 900px) {
  .poker { grid-template-columns: 1fr; padding-bottom: 200px; }
  .plog .log { max-height: 160px; }
  #seats .seat { width: 96px; margin-left: -48px; }
  .seat .who .n { max-width: 56px; }
  .pcard { width: 36px; height: 50px; font-size: 12px; } .pcard .s { font-size: 16px; }
  .pactions .mycards .pcard { width: 54px; height: 76px; font-size: 18px; } .pactions .mycards .pcard .s { font-size: 24px; }
  .pactions .raise input[type=range] { width: 140px; }
}
