/* 掼蛋 · 手机竖屏样式（兼容老安卓内核：不用 inset / flex gap / min() 裸写） */
:root{
  color-scheme: only light;
  --cw:46px; --ch:64px; --mw:26px; --mh:36px;
  --gold:#ffd166; --cyan:#7dd3fc; --green:#3ddc97; --red:#ff6b6b;
  --glass:rgba(255,255,255,.07); --glass-b:rgba(255,255,255,.12); --ink:#e9f0fa;
}
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ height:100%; margin:0; overflow:hidden; }
body{
  background:radial-gradient(120% 80% at 50% 0%, #14263d 0%, #0b1424 45%, #05090f 100%);
  color:var(--ink);
  font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;
  font-size:14px; -webkit-user-select:none; user-select:none;
}
button{ font-family:inherit; color:inherit; border:0; background:none; cursor:pointer; }
#app{
  position:fixed; top:0; left:0; right:0; bottom:0; display:flex; flex-direction:column;
  background:radial-gradient(90% 60% at 50% 40%, rgba(31,84,86,.35), transparent 70%);
}

/* ---------------- 顶栏 ---------------- */
.topbar{ display:flex; align-items:center; padding:8px 10px 4px; position:relative; z-index:5; }
.topbar > * + *{ margin-left:6px; }
.level-chip{
  display:flex; align-items:center; padding:5px 9px; border-radius:999px;
  background:var(--glass); border:1px solid var(--glass-b); font-size:12px; white-space:nowrap;
}
.level-chip > * + *{ margin-left:4px; }
.level-chip b{ font-weight:800; font-size:14px; }
.level-chip.mine{ border-color:rgba(255,209,102,.5); color:var(--gold); }
.level-chip.oippo{ border-color:rgba(125,211,252,.45); color:var(--cyan); }
.level-chip.cur b{ color:#fff; }
.topbtns{ display:flex; margin-left:auto; }
.topbtns > * + *{ margin-left:6px; }
.icon-btn{
  width:30px; height:30px; border-radius:10px; background:var(--glass); border:1px solid var(--glass-b);
  font-size:13px; display:flex; align-items:center; justify-content:center;
}
.icon-btn:active{ transform:scale(.94); }

/* ---------------- 牌桌 ---------------- */
.table{ position:relative; flex:1; min-height:0; margin:2px 8px 0; }
.felt{
  position:absolute; left:50%; top:48%; margin-left:-165px; margin-top:-186px;
  width:330px; height:372px; width:min(80vw,330px); height:min(44vh,372px);
  border-radius:50%;
  background:radial-gradient(closest-side, rgba(23,84,78,.55), rgba(11,40,44,.25) 70%, transparent);
  border:1px solid rgba(255,255,255,.07); box-shadow:inset 0 0 60px rgba(0,0,0,.45);
}
.seat{ position:absolute; display:flex; flex-direction:column; align-items:center; z-index:2; }
.seat > * + *{ margin-top:4px; }
.seat-top{ top:2%; left:50%; margin-left:-40px; }
.seat-left{ left:1%; top:42%; }
.seat-right{ right:1%; top:42%; }
.avatar{
  width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; background:linear-gradient(160deg,#1d3557,#0f1d31);
  border:2px solid rgba(255,255,255,.16); position:relative;
}
.seat.mate .avatar{ border-color:rgba(255,209,102,.75); box-shadow:0 0 12px rgba(255,209,102,.25); }
.seat.turn .avatar{ box-shadow:0 0 0 3px rgba(61,220,151,.35), 0 0 18px rgba(61,220,151,.3); }
.seat-name{ font-size:11px; color:rgba(233,240,250,.72); }
.count-pill{
  position:absolute; right:-6px; top:-6px; min-width:18px; height:18px; padding:0 4px; border-radius:9px;
  background:#1f3350; border:1px solid rgba(255,255,255,.2); font-size:10px;
  display:flex; align-items:center; justify-content:center;
}
.count-pill.low{ background:#7f1d1d; border-color:#ff6b6b; color:#fff; }
.bubble{
  min-height:22px; padding:2px 6px; border-radius:10px; background:rgba(6,14,24,.72);
  border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center;
  font-size:11px; max-width:44vw; flex-wrap:wrap;
}
.bubble.pass{ color:rgba(233,240,250,.55); }
.bubble.hidden{ visibility:hidden; }
.tag{
  font-size:10px; padding:1px 6px; border-radius:6px; background:rgba(61,220,151,.16);
  color:var(--green); border:1px solid rgba(61,220,151,.3); white-space:nowrap;
}
.tag.warn{ background:rgba(255,107,107,.18); color:#ffb3b3; border-color:rgba(255,107,107,.4); }
.tag.hidden{ visibility:hidden; }
.seat-left .bubble, .seat-left .tag{ transform:translateX(46px); }
.seat-right .bubble, .seat-right .tag{ transform:translateX(-46px); }

/* 中央出牌区 */
.center{
  position:absolute; left:0; right:0; top:50%; margin-top:-40px; z-index:1;
  display:flex; flex-direction:column; align-items:center;
}
.center > * + *{ margin-top:6px; }
.play-area{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:60px; }
.play-area > * + *{ margin-top:4px; }
.play-label{ font-size:11px; color:rgba(233,240,250,.6); }
.mini-row{ display:flex; justify-content:center; flex-wrap:wrap; }
.mini{
  width:var(--mw); height:var(--mh); border-radius:4px; flex:0 0 auto;
  background:linear-gradient(#ffffff,#eef2f7); color:#14181f; border:1px solid rgba(0,0,0,.15);
  display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1;
}
.mini .r{ font-size:12px; font-weight:800; }
.mini .s{ font-size:12px; margin-top:1px; }
.mini.red{ color:#d92d3a; }
.mini.levelcard{ background:linear-gradient(#ffffff,#d9efff); }
.mini.wild{ background:linear-gradient(#fffdf0,#ffe6a3); box-shadow:0 0 0 1.5px #e8a800; }
.mini.joker{ background:linear-gradient(#fff8e8,#ffe2b8); }

/* ---------------- 手牌 ---------------- */
.me{ padding:2px 8px 8px; display:flex; flex-direction:column; position:relative; z-index:3; }
.me > * + *{ margin-top:6px; }
.me-head{ display:flex; align-items:center; font-size:11px; color:rgba(233,240,250,.7); }
.me-head > * + *{ margin-left:8px; }
.playname{ color:var(--gold); font-weight:700; font-size:12px; }
.hand-wrap{ min-height:154px; display:flex; flex-direction:column; justify-content:flex-end; }
.hand-row{ display:flex; justify-content:center; align-items:flex-end; height:82px; }

/* 牌面：左上角“数字 + 花色”竖排，重叠时也看得见 */
.card{
  position:relative; width:var(--cw); height:var(--ch); border-radius:7px; flex:0 0 auto;
  background:linear-gradient(170deg,#ffffff,#e9eef6); color:#14181f;
  border:1px solid rgba(0,0,0,.22); box-shadow:0 3px 7px rgba(0,0,0,.5);
  transition:transform .12s ease, box-shadow .12s ease;
  touch-action:none; -webkit-user-select:none; user-select:none;   /* 手指划过多选：别让浏览器把手势抢去当滚动 */
}
.card.red{ color:#d92d3a; }
.card .corner{ position:absolute; left:3px; top:3px; display:flex; flex-direction:column; align-items:center; line-height:1; }
.card .corner .rk{ font-size:16px; font-weight:800; }
.card .corner .su{ font-size:15px; margin-top:2px; }
.card .corner.br{ left:auto; right:3px; top:auto; bottom:3px; transform:rotate(180deg); }
.card.levelcard::before, .card.wild::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:5px; border-radius:6px 0 0 6px; }
.card.levelcard{ background:linear-gradient(170deg,#ffffff,#d9efff); }
.card.levelcard::before{ background:rgba(56,182,255,.9); }
.card.wild{ background:linear-gradient(170deg,#fffdf0,#ffe6a3); }
.card.wild::before{ background:#e8a800; }
.card.joker{ background:linear-gradient(170deg,#fff8e8,#ffe2b8); }
.card .bdg{ position:absolute; right:2px; top:2px; font-size:9px; padding:0 3px; border-radius:4px; font-weight:800; }
.card .bdg.wd{ background:linear-gradient(#ffd166,#f0a83c); color:#3a2600; }
.card .bdg.lv{ background:rgba(56,182,255,.92); color:#04202e; }
.card.sel{ transform:translateY(-18px); box-shadow:0 8px 16px rgba(0,0,0,.55), 0 0 0 2px var(--gold); z-index:99; }

/* 按钮 */
.actions{ display:flex; }
.actions > * + *{ margin-left:8px; }
.btn{
  flex:1; height:44px; border-radius:12px; background:var(--glass); border:1px solid var(--glass-b);
  font-size:15px; font-weight:600; display:flex; align-items:center; justify-content:center;
}
.btn:active{ transform:scale(.97); }
.btn.primary{ background:linear-gradient(160deg,#ffd166,#f0a83c); color:#3a2600; border-color:rgba(255,255,255,.3); }
.btn.ghost{ flex:0 0 78px; font-size:14px; }
.btn[disabled]{ opacity:.4; }
.btn.wide{ flex:1 0 100%; }

/* ---------------- 弹层 ---------------- */
.sheet{
  position:fixed; top:0; left:0; right:0; bottom:0; z-index:40; display:none; align-items:flex-end;
  background:rgba(3,7,13,.62);
}
.sheet.open{ display:flex; }
.sheet-card{
  width:100%; max-height:86vh; overflow:auto; -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain; touch-action:pan-y;   /* 2026-09-28：保证联机面板能上下滑 */
  background:linear-gradient(180deg,#122036,#0a1220);
  border-top:1px solid var(--glass-b); border-radius:18px 18px 0 0; padding:14px 14px 20px;
  animation:up .22s ease-out;
}
@keyframes up{ from{ transform:translateY(30px); opacity:.6; } to{ transform:none; opacity:1; } }
.sheet-title{ font-size:15px; font-weight:700; margin-bottom:10px; display:flex; align-items:center; }
.sheet-title .close{ margin-left:auto; font-size:22px; opacity:.65; padding:0 8px; line-height:1; }
.row{ display:flex; align-items:center; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.06); font-size:13px; }
.row > * + *{ margin-left:10px; }
.row:last-child{ border-bottom:0; }
.row .k{ color:rgba(233,240,250,.78); }
.row .v{ margin-left:auto; font-weight:700; color:var(--gold); }
.seg{ display:flex; margin-left:auto; }
.seg > * + *{ margin-left:6px; }
.seg button{ padding:6px 11px; border-radius:9px; background:rgba(255,255,255,.06); border:1px solid var(--glass-b); font-size:12px; }
.seg button.on{ background:linear-gradient(160deg,#ffd166,#f0a83c); color:#3a2600; border-color:transparent; font-weight:700; }
.switch{ margin-left:auto; width:44px; height:26px; border-radius:999px; background:rgba(255,255,255,.14); position:relative; transition:.18s; flex:0 0 auto; }
.switch::after{ content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition:.18s; }
.switch.on{ background:rgba(61,220,151,.75); }
.switch.on::after{ left:21px; }
.note{ font-size:11.5px; line-height:1.7; color:rgba(233,240,250,.72); }
.note b{ color:var(--gold); }
.note h4{ margin:12px 0 4px; font-size:13px; color:#fff; }
.note ul{ margin:4px 0; padding-left:18px; }
.diag{ font-size:10.5px; line-height:1.6; color:rgba(233,240,250,.45); word-break:break-all; }

/* 记牌器 */
.counter-grid{ display:grid; grid-template-columns:repeat(5,1fr); grid-gap:6px; gap:6px; }
.counter-cell{ background:var(--glass); border:1px solid var(--glass-b); border-radius:10px; padding:6px 0; text-align:center; }
.counter-cell .rk2{ font-size:13px; font-weight:800; }
.counter-cell .left2{ font-size:15px; font-weight:800; color:var(--green); }
.counter-cell.gone{ opacity:.35; }
.counter-cell .left2.warn{ color:var(--red); }

/* 出牌记录 / 结算 */
.hist-item{ display:flex; align-items:center; padding:6px 0; border-bottom:1px solid rgba(255,255,255,.05); font-size:12px; }
.hist-item > * + *{ margin-left:8px; }
.hist-item .who{ width:46px; flex:0 0 auto; color:rgba(233,240,250,.72); }
.hist-item .cards-txt{ line-height:1.5; }
.hist-item.pass .cards-txt{ color:rgba(233,240,250,.45); }
.rank-list{ display:flex; flex-direction:column; margin:6px 0 10px; }
.rank-list > * + *{ margin-top:6px; }
.rank-item{ display:flex; align-items:center; padding:8px 10px; border-radius:11px; background:var(--glass); border:1px solid var(--glass-b); font-size:13px; }
.rank-item > * + *{ margin-left:8px; }
.rank-item.win{ border-color:rgba(255,209,102,.5); }
.rank-item .place{ width:48px; color:var(--gold); font-weight:700; }
.rank-item .team{ margin-left:auto; font-size:11px; color:rgba(233,240,250,.6); }
.big-msg{ text-align:center; font-size:20px; font-weight:800; margin:8px 0; letter-spacing:1px; }
.big-msg.win{ color:var(--gold); } .big-msg.lose{ color:var(--cyan); }
.option-list{ display:flex; flex-wrap:wrap; }
.option-list button{ padding:9px 14px; border-radius:11px; background:var(--glass); border:1px solid var(--glass-b); font-size:13px; margin:0 8px 8px 0; }
.option-list button.on{ background:linear-gradient(160deg,#ffd166,#f0a83c); color:#3a2600; font-weight:700; border-color:transparent; }

/* 开始页 */
.start{ position:fixed; top:0; left:0; right:0; bottom:0; z-index:30;
  overflow-y:auto; -webkit-overflow-scrolling:touch; padding:0;
  background:radial-gradient(70% 60% at 50% 30%, #16304a, #070d16 75%); }
.start-inner{ min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:calc(26px + env(safe-area-inset-top,0px)) 18px calc(26px + env(safe-area-inset-bottom,0px)); }
.start h1{ font-size:32px; margin:0; letter-spacing:7px; color:var(--gold); }
.start .tagline{ margin:10px 0 26px; font-size:13px; color:rgba(233,240,250,.72); letter-spacing:.5px; }
.menu-btn{ display:block; width:330px; max-width:86vw; padding:15px 18px; margin-bottom:12px; border-radius:16px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14); text-align:left; }
.menu-btn:active{ transform:scale(.98); }
.menu-btn b{ display:block; font-size:17px; font-weight:800; color:#fff; letter-spacing:1px; }
.menu-btn i{ display:block; margin-top:4px; font-style:normal; font-size:11.5px; color:rgba(233,240,250,.62); }
.menu-btn.primary{ background:linear-gradient(160deg,#ffd166,#f0a83c); border-color:transparent; box-shadow:0 8px 22px rgba(255,209,102,.18); }
.menu-btn.primary b{ color:#3a2600; }
.menu-btn.primary i{ color:rgba(58,38,0,.66); }
.note-line{ font-size:11.5px; color:rgba(233,240,250,.6); text-align:center; line-height:1.7; margin-top:10px; }
.start .icp-line{ margin-top:18px; }
.start .promo{ margin-top:14px; }
.start.hidden{ display:none; }

/* 提示条 / 横幅 / 报错 */
.toast{
  position:fixed; left:50%; top:52%; margin-left:-140px; width:280px; text-align:center; z-index:45;
  padding:7px 10px; border-radius:14px; background:rgba(8,16,28,.92); border:1px solid var(--glass-b);
  font-size:13px; opacity:0; transition:opacity .2s; pointer-events:none;
}
.toast.show{ opacity:1; }
.banner{
  position:fixed; left:0; right:0; top:36%; z-index:46; opacity:0; text-align:center;
  font-size:28px; font-weight:900; letter-spacing:3px; color:var(--gold); text-shadow:0 4px 20px rgba(0,0,0,.7);
  transition:opacity .2s; pointer-events:none;
}
.banner.show{ opacity:1; }

.errbar{
  position:fixed; left:0; right:0; bottom:0; z-index:60; display:none; padding:10px 12px;
  background:rgba(120,20,20,.94); color:#fff; font-size:11.5px; line-height:1.5; word-break:break-all;
}
.errbar.show{ display:block; }
@media (max-width:360px){ :root{ --cw:40px; --ch:56px; } .hand-row{ height:74px; } .seat-left .bubble, .seat-left .tag{ transform:translateX(38px); } .seat-right .bubble, .seat-right .tag{ transform:translateX(-38px); } }
/* 刘海屏安全区：老内核不支持 env() 时会整条忽略，退化为 0，不影响布局 */
#app{ padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px); }

/* 防止浏览器"夜间模式/强制深色"把白色牌面反色 */
html, body, #app{ color-scheme: only light; }
.card, .mini{
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
  background-color: #ffffff;
}
.card{ background: linear-gradient(170deg,#ffffff,#e9eef6) !important; }
.card.wild{ background: linear-gradient(170deg,#fffdf0,#ffe6a3) !important; }
.card.levelcard{ background: linear-gradient(170deg,#ffffff,#d9efff) !important; }
.card.joker{ background: linear-gradient(170deg,#fff8e8,#ffe2b8) !important; }
.card .corner .rk, .card .corner .su{ -webkit-text-fill-color: currentColor; }
/* 出牌不做任何闪烁/弹入动画（按用户要求：出牌不要闪） */
.mini, .bubble .mini{ animation:none !important; }

/* 备案号（挂在国内域名下必须显示，放页面流里、不悬浮） */
.icp-line {
  margin-top: 14px; font-size: 11px; line-height: 1.6;
  color: rgba(210, 225, 245, .55); text-align: center;
}
.icp-line a { color: rgba(210, 225, 245, .75); text-decoration: none; border-bottom: 1px dotted rgba(210,225,245,.35); }

/* 牌谱导出文本框 */
.hist-export { border-top: 1px solid rgba(255,255,255,.08); margin-top: 10px; padding-top: 10px; }
.hist-text {
  width: 100%; box-sizing: border-box; background: rgba(0,0,0,.35); color: #cfe2ff;
  border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 8px;
  font-size: 12px; line-height: 1.5; font-family: ui-monospace, Menlo, Consolas, monospace;
  resize: vertical; -webkit-user-select: text; user-select: text;
}

/* 开始页的平台入口（小程序里 nopromo=1 时隐藏） */
.promo {
  margin: 16px auto 0; max-width: 320px; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.7; text-align: center;
}
.promo .promo-free { display: block; color: #7ee2b8; font-size: 11px; letter-spacing: .5px; }
.promo a { color: #cfe2ff; text-decoration: none; border-bottom: 1px dotted rgba(207,226,255,.4); }
.nopromo .promo { display: none !important; }


/* ============================================================
 * 手机横屏（老年友好）：牌面加大、字号加大，
 * 横屏也一样能玩，不提示“请竖屏”。（用户 2026-09-26 要求）
 * ============================================================ */
@media (orientation: landscape) and (max-height: 560px) {
  :root { --cw: 56px; --ch: 78px; --mw: 32px; --mh: 44px; }
  .hand-row { height: 100px; }
  body { font-size: 16px; }
  .seat .name, .seat .tag { font-size: 13px; }
  .start .btn { height: 54px; font-size: 17px; }
  .toast, .banner { font-size: 15px; }
}

/* ============================================================
 * 电脑 / 平板大屏自适应（用户 2026-09-27 要求：单机、联机的设置界面在电脑上也要好看）
 * 手机上是"从底下升起的抽屉"，到电脑上改成"居中的对话框"；牌桌居中不拉散。
 * ============================================================ */
@media (min-width: 720px) {
  /* 弹层：居中对话框，不再是一条拉满整屏的横条 */
  .sheet{ align-items:center; justify-content:center; padding:26px 20px; }
  .sheet-card{
    width:520px; max-width:94vw; max-height:82vh;
    border-radius:18px; border:1px solid var(--glass-b);
    padding:16px 18px 20px; box-shadow:0 24px 60px rgba(0,0,0,.55);
  }
  .sheet-title{ font-size:16px; margin-bottom:12px; }
  /* 顶部信息条 / 牌桌 / 手牌区：居中有上限，超宽屏上不会散成两半 */
  .topbar, .table, .me{ width:100%; max-width:900px; margin-left:auto; margin-right:auto; }
  .table{ margin-top:2px; }
  .hand-wrap{ width:100%; max-width:900px; margin-left:auto; margin-right:auto; }
  /* 首页在电脑上给大一点 */
  .start h1{ font-size:38px; }
  .menu-btn{ width:400px; padding:17px 20px; }
  .menu-btn b{ font-size:18px; }
  .menu-btn i{ font-size:12.5px; }
  /* 底部操作条限宽居中，别在超宽屏上让按钮各自贴到两头 */
  .actions{ width:100%; max-width:620px; margin-left:auto; margin-right:auto; }
  .icon-btn{ width:34px; height:34px; font-size:15px; }
  .toast{ width:340px; margin-left:-170px; font-size:14px; }
}
/* 大显示器：牌再大一点，看着不费眼（牌宽从 CSS 变量读，手牌排布会跟着算） */
@media (min-width: 1100px) and (min-height: 700px) {
  :root{ --cw:54px; --ch:76px; --mw:30px; --mh:42px; }
  .sheet-card{ width:580px; }
  .topbar, .table, .me, .hand-wrap{ max-width:1080px; }
  .hand-row{ height:96px; }
  .hand-wrap{ min-height:176px; }
}

/* 2026-10-02 用户口径（gd-move-history）：右上角"谱"被证书/工具集悬浮按钮盖住 → 挪到左上角下方 */
#btnHistory{position:fixed;left:10px;top:62px;z-index:2147483100}
/* 座位头像 */
.seat-av{width:34px;height:34px;border-radius:50%;background-size:cover;background-position:center;
  border:2px solid rgba(255,255,255,.85);box-shadow:0 2px 6px rgba(0,0,0,.25);margin:0 auto 2px}

/* gd-avatar-fix 2026-10-02：座位圆填充头像（真人微信头像 / 机器人角色形象） */
.seat .avatar{background-size:cover;background-position:center;color:transparent;overflow:hidden;background-color:#22304a}
/* gd-topbtns-move 2026-10-02：右上角那排工具按钮（音/记/谱/?/⚙）被证书与工具集悬浮按钮盖住 → 整排移到左侧竖排 */
.topbar .topbtns{position:fixed;left:10px;top:62px;z-index:2147483100;display:flex;flex-direction:column;gap:6px}
#btnHistory{position:static;left:auto;top:auto}

/* gd-history-label 2026-10-02：记录按钮两个汉字，放开宽度别挤成两行 */
#btnHistory{width:auto;min-width:34px;padding:0 8px;font-size:12px;letter-spacing:0}

/* gd-gear-right 2026-10-02：设置齿轮留在右侧、工具集按钮下方；左侧保留 音/记/记录/? */
.topbar .topbtns #btnSettings{position:fixed;right:12px;top:62px;z-index:2147483100}   /* 与左侧「记」按钮 y 绝对对齐（62px） */   /* 2026-10-02：紧贴工具集按钮下方；尺寸继承 .icon-btn（与左侧按钮一致） */
.topbar .topbtns{top:62px}

/* gd-left-only-counter 2026-10-02：左侧只保留「记」一个按钮（音/记录/? 不显示；音效仍在 设置 里） */
.topbar .topbtns #btnMute,.topbar .topbtns #btnHistory,.topbar .topbtns #btnRules{display:none !important}


/* 2026-10-02：头像圆里的"下家/对家/上家"文字用 span 单独隐藏；牌数 #cntN 保持原位、原样式常驻显示 */
.seat .avatar .av-txt{display:none}

/* gd-desktop-scale 2026-10-02: bigger cards + fonts on desktop (adaptive) */
@media (min-width: 1000px){
  :root{ --cw:60px; --ch:84px; --mw:34px; --mh:46px; }
  .hand-row{ height:106px; }
  .hand-wrap{ min-height:196px; }
  .mini .r, .mini .s{ font-size:15px; }
  .card .corner .rk{ font-size:15px; }
  .card .corner .su{ font-size:15px; }
  .seat-name{ font-size:13px; }
}
@media (min-width: 1400px){
  :root{ --cw:70px; --ch:98px; --mw:38px; --mh:52px; }
  .hand-row{ height:120px; }
  .hand-wrap{ min-height:212px; }
  .mini .r, .mini .s{ font-size:16px; }
}

/* gd-scale-v3 2026-10-02: elderly-friendly bigger cards; hand auto-overlaps so bigger is safe */
:root{ --cw:54px; --ch:76px; --mw:30px; --mh:42px; }                 /* 手机竖屏基础档 */
@media (max-width: 400px){ :root{ --cw:50px; --ch:70px; --mw:28px; --mh:40px; } }
@media (min-width: 700px){ :root{ --cw:60px; --ch:84px; --mw:34px; --mh:46px; } }   /* 平板竖屏 */
@media (min-width: 1000px){ :root{ --cw:66px; --ch:92px; --mw:38px; --mh:52px; }
  .hand-row{ height:118px; } .hand-wrap{ min-height:216px; }
  .mini .r, .mini .s{ font-size:16px; } .card .corner .rk, .card .corner .su{ font-size:16px; } .seat-name{ font-size:14px; } }
@media (min-width: 1400px){ :root{ --cw:80px; --ch:110px; --mw:44px; --mh:60px; }
  .hand-row{ height:138px; } .hand-wrap{ min-height:252px; }
  .mini .r, .mini .s{ font-size:18px; } .card .corner .rk, .card .corner .su{ font-size:18px; } }
/* 手机横屏：牌比竖屏更大（老人横过来打） */
@media (orientation: landscape) and (max-height: 620px){
  :root{ --cw:62px; --ch:88px; --mw:34px; --mh:46px; }
  .hand-row{ height:110px; } .hand-wrap{ min-height:200px; }
  .mini .r, .mini .s{ font-size:16px; } .card .corner .rk, .card .corner .su{ font-size:16px; }
}

/* gd-scale-v4 2026-10-02 */
@media (min-width: 1000px){ :root{ --cw:78px; --ch:108px; --mw:44px; --mh:60px; }
  .hand-row{ height:136px; } .hand-wrap{ min-height:244px; }
  .mini .r, .mini .s{ font-size:18px; } .card .corner .rk, .card .corner .su{ font-size:18px; } .seat-name{ font-size:15px; } }
@media (min-width: 1400px){ :root{ --cw:92px; --ch:126px; --mw:50px; --mh:68px; }
  .hand-row{ height:158px; } .hand-wrap{ min-height:286px; }
  .mini .r, .mini .s{ font-size:20px; } .card .corner .rk, .card .corner .su{ font-size:20px; } }
/* 手机横屏：手牌区压矮，避免挡住另外三家；牌宽保持、只压高度 */
@media (orientation: landscape) and (max-height: 620px){
  :root{ --cw:62px; --ch:78px; --mw:32px; --mh:42px; }
  .hand-row{ height:92px; } .hand-wrap{ min-height:150px; }
  .mini .r, .mini .s{ font-size:15px; } .card .corner .rk, .card .corner .su{ font-size:15px; }
  .table{ padding-bottom:8px; }
}

/* gd-landscape-fix 2026-10-02: phone landscape - team avatar must not cover the center play, seat labels must not be overlapped */
@media (orientation: landscape) and (max-height: 620px){
  .seat-top{ z-index:1; top:-2px; }                       /* 对家整块压到中心出牌之下 */
  .seat-top .avatar{ width:34px; height:34px; }
  .seat-left, .seat-right{ z-index:3; top:34%; }           /* 上/下家上移一点，别被自己的出牌压住 */
  .seat-left .seat-name, .seat-right .seat-name{ font-size:12px; }
  .seat .avatar{ width:40px; height:40px; }
  .count-pill{ font-size:10px; line-height:14px; height:14px; padding:0 5px; }
  .bubble{ font-size:11px; padding:2px 7px; }
}
