:root {
  --bg: #070a0e;
  --bg-soft: #101821;
  --surface: rgba(13, 20, 27, 0.94);
  --surface-2: rgba(18, 30, 38, 0.92);
  --surface-3: rgba(28, 42, 48, 0.82);
  --line: rgba(233, 213, 159, 0.16);
  --line-strong: rgba(233, 213, 159, 0.34);
  --ink: #f8f3e7;
  --muted: #aeb7b5;
  --gold: #f4c66d;
  --gold-2: #b8792e;
  --emerald: #11634f;
  --felt: #0d5a49;
  --felt-dark: #063127;
  --walnut: #4b2715;
  --walnut-dark: #23120c;
  --danger: #d94c45;
  --ok: #57c48a;
  --tile: #fbf1da;
  --tile-edge: #c69b55;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 64px),
    linear-gradient(145deg, #070a0e 0%, #0b1717 44%, #151015 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.boot-screen {
  width: min(520px, calc(100% - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pro-login {
  width: min(1040px, calc(100% - 32px));
  min-height: 520px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 198, 109, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(22, 34, 43, 0.96), rgba(8, 13, 16, 0.98));
  box-shadow: var(--shadow);
}

.login-copy {
  padding: 38px;
  display: grid;
  align-content: center;
}

.login-copy h1 {
  margin: 18px 0 10px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.login-copy p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  margin-top: 14px;
}

.login-table-preview {
  min-height: 100%;
  padding: 30px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, rgba(8, 44, 39, 0.95), rgba(6, 17, 20, 0.96));
}

.preview-table {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1.18;
  border-radius: 42%;
  border: 18px solid rgba(88, 44, 21, 0.95);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--felt);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38), 0 28px 55px rgba(0, 0, 0, 0.38);
}

.preview-seat {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 6px solid rgba(244, 198, 109, 0.5);
  background: rgba(7, 12, 16, 0.9);
}

.preview-seat.top {
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
}

.preview-seat.left {
  left: 34px;
  top: 48%;
}

.preview-seat.right {
  right: 34px;
  top: 48%;
}

.preview-tile {
  position: absolute;
  bottom: 74px;
  width: 58px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--tile-edge);
  background: var(--tile);
  color: #1d1a12;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 15px 22px rgba(0, 0, 0, 0.28);
}

.preview-tile.red {
  left: calc(50% - 86px);
  color: #bf2f2a;
}

.preview-tile.blue {
  left: calc(50% - 29px);
  color: #245dc0;
}

