:root {
  --ink: #f7f1e8;
  --muted: #b9b0a3;
  --paper: #fff7e8;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(23, 27, 26, 0.82);
  --panel-strong: rgba(14, 17, 17, 0.94);
  --felt: #136b4d;
  --felt-deep: #0b3f32;
  --wood: #6f3f22;
  --wood-dark: #2d1710;
  --gold: #d8aa4f;
  --jade: #42d49b;
  --danger: #ef6461;
  --blue: #76a9ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 170, 79, 0.15), transparent 28rem),
    linear-gradient(135deg, #151514 0%, #20201d 42%, #101413 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.shell,
.admin-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.auth-view {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(24, 27, 25, 0.94), rgba(17, 18, 17, 0.92));
  box-shadow: var(--shadow);
}

.auth-panel.slim {
  width: min(430px, 100%);
}

.brand-block h1,
.topbar h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: 0;
}

.brand-block p,
.topbar p,
#roundInfo {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 26px 0 18px;
}

.tab,
.ghost-button,
.ghost-link,
.primary-action {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
}

.tab.is-active,
.primary-action {
  border-color: rgba(216, 170, 79, 0.55);
  background: linear-gradient(180deg, #e8bd62, #b47727);
  color: #1c130b;
}

.primary-action:disabled,
.ghost-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.compact {
  min-height: 38px;
  padding: 0 13px;
}

.auth-form,
.topup-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.28);
  padding: 12px 13px;
  outline: none;
}

input:focus {
  border-color: rgba(216, 170, 79, 0.75);
  box-shadow: 0 0 0 3px rgba(216, 170, 79, 0.12);
}

.form-message {
  min-height: 22px;
  color: var(--danger);
  font-weight: 750;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.account-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-card {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 1px;
}

.account-card span,
.account-card small {
  color: var(--muted);
}

.account-card strong {
  color: var(--jade);
  font-size: 20px;
}

.notice {
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(239, 100, 97, 0.4);
  border-radius: 8px;
  color: #ffd6d5;
  background: rgba(239, 100, 97, 0.14);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.game-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.game-choice-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.game-choice-card {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ink);
  background: #101413;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}

.game-choice-card.featured {
  min-height: 380px;
}

.game-choice-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.game-choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.game-choice-card:hover img {
  transform: scale(1.04);
}

.game-choice-card div {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.game-choice-card.featured div {
  max-width: 760px;
  padding: 28px;
}

.game-choice-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.game-choice-card.featured h2 {
  font-size: 42px;
}

.game-choice-card span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.game-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.game-points small {
  min-height: 30px;
  border: 1px solid rgba(216, 170, 79, 0.28);
  border-radius: 8px;
  padding: 7px 10px;
  color: #ffe6b4;
  background: rgba(0, 0, 0, 0.28);
  font-weight: 850;
}

.portal-table-lobby {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.portal-table-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86)),
    url("assets/game-bandarq.png") center / cover;
  box-shadow: var(--shadow);
}

.portal-table-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(216, 170, 79, 0.2), transparent 44%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.portal-table-card:hover::after,
.portal-table-card.is-active::after {
  opacity: 1;
}

.portal-table-card.vip {
  border-color: rgba(66, 212, 155, 0.42);
}

.portal-table-card > * {
  position: relative;
  z-index: 1;
}

.portal-table-label,
.portal-table-mark {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
}

.portal-table-label {
  margin-bottom: 10px;
  color: #171006;
  background: var(--gold);
}

.portal-table-card.vip .portal-table-label {
  color: #071b12;
  background: var(--jade);
}

.portal-table-card strong {
  font-size: 22px;
  font-weight: 950;
}

.portal-table-card span:not(.portal-table-label),
.portal-table-card small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.portal-table-mark {
  margin-top: 10px;
  color: #071b12;
  background: var(--jade);
}

.table-zone,
.side-panel,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-status {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 440px) auto;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 99px;
  padding: 0 11px;
  color: #121412;
  background: var(--jade);
  font-weight: 850;
}

#roundInfo {
  margin: 9px 0 0;
}

