:root{
  --bg:#080b10;
  --bg2:#0e131b;
  --panel:rgba(20,27,38,.72);
  --panel-solid:#141b26;
  --line:rgba(140,170,200,.14);
  --line2:rgba(140,170,200,.28);
  --txt:#c9d3e0;
  --txt-dim:#7d8a9c;
  --txt-faint:#55606f;
  --accent:#7fb3d5;
  --accent2:#4a7fa5;
  --warm:#c9a227;
  --danger:#c05a4e;
  --ok:#5f9e7a;
  --serif:"Songti SC","STSong","SimSun","Noto Serif SC",serif;
  --sans:"PingFang SC","Microsoft YaHei","Hiragino Sans GB",system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",Consolas,monospace;
  --r:10px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  margin:0;background:var(--bg);color:var(--txt);
  font-family:var(--sans);font-size:15px;line-height:1.75;
  overflow:hidden;
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(90,140,180,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(60,90,130,.08), transparent 60%);
}
body::after{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:9999;
  opacity:.035;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:rgba(120,150,180,.22);border-radius:4px}
::-webkit-scrollbar-track{background:transparent}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;margin:0;letter-spacing:.04em}
button{font-family:var(--sans);cursor:pointer;border:none;background:none;color:inherit;font-size:inherit}
input,textarea{font-family:var(--sans);font-size:inherit}
.hidden{display:none !important}

/* ---------- 通用 ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border-radius:8px;
  border:1px solid var(--line2);background:rgba(127,179,213,.06);
  color:var(--txt);letter-spacing:.08em;font-size:14px;
  transition:.18s;
}
.btn:hover{background:rgba(127,179,213,.14);border-color:rgba(127,179,213,.5)}
.btn:disabled{opacity:.35;cursor:not-allowed}
.btn.primary{
  background:linear-gradient(180deg,rgba(127,179,213,.30),rgba(74,127,165,.20));
  border-color:rgba(127,179,213,.7);color:#eef6fc;font-weight:500;
  box-shadow:0 0 0 1px rgba(127,179,213,.14),0 10px 28px -12px rgba(127,179,213,.75);
}
.btn.ghost{color:var(--txt-dim)}
.btn.ghost:hover{color:var(--txt)}
.btn.primary:hover{background:linear-gradient(180deg,rgba(127,179,213,.34),rgba(74,127,165,.22))}
.btn.ghost{background:transparent;border-color:var(--line)}
.btn.danger{border-color:rgba(192,90,78,.5);background:rgba(192,90,78,.08);color:#e0a49c}
.btn.sm{padding:7px 14px;font-size:13px}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);backdrop-filter:blur(12px)}
.hr{height:1px;background:var(--line);margin:16px 0}
.dim{color:var(--txt-dim)}
.faint{color:var(--txt-faint)}
.mono{font-family:var(--mono)}
.center{text-align:center}

/* ---------- 入场 ---------- */
#entry{
  position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
  padding:24px;z-index:10;
}
#entry::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background:url("img/scene/cover.jpg") center/cover no-repeat;
  filter:saturate(.85) brightness(.9);
  transform:scale(1.04);
}
#entry::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(58% 52% at 50% 46%, rgba(6,9,13,.12), rgba(6,9,13,.72) 70%, rgba(6,9,13,.9)),
    linear-gradient(180deg, rgba(6,9,13,.55), rgba(6,9,13,.25) 38%, rgba(6,9,13,.92));
}
.entry-box{width:100%;max-width:420px;text-align:center}
.logo{
  font-family:var(--serif);font-size:54px;letter-spacing:.16em;margin-left:.16em;
  color:#e8eef5;text-shadow:0 0 40px rgba(127,179,213,.35);
}
.logo-sub{
  font-size:12px;letter-spacing:.5em;color:var(--txt-faint);margin:6px 0 4px;
  text-transform:uppercase;
}
.entry-tag{
  font-family:var(--serif);font-size:13px;color:var(--txt-dim);
  margin:26px 0 34px;line-height:2;letter-spacing:.06em;
}
.field{
  width:100%;padding:13px 16px;border-radius:8px;
  background:rgba(255,255,255,.03);border:1px solid var(--line);
  color:var(--txt);outline:none;transition:.2s;letter-spacing:.05em;
}
.field:focus{border-color:rgba(127,179,213,.5);background:rgba(127,179,213,.05);
  box-shadow:0 0 0 3px rgba(127,179,213,.12)}
.btn:focus-visible,.field:focus-visible{outline:2px solid rgba(127,179,213,.6);outline-offset:2px}
.field::placeholder{color:var(--txt-faint)}
.entry-actions{display:flex;gap:10px;margin-top:14px}
.entry-actions .btn{flex:1}
.entry-note{margin-top:24px;font-size:12.5px;color:var(--txt-dim);line-height:2}

/* ---------- 房间 ---------- */
#lobby{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.lobby-box{width:100%;max-width:760px}
.room-code{
  font-family:var(--mono);font-size:40px;letter-spacing:.28em;color:var(--accent);
  text-shadow:0 0 30px rgba(127,179,213,.5);
}
.seats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}
@media(max-width:640px){.seats{grid-template-columns:repeat(2,1fr)}}
.seat{
  padding:14px;border-radius:10px;border:1px dashed var(--line2);
  background:rgba(255,255,255,.015);min-height:88px;
  display:flex;flex-direction:column;justify-content:center;
}
.seat.taken{border-style:solid;background:rgba(127,179,213,.05)}
.seat-name{font-size:14px;color:var(--txt)}
.seat-role{font-size:12px;color:var(--txt-dim);margin-top:3px}
.seat-empty{font-size:12px;color:var(--txt-faint);letter-spacing:.2em}

