/* Live Poker Hand Replayer */

.lpr-wrap {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  /* 120px top clears the fixed site header — same offset as other tool pages */
  padding: 120px 20px 5rem;
}

/* ── Hero ── */
.lpr-hero { text-align: center; margin-bottom: 36px; }
.lpr-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
.lpr-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lpr-desc {
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 14px auto 0;
  line-height: 1.6;
}

/* ── Card / tabs ── */
.lpr-card {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
}
.lpr-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.lpr-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
}
.lpr-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.lpr-tab .material-symbols-outlined { font-size: 20px; }

/* ── Setup form ── */
.lpr-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.lpr-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}
.lpr-optional { font-weight: 400; opacity: 0.7; }
.lpr-field input,
.lpr-field select,
.lpr-player-row input,
.lpr-player-row select,
#lpr-notes {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  color: var(--on-surface);
  font: inherit;
  font-size: 0.95rem;
}
.lpr-players-head,
.lpr-player-row {
  display: grid;
  grid-template-columns: 90px 1fr 110px 130px;
  gap: 10px;
  align-items: center;
}
.lpr-players-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
  padding: 0 2px 8px;
}
.lpr-player-row { margin-bottom: 10px; }
.lpr-pos-tag {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
}
.lpr-cards-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px dashed var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  font: inherit; font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}
.lpr-cards-btn.has-cards { border-style: solid; color: var(--on-surface); }

/* Mini card glyphs (used in rows, history, seats) */
.lpr-mini-card {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 34px;
  padding: 0 4px;
  border-radius: 5px;
  background: #f8f5fd;
  color: #16161c;
  font-weight: 700; font-size: 0.85rem;
  line-height: 1;
}
.lpr-mini-card.red { color: #d21f3c; }
.lpr-mini-card.back {
  background: repeating-linear-gradient(135deg, #2b2b36, #2b2b36 4px, #34344a 4px, #34344a 8px);
  border: 1px solid #48474d;
}

/* ── Card picker ── */
.lpr-picker-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.lpr-picker {
  background: var(--surface-container-high);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.lpr-picker h4 { margin-bottom: 4px; }
.lpr-picker-sub { color: var(--on-surface-variant); font-size: 0.85rem; margin-bottom: 14px; }
.lpr-picker-grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 5px;
  margin-bottom: 14px;
}
.lpr-pick-card {
  padding: 6px 0;
  border-radius: 6px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  color: var(--on-surface);
  font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.lpr-pick-card.red { color: #ff6b81; }
.lpr-pick-card.used { opacity: 0.25; cursor: not-allowed; text-decoration: line-through; }
.lpr-pick-card.chosen { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lpr-picker-footer { display: flex; gap: 10px; justify-content: flex-end; }
.lpr-picker-players {
  border-top: 1px solid var(--outline-variant);
  margin: 4px 0 14px;
  padding-top: 10px;
}
.lpr-picker-player-row {
  display: grid;
  grid-template-columns: 1fr auto 64px;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 0.9rem;
}
.lpr-picker-player-head span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--on-surface-variant);
}
.lpr-picker-player-cards { display: inline-flex; gap: 4px; }
.lpr-picker-player-cards.lpr-unknown { color: var(--on-surface-variant); font-size: 0.8rem; }
.lpr-picker-player-row .lpr-pos-tag { text-align: right; font-size: 0.8rem; }

/* ── Buttons ── */
.lpr-primary-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit; font-weight: 700; font-size: 1rem;
  cursor: pointer;
}
.lpr-primary-btn:hover { background: var(--primary-container); }
.lpr-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lpr-ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface);
  font: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
}
.lpr-ghost-btn:hover { border-color: var(--primary); color: var(--primary); }
/* Stand-out variant — same look as the header's About Me button */
.lpr-ghost-btn.lpr-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  border: none;
  color: var(--on-primary);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 137, 171, 0.25);
  transition: transform 0.15s, box-shadow 0.2s;
}
.lpr-ghost-btn.lpr-cta-btn:hover {
  color: var(--on-primary);
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.4);
}
.lpr-ghost-btn.lpr-cta-btn:active { transform: scale(0.97); }
.lpr-error { color: #ff6b81; font-size: 0.9rem; margin: 10px 0; min-height: 1em; }

/* ── Action builder ── */
.lpr-action-status {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 12px;
}
.lpr-street-tag {
  background: var(--secondary);
  color: #00363c;
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lpr-pot-readout { color: var(--on-surface-variant); }
.lpr-board-readout { display: flex; gap: 6px; margin-bottom: 12px; min-height: 34px; }
.lpr-turn-line { font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lpr-turn-cards { display: inline-flex; gap: 4px; }
.lpr-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.lpr-act-btn {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-high);
  color: var(--on-surface);
  font: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
}
.lpr-act-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.lpr-act-btn.lpr-act-allin { border-color: var(--primary); color: var(--primary); }
.lpr-amount-input { width: 110px !important; }
.lpr-board-prompt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px;
  border: 1px dashed var(--secondary);
  border-radius: 12px;
  margin-bottom: 12px;
}
.lpr-history {
  list-style: none;
  margin: 14px 0;
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--on-surface-variant);
}
.lpr-history li { padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.lpr-history li.lpr-street-break { color: var(--secondary); font-weight: 700; }
.lpr-action-footer { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.lpr-paste-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@keyframes lpr-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 0, 127, 0); }
}
.lpr-ghost-btn.lpr-mic-active {
  border-color: var(--primary);
  color: var(--primary);
  animation: lpr-mic-pulse 1.4s ease-in-out infinite;
}

