* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg:#080b16; --panel:rgba(22,28,51,.86); --panel-solid:#161c33; --panel2:#1e2643; --line:rgba(122,142,224,.18);
  --text:#e9eeff; --muted:#8b95bd; --accent:#5b8cff; --accent-2:#22d3ee; --accent2:#34d399;
  --purple:#a78bfa; --gold:#fbbf24;
  --safe-t: env(safe-area-inset-top); --safe-b: env(safe-area-inset-bottom);
  --safe-l: env(safe-area-inset-left); --safe-r: env(safe-area-inset-right);
}
html,body {
  height:100%; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;
  -webkit-user-select:none; user-select:none; overflow:hidden;
  touch-action:manipulation; -webkit-font-smoothing:antialiased;
}
/* 背景光斑（纯装饰） */
body::before {
  content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(420px 320px at 8% -6%, rgba(91,140,255,.26), transparent 62%),
    radial-gradient(400px 300px at 98% 2%, rgba(167,139,250,.2), transparent 62%),
    radial-gradient(520px 360px at 50% 108%, rgba(34,211,238,.14), transparent 64%);
}
#app { height:100vh; display:flex; flex-direction:column; position:relative; z-index:1; }
.panel-wrap { height:100vh; display:flex; flex-direction:column; }
.hidden { display:none !important; }
::selection { background:rgba(91,140,255,.4); }

