* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f3d2e;
  color: #fff;
  min-height: 100vh;
}
.hidden { display: none !important; }
.app { max-width: 480px; margin: 0 auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.top-bar, .sub-bar {
  display: flex; justify-content: space-between; gap: 8px;
  background: rgba(0,0,0,0.28); padding: 10px 12px; border-radius: 10px; font-size: 13px;
}
.panel { display: flex; flex-direction: column; gap: 14px; }
.card-box {
  background: rgba(255,255,255,0.08);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.box-title { font-size: 15px; font-weight: 600; }
.code-result { background: rgba(0,0,0,0.25); padding: 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.code-label { font-size: 12px; color: #d8f3dc; }
.code-value { font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #ffd166; text-align: center; }
.code-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.join-row { display: flex; gap: 8px; }
input {
  flex: 1; padding: 10px 12px; border-radius: 8px; border: none;
  font-size: 14px; background: #fff; color: #111;
}
.seats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.seat-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px;
}
.seat-card.is-turn { border-color: #ffd166; }
.seat-card.is-folded { opacity: 0.5; }
.seat-card.can-compare { border-color: #ff9f1c; cursor: pointer; }
.seat-name { font-weight: 600; font-size: 14px; }
.seat-meta { font-size: 12px; color: #d8f3dc; margin-top: 4px; }
.my-hand-panel { background: rgba(0,0,0,0.28); padding: 12px; border-radius: 12px; }
.cards-row { min-height: 64px; display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; }
.poker-chip {
  background: #fff; color: #111; padding: 10px 8px; border-radius: 8px;
  font-weight: bold; min-width: 44px; text-align: center;
}
.poker-chip.red { color: #d62828; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
button {
  padding: 10px 8px; border: none; border-radius: 8px;
  background: #2a9d8f; color: #fff; font-weight: 600; cursor: pointer; font-size: 12px;
}
.primary-btn { background: #3a86ff; font-size: 14px; }
.enter-btn { background: #2a9d8f; font-size: 13px; }
button:active { transform: scale(0.98); }
#btnRaise { background: #f4a261; color: #111; }
#btnCompare { background: #e63946; }
#btnFold { background: #e76f51; }
#btnNextRound { background: #457b9d; }
#btnLeave { background: #6c757d; }
.toast { text-align: center; font-size: 13px; color: #ffd166; min-height: 18px; }