:root {
  color-scheme: dark;
  --bg: #08091a;
  --ink: #f8fbff;
  --muted: #a9b8d6;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(13, 17, 42, 0.92);
  --panel-2: rgba(24, 22, 67, 0.88);
  --accent: #2ee8ff;
  --accent-2: #ff4fd8;
  --danger: #ff6767;
  --blue: #7856ff;
  --coral: #ffcf4d;
  --gold: #ffcf4d;
  --felt: #10143f;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; max-width: 100%; overflow-x: hidden; }
body {
  background:
    radial-gradient(circle at 10% 10%, rgba(46, 232, 255, 0.20), transparent 25rem),
    radial-gradient(circle at 88% 5%, rgba(255, 79, 216, 0.22), transparent 22rem),
    radial-gradient(circle at 55% 92%, rgba(120, 86, 255, 0.16), transparent 28rem),
    linear-gradient(160deg, #08091a 0%, #111238 48%, #071017 100%);
  color: var(--ink);
}

button, input, select { font: inherit; }
button {
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 14px;
  background: var(--accent);
  color: #051013;
  font-weight: 800;
  cursor: pointer;
}
button.secondary { background: rgba(255,255,255,.1); color: var(--ink); border: 1px solid var(--line); }
button.warn { background: var(--coral); color: #220b05; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 12px;
  background: rgba(255,255,255,.08);
  color: var(--ink);
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061016;
  font-weight: 1000;
}
.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(34px, 8vw, 82px);
  line-height: .94;
  margin: 0 0 16px;
}
.hero-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 580px;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.hero-copy p span { display: block; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.mascot-stage {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(46,232,255,.20), transparent 18rem),
    radial-gradient(circle at 80% 12%, rgba(255,79,216,.22), transparent 13rem),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border-radius: 8px;
  overflow: hidden;
}
.mascot {
  position: absolute;
  inset: 44px 20px auto;
  height: 360px;
  display: grid;
  place-items: center;
}
.mascot svg { width: min(380px, 88%); filter: drop-shadow(0 28px 36px rgba(0,0,0,.4)); }
.mascot-card {
  position: absolute;
  inset: 28px 24px 118px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    radial-gradient(circle at 50% 60%, rgba(46,232,255,.24), transparent 16rem);
  border: 1px solid rgba(255,255,255,.14);
  overflow: hidden;
}
.mascot-img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 8px;
  filter: drop-shadow(0 30px 34px rgba(0,0,0,.45));
}
.mascot-glow {
  position: absolute;
  width: 70%;
  height: 28%;
  bottom: 28px;
  border-radius: 50%;
  background: rgba(46,232,255,.18);
  filter: blur(18px);
}
.neon-preview {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(8,9,26,.72);
  border: 1px solid rgba(46,232,255,.24);
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
}
.neon-preview strong,
.neon-preview span { display: block; }
.neon-preview span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.neon-card-back {
  width: 44px;
  height: 62px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), transparent 32%),
    linear-gradient(135deg, #ff4fd8, #171139 58%, #2ee8ff);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 26px rgba(0,0,0,.32), 0 0 18px rgba(46,232,255,.24);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  min-width: 0;
}
.grid { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 12px;
  min-height: 116px;
  color: var(--ink);
  text-align: center;
}
.mode.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(56,224,184,.18) inset; }
.mode strong { display: block; margin-bottom: 7px; color: var(--ink); }
.mode span { color: var(--muted); font-size: 13px; line-height: 1.4; }

.share-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56,224,184,.16), rgba(255,207,77,.14));
  border: 1px solid var(--line);
}
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  background: rgba(4,10,16,.72);
  padding: 14px;
}
.share-sheet {
  display: grid;
  gap: 10px;
  width: min(520px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: 0 auto;
  padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  border-radius: 8px 8px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.share-sheet h2 { margin: 0; }
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.code {
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: 5px;
}
.qr {
  width: 132px;
  height: 132px;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
}
.qr img { width: 100%; height: 100%; display: block; }

.lobby {
  display: grid;
  gap: 14px;
}
.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.team {
  display: grid;
  gap: 10px;
  min-height: 190px;
}
.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px;
  background: rgba(255,255,255,.065);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #ffd9b1 0 34%, transparent 35%),
    linear-gradient(135deg, var(--blue), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #061016;
  flex: 0 0 auto;
  overflow: hidden;
}
.avatar::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 5px;
  height: 10px;
  border-radius: 10px 10px 3px 3px;
  background: rgba(255,207,77,.88);
}
.tiny { font-size: 12px; color: var(--muted); }

.table {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding-bottom: env(safe-area-inset-bottom);
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
}
.score-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 3px;
}
.player-chip {
  min-width: 126px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.065);
  padding: 8px;
}
.player-chip.turn { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(255,207,77,.16) inset; }
.felt {
  border-radius: 8px;
  border: 1px solid rgba(56,224,184,.24);
  background:
    linear-gradient(135deg, rgba(56,224,184,.09), transparent),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 18px),
    #0d342f;
  min-height: 320px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.last-play {
  min-height: 116px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}
