*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #0a0c10;
  --bg-surface: rgba(18, 22, 30, 0.82);
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.35);
  --text-primary: #e8e6e1;
  --text-secondary: rgba(232, 230, 225, 0.55);
  --border: rgba(201, 168, 76, 0.18);
  --error: #e05a5a;
  --felt: #1a3d2e;
  --felt-edge: rgba(201, 168, 76, 0.45);
  --radius: 12px;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.hidden { display: none !important; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  height: 52px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
}

.game-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-right: auto;
}

.topbar-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}
.topbar-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Lobby */
.lobby {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 1.25rem 3rem;
}

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.lobby-head h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.create-fab {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.create-fab:hover {
  background: rgba(201, 168, 76, 0.22);
  border-color: var(--accent);
}

.table-list { display: flex; flex-direction: column; gap: 0.65rem; }

.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}
.table-row:hover { border-color: var(--accent); }

.table-row-name {
  font-weight: 500;
  letter-spacing: 0.03em;
}
.table-row-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}
.table-row-buyin {
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
}
.table-row-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: right;
}

.lock-icon {
  opacity: 0.7;
  margin-left: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.table-tour-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1508;
  background: var(--accent);
  border-radius: 4px;
  vertical-align: middle;
}
.table-row.is-tournament { border-color: rgba(201, 168, 76, 0.35); }
.tour-meta-tour { color: var(--accent); }
.tour-rem { font-variant-numeric: tabular-nums; }

.lobby-empty {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
  letter-spacing: 0.04em;
}

.banner-error, .form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
}

.modal {
  position: relative;
  width: min(420px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  backdrop-filter: blur(16px);
}
.modal-sm { width: min(340px, 100%); }

/* Create-table: capped height; fields scroll when options expand. */
.modal-create {
  max-height: min(85vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 1rem;
}
.modal-create h2 {
  flex-shrink: 0;
  margin-bottom: 0.75rem;
}
.form-create {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}
.form-create-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 0.35rem;
  margin-right: -0.15rem;
  scrollbar-gutter: stable;
}
.form-create-footer {
  flex-shrink: 0;
  padding-top: 0.75rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
}
.form-create-footer .submit-btn {
  margin-top: 0;
  width: 100%;
}

.modal h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.modal-close {
  position: absolute;
  top: 0.6rem; right: 0.75rem;
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.form label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.seg-opts {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.seg-opt {
  flex: 1;
  min-height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.seg-opt.is-on {
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.14);
}

.form input, .form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
}
.check-row input { width: auto; margin: 0; }
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.slider-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.slider-line input[type="range"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent);
}
#cf-unknown-p-val {
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  color: var(--accent);
  font-weight: 600;
}
.hint { font-size: 0.78rem; color: var(--text-secondary); margin: -0.4rem 0 0.75rem; }
.entry-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }

.submit-btn, .ghost-btn, .danger-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: #1a1508;
  font-weight: 600;
  margin-top: 0.5rem;
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.danger-btn {
  background: rgba(224, 90, 90, 0.15);
  border: 1px solid rgba(224, 90, 90, 0.4);
  color: var(--error);
}
.modal-actions { display: flex; gap: 0.6rem; }
.modal-actions.col { flex-direction: column; }
.modal-actions .submit-btn { width: auto; margin: 0; flex: 1; }
.modal-actions .ghost-btn, .modal-actions .danger-btn { flex: 1; }

/* Room / table */
.room {
  position: relative;
  min-height: 100vh;
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.room-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.room-frame {
  position: relative;
  container-type: size;
  container-name: th-frame;
  width: var(--rf-w, 100%);
  height: var(--rf-h, calc(100vh - 56px));
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-deep);
}

.room-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.2rem 1rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  min-height: 0;
}
.room-meta:not(:has(:not(.hidden))) {
  display: none;
  padding: 0;
}

.tour-spec-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
}

