body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(166, 255, 217, 0.18), transparent 60%),
    radial-gradient(800px 520px at 50% 100%, rgba(0, 0, 0, 0.18), transparent 55%),
    linear-gradient(180deg, #1e855d 0%, #115c41 42%, #0c4934 100%);
  color: #eefcf5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.03) 0%, transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.05) 0%, transparent 22%);
  mix-blend-mode: soft-light;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(7, 28, 19, 0.8) 0%, rgba(7, 28, 19, 0.6) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #1f1409;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.brand { font-size: 22px; font-weight: 700; }
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #b8dfcb;
}
.top-actions { display: flex; align-items: center; gap: 12px; }
.wallet-summary {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #d4f9e7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.top-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1e1a08;
  background: linear-gradient(180deg, #f9e48d 0%, #ddb450 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.layout {
  max-width: 1280px;
  margin: 24px auto 32px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 280px 1fr 300px;
  gap: 16px;
}

.panel {
  background: linear-gradient(180deg, rgba(8, 28, 21, 0.76) 0%, rgba(8, 24, 18, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.panel h2, .panel h1, .panel h3 { margin-top: 0; }
.panel.side {
  background: linear-gradient(180deg, rgba(9, 32, 24, 0.8) 0%, rgba(8, 25, 19, 0.84) 100%);
}
.panel h2 {
  position: relative;
  padding-left: 14px;
  letter-spacing: 0.01em;
}
.panel h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4d67d 0%, #a2edc7 100%);
}
.table-header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.table-header p { margin: 6px 0 0; color: #c2e4d4; font-size: 14px; }
.pill {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.launch-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #d9f7e8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.035) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.turn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 39, 26, 0.82);
  border: 1px solid rgba(154, 255, 211, 0.35);
}
.turn-pill span {
  min-width: 22px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #90ffcd;
  color: #07301f;
  font-weight: 800;
}
.hidden { display: none !important; }

.table-board {
  position: relative;
  min-height: 500px;
  margin-top: 16px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 45%, rgba(93, 199, 141, 0.18) 0%, transparent 26%),
    radial-gradient(circle at center, #178658 0%, #0f6d47 54%, #0b4f35 100%);
  box-shadow:
    inset 0 0 0 12px #5c3d27,
    inset 0 0 0 18px #77502f,
    0 18px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.table-board::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.04);
}
.table-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,0.24) 0%, transparent 50%);
  pointer-events: none;
}
.table-board[data-phase="waiting"]::after,
.table-board[data-phase="idle"]::after {
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.1) 0%, transparent 26%),
    radial-gradient(circle at 50% 120%, rgba(0,0,0,0.22) 0%, transparent 50%);
}
.table-status-ribbon {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 4;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #0f241a;
  font-weight: 700;
  background: linear-gradient(180deg, #b9f0d5 0%, #78d6a9 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.table-feed {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  width: min(230px, calc(100% - 180px));
  display: grid;
  gap: 8px;
}
.table-feed-item {
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(7, 28, 20, 0.9) 0%, rgba(7, 24, 18, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
}
.table-feed-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9bd8b9;
}
.table-feed-text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #f0fff8;
}
.table-center-hud {
  position: absolute;
  left: 50%;
  top: 88px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: min(420px, calc(100% - 120px));
}
.table-center-chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #edfff6;
  background: linear-gradient(180deg, rgba(8, 33, 24, 0.9) 0%, rgba(8, 26, 20, 0.84) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.table-center-chip strong {
  color: #ffeb9d;
}
.dealer-stack {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 52px;
  height: 72px;
  translate: -50% 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #1d4cb2 0%, #0f2f77 100%);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.12),
    0 12px 18px rgba(0, 0, 0, 0.2);
}
.dealer-stack::before,
.dealer-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: inherit;
}
.dealer-stack::before { translate: 3px 3px; opacity: 0.75; }
.dealer-stack::after { translate: 6px 6px; opacity: 0.45; }
.pot-chips {
  position: absolute;
  left: 50%;
  top: 40%;
  translate: -50% 0;
  display: flex;
  gap: 10px;
  z-index: 2;
}
.pot-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.pot-chip.red { background: #df4e58; }
.pot-chip.blue { background: #5187f5; }
.pot-chip.gold { background: #f0c14b; }
.table-anim-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.flying-card,
.clash-group {
  position: absolute;
  z-index: 3;
}
.flying-card {
  width: 52px;
  height: 72px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #f5f8ff;
  background: linear-gradient(180deg, #2347a0 0%, #102a69 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
  transition:
    left 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 520ms ease;
}
.flying-card.face {
  background: linear-gradient(180deg, #fff 0%, #edf2f6 100%);
  color: #112;
}
.clash-group {
  display: flex;
  gap: 6px;
  transform-origin: center center;
  transition: all 360ms ease;
}
.clash-card {
  width: 48px;
  height: 68px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #edf2f6 100%);
  color: #112;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}
.clash-card.back {
  background: linear-gradient(180deg, #2347a0 0%, #102a69 100%);
  color: #f5f8ff;
}
.reveal-stage {
  position: absolute;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  display: flex;
  gap: 10px;
  z-index: 4;
}

.seat {
  position: absolute;
  min-width: 154px;
  padding: 11px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 31, 23, 0.94) 0%, rgba(8, 22, 18, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 180ms ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  z-index: 3;
}
.seat-top { top: 22px; left: 50%; transform: translateX(-50%); }
.seat-left { top: 42%; left: 20px; }
.seat-right { top: 42%; right: 20px; }
.seat-bottom { bottom: 22px; left: 50%; transform: translateX(-50%); }
.seat-empty { opacity: 0.55; }
.seat.active {
  box-shadow: 0 0 0 1px rgba(167, 250, 210, 0.24), 0 0 22px rgba(150, 255, 204, 0.22);
  background: linear-gradient(180deg, rgba(20, 63, 46, 0.95) 0%, rgba(11, 35, 27, 0.95) 100%);
}
.seat-shell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.seat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #10281e;
  background: linear-gradient(180deg, #f5dfa1 0%, #cca24e 100%);
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.seat-meta {
  min-width: 0;
  flex: 1;
}
.seat-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.seat-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #082e1f;
  background: #9df0c7;
}
.seat-tag.dealer {
  background: linear-gradient(180deg, #f7e091 0%, #ddb34e 100%);
  color: #2b1b00;
}
.seat-chips {
  margin-top: 4px;
  font-size: 12px;
  color: #ccebdc;
}
.seat-note {
  margin-top: 2px;
  font-size: 11px;
  color: #a4ccb8;
}
.seat-action {
  position: absolute;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: #f3fff8;
  background: rgba(7, 28, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}
.seat-action.show {
  animation: seatActionIn 1200ms ease;
}
.seat-action-top { top: 58px; left: 50%; translate: -50% 0; }
.seat-action-left { top: 36%; left: 112px; }
.seat-action-bottom { bottom: 58px; left: 50%; translate: -50% 0; }
@keyframes seatActionIn {
  0% { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

.pot, .turn-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10, 34, 24, 0.94) 0%, rgba(7, 26, 19, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}
.pot { top: 48%; }
.turn-badge { top: 60%; }
.seat-cards {
  position: absolute;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.seat-cards-top { top: 108px; left: 50%; transform: translateX(-50%); }
.seat-cards-left { top: 58%; left: 138px; transform: translateY(-50%); }
.seat-cards-bottom { bottom: 108px; left: 50%; transform: translateX(-50%); }

.board-event {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 33, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.board-event.show {
  animation: boardEventIn 900ms ease;
}
@keyframes boardEventIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0); }
  80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

.showdown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 229, 143, 0.2) 0%, rgba(0, 0, 0, 0.04) 45%, transparent 70%);
  font-size: 34px;
  font-weight: 800;
  color: #ffe998;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.showdown-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(420px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 31, 24, 0.96) 0%, rgba(9, 24, 19, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}
.showdown-panel.show {
  animation: showdownPanelIn 2200ms ease;
}
.table-waiting-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(320px, calc(100% - 56px));
  transform: translate(-50%, -50%);
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(10, 29, 22, 0.94) 0%, rgba(8, 22, 18, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.table-waiting-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #122419;
  background: linear-gradient(180deg, #f4d67d 0%, #d8b155 100%);
}
.table-waiting-title {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.table-waiting-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #c5e5d5;
}
.table-waiting-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.table-waiting-chip {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #d8f4e7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.showdown-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.showdown-panel-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffe59a;
}
.showdown-panel-pot {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #11261c;
  background: linear-gradient(180deg, #f6df8e 0%, #d8af4b 100%);
}
.showdown-panel-sub {
  margin-bottom: 12px;
  font-size: 13px;
  color: #d6f3e5;
}
.showdown-panel-list {
  display: grid;
  gap: 8px;
}
.showdown-panel-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.showdown-panel-row.winner {
  background: rgba(245, 207, 97, 0.12);
  border-color: rgba(245, 207, 97, 0.32);
}
.showdown-panel-name {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f7fff9;
}
.showdown-panel-type {
  color: #f7d879;
}
.showdown-panel-cards {
  margin-top: 6px;
  font-size: 13px;
  color: #c8e7d8;
  letter-spacing: 0.04em;
}
.showdown-overlay.show {
  animation: showdownPulse 1200ms ease;
}
@keyframes showdownPanelIn {
  0% { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) scale(1.02); }
}
@keyframes showdownPulse {
  0% { opacity: 0; transform: scale(0.92); }
  18% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.action-dock {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 26, 20, 0.94) 0%, rgba(6, 18, 14, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}
.action-dock.muted {
  opacity: 0.78;
}
.action-dock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.action-dock-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0fff7;
}
.action-dock-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #aacebb;
}
.action-dock-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #11281c;
  background: linear-gradient(180deg, #aaf0ce 0%, #6dd4a5 100%);
}
.action-row .btn {
  min-width: 88px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.035) 100%);
}
.action-row .btn[data-action="look"] {
  background: linear-gradient(180deg, rgba(72, 143, 255, 0.26) 0%, rgba(72, 143, 255, 0.14) 100%);
}
.action-row .btn[data-action="call"] {
  background: linear-gradient(180deg, rgba(81, 196, 134, 0.24) 0%, rgba(81, 196, 134, 0.13) 100%);
}
.action-row .btn[data-action="raise"] {
  background: linear-gradient(180deg, rgba(249, 192, 74, 0.26) 0%, rgba(249, 192, 74, 0.12) 100%);
}
.action-row .btn[data-action="compare"] {
  background: linear-gradient(180deg, rgba(180, 110, 255, 0.24) 0%, rgba(180, 110, 255, 0.12) 100%);
}
.action-row .btn[data-action="open"] {
  background: linear-gradient(180deg, rgba(255, 133, 94, 0.24) 0%, rgba(255, 133, 94, 0.12) 100%);
}
.action-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 32, 24, 0.98) 0%, rgba(7, 20, 16, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 28px rgba(0,0,0,0.18);
}
.control-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#raiseControlCard {
  width: min(180px, 100%);
}
.control-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.control-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #c9ead9;
}
.raise-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.raise-preset-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e9fcf3;
  cursor: pointer;
  transition: 180ms ease;
}
.raise-preset-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}
.raise-preset-btn.active {
  background: linear-gradient(180deg, rgba(249, 192, 74, 0.34) 0%, rgba(249, 192, 74, 0.18) 100%);
  border-color: rgba(249, 192, 74, 0.46);
  color: #fff4ca;
}
.control-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #a9cfbd;
}
.control-input,
.control-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 27, 20, 0.9);
  color: #eefcf5;
  outline: none;
}
.control-input:focus,
.control-select:focus {
  border-color: rgba(144, 255, 205, 0.55);
  box-shadow: 0 0 0 3px rgba(144, 255, 205, 0.12);
}
.control-select option {
  color: #eefcf5;
  background: #11281d;
}
.balance-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.balance-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.play-card {
  min-width: 58px;
  padding: 12px 10px;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #f0f2f7 100%);
  color: #122;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.play-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}
.play-card.back {
  background: linear-gradient(180deg, #2347a0 0%, #102a69 100%);
  color: #f5f8ff;
}
.play-card.reveal {
  animation: revealCard 420ms ease;
}
.play-card.reveal-seq {
  animation: revealCard 520ms ease forwards;
}
.play-card.bump {
  animation: cardBump 280ms ease;
}
@keyframes revealCard {
  0% { transform: rotateY(90deg) translateY(6px); opacity: 0.3; }
  100% { transform: rotateY(0deg) translateY(0); opacity: 1; }
}
@keyframes cardBump {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.pot.bump, .turn-badge.bump {
  animation: potBump 340ms ease;
}
@keyframes potBump {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
  100% { transform: translateX(-50%) scale(1); }
}

.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #eefcf5;
  cursor: pointer;
  transition: 180ms ease;
  font-weight: 600;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary {
  border: none;
  background: linear-gradient(90deg, #3c8cff, #6356ff);
}
.btn.danger {
  background: linear-gradient(90deg, #bb4d4d, #8b3131);
  border: none;
}
.btn.full { width: 100%; margin-top: 10px; }

.info-card {
  margin-bottom: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.table-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #d3f2e2;
  opacity: 0.92;
}
.lobby-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.lobby-item {
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.03) 100%);
  cursor: pointer;
  transition: 150ms ease;
}
.lobby-item.active {
  background: linear-gradient(180deg, rgba(69, 144, 255, 0.28) 0%, rgba(69, 144, 255, 0.18) 100%);
  border-color: rgba(130, 184, 255, 0.4);
}
.lobby-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}
.lobby-item small {
  display: block;
  margin-top: 4px;
  color: #c6eadb;
}
.label { color: #a7d8c1; font-size: 12px; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.value.small { font-size: 14px; font-weight: 500; word-break: break-word; }
.ledger-item {
  margin-top: 6px;
  line-height: 1.45;
  word-break: break-all;
}

.target-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.target-btn {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #eefcf5;
  cursor: pointer;
}
.target-btn.active {
  background: linear-gradient(180deg, rgba(69, 144, 255, 0.34) 0%, rgba(69, 144, 255, 0.22) 100%);
  border-color: rgba(130, 184, 255, 0.38);
}
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(7, 22, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .seat-action-left { left: 96px; }
  .table-footnote { flex-direction: column; }
  .action-dock-head { flex-direction: column; }
  .table-feed {
    width: min(220px, calc(100% - 170px));
  }
}
