/* 联机版补充样式：只放 app.css 里没有的部分 */

.txt-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--txt-1);
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .16s, background .16s;
}
.txt-input:focus {
  border-color: rgba(216,177,104,.55);
  background: rgba(255,255,255,.06);
}
.txt-input::placeholder { color: var(--txt-3); }

/* 连接状态点 */
.conn-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6d807a;
  display: inline-block;
  margin-right: 4px;
  transition: background .2s;
}
.conn-dot.open { background: #4ee0a4; box-shadow: 0 0 8px rgba(78,224,164,.6); }
.conn-dot.connecting,
.conn-dot.reconnecting {
  background: #e8b45c;
  animation: blink 1s infinite;
}
.conn-dot.closed,
.conn-dot.error { background: #e2564f; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* 其他人的牌背（联机版不显示真人手牌） */
.card.back.online {
  background: linear-gradient(135deg, #24352f, #172420);
  border-color: rgba(255,255,255,.12);
}

/* 座位上的"真人"标记 */
.seat-human-tag {
  position: absolute;
  top: -4px; right: -6px;
  font-size: 8.5px;
  letter-spacing: .5px;
  padding: 1.5px 5px;
  border-radius: 4px;
  background: rgba(216,177,104,.92);
  color: #241704;
  font-weight: 600;
}

/* 等待其他玩家 */
.wait-note {
  position: absolute;
  left: 50%; bottom: 10%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--txt-2);
  background: rgba(10,15,13,.85);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 20px;
  z-index: 15;
}

/* 邀请面板 */
.invite-box {
  display: flex; gap: 8px; align-items: center;
  margin-top: 8px;
}
.invite-code {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(216,177,104,.08);
  border: 1px solid rgba(216,177,104,.28);
  padding: 7px 14px;
  border-radius: 8px;
  user-select: all;
}


/* 空着的真人位：淡化 + 虚线，让人一眼看出"还能坐人" */
.seat.seat-empty {
  opacity: .45;
}
.seat.seat-empty .avatar {
  border-style: dashed !important;
  border-color: rgba(216, 177, 104, .45) !important;
  background: rgba(216, 177, 104, .06) !important;
  color: rgba(216, 177, 104, .7) !important;
}
.seat.seat-empty .seat-name {
  color: rgba(216, 177, 104, .75);
  font-size: 10.5px;
  letter-spacing: .3px;
}

/* =========================================================
   底部交互区放大

   原状态（1600×1000 实测）：
     console 高 162px，内容区 max-width 只有 1080px
     屏幕 1584 宽，两侧各浪费 252px；按钮 281×46，手牌 78×108

   做法：先把水平空间用起来（不增高），再按屏幕高度分三档加高。
   硬约束：任何屏幕下按钮和手牌都不小于原尺寸。
   ========================================================= */

/* ---------- 大档（视口高 ≥ 860）---------- */
.console-inner {
  max-width: 1360px;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}
.hero-cards .card.hero {
  width: 92px; height: 128px;
  border-radius: 9px;
  padding: 7px 8px;
  /* hero-hand 是 flex column，容器矮时会压扁卡片 —— 必须禁止收缩 */
  flex: 0 0 auto;
}
.hero-cards .card.hero .r { font-size: 30px; }
.hero-cards .card.hero .big { font-size: 42px; right: 8px; bottom: 4px; }
.hero-hand { gap: 8px; }
.hero-cards { flex: 0 0 auto; }
.hero-hand-label { font-size: 10.5px; }
.hero-meta { font-size: 12.5px; }

.act-btn { height: 58px; font-size: 16px; border-radius: 12px; }
.act-btn small { font-size: 10.5px; }
.act-btn .hint-key { font-size: 9.5px; }

.sizing { gap: 10px; }
.sizing-label { font-size: 11px; }
.sizing-val { font-size: 14px; min-width: 68px; }
input[type=range] { height: 6px; }
input[type=range]::-webkit-slider-thumb { width: 18px; height: 18px; }
.chips-row { gap: 7px; }
.chip-btn { padding: 5px 12px; font-size: 12px; border-radius: 7px; }
.actions { gap: 12px; }
.console { padding: 13px 24px 15px; }

/* ---------- 中档（760 ≤ 视口高 < 860）----------
   典型 1440×900 / 1280×800：比原尺寸大，又不挤掉牌桌 */
@media (max-height: 859px) {
  .console { padding: 10px 20px 11px; }
  .console-inner { max-width: 1300px; grid-template-columns: 220px 1fr; gap: 24px; }
  .hero-cards .card.hero { width: 82px; height: 114px; padding: 6px 7px; flex: 0 0 auto; }
  .hero-cards .card.hero .r { font-size: 26px; }
  .hero-cards .card.hero .big { font-size: 37px; right: 7px; bottom: 3px; }
  .hero-hand { gap: 6px; }
  .hero-meta { font-size: 12px; }
  .actions { gap: 10px; }
  .act-btn { height: 50px; font-size: 15px; }
  .act-btn small { font-size: 10px; }
  .sizing-val { font-size: 13px; min-width: 62px; }
  .chip-btn { padding: 4px 10px; font-size: 11.5px; }
}

/* ---------- 小档（视口高 < 760）----------
   典型 1366×768：纵向空间最紧，但按钮仍要不小于原来的 46 */
@media (max-height: 759px) {
  .console { padding: 8px 16px 9px; }
  .console-inner { max-width: 1240px; grid-template-columns: 190px 1fr; gap: 18px; }
  .hero-cards .card.hero { width: 72px; height: 100px; padding: 5px 6px; flex: 0 0 auto; }
  .hero-cards .card.hero .r { font-size: 23px; }
  .hero-cards .card.hero .big { font-size: 31px; right: 6px; bottom: 3px; }
  .hero-hand { gap: 4px; }
  .hero-hand-label { font-size: 9.5px; }
  .hero-meta { font-size: 11px; }
  .actions { gap: 8px; }
  .act-btn { height: 48px; font-size: 14px; }
  .act-btn small { font-size: 9.5px; }
  .sizing { gap: 7px; }
  .sizing-label { font-size: 10px; }
  .sizing-val { font-size: 12px; min-width: 58px; }
  .chip-btn { padding: 3px 8px; font-size: 10.5px; }
  #app { grid-template-rows: 50px 1fr auto; }
}

/* =========================================================
   位置 / 盲注标注
   线下牌桌一眼能看出谁是小盲大盲 —— 线上必须给同样清晰的信号
   ========================================================= */

/* 名字那一行：徽章 + 名字横排，不会压住头像 */
.seat-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 120px;
}

/* 位置徽章：inline，不绝对定位 */
.pos-badge {
  flex: 0 0 auto;
  height: 15px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  /* 非盲注位置：淡色描边，不抢视线 */
  background: rgba(8, 12, 11, .8);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .55);
  font-family: var(--mono);
}

