/* ============================================================
   Aurora — 设计系统
   默认：KOOK 风暗灰基底 + 紫色品牌主色（选中态 / 按钮 / 光晕 / 徽章）
   主题：dark（紫） | light（白 + 紫） | vivid（深紫强化）
   ============================================================ */

:root {
    /* —— 基底：纯灰阶 —— */
    --bg: #2B2D31;
    --bg-deep: #232428;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-solid: #34363B;
    --panel-hover: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* —— 强调色：紫色品牌主色（KOOK 绿 → Aurora 紫） —— */
    --pink: #A879FF;
    --pink-soft: #C9A6FF;
    --blue: #6F5BFF;
    --blue-soft: #9B8CFF;
    --acc: 139, 92, 246;       /* 主强调色 RGB（淡着色用） */
    --acc-2: 111, 91, 255;     /* 次强调色 RGB */

    /* —— 渐变：默认紫（浅紫 → 深紫）；light 同样用紫，vivid 更深更饱和 —— */
    --grad: linear-gradient(135deg, #A879FF 0%, #7A4DE8 100%);
    --grad-pink-blue: linear-gradient(120deg, #A879FF, #6F5BFF);
    --grad-text: linear-gradient(120deg, #D3BCFF, #9B7BFF);
    --on-grad: #FFFFFF;               /* 渐变底上的文字色 */
    --avatar-ink: #FFFFFF;            /* 头像底上的首字色 */

    /* —— 登录页 / logo：紫色实心填充（vivid 主题改渐变） —— */
    --mono-fill: #8B5CF6;
    --mono-ink: #FFFFFF;
    /* —— 封面墙：默认去色（黑白），微模糊；.102 亮度 0.85（比 .99 原版 0.72 更亮，封面明显可见） —— */
    --wall-img-filter: grayscale(1) blur(1.2px) brightness(0.85);

    --text: #F5F5F7;
    --text-2: #A8A8AD;
    --text-3: #6E6E73;
    /* —— 语义色：在线绿/通知红/警告黄保持语义色，不跟主色退化 —— */
    --green: #3BA55D;  --green-rgb: 59, 165, 93;
    --red: #EF4444;    --red-rgb: 239, 68, 68;
    --warn: #F5B54A;   --warn-rgb: 245, 181, 74;
    --wx-green: #07C160; --wx-green-rgb: 7, 193, 96;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --card-bg: rgba(10, 10, 12, 0.62);
    --field-bg: rgba(255, 255, 255, 0.05);
    --stage-bg:
        radial-gradient(1200px 700px at 15% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
        radial-gradient(1200px 700px at 90% 110%, rgba(111, 91, 255, 0.16), transparent 60%),
        #232428;

    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
    --glow-pink: 0 0 24px rgba(139, 92, 246, 0.38);
    --glow-blue: 0 0 24px rgba(111, 91, 255, 0.32);
    /* —— 图标轨按钮：紫色轮廓光（KOOK 式品牌色描边） —— */
    --rail-ring: rgba(168, 121, 255, 0.55);
    --rail-glow: rgba(139, 92, 246, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    background: var(--bg-deep);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    font-size: 14px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ============ .42 整体放大 8%（修复 .41 右/下黑边） ============
   zoom 挂 body：窗口 / 弹窗 / 右键菜单 / 用户面板 / 更新前闸 / toast 全部统一缩放
   （.26 挂在 .win 上 → desktop 端 .win 是 zoom:1 全屏，6% 根本没用上；
   且弹窗在 body 下不随 .win 缩放，大小不一）。
   ⚠️ .41 事故：body 写成 width/height: calc(100% / 1.08) → 自身盒只有视口的
   92.6%（zoom 元素自身盒不被自身 zoom 缩放，实测），而 html,body{overflow:hidden}
   把放大后的内容裁在 body 盒处 → 右侧/底部露出 html 近黑背景 = 黑边。
   ✅ .42：body 尺寸给 100%（盒=视口，裁切边界正好落在视口边缘，无损）。
   坑1：zoom 后的 body 成为 fixed 元素的包含块，JS 用视口坐标设的 left/top
        会被再乘 1.08 → ctx-menu / user-panel / rail-tip 的坐标都要除 1.08
        （见 app.js UI_ZOOM）。
   坑2：显式长度（px/vh/vw）按本地空间解析、会被放大 → .stage 用 calc(100vw/1.08)
        使其放大后正好等于视口；两个弹窗的 100vw 上限同理除 1.08。 */
body {
    zoom: 1;
    width: 100%;
    height: 100%;
}
.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--pink), var(--blue)); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 舞台与窗口 ============ */
/* .71 全屏无边框：网页根目录改成官网海报，应用搬到 /app/ 以"软件"形态运行 ——
   不再浮在舞台上的 mock 窗口（圆角/边框/阴影/28px 留白全删），
   与 Electron 桌面端（body.desktop）同一套全屏布局，两端观感一致 */
.stage {
    /* zoom 补偿规则（实测 Chrome）：.stage 自身盒会被 body zoom 放大 →
       local 尺寸 = 视口 / 1.08，放大后正好等于视口（= body 的 100% 盒）。
       （body 自身盒例外：不被自身 zoom 缩放，故 body 用 100% 不除，见上。） */
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stage-bg);
    padding: 0;
}

.win {
    zoom: 1;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
/* .win.maximized/.minimized 演示态随全屏化退役：网页端窗口按钮已隐藏（见下方
   titlebar-controls 规则），桌面端走 IPC 控真实窗口，都不再切这两个 class */

/* Windows 风格标题栏 */
.titlebar {
    /* 安全区：iOS 独立窗口（add to home screen）刘海屏时内容不被状态栏压住 */
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 6px 0 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    -webkit-app-region: drag;
}
.titlebar-controls { display: flex; gap: 2px; }
.win-btn {
    width: 42px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; color: var(--text-2);
    transition: background 0.15s, color 0.15s;
}
.win-btn:hover { background: var(--panel-hover); color: var(--text); }
.win-btn svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.2; fill: none; }
.win-close:hover { background: var(--red); color: var(--on-grad); }

/* Electron 无边框窗口：标题栏整体可拖动，按钮区域除外 */
.titlebar-controls, .titlebar-controls * { -webkit-app-region: no-drag; }

/* .71 网页版全屏无边框：最小化/最大化/关闭只对 Electron 真实窗口有意义，
   网页上全是假动作（旧代码"关闭"居然会登出）→ 隐藏，标题栏只留品牌。
   .93：用户反馈顶部那条"Aurora 标志+空白"跟水印一样 → 网页端整条删掉，
   安全区（iOS 独立窗口刘海屏）从标题栏挪到 .win 顶上，内容不被状态栏压。
   桌面端（body.desktop）保留：frame:false 无边框窗口，这条是唯一拖动区+窗口按钮 */
body:not(.desktop) .titlebar { display: none; }
body:not(.desktop) .win { padding-top: env(safe-area-inset-top, 0px); }
body:not(.desktop) .titlebar-controls { display: none; }

/* .108：网页端登录页圆形透明玻璃返回按钮——回官网下载/入口页；桌面端隐藏 */
.web-back-btn {
    display: none;
    position: absolute;
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: calc(24px + env(safe-area-inset-left, 0px));
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    z-index: 250;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
body:not(.desktop) .web-back-btn { display: flex; }
.web-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}
.web-back-btn:active { transform: scale(0.94); }
.web-back-btn svg { width: 21px; height: 21px; }
body.theme-light .web-back-btn {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
body.theme-light .web-back-btn:hover { background: rgba(255, 255, 255, 0.4); }

/* Electron 桌面模式：窗口即应用，去掉网页 mock 的圆角/阴影/外边距
   （.71 起网页版 base 规则已是全屏，这条兜底保持桌面端行为不变） */
body.desktop .stage { padding: 0; }
body.desktop .win {
    zoom: 1;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* ============ 自动更新提示条 ============ */
.update-bar {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 380;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(540px, calc(100vw - 40px));
    padding: 10px 14px 10px 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-size: 13px;
    animation: update-bar-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes update-bar-in {
    from { opacity: 0; transform: translate(-50%, 18px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.update-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    flex-shrink: 0;
    animation: update-bar-pulse 1.6s ease-in-out infinite;
}
@keyframes update-bar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.update-bar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-bar-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--grad);
    color: var(--on-grad);
    font-size: 12.5px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(var(--acc), 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.update-bar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--acc), 0.5); }
.update-bar-btn:active { transform: translateY(0); }

/* ============ Logo（.15：A 字标全幅不裁切 mask 方案；颜色走 --mono-fill 随主题） ============ */
/* ============ Logo 入场（.51 重做：一笔画 → 画没 → 从空白缓慢显形 → 缓慢亮灯） ============
   用户需求（.51）："画完轮廓再画没，然后 logo 缓慢亮灯，很有震撼效果那种，不要搞什么
   突一下了，就从空白里渐渐出来然后亮光"。
   ① 0–1.5s：.logo-draw-path 描边绘制外轮廓（pathLength=100 归一化 dashoffset）；
   ② 1.5–3.0s：反着画没 + 同步淡出（round 线帽零长度 dash 会留点，淡出后即空白）；
   ③ 3.0–3.6s：空拍——纯空白，等惊喜；
   ④ 3.6–6.6s：六块从空白中缓慢显形（logoAssemble 只做极轻微 scale 0.92→1，
      logoAssembleFade 纯 opacity 缓慢淡入，错峰 0.12s 像光里渐渐浮现）；
   ⑤ 6.9–10.2s：容器白灯从全暗缓慢亮到最亮（3.3s ease-in，越等越亮）。
   无飞入、无砸击、无震颤、无冲击闪。亮色主题反相：白灯换深墨晕。 */
@keyframes logoDrawStroke {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}
/* .24：反着画没（从尾端倒缩回起点）；.44：同步淡出——零长度 dash + round 线帽
   会在起点留一个残留圆点（用户报"每次画都有个点留在那"），opacity→0 后画没即空白 */
@keyframes logoEraseStroke {
    from { stroke-dashoffset: 0; opacity: 1; }
    to   { stroke-dashoffset: 100; opacity: 0; }
}
/* .51：六块不再飞入砸拢——只留极轻微的"显形"scale（0.92→1），像从虚空里凝实 */
@keyframes logoAssemble {
    from { transform: scale(0.92); }
    to   { transform: scale(1); }
}
/* .51：纯 opacity 缓慢淡入——60% 时才过半，配合 3s 时长 = "渐渐出来" */
@keyframes logoAssembleFade {
    0%   { opacity: 0; }
    60%  { opacity: 0.55; }
    100% { opacity: 1; }
}
/* .44：轮廓白灯从全暗缓慢亮到最亮（拼合砸拢完成后才开始，3s ease-in 越等越亮） */
@keyframes logoGlowSlow {
    from { filter: drop-shadow(0 10px 28px rgba(var(--acc), 0.32)); }
    to {
        filter:
            drop-shadow(0 10px 28px rgba(var(--acc), 0.32))
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.85))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 44px rgba(255, 255, 255, 0.22));
    }
}
/* 亮色主题：白灯不可见，换深墨晕光 */
@keyframes logoGlowSlowLight {
    from { filter: drop-shadow(0 10px 28px rgba(var(--acc), 0.32)); }
    to {
        filter:
            drop-shadow(0 10px 28px rgba(var(--acc), 0.32))
            drop-shadow(0 0 5px rgba(20, 20, 24, 0.5))
            drop-shadow(0 0 18px rgba(20, 20, 24, 0.3));
    }
}
/* .93：.logo-mini / @keyframes logoMiniIn 随标题栏品牌一起删除（标题栏已无 logo） */
.logo-big {
    width: 150px; height: 150px;
    display: block;
    position: relative;
    /* 静态值 = 白灯终态（动画延迟期由 fill:backwards 用 from 键压回"只环境光"） */
    filter:
        drop-shadow(0 10px 28px rgba(var(--acc), 0.32))
        drop-shadow(0 0 5px rgba(255, 255, 255, 0.85))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 44px rgba(255, 255, 255, 0.22));
    flex-shrink: 0;
    color: var(--mono-fill);
    /* .51：只剩一条缓慢亮灯（6.9s 起 3.3s ease-in，从全暗越等越亮）。
       无震颤、无冲击闪——用户："不要搞什么突一下了" */
    animation:
        logoGlowSlow 3.3s ease-in 6.9s both;
}
/* 亮色主题：白灯换深墨晕 */
body.theme-light .logo-big {
    filter:
        drop-shadow(0 10px 28px rgba(var(--acc), 0.32))
        drop-shadow(0 0 5px rgba(20, 20, 24, 0.5))
        drop-shadow(0 0 18px rgba(20, 20, 24, 0.3));
    animation:
        logoGlowSlowLight 3.3s ease-in 6.9s both;
}
/* .41：6 块显形平台。每块都是完整 logo 的全尺寸副本（与旧 ::before 同一 mask 几何：
   contain/142%/center 38%），clip-path 只露自己的条带 → 条带间零接缝；
   背景盒与完整 logo 一致，所以渐变（vivid 主题）也是连续的。
   .51：不再飞入砸拢——只做 scale 0.92→1 + opacity 缓慢淡入（错峰 0.12s 浮现） */
.logo-piece {
    position: absolute;
    inset: 0;
    background: var(--mono-fill);
    -webkit-mask: url('assets/logo-full.png') center / contain no-repeat;
    mask: url('assets/logo-full.png') center / contain no-repeat;
    /* .18：mask 图比框大（142%），position 百分比语义对超大图是反的——
       0%=图片顶对齐框顶，100%=图片底对齐框底；要 A 往下移必须用 <50% 的值。
       38% ≈ A 在原居中位置下方 ~8px：A 底与标题间距 41→29px，仍留呼吸感。 */
    -webkit-mask-position: center 38%;
    mask-position: center 38%;
    -webkit-mask-size: 142%;
    mask-size: 142%;
    clip-path: inset(var(--t) 0 var(--b) 0);
    opacity: 1;
    transform: none;
    pointer-events: none;
    will-change: transform, opacity;
    /* 错峰 0.05s 砸入（.45：六块几乎同时砸到）；fill both → 延迟期停在 0%（不可见）。
       .47：transform 与 opacity 拆双动画——transform 单一强 ease-in 无中段边界（不卡顿），
       opacity 推迟显形（未到位时的条带重叠近透明，不穿模）；两条共享同一 delay */
    /* .51：3s 缓慢显形——transform 极轻 ease-out，opacity 独立线性缓慢淡入，
       错峰 0.12s 六块像在光里依次浮现（不再砸入） */
    animation: logoAssemble 3s cubic-bezier(0.25, 0.9, 0.35, 1) both, logoAssembleFade 3s linear both;
    animation-delay: calc(3.6s + var(--n, 0) * 0.12s);
}
.logo-piece:nth-of-type(1) { --n: 0; }
.logo-piece:nth-of-type(2) { --n: 1; }
.logo-piece:nth-of-type(3) { --n: 2; }
.logo-piece:nth-of-type(4) { --n: 3; }
.logo-piece:nth-of-type(5) { --n: 4; }
.logo-piece:nth-of-type(6) { --n: 5; }
/* 描边层：与 ::before 同一坐标系（213px mask 图原点即 -31.5,-23.9） */
.logo-draw {
    position: absolute;
    left: -31.5px; top: -23.9px;
    pointer-events: none;
}
.logo-draw-path {
    stroke: currentColor;
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    /* .41：画轮廓/反着画没期间不亮——白光由 .logo-big 容器在拼合砸拢后缓慢亮起 */
    filter: none;
    /* .24：反着画没（从尾端倒缩回起点）。fill 只能用 forwards——若用 both，
       延迟期 backward-fill 的 dashoffset:0 会在级联里盖住 draw 的绘制值（erase 排在后面），
       画轮廓阶段 dash 恒 0 轮廓根本不画；forwards 下延迟期不生效，3s 后保持 100 全隐。
       .44：erase 同时把 opacity 淡到 0——零长度 dash + round 线帽会在起点残留一个圆点
       （用户报"每次画都有个点留在那"），淡出后画没即空白 */
    animation:
        logoDrawStroke 1.5s cubic-bezier(0.65, 0, 0.35, 1) both,
        logoEraseStroke 1.5s cubic-bezier(0.65, 0, 0.35, 1) 1.5s forwards;
}
/* 炫彩主题：描边还原粉蓝渐变（--mono-fill 在 vivid 是渐变，stroke 吃不了，用 paint server） */
body.theme-vivid .logo-draw-path { stroke: url(#logoDrawGrad); }


/* ============ 登录 / 注册 ============ */
.auth {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}

/* —— 游戏封面墙：竖向条带，相邻条带上下交替滚动，内容双份无缝循环 —— */
.cover-wall {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden; pointer-events: none;
}
.cover-wall::after {   /* .102：黑罩回到 ≈.99 原版——卡已纯黑(0.92)不怕透，封面要明显可见 */
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(900px 620px at 50% 40%, rgba(0, 0, 0, 0.25), transparent 70%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.68) 100%);
}
.cover-strip {
    position: absolute; top: -8%; bottom: -8%;
    overflow: hidden; padding: 0 7px;
}
.cover-strip-inner { display: flex; flex-direction: column; will-change: transform; }
.cover-copy { display: flex; flex-direction: column; gap: 14px; }
.cover-cell {
    width: 100%; aspect-ratio: 2 / 3; flex: none;
    border-radius: 12px; overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}
.cover-cell img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transform: scale(1.06);   /* 遮住 blur 边缘 */
    filter: var(--wall-img-filter);
}
/* .25/.26：重点游戏——封面墙里唯一保留彩色的款，其余全灰度。
   .26 加量到 13 款经典大作并提鲜艳度：增饱和+提亮+更明白环，灰墙里一眼跳出 */
.cover-cell.is-feat {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 0 16px rgba(255, 255, 255, 0.16), 0 10px 34px rgba(0, 0, 0, 0.38);
}
.cover-cell.is-feat img { filter: saturate(1.35) brightness(1.07); }
@keyframes coverWallUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
@keyframes coverWallDown {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}
.cover-strip-inner.anim-up { animation: coverWallUp linear infinite; }
.cover-strip-inner.anim-down { animation: coverWallDown linear infinite; }
@media (prefers-reduced-motion: reduce) {
    .cover-strip-inner.anim-up,
    .cover-strip-inner.anim-down { animation: none; }
    .auth-glow { animation: none; }
    .logo-big { animation: none; }
    /* 显形动画禁用 → 6 块直接落终态（静态 opacity:1 / transform:none） */
    .logo-piece { animation: none; opacity: 1; transform: none; }
    /* 描边动画禁用后 dashoffset 默认 100（不可见）——必须显式落到终态 */
    .logo-draw-path { animation: none; stroke-dashoffset: 0; }
}

.auth-glow {
    position: absolute; width: 480px; height: 480px; border-radius: 50%;
    filter: blur(110px); opacity: 0.15; pointer-events: none; z-index: 1;
    animation: floatGlow 9s ease-in-out infinite alternate;
}
.auth-glow-pink { background: rgba(var(--acc), 0.5); top: -120px; left: 8%; }
.auth-glow-blue { background: rgba(var(--acc-2), 0.45); bottom: -140px; right: 6%; animation-delay: -4.5s; }
@keyframes floatGlow {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(40px, 30px) scale(1.12); }
}