.round-highlight {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(216, 170, 79, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.round-highlight strong,
.round-highlight span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 99px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.round-highlight strong {
  color: #171006;
  background: var(--gold);
}

.round-highlight span {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.round-highlight.win {
  border-color: rgba(66, 212, 155, 0.42);
}

.round-highlight.win strong {
  background: var(--jade);
}

.round-highlight.lose {
  border-color: rgba(239, 100, 97, 0.42);
}

.round-highlight.lose strong {
  color: #250807;
  background: #ff8a83;
}

.table-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.table-choice {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
}

.table-choice strong,
.table-choice span,
.table-choice small {
  display: block;
}

.table-choice strong {
  font-size: 13px;
  font-weight: 950;
}

.table-choice span,
.table-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.table-choice.is-active {
  border-color: rgba(216, 170, 79, 0.68);
  background: rgba(216, 170, 79, 0.14);
}

.table-choice.vip {
  border-color: rgba(66, 212, 155, 0.32);
}

.table-my-seat {
  display: inline-flex;
  margin-left: 4px;
  color: var(--jade);
  font-weight: 900;
}

.table-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bet-picker,
.role-picker {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.24);
}

.bet-option,
.role-option {
  min-width: 48px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.bet-option.is-active,
.role-option.is-active {
  color: #1c130b;
  background: var(--gold);
}

.bet-option:disabled,
.role-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.domino-table {
  padding: 18px;
}

.table-felt {
  position: relative;
  min-height: 660px;
  border-radius: 999px;
  border: 18px solid transparent;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 38%),
    radial-gradient(circle at center, rgba(66, 212, 155, 0.18), transparent 52%),
    linear-gradient(135deg, var(--felt), var(--felt-deep));
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.06),
    inset 0 0 95px rgba(0, 0, 0, 0.45),
    0 0 0 16px var(--wood),
    0 0 0 24px var(--wood-dark);
  overflow: hidden;
}

.table-felt::before {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  pointer-events: none;
}

.chip-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.chip-token {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 4px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  color: #1a1207;
  background:
    radial-gradient(circle at 50% 50%, #fff2bf 0 27%, #d8aa4f 28% 60%, #8a5b20 61% 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.36);
  font-size: 10px;
  font-weight: 950;
  transform: translate(-50%, -50%);
  animation: chipMove 980ms cubic-bezier(0.16, 0.78, 0.22, 1) forwards;
}

.chip-token.collect {
  background:
    radial-gradient(circle at 50% 50%, #dffced 0 27%, #42d49b 28% 60%, #117244 61% 100%);
}

.chip-token.payout {
  animation-name: chipPayout;
}

.chip-token.banker-win {
  background:
    radial-gradient(circle at 50% 50%, #ffe2df 0 27%, #ff8a83 28% 60%, #8f2c25 61% 100%);
  animation-name: chipPayout;
}

@keyframes chipMove {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--chip-x)), calc(-50% + var(--chip-y))) scale(1.02);
  }
}

@keyframes chipPayout {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.12);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--chip-x)), calc(-50% + var(--chip-y))) scale(0.86);
  }
}

