/* ==========================================================================
   德州扑克 · 客户端样式
   纯本地资源：无外链字体 / 图片 / 音频，纹理由 CSS 渐变绘制。
   ========================================================================== */

:root {
  --bg: #0a0f0d;
  --bg-soft: #121917;
  --panel: rgba(27, 35, 32, 0.92);
  --panel-2: rgba(33, 42, 39, 0.86);
  --line: rgba(212, 175, 95, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #ece6d9;
  --muted: #99a49e;
  --gold: #d9b45f;
  --gold-soft: #f0d89a;
  --gold-deep: #7a5c1c;
  --felt: #14563f;
  --felt-2: #0d3b2c;
  --felt-3: #072219;
  --wood-1: #4d2f1b;
  --wood-2: #2c1a0f;
  --wood-3: #6b452a;
  --red: #ef6a5f;
  --red-suit: #e0503f;
  --black-suit: #1b1f1d;
  --win: #ffd873;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --font: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #070a09;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 100% at 50% -10%, #16211d 0%, #0b100e 55%, #060908 100%);
}

button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================ 通用控件 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, opacity 0.18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(217, 180, 95, 0.45); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.42; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(180deg, #1f7d5b, #12513b);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(12, 76, 55, 0.45);
}
.btn-gold {
  background: linear-gradient(180deg, #e3c272, #b3893a);
  border-color: rgba(255, 247, 220, 0.35);
  color: #241a06;
  box-shadow: 0 6px 18px rgba(150, 112, 34, 0.35);
}
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-danger {
  background: linear-gradient(180deg, #8c322b, #5e1f1a);
  border-color: rgba(255, 160, 150, 0.25);
  color: #ffe0da;
}

.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(217, 180, 95, 0.4); }
.icon-btn.off { color: #7d8783; text-decoration: line-through; }

.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(8, 12, 11, 0.72);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input:focus { outline: none; border-color: rgba(217, 180, 95, 0.6); box-shadow: 0 0 0 3px rgba(217, 180, 95, 0.12); }
.input::placeholder { color: #6c7570; }
.select { padding-right: 6px; }
.select option { background: #14181a; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-inline .input { width: 88px; }
.field-label { font-size: 12px; color: var(--muted); letter-spacing: 0.4px; }

.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { accent-color: #c8a24e; width: 15px; height: 15px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.hide { display: none !important; }
.hint { font-size: 12px; color: var(--muted); }

/* 凡是靠 show()/hidden 切换显隐的元素都必须真正隐藏：
   作者样式里的 display（例如 .roomview{display:grid}、.tableview{display:flex}）
   会压过浏览器默认的 [hidden]{display:none}。只给个别元素写兜底必然会漏
   ——实测就漏掉了三个主视图容器，会让大厅/房间/牌桌同时可见、叠在一起。
   这里用 id 选择器 + !important 统一兜住 #app 内所有被标了 hidden 的元素。 */
#app [hidden] { display: none !important; }
.seat-main[hidden], .seat-tags[hidden], .seat .hole[hidden] { display: none !important; }

/* ============================ 顶栏 ============================ */

.topbar {
  flex: 0 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(20, 28, 25, 0.96), rgba(12, 17, 15, 0.92));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-mark { color: var(--gold); font-size: 19px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 1.6px; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(217, 180, 95, 0.1);
  border: 1px solid rgba(217, 180, 95, 0.28);
  letter-spacing: 0.5px;
}

.reconnect {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffd7a0;
  background: rgba(190, 120, 40, 0.16);
  border: 1px solid rgba(255, 190, 110, 0.35);
}
.spinner {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 160, 0.3);
  border-top-color: #ffd7a0;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 布局 ============================ */

.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 14px;
  padding: 14px;
}
#app[data-side="off"] .layout { grid-template-columns: minmax(0, 1fr); }
#app[data-side="off"] .side { display: none; }

.stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* ============================ 大厅 ============================ */

.lobby-card {
  margin: auto;
  width: min(470px, 100%);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  padding: 28px 30px 24px;
}
.lobby-card::-webkit-scrollbar { width: 8px; }
.lobby-card::-webkit-scrollbar-thumb { background: rgba(217, 180, 95, 0.25); border-radius: 4px; }
.lobby-title { margin: 0; font-size: 26px; letter-spacing: 1px; }
.lobby-sub { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.lobby-card .field { text-align: left; }
.lobby-actions { display: flex; }
.lobby-actions .btn { flex: 1; }
.or { position: relative; text-align: center; color: var(--muted); font-size: 12px; }
.or::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.or span { position: relative; padding: 0 12px; background: var(--panel); }
.join-row { display: flex; gap: 10px; }
.code-input {
  flex: 1; text-align: center; font-size: 20px; letter-spacing: 8px; font-weight: 700;
  text-transform: uppercase;
}
.resume-row { display: flex; gap: 10px; justify-content: center; }

/* 热门牌局（GET /api/rooms） */
.hot-rooms {
  text-align: left;
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hot-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; font-weight: 700; letter-spacing: 1px; }
.rooms-list { display: flex; flex-direction: column; gap: 7px; max-height: 168px; overflow-y: auto; }
.rooms-list::-webkit-scrollbar { width: 7px; }
.rooms-list::-webkit-scrollbar-thumb { background: rgba(217, 180, 95, 0.25); border-radius: 4px; }
.rooms-empty { font-size: 12.5px; color: var(--muted); padding: 6px 2px; }
.room-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.035);
}
.room-row .rcode {
  font-weight: 800; letter-spacing: 2px; color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.room-row .rmeta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.room-row .rname { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-row .rsub { font-size: 11px; color: var(--muted); }
.room-row .rphase { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.room-row .rphase.playing { color: #ffd7a0; border-color: rgba(255, 190, 110, 0.35); }
.room-row .rphase.waiting { color: #9be7bf; border-color: rgba(120, 220, 170, 0.35); }

/* ============================ 房间视图 ============================ */

.roomview {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
  align-content: start;
  padding-right: 2px;
}
.roomview::-webkit-scrollbar { width: 8px; }
.roomview::-webkit-scrollbar-thumb { background: rgba(217, 180, 95, 0.25); border-radius: 4px; }

.room-head { grid-column: 1 / -1; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.head-label { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.code-display {
  font-size: clamp(34px, 4.4vmin, 48px);
  font-weight: 800;
  letter-spacing: 10px;
  line-height: 1.1;
  color: var(--gold-soft);
  text-shadow: 0 3px 18px rgba(217, 180, 95, 0.28);
  font-variant-numeric: tabular-nums;
}
.head-main { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.head-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; flex: 1; }
.invite-url {
  max-width: 380px;
  font-size: 12.5px;
  color: #bfe3d3;
  background: rgba(8, 14, 12, 0.6);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  word-break: break-all;
  user-select: text;
}
.head-info { font-size: 12px; color: var(--muted); }

.room-seats { grid-column: 1 / -1; }
.room-seats-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.room-seats-head h2 { margin: 0; font-size: 15px; letter-spacing: 0.8px; }

.seats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.room-seat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.room-seat:hover { transform: translateY(-2px); border-color: rgba(217, 180, 95, 0.4); }
.room-seat.empty {
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}
.room-seat.seat-you { border-color: rgba(217, 180, 95, 0.6); box-shadow: 0 0 0 1px rgba(217, 180, 95, 0.2) inset; }
.room-seat.offline { opacity: 0.55; }
.rs-top { display: flex; align-items: center; gap: 8px; }
.rs-idx {
  width: 20px; height: 20px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-size: 11px; font-weight: 700;
  background: rgba(217, 180, 95, 0.16); color: var(--gold-soft);
}
.rs-nick { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-bot { font-size: 12px; }
.rs-stack { font-size: 13px; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.rs-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
}
.tag.ready { color: #9be7bf; border-color: rgba(120, 220, 170, 0.35); background: rgba(60, 180, 130, 0.12); }
.tag.waiting { color: #ffd7a0; border-color: rgba(255, 190, 110, 0.3); background: rgba(190, 120, 40, 0.12); }
.tag.host { color: var(--gold-soft); border-color: rgba(217, 180, 95, 0.4); }
.tag.you { color: #cfe6ff; border-color: rgba(140, 190, 255, 0.3); }
.tag.off { color: #ff9d92; border-color: rgba(255, 140, 130, 0.3); }
.tag.bot { color: #cbb6ff; border-color: rgba(180, 150, 255, 0.3); }
.rs-actions { display: flex; gap: 6px; margin-top: 2px; }
.rs-empty-text { font-size: 12.5px; }

.room-config { grid-column: 1 / -1; }
.cfg-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.cfg-row-main { margin-bottom: 0; }
.room-me { grid-column: 1 / -1; }
.me-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.me-nick { font-weight: 700; }
.me-seat { font-size: 12.5px; color: var(--muted); }

/* 在线玩家（players[]） */
.room-players { grid-column: 1 / -1; }
.players-list { display: flex; gap: 8px; flex-wrap: wrap; }
.pchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  font-size: 12.5px;
}
.pchip .ptext { font-weight: 600; }
.pchip .pdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b6f5d0, #34a86f);
  box-shadow: 0 0 7px rgba(70, 210, 140, 0.6);
}
.pchip.offline { opacity: 0.6; border-style: dashed; }
.pchip.offline .ptext { color: #9aa39e; }
.pchip.offline .pdot { background: #6d7671; box-shadow: none; }
.pchip .ptag { color: #ff9d92; font-size: 10.5px; }
.pchip .ptag.host { color: var(--gold-soft); }

/* ============================ 牌桌 ============================ */

.tableview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.table-surface {
  --rx: 30%;
  --ry: 30%;
  --seat-w: clamp(94px, 9.4vw, 118px);
  --card-w: clamp(24px, 2.35vw, 31px);
  --card-h: calc(var(--card-w) * 1.42);
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 6px auto 0;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  max-height: 100%;
}
.table-surface.small { --card-w: clamp(20px, 2vw, 26px); --seat-w: clamp(80px, 8vw, 100px); }

/* 木边 + 金色描边 */
.felt-rim {
  position: absolute;
  inset: 0;
  border-radius: 50% / 50%;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255, 226, 170, 0.05) 0deg 3deg, rgba(0, 0, 0, 0.06) 3deg 9deg),
    radial-gradient(120% 120% at 25% 12%, var(--wood-3), var(--wood-1) 42%, var(--wood-2) 100%);
  box-shadow:
    0 0 0 2px rgba(217, 180, 95, 0.42),
    0 0 0 5px rgba(0, 0, 0, 0.4),
    0 26px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.55);
}

/* 呢面 */
.felt {
  position: absolute;
  inset: 5.5%;
  border-radius: 50% / 50%;
  background:
    radial-gradient(72% 72% at 50% 22%, rgba(255, 255, 255, 0.075), transparent 62%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.017) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 0 2px, transparent 2px 4px),
    radial-gradient(112% 118% at 50% 124%, var(--felt), var(--felt-2) 52%, var(--felt-3) 100%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(217, 180, 95, 0.22);
}
.felt-line {
  position: absolute;
  inset: 8%;
  border-radius: 50% / 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.table-center {
  position: absolute;
  left: 50%; top: 47%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

/* 公共牌 */
.board { display: flex; gap: 7px; align-items: flex-end; }
.board-slot {
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.16);
  display: flex; align-items: center; justify-content: center;
}
.board-slot .pcard { width: 100%; height: 100%; }

.pot-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pot-label { font-size: 10.5px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); }
.pot-amount {
  font-size: clamp(17px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--gold-soft);
  text-shadow: 0 2px 14px rgba(217, 180, 95, 0.4);
  font-variant-numeric: tabular-nums;
}
.pot-amount.pop { animation: potPop 0.42s ease; }
@keyframes potPop {
  0% { transform: scale(1); opacity: 1; }
  45% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.side-pots {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  font-size: 11px; color: rgba(255, 255, 255, 0.62);
}
.side-pot {
  padding: 1px 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

/* 座位 */
.seat {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--seat-w);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 6px 7px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(9, 15, 13, 0.55);
  backdrop-filter: blur(2px);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease,
              opacity 0.3s ease, transform 0.45s ease;
}
.seat.empty {
  background: rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.45);
}
.seat.empty .seat-empty { font-size: 11.5px; letter-spacing: 1px; }
.seat.folded, .seat.sittingout, .seat.disconnected, .seat.busted { opacity: 0.55; }
.seat.active-turn {
  border-color: rgba(255, 226, 150, 0.85);
  background: rgba(24, 40, 32, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 214, 120, 0.28), 0 0 26px rgba(255, 205, 110, 0.45);
  animation: turnPulse 1.8s ease-in-out infinite;
}
@keyframes turnPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 214, 120, 0.22), 0 0 20px rgba(255, 205, 110, 0.32); }
  50% { box-shadow: 0 0 0 3px rgba(255, 214, 120, 0.45), 0 0 34px rgba(255, 205, 110, 0.6); }
}
.seat.winner {
  border-color: rgba(255, 216, 115, 0.95);
  background: rgba(48, 40, 12, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 216, 115, 0.5), 0 0 34px rgba(255, 200, 90, 0.75);
  animation: winPulse 1.5s ease-in-out infinite;
}
@keyframes winPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 216, 115, 0.4), 0 0 26px rgba(255, 200, 90, 0.55); }
  50% { box-shadow: 0 0 0 4px rgba(255, 226, 150, 0.7), 0 0 46px rgba(255, 205, 100, 0.85); }
}
.seat.is-you { background: rgba(20, 34, 28, 0.72); }

.seat-badges {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 4;
}
.badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.6);
  color: #e8e2d4;
  white-space: nowrap;
}
.badge.sb { background: rgba(50, 110, 200, 0.75); border-color: rgba(160, 200, 255, 0.5); }
.badge.bb { background: rgba(150, 60, 170, 0.72); border-color: rgba(230, 170, 255, 0.5); }
.badge.allin { background: linear-gradient(180deg, #d6453a, #8f2018); border-color: rgba(255, 180, 170, 0.6); }
.badge.bot { background: rgba(110, 80, 190, 0.72); }
.badge.off { background: rgba(120, 40, 34, 0.8); }
.badge.host { background: rgba(160, 120, 30, 0.8); }

.hole {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  justify-content: center;
}

.seat-main { display: flex; align-items: center; gap: 6px; }
.avatar-wrap { position: relative; width: 38px; height: 38px; flex: 0 0 auto; }
.avatar {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
  color: #f4ecd9;
  background: radial-gradient(70% 70% at 35% 25%, #4a6b5c, #22362d 70%);
  border: 1px solid rgba(217, 180, 95, 0.45);
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.45);
}
.seat.bot .avatar { background: radial-gradient(70% 70% at 35% 25%, #63508f, #2c2447 70%); }
.seat.is-you .avatar { box-shadow: 0 0 0 2px rgba(217, 180, 95, 0.55), inset 0 -3px 8px rgba(0, 0, 0, 0.45); }
.ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from -90deg, rgba(255, 214, 120, 0.95) var(--p, 100%), rgba(255, 255, 255, 0.1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.2px));
  transition: background 0.1s linear;
}
.ring[hidden] { display: none; }

.seat-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.seat-nick {
  font-size: 11.5px; font-weight: 700; line-height: 1.15;
  max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.seat-stack {
  font-size: 12px; font-weight: 700; color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.seat-stack .chip-icon { margin-right: 3px; }
.chip-icon {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9b0, #d9a83f 60%, #8c6516);
  border: 1px solid rgba(0, 0, 0, 0.3);
  vertical-align: middle;
}

.dealer {
  position: absolute;
  left: var(--dx, 50%);
  top: var(--dy, 50%);
  width: 19px; height: 19px;
  margin: -9.5px 0 0 -9.5px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #2a1f06;
  background: radial-gradient(circle at 34% 28%, #fff3cf, #e0bd6b 55%, #a8811f 100%);
  border: 1px solid rgba(255, 250, 230, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: left 0.5s cubic-bezier(0.22, 0.8, 0.3, 1.1), top 0.5s cubic-bezier(0.22, 0.8, 0.3, 1.1);
  pointer-events: none;
  z-index: 5;
}

.bubble {
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(8, 14, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffe6b8;
  white-space: nowrap;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 6;
}
.bubble[hidden] { display: none; }
.bubble.act-fold { color: #ffb3aa; border-color: rgba(255, 140, 130, 0.4); }
.bubble.act-check { color: #bfe6c9; }
.bubble.act-call { color: #ffe6b8; }
.bubble.act-bet, .bubble.act-raise { color: #ffd873; border-color: rgba(255, 216, 115, 0.45); }
.bubble.act-allin { color: #ffd0c8; border-color: rgba(255, 120, 100, 0.6); background: rgba(70, 16, 12, 0.94); }

.seat-tags {
  display: flex; gap: 4px; justify-content: center; flex-wrap: wrap;
  font-size: 10px; color: rgba(255, 255, 255, 0.6);
}
.seat-tags .tag { font-size: 9.5px; padding: 1px 5px; }

.seat-empty {
  padding: 12px 4px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1px;
}

/* 下注筹码堆（座位与桌心之间） */
.bet-chip {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(6, 12, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: #ffeec2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  transition: left 0.4s ease, top 0.4s ease, opacity 0.25s ease;
}
.bet-chip .stack {
  width: 24px; height: 7px; border-radius: 50%;
  background: linear-gradient(180deg, #ffe9b0, #c9992f);
  box-shadow: 0 -2px 0 -1px #e0b552, 0 -4px 0 -1px #b98c28, 0 -6px 0 -2px #e6c069;
  margin-top: 6px;
}
.bet-chip.none { opacity: 0; }

/* 消息 / 特效层 */
.table-msg {
  position: absolute;
  left: 50%; top: 20%;
  transform: translate(-50%, -50%);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #241a06;
  background: linear-gradient(180deg, #f4dd9f, #cda452);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.table-msg[hidden] { display: none; }

.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 15; }
.fx-chip {
  position: absolute;
  left: 0; top: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2c9, #dcaa3c 58%, #8d6617);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.fx-card {
  position: absolute;
  left: 0; top: 0;
  width: var(--card-w, 28px);
  height: var(--card-h, 40px);
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 3px, transparent 3px 6px),
    linear-gradient(160deg, #4a2733, #221019);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* ============================ 扑克牌 ============================ */
/* .pcard 是牌（.card 留给面板卡片，二者不可混用） */
.pcard {
  position: relative;
  width: var(--card-w, 28px);
  height: var(--card-h, 40px);
  border-radius: 4px;
  flex: 0 0 auto;
  font-weight: 800;
}
.pcard .face,
.pcard .back {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.pcard.flip { transform-style: preserve-3d; }
.pcard .face {
  background: linear-gradient(170deg, #fdfbf5, #e6e1d3);
  border: 1px solid rgba(0, 0, 0, 0.28);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 1px;
  transform: rotateY(0deg);
  overflow: hidden;
}
.pcard .face .rank { font-size: calc(var(--card-w, 28px) * 0.5); }
.pcard .face .suit { font-size: calc(var(--card-w, 28px) * 0.44); }
.pcard.suit-red .face { color: var(--red-suit); }
.pcard.suit-black .face { color: var(--black-suit); }
.pcard .face.small .rank { font-size: calc(var(--card-w, 28px) * 0.44); }
.pcard .face.small .suit { font-size: calc(var(--card-w, 28px) * 0.4); }

.pcard .back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.085) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 5px),
    radial-gradient(120% 120% at 30% 20%, #7d2f3c, #40151f 70%, #250b12 100%);
  border: 1px solid rgba(255, 226, 170, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 226, 170, 0.28);
}

/* 底牌对当前玩家不可见（seat.hole === null）：只露牌背 */
.pcard.back-up .face { display: none !important; }

.pcard.deal-flip { animation: dealFlip 0.42s cubic-bezier(0.3, 0.9, 0.3, 1) both; }
@keyframes dealFlip {
  from { transform: perspective(520px) rotateY(180deg) translateY(-8px) scale(0.9); }
  to { transform: perspective(520px) rotateY(0deg) translateY(0) scale(1); }
}
.pcard.pop { animation: cardPop 0.36s ease both; }
@keyframes cardPop {
  0% { transform: translateY(-8px) scale(0.86); opacity: 0.2; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.board-slot .pcard.flip:not(.pop) { animation: boardFlip 0.46s cubic-bezier(0.25, 0.9, 0.3, 1) both; }
@keyframes boardFlip {
  from { transform: perspective(600px) rotateY(180deg) scale(0.92); }
  to { transform: perspective(600px) rotateY(0deg) scale(1); }
}

/* ============================ 操作栏 ============================ */

.actionbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 39, 35, 0.95), rgba(16, 22, 20, 0.95));
  box-shadow: var(--shadow);
}
.actionbar[hidden] { display: none !important; }
.actionbar.waiting { opacity: 0.7; }

.ab-main { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ab-wait {
  color: #ffd7a0;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: waitBlink 1.2s ease-in-out infinite;
}
.ab-wait:empty { animation: none; }
@keyframes waitBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.ab-raise {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 240px;
}
.ab-raise[hidden] { display: none !important; }
.ab-raise-top { display: flex; align-items: center; gap: 9px; }
.ab-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ab-hint { color: rgba(255, 216, 115, 0.85); }
.amount-input { width: 108px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-quick { display: flex; gap: 6px; }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 180, 95, 0.85) var(--fill, 0%), rgba(255, 255, 255, 0.12) var(--fill, 0%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px; margin-top: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6da, #d9b45f 65%, #a07c26);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: rgba(217, 180, 95, 0.85); }
.range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6da, #d9b45f 65%, #a07c26);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ============================ 侧栏 / 日志 ============================ */

.side {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.side-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.logpanel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  user-select: text;
}
.logpanel::-webkit-scrollbar { width: 7px; }
.logpanel::-webkit-scrollbar-thumb { background: rgba(217, 180, 95, 0.25); border-radius: 4px; }
.logline { display: flex; gap: 7px; align-items: baseline; }
.logline .lt { flex: 0 0 auto; font-size: 10px; color: #5f6a65; font-variant-numeric: tabular-nums; }
.logline .lx { flex: 1 1 auto; word-break: break-word; }
.logline.kind-action .lx { color: #e9e3d5; }
.logline.kind-system .lx { color: #8fd6b4; }
.logline.kind-chat .lx { color: #cfe0ff; }
.logline.kind-chat-private .lx { color: #e6d4ff; }
.logline.kind-result .lx { color: var(--win); font-weight: 700; }
.logline.kind-chat-private {
  align-items: flex-start;
  border-left: 2px solid rgba(178, 132, 255, 0.75);
  border-radius: 6px;
  background: rgba(120, 80, 210, 0.13);
  padding: 4px 8px 4px 7px;
}
.logline.kind-chat-private .lt { color: #9d86c8; }
.pmtag {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #e2d0ff;
  border: 1px solid rgba(178, 132, 255, 0.6);
  background: rgba(120, 80, 210, 0.28);
}
.pmroute { color: #c3a7f5; font-weight: 700; }
.logline.enter { animation: logIn 0.28s ease both; }
@keyframes logIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.chat-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.chat-row { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; }
.chat-to { flex: 0 0 auto; width: 84px; padding: 9px 4px; font-size: 12px; }
.chat-text { flex: 1 1 auto; min-width: 0; }
.chat-send { flex: 0 0 auto; }

/* ============================ Toast ============================ */

.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 90;
  pointer-events: none;
}
.toast {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #f2ece0;
  background: rgba(20, 26, 24, 0.96);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  animation: toastIn 0.26s ease both;
}
.toast.out { animation: toastOut 0.3s ease both; }
.toast.level-warn { border-color: rgba(255, 190, 110, 0.5); color: #ffd7a0; }
.toast.level-error { border-color: rgba(255, 130, 120, 0.55); color: #ffb6ad; }
.toast.level-success { border-color: rgba(120, 220, 170, 0.5); color: #a9e9c6; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px) scale(0.97); } }

/* ============================ 响应式 ============================ */

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 296px; }
  .seats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  #app[data-side="on"] .side {
    display: flex;
    position: absolute;
    right: 12px; top: 60px; bottom: 12px;
    width: 290px;
    z-index: 40;
  }
  .seats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-surface { --seat-w: clamp(74px, 11vw, 96px); --card-w: clamp(18px, 2.2vw, 24px); }
}
@media (max-height: 660px) {
  .table-surface { --card-w: clamp(19px, 1.9vw, 24px); --seat-w: clamp(78px, 8vw, 96px); }
  .topbar { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   视觉增强（按使用反馈：牌桌更鲜亮 / 扑克牌放大 / 下注按钮放大 /
   行动栏永不隐藏——非自己回合暗色、自己回合亮起）
   放在文件最后，利用"同权重后者胜出"覆盖上面的规则，避免改动原有结构。
   ========================================================================== */

/* ---- 1. 更鲜亮的牌桌与背景 ---- */
:root {
  --felt: #1d8a64;
  --felt-2: #12664a;
  --felt-3: #0a3d2c;
  --wood-1: #6d4526;
  --wood-2: #3f2614;
  --wood-3: #96683e;
  --bg: #0e1a16;
  --bg-soft: #17261f;
}
body {
  background:
    radial-gradient(120% 80% at 50% -10%, #16281f 0%, #0b1511 55%, #070d0b 100%);
}
.felt {
  background:
    radial-gradient(62% 62% at 50% 18%, rgba(255, 255, 255, 0.17), transparent 66%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.04) 0 2px, transparent 2px 4px),
    radial-gradient(112% 118% at 50% 124%, var(--felt), var(--felt-2) 52%, var(--felt-3) 100%);
  box-shadow:
    inset 0 0 58px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(217, 180, 95, 0.34);
}
.felt-rim {
  box-shadow:
    0 0 0 3px rgba(240, 216, 154, 0.55),
    0 0 0 7px rgba(0, 0, 0, 0.34),
    0 26px 60px rgba(0, 0, 0, 0.55),
    inset 0 0 34px rgba(0, 0, 0, 0.38);
}
.felt-line { border-color: rgba(255, 255, 255, 0.15); }

/* ---- 2. 扑克牌放大（公共牌与底牌共用 --card-w，一起变大） ---- */
.table-surface { --card-w: clamp(30px, 3vw, 42px); --seat-w: clamp(104px, 9.5vw, 130px); }
.table-surface.small { --card-w: clamp(22px, 2.2vw, 30px); }
.board { gap: 10px; }
.board-slot { border-radius: 6px; }

/* ---- 3+4. 行动栏：放大 + 永不隐藏 + 暗/亮两态 ---- */
.actionbar {
  gap: 18px;
  padding: 14px 18px;
  transition: opacity .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.actionbar .btn {
  padding: 15px 26px;
  font-size: 17px;
  font-weight: 700;
  min-width: 104px;
  border-radius: 14px;
}
.actionbar .ab-quick .btn { padding: 9px 15px; font-size: 14px; min-width: 0; font-weight: 600; }
.actionbar .amount-input { width: 136px; font-size: 19px; padding: 10px 12px; }
.actionbar .ab-label, .actionbar .ab-hint { font-size: 14px; }
.actionbar .range { height: 26px; }
.actionbar .range::-webkit-slider-runnable-track { height: 9px; }
.actionbar .range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -7.5px; }
.actionbar .range::-moz-range-track, .actionbar .range::-moz-range-progress { height: 9px; }
.actionbar .range::-moz-range-thumb { width: 22px; height: 22px; }
/* 禁用态别压得太黑：整条已经暗过一次了，按钮还要看得清 */
.actionbar .btn:disabled { opacity: 0.62; }

/* 非自己回合：整条压暗 + 去饱和（按钮由 JS 置 disabled，点不动） */
.actionbar.idle { opacity: 0.52; filter: grayscale(0.4) brightness(0.88); }
.actionbar.idle .btn { cursor: default; }
/* 自己回合：亮起——金色描边 + 光晕 */
.actionbar:not(.idle) {
  border-color: rgba(240, 216, 154, 0.55);
  box-shadow:
    0 0 0 1px rgba(240, 216, 154, 0.25),
    0 0 34px rgba(217, 180, 95, 0.22),
    var(--shadow);
}
.actionbar.waiting { opacity: 0.8; }

/* 小屏 / 矮屏：牌别太大，否则座位会挤在一起 */
@media (max-width: 900px) {
  .table-surface { --card-w: clamp(24px, 2.6vw, 32px); --seat-w: clamp(88px, 11vw, 108px); }
}
@media (max-height: 660px) {
  .table-surface { --card-w: clamp(24px, 2.4vw, 32px); --seat-w: clamp(88px, 8.5vw, 106px); }
}

/* ==========================================================================
   手机端自适应（含竖屏引导）
   ========================================================================== */

/* 触屏优化：去掉点按延迟与高亮块；刘海屏留出安全边距 */
button, .btn, input, select, textarea { touch-action: manipulation; }
button, .btn { -webkit-tap-highlight-color: transparent; }

@media (max-width: 900px) {
  .topbar { padding: 6px 8px; gap: 6px; height: auto; min-height: 46px; }
  .topbar .pill { font-size: 12px; padding: 2px 8px; }
  .brand-name { font-size: 15px; }
  .wrap, .layout, .stage { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .layout { padding-bottom: env(safe-area-inset-bottom); }
}

/* 竖屏引导页：只在"竖屏 + 窄屏（手机）"时出现 */
.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 14, 11, 0.95);
}
@media (orientation: portrait) and (max-width: 900px) {
  .rotate-hint { display: flex; }
  body.rotate-skip .rotate-hint { display: none; }
}
.rotate-card { text-align: center; max-width: 340px; }
.rotate-phone {
  display: inline-block;
  font-size: 54px;
  line-height: 1;
  animation: rotateHintAnim 2s ease-in-out infinite;
}
@keyframes rotateHintAnim {
  0%, 30% { transform: rotate(0deg); }
  55%, 100% { transform: rotate(90deg); }
}
.rotate-card h2 { font-size: 19px; margin: 12px 0 6px; color: var(--gold); }
.rotate-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.rotate-actions { display: flex; flex-direction: column; gap: 9px; }
.rotate-actions .btn { width: 100%; padding: 13px 18px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .rotate-phone { animation: none; }
}