/* —— 登录卡：横版长方形（左品牌 + 右表单），.100：纯黑不透明底（原 0.62 半透明会透出灰封面） —— */
.auth-card {
    width: min(920px, calc(100% - 48px));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        rgba(6, 6, 8, 0.92);
    backdrop-filter: blur(40px) saturate(1.25);
    -webkit-backdrop-filter: blur(40px) saturate(1.25);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: cardIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    display: grid;
    grid-template-columns: 316px 1fr;
}
.auth-card::before {   /* 顶部高光细线 */
    content: ''; position: absolute; top: 0; left: 30px; right: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    pointer-events: none;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

/* —— 左侧品牌栏（.25：游戏 tile 删除后，logo+Aurora+slogan 整体垂直水平居中，对称） —— */
.auth-aside {
    padding: 46px 34px 40px;
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
    position: relative;
}
.auth-title {
    font-size: 30px; font-weight: 800; margin-top: 8px;
    color: var(--text);
    letter-spacing: 3px;
}
/* .21：Aurora 置于 logo 与 slogan 的正中间——上与下视觉间距均 ~19px */
.auth-slogan { font-size: 12.5px; color: var(--text-3); margin-top: 18px; letter-spacing: 4px; }

/* —— 右侧表单栏（.25：整体垂直居中，不再顶部堆叠底部留空） —— */
.auth-main {
    padding: 36px 40px 34px;
    min-width: 0;
    display: flex; flex-direction: column;
    justify-content: center;
}

/* —— 窄屏：横版卡堆叠为竖版 —— */
@media (max-width: 760px) {
    .auth-card {
        grid-template-columns: 1fr;
        width: min(440px, calc(100% - 32px));
    }
    .auth-aside {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 32px 28px 26px;
        align-items: center;
        text-align: center;
    }
    .auth-main { padding: 28px 28px 26px; }
}

.auth-tabs {
    display: flex;
    background: var(--field-bg);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    flex: 1; padding: 8px 0;
    font-size: 14px; font-weight: 600;
    color: var(--text-3); border-radius: 7px;
    transition: all 0.2s;
}
.auth-tab.active {
    background: var(--mono-fill);
    color: var(--mono-ink);
    box-shadow: 0 4px 16px rgba(var(--acc), 0.35);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 12px; color: var(--text-2); font-weight: 500; letter-spacing: 0.5px; }
.field-wrap {
    display: flex; align-items: center;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.field-wrap:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 1.6px var(--pink), 0 0 18px rgba(var(--acc), 0.25);
}
.field-prefix {
    padding: 0 4px 0 14px;
    color: var(--text-3); font-size: 14px;
    border-right: 1px solid var(--line);
    padding-right: 12px; margin-right: 4px;
    line-height: 20px;
}
.field-wrap input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    color: var(--text); font-size: 14px;
    padding: 11px 12px 11px 8px;
}
.field-wrap input::placeholder { color: var(--text-3); }

.code-btn {
    flex-shrink: 0;
    margin-right: 5px;
    padding: 7px 12px;
    font-size: 12.5px; font-weight: 600;
    color: var(--mono-ink);
    background: var(--mono-fill);
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}
.code-btn:hover { opacity: 0.88; }
.code-btn:active { transform: scale(0.96); }
.code-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 记住我 */
.remember {
    display: flex; align-items: center; gap: 9px;
    cursor: pointer; user-select: none;
    position: relative;
}
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember-box {
    width: 17px; height: 17px;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.18s;
    flex-shrink: 0;
}
.remember input:checked + .remember-box {
    background: var(--mono-fill);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(var(--acc), 0.4);
}
.remember input:checked + .remember-box::after {
    content: "";
    width: 9px; height: 5px;
    border-left: 2px solid var(--mono-ink); border-bottom: 2px solid var(--mono-ink);
    transform: rotate(-45deg) translate(0.5px, -1px);
}
.remember-text { font-size: 13px; color: var(--text-2); }
.remember-hint { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

.auth-error {
    font-size: 12.5px; color: var(--red);
    min-height: 16px;
    display: none;
}
.auth-error.show { display: block; animation: shake 0.3s; }
.auth-hint {
    font-size: 12px; color: var(--text-3);
    line-height: 1.5;
    margin: 2px 0 10px;
}
/* 主提交按钮：纯黑白（vivid 主题为渐变） */
.btn-mono {
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--mono-fill);
    color: var(--mono-ink);
    font-size: 15px; font-weight: 700; letter-spacing: 6px;
    box-shadow: 0 8px 28px rgba(var(--acc), 0.3);
    transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.btn-mono:hover { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(var(--acc), 0.45); }
.btn-mono:active { transform: scale(0.985); }

/* 登录方式切换（验证码 ⇄ 密码） */
.auth-switch {
    align-self: center;
    margin-top: 2px;
    padding: 4px 10px;
    font-size: 12.5px;
    color: var(--text-3);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.auth-switch:hover { color: var(--text); background: var(--panel-hover); }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.btn-grad {
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--grad);
    color: var(--on-grad); font-size: 15px; font-weight: 700; letter-spacing: 6px;
    box-shadow: 0 8px 28px rgba(var(--acc), 0.35);
    transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.btn-grad:hover { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(var(--acc), 0.45); }
.btn-grad:active { transform: scale(0.985); }
.btn-grad-sm { letter-spacing: 2px; font-size: 13.5px; padding: 9px 22px; }

.btn-ghost {
    padding: 9px 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-strong);
    color: var(--text-2); font-size: 13.5px;
    transition: all 0.18s;
}
.btn-ghost:hover { background: var(--panel-hover); color: var(--text); }
.btn-ghost.btn-danger { color: var(--red); border-color: rgba(var(--red-rgb), 0.35); }
.btn-ghost.btn-danger:hover { background: rgba(var(--red-rgb), 0.14); color: var(--red); }
.btn-grad.btn-danger {
    background: var(--grad);
    box-shadow: 0 8px 28px rgba(var(--red-rgb), 0.35);
    letter-spacing: 2px;
}
.btn-grad.btn-danger:hover { filter: brightness(1.08); box-shadow: 0 10px 34px rgba(var(--red-rgb), 0.45); }

/* ============ 主界面布局 ============ */
.app { flex: 1; display: flex; min-height: 0; }

/* 图标轨 */
.rail {
    width: 78px; flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 0;
    gap: 10px;
}
.rail-btn {
    width: 50px; height: 50px;
    flex: 0 0 auto;               /* .84：rail 溢出时绝不参与压缩，头像恒 50px（.88 由 46 放大） */
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    background: var(--panel-solid);
    box-shadow: 0 0 0 1.5px var(--rail-ring), 0 4px 14px var(--rail-glow);
    position: relative;
    transition: all 0.18s;
}
.rail-btn svg { width: 23px; height: 23px; fill: currentColor; }
.rail-btn:hover { transform: translateY(-2px); background: rgba(var(--acc), 0.14); color: var(--text); box-shadow: 0 0 0 2px var(--rail-ring), 0 6px 20px var(--rail-glow); }
.rail-btn.active { background: var(--grad); color: var(--on-grad); box-shadow: 0 0 0 2.5px var(--pink), 0 6px 22px var(--rail-glow); }
/* .90：Home 与 Discover 完全对称——默认暗底紫描边，选中才紫渐变实心（KOOK 式品牌高亮） */
.rail-home { background: none; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rail-ring); }
.rail-home:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--pink), 0 6px 20px var(--rail-glow); }
.rail-home.active { background: var(--grad); color: var(--on-grad); box-shadow: 0 0 0 2px var(--pink), 0 6px 22px var(--rail-glow); }
.rail-home.active svg { fill: currentColor; }
.rail-home { position: relative; }
.rail-home .notif-badge { top: -4px; right: -4px; }
/* 我的：头像本身就是白盒，不再套一层 */
.rail-user { background: none; box-shadow: none; }
.rail-user:hover { transform: translateY(-2px); box-shadow: none; }
.rail-divider { width: 34px; height: 1px; background: var(--line); margin: 4px 0; flex: 0 0 auto; }
/* .87：频道独立滚动区（只剩频道）；+号在滚动区外永久固定，频道再多也滚不到它；
   分界线（HTML 里 .rail-divider）标出滚动区边界，频道不会和下方 +号糊在一起 */