.center-mark {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: min(280px, 38vw);
  min-height: 84px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.center-mark span {
  font-size: 28px;
  font-weight: 900;
}

.center-mark strong {
  color: var(--gold);
}

.seat {
  position: absolute;
  width: 196px;
  min-height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(9, 12, 11, 0.68);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.banker-seat {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(216, 170, 79, 0.58);
  z-index: 3;
}

.seat-1 {
  right: 20%;
  top: 78px;
}

.seat-2 {
  right: 4%;
  top: 230px;
}

.seat-3 {
  right: 13%;
  bottom: 98px;
}

.seat-4 {
  right: 32%;
  bottom: 26px;
}

.seat-5 {
  left: 32%;
  bottom: 26px;
}

.seat-6 {
  left: 13%;
  bottom: 98px;
}

.seat-7 {
  left: 4%;
  top: 230px;
}

.seat-8 {
  left: 20%;
  top: 78px;
}

.seat.empty {
  opacity: 0.58;
  border-style: dashed;
}

.seat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.seat-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.seat-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0c0e0c;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    var(--avatar-accent, var(--gold));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 8px 16px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 950;
}

.seat-avatar.banker {
  box-shadow: inset 0 0 0 2px rgba(255, 235, 178, 0.42), 0 0 18px rgba(216, 170, 79, 0.26);
}

.seat-avatar.empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.seat-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.role-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.role-badge.banker {
  color: #171006;
  background: linear-gradient(180deg, #f1cf7a, #c08a36);
}

.role-badge.player {
  color: #071b12;
  background: var(--jade);
}

.seat-name {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

.seat-score {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #16120b;
  background: var(--gold);
  font-weight: 950;
}

.seat-balance {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.seat-balance span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seat-balance strong {
  color: #ffe8b8;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.seat-balance.empty strong {
  color: var(--muted);
}

.cards {
  display: flex;
  gap: 7px;
  align-items: center;
}

.domino-card {
  width: 52px;
  height: 82px;
  border-radius: 8px;
  background: linear-gradient(150deg, #fffaf1, #e9dbc2);
  box-shadow: inset 0 0 0 2px #2a2117, 0 7px 12px rgba(0, 0, 0, 0.26);
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  animation: cardFlipIn 520ms ease both;
}

.domino-card.back {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.12) 75%, transparent 75%),
    linear-gradient(135deg, #493019, #17110c);
  background-size: 12px 12px, auto;
  animation: none;
}

.deal-card {
  animation: cardDeal 520ms ease both;
}

@keyframes cardDeal {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.92) rotate(-2deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes cardFlipIn {
  from {
    opacity: 0;
    transform: rotateY(82deg) translateY(10px);
  }

  to {
    opacity: 1;
    transform: rotateY(0) translateY(0);
  }
}

.domino-half {
  position: relative;
  border-bottom: 2px solid #2a2117;
}

.domino-half:last-child {
  border-bottom: 0;
}

.pip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #17110b;
}

.p1 {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.p2 {
  left: 12px;
  top: 9px;
}

.p3 {
  right: 12px;
  bottom: 9px;
}

.p4 {
  right: 12px;
  top: 9px;
}

.p5 {
  left: 12px;
  bottom: 9px;
}

.p6 {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.p7 {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 99px;
  padding: 0 9px;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 900;
}

.result-pill.win {
  color: #081b12;
  background: var(--jade);
}

.result-pill.lose {
  color: #250807;
  background: #ff8a83;
}

.result-pill.draw {
  color: #17110b;
  background: #e2d3be;
}

.side-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.panel-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-section:last-child {
  border-bottom: 0;
}

.panel-section h2,
.admin-card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.mini-list,
.admin-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.mini-item,
.admin-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.22);
}

.mini-item strong,
.admin-item strong {
  display: block;
}

.mini-item span,
.admin-item span {
  color: var(--muted);
  font-size: 12px;
}

.status-text.pending {
  color: var(--gold);
}

.status-text.approved,
.positive {
  color: var(--jade);
}

.status-text.rejected,
.negative {
  color: var(--danger);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.chat-card .admin-list {
  max-height: 590px;
  overflow: auto;
  padding-right: 4px;
}

.chat-list {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 9px;
  padding-right: 4px;
}

.chat-bubble {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 4px;
}

.chat-bubble.admin {
  border-color: rgba(216, 170, 79, 0.32);
  background: rgba(216, 170, 79, 0.1);
}

.chat-bubble strong {
  color: var(--gold);
  font-size: 12px;
}

.chat-bubble span {
  color: var(--ink);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 12px;
}

.admin-card {
  padding: 18px;
  background: var(--panel-strong);
}

.admin-card.wide {
  grid-row: span 2;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.panel-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.search-input {
  max-width: 280px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--ink);
}

.admin-actions,
.inline-adjust,
.review-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-actions.vertical {
  align-items: stretch;
  flex-direction: column;
}

.inline-adjust input {
  width: 120px;
  min-height: 38px;
  padding: 8px 10px;
}

.inline-reset {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  gap: 8px;
}

.inline-reset input {
  min-height: 38px;
  padding: 8px 10px;
}

.admin-chat-thread {
  min-height: 126px;
  max-height: 220px;
}

.danger-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 100, 97, 0.5);
  color: #ffe4e2;
  background: rgba(239, 100, 97, 0.2);
  padding: 0 12px;
  font-weight: 850;
}

.safe-button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(66, 212, 155, 0.5);
  color: #dffced;
  background: rgba(66, 212, 155, 0.16);
  padding: 0 12px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .content-grid,
  .admin-grid,
  .portal-grid,
  .game-choice-grid {
    grid-template-columns: 1fr;
  }

  .portal-table-lobby {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-felt {
    min-height: 820px;
    border-radius: 120px;
  }

  .table-status {
    grid-template-columns: 1fr;
  }

  .seat {
    width: 184px;
  }

  .banker-seat {
    top: 50%;
  }

  .seat-1 {
    right: 7%;
    top: 118px;
  }

  .seat-2 {
    right: 4%;
    top: 285px;
  }

  .seat-3 {
    right: 7%;
    bottom: 165px;
  }

  .seat-4 {
    right: 22%;
    bottom: 30px;
  }

  .seat-5 {
    left: 22%;
    bottom: 30px;
  }

  .seat-6 {
    left: 7%;
    bottom: 165px;
  }

  .seat-7 {
    left: 4%;
    top: 285px;
  }

  .seat-8 {
    left: 7%;
    top: 118px;
  }

}

@media (max-width: 720px) {
  .shell,
  .admin-shell {
    width: min(100% - 18px, 1480px);
    padding-top: 14px;
  }

  .topbar,
  .table-status,
  .section-heading {
    align-items: stretch;
  }

  .topbar,
  .section-heading {
    flex-direction: column;
  }

  .table-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-table-lobby {
    grid-template-columns: 1fr;
  }

  .account-strip,
  .table-actions {
    justify-content: stretch;
  }

  .account-card,
  .ghost-button,
  .ghost-link,
  .primary-action,
  .bet-picker,
  .role-picker {
    width: 100%;
  }

  .bet-option,
  .role-option {
    flex: 1;
  }

  .auth-panel {
    padding: 22px;
  }

  .brand-block h1,
  .topbar h1 {
    font-size: 28px;
  }

  .domino-table {
    padding: 10px;
    overflow-x: auto;
  }

  .table-felt {
    width: 680px;
    min-height: 760px;
  }

  .seat {
    width: 166px;
    min-height: 128px;
  }

  .domino-card {
    width: 46px;
    height: 72px;
  }

  .center-mark {
    width: 220px;
    min-height: 76px;
  }

  .center-mark span {
    font-size: 24px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

}