/* 盲注：金色实心 + 微光，第一眼必须看到 */
.pos-badge.blind {
  background: linear-gradient(180deg, #f7e2b4, #c9a25a);
  border: 1px solid rgba(255, 236, 200, .95);
  color: #23180a;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 9px rgba(216, 177, 104, .5);
}

/* 盲注座位的头像：金色粗边，远距离也能认出 */
.avatar.avatar-blind {
  border: 2px solid rgba(216, 177, 104, .85);
  box-shadow:
    0 0 0 3px rgba(216, 177, 104, .13),
    0 4px 14px rgba(0, 0, 0, .5);
}

/* 庄家按钮（D）—— 之前完全没有样式，一直是无样式的裸文本 */
.dealer-chip {
  position: absolute;
  /* 头像宽 46px、左侧为 0，徽章要完全在头像外侧 */
  left: -22px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--mono);
  background: linear-gradient(180deg, #ffffff, #d5dade);
  color: #1a1f22;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(0, 0, 0, .14);
  z-index: 3;
  pointer-events: none;
}

/* 盲注已下的筹码：金框强调 + 前缀文字（"小盲 50"） */
.bet-chips.blind-bet {
  border-color: rgba(216, 177, 104, .65);
  background: rgba(216, 177, 104, .14);
  color: var(--gold-2);
  font-weight: 600;
}