.rail-scroll {
    flex: 1 1 auto; min-height: 0; width: 100%;
    position: relative;               /* 子元素 offsetTop 的参照系，供自动滚动用 */
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    overflow-y: auto;
    scrollbar-width: none;
}
.rail-scroll::-webkit-scrollbar { display: none; }
.rail-channels {
    width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rail-channels::-webkit-scrollbar { display: none; }

.rail-channel {
    width: 50px; height: 50px;
    flex: 0 0 auto;               /* 关键：再多频道也不压扁（.88 由 46 放大到 50） */
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; color: var(--avatar-ink);
    position: relative;
    transition: all 0.18s;
    border: 2px solid transparent;
}
.rail-channel:hover { transform: translateY(-2px); }
.rail-channel.active { border-color: var(--text); border-radius: 14px; }
.rail-channel.unread::after {
    content: "";
    position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 8px; border-radius: 2px;
    background: var(--grad-pink-blue);
}
.rail-badge {
    position: absolute; right: -4px; bottom: -4px;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    background: var(--red);
    color: var(--on-grad); font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
}
/* .86：+号永久固定在设置上方（滚动区之外）——频道列表在上面滚，
   +号物理上不可能跟着滑；间距是标准的 10px。 */
.rail-add { border: 1.5px dashed var(--on-grad); flex: 0 0 auto; }
.rail-add:hover { transform: translateY(-2px); }

/* .94：图标轨提示全部走 body 级 .rail-tip（JS showRailTip）——原 CSS ::before
   （left:100%+10px 伸进主区）会被 position:relative 的主内容整片压住，删除 */
/* 频道头像提示：JS 挂到 body（.rail-channels 有 overflow，::before 会被裁掉） */
.rail-tip {
    position: fixed; transform: translateY(-50%);
    background: var(--panel-solid);
    color: var(--text);
    border: 1px solid var(--line-strong);
    font-size: 12.5px; font-weight: 600; line-height: 1.4;
    white-space: nowrap;
    padding: 6px 11px; border-radius: var(--r-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 200; pointer-events: none;
    animation: tipIn 0.16s ease both;
}
@keyframes tipIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-5px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}
.rail-settings:hover { transform: translateY(-2px); }

.avatar {
    border-radius: 30%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--avatar-ink);
    flex-shrink: 0;
    position: relative;
}
.avatar-me { width: 45px; height: 45px; font-size: 16px; background: var(--grad); color: var(--on-grad); box-shadow: var(--glow-pink); }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 15px; border-radius: 30%; }
.avatar-lg { width: 56px; height: 56px; font-size: 21px; }
.avatar-online::after {
    content: "";
    position: absolute; right: -1px; bottom: -1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--green);
    border: 2.5px solid var(--bg);
}

/* 侧栏 */
.sidebar {
    width: 248px; flex-shrink: 0;
    background: var(--panel);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    min-height: 0;
}
.sb-header { padding: 15px 16px 12px; border-bottom: 1px solid var(--line); }
/* .82：公共频道侧栏头——玻璃般半透明游戏封面，向下渐隐，到「语音频道」那块纯黑 */
.sb-header { position: relative; overflow: hidden; }
.sb-header.has-cover::before {
    content: ''; position: absolute; inset: -14px -14px 0; pointer-events: none;
    background: var(--ch-cover) center 26%/cover no-repeat;
    filter: blur(12px) saturate(1.25) brightness(1.45);
    opacity: .8;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.sb-header.has-cover::after {   /* 玻璃质感：顶部微亮 tint + 轻暗纱保白字可读 */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(5, 5, 6, .12) 58%, rgba(5, 5, 6, .35) 100%);
}
.sb-header > * { position: relative; z-index: 1; }
.sb-title-row { display: flex; align-items: center; justify-content: space-between; }
.sb-title { font-size: 17.5px; font-weight: 800; letter-spacing: 0.5px; }
.icon-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: all 0.15s;
}
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn:hover { background: var(--panel-hover); color: var(--text); }
.icon-btn-sm { width: 24px; height: 24px; }
.icon-btn-sm svg { width: 14px; height: 14px; }
.icon-btn-xs { width: 22px; height: 22px; border-radius: 7px; }
.icon-btn-xs svg { width: 13px; height: 13px; }

.code-chip {
    margin-top: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-start;
    padding: 3px 6px;
    margin-left: -6px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s;
}
.code-chip:hover { background: rgba(var(--acc-2), 0.10); }
.code-chip.copied { background: rgba(var(--green-rgb), 0.12); }
.code-chip-icon { width: 13px; height: 13px; fill: var(--text); flex-shrink: 0; opacity: 0.55; transition: fill 0.18s, opacity 0.18s; }
.code-chip:hover .code-chip-icon { opacity: 0.9; }
.code-chip.copied .code-chip-icon { fill: var(--green); opacity: 1; }
.code-chip-value {
    font-size: 13.5px; font-weight: 800; letter-spacing: 1.5px;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "SF Mono", Consolas, monospace;
}
.code-chip.copied .code-chip-value { -webkit-text-fill-color: var(--green); }

/* 主区频道名旁的频道码（完整展示，点击复制） */
.main-code {
    margin-left: 10px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--text-2);
    background: var(--panel-hover);
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    flex-shrink: 0;
    user-select: all;
}
.main-code:hover { color: var(--text); border-color: rgba(var(--acc), 0.45); background: rgba(var(--acc), 0.08); }
.main-code.copied { color: var(--green); border-color: rgba(var(--green-rgb), 0.45); }

.sb-section { padding: 13px 10px 6px; display: flex; flex-direction: column; min-height: 0; }
.sb-section-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.sb-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6px 7px;
}
.sb-section-title {
    font-size: 13px; font-weight: 800; color: var(--text);
    letter-spacing: 1px; text-transform: uppercase;
}

/* 语音/文字频道列表项
   .93：flex-wrap + 成员行 flex-basis:100%——.85 把 .vc-member 收进 item 后忘了这条，
   成员行横排在标题行旁边（mic/人数/头像/名字挤一行），右侧标签直接被侧栏裁掉。
   现在成员行整行换到标题下方 full-width，标签再也不会被切。 */
.voice-list { display: flex; flex-direction: column; gap: 2px; }
.vc-item {
    display: flex; align-items: center; gap: 2px 9px;
    flex-wrap: wrap;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    user-select: none;
}
.vc-item:hover { background: var(--panel-hover); }
.vc-item.selected { background: rgba(var(--acc), 0.14); box-shadow: inset 3px 0 0 var(--pink); }
.vc-item.connected { background: rgba(var(--green-rgb), 0.1); }
/* .66：满员房——不置灰（还能看成员列表），但计数变警示色，双击会被 joinVoice 拦 */
.vc-item.full .vc-members { color: var(--red); font-weight: 600; }
.vc-glyph {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    flex-shrink: 0;
}
.vc-glyph svg { width: 16px; height: 16px; fill: currentColor; }
.vc-item.connected .vc-glyph { color: var(--green); }
.vc-name {
    flex: 1; font-size: 14px; color: var(--text); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-item.connected .vc-name { color: var(--green); font-weight: 600; }
.vc-members { font-size: 11px; color: var(--text-3); flex-shrink: 0; }


/* 语音状态栏 */
.voice-status {
    margin-top: auto;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background: rgba(var(--green-rgb), 0.08);
    border: 1px solid rgba(var(--green-rgb), 0.25);
    border-radius: var(--r-md);
    padding: 10px 12px;
    animation: slideUp 0.25s ease;
    flex-shrink: 0;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.vs-top { display: flex; align-items: center; gap: 9px; }
.vs-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(62, 213, 152, 0); }
}
.vs-info { flex: 1; min-width: 0; }
.vs-name {
    display: block; font-size: 13px; font-weight: 700; color: var(--green);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-meta { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.vs-actions { display: flex; gap: 6px; margin-top: 10px; }
.vs-btn {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2);
    transition: all 0.15s;
    position: relative;              /* 音量弹层锚点 + 悬停桥接 */
}
.vs-btn svg { width: 16px; height: 16px; }
.vs-btn:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.vs-btn.on { background: rgba(var(--red-rgb), 0.16); color: var(--red); }
.vs-btn-danger:hover { background: rgba(var(--red-rgb), 0.18); color: var(--red); }

/* ============ 主区 ============ */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: rgba(255, 255, 255, 0.012); }
.main-header {
    height: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}
.main-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hash-icon { width: 17px; height: 17px; color: var(--text); flex-shrink: 0; }
#mainChannelName { font-size: 17px; font-weight: 800; }
.main-header-right { display: flex; align-items: center; gap: 12px; }

/* .126 通知：入口红点 + body 级面板（避免被主区 overflow 裁切） */
.notif-trigger { position: relative; flex-shrink: 0; }
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px; padding: 0 4px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 99px; background: #EF4444; color: #FFFFFF;
    border: 2px solid var(--bg-deep);
    font-size: 9px; font-weight: 800; line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}
.notification-panel {
    position: fixed; z-index: 1600;
    width: min(380px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    display: flex; flex-direction: column;
    background: var(--panel-solid); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 16px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden; transform-origin: top right;
    animation: notifIn 0.16s ease;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-5px) scale(0.98); } to { opacity: 1; transform: none; } }
.notification-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 17px 16px 14px; border-bottom: 1px solid var(--line);
}
.notification-head h3 { font-size: 17px; font-weight: 800; }
.notification-head p { margin-top: 3px; font-size: 11.5px; color: var(--text-3); }
.notification-head .icon-btn { width: 28px; height: 28px; }
.notification-body { overflow-y: auto; padding: 4px 16px 14px; }
.notification-section { padding-top: 13px; }
.notification-section + .notification-section { margin-top: 7px; border-top: 1px solid var(--line); }
.notification-section h4 { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.6px; color: var(--text-3); font-weight: 700; }
.notification-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 8px; margin: 0 -8px; border-radius: 10px;
    transition: background 0.15s;
}
.notification-row:hover { background: var(--panel-hover); }
.notification-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; text-align: left; padding: 0; }
.notification-row-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.notification-row-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.notification-row-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-row-text { margin-top: 3px; color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-row-actions { display: flex; gap: 5px; flex-shrink: 0; }
.notification-row-actions .af-act { padding: 5px 10px; font-size: 11px; }
.notification-count {
    flex-shrink: 0; min-width: 19px; height: 19px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 99px; background: #EF4444; color: #fff;
    font-size: 10px; font-weight: 800;
}
.notification-empty { padding: 15px 0 18px; text-align: center; color: var(--text-3); font-size: 12px; }
@media (max-width: 720px) {
    .notification-panel { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
}

/* 消息区 */
.messages {
    flex: 1; overflow-y: auto;
    padding: 20px 18px 12px;
    display: flex; flex-direction: column; gap: 14px;
}
.msg { display: flex; gap: 11px; animation: msgIn 0.25s ease; }
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.msg-avatar { width: 36px; height: 36px; font-size: 14px; border-radius: 30%; }
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.msg-time { font-size: 10.5px; color: var(--text-3); }
.msg-text {
    font-size: 13.5px; color: var(--text-2); line-height: 1.55;
    margin-top: 2px; word-break: break-word;
}
.msg-system {
    align-self: center;
    font-size: 12px; color: var(--text-3);
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 5px 14px; border-radius: 99px;
}

/* 输入区 */
.composer {
    flex-shrink: 0;
    margin: 0 16px 16px;
    display: flex; align-items: center; gap: 8px;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 6px 8px 6px 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.composer:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 1.5px var(--blue), 0 0 18px rgba(var(--acc-2), 0.2);
}
.composer-btn { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.composer-btn svg { width: 18px; height: 18px; }
.composer-btn:hover { background: var(--panel-hover); color: var(--text); }
.composer-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 13.5px; padding: 7px 0;
}
.composer-input::placeholder { color: var(--text-3); }
.composer-send {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    color: var(--on-grad);
    transition: transform 0.12s, filter 0.2s;
    flex-shrink: 0;
}
.composer-send svg { width: 16px; height: 16px; fill: currentColor; }
.composer-send:hover { filter: brightness(1.1); }
.composer-send:active { transform: scale(0.92); }

/* ============ 私聊 ============ */
.main-dm { flex-direction: column; }
.dm-search-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
    padding: 14px 14px 0;
}
.dm-search { flex: 1; min-width: 0; }
.dm-body { flex: 1; display: flex; flex-direction: row; min-height: 0; }
.dm-list {
    width: 264px; flex-shrink: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    padding: 4px 10px 12px;
    display: flex; flex-direction: column;
}
.dm-add-btn {
    width: 38px; height: 38px; flex-shrink: 0;
    position: relative;
    border: none; border-radius: var(--r-md);
    background: var(--grad-pink-blue);
    color: var(--on-grad);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--acc), 0.28);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.dm-add-btn svg { width: 17px; height: 17px; }