.felt-center {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  z-index: 4;
  pointer-events: none;
  max-width: min(92%, 540px);
  width: max-content;
}
.pot-live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: clamp(0.64rem, 0.95vw, 0.8rem);
  color: var(--accent);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  letter-spacing: 0.04em;
  line-height: 1.15;
  max-height: 1.25em;
  overflow: hidden;
}
.pot-live:empty { display: none; }
.pot-live-line { opacity: 0.95; }

.tour-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0;
  font-size: 0.52rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  order: -1;
}
.tour-hud.hidden { display: none !important; }

.board {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  gap: clamp(4px, 0.7vw, 10px);
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}

.pot-rail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-width: min(320px, 78vw);
  width: 100%;
  margin-top: 0.1rem;
  padding: 0.32rem 0.55rem;
  border: 1px dashed rgba(232, 210, 150, 0.38);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}
.pot-rail-meta {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  max-width: 46%;
  min-width: 0;
  text-align: left;
}
.table-name-line {
  font-size: clamp(0.6rem, 0.85vw, 0.72rem);
  color: rgba(255, 248, 220, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5em;
}
.pot-rail-sep {
  color: rgba(255, 248, 220, 0.45);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.table-blinds-line {
  font-size: clamp(0.6rem, 0.85vw, 0.72rem);
  color: rgba(255, 248, 220, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.pot-stacks {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 28px;
  min-width: 28px;
  flex: 1;
  flex-wrap: wrap;
}

.tour-badge {
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #1a1508;
  background: var(--accent);
  border-radius: 3px;
  padding: 0.1rem 0.32rem;
}
.tour-timer-bar {
  width: min(112px, 20.8vw);
  height: 2.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.tour-timer-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.2s linear;
}
#tour-timer-text {
  font-variant-numeric: tabular-nums;
  min-width: 2.1rem;
  color: var(--text-primary);
  font-size: 0.54rem;
}

.room.is-spectator .empty-seat {
  pointer-events: none;
  opacity: 0.35;
  cursor: default;
}
.room.is-spectator .empty-seat:hover { opacity: 0.35; }
.room.is-tournament .empty-seat {
  pointer-events: none;
  opacity: 0.4;
  cursor: default;
}
.room.is-tournament .empty-seat:hover { opacity: 0.4; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  padding: 1.25rem;
}
.results-panel {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.15rem;
  backdrop-filter: blur(16px);
}
.results-panel h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-align: center;
}
.results-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.results-panel th,
.results-panel td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
  white-space: nowrap;
}
.results-panel th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.results-panel td:nth-child(3),
.results-panel td:nth-child(4),
.results-panel td:nth-child(5) {
  font-variant-numeric: tabular-nums;
}
.results-panel .submit-btn { margin-top: 0.25rem; }

@media (max-width: 700px) {
  .results-panel {
    padding: 1.1rem 0.75rem 1rem;
  }
  .results-panel table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tour-hud {
    flex-wrap: wrap;
    gap: 0.3rem 0.45rem;
  }
}

.table-stage {
  position: relative;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}


.felt {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16%;
  bottom: 18%;
  background: linear-gradient(160deg, #234d3a 0%, var(--felt) 45%, #143024 100%);
  border: 3px solid var(--felt-edge);
  /* horizontal stadium: semicircles left/right + flat top/bottom */
  border-radius: 999px / 55%;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.35),
    0 8px 32px rgba(0,0,0,0.45);
}

.board-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vw, 10px);
  flex-shrink: 0;
}
.deck-stack {
  position: relative;
  left: auto;
  top: auto;
  flex-shrink: 0;
  width: clamp(52px, 5.5vw, 84px);
  height: clamp(74px, 7.9vw, 120px);
  background: var(--th-card-back) center/cover no-repeat;
  border-radius: 5px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.25), 4px 4px 0 rgba(0,0,0,0.15);
  opacity: 0.92;
}

