/* 语音聊天室 - 全站样式 */
:root {
  --bg1: #0f1222;
  --bg2: #181b30;
  --card: rgba(255, 255, 255, .045);
  --card2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --txt: #e8eaf6;
  --sub: #9aa0b5;
  --acc: #7c6cff;
  --acc2: #4f8cff;
  --ok: #2ecc8f;
  --bad: #ff5d6c;
  --warn: #ffb04f;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg1);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: none; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(124, 108, 255, .22), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(79, 140, 255, .16), transparent 60%),
    radial-gradient(500px 400px at 50% 100%, rgba(46, 204, 143, .08), transparent 60%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
}

/* ---------- 大厅 ---------- */
.lobby { max-width: 460px; margin: 0 auto; padding: 42px 16px 60px; }
.brand { text-align: center; margin-bottom: 22px; }
.brand .logo {
  width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff; box-shadow: 0 10px 30px rgba(124, 108, 255, .35);
}
.brand h1 { font-size: 24px; letter-spacing: 1px; }
.brand .sub { color: var(--sub); font-size: 13px; margin-top: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.card h2 { font-size: 16px; margin-bottom: 14px; }
.card.center { text-align: center; }
.card.center .btn { margin-top: 14px; }
.card.center p { color: var(--sub); font-size: 13px; line-height: 1.7; }

.tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  padding: 4px; border-radius: 11px;
}
.tab {
  flex: 1; padding: 8px 0; font-size: 13px; color: var(--sub);
  background: none; border: none; border-radius: 8px; cursor: pointer;
  transition: all .15s; font-weight: 600;
}
.tab:hover { color: var(--txt); }
.tab.active {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
}

label { display: block; font-size: 12px; color: var(--sub); margin: 12px 0 6px; }
input {
  width: 100%; padding: 11px 13px; font-size: 14px;
  color: var(--txt); background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--acc); }
input::placeholder { color: #6b7186; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: 14px; color: var(--txt);
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: filter .15s, transform .05s; user-select: none;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(124, 108, 255, .3);
}
.btn.block { width: 100%; margin-top: 16px; }
.btn.sm { padding: 8px 14px; border-radius: 9px; flex-shrink: 0; }
.btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.divider { text-align: center; color: var(--sub); font-size: 12px; margin: 18px 0 4px; position: relative; }
.divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.divider span { position: relative; background: transparent; padding: 0 10px; }
.hi { font-size: 13px; color: var(--sub); margin-bottom: 14px; }
.hi b { color: var(--txt); }
.hi a { margin-left: 10px; font-size: 12px; }
.acct { font-size: 11px; color: #6b7186; margin-left: 8px; }
.nickrow { margin: 0 0 14px; }
.tips { font-size: 12px; color: var(--sub); margin-top: 14px; line-height: 1.7; }

.rooms { display: flex; flex-direction: column; gap: 8px; }
.room-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .18); border: 1px solid var(--line);
  color: var(--txt); font-size: 14px; transition: background .15s, border-color .15s;
}
.room-item:hover { background: rgba(255, 255, 255, .06); border-color: rgba(124, 108, 255, .45); }
.rname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rmeta { display: inline-flex; align-items: center; gap: 4px; color: var(--sub); font-size: 12px; }
.ronline { font-size: 12px; color: #6b7186; }
.ronline.on { color: var(--ok); }
/* ---------- 用户芯片（点击展开账号设置） ---------- */
.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--txt); font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.userchip:hover { border-color: rgba(124, 108, 255, .5); background: rgba(124, 108, 255, .1); }
.ucava {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
}
.userchip svg { opacity: .6; }
.pclose {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; color: var(--sub);
  font-size: 22px; cursor: pointer; line-height: 1; padding: 2px 6px;
}
.pclose:hover { color: var(--txt); }