/* ── Paste panel ── */
.lpr-paste-label { display: block; margin-bottom: 12px; color: var(--on-surface-variant); line-height: 1.5; }
#lpr-notes { resize: vertical; min-height: 150px; line-height: 1.5; }
.lpr-paste-meta {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; color: var(--on-surface-variant);
  margin: 8px 0 14px;
}

/* ── Replay table ── */
.lpr-replay {
  margin-bottom: 40px;
  /* Land below the fixed site header when scrolled into view */
  scroll-margin-top: 96px;
}
/* Seats overflow the ellipse — reserve room so they never collide with
   the header above or the step text below */
.lpr-table-wrap { padding: 48px 0 56px; }
.lpr-table {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  max-height: 560px;
}
.lpr-felt {
  position: absolute;
  inset: 9% 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 45%, #2f7a54 0%, #1f5c3d 48%, #154129 78%, #0e2f1e 100%);
  border: 12px solid #46301f;
  box-shadow:
    0 0 0 2px rgba(255, 215, 106, 0.22),
    0 0 0 7px #2c1d12,
    0 0 0 8px rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 90px rgba(0, 0, 0, 0.5),
    inset 0 2px 18px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
/* Racetrack line */
.lpr-felt::before {
  content: '';
  position: absolute;
  inset: 7% 6%;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
/* Felt watermark */
.lpr-felt::after {
  content: 'JOHNB.IO';
  position: absolute;
  top: 17%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: clamp(0.7rem, 1.6vw, 1.05rem);
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.lpr-board { display: flex; gap: 9px; min-height: 66px; align-items: center; z-index: 1; }
.lpr-board .lpr-mini-card {
  min-width: 46px; height: 64px;
  font-size: 1.3rem;
  border-radius: 8px;
  background: linear-gradient(165deg, #ffffff 0%, #eceaf2 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(-16px) rotateX(50deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lpr-board .lpr-mini-card.dealt { opacity: 1; transform: translateY(0) rotateX(0); }
.lpr-pot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 106, 0.45);
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 32px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  z-index: 1;
}
.lpr-pot::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: repeating-conic-gradient(#ffd76a 0 30deg, #b8912f 30deg 60deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.lpr-pot:empty { visibility: hidden; }
.lpr-announce {
  font-weight: 700;
  color: #ffd76a;
  font-size: 0.95rem;
  text-align: center;
  max-width: 70%;
  min-height: 1.2em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 1;
}

/* Seats — positioned by JS on an ellipse via --x/--y custom properties */
.lpr-seat {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 150px;
  background: linear-gradient(170deg, rgba(38, 38, 48, 0.96), rgba(20, 20, 27, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px 10px 9px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}
.lpr-seat.folded { opacity: 0.35; filter: grayscale(0.6); }
.lpr-seat.active {
  border-color: var(--secondary);
  box-shadow: 0 0 18px rgba(0, 238, 252, 0.5), 0 6px 18px rgba(0, 0, 0, 0.45);
}
@keyframes lpr-winner-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 215, 106, 0.45), 0 6px 18px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 30px rgba(255, 215, 106, 0.85), 0 6px 18px rgba(0, 0, 0, 0.45); }
}
.lpr-seat.winner {
  border-color: #ffd76a;
  animation: lpr-winner-pulse 1.5s ease-in-out infinite;
}
.lpr-seat-pos {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1px;
}
.lpr-seat-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lpr-seat-stack { font-size: 0.82rem; color: var(--on-surface-variant); }
.lpr-seat-stack.allin { color: var(--primary); font-weight: 700; }
.lpr-seat-cards { display: flex; gap: 4px; justify-content: center; margin-top: 6px; min-height: 34px; }
.lpr-seat-action {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.lpr-seat-action:empty { display: none; }
.lpr-seat-equity {
  position: absolute;
  top: -12px;
  right: -10px;
  background: #ffd76a;
  color: #3a2a00;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.lpr-seat-equity:empty { display: none; }
.lpr-compact .lpr-seat-equity { font-size: 0.56rem; padding: 1px 7px; top: -10px; right: -6px; }
.lpr-ctrl-btn.lpr-toggle-btn.active {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Bet chips and dealer button — positioned by JS */
.lpr-bet {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #0d0d12;
  border: 2px solid var(--secondary);
  color: var(--on-surface);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
  white-space: nowrap;
}
.lpr-bet:empty { display: none; }
.lpr-dealer {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f8f5fd;
  color: #16161c;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

/* ── Replay controls ── */
.lpr-step-desc {
  text-align: center;
  min-height: 1.5em;
  margin: 14px 0 10px;
  font-weight: 600;
}
.lpr-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.lpr-ctrl-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-high);
  color: var(--on-surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lpr-ctrl-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.lpr-ctrl-btn.lpr-play {
  width: 58px; height: 58px;
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.lpr-speed-btns { display: flex; gap: 4px; }
.lpr-speed-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--outline-variant);
  background: transparent;
  color: var(--on-surface-variant);
  font: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
}
.lpr-speed-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #00363c;
}
.lpr-progress-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lpr-progress { font-size: 0.85rem; color: var(--on-surface-variant); min-width: 150px; text-align: center; }
#lpr-voice-bar { width: 160px; margin: 0; }

/* ── Share / embed ── */
.lpr-share { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lpr-embed-box { max-width: 640px; margin: 16px auto 0; }
.lpr-embed-box label { display: block; font-size: 0.85rem; color: var(--on-surface-variant); margin-bottom: 8px; }
.lpr-embed-box textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-family: monospace;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.lpr-video-box {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: center;
}
.lpr-video-note { color: var(--on-surface-variant); font-size: 0.85rem; margin-bottom: 12px; }
.lpr-video-formats { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lpr-video-status { font-weight: 600; margin-top: 10px; min-height: 1.2em; }

/* Progress bars — determinate (recording) and indeterminate (voice prep) */
.lpr-progressbar {
  width: 100%;
  max-width: 420px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-container-high);
  margin: 10px auto 0;
  overflow: hidden;
}
.lpr-progressbar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s linear;
}
@keyframes lpr-indet {
  0% { margin-left: -35%; }
  100% { margin-left: 100%; }
}
.lpr-progressbar.indeterminate .lpr-progressbar-fill {
  width: 35%;
  transition: none;
  animation: lpr-indet 1.1s ease-in-out infinite;
}
.lpr-video-preview-wrap { margin-top: 12px; }
.lpr-video-preview-wrap canvas {
  max-width: 100%;
  max-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--outline-variant);
}

.lpr-made-with {
  display: none;
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  text-decoration: none;
}
.lpr-made-with:hover { color: var(--primary); }

.lpr-info { margin-top: 10px; }

/* ── Embed mode ── */
html.lpr-embed #header-placeholder,
html.lpr-embed #footer-placeholder,
html.lpr-embed .lpr-hero,
html.lpr-embed .lpr-info,
html.lpr-embed #lpr-input-card,
html.lpr-embed .lpr-share,
html.lpr-embed .lpr-embed-box,
html.lpr-embed #back-to-top {
  display: none !important;
}
html.lpr-embed .lpr-wrap { padding: 8px 8px 16px; }
html.lpr-embed .lpr-made-with { display: block; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .lpr-wrap { padding: 80px 12px 3rem; }
  .lpr-card { padding: 16px; }
  .lpr-players-head { display: none; }
  .lpr-player-row {
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--outline-variant);
    border-radius: 12px;
    padding: 10px;
  }
  .lpr-table { aspect-ratio: 4 / 4.6; max-height: none; }
  .lpr-table-wrap { padding: 42px 0 46px; }
  /* Keep the outermost seats inside the viewport — half a compact seat is ~13% here */
  .lpr-seat { left: clamp(13%, var(--x), 87%); }
  .lpr-progress-wrap { min-width: 100%; order: 5; }
  .lpr-picker-grid { grid-template-columns: repeat(7, 1fr); }
}

/* Compact table — applied by JS on narrow OR short screens (phones in both
   orientations). Smaller seats sit out on the rail; the felt announce text is
   hidden because the caption under the table shows the same thing. */
.lpr-compact .lpr-felt { inset: 10% 4%; }
.lpr-compact .lpr-felt::before { inset: 9% 7%; }
.lpr-compact .lpr-felt::after { display: none; }
.lpr-compact .lpr-announce { display: none; }
.lpr-compact .lpr-board { gap: 5px; min-height: 46px; }
.lpr-compact .lpr-board .lpr-mini-card { min-width: 30px; height: 43px; font-size: 0.9rem; border-radius: 6px; }
.lpr-compact .lpr-pot { font-size: 0.76rem; padding: 4px 12px; min-height: 26px; gap: 6px; }
.lpr-compact .lpr-pot::before { width: 9px; height: 9px; }
.lpr-compact .lpr-seat { width: 88px; padding: 4px 5px 6px; border-radius: 10px; }
.lpr-compact .lpr-seat-pos { font-size: 0.5rem; }
.lpr-compact .lpr-seat-name { font-size: 0.7rem; }
.lpr-compact .lpr-seat-stack { font-size: 0.62rem; }
.lpr-compact .lpr-seat-cards { margin-top: 3px; min-height: 26px; }
.lpr-compact .lpr-seat-cards .lpr-mini-card { min-width: 19px; height: 26px; font-size: 0.66rem; padding: 0 2px; }
.lpr-compact .lpr-bet { font-size: 0.6rem; padding: 2px 7px; }
.lpr-compact .lpr-seat-action { font-size: 0.56rem; top: -10px; padding: 2px 8px; }
.lpr-compact .lpr-dealer { width: 17px; height: 17px; font-size: 0.56rem; }

/* Short landscape viewports (phone rotated): size the table from the actual
   viewport height so table + caption + controls fit on screen. */
@media (min-width: 701px) and (max-height: 620px) {
  .lpr-wrap { padding-top: 72px; }
  .lpr-hero { margin-bottom: 18px; }
  .lpr-table-wrap { padding: 28px 0 32px; }
  .lpr-table {
    aspect-ratio: auto;
    height: calc(100dvh - 215px);
    min-height: 185px;
    max-height: 430px;
  }
  .lpr-felt { inset: 7% 9%; }
  .lpr-step-desc { margin: 6px 0 6px; font-size: 0.9rem; }
  .lpr-controls { gap: 8px; margin-bottom: 10px; }
  .lpr-ctrl-btn { width: 40px; height: 40px; }
  .lpr-ctrl-btn.lpr-play { width: 48px; height: 48px; }
  .lpr-replay { scroll-margin-top: 72px; }
}
