/* ===== 家庭AI智能体 · 游戏大厅风（重制版） ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
:root {
  --bg-0: #05060f;
  --bg-1: #0a0e22;
  --glass: rgba(255,255,255,.045);
  --glass-strong: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.10);
  --stroke-2: rgba(255,255,255,.22);
  --txt: #eef1ff;
  --muted: #9aa3c8;
  --primary: #7c5cff;
  --primary-2: #29d3ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -18px rgba(0,0,0,.8);
  --neon: 0 0 22px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 700px at 20% -10%, #141a3a 0%, transparent 55%),
              radial-gradient(1000px 600px at 90% 10%, #1a1340 0%, transparent 55%),
              linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overflow: hidden;
  letter-spacing: .2px;
}
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.55; }
.err { color: #ff7a7a; min-height: 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }
code { background: rgba(255,255,255,.1); padding: 2px 6px; border-radius: 6px; font-size: 12.5px; }

/* 游戏世界背景画布 */
#fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* 通用玻璃面板（游戏框） */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.10);
}
.panel {
  position: relative; border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20,24,52,.78), rgba(10,12,28,.82));
  border: 1px solid var(--stroke-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
}
.panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 28px;
  padding: 1px; background: linear-gradient(135deg, rgba(124,92,255,.6), rgba(41,211,255,.35), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-soft { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius-sm); }

/* 输入 */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke); background: rgba(6,8,18,.6);
  color: var(--txt); font-size: 15px; font-family: inherit; transition: .18s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,92,255,.28), inset 0 1px 2px rgba(0,0,0,.35);
}
.field { margin: 0; }
textarea { resize: none; }

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 13px 18px; font-weight: 800; font-size: 15px; cursor: pointer;
  box-shadow: 0 12px 30px -8px var(--primary), inset 0 1px 0 rgba(255,255,255,.4); transition: .18s;
  letter-spacing: 1px;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 16px 36px -8px var(--primary), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-ghost {
  background: var(--glass); border: 1px solid var(--stroke); color: var(--muted);
  border-radius: var(--radius-sm); padding: 9px 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
.btn-ghost:hover { color: var(--txt); border-color: var(--stroke-2); background: var(--glass-strong); box-shadow: var(--neon) rgba(124,92,255,.25); }
.icon-text { display: inline-flex; align-items: center; gap: 7px; }
.icon-text svg { width: 17px; height: 17px; }
.mini {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  font-size: 12.5px; font-weight: 600; border-radius: 10px; border: 1px solid var(--stroke);
  background: var(--glass); color: var(--txt); cursor: pointer; transition: .18s;
}
.mini:hover { background: var(--glass-strong); border-color: var(--stroke-2); box-shadow: var(--neon) rgba(124,92,255,.25); }
.mini.ghost { color: var(--muted); }
.mini.ghost:hover { color: var(--txt); }

/* 遮罩 */
.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 50; padding: 20px; background: rgba(3,4,10,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hidden { display: none !important; }

/* 开场动画 */
.boot {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(800px 500px at 50% 45%, #15193a, #05060f 70%);
  transition: opacity .6s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-core { text-align: center; animation: rise .6s ease; }
.boot-logo {
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 26px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 40px rgba(124,92,255,.6), inset 0 1px 0 rgba(255,255,255,.5);
  animation: corePulse 2.2s ease-in-out infinite;
}
.boot-logo svg { width: 50px; height: 50px; }
.boot-title { font-size: 26px; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(135deg, #fff, #b9c0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.boot-sub { font-size: 12px; color: var(--muted); letter-spacing: 4px; margin-top: 6px; }
.boot-bar { width: 220px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); margin: 22px auto 8px; overflow: hidden; }
.boot-fill { height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); box-shadow: var(--neon) var(--primary); transition: width .15s linear; }
.boot-pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 2px; }

/* 锁屏 / 设置 */
.lock-box { width: min(94vw, 420px); padding: 44px 34px; text-align: center; animation: rise .5s ease; }
.lock-logo, .setup-badge, .brand-mark {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  box-shadow: 0 0 30px rgba(124,92,255,.5);
}
.lock-logo svg, .brand-mark svg, .setup-badge svg { width: 32px; height: 32px; }
.setup-badge { width: 44px; height: 44px; border-radius: 14px; margin: 0; }
.setup-badge svg { width: 24px; height: 24px; }
h1 { font-size: 23px; font-weight: 900; letter-spacing: 1px; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, #c7cbff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.setup-box { width: min(96vw, 480px); max-height: 92vh; overflow-y: auto; padding: 30px 30px 24px; animation: rise .5s ease; }
.setup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.help, .adv { margin: 14px 0; font-size: 13px; color: var(--muted); border: 1px solid var(--stroke); border-radius: 12px; padding: 11px 13px; background: var(--glass); }
.help summary, .adv summary { cursor: pointer; font-weight: 600; }
.steps { margin: 12px 0 0 18px; padding: 0; }
.steps li { margin: 8px 0; line-height: 1.6; }

/* 主界面 */
#app { height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 2; }
.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }

/* 顶栏 HUD */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 22px; z-index: 10;
  background: linear-gradient(180deg, rgba(12,16,38,.85), rgba(12,16,38,.35));
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--stroke); position: relative;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,.7), rgba(41,211,255,.7), transparent); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 17px; letter-spacing: 1px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; margin: 0; }
.brand-glow { background: linear-gradient(135deg, #fff, #b9c0ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hud-stat {
  margin-left: auto; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--stroke); border-radius: 10px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 12px rgba(41,211,255,.12);
}