.hand {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  padding: 20px 0 10px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.card {
  width: 58px;
  min-width: 58px;
  height: 84px;
  margin-right: -18px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.18);
  background: #f9fbff;
  color: #071017;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  padding: 6px;
  display: grid;
  align-content: space-between;
  font-weight: 1000;
  transition: transform .14s ease, box-shadow .14s ease;
  user-select: none;
}
.card.red { color: #d52f40; }
.card.selected { transform: translateY(-18px); box-shadow: 0 18px 28px rgba(56,224,184,.25); outline: 2px solid var(--accent); }
.card .rank { font-size: 18px; }
.card .suit { font-size: 18px; justify-self: end; }
.card .mini-muscle {
  height: 30px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 22%, #2b140c 0 18%, transparent 19%),
    radial-gradient(circle at 30% 72%, rgba(8,16,23,.22) 0 22%, transparent 23%),
    radial-gradient(circle at 70% 72%, rgba(8,16,23,.22) 0 22%, transparent 23%),
    linear-gradient(135deg, #ffd2a4, #ffcf4d);
  position: relative;
  overflow: hidden;
}
.card .mini-muscle:before,
.card .mini-muscle:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(8,16,23,.2);
  bottom: -4px;
}
.card .mini-muscle:before { left: 7px; }
.card .mini-muscle:after { right: 7px; }
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  min-width: 0;
}
.table-neon {
  width: min(760px, 100%);
  grid-template-rows: auto minmax(430px, 1fr) auto;
}
.table-header .topbar {
  padding-bottom: 8px;
}
.table-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.game-stage {
  border: 1px solid rgba(46,232,255,.20);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,79,216,.16), transparent 19rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  padding: 10px;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.match-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hud-item {
  min-height: 48px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(9,12,34,.70);
  border: 1px solid rgba(46,232,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.hud-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}
.hud-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.table-neon .felt {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(46,232,255,.24);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(46,232,255,.18), transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    #08091a;
  padding: 0;
  display: block;
  overflow: hidden;
}
.table-neon .felt::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 18%;
  bottom: 17%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(46,232,255,.20), transparent 46%),
    linear-gradient(145deg, #17206d, #10143f 58%, #08091a);
  border: 9px solid rgba(255,79,216,.30);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -28px 44px rgba(0,0,0,.34), 0 22px 44px rgba(0,0,0,.42), 0 0 34px rgba(46,232,255,.12);
}
.table-neon .felt::after {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  top: 31%;
  bottom: 31%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.14);
}
.round-seat {
  position: absolute;
  z-index: 4;
  min-height: 50px;
  width: 138px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: rgba(7,9,28,.82);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 13px 30px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}