/* ---------- 选角 ---------- */
#picking{position:fixed;inset:0;overflow:auto;padding:26px 20px 80px}
.pick-head{text-align:center;margin-bottom:20px}
.pick-grid{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;
  max-width:1180px;margin:0 auto;
}
@media(max-width:1080px){.pick-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:760px}}
@media(max-width:620px){.pick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.role-card{
  position:relative;border-radius:12px;overflow:hidden;cursor:pointer;
  border:1px solid var(--line);background:var(--panel-solid);
  transition:.22s;
}
.role-card:hover{transform:translateY(-4px);border-color:var(--line2);box-shadow:0 20px 40px -20px #000}
.role-card.mine{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 20px 50px -20px rgba(127,179,213,.6)}
.role-card.taken{opacity:.4;cursor:not-allowed;filter:grayscale(1)}
.role-card.taken:hover{transform:none}
.role-ava{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 22%;display:block;background:#0c1119}
.role-body{padding:11px 14px 14px}
.role-name{font-family:var(--serif);font-size:17px;letter-spacing:.1em}
.role-title{font-size:11px;color:var(--accent);letter-spacing:.06em;margin-top:2px}
.role-tag{font-family:var(--serif);font-size:11.5px;color:var(--txt-dim);margin-top:8px;line-height:1.75;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.role-badge{
  position:absolute;top:10px;right:10px;padding:4px 10px;border-radius:20px;
  font-size:11px;letter-spacing:.1em;background:rgba(8,11,16,.8);
  border:1px solid var(--line2);backdrop-filter:blur(6px);
}

/* ---------- 主界面 ---------- */
#game{position:fixed;inset:0;display:none;flex-direction:column}
#game.on{display:flex}

.topbar{
  height:52px;flex:none;display:flex;align-items:center;gap:16px;
  padding:0 18px;border-bottom:1px solid var(--line);
  background:rgba(8,11,16,.86);backdrop-filter:blur(14px);z-index:20;
}
.tb-act{font-family:var(--serif);font-size:15px;letter-spacing:.12em;color:#dbe5ef}
.tb-phase{
  font-size:11px;letter-spacing:.16em;color:var(--accent);
  border:1px solid rgba(127,179,213,.3);padding:3px 9px;border-radius:4px;
}
.tb-timer{font-family:var(--mono);font-size:13px;color:var(--txt-dim);letter-spacing:.05em}
.tb-timer.warn{color:var(--warm)}
.tb-timer.over{color:var(--danger)}
.tb-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.tb-code{font-family:var(--mono);font-size:12px;color:var(--txt-faint);letter-spacing:.15em}

.layout{flex:1;display:grid;grid-template-columns:248px 1fr 300px;min-height:0}
@media(max-width:1100px){.layout{grid-template-columns:1fr}}
@media(max-width:1100px){.side{display:none}.side.mobile-on{display:flex;position:fixed;inset:52px 0 56px;z-index:30;background:var(--bg2);padding-bottom:70px}}

.side{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.side.right{border-right:none;border-left:1px solid var(--line);padding-bottom:82px}
.side-head{
  padding:12px 16px;font-size:11px;letter-spacing:.2em;color:var(--txt-faint);
  border-bottom:1px solid var(--line);flex:none;
}
.side-body{flex:1;overflow-y:auto;padding:14px 16px}

.main{overflow-y:auto;min-height:0;padding:28px 32px 150px;position:relative;scroll-behavior:smooth}
@media(max-width:700px){.main{padding:18px 16px 150px}}

/* 我的角色小卡 */
.mecard{padding:14px;border-radius:10px;background:rgba(255,255,255,.02);border:1px solid var(--line)}
.mecard img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#0c1119}
.mecard .n{font-family:var(--serif);font-size:19px;letter-spacing:.14em;margin-top:10px}
.mecard .t{font-size:11px;color:var(--accent);letter-spacing:.1em}
.mecard .q{font-family:var(--serif);font-size:12px;color:var(--txt-dim);margin-top:8px;line-height:1.8}

.apbar{display:flex;gap:5px;margin-top:10px;align-items:center}
.apdot{width:9px;height:9px;border-radius:50%;background:rgba(127,179,213,.2);border:1px solid rgba(127,179,213,.35)}
.apdot.on{background:var(--accent);box-shadow:0 0 8px rgba(127,179,213,.7)}
.ap-lbl{font-size:11px;color:var(--txt-faint);margin-left:6px;letter-spacing:.08em}

/* 读本 */
.read-wrap{max-width:720px;margin:0 auto}
.read-head{text-align:center;margin-bottom:26px}
.read-head h2{font-size:26px;letter-spacing:.16em;color:#e3ebf4}
.read-head .sub{font-size:12px;color:var(--txt-faint);letter-spacing:.2em;margin-top:8px}
.paper{
  background:linear-gradient(180deg,#151c26,#111720);
  border:1px solid var(--line);border-radius:12px;
  padding:38px 44px;min-height:340px;
  font-family:var(--serif);font-size:17px;line-height:2.15;color:#c6d1de;
  letter-spacing:.03em;white-space:pre-wrap;position:relative;
}
@media(max-width:700px){.paper{padding:24px 22px;font-size:16px;line-height:2}}
.paper::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
  background:linear-gradient(180deg,transparent,rgba(127,179,213,.5),transparent);
}
.pager{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:16px;position:sticky;bottom:-6px;z-index:6;padding:10px 0 8px;background:linear-gradient(180deg,rgba(8,11,16,0),rgba(8,11,16,.92) 42%,var(--bg) 100%)}
.pager .pg{font-family:var(--mono);font-size:12px;color:var(--txt-faint);letter-spacing:.12em}
.pdots{display:flex;gap:6px;justify-content:center;margin-top:14px}
.pdot{width:5px;height:5px;border-radius:50%;background:rgba(140,170,200,.2)}
.pdot.on{background:var(--accent);box-shadow:0 0 6px rgba(127,179,213,.8)}
.pdot.seen{background:rgba(140,170,200,.45)}

.goal-box{
  margin-top:24px;padding:18px 22px;border-radius:10px;
  background:rgba(201,162,39,.05);border:1px solid rgba(201,162,39,.22);
}
.goal-box .lbl{font-size:11px;letter-spacing:.2em;color:var(--warm);margin-bottom:8px}
.goal-box .txt{font-family:var(--serif);font-size:15px;color:#d8cfa8;line-height:1.95}
.secret-box{
  margin-top:14px;padding:18px 22px;border-radius:10px;
  background:rgba(192,90,78,.05);border:1px solid rgba(192,90,78,.22);
}
.secret-box .lbl{font-size:11px;letter-spacing:.2em;color:#d08a80;margin-bottom:10px}
.secret-box li{font-size:14px;color:#cbb0ab;line-height:1.95;margin-left:16px}

/* 搜证 */
.search-head{max-width:1100px;margin:0 auto 22px;text-align:center}
.search-head h2{font-size:24px;letter-spacing:.16em}
.search-head .obj{font-family:var(--serif);font-size:14px;color:var(--txt-dim);margin-top:10px}
.scene-tabs{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:20px 0 24px}
.scene-tab{
  padding:8px 16px;border-radius:20px;font-size:13px;
  border:1px solid var(--line);background:rgba(255,255,255,.02);color:var(--txt-dim);
  transition:.16s;letter-spacing:.06em;
}
.scene-tab:hover{border-color:var(--line2);color:var(--txt)}
.scene-tab.on{background:rgba(127,179,213,.14);border-color:rgba(127,179,213,.5);color:#dceaf5}
.scene-tab .fl{font-size:10px;opacity:.6;margin-left:5px}

.scene-stage{
  position:relative;max-width:1000px;margin:0 auto;border-radius:14px;
  overflow:hidden;border:1px solid var(--line2);
  box-shadow:0 40px 90px -40px #000, inset 0 0 120px rgba(0,0,0,.6);
  background:#070a0e;
}
.scene-stage img{width:100%;display:block;user-select:none;-webkit-user-drag:none}
.hotspot{
  position:absolute;border-radius:6px;cursor:pointer;
  border:1px solid transparent;transition:.18s;
  background:rgba(127,179,213,0);
}
.hotspot::after{
  content:"";position:absolute;inset:0;border-radius:6px;
  box-shadow:0 0 0 0 rgba(127,179,213,0);transition:.3s;
}
.hotspot:hover{
  border-color:rgba(127,179,213,.85);
  background:rgba(127,179,213,.13);
  box-shadow:0 0 24px rgba(127,179,213,.45), inset 0 0 24px rgba(127,179,213,.2);
}
.hotspot:hover::after{animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(127,179,213,.5)}70%{box-shadow:0 0 0 12px rgba(127,179,213,0)}100%{box-shadow:0 0 0 0 rgba(127,179,213,0)}}
.hotspot.done{
  border-color:rgba(95,158,122,.5);background:rgba(95,158,122,.1);
  pointer-events:none;
}
.hotspot .hs-num{
  position:absolute;top:-1px;left:-1px;
  min-width:18px;height:18px;padding:0 4px;border-radius:5px 0 6px 0;
  background:rgba(8,11,16,.72);border:1px solid rgba(127,179,213,.4);
  color:var(--accent);font-family:var(--mono);font-size:10px;line-height:16px;
  text-align:center;opacity:.85;
}
.hotspot.done .hs-num{background:rgba(95,158,122,.3);border-color:rgba(95,158,122,.6);color:#bfe3cd}
.hotspot .hs-label{
  position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);
  white-space:nowrap;font-size:12px;padding:4px 10px;border-radius:5px;
  background:rgba(8,11,16,.94);border:1px solid var(--line2);
  opacity:0;transition:.16s;pointer-events:none;letter-spacing:.06em;
}
.hotspot:hover .hs-label{opacity:1}
.scene-desc{
  max-width:1000px;margin:14px auto 0;font-family:var(--serif);font-size:13px;
  color:var(--txt-dim);line-height:1.9;text-align:center;
}

/* 线索卡 */
.clue-item{
  padding:12px 14px;border-radius:8px;margin-bottom:10px;cursor:pointer;
  background:rgba(255,255,255,.025);border:1px solid var(--line);transition:.16s;
}
.clue-item:hover{border-color:var(--line2);background:rgba(127,179,213,.06)}
.clue-item .ct{font-size:13px;color:var(--txt);letter-spacing:.04em}
.clue-item .cs{font-size:11px;color:var(--txt-faint);margin-top:3px}
.clue-item.priv{border-left:2px solid var(--danger)}
.clue-item.pub{border-left:2px solid var(--accent)}
.clue-item.share{border-left:2px solid var(--ok)}
.empty-tip{font-size:12px;color:var(--txt-faint);text-align:center;padding:20px 0;line-height:1.9}

/* 讨论 */
.discuss-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 320px;gap:22px}
@media(max-width:900px){.discuss-grid{grid-template-columns:1fr}}
.ring{
  position:relative;aspect-ratio:1;max-width:440px;margin:0 auto;
  border-radius:50%;border:1px solid rgba(140,170,200,.08);
}
.ring-center{
  position:absolute;inset:32%;border-radius:50%;
  border:1px solid rgba(140,170,200,.14);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:12px;letter-spacing:.3em;color:var(--txt-faint);
  text-align:center;line-height:2;
}
.ring-node{
  position:absolute;transform:translate(-50%,-50%);
  width:78px;text-align:center;cursor:default;
}
.ring-node img{
  width:56px;height:56px;border-radius:50%;object-fit:cover;
  border:1px solid var(--line2);background:#0c1119;display:block;margin:0 auto;
  transition:.2s;
}
.ring-node.me img{border-color:var(--accent);box-shadow:0 0 0 2px rgba(127,179,213,.25),0 0 24px rgba(127,179,213,.4)}
.ring-node .rn{font-size:11px;color:var(--txt-dim);margin-top:6px;letter-spacing:.05em}
.ring-node .rr{font-size:10px;color:var(--txt-faint)}

/* 聊天 */
.chat-list{flex:1;overflow-y:auto;padding:12px 14px;display:flex;flex-direction:column;gap:9px}
.msg{font-size:13px;line-height:1.7;word-break:break-word}
.msg .who{font-size:11px;color:var(--accent);letter-spacing:.05em;margin-bottom:1px}
.msg .body{color:#bcc7d5}
.msg.sys{text-align:center;font-size:11px;color:var(--txt-faint);letter-spacing:.08em;padding:4px 0}
.msg.mine .who{color:var(--warm)}
.msg.priv .who{color:#d08a80}
.msg.priv .body{color:#cbb0ab;font-style:italic}
.chat-input{
  flex:none;display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--line);
}
.chat-input input{
  flex:1;padding:9px 12px;border-radius:7px;background:rgba(255,255,255,.03);
  border:1px solid var(--line);color:var(--txt);outline:none;font-size:13px;
}
.chat-input input:focus{border-color:rgba(127,179,213,.4)}
.chat-input button{
  padding:0 16px;border-radius:7px;border:1px solid var(--line2);
  background:rgba(127,179,213,.1);color:var(--accent);font-size:13px;
}

/* 底部操作条 */
.actionbar{
  position:fixed;left:0;right:0;bottom:0;z-index:25;
  display:flex;align-items:center;gap:14px;
  padding:12px 22px;border-top:1px solid var(--line);
  background:rgba(8,11,16,.92);backdrop-filter:blur(14px);
}
.actionbar .hint{font-size:12px;color:var(--txt-faint);letter-spacing:.06em}
.actionbar .right{margin-left:auto;display:flex;gap:10px;align-items:center}
@media(max-width:700px){
  .actionbar{padding:10px 14px}
  .actionbar .hint{display:none}
}

/* 投票 */
.vote-wrap{max-width:760px;margin:0 auto}
.vq{margin-bottom:16px}
.vq .q{font-family:var(--serif);font-size:15px;margin-bottom:9px;color:#dbe5ef}
.vopts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
@media(max-width:900px){.vopts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.vopts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.vopt{
  padding:9px 4px;border-radius:7px;border:1px solid var(--line);
  background:rgba(255,255,255,.02);font-size:12.5px;text-align:center;
  transition:.15s;color:var(--txt-dim);cursor:pointer;
}
.vopt:hover{border-color:var(--line2);color:var(--txt)}
.vopt.on{background:rgba(127,179,213,.16);border-color:var(--accent);color:#e3eef7}

/* 揭晓 */
.reveal-wrap{max-width:820px;margin:0 auto}
.ending-title{
  font-family:var(--serif);font-size:38px;letter-spacing:.3em;
  text-align:center;margin:20px 0 10px;color:#e8eef5;
  text-shadow:0 0 50px rgba(127,179,213,.4);
}
.ending-cond{text-align:center;font-size:12px;color:var(--txt-faint);letter-spacing:.15em;margin-bottom:34px}
.ending-text{
  font-family:var(--serif);font-size:16px;line-height:2.2;color:#c2cddb;
  white-space:pre-wrap;padding:34px 40px;border-radius:12px;
  background:linear-gradient(180deg,#131a24,#0f151d);border:1px solid var(--line);
}
@media(max-width:700px){.ending-text{padding:22px 20px;font-size:15px}}
.truth-layer{margin-bottom:26px;padding:22px 26px;border-radius:10px;background:rgba(255,255,255,.02);border:1px solid var(--line)}
.truth-layer h3{font-size:17px;color:var(--accent);margin-bottom:12px;letter-spacing:.1em}
.truth-layer p{font-family:var(--serif);font-size:14px;line-height:2.05;color:#b9c5d3;white-space:pre-wrap;margin:0}
.stat-row{display:flex;gap:14px;justify-content:center;margin:24px 0;flex-wrap:wrap}
.stat{padding:14px 22px;border-radius:10px;background:rgba(255,255,255,.025);border:1px solid var(--line);text-align:center;min-width:110px}
.stat .v{font-family:var(--mono);font-size:26px;color:var(--accent)}
.stat .k{font-size:11px;color:var(--txt-faint);letter-spacing:.14em;margin-top:4px}

/* 弹层 */
.modal{
  position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(4,6,9,.82);backdrop-filter:blur(6px);
}
.modal-box{
  width:100%;max-width:560px;max-height:86vh;overflow-y:auto;
  border-radius:14px;background:var(--panel-solid);border:1px solid var(--line2);
  padding:30px 34px;box-shadow:0 40px 100px -30px #000;
}
@media(max-width:600px){.modal-box{padding:22px 20px}}
.modal-box h3{font-size:20px;letter-spacing:.12em;margin-bottom:6px}
.modal-box .mt{font-size:11px;color:var(--txt-faint);letter-spacing:.14em;margin-bottom:20px}
.modal-box .mc{font-family:var(--serif);font-size:15px;line-height:2.05;color:#c2cddb;white-space:pre-wrap}
.modal-clue-img{width:100%;border-radius:8px;margin-bottom:16px;border:1px solid var(--line)}

/* toast */
#toasts{position:fixed;top:68px;left:50%;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{
  padding:10px 20px;border-radius:8px;font-size:13px;letter-spacing:.06em;
  background:rgba(16,22,31,.96);border:1px solid var(--line2);color:var(--txt);
  box-shadow:0 16px 40px -16px #000;animation:tin .3s ease;
}
.toast.err{border-color:rgba(192,90,78,.5);color:#e0a49c}
.toast.ok{border-color:rgba(95,158,122,.5);color:#a8d5bd}
@keyframes tin{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

/* 底部 tab（移动端） */
.tabs{display:none}
@media(max-width:1100px){
  .tabs{
    display:flex;position:fixed;left:0;right:0;bottom:56px;z-index:26;
    border-top:1px solid var(--line);background:rgba(8,11,16,.95);backdrop-filter:blur(12px);
  }
  .tab{flex:1;padding:11px 0;text-align:center;font-size:12px;color:var(--txt-faint);letter-spacing:.1em}
  .tab.on{color:var(--accent)}
}

.clue-item{display:flex;gap:10px;align-items:center}
.clue-thumb{width:52px;height:52px;flex:0 0 52px;object-fit:cover;border-radius:3px;
  filter:saturate(.85) brightness(.92);border:1px solid rgba(255,255,255,.08)}
.clue-txt{min-width:0;flex:1}
.modal-clue-img{width:100%;max-height:44vh;object-fit:cover;border-radius:3px;
  margin:14px 0 4px;filter:saturate(.9) brightness(.95)}
@media(max-width:620px){.modal-clue-img{max-height:30vh}}

.msg{position:relative;padding:7px 9px;border-radius:3px;margin-bottom:6px}
.msg .who{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.msg .ts{margin-left:auto;font-size:10px;color:var(--txt-dim);opacity:.55;letter-spacing:.04em}
.msg.priv{background:rgba(140,110,190,.10);border-left:2px solid rgba(150,120,200,.55)}
.msg.priv.tome{background:rgba(150,120,200,.16)}
.msg.priv .body{color:#d9d0ea}
.pm-tag{font-size:9px;line-height:1;padding:2px 4px;border-radius:2px;
  background:rgba(150,120,200,.28);color:#cbb8ea;letter-spacing:.1em}
.tip-arrow{color:var(--txt-dim);opacity:.7}
.msg.mine .who{color:var(--accent)}

/* 旁白语音条 */
#audioBar{
  position:static;flex:0 0 auto;
  display:flex;align-items:center;gap:8px;
  padding:5px 9px 5px 5px;border-radius:999px;
  background:rgba(127,179,213,.07);border:1px solid var(--line2);
  max-width:min(42vw,300px);
}
#audioBar.hidden{display:none}
#audioBar button{
  width:26px;height:26px;flex:0 0 26px;border-radius:50%;border:1px solid var(--line2);
  background:rgba(127,179,213,.12);color:var(--accent);font-size:11px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
}
#audioBar button:hover{background:rgba(127,179,213,.22)}
#audioBar #abMute{background:transparent;color:var(--txt-dim);font-size:13px}
#audioBar #abVid{width:auto;padding:0 9px;flex:0 0 auto;font-size:11px;letter-spacing:.06em}
#audioBar #abMute.off{color:var(--danger)}
#abTitle{
  font-size:11.5px;color:var(--txt-dim);letter-spacing:.08em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
@media(max-width:700px){
  #audioBar{max-width:150px;padding:4px 7px 4px 4px;gap:5px}
  #audioBar #abTitle{display:none}
  #audioBar button{width:24px;height:24px;flex:0 0 24px}
  #audioBar #abVid{width:auto;padding:0 7px;flex:0 0 auto}
}

/* 第三幕 磁带证物 */
.tape{
  margin:0 0 18px;padding:16px 18px;border-radius:4px;
  background:linear-gradient(180deg,rgba(201,162,39,.07),rgba(201,162,39,.02));
  border:1px solid rgba(201,162,39,.28);
}
.tape-lbl{font-size:10.5px;letter-spacing:.22em;color:var(--warm);margin-bottom:9px}
.tape-txt{font-family:var(--serif);font-size:13px;line-height:1.95;color:#cdbfa2;margin-bottom:13px}
.tape .btn{border-color:rgba(201,162,39,.45);color:var(--warm)}

#audioBar.pulse{animation:aupulse 2.2s ease-in-out infinite;border-color:rgba(127,179,213,.5)}
@keyframes aupulse{
  0%,100%{box-shadow:0 8px 24px rgba(0,0,0,.45),0 0 0 0 rgba(127,179,213,.28)}
  50%{box-shadow:0 8px 24px rgba(0,0,0,.45),0 0 0 7px rgba(127,179,213,0)}
}

.modal-video{width:100%;max-height:52vh;border-radius:4px;margin-top:14px;background:#000}
/* 过场放映：弹窗拉宽到影院比例，画面占大头 */
.modal-box:has(#vidPlayer){max-width:min(96vw,1020px);padding:18px 22px}
.modal-box:has(#vidPlayer) .modal-video{max-height:68vh}
/* 自动起播被浏览器拦下时，画面上盖一层大播放键：不点也不会是黑屏死画面 */
.vid-wrap{position:relative;margin-top:14px;line-height:0}
.vid-wrap .modal-video{margin-top:0}
.vid-gate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:10px;border:0;background:rgba(6,10,16,.42);color:#eaf2fa;
  cursor:pointer;border-radius:4px;transition:background .2s}
.vid-gate:hover{background:rgba(6,10,16,.28)}
.vid-gate b{font-size:0;width:64px;height:64px;border-radius:50%;border:1px solid rgba(234,242,250,.55);
  background:rgba(10,16,24,.55);display:flex;align-items:center;justify-content:center}
.vid-gate b::after{content:"▶";font-size:24px;margin-left:4px;line-height:1}
.vid-gate em{font-style:normal;font-size:12.5px;letter-spacing:.12em;opacity:.85}
#abVid{width:auto!important;border-radius:999px!important;padding:0 9px!important;font-size:10.5px!important;letter-spacing:.08em}


/* 矮屏（笔记本 1366×768 / 720p）：压缩角色卡，保证线索列表露出来 */
@media(max-height:820px){
  .mecard{padding:10px}
  .mecard img{aspect-ratio:auto;height:118px;object-position:center 20%}
  .mecard .n{font-size:16px;margin-top:6px}
  .mecard .t{font-size:10.5px}
  .mecard .q{display:none}
}
@media(max-height:660px){
  .mecard img{display:none}
  .mecard{padding:9px 10px}
  .side-head{padding:9px 14px}
}

/* ---- 磁带播放器（第三幕 · 死者遗言） ---- */
.tp{text-align:center;min-width:min(460px,74vw)}
.cassette{
  position:relative;height:120px;border-radius:12px;
  background:linear-gradient(160deg,#1b222c,#0b1016);
  border:1px solid rgba(201,162,39,.34);
  display:flex;align-items:center;justify-content:center;gap:30px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 18px 40px -24px rgba(0,0,0,.9);
}
.cassette::before{content:'';position:absolute;inset:10px 12px;border:1px solid rgba(140,170,200,.10);border-radius:7px}
.reel{width:46px;height:46px;border-radius:50%;border:2px solid rgba(201,162,39,.45);position:relative;z-index:1}
.reel::after{content:'';position:absolute;inset:14px;border-radius:50%;background:rgba(201,162,39,.32)}
.cassette.spin .reel{animation:reelspin 2.6s linear infinite}
@keyframes reelspin{to{transform:rotate(360deg)}}
.cassette-lbl{position:absolute;bottom:8px;left:0;right:0;text-align:center;
  font-family:var(--mono);font-size:10px;letter-spacing:.2em;color:rgba(201,162,39,.72)}
.tp-t{font-family:var(--serif);font-size:20px;letter-spacing:.16em;margin-top:16px}
.tp-s{font-size:12px;color:var(--txt-dim);letter-spacing:.1em;margin-top:4px}
.tp-bar{height:4px;border-radius:2px;background:rgba(140,170,200,.16);margin:18px 0 8px;overflow:hidden}
.tp-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c9a227,#7fb3d5);transition:width .18s linear}
.tp-time{display:flex;justify-content:space-between;font-family:var(--mono);font-size:11px;color:var(--txt-faint);letter-spacing:.1em}
@media(max-height:660px){.tp{min-width:min(400px,80vw)}.cassette{height:96px}}

.tp-tr{margin-top:16px;text-align:left;border-top:1px solid rgba(140,170,200,.14);padding-top:12px}
.tp-tr summary{cursor:pointer;font-size:12px;color:var(--accent);letter-spacing:.06em;list-style:none}
.tp-tr summary::-webkit-details-marker{display:none}
.tp-tr summary::before{content:'▸ ';color:var(--txt-faint)}
.tp-tr[open] summary::before{content:'▾ '}
.tp-tr div{margin-top:10px;font-family:var(--serif);font-size:13.5px;line-height:2;color:var(--txt-dim);white-space:pre-wrap;max-height:min(320px,42vh);overflow-y:auto}

/* 玩家本没有立绘时的首字占位 */
.role-ava.ava-fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; letter-spacing: 2px;
  background: linear-gradient(160deg, #1a2533, #0c1219);
  border: 1px solid rgba(201,162,39,.28);
}


/* ==================== 游戏大厅 ==================== */
#entry.hall{
  display:block;overflow-y:auto;overflow-x:hidden;padding:0;
  background:#080b10;align-items:initial;justify-content:initial;
}
#entry.hall::before,#entry.hall::after{display:none}

.hall-hero{position:relative;min-height:86vh;display:flex;align-items:center;overflow:hidden}
.hall-hero-img{
  position:absolute;inset:0;
  background:url("img/ui/hall_hero.jpg") center 42%/cover no-repeat;
  filter:saturate(.9) brightness(.82);
  transform:scale(1.02);
}
.hall-hero-veil{
  position:absolute;inset:0;
  background:
    radial-gradient(70% 60% at 22% 40%, rgba(6,9,13,.18), rgba(6,9,13,.78) 72%, rgba(6,9,13,.96)),
    linear-gradient(180deg, rgba(6,9,13,.72), rgba(6,9,13,.35) 40%, rgba(8,11,16,.98));
}
.hall-hero-in{
  position:relative;z-index:2;width:100%;max-width:1080px;
  margin:0 auto;padding:28px 28px 64px;
}
.hall-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:58px}
.hall-brand{
  font-family:var(--serif);font-size:22px;letter-spacing:.22em;color:#eaf1f8;
  display:flex;align-items:baseline;gap:12px;
}
.hall-brand span{
  font-family:var(--sans,system-ui);font-size:11px;letter-spacing:.34em;
  color:var(--txt-faint,rgba(200,215,230,.5));
}
.hall-nav{display:flex;gap:22px}
.hall-nav a{
  font-size:12px;letter-spacing:.26em;color:rgba(210,225,240,.66);
  text-decoration:none;padding-bottom:3px;border-bottom:1px solid transparent;
  transition:color .2s,border-color .2s;
}
.hall-nav a:hover{color:#f0d9a0;border-bottom-color:rgba(201,162,39,.5)}

.hall-h1{
  font-family:var(--serif);font-weight:600;color:#f2f6fb;
  font-size:clamp(30px,4.4vw,54px);line-height:1.28;letter-spacing:.04em;
  margin:0 0 16px;text-shadow:0 2px 40px rgba(0,0,0,.6);
}
.hall-sub{
  font-size:14px;letter-spacing:.2em;color:rgba(206,222,238,.62);margin:0 0 34px;
}
.hall-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;max-width:640px}
.hall-nick{width:150px;flex:0 0 auto}
.hall-btn{flex:0 0 auto;min-width:132px;letter-spacing:.2em}
.hall-join{display:flex;gap:10px;margin-top:12px;max-width:420px}
.hall-join.hidden{display:none}
.hall-note{
  margin-top:22px;font-size:11.5px;letter-spacing:.1em;
  color:rgba(200,215,230,.42);max-width:520px;line-height:1.9;
}

.hall-sec{max-width:1080px;margin:0 auto;padding:0 28px 8px}
.hall-sec-hd{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin:18px 0 18px;
}
.hall-sec-hd h2{
  font-family:var(--serif);font-size:20px;letter-spacing:.28em;
  color:#e9f0f7;margin:0;font-weight:600;
}
.hall-filters{display:flex;gap:6px}
.hall-filters .opt{
  font-size:12px;letter-spacing:.16em;padding:7px 14px;border-radius:999px;
  border:1px solid rgba(255,255,255,.1);color:rgba(206,222,238,.6);
  cursor:pointer;transition:.18s;user-select:none;
}
.hall-filters .opt:hover{border-color:rgba(201,162,39,.4);color:#e8d6a8}
.hall-filters .opt.on{
  border-color:rgba(201,162,39,.72);color:#f4e3b6;
  background:rgba(201,162,39,.1);
}

.hall-books{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));
  gap:16px;padding-bottom:8px;
}
.hall-loading{
  grid-column:1/-1;padding:44px 0;text-align:center;
  font-size:13px;letter-spacing:.2em;color:rgba(200,215,230,.34);
}
.hall-book{
  border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden;
  background:#0d131b;display:flex;flex-direction:column;
  transition:transform .22s,border-color .22s,box-shadow .22s;cursor:pointer;
}
.hall-book:hover{
  transform:translateY(-3px);border-color:rgba(201,162,39,.42);
  box-shadow:0 18px 40px -20px rgba(0,0,0,.9);
}
.hb-cov{
  height:132px;background-size:cover;background-position:center;
  display:flex;align-items:flex-end;padding:14px;
  font-family:var(--serif);font-size:17px;letter-spacing:.14em;color:rgba(240,246,252,.92);
  text-shadow:0 2px 18px rgba(0,0,0,.85);
}
.hb-body{padding:13px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.hb-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:rgba(200,215,230,.5);letter-spacing:.1em}
.hb-tag{padding:2px 7px;border-radius:4px;font-size:10px;letter-spacing:.14em}
.hb-tag.off{background:rgba(201,162,39,.16);color:#e9cf8d;border:1px solid rgba(201,162,39,.36)}
.hb-tag.ugc{background:rgba(120,160,210,.12);color:#a9c6e4;border:1px solid rgba(120,160,210,.3)}
.hb-title{font-size:15px;color:#eef4fa;letter-spacing:.06em;font-weight:600}
.hb-tagline{
  font-size:11.5px;line-height:1.7;color:rgba(200,215,230,.46);
  min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.hb-stats{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:rgba(200,215,230,.42);letter-spacing:.08em}
.hb-q{color:#9dc3e6}
.hb-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:6px}
.hb-price{font-size:14px;color:#f0d9a0;letter-spacing:.08em}
.hb-price.free{color:#8fd0a6}
.hb-by{font-size:10.5px;color:rgba(200,215,230,.3);letter-spacing:.08em}

.hall-duo{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-bottom:56px;margin-top:34px}
.hall-duo-card{
  position:relative;min-height:190px;border-radius:16px;overflow:hidden;
  border:1px solid rgba(255,255,255,.08);text-decoration:none;
  background-size:cover;background-position:center;
  display:flex;align-items:flex-end;transition:transform .22s,border-color .22s;
}
.hall-duo-card:hover{transform:translateY(-3px);border-color:rgba(201,162,39,.42)}
.duo-veil{
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(6,9,13,.25),rgba(6,9,13,.9));
}
.duo-in{position:relative;z-index:2;padding:18px 20px}
.duo-k{font-size:10.5px;letter-spacing:.3em;color:rgba(201,162,39,.85);margin-bottom:7px}
.duo-in h3{font-family:var(--serif);font-size:20px;color:#f2f6fb;margin:0 0 8px;letter-spacing:.1em}
.duo-in p{font-size:11.5px;line-height:1.8;color:rgba(206,222,238,.55);margin:0 0 12px;max-width:340px}
.duo-go{font-size:11.5px;letter-spacing:.22em;color:#e9cf8d}

.hall-foot{
  text-align:center;padding:0 0 42px;font-size:10.5px;letter-spacing:.24em;
  color:rgba(200,215,230,.24);
}

.shake{animation:hall-shake .4s}
@keyframes hall-shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-6px)}
  75%{transform:translateX(6px)}
}

@media (max-width:720px){
  .hall-hero{min-height:auto;padding-top:8px}
  .hall-hero-in{padding:22px 18px 44px}
  .hall-top{margin-bottom:38px}
  .hall-nav{gap:14px}
  .hall-nav a{font-size:11px;letter-spacing:.16em}
  .hall-form{max-width:none}
  .hall-nick{width:100%;flex:1 1 100%}
  .hall-btn{flex:1 1 auto}
  .hall-sec{padding:0 18px 8px}
  .hall-duo{grid-template-columns:1fr;padding-bottom:40px}
  .hall-books{grid-template-columns:1fr 1fr;gap:10px}
  .hb-cov{height:96px;font-size:14px}
  .hb-tagline{display:none}
}


/* ---- 大厅微调：金色主按钮 / 主视觉压暗 / 滚动提示 ---- */
#entry.hall .btn.primary{
  background:linear-gradient(180deg,#e6c877,#c9a227);
  color:#1a1206;border:1px solid rgba(255,232,180,.55);
  font-weight:700;letter-spacing:.22em;
  box-shadow:0 10px 30px -12px rgba(201,162,39,.75);
}
#entry.hall .btn.primary:hover{
  background:linear-gradient(180deg,#f0d68c,#d4ad33);
  box-shadow:0 14px 38px -12px rgba(201,162,39,.9);
}
#entry.hall .btn.ghost{
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.16);
  color:rgba(226,238,250,.82);letter-spacing:.18em;
}
#entry.hall .btn.ghost:hover{border-color:rgba(201,162,39,.5);color:#f2e3bb}
.hall-hero{min-height:78vh}
.hall-hero-img{background-position:center 66%;filter:saturate(.95) brightness(.9)}
.hall-hero-veil{
  background:
    linear-gradient(90deg, rgba(6,9,13,.94) 0%, rgba(6,9,13,.86) 30%, rgba(6,9,13,.45) 58%, rgba(6,9,13,.6) 100%),
    linear-gradient(180deg, rgba(6,9,13,.82) 0%, rgba(6,9,13,.28) 42%, rgba(8,11,16,.99) 100%);
}
.hall-grain{
  position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.16;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='.5'/></svg>");
}
.hall-scroll{
  position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;
  font-size:10px;letter-spacing:.4em;color:rgba(214,228,242,.34);
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.hall-scroll i{
  width:1px;height:26px;background:linear-gradient(180deg,rgba(201,162,39,.7),transparent);
  display:block;
}
@media (max-width:720px){
  #entry.hall .btn.primary,#entry.hall .btn.ghost{letter-spacing:.14em}
  .hall-hero{min-height:auto}
}

.hb-cov{position:relative}
.hb-cov.nocover{
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 2px, transparent 2px 9px),
    linear-gradient(150deg,#1c2837,#0a1017 70%) !important;
  border-bottom:1px solid rgba(201,162,39,.16);
}
.hb-cov.nocover em{
  position:absolute;top:9px;right:10px;font-style:normal;
  font-family:var(--sans,system-ui);font-size:9px;letter-spacing:.24em;
  color:rgba(201,162,39,.6);border:1px solid rgba(201,162,39,.28);
  padding:2px 6px;border-radius:3px;
}


/* ---------- 大厅：账号 / 会员 ---------- */
.hall-acc{
  font:inherit;font-size:11.5px;letter-spacing:.14em;cursor:pointer;
  background:transparent;border:1px solid rgba(201,162,39,.34);
  color:#e5d3a5;border-radius:999px;padding:7px 14px;
  display:flex;align-items:center;gap:8px;transition:.2s;
}
.hall-acc:hover{background:rgba(201,162,39,.12);border-color:rgba(201,162,39,.6)}
.hall-acc.on{border-color:rgba(201,162,39,.5);background:rgba(201,162,39,.08)}
.hall-acc b{font-weight:600;color:#f2e3bb;letter-spacing:.06em}
.hall-acc i{font-style:normal;font-size:10.5px;color:rgba(214,228,242,.5);letter-spacing:.06em}

.ha-mask{
  position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
  background:rgba(4,7,11,.82);backdrop-filter:blur(6px);padding:20px;
}
.ha-box{
  width:100%;max-width:400px;background:#0d131b;border:1px solid rgba(255,255,255,.1);
  border-radius:16px;padding:24px 22px 18px;box-shadow:0 30px 80px -30px #000;
}
.ha-box.wide{max-width:520px}
.ha-hd{
  font-family:var(--serif);font-size:19px;letter-spacing:.26em;color:#eef4fa;
  margin-bottom:8px;
}
.ha-sub{font-size:12px;line-height:1.8;color:rgba(206,222,238,.56);margin-bottom:16px}
.ha-sub b{color:#f0d9a0}
.ha-box .field{margin-bottom:12px}
.ha-box .field span{
  display:block;font-size:11px;letter-spacing:.16em;
  color:rgba(206,222,238,.5);margin-bottom:6px;
}
.ha-box .field input{
  width:100%;background:#080c12;border:1px solid rgba(255,255,255,.12);
  border-radius:9px;padding:11px 13px;color:#e9f0f7;font:inherit;font-size:14px;
  outline:none;transition:.18s;
}
.ha-box .field input:focus{border-color:rgba(201,162,39,.6);background:#0a1017}
.ha-err{min-height:18px;font-size:11.5px;color:#e0867c;letter-spacing:.06em;margin:2px 0 8px}
.ha-row{display:flex;gap:10px;margin-top:6px}
.ha-switch{
  margin-top:14px;text-align:center;font-size:11.5px;
  color:rgba(206,222,238,.44);letter-spacing:.06em;
}
.ha-switch a{color:#e5c877;cursor:pointer;margin-left:4px;text-decoration:none}
.ha-switch a:hover{text-decoration:underline}

.ha-plan{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:11px;
  margin-bottom:9px;background:#0a1017;
}
.ha-plan.cur{border-color:rgba(201,162,39,.42);background:rgba(201,162,39,.06)}
.hp-name{font-size:14px;color:#eef4fa;letter-spacing:.1em;margin-bottom:4px}
.hp-name em{
  font-style:normal;font-size:9.5px;letter-spacing:.16em;color:#f0d9a0;
  border:1px solid rgba(201,162,39,.45);border-radius:3px;padding:1px 5px;margin-left:8px;
}
.hp-blurb{font-size:11px;color:rgba(206,222,238,.46);letter-spacing:.04em;line-height:1.6}
.hp-r{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.hp-price{font-size:16px;color:#f0d9a0;letter-spacing:.04em}
.hp-price i{font-style:normal;font-size:10px;color:rgba(206,222,238,.4);margin-left:2px}
.ha-tip{
  font-size:10.5px;line-height:1.9;color:rgba(206,222,238,.34);
  margin:12px 0 4px;letter-spacing:.04em;
}
@media (max-width:720px){
  .ha-box{padding:20px 16px 14px}
  .ha-plan{padding:10px 12px}
}

.ha-box .btn.primary{
  background:linear-gradient(180deg,#e6c877,#c9a227);color:#1a1206;
  border:1px solid rgba(255,232,180,.5);font-weight:700;letter-spacing:.18em;
}
.ha-box .btn.primary:hover{background:linear-gradient(180deg,#f0d68c,#d4ad33)}
.hp-cur{font-size:10.5px;letter-spacing:.16em;color:rgba(201,162,39,.75)}
#toasts{z-index:200}

/* ---------------- 评分 ---------------- */

.rate-box {
  margin: 44px auto 0;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(201,162,39,.09), rgba(18,25,35,.92));
  border: 1px solid rgba(201,162,39,.32);
  border-radius: 16px;
  padding: 22px 24px 20px;
}
.rb-hd { font-family: var(--serif); font-size: 19px; color: #f2e7c8; letter-spacing: 1px; }
.rb-sub { font-size: 12px; color: #7d8a9c; margin-top: 6px; line-height: 1.6; }
.rb-stars { display: flex; gap: 6px; margin: 16px 0 12px; }
.rb-stars button {
  background: none; border: 0; cursor: pointer; padding: 0 2px;
  font-size: 30px; line-height: 1; color: #3a4553;
  transition: color .15s, transform .15s;
}
.rb-stars button:hover { transform: translateY(-2px); }
.rb-stars button.on { color: #c9a227; text-shadow: 0 0 16px rgba(201,162,39,.5); }
.rb-stars button.pick { transform: scale(1.12); }
#rbText {
  width: 100%; box-sizing: border-box; min-height: 62px; resize: vertical;
  background: rgba(8,12,18,.75); border: 1px solid #222c3a; border-radius: 10px;
  color: #dfe6ee; font-size: 13px; padding: 10px 12px; font-family: inherit;
}
#rbText:focus { outline: none; border-color: rgba(201,162,39,.5); }
.rb-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.rb-agg { font-size: 12.5px; color: #8f9cae; }
.rb-agg b { color: #f0e3bd; font-size: 15px; }
.rb-agg .st, .rt .st { color: #c9a227; letter-spacing: 1px; }

/* 市场 / 大厅卡片上的评分 */
.rt, .hb-rt { font-size: 12.5px; color: #8f9cae; display: inline-flex; align-items: center; gap: 6px; }
.rt b, .hb-rt b { color: #f0e3bd; font-size: 14px; }
.rt-c, .hb-rt em { color: #6f7c8d; font-style: normal; font-size: 11.5px; }
.rt-none, .hb-rt.none { color: #5d6877; font-size: 11.5px; }
.rt-line { margin: 2px 0 4px; }
.hb-rate { margin: 2px 0 6px; }
.hb-rt { color: #c9a227; letter-spacing: 1px; }

/* 定价预设 */
.prow { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.prow button {
  background: rgba(255,255,255,.03); border: 1px solid #26313f; color: #9aa7b8;
  border-radius: 999px; padding: 6px 13px; font-size: 12.5px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.prow button:hover { border-color: rgba(201,162,39,.45); color: #e3d6ad; }
.prow button.on { background: rgba(201,162,39,.16); border-color: rgba(201,162,39,.65); color: #f2e7c8; }

/* 退出房间 / 已离开标记 */
.tb-exit { color: #b8a98d; border-color: rgba(201,162,39,.28) !important; }
.tb-exit:hover { color: #f2e7c8; border-color: rgba(201,162,39,.6) !important; }
.seat-left { margin-left: 8px; font-size: 10.5px; color: #6f7c8d; border: 1px solid #2b3644;
  border-radius: 999px; padding: 1px 6px; letter-spacing: .06em; }
