/* 跑馬仔 v3 — mobile-first scorekeeping */
:root {
  --ink: #1c1916;
  --ink-soft: #5c5348;
  --cream: #f6f0e6;
  --cream-deep: #ebe3d4;
  --card: #fffbf4;
  --line: #e4d8c4;
  --felt: #1b4332;
  --felt-mid: #2d6a4f;
  --felt-light: #40916c;
  --gold: #c4a35a;
  --gold-soft: #e8d5a3;
  --win: #1b7a4a;
  --lose: #c0392b;
  --shadow: 0 8px 24px rgba(28, 25, 22, 0.12);
  --radius: 18px;
  --tap: 52px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "PingFang TC", "Hiragino Sans GB", "Noto Sans TC", "Microsoft JhengHei", "Source Han Sans TC", sans-serif;
  background: #d9cfc0;
  color: var(--ink);
  min-height: 100dvh;
}
button, input { font-family: inherit; }
button { cursor: pointer; border: 0; }
#app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100svh;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(28,25,22,.06), 0 20px 50px rgba(28,25,22,.18);
}

.screen {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ——— header ——— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  min-height: calc(56px + var(--safe-t));
}
.topbar.felt {
  background: var(--felt);
  color: #f6f0e6;
}
.topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.top-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.top-actions { display: flex; gap: 6px; }
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 14px;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--felt);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}
.ver-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
}
.round-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
}
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: inherit;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn:active { transform: scale(0.96); background: rgba(255,255,255,.18); }
.icon-btn:disabled { opacity: 0.35; }
.icon-btn.ghost {
  background: transparent;
  color: var(--ink);
}
.icon-btn.ghost:active { background: var(--cream-deep); }

/* ——— setup ——— */
.setup-body { padding: 8px 18px calc(24px + var(--safe-b)); flex: 1; display: flex; flex-direction: column; overflow: auto; }
.lede {
  margin: 4px 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}
.seat-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.wind {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--felt);
  color: var(--gold-soft);
}
.seat-field input {
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 10px 4px;
  width: 100%;
  outline: none;
  color: var(--ink);
}
.seat-field input::placeholder { color: #b3a898; }
.stakes {
  margin: 14px 0 20px;
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: 16px;
  padding: 14px 16px;
}
.stakes-k { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.08em; }
.stakes-v { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--felt); }

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.preset-chip {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
  font-weight: 750;
  font-size: 15px;
  color: var(--ink);
}
.preset-chip.on {
  border-color: var(--felt);
  background: #e7f3ec;
  color: var(--felt);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e8da;
}
.field-row:last-child { border-bottom: 0; }
.field-lab { font-weight: 750; font-size: 15px; flex-shrink: 0; }
.field-row input {
  width: 120px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  outline: none;
}
.seg { display: flex; gap: 6px; }
.seg-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--line);
  font-weight: 750;
}
.seg-btn.on {
  border-color: var(--felt);
  background: #e7f3ec;
  color: var(--felt);
}

.btn {
  min-height: var(--tap);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  padding: 0 18px;
  letter-spacing: 0.06em;
}
.btn-primary {
  background: var(--felt);
  color: #fff;
  width: 100%;
  box-shadow: 0 6px 16px rgba(27,67,50,.25);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-danger {
  background: #fff;
  color: var(--lose);
  border: 1px solid #f0c9c4;
}
.btn-gold {
  background: var(--gold);
  color: #2a2112;
}
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }
.btn:disabled { opacity: 0.4; }

/* ——— table ——— */
.table-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 42%, #3a8f64 0%, #245c40 58%, #163d2b 100%);
  position: relative;
}
.table-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 118px 1fr;
  grid-template-rows: 1fr auto 1fr;
  gap: 10px;
  padding: 14px 12px 10px;
  align-items: stretch;
}
.table-wrap.p3 .table-grid {
  grid-template-rows: auto 1fr auto;
}
.table-wrap.p3 .seat-left { grid-row: 2; }
.table-wrap.p3 .seat-right { grid-row: 2; }
.table-wrap.p3 .seat-bot { grid-column: 2; grid-row: 3; }
.table-wrap.p3 .liu { grid-row: 2; }

.seat {
  background: var(--card);
  border-radius: 18px;
  border: 1.5px solid rgba(255,251,244,.55);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 12px;
  min-height: 118px;
  color: var(--ink);
  text-align: center;
  user-select: none;
}
.seat:active { transform: scale(0.98); }
.seat.swapable { outline: 2px dashed rgba(255,255,255,.55); }
.seat.dragging { opacity: 0.55; }
.seat.on { outline: 3px solid var(--gold); }
.seat-top { grid-column: 2; grid-row: 1; }
.seat-left { grid-column: 1; grid-row: 2; align-self: center; }
.seat-right { grid-column: 3; grid-row: 2; align-self: center; }
.seat-bot { grid-column: 2; grid-row: 3; }
.seat-emoji { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.seat-wind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--felt-mid);
  margin-bottom: 2px;
}
.seat-name {
  font-size: 15px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}
