/* ============ 掼蛋在线 · 设计系统 ============ */
:root {
  --felt-1: #37795c;
  --felt-2: #1c4632;
  --gold: #d9b45b;
  --gold-deep: #b8933c;
  --ink: #26221c;
  --muted: #9db3a6;
  --card-bg: #fdfdf6;
  --red: #d23c2e;
  --black: #23201b;
  --blue-team: #4f8fd9;
  --red-team: #d96a5a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  font-size: 16px;
}
[v-cloak] { display: none; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body, #app { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f3efe4;
  background: #101d16;
  overflow: hidden;
  user-select: none;
}
button { font-family: inherit; }
input { font-family: inherit; }

/* ---------- 通用按钮 ---------- */
.btn {
  border: 1px solid rgba(217, 180, 91, .5);
  background: rgba(255, 255, 255, .07);
  color: #f3efe4;
  padding: .55em 1.4em;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all .18s ease;
}
.btn:active:not(:disabled) { filter: brightness(1.25); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { background: rgba(217, 180, 91, .2); box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
}
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, #e8c877, #c49b3f);
  color: #3a2c0c;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 180, 91, .4);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn.big { font-size: 1.15rem; padding: .7em 2.4em; }
.btn.small { font-size: .82rem; padding: .35em .9em; }
.btn.ghost { border-color: rgba(255, 255, 255, .25); background: transparent; }
.muted { color: var(--muted); }
.hsuit { color: #ff8d80; font-style: normal; }

/* ---------- 大厅 ---------- */
.lobby {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(217, 180, 91, .12), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(55, 121, 92, .55), transparent 60%),
    linear-gradient(180deg, #14251c, #0d1a13);
  overflow-y: auto;
  padding: 24px;
}
.lobby-card {
  width: min(480px, 100%);
  background: rgba(18, 32, 25, .88);
  border: 1px solid rgba(217, 180, 91, .25);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px 34px 28px;
  backdrop-filter: blur(6px);
}
.brand { text-align: center; margin-bottom: 26px; }
.brand-suits { font-size: 1.5rem; letter-spacing: .5em; margin-left: .5em; margin-bottom: 8px; }
.brand-suits .red { color: var(--red-team); }
.brand h1 {
  font-size: 2rem;
  letter-spacing: .35em;
  margin-left: .35em;
  background: linear-gradient(180deg, #f4e2ae, #d9b45b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { color: var(--muted); margin-top: 8px; font-size: .9rem; letter-spacing: .15em; }
.conn-state { margin-top: 10px; font-size: .76rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: #8a5a5a; display: inline-block; }
.conn-dot.on { background: #7fce9a; box-shadow: 0 0 8px rgba(127, 206, 154, .9); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: .7em 1em;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .25);
  color: #f3efe4;
  font-size: 1.05rem;
  outline: none;
}
.field input:focus { border-color: var(--gold); }
.lobby-card .btn.primary.big { width: 100%; margin-bottom: 16px; }
.join-row { display: flex; gap: 10px; }
.join-row .btn { flex-shrink: 0; white-space: nowrap; min-width: 104px; }
.join-row .room-input {
  flex: 1;
  padding: .6em 1em;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .25);
  color: #f3efe4;
  font-size: 1.05rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  outline: none;
}
.join-row .room-input:focus { border-color: var(--gold); }
.lobby-list { margin-top: 22px; border-top: 1px dashed rgba(255, 255, 255, .15); padding-top: 14px; }
.lobby-list-title { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.lobby-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: .92rem;
}
.room-code { font-weight: 700; color: var(--gold); letter-spacing: .2em; }
.lobby-names { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lobby-state { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.lobby-state.playing { background: rgba(217, 91, 77, .25); }
.lobby-tip { margin-top: 16px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- 牌桌屏幕布局 ---------- */
.table-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 50% 38%, var(--felt-1), var(--felt-2) 75%);
  position: relative;
}
.table-screen.shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-5px, -2px); }
  80% { transform: translate(4px, 3px); }
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, .22);
  gap: 8px;
  flex-wrap: wrap;
  min-height: 52px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; }
.room-tag {
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(217, 180, 91, .35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .88rem;
  cursor: pointer;
}
.room-tag b { color: var(--gold); letter-spacing: .15em; }
.topbar-center { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.level-chip {
  font-size: .8rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .14);
}
.level-chip b { font-size: .95rem; }
.level-chip.team0 { border-color: rgba(79, 143, 217, .65); }
.level-chip.team1 { border-color: rgba(217, 106, 90, .65); }
.level-chip.wild { border-color: rgba(217, 91, 77, .55); background: rgba(120, 30, 24, .35); }
.deal-no { font-size: .78rem; color: var(--muted); }

/* ---------- 等待区 ---------- */
.waiting {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 20px;
  overflow-y: auto;
}
.seat-grid { display: grid; grid-template-columns: repeat(2, 170px); gap: 22px; }
.wait-seat {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.wait-seat.empty { border-style: dashed; opacity: .75; }
.wait-seat .avatar { margin: 0 auto 8px; }
.seat-name { font-size: .95rem; }
.seat-team { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.invite-box { text-align: center; }
.invite-title { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.invite-link {
  max-width: min(420px, 80vw);
  margin: 0 auto 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .3);
  border: 1px dashed rgba(217, 180, 91, .4);
  color: var(--gold);
  font-size: .82rem;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wait-actions { display: flex; gap: 14px; align-items: center; }

/* ---------- 对局桌面 ---------- */
.table-area {
  flex: 1;
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) minmax(96px, 150px);
  grid-template-rows: auto minmax(150px, 1fr) auto;
  grid-template-areas:
    ".     top    ."
    "left  center right"
    "mine  mine   mine";
  gap: 2px 6px;
  padding: 0 6px;
}

/* 座位（对手/我） */
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: #5a6b60;
  border: 2px solid rgba(255, 255, 255, .3);
  flex-shrink: 0;
}
.avatar.team0 { background: linear-gradient(180deg, #5f9be0, #3a6ea8); }
.avatar.team1 { background: linear-gradient(180deg, #e07a68, #a84437); }
.avatar.dashed { background: transparent; border-style: dashed; color: var(--muted); font-weight: 400; }
.opp { display: flex; z-index: 5; }
.opp-top { grid-area: top; justify-self: center; }
.opp-left { grid-area: left; align-self: center; }
.opp-right { grid-area: right; align-self: center; }
.seat-badge { display: flex; align-items: center; gap: 8px; }
.opp-left .seat-badge { flex-direction: row; }
.opp-right .seat-badge { flex-direction: row-reverse; }
.seat-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.opp-right .seat-info { align-items: flex-end; }
.seat-nm { font-size: .85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); max-width: 9vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count-badge {
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: .78rem;
  color: #ffd98a;
}
.count-badge.warn { background: rgba(217, 91, 77, .75); animation: blink 1s ease infinite; }
@keyframes blink { 50% { opacity: .55; } }
.pos-tag { font-size: .72rem; color: var(--gold); }
.turn-glow { animation: turnPulse 1.4s ease infinite; }
@keyframes turnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 180, 91, .0), 0 0 14px rgba(217, 180, 91, .55); }
  50% { box-shadow: 0 0 0 6px rgba(217, 180, 91, .18), 0 0 26px rgba(217, 180, 91, .95); }
}
.offline-tag { font-size: .7rem; color: #ffb0a6; }
.hostage-btn { font-size: .7rem; padding: 2px 8px; }

/* 中央区 */
.center-zone { grid-area: center; position: relative; min-height: 150px; display: flex; flex-direction: column; }
.center-hint {
  position: relative;
  width: max-content;
  margin: 4px auto 0;
  padding: 3px 14px;
  background: rgba(0, 0, 0, .32);
  border-radius: 999px;
  font-size: .9rem;
  color: #ffe9b8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  letter-spacing: .1em;
  white-space: nowrap;
  z-index: 4;
  flex-shrink: 0;
}
.played-area { position: relative; flex: 1; min-height: 0; }
.played-slot { position: absolute; }
.played-slot.pos0 { bottom: 6px; left: 50%; transform: translateX(-50%); }
.played-slot.pos2 { top: 2px; left: 50%; transform: translateX(-50%); }
.played-slot.pos3 { left: 74px; top: 50%; transform: translateY(-60%); }
.played-slot.pos1 { right: 74px; top: 50%; transform: translateY(-60%); }
.played-cards { display: flex; align-items: center; animation: playIn .25s ease; position: relative; }
@keyframes playIn { from { transform: translateY(var(--fromY, 16px)) scale(.85); opacity: 0; } }
.played-slot.pos2 .played-cards { --fromY: -16px; }
.played-slot.pos1 .played-cards { --fromY: 0; transform-origin: right; }
.played-cards.bomb::after {
  content: '💥';
  position: absolute;
  right: -30px;
  top: -20px;
  font-size: 1.5rem;
  animation: playIn .3s ease;
}
.played-label {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  font-size: .72rem;
  color: rgba(255, 233, 184, .9);
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
}
.pass-bubble {
  background: rgba(0, 0, 0, .5);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: .88rem;
  color: #cfd8d0;
  animation: playIn .2s ease;
}

/* ---------- 卡牌 ---------- */
.card {
  --w: 74px;
  --h: 104px;
  width: var(--w);
  height: var(--h);
  background: linear-gradient(160deg, #ffffff, var(--card-bg));
  border-radius: 8px;
  border: 1px solid #c9c4b2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  color: var(--black);
  position: relative;
  cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease;
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.card.red { color: var(--red); }
.card .corner {
  position: absolute;
  top: 5px;
  left: 6px;
  text-align: center;
  line-height: 1.02;
  font-weight: 700;
}
.card .corner .rk { font-size: calc(var(--w) * .26); display: block; }
.card .corner .st { font-size: calc(var(--w) * .2); display: block; }
.card .pip {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: calc(var(--w) * .42);
  line-height: 1;
}
.card .joker-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--w) * .5);
  font-weight: 700;
  writing-mode: vertical-lr;
  letter-spacing: .1em;
}
.card.joker-big .joker-mark { color: #d23c2e; }
.card.joker-small .joker-mark { color: #2b4c9b; }
/* 级牌与逢人配 */
.card.level-card { border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(217, 180, 91, .5); }
.card.wild-card {
  border: 2px solid #ff7043;
  box-shadow: 0 0 14px rgba(255, 112, 67, .75);
}
.card.wild-card::before {
  content: '配';
  position: absolute;
  top: -8px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8a5c, #e64a19);
  color: #fff;
  font-size: 12px;
  font-family: system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
/* 迷你牌（出牌区） */
.card.mini { --w: 46px; --h: 64px; cursor: default; border-radius: 6px; }
.card.mini + .card.mini { margin-left: -14px; }
/* 手牌 */
.hand-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 42px 8px 10px;
  overflow-x: auto;
  max-width: 100%;
}
.hand-wrap .card + .card { margin-left: calc(var(--w) * -.52); }
.hand-wrap .card.selected { transform: translateY(-26px); box-shadow: 0 10px 18px rgba(0, 0, 0, .45), 0 0 12px rgba(217, 180, 91, .8); z-index: 6; }
.hand-wrap.disabled .card { cursor: default; }
/* 悬停效果仅鼠标设备：触屏点击后 :hover 会粘滞，导致卡片残留浮层遮挡邻牌 */
@media (hover: hover) and (pointer: fine) {
  .hand-wrap .card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .5), 0 0 10px rgba(217, 180, 91, .35); z-index: 5; }
}

/* 我的区域 */
.my-zone { grid-area: mine; padding: 0 10px 8px; }
.my-row { display: flex; align-items: flex-end; gap: 10px; }
.my-row .seat-badge { padding-bottom: 10px; }
.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 4px;
}
.actions .btn { min-width: 108px; }

/* ---------- 弹层 ---------- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  animation: fadeIn .25s ease;
  padding: 16px;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: linear-gradient(180deg, #1e3529, #14261d);
  border: 1px solid rgba(217, 180, 91, .45);
  border-radius: 16px;
  padding: 26px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: min(440px, 94vw);
  width: 100%;
  animation: popIn .3s cubic-bezier(.2, 1.4, .4, 1);
  position: relative;
  overflow: hidden;
}
@keyframes popIn { from { transform: scale(.82); opacity: 0; } }
.modal-title { font-size: 1.25rem; margin-bottom: 16px; letter-spacing: .08em; }
.rank-list { margin-bottom: 16px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  margin-bottom: 6px;
}
.rank-item.me { border: 1px solid rgba(217, 180, 91, .6); }
.rank-item.teammate .rank-name::after { content: '（队友）'; font-size: .72rem; color: var(--muted); }
.rank-name { flex: 1; text-align: left; }
.rank-pos { font-size: .82rem; color: var(--muted); }
.settle-result { font-size: 1.02rem; margin-bottom: 16px; }
.settle-result b { color: var(--gold); font-size: 1.25rem; }
.level-progress { margin-bottom: 20px; }
.lp-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-label { font-size: .8rem; width: 34px; text-align: left; }
.lp-label.team0 { color: var(--blue-team); }
.lp-label.team1 { color: var(--red-team); }
.lp-track {
  flex: 1;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .4);
  position: relative;
  overflow: hidden;
}
.lp-fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.lp-fill.team0 { background: linear-gradient(90deg, #3a6ea8, #5f9be0); }
.lp-fill.team1 { background: linear-gradient(90deg, #a84437, #e07a68); }
.lp-track span {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .68rem;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}
/* 过A庆祝 */
.gameover-modal { padding-top: 40px; }
.go-emoji { font-size: 3.4rem; margin-bottom: 10px; animation: popIn .5s .15s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.confetti {
  position: absolute;
  width: 9px;
  height: 14px;
  top: -16px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to { transform: translateY(120%) rotate(720deg); opacity: .1; }
}

/* ---------- 聊天 ---------- */
.chat-panel {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 0;
  width: min(280px, 78vw);
  background: rgba(10, 20, 15, .92);
  border-left: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  z-index: 25;
  transform: translateX(105%);
  transition: transform .25s ease;
}
.chat-panel.open { transform: translateX(0); }
.chat-head {
  padding: 10px 12px;
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: .84rem; line-height: 1.5; }
.chat-msg { margin-bottom: 6px; color: #cfd8d0; word-break: break-all; }
.chat-msg.me b { color: var(--gold); }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; }
.chat-input-row { display: flex; gap: 8px; padding: 8px 12px 12px; }
.chat-input-row input {
  flex: 1;
  padding: .5em .8em;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(0, 0, 0, .3);
  color: #f3efe4;
  outline: none;
  font-size: .88rem;
}

/* ---------- Toast ---------- */
.toasts {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(20, 33, 26, .95);
  border: 1px solid rgba(217, 180, 91, .5);
  color: #ffe9b8;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .9rem;
  box-shadow: var(--shadow);
  animation: playIn .25s ease;
}
.toast.error { border-color: rgba(217, 91, 77, .7); color: #ffc9c2; }
.toast-enter-active, .toast-leave-active { transition: all .3s ease; }
.toast-leave-to { opacity: 0; transform: translateY(-8px); }

/* 矮屏（含键盘弹出）紧凑大厅 */
@media (max-height: 720px) and (pointer: coarse) {
  .brand { margin-bottom: 12px; }
  .brand-suits { font-size: 1.05rem; margin-bottom: 4px; }
  .brand h1 { font-size: 1.45rem; }
  .brand-sub { margin-top: 4px; font-size: .8rem; }
  .conn-state { margin-top: 6px; }
  .lobby-card { padding: 20px 20px 16px; }
  .field { margin-bottom: 12px; }
  .lobby-card .btn.primary.big { margin-bottom: 12px; }
  .lobby-tip { display: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .card { --w: 60px; --h: 84px; }
  .card.mini { --w: 38px; --h: 53px; }
  .seat-grid { grid-template-columns: repeat(2, 140px); gap: 14px; }
  .played-slot.pos3 { left: 60px; }
  .played-slot.pos1 { right: 60px; }
}
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .card { --w: 46px; --h: 66px; border-radius: 6px; }
  .card.mini { --w: 32px; --h: 45px; }
  .card.mini + .card.mini { margin-left: -12px; }
  .btn { min-height: 44px; }
  .join-row .btn { min-width: 112px; }
  .join-row .room-input { font-size: 1.15rem; }
  .hand-wrap { padding: 30px 4px 6px; }
  .hand-wrap .card.selected { transform: translateY(-20px); }
  .hand-wrap .card + .card { margin-left: calc(var(--w) * -.55); }
  .avatar { width: 38px; height: 38px; font-size: .95rem; }
  .table-area {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left   top    right"
      "center center center"
      "mine   mine   mine";
  }
  .opp { justify-self: center; }
  .center-hint { font-size: .8rem; margin-top: 2px; }
  .played-slot.pos2 { top: 0; }
  .played-slot.pos3 { left: 4px; top: 52px; }
  .played-slot.pos1 { right: 4px; top: 52px; }
  .played-slot.pos0 { bottom: 0; }
  .opp .seat-badge { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .opp .seat-info { align-items: center; }
  .seat-nm { max-width: 30vw; }

  .actions .btn { min-width: 84px; padding: .5em 1em; }
  .topbar { padding: 8px 10px; }
  .topbar-center { order: 3; width: 100%; justify-content: center; }
  .my-row .seat-badge { padding-bottom: 4px; }
  .chat-panel { top: 0; z-index: 40; }
}
