/* The Poker Practice HTML5 Hold'em — namespaced so the 2008 site CSS cannot leak in. */

.tpp-holdem,
.tpp-overlay,
.tpp-debug {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: #e8e8e8;
}

.tpp-holdem *,
.tpp-overlay *,
.tpp-debug * {
  box-sizing: border-box;
}

#flash.tpp-flash {
  position: relative;
  width: 680px;
  max-width: 100%;
}

#tpp-holdem-root {
  position: relative;
  isolation: isolate;
  width: 680px;
  max-width: 100%;
}

.tpp-holdem {
  container-type: inline-size;
  position: relative;
  z-index: 1;
  background:
    repeating-linear-gradient(
      180deg,
      #141820 0 3px,
      #10141c 3px 6px
    );
  border: 1px solid #2a3140;
  min-height: 640px;
  padding: 8px 8px 12px;
}

#tpp-holdem-root.tpp-modal-open .tpp-holdem {
  pointer-events: none;
}

.tpp-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 8px;
}

.tpp-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #fff;
  margin-right: auto;
}

.tpp-money-tag {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #f6d36a;
  border: 1px solid #b8860b;
  padding: 2px 6px;
  border-radius: 10px;
}

.tpp-text-btn,
.tpp-holdem button,
.tpp-overlay button {
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: #f3f0e6;
  border: 0;
}

.tpp-text-btn {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 8px;
  min-height: 44px;
}

.tpp-text-btn:hover,
.tpp-text-btn:focus-visible {
  color: #fff8c8;
  outline: 2px solid #f6d36a;
}

.tpp-table-wrap {
  position: relative;
  height: 340px;
  margin-bottom: 0;
}

.tpp-table {
  position: absolute;
  isolation: isolate;
  inset: 4px 12px 0;
}