.dm-add-btn:hover { transform: translateY(-1px) scale(1.04); filter: brightness(1.08); box-shadow: 0 6px 22px rgba(var(--acc), 0.42); }
.dm-add-btn:active { transform: scale(0.94); }
.dm-join-btn {
    height: 38px; flex-shrink: 0;
    padding: 0 13px;
    border: 1px solid rgba(var(--acc-2), 0.38);
    border-radius: var(--r-md);
    background: rgba(var(--acc-2), 0.12);
    color: var(--blue-soft, #8ab0ff);
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.dm-join-btn svg { width: 14px; height: 14px; }
.dm-join-btn:hover { background: rgba(var(--acc-2), 0.24); border-color: rgba(var(--acc-2), 0.6); }
.dm-join-btn:active { transform: scale(0.95); }
.dm-list-head {
    display: flex; align-items: baseline; gap: 8px;
    margin: 4px 2px 10px;
    flex-shrink: 0;
}
.dm-list-title { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: 0.02em; }
.dm-list-count { font-size: 12.5px; font-weight: 700; color: var(--text); }
.dm-items { display: flex; flex-direction: column; gap: 2px; }
.dm-empty {
    padding: 40px 0; text-align: center;
    font-size: 13px; color: var(--text-3);
}
.dm-tag {
    font-size: 11px; font-weight: 600;
    color: var(--text-3);
    opacity: 0.85;
}
.dm-item {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 10px;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s;
}
.dm-item:hover { background: var(--panel-hover); }
.dm-item.active { background: rgba(var(--acc), 0.1); border: 1px solid rgba(var(--acc), 0.25); padding: 8px 9px; }
.dm-item-body { flex: 1; min-width: 0; }
.dm-item-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dm-item-last {
    font-size: 11.5px; color: var(--text-3); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-avatar-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
.dm-unread {
    position: absolute; top: -6px; right: -6px; z-index: 2;
    min-width: 17px; height: 17px; border-radius: 9px;
    background: #EF4444;
    color: #FFFFFF; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 5px; flex-shrink: 0;
    border: 2px solid var(--bg-deep);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.dm-chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* 私聊输入框拉通到最右边 */
.dm-chat .composer { margin: 0 0 14px; }
.dm-chat .messages { padding: 20px 18px 12px; }

/* ============ 添加好友弹窗 ============ */
.modal-af { width: 520px; max-width: calc(100vw - 48px); }
.af-tabs {
    display: flex; gap: 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.af-tab {
    position: relative;
    border: none; background: none;
    font-size: 13.5px; font-weight: 600;
    color: var(--text-3);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.af-tab:hover { background: var(--panel-hover); color: var(--text-2); }
.af-tab.active { color: var(--text); background: var(--panel-hover); }
.af-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px;
    margin-left: 6px; padding: 0 4px;
    border-radius: 99px;
    background: var(--grad-pink-blue);
    color: var(--on-grad); font-size: 10px; font-weight: 700;
}
.af-pane { min-height: 300px; display: flex; flex-direction: column; }
.af-search {
    display: flex; align-items: center; gap: 9px;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 11px 13px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.af-search:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 1.5px var(--pink), 0 0 18px rgba(var(--acc), 0.2);
}
.af-search-input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    color: var(--text); font-size: 13.5px;
}
.af-search-input::placeholder { color: var(--text-3); }
.af-results {
    flex: 1;
    display: flex; flex-direction: column; gap: 2px;
    max-height: 300px; overflow-y: auto;
}
.af-row {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 10px;
    border-radius: var(--r-md);
    transition: background 0.15s;
    animation: viewIn 0.22s ease both;
}
.af-row:hover { background: var(--panel-hover); }
.af-row-body { flex: 1; min-width: 0; }
.af-row-name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.af-row-status { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.af-add {
    width: 30px; height: 30px; flex-shrink: 0;
    border: none; border-radius: 50%;
    background: var(--grad-pink-blue);
    color: var(--on-grad);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}
.af-add svg { width: 15px; height: 15px; }
.af-add:hover { transform: scale(1.12); filter: brightness(1.1); }
.af-add:active { transform: scale(0.9); }
.af-add-done {
    width: auto; border-radius: 99px;
    padding: 0 12px;
    background: rgba(var(--acc-2), 0.14);
    color: var(--blue-soft);
    font-size: 11.5px; font-weight: 700;
    cursor: default;
}
.af-add-done:hover { transform: none; filter: none; }
.af-act {
    border: none; border-radius: 99px;
    padding: 6px 14px;
    font-size: 12px; font-weight: 700;
    cursor: pointer; flex-shrink: 0;
    transition: filter 0.15s, transform 0.15s;
}
.af-act:hover { filter: brightness(1.1); transform: translateY(-1px); }
.af-act-ok { background: var(--grad-pink-blue); color: var(--on-grad); }
.af-act-no { background: var(--panel-hover); color: var(--text-3); }
.af-empty {
    padding: 46px 0; text-align: center;
    font-size: 13px; color: var(--text-3);
}

/* 聊天气泡 */
.bubble-row { display: flex; gap: 10px; animation: msgIn 0.25s ease; }
.bubble-row.mine { flex-direction: row-reverse; }
.bubble-row .avatar { width: 32px; height: 32px; font-size: 12px; }
/* .89：时间在气泡上方的列容器——时间和消息分家，时间不再塞进气泡里 */
.bubble-col { display: flex; flex-direction: column; gap: 3px; max-width: 62%; min-width: 0; }
.bubble-row.mine .bubble-col { align-items: flex-end; }
.bubble-row:not(.mine) .bubble-col { align-items: flex-start; }
.bubble {
    max-width: 100%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13.5px; line-height: 1.5;
    word-break: break-word;
}
.bubble-row:not(.mine) .bubble {
    background: var(--panel);
    border: 1px solid var(--line);
    border-top-left-radius: 4px;
    color: var(--text);
}
.bubble-row.mine .bubble {
    background: var(--grad);
    border-top-right-radius: 4px;
    color: var(--on-grad);
    box-shadow: 0 4px 18px rgba(var(--acc), 0.28);
}

/* 私聊气泡：发送时间在气泡上方（.89 从气泡内移出；.91 颜色 --text-3 太暗用户反馈看不见，
   改用 --text 主题自适应：深色主题即白色，浅色主题自动变深色不会隐形） */
.bubble-time {
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 500;
    color: var(--text);
    padding: 0 2px;
}
.bubble-media { padding: 6px; }
.chat-img {
    display: block;
    max-width: 240px;
    max-height: 240px;
    border-radius: 9px;
    cursor: zoom-in;
    transition: transform 0.18s, filter 0.18s;
}
.chat-img:hover { filter: brightness(1.07); transform: scale(1.012); }
.msg-text .chat-img { margin-top: 5px; max-width: 260px; }

/* 聊天视频消息 */
.chat-video-wrap {
    position: relative;
    display: inline-block;
    margin-top: 4px;
    line-height: 0;
}
.chat-video {
    display: block;
    width: 260px;
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    background: #000;
    line-height: normal;
}
.chat-video-expand {
    position: absolute;
    top: 7px; right: 7px;
    width: 28px; height: 28px;
    border: none; border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.16s, background 0.16s, transform 0.16s;
}
.chat-video-expand svg { width: 15px; height: 15px; }
.chat-video-wrap:hover .chat-video-expand { opacity: 1; }
.chat-video-expand:hover { background: rgba(0, 0, 0, 0.78); transform: scale(1.08); }

/* ============ 媒体查看器（图片/视频放大） ============ */
.img-viewer {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    animation: fadeIn 0.18s ease;
    cursor: zoom-out;
}
.img-viewer-img {
    max-width: 86vw; max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    animation: modalIn 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    cursor: default;
}
.img-viewer-video {
    max-width: 86vw; max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    animation: modalIn 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    cursor: default;
    background: #000;
}
.img-viewer-close {
    position: absolute;
    top: 18px; right: 22px;
    width: 38px; height: 38px;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.16s, transform 0.16s;
}
.img-viewer-close svg { width: 17px; height: 17px; }
.img-viewer-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }
.img-viewer-bar {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: rgba(255, 255, 255, 0.72);
}
.img-viewer-hint { opacity: 0.6; }

/* ============ 语音房间视图（主区成员展示） ============ */
.voice-room-header { gap: 12px; }
.voice-room-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.voice-room-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: pulse 1.6s infinite;
}
.voice-room-count {
    font-size: 12px; color: var(--text); font-weight: 600;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 4px 12px; border-radius: 99px;
    flex-shrink: 0;
}
#voiceRoomName { font-size: 17px; font-weight: 800; }
.main-topic { font-size: 12px; color: var(--text-3); }

/* 左上角返回箭头 */
.back-btn {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: all 0.15s;
    flex-shrink: 0;
}
.back-btn svg { width: 17px; height: 17px; }
.back-btn:hover { background: var(--panel-hover); color: var(--text); transform: translateX(-2px); }

/* 成员网格：flex 换行 + 整体水平/垂直居中，1 人或 2 人时也居中 */
.voice-grid {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 16px;
    padding: 24px;
}

/* 成员卡片 */
.vm-card {
    flex: 0 1 calc((100% - 32px) / 3);
    min-width: 150px;
    max-width: 240px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 12px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transition: transform 0.18s, border-color 0.18s;
    animation: cardIn 0.3s ease;
}
.vm-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.vm-card.server-muted .vm-avatar { opacity: 0.55; }
.vm-card.me { border-color: rgba(var(--acc), 0.35); background: rgba(var(--acc), 0.05); }

.vm-avatar {
    width: 64px; height: 64px;
    border-radius: 26%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: var(--avatar-ink);
    position: relative;
    flex-shrink: 0;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.vm-ring {
    position: absolute; inset: -5px;
    border-radius: 30%;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    pointer-events: none;
}
/* 说话中：绿色描边 + 扩散光圈 */
.vm-card.speaking .vm-ring { border-color: var(--green); animation: vmRing 1.1s ease-out infinite; }
@keyframes vmRing {
    0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.45); }
    100% { box-shadow: 0 0 0 10px rgba(var(--green-rgb), 0); }
}
.vm-card.speaking .vm-avatar { box-shadow: 0 0 18px rgba(var(--green-rgb), 0.35); }

/* 静音角标 */
.vm-flag {
    position: absolute; right: -3px; bottom: -3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--panel-solid);
    border: 1.5px solid var(--red);
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
}
.vm-flag svg { width: 11px; height: 11px; }
.vm-card.muted .vm-avatar, .vm-card.deafened .vm-avatar { opacity: 0.75; }

.vm-name {
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vm-tag {
    font-size: 10px; font-weight: 700;
    background: var(--grad-pink-blue);
    padding: 1px 6px; border-radius: 99px;
    color: var(--on-grad);
    flex-shrink: 0;
}
.vm-badge { font-size: 11px; padding: 2px 10px; border-radius: 99px; }
.vm-badge-ok { color: var(--green); background: rgba(var(--green-rgb), 0.12); }
.vm-badge-warn { color: var(--red); background: rgba(var(--red-rgb), 0.12); }

/* 底部控制条 */
.voice-controls {
    flex-shrink: 0;
    display: flex; justify-content: center; gap: 12px;
    padding: 14px 0 18px;
}
.vc-ctrl {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 99px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    color: var(--text-2);
    font-size: 13px; font-weight: 600;
    transition: all 0.15s;
    position: relative;              /* 音量弹层锚点 + 悬停桥接 */
}
/* 悬停桥接：按钮上方 14px 隐形热区。弹层在按钮上方 10px，鼠标移向弹层时
   经过这段空隙不会断 :hover（否则弹层瞬间消失，滑杆根本拖不到） */
.vc-ctrl::before, .vs-btn::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 100%;
    height: 14px;
}
.vc-ctrl svg { width: 17px; height: 17px; }
.vc-ctrl:hover { background: var(--panel-hover); color: var(--text); }
.vc-ctrl.on { background: rgba(var(--red-rgb), 0.16); border-color: rgba(var(--red-rgb), 0.4); color: var(--red); }
.vc-ctrl-danger:hover { background: rgba(var(--red-rgb), 0.18); border-color: rgba(var(--red-rgb), 0.4); color: var(--red); }

/* 聊天页“回到语音”按钮 */
.rejoin-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    background: rgba(var(--green-rgb), 0.1);
    border: 1px solid rgba(var(--green-rgb), 0.35);
    color: var(--green);
    font-size: 12px; font-weight: 700;
    transition: all 0.15s;
}
.rejoin-btn svg { width: 13px; height: 13px; }
.rejoin-btn:hover { background: rgba(var(--green-rgb), 0.2); box-shadow: 0 0 16px rgba(var(--green-rgb), 0.25); }
.rejoin-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }

/* ============ 弹窗 ============ */
.modal-mask {
    position: absolute; inset: 0;
    background: rgba(5, 7, 14, 0.72);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 50;
    animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    width: 400px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    padding: 26px 28px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.modal-title {
    font-size: 18px; font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.modal-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 8px 0 18px; }
.modal-preview {
    display: flex; align-items: center; gap: 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 13px 15px;
    margin-bottom: 18px;
}
.modal-preview-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.modal-preview-name { font-size: 14.5px; font-weight: 700; }
.modal-preview-code { font-size: 12.5px; color: var(--text); }
.modal-preview-code b {
    font-family: "SF Mono", Consolas, monospace;
    letter-spacing: 1.5px; color: var(--text); font-size: 13.5px;
}
/* 创建频道：点头像上传（可选） */
.cc-avatar-btn { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.cc-avatar-btn:hover { box-shadow: 0 0 0 2px var(--text); transform: translateY(-1px); }
.cc-avatar-hint { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* 微信扫码 */
.modal-wechat { width: 320px; text-align: center; }
/* 通用确认弹窗 */
.modal-confirm { width: 340px; }
.confirm-text { font-size: 13.5px; color: var(--text-2); line-height: 1.65; margin: 2px 0 4px; }
/* 变声器：自听回音开关 */
.vc-monitor-row { margin: 4px 2px 0; }
.pf-first-hint {
    font-size: 12.5px;
    color: var(--blue-soft);
    line-height: 1.6;
    margin: 10px 0 14px;
    padding: 9px 12px;
    background: rgba(var(--acc-2), 0.1);
    border: 1px solid rgba(var(--acc-2), 0.28);
    border-radius: var(--r-md);
}
.vc-monitor-hint { font-size: 11.5px; color: var(--text-3); line-height: 1.5; padding: 0 12px 2px; }
.qr-box {
    width: 180px; height: 180px;
    margin: 6px auto 16px;
    background: #fff;
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.qr-fake {
    width: 148px; height: 148px;
    background:
        repeating-conic-gradient(#0A0D18 0% 25%, #fff 0% 50%) 0 0 / 24px 24px;
    border-radius: 8px;
}
.qr-scanline {
    position: absolute; left: 12px; right: 12px; top: 12px;
    height: 2.5px;
    background: var(--wx-green);
    box-shadow: 0 0 12px var(--wx-green);
    animation: scan 2s ease-in-out infinite alternate;
    border-radius: 2px;
}
@keyframes scan { from { top: 14px; } to { top: 160px; } }

/* Toast */
.toast {
    position: absolute;
    left: 50%; bottom: 44px;
    transform: translateX(-50%) translateY(16px);
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 99px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 100;
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ============ 头像图片 ============ */
.avatar img, .vm-avatar img {
    width: 100%; height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}
.avatar-xs { width: 20px; height: 20px; font-size: 9px; border-radius: 50%; }

/* ============ 语音房间：每行最多 3 个，永远整体居中 ============ */
.voice-grid {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 16px;
    padding: 24px;
}
.vm-card {
    flex: 0 1 calc((100% - 32px) / 3);
    min-width: 150px;
    max-width: 240px;
}
.vm-badge-vol { color: var(--blue-soft); background: rgba(var(--acc-2), 0.14); }

/* ============ 麦克风音量弹层（悬停） ============ */
.vol-pop {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    display: flex; flex-direction: column; gap: 8px;
    width: 168px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 12px 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s, transform 0.16s;
    z-index: 30;
}
.vol-pop-side { bottom: calc(100% + 8px); }
/* 显示条件：悬停 / 点击定住(pinned) / 键盘聚焦。悬停桥接见 .vc-ctrl::before */
.vs-btn:hover .vol-pop, .vc-ctrl:hover .vol-pop,
.vs-btn.pinned .vol-pop, .vc-ctrl.pinned .vol-pop,
.vs-btn:focus-within .vol-pop, .vc-ctrl:focus-within .vol-pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* 实时输入电平条：拖麦克风滑杆时它跟着涨，证明增益真的作用在推流上 */
.vol-pop-meter {
    position: relative;
    height: 5px;
    border-radius: 3px;
    background: rgba(127, 127, 127, 0.22);
    overflow: hidden;
}
.vol-pop-meter i {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    border-radius: 3px;
    background: var(--pink);
    transition: width 0.09s linear;
}
.vol-pop-meter i.hot {
    background: var(--red);
    box-shadow: 0 0 6px rgba(var(--red-rgb), 0.55);
}
.vol-pop-label { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.vol-pop-label b { color: var(--pink); }

/* ============ 骨架屏：登录秒开的等待占位（.60） ============
   首登无本地快照时，云端数据到达前（~1s）好友列表/频道圆点/聊天区
   显示微光扫过的占位块，不再是"东西都加载不出来"的空面板 */
.skel { position: relative; overflow: hidden; background: rgba(127, 127, 127, 0.14); border-radius: 6px; }
.skel::after {
    content: '';
    position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(127, 127, 127, 0.10), transparent);
    animation: skelSweep 1.15s ease-in-out infinite;
}
@keyframes skelSweep { 100% { transform: translateX(100%); } }
.skel-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.skel-line { height: 9px; display: block; }
.skel-dot { width: 37px; height: 37px; border-radius: 11px; display: inline-block; margin-bottom: 8px; }
.vol-pop input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    outline: none;
    cursor: pointer;
}
.vol-pop input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--pink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

/* ============ 右键菜单 ============ */
.ctx-menu {
    position: fixed;
    z-index: 200;
    min-width: 148px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 5px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.16s ease;
}
.ctx-item {
    display: block; width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-2);
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.ctx-item:hover { background: var(--panel-hover); color: var(--text); }
.ctx-item.active { color: var(--green); }
.ctx-divider { height: 1px; background: var(--line); margin: 4px 6px; }
.ctx-header {
    padding: 6px 12px 3px;
    font-size: 10.5px; font-weight: 700;
    color: var(--text-3);
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.ctx-subwrap { position: relative; }
/* .62：父项→子菜单的无形桥梁（盖住 4px 缝隙 + 探入子菜单左沿），鼠标划过不触发 mouseleave */
.ctx-subwrap::after {
    content: ''; position: absolute; left: 100%; top: 0; width: 10px; height: 100%;
}
.ctx-subwrap.flip::after { left: auto; right: 100%; }
.ctx-sub {
    position: absolute;
    left: calc(100% + 4px);
    top: -5px;
    min-width: 132px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 5px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.14s ease;
    z-index: 210;
}
/* .62：贴右边缘时子菜单翻到父项左侧（JS 加 .flip） */
.ctx-subwrap.flip > .ctx-sub { left: auto; right: calc(100% + 4px); }
.ctx-item.danger, .ctx-item.ctx-danger { color: var(--red); }
.ctx-item.ctx-danger:hover { background: rgba(var(--red-rgb), 0.12); color: var(--red); }

/* ============ 右键菜单内嵌音量滑杆（0–200%） ============ */
.ctx-vol {
    padding: 8px 12px 10px;
    min-width: 168px;
}
.ctx-vol-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12.5px; color: var(--text-2);
    margin-bottom: 8px;
    white-space: nowrap;
}
.ctx-vol-head b { color: var(--text); font-size: 13px; }
.ctx-vol input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%; height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink), var(--blue));
    outline: none;
    cursor: pointer;
}
.ctx-vol input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--on-grad);
    border: 2px solid var(--bg);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    cursor: grab;
    transition: transform 0.12s;
}
.ctx-vol input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ============ 成员与权限弹窗 ============ */
.modal-members { max-width: 420px; }
.cm-channel {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    margin-bottom: 16px;
}
.cm-channel-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-channel-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.cm-channel-code { font-size: 12.5px; color: var(--text); }
.cm-channel-code b { color: var(--text); letter-spacing: 1.5px; font-size: 13.5px; }
.cm-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700;
    color: var(--text-3);
    letter-spacing: 0.06em;
    margin: 4px 0 8px;
}
.cm-count { font-weight: 600; color: var(--text-3); opacity: 0.8; }
.cm-list {
    display: flex; flex-direction: column; gap: 4px;
    max-height: 200px; overflow-y: auto;
    margin-bottom: 14px;
}
.cm-row {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background 0.13s;
}
.cm-row:hover { background: var(--panel-hover); }
.cm-name {
    font-size: 13px; color: var(--text);
    display: flex; align-items: center; gap: 5px;
    flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-badge {
    font-size: 10px; font-weight: 700;
    padding: 1.5px 7px; border-radius: 99px;
    flex-shrink: 0;
}
.cm-badge-admin { color: var(--on-grad); background: var(--grad-pink-blue); }
.cm-badge-creator { color: var(--warn); background: rgba(var(--warn-rgb), 0.14); }
.cm-badge-warn { color: var(--red); background: rgba(var(--red-rgb), 0.12); }
.cm-act {
    font-size: 11.5px; font-weight: 600;
    color: var(--blue-soft);
    background: rgba(var(--acc-2), 0.12);
    border: none; border-radius: 99px;
    padding: 4px 11px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.13s, color 0.13s;
}
.cm-act:hover { background: rgba(var(--acc-2), 0.22); color: var(--text); }
.cm-act-danger { color: var(--red); background: rgba(var(--red-rgb), 0.12); }
.cm-act-danger:hover { background: rgba(var(--red-rgb), 0.25); color: var(--red); }
.cm-tip {
    padding: 10px;
    font-size: 12px; color: var(--text-3);
    text-align: center;
}

/* ============ 侧栏语音成员行 ============ */
.vc-member {
    display: flex; align-items: center; gap: 8px;
    flex-basis: 100%;   /* .93：整行换到标题下方（配合 .vc-item flex-wrap） */
    padding: 5px 10px 5px 45px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.13s;
}
.vc-member:hover { background: var(--panel-hover); }
.vc-member.muted-local { opacity: 0.55; }
/* .92：display:flex 容器上的 text-overflow:ellipsis 不生效（文字是匿名 flex 项，
   不会收缩也不会出省略号）——名字收进 inner .nm-text 真正做省略，badge 不参与收缩 */
.vc-member-name {
    flex: 1; min-width: 0;
    font-size: 12.5px; color: var(--text-2);
    display: flex; align-items: center; gap: 5px;
    overflow: hidden;
}
.vc-member-name .nm-text {
    min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vc-member .vm-tag { flex-shrink: 0; transform: scale(0.85); transform-origin: left; }
/* .92：标签串允许被压缩+裁剪，绝不被名字顶出容器（穿模） */
.vc-member-tags {
    display: flex; align-items: center; gap: 4px;
    flex-shrink: 1; min-width: 0; overflow: hidden;
}
.vc-member-vol {
    font-size: 10.5px; font-weight: 700;
    color: var(--blue-soft);
    background: rgba(var(--acc-2), 0.14);
    padding: 1px 7px; border-radius: 99px;
    flex-shrink: 0;
}
.vc-member-vol-warn { color: var(--red); background: rgba(var(--red-rgb), 0.12); }
.vc-member-vol-admin { color: var(--on-grad); background: var(--grad-pink-blue); }
.vc-member-vol-fx { color: var(--on-grad); background: var(--grad-pink-blue); }

/* ============ 主页（home）搜索框 ============ */
.dm-search {
    display: flex; align-items: center; gap: 9px;
    background: var(--field-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 9px 12px;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dm-search:focus-within {
    border-color: transparent;
    box-shadow: 0 0 0 1.5px var(--pink), 0 0 18px rgba(var(--acc), 0.2);
}
.dm-search-icon { width: 15px; height: 15px; color: var(--text); flex-shrink: 0; }
.dm-search-input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    color: var(--text); font-size: 13px;
    letter-spacing: 1px;
}
.dm-search-input::placeholder { color: var(--text-3); letter-spacing: 0; }

/* ============ 头像上传（频道设置 / 我的资料） ============ */
.avatar-upload {
    display: flex; align-items: center; gap: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin: 18px 0;
}
.avatar-upload .avatar-lg { overflow: hidden; }
.avatar-upload-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.avatar-upload-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.btn-ghost-sm { padding: 6px 14px; font-size: 12.5px; }

/* ============ 设置：主题选择 ============ */
.theme-row { display: flex; gap: 10px; margin-top: 10px; }
.theme-card {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 14px 8px 12px;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text-2);
    transition: all 0.16s;
}
.theme-card:hover { border-color: var(--line-strong); }
.theme-card.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(var(--acc), 0.18); color: var(--text); }
.theme-card-name { font-size: 12.5px; font-weight: 600; }
/* 语言卡（.54：复用主题卡视觉，无色块） */
.lang-row { display: flex; gap: 10px; margin-top: 10px; }
.lang-card {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 10px 8px;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text-2);
    transition: all 0.16s;
}
.lang-card:hover { border-color: var(--line-strong); }
.lang-card.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(var(--acc), 0.18); color: var(--text); }
.lang-card-name { font-size: 12.5px; font-weight: 600; }
.theme-swatch {
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
}
.theme-swatch-dark { background: linear-gradient(135deg, #3A2E55, #181420); }
.theme-swatch-light { background: linear-gradient(135deg, #FFFFFF, #D8D8DE); }
.theme-swatch-vivid { background: linear-gradient(135deg, #B98CFF, #8B5CF6, #5B4BFF); }

/* ============ 用户面板（左下角头像弹出） ============ */
.user-panel {
    position: fixed;
    z-index: 150;
    width: 236px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.18s ease;
}
.up-head { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.up-head .avatar-lg { overflow: hidden; }
.up-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.up-name {
    font-size: 15px; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-tag {
    font-size: 11px; font-weight: 700;
    color: var(--blue-soft);
    background: rgba(var(--acc-2), 0.12);
    padding: 1px 8px; border-radius: 99px;
    align-self: flex-start;
}
.up-phone { font-size: 11.5px; color: var(--text-3); }
.up-label {
    font-size: 11px; font-weight: 700; color: var(--text-3);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 9px;
}
.user-panel .theme-row { margin-bottom: 14px; }
.user-panel .theme-card { padding: 10px 6px 9px; gap: 7px; }
.user-panel .theme-swatch { width: 34px; height: 34px; border-radius: 10px; }
.up-item {
    display: block; width: 100%; text-align: left;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px; font-weight: 600;
    color: var(--text-2);
    transition: background 0.14s, color 0.14s;
}
.up-item:hover { background: var(--panel-hover); color: var(--text); }
.up-item-danger:hover { background: rgba(var(--red-rgb), 0.14); color: var(--red); }

/* 提示声效开关 */
.up-item-switch {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 4px;
}
.up-switch {
    position: relative; flex: none;
    width: 34px; height: 20px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background 0.16s;
}
.up-switch-dot {
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    transition: transform 0.16s, background 0.16s;
}
.up-item-switch.on .up-switch { background: var(--grad); }
.up-item-switch.on .up-switch-dot { background: var(--on-grad); transform: translateX(14px); }

/* 版本号 + 检查更新 */
.up-version {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px 3px;
    font-size: 11.5px;
    color: var(--text-3);
}
.up-version-btn {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 11.5px; font-weight: 600;
    color: var(--text-2);
    transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.up-version-btn:hover { background: var(--panel-hover); color: var(--text); border-color: var(--pink); }

/* ============ 音频设置弹窗 ============ */
.modal-audio { width: 400px; }
.au-field { margin-top: 16px; }
.au-label {
    display: block;
    font-size: 12.5px; font-weight: 700; color: var(--text-2);
    margin-bottom: 7px;
}
.au-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--field-bg);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23A7B0C0' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.au-select:focus { border-color: var(--pink); }
.au-select option { background: var(--panel-solid); color: var(--text); }
.au-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; margin-top: 14px; }

/* ============ 变声器弹窗 ============ */
.modal-vc { width: 380px; }
.vc-list { display: flex; flex-direction: column; gap: 6px; margin: 16px 0 4px; }
.vc-option {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    color: var(--text-2);
    text-align: left;
    transition: all 0.15s;
}
.vc-option:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.vc-option.active { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(var(--acc), 0.15); }
.vc-option-glyph {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--grad-pink-blue);
    display: flex; align-items: center; justify-content: center;
    color: var(--on-grad);
    flex-shrink: 0;
}
.vc-option-glyph svg { width: 15px; height: 15px; }
.vc-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-option-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.vc-option-desc { font-size: 11.5px; color: var(--text-3); }
.vc-option-check { width: 18px; height: 18px; color: var(--pink); flex-shrink: 0; }
.vc-option-check svg { width: 18px; height: 18px; }

/* 变声徽标 */
.vm-badge-fx { color: var(--on-grad); background: var(--grad-pink-blue); }
.vc-member-vol-fx { color: var(--on-grad); background: var(--grad-pink-blue); }
/* AI 降噪徽标 / 标签 */
.vm-badge-dn { color: var(--on-grad); background: var(--grad-pink-blue); }
.vc-member-vol-dn { color: var(--on-grad); background: var(--grad-pink-blue); }
/* AI 降噪按钮（语音控制条，开启态用青色区分静音红） */
#vmDenoise.on { background: rgba(var(--green-rgb), 0.16); border-color: rgba(var(--green-rgb), 0.45); color: var(--green); }
/* 设置弹窗开关行：网页版不支持时置灰 */
.up-item-switch:disabled { opacity: 0.45; cursor: not-allowed; }
.au-field { margin-bottom: 14px; }
.au-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.au-field .up-item-switch { width: 100%; margin: 0; }
.au-field .au-hint { margin-top: 6px; }

/* ============ 主题：白色（纯灰阶） ============ */
body.theme-light {
    --bg: #F5F5F7;
    --bg-deep: #E9E9ED;
    --panel: rgba(16, 18, 24, 0.045);
    --panel-solid: #FFFFFF;
    --panel-hover: rgba(16, 18, 24, 0.08);
    --line: rgba(16, 18, 24, 0.1);
    --line-strong: rgba(16, 18, 24, 0.18);
    --text: #141418;
    --text-2: #4A4A52;
    --text-3: #8A8A93;
    --pink: #7A4DE8;
    --pink-soft: #A98CFF;
    --blue: #5B4BFF;
    --blue-soft: #8B7BFF;
    --acc: 122, 77, 232;
    --acc-2: 91, 75, 255;
    /* 白主题同样用紫做品牌色：深紫实心填充 + 白字 */
    --mono-fill: #7A4DE8;
    --mono-ink: #FFFFFF;
    --grad-text: linear-gradient(120deg, #7A4DE8, #5B4BFF);
    --grad: linear-gradient(135deg, #8B5CF6 0%, #5B4BFF 100%);
    --grad-pink-blue: linear-gradient(120deg, #8B5CF6, #5B4BFF);
    --on-grad: #FFFFFF;
    --avatar-ink: #141418;
    --green: #2E9E5B;  --green-rgb: 46, 158, 91;
    --red: #E5484D;    --red-rgb: 229, 72, 77;
    --warn: #C27C0E;   --warn-rgb: 194, 124, 14;
    --wx-green: #07C160; --wx-green-rgb: 7, 193, 96;
    --card-bg: rgba(255, 255, 255, 0.86);
    --field-bg: rgba(16, 18, 24, 0.05);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.14);
    --glow-pink: 0 0 24px rgba(122, 77, 232, 0.24);
    --glow-blue: 0 0 24px rgba(91, 75, 255, 0.2);
    /* 图标轨：紫色轮廓光 */
    --rail-ring: rgba(122, 77, 232, 0.38);
    --rail-glow: rgba(122, 77, 232, 0.16);
    --stage-bg:
        radial-gradient(1200px 700px at 15% -10%, rgba(122, 77, 232, 0.1), transparent 60%),
        radial-gradient(1200px 700px at 90% 110%, rgba(91, 75, 255, 0.12), transparent 60%),
        #E9E9ED;
}
body.theme-light .auth-glow { opacity: 0.22; }
body.theme-vivid .auth-glow { opacity: 0.5; }   /* 紫色主题还原更强光晕 */
body.theme-light .qr-fake { filter: invert(1); }

/* .24：vivid 主题图标轨保持原版观感（悬停高亮，仅 active 上渐变盒） */
body.theme-vivid .rail-btn {
    background: var(--panel-hover);
    color: var(--text-2);
    box-shadow: none;
}
body.theme-vivid .rail-btn:hover { background: var(--panel-hover); color: var(--text); }
body.theme-vivid .rail-btn.active,
body.theme-vivid .rail-home.active { background: var(--grad); color: var(--on-grad); box-shadow: 0 6px 20px rgba(var(--acc), 0.4); }
body.theme-vivid .rail-add { border-color: var(--line-strong); }
body.theme-vivid .rail-user { background: none; }

/* ============ 主题：紫色强化（深紫底 + 亮紫渐变，KOOK 品牌色思路） ============ */
body.theme-vivid {
    --bg: rgba(21, 15, 34, 0.62);
    --bg-deep: #130E20;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-solid: rgba(29, 22, 46, 0.94);
    --panel-hover: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.26);
    --card-bg: rgba(29, 22, 46, 0.78);
    --field-bg: rgba(255, 255, 255, 0.09);
    --stage-bg: linear-gradient(135deg, #3B2364 0%, #6D3FE7 55%, #4B3ACF 100%);
    --pink: #B98CFF;
    --pink-soft: #D3BCFF;
    --blue: #6F5BFF;
    --blue-soft: #9B8CFF;
    --acc: 168, 121, 255;
    --acc-2: 111, 91, 255;
    --grad-text: linear-gradient(120deg, #D8BCFF, #8F6BFF);
    --glow-pink: 0 0 24px rgba(185, 140, 255, 0.4);
    --glow-blue: 0 0 24px rgba(111, 91, 255, 0.4);
    /* 登录页 / logo 用紫色渐变；封面恢复彩色 */
    --mono-fill: var(--grad);
    --mono-ink: #fff;
    --grad: linear-gradient(135deg, #B98CFF 0%, #8B5CF6 45%, #5B4BFF 100%);
    --grad-pink-blue: linear-gradient(120deg, #B98CFF, #6F5BFF);
    --on-grad: #FFFFFF;
    --avatar-ink: #FFFFFF;
    --green: #3ED598;  --green-rgb: 62, 213, 152;
    --red: #FF6B7A;    --red-rgb: 255, 107, 122;
    --warn: #FFC53D;   --warn-rgb: 255, 197, 61;
    --wx-green: #07C160; --wx-green-rgb: 7, 193, 96;
    --wall-img-filter: blur(1.2px) brightness(0.72) saturate(0.9);
}
body.theme-vivid .win { box-shadow: 0 24px 90px rgba(var(--acc), 0.35), var(--shadow-lg); }
body.theme-vivid .vm-card { border-color: rgba(255, 255, 255, 0.14); }
body.theme-vivid .rail-channel { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); }
body.theme-vivid .auth-title {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ 视图转场动画 ============ */
@keyframes viewIn {
    from { opacity: 0; transform: translateY(14px) scale(0.995); }
    to { opacity: 1; transform: none; }
}
@keyframes viewInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}
@keyframes voiceRoomIn {
    from { opacity: 0; transform: scale(1.03) translateY(12px); }
    to { opacity: 1; transform: none; }
}
.main:not(.hidden) { animation: viewIn 0.32s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.main-voice:not(.hidden) { animation: voiceRoomIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.sidebar:not(.hidden) { animation: viewInLeft 0.3s cubic-bezier(0.22, 0.9, 0.32, 1) both; }

/* 微交互：列表项滑入 / 回到语音按钮弹出 */
.vc-item {
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
    animation: viewInLeft 0.26s cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.vc-item:hover { transform: translateX(2px); }
.vc-member {
    transition: background 0.13s, opacity 0.2s;
    animation: viewInLeft 0.24s cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.rejoin-btn:not(.hidden) { animation: viewIn 0.3s cubic-bezier(0.22, 0.9, 0.32, 1) both; }
.cm-row { animation: viewIn 0.22s ease both; }

/* 响应式：窄屏退化为全屏 */
@media (max-width: 900px) {
    .stage { padding: 0; }
    .win { zoom: 1; width: 100%; height: 100%; border-radius: 0; border: none; }
    .titlebar { display: none; }
    .dm-list { width: 190px; }
}
@media (max-width: 640px) {
    .rail { width: 64px; }
    .sidebar { width: 200px; }
    /* 好友列永不隐藏：窄屏只收窄 + 隐藏最后一条消息预览，保证好友始终可见可点 */
    .dm-list { width: 128px; }
    .dm-item { gap: 8px; padding: 8px; }
    .dm-item-last { display: none; }
    .voice-grid { gap: 10px; padding: 14px; }
    .vm-avatar { width: 52px; height: 52px; font-size: 20px; }
}
@media (max-width: 420px) {
    .dm-list { width: 92px; }
    .dm-tag { display: none; }
    .dm-list-count { display: none; }
    .dm-list-head { margin: 4px 0 8px; }
}

/* ============ .34 全局按压缩放：按键"刹那执行"的触感 ============ */
.btn-grad, .rail-btn { transition: transform 0.1s ease, box-shadow 0.15s, background 0.15s; }
.dm-item { transition: background 0.15s, transform 0.1s ease; }
.vc-item:active { transition-duration: 0.08s; }

/* 所有可点元素：按下即缩、松开回弹（:disabled 不参与） */
button:not(:disabled):active,
.icon-btn:not(:disabled):active,
.rail-btn:not(:disabled):active,
.btn-grad:not(:disabled):active,
.btn-mono:not(:disabled):active,
.dm-item:active,
.vm-card:active,
.vc-item:active {
    transform: scale(0.96);
}
/* 保留几个细调过的按压幅度（特异性压过上面的通配规则） */
.composer-send:not(:disabled):active { transform: scale(0.92); }
.dm-add-btn:not(:disabled):active { transform: scale(0.94); }
.dm-join-btn:not(:disabled):active { transform: scale(0.95); }
.af-add:not(:disabled):active { transform: scale(0.9); }

/* 减弱动效偏好：只保留透明度过渡，去掉位移与缩放 */
@media (prefers-reduced-motion: reduce) {
    button:not(:disabled):active,
    .icon-btn:not(:disabled):active,
    .rail-btn:not(:disabled):active,
    .btn-grad:not(:disabled):active,
    .dm-item:active,
    .vm-card:active,
    .vc-item:active { transform: none; }
}

/* ============ .37/.41 角落渐变光斑已移除（.46 用户反馈"右下角的渐变色都去掉，恢复全黑/全白"）============
   原：右下角一团粉→紫→蓝柔光（--corner-glow 变量 + .win::after + cornerBreathe 呼吸），
   更新前闸/邀请页也各有一份 ::before。现全部删除，三主题背景回归纯净黑白。 */

/* ============ .38/.41 邀请条：常驻频道内的窄条，半透明融入背景 ============ */
.invite-card {
    display: flex; align-items: center; gap: 10px;
    margin: 0 22px 6px; padding: 6px 10px 6px 8px;
    background: rgba(var(--acc), 0.06);
    border: 1px solid rgba(var(--acc), 0.12);
    border-radius: 10px;
    animation: viewIn 0.3s cubic-bezier(0.22, 0.9, 0.32, 1) both;
}
.invite-card-icon {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--acc), 0.14); color: var(--text);
}
.invite-card-icon svg { width: 14px; height: 14px; }
.invite-card-body { flex: 1; min-width: 0; }
.invite-card-title { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-card-sub { font-size: 11px; color: var(--text-dim, var(--text)); opacity: 0.55; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-card-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.invite-card-actions .icon-btn { width: 28px; height: 28px; }
.invite-card-actions .icon-btn svg { width: 15px; height: 15px; }
.invite-copy-btn {
    padding: 5px 11px; border-radius: 7px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px;
    background: rgba(var(--acc), 0.16); color: var(--text);
    border: 1px solid rgba(var(--acc), 0.22);
    transition: transform 0.1s ease, background 0.15s;
}
.invite-copy-btn:not(:disabled):active { transform: scale(0.94); }
.invite-copy-btn.copied { background: rgba(var(--acc), 0.28); }
@media (prefers-reduced-motion: reduce) {
    .invite-card { animation: none; }
}

/* ============ .40/.41 启动更新前闸：居中悬浮小长方形 ============
   只在 Electron 桌面端出现（main.js 查完更新才发 IPC；网页版永远 hidden）。
   .41 起从全屏大界面改为轻遮罩 + 一张窄卡：不抢戏，但状态和真进度条一目了然。
   进度条是真的：width 直接绑定 download-progress 的真实字节百分比。 */
.update-gate {
    position: fixed;
    inset: 0;
    z-index: 999;
    /* .43：整屏更新页（不再是主界面上的浮层）：不透明底，更新期间主界面完全不露，
       更新放行后淡出、主界面才出现 */
    background: var(--stage-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 放行时的退场：淡出，露出底下的登录/主界面 */
    transition: opacity 0.35s ease, visibility 0.35s;
}
.update-gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* .46：原角落渐变光 ::before 已删（用户"渐变色都去掉"），前闸回归纯净 --stage-bg */
.ug-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    /* .43：放大成横版大长方形（logo 左 + 状态/进度右），但明显小于主界面窗口 */
    width: 640px;
    padding: 28px 32px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    animation: ugIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ugIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.ug-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    position: relative;
    background: var(--mono-fill);
    -webkit-mask: url('assets/logo-full.png') center / contain no-repeat;
    mask: url('assets/logo-full.png') center / contain no-repeat;
    -webkit-mask-size: 132%;
    mask-size: 132%;
    filter: drop-shadow(0 4px 14px rgba(var(--acc), 0.35));
}
.ug-body { flex: 1; min-width: 0; }
.ug-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ug-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.ug-sub {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 14px;
}
/* 真进度条：轨道 + 填充（填充宽度由 JS 按真实字节百分比设置） */
.ug-track {
    width: 100%;
    height: 6px;
    margin-top: 14px;
    border-radius: 99px;
    background: var(--panel-hover);
    overflow: hidden;
}
.ug-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--grad);
    box-shadow: 0 0 12px rgba(var(--acc), 0.45);
    transition: width 0.25s linear;
}
.ug-meta {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: 9px;
    min-height: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ug-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.ug-btn {
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--grad);
    color: var(--on-grad);
    transition: transform 0.1s ease, filter 0.15s;
}
.ug-btn:not(:disabled):active { transform: scale(0.95); }
.ug-btn-ghost {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
}
@media (prefers-reduced-motion: reduce) {
    .update-gate { transition: none; }
    .ug-card { animation: none; }
    .ug-fill { transition: none; }
}

/* ============ .44 邀请落地页：整屏不透明 + 横版卡（KOOK 式接受/拒绝） ============
   ?invite=码 打开时盖在登录/主界面上；接受 → 加入频道；拒绝 → 清参数进正常界面。
   卡片视觉与更新前闸同族（不透明满屏底 + 横版卡），但尺寸收小、不抢主界面。 */
.invite-land {
    position: fixed;
    inset: 0;
    z-index: 960;   /* 低于更新前闸 999：客户端更新检查仍最优先 */
    background: var(--stage-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.invite-land.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* .46：原角落渐变光 ::before 已删（用户"渐变色都去掉"），邀请页回归纯净 --stage-bg */
.il-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    width: 560px;
    max-width: calc(100vw - 48px);
    padding: 28px 32px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    animation: ugIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.il-logo {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    position: relative;
    background: var(--mono-fill);
    -webkit-mask: url('assets/logo-full.png') center / contain no-repeat;
    mask: url('assets/logo-full.png') center / contain no-repeat;
    -webkit-mask-size: 132%;
    mask-size: 132%;
    filter: drop-shadow(0 4px 14px rgba(var(--acc), 0.35));
}
.il-body { flex: 1; min-width: 0; }
.il-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.il-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: var(--text);
    transition: opacity 0.2s;
}
.il-sub {
    font-size: 12.5px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 15px;
}
.il-meta {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 10px;
    min-height: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.il-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.il-btn {
    padding: 9px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    background: var(--grad);
    color: var(--on-grad);
    transition: transform 0.1s ease, filter 0.15s;
}
.il-btn:not(:disabled):active { transform: scale(0.95); }
.il-btn:disabled { opacity: 0.55; pointer-events: none; }
.il-btn-ghost {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
}
.il-login {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-3);
}
.il-login button {
    color: var(--acc-2, var(--text));
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.il-login button:hover { filter: brightness(1.2); }
@media (prefers-reduced-motion: reduce) {
    .invite-land { transition: none; }
    .il-card { animation: none; }
}

/* ============================================================
   .72 发现（招募组队大厅）— 布局参考 Oopz
   背景：主流游戏有色大海报 → 磨砂玻璃（上强下隐）→ 中下部纯色
   ============================================================ */
.rail-discover {
    background: none;
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--rail-ring);
}
.rail-discover:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--text), 0 6px 20px var(--rail-glow); }
.rail-discover.active { background: var(--grad); color: var(--on-grad); box-shadow: 0 0 0 2px var(--pink), 0 6px 22px var(--rail-glow); }
.rail-discover.active svg { fill: currentColor; }

.main-discover { position: relative; overflow: hidden; background: var(--bg); }

.disc-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
}
/* .74：发现页封面流——登录墙同款封面（全彩），横向流动。
   .94：两行满屏（原来只有顶部一行半屏）：上行左移、下行反向右移；
   封面 blur(2px)——还认得出是啥游戏，但不抢前景内容 */
.disc-coverflow {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 14px;
    overflow: hidden;
}
.disc-coverflow-row {
    display: flex; align-items: stretch; gap: 20px;
    flex: 1; height: 50%; width: max-content;
    animation: discCoverSlide 75s linear infinite;
    will-change: transform;
}
/* 下行反方向：同一 keyframes 倒放，从 -50% 滑回 0，无缝循环照样成立 */
.disc-coverflow-row-b { animation-direction: reverse; }
.disc-coverflow-row img {
    height: 100%; width: auto; flex: none;
    border-radius: 16px;
    object-fit: cover;
    /* 微模糊 + 放大 3%：遮掉 blur 的柔边，封面颜色不变 */
    filter: blur(2px) saturate(1.12);
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    user-select: none; -webkit-user-drag: none;
}
/* 两份拷贝无缝循环：平移一半 + 补齐跨拷贝的那一个 gap */
@keyframes discCoverSlide {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 10px)); }
}
/* 磨砂玻璃：顶部轻 frost → 中段压暗 → 底部沉进纯色底（白主题反向）。
   .94 起满屏封面，去掉原来的底部 mask（否则列表区盖在生封面上） */
.disc-glass {
    position: absolute; inset: 0;
    pointer-events: none;
    backdrop-filter: blur(3px) saturate(1.35);
    -webkit-backdrop-filter: blur(3px) saturate(1.35);
    background: linear-gradient(180deg, rgba(20, 21, 24, .10) 0%, rgba(20, 21, 24, .58) 44%, var(--bg) 82%);
}
body.theme-light .disc-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .52) 44%, var(--bg-deep) 78%);
}

/* 头部：标题 + 游戏选择器 */
.disc-head {
    position: relative; z-index: 2;
    padding: 18px 24px 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.disc-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.disc-title { font-size: 21px; font-weight: 750; letter-spacing: .02em; }
.disc-sub { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.disc-sub::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(var(--green-rgb), .45); vertical-align: 1px; }
.disc-room-search { margin-left: auto; display: flex; align-items: center; gap: 7px; width: 210px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-deep); color: var(--text-3); }
.disc-room-search:focus-within { border-color: var(--text-3); }
.disc-room-search svg { width: 15px; height: 15px; flex: none; }
.disc-room-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 12px; }
.disc-room-search input::placeholder { color: var(--text-3); }
.disc-games { display: flex; gap: 6px; flex-wrap: wrap; }
.disc-chip {
    height: 28px; padding: 0 12px;
    border-radius: 999px;
    /* .95：默认实色 pill——dark=黑底白字 / light=白底深字。原来用 var(--panel)
       （4.5% 白透明度）+ --text-2 暗字，.94 满屏封面流背景下整排几乎隐形 */
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
    transition: all .16s;
    white-space: nowrap;
}
.disc-chip:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.disc-chip.on {
    background: var(--grad); color: var(--on-grad);
    border-color: transparent;
    box-shadow: 0 4px 18px var(--rail-glow);
}
.disc-chip-other { border-style: dashed; }

/* “其他游戏”搜索 */
.disc-other {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 12px;
    display: flex; flex-direction: column; gap: 10px;
}
.disc-other-search { display: flex; align-items: center; gap: 9px; }
.disc-other-search .dm-search-icon { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.disc-other-input {
    flex: 1; height: 34px;
    background: none; border: none; outline: none;
    color: var(--text); font-size: 13.5px;
}
.disc-other-input::placeholder { color: var(--text-3); }
.disc-other-results {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px;
    max-height: 208px; overflow-y: auto;
}
.disc-other-hint { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); padding: 4px 2px; }
.disc-other-item {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 9px; border-radius: var(--r-sm);
    text-align: left; color: var(--text-2); font-size: 13px;
    transition: background .15s, color .15s;
}
.disc-other-item:hover { background: var(--panel-hover); color: var(--text); }
.disc-other-item i { width: 22px; height: 22px; border-radius: 6px; flex: none; }

/* 卡片区：大方块，一个房间一张卡 */
.disc-scroll {
    position: relative; z-index: 2;
    flex: 1; overflow-y: auto;
    padding: 4px 24px 24px;
}
.disc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 12px;
}
.disc-card {
    position: relative;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    text-align: left;
    display: flex; flex-direction: column;
    min-height: 164px;
    transition: transform .18s cubic-bezier(.22, .8, .28, 1), box-shadow .22s, border-color .22s;
    animation: discCardIn .4s cubic-bezier(.22, .8, .28, 1) both;
}
@keyframes discCardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.disc-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}
.disc-card:active { transform: translateY(-1px) scale(.99); }
/* .96：招募卡片进一步与背景分层——更高不透明 + 强边框 + 常驻沉影 */
.disc-card {
    background: rgba(43, 45, 49, 0.96);
    border-color: var(--line-strong);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
body.theme-light .disc-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.disc-card.full { opacity: .82; }
.disc-card-top {
    position: relative;
    height: 62px;
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 9px 11px;
}
/* .77：卡片顶条用官方封面（cover 裁切 + 玻璃渐层，底部沉黑保文字可读） */
.disc-card-top.has-cover { background-size: cover; background-position: center 28%; }
.disc-card-shade {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(5,5,6,.08) 0%, rgba(5,5,6,.26) 46%, rgba(5,5,6,.68) 100%);
    pointer-events: none;
}
.disc-other-item i.has-cover { background-size: cover; background-position: center 30%; }
.disc-card-game {
    font-size: 15px; font-weight: 800; letter-spacing: .03em;
    color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.disc-card-mine {
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    color: #fff; background: rgba(0, 0, 0, .34);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 2px 8px; border-radius: 999px;
}
/* .79：服务器公共大厅「官方」标（实心白 pill，和半透明"我的"区分） */
.disc-card-official {
    font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
    color: var(--bg-deep); background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .92);
    padding: 2px 8px; border-radius: 999px;
}
.disc-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 11px; }
.disc-card-ch { font-size: 13.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-card-room { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-card-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.disc-card-count { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.disc-card-open { font-size: 11px; color: var(--text-3); letter-spacing: .05em; }
.disc-card-full {
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    color: var(--text-2); background: var(--panel-hover);
    padding: 2px 8px; border-radius: 999px;
}
.disc-card-go {
    margin-top: 7px;
    height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: var(--on-grad);
    font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.disc-card.full .disc-card-go { background: var(--panel-hover); color: var(--text-2); }
/* 骨架卡：静态磨砂块，不做无限滑动（加载态不再有“传输带”观感） */
.disc-card-skel { min-height: 164px; background: var(--panel); animation: none; }
.disc-card-skel::after {
    content: ''; display: block; height: 100%; opacity: .45;
    background: linear-gradient(100deg, transparent 30%, var(--panel-hover) 50%, transparent 70%);
}

/* 空态：亲切提示 */
.disc-empty { padding: 46px 20px; text-align: center; }
.disc-empty-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.disc-empty-sub { margin-top: 10px; font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* ============ .72 招募组队卡（频道视图，邀请条下方） ============ */
.recruit-card {
    margin: 0 22px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card-bg);
    padding: 13px 15px;
    display: flex; flex-direction: column; gap: 9px;
}
.recruit-head { display: flex; align-items: center; gap: 9px; }
.recruit-compass { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.recruit-title { font-size: 13px; font-weight: 700; letter-spacing: .05em; color: var(--text); }
.recruit-state { font-size: 11.5px; color: var(--text-3); letter-spacing: .04em; }
.recruit-state.on { color: var(--text); font-weight: 700; }
.recruit-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.recruit-hint { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.recruit-game {
    height: 24px; padding: 0 12px;
    border-radius: 999px;
    display: inline-flex; align-items: center;
    font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .03em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
/* .77：胶囊用官方封面 + 内阴影沉色，白字可读 */
.recruit-game.has-cover {
    background-size: cover; background-position: center 30%;
    box-shadow: inset 0 0 0 100px rgba(5, 5, 6, .42);
}
.recruit-room { font-size: 12.5px; color: var(--text-2); }
.recruit-actions { display: flex; gap: 9px; }
.recruit-btn {
    height: 32px; padding: 0 16px;
    border-radius: var(--r-sm);
    background: var(--grad); color: var(--on-grad);
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
    transition: transform .16s, box-shadow .2s, opacity .2s;
}
.recruit-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px var(--rail-glow); }
.recruit-btn:active { transform: scale(.97); }
.recruit-btn-ghost { background: var(--panel); color: var(--text-2); border: 1px solid var(--line); }
.recruit-btn-ghost:hover { color: var(--text); border-color: var(--line-strong); box-shadow: none; }

/* ============ .72 发布招募弹窗 ============ */
.modal-recruit { width: 520px; max-width: calc(100vw - 40px); }
.rm-hint { font-size: 12px; color: var(--text-3); line-height: 1.7; margin: -4px 0 6px; }
.rm-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); margin: 10px 0 8px; }
.rm-games { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-chip {
    height: 30px; padding: 0 13px;
    border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line);
    color: var(--text-2); font-size: 12px; letter-spacing: .03em;
    transition: all .15s; white-space: nowrap;
}
.rm-chip:hover { color: var(--text); border-color: var(--line-strong); }
.rm-chip.on { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.rm-other { margin-top: 10px; }
.rm-search {
    display: flex; align-items: center; gap: 9px;
    height: 38px; padding: 0 12px;
    border-radius: var(--r-sm);
    background: var(--field-bg);
    border: 1px solid var(--line);
}
.rm-search .dm-search-icon { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.rm-search-input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 13px; }
.rm-search-input::placeholder { color: var(--text-3); }
.rm-results {
    margin-top: 8px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 5px;
    max-height: 190px; overflow-y: auto;
}
.rm-none { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); padding: 6px 2px; }
.rm-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: var(--r-sm);
    text-align: left; color: var(--text-2); font-size: 12.5px;
    transition: background .15s, color .15s;
}
.rm-item:hover { background: var(--panel-hover); color: var(--text); }
.rm-item i { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.rm-rooms { display: flex; flex-direction: column; gap: 6px; }
.rm-room {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-2); font-size: 13px;
    transition: all .15s; text-align: left;
}
.rm-room:hover { border-color: var(--line-strong); color: var(--text); }
.rm-room i {
    width: 15px; height: 15px; border-radius: 999px;
    border: 1.5px solid var(--text-3); flex: none;
}
.rm-room.on { border-color: var(--text); color: var(--text); }
.rm-room.on i { border-color: var(--text); background: var(--text); box-shadow: inset 0 0 0 2.5px var(--panel-solid); }
.rm-room em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* .109：发现页左侧功能栏 + CS2 名片市场 */
.main-discover { --disc-side-w: 164px; display: flex; flex-direction: column; }
.disc-head { position: relative; z-index: 3; flex: none; margin-left: var(--disc-side-w); }
.disc-work { flex: 1; min-height: 0; display: flex; }
.disc-side {
    position: absolute; top: 0; bottom: 0; left: 0; z-index: 6;
    width: var(--disc-side-w); padding: 18px 10px 14px;
    display: flex; flex-direction: column; gap: 7px;
    border-right: 1px solid var(--line);
    background: #25262A;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.theme-light .disc-side { background: #f1f1f3; }
.disc-side-label { padding: 0 10px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .13em; color: var(--text-3); text-transform: uppercase; }
.disc-side-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: 1px solid transparent; border-radius: 8px;
    color: var(--text-2); background: transparent; font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.disc-side-item svg { width: 18px; height: 18px; flex: none; }
.disc-side-item > span { flex: 0 0 auto; white-space: nowrap; }
.disc-side-label { white-space: nowrap; }
.disc-side-item:hover { color: var(--text); background: var(--panel-hover); }
.disc-side-item.active { color: var(--text); background: rgba(var(--acc), 0.12); border-color: rgba(var(--acc), 0.35); box-shadow: inset 3px 0 0 var(--pink), 0 8px 22px rgba(0, 0, 0, .18); }
.disc-side-new { flex: none; margin-left: auto; font-size: 9px; font-style: normal; letter-spacing: .04em; padding: 2px 5px; border-radius: 4px; color: #F5B83D; background: rgba(245, 184, 61, .13); border: 1px solid rgba(245, 184, 61, .25); }
.disc-side-note { margin-top: auto; display: flex; align-items: center; gap: 7px; padding: 12px 9px 2px; font-size: 10.5px; color: var(--text-3); }
.disc-side-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(var(--green-rgb), .6); flex: none; }
.disc-content { position: relative; z-index: 2; flex: 1; min-width: 0; min-height: 0; display: flex; margin-left: var(--disc-side-w); }
.disc-recruit { flex: 1; min-width: 0; display: flex; }
.disc-market { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 24px 28px; }
.market-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.market-title-block h3 { margin: 0; font-size: 20px; letter-spacing: .02em; color: var(--text); }
.market-title-block p { margin: 5px 0 0; font-size: 12px; color: var(--text-2); }
.market-filters { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }
.market-search, .market-select, .field-wrap select, .field-wrap input {
    color: var(--text); background: var(--panel-solid); border: 1px solid var(--line-strong);
    border-radius: 9px; outline: none; font: inherit;
}
.market-search { flex: 1; min-width: 180px; padding: 10px 12px; font-size: 12.5px; }
.market-search::placeholder, .field-wrap input::placeholder { color: var(--text-3); }
.market-search:focus, .market-select:focus, .field-wrap select:focus, .field-wrap input:focus { border-color: var(--text-3); }
.market-select { padding: 9px 30px 9px 11px; font-size: 12px; cursor: pointer; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gc-card {
    position: relative; border: 1px solid var(--line-strong); border-radius: 15px;
    background: rgba(43, 45, 49, .96); box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    padding: 13px; display: flex; flex-direction: column; gap: 10px;
    transition: transform .18s, border-color .18s;
}
body.theme-light .gc-card { background: rgba(255, 255, 255, .9); }
.gc-card:hover { transform: translateY(-2px); border-color: var(--text-3); }
.gc-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gc-card-id { min-width: 0; flex: 1; }
.gc-card-name { font-size: 14.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-card-tag { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.gc-self { font-size: 9px; font-weight: 800; color: var(--text-2); border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 99px; }
.gc-rank-line { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
.gc-rank-icon {
    width: 56px; height: 56px; flex: none; object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
/* 5E 官方 2026 徽章使用 520×520 透明画布，需放大到可见尺寸与完美徽章对齐 */
.gc-rank-icon-fivee { width: 80px; height: 80px; }
.gc-rank-badge {
    width: 48px; height: 52px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    clip-path: polygon(50% 0, 94% 20%, 88% 76%, 50% 100%, 12% 76%, 6% 20%);
    background: linear-gradient(155deg, var(--rank-a, #9aa4b2), var(--rank-b, #46505e));
    color: #fff; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
.gc-rank-badge b { font-size: 16px; line-height: 1; font-weight: 900; }
.gc-rank-badge small { font-size: 7px; letter-spacing: .08em; opacity: .85; }
.gc-rank-name { font-size: 16px; font-weight: 900; color: var(--text); }
.gc-rank-platform { margin-top: 3px; font-size: 11px; color: var(--text-2); }
.gc-rating { margin-left: auto; text-align: right; }
.gc-rating b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.gc-rating small { font-size: 9px; color: var(--text-3); }
.gc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gc-tag { font-size: 10.5px; color: var(--text-2); padding: 4px 8px; border-radius: 6px; background: var(--panel-hover); border: 1px solid var(--line); }
.gc-note { min-height: 34px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.gc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.gc-source { font-size: 9.5px; color: var(--text-3); }
.gc-dm-btn { padding: 7px 13px; font-size: 11.5px; }
.gc-edit-btn { padding: 7px 13px; font-size: 11.5px; }
.gc-preview { margin: 0 0 18px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.gc-preview .gc-rank-line { background: var(--panel-solid); }
.gc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gc-action-spacer { flex: 1; }
.modal-game-card {
    width: 480px; max-height: calc(100% - 36px); overflow-y: auto;
    display: flex; flex-direction: column; gap: 16px;
    box-sizing: border-box;
}
.modal-game-card .modal-desc { margin: -4px 0 0; }
.modal-game-card .gc-preview { margin: 0; }
.modal-game-card .modal-actions { margin-top: 4px; flex-wrap: wrap; }
.modal-game-card .field { min-width: 0; }
.modal-game-card .field-wrap { min-height: 44px; box-sizing: border-box; }
.modal-game-card .field-wrap input,
.modal-game-card .field-wrap select {
    width: 100%; height: 42px; min-height: 42px; margin: 0;
    padding: 0 12px; border: 0; border-radius: 0; background: transparent;
    color: var(--text); font: inherit; font-size: 13px; line-height: 20px;
    outline: none; box-sizing: border-box;
}
.modal-game-card .field-wrap select { cursor: pointer; }
.modal-game-card .field-wrap input::placeholder { color: var(--text-3); }
.field-wrap select { width: 100%; padding: 11px 12px; font-size: 13px; }

/* .121 Aurora 自绘下拉：与原生 select 值/change 完全兼容，不弹 Apple/Windows 系统菜单 */
.au-select-shell { position: relative; min-width: 0; }
.market-filters > .au-select-shell { flex: 0 0 auto; }
.au-select-shell .au-select-native {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
    white-space: nowrap !important; border: 0 !important; opacity: 0 !important;
    pointer-events: none !important;
}
.au-select-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    width: 100%; color: var(--text); background: var(--panel-solid);
    border: 1px solid var(--line-strong); border-radius: 9px;
    padding: 9px 11px; font: inherit; font-size: 12px; line-height: 18px;
    cursor: pointer; user-select: none; transition: border-color .16s, background .16s;
}
.au-select-trigger:hover, .au-select-trigger.open { border-color: var(--text-3); background: var(--panel-hover); }
.au-select-trigger:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.au-select-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.au-select-trigger svg { width: 15px; height: 15px; flex: none; opacity: .65; transition: transform .16s; }
.au-select-trigger.open svg { transform: rotate(180deg); }
.au-select-menu {
    position: fixed; z-index: 2000; min-width: 150px; max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px); overflow-y: auto; padding: 5px;
    background: var(--panel-solid); border: 1px solid var(--line-strong);
    border-radius: 11px; box-shadow: 0 14px 40px rgba(0, 0, 0, .42);
    animation: auSelectIn .14s ease-out;
}
@keyframes auSelectIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.au-select-option {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 7px; background: transparent;
    color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left;
    cursor: pointer; white-space: nowrap;
}
.au-select-option:hover, .au-select-option:focus-visible { background: var(--panel-hover); color: var(--text); outline: none; }
.au-select-option.selected { color: var(--text); font-weight: 700; background: var(--panel-hover); }
.au-select-option.selected::before { content: ''; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--pink); }
.modal-game-card .field-wrap > .au-select-shell { flex: 1; }
.modal-game-card .au-select-trigger {
    height: 42px; padding: 0 12px; border: 0; border-radius: 0;
    background: transparent; font-size: 13px;
}
.modal-game-card .au-select-trigger:hover, .modal-game-card .au-select-trigger.open { background: var(--panel-hover); }
.modal-game-card .au-select-trigger:focus-visible { outline-offset: -3px; border-radius: 6px; }
body.theme-light .au-select-menu { box-shadow: 0 14px 40px rgba(0, 0, 0, .16); }
@media (prefers-reduced-motion: reduce) { .au-select-menu { animation: none; } }

@media (max-width: 900px) {
    .main-discover { --disc-side-w: 164px; }
    .disc-side { padding: 18px 8px 14px; }
    .disc-side-item { padding: 10px 9px; gap: 8px; font-size: 12px; }
    .disc-market { padding: 18px; }
}
@media (max-width: 720px) {
    .main-discover { --disc-side-w: 54px; }
    .disc-side { padding: 16px 6px 12px; align-items: center; }
    .disc-side-label, .disc-side-item span, .disc-side-new, .disc-side-note { display: none; }
    .disc-side-item { justify-content: center; padding: 11px 0; }
    .disc-side-item svg { width: 20px; height: 20px; }
    .market-tools { align-items: flex-start; }
    .market-title-block p { display: none; }
    .market-grid { grid-template-columns: 1fr; }
    .gc-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .disc-head { padding: 14px 14px 8px; }
    .disc-title-row { gap: 8px; }
    .disc-room-search { width: 100%; margin-left: 0; }
    .disc-scroll { padding: 4px 14px 20px; }
    .disc-cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .disc-coverflow { height: 100%; }
    .recruit-card { margin: 0 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .disc-card { animation: none; }
    .disc-coverflow-row { animation: none; }
}