@keyframes cardIn { from { opacity:0; transform:translateY(12px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes pulseDot { 0%,100% { box-shadow:0 0 0 0 rgba(52,211,153,.55); } 50% { box-shadow:0 0 0 5px rgba(52,211,153,0); } }

/* ============ 语言选择（登录卡右上角） ============ */
.lang-row { display:flex; justify-content:flex-end; margin:-4px 0 8px; }
.lang-sel {
  min-height:32px; max-width:100%; min-width:0; padding:6px 26px 6px 10px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel2);
  color:var(--muted); font-size:13px; line-height:1.2; outline:none;
  -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b95bd'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 9px center;
}
.lang-sel:focus { border-color:var(--accent); color:var(--text); }
.lang-sel option { background:var(--panel-solid); color:var(--text); }

/* ============ 登录 ============ */
#panel-auth { justify-content:center; align-items:center; padding:20px; }
.auth-card {
  position:relative; width:min(380px,92%); padding:28px 24px;
  background:linear-gradient(180deg, rgba(30,37,66,.93) 0%, rgba(18,23,42,.96) 100%);
  border:1px solid rgba(122,142,224,.22); border-radius:22px;
  box-shadow:0 24px 60px rgba(3,6,18,.62), inset 0 1px 0 rgba(255,255,255,.06);
  animation:cardIn .4s cubic-bezier(.2,.8,.2,1) both;
}
.auth-card::before {
  content:''; position:absolute; left:0; right:0; top:0; height:2px; border-radius:22px 22px 0 0;
  background:linear-gradient(90deg, transparent, var(--accent), var(--purple), var(--accent-2), transparent);
  opacity:.9;
}
.auth-card h1 { font-size:24px; text-align:center; margin-bottom:6px; text-shadow:0 0 22px rgba(91,140,255,.45); }
.auth-sub { color:var(--muted); text-align:center; font-size:13px; margin-bottom:14px; line-height:1.6; }
.feedback-line { text-align:center; font-size:12px; color:var(--muted); margin:-6px 0 14px; }
.feedback-line a { color:var(--accent-2); text-decoration:none; border-bottom:1px dashed rgba(34,211,238,.5); }
.auth-tabs {
  display:flex; gap:4px; background:rgba(10,14,28,.6); border:1px solid var(--line);
  border-radius:12px; padding:4px; margin-bottom:16px;
}
.auth-tabs .tab {
  flex:1; padding:10px 0; border:none; background:transparent; color:var(--muted);
  border-radius:9px; font-size:15px; font-weight:600;
}
.auth-tabs .tab.active {
  background:linear-gradient(135deg,var(--accent),#7c5bff); color:#fff;
  box-shadow:0 6px 16px rgba(91,140,255,.35);
}
.auth-body input {
  width:100%; padding:12px 14px; margin-bottom:10px; border-radius:11px;
  border:1px solid var(--line); background:rgba(12,17,34,.75); color:var(--text);
  font-size:16px; outline:none; -webkit-appearance:none;
  transition:border-color .18s, box-shadow .18s;
}
.auth-body input::placeholder { color:#6b7599; }
.auth-body input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(91,140,255,.18); }
.auth-body button {
  width:100%; padding:13px; font-size:16px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--accent),#7c5bff); border:none;
  border-radius:11px; margin-top:4px; box-shadow:0 8px 20px rgba(91,140,255,.26);
  transition:transform .16s, filter .16s;
}
.auth-body button:active { transform:scale(.99); }
.auth-body button:disabled { opacity:.65; }
.error { color:#ff8a8a; font-size:13px; margin-top:8px; min-height:18px; text-align:center; }

/* ============ 大厅 ============ */
.lobby-header {
  display:flex; align-items:center; gap:10px; padding:10px 16px;
  border-bottom:1px solid var(--line); background:rgba(15,20,38,.8); flex-shrink:0;
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  padding-top:calc(10px + var(--safe-t));
}
.lobby-user { font-weight:700; color:var(--text); }
.lobby-best { font-size:12px; color:var(--accent2); flex:1; }
.ghost-btn {
  padding:5px 10px; border-radius:8px; border:1px solid var(--line); background:rgba(30,38,67,.8);
  color:var(--muted); font-size:12px;
}
.ghost-btn:active { border-color:var(--accent); color:#fff; }

.lobby-body { flex:1; overflow-y:auto; padding:14px 16px calc(24px + var(--safe-b)); }
.lobby-section { margin-bottom:20px; }
.lobby-section h3 {
  font-size:13px; color:var(--muted); margin-bottom:9px;
  display:flex; justify-content:flex-start; align-items:center; gap:0; letter-spacing:.5px;
}
.lobby-section h3::before {
  content:''; width:3px; height:12px; border-radius:2px; margin-right:8px; flex:none;
  background:linear-gradient(180deg,var(--accent),var(--purple));
}
.lobby-section h3 .ghost-btn { margin-left:auto; }

.room-list { display:flex; flex-direction:column; gap:7px; }
.room-row {
  position:relative; overflow:hidden;
  display:flex; justify-content:space-between; align-items:center;
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px;
}
.room-row::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
}
.room-row .room-name { font-weight:700; color:var(--text); font-size:15px; }
.room-row .room-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.room-row .room-pass { font-size:11px; color:var(--gold); }

.lobby-section input {
  width:100%; padding:11px 12px; margin-bottom:8px; border-radius:10px;
  border:1px solid var(--line); background:rgba(12,17,34,.75); color:var(--text);
  font-size:15px; outline:none; -webkit-appearance:none;
  transition:border-color .18s, box-shadow .18s;
}
.lobby-section input::placeholder { color:#6b7599; }
.lobby-section input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(91,140,255,.18); }
.primary-btn {
  width:100%; padding:11px; font-size:15px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--accent),#7c5bff); border:none; border-radius:10px;
  box-shadow:0 6px 18px rgba(91,140,255,.25);
}
.primary-btn:active { transform:scale(.99); }

.rank-list {
  list-style:none; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; padding:8px;
}
.rank-list li {
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:7px 6px; border-radius:8px; font-size:14px;
}
.rank-list li.me { background:rgba(52,211,153,.12); box-shadow:inset 0 0 0 1px rgba(52,211,153,.28); color:var(--accent2); font-weight:700; }
.rank-list .rk { color:var(--muted); font-weight:800; width:24px; flex:none; text-align:center; }
.rank-list li.top1 { background:linear-gradient(90deg,rgba(251,191,36,.16),transparent 78%); }
.rank-list li.top2 { background:linear-gradient(90deg,rgba(203,213,225,.13),transparent 78%); }
.rank-list li.top3 { background:linear-gradient(90deg,rgba(224,145,91,.14),transparent 78%); }
.rank-list li.top1 .rk { color:#ffd34d; }
.rank-list li.top2 .rk { color:#d5dded; }
.rank-list li.top3 .rk { color:#e0915b; }
.rank-list .nm { flex:1; min-width:0; display:flex; align-items:center; gap:2px; }
.rank-list .sc { font-weight:800; color:var(--accent2); flex:none; font-variant-numeric:tabular-nums; }
.nm-t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ============ 游戏 ============ */
#panel-game { flex-direction:column; }
#topbar {
  display:flex; align-items:center; gap:6px; padding:8px 12px;
  border-bottom:1px solid var(--line); flex-wrap:wrap; flex-shrink:0;
  background:rgba(15,20,38,.72);
  padding-top: calc(8px + var(--safe-t));
}
.room-title { font-size:14px; font-weight:800; color:var(--accent-2); flex:1; }
.hud-item {
  background:rgba(22,28,51,.9); border:1px solid var(--line); border-radius:999px;
  padding:4px 10px; font-size:12px; white-space:nowrap; font-variant-numeric:tabular-nums;
}
.fs-btn {
  padding:4px 9px; font-size:14px; cursor:pointer; background:rgba(30,38,67,.9);
  border:1px solid var(--line); border-radius:999px; color:var(--text);
}

#stage { flex:1; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action:none; }
#game { display:block; background:#0d1226; touch-action:none; }

.overlay {
  position:absolute; inset:0; background:rgba(6,9,20,.78);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; z-index:10;
}
.overlay.hidden { display:none; }
.panel {
  background:linear-gradient(180deg, rgba(30,37,66,.96), rgba(18,23,42,.98));
  border:1px solid rgba(122,142,224,.26); border-radius:18px;
  padding:24px 20px; text-align:center; width:min(340px,90%);
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  animation:cardIn .26s ease both;
}
.panel h2 { font-size:18px; margin-bottom:12px; }
.panel .sub { color:var(--muted); font-size:13px; margin:8px 0; }
.panel button {
  width:100%; padding:12px; font-size:15px; font-weight:700; color:#fff;
  background:linear-gradient(135deg,var(--accent),#7c5bff); border:none; border-radius:11px;
  margin-top:8px; box-shadow:0 8px 20px rgba(91,140,255,.28);
}
.speed-row { display:flex; gap:6px; margin-bottom:12px; }
.speed-btn {
  flex:1; padding:8px 0; font-size:12px; font-weight:700;
  background:rgba(12,17,34,.7); border:1px solid var(--line); border-radius:9px; color:var(--muted);
}
.speed-btn.active {
  background:linear-gradient(135deg,var(--accent),#7c5bff); border-color:transparent; color:#fff;
  box-shadow:0 5px 14px rgba(91,140,255,.35);
}

/* 虚拟方向键 */
#vpad {
  display:grid; grid-template-columns:repeat(3,64px); grid-template-rows:repeat(3,64px);
  gap:6px; justify-content:center; padding:10px 0 calc(10px + var(--safe-b));
  flex-shrink:0;
}
.vbtn {
  width:64px; height:64px; border-radius:14px; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(32,40,72,.95), rgba(21,27,50,.95));
  color:var(--text); font-size:22px; font-weight:700;
  touch-action:manipulation; -webkit-tap-highlight-color:transparent;
  box-shadow:0 4px 12px rgba(0,0,0,.35);
}
.vbtn:active {
  background:linear-gradient(180deg,var(--accent),#7c5bff);
  border-color:transparent; color:#fff; transform:scale(.97);
}
.vbtn.up { grid-column:2; grid-row:1; }
.vbtn.left { grid-column:1; grid-row:2; }
.vbtn.down { grid-column:2; grid-row:3; }
.vbtn.right { grid-column:3; grid-row:2; }

/* toast */
#toast {
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  background:rgba(220,70,70,.95); color:#fff; padding:8px 18px; border-radius:999px; font-size:14px; z-index:20;
  box-shadow:0 10px 26px rgba(220,70,70,.35);
}

/* 横屏适配 */
@media (orientation: landscape) {
  #vpad { grid-template-columns:repeat(3,48px); grid-template-rows:repeat(3,48px); gap:4px; padding:4px 0; }
  .vbtn { width:48px; height:48px; font-size:18px; border-radius:11px; }
}

/* ============ 邮箱验证码 / 好友 / 私聊 ============ */
.code-row { display:flex; gap:8px; }
.code-row input { flex:1 1 auto; width:auto; min-width:0; margin-bottom:0; }
.code-row button {
  flex:none; width:auto; padding:0 12px; border-radius:10px; border:1px solid var(--line);
  background:rgba(30,38,67,.9); color:var(--text); font-size:13px; white-space:nowrap;
}
.code-row button:disabled { opacity:.6; }
.muted { color:var(--muted); font-size:12px; margin:-4px 0 8px; }

.people-list { display:flex; flex-direction:column; gap:6px; }
.people-row {
  display:flex; align-items:center; gap:8px; padding:10px 11px;
  background:var(--panel); border:1px solid var(--line); border-radius:11px; font-size:14px;
}
.people-row .pn { flex:1; min-width:0; display:flex; align-items:center; gap:2px; }
.people-row .pb { color:var(--muted); font-size:12px; flex:none; }
.dot { width:8px; height:8px; border-radius:50%; background:#5b6489; flex:none; }
.dot.on { background:var(--accent2); animation:pulseDot 2s ease-in-out infinite; }
.mini-btn {
  flex:none; font-size:13px; padding:6px 12px; border-radius:8px; border:none;
  background:linear-gradient(135deg,var(--accent),#7c5bff); color:#fff; font-weight:600;
}
.mini-btn.ghost { background:rgba(12,17,34,.7); color:var(--muted); border:1px solid var(--line); }
.mini-btn:disabled { opacity:.5; }
.req-row {
  display:flex; align-items:center; gap:6px; font-size:14px; margin-bottom:6px;
  padding:9px 10px; border-radius:10px; background:rgba(91,140,255,.14);
  border:1px solid rgba(91,140,255,.4);
}
.req-row span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.empty-tip { color:var(--muted); font-size:13px; padding:6px 2px; }

/* 私聊：手机上是底部抽屉 */
.dm-box {
  position:fixed; left:0; right:0; bottom:0; height:62vh; z-index:80;
  display:flex; flex-direction:column;
  background:linear-gradient(180deg, rgba(30,37,66,.98), rgba(16,21,38,.99));
  border-top:1px solid rgba(122,142,224,.28);
  border-radius:18px 18px 0 0; box-shadow:0 -10px 40px rgba(0,0,0,.6);
  padding-bottom:var(--safe-b);
  animation:cardIn .24s ease both;
}
.dm-head {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:12px 14px; border-bottom:1px solid var(--line); font-weight:700;
}
.dm-msgs { flex:1; min-height:0; overflow-y:auto; padding:10px 14px; }
.msg { font-size:14px; line-height:1.45; margin-bottom:8px; word-break:break-word; }
.msg .from { color:var(--accent); font-weight:700; margin-right:4px; }
.msg.mine { text-align:right; }
.msg.mine .from { color:var(--accent2); }
.dm-box .chat-input { display:flex; gap:8px; padding:10px 14px; border-top:1px solid var(--line); }
.dm-box .chat-input input {
  flex:1; min-width:0; padding:10px 12px; border-radius:10px;
  border:1px solid var(--line); background:rgba(12,17,34,.8); color:var(--text);
  font-size:16px; outline:none; -webkit-appearance:none;
}
.dm-box .chat-input input:focus { border-color:var(--accent); }
.dm-box .chat-input button {
  flex:none; padding:0 16px; border-radius:10px; border:none;
  background:linear-gradient(135deg,var(--accent),#7c5bff); color:#fff; font-size:15px; font-weight:700;
}

.captcha-img{display:block;width:120px;height:40px;margin:8px 0 4px;border-radius:8px;cursor:pointer;background:#eef2f7}

/* 官方账号徽章 */
.off-badge{
  margin-left:5px; padding:0 5px; border-radius:6px; font-size:10px; line-height:16px;
  background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#231a05; font-weight:800;
  vertical-align:middle; white-space:nowrap; flex:none;
  box-shadow:0 0 10px rgba(251,191,36,.35);
}

/* 游客试玩 */
.auth-body button.guest-btn {
  margin-top:8px; background:transparent; border:1px solid var(--line);
  color:var(--muted); box-shadow:none; font-size:15px; font-weight:600;
}
.auth-body button.guest-btn:active { background:rgba(91,140,255,.14); color:#fff; }
.guest-btn span { font-size:11px; opacity:.65; }
.guest-note { text-align:center; font-size:12px; color:var(--muted); margin-top:7px; }
/* 注册时的服务条款勾选 */
/* hCaptcha：服务端没配置 key 时这个盒子是空的，自动隐藏 */
.hcaptcha-box { margin:10px 0 6px; display:flex; justify-content:center; }
.hcaptcha-box:empty { display:none; }
@media (max-width:380px) { .hcaptcha-box { transform:scale(.88); transform-origin:center; } }
.agree-row {
  display:flex; align-items:flex-start; gap:7px; margin:4px 0 8px;
  font-size:12px; line-height:1.6; color:var(--muted); cursor:pointer;
}
/* .auth-body input 是 width:100% 且去掉了默认外观，勾选框必须单独还原 */
.agree-row input {
  flex:0 0 auto; width:17px !important; height:17px;
  margin:2px 0 0 !important; padding:0 !important;
  -webkit-appearance:checkbox !important; appearance:checkbox !important;
  accent-color:var(--accent); cursor:pointer;
}
.agree-row > span { flex:1; min-width:0; }
.agree-row a { color:var(--accent); text-decoration:none; }
.guest-tip {
  margin:0 0 12px; padding:10px 12px; border-radius:10px; font-size:12px; line-height:1.6;
  color:#ffe08a; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.32);
}
body.is-guest #deleteAcctBtn { display:none; }

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}

/* ============ 房间侧栏（成员 / 聊天 / 设置 / 离开） ============ */
.drawer-btn { font-size:15px; padding:4px 9px; cursor:pointer; color:var(--text); }
.drawer-mask {
  position:fixed; inset:0; z-index:40; background:rgba(6,9,20,.55);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  transition:opacity .22s;
}
.drawer {
  position:fixed; top:0; right:0; bottom:0; z-index:41;
  width:min(320px,86vw); display:flex; flex-direction:column;
  background:linear-gradient(180deg, rgba(26,33,60,.98), rgba(14,19,36,.99));
  border-left:1px solid var(--line); box-shadow:-12px 0 32px rgba(0,0,0,.45);
  transform:translateX(102%); transition:transform .26s cubic-bezier(.32,.72,0,1);
  padding:calc(10px + var(--safe-t)) 14px calc(10px + var(--safe-b));
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.drawer.open { transform:translateX(0); }
.drawer-head {
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; font-weight:700; color:var(--muted);
  padding:12px 0 8px; border-bottom:1px solid var(--line); margin-bottom:8px;
}
.drawer-head:first-child { padding-top:0; }
.drawer-x {
  background:none; border:0; color:var(--muted); font-size:16px;
  padding:2px 6px; cursor:pointer; line-height:1;
}
.drawer-x:active { color:var(--text); }
.member-list { list-style:none; margin:0 0 4px; padding:0; }
.member-list li {
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; padding:9px 10px; margin-bottom:6px; border-radius:10px;
  background:rgba(30,38,67,.6); border:1px solid var(--line); font-size:13px;
}
.member-list li.me { border-color:rgba(91,140,255,.55); background:rgba(91,140,255,.12); }
.member-list .left { display:flex; align-items:center; gap:7px; min-width:0; }
.member-list .dot { width:9px; height:9px; border-radius:50%; flex:none; }
.member-list .nm { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-list .sc { color:var(--accent2); font-variant-numeric:tabular-nums; flex:none; }
.room-chat {
  height:150px; overflow-y:auto; -webkit-overflow-scrolling:touch;
  padding:9px 10px; border-radius:10px; border:1px solid var(--line);
  background:rgba(10,14,28,.6); font-size:12.5px; line-height:1.7;
  margin-bottom:8px;
}
.room-chat .msg { word-break:break-word; }
.room-chat .from { color:var(--accent-2); font-weight:600; }
.room-chat .from.sys { color:var(--gold); }
.room-chat .from.me { color:var(--purple); }
.chat-input { display:flex; gap:8px; margin-bottom:6px; }
.chat-input input {
  flex:1 1 auto; min-width:0; margin-bottom:0; height:38px;
  padding:0 12px; border-radius:10px; border:1px solid var(--line);
  background:rgba(30,38,67,.85); color:var(--text); font-size:13px; outline:none;
}
.chat-input button {
  flex:none; width:auto; padding:0 16px; height:38px; border-radius:10px;
  border:0; background:linear-gradient(135deg,#5b8cff,#8b5cf6); color:#fff;
  font-size:13px; font-weight:600;
}
.leave-btn {
  margin-top:14px; width:100%; padding:12px; border-radius:11px;
  border:1px solid rgba(239,68,68,.45); background:rgba(239,68,68,.1);
  color:#f87171; font-size:14px; font-weight:600; cursor:pointer;
}
.leave-btn:active { background:rgba(239,68,68,.2); }

/* —— Cookie 提示条 —— */
.cookie-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 11px 13px; border-radius: 13px;
  background: rgba(14,18,32,.96); border: 1px solid rgba(120,200,255,.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.42); backdrop-filter: blur(10px);
  font-size: 12px; line-height: 1.5; color: #dbe7ff;
}
.cookie-bar.hidden { display: none; }
.cookie-bar a { color: #7ee0a0; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#cookieAccept {
  padding: 7px 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(135deg,#3ddc84,#25b463); color: #06210f; font-weight: 700; font-size: 12px;
}
html[data-theme="light"] .cookie-bar {
  background: #fff; color: #22304a; border-color: #d7e3f6;
  box-shadow: 0 10px 26px rgba(40,60,110,.16);
}

/* 第三方快捷登录 */
.oauth-row { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.oauth-title { font-size: 11px; text-align: center; opacity: .6; }
.oauth-btn {
  width: 100%; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; font-size: 13px;
}
html[data-theme="light"] .oauth-btn { border-color: #d7e3f6; background: #fff; color: #22304a; }

/* 手机号验证码登录 */
.sms-row {
  margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 7px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.sms-title { font-size: 11px; text-align: center; opacity: .6; margin: 0; }
.sms-login-btn {
  width: 100%; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: #fff; font-size: 13px;
}
html[data-theme="light"] .sms-row { border-top-color: #e3ebf7; }
html[data-theme="light"] .sms-login-btn { border-color: #d7e3f6; background: #fff; color: #22304a; }

/* 聊天增强（手机端） */
.msg .txt { white-space: normal; }
.msg .rt a { color: #8fc0ff; text-decoration: underline; }
.msg .rt .rt-inline { padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.1); font-size: .92em; }
.msg .rt pre.rt-code { margin: 4px 0; padding: 6px 8px; border-radius: 6px; background: rgba(0,0,0,.3); overflow-x: auto; font-size: 12px; white-space: pre; }
.msg .rt .katex-display { margin: 4px 0; overflow-x: auto; overflow-y: hidden; }
.dm-recall { margin-left: 8px; border: 0; background: transparent; color: inherit; opacity: .55; font-size: 11px; text-decoration: underline; }
.msg.recalled { opacity: .6; font-style: italic; }

/* 手机端语言下拉 */
.lang-sel {
  min-height: 32px; padding: 5px 28px 5px 8px; border-radius: 8px;
  border: 1px solid #2a3550; background: #141a26; color: #e8ecf6; font-size: 13px; min-width: 52vw;
  -webkit-appearance: none; appearance: none; max-width: 55vw;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b94b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}

/* 手机大厅：当前皮肤小徽章 */
.my-skin-chip { display: inline-flex; align-items: center; gap: 3px; }
.my-skin-chip i { width: 9px; height: 9px; border-radius: 3px; display: block; }
