/* =========================================================
   三国杀 · 自建版  UI
   ========================================================= */
:root{
  --ink:#070b08;
  --ink2:#0d1410;
  --felt:#1a1109;
  --felt2:#0a1410;
  --panel:rgba(22,15,10,.9);
  --panel2:rgba(34,23,16,.92);
  --gold:#cca45f;
  --gold2:#f3e2bd;
  --gold-dim:rgba(206,164,96,.34);
  --text:#eae6d8;
  --dim:#9aa79c;
  --red:#a8332a;
  --jade:#2f7d5a;
  --blue:#3b6f9c;
  --shadow:0 12px 34px rgba(0,0,0,.55);
  --serif:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--ink);color:var(--text);
  font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;overflow:hidden}
button{font-family:inherit;border:none;cursor:pointer;background:none;color:inherit}
input,select{font-family:inherit;outline:none}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:rgba(206,164,96,.22);border-radius:4px}
::-webkit-scrollbar-track{background:transparent}

/* ---------- 通用控件 ---------- */
.btn{
  border:1px solid rgba(206,164,96,.42);border-radius:6px;
  padding:10px 18px;font-size:14px;color:var(--gold2);
  background:linear-gradient(180deg,rgba(52,34,22,.92),rgba(22,14,9,.94));
  letter-spacing:1px;transition:.16s;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.btn:hover{border-color:rgba(206,164,96,.8);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.btn:disabled{opacity:.38;cursor:default;box-shadow:none}
.btn.gold{
  background:linear-gradient(180deg,#f0d79b,#cfa95d 55%,#ab8340);
  color:#241c0d;font-weight:700;border-color:#f0dfae;
  box-shadow:0 6px 20px rgba(206,164,96,.28),inset 0 1px 0 rgba(255,255,255,.5);
}
.btn.gold:hover{filter:brightness(1.08);box-shadow:0 8px 26px rgba(206,164,96,.4)}
.btn.ghost{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.18);color:var(--dim)}
.btn.danger{border-color:rgba(168,51,42,.6);color:#e8b8b0;background:rgba(70,22,16,.82)}
.btn.sm{padding:6px 12px;font-size:12px;letter-spacing:0}
.input{
  width:100%;padding:11px 13px;border-radius:6px;color:var(--text);
  background:rgba(4,10,7,.72);border:1px solid rgba(206,164,96,.3);
  font-size:14px;transition:.16s;
}
.input:focus{border-color:rgba(206,164,96,.75);box-shadow:0 0 0 3px rgba(206,164,96,.12)}
.tag{font-size:11px;padding:2px 8px;border-radius:3px;letter-spacing:1px}

/* ---------- 首页 ---------- */
.screen{position:fixed;inset:0;display:none;flex-direction:column}
.screen.on{display:flex}
#home{align-items:center;justify-content:center;overflow:hidden}
.home-bg{
  position:absolute;inset:-6%;background-color:#1b1109;background-size:cover;background-position:center 18%;
  filter:blur(2px) saturate(1) brightness(.72);transform:scale(1.02);
}
.home-bg::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(110% 75% at 50% 12%,rgba(0,0,0,.02),rgba(0,0,0,.68) 60%,#070403 100%),
    linear-gradient(90deg,rgba(6,12,9,.88),rgba(6,12,9,.2) 34%,rgba(6,12,9,.2) 66%,rgba(6,12,9,.88));
}
.home-wrap{position:relative;z-index:2;width:min(460px,92vw);padding:10px 0 20px;text-align:center}
.brand{
  font-family:var(--serif);font-size:clamp(44px,9vw,78px);letter-spacing:.22em;
  margin:0;line-height:1.06;
  background:linear-gradient(180deg,#fff4d6,#e6c98a 38%,#b78f42 70%,#f3e2b6 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 4px 18px rgba(206,164,96,.35));
  text-indent:.22em;
}
.brand-sub{
  margin:12px 0 28px;color:#b9c4b7;font-size:12px;letter-spacing:.3em;text-indent:.3em;
}
.seal-top{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:6px;
  color:var(--gold);font-family:var(--serif);font-size:13px;letter-spacing:.3em;
}
.seal-top::before,.seal-top::after{content:"";width:34px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-dim))}
.home-panel{
  background:linear-gradient(180deg,rgba(26,17,12,.94),rgba(10,7,5,.96));
  border:1px solid rgba(206,164,96,.32);border-radius:12px;padding:22px 22px 18px;
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.05);
  position:relative;
}
.home-panel::before{
  content:"";position:absolute;inset:6px;border:1px solid rgba(206,164,96,.12);
  border-radius:8px;pointer-events:none;
}
.field{margin-bottom:14px;text-align:left}
.field label{display:block;font-size:12px;color:#a7b3a6;letter-spacing:.18em;margin-bottom:7px}
.row{display:flex;gap:10px}
.row>*{flex:1}
.divider{
  display:flex;align-items:center;gap:12px;margin:16px 0 14px;
  color:#6d7c70;font-size:11px;letter-spacing:.2em;
}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(206,164,96,.25),transparent)}
.foot{margin-top:18px;color:#6d7c70;font-size:11px;letter-spacing:.08em}
.hintline{min-height:18px;color:#d98d80;font-size:12px;margin-top:4px}

/* ---------- 访问密码 ---------- */
.pass-gate{display:none;position:fixed;inset:0;z-index:90;align-items:center;justify-content:center;padding:20px;
  background:radial-gradient(900px 600px at 50% 10%,rgba(52,34,18,.85),rgba(6,4,3,.96));backdrop-filter:blur(5px)}
.pass-gate.on{display:flex}
.pass-box{width:min(360px,90vw);text-align:center;background:linear-gradient(180deg,#1c1510,#100b07);
  border:1px solid rgba(206,164,96,.35);border-radius:12px;padding:26px 24px;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.pass-title{font-family:var(--serif);font-size:26px;letter-spacing:.2em;color:var(--gold2);margin:10px 0 4px}
.pass-sub{font-size:12px;color:#9d9282;margin-bottom:18px;letter-spacing:.06em}
.pass-box .input{width:100%;text-align:center;letter-spacing:.1em}
.pass-box .btn{width:100%;margin-top:12px}
.pass-box .hintline{margin-top:10px}

/* ---------- 房间 ---------- */
.lord-tag{font-size:10px;color:#f0d08a;border:1px solid rgba(232,191,106,.55);border-radius:3px;padding:0 4px;letter-spacing:.06em;font-weight:400}
#room{
  background:radial-gradient(120% 90% at 50% 0%,#2c1812,#080503 70%);overflow:auto;position:fixed;
}
#room::before{
  content:"殺";position:fixed;right:-2vw;bottom:-8vh;font-family:var(--serif);
  font-size:34vh;color:rgba(206,164,96,.045);pointer-events:none;
}
.room-head{
  display:flex;align-items:center;gap:16px;padding:18px 24px 10px;flex-wrap:wrap;
}
.room-title{font-family:var(--serif);font-size:20px;color:var(--gold2);letter-spacing:.2em}
.room-code{
  font-family:var(--serif);font-size:26px;letter-spacing:.24em;color:#fff;
  background:linear-gradient(180deg,#2a4433,#1a1109);border:1px solid var(--gold-dim);
  padding:4px 14px;border-radius:4px;box-shadow:inset 0 0 18px rgba(206,164,96,.18);
}
.room-meta{margin-left:auto;color:var(--dim);font-size:12px;display:flex;align-items:center;gap:12px}
.room-body{padding:8px 24px 24px;display:flex;flex-direction:column;gap:18px;width:100%;max-width:1080px;margin:0 auto}
.seat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.seat-tile{
  position:relative;border-radius:8px;overflow:hidden;background:#0d0907;
  border:1px solid rgba(255,255,255,.08);min-height:190px;cursor:default;
  transition:.18s;
}
.seat-tile.empty{
  display:flex;align-items:center;justify-content:center;color:#5d6b60;font-size:12px;
  border-style:dashed;letter-spacing:.2em;min-height:190px;
}
.seat-tile .art{position:absolute;inset:0;background-size:cover;background-position:center 20%}
.seat-tile .art.none{background:linear-gradient(160deg,#241610,#0b0705);display:flex;align-items:center;justify-content:center;font-size:34px;color:#2f4436}
.seat-tile .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 20%,rgba(0,0,0,.82) 88%)}
.seat-tile .meta{position:absolute;left:0;right:0;bottom:0;padding:9px 10px}
.seat-tile .nm{font-size:13px;font-weight:700;display:flex;align-items:center;gap:5px}
.seat-tile .gn{font-size:11px;color:var(--gold);margin-top:2px;font-family:var(--serif);letter-spacing:.1em}
.seat-tile .st{font-size:10px;color:#9fb0a2;margin-top:3px}
.seat-tile.mine{border-color:rgba(206,164,96,.7);box-shadow:0 0 0 1px rgba(206,164,96,.35),0 8px 24px rgba(0,0,0,.4)}
.seat-tile:hover{border-color:rgba(206,164,96,.8);transform:translateY(-2px)}
.king-魏{border-color:rgba(59,111,156,.75)}
.king-蜀{border-color:rgba(168,51,42,.75)}
.king-吴{border-color:rgba(47,125,90,.75)}
.king-群{border-color:rgba(140,122,82,.75)}
.room-actions{display:flex;gap:12px;flex-wrap:wrap;max-width:640px}
.room-hint{color:#7f8d82;font-size:12px;line-height:1.8}

/* ---------- 牌桌 ---------- */
#table{background:
  radial-gradient(90% 70% at 50% 0%,rgba(104,54,36,.5),transparent 62%),
  radial-gradient(120% 100% at 50% 110%,rgba(10,6,4,.92),transparent 62%),
  linear-gradient(180deg,#1d120c,#080503 72%);
}
.topbar{
  display:flex;align-items:center;gap:14px;padding:9px 16px;flex-wrap:wrap;
  background:linear-gradient(180deg,rgba(11,7,5,.94),rgba(11,7,5,.6));
  border-bottom:1px solid rgba(206,164,96,.18);font-size:12px;color:#a3b1a6;
}
.topbar .ph{color:var(--gold2);font-family:var(--serif);letter-spacing:.12em;font-size:14px}
.topbar .rd{color:#7f8d82}
.topbar .spacer{flex:1}
.seats{display:flex;justify-content:center;gap:12px;padding:14px 16px 10px;overflow-x:auto;flex:0 0 auto}
.seat{
  position:relative;width:152px;min-width:152px;height:208px;border-radius:8px;overflow:hidden;
  border:1px solid rgba(255,255,255,.09);background:#0d0907;transition:.18s;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.seat .art{position:absolute;inset:0;background-size:cover;background-position:center 18%}
.seat .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.18) 30%,rgba(0,0,0,.88) 100%)}
.seat .nm{position:absolute;top:6px;left:8px;right:8px;padding-right:2px;display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;text-shadow:0 2px 6px #000}
.seat .idtag{position:absolute;top:26px;left:8px;font-size:10px;padding:1px 6px;border-radius:3px;letter-spacing:1px}
.seat .gen{position:absolute;left:8px;right:8px;bottom:34px;font-size:14px;font-family:var(--serif);font-size:13px;color:var(--gold2);text-shadow:0 2px 6px #000;letter-spacing:.08em}
.seat .hp{position:absolute;left:8px;bottom:20px;font-size:11px;letter-spacing:1px;color:#ff9d8a;text-shadow:0 1px 4px #000}
.seat .hcnt{position:absolute;right:8px;bottom:20px;font-size:10px;color:#cfdbd1;background:rgba(0,0,0,.55);padding:1px 6px;border-radius:3px}
.seat .rows{position:absolute;left:8px;right:8px;bottom:7px;font-size:9px;color:#9fb3a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seat.current{border-color:rgba(206,164,96,.85);box-shadow:0 0 0 1px rgba(206,164,96,.5),0 0 26px rgba(206,164,96,.35);animation:pulse 2.4s infinite}
.seat.dead{filter:grayscale(.85) brightness(.6)}
.seat.targetable{border-color:#e8bf62;box-shadow:0 0 0 2px rgba(226,180,92,.85),0 0 22px rgba(226,180,92,.4);cursor:pointer}
.seat.selected{border-color:#ffe1a3;box-shadow:0 0 0 2px #ffdf9d,0 0 30px rgba(255,217,122,.55)}
.selbadge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-size:12px;letter-spacing:.2em;color:#241b0c;background:linear-gradient(180deg,#ffe6b3,#d8b063);
  border-radius:4px;padding:3px 10px;box-shadow:0 4px 14px rgba(0,0,0,.45);font-weight:700;
}
@keyframes pulse{0%,100%{box-shadow:0 0 0 1px rgba(206,164,96,.45),0 0 18px rgba(206,164,96,.22)}50%{box-shadow:0 0 0 1px rgba(206,164,96,.8),0 0 30px rgba(206,164,96,.42)}}

.center{flex:1;display:flex;gap:12px;margin:0 16px 12px;min-height:158px}
.tablezone{
  position:relative;flex:1;min-width:0;border-radius:14px;overflow:hidden;
  background:
    radial-gradient(68% 92% at 50% 44%,rgba(104,56,38,.42),rgba(12,8,6,.62) 68%),
    linear-gradient(180deg,rgba(30,18,13,.62),rgba(9,6,4,.84));
  border:1px solid rgba(206,164,96,.14);
  box-shadow:inset 0 0 70px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.04);
}
.tablezone::after{content:"";position:absolute;inset:7px;border:1px solid rgba(206,164,96,.08);border-radius:9px;pointer-events:none}
.watermark{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;
  font-family:var(--serif);font-size:min(20vh,190px);letter-spacing:.08em;
  color:rgba(206,164,96,.06);text-shadow:0 0 46px rgba(206,164,96,.08);
}
.piles{position:absolute;left:50%;top:18px;transform:translateX(-50%);display:flex;gap:30px;text-align:center;pointer-events:none}
.pile .plabel{display:block;font-size:10px;color:#8b7d69;letter-spacing:.2em;margin-top:7px}
.stack{
  width:58px;height:82px;border-radius:6px;position:relative;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(206,164,96,.38);background:#0d0907;overflow:visible;
  box-shadow:0 10px 22px rgba(0,0,0,.5),inset 0 0 18px rgba(206,164,96,.12);
}
.stack.deck{
  background:
    radial-gradient(60% 60% at 50% 40%,rgba(206,164,96,.16),transparent 70%),
    linear-gradient(160deg,#2a1a12,#0d0907 75%);
}
.stack.deck::before{content:"";position:absolute;inset:5px;border:1px solid rgba(206,164,96,.28);border-radius:4px}
.sglyph{font-family:var(--serif);font-size:26px;color:rgba(238,214,160,.72);letter-spacing:.05em;text-shadow:0 0 14px rgba(206,164,96,.3)}
.stack b{
  position:absolute;right:-6px;bottom:-6px;min-width:22px;height:22px;border-radius:50%;
  background:#1b120b;border:1px solid rgba(206,164,96,.55);color:#f1dfb4;
  font-size:11px;line-height:20px;text-align:center;font-family:ui-monospace,monospace;
}
.stack img{width:100%;height:100%;object-fit:cover;border-radius:5px}
.stack .empty{font-size:10px;color:#5d5142;letter-spacing:.15em}
.stack .mini-name{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:13px;color:#dfc894;text-align:center;padding:0 4px}
.tablehint{
  position:absolute;left:18px;bottom:14px;
  font-size:11px;letter-spacing:.18em;color:#8d7c66;white-space:nowrap;pointer-events:none;
}

/* 侧栏：战报 + 聊天 */
.side{width:312px;flex:0 0 auto;display:flex;flex-direction:column;gap:10px;min-height:0}
.logpanel{
  flex:1;min-height:0;display:flex;flex-direction:column;border-radius:8px;overflow:hidden;
  background:linear-gradient(180deg,rgba(14,10,7,.82),rgba(10,6,4,.55));
  border:1px solid rgba(206,164,96,.14);backdrop-filter:blur(3px);
}
.loghead{
  display:flex;justify-content:space-between;align-items:center;padding:7px 11px 6px;
  border-bottom:1px solid rgba(206,164,96,.12);
  font-family:var(--serif);font-size:11px;letter-spacing:.22em;color:#d9c49c;
  background:linear-gradient(180deg,rgba(255,235,200,.04),transparent);
}
.logmeta{font-family:inherit;font-size:10px;letter-spacing:.06em;color:#7d6f5e}
.log{flex:1;overflow:auto;padding:9px 11px 14px;font-size:12px;line-height:1.9;color:#c2cdc2}
.log div{opacity:.95;margin-bottom:1px}
.log .turn{color:#cfa868;font-size:11px;letter-spacing:.06em;margin-top:7px}
.log .hl{color:#f1d59d}
.log .bl{color:#e9a79b}

.chat{height:172px;flex:0 0 auto;display:flex;flex-direction:column;gap:6px}
.chat-title{font-size:10px;color:#8b7d69;letter-spacing:.2em;padding-left:2px}
.chatlog{
  flex:1;overflow:auto;font-size:11px;line-height:1.7;color:#b0bcaf;
  background:rgba(10,6,4,.62);border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:8px;
  backdrop-filter:blur(2px);
}
.chatlog:empty::before{content:'牌局内可自由聊天';color:#5d5142;font-size:11px}
.chatrow{display:flex;gap:6px}
.chatrow .input{flex:1;min-width:0;padding:6px 9px;font-size:12px;border-radius:5px}
.chatrow .btn{flex:0 0 auto;white-space:nowrap;padding:6px 12px}

/* ---------- 我的面板 ---------- */
.me{
  flex:0 0 auto;display:grid;grid-template-columns:152px minmax(0,1fr);gap:12px;
  padding:10px 16px 14px;background:linear-gradient(180deg,rgba(12,8,5,.55),rgba(10,6,4,.96));
  border-top:1px solid rgba(206,164,96,.2);
}
.me-card{
  position:relative;height:198px;border-radius:8px;overflow:hidden;border:1px solid rgba(206,164,96,.45);
  background:#0d0907;box-shadow:0 8px 24px rgba(0,0,0,.45);
}
.me-card .art{position:absolute;inset:0;background-size:cover;background-position:center 15%}
.me-card .shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.86))}
.me-card .info{position:absolute;left:0;right:0;bottom:0;padding:8px}
.me-card .info .n{font-family:var(--serif);font-size:15px;color:var(--gold2);letter-spacing:.1em}
.me-card .info .h{margin-top:3px;color:#ff9d8a;font-size:11px;letter-spacing:1px}
.me-right{display:flex;flex-direction:column;gap:8px;min-width:0}
.me-top{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:#9fb0a4}
.me-top .id{background:rgba(255,255,255,.08);padding:2px 8px;border-radius:3px;letter-spacing:1px}
.me-top .id.lord{background:rgba(168,51,42,.55);color:#ffe2d9}
.equip-row{display:flex;gap:6px;flex-wrap:wrap}
.equip{
  display:flex;align-items:center;gap:5px;font-size:11px;color:#c8d6c9;
  background:rgba(38,25,16,.8);border:1px solid rgba(206,164,96,.2);border-radius:5px;padding:3px 8px;
}
.equip img{width:22px;height:22px;object-fit:cover;border-radius:3px}
.skill-row{display:flex;gap:6px;flex-wrap:wrap}
.skill{
  font-family:var(--serif);font-size:13px;letter-spacing:.08em;color:#d9cba5;
  padding:5px 12px;border-radius:5px;border:1px solid rgba(206,164,96,.24);
  background:linear-gradient(180deg,rgba(52,35,22,.85),rgba(20,13,9,.86));transition:.15s;
}
.skill:hover{border-color:rgba(206,164,96,.7);color:#fff;transform:translateY(-1px)}
.skill.ready{color:#ffe9b8;border-color:rgba(206,164,96,.75);box-shadow:0 0 14px rgba(206,164,96,.25)}
.skill.disabled{opacity:.42;cursor:default}

/* ---------- 提示栏 ---------- */
.prompt{
  display:none;gap:10px;align-items:center;flex-wrap:wrap;
  background:linear-gradient(180deg,rgba(46,30,20,.92),rgba(18,12,8,.95));
  border:1px solid rgba(206,164,96,.35);border-radius:8px;padding:9px 12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.prompt.on{display:flex}
.prompt .reason{flex:1;min-width:160px;font-size:13px;color:#efe6cd;line-height:1.5}
.prompt .btns{display:flex;gap:8px;flex-wrap:wrap}
.prompt .mini-hand{display:flex;gap:6px;width:100%;overflow-x:auto;padding-top:2px}

/* ---------- 牌桌中央快捷确认 ---------- */
.quick-play{
  position:absolute;left:50%;bottom:38px;transform:translateX(-50%);z-index:14;
  display:none;padding:8px 22px;border-radius:24px;border:1px solid #f0d08a;
  background:linear-gradient(180deg,#f2d79a,#b98a44);color:#2a1c0a;font-size:14px;
  letter-spacing:.12em;font-weight:700;cursor:pointer;box-shadow:0 8px 28px rgba(0,0,0,.55),0 0 22px rgba(232,191,106,.35)
}
.quick-play.on{display:block}
.quick-play:active{transform:translateX(-50%) scale(.97)}

/* ---------- 手牌 ---------- */
.hidden-card .cback{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:
    repeating-linear-gradient(45deg,rgba(206,164,96,.12) 0 6px,transparent 6px 12px),
    radial-gradient(circle at 50% 40%,#3a2415,#140c07 70%);
  border:1px solid rgba(206,164,96,.35);
}
.hidden-card .cback span{
  writing-mode:vertical-rl;letter-spacing:.28em;font-family:var(--serif);
  font-size:12px;color:rgba(232,205,150,.75);border:1px solid rgba(206,164,96,.3);
  padding:8px 4px;border-radius:3px;background:rgba(0,0,0,.25);
}

.hand{display:flex;gap:8px;overflow-x:auto;align-items:flex-end;padding:2px 0 4px;min-height:112px}
.card{
  position:relative;width:76px;height:107px;flex:0 0 auto;border-radius:7px;overflow:hidden;
  background:#0d0907;border:1px solid rgba(206,164,96,.25);cursor:pointer;transition:.16s;
  box-shadow:0 6px 14px rgba(0,0,0,.45);
}
.card img{width:100%;height:100%;object-fit:cover;display:block}
.card .cap{
  position:absolute;left:0;right:0;bottom:0;padding:2px 5px;font-size:10px;color:#f6edd6;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.85));display:flex;justify-content:space-between;
}
.card.playable{border-color:rgba(226,180,92,.85);box-shadow:0 0 0 1px rgba(226,180,92,.4),0 8px 20px rgba(0,0,0,.5)}
.card.playable:hover{transform:translateY(-9px);box-shadow:0 0 0 1px #ffd97a,0 14px 26px rgba(0,0,0,.55)}
.card.sel{transform:translateY(-11px);box-shadow:0 0 0 2px #ffd97a,0 14px 30px rgba(255,217,122,.25)}
.card.dis{opacity:.42;cursor:default;filter:saturate(.6)}
.card.selected-skill{outline:2px solid #ffd97a}
/* 无原画卡牌的兜底样式 */
.card.fb{background:
  radial-gradient(75% 55% at 50% 26%,rgba(224,187,118,.2),transparent 72%),
  repeating-linear-gradient(135deg,rgba(255,240,200,.035) 0 2px,transparent 2px 7px),
  linear-gradient(160deg,#2a2118,#0c0b08 74%);}
.card.fb::before{
  content:"";position:absolute;inset:5px;border:1px solid rgba(206,164,96,.38);border-radius:4px;
}
.card.fb .fbn{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:25px;color:#f3e2bd;letter-spacing:.14em;text-align:center;padding:0 6px;
  text-shadow:0 0 18px rgba(206,164,96,.35),0 2px 8px rgba(0,0,0,.85);
}
.card.fb .fbp{position:absolute;top:6px;left:7px;font-size:10px;color:#d9cba5;opacity:.85}
.card.fb .fbe{position:absolute;inset:16px 8px 26px;background-size:contain;background-position:center;background-repeat:no-repeat;opacity:.95;border-radius:3px}
.card.fb .fbt{
  position:absolute;left:0;right:0;bottom:0;text-align:center;font-size:12px;color:#f0dcad;
  padding:4px 2px 3px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.86));
  letter-spacing:.08em;
}
.card.fb .fbk{position:absolute;top:6px;right:7px;font-size:9px;color:#9c8a63;letter-spacing:.14em}

/* ---------- 身份揭示 / 设置 ---------- */
.id-modal{max-width:360px;text-align:center;padding:26px 26px 22px}
.id-kicker{font-size:11px;letter-spacing:.32em;color:#9d9282}
.id-big{font-family:var(--serif);font-size:56px;letter-spacing:.18em;margin:8px 0 6px;line-height:1.1}
.id-big.lord{color:#f0d08a;text-shadow:0 0 28px rgba(232,191,106,.35)}
.id-big.loyal{color:#9fc4e8;text-shadow:0 0 28px rgba(120,170,220,.28)}
.id-big.rebel{color:#ef9a86;text-shadow:0 0 28px rgba(224,110,90,.3)}
.id-big.spy{color:#c3a3e8;text-shadow:0 0 28px rgba(160,120,220,.3)}
.id-goal{font-size:13px;line-height:1.9;color:#d8d0c0;margin:4px 0 16px}
.id-tip{font-size:11px;color:#8d8375;letter-spacing:.12em;margin-bottom:12px}
.set-modal{max-width:380px}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.set-row b{display:block;font-size:14px;color:#efe4cc;font-weight:500}
.set-row span{display:block;font-size:11px;color:#8d8375;margin-top:2px}
.switch{min-width:64px;border:1px solid rgba(206,164,96,.3);background:#1a120c;color:#cdb684;border-radius:20px;padding:5px 12px;font-size:12px;cursor:pointer}
.switch.on{background:linear-gradient(180deg,#e7c887,#b3843f);color:#2a1c0a;border-color:#e7c887;font-weight:700}
.set-actions{display:flex;justify-content:flex-end;margin-top:16px}
.seat .rel{font-size:9px;padding:1px 5px;border-radius:3px;letter-spacing:.08em;font-weight:400}
.seat .rel.next{color:#ffdca7;background:rgba(0,0,0,.5);border:1px solid rgba(230,190,110,.35)}
.seat .rel.prev{color:#a9c6e2;background:rgba(0,0,0,.5);border:1px solid rgba(120,160,200,.35)}

/* ---------- 弹窗 ---------- */
.mask{position:fixed;inset:0;background:rgba(2,6,4,.8);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;z-index:80;padding:18px}
.mask.on{display:flex}
.modal{
  width:min(880px,96vw);max-height:88vh;overflow:auto;border-radius:12px;padding:20px;
  background:linear-gradient(180deg,rgba(16,26,19,.98),rgba(8,14,10,.99));
  border:1px solid rgba(206,164,96,.4);box-shadow:0 24px 70px rgba(0,0,0,.65);
}
.modal h3{margin:0 0 12px;font-family:var(--serif);font-size:19px;color:var(--gold2);letter-spacing:.16em}
.modal .sub{color:#8d9b90;font-size:12px;margin-bottom:12px}
.gen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px}
.gen-item{
  position:relative;border-radius:7px;overflow:hidden;border:1px solid rgba(255,255,255,.1);
  background:#0d0907;cursor:pointer;transition:.15s;height:170px;
}
.gen-item .gimg{position:absolute;inset:0;background-size:cover;background-position:center 18%}
.gen-item .gshade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.85))}
.gen-item .gtxt{position:absolute;left:0;right:0;bottom:0;padding:8px 9px 9px}
.gen-item .gname{font-family:var(--serif);font-size:14px;color:var(--gold2);letter-spacing:.1em}
.gen-item .gmeta{font-size:10px;color:#9fb0a4;margin-top:2px}
.gen-item:hover{border-color:rgba(206,164,96,.85);transform:translateY(-2px)}
.gen-item.taken{opacity:.32;cursor:default;transform:none}
.gen-item.mine{border-color:#ffd97a;box-shadow:0 0 0 1px rgba(255,217,122,.6)}

.skill-modal{width:min(420px,92vw)}
.skill-modal .sk-name{font-family:var(--serif);font-size:22px;color:var(--gold2);letter-spacing:.16em}
.skill-modal .sk-type{display:inline-block;margin-left:8px;font-size:11px;color:#c9b88e;border:1px solid rgba(206,164,96,.35);border-radius:3px;padding:1px 6px}
.skill-modal .sk-desc{margin:14px 0 18px;line-height:1.9;color:#d9e2d6;font-size:13px}
.skill-modal .sk-btns{display:flex;gap:10px;justify-content:flex-end}

/* ---------- 结算 ---------- */
.result{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;background:rgba(2,6,4,.88);backdrop-filter:blur(6px)}
.result .box{
  text-align:center;padding:34px 40px;border-radius:14px;
  background:linear-gradient(180deg,rgba(20,32,24,.98),rgba(8,14,10,.99));
  border:1px solid rgba(206,164,96,.55);box-shadow:0 30px 80px rgba(0,0,0,.7);
  max-width:92vw;
}
.result .box h2{font-family:var(--serif);font-size:26px;letter-spacing:.18em;color:var(--gold2);margin:0 0 10px}
.result .box p{color:#9fb0a4;font-size:12px;margin:0 0 22px}

/* ---------- 补充：卡面角标 / 阵亡 / 势力描边 ---------- */
.card .pip{
  position:absolute;top:0;left:0;padding:1px 5px;font-size:10px;letter-spacing:0;
  background:linear-gradient(180deg,rgba(0,0,0,.78),rgba(0,0,0,.45));color:#f4ecd8;
  border-bottom-right-radius:6px;border-right:1px solid rgba(206,164,96,.25);
  border-bottom:1px solid rgba(206,164,96,.25);
}
.card .cap{font-size:9px}
.seat.king-魏,.gen-item.king-魏{border-color:rgba(59,111,156,.6)}
.seat.king-蜀,.gen-item.king-蜀{border-color:rgba(168,51,42,.6)}
.seat.king-吴,.gen-item.king-吴{border-color:rgba(47,125,90,.6)}
.seat.king-群,.gen-item.king-群{border-color:rgba(140,122,82,.6)}
.seat.current{border-color:rgba(206,164,96,.9)!important}
.deadmask{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:22px;letter-spacing:.3em;color:rgba(255,255,255,.75);
  background:rgba(8,5,3,.6);text-shadow:0 2px 10px #000;
}
.chip-tian{
  position:absolute;right:6px;top:26px;font-size:10px;color:#e3c27a;
  background:rgba(0,0,0,.55);border:1px solid rgba(206,164,96,.35);border-radius:3px;padding:1px 5px;
}
.idtag{background:rgba(0,0,0,.55);color:#cfdccf;border:1px solid rgba(255,255,255,.18)}
.idtag.lord{color:#ffe6d6;background:rgba(140,38,30,.75);border-color:rgba(206,164,96,.5)}

/* ---------- 悬浮音效按钮 ---------- */
.audio-btn{
  position:fixed;right:14px;bottom:14px;z-index:70;width:38px;height:38px;border-radius:50%;
  background:rgba(8,14,10,.82);border:1px solid rgba(206,164,96,.4);color:#e6d7ae;
  font-size:16px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.5);transition:.15s;
}
.audio-btn:hover{border-color:rgba(206,164,96,.85);transform:scale(1.06)}

.me-card.current{border-color:rgba(206,164,96,.9);box-shadow:0 0 0 1px rgba(206,164,96,.45),0 0 28px rgba(206,164,96,.28)}
.room-tips{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:auto;padding-top:18px}
.tip{
  background:linear-gradient(180deg,rgba(24,16,11,.75),rgba(10,7,5,.62));
  border:1px solid rgba(206,164,96,.14);border-radius:8px;padding:14px 16px;
}
.tip h4{margin:0 0 6px;font-family:var(--serif);font-size:13px;color:#dcc58f;letter-spacing:.16em;font-weight:400}
.tip p{margin:0;color:#8b9a8d;font-size:11px;line-height:1.9}
.seat-tile.empty{position:relative}
.seat-tile.empty::before{
  content:"将";position:absolute;font-family:var(--serif);font-size:44px;color:rgba(206,164,96,.07);
}
@media (max-width:900px){.room-tips{grid-template-columns:1fr}}

/* ---------- 响应式 ---------- */
@media (max-width:980px){
  .center{flex-direction:column;gap:10px}
  .tablezone{flex:0 0 34vh;min-height:140px}
  .side{width:auto;flex:1;min-height:0;flex-direction:row;gap:10px}
  .logpanel{flex:1}
  .chat{width:190px;height:auto;flex:0 0 190px}
  .chatlog{min-height:0}
  .piles{top:12px}
  .watermark{font-size:min(16vh,120px)}
  .me{grid-template-columns:116px minmax(0,1fr);gap:10px}
  .me-card{height:150px}
  .seats{justify-content:flex-start;padding:10px 12px 6px}
  .seat{width:128px;min-width:128px;height:176px}
  .seat .gen{font-size:12px}
  .tablehint{bottom:10px;font-size:10px}
}
@media (max-width:680px){
  .side{flex-direction:column}
  .chat{width:auto;height:110px;flex:0 0 110px}
  .tablezone{flex:0 0 30vh}
  .me{grid-template-columns:92px minmax(0,1fr)}
  .me-card{height:126px}
  .card{width:64px;height:90px}
  .hand{min-height:94px}
  .brand{font-size:52px}
  .home-wrap{padding-top:0}
  .room-head{padding:12px 14px 6px}
  .room-body{padding:4px 14px 16px}
  .draft-grid{grid-template-columns:repeat(2,1fr) !important}
  .modal{padding:14px}
  .tipbox{max-width:230px}
}

/* ---------- 中央飞牌（全局浮层，不再被面板遮挡） ---------- */
#flyLayer{position:fixed;inset:0;pointer-events:none;z-index:78}
.fly{
  position:absolute;transform:translate(-50%,-50%) scale(.6);opacity:0;text-align:center;
  will-change:transform,opacity;opacity:0;
}
.fly .fc{
  width:132px;height:186px;border-radius:8px;overflow:hidden;background:#0d0907;
  border:1px solid rgba(206,164,96,.72);
  box-shadow:0 26px 60px rgba(0,0,0,.72),0 0 44px rgba(206,164,96,.22);
}
.fly .fc img{width:100%;height:100%;object-fit:cover;display:block}
.fly .fc.fb{display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:32px;color:#efd9a4;letter-spacing:.1em}
.fly .cap{
  display:block;margin-top:9px;font-size:11px;letter-spacing:.18em;color:#e8d0a0;
  text-shadow:0 2px 10px #000;white-space:nowrap;
}
.fly.go{animation:flyCard 1.56s cubic-bezier(.16,.7,.24,1) forwards}
@keyframes flyCard{
  0%{opacity:0;transform:translate(-50%,-30%) scale(.62) rotate(-6deg);filter:blur(3px)}
  12%{opacity:1;filter:blur(0)}
  26%{transform:translate(-50%,-58%) scale(1.06) rotate(0deg)}
  38%{transform:translate(-50%,-54%) scale(1.01)}
  72%{opacity:1;transform:translate(-50%,-58%) scale(1)}
  100%{opacity:0;transform:translate(-50%,-72%) scale(.96)}
}

/* ---------- 技能 tooltip ---------- */
.tipbox{
  position:fixed;z-index:96;max-width:280px;min-width:170px;padding:10px 12px;border-radius:8px;
  background:linear-gradient(180deg,rgba(26,17,12,.99),rgba(10,7,5,.99));
  border:1px solid rgba(206,164,96,.55);box-shadow:0 16px 38px rgba(0,0,0,.65);
  font-size:12px;line-height:1.8;color:#d6e0d5;opacity:0;transform:translateY(6px);
  transition:opacity .14s ease,transform .14s ease;pointer-events:none;
}
.tipbox.on{opacity:1;transform:none;pointer-events:auto}
.tipbox .tn{font-family:var(--serif);font-size:15px;color:#f1ddb3;letter-spacing:.12em;margin-bottom:3px}
.tipbox .tt{font-size:10px;color:#a08d68;border:1px solid rgba(206,164,96,.3);border-radius:3px;padding:0 5px;margin-left:7px;letter-spacing:.06em}
.tipbox .td{color:#cdd8cc}
.tipbox .tuse{margin-top:9px;width:100%}

/* ---------- 五选一 ---------- */
.draft-modal{width:min(940px,95vw)}
.draft-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.draft-head .sub{margin:0;color:#9b8d78;font-size:12px}
.draft-ask{display:flex;justify-content:center;gap:12px;padding:28px 0 22px}
.draft-ask .btn{padding:11px 26px}
.draft-grid{grid-template-columns:repeat(5,1fr);gap:12px}
.draft-grid .gen-item{height:208px}
.switch{
  display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#d8c9a4;cursor:pointer;
  border:1px solid rgba(206,164,96,.28);border-radius:6px;padding:7px 11px;background:rgba(255,255,255,.02);
}
.switch input{accent-color:#caa55f;width:14px;height:14px}

.gsk{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}
.gskill{
  font-size:10px;line-height:1.55;padding:2px 7px;border-radius:3px;cursor:pointer;
  color:#f0dfb8;background:rgba(0,0,0,.5);border:1px solid rgba(206,164,96,.4);
  transition:background .15s,border-color .15s;
}
.gskill:hover{background:rgba(206,164,96,.22);border-color:rgba(230,190,120,.75)}
.gen-mark{
  position:absolute;top:7px;right:7px;z-index:3;font-size:10px;letter-spacing:.1em;
  background:linear-gradient(180deg,#ffe6b3,#d8b063);color:#241b0c;padding:2px 7px;border-radius:3px;font-weight:700;
}

/* ---------- 桌面牌桌：座位环绕 ---------- */
@media (min-width:901px) and (min-height:620px){
  .me{grid-template-columns:minmax(0,1fr) 152px}
  .me-card{order:2}
  .me-right{order:1}
  .seats{position:absolute;left:0;right:330px;top:46px;bottom:222px;display:block;padding:0;
    overflow:visible;pointer-events:none;z-index:5}
  .seat{position:absolute;left:var(--sx,50%);top:var(--sy,28%);transform:translate(-50%,-50%);
    width:150px;min-width:0;height:186px;pointer-events:auto}
  .seat:hover{transform:translate(-50%,-50%) translateY(-2px)}
}

/* ---------- 手机横屏 ---------- */
@media (orientation:landscape) and (max-height:560px){
  #table{display:grid;grid-template-columns:minmax(0,1fr) 186px;
    grid-template-rows:32px minmax(0,1fr) 116px;
    grid-template-areas:"top top" "center side" "me me";
    height:100vh;height:100dvh;overflow:hidden}
  .topbar{grid-area:top;padding:3px 10px;gap:8px;flex-wrap:nowrap;font-size:11px;min-height:0}
  .topbar .ph{font-size:12px}
  .topbar .rd{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .btn{padding:4px 8px;font-size:11px}
  .seats{position:absolute;left:0;right:190px;top:34px;bottom:118px;display:block;padding:0;
    overflow:visible;pointer-events:none;z-index:6}
  .seat{position:absolute;left:var(--sx,50%);top:var(--sy,28%);transform:translate(-50%,-50%);
    width:136px;min-width:0;height:82px;border-radius:6px;pointer-events:auto}
  .seat:hover{transform:translate(-50%,-50%) translateY(-1px)}
  .seat .art{background-position:center 22%}
  .seat .nm{padding:4px 7px;font-size:11px;gap:4px}
  .seat .idtag{top:4px;right:4px;font-size:9px;padding:1px 4px}
  .seat .gen{font-size:9px;margin-top:1px;padding:0;bottom:52px}
  .seat .hp{font-size:8px;letter-spacing:0;margin-top:1px;bottom:38px}
  .seat .hcnt{font-size:9px;bottom:3px;right:6px}
  .seat .eqtags{display:flex;left:5px;right:5px;bottom:14px;max-height:21px;overflow:hidden}
  .seat .rows{display:none}
  .seat .deadmask{font-size:14px}
  .center{display:contents}
  .tablezone{grid-area:center;margin:4px 6px;min-width:0;border-radius:10px}
  .watermark{font-size:min(26vh,120px)}
  .piles{top:auto;bottom:9px;gap:18px}
  .stack{width:44px;height:62px}
  .tablehint{left:10px;top:6px;bottom:auto;font-size:9px}
  .fly .fc{width:100px;height:140px}
  .fly .cap{font-size:10px}
  .side{grid-area:side;width:auto;display:flex;flex-direction:column;gap:5px;padding:4px 6px 4px 0;min-height:0;overflow:hidden}
  .logpanel{flex:1 1 auto;min-height:70px}
  .loghead{padding:5px 8px;font-size:10px}
  .log{font-size:10px;line-height:1.6;padding:5px 8px}
  .chat{flex:0 0 74px;height:74px;min-height:74px}
  .chat-title{font-size:10px;padding:3px 8px}
  .chatlog{font-size:10px;padding:2px 8px;min-height:0}
  .chatrow{padding:3px 6px 5px;gap:4px}
  .chatrow .input{font-size:11px;padding:4px 7px}
  .me{grid-area:me;display:grid;grid-template-columns:128px minmax(0,1fr) 200px;
      grid-template-rows:30px minmax(0,1fr);grid-template-areas:"info info prompt" "skills hand prompt";
      padding:4px 8px 5px;gap:2px 8px;min-height:0}
  .me-card{display:none}
  .me-right{display:contents}
  .me-top{grid-area:info;font-size:9.5px;gap:3px;white-space:normal;overflow:hidden;line-height:1.35;display:flex;flex-wrap:wrap;align-content:flex-start}
  .me-top .id{padding:0 5px;font-size:9px}
  .equip-row{display:none}
  .skill-row{grid-area:skills;gap:4px;flex-wrap:nowrap;overflow-x:auto;align-content:start;align-items:flex-start}
  .skill-row .skill{font-size:10px;padding:3px 7px;letter-spacing:.04em;flex:0 0 auto}
  .skill{font-size:10px;padding:2px 7px}
  .prompt{grid-area:prompt;font-size:10px;padding:2px 4px;min-height:0;overflow-y:auto;justify-content:flex-end}
  .prompt.cards-mode{grid-column:2 / 4;grid-row:2;z-index:20;margin-left:2px;
    background:linear-gradient(180deg,rgba(46,30,20,.98),rgba(18,12,8,.99));
    flex-wrap:nowrap;align-items:center;overflow:hidden;padding:4px 6px}
  .prompt.cards-mode .reason{flex:1 1 140px;min-width:110px;font-size:10px;line-height:1.35}
  .prompt.cards-mode .btns{flex:0 0 auto;gap:5px}
  .prompt.cards-mode .mini-hand{width:auto;flex:1 1 180px;min-width:0;padding-top:0;gap:5px}
  .prompt.cards-mode .card{width:42px;height:58px;flex:0 0 auto}
  .prompt.cards-mode .card .cname{font-size:8px;padding:1px 2px}
  .prompt.cards-mode .card .pip{font-size:9px}
  .cards-prompt .hand{visibility:hidden}
  .prompt.wide{grid-column:2 / 4;grid-row:2;z-index:20;margin-left:2px;
    display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"reason btns";
    gap:4px 8px;align-items:center;overflow:hidden;padding:5px 8px;
    background:linear-gradient(180deg,rgba(46,30,20,.98),rgba(18,12,8,.99))}
  .prompt.wide .reason{grid-area:reason;min-width:0;font-size:11px;line-height:1.35;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .prompt.wide .btns{grid-area:btns;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;min-width:0}
  .prompt.wide .btns .btn{padding:5px 10px;font-size:11px;flex:0 0 auto}
  .hand{grid-area:hand;gap:6px;min-height:0;padding:2px 0;align-items:center}
  .card{width:56px;height:78px;border-radius:5px}
  .card .cname{font-size:10px}
  .hand .playbtn{font-size:11px}
  .modal{max-height:88vh;overflow:auto}
  .audio-btn{top:4px;bottom:auto;right:112px;width:26px;height:26px;font-size:13px;z-index:40}
  .me-top .myname{color:#f1ddb3;font-family:var(--serif);letter-spacing:.06em}
  .me-top .hpmini{color:#ff9d8a;white-space:nowrap;max-width:none}
  .seat .nm{text-shadow:0 2px 8px rgba(0,0,0,.95);background:linear-gradient(180deg,rgba(0,0,0,.55),transparent)}
  .hand{padding-right:10px}
  .hand .card{flex:0 0 auto}
  .home-wrap{width:min(520px,94vw);padding:0}
  .brand{font-size:46px}
  .brand-sub{font-size:12px;margin-top:2px}
  .home-panel{padding:12px 16px;margin-top:10px}
  .room-body{padding:4px 14px 10px;gap:10px}
  .room-head{padding:10px 14px 4px}
  .seat-tile{height:118px}

}

/* ---------- 手机竖屏牌桌：紧凑座位 + 独立我的面板 ---------- */
@media (max-width:560px) and (orientation:portrait){
  #table{overflow:hidden}
  .topbar{padding:4px 8px;gap:5px;flex-wrap:nowrap;font-size:10px;min-height:0}
  .topbar .ph{font-size:13px;white-space:nowrap}
  .topbar .rd{display:none}
  .topbar .btn{padding:4px 7px;font-size:10px;white-space:nowrap}
  .seats{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
    padding:6px 8px 8px;overflow:visible;flex:0 0 auto;
  }
  .seat{
    width:auto;min-width:0;height:112px;border-radius:7px;
    box-shadow:0 4px 12px rgba(0,0,0,.35);
  }
  .seat .art{background-position:center 22%}
  .seat .nm{top:3px;left:5px;right:5px;font-size:9px;line-height:1.2;gap:2px}
  .seat .idtag{top:17px;left:5px;font-size:8px;padding:0 3px;border-radius:2px}
  .seat .gen{left:5px;right:5px;bottom:60px;font-size:10px;line-height:1.25}
  .seat .hp{left:5px;bottom:46px;font-size:8px;letter-spacing:0}
  .seat .hcnt{right:4px;bottom:3px;font-size:8px;padding:0 3px;border-radius:2px}
  .seat .eqtags{display:flex;left:4px;right:4px;bottom:23px;max-height:21px;overflow:hidden}
  .seat .rows{display:none}
  .seat .deadmask{font-size:12px}
  .center{display:block;flex:1;margin:0 8px 6px;min-height:150px}
  .tablezone{height:100%;min-height:150px;flex:none;border-radius:10px}
  .side{display:none}
  .watermark{font-size:min(18vh,96px)}
  .piles{top:10px;gap:16px}
  .stack{width:42px;height:58px;border-radius:5px}
  .s-glyph{font-size:20px}
  .tablehint{left:10px;bottom:7px;font-size:9px;letter-spacing:.12em}
  .fly .fc{width:96px;height:134px}
  .fly .cap{font-size:10px}
  .me{
    grid-template-columns:minmax(0,1fr) 84px;gap:6px 8px;padding:6px 8px 7px;
    border-top:1px solid rgba(206,164,96,.25);
  }
  .me-card{order:2;height:112px;border-radius:7px}
  .me-card .info{padding:5px}
  .me-card .info .n{font-size:11px}
  .me-card .info .h{font-size:9px;margin-top:1px}
  .me-right{order:1;gap:5px}
  .me-top{font-size:9px;gap:3px;line-height:1.3}
  .me-top .id{padding:1px 5px}
  .equip-row{display:none}
  .me-top .eqtag{font-size:8px;padding:1px 3px}
  .skill-row{gap:4px}
  .skill{font-size:11px;padding:3px 8px;letter-spacing:.05em}
  .prompt{padding:5px 7px;gap:5px;font-size:10px;border-radius:6px}
  .prompt .reason{min-width:0;font-size:11px;line-height:1.4;flex:1 1 100%}
  .prompt .btns{gap:5px}
  .prompt .btns .btn{padding:5px 10px;font-size:11px}
  .prompt.cards-mode .mini-hand{width:100%;gap:4px}
  .prompt.cards-mode .card{width:40px;height:56px}
  .cards-prompt .hand{visibility:hidden}
  .hand{gap:5px;min-height:82px;padding:2px 0 0;overflow-x:auto}
  .card{width:56px;height:78px;flex:0 0 auto}
  .card .cname{font-size:9px}
  .quick-play{bottom:10px;padding:6px 16px;font-size:12px}
}

.modal .eqtag{font-size:10px;padding:2px 5px;margin-right:4px;border-radius:4px}
.modal .eqtag i{font-size:10px}
.modal .judge-tag{font-size:10px;padding:2px 5px;margin-right:4px}

/* ---------- 音量滑条 ---------- */
.set-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:150px}
.vol-line{display:flex;align-items:center;gap:7px}
.vol-line input[type=range]{
  -webkit-appearance:none;appearance:none;width:110px;height:4px;border-radius:4px;
  background:linear-gradient(90deg,rgba(206,164,96,.75),rgba(206,164,96,.18));outline:none;
}
.vol-line input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;
  background:linear-gradient(180deg,#f1d79d,#b98a44);border:1px solid rgba(255,235,190,.7);
  box-shadow:0 2px 6px rgba(0,0,0,.5);cursor:pointer;
}
.vol-line input[type=range]::-moz-range-thumb{
  width:14px;height:14px;border-radius:50%;background:#d8b268;border:1px solid #f3dca8;cursor:pointer;
}
.vol-line em{font-style:normal;font-size:10px;color:#b8a77f;width:34px;text-align:right;font-variant-numeric:tabular-nums}

/* ---------- 装备 / 判定区标签 ---------- */
.eqtags{display:none;position:absolute;left:5px;right:46px;bottom:2px;gap:2px;flex-wrap:wrap;align-content:flex-end;z-index:2;pointer-events:none}
.eqtag{
  display:inline-flex;align-items:center;gap:1px;min-width:0;
  padding:0 2px;border-radius:3px;font-size:8px;line-height:1.1;
  color:#e4d3aa;background:rgba(8,5,3,.82);border:1px solid rgba(206,164,96,.32);
  white-space:nowrap;text-shadow:0 1px 3px #000;
}
.eqtag i{font-style:normal;color:#e6b969;font-size:8px;line-height:1}
.eqtag.judge{color:#f0b0a5;border-color:rgba(214,107,94,.42)}
.eqtag.judge i{color:#ff8f7f}

/* ---------- 提示栏：操作按钮保持一行，选牌不上下滚动 ---------- */
.fly .cap{max-width:190px;white-space:normal;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.prompt .btns{flex-wrap:nowrap;min-width:0}
.prompt .btns .btn{flex:0 0 auto}
.prompt.cards-mode{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"reason btns" "cards cards";
  align-items:center;gap:4px 8px;overflow:hidden;
}
.prompt.cards-mode .reason{
  grid-area:reason;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.prompt.cards-mode .btns{grid-area:btns;flex-wrap:nowrap}
.prompt.cards-mode .mini-hand{grid-area:cards;width:100%;min-width:0;overflow-x:auto;padding-top:0}

/* ================= 2026-11-24：大选牌面板 / 倒计时 / 座位装备栏重构 ================= */
/* 首页倒计时提示 */
.field-tip{font-size:11px;color:#7f8d82;line-height:1.5}
.create-hint{font-size:10px;color:#6f7d72;margin-top:5px;line-height:1.5}

/* 顶栏倒计时 */
.tb-clock{
  display:none;font-size:11px;font-variant-numeric:tabular-nums;
  color:#ffe0a3;background:rgba(206,164,96,.12);border:1px solid rgba(206,164,96,.35);
  padding:1px 7px;border-radius:10px;white-space:nowrap;
}
.tb-clock.on{display:inline-block}
@media (orientation:landscape) and (max-height:560px){
  .tb-clock{font-size:10px;padding:1px 5px}
}

/* 提示栏在中央选牌时只占位不显示，避免小面板挡字 */
.prompt.choice-hidden{visibility:hidden;pointer-events:none}

/* 中央大选牌面板：五谷丰登 / 观星 / 顺拆 / 弃牌 */
.choice-layer{
  position:fixed;inset:0;z-index:92;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(4,3,2,.62);backdrop-filter:blur(3px);
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease;
}
.choice-layer.on{opacity:1;visibility:visible;pointer-events:auto}
.choice-panel{
  width:min(820px,94vw);max-height:90vh;display:flex;flex-direction:column;
  border-radius:14px;overflow:hidden;padding:12px 14px 10px;
  background:
    radial-gradient(100% 60% at 50% 0%,rgba(124,72,38,.42),transparent 62%),
    linear-gradient(180deg,rgba(31,20,13,.99),rgba(10,7,5,.995));
  border:1px solid rgba(226,180,92,.48);
  box-shadow:0 28px 80px rgba(0,0,0,.72),inset 0 1px 0 rgba(255,240,210,.08);
  transform:translateY(6px) scale(.985);transition:transform .18s ease;
}
.choice-layer.on .choice-panel{transform:none}
.choice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:1px 2px 8px;border-bottom:1px solid rgba(206,164,96,.14)}
.choice-title{font-family:var(--serif);font-size:17px;line-height:1.3;color:#f3dca8;letter-spacing:.08em;text-shadow:0 2px 10px #000}
.choice-sub{font-size:11px;color:#9ca99e;line-height:1.5;margin-top:3px}
.choice-clock{font-size:11px;color:#ffdf9c;background:rgba(206,164,96,.12);border:1px solid rgba(206,164,96,.32);border-radius:12px;padding:2px 8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.choice-grid{
  flex:1 1 auto;min-height:100px;max-height:calc(90vh - 152px);overflow:auto;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,86px));
  justify-content:center;align-content:center;gap:10px 12px;padding:12px 8px;
}
.choice-layer .card{
  width:68px;height:96px;flex:0 0 auto;transform:none!important;border-radius:6px;
  box-shadow:0 8px 18px rgba(0,0,0,.45);
}
.choice-layer .card:hover{transform:translateY(-4px)!important;box-shadow:0 0 0 1px #ffd97a,0 12px 24px rgba(0,0,0,.55)}
.choice-layer .card.sel{outline:2px solid #ffe0a3;outline-offset:2px;box-shadow:0 0 0 1px rgba(255,224,163,.65),0 0 22px rgba(255,210,130,.38)}
.choice-layer .card .pip{font-size:10px}
.choice-layer .card .cname{font-size:10px}
.choice-empty{grid-column:1 / -1;text-align:center;color:#7f8d82;font-size:12px;padding:20px}
.choice-foot{display:flex;align-items:center;gap:10px;padding:7px 2px 2px;border-top:1px solid rgba(206,164,96,.14)}
.choice-count{font-size:11px;color:#9fb0a4;white-space:nowrap;font-variant-numeric:tabular-nums}
.choice-count b{color:#ffe0a3;font-size:13px}
.choice-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.choice-actions .btn{padding:7px 14px;font-size:12px}
.choice-tip{text-align:center;font-size:10px;color:#8b7d69;letter-spacing:.08em;padding-top:3px}
@media (orientation:landscape) and (max-height:560px){
  .choice-layer{padding:8px 12px}
  .choice-panel{width:min(820px,90vw);max-height:96vh;padding:8px 12px 6px}
  .choice-head{padding-bottom:5px}
  .choice-title{font-size:14px}
  .choice-sub{font-size:10px}
  .choice-grid{max-height:calc(96vh - 112px);padding:8px 6px;gap:8px 10px;min-height:80px}
  .choice-layer .card{width:58px;height:82px}
  .choice-foot{padding-top:4px}
  .choice-tip{font-size:9px;padding-top:1px}
}
@media (max-width:560px) and (orientation:portrait){
  .choice-layer{padding:10px}
  .choice-panel{width:100%;max-height:92vh;padding:10px 11px 8px}
  .choice-title{font-size:16px}
  .choice-grid{grid-template-columns:repeat(auto-fit,minmax(62px,1fr));gap:8px 9px;padding:10px 2px}
  .choice-layer .card{width:62px;height:88px;margin:0 auto}
  .choice-actions .btn{padding:8px 16px;font-size:12px}
}

/* 横屏座位：更宽的竖卡，底部独立装备/判定栏，手牌数移到右上角 */
@media (orientation:landscape) and (max-height:560px){
  .seat{width:150px;height:96px;border-radius:7px}
  .seats.many .seat{width:132px;height:92px}
  .seat .nm{top:3px;left:6px;right:6px;padding-right:40px;font-size:11px;line-height:1.3}
  .seat .nm > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .seat .idtag{top:20px;left:6px;font-size:8px;padding:0 4px}
  .seat .hcnt{top:3px;right:4px;bottom:auto;font-size:9px;padding:1px 4px;border-radius:8px;background:rgba(0,0,0,.72);border:1px solid rgba(206,164,96,.25);z-index:3}
  .seat .gen{left:6px;right:6px;bottom:48px;font-size:9px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .seat .hp{left:6px;bottom:34px;font-size:8px;line-height:1.1}
  .seat .eqtags{
    display:flex;left:0;right:0;bottom:0;max-height:32px;min-height:18px;overflow:hidden;
    padding:2px 5px 3px;gap:2px;align-content:flex-end;
    background:linear-gradient(180deg,rgba(5,3,2,.22),rgba(5,3,2,.9) 38%,rgba(5,3,2,.98));
    border-top:1px solid rgba(206,164,96,.18);backdrop-filter:blur(2px);
  }
  .seat .eqtag{font-size:7.5px;line-height:1.15;padding:0 2px;border-radius:2px}
  .seat .eqtag i{font-size:7.5px}
  .seat .rows{display:none}
  .seats.many .seat .nm{padding-right:34px}
  .seats.many .seat .eqtag{font-size:7px}
}

/* 竖屏座位：同样把装备/判定收进底部栏，避免和身份、手牌数打架 */
@media (max-width:560px) and (orientation:portrait){
  .seat{height:124px}
  .seat .nm{top:3px;left:5px;right:5px;padding-right:28px;font-size:9px}
  .seat .nm > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
  .seat .idtag{top:18px;left:5px;font-size:8px;padding:0 3px}
  .seat .hcnt{top:2px;right:3px;bottom:auto;font-size:8px;padding:0 3px;border-radius:7px;background:rgba(0,0,0,.72);border:1px solid rgba(206,164,96,.22);z-index:3}
  .seat .gen{left:5px;right:5px;bottom:62px;font-size:10px;line-height:1.2}
  .seat .hp{left:5px;bottom:48px;font-size:8px;line-height:1.1}
  .seat .eqtags{
    display:flex;left:0;right:0;bottom:0;max-height:42px;min-height:20px;overflow:hidden;
    padding:2px 4px 3px;gap:2px;align-content:flex-end;
    background:linear-gradient(180deg,rgba(5,3,2,.2),rgba(5,3,2,.91) 36%,rgba(5,3,2,.98));
    border-top:1px solid rgba(206,164,96,.18);
  }
  .seat .eqtag{font-size:7px;line-height:1.15;padding:0 2px;border-radius:2px}
  .seat .eqtag i{font-size:7px}
  .seat .rows{display:none}
}

/* 竖屏座位：隐藏重复的上/下家角标，把宽度留给昵称和手牌数 */
@media (max-width:560px) and (orientation:portrait){
  .seat .rel{display:none}
  .seat .nm{font-size:9px;letter-spacing:.02em}
}

/* 选牌再大一号：手机端尽量让牌面占满面板 */
.choice-layer .card{width:72px;height:102px}
@media (orientation:landscape) and (max-height:560px){
  .choice-layer .card{width:70px;height:98px}
}
@media (max-width:560px) and (orientation:portrait){
  .choice-layer .card{width:74px;height:106px}
}

/* 防止手机双击牌面时触发页面缩放 */
.card,.btn,.seat,.choice-grid .card{touch-action:manipulation;user-select:none;-webkit-user-select:none}

/* 手机横屏：操作栏独占底部一行，手牌永远不被提示条盖住 */
@media (orientation:landscape) and (max-height:560px){
  #table{grid-template-rows:32px minmax(0,1fr) 148px}
  .seats{left:0;right:190px;top:34px;bottom:150px}
  .me{
    grid-template-columns:128px minmax(0,1fr) 200px;
    grid-template-rows:26px minmax(0,1fr) 40px;
    grid-template-areas:"info info info" "skills hand hand" "prompt prompt prompt";
    padding:3px 8px 4px;gap:1px 8px;
  }
  .me-top{grid-area:info;min-height:0}
  .skill-row{grid-area:skills;min-height:0}
  .hand{grid-area:hand;min-height:0;padding:1px 0;align-items:center;overflow-x:auto}
  .prompt{
    grid-area:prompt;align-items:center;justify-content:flex-start;
    padding:4px 10px;min-height:0;overflow:hidden;font-size:10px;
  }
  .prompt.on{display:flex}
  .prompt.wide,.prompt.cards-mode{
    grid-column:1 / 4!important;grid-row:3!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"reason btns";align-items:center;gap:4px 10px;
    padding:5px 10px;margin:0;overflow:hidden;
  }
  .prompt.wide .reason,.prompt.cards-mode .reason{grid-area:reason;min-width:0;font-size:10.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .prompt.wide .btns,.prompt.cards-mode .btns{grid-area:btns;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;min-width:0}
  .prompt.wide .btns .btn,.prompt.cards-mode .btns .btn{padding:5px 10px;font-size:10.5px;flex:0 0 auto}
  .prompt.cards-mode .mini-hand{display:none}
  .prompt.choice-hidden{visibility:hidden;pointer-events:none}
  .card{width:54px;height:75px}
  .hand .card{height:74px}
}

/* 选牌网格按可用宽度自然分列，避免 8 张时出现 7+1 的孤牌 */
.choice-grid{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))!important}
@media (max-width:560px) and (orientation:portrait){
  .choice-grid{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))!important}
}

/* 选牌最终尺寸：8 张一排也能放下 */
.choice-layer .card{width:76px;height:106px}
@media (orientation:landscape) and (max-height:560px){
  .choice-layer .card{width:78px;height:108px}
}

/* ================= 2026-11-24 追加：不限时 / 无位移选中 / 杀闪横幅 ================= */
/* 选中牌保留上移动画，但手牌区预留顶部空间，上移后不会被框裁掉 */
.card.playable:hover{transform:translateY(-9px)!important}
.card.sel,
.card.sel:hover{transform:translateY(-11px)!important}
.card.sel{
  border-color:#ffe0a3!important;
  box-shadow:inset 0 0 0 2px #ffd97a,0 6px 14px rgba(0,0,0,.45),0 0 18px rgba(255,217,122,.32)!important;
}
.card.sel:not(.hidden-card)::after{
  content:"✓";position:absolute;top:4px;right:4px;z-index:6;
  width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#ffe8ae,#d8a24a);color:#221407;font-size:11px;font-weight:900;
  box-shadow:0 2px 7px rgba(0,0,0,.75);
}
.choice-layer .card:hover:not(.sel){transform:translateY(-4px)!important}
.choice-layer .card.sel{transform:translateY(-9px)!important}
.choice-layer .card.sel{
  outline:none!important;
  box-shadow:inset 0 0 0 2px #ffd97a,0 0 18px rgba(255,210,130,.34)!important;
}

/* 手牌顶部留出上移高度；横向滚动仍保留 */
.hand{padding-top:14px;min-height:125px}
@media (max-width:560px) and (orientation:portrait){
  .hand{padding-top:12px;min-height:94px}
}

/* 横屏手牌也留出上移高度，同时把底部操作区补高 */
@media (orientation:landscape) and (max-height:560px){
  #table{grid-template-rows:32px minmax(0,1fr) 164px}
  #table.reply-on{grid-template-rows:32px minmax(0,1fr) 196px}
  .hand{padding-top:12px;padding-bottom:1px;min-height:86px}
  #table.reply-on .me{grid-template-rows:24px 30px minmax(0,1fr) 38px}
}

/* 出杀/出闪：手牌上方的小横幅，不弹中央面板 */
.reply-bar{
  display:none;align-items:center;gap:8px;min-width:0;
  width:max-content;max-width:min(720px,100%);align-self:flex-start;
  padding:5px 9px;border-radius:7px;
  background:linear-gradient(90deg,rgba(92,50,20,.96),rgba(28,18,11,.98));
  border:1px solid rgba(232,180,96,.55);
  box-shadow:0 5px 18px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,232,190,.08);
}
.reply-bar.on{display:flex}
.reply-mark{
  flex:0 0 auto;width:22px;height:22px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(206,164,96,.16);border:1px solid rgba(232,180,96,.5);
  color:#ffe0a3;font-size:13px;
}
.reply-main{flex:1 1 auto;min-width:0;display:flex;align-items:baseline;gap:8px}
.reply-text{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#ffe6b6;font-size:12px;line-height:1.3;
}
.reply-tip{flex:0 0 auto;color:#a99470;font-size:10px;white-space:nowrap}
.reply-clock{
  flex:0 0 auto;color:#ffe0a3;font-size:10px;font-variant-numeric:tabular-nums;
  border:1px solid rgba(206,164,96,.34);border-radius:10px;padding:1px 7px;white-space:nowrap;
  background:rgba(0,0,0,.18);
}
.reply-cancel{flex:0 0 auto;padding:3px 9px;font-size:10px}
@media (max-width:560px){
  .reply-bar{padding:4px 7px;gap:6px}
  .reply-mark{width:18px;height:18px;font-size:11px}
  .reply-text{font-size:11px}
  .reply-tip{display:none}
  .reply-clock{font-size:9px;padding:0 5px}
  .reply-cancel{padding:3px 7px;font-size:9.5px}
}

/* 横屏：横幅单独占一行，放在手牌正上方；其余区域顺延 */
@media (orientation:landscape) and (max-height:560px){
  #table.reply-on{grid-template-rows:32px minmax(0,1fr) 176px}
  #table.reply-on .me{
    grid-template-rows:24px 30px minmax(0,1fr) 38px;
    grid-template-areas:"info info info" "reply reply reply" "skills hand hand" "prompt prompt prompt";
  }
  .reply-bar{grid-area:reply;justify-self:start;margin:0;padding:3px 8px;min-height:0;gap:6px;border-radius:6px}
  .reply-bar .reply-text{font-size:10.5px}
  .reply-bar .reply-clock{font-size:9px}
  .reply-bar .reply-cancel{padding:2px 7px;font-size:9.5px}
}

/* 横屏最终尺寸：手牌上方留出选中牌上移的高度，底部区域同步补高 */
@media (orientation:landscape) and (max-height:560px){
  #table{grid-template-rows:32px minmax(0,1fr) 164px}
  #table.reply-on{grid-template-rows:32px minmax(0,1fr) 196px}
  .hand{padding-top:12px;padding-bottom:1px;min-height:86px}
  #table.reply-on .me{grid-template-rows:24px 30px minmax(0,1fr) 38px}
}

/* ================= 2026-11-24 继续：紧凑出牌栏 / 选牌网格顶部余量 ================= */
/* 选牌面板顶部多留一点，选中牌上移不会被裁 */
.choice-grid{padding-top:14px!important}

/* 出牌阶段的空闲栏和“已选非目标牌”收成小胶囊，不再拉一条全宽横条 */
.prompt.play-idle,
.prompt.play-select{
  width:max-content!important;max-width:calc(100% - 8px)!important;
  align-self:flex-end;
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;
}
.prompt.play-idle .reason{display:none}
.prompt.play-select{
  padding:4px 8px!important;
  background:linear-gradient(180deg,rgba(48,31,19,.94),rgba(18,12,8,.96))!important;
  border:1px solid rgba(206,164,96,.34)!important;border-radius:6px;
}
.prompt.play-idle .btns,
.prompt.play-select .btns{margin-left:auto}
.prompt.play-idle .btns .btn,
.prompt.play-select .btns .btn{padding:5px 12px;font-size:11px}
@media (orientation:landscape) and (max-height:560px){
  .prompt.play-idle,.prompt.play-select{
    grid-column:1 / 4!important;grid-row:3!important;
    justify-self:end!important;align-self:center!important;
    margin:0 6px 0 0!important
  }
  .prompt.play-idle .btns .btn,
  .prompt.play-select .btns .btn{padding:4px 12px;font-size:10.5px}
}

/* 选择目标时也只用右下角小条，不再横贯整行 */
.prompt.play-target{
  width:max-content!important;max-width:calc(100% - 8px)!important;
  align-self:flex-end;
  padding:4px 8px!important;
  background:linear-gradient(180deg,rgba(48,31,19,.94),rgba(18,12,8,.96))!important;
  border:1px solid rgba(206,164,96,.34)!important;border-radius:6px;
  box-shadow:0 4px 14px rgba(0,0,0,.3)!important;
}
.prompt.play-target .btns{margin-left:auto}
.prompt.play-target .btns .btn{padding:5px 12px;font-size:11px}
@media (orientation:landscape) and (max-height:560px){
  .prompt.play-target{
    display:flex!important;grid-column:1 / 4!important;grid-row:3!important;
    grid-template-columns:none!important;
    justify-self:end!important;align-self:center!important;margin:0 6px 0 0!important
  }
  .prompt.play-target .btns .btn{padding:4px 12px;font-size:10.5px}
}

/* ================= 2026-11-24 对齐原版：横屏底部不再留大空白 ================= */
/* 手牌贴底、出牌按钮浮在右下角；玩家信息压缩成一行，技能留在左侧 */
@media (orientation:landscape) and (max-height:560px){
  #table{grid-template-rows:32px minmax(0,1fr) 150px}
  #table.reply-on{grid-template-rows:32px minmax(0,1fr) 170px}
  .me{
    position:relative;
    grid-template-columns:112px minmax(0,1fr);
    grid-template-rows:24px minmax(0,1fr);
    grid-template-areas:"info info" "skills hand";
    padding:3px 8px 5px;gap:1px 8px;overflow:visible;
  }
  #table.reply-on .me{
    grid-template-rows:24px minmax(0,1fr)!important;
    grid-template-areas:"info info" "skills hand"!important;
  }
  .me-top{grid-area:info;align-content:center}
  .skill-row{grid-area:skills;align-content:start}
  .hand{
    grid-area:hand;height:100%;min-height:0!important;
    align-items:flex-end!important;
    justify-content:center!important;
    padding:12px 96px 1px 0!important;
    overflow-x:auto;
  }
  .hand .card{height:74px}
  /* 结束出牌/选择目标小条固定右下，不占一整行 */
  .prompt{
    position:absolute!important;
    left:auto!important;right:8px!important;bottom:8px!important;
    width:max-content!important;max-width:calc(100% - 120px)!important;
    grid-area:unset!important;grid-column:auto!important;grid-row:auto!important;
    margin:0!important;z-index:36!important;
  }
  .prompt.wide,.prompt.cards-mode,.prompt.play-idle,.prompt.play-select,.prompt.play-target{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    grid-template-columns:none!important;grid-template-areas:none!important;
    padding:4px 8px!important;
  }
  .prompt.play-idle .reason{display:none!important}
  .prompt.wide .reason,.prompt.play-select .reason,.prompt.play-target .reason{
    flex:1 1 auto;min-width:0!important;max-width:calc(100vw - 240px);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .reply-bar{
    position:absolute!important;left:8px!important;right:auto!important;bottom:84px!important;
    grid-area:unset!important;margin:0!important;
    max-width:calc(100% - 16px)!important;z-index:38!important;
  }
}

/* 逐个目标结算时，当前生效目标轻微高亮 */
.seat.focused{
  border-color:#ffd98b!important;
  box-shadow:0 0 0 2px rgba(255,217,139,.82),0 0 28px rgba(255,203,112,.34)!important;
  animation:focusSeat 1.2s ease-in-out infinite;
}
@keyframes focusSeat{
  0%,100%{box-shadow:0 0 0 2px rgba(255,217,139,.62),0 0 18px rgba(255,203,112,.22)}
  50%{box-shadow:0 0 0 2px rgba(255,217,139,.95),0 0 34px rgba(255,203,112,.48)}
}

/* 再压一档：底部信息+手牌只占 126px，横屏不再出现手牌下方空档 */
@media (orientation:landscape) and (max-height:560px){
  #table{grid-template-rows:32px minmax(0,1fr) 126px}
  #table.reply-on{grid-template-rows:32px minmax(0,1fr) 154px}
  .me{grid-template-rows:22px minmax(0,1fr)}
  #table.reply-on .me{grid-template-rows:22px minmax(0,1fr)!important}
}

/* 受伤/回复反馈：只做滤镜与浮字，不改变座位定位 */
.seat.hit{animation:seatHit .46s ease-out}
.seat.heal{animation:seatHeal .46s ease-out}
@keyframes seatHit{
  0%{filter:none}
  26%{filter:brightness(1.55) saturate(1.35) hue-rotate(-12deg)}
  60%{filter:brightness(1.18) saturate(1.2)}
  100%{filter:none}
}
@keyframes seatHeal{
  0%{filter:none}
  30%{filter:brightness(1.42) saturate(1.1) hue-rotate(35deg)}
  100%{filter:none}
}
.seat .seat-pop{
  position:absolute;left:50%;top:42%;z-index:20;pointer-events:none;
  transform:translate(-50%,-50%);font-family:var(--serif);font-weight:900;
  font-size:22px;line-height:1;text-shadow:0 3px 10px rgba(0,0,0,.9);
  animation:seatPop .65s ease-out forwards;
}
.seat .seat-pop.hit{color:#ff8e78}
.seat .seat-pop.heal{color:#9fe4a6}
@keyframes seatPop{
  0%{opacity:0;transform:translate(-50%,-20%) scale(.7)}
  28%{opacity:1;transform:translate(-50%,-72%) scale(1.08)}
  100%{opacity:0;transform:translate(-50%,-130%) scale(1)}
}

/* ================= 2026-11-24 最后一遍主次比例：角色/手牌/牌堆放大 ================= */
@media (orientation:landscape) and (max-height:560px){
  #table{
    grid-template-columns:minmax(0,1fr) 176px!important;
    grid-template-rows:30px minmax(0,1fr) 146px!important;
  }
  #table.reply-on{grid-template-rows:30px minmax(0,1fr) 176px!important}
  .seats{left:0;right:180px;top:32px;bottom:150px}
  .seat{width:164px;height:106px;border-radius:7px}
  .seats.many .seat{width:142px;height:96px}
  .seat .nm{top:3px;left:6px;right:6px;font-size:12px;padding-right:38px;line-height:1.25}
  .seat .idtag{top:20px;left:6px;font-size:9px}
  .seat .gen{left:6px;right:6px;bottom:51px;font-size:11px;line-height:1.25}
  .seat .hp{left:6px;bottom:36px;font-size:9px}
  .seat .hcnt{top:3px;right:4px;font-size:9px;padding:1px 5px}
  .seat .eqtags{left:3px;right:3px;bottom:0;max-height:30px;padding:2px 4px 3px}
  .seat .rows{display:none}
  .tablezone{margin:4px 5px}
  .piles{bottom:11px;gap:24px}
  .stack{width:70px;height:100px;border-radius:7px}
  .stack.deck::before{inset:6px}
  .watermark{font-size:min(24vh,110px)}
  .me{
    grid-template-columns:108px minmax(0,1fr)!important;
    grid-template-rows:22px minmax(0,1fr)!important;
    grid-template-areas:"info info" "skills hand"!important;
    padding:4px 8px 5px!important;gap:0 8px!important;
  }
  #table.reply-on .me{
    grid-template-rows:22px 28px minmax(0,1fr)!important;
    grid-template-areas:"info info" "reply reply" "skills hand"!important;
  }
  .me-top{grid-area:info;font-size:10.5px;gap:4px;align-content:center}
  .skill-row{grid-area:skills;align-content:center;gap:4px}
  .hand{
    grid-area:hand;height:100%;min-height:0!important;
    padding:12px 86px 1px 0!important;
    align-items:flex-end!important;justify-content:center!important;overflow-x:auto;
  }
  .hand .card{width:70px;height:100px}
  .prompt{
    position:absolute!important;right:8px!important;bottom:6px!important;
    width:max-content!important;max-width:calc(100% - 116px)!important;
    grid-area:unset!important;grid-column:auto!important;grid-row:auto!important;
    margin:0!important;z-index:36!important;
  }
  .reply-bar{
    position:absolute!important;left:8px!important;bottom:112px!important;
    grid-area:unset!important;margin:0!important;z-index:38!important;
  }
  #table.reply-on .reply-bar{
    position:static!important;left:auto!important;bottom:auto!important;
    grid-area:reply!important;justify-self:start!important;align-self:center!important;
    margin:0!important;
  }
}


/* 重新选目标时，提示条浮在牌桌下沿，不压住手牌 */
@media (orientation:landscape) and (max-height:560px){
  .prompt.player-pick{
    left:8px!important;right:auto!important;
    top:auto!important;
    bottom:152px!important;
    transform:none!important;
    max-width:calc(100% - 24px)!important;
    z-index:40!important;
  }
  #table.reply-on .prompt.player-pick{bottom:182px!important}
}

/* ================= 参考原版移动端：细金边提示条 + 桌面浮牌选择 ================= */
.prompt.native-prompt{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  gap:8px!important;padding:3px 8px!important;min-height:26px!important;
  border-radius:2px!important;
  border:1px solid rgba(209,161,73,.55)!important;
  border-left:3px solid #d1a149!important;
  background:linear-gradient(90deg,rgba(10,7,5,.94),rgba(41,27,14,.92) 55%,rgba(12,8,5,.96))!important;
  box-shadow:0 3px 14px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,235,190,.09)!important;
  color:#efd39a!important;
}
.prompt.native-prompt .reason{
  flex:0 1 auto!important;min-width:0!important;
  font-family:var(--serif)!important;font-size:11px!important;line-height:1.25!important;
  color:#f0d3a0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  letter-spacing:.03em!important;text-shadow:0 1px 2px #000!important;
}
.prompt.native-prompt .btns{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;min-width:0!important}
.prompt.native-prompt .btns .btn{
  padding:3px 9px!important;min-height:22px!important;border-radius:2px!important;font-size:10.5px!important;
  line-height:1.15!important;background:linear-gradient(180deg,rgba(44,29,17,.98),rgba(15,10,7,.98))!important;
  border:1px solid rgba(206,164,96,.48)!important;color:#f1d8a8!important;
  box-shadow:inset 0 1px 0 rgba(255,240,210,.06)!important;
}
.prompt.native-prompt .btns .btn.gold{
  background:linear-gradient(180deg,#e7c27c,#b78032)!important;color:#241407!important;
  border-color:#f2d69e!important;font-weight:700!important;
}

/* 选目标：居中细条，点高亮座位即可，不压手牌 */
.prompt.native-prompt.player-pick{
  left:50%!important;right:auto!important;top:auto!important;
  bottom:152px!important;transform:translateX(-50%)!important;
  width:max-content!important;max-width:min(520px,calc(100% - 30px))!important;
  z-index:40!important;
}
#table.reply-on .prompt.native-prompt.player-pick{bottom:182px!important}

/* 选牌：不再铺满黑幕，牌浮在桌面上，提示条压成一条细带 */
.choice-layer{
  padding:24px 12px 14px!important;
  background:linear-gradient(180deg,rgba(2,2,2,.10),rgba(2,2,2,.30))!important;
  backdrop-filter:none!important;
  align-items:center!important;
}
.choice-panel{
  width:min(780px,94vw)!important;max-height:calc(100vh - 34px)!important;
  padding:0!important;border:none!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;
  transform:none!important;
}
.choice-head{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:max-content!important;max-width:100%!important;margin:0 auto 8px!important;
  padding:3px 10px!important;gap:12px!important;
  border:1px solid rgba(209,161,73,.52)!important;border-left:3px solid #d1a149!important;
  border-radius:2px!important;
  background:linear-gradient(90deg,rgba(10,7,5,.94),rgba(41,27,14,.92) 55%,rgba(12,8,5,.96))!important;
  box-shadow:0 3px 14px rgba(0,0,0,.5)!important;
}
.choice-title{
  font-family:var(--serif)!important;font-size:11.5px!important;line-height:1.25!important;
  color:#f0d3a0!important;letter-spacing:.03em!important;text-shadow:0 1px 2px #000!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.choice-sub{font-size:9.5px!important;color:#a99d87!important;line-height:1.25!important;margin-top:0!important;white-space:nowrap!important}
.choice-clock{
  font-size:9.5px!important;color:#ffdf9c!important;background:rgba(206,164,96,.10)!important;
  border:1px solid rgba(206,164,96,.28)!important;border-radius:2px!important;
  padding:2px 6px!important;
}
.choice-grid{
  flex:0 1 auto!important;min-height:0!important;max-height:calc(100vh - 170px)!important;
  width:100%!important;padding:8px 6px!important;gap:10px 12px!important;
  background:transparent!important;justify-content:center!important;align-content:center!important;
  overflow:auto!important;grid-template-columns:repeat(auto-fit,minmax(78px,1fr))!important;
}
.choice-layer .card{
  width:78px!important;height:108px!important;border-radius:6px!important;
  box-shadow:0 8px 22px rgba(0,0,0,.58),0 0 0 1px rgba(206,164,96,.18)!important;
  transform:none!important;
}
.choice-foot{
  display:flex!important;align-items:center!important;gap:10px!important;
  width:max-content!important;max-width:100%!important;margin:8px auto 0!important;
  padding:3px 10px!important;border:1px solid rgba(209,161,73,.45)!important;border-radius:2px!important;
  background:linear-gradient(90deg,rgba(10,7,5,.94),rgba(41,27,14,.92) 55%,rgba(12,8,5,.96))!important;
  box-shadow:0 3px 14px rgba(0,0,0,.48)!important;
}
.choice-count{font-size:10px!important;color:#a99d87!important}
.choice-count b{color:#ffe0a3!important;font-size:11px!important}
.choice-actions .btn{
  padding:3px 9px!important;min-height:22px!important;border-radius:2px!important;font-size:10.5px!important;
  background:linear-gradient(180deg,rgba(44,29,17,.98),rgba(15,10,7,.98))!important;
  border:1px solid rgba(206,164,96,.48)!important;color:#f1d8a8!important;
}
.choice-actions .btn.gold{
  background:linear-gradient(180deg,#e7c27c,#b78032)!important;color:#241407!important;
  border-color:#f2d69e!important;font-weight:700!important;
}
.choice-tip{display:none!important}

@media (orientation:portrait) and (max-width:560px){
  .choice-grid{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;padding:6px 2px!important}
  .choice-layer .card{width:64px!important;height:90px!important}
  .choice-title{font-size:10.5px!important}
  .choice-sub{font-size:9px!important}
}

/* 选牌面板收成一块桌面小面板：不铺黑幕，不再顶到角色卡 */
.choice-layer{
  padding:18px 12px 125px!important;
  background:rgba(2,2,2,.10)!important;
  backdrop-filter:none!important;
  align-items:center!important;
}
.choice-panel{
  width:auto!important;
  min-width:0!important;
  max-width:calc(100vw - 20px)!important;
  max-height:calc(100vh - 170px)!important;
  padding:0!important;
  border:1px solid rgba(209,161,73,.38)!important;
  border-radius:4px!important;
  background:linear-gradient(180deg,rgba(10,7,5,.88),rgba(10,7,5,.62))!important;
  box-shadow:0 18px 56px rgba(0,0,0,.62)!important;
  overflow:hidden!important;
  transform:none!important;
}
.choice-head{
  width:100%!important;max-width:none!important;margin:0!important;
  padding:4px 10px!important;gap:10px!important;
  justify-content:flex-start!important;
  border:none!important;border-left:3px solid #d1a149!important;border-bottom:1px solid rgba(209,161,73,.38)!important;
  border-radius:0!important;
  background:linear-gradient(90deg,rgba(41,27,14,.92),rgba(12,8,5,.94))!important;
  box-shadow:none!important;
}
.choice-head > div{flex:1 1 auto;min-width:0}
.choice-title{font-size:11.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.choice-sub{font-size:9.5px!important}
.choice-clock{flex:0 0 auto!important}
.choice-grid{
  width:100%!important;max-height:calc(100vh - 250px)!important;
  padding:8px 8px!important;gap:10px 12px!important;
  overflow:auto!important;
}
.choice-layer .card{width:78px!important;height:108px!important}
.choice-foot{
  width:100%!important;max-width:none!important;margin:0!important;
  padding:4px 10px!important;gap:8px!important;
  border:none!important;border-top:1px solid rgba(209,161,73,.38)!important;border-radius:0!important;
  background:linear-gradient(90deg,rgba(41,27,14,.92),rgba(12,8,5,.94))!important;
  box-shadow:none!important;
}
.choice-count{font-size:10px!important}
.choice-actions{margin-left:auto!important}
.choice-tip{display:none!important}

@media (orientation:portrait) and (max-width:560px){
  .choice-panel{min-width:calc(100% - 20px)!important}
  .choice-grid{grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;padding:6px!important}
  .choice-layer .card{width:64px!important;height:90px!important}
  .choice-title{font-size:10.5px!important}
  .choice-sub{font-size:9px!important}
}

/* 横屏选牌面板避开右侧战报栏，居中于牌桌本身 */
@media (orientation:landscape) and (max-height:560px){
  .choice-layer{
    padding:18px 184px 125px 12px!important;
  }
  .choice-panel{
    max-width:calc(100vw - 200px)!important;
  }
}