/* ===== 大厅 ===== */
.lobby-cards {
  position: relative; z-index: 1; flex: 1; overflow-y: auto; perspective: 1400px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px; padding: 34px clamp(18px, 4vw, 52px) 48px; align-content: start;
}

/* 角色卡（3D 悬浮 + 霓虹） */
.agent-card {
  position: relative; border-radius: 24px; padding: 24px 18px 20px; cursor: pointer;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  border: 1px solid var(--stroke); overflow: hidden; text-align: center;
  box-shadow: 0 16px 40px -22px #000; isolation: isolate; transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .28s, border-color .28s; opacity: 0;
  animation: cardIn .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.agent-card.in { opacity: 1; }
.agent-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .85;
  background: radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, var(--c) 42%, transparent), transparent 68%);
}
.agent-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.agent-card:hover { transform: translateY(-8px) scale(1.02); border-color: var(--c); box-shadow: 0 26px 54px -20px var(--c), 0 0 30px -6px var(--c); }
.agent-card:active { transform: translateY(-3px) scale(.99); }
.agent-card .lv {
  position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 8px; color: #fff; background: rgba(0,0,0,.4); border: 1px solid var(--stroke-2);
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--c) 50%, transparent); z-index: 3;
}
.agent-card .stars { position: absolute; top: 12px; right: 12px; font-size: 11px; letter-spacing: 1px; color: #ffd34d; z-index: 3; filter: drop-shadow(0 0 4px rgba(255,200,60,.6)); }
.agent-card .mascot {
  width: 110px; height: 110px; margin: 6px auto 14px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--c), var(--c2));
  box-shadow: 0 14px 34px -8px var(--c), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .25s ease; position: relative;
}
.agent-card .mascot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 30px; border: 1px solid rgba(255,255,255,.4);
  opacity: .5;
}
.agent-card:hover .mascot { transform: scale(1.07) rotate(-3deg); }
.agent-card .mascot svg { width: 82px; height: 82px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.agent-card .nm { font-size: 17px; font-weight: 900; letter-spacing: .5px; }
.agent-card .tg { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.agent-card .glow-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--c), var(--c2), transparent); opacity: .9;
}