.round-seat.turn {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255,207,77,.16), 0 13px 30px rgba(0,0,0,.32);
}
.round-seat.relation-me,
.round-seat.relation-partner {
  border-color: rgba(46,232,255,.34);
}
.round-seat.relation-opponent {
  border-color: rgba(255,79,216,.28);
}
.seat-top { left: 50%; top: 8px; transform: translateX(-50%); }
.seat-right { right: 2px; top: 47%; transform: translateY(-50%); width: 116px; }
.seat-bottom { left: 50%; bottom: 8px; transform: translateX(-50%); }
.seat-left { left: 2px; top: 47%; transform: translateY(-50%); width: 116px; }
.seat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #061016;
  font-weight: 1000;
  background:
    radial-gradient(circle at 50% 33%, #ffd9b1 0 32%, transparent 33%),
    linear-gradient(135deg, #2ee8ff, #ff4fd8);
  border: 2px solid rgba(255,255,255,.18);
}
.seat-copy { min-width: 0; }
.seat-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}
.opponent-stack {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
}
.stack-top { left: 50%; top: 68px; transform: translateX(-50%); }
.stack-left { left: 18px; bottom: 78px; flex-direction: column; align-items: flex-start; }
.stack-right { right: 18px; bottom: 78px; flex-direction: column; align-items: flex-end; }
.card-back {
  width: 31px;
  height: 46px;
  margin-right: -18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(135deg, #ff4fd8, #171139 58%, #2ee8ff);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 9px 18px rgba(0,0,0,.30), 0 0 14px rgba(46,232,255,.12);
}
.stack-left .card-back,
.stack-right .card-back {
  margin-right: 0;
  margin-bottom: -29px;
}
.stack-left .card-back:last-of-type,
.stack-right .card-back:last-of-type {
  margin-bottom: 0;
}
.opponent-stack span {
  margin-left: 24px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(4,7,22,.82);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}
.stack-left span,
.stack-right span { margin: 7px 0 0; }
.table-neon .last-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(220px, 58%);
  min-height: 118px;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(5,8,24,.66);
  border: 1px solid rgba(46,232,255,.22);
  box-shadow: 0 16px 28px rgba(0,0,0,.30), 0 0 30px rgba(46,232,255,.10);
}
.turn-chip {
  display: inline-grid;
  place-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #17130c;
  font-size: 11px;
  font-weight: 1000;
}
.last-play-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.last-play-cards .card {
  width: 31px;
  min-width: 31px;
  height: 44px;
  margin-right: -8px;
  padding: 4px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,.28);
}
.last-play-cards .mini-muscle { display: none; }
.last-play-cards .rank,
.last-play-cards .suit { font-size: 13px; }
.center-detail { text-align: center; }
.center-empty {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
}
.hand-panel {
  display: grid;
  gap: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(7,9,28,.98));
  border-color: rgba(46,232,255,.18);
}
.hand-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.hand-topline span { margin-left: 2px; }
.sort-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
button.sort-chip {
  min-height: 32px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-size: 11px;
}
button.sort-chip.active {
  background: var(--accent);
  color: #051013;
  border-color: transparent;
}
.table-neon .hand {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  overflow: visible;
  padding: 4px 0 2px;
}
.table-neon .hand .card {
  width: 100%;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 5px 4px;
  border-radius: 7px;
  box-shadow: 0 9px 16px rgba(0,0,0,.24);
}
.table-neon .hand .card.selected {
  transform: translateY(-5px);
  outline: 2px solid rgba(46,232,255,.65);
  box-shadow: 0 16px 24px rgba(46,232,255,.20);
}
.table-neon .hand .card.level-card {
  box-shadow: inset 0 0 0 2px rgba(255,207,77,.65), 0 9px 16px rgba(0,0,0,.24);
}
.table-neon .hand .rank { font-size: 12px; }
.table-neon .hand .suit { font-size: 15px; }
.table-neon .hand .mini-muscle { display: none; }
.table-neon .actions button {
  min-height: 48px;
}
.table-neon .actions button:not(#playBtn) {
  background: rgba(255,255,255,.08);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
}
.table-neon #playBtn {
  background: var(--accent);
  color: #051013;
  box-shadow: 0 12px 26px rgba(46,232,255,.22);
}
.table-wait-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.toast {
  border-radius: 8px;
  border: 1px solid rgba(255,207,77,.35);
  background: rgba(255,207,77,.13);
  padding: 10px;
  color: #fff4c4;
}
.cheers {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(4,10,16,.82);
  animation: fadeIn .25s ease;
}
.cheers-card {
  width: min(340px, calc(100vw - 30px));
  text-align: center;
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, #133044, #10251e);
  border: 1px solid var(--line);
}
.cheers h2 { font-size: 48px; margin: 0 0 8px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.empty { color: var(--muted); border: 1px dashed var(--line); padding: 16px; border-radius: 8px; text-align: center; }
.error { color: #ffd7d7; background: rgba(255,103,103,.14); border: 1px solid rgba(255,103,103,.35); padding: 10px; border-radius: 8px; }
.ok { color: #dbfff4; background: rgba(56,224,184,.14); border: 1px solid rgba(56,224,184,.35); padding: 10px; border-radius: 8px; }

@media (max-width: 780px) {
  .shell { padding: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .mascot-stage { min-height: 420px; }
  .mascot-card { inset: 18px 24px 150px; }
  .mascot { inset: 8px -20px auto; height: 300px; }
  .two, .three { grid-template-columns: 1fr; }
  .teams { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 44px; }
  .panel { padding: 12px; }
  .card { width: 54px; min-width: 54px; height: 80px; }
  .mode { min-height: 86px; }
  .table {
    min-height: 100dvh;
    grid-template-rows: auto minmax(230px, 1fr) auto;
  }
  .table-neon {
    grid-template-rows: auto minmax(390px, 1fr) auto;
  }
  .felt {
    min-height: 230px;
    align-content: start;
  }
  .table-neon .felt {
    min-height: 360px;
  }
  .match-hud {
    gap: 6px;
  }
  .hud-item {
    padding: 7px;
  }
  .hud-item strong {
    font-size: 12px;
  }
  .round-seat {
    width: 124px;
  }
  .seat-left,
  .seat-right {
    width: 108px;
  }
  .seat-copy strong {
    font-size: 11px;
  }
  .table-neon .last-play {
    width: 178px;
  }
  .table-neon .hand .card {
    height: 47px;
  }
  .last-play {
    min-height: 84px;
  }
  .table > .panel:last-child {
    position: sticky;
    bottom: 0;
    z-index: 12;
    margin-inline: -12px;
    border-radius: 8px 8px 0 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(12, 25, 38, .98);
  }
  .actions {
    grid-template-columns: .85fr .85fr 1.1fr;
  }
}