/* ---------- 房间管理（踢人/禁言/房管） ---------- */
.tile { position: relative; }
.ownerbadge {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 10px; font-weight: 600; border-radius: 999px;
  color: #ffd479; background: rgba(255, 196, 66, .12);
  border: 1px solid rgba(255, 196, 66, .35); vertical-align: 1px;
}
.radminbadge {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 10px; font-weight: 600; border-radius: 999px;
  color: #9fc1ff; background: rgba(96, 165, 250, .12);
  border: 1px solid rgba(96, 165, 250, .35); vertical-align: 1px;
}
.muteflag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10px; border-radius: 999px; color: var(--bad);
  background: rgba(255, 93, 108, .12); border: 1px solid rgba(255, 93, 108, .35);
  vertical-align: 1px;
}
.tact { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }
.tbtn {
  width: 24px; height: 24px; border-radius: 7px;
  display: none; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  color: var(--txt); cursor: pointer; padding: 0;
}
.tbtn[data-act="kick"] { color: var(--bad); border-color: rgba(255, 93, 108, .4); }
.tbtn:hover { background: rgba(255, 255, 255, .16); }
.tile:hover .tbtn { display: flex; }
#muteAllBtn.act { color: var(--bad); border-color: rgba(255, 93, 108, .5); }
#roomMuteBtn.off { opacity: .75; }
.chatinput input:disabled, .chatinput button:disabled { opacity: .5; cursor: not-allowed; }
.kickbox { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }
.kbhead { font-size: 12px; color: var(--sub); margin-bottom: 10px; }
.kblist { display: flex; flex-wrap: wrap; gap: 8px; }
.kchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 93, 108, .08); border: 1px solid rgba(255, 93, 108, .3);
}
.kchip b { font-weight: 600; }
.kchip a { color: var(--acc2); text-decoration: none; }
.kchip a:hover { text-decoration: underline; }

