.rsg2-app {
  background: var(--rsg2-bg);
  color: var(--rsg2-text);
  padding: 24px;
  border-radius: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
.rsg2-app * { box-sizing: border-box; }
.rsg2-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.rsg2-header h2 { margin: 0; color: var(--rsg2-text); }
.rsg2-version { opacity: .8; font-size: 13px; margin-top: 4px; }
.rsg2-header-logo { max-height: 72px; max-width: 220px; object-fit: contain; }
.rsg2-controls { display: grid; gap: 18px; }
.rsg2-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.rsg2-live-actions .rsg2-field { flex: 1 1 260px; }
.rsg2-field { display: grid; gap: 8px; }
.rsg2-field label { font-weight: 700; }
.rsg2-field textarea,
.rsg2-field input,
.rsg2-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--rsg2-text);
}
.rsg2-field textarea { min-height: 180px; resize: vertical; }
.rsg2-small-field { width: 220px; }
.rsg2-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rsg2-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--rsg2-btn);
  color: var(--rsg2-btn-text);
  cursor: pointer;
  font-weight: 700;
}
.rsg2-btn-secondary { background: var(--rsg2-accent); }
.rsg2-btn-danger { background: #b91c1c; color: #fff; }
.rsg2-summary {
  margin: 24px 0 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border-radius: 14px;
}
.rsg2-summary-sep { opacity: .6; padding: 0 6px; }
.rsg2-board-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.rsg2-table-card,
.rsg2-table-list-card {
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 16px;
}
.rsg2-table-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.rsg2-table-title span { opacity: .8; font-size: 14px; }
.rsg2-poker-table-wrap { padding: 8px 0 6px; }
.rsg2-poker-table {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3 / 1;
  border-radius: 999px;
  background: radial-gradient(circle at center, #0f6d40 0%, #09522f 58%, #06341e 100%);
  border: 10px solid #4b2e1f;
  overflow: visible;
}
.rsg2-table-logo,
.rsg2-table-logo-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 42%;
  max-height: 42%;
  object-fit: contain;
  opacity: .95;
}
.rsg2-table-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.rsg2-seat {
  position: absolute;
  min-width: 82px;
  text-align: center;
  background: rgba(17,24,39,.95);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  transform: translate(-50%, -50%);
}
.rsg2-seat-top-left { top: 14%; left: 24%; }
.rsg2-seat-top { top: 7%; left: 50%; }
.rsg2-seat-top-right { top: 14%; left: 76%; }
.rsg2-seat-right-top { top: 32%; left: 91%; }
.rsg2-seat-right { top: 50%; left: 95%; }
.rsg2-seat-right-bottom { top: 68%; left: 91%; }
.rsg2-seat-bottom-right { top: 86%; left: 76%; }
.rsg2-seat-bottom { top: 93%; left: 50%; }
.rsg2-seat-bottom-left { top: 86%; left: 24%; }
.rsg2-seat-left { top: 50%; left: 5%; }
.rsg2-list-view {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.rsg2-player-list { margin: 0; padding-left: 22px; }
.rsg2-player-list li { padding: 4px 0; }
.rsg2-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.rsg2-modal.is-open { display: block; }
.rsg2-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.rsg2-modal-panel {
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0;
  background: #111827;
  color: #f9fafb;
  padding: 22px;
  border-radius: 18px;
  z-index: 2;
}
.rsg2-modal-panel h3 { margin-top: 0; }
.rsg2-modal-panel ul { margin: 0 0 16px; padding-left: 20px; }
.rsg2-hidden { display: none; }
@media (max-width: 767px) {
  .rsg2-app { padding: 16px; }
  .rsg2-header { align-items: flex-start; flex-direction: column; }
  .rsg2-actions { width: 100%; }
  .rsg2-btn { flex: 1 1 100%; }
  .rsg2-small-field { width: 100%; }
  .rsg2-board-view { grid-template-columns: 1fr; }
  .rsg2-seat { min-width: 64px; font-size: 11px; padding: 6px 8px; }
}
