/* 骗子酒馆：烛光酒馆 · 旧木桌 · 黄铜 + 血红 */
:root {
  --lz-bg: #120b09;
  --lz-wood: #4a2d1c;
  --lz-wood-dark: #2a180f;
  --lz-brass: #d6a54e;
  --lz-brass-dim: #8c6a33;
  --lz-blood: #b8322a;
  --lz-ink: #f3e6d2;
  --lz-muted: #b9a48f;
  --lz-truth: #6fcf8a;
}
body.liar-body {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(214,165,78,.16), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(184,50,42,.12), transparent 70%),
    var(--lz-bg);
  color: var(--lz-ink);
}
.liar-body h1, .lz-tc-rank, .lz-over-title, .lz-stage-title, .lz-verdict { font-family: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif; }

/* 登录 */
.liar-login { background: linear-gradient(170deg, #2a1a12, #1a100c); border-color: rgba(214,165,78,.25); }
.liar-login h1 { color: var(--lz-brass); font-size: 32px; letter-spacing: .12em; }
.liar-login .lobby-sub { color: var(--lz-muted); }
.liar-login-sign { display: flex; justify-content: center; color: var(--lz-brass); margin-bottom: 6px; }
.liar-login-sign svg { width: 110px; height: 55px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.liar-btn-main { background: linear-gradient(180deg, #c2452f, #8f241c) !important; box-shadow: 0 6px 18px rgba(184,50,42,.35); }
.liar-btn-ghost { width: 100%; margin-top: 10px; background: transparent; border: 1px solid rgba(214,165,78,.45); color: var(--lz-brass); }
.liar-topbar { background: linear-gradient(180deg, #2a1a12, #1a100c); border-color: rgba(214,165,78,.18); }
.liar-topbar h1 { color: var(--lz-brass); }
.liar-room .lobby-area-title { color: var(--lz-brass); }
.liar-room .lobby-seat { background: #1d130e; border-color: rgba(214,165,78,.15); }

/* —— 牌桌 —— */
.lz-table {
  position: relative;
  height: clamp(320px, calc(100vh - 330px), 560px);
  border-radius: 48% / 40%;
  margin: 8px 4px 14px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255,210,140,.18), transparent 70%),
    repeating-linear-gradient(94deg, rgba(0,0,0,.0) 0 14px, rgba(0,0,0,.09) 14px 16px, rgba(255,255,255,.02) 16px 30px),
    radial-gradient(ellipse at 50% 50%, #6a4029 0%, var(--lz-wood) 55%, var(--lz-wood-dark) 100%);
  border: 10px solid #24150d;
  box-shadow: inset 0 0 60px rgba(0,0,0,.7), 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px rgba(214,165,78,.18);
}
.lz-lamp {
  position: absolute; left: 50%; top: -10px; width: 60%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,200,120,.20), transparent 65%);
  pointer-events: none; animation: lz-flicker 5s infinite;
}
@keyframes lz-flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .95; } 70% { opacity: .86; } }

.lz-center {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 62%;
}
.lz-tablecard { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 10px; }
.lz-tc-label { grid-column: 1 / -1; text-align: center; font-size: 12px; letter-spacing: .3em; color: var(--lz-brass); opacity: .9; }
.lz-tc-card .card.lz-bigcard { width: 46px; height: 66px; transform: rotate(-6deg); box-shadow: 0 6px 16px rgba(0,0,0,.55), 0 0 0 2px var(--lz-brass); }
.lz-tc-rank { font-size: 46px; font-weight: 900; color: var(--lz-brass); text-shadow: 0 2px 0 #3a200f, 0 0 18px rgba(214,165,78,.4); line-height: 1; }
.lz-devil-tag { grid-column: 1 / -1; justify-self: center; margin-top: 4px; font-size: 11px; font-weight: 700; color: #ffb4a8; background: rgba(184,50,42,.25); border: 1px solid rgba(255,120,100,.4); border-radius: 999px; padding: 2px 10px; }

.lz-pile { position: relative; width: 90px; height: 64px; display: flex; align-items: center; justify-content: center; }
.lz-pilecard { position: absolute; width: 36px; height: 52px; transform: translate(var(--x), var(--y)) rotate(var(--r)); box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.lz-pilecount { position: absolute; right: -8px; bottom: -4px; background: #1a100c; color: var(--lz-brass); border: 1px solid var(--lz-brass-dim); border-radius: 999px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.lz-pile-empty { font-size: 12px; color: rgba(243,230,210,.45); }
.lz-claim { text-align: center; font-size: 14px; color: var(--lz-ink); background: rgba(18,11,9,.55); border-radius: 12px; padding: 6px 12px; min-height: 20px; }
.lz-claim:empty { display: none; }
.lz-center.over .lz-tablecard, .lz-center.over .lz-pile { display: none; }
.lz-center.over .lz-claim { background: rgba(18,11,9,.85); padding: 14px 16px; }
.lz-claim b { color: #fff; }
.lz-claim-rank { color: var(--lz-brass) !important; font-size: 16px; }

/* 座位 */
.lz-seat { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .3s; }
.lz-seat.pos-b { left: 50%; bottom: 10px; transform: translateX(-50%); }
.lz-seat.pos-t { left: 50%; top: 8px; transform: translateX(-50%); }
.lz-seat.pos-l { left: 8px; top: 46%; transform: translateY(-50%); }
.lz-seat.pos-r { right: 8px; top: 46%; transform: translateY(-50%); }
.lz-seat.pos-tl { left: 12%; top: 10px; }
.lz-seat.pos-tr { right: 12%; top: 10px; }
.lz-plate {
  background: linear-gradient(180deg, rgba(30,18,12,.95), rgba(18,11,9,.95));
  border: 1px solid rgba(214,165,78,.3); border-radius: 12px; padding: 6px 12px; text-align: center; min-width: 108px;
  box-shadow: 0 6px 16px rgba(0,0,0,.5);
}
.lz-name { font-size: 14px; font-weight: 700; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.lz-sub { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--lz-muted); }
.lz-chambers { display: inline-flex; gap: 2px; }
.lz-chambers i { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0c877, var(--lz-brass-dim)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.lz-chambers i.spent { background: #1a100c; box-shadow: inset 0 0 0 1px rgba(214,165,78,.35); }
.lz-chambers i.hit { background: var(--lz-blood); box-shadow: 0 0 6px var(--lz-blood); }
.lz-fired { font-variant-numeric: tabular-nums; }
.lz-pend { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; color: #ffb36b; }
.lz-seat.turn .lz-plate { border-color: var(--lz-brass); box-shadow: 0 0 0 2px rgba(214,165,78,.35), 0 0 22px rgba(214,165,78,.35); }
.lz-seat.shooting .lz-plate { border-color: var(--lz-blood); box-shadow: 0 0 0 2px rgba(184,50,42,.5), 0 0 26px rgba(184,50,42,.55); animation: lz-shake .35s infinite; }
@keyframes lz-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.lz-seat.dead { opacity: .45; filter: grayscale(.8); }
.lz-seat.off .lz-name::after { content: ' · 掉线'; color: #e88; font-weight: 400; font-size: 11px; }
.lz-timer { font-weight: 800; color: var(--lz-brass); font-variant-numeric: tabular-nums; }
.lz-timer.urgent { color: #ff7a6a; animation: lz-pulse .5s infinite alternate; }
@keyframes lz-pulse { to { opacity: .45; } }

.lz-backs { position: relative; display: block; width: 70px; height: 38px; }
.card.back.lz-mini { position: absolute; left: 50%; top: 0; width: 24px; height: 34px; border-radius: 4px; margin-left: -12px;
  transform: translateX(calc(var(--i) * 9px)) rotate(calc(var(--i) * 7deg)); transform-origin: 50% 120%; box-shadow: 0 2px 4px rgba(0,0,0,.5); }

/* 手牌 + 操作 */
.lz-handwrap { background: linear-gradient(180deg, rgba(30,18,12,.9), rgba(18,11,9,.95)); border: 1px solid rgba(214,165,78,.18); border-radius: 16px; padding: 12px 12px 14px; }
.lz-mymeta { text-align: center; font-size: 13px; color: var(--lz-muted); margin-bottom: 8px; }
.lz-mymeta b { color: var(--lz-truth); }
.lz-hand { display: flex; justify-content: center; gap: 8px; min-height: 104px; padding-top: 16px; flex-wrap: nowrap; }
.lz-cw { position: relative; cursor: pointer; transition: transform .18s ease; }
.lz-cw .card.lz-card { width: 62px; height: 88px; border-radius: 8px; }
.lz-cw.sel { transform: translateY(-16px); }
.lz-cw.sel .card { box-shadow: 0 0 0 3px var(--lz-brass), 0 10px 20px rgba(0,0,0,.6); }
.lz-cw.deal { animation: lz-deal .4s cubic-bezier(.2,.9,.3,1.2) backwards; animation-delay: var(--d); }
@keyframes lz-deal { from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.8); } }
.lz-cw.devil .card { box-shadow: 0 0 0 2px #ff5a45, 0 0 16px rgba(255,90,69,.55); }
.lz-devil { position: absolute; right: -6px; top: -8px; font-size: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); pointer-events: none; }
.lz-spectate { color: var(--lz-muted); align-self: center; }
.lz-actions { margin-top: 12px; }
.lz-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lz-btn-play { background: linear-gradient(180deg, #d6a54e, #9a6f2a); color: #1a100c; font-weight: 800; min-width: 170px; }
.lz-btn-liar { background: linear-gradient(180deg, #c2452f, #8f241c); font-weight: 900; letter-spacing: .06em; min-width: 120px; box-shadow: 0 6px 18px rgba(184,50,42,.35); }
.lz-btn-liar.big { font-size: 18px; padding: 14px 34px; animation: lz-glow 1.2s infinite alternate; }
@keyframes lz-glow { to { box-shadow: 0 0 26px rgba(255,90,69,.65); } }
.lz-note { text-align: center; font-size: 13px; color: var(--lz-muted); margin-top: 8px; }
.lz-note.wait { font-size: 14px; }
.lz-drinkbar { display: flex; justify-content: center; margin-top: 10px; }
.lz-log { margin: 12px 0 0; }

/* 结局 */
.lz-over { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lz-over-title { font-size: 22px; font-weight: 900; color: var(--lz-brass); text-shadow: 0 0 20px rgba(214,165,78,.45); }
.lz-over-btns { display: flex; gap: 10px; }
.lz-over .btn-deal { padding: 10px 22px; font-size: 15px; }
.lz-wait { font-size: 13px; color: var(--lz-muted); }

/* —— 翻牌 + 轮盘舞台 —— */
.lz-stage { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(8,4,3,.72); backdrop-filter: blur(2px); padding: 16px; }
.lz-stage[hidden] { display: none; }
.lz-stage-box { width: min(420px, 100%); text-align: center; background: radial-gradient(ellipse at 50% 0%, #3a2216, #1a100c 70%); border: 1px solid rgba(214,165,78,.35); border-radius: 20px; padding: 22px 16px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lz-stage-title { font-size: 20px; color: var(--lz-ink); }
.lz-stage-title b { color: var(--lz-brass); }
.lz-stage-cards { display: flex; justify-content: center; gap: 10px; margin: 18px 0 10px; min-height: 92px; }
.lz-flip { perspective: 600px; width: 62px; height: 88px; }
.lz-flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.8,.3,1.2); transition-delay: var(--d); }
.lz-stage.flipped .lz-flip-in { transform: rotateY(180deg); }
.lz-flip-back, .lz-flip-front { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card.back.lz-flip-back { width: 62px; height: 88px; border-radius: 8px; }
.lz-flip-front { transform: rotateY(180deg); }
.lz-flip-front .lz-cw { cursor: default; }
.lz-flip-front .lz-cw.lie .card { box-shadow: 0 0 0 3px #ff5a45, 0 0 18px rgba(255,90,69,.6); }
.lz-flip-front .lz-cw.truth .card { box-shadow: 0 0 0 3px var(--lz-truth), 0 0 14px rgba(111,207,138,.5); }
.lz-verdict { font-size: 26px; font-weight: 900; min-height: 34px; opacity: 0; transform: scale(.6); transition: all .3s cubic-bezier(.3,1.6,.5,1); }
.lz-verdict.show { opacity: 1; transform: scale(1); }
.lz-verdict.lie { color: #ff6a55; }
.lz-verdict.truth { color: var(--lz-truth); }
.lz-verdict.devil { color: #ff5a45; font-size: 20px; }
.lz-gun { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .3s, margin .3s; }
.lz-gun.show { max-height: 260px; opacity: 1; margin-top: 12px; }
.lz-gun-who { font-size: 16px; }
.lz-gun-who b { color: var(--lz-brass); }
.lz-cylinder { width: 130px; height: 130px; margin: 8px auto 4px; display: block; }
.lz-gun.spinning .cy-rot { animation: lz-spin 1.4s cubic-bezier(.15,.7,.3,1) both; }
@keyframes lz-spin { from { transform: rotate(-900deg); } to { transform: rotate(0deg); } }
.cy-body { fill: #3b3f45; stroke: #1b1d20; stroke-width: 3; }
.cy-axle { fill: #1b1d20; }
.cy-ch { stroke: #16181b; stroke-width: 2; }
.cy-ch.unk, .cy-ch.current { fill: #0d0e10; }
.cy-ch.current { stroke: var(--lz-brass); stroke-width: 2.5; }
.cy-ch.spent { fill: #26282c; }
.cy-ch.live { fill: #0d0e10; stroke: var(--lz-blood); stroke-width: 3; }
.cy-bullet { fill: #e0b25c; stroke: #8c6a33; stroke-width: 1.5; }
.cy-pin { fill: var(--lz-brass); }
.lz-gun-result { font-size: 22px; font-weight: 900; min-height: 30px; font-family: "Songti SC", "STSong", serif; }
.lz-gun-result.dead { color: #ff5a45; animation: lz-bang .5s ease-out; }
.lz-gun-result.alive { color: var(--lz-truth); }
@keyframes lz-bang { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }
.lz-flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: radial-gradient(circle, rgba(255,240,200,.95), rgba(184,50,42,.6) 60%, transparent); opacity: 0; }
.lz-flash.on { animation: lz-flash .6s ease-out; }
@keyframes lz-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* 规则 / 提示 */
.lz-rules-modal { max-width: 460px; max-height: 84vh; overflow-y: auto; }
.lz-rules p { font-size: 14px; line-height: 1.7; color: #d9ccb8; margin-bottom: 8px; }
.lz-rules b { color: var(--lz-brass); }
.lz-toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -30px); z-index: 120; background: rgba(26,16,12,.96); color: var(--lz-ink); border: 1px solid rgba(214,165,78,.4); border-radius: 999px; padding: 9px 18px; font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.lz-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 手机 */
@media (max-width: 600px) {
  .liar-room { padding: 8px 8px 40px; }
  .liar-topbar h1 { font-size: 18px; }
  .liar-topbar .topbar-info { gap: 6px; }
  .liar-topbar .btn-settings { padding: 4px 8px; font-size: 12px; }
  .lz-table { height: 56vh; min-height: 380px; border-width: 7px; border-radius: 34% / 22%; margin: 6px 0 10px; }
  .lz-center { width: 74%; top: 48%; gap: 6px; }
  .lz-tc-rank { font-size: 38px; }
  .lz-plate { min-width: 86px; padding: 5px 8px; }
  .lz-name { font-size: 12px; max-width: 96px; }
  .lz-seat.pos-l { left: 4px; top: 36%; } .lz-seat.pos-r { right: 4px; top: 36%; }
  .lz-center.over { width: 70%; top: 66%; }
  .lz-seat.pos-tl { left: 4%; } .lz-seat.pos-tr { right: 4%; }
  .lz-hand { gap: 5px; }
  .lz-cw .card.lz-card { width: 56px; height: 80px; }
  .lz-btn-play { min-width: 0; flex: 1; }
  .lz-btn-liar { min-width: 0; flex: 1; }
}
.lz-pot { position: absolute; bottom: -4px; right: calc(100% - 6px); white-space: nowrap; font-size: 11px; font-weight: 800; color: #ffe08a; background: rgba(18,11,9,.7); border: 1px solid rgba(214,165,78,.4); border-radius: 999px; padding: 1px 8px; z-index: 2; }
.lz-pend.sc-chips { color: #ffe08a; }
/* 矮屏（桌面小窗 / 横屏手机）：中间区域下移，让出顶部座位 */
@media (max-height: 820px) {
  .lz-tc-label { display: none; }
  .lz-center { top: 55%; }
  .lz-tc-rank { font-size: 36px; }
}