/* ---------- 后台管理 ---------- */
.atable-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.atable th, .atable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.atable th { color: var(--sub); font-weight: 500; font-size: 12px; white-space: nowrap; }
.atable td b { font-weight: 600; }
.admtag {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 10px; border-radius: 999px; color: #ffd479;
  background: rgba(255, 196, 66, .12); border: 1px solid rgba(255, 196, 66, .35);
}
.sttag { font-size: 11px; color: #6b7186; }
.sttag.on { color: var(--ok); }
.ops { white-space: nowrap; }
.op { color: var(--acc2); text-decoration: none; font-size: 12px; margin-right: 10px; }
.op:hover { text-decoration: underline; }
.op.danger { color: var(--bad); }

/* ---------- 落地页 ---------- */
.landing .bg { overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: orbfloat 16s ease-in-out infinite alternate;
}
.orb.o1 { width: 480px; height: 480px; left: -120px; top: -140px; background: radial-gradient(circle, rgba(124, 108, 255, .55), transparent 70%); }
.orb.o2 { width: 520px; height: 520px; right: -150px; top: 60px; background: radial-gradient(circle, rgba(79, 140, 255, .5), transparent 70%); animation-duration: 20s; animation-delay: -6s; }
.orb.o3 { width: 420px; height: 420px; left: 34%; bottom: -220px; background: radial-gradient(circle, rgba(46, 204, 143, .35), transparent 70%); animation-duration: 24s; animation-delay: -12s; }
@keyframes orbfloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.landing-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 30px; }
.landing .lobby { padding: 6px 0 0; }
.hero { text-align: center; padding: 72px 0 34px; }
.hero-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill {
  font-size: 12px; color: var(--sub); padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(38px, 7vw, 62px); font-weight: 800; letter-spacing: 2px; line-height: 1.2;
  background: linear-gradient(100deg, #a08fff, #4f8cff 45%, #2ecc8f);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hueshift 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 30px rgba(124, 108, 255, .35));
}
@keyframes hueshift { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero-sub { max-width: 600px; margin: 16px auto 0; color: var(--sub); font-size: 15px; line-height: 1.9; }
.hero-stats { display: flex; justify-content: center; gap: 44px; margin-top: 30px; }
.stat { text-align: center; }
.stat b {
  display: block; font-size: 30px; font-weight: 800;
  background: linear-gradient(180deg, #fff, #9aa0b5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12px; color: var(--sub); }
.lfoot { text-align: center; color: #6b7186; font-size: 12px; margin-top: 46px; line-height: 1.8; }
.cardtop { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.cardtop .logo {
  width: 46px; height: 46px; border-radius: 13px; margin: 0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff;
  box-shadow: 0 8px 24px rgba(124, 108, 255, .35);
}
.cardtop b { font-size: 17px; display: block; }
.cardtop p { font-size: 12px; color: var(--sub); margin-top: 3px; }
.livedot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); margin-right: 8px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(46, 204, 143, .5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 143, .5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 143, 0); }
}

/* ---------- Toast / Banner ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: rgba(20, 22, 40, .92); border: 1px solid var(--line);
  color: var(--txt); font-size: 13px; padding: 10px 18px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
  max-width: 86vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.banner {
  display: flex; align-items: center; gap: 10px;
  margin: 0 16px; padding: 10px 14px;
  background: rgba(255, 176, 79, .1); border: 1px solid rgba(255, 176, 79, .35);
  border-radius: 12px; color: var(--warn); font-size: 13px; line-height: 1.6;
}
.banner.err { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); color: var(--bad); margin: 0 0 16px; }
.banner .btext { flex: 1; }
.banner .bclose {
  background: none; border: none; color: inherit; font-size: 18px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}

/* ---------- 房间页 ---------- */
body.roombody { overflow: hidden; }
.roomwrap { display: flex; flex-direction: column; height: 100vh; }
.rhead {
  height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 24, .55); backdrop-filter: blur(8px);
}
.back {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--sub); background: var(--card); border: 1px solid var(--line);
  transition: color .15s, border-color .15s;
}
.back:hover { color: var(--txt); border-color: rgba(124, 108, 255, .45); }
.rtitle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rtitle h1 {
  font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.codechip {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 5px 10px; font-size: 12px; font-family: Consolas, monospace;
  color: var(--acc2); background: rgba(79, 140, 255, .1);
  border: 1px solid rgba(79, 140, 255, .3); border-radius: 8px; cursor: pointer;
}
.codechip:hover { background: rgba(79, 140, 255, .18); }
.rtools { display: flex; align-items: center; gap: 10px; }
.online { font-size: 12px; color: var(--sub); white-space: nowrap; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt); background: var(--card2); border: 1px solid var(--line);
  cursor: pointer; transition: filter .15s, background .15s;
}
.iconbtn:hover { filter: brightness(1.2); }
.iconbtn.off { color: var(--bad); background: rgba(255, 93, 108, .12); border-color: rgba(255, 93, 108, .35); }
.iconbtn.danger { color: var(--bad); }
.iconbtn.danger:hover { background: rgba(255, 93, 108, .15); }

.rmain { flex: 1; display: flex; min-height: 0; }

/* 左侧房间列表（我的房间 / 最近加入） */
.sider {
  width: 190px; flex-shrink: 0; overflow-y: auto;
  border-right: 1px solid var(--line); background: rgba(10, 12, 24, .5);
  padding: 10px 8px 16px;
}
.sgroup {
  padding: 10px 10px 6px; font-size: 11px; color: var(--sub);
  letter-spacing: .08em; display: flex; align-items: center; gap: 6px;
}
.sgroup::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.slist { display: flex; flex-direction: column; gap: 2px; }
.sitem {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  color: var(--txt); font-size: 13px; border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.sitem:hover { background: rgba(255, 255, 255, .06); }
.sitem.act {
  background: rgba(108, 92, 231, .22); border-color: rgba(108, 92, 231, .5);
}
.sinfo { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.sname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slock { color: #f7b731; display: inline-flex; flex-shrink: 0; }
.sonline {
  flex-shrink: 0; font-size: 11px; color: var(--sub);
  background: rgba(255, 255, 255, .07); border-radius: 9px; padding: 1px 7px;
}
.sitem.act .sonline { color: #b3a6ff; background: rgba(108, 92, 231, .25); }
.sempty { padding: 4px 10px 10px; font-size: 12px; color: #565b70; }

.stage { flex: 1; padding: 18px; overflow-y: auto; }
#audioWrap { display: none; }
.remote-audio { display: none; }

#tiles {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-content: start;
}
.tile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  animation: tilein .25s ease;
}
@keyframes tilein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ava {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  transition: box-shadow .2s;
}
.tile.speaking .ava { box-shadow: 0 0 0 3px rgba(46, 204, 143, .65), 0 0 18px rgba(46, 204, 143, .45); }
.tinfo { flex: 1; min-width: 0; }
.tname { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstat { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; color: var(--sub); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.micoff { color: var(--bad); display: none; flex-shrink: 0; }
.tile.muted .micoff { display: block; }

/* ---------- 聊天面板 ---------- */
.chat {
  width: 320px; flex-shrink: 0; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); background: rgba(10, 12, 24, .5);
}
.chathead {
  padding: 12px 16px; font-size: 13px; color: var(--sub);
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.chatlist { flex: 1; overflow-y: auto; padding: 14px 14px 6px; }
.msg { margin-bottom: 12px; max-width: 88%; }
.msg.sys {
  max-width: 100%; text-align: center; font-size: 11px; color: #6b7186; margin: 8px 0;
}
.mhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.mname { font-size: 12px; color: var(--acc2); font-weight: 600; }
.mine .mname { color: var(--ok); }
.mtime { font-size: 10px; color: #6b7186; }
.mbody {
  display: inline-block; padding: 8px 12px; font-size: 13px; line-height: 1.55;
  background: var(--card2); border: 1px solid var(--line);
  border-radius: 4px 12px 12px 12px; word-break: break-word; white-space: pre-wrap;
}
.mine { margin-left: auto; text-align: right; }
.mine .mbody {
  background: linear-gradient(135deg, rgba(124, 108, 255, .35), rgba(79, 140, 255, .3));
  border-color: rgba(124, 108, 255, .4);
  border-radius: 12px 4px 12px 12px; text-align: left;
}
.chatinput {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); flex-shrink: 0;
}
.chatinput input { flex: 1; }

/* ---------- 密码门 ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8, 9, 18, .7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.gatecard { width: 100%; max-width: 340px; }
.gatecard p { font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.gatecard input { margin-top: 10px; }
.gatecard .btn { margin-top: 14px; }

/* ---------- 用户中心 ---------- */
.ucwrap { flex: 1; display: flex; min-height: 0; }
.ucside {
  width: 270px; flex-shrink: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: rgba(10, 12, 24, .5);
  padding: 14px; overflow-y: auto;
}
.sidehead {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--sub); margin-bottom: 10px; flex-shrink: 0;
}
.roomlist { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.roomli {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  cursor: pointer; transition: background .15s, border-color .15s;
  animation: tilein .2s ease;
}
.roomli:hover { background: rgba(255, 255, 255, .07); }
.roomli.active { border-color: rgba(124, 108, 255, .5); background: rgba(124, 108, 255, .12); }
.rl-main { flex: 1; min-width: 0; }
.rl-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-meta { font-size: 11px; color: var(--sub); font-family: Consolas, monospace; }
.rl-online { font-size: 11px; color: #6b7186; white-space: nowrap; }
.rl-online.on { color: var(--ok); }
.empty-tip { text-align: center; color: #6b7186; font-size: 12px; padding: 22px 0; line-height: 1.9; }
.sidecreate { margin: 10px 0; padding: 4px 12px 12px; border: 1px dashed var(--line); border-radius: 12px; flex-shrink: 0; }
.sidecreate label { margin-top: 8px; }
.joinbox { display: flex; gap: 8px; margin-top: 10px; flex-shrink: 0; }
.ucmain { flex: 1; overflow-y: auto; padding: 24px; }
.panel {
  max-width: 520px; position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(8px);
  animation: tilein .25s ease;
}
.panel h2 { margin-bottom: 4px; }
.panel h2.mt { margin-top: 24px; }
.panel h2.mt2 { margin-top: 10px; font-size: 20px; }
.panel input[disabled] { opacity: .55; cursor: not-allowed; }
.panel .row { margin-bottom: 4px; }
.rpmeta { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; font-size: 13px; color: var(--sub); flex-wrap: wrap; }
.codechip2 {
  font-family: Consolas, monospace; font-size: 14px; color: var(--acc2);
  background: rgba(79, 140, 255, .1); border: 1px solid rgba(79, 140, 255, .3);
  padding: 4px 10px; border-radius: 8px;
}
.btnrow.left { justify-content: flex-start; }
.btn.danger { color: var(--bad); border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .08); }
.btn.danger:hover { background: rgba(255, 93, 108, .16); filter: none; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 移动端 ---------- */
@media (max-width: 760px) {
  .rmain { flex-direction: column; }
  .sider { display: none; }
  .chat {
    width: auto; height: 42vh;
    border-left: none; border-top: 1px solid var(--line);
  }
  .stage { padding: 12px; }
  #tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .rtitle h1 { font-size: 14px; }
  .online { display: none; }
  .lobby { padding-top: 28px; }
  .ucwrap { flex-direction: column; }
  .ucside { width: auto; max-height: 45vh; border-right: none; border-bottom: 1px solid var(--line); }
  .ucmain { padding: 14px; }
  .lobby2 { flex-direction: column-reverse; }
  .roomcard { width: auto; max-height: none; position: static; }
  .hero { padding: 46px 0 24px; }
  .hero-stats { gap: 26px; }
  .hero-title { letter-spacing: 0; }
}