/* 总管家中枢卡（最大、置顶、脉冲核心） */
.agent-card.hub {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; text-align: left; padding: 26px 30px;
  background: linear-gradient(120deg, rgba(124,92,255,.16), rgba(41,211,255,.10));
  border: 1px solid rgba(124,92,255,.4); box-shadow: 0 0 40px -10px rgba(124,92,255,.5), inset 0 0 30px rgba(124,92,255,.12);
}
.agent-card.hub::before { background: radial-gradient(120% 120% at 0% 0%, rgba(124,92,255,.35), transparent 60%); }
.agent-card.hub .mascot { width: 128px; height: 128px; border-radius: 34px; flex: 0 0 auto; margin: 0;
  background: linear-gradient(150deg, #7c5cff, #29d3ff); animation: corePulse 2.6s ease-in-out infinite; }
.agent-card.hub .mascot svg { width: 96px; height: 96px; }
.agent-card.hub .mascot::after { inset: -4px; border-color: rgba(255,255,255,.5); }
.agent-card.hub .hub-text { flex: 1; }
.agent-card.hub .nm { font-size: 25px; }
.agent-card.hub .tg { font-size: 14px; margin-top: 7px; }
.agent-card.hub .hub-go {
  flex: 0 0 auto; font-size: 13px; font-weight: 800; color: #fff; padding: 12px 20px; border-radius: 14px; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 10px 26px -8px var(--c);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.agent-card.hub .stars, .agent-card.hub .lv { display: none; }

/* 房间 */
.room-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.room-bg::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% -10%, color-mix(in srgb, var(--accent, #7c5cff) 32%, transparent), transparent 70%); }
.room-top {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  background: linear-gradient(180deg, rgba(12,16,38,.85), rgba(12,16,38,.3));
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid var(--stroke);
}
.icon-btn {
  width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px;
  border: 1px solid var(--stroke); background: var(--glass); color: var(--txt); cursor: pointer; transition: .18s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--glass-strong); border-color: var(--stroke-2); transform: translateY(-1px); box-shadow: var(--neon) rgba(124,92,255,.3); }
.icon-btn.back { margin-right: 4px; }
.room-mascot { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(150deg, var(--accent, #7c5cff), var(--accent2, #29d3ff));
  box-shadow: 0 8px 22px -6px var(--accent, #7c5cff); }
.room-mascot svg { width: 38px; height: 38px; }
.room-title { line-height: 1.3; }
#roomName { font-size: 17px; font-weight: 800; }
#roomSub { font-size: 12.5px; }
.room-spacer { flex: 1; }

.room-body { position: relative; z-index: 1; flex: 1; display: flex; min-height: 0; }
.chat-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg {
  max-width: 82%; padding: 13px 16px; border-radius: 18px; line-height: 1.65; white-space: pre-wrap;
  word-break: break-word; font-size: 15px; animation: rise .25s ease; box-shadow: 0 8px 22px -14px #000;
}
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent2, #29d3ff)); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--stroke); border-bottom-left-radius: 6px; backdrop-filter: blur(8px); }
.msg.bot.thinking { color: var(--muted); }
.chat-img { max-width: 240px; border-radius: 12px; margin-top: 8px; display: block; border: 1px solid var(--stroke); }
.msg .cap { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 转接条 */
.transfer { margin: 0 20px 4px; padding: 12px 16px; border-radius: 14px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(41,211,255,.13)); border: 1px solid rgba(124,92,255,.45); animation: rise .3s ease; }
.transfer .t-info { flex: 1; font-size: 13.5px; }
.transfer .t-go { padding: 9px 16px; border-radius: 11px; border: none; cursor: pointer; font-weight: 800; color: #fff; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 22px -8px var(--primary); }

/* 输入区 */
.composer { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--stroke); align-items: flex-end; flex-wrap: wrap;
  background: linear-gradient(0deg, rgba(12,16,38,.85), transparent); }
.composer textarea { flex: 1; min-width: 180px; height: 50px; margin: 0; line-height: 1.5; }
.icon-btn.send { background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent2, #29d3ff)); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -8px var(--accent, #7c5cff); }
.icon-btn.send:hover { filter: brightness(1.1); }
.thumb-box { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; }
.thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--stroke); }
.thumb .x { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: #e23b3b; color: #fff; font-size: 12px; line-height: 20px; text-align: center; cursor: pointer; }

/* 房间侧栏（游戏面板） */
.room-panel { width: 320px; padding: 18px; overflow-y: auto; border-left: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(12,16,38,.7), transparent); backdrop-filter: blur(10px); }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; font-size: 13.5px; font-weight: 700;
  border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); color: var(--muted); cursor: pointer; transition: .18s; }
.tab.active { background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent2, #29d3ff)); color: #fff; border-color: transparent; box-shadow: 0 8px 22px -10px var(--accent, #7c5cff); }
.game-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 12px; }
.game-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.rank { padding: 14px 16px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.rank b { color: var(--txt); }
.rank-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.rank-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent, #7c5cff), var(--accent2, #29d3ff)); transition: width .6s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px var(--accent, #7c5cff); }
.frag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.frag { position: relative; min-height: 96px; padding: 14px 10px 30px; text-align: center; font-size: 12.5px; color: var(--muted);
  border: 1.5px dashed var(--stroke-2); border-radius: 14px; background: var(--glass); transition: .2s; }
.frag .ico { display: block; font-size: 26px; margin-bottom: 6px; filter: grayscale(1); opacity: .5; }
.frag.got { border-style: solid; border-color: var(--accent, #7c5cff); color: var(--txt); background: linear-gradient(160deg, rgba(255,255,255,.1), transparent); box-shadow: 0 0 22px -4px var(--accent, #7c5cff); }
.frag.got .ico { filter: none; opacity: 1; animation: pop .5s ease; }
.frag button { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); padding: 5px 14px; font-size: 11.5px; border: none; border-radius: 9px; background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent2, #29d3ff)); color: #fff; cursor: pointer; }
.frag .lock { position: absolute; top: 8px; right: 10px; font-size: 12px; opacity: .5; }
.frag-grid.flash { animation: glow .7s ease; }
.ticket { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; text-align: center;
  font-size: 15px; font-weight: 800; color: #fff; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(135deg, #f59e0b, #ff2d78); box-shadow: 0 10px 26px -12px #ff2d78; }
.ticket-ico { font-size: 18px; }
.timer-box { text-align: center; padding: 18px; margin-bottom: 14px; }
.time { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 1px;
  background: linear-gradient(135deg, #fff, #c7cbff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.timer-btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.super-tip { padding: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; text-align: center; }
.check-title { font-size: 13.5px; font-weight: 700; margin: 8px 0 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--txt); margin: 9px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent, #7c5cff); margin: 0; flex: 0 0 auto; }
.cam { width: 100%; justify-content: center; margin-top: 8px; }
#camStatus { min-height: 14px; }

/* 提醒弹窗 */
.alert-box { width: min(90vw, 400px); padding: 32px 30px; text-align: center; animation: rise .35s ease; }
.alert-icon { font-size: 48px; margin-bottom: 6px; }
.alert-text { margin: 12px 0 20px; font-size: 15.5px; line-height: 1.7; white-space: pre-line; }

/* 滚动条 */
.chat::-webkit-scrollbar, .lobby-cards::-webkit-scrollbar, .room-panel::-webkit-scrollbar, .setup-box::-webkit-scrollbar { width: 8px; }
.chat::-webkit-scrollbar-thumb, .lobby-cards::-webkit-scrollbar-thumb, .room-panel::-webkit-scrollbar-thumb, .setup-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }

/* 动画 */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes glow { 0% { filter: brightness(1); } 50% { filter: brightness(1.5); } 100% { filter: brightness(1); } }
@keyframes corePulse { 0%,100% { box-shadow: 0 0 30px rgba(124,92,255,.5), inset 0 1px 0 rgba(255,255,255,.5); } 50% { box-shadow: 0 0 54px rgba(41,211,255,.8), inset 0 1px 0 rgba(255,255,255,.7); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 10px 26px -8px var(--c); } 50% { box-shadow: 0 10px 38px -4px var(--c); } }

/* 儿童主题皮肤 */
body.theme-commander { --accent: #ff5fa2; --accent2: #a855f7; }
body.theme-guide    { --accent: #ff7a18; --accent2: #00d4ff; }
body.theme-commander .room-bg::before { background: radial-gradient(80% 60% at 50% -10%, rgba(255,95,162,.34), transparent 70%); }
body.theme-guide .room-bg::before { background: radial-gradient(80% 60% at 50% -10%, rgba(255,122,24,.34), transparent 70%); }

/* 响应式 */
@media (max-width: 820px) {
  .room-panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; width: min(86vw, 320px);
    transform: translateX(100%); transition: transform .28s ease; box-shadow: -20px 0 50px -20px #000; }
  .room-panel.open { transform: translateX(0); }
  .lobby-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
  .agent-card.hub { flex-direction: column; text-align: center; gap: 14px; }
  .agent-card.hub .mascot { width: 104px; height: 104px; }
  .agent-card.hub .hub-go { margin-top: 4px; }
}
