:root {
  --ink: #14110d;
  --panel: #201a14;
  --panel-2: #2a221a;
  --gold: #c9a961;
  --gold-dim: #8a7446;
  --paper: #e8ddc7;
  --muted: #a99c84;
  --red: #a8392f;
  --red-bright: #c94a3c;
  --green: #3d7a5a;
  --blue: #3a6a94;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "WenQuanYi Zen Hei", serif;
  overflow: hidden;
}

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(120, 86, 40, .22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(70, 30, 26, .3), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px);
}

#app { position: relative; height: 100%; z-index: 1; }
.screen { height: 100%; width: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---------------- 按钮 / 输入 ---------------- */
.btn {
  border: 1px solid rgba(201, 169, 97, .55);
  background: linear-gradient(180deg, #3a2d20, #2a2017);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: .08em;
  transition: transform .12s, box-shadow .12s, border-color .12s, background .12s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.btn:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(180deg, #a8392f, #82271f); border-color: #d47a68; }
.btn.primary:hover { background: linear-gradient(180deg, #bf4439, #952e25); }
.btn.gold { background: linear-gradient(180deg, #b8954f, #8c6d33); border-color: #e2c98f; color: #1a130c; font-weight: 700; }
.btn.tiny { padding: 4px 10px; font-size: 12px; letter-spacing: .04em; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.big { padding: 13px 20px; font-size: 17px; width: 100%; }
.btn.ghost { background: transparent; border-color: rgba(201, 169, 97, .3); color: var(--muted); }
.btn.ghost:hover { color: var(--paper); border-color: var(--gold); }

input {
  background: #17120d; border: 1px solid rgba(201, 169, 97, .35);
  color: var(--paper); padding: 10px 12px; border-radius: 6px;
  font-family: inherit; font-size: 15px; outline: none; width: 100%;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 169, 97, .12); }
input::placeholder { color: #6c6152; }

.field { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; letter-spacing: .08em; }
.field input { margin-top: 7px; }
.hint { color: var(--muted); font-size: 12.5px; min-height: 18px; margin: 10px 0 0; letter-spacing: .03em; }
.hint.error { color: #e28577; }

/* ---------------- 大厅 ---------------- */
#lobby {
  align-items: center; justify-content: center; overflow-y: auto; padding: 26px 16px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(160, 120, 55, .16), transparent 60%),
    radial-gradient(ellipse at 50% 110%, rgba(120, 30, 26, .22), transparent 60%);
}
.lobby-card {
  width: min(560px, 100%); background: linear-gradient(165deg, rgba(38, 30, 23, .96), rgba(24, 19, 14, .98));
  border: 1px solid rgba(201, 169, 97, .38); border-radius: 14px;
  padding: 30px 32px 24px; box-shadow: var(--shadow); position: relative;
}
.lobby-card::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 169, 97, .12);
  border-radius: 9px; pointer-events: none;
}
.lobby-logo { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.logo-seal { width: 84px; height: 84px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); flex: none; }
.lobby-logo h1 { margin: 0; font-size: 38px; letter-spacing: .16em; font-weight: 800; color: #f0e2c0; text-shadow: 0 2px 0 #5a4422; }
.lobby-logo p { margin: 6px 0 0; color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.join-row { display: flex; gap: 10px; margin-top: 12px; }
.join-row input { flex: 1; text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: 17px; }
.join-row .btn { flex: none; }

.room-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(201, 169, 97, .18); }
.room-code { font-size: 15px; color: var(--muted); letter-spacing: .1em; }
.room-code b { font-size: 26px; color: var(--gold); letter-spacing: .28em; margin-left: 6px; font-family: "Courier New", monospace; }
.room-sub { font-size: 12px; color: var(--muted); margin: 9px 0 14px; }
.player-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.player-row {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(201, 169, 97, .14); border-radius: 8px;
}
.player-row .pr-portrait { width: 44px; height: 52px; flex: none; border-radius: 5px; overflow: hidden; border: 1px solid rgba(201, 169, 97, .3); }
.player-row .pr-portrait svg { width: 100%; height: 100%; display: block; }
.player-row .pr-main { flex: 1; min-width: 0; }
.player-row .pr-name { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.player-row .pr-hero { font-size: 12px; color: var(--muted); margin-top: 3px; }
.player-row .pr-tag { font-size: 10px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--gold-dim); color: var(--gold); }
.player-row .pr-ready { font-size: 12px; color: #7fc49a; }
.player-row .pr-ready.no { color: #7c6f5c; }
.player-row .pr-kick { margin-left: auto; }
.room-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.room-buttons .btn.tiny.ghost { margin-left: auto; }

.rules-box { margin-top: 20px; border-top: 1px solid rgba(201, 169, 97, .16); padding-top: 14px; }
.rules-box summary { cursor: pointer; color: var(--gold); font-size: 13.5px; letter-spacing: .08em; }
.rules-body { font-size: 13px; line-height: 1.75; color: #cdbfa5; max-height: 260px; overflow-y: auto; padding-right: 6px; }
.rules-body h4 { color: var(--gold); margin: 12px 0 3px; font-size: 13.5px; }
.rules-body p { margin: 0; }

/* ---------------- 对局布局 ---------------- */
#game { padding: 0; }
.game-head {
  display: flex; align-items: center; gap: 18px; padding: 8px 16px;
  background: linear-gradient(180deg, rgba(44, 34, 24, .95), rgba(26, 21, 16, .95));
  border-bottom: 1px solid rgba(201, 169, 97, .28); flex: none; min-height: 52px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-seal {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px;
  background: linear-gradient(145deg, #b4453a, #7c241f); border: 1px solid #d8b568;
  font-size: 18px; color: #f2e2b8; font-family: KaiTi, STKaiti, serif;
}
.brand-name { font-size: 18px; letter-spacing: .14em; color: #ecd9b1; }
.room-tag { font-size: 11px; color: var(--muted); margin-left: 6px; letter-spacing: .08em; }
.room-tag b { color: var(--gold); letter-spacing: .16em; }
.phase-info { flex: 1; text-align: center; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.phase-info b { color: #e9d8b4; font-weight: 600; }
.phase-info .turn-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 6px; box-shadow: 0 0 8px var(--gold); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.head-actions { display: flex; gap: 6px; }

.layout { flex: 1; display: flex; min-height: 0; }
.table { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.table-deco { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* 座位 */
#seats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.seat {
  position: absolute; width: 118px; transform: translate(-50%, -50%);
  pointer-events: auto; text-align: center; transition: filter .15s;
}
.seat .seat-card {
  position: relative; border-radius: 8px; padding: 4px 5px 5px;
  background: linear-gradient(170deg, rgba(48, 38, 28, .92), rgba(26, 21, 16, .94));
  border: 1px solid rgba(201, 169, 97, .32); box-shadow: 0 5px 16px rgba(0, 0, 0, .5);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.seat.turn .seat-card { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 169, 97, .35), 0 0 26px rgba(201, 169, 97, .28); }
.seat.dead { filter: grayscale(1) brightness(.6); }
.seat.dead .seat-card { transform: scale(.94); }
.seat.me .seat-card { border-color: #5c8fbd; }
.seat.targetable .seat-card { cursor: pointer; border-color: #79c39a; box-shadow: 0 0 0 2px rgba(100, 200, 150, .28), 0 0 20px rgba(80, 200, 140, .22); animation: targetGlow 1.4s infinite; }
@keyframes targetGlow { 0%, 100% { box-shadow: 0 0 0 2px rgba(100, 200, 150, .22), 0 0 16px rgba(80, 200, 140, .15); } 50% { box-shadow: 0 0 0 3px rgba(100, 200, 150, .4), 0 0 24px rgba(80, 200, 140, .35); } }
.seat.selected-target .seat-card { border-color: #ffd98a; box-shadow: 0 0 0 3px rgba(255, 210, 120, .45), 0 0 26px rgba(255, 200, 100, .35); }
.seat .seat-top { display: flex; align-items: center; gap: 4px; justify-content: center; margin-bottom: 3px; }
.seat .seat-name { font-size: 11.5px; color: #ecdcbb; max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .seat-role { width: 16px; height: 16px; flex: none; }
.seat .seat-portrait { position: relative; width: 100%; height: 74px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(201, 169, 97, .25); }
.seat .seat-portrait svg { width: 100%; height: 100%; display: block; }
.seat .seat-hp { position: absolute; left: 3px; bottom: 2px; display: flex; flex-wrap: wrap; gap: 1px; max-width: 100%; }
.seat .seat-hand-count {
  position: absolute; right: 2px; bottom: 2px; background: rgba(10, 8, 6, .85); border: 1px solid rgba(201, 169, 97, .45);
  color: #e9d9b6; font-size: 10.5px; border-radius: 8px; padding: 0 5px; line-height: 15px;
}
.seat .seat-hero-name { font-size: 10.5px; color: var(--gold); margin-top: 2px; letter-spacing: .05em; }
.seat .seat-equips { display: flex; justify-content: center; gap: 2px; margin-top: 3px; min-height: 16px; flex-wrap: wrap; }
.seat .seat-judges { display: flex; justify-content: center; gap: 2px; margin-top: 2px; min-height: 0; flex-wrap: wrap; }
.hp-pip { display: inline-block; width: 9px; height: 11px; line-height: 0; }
.hp-pip svg { width: 100%; height: 100%; display: block; }
.self-hp .hp-pip { width: 11px; height: 14px; margin-right: 1px; }
.seat-role svg { width: 100%; height: 100%; display: block; }
.chip-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; opacity: .95; }
.chip-icon svg { width: 100%; height: 100%; display: block; }
.judge-chip { font-size: 9px; line-height: 14px; padding: 0 4px; border-radius: 3px; background: rgba(110, 70, 130, .45); border: 1px solid rgba(180, 140, 210, .45); color: #e4d2f5; }
.waiting-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #e06a4c; box-shadow: 0 0 8px rgba(224, 106, 76, .9); animation: pulse 1.1s infinite;
}
.seat .seat-dead-mark {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .38);
  color: #e8d9bb; font-size: 13px; letter-spacing: .28em; text-shadow: 0 0 6px #000;
}

/* 中央牌堆 */
.center-pile { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 26px; pointer-events: none; }
.pile-block { position: relative; width: 74px; }
.pile-block > div { width: 74px; height: 104px; }
.pile-block svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
#deckCount {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--gold); white-space: nowrap;
}
#discardPile.empty::after { content: ""; display: block; width: 74px; height: 104px; border: 1px dashed rgba(201, 169, 97, .28); border-radius: 7px; }
#judgeView { position: absolute; top: 78%; left: 50%; transform: translate(-50%, -50%) scale(.72); opacity: .95; }
#judgeView:empty { display: none; }
.judge-reveal { text-align: center; }
.judge-reveal .jr-label { font-size: 11px; color: var(--gold); letter-spacing: .1em; margin-bottom: 4px; }
.judge-reveal .jr-card { width: 64px; height: 90px; margin: 0 auto; }
.judge-reveal .jr-card svg { width: 100%; height: 100%; }

.turn-banner {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 12, 9, .82); border: 1px solid rgba(201, 169, 97, .45); color: #f0dfb9;
  padding: 4px 16px; border-radius: 16px; font-size: 12.5px; letter-spacing: .1em; z-index: 4;
  backdrop-filter: blur(4px); white-space: nowrap;
}
.pending-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(120, 40, 30, .8); border: 1px solid rgba(230, 150, 110, .5); color: #ffe4c9;
  padding: 3px 14px; border-radius: 14px; font-size: 12px; z-index: 4; letter-spacing: .06em; white-space: nowrap;
}

/* 侧栏 */
.side {
  width: 264px; flex: none; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(33, 26, 20, .97), rgba(22, 18, 14, .98));
  border-left: 1px solid rgba(201, 169, 97, .22);
}
.tabs { display: flex; border-bottom: 1px solid rgba(201, 169, 97, .18); flex: none; }
.tab {
  flex: 1; background: transparent; border: none; color: var(--muted); padding: 10px 0;
  font-family: inherit; font-size: 13px; cursor: pointer; letter-spacing: .1em; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.log-list { flex: 1; overflow-y: auto; padding: 10px 12px; font-size: 12.5px; line-height: 1.6; color: #cabd9f; }
.log-list .log-line { padding: 2px 0; border-bottom: 1px dashed rgba(201, 169, 97, .07); word-break: break-word; }
.log-list .log-line.sys { color: #e7d3a8; }
.log-list .log-line.warn { color: #e8a273; }
.log-list .log-line.turn { color: var(--gold); margin-top: 6px; font-size: 12px; letter-spacing: .06em; }
.log-list .log-line.die { color: #e28577; }
.chat-pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-pane .log-list { flex: 1; }
.chat-pane .chat-name { color: var(--gold); }
#chatForm { display: flex; gap: 6px; padding: 9px; border-top: 1px solid rgba(201, 169, 97, .16); flex: none; }
#chatForm input { font-size: 12.5px; padding: 7px 9px; }
#chatForm .btn { flex: none; }

/* 自身区域 */
.self-area {
  flex: none; display: grid; grid-template-columns: 176px 1fr; grid-template-rows: auto auto;
  gap: 4px 12px; padding: 7px 14px 10px; min-height: 188px;
  background: linear-gradient(180deg, rgba(32, 26, 20, .96), rgba(18, 14, 11, .99));
  border-top: 1px solid rgba(201, 169, 97, .3); position: relative;
}
.self-info { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 5px; }
.self-head { display: flex; align-items: center; gap: 8px; }
.self-portrait { width: 52px; height: 62px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(201, 169, 97, .45); flex: none; }
.self-portrait svg { width: 100%; height: 100%; display: block; }
.self-meta { min-width: 0; }
.self-name { font-size: 13.5px; display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.self-role-name { color: var(--muted); font-size: 10.5px; flex: none; }
.self-hero { font-size: 11.5px; color: var(--gold); margin-top: 2px; }
.self-hp { display: flex; flex-wrap: wrap; gap: 1px; margin-top: 5px; }
.self-seat { font-size: 10px; color: var(--muted); }
.self-equips { display: flex; gap: 4px; flex-wrap: wrap; }
.equip-chip { display: flex; align-items: center; gap: 3px; font-size: 10px; padding: 2px 5px; border-radius: 4px; background: rgba(201, 169, 97, .1); border: 1px solid rgba(201, 169, 97, .22); color: #d9c9a8; }
.equip-chip .chip-icon { width: 13px; height: 13px; }
.self-judges { display: flex; gap: 4px; flex-wrap: wrap; }
.hand { grid-column: 2; display: flex; align-items: flex-end; gap: 5px; overflow-x: auto; overflow-y: hidden; padding: 14px 2px 4px; min-height: 128px; }
.hand::-webkit-scrollbar { height: 6px; }
.hand::-webkit-scrollbar-thumb { background: rgba(201, 169, 97, .25); border-radius: 3px; }
.hand-card {
  position: relative; flex: none; width: 82px; height: 116px; border-radius: 7px; cursor: pointer;
  transition: transform .14s, filter .14s; transform-origin: bottom center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.hand-card svg { width: 100%; height: 100%; display: block; border-radius: 7px; }
.hand-card:hover { transform: translateY(-12px); }
.hand-card.selected { transform: translateY(-16px); filter: drop-shadow(0 0 12px rgba(255, 210, 120, .8)); }
.hand-card.selected svg { outline: 2px solid #ffd98a; outline-offset: -1px; border-radius: 7px; }
.hand-card.playable::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 3px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #d9b45b, transparent);
}
.hand-card.dim { filter: brightness(.55) saturate(.6); }
.hand-card .hc-trans {
  position: absolute; top: 4px; right: 4px; font-size: 9px; color: #1b140d; background: #e5c274;
  padding: 0 4px; border-radius: 3px; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.action-bar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 36px; padding-top: 5px; border-top: 1px solid rgba(201, 169, 97, .14);
}
.action-bar .ab-text { font-size: 12.5px; color: #d8c8a8; letter-spacing: .04em; }
.action-bar .ab-text b { color: var(--gold); }
.action-bar .ab-spacer { flex: 1; }
.action-bar .btn { padding: 5px 12px; font-size: 12.5px; }
.as-option.active { background: linear-gradient(180deg, #b8954f, #8c6d33); color: #1a130c; border-color: #e2c98f; }
.countdown { font-family: "Courier New", monospace; color: #e8a273; font-size: 12px; min-width: 30px; text-align: right; }

/* 弹层 */
.modal {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 4, 3, .72); backdrop-filter: blur(3px); padding: 20px;
}
.modal-box {
  position: relative; width: min(560px, 96vw); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(165deg, #2b2219, #1b1510);
  border: 1px solid rgba(201, 169, 97, .5); border-radius: 12px; padding: 24px; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; right: 10px; top: 8px; background: none; border: none; color: var(--muted);
  font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--paper); }
.modal h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: .1em; color: #f0dfb9; }
.modal p { font-size: 13.5px; line-height: 1.8; color: #cfc0a6; }
.modal .pick-options { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.modal .pick-option { text-align: left; }
.result-roles { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.result-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 8px; border-bottom: 1px dashed rgba(201,169,97,.14); }

/* 提示浮层 */
.toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(20, 15, 11, .94); border: 1px solid rgba(201, 169, 97, .5);
  color: #f0dfb9; padding: 9px 20px; border-radius: 8px; font-size: 13px; z-index: 60;
  box-shadow: var(--shadow); letter-spacing: .05em; animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 响应手牌提示 */
.hand-card.respondable { outline: 2px solid rgba(120, 220, 160, .75); outline-offset: -1px; }
.hand-card.respondable::before {
  content: "可响应"; position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: #8fd9ab; white-space: nowrap; letter-spacing: .06em;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 169, 97, .22); border-radius: 3px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .side { width: 200px; }
  .seat { width: 98px; }
  .seat .seat-portrait { height: 60px; }
  .self-area { grid-template-columns: 132px 1fr; }
  .hand-card { width: 68px; height: 96px; }
  .hand { min-height: 106px; }
}
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .side { width: 100%; height: 112px; border-left: none; border-top: 1px solid rgba(201,169,97,.2); order: 2; flex: none; }
  .table { order: 1; flex: 1; min-height: 0; }
  .log-list { font-size: 11.5px; }
  .self-area { grid-template-columns: 124px 1fr; min-height: 158px; padding: 5px 8px 7px; }
  .self-portrait { width: 38px; height: 46px; }
  .self-info { font-size: 11px; }
  .hand { min-height: 92px; padding-top: 10px; gap: 4px; }
  .hand-card { width: 58px; height: 82px; }
  .hand-card:hover { transform: translateY(-8px); }
  .hand-card.selected { transform: translateY(-11px); }
  .game-head { padding: 5px 10px; gap: 8px; min-height: 44px; }
  .room-tag { display: none; }
  .phase-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
  .head-actions .btn { padding: 3px 7px; font-size: 11px; }
  .brand-name { font-size: 15px; }
  .phase-info { font-size: 11px; }
  .phase-info .turn-dot { width: 5px; height: 5px; }
  .seat { width: 82px; }
  .seat .seat-portrait { height: 50px; }
  .seat .seat-name { font-size: 10px; max-width: 56px; }
  .seat .seat-hero-name { font-size: 9px; }
  .seat .seat-card { padding: 3px; }
  .center-pile { gap: 14px; }
  .pile-block, .pile-block > div, .pile-block svg { width: 48px; height: 68px; }
  .turn-banner { top: 4px; font-size: 11px; padding: 3px 10px; }
  .action-bar { min-height: 32px; }
  .action-bar .btn { padding: 4px 9px; font-size: 11.5px; }
  .action-bar .ab-text { font-size: 11.5px; }
  .lobby-card { padding: 22px 18px 18px; }
  .lobby-logo h1 { font-size: 30px; }
  .logo-seal { width: 64px; height: 64px; }
  .self-role-name { display: none; }
  .self-name { font-size: 12px; }
  .self-hero { font-size: 10px; }
  .seat .seat-hero-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