.board-card {
  width: clamp(52px, 5.5vw, 84px);
  height: clamp(74px, 7.9vw, 120px);
  border-radius: 5px;
  background: rgba(0,0,0,0.2);
  border: 1px dashed rgba(255,255,255,0.12);
  object-fit: cover;
  transition: transform 0.35s ease;
}
.board-card.filled {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.board-card.win-lift {
  transform: translateY(-8px);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.55);
}

.pot-stack-chip {
  min-width: 30px;
  height: 30px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.32);
  border: 1px solid rgba(232, 210, 150, 0.55);
  color: rgba(255, 248, 220, 0.96);
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pot-stack-chip.is-awarding {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
.pot-stack-chip.is-gone {
  display: none;
}

.pot-flyer {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  transform: translate(-50%, -50%);
  min-width: 42px;
  height: 42px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.92);
  color: #1a1508;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition:
    left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.22s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pot-flyer.pot-flyer-fly {
  transform: translate(-50%, -50%) scale(0.9);
}
.pot-flyer.pot-flyer-gone {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
}

.seats { position: absolute; inset: 0; pointer-events: none; }

.seat {
  position: absolute;
  width: clamp(96px, 10vw, 130px);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  text-align: center;
  z-index: 2;
  overflow: visible;
}
.seat.empty-seat {
  opacity: 0.55;
  cursor: pointer;
}
.seat.empty-seat:hover { opacity: 0.9; }
.seat.empty-slot {
  width: clamp(64px, 7vw, 84px);
  height: clamp(64px, 7vw, 84px);
  margin: 0 auto;
  border: 1px dashed var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.seat-cards {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: clamp(36px, 4.2vw, 52px);
  margin-bottom: -14px;
  pointer-events: none;
}
.seat-card {
  position: relative;
  z-index: 1;
  width: clamp(38px, 4vw, 56px);
  height: clamp(54px, 5.7vw, 80px);
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.45);
  margin-left: -14px;
}
.seat-card:first-child {
  margin-left: 0;
}
/* Second hole card always paints above the first (even if only the first is win-lifted). */
.seat-card:nth-child(2) {
  z-index: 2;
}
.seat-card.faded { opacity: 0.35; }
.seat-card.glow {
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.7);
  outline: 1px solid var(--accent);
}
.seat-card.win-lift {
  transform: translateY(-10px);
  transition: transform 0.35s ease;
}
.seat-folded-label {
  width: 100%;
  text-align: center;
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(160, 160, 168, 0.85);
  align-self: center;
  padding-bottom: 0.15rem;
}
.seat-info {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: rgba(10, 12, 16, 0.88);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
  backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.seat.folded .seat-info {
  opacity: 0.5;
}
.seat.me .seat-info { border-color: var(--accent); }
.seat.active .seat-info {
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(201, 168, 76, 0.25);
}
.seat.winner .seat-info {
  border-color: #e6c76a;
  box-shadow: 0 0 16px rgba(201, 168, 76, 0.4);
}
.seat.award-glow .seat-info {
  border-color: #f0d78a;
  box-shadow: 0 0 0 2px rgba(240, 215, 138, 0.55), 0 0 22px rgba(201, 168, 76, 0.55);
  opacity: 1;
}

.seat-name {
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-chips {
  font-size: 0.68rem;
  color: var(--accent);
}
.seat-underwater {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: #e07a6a;
  opacity: 0.95;
}
.dealer-btn,
.blind-btn {
  position: absolute;
  /* Desktop: 2× the compact mobile size */
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  letter-spacing: -0.02em;
  z-index: 6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
/* Keep role badges on the outer / info-card corners, away from felt chips */
.dealer-btn {
  top: auto;
  bottom: -10px;
  right: -10px;
  left: auto;
  background: rgba(232, 230, 225, 0.92);
  color: #1a1508;
  font-size: 0.8rem;
}
.blind-btn.sb-btn {
  top: auto;
  bottom: -10px;
  left: -10px;
  right: auto;
  background: rgba(90, 140, 200, 0.92);
  color: #f4f7fb;
}
.blind-btn.bb-btn {
  top: auto;
  bottom: -10px;
  left: -10px;
  right: auto;
  background: rgba(200, 90, 70, 0.92);
  color: #fff8f0;
}
.seat-badge {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  color: var(--text-primary);
  display: inline-block;
  max-width: 100%;
  opacity: 0.9;
}
.seat-badge.allin {
  color: #ffb347;
  border: 1px solid rgba(255, 179, 71, 0.4);
}

/* Felt marker: sit on the cloth toward table center (px offsets beat %-of-self transforms) */
.seat-street-chip {
  position: absolute;
  left: 50%;
  top: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.28);
  border: 1px solid rgba(232, 210, 150, 0.5);
  color: rgba(255, 248, 220, 0.95);
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  white-space: nowrap;
}
.seat-street-chip.kind-check,
.seat-street-chip.kind-fold {
  background: rgba(20, 24, 32, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(232, 230, 225, 0.92);
  font-size: 0.52rem;
  letter-spacing: 0.02em;
}
.seat-street-chip.kind-fold {
  border-color: rgba(224, 120, 120, 0.45);
  color: #e8a0a0;
}
.seat-street-chip.kind-allin {
  border-color: rgba(255, 179, 71, 0.55);
  color: #ffb347;
}
.seat-street-chip.kind-win {
  min-width: auto;
  padding: 0 0.4rem;
  font-size: 0.52rem;
}
/* Felt markers: toward table center (~+1 diameter vs prior) */
/* @@RP:desktop:spectating:chips */
.seat[data-pos="0"] .seat-street-chip { left: 50%; top: -70px; transform: translateX(-50%); }
.seat[data-pos="1"] .seat-street-chip { left: calc(50% + 30px); top: -73px; transform: translateX(-50%); }
.seat[data-pos="2"] .seat-street-chip { left: calc(50% + 96px); top: 45px; transform: translateX(-50%); }
.seat[data-pos="3"] .seat-street-chip { left: calc(50% + 96px); top: 47px; transform: translateX(-50%); }
.seat[data-pos="4"] .seat-street-chip { left: calc(50% + 33px); top: 100px; transform: translateX(-50%); }
.seat[data-pos="5"] .seat-street-chip { left: 50%; top: 93px; transform: translateX(-50%); }
.seat[data-pos="6"] .seat-street-chip { left: calc(50% - 33px); top: 100px; transform: translateX(-50%); }
.seat[data-pos="7"] .seat-street-chip { left: calc(50% - 96px); top: 47px; transform: translateX(-50%); }
.seat[data-pos="8"] .seat-street-chip { left: calc(50% - 96px); top: 45px; transform: translateX(-50%); }
.seat[data-pos="9"] .seat-street-chip { left: calc(50% - 30px); top: -73px; transform: translateX(-50%); }
/* @@/RP:desktop:spectating:chips */
/* @@RP:desktop:operating:chips */
.room.has-actions .seat[data-pos="0"] .seat-street-chip { left: 50%; top: -71px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="1"] .seat-street-chip { left: calc(50% + 3px); top: -71px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="2"] .seat-street-chip { left: calc(50% + 92px); top: 44px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="3"] .seat-street-chip { left: calc(50% + 88px); top: 47px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="4"] .seat-street-chip { left: calc(50% + 3px); top: 90px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="5"] .seat-street-chip { left: 50%; top: 94px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="6"] .seat-street-chip { left: calc(50% - 3px); top: 90px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="7"] .seat-street-chip { left: calc(50% - 88px); top: 47px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="8"] .seat-street-chip { left: calc(50% - 92px); top: 44px; transform: translateX(-50%); }
.room.has-actions .seat[data-pos="9"] .seat-street-chip { left: calc(50% - 3px); top: -71px; transform: translateX(-50%); }
/* @@/RP:desktop:operating:chips */
.seat-timer {
  height: 3px;
  margin-top: 0.3rem;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.seat-timer-fill {
  height: 100%;
  background: var(--accent);
  width: 100%;
  transform-origin: left;
}

.show-panel {
  position: absolute;
  right: 16px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.room.has-actions .show-panel {
  bottom: 130px;
}
.show-panel.hidden { display: none !important; }
.show-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.show-split-btn {
  position: relative;
  width: 118px;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.show-half {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1a1508;
  border: none;
  cursor: pointer;
  padding: 0 8px;
  box-sizing: border-box;
  transition: filter 0.15s ease, opacity 0.15s ease;
  background: var(--accent);
  z-index: 1;
}
.show-half-a {
  left: 0;
  right: auto;
}
.show-half-b {
  left: 50%;
  right: auto;
}
.show-half:hover { filter: brightness(1.08); }
.show-half.is-shown {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}
/* Vertical black divider between the two show halves */
.show-split-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #000;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.host-start {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 50;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(10px);
}
.host-start p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.host-start .submit-btn { width: auto; min-width: 120px; margin: 0; }

.action-bar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 60;
  flex-shrink: 0;
  width: 100%;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(10, 12, 16, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.timer-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.2s linear;
}
#my-timer-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 2.2rem;
}

.action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.act-btn {
  border: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.08);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  min-width: 64px;
}
.act-btn:hover { border-color: var(--accent); color: var(--accent); }
.act-btn.fold { border-color: rgba(224,90,90,0.35); color: #e88; }
.act-btn.raise { background: rgba(201, 168, 76, 0.18); }

.raise-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  margin: 0.5rem auto 0;
}
.raise-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.raise-panel input[type="number"] {
  width: 88px;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  color: var(--text-primary);
}
.raise-panel input[type="number"].invalid {
  border-color: #e05a5a;
  box-shadow: 0 0 0 1px rgba(224, 90, 90, 0.35);
  color: #f2a0a0;
}
.raise-panel input[type="range"] {
  flex: 1;
  min-width: 120px;
  max-width: 240px;
}
.raise-presets {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.raise-preset {
  font-family: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.raise-preset:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.raise-panel .submit-btn {
  width: auto;
  margin: 0;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* Seat positions — horizontal stadium, symmetric 3-3-2-2 (bottom/top/left/right) */
/* @@RP:desktop:spectating:seats */
.seat[data-pos="0"] { left: 50%; top: 88%; }
.seat[data-pos="1"] { left: 27.8%; top: 84%; }
.seat[data-pos="2"] { left: 11%; top: 58%; }
.seat[data-pos="3"] { left: 11%; top: 30%; }
.seat[data-pos="4"] { left: 28%; top: 14.5%; }
.seat[data-pos="5"] { left: 50%; top: 12%; }
.seat[data-pos="6"] { left: 72%; top: 14.5%; }
.seat[data-pos="7"] { left: 89%; top: 30%; }
.seat[data-pos="8"] { left: 89%; top: 58%; }
.seat[data-pos="9"] { left: 72.2%; top: 84%; }
/* @@/RP:desktop:spectating:seats */
/* @@RP:desktop:operating:seats */
.room.has-actions .seat[data-pos="0"] { left: 50%; top: 88%; }
.room.has-actions .seat[data-pos="1"] { left: 30%; top: 86%; }
.room.has-actions .seat[data-pos="2"] { left: 9.5%; top: 62.8%; }
.room.has-actions .seat[data-pos="3"] { left: 9.3%; top: 30.1%; }
.room.has-actions .seat[data-pos="4"] { left: 30.1%; top: 13.8%; }
.room.has-actions .seat[data-pos="5"] { left: 50%; top: 11.3%; }
.room.has-actions .seat[data-pos="6"] { left: 69.9%; top: 13.8%; }
.room.has-actions .seat[data-pos="7"] { left: 90.7%; top: 30.1%; }
.room.has-actions .seat[data-pos="8"] { left: 90.5%; top: 62.8%; }
.room.has-actions .seat[data-pos="9"] { left: 70%; top: 86%; }
/* @@/RP:desktop:operating:seats */

/* Portrait / phone: vertical stadium (container = room-frame) */
@container th-frame (max-width: 700px) {
  .room {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .table-stage {
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    max-height: none;
    transform-origin: 50% 0;
    transition: height 0.18s ease, transform 0.18s ease;
  }

  /* Almost no scale — only reserve bottom clearance for the action sheet */
  .room.has-actions .table-stage {
    transform: none;
  }
  .room.has-actions.has-raise .table-stage {
    transform: none;
  }
  .room.has-start .table-stage {
    transform: none;
  }

  .felt {
    left: 14%;
    right: 14%;
    top: 8%;
    bottom: 10%;
    border-radius: 50% / 999px;
  }

  .room.has-actions .felt {
    top: 7%;
    bottom: 11%;
  }

  .board-row {
    gap: 2px;
  }
  .deck-stack {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 10vw;
    max-width: 40px;
    height: auto;
    aspect-ratio: 280 / 400;
    background: var(--th-card-back) center/cover no-repeat;
  }

  .felt-center {
    top: 48%;
    gap: 0.18rem;
    max-width: 92%;
  }
  .pot-live { font-size: 0.62rem; }
  .pot-rail {
    min-width: min(220px, 78vw);
    padding: 0.28rem 0.45rem 0.32rem;
    gap: 0.2rem;
  }
  .table-blinds-line { font-size: 0.58rem; }
  .pot-stack-chip {
    min-width: 26px;
    height: 26px;
    font-size: 0.55rem;
  }

  .board {
    gap: 2px;
    flex-wrap: nowrap;
  }
  .board-card {
    width: 10vw;
    max-width: 40px;
    height: auto;
    aspect-ratio: 280 / 400;
  }

  .seat { width: 78px; }
  .seat-card { width: 30px; height: 43px; margin-left: -11px; }
  .seat-cards {
    height: 30px;
    margin-bottom: -12px;
  }
  .seat-name { font-size: 0.62rem; }
  .seat-chips { font-size: 0.58rem; }
  .seat.empty-slot { width: 56px; height: 56px; font-size: 0.6rem; }
  .seat-street-chip {
    min-width: 24px;
    height: 24px;
    font-size: 0.5rem;
    z-index: 5;
  }
  .dealer-btn,
  .blind-btn {
    width: 13px;
    height: 13px;
    font-size: 0.37rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
  .dealer-btn {
    bottom: -5px;
    right: -5px;
    font-size: 0.4rem;
  }
  .blind-btn.sb-btn,
  .blind-btn.bb-btn {
    bottom: -5px;
    left: -5px;
  }
  .pot-rail {
    min-width: min(260px, 86vw);
    gap: 0.35rem;
    padding: 0.28rem 0.4rem;
  }
  .pot-rail-meta { max-width: 42%; }
  .table-name-line { max-width: 5.5em; font-size: 0.55rem; }
  .table-blinds-line { font-size: 0.55rem; }

  /* @@RP:mobile:spectating:chips */
.seat[data-pos="0"] .seat-street-chip { left: 50%; top: -46px; transform: translateX(-50%); }
  .seat[data-pos="1"] .seat-street-chip { left: calc(50% + 49.7px); top: -18px; transform: translateX(-50%); }
  .seat[data-pos="2"] .seat-street-chip { left: calc(50% + 59.1px); top: 23px; transform: translateX(-50%); }
  .seat[data-pos="3"] .seat-street-chip { left: calc(50% + 57.8px); top: 25px; transform: translateX(-50%); }
  .seat[data-pos="4"] .seat-street-chip { left: calc(50% + 60px); top: 41px; transform: translateX(-50%); }
  .seat[data-pos="5"] .seat-street-chip { left: 50%; top: 59px; transform: translateX(-50%); }
  .seat[data-pos="6"] .seat-street-chip { left: calc(50% - 60px); top: 41px; transform: translateX(-50%); }
  .seat[data-pos="7"] .seat-street-chip { left: calc(50% - 57.8px); top: 25px; transform: translateX(-50%); }
  .seat[data-pos="8"] .seat-street-chip { left: calc(50% - 59.1px); top: 23px; transform: translateX(-50%); }
  .seat[data-pos="9"] .seat-street-chip { left: calc(50% - 49.7px); top: -18px; transform: translateX(-50%); }
/* @@/RP:mobile:spectating:chips */

  /* @@RP:mobile:spectating:seats */
.seat[data-pos="0"] { left: 50%; top: 93%; }
  .seat[data-pos="1"] { left: 18%; top: 84%; }
  .seat[data-pos="2"] { left: 8.7%; top: 66.1%; }
  .seat[data-pos="3"] { left: 10%; top: 30%; }
  .seat[data-pos="4"] { left: 14%; top: 13.9%; }
  .seat[data-pos="5"] { left: 50%; top: 6.8%; }
  .seat[data-pos="6"] { left: 86%; top: 13.9%; }
  .seat[data-pos="7"] { left: 90%; top: 30%; }
  .seat[data-pos="8"] { left: 91.3%; top: 66.1%; }
  .seat[data-pos="9"] { left: 82%; top: 84%; }
/* @@/RP:mobile:spectating:seats */

  /* @@RP:mobile:operating:seats */
.room.has-actions .seat[data-pos="0"] { left: 50%; top: 91%; }
  .room.has-actions .seat[data-pos="1"] { left: 23.3%; top: 84.5%; }
  .room.has-actions .seat[data-pos="2"] { left: 10%; top: 66%; }
  .room.has-actions .seat[data-pos="3"] { left: 10%; top: 30%; }
  .room.has-actions .seat[data-pos="4"] { left: 22.2%; top: 11.4%; }
  .room.has-actions .seat[data-pos="5"] { left: 50%; top: 6.7%; }
  .room.has-actions .seat[data-pos="6"] { left: 77.8%; top: 11.4%; }
  .room.has-actions .seat[data-pos="7"] { left: 90%; top: 30%; }
  .room.has-actions .seat[data-pos="8"] { left: 90%; top: 66%; }
  .room.has-actions .seat[data-pos="9"] { left: 76.7%; top: 84.5%; }
  .room.has-actions.has-raise .seat[data-pos="0"] { left: 50%; top: 91%; }
  .room.has-actions.has-raise .seat[data-pos="1"] { left: 23.3%; top: 84.5%; }
  .room.has-actions.has-raise .seat[data-pos="2"] { left: 10%; top: 66%; }
  .room.has-actions.has-raise .seat[data-pos="3"] { left: 10%; top: 30%; }
  .room.has-actions.has-raise .seat[data-pos="4"] { left: 22.2%; top: 11.4%; }
  .room.has-actions.has-raise .seat[data-pos="5"] { left: 50%; top: 6.7%; }
  .room.has-actions.has-raise .seat[data-pos="6"] { left: 77.8%; top: 11.4%; }
  .room.has-actions.has-raise .seat[data-pos="7"] { left: 90%; top: 30%; }
  .room.has-actions.has-raise .seat[data-pos="8"] { left: 90%; top: 66%; }
  .room.has-actions.has-raise .seat[data-pos="9"] { left: 76.7%; top: 84.5%; }
/* @@/RP:mobile:operating:seats */

  /* @@RP:mobile:operating:chips */
.room.has-actions .seat[data-pos="0"] .seat-street-chip { left: 50%; top: -44px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="1"] .seat-street-chip { left: calc(50% + 48.7px); top: -30px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="2"] .seat-street-chip { left: calc(50% + 59.9px); top: 15px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="3"] .seat-street-chip { left: calc(50% + 55.6px); top: 2px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="4"] .seat-street-chip { left: calc(50% + 50.3px); top: 51px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="5"] .seat-street-chip { left: 50%; top: 59px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="6"] .seat-street-chip { left: calc(50% - 50.3px); top: 51px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="7"] .seat-street-chip { left: calc(50% - 55.6px); top: 2px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="8"] .seat-street-chip { left: calc(50% - 59.9px); top: 15px; transform: translateX(-50%); }
  .room.has-actions .seat[data-pos="9"] .seat-street-chip { left: calc(50% - 48.7px); top: -30px; transform: translateX(-50%); }
/* @@/RP:mobile:operating:chips */

  .act-btn {
    padding: 0.38rem 0.55rem;
    font-size: 0.72rem;
    min-width: 52px;
  }
  .host-start { bottom: 108px; padding: 0.65rem 1rem; }

  .action-bar {
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom));
  }
  .raise-panel {
    margin-top: 0.35rem;
    gap: 0.3rem;
  }
}

/* Soft top toast stack (action errors + collection awards) */
.toast-stack {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
  width: min(92vw, 420px);
}
.table-toast,
.toast-item {
  position: relative;
  left: auto;
  top: auto;
  transform: translateY(-8px);
  max-width: 100%;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: rgba(18, 22, 30, 0.55);
  border: 1px solid rgba(201, 168, 76, 0.28);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0.75;
}
.table-toast.is-error,
.toast-item.is-error {
  border-color: rgba(224, 90, 90, 0.4);
  color: #f0c8c4;
}
.table-toast.is-ok,
.toast-item.is-ok,
.toast-item.is-collection {
  color: #e8eef8;
}
.table-toast.is-in,
.toast-item.is-in {
  transform: translateY(0);
}
.table-toast.is-out,
.toast-item.is-out {
  transform: translateY(-10px);
}
@media (max-width: 700px) {
  .toast-stack {
    top: 64px;
  }
  .table-toast,
  .toast-item {
    font-size: 0.8rem;
    padding: 0.55rem 0.95rem;
  }
}

/* Face-up collection rarity borders */
.seat-card.collection-glow-common,
.board-card.collection-glow-common {
  box-shadow: 0 0 0 2px #22c55e, 0 0 10px rgba(34, 197, 94, 0.7);
  border: none;
}
.seat-card.collection-glow-rare,
.board-card.collection-glow-rare {
  box-shadow: 0 0 0 2px #3b82f6, 0 0 10px rgba(59, 130, 246, 0.7);
  border: none;
}
.seat-card.collection-glow-epic,
.board-card.collection-glow-epic {
  box-shadow: 0 0 0 2px #a855f7, 0 0 10px rgba(168, 85, 247, 0.75);
  border: none;
}
.seat-card.collection-glow-mythic,
.board-card.collection-glow-mythic {
  box-shadow: 0 0 0 2px #ef4444, 0 0 12px rgba(239, 68, 68, 0.8);
  border: none;
}
.seat-card.collection-glow-common.win-lift,
.seat-card.collection-glow-rare.win-lift,
.seat-card.collection-glow-epic.win-lift,
.seat-card.collection-glow-mythic.win-lift,
.board-card.collection-glow-common.win-lift,
.board-card.collection-glow-rare.win-lift,
.board-card.collection-glow-epic.win-lift,
.board-card.collection-glow-mythic.win-lift {
  transform: translateY(-8px);
}

/* birthday / zh UI */
body.th-zh,
body.th-zh button,
body.th-zh input,
body.th-zh select {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
}
.topbar a.topbar-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
#cf-mode-wrap label { display: grid; gap: 0.35rem; }
#cf-mode-wrap select:disabled,
#cf-unknown:disabled,
#cf-unknown-p:disabled,
#cf-w-collection:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