.preview-tile.black {
  left: calc(50% + 28px);
  color: #171f22;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #1b1003;
  font-weight: 950;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 40%),
    linear-gradient(145deg, #ffe5a5, #d29130);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(0, 0, 0, 0.34);
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.field span {
  color: #c9b680;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.field select {
  min-height: 48px;
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: 0 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(244, 198, 109, 0.82);
  box-shadow: 0 0 0 3px rgba(244, 198, 109, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 10px clamp(14px, 3vw, 34px);
  border-bottom: 1px solid rgba(244, 198, 109, 0.18);
  background:
    linear-gradient(180deg, rgba(32, 46, 54, 0.92), rgba(8, 13, 16, 0.96)),
    #0b1013;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(244, 198, 109, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.topnav span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.topnav span:first-child {
  color: #211503;
  background: linear-gradient(145deg, #ffe2a0, #d29334);
}

.player-chip {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wallet-btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #211503;
  background: linear-gradient(145deg, #ffe2a0, #c8832a);
  font-weight: 900;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  font-weight: 950;
  border: 2px solid rgba(244, 198, 109, 0.5);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.28);
}

.chip-stack {
  display: grid;
  justify-items: end;
  line-height: 1.1;
}

.chip-stack strong {
  color: var(--gold);
}

.chip-stack span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(244, 198, 109, 0.12);
  border: 1px solid rgba(244, 198, 109, 0.26);
  font-size: 12px;
  font-weight: 900;
}

.main-grid {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-inner {
  padding: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

.panel-title,
.room-head,
.room-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
  font-size: 18px;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(244, 198, 109, 0.2);
  background:
    linear-gradient(135deg, rgba(244, 198, 109, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.055);
}

.profile-card strong {
  display: block;
}

.profile-card span {
  color: var(--muted);
  font-size: 12px;
}

.lobby-title h1 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1;
}

.lobby-title p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.create-room {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-head span {
  color: var(--muted);
  font-size: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.095);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  color: #241704;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 44%),
    linear-gradient(145deg, #ffe0a0, #d28b2f);
  border-color: rgba(255, 225, 164, 0.8);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-danger {
  color: white;
  background: rgba(217, 76, 69, 0.22);
  border-color: rgba(217, 76, 69, 0.42);
}

.btn-ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.market {
  display: grid;
  gap: 10px;
}

.ad-card,
.package-card,
.room-card {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(244, 198, 109, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(16, 30, 34, 0.78);
}

.ad-card,
.package-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ad-card {
  border-color: rgba(87, 196, 138, 0.26);
}

.ad-card strong,
.package-card strong,
.room-head strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ad-card span,
.package-card span,
.room-meta,
.market-note,
.legal-note {
  color: var(--muted);
  font-size: 12px;
}

.package-grid,
.room-list {
  display: grid;
  gap: 8px;
}

.market-note,
.legal-note {
  margin: 0;
  line-height: 1.45;
}

.room-card.active,
.room-card:hover {
  border-color: rgba(244, 198, 109, 0.7);
  background:
    linear-gradient(135deg, rgba(244, 198, 109, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(18, 36, 40, 0.9);
}

.table-panel {
  min-height: calc(100vh - 112px);
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.table-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(9, 16, 20, 0.9);
}

.table-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.05;
}

.table-header p {
  margin: 0;
  color: var(--muted);
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding-top: 16px;
}

.felt-table {
  position: relative;
  min-height: 540px;
  height: calc(100vh - 224px);
  max-height: 760px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(244, 198, 109, 0.28);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, #113f38, #071d1d);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.48), var(--shadow);
}

.table-rim {
  position: absolute;
  z-index: 0;
  left: 34px;
  right: 34px;
  top: 26px;
  bottom: 118px;
  border-radius: 48%;
  background:
    linear-gradient(180deg, rgba(255, 214, 140, 0.16), transparent 26%),
    linear-gradient(145deg, #6a351b, #2a140b 58%, #7a3c1c);
  box-shadow: inset 0 0 32px rgba(255, 230, 165, 0.16), 0 26px 58px rgba(0, 0, 0, 0.42);
}

.table-felt-core {
  position: absolute;
  z-index: 0;
  left: 72px;
  right: 72px;
  top: 62px;
  bottom: 154px;
  border-radius: 48%;
  border: 1px solid rgba(244, 198, 109, 0.18);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, #13705b, #073c33);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38);
}

.table-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  width: min(430px, 70%);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 12px;
  justify-items: center;
}

.stone-area {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  border-radius: 8px;
  background: rgba(4, 13, 15, 0.42);
  border: 1px solid rgba(244, 198, 109, 0.14);
}

.pile {
  width: 78px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  border: 1px solid rgba(244, 198, 109, 0.42);
  background:
    linear-gradient(135deg, rgba(244, 198, 109, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(0, 0, 0, 0.24);
  font-weight: 950;
}

.action-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
  width: min(520px, 100%);
}

.seat {
  position: absolute;
  z-index: 3;
  width: min(214px, 42%);
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(244, 198, 109, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(7, 14, 18, 0.88);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.seat.self {
  display: none;
}

.seat.top {
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
}

.seat.left {
  left: 24px;
  top: 40%;
  transform: translateY(-50%);
}

.seat.right {
  right: 24px;
  top: 40%;
  transform: translateY(-50%);
}

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

.seat-name {
  min-width: 0;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.mini-discards {
  min-height: 34px;
  display: flex;
  gap: 4px;
}

.tile {
  position: relative;
  width: 50px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #20180c;
  border: 1px solid var(--tile-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), transparent 32%),
    linear-gradient(180deg, #fff8e8, #ead5ac);
  box-shadow: 0 10px 14px rgba(0, 0, 0, 0.28), inset 0 -3px 0 rgba(95, 58, 20, 0.12);
  font-weight: 950;
  user-select: none;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  border: 1px solid rgba(80, 55, 20, 0.12);
}

.tile .number {
  font-size: 25px;
  line-height: 1;
}

.tile .code {
  position: absolute;
  bottom: 6px;
  font-size: 10px;
  color: rgba(32, 24, 12, 0.55);
}

.tile.red {
  color: #bf2f2a;
}

.tile.blue {
  color: #245dc0;
}

.tile.black {
  color: #182125;
}

.tile.yellow {
  color: #b67812;
}

.tile.fake {
  color: #6b3fa0;
}

.tile.wildcard {
  outline: 2px solid var(--gold);
  outline-offset: -4px;
}

.tile.small {
  width: 25px;
  height: 34px;
  border-radius: 4px;
  font-size: 11px;
  box-shadow: none;
}

.tile.small .number {
  font-size: 13px;
}

.tile.small .code {
  display: none;
}

.rack {
  position: absolute;
  z-index: 5;
  left: 22px;
  right: 22px;
  bottom: 16px;
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  overflow-x: auto;
  padding: 17px;
  border-radius: 8px;
  border: 1px solid rgba(244, 198, 109, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 222, 162, 0.1), transparent 28%),
    linear-gradient(180deg, #5a2d18, #21110a);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.rack .tile {
  flex: 0 0 auto;
}

.rack .tile.selected {
  transform: translateY(-16px);
  box-shadow: 0 20px 26px rgba(0, 0, 0, 0.38);
}

.side-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.side-panel .panel {
  background: var(--surface);
  box-shadow: none;
}

.info-list {
  display: grid;
  gap: 8px;
}

.info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  padding-bottom: 8px;
}

.info-line strong {
  color: var(--ink);
}

.result-box {
  padding: 12px;
  border-radius: 8px;
  color: #191102;
  background: linear-gradient(145deg, #ffe2a0, #d99d3e);
  font-weight: 900;
}

.chat-log {
  height: 180px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.chat-message {
  display: grid;
  gap: 2px;
}

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

.chat-message span {
  color: var(--ink);
  overflow-wrap: anywhere;
}

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

.chat-form input {
  min-width: 0;
  min-height: 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 8px;
  color: white;
  background: rgba(9, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.empty-table {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(12, 32, 31, 0.95), rgba(8, 13, 16, 0.96));
  box-shadow: var(--shadow);
}

.empty-table h2 {
  margin: 14px 0 8px;
}

@media (max-width: 1320px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .felt-table {
    min-height: 560px;
    height: calc(100vh - 224px);
  }
}

@media (max-width: 1080px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .table-active .table-panel {
    order: -1;
  }

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

  .lobby-title,
  .profile-card,
  .create-room,
  .market,
  .room-list,
  .legal-note,
  .panel-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .pro-login {
    grid-template-columns: 1fr;
  }

  .login-table-preview {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .topnav,
  .brand span,
  .wallet-btn {
    display: none;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 16px;
  }

  .chip-stack strong {
    font-size: 14px;
  }

  .main-grid {
    padding: 10px;
    gap: 12px;
  }

  .lobby-panel .panel-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .table-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 14px;
  }

  .table-header h2 {
    font-size: 21px;
  }

  .game-layout {
    padding-top: 10px;
  }

  .felt-table {
    min-height: 650px;
    height: calc(100vh - 194px);
  }

  .table-rim {
    left: 10px;
    right: 10px;
    top: 88px;
    bottom: 150px;
    border-radius: 90px;
  }

  .table-felt-core {
    left: 30px;
    right: 30px;
    top: 116px;
    bottom: 184px;
    border-radius: 72px;
  }

  .seat {
    width: 42%;
    padding: 9px;
  }

  .seat .avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .seat-name {
    font-size: 13px;
  }

  .seat-stats {
    font-size: 11px;
  }

  .seat.top {
    top: 24px;
    width: 40%;
  }

  .seat.left {
    left: 10px;
    top: 202px;
    transform: none;
  }

  .seat.right {
    right: 10px;
    top: 202px;
    transform: none;
  }

  .table-center {
    top: 55%;
    width: 92%;
  }

  .stone-area {
    gap: 7px;
  }

  .pile {
    width: 70px;
    height: 94px;
  }

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

  .rack {
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 112px;
    padding: 12px;
    gap: 5px;
  }

  .tile {
    width: 44px;
    height: 64px;
  }

  .tile .number {
    font-size: 22px;
  }

  .ad-card,
  .package-card {
    grid-template-columns: 1fr;
  }

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