.poker-app {
  font-family: "Times New Roman", Times, serif;
  color: #333;
}

.poker-app .poker-intro {
  margin: 0 0 1.4rem;
}

.poker-app .poker-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
  margin: 0.2rem 0 0;
}

.poker-table {
  border: 1px solid #e3e3e3;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}

.poker-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.poker-seat + .poker-seat,
.poker-board {
  border-top: 1px solid #eee;
}

.poker-seat-name {
  min-width: 7.5rem;
}

.poker-seat-name strong {
  display: block;
}

.poker-seat-name span,
.poker-board-label,
.poker-pot,
.poker-last {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
}

.poker-cards {
  display: flex;
  gap: 0.35rem;
  flex: 1;
}

.poker-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 3.2rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
}

.poker-card.red {
  color: #b3261e;
}

.poker-card.back {
  background: repeating-linear-gradient(45deg, #ddd 0 4px, #f4f4f4 4px 8px);
  color: transparent;
}

.poker-card.empty {
  border-style: dashed;
  border-color: #ddd;
}

.poker-board {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

.poker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.9rem;
}

.poker-actions button,
.poker-next {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #333;
  background: #fff;
  color: #333;
  cursor: pointer;
}

.poker-actions button:hover,
.poker-next:hover {
  background: #333;
  color: #fff;
}

.poker-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}

.poker-advice {
  margin: 0 0 1rem;
}

.poker-advice-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 0.35rem;
}

.poker-advice-head label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
  cursor: pointer;
}

.poker-bars {
  display: grid;
  grid-template-columns: 9rem 1fr 4.5rem;
  gap: 0.25rem 0.6rem;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.poker-bar-track {
  position: relative;
  height: 0.7rem;
  background: #f2f2f2;
}

.poker-bar-zero {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #999;
}

.poker-bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #0864c7;
}

.poker-bar-fill.neg {
  background: #b3261e;
}

.poker-bars .best {
  font-weight: bold;
}

.poker-bars .value {
  text-align: right;
}

.poker-result {
  margin: 0.6rem 0 1rem;
}

.poker-log {
  margin: 0 0 1rem;
}

.poker-log h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.poker-log-item {
  margin: 0 0 0.7rem;
}

.poker-log-item p {
  margin: 0 0 0.25rem;
}

.poker-session {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.poker-session button {
  font: inherit;
  border: none;
  background: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.poker-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #666;
}

@media (max-width: 520px) {
  .poker-table { padding: .65rem; }
  .poker-seat { flex-wrap: wrap; gap: .6rem; }
  .poker-seat-name { min-width: 4.5rem; }
  .poker-seat > div:last-child { width: 100%; }
  .poker-board { flex-wrap: wrap; gap: .5rem; }
  .poker-board .poker-cards { flex: 0 0 100%; order: 1; }
  .poker-cards { min-width: 0; }
  .poker-card { width: 2rem; height: 2.8rem; flex-shrink: 0; }
  .poker-bars { grid-template-columns: minmax(0, 1fr) minmax(30px, 1fr) 4rem; gap: .3rem; }
  .poker-bars > span { overflow-wrap: anywhere; }
  .poker-advice-head { flex-wrap: wrap; gap: .4rem; }
}