.tpp-felt {
  position: absolute;
  z-index: 1;
  left: 14%;
  right: 14%;
  top: 26%;
  bottom: 6%;
  background: radial-gradient(ellipse at center, #2b8a86 0%, #165e5c 55%, #0e4342 100%);
  border: 6px solid #d8c48a;
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
}

.tpp-board {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.tpp-pot {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 78%;
  transform: translateX(-50%);
  background: #2a3140;
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.tpp-chips {
  position: absolute;
  z-index: 2;
  left: 22%;
  top: 58%;
  width: 40px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5aa0e8, #1d4f8c 60%);
  box-shadow: 10px 0 0 #1d4f8c, 5px -4px 0 #c9a227;
  pointer-events: none;
}

.tpp-seats {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.tpp-seat {
  position: absolute;
  width: 124px;
  text-align: center;
  pointer-events: auto;
}

.tpp-seat-you { display: none; }
.tpp-seat-left { left: 0; top: 38%; }
.tpp-seat-right { right: 0; top: 38%; }
.tpp-seat-top { left: 50%; top: 0; transform: translateX(-50%); }
.tpp-seat-top-left { left: 6%; top: 2%; }
.tpp-seat-top-right { right: 6%; top: 2%; }

.tpp-seat-top .tpp-seat-cards,
.tpp-seat-top-left .tpp-seat-cards,
.tpp-seat-top-right .tpp-seat-cards {
  margin-bottom: 2px;
}

.tpp-seat-left .tpp-seat-cards,
.tpp-seat-right .tpp-seat-cards {
  margin-bottom: 2px;
}

.tpp-seat-box {
  background: #9aa3b0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.tpp-seat-name {
  background: #1b2740;
  color: #fff;
  font-size: 13px;
  padding: 3px 6px;
}

.tpp-seat-stack {
  background: #c5ccd6;
  color: #111;
  font-size: 13px;
  padding: 2px 6px;
}

.tpp-seat-status {
  background: #5d6570;
  color: #fff;
  font-size: 11px;
  min-height: 18px;
  padding: 2px 6px;
}

.tpp-seat.is-acting .tpp-seat-box {
  outline: 2px solid #f6d36a;
}

.tpp-seat.is-folded {
  opacity: 0.45;
}

.tpp-seat.is-winner .tpp-seat-name {
  background: #7a5b00;
}

.tpp-seat.is-allin .tpp-seat-status {
  background: #6b2a2a;
}

.tpp-seat-cards {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 4px;
}

.tpp-dealer {
  display: inline-block;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  background: #d9d9d9;
  color: #163a7a;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.tpp-blind {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  color: #f6d36a;
  vertical-align: middle;
}

.tpp-status,
.tpp-strength {
  text-align: center;
  margin: 2px 8px 0;
  font-size: 13px;
}

.tpp-strength {
  color: #f6d36a;
  min-height: 16px;
}

.tpp-disclaimer {
  text-align: center;
  margin: 4px 8px;
  font-size: 11px;
  color: #b8b8b8;
}

.tpp-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -4px 12px 4px;
  position: relative;
  z-index: 2;
}

.tpp-hero-cards {
  display: flex;
  gap: 8px;
  min-height: 100px;
  flex-shrink: 0;
}

.tpp-hero-box {
  width: 150px;
  text-align: center;
  flex-shrink: 0;
}

.tpp-hero-box.is-acting-box {
  outline: 2px solid #f6d36a;
}

.tpp-hero-box.is-folded-box {
  opacity: 0.55;
}

.tpp-hero-box.is-winner-box .tpp-seat-name {
  background: #7a5b00;
}

.tpp-hero-box.is-allin-box .tpp-seat-status {
  background: #6b2a2a;
}

@container (max-width: 560px) {
  .tpp-table-wrap { height: 300px; }
  .tpp-felt { left: 8%; right: 8%; top: 28%; bottom: 4%; }
  .tpp-seat { width: 104px; }
  .tpp-actions { grid-template-columns: 1fr 1fr; }
  .tpp-hero-cards { display: flex; }
}

.tpp-holdem.tpp-narrow .tpp-actions {
  grid-template-columns: 1fr 1fr;
}

.tpp-holdem.tpp-narrow .tpp-table-wrap {
  height: 280px;
}

.tpp-holdem.tpp-narrow .tpp-hero-cards {
  display: flex;
}

@media (max-width: 420px) {
  .tpp-card.is-large { width: 58px; height: 82px; }
}

.tpp-hero-meta {
  font-size: 13px;
}

.tpp-card {
  width: 50px;
  height: 70px;
  border-radius: 5px;
  background: #fff;
  color: #111;
  border: 1px solid #bbb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 800;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}

.tpp-card-rank {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.tpp-card-suit {
  font-size: 22px;
  line-height: 1;
}

.tpp-card.is-large {
  width: 72px;
  height: 100px;
}

.tpp-card.is-large .tpp-card-rank {
  font-size: 32px;
}

.tpp-card.is-large .tpp-card-suit {
  font-size: 34px;
}

.tpp-card.is-small {
  width: 36px;
  height: 50px;
}

.tpp-card.is-small .tpp-card-rank {
  font-size: 14px;
}

.tpp-card.is-small .tpp-card-suit {
  font-size: 15px;
}

.tpp-card-slot {
  background: rgba(0,0,0,.15);
  border: 1px dashed rgba(255,255,255,.25);
}

.tpp-card-back {
  background: linear-gradient(#2a3348, #1a2233);
  color: #f3efe3;
  border-color: #8a7a4a;
}

.tpp-card-back span {
  font-family: Georgia, serif;
  font-size: 20px;
}

.tpp-card.is-small.tpp-card-back span {
  font-size: 14px;
}

.tpp-card.is-red { color: #c01010; }
.tpp-card.is-black { color: #111; }
.tpp-card.is-win { box-shadow: 0 0 0 2px #f6d36a; }

.tpp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
}

.tpp-act {
  min-height: 44px;
  border-radius: 4px;
  background: #2a3140;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.tpp-act:disabled {
  opacity: 0.35;
  cursor: default;
}

.tpp-act:focus-visible {
  outline: 2px solid #f6d36a;
}

.tpp-fold { background: #5a2a2a; }
.tpp-call { background: #1e4d3b; }
.tpp-raise { background: #1d3f6b; }
.tpp-allin { background: #6b4a12; }

.tpp-raise {
  padding: 0 8px 8px;
}

.tpp-raise-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.tpp-raise-presets button,
.tpp-dialog-actions button,
.tpp-play {
  min-height: 44px;
  background: #2a3140;
  color: #fff;
  border-radius: 4px;
  padding: 0 10px;
}

.tpp-raise-slider {
  display: block;
  font-size: 12px;
  margin: 6px 0;
}

.tpp-raise-slider input {
  width: 100%;
}

.tpp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
}

.tpp-overlay[hidden] {
  display: none !important;
}

.tpp-dialog {
  width: min(360px, 92%);
  background: #1b2230;
  border: 1px solid #d8c48a;
  padding: 18px;
  text-align: center;
}

.tpp-dialog h2 {
  color: #fff;
  margin-bottom: 8px;
}

.tpp-dialog label {
  display: block;
  text-align: left;
  margin: 10px 0;
  font-size: 13px;
}

.tpp-dialog select {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  background: #111;
  color: #fff;
  border: 1px solid #555;
}

button.tpp-play {
  width: 100%;
  margin-top: 12px;
  background: #8a6a16;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.tpp-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.tpp-setup-note {
  font-size: 12px;
  color: #ccc;
  margin-bottom: 8px;
}

.tpp-debug {
  margin-top: 10px;
  background: #0b0d12;
  color: #9fdf9f;
  font-size: 11px;
  padding: 8px;
  max-height: 280px;
  overflow: auto;
}

.tpp-game-note {
  font-size: 12px;
  color: #a9a9a9;
  margin: 8px 0 0;
}