.seat-score {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 2px;
}
.seat-score.pos { color: var(--win); }
.seat-score.neg { color: var(--lose); }
.seat-delta {
  font-size: 13px;
  font-weight: 700;
  min-height: 16px;
  font-variant-numeric: tabular-nums;
}
.seat-delta.pos { color: var(--win); }
.seat-delta.neg { color: var(--lose); }
.seat-delta.zero { color: transparent; }

.liu {
  grid-column: 2;
  grid-row: 2;
  width: 118px;
  height: 118px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d78a, var(--gold) 45%, #9a7830);
  color: #2a2112;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.45);
  display: grid;
  place-items: center;
}
.liu:active { transform: scale(0.96); }

.last-caption {
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  padding: 0 16px 8px;
  min-height: 22px;
}

.swap-bar {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.swap-bar .btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

.bottom-bar {
  background: #123026;
  padding: 12px 12px calc(12px + var(--safe-b));
}
.bottom-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  gap: 8px;
  align-items: center;
}
.btn-settle {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  background: #fff;
  color: var(--felt);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.btn-bar-sec {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

/* ——— hand entry ——— */
.hand-body { padding: 8px 16px 24px; flex: 1; overflow: auto; }
.hand-title {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.hand-who {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 16px;
}
.step-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.choice-grid {
  display: grid;
  gap: 10px;
}
.choice-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.choice-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.choice {
  min-height: 56px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  padding: 10px 12px;
}
.choice.sub { font-size: 15px; min-height: 52px; }
.choice.on {
  border-color: var(--felt);
  background: #e7f3ec;
  color: var(--felt);
  box-shadow: 0 0 0 1px var(--felt) inset;
}
.choice:active { transform: scale(0.98); }
.horse-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.horse {
  min-height: 56px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--line);
  font-size: 20px;
  font-weight: 800;
}
.horse.on {
  background: var(--felt);
  border-color: var(--felt);
  color: var(--gold-soft);
}
.preview {
  margin-top: 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.preview h3 { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); font-weight: 700; }
.prev-line {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 650;
  border-bottom: 1px solid #f0e8da;
}
.prev-line:last-child { border-bottom: 0; }
.amt { font-variant-numeric: tabular-nums; font-weight: 800; }
.amt.pos { color: var(--win); }
.amt.neg { color: var(--lose); }
.sticky-ok {
  padding: 12px 16px calc(16px + var(--safe-b));
  background: linear-gradient(to top, var(--cream) 70%, rgba(246,240,230,0));
}
.winner-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}
.winner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 750;
}
.inline-toggles {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 14px;
}
.amount-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 8px;
  align-items: center;
}
.amount-row input {
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid var(--line);
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  background: #fff;
}
.preset-amt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ——— settle / stats / history ——— */
.settle-body { padding: 8px 16px 24px; flex: 1; overflow: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #f0e8da;
}
.score-row:last-child { border-bottom: 0; }
.score-row .nm { font-weight: 700; font-size: 17px; }
.score-row .sc { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.xfer {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.xfer-mid { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.xfer-amt { color: var(--felt); font-size: 20px; font-variant-numeric: tabular-nums; }
.empty-xfer { color: var(--ink-soft); text-align: center; padding: 12px; }
.section-k {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
  min-width: 360px;
}
.stats-table th, .stats-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #f0e8da;
  font-variant-numeric: tabular-nums;
}
.stats-table th {
  background: var(--felt);
  color: var(--gold-soft);
  font-weight: 750;
  font-size: 12px;
}
.stats-table td.nm { text-align: left; font-weight: 750; white-space: nowrap; }
.stats-table tr:last-child td { border-bottom: 0; }

.hist-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.hist-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 4px;
}
.hist-cap { font-weight: 750; font-size: 15px; }
.hist-delta { margin-top: 4px; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.units-inline {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.units-inline label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 15px;
}
.units-inline input {
  width: 100px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 750;
}

/* ——— overlays ——— */
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, .42);
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b));
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
  animation: up .22s ease;
  max-height: 85dvh;
  overflow: auto;
}
@keyframes up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-handle {
  width: 40px; height: 4px;
  background: #ddd2c2;
  border-radius: 4px;
  margin: 4px auto 12px;
}
.sheet h2 { margin: 0 0 12px; font-size: 18px; }
.menu-item {
  width: 100%;
  text-align: left;
  min-height: 52px;
  padding: 12px 4px;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  border-bottom: 1px solid #f0e8da;
  color: var(--ink);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:disabled { color: #b3a898; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0e8da;
}
.toggle-row:last-child { border-bottom: 0; }
.toggle-lab { font-weight: 750; font-size: 16px; }
.toggle-hint { font-size: 12px; color: var(--ink-soft); margin-top: 2px; font-weight: 500; }
.sw {
  width: 52px; height: 32px;
  border-radius: 999px;
  background: #d5cbbd;
  position: relative;
  flex-shrink: 0;
  transition: background .15s;
}
.sw.on { background: var(--felt-mid); }
.sw i {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
  display: block;
}
.sw.on i { transform: translateX(20px); }
.confirm-box {
  width: calc(100% - 32px);
  margin: auto auto calc(24px + var(--safe-b));
  background: var(--card);
  border-radius: 20px;
  padding: 22px 18px 16px;
  text-align: center;
}
.confirm-box h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-box p { margin: 0 0 18px; color: var(--ink-soft); }

/* dice */
.dice-scrim {
  align-items: center;
  z-index: 25;
}
.dice-box {
  width: calc(100% - 48px);
  max-width: 320px;
  background: var(--card);
  border-radius: 22px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.dice-box h2 { margin: 0 0 16px; }
.dice-faces {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.die {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f0e6d4);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.dice-faces.rolling .die { animation: wobble .12s linear infinite alternate; }
@keyframes wobble { from { transform: rotate(-8deg) scale(0.96); } to { transform: rotate(8deg) scale(1.04); } }
.dice-sum {
  font-size: 18px;
  font-weight: 800;
  color: var(--felt);
  margin-bottom: 16px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(88px + var(--safe-b));
  transform: translateX(-50%);
  background: rgba(28,25,22,.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  z-index: 30;
  pointer-events: none;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; transform: translate(-50%, 8px); } }

.setup-foot { margin-top: auto; padding-top: 12px; }


/* ——— v2 gaps: redo / lock / share ——— */
.undo-pair { display: flex; gap: 4px; flex-shrink: 0; }
.undo-pair .icon-btn { width: 40px; height: 40px; font-size: 20px; }

.seat.locked-seat { opacity: 0.92; }
.seat-lock {
  font-size: 13px;
  line-height: 1;
  margin-bottom: 2px;
}
.swap-bar .btn { min-height: 46px; font-size: 15px; padding: 0 10px; }
.swap-bar .btn-gold {
  background: var(--gold);
  color: #2a2112;
}

.share-actions { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.share-actions .btn { width: 100%; }
.result-preview {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
  background: #163d2b;
}

/* —— v3 sync / spectator —— */
.sync-bar {
  margin: 10px 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sync-bar.host-bar { border-color: rgba(196,163,90,.55); }
.sync-bar.spectator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1b4332;
  color: #f6f0e6;
  border-color: transparent;
}
.sync-lab {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.sync-url {
  font-size: 12px;
  word-break: break-all;
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream-deep);
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.sync-actions { gap: 8px; }
.sync-actions .btn { flex: 1; min-height: 44px; font-size: 14px; }
.sync-hint { font-size: 13px; opacity: .92; }
.sync-err { margin-top: 8px; color: var(--lose); font-size: 12px; font-weight: 600; }
.spect-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c4a35a;
  color: #1b4332;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.is-spectator .seat[disabled],
.is-spectator .seat[aria-disabled="true"] {
  opacity: .95;
  cursor: default;
  pointer-events: none;
}
.is-spectator .seat:active { transform: none; }

/* ——— result share chooser / captions ——— */
.share-privacy-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted, #5c5348);
  line-height: 1.4;
}
.share-cap-lab {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1c1916);
}
.share-caption {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line, #e4d8c4);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  min-height: 88px;
  background: #fffbf4;
  color: var(--ink, #1c1916);
}
.share-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.share-platform-grid .landing-share-btn {
  flex: 1 1 calc(50% - 4px);
  min-height: 44px;
  min-width: 120px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  padding: 10px 8px;
}
.sheet-tall {
  max-height: min(92dvh, 720px);
  overflow: auto;
}
.share-platform-grid .landing-share-btn.fb { background: #1877f2; }
.share-platform-grid .landing-share-btn.threads { background: #101010; }
.share-platform-grid .landing-share-btn.ig { background: #c13584; }
.share-platform-grid .landing-share-btn:active {
  filter: brightness(0.92);
  transform: scale(0.98);
}
