/* ========================================================================
   CS Auction · 深空塔罗主题 v3.10（生产版 · 宇宙卡牌化 + 星仪微饰 + 主题纹饰 + 双logo品牌簇 + 主播视觉）
   ------------------------------------------------------------------------
   三层令牌：Seed → Derived → Component。
   切换 Appearance 只需替换 :root 的 --seed-*。
   视觉基调：深空宇宙底（starfield.js canvas 星场：星点/银河/星云/流星/
   视差）+ 半透紫银面板 + 银白金属标题 + 六边形宝石档徽；选手池升级为
   塔罗小卡（肖像卡面 + 宝石档徽 + 待机流光 + 悬停浮起），hero 当前选手
   为全息大卡肖像。语义色：曜紫 = 进行中/当前/我方，玫瑰红 = 暗拍/秒杀，
   一档金 = 成交/资金（金箔扫光仅保留给金额数字）；五档宝石色
   （金/紫/蓝/翠/玫）挂载于 .level-* 令牌。
   旧令牌名（--bg/--panel/--line/--gold-2 等）保留为别名，app.js 内联
   引用 var(--gold-2) 等仍然有效，无需改动渲染逻辑。
   大厅以1600×900为安全尺寸等比缩放组件，画布随窗口展开铺满，后台按容器宽度响应。
   ======================================================================== */

/* ---------- Layer 1 · Seed tokens ---------- */
:root {
  --seed-bg: #050210;
  --seed-surface: #140b2e;
  --seed-fg: #e6e4f5;
  --seed-primary: #a98bff;   /* 曜紫 = 进行中 / 当前 / 我方 */
  --seed-accent: #f87171;    /* 玫瑰红 = 暗拍 / 秒杀 */
  --seed-gold: #f8d488;      /* 一档金 = 成交 / 获胜 / 资金 */
  --seed-radius: 10px;
  --seed-density: 1;

  /* 混色端点 */
  --mix-white: #ffffff;
  --mix-black: #000000;
  --stage-deep: #060213;

  /* 等级渐变配对色（宝石深色端：金/紫/蓝/翠/玫） */
  --level-S-pair: #b8862f;
  --level-A-pair: #7c3aed;
  --level-B-pair: #2563eb;
  --level-C-pair: #059669;
  --level-D-pair: #e11d48;

  /* 按钮深色端点 */
  --btn-gold-deep: #b8862f;
  --btn-magenta-deep: #dc2626;
  --btn-deal-ink: #201204;

  /* 直播平台品牌色 */
  --platform-douyu: #ff8a3d;
  --platform-huya: #ffb800;
  --platform-douyin: #ff2e88;
  --platform-bili: #00e5ff;

  --text-inverse: #ffffff;

  --font-display: "Didot", "Palatino Linotype", Palatino, Georgia, "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Inter", "PingFang SC", "Source Han Sans CN", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;

  --motion-fast: 140ms cubic-bezier(.2,.7,.3,1);
  --motion-base: 240ms cubic-bezier(.2,.7,.3,1);
}

/* ---------- Layer 2 · Derived tokens ---------- */
:root {
  --surface-0: var(--seed-bg);
  --surface-1: color-mix(in oklab, var(--seed-surface) 90%, var(--mix-white) 4%);
  --surface-2: color-mix(in oklab, var(--seed-surface) 74%, var(--mix-white) 9%);
  --surface-3: color-mix(in oklab, var(--seed-surface) 58%, var(--mix-black) 26%);
  --surface-inset: color-mix(in oklab, var(--seed-bg) 74%, var(--mix-black) 26%);

  --border-soft: rgba(160, 130, 255, 0.10);
  --border-base: rgba(160, 130, 255, 0.16);
  --border-strong: rgba(160, 130, 255, 0.30);
  --border-brass: color-mix(in oklab, var(--seed-primary) 26%, transparent);
  --foil-line: color-mix(in oklab, var(--seed-gold) 62%, transparent);
  /* 绒布颗粒贴图（SVG 分形噪点，低 alpha） */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  /* 徽章环纹饰：三重同心曜紫环 */
  --medallion: radial-gradient(circle at 80% 38%,
    transparent 0 54px,
    color-mix(in oklab, var(--seed-primary) 26%, transparent) 54px 55.5px,
    transparent 55.5px 70px,
    color-mix(in oklab, var(--seed-primary) 18%, transparent) 70px 71.5px,
    transparent 71.5px 88px,
    color-mix(in oklab, var(--seed-primary) 12%, transparent) 88px 89.5px,
    transparent 89.5px);
  /* 银白金属字渐变五段（标题 / 品牌字） */
  --chrome-1: #f6f6ff;
  --chrome-2: #c9cce8;
  --chrome-3: #8f93b8;
  --chrome-4: #eceeff;
  --chrome-5: #a7abd0;
  /* 全息发丝线 */
  --holo-line: rgba(169, 139, 255, 0.35);
  /* 镭射角花箔线（紫银，替代旧金箔角花） */
  --holo-foil: rgba(196, 178, 255, 0.50);
  --border-neon-cyan: color-mix(in oklab, var(--seed-primary) 45%, transparent);
  --border-neon-magenta: color-mix(in oklab, var(--seed-accent) 45%, transparent);
  --border-neon-gold: color-mix(in oklab, var(--seed-gold) 45%, transparent);

  --text-primary: var(--seed-fg);
  --text-secondary: color-mix(in oklab, var(--seed-fg) 80%, transparent);
  --text-muted: color-mix(in oklab, var(--seed-fg) 60%, transparent);
  --text-disabled: color-mix(in oklab, var(--seed-fg) 32%, transparent);
  --text-on-neon: #0a0520;

  --neon-cyan: var(--seed-primary);
  --neon-cyan-soft: color-mix(in oklab, var(--seed-primary) 16%, transparent);
  --neon-cyan-glow: color-mix(in oklab, var(--seed-primary) 28%, transparent);
  --neon-magenta: var(--seed-accent);
  --neon-magenta-soft: color-mix(in oklab, var(--seed-accent) 16%, transparent);
  --neon-magenta-glow: color-mix(in oklab, var(--seed-accent) 30%, transparent);
  --neon-gold: var(--seed-gold);
  --neon-gold-soft: color-mix(in oklab, var(--seed-gold) 15%, transparent);
  --neon-gold-glow: color-mix(in oklab, var(--seed-gold) 26%, transparent);

  --success: #6ee7b7;
  --success-soft: color-mix(in oklab, #6ee7b7 14%, transparent);
  --warn: var(--seed-gold);
  --warn-soft: var(--neon-gold-soft);
  --danger: #ff6157;
  --danger-soft: color-mix(in oklab, #ff6157 15%, transparent);

  --level-S: #f8d488;
  --level-S-soft: color-mix(in oklab, #f8d488 18%, transparent);
  --level-A: #d8b4fe;
  --level-A-soft: color-mix(in oklab, #d8b4fe 16%, transparent);
  --level-B: #93c5fd;
  --level-B-soft: color-mix(in oklab, #93c5fd 16%, transparent);
  --level-C: #6ee7b7;
  --level-C-soft: color-mix(in oklab, #6ee7b7 16%, transparent);
  --level-D: #fda4af;
  --level-D-soft: color-mix(in oklab, #fda4af 16%, transparent);

  --shadow-card: 0 24px 50px -20px rgba(0,0,0,.92), 0 1px 0 0 rgba(255,255,255,.05) inset;
  --shadow-pop: 0 32px 80px -28px rgba(0,0,0,.95), 0 2px 0 0 rgba(255,255,255,.05) inset;
  --glow-cyan: 0 0 0 1px var(--border-neon-cyan), 0 0 18px -6px var(--neon-cyan-glow);
  --glow-magenta: 0 0 0 1px var(--border-neon-magenta), 0 0 18px -6px var(--neon-magenta-glow);
  --glow-gold: 0 0 0 1px var(--border-neon-gold), 0 0 20px -6px var(--neon-gold-glow);

  --radius-xs: calc(var(--seed-radius) * 0.33);
  --radius-sm: calc(var(--seed-radius) * 0.58);
  --radius-md: var(--seed-radius);
  --radius-lg: calc(var(--seed-radius) * 1.5);
  --radius-xl: calc(var(--seed-radius) * 2);
  --radius-pill: 999px;

  /* 间距尺度 · 由 --seed-density 驱动（1 = 标准，0.85 = 紧凑，1.2 = 舒展） */
  --space-1: calc(4px * var(--seed-density));
  --space-2: calc(8px * var(--seed-density));
  --space-3: calc(12px * var(--seed-density));
  --space-4: calc(16px * var(--seed-density));
  --space-5: calc(20px * var(--seed-density));
  --space-6: calc(24px * var(--seed-density));
  --space-8: calc(32px * var(--seed-density));
  --space-10: calc(40px * var(--seed-density));
}

/* ---------- Layer 2b · 旧令牌别名（向后兼容 app.js 内联引用） ---------- */
:root {
  --bg: var(--surface-0);
  --panel: var(--surface-1);
  --panel-2: var(--surface-2);
  --panel-3: var(--surface-inset);
  --line: var(--border-base);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --gold: var(--neon-gold);
  --gold-2: color-mix(in oklab, var(--seed-gold) 82%, var(--mix-white));
  --cyan: var(--neon-cyan);
  --green: var(--success);
  --red: var(--danger);
  --purple: var(--level-S);
  --shadow: var(--shadow-pop);
}

/* ---------- Layer 3 · Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
}
body {
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 深空星场：starfield.js canvas（星点/银河/星云/流星/指针视差） */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bgfx canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* 光柱摆幅（登录页锥光复用） */
@keyframes beam-sway {
  from { transform: rotate(-1.6deg); }
  to   { transform: rotate(1.8deg); }
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-cyan); outline-offset: 2px; border-radius: var(--radius-xs);
}
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklab, var(--seed-primary) 38%, transparent); color: var(--text-inverse); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in oklab, var(--seed-gold) 20%, transparent); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: color-mix(in oklab, var(--seed-gold) 32%, transparent); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.018em; }
h1 { margin-bottom: 4px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: 18px; margin-bottom: 4px; }
h3 { font-size: 14px; margin-bottom: 8px; font-weight: 700; }

/* 银白金属字：chrome 渐变裁切到文字（品牌字 / 页面主标题 / hero 标题） */
.login-card h1, .dashboard-head h1, .hero-top h2 {
  background: linear-gradient(180deg, var(--chrome-1) 0%, var(--chrome-2) 36%, var(--chrome-3) 52%, var(--chrome-4) 64%, var(--chrome-5) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.app-shell { min-height: 100vh; position: relative; z-index: 1; }
.eyebrow { color: var(--neon-cyan); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.subtle { color: var(--text-muted); }
.muted { color: var(--text-muted); }
.hint { color: var(--text-muted); font-size: 11px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ========================================================================
   Topbar
   ======================================================================== */
.topbar {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-base);
  background: color-mix(in oklab, var(--surface-0) 86%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  position: sticky; top: 0; z-index: 10;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan-glow), var(--neon-gold-glow), transparent);
  background-size: 200% 100%;
  opacity: .6; pointer-events: none;
  animation: topbar-shimmer 9s linear infinite;
}
@keyframes topbar-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logos {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 2px 4px;
  position: relative;
}
.brand-logos::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 230px; height: 64px;
  transform: translate(-50%, -50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--seed-primary) 24%, transparent), transparent 78%);
}
.brand-logos .lg {
  display: block; width: auto; opacity: .96;
  filter: brightness(1.12) saturate(1.06) drop-shadow(0 1px 4px rgb(0 0 0 / .45)) drop-shadow(0 0 9px color-mix(in oklab, var(--seed-primary) 38%, transparent));
}
/* 视觉等高校正（设计系统 header.html）：横排重墨取矮、堆叠轻墨取高 */
.brand-logos .lg-a { height: 26px; }
.brand-logos .lg-b { height: 40px; }
.brand-logos .bdiv { width: 1px; height: 22px; background: var(--holo-line); flex: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }

.role-chip, .status-chip, .stage-chip {
  padding: 5px 10px; border: 1px solid var(--border-base); border-radius: var(--radius-pill);
  color: var(--text-secondary); font-size: 11px; font-weight: 550; letter-spacing: .02em;
  background: var(--surface-2); white-space: nowrap;
}
.status-chip.live {
  color: var(--neon-cyan); border-color: color-mix(in oklab, var(--seed-primary) 35%, transparent);
  background: var(--neon-cyan-soft);
}
.admin-link {
  padding: 7px 11px; border: 1px solid var(--border-neon-gold); border-radius: var(--radius-sm);
  background: var(--neon-gold-soft); color: var(--neon-gold); font-size: 11px; font-weight: 600;
  transition: var(--motion-fast);
}
.admin-link:hover, .admin-link.active {
  border-color: var(--neon-gold); background: color-mix(in oklab, var(--seed-gold) 26%, transparent);
  color: color-mix(in oklab, var(--seed-gold) 70%, var(--mix-white));
  box-shadow: var(--glow-gold);
}

/* ========================================================================
   Buttons
   ======================================================================== */
.icon-button, .ghost-button {
  border: 1px solid var(--border-base); background: var(--surface-2); color: var(--text-secondary);
  border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-weight: 550;
  transition: transform var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast);
}
.icon-button:hover, .ghost-button:hover {
  color: var(--text-primary); border-color: var(--border-strong); background: var(--surface-1); transform: translateY(-1px);
}
.primary-button, .gold-button {
  border: 0; border-radius: var(--radius-sm); padding: 10px 15px;
  font-weight: 700; font-size: 13px; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--motion-fast), filter var(--motion-fast), box-shadow var(--motion-fast);
}
.primary-button::after, .gold-button::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.42) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .55s cubic-bezier(.2,.7,.3,1);
}
.primary-button:hover::after, .gold-button:hover::after { transform: translateX(130%); }
.primary-button {
  background: linear-gradient(135deg, color-mix(in oklab, var(--seed-primary) 90%, var(--mix-white)), color-mix(in oklab, var(--seed-primary) 66%, var(--mix-black)));
  color: var(--text-on-neon); box-shadow: var(--glow-cyan);
}
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--border-neon-cyan), 0 0 26px -6px var(--neon-cyan-glow); }
.gold-button {
  background: linear-gradient(135deg, color-mix(in oklab, var(--seed-gold) 92%, var(--mix-white)), color-mix(in oklab, var(--seed-gold) 62%, var(--btn-gold-deep)));
  color: var(--btn-deal-ink); box-shadow: var(--glow-gold);
}
.gold-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary-button:disabled, .gold-button:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.danger-button {
  border: 1px solid color-mix(in oklab, var(--danger) 38%, transparent); background: var(--danger-soft);
  color: var(--danger); border-radius: var(--radius-sm); padding: 9px 13px; font-weight: 600;
  transition: var(--motion-fast);
}
.danger-button:hover { background: color-mix(in oklab, var(--danger) 24%, transparent); color: var(--text-inverse); }
.logout-link { color: var(--text-muted); border: 0; background: transparent; padding: 7px 0; font-size: 12px; }
.logout-link:hover { color: var(--danger); }

/* ========================================================================
   Layout
   ======================================================================== */
.layout { max-width: 1500px; margin: 0 auto; padding: 18px 28px 34px; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-4); }

.stage-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 14px; }
.stage-step {
  padding: 9px 12px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  background: var(--surface-1); color: var(--text-muted); transition: var(--motion-base);
}
.stage-step strong { display: block; color: var(--text-secondary); font-size: 14px; font-family: var(--font-display); font-weight: 600; }
.stage-step small { display: block; margin-top: 3px; font-size: 11px; }
.stage-step.active {
  border-color: var(--border-neon-cyan);
  background: linear-gradient(135deg, var(--neon-cyan-soft), var(--surface-1) 70%);
  box-shadow: var(--glow-cyan);
}
.stage-step.active strong { color: var(--text-primary); }
.stage-step.done { border-color: color-mix(in oklab, var(--seed-gold) 34%, transparent); }
.stage-step.done strong { color: var(--neon-gold); }

.live-grid { display: grid; grid-template-columns: 430px minmax(0, 1fr) 360px; gap: 14px; align-items: stretch; height: auto; }
.left-rail { min-width: 0; min-height: 0; align-self: stretch; }
.center-stage { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-width: 0; min-height: 0; height: 100%; align-content: start; }

/* ========================================================================
   Card primitives
   ======================================================================== */
.card {
  border: 1px solid var(--border-base); border-radius: var(--radius-lg);
  background-image: var(--grain), linear-gradient(165deg, rgba(20, 10, 50, .66), rgba(10, 5, 26, .58));
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow-card); position: relative;
  outline: 1px solid color-mix(in oklab, var(--seed-primary) 12%, transparent);
  outline-offset: -6px;
}
.card-pad { padding: var(--space-5); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.section-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--holo-line) 18%, var(--holo-line) 82%, transparent);
}
.section-head::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 10px; margin-left: -4.5px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--seed-primary), #6a4bd8); pointer-events: none;
  filter: drop-shadow(0 0 4px color-mix(in oklab, var(--seed-primary) 55%, transparent));
}
.section-head h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); }

/* ========================================================================
   Hero card · 当前选手
   ======================================================================== */
.hero-card {
  display: flex; flex-direction: column; overflow: hidden; position: relative; height: auto; min-height: 0;
  background-image:
    var(--grain),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(165deg, rgba(20, 10, 50, .66), rgba(10, 5, 26, .58));
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    auto,
    26px 1.5px, 1.5px 26px, 26px 1.5px, 1.5px 26px,
    26px 1.5px, 1.5px 26px, 26px 1.5px, 1.5px 26px, auto;
  background-position:
    0 0,
    left 10px top 10px, left 10px top 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px, 0 0;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
.hero-card:before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    var(--medallion),
    radial-gradient(560px 220px at 80% 0%, color-mix(in oklab, var(--seed-primary) 12%, transparent), transparent 65%),
    radial-gradient(420px 200px at 10% 100%, color-mix(in oklab, var(--seed-primary) 7%, transparent), transparent 70%);
}
.hero-card > * { position: relative; z-index: 1; }
/* 模式变体：暗拍 = 朱砂印红语义，顺位免费选人 = 翡翠玉语义 */
.hero-card:after {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--seed-primary) 70%, transparent) 22%, color-mix(in oklab, var(--seed-primary) 70%, transparent) 78%, transparent);
  opacity: .5; pointer-events: none;
}
.sealed-card:after { background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--seed-accent) 78%, transparent) 18%, color-mix(in oklab, var(--seed-accent) 78%, transparent) 82%, transparent); opacity: .72; }
.sealed-card:before {
  background:
    var(--medallion),
    radial-gradient(560px 220px at 80% 0%, color-mix(in oklab, var(--seed-accent) 12%, transparent), transparent 65%),
    radial-gradient(420px 200px at 10% 100%, color-mix(in oklab, var(--seed-accent) 6%, transparent), transparent 70%);
}
.free-pick-card:after { background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--seed-primary) 82%, transparent) 18%, color-mix(in oklab, var(--seed-primary) 82%, transparent) 82%, transparent); opacity: .66; }
.free-pick-card:before {
  background:
    var(--medallion),
    radial-gradient(560px 220px at 80% 0%, color-mix(in oklab, var(--seed-primary) 12%, transparent), transparent 65%),
    radial-gradient(420px 200px at 10% 100%, color-mix(in oklab, var(--seed-gold) 6%, transparent), transparent 70%);
}
.hero-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 16px 20px 0; }
.hero-top h2 { font-size: 20px; font-family: var(--font-display); letter-spacing: -0.02em; }
.hero-top p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }

.countdown {
  min-width: 116px; padding: 10px 16px 12px; border-radius: var(--radius-md);
  background: radial-gradient(120% 90% at 50% 0%, var(--neon-cyan-soft), transparent 70%), var(--surface-inset);
  text-align: center; border: 1px solid var(--border-neon-cyan);
  box-shadow: var(--glow-cyan); overflow: hidden;
  position: relative;
  animation: count-breath 2.8s ease-in-out infinite;
}
.countdown::before {
  content: ""; position: absolute; inset: -30%; z-index: 0; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, color-mix(in oklab, var(--seed-primary) 30%, transparent) 0deg 14deg, transparent 14deg 30deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, var(--mix-black) 30%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, var(--mix-black) 30%, transparent 72%);
  animation: halo-spin 9s linear infinite;
}
@keyframes halo-spin { to { transform: rotate(360deg); } }
.countdown strong, .countdown small { position: relative; z-index: 1; }
@keyframes count-breath {
  0%, 100% { box-shadow: 0 0 0 1px var(--border-neon-cyan), 0 0 14px -6px var(--neon-cyan-glow); }
  50%      { box-shadow: 0 0 0 1px var(--border-neon-cyan), 0 0 30px -4px var(--neon-cyan-glow); }
}
.countdown strong {
  display: block; color: var(--neon-cyan); font-family: var(--font-mono);
  font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  letter-spacing: -0.02em; text-shadow: 0 0 24px color-mix(in oklab, var(--seed-primary) 20%, transparent);
}
.countdown small { color: var(--text-muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
/* 最后 10 秒：主持/队长可通过 .urgent 触发；默认用属性钩子 */
.countdown.urgent, .countdown[data-urgent="true"] {
  border-color: color-mix(in oklab, var(--danger) 55%, transparent);
  background: radial-gradient(120% 90% at 50% 0%, var(--danger-soft), transparent 70%), var(--surface-inset);
  animation: urgent-flash 1s ease-in-out infinite;
}
.countdown.urgent strong, .countdown[data-urgent="true"] strong { color: var(--danger); text-shadow: 0 0 28px color-mix(in oklab, var(--danger) 60%, transparent); }
@keyframes urgent-flash {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger) 35%, transparent), 0 0 24px -6px color-mix(in oklab, var(--danger) 40%, transparent); }
  50% { box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger) 70%, transparent), 0 0 44px -2px color-mix(in oklab, var(--danger) 65%, transparent); }
}

.player-stage { display: grid; grid-template-columns: 148px 1fr; gap: 18px; flex: none; min-height: 0; padding: 18px 20px 12px; align-items: center; overflow: visible; }
.player-avatar {
  width: 100%; aspect-ratio: 2 / 3; display: grid; place-items: center;
  border-radius: 12px; color: var(--text-on-neon);
  font-family: var(--font-display); font-size: 40px; font-weight: 800;
  background: linear-gradient(160deg, var(--level-S), color-mix(in oklab, var(--level-S) 50%, var(--level-S-pair)));
  box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px color-mix(in oklab, var(--level-S) 34%, transparent);
  overflow: hidden; position: relative;
  border: 1px solid var(--holo-line);
}
/* 卡顶彩条（跟随档位宝石色） */
.player-avatar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: linear-gradient(90deg, var(--level-S), var(--level-S-pair)); }
.player-avatar.level-A::before { background: linear-gradient(90deg, var(--level-A), var(--level-A-pair)); }
.player-avatar.level-B::before { background: linear-gradient(90deg, var(--level-B), var(--level-B-pair)); }
.player-avatar.level-C::before { background: linear-gradient(90deg, var(--level-C), var(--level-C-pair)); }
.player-avatar.level-D::before { background: linear-gradient(90deg, var(--level-D), var(--level-D-pair)); }
/* 全息扫光 + 底部暗纱（扫光层用 background-position 动画） */
.player-avatar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(115deg, transparent 42%, rgba(255,255,255,.15) 50%, transparent 58%),
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.34) 100%);
  background-size: 250% 100%, auto;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat, repeat;
  animation: holo-sweep 6.5s ease-in-out infinite;
}
@keyframes holo-sweep {
  0%, 55%   { background-position: 120% 0, 0 0; }
  90%, 100% { background-position: -120% 0, 0 0; }
}
.avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: relative; z-index: 1; }
.player-avatar.level-A { background: linear-gradient(135deg, var(--level-A), color-mix(in oklab, var(--level-A) 50%, var(--level-A-pair))); box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px color-mix(in oklab, var(--level-A) 34%, transparent); }
.player-avatar.level-B { background: linear-gradient(135deg, var(--level-B), color-mix(in oklab, var(--level-B) 50%, var(--level-B-pair))); box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px color-mix(in oklab, var(--level-B) 34%, transparent); }
.player-avatar.level-C { background: linear-gradient(135deg, var(--level-C), color-mix(in oklab, var(--level-C) 50%, var(--level-C-pair))); box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px color-mix(in oklab, var(--level-C) 34%, transparent); }
.player-avatar.level-D { background: linear-gradient(135deg, var(--level-D), color-mix(in oklab, var(--level-D) 50%, var(--level-D-pair))); box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px -18px color-mix(in oklab, var(--level-D) 34%, transparent); }

.player-copy .level-label { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 10px; color: var(--neon-gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.player-copy h2 { font-size: 30px; margin-bottom: 0; font-family: var(--font-display); letter-spacing: -0.025em; }
.player-copy .handle { color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); letter-spacing: .02em; margin-top: 3px; }
.player-copy .intro { max-width: 560px; margin: 10px 0 12px; color: var(--text-secondary); font-size: 12.5px; line-height: 1.6; }

.clue-box {
  max-width: 620px; margin-top: 10px; padding: 11px 13px;
  border: 1px solid var(--border-neon-gold); border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-gold-soft), transparent 70%), var(--surface-inset);
}
.clue-box span, .clue-box small { color: var(--neon-gold); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.clue-box p { margin: 5px 0 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.55; }
.clue-box small { color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }

.stats { display: flex; flex-wrap: wrap; gap: 6px; }
.stat {
  min-width: 74px; padding: 7px 9px; border: 1px solid var(--border-base);
  border-radius: var(--radius-sm); background: var(--surface-inset); position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--neon-cyan), transparent); opacity: .5; }
.stat b, .stat span { display: block; }
.stat b { color: var(--text-primary); font-family: var(--font-mono); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat span { color: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

.hero-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 20px; border-top: 1px solid var(--border-soft);
  background: color-mix(in oklab, var(--surface-inset) 70%, transparent);
}
.media-links { display: flex; gap: 8px; flex-wrap: wrap; }
.media-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border: 1px solid var(--border-base); border-radius: var(--radius-xs);
  background: var(--surface-2); color: var(--text-muted); font-size: 11px; transition: var(--motion-fast);
}
.media-link:hover { border-color: var(--border-neon-cyan); color: var(--neon-cyan); background: var(--neon-cyan-soft); }

/* ========================================================================
   A 档 · 顺位免费选人
   ======================================================================== */
.free-pick-progress {
  min-width: 100px; padding: 10px 14px; border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-md); background: radial-gradient(120% 90% at 50% 0%, var(--neon-cyan-soft), transparent 70%), var(--surface-inset);
  text-align: center; box-shadow: var(--glow-cyan);
}
.free-pick-progress strong, .free-pick-progress small { display: block; }
.free-pick-progress strong { color: var(--neon-cyan); font-family: var(--font-mono); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.free-pick-progress small { margin-top: 5px; color: var(--text-muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

.pick-order {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 12px 20px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  background: color-mix(in oklab, var(--surface-inset) 70%, transparent);
}
.pick-order-item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 7px; align-items: center;
  min-width: 0; padding: 6px 8px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  color: var(--text-muted); background: var(--surface-1); font-size: 11px;
}
.pick-order-item b {
  grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 5px; background: var(--surface-3); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}
.pick-order-item em { overflow: hidden; color: var(--text-muted); font-size: 9.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.pick-order-item.active { border-color: var(--neon-cyan); background: linear-gradient(135deg, var(--neon-cyan-soft), var(--surface-1)); box-shadow: var(--glow-cyan); color: var(--text-primary); }
.pick-order-item.active b { background: var(--neon-cyan); color: var(--text-on-neon); }
.pick-order-item.active em { color: var(--neon-cyan); }
.pick-order-item.done { border-color: color-mix(in oklab, var(--seed-gold) 34%, transparent); }
.pick-order-item.done b { background: var(--neon-gold-soft); color: var(--neon-gold); }

.pick-current { display: flex; align-items: center; gap: 14px; padding: 17px 20px; }
.pick-current-avatar {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-gold));
  color: var(--text-on-neon); font-family: var(--font-display); font-size: 16px; font-weight: 800;
  overflow: hidden; box-shadow: var(--glow-cyan);
}
.pick-current h2 { margin: 2px 0 3px; font-family: var(--font-display); }
.pick-current p { margin: 0; color: var(--text-muted); font-size: 11px; }

/* ========================================================================
   B 档 · 三轮暗拍
   ======================================================================== */
.sealed-player-line { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.sealed-player-line .player-avatar { width: 72px; border-radius: var(--radius-md); font-size: 24px; }
.sealed-player-line h2 { margin: 3px 0; font-family: var(--font-display); }
.sealed-player-line p { margin: 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.5; }

.sealed-rule-bar {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 20px;
  border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary); font-size: 11px;
  background: color-mix(in oklab, var(--neon-magenta-soft) 38%, transparent);
}
.sealed-rule-bar b { color: var(--neon-magenta); font-family: var(--font-mono); font-weight: 700; }

.sealed-results { padding: 12px 20px 0; min-height: 0; }
.sealed-results-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--text-muted); font-size: 10.5px; letter-spacing: .04em; }
.sealed-results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 8px; }
.sealed-result-row {
  display: flex; align-items: center; justify-content: space-between; min-width: 0;
  padding: 5px 8px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  background: var(--surface-inset); color: var(--text-secondary); font-size: 11px;
}
.sealed-result-row > span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sealed-result-row b { color: var(--text-primary); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sealed-result-row em { margin-left: 6px; color: var(--neon-magenta); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sealed-result-row.kill {
  border-color: var(--border-neon-magenta);
  background: linear-gradient(135deg, var(--neon-magenta-soft), var(--surface-inset));
  box-shadow: var(--glow-magenta); animation: kill-flash 1.4s ease-in-out infinite;
}
.sealed-result-row.kill b { color: var(--neon-magenta); }
@keyframes kill-flash {
  0%, 100% { box-shadow: 0 0 0 1px var(--border-neon-magenta), 0 0 18px -6px var(--neon-magenta-glow); }
  50% { box-shadow: 0 0 0 1px var(--neon-magenta), 0 0 32px -2px var(--neon-magenta-glow); }
}
.captain-avatar-mini {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px;
  background: var(--neon-cyan-soft); color: var(--neon-cyan);
  font-family: var(--font-display); font-size: 9px; font-style: normal; font-weight: 800; overflow: hidden;
  border: 1px solid var(--border-neon-cyan);
}

.waiting-card { display: grid; place-items: center; }
.waiting-card-inner { padding: 46px 24px; text-align: center; }
.waiting-card-inner h2 { margin: 10px 0 6px; font-size: 26px; font-family: var(--font-display); }
.waiting-card-inner p { margin: 0; color: var(--text-muted); font-size: 12.5px; }
.waiting-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 20px auto 0;
  border: 1px dashed var(--border-neon-cyan); border-radius: var(--radius-md);
  color: var(--neon-cyan); font-size: 26px; background: var(--neon-cyan-soft);
}

/* ========================================================================
   出价 / 资金面板
   ======================================================================== */
.bid-panel { position: static; min-height: 0; overflow: hidden; }
.balance { display: flex; align-items: end; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.balance strong { display: block; color: var(--neon-gold); font-family: var(--font-mono); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.balance small { color: var(--text-muted); }
.balance .team-mini { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--neon-gold-soft); color: var(--neon-gold); font-weight: 800; border: 1px solid var(--border-neon-gold); }

.bid-current {
  margin: 16px 0; padding: 14px 16px; border: 1px solid var(--border-neon-gold);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-gold-soft), transparent 65%), var(--surface-inset);
}
.bid-current small, .bid-current span { color: var(--text-muted); font-size: 11px; }
.bid-current small { letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.bid-current strong {
  display: block; margin-top: 4px; color: var(--text-primary);
  font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 28px color-mix(in oklab, var(--seed-gold) 14%, transparent);
}
.bid-current span { display: block; margin-top: 4px; }
.free-current { border-color: var(--border-neon-cyan); background: linear-gradient(135deg, var(--neon-cyan-soft), transparent 65%), var(--surface-inset); }
.free-current strong { color: var(--neon-cyan); text-shadow: 0 0 28px color-mix(in oklab, var(--seed-primary) 14%, transparent); }

.bid-input { display: flex; gap: 8px; }
.bid-input input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  padding: 10px 13px; background: var(--surface-inset); color: var(--text-primary);
  transition: var(--motion-fast);
}
.bid-input input { font-family: var(--font-mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bid-input input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.bid-input input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 0 3px var(--neon-cyan-soft); background: var(--surface-1);
}
.bid-input input::placeholder { color: var(--text-disabled); font-weight: 500; font-family: var(--font-body); font-size: 13px; }
.bid-input input:disabled { opacity: .5; cursor: not-allowed; }

.quick-bids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 9px 0 14px; }
.quick-bids button {
  padding: 8px 4px; border: 1px solid var(--border-base); border-radius: var(--radius-xs);
  background: var(--surface-inset); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; transition: var(--motion-fast);
}
.quick-bids button:hover:not(:disabled) { color: var(--neon-cyan); border-color: var(--border-neon-cyan); background: var(--neon-cyan-soft); transform: translateY(-1px); }
.quick-bids button:disabled { opacity: .4; cursor: not-allowed; }

.side-stack { display: grid; gap: 18px; }
.right-rail { display: grid; grid-template-rows: auto auto auto; gap: 12px; align-self: start; min-height: 0; overflow: visible; }

/* ========================================================================
   队长席位
   ======================================================================== */
.teams-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.captain-column { position: relative; height: 100%; min-height: 0; overflow: visible; padding: 16px; }
.captain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); gap: 8px; height: calc(100% - 54px); }
.captain-seat {
  min-width: 0; min-height: 0; padding: 9px; border: 1px solid var(--border-base);
  border-radius: var(--radius-md); background: var(--surface-1); position: relative; overflow: hidden;
  transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}
.captain-seat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background var(--motion-base); }
.captain-seat.mine { border-color: var(--border-neon-cyan); background: linear-gradient(160deg, var(--neon-cyan-soft), var(--surface-1) 70%); }
.captain-seat.mine::before { background: var(--neon-cyan); }
.captain-seat.leading { border-color: var(--border-neon-gold); box-shadow: var(--glow-gold); animation: lead-pulse 2.4s ease-in-out infinite; }
@keyframes lead-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--border-neon-gold), 0 0 16px -6px var(--neon-gold-glow); }
  50%      { box-shadow: 0 0 0 1px var(--border-neon-gold), 0 0 30px -4px var(--neon-gold-glow); }
}
.captain-seat.leading::before { background: var(--neon-gold); }
.captain-seat-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 7px; align-items: center; }
.captain-avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-xs);
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  color: var(--text-secondary); font-family: var(--font-display); font-size: 10px; font-weight: 700;
  overflow: hidden; border: 1px solid var(--border-base);
}
.captain-seat.mine .captain-avatar { background: linear-gradient(135deg, color-mix(in oklab, var(--seed-primary) 90%, var(--mix-white)), color-mix(in oklab, var(--seed-primary) 66%, var(--mix-black))); color: var(--text-on-neon); border-color: transparent; }
.captain-info { min-width: 0; }
.captain-info strong, .captain-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.captain-info strong { font-size: 11.5px; font-weight: 600; }
.captain-info span { color: var(--text-muted); font-size: 10px; margin-top: 2px; }
.captain-seat > b { color: var(--neon-gold); font-family: var(--font-mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.captain-seat-head b { color: var(--neon-gold); font-family: var(--font-mono); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.captain-bid { min-width: 0; text-align: center; }
.captain-bid-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 37px; color: var(--neon-cyan); font-style: normal; white-space: nowrap;
  font-family: var(--font-mono); line-height: 1.1;
}
.captain-bid-badge strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.captain-bid-badge small { font-size: 8px; margin-top: 3px; color: var(--text-muted); }
.captain-seat.bid-pulse { animation: bidPulse .88s cubic-bezier(.2,.7,.3,1); }
@keyframes bidPulse {
  0% { box-shadow: 0 0 0 0 var(--neon-cyan-glow); transform: scale(1); }
  45% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--seed-primary) 12%, transparent); transform: scale(1.014); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}

.roster-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; min-height: 48px; margin-top: 8px; overflow: hidden; }
.roster-slot {
  display: inline-flex; align-items: center; gap: 3px; min-width: 0; height: 23px;
  padding: 3px 5px 3px 3px; border: 1px solid var(--border-base); border-radius: var(--radius-pill);
  background: var(--surface-inset);
}
.roster-slot em { min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.roster-slot.filled { border-color: color-mix(in oklab, var(--seed-primary) 32%, transparent); background: linear-gradient(135deg, var(--neon-cyan-soft), var(--surface-2)); }
.empty-slot { border-style: dashed; color: var(--text-disabled); }
.empty-slot i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--text-muted); background: var(--surface-3); font-size: 13px; font-style: normal; line-height: 1; }
.roster-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; min-height: 17px; margin-top: 4px; overflow: hidden; }
.roster-pill { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 1px 3px 1px 1px; border: 1px solid var(--border-base); border-radius: var(--radius-pill); background: var(--surface-inset); }
.roster-pill em { min-width: 0; max-width: 54px; overflow: hidden; color: var(--text-secondary); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.roster-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 14px; height: 14px;
  border-radius: 4px; color: var(--text-on-neon); font-family: var(--font-display);
  font-size: 7px; font-style: normal; font-weight: 800; overflow: hidden;
  background: linear-gradient(135deg, var(--level-S), var(--level-A));
}
.roster-avatar.level-A { background: linear-gradient(135deg, var(--level-A), var(--level-A-pair)); }
.roster-avatar.level-B { background: linear-gradient(135deg, var(--level-B), var(--level-B-pair)); }
.roster-avatar.level-C { background: linear-gradient(135deg, var(--level-C), var(--level-C-pair)); }
.roster-avatar.level-D { background: linear-gradient(135deg, var(--level-D), var(--level-D-pair)); }
.roster-empty { grid-column: 1 / -1; color: var(--text-disabled); font-size: 8px; line-height: 17px; }

.bid-history { margin-top: 16px; border-top: 1px solid var(--border-soft); padding-top: 13px; }
.history-title { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 11px; margin-bottom: 8px; letter-spacing: .04em; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-soft); }
.history-row span { font-size: 11px; color: var(--text-secondary); }
.history-row b { color: var(--neon-gold); font-family: var(--font-mono); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.history-row small { grid-column: 1 / -1; color: var(--text-muted); font-size: 10px; font-family: var(--font-mono); }
.compact-empty { padding: 14px 8px; }

/* ========================================================================
   资金面板
   ======================================================================== */
.funds-panel {
  min-height: 0; position: relative; overflow: hidden;
  background-image:
    var(--grain),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(165deg, rgba(20, 10, 50, .66), rgba(10, 5, 26, .58));
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    auto,
    26px 1.5px, 1.5px 26px, 26px 1.5px, 1.5px 26px,
    26px 1.5px, 1.5px 26px, 26px 1.5px, 1.5px 26px, auto;
  background-position:
    0 0,
    left 10px top 10px, left 10px top 10px,
    right 10px top 10px, right 10px top 10px,
    left 10px bottom 10px, left 10px bottom 10px,
    right 10px bottom 10px, right 10px bottom 10px, 0 0;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
.funds-panel::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, var(--neon-gold-soft), transparent 70%); opacity: .45; pointer-events: none;
}
.funds-value {
  color: var(--neon-gold); font-family: var(--font-mono); font-size: 36px; font-weight: 700;
  line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px color-mix(in oklab, var(--seed-gold) 16%, transparent); position: relative;
}
.funds-value small { margin-left: 7px; color: var(--text-muted); font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0; text-shadow: none; }
.funds-value::after {
  content: ""; position: absolute; top: -4px; right: -10px; width: 14px; height: 14px; pointer-events: none;
  background:
    linear-gradient(var(--seed-gold), var(--seed-gold)) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(var(--seed-gold), var(--seed-gold)) 0 50% / 100% 1.5px no-repeat;
  filter: drop-shadow(0 0 4px color-mix(in oklab, var(--seed-gold) 70%, transparent));
  animation: sparkle 3.2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 55%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  70% { opacity: 1; transform: scale(1) rotate(45deg); }
  85% { opacity: 0; transform: scale(.4) rotate(90deg); }
}
.funds-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--text-muted); font-size: 10.5px; font-family: var(--font-mono); position: relative; }
.funds-track { height: 5px; margin-top: 12px; border-radius: var(--radius-pill); background: var(--surface-inset); overflow: hidden; border: 1px solid var(--border-soft); position: relative; }
.funds-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--neon-gold), color-mix(in oklab, var(--seed-gold) 58%, var(--mix-black))); box-shadow: 0 0 10px var(--neon-gold-glow); }
.proxy-selector { position: relative; display: grid; gap: 5px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border-base); }
.proxy-selector label { font-size: 11px; color: var(--gold-2); font-weight: 600; }
.proxy-selector select { width: 100%; min-width: 0; padding: 7px 9px; background: var(--surface-inset); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: var(--radius-md); font: inherit; font-size: 12px; }
.proxy-selector small { color: var(--text-muted); font-size: 10px; overflow-wrap: anywhere; }
.proxy-selector select:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* 金箔数字：金属渐变裁切到文字，高光缓慢扫过 */
.funds-value, .balance strong, .bid-current strong, .metric strong {
  background-image: linear-gradient(100deg, var(--seed-gold) 0%, #ffe9a8 28%, #fff8e0 44%, #ffe9a8 60%, var(--seed-gold) 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: foil-sweep 7s linear infinite;
}
@keyframes foil-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0% 0; }
}
.funds-value small { -webkit-text-fill-color: var(--text-muted); color: var(--text-muted); background: none; animation: none; }
/* 自由竞拍当前价保持翡翠玉色，不套金箔 */
.free-current strong {
  background-image: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--neon-cyan); -webkit-text-fill-color: var(--neon-cyan);
  text-shadow: 0 0 28px color-mix(in oklab, var(--seed-primary) 18%, transparent);
  animation: none;
}

/* ========================================================================
   选手池
   ======================================================================== */
.player-pool-card { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; padding: 14px; }
.player-pool-card .section-head { margin-bottom: 9px; }
.player-pool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-height: 0; flex: 1; align-items: stretch; }
.pool-lane {
  display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%;
  padding: 9px; border: 1px solid var(--border-base); border-radius: var(--radius-md);
  background: var(--surface-inset);
}
.pool-lane-head { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-bottom: 7px; color: var(--text-muted); font-size: 9.5px; }
.pool-lane-head .level-tag { min-width: 22px; padding: 3px 5px; }
.pool-players { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; min-height: 0; flex: 1; overflow: visible; }
/* ---- 塔罗小卡：肖像卡面 + 宝石档徽 + 待机流光 + 悬停浮起 ---- */

.pool-player {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  min-width: 0; min-height: 96px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border-base); border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 12, 54, .78), rgba(7, 3, 18, .86));
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
}
.pool-player:hover {
  transform: translateY(-4px) scale(1.06); z-index: 3; border-color: var(--holo-line);
  box-shadow: 0 12px 26px -10px rgba(0,0,0,.85), 0 0 16px -4px color-mix(in oklab, var(--seed-primary) 40%, transparent);
}
.pool-player > span {
  flex: none; padding: 3px 4px 4px; text-align: center; letter-spacing: .04em;
  color: var(--text-secondary); font-size: 9px;
  background: linear-gradient(180deg, rgba(10, 5, 26, .35), rgba(5, 2, 16, .9));
  border-top: 1px solid var(--border-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pool-avatar {
  position: relative; display: grid; place-items: center; flex: 1 1 auto; min-height: 0;
  width: 100%; height: auto; border-radius: 0; overflow: hidden;
  color: var(--text-on-neon); font-family: var(--font-display);
  font-size: 14px; font-style: normal; font-weight: 800;
  background: linear-gradient(160deg, var(--level-S), var(--level-S-pair));
}
.pool-avatar > * { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 六边形宝石档徽（字母跟随档位） */
.pool-avatar::before {
  content: ""; position: absolute; top: 3px; left: 3px; z-index: 2;
  width: 13px; height: 15px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--level-S), var(--level-S-pair));
  color: var(--text-on-neon); font-size: 8px; font-weight: 800; font-style: normal; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.7));
}
.pool-avatar.level-S::before { content: "S"; }
.pool-avatar.level-A::before { content: "A"; background: linear-gradient(160deg, var(--level-A), var(--level-A-pair)); }
.pool-avatar.level-B::before { content: "B"; background: linear-gradient(160deg, var(--level-B), var(--level-B-pair)); }
.pool-avatar.level-C::before { content: "C"; background: linear-gradient(160deg, var(--level-C), var(--level-C-pair)); }
.pool-avatar.level-D::before { content: "D"; background: linear-gradient(160deg, var(--level-D), var(--level-D-pair)); }
/* 待机流光：错峰扫过肖像 */
.pool-avatar::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgba(255,255,255,.14) 50%, transparent 57%);
  transform: translateX(-135%);
  animation: pool-glint 7.5s ease-in-out infinite;
}
.pool-player:nth-child(3n) .pool-avatar::after { animation-delay: -2.5s; }
.pool-player:nth-child(3n+1) .pool-avatar::after { animation-delay: -5s; }
@keyframes pool-glint {
  0%, 58% { transform: translateX(-135%); }
  76%, 100% { transform: translateX(135%); }
}
.pool-player.current {
  border-color: var(--seed-primary);
  background: linear-gradient(180deg, color-mix(in oklab, var(--seed-primary) 22%, rgba(22, 12, 54, .8)), rgba(7, 3, 18, .88));
  box-shadow: 0 0 0 1.5px var(--seed-primary), 0 0 22px -4px var(--neon-cyan-glow);
  animation: count-breath 2.8s ease-in-out infinite;
}
.pool-player.current > span { color: var(--text-primary); font-weight: 700; }
.pool-player.pickable { cursor: pointer; border-color: color-mix(in oklab, var(--seed-primary) 40%, transparent); }
.pool-player.pickable:hover { border-color: var(--seed-primary); background: linear-gradient(180deg, color-mix(in oklab, var(--seed-primary) 16%, rgba(22, 12, 54, .8)), rgba(7, 3, 18, .88)); transform: translateY(-4px) scale(1.06); }
.pick-hint { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 4; margin: 0; padding: 2px 6px; border: 1px solid var(--border-neon-cyan); background: rgba(5, 2, 16, .85); border-radius: 4px; color: var(--neon-cyan); font-size: 8.5px; white-space: nowrap; font-weight: 700; letter-spacing: .06em; }
.pool-inspect { position: absolute; top: 2px; right: 2px; z-index: 4; }
.pool-player.sold { opacity: .55; filter: saturate(.4); }
.pool-player.sold::after {
  content: '已拍'; position: absolute; right: 3px; top: 3px;
  padding: 0 3px; border: 1px solid color-mix(in oklab, var(--seed-gold) 45%, transparent);
  border-radius: 3px;
  background-image: repeating-linear-gradient(45deg, color-mix(in oklab, var(--seed-gold) 18%, transparent) 0 1px, transparent 1px 3px);
  background-color: color-mix(in oklab, var(--seed-gold) 14%, transparent);
  color: var(--neon-gold); font-size: 7.5px; font-weight: 800; letter-spacing: .06em; transform: rotate(-6deg);
}

/* ========================================================================
   队伍资金卡
   ======================================================================== */
.team-card { padding: 12px; border: 1px solid var(--border-base); border-radius: var(--radius-md); background: var(--surface-inset); transition: var(--motion-fast); }
.team-card:hover { border-color: var(--border-strong); }
.team-card.mine { border-color: var(--border-neon-cyan); background: linear-gradient(160deg, var(--neon-cyan-soft), var(--surface-inset) 70%); }
.team-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-line strong { font-size: 12px; font-weight: 600; }
.team-line b { color: var(--neon-gold); font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.team-card small { color: var(--text-muted); font-size: 10px; }
.team-meter { height: 4px; margin-top: 9px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.team-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--neon-gold), color-mix(in oklab, var(--seed-gold) 58%, var(--mix-black))); }

/* ========================================================================
   现场动态
   ======================================================================== */
.feed-panel { min-height: 0; overflow: visible; }
.feed { display: grid; gap: 10px; }
.feed-item { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start; padding-bottom: 9px; border-bottom: 1px dashed var(--border-soft); }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; padding-top: 2px; letter-spacing: .02em; }
.feed-item p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

/* ========================================================================
   主持现场控制
   ======================================================================== */
.selection-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
.selection-actions select { min-width: 0; border: 1px solid var(--border-base); border-radius: var(--radius-sm); padding: 9px 11px; background: var(--surface-inset); color: var(--text-primary); }
.auction-settings { display: flex; gap: 8px; margin-top: 8px; }
.auction-settings label { display: grid; gap: 4px; color: var(--text-muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.auction-settings input { width: 120px; border: 1px solid var(--border-base); border-radius: var(--radius-sm); padding: 7px 9px; background: var(--surface-inset); color: var(--text-primary); font-family: var(--font-mono); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.a-order-admin { padding: 12px; border: 1px solid var(--border-base); border-radius: var(--radius-md); background: var(--surface-inset); margin-bottom: 12px; }
.a-order-admin h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.admin-order-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.admin-order-item {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 2px 5px; align-items: center;
  padding: 5px 6px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 9.5px; background: var(--surface-1);
}
.admin-order-item b { grid-row: span 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--surface-3); color: var(--text-secondary); font-family: var(--font-mono); font-size: 8px; }
.admin-order-item > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-order-item small { color: var(--text-muted); font-size: 8.5px; }
.order-move { display: grid; gap: 2px; }
.order-move button { width: 18px; height: 14px; padding: 0; border: 1px solid var(--border-base); border-radius: 4px; background: var(--surface-inset); color: var(--text-muted); font-size: 9px; line-height: 1; }
.order-move button:hover:not(:disabled) { color: var(--neon-cyan); border-color: var(--border-neon-cyan); }
.order-move button:disabled { opacity: .28; cursor: not-allowed; }
.admin-order-item.active { border-color: var(--neon-cyan); color: var(--text-primary); background: linear-gradient(135deg, var(--neon-cyan-soft), var(--surface-1)); }
.admin-order-item.active b { background: var(--neon-cyan); color: var(--text-on-neon); }
.admin-order-item.done { border-color: color-mix(in oklab, var(--seed-gold) 34%, transparent); }
.admin-order-item.done b { background: var(--neon-gold-soft); color: var(--neon-gold); }

/* ========================================================================
   管理后台
   ======================================================================== */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
.auction-recovery { border-top: 1px solid var(--border-base); margin-top: 18px; padding-top: 16px; }
.auction-recovery .hint { margin-top: 10px; line-height: 1.7; }
.recovery-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border-base); }
.recovery-dialog::backdrop { background: rgb(4 5 15 / 78%); backdrop-filter: blur(4px); }
.recovery-dialog h2 { margin: 10px 0 16px; }
.recovery-dialog p { line-height: 1.8; margin-bottom: 16px; }
.recovery-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.admin-nav { align-self: start; position: sticky; top: 92px; padding: 10px; }
.admin-nav button {
  display: flex; width: 100%; align-items: center; gap: 9px; padding: 11px 12px;
  border: 0; border-radius: var(--radius-sm); color: var(--text-muted); background: transparent;
  text-align: left; font-size: 13px; font-weight: 550; transition: var(--motion-fast); position: relative;
}
.admin-nav button:hover { color: var(--text-primary); background: var(--surface-2); }
.admin-nav button.active { color: var(--neon-cyan); background: linear-gradient(90deg, var(--neon-cyan-soft), transparent 75%); }
.admin-nav button.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: var(--neon-cyan); border-radius: 2px; box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric {
  padding: 16px; border: 1px solid var(--border-base); border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--surface-1), var(--surface-0)); position: relative; overflow: hidden;
}
.metric::before {
  content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px;
  border-radius: 50%; background: radial-gradient(circle, var(--neon-cyan-soft), transparent 70%); opacity: .4;
}
.metric span { color: var(--text-muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; position: relative; }
.metric strong { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--neon-gold); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; position: relative; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: 14px; }
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filters input, .filters select {
  min-width: 150px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  padding: 9px 11px; background: var(--surface-inset); color: var(--text-primary); transition: var(--motion-fast);
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 0 3px var(--neon-cyan-soft); }

.data-table { overflow-x: auto; }
.table-action { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; white-space: nowrap; }
th {
  color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in oklab, var(--surface-inset) 70%, transparent);
}
td { color: var(--text-secondary); font-size: 12.5px; }
tbody tr { transition: background var(--motion-fast); }
tbody tr:hover { background: linear-gradient(90deg, var(--neon-cyan-soft), transparent 60%); }
tr:last-child td { border-bottom: 0; }

.avatar-dot {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-xs);
  margin-right: 8px; vertical-align: middle; color: var(--text-on-neon);
  font-family: var(--font-display); font-weight: 800; overflow: hidden;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-gold));
}
.link-count {
  display: inline-flex; padding: 3px 7px; border: 1px solid var(--border-neon-cyan);
  border-radius: var(--radius-pill); color: var(--neon-cyan); background: var(--neon-cyan-soft);
  font-size: 10px; white-space: nowrap; font-weight: 600;
}

.level-tag {
  display: inline-block; min-width: 24px; padding: 4px 6px; border-radius: 0;
  text-align: center; font-family: var(--font-display); font-size: 11px; font-weight: 800;
  letter-spacing: .06em; border: 0; color: var(--text-on-neon);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.level-S { background: linear-gradient(160deg, var(--level-S), var(--level-S-pair)); color: var(--text-on-neon); }
.level-A { background: linear-gradient(160deg, var(--level-A), var(--level-A-pair)); color: var(--text-on-neon); }
.level-B { background: linear-gradient(160deg, var(--level-B), var(--level-B-pair)); color: var(--text-on-neon); }
.level-C { background: linear-gradient(160deg, var(--level-C), var(--level-C-pair)); color: var(--text-on-neon); }
.level-D { background: linear-gradient(160deg, var(--level-D), var(--level-D-pair)); color: var(--text-on-neon); }
/* 头像类组件复用 level tone 时只取渐变，不取标签的边框底色 */
.player-avatar.level-S, .pool-avatar.level-S, .roster-avatar.level-S, .avatar-dot.level-S { color: var(--text-on-neon); }
/* 无照片占位头像：暗宇宙卡背 + 档位辉光 + 档位色字母（塔罗卡背感，不再整块高饱和糖色） */
.level-S { --lvl: var(--level-S); }
.level-A { --lvl: var(--level-A); }
.level-B { --lvl: var(--level-B); }
.level-C { --lvl: var(--level-C); }
.level-D { --lvl: var(--level-D); }
.pool-avatar.level-S, .pool-avatar.level-A, .pool-avatar.level-B, .pool-avatar.level-C, .pool-avatar.level-D,
.player-avatar.level-S, .player-avatar.level-A, .player-avatar.level-B, .player-avatar.level-C, .player-avatar.level-D,
.roster-avatar.level-S, .roster-avatar.level-A, .roster-avatar.level-B, .roster-avatar.level-C, .roster-avatar.level-D {
  background:
    radial-gradient(120% 85% at 50% -8%, color-mix(in oklab, var(--lvl) 42%, transparent), transparent 60%),
    radial-gradient(95% 70% at 50% 108%, color-mix(in oklab, var(--lvl) 16%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(26, 14, 62, .94), rgba(8, 4, 20, .97));
  color: color-mix(in oklab, var(--lvl) 68%, #ffffff);
  text-shadow: 0 0 14px color-mix(in oklab, var(--lvl) 55%, transparent);
}

.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field { display: grid; gap: 6px; margin-bottom: var(--space-3); }
.field label { color: var(--text-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--space-3); }

/* ========================================================================
   登录页
   ======================================================================== */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% -10%, color-mix(in oklab, var(--seed-primary) 16%, transparent), transparent 65%),
    radial-gradient(560px 320px at 80% 110%, color-mix(in oklab, var(--seed-primary) 12%, transparent), transparent 70%);
}
.login-page::before {
  content: ""; position: absolute; inset: -12% -20% 0 -20%; pointer-events: none;
  transform-origin: 50% -10%;
  background-image:
    conic-gradient(from 8deg at 30% -6%, transparent 0deg, color-mix(in oklab, var(--seed-primary) 14%, transparent) 3.5deg, transparent 8deg),
    conic-gradient(from 172deg at 66% -6%, transparent 0deg, color-mix(in oklab, var(--seed-primary) 10%, transparent) 3.5deg, transparent 8deg),
    linear-gradient(rgba(230,228,245,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,228,245,0.022) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  filter: blur(3px);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, var(--mix-black) 30%, transparent 82%);
  animation: beam-sway 16s ease-in-out infinite alternate;
}
.login-page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none;
  background: linear-gradient(0deg, color-mix(in oklab, var(--seed-primary) 22%, transparent), transparent 85%);
  -webkit-mask-image: radial-gradient(75% 100% at 50% 100%, var(--mix-black) 30%, transparent 78%);
  mask-image: radial-gradient(75% 100% at 50% 100%, var(--mix-black) 30%, transparent 78%);
}
.login-card {
  width: min(440px, 100%); padding: 34px; position: relative; z-index: 1;
  border: 1px solid var(--border-base); border-radius: var(--radius-xl);
  background-image:
    var(--grain),
    radial-gradient(circle at 50% 4%,
      transparent 0 40px,
      color-mix(in oklab, var(--seed-primary) 26%, transparent) 40px 41.5px,
      transparent 41.5px 54px,
      color-mix(in oklab, var(--seed-primary) 18%, transparent) 54px 55.5px,
      transparent 55.5px 70px,
      color-mix(in oklab, var(--seed-primary) 12%, transparent) 70px 71.5px,
      transparent 71.5px),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(180deg, rgba(20, 10, 50, .72), rgba(10, 5, 26, .66));
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size:
    auto, auto,
    30px 1.5px, 1.5px 30px, 30px 1.5px, 1.5px 30px,
    30px 1.5px, 1.5px 30px, 30px 1.5px, 1.5px 30px, auto;
  background-position:
    0 0, 0 0,
    left 14px top 14px, left 14px top 14px,
    right 14px top 14px, right 14px top 14px,
    left 14px bottom 14px, left 14px bottom 14px,
    right 14px bottom 14px, right 14px bottom 14px, 0 0;
  box-shadow: var(--shadow-pop), 0 0 80px -20px color-mix(in oklab, var(--seed-primary) 28%, transparent);
  backdrop-filter: blur(24px);
}
.login-card .brand { margin-bottom: 28px; }
.login-card h1 { font-size: 30px; }
.login-form { margin-top: 22px; }
.login-form .primary-button { width: 100%; margin-top: 10px; padding: 12px; font-size: 14px; }
.demo-account { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.demo-account button {
  padding: 10px 5px; border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  background: var(--surface-inset); color: var(--text-secondary); font-size: 11px; font-weight: 600;
  transition: var(--motion-fast);
}
.demo-account button:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); background: var(--neon-cyan-soft); transform: translateY(-1px); }

/* ========================================================================
   空态 / 弹窗 / Toast / 资料编辑
   ======================================================================== */
.empty { padding: 26px; color: var(--text-muted); text-align: center; border: 1px dashed var(--border-base); border-radius: var(--radius-md); background: var(--surface-inset); font-size: 13px; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px;
  background: color-mix(in oklab, var(--seed-bg) 78%, transparent); backdrop-filter: blur(8px);
}
.profile-editor { width: min(560px, 100%); max-height: min(680px, calc(100vh - 40px)); overflow: auto; padding: 22px; box-shadow: var(--shadow-pop); }
.profile-editor h2 { margin: 3px 0 0; font-size: 20px; font-family: var(--font-display); }
.profile-editor textarea { resize: vertical; min-height: 120px; }
.profile-preview { display: grid; grid-template-columns: auto 42px minmax(0, 1fr); align-items: center; gap: 10px; margin: 4px 0 16px; color: var(--text-muted); font-size: 11px; }
.profile-preview-avatar { width: 42px; height: 42px; margin: 0; }
.profile-preview small { color: var(--text-muted); font-size: 10px; line-height: 1.5; }

.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 340px;
  padding: 12px 16px; border: 1px solid var(--border-neon-cyan); border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-cyan-soft), var(--surface-1));
  color: var(--text-primary); box-shadow: var(--shadow-pop), var(--glow-cyan);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: .22s ease; font-size: 13px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: color-mix(in oklab, var(--danger) 50%, transparent); background: linear-gradient(135deg, var(--danger-soft), var(--surface-1)); color: var(--text-primary); box-shadow: var(--shadow-pop); }

/* ========================================================================
   live-mode · 统一画布竞拍大屏
   ======================================================================== */
.live-mode { overflow: hidden; }
.live-mode .layout { width: 100%; max-width: none; height: calc(100% - 72px); min-height: 0; display: block; padding: 10px 18px 18px; }
.live-mode .live-grid { min-height: 0; height: 100%; }
.live-mode .live-grid > section, .live-mode .live-grid > aside { min-height: 0; height: 100%; }
.live-mode .live-grid > section > .hero-card { min-height: 0; }
.live-mode .right-rail { min-height: 0; overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr); }
.live-mode .feed-panel { display: flex; flex-direction: column; min-height: 0; }
.live-mode .feed-panel .feed { min-height: 0; overflow: auto; flex: 1; align-content: start; }
.live-mode .feed-panel .feed::-webkit-scrollbar { width: 6px; }
.live-mode .feed-panel .feed::-webkit-scrollbar-thumb { background: var(--border-base); border-radius: 3px; }

/* ========================================================================
   响应式（按页面容器宽度判断断点）
   ======================================================================== */
@container page-layout (max-width: 1250px) {
  .live-grid { grid-template-columns: 360px minmax(0, 1fr) 320px; }
  .player-pool { grid-template-columns: minmax(0, 1fr); }
}
@container page-layout (max-width: 1050px) {
  .live-mode { overflow: auto; }
  .live-mode .layout { height: auto; display: block; }
  .live-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .live-grid > aside:first-child { grid-column: 1 / -1; }
  .captain-column { position: static; height: auto; max-height: none; }
  .captain-list { grid-template-columns: repeat(3, 1fr); height: auto; }
  .center-stage { height: auto; grid-template-rows: auto auto; }
  .right-rail { position: static; overflow: visible; }
  .bid-panel { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .admin-nav button { width: auto; white-space: nowrap; }
}
@container page-layout (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; }
  .layout { padding: 20px 14px 42px; }
  .top-actions .role-chip { display: none; }
  .dashboard-head { display: block; }
  .dashboard-head .top-actions { margin-top: 14px; }
  .stage-progress { gap: 5px; }
  .stage-step { padding: 9px 7px; }
  .live-grid { grid-template-columns: 1fr; }
  .live-grid > aside:first-child { grid-column: auto; }
  .captain-list { grid-template-columns: 1fr; }
  .player-stage { grid-template-columns: 100px 1fr; gap: 14px; padding: 30px 18px 18px; }
  .player-avatar { width: 100px; border-radius: var(--radius-lg); font-size: 32px; }
  .player-copy h2 { font-size: 26px; }
  .player-copy .intro { font-size: 12px; }
  .stats { gap: 5px; }
  .stat { min-width: 65px; padding: 7px; }
  .stat b { font-size: 14px; }
  .hero-top, .hero-footer { padding-left: 18px; padding-right: 18px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .form-grid { grid-template-columns: 1fr; }
  .login-card { padding: 24px; }
}
@container page-layout (max-width: 760px) {
  .pick-order { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 18px; padding-right: 18px; }
  .sealed-results-list { grid-template-columns: 1fr; }
  .selection-actions { grid-template-columns: 1fr; }
  .admin-order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 多人正式版：沿用黑金主题，补齐连接、账号和资料组件。 */
.status-chip.offline { color: var(--danger); border-color: var(--danger); }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.profile-editor textarea { min-height: 72px; }
.account-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--border-soft); }
.account-row small { display: block; color: var(--text-muted); margin-top: 3px; }

/* Account tools share the existing charcoal/gold forms and tables. */
[hidden] { display: none !important; }
.password-required { width: min(100%, 480px); }
.password-required .status-chip { margin: 12px 0; }
.password-required h1 { font-size: 27px; }
.password-required > .logout-link { display: block; margin: 18px auto 0; }
.account-management { max-width: 1440px; margin: 0 auto; }
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.accounts-table { margin-top: 16px; }
.accounts-table td { vertical-align: middle; }
.account-self { display: block; margin-top: 5px; color: var(--text-muted); }
.account-actions { white-space: nowrap; }
.account-actions button + button { margin-left: 6px; }
.password-waiting { color: var(--gold-2); border-color: var(--border-strong); }
.danger-button { color: #efafa6; }
.danger-button:disabled { opacity: .4; cursor: not-allowed; }
.account-editor .field small { color: var(--text-muted); line-height: 1.6; }
@container page-layout (max-width: 700px) {
  .account-metrics { gap: 8px; }
  .account-metrics .metric { padding: 14px 10px; }
  .account-metrics .metric strong { font-size: 24px; }
  .account-management .dashboard-head { flex-wrap: wrap; gap: 16px; }
}
.media-modal { width: min(960px, calc(100vw - 32px)); }
.media-modal video, .media-modal > img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #080a10; margin-top: 12px; }
.media-link:disabled { opacity: .45; cursor: default; }
[aria-disabled="true"] { cursor: wait; }
.button-row a { text-decoration: none; display: inline-flex; align-items: center; }
/* 桌面首屏：为每个固定席位和选手卡分配真实高度，防止内容在网格内叠压。 */
@container page-layout (min-width: 1100px) {
  .live-mode .live-grid { grid-template-columns: clamp(340px, 25cqw, 440px) minmax(0, 1fr) clamp(280px, 23cqw, 350px); gap: 12px; }
  .live-mode .center-stage { grid-template-rows: minmax(280px, .85fr) minmax(340px, 1.25fr); }
  .live-mode .hero-top { padding: 12px 16px 0; gap: 10px; flex-shrink: 0; }
  .live-mode .hero-top h2 { margin: 3px 0; font-size: 19px; }
  .live-mode .hero-top p { font-size: 10px; }
  .live-mode .countdown { min-width: 86px; padding: 7px 10px; }
  .live-mode .countdown strong { font-size: 30px; }
  .live-mode .player-stage { grid-template-columns: 80px minmax(0,1fr); gap: 14px; padding: 10px 16px; flex: 1; }
  .live-mode .player-avatar { width: 80px; font-size: 28px; }
  .live-mode .player-copy .level-label { margin-bottom: 2px; font-size: 10px; }
  .live-mode .player-copy h2 { font-size: 22px; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .live-mode .player-copy .handle { font-size: 10px; }
  .live-mode .player-copy .intro { margin: 5px 0; font-size: 11px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .live-mode .stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .live-mode .stat { min-width: 0; padding: 5px 7px; }
  .live-mode .stat b { font-size: 14px; }
  .live-mode .stat span { font-size: 9px; }
  .live-mode .hero-footer { padding: 8px 16px; gap: 8px; flex-wrap: wrap; flex-shrink: 0; margin-top: auto; }
  .live-mode .hero-footer > .subtle { font-size: 10px; }
  .live-mode .media-link { padding: 4px 7px; font-size: 10px; }
  .live-mode .captain-column { display: flex; flex-direction: column; padding: 12px; }
  .live-mode .captain-column .section-head { margin-bottom: 10px; flex-shrink: 0; }
  .live-mode .captain-list { flex: 1; height: auto; min-height: 0; gap: 7px; }
  .live-mode .captain-seat { display: flex; flex-direction: column; justify-content: space-between; padding: 6px; }
  .live-mode .captain-seat-head { grid-template-columns: 20px minmax(0,1fr) auto auto; gap: 2px 6px; min-height: 30px; }
  .live-mode .captain-avatar { width: 20px; height: 26px; }
  .live-mode .captain-info strong { font-size: 10px; }
  .live-mode .captain-info span { font-size: 9px; }
  .live-mode .captain-bid-badge strong { font-size: clamp(17px, 1.35cqw, 23px); }
  .live-mode .captain-bid-badge.sealed-bid strong { font-size: 14px; }
  .live-mode .captain-bid-badge small { font-size: 7px; margin-top: 2px; }
  .live-mode .captain-seat-head > b { font-size: 10px; }
  .live-mode .roster-slots { grid-template-rows: repeat(2,minmax(0,1fr)); gap: 3px; margin-top: 5px; min-height: 42px; flex: 1; max-height: 76px; }
  .live-mode .roster-slot { height: 100%; min-height: 0; padding: 2px; gap: 2px; border-radius: 6px; }
  .live-mode .roster-slot em { font-size: 8px; }
  .live-mode .empty-slot i { width: 13px; height: 13px; font-size: 11px; flex-shrink: 0; }
  .live-mode .roster-avatar { width: clamp(13px, 1.2cqw, 22px); height: clamp(13px, 1.2cqw, 22px); font-size: 8px; }
  .live-mode .player-pool-card { padding: 12px; }
  .live-mode .player-pool-card .section-head { flex-shrink: 0; margin-bottom: 8px; }
  .live-mode .player-pool-card .section-head .subtle { font-size: 10px; }
  .live-mode .pool-lane { padding: 6px; }
  .live-mode .pool-lane-head { gap: 4px; font-size: 9px; margin-bottom: 6px; flex-shrink: 0; }
  .live-mode .pool-lane-head > span:last-child { white-space: nowrap; }
  .live-mode .pool-player { min-height: 0; padding: 0; }
  .live-mode .pool-player > span { max-width: 100%; font-size: 12px; flex-shrink: 0; padding: 2px 3px 3px; }
  .live-mode .pool-avatar { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; font-size: 12px; }
  .live-mode .pick-hint { left: 50%; top: 40%; right: auto; transform: translate(-50%, -50%); font-size: 11px; }

  .live-mode .sealed-player-line { padding: 7px 16px; gap: 10px; }
  .live-mode .sealed-player-line .player-avatar { width: 40px; font-size: 18px; }
  .live-mode .sealed-player-line h2 { font-size: 17px; }
  .live-mode .sealed-player-line p { font-size: 10px; max-height: 28px; overflow: auto; }
  .live-mode .sealed-rule-bar { padding: 5px 16px; gap: 8px; font-size: 9px; }
  .live-mode .sealed-results { padding: 7px 16px 0; }
  .live-mode .sealed-results-list { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .live-mode .sealed-result-row { padding: 4px 5px; min-height: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px; }
  .live-mode .sealed-result-row > span { font-size: 9px; }
  .live-mode .sealed-result-row b { font-size: 9px; }
  .live-mode .captain-avatar-mini { width: 17px; height: 17px; }
  .live-mode .pick-order { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 4px; padding: 8px 16px; }
  .live-mode .pick-order-item { font-size: 9px; padding: 4px; gap: 2px 4px; grid-template-columns: 17px minmax(0,1fr); }
  .live-mode .pick-order-item b { width: 17px; height: 17px; font-size: 9px; }
  .live-mode .pick-order-item em { font-size: 8px; }
  .live-mode .pick-current { padding: 8px 16px; gap: 10px; }
  .live-mode .pick-current-avatar { width: 40px; height: 40px; }
  .live-mode .pick-current h2 { font-size: 20px; }
  .live-mode .pick-current p { font-size: 10px; }
  .live-mode .right-rail { gap: 10px; }
  .live-mode .right-rail > .card { padding: 14px; }
  .live-mode .right-rail .section-head { margin-bottom: 10px; }
  .live-mode .right-rail .bid-current { padding: 10px; margin: 10px 0; }
  .live-mode .right-rail .bid-current strong { font-size: 26px; }
  .live-mode .right-rail .hint { font-size: 10px; margin: 8px 0 0; }
  .live-mode .right-rail .bid-history { max-height: 160px; overflow: auto; }
  .live-mode .funds-value { font-size: 30px; }
  .live-mode .waiting-card-inner { padding: 20px; }
  .live-mode .waiting-card-inner h2 { font-size: 23px; }
  .live-mode .clue-box { padding: 6px 9px; margin-top: 6px; }
  .live-mode .clue-box p { max-height: 70px; overflow: auto; font-size: 11px; }
}
.full-intro { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.live-mode .topbar { position: relative; top: auto; }
@container page-layout (min-width: 1100px) {
  .live-mode .center-stage { grid-template-rows: 304px minmax(340px, 1fr); }
  .live-mode .hero-top { padding-top: 8px; }
  .live-mode .hero-top .eyebrow { display: none; }
  .live-mode .hero-top h2 { margin: 0; font-size: 18px; line-height: 1.25; }
  .live-mode .hero-top p { line-height: 1.3; margin-top: 4px; }
  .live-mode .countdown { padding: 4px 9px; min-width: 76px; }
  .live-mode .countdown strong { font-size: 28px; }
  .live-mode .countdown small { display: block; line-height: 12px; font-size: 9px; }
  .live-mode .sealed-player-line { padding: 6px 16px; flex-shrink: 0; }
  .live-mode .sealed-player-line > div:last-child { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 2px 8px; align-items: center; flex: 1; }
  .live-mode .sealed-player-line .level-label { font-size: 9px; line-height: 1.2; }
  .live-mode .sealed-player-line .level-tag { padding: 2px 5px; }
  .live-mode .sealed-player-line h2 { font-size: 16px; line-height: 1.2; margin: 0; }
  .live-mode .sealed-player-line p { grid-column: 1 / -1; line-height: 1.2; }
  .live-mode .sealed-rule-bar { flex-shrink: 0; line-height: 1.3; padding-top: 4px; padding-bottom: 4px; }
  .live-mode .sealed-results { flex-shrink: 0; }
  .live-mode .sealed-results-head { margin-bottom: 4px; line-height: 1.3; font-size: 9px; }
  .live-mode .sealed-result-row { min-height: 25px; padding: 3px 4px; }
  .live-mode .sealed-card .hero-footer { padding-top: 5px; padding-bottom: 5px; }
  .live-mode .pick-current { padding-top: 6px; padding-bottom: 6px; }
  .live-mode .pick-order { padding-top: 6px; padding-bottom: 6px; }
}
.pool-inspect { position: absolute; top: 2px; right: 2px; z-index: 3; padding: 1px 3px; font-size: 8px; border: 1px solid var(--border-base); border-radius: 3px; background: var(--surface-0); color: var(--text-secondary); opacity: 0; }
.pool-player:hover .pool-inspect, .pool-inspect:focus-visible { opacity: 1; }
.pool-player:has(.pick-hint) .pool-inspect { display: none; }
.pool-player .pick-hint { z-index: 4; border: 1px solid var(--border-neon-cyan); background: var(--surface-0); border-radius: 3px; padding: 1px 3px; font-size: 8px; }

/* 超管选择器合并队伍与资金信息，为现场动态保留空间。 */
.proxy-funds { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text-muted); font-size: 10px; }
.proxy-funds strong { color: var(--gold-2); font: 600 24px var(--font-mono); }
.proxy-funds strong small { margin-left: 5px; font: 10px var(--font-body); color: var(--text-muted); }
.superadmin-live .proxy-selector { padding-bottom: 7px; margin-bottom: 7px; }

/* One active tier uses the full pool area; narrow screens retain readable cards. */
@container page-layout (max-width: 1099px) {
  .pool-players { grid-auto-rows: minmax(76px, auto); grid-template-rows: none; }
  .pool-player { flex-direction: column; justify-content: center; }
  .pool-avatar { width: 36px; height: 36px; font-size: 16px; }
  .pool-player > span { font-size: 12px; }
}
@container page-layout (max-width: 480px) {
  .pool-players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========================================================================
   v3.1 星仪微饰 · 小元素与装饰层（均不占布局、pointer-events:none）
   ======================================================================== */

/* 1) 全局极光丝带 + 上升星尘（canvas 星空之上、页面内容之下） */
.bgfx::before {
  content: ""; position: absolute; left: -12%; right: -12%; top: -20%; height: 62%;
  pointer-events: none; filter: blur(12px); opacity: .55;
  background:
    radial-gradient(58% 40% at 28% 42%, color-mix(in oklab, var(--seed-primary) 20%, transparent), transparent 70%),
    radial-gradient(46% 34% at 70% 28%, color-mix(in oklab, #6a4bd8 18%, transparent), transparent 72%),
    radial-gradient(38% 28% at 50% 66%, color-mix(in oklab, var(--seed-accent) 9%, transparent), transparent 74%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  from { transform: translate3d(-3%, -1%, 0) rotate(-1.5deg); }
  to   { transform: translate3d(3%, 2%, 0) rotate(1.5deg); }
}
.bgfx::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 20%, rgba(230, 228, 245, .9), transparent 62%),
    radial-gradient(1.4px 1.4px at 32% 64%, rgba(196, 178, 255, .85), transparent 62%),
    radial-gradient(1.8px 1.8px at 55% 34%, rgba(230, 228, 245, .8), transparent 62%),
    radial-gradient(1.3px 1.3px at 71% 76%, rgba(196, 178, 255, .8), transparent 62%),
    radial-gradient(1.6px 1.6px at 86% 46%, rgba(230, 228, 245, .85), transparent 62%),
    radial-gradient(1.2px 1.2px at 44% 88%, rgba(196, 178, 255, .75), transparent 62%);
  background-size: 460px 460px;
  animation: mote-rise 34s linear infinite;
}
@keyframes mote-rise { from { background-position: 0 0; } to { background-position: -70px -460px; } }

/* 2) 面板四角 HUD 准星（贴合内衬描边环四角；hero/资金卡自有角花不叠加） */
.card:not(.hero-card):not(.funds-panel)::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: .8;
  background-image:
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil)),
    linear-gradient(var(--holo-foil), var(--holo-foil)), linear-gradient(var(--holo-foil), var(--holo-foil));
  background-repeat: no-repeat;
  background-size: 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px, 9px 1px, 1px 9px;
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
}

/* 3) 分区标题前导星芒 */
.section-head h2::before, .section-head h3::before {
  content: "✦"; margin-right: 7px; font-size: 10px; vertical-align: 1px;
  color: var(--seed-primary);
  text-shadow: 0 0 8px color-mix(in oklab, var(--seed-primary) 60%, transparent);
  animation: star-twinkle 3.6s ease-in-out infinite;
}
@keyframes star-twinkle { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* 4) 金箔数字前的小星徽 */
.metric strong::before, .bid-current strong::before {
  content: "✦"; margin-right: 5px; font-size: .48em; vertical-align: .5em;
  color: var(--seed-gold); -webkit-text-fill-color: var(--seed-gold);
  background: none;
  text-shadow: 0 0 10px color-mix(in oklab, var(--seed-gold) 55%, transparent);
  animation: star-twinkle 4.2s ease-in-out infinite;
}

/* 5) hero 肖像旁悬浮星芒（text-shadow 复制出第二颗） */
.player-stage { position: relative; }
.player-stage::after {
  content: "✦"; position: absolute; left: 128px; top: 6px; pointer-events: none;
  color: color-mix(in oklab, var(--seed-primary) 80%, #fff); font-size: 11px;
  text-shadow: -118px 128px 0 color-mix(in oklab, var(--seed-primary) 55%, transparent);
  animation: star-twinkle 3s ease-in-out infinite;
}
.live-mode .player-stage::after { left: 70px; top: 4px; text-shadow: -62px 96px 0 color-mix(in oklab, var(--seed-primary) 55%, transparent); }

/* 6) 登录卡：外圈旋转星环 + 漂浮符文 */
.login-card { position: relative; }
.login-card::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; opacity: .4; z-index: -1;
  border: 1px dashed color-mix(in oklab, var(--seed-primary) 35%, transparent);
  background: radial-gradient(3px 3px at 50% 0%, color-mix(in oklab, var(--seed-primary) 80%, #fff), transparent 70%);
  animation: halo-spin 60s linear infinite;
}
.login-card::after {
  content: "✦ ☾"; position: absolute; top: 14px; right: 18px; pointer-events: none;
  color: color-mix(in oklab, var(--seed-primary) 70%, #fff); font-size: 11px; letter-spacing: 6px;
  animation: rune-float 7s ease-in-out infinite;
}
@keyframes rune-float { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: .8; } }

/* 7) 现场动态条目星点 */
.feed-item p::before { content: "✦ "; color: color-mix(in oklab, var(--seed-primary) 75%, #fff); font-size: 9px; vertical-align: 1px; }

/* 8) 选手池分道标题尾随星线 */
.pool-lane-head::after { content: ""; flex: 1 1 auto; height: 1px; min-width: 8px; background: linear-gradient(90deg, var(--holo-line), transparent); }

/* 9) 品牌簇：单徽标轨道环随 v3.4 双logo簇移除，背光见 .brand-logos::before */

/* 10) 阶段/身份胶囊前导星点 */
.stage-chip::before, .role-chip::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; vertical-align: 1px;
  border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor;
}

/* 11) 卡牌宝石徽呼吸微光（错峰） */
.pool-avatar::before { animation: gem-breath 4.4s ease-in-out infinite; }
.pool-player:nth-child(3n) .pool-avatar::before { animation-delay: -1.4s; }
.pool-player:nth-child(3n+1) .pool-avatar::before { animation-delay: -2.9s; }
@keyframes gem-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* 12) 减少动效：关闭本轮新增动画 */
@media (prefers-reduced-motion: reduce) {
  .bgfx::before, .bgfx::after, .section-head h2::before, .section-head h3::before,
  .metric strong::before, .bid-current strong::before, .player-stage::after,
  .login-card::before, .login-card::after, .pool-avatar::before { animation: none; }
}

/* ========================================================================
   v3.2 主题纹饰 · 高亮框 / 顶栏栏纹 / 页面小点缀
   ======================================================================== */

/* 扫描高亮框所需的角度自定义属性 */
@property --scan { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes scan-turn { to { --scan: 360deg; } }

/* 1) 顶栏栏纹：底部菱格纹带 + 节点星点（shimmer 线之上） */
.topbar::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2.4px 2.4px at 50% 3px, color-mix(in oklab, var(--seed-primary) 85%, #fff), transparent 72%),
    radial-gradient(1.8px 1.8px at 25% 3px, color-mix(in oklab, var(--seed-primary) 60%, #fff), transparent 72%),
    radial-gradient(1.8px 1.8px at 75% 3px, color-mix(in oklab, var(--seed-primary) 60%, #fff), transparent 72%),
    repeating-linear-gradient(45deg, var(--holo-line) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, var(--holo-line) 0 1px, transparent 1px 9px);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
/* 品牌副标题月星缀字随 v3.5 品牌字移除 */

/* 2) 扫描高亮框：当前选手卡 / 我的席位 / hero 大卡（光弧沿边框巡行） */
.pool-player.current::after,
.captain-seat.mine::after,
.hero-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: conic-gradient(from var(--scan), transparent 0deg 290deg, color-mix(in oklab, var(--seed-primary) 90%, #fff) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: scan-turn 3.4s linear infinite;
}
.hero-card::after { animation-duration: 5.2s; }
.captain-seat.mine::after { animation-duration: 4.2s; }
/* 领先席位：右上角金色宝石徽 */
.captain-seat.leading:not(.mine)::after {
  content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 9px; pointer-events: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, var(--seed-gold), var(--btn-gold-deep));
  filter: drop-shadow(0 0 5px color-mix(in oklab, var(--seed-gold) 70%, transparent));
  animation: star-twinkle 2.6s ease-in-out infinite;
}

/* 3) 分区发丝线星座节点 + 分道星线节点 */
.section-head::after {
  background-image:
    radial-gradient(2px 2px at 25% 50%, color-mix(in oklab, var(--seed-primary) 80%, #fff), transparent 72%),
    radial-gradient(2px 2px at 75% 50%, color-mix(in oklab, var(--seed-primary) 80%, #fff), transparent 72%),
    linear-gradient(90deg, transparent, var(--holo-line) 18%, var(--holo-line) 82%, transparent);
}
.pool-lane-head::after {
  background-image:
    radial-gradient(1.6px 1.6px at 34% 50%, color-mix(in oklab, var(--seed-primary) 70%, #fff), transparent 72%),
    radial-gradient(1.6px 1.6px at 68% 50%, color-mix(in oklab, var(--seed-primary) 70%, #fff), transparent 72%),
    linear-gradient(90deg, var(--holo-line), transparent);
}

/* 4) 栏尾水印：左栏星簇 / 右栏月相 */
.left-rail, .right-rail { position: relative; }
.left-rail::after {
  content: "✦"; position: absolute; right: 10px; bottom: 6px; pointer-events: none;
  color: color-mix(in oklab, var(--seed-primary) 55%, #fff); font-size: 15px; opacity: .16;
  text-shadow: -14px 10px 0 currentColor, 10px 18px 0 currentColor;
}
.right-rail::after {
  content: "☾"; position: absolute; right: 8px; bottom: 2px; pointer-events: none;
  color: color-mix(in oklab, var(--seed-primary) 60%, #fff); font-size: 34px; opacity: .1;
}

/* 5) 资金条月相缀饰 + 指标卡角星 */
.funds-meta::after {
  content: "☾ ☽ ✦"; margin-left: 8px; color: color-mix(in oklab, var(--seed-primary) 65%, #fff);
  font-size: 9px; letter-spacing: 3px; opacity: .7; white-space: nowrap;
}
.metric::after {
  content: "✦"; position: absolute; right: 10px; bottom: 7px; pointer-events: none;
  color: color-mix(in oklab, var(--seed-primary) 70%, #fff); font-size: 10px; opacity: .5;
  animation: star-twinkle 4.8s ease-in-out infinite;
}

/* 6) 同步状态胶囊脉冲辉光（markup 自带 ● 点，这里只加呼吸光晕） */
.status-chip.live { animation: chip-glow 2.4s ease-in-out infinite; }
@keyframes chip-glow {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50%      { box-shadow: 0 0 12px -2px color-mix(in oklab, var(--seed-primary) 55%, transparent); }
}

/* 7) 等待态＋号外圈旋转星轨 */
.waiting-icon { position: relative; }
.waiting-icon::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  border: 1px dashed color-mix(in oklab, var(--seed-primary) 40%, transparent);
  background: radial-gradient(2.4px 2.4px at 50% 0%, color-mix(in oklab, var(--seed-primary) 85%, #fff), transparent 72%);
  animation: halo-spin 12s linear infinite;
}

/* 8) 减少动效：关闭本轮新增动画 */
@media (prefers-reduced-motion: reduce) {
  .pool-player.current::after, .captain-seat.mine::after, .hero-card::after,
  .captain-seat.leading:not(.mine)::after, .metric::after, .status-chip.live,
  .waiting-icon::before { animation: none; }
}

/* ========================================================================
   v3.10 主播视觉 · 顶栏居中字标 / 双栏顶胶带（统一尺度居中）/
        选手池抬头居中缩小双徽（狗/酸黄瓜与登录贴纸已按反馈移除）
   ------------------------------------------------------------------------
   全部为装饰层：pointer-events:none，不占功能布局；窄窗分级隐藏。
   ======================================================================== */

/* 1) 顶栏居中字标：设计系统 evlogo 法，绝对居中不占位 */
.topbar .evlogo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 54px; width: auto; z-index: 2; pointer-events: none;
  filter: brightness(1.06) saturate(1.05)
    drop-shadow(0 1px 2px rgb(0 0 0 / .6))
    drop-shadow(0 0 10px color-mix(in oklab, var(--seed-primary) 45%, transparent));
}

/* 2) 双栏顶胶带：左橙右粉，统一渲染宽度（=右栏宽360）居中放置，
      两带同尺度同字高，视觉对齐；不变形不裁切 */
.left-rail { display: flex; flex-direction: column; gap: 10px; }
.left-rail .captain-column { flex: 1 1 auto; height: auto; min-height: 0; }
.right-rail { grid-template-rows: auto auto auto auto; }
.live-mode .right-rail { grid-template-rows: auto auto auto minmax(0, 1fr); }
.rail-tape {
  display: block; width: min(100%, 360px); height: auto; margin: 0 auto; flex: none;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .45));
}

/* 3) 大厅内嵌·选手池抬头居中双徽：缩小版女生徽章并排居中站在池卡抬头空档
      （标题与已拍chip之间的留白），接替原狗/酸黄瓜立偶位 */
.player-pool-card { position: relative; }
.pool-badges {
  position: absolute; top: 5px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 12px; pointer-events: none; opacity: .97;
}
.pool-badges img {
  height: 34px; width: auto;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5))
    drop-shadow(0 0 8px color-mix(in oklab, var(--seed-primary) 26%, transparent));
}
.pool-badges img:first-child { transform: rotate(-4deg); }
.pool-badges img:last-child { transform: rotate(3deg); }

/* 4) 窄窗让位：藏居中字标与池卡居中双徽 */
@media (max-width: 1240px) {
  .topbar .evlogo, .pool-badges { display: none; }
}

/* Keep the connection readout stable while latency changes. */
#connection-status { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Keep a safe logical size while the grid fills the viewport in both axes.
   Dialogs/toasts are body siblings and retain real viewport coordinates. */
#app { container: page-layout / inline-size; }
.live-mode #app {
  position: fixed; left: 0; top: 0;
  width: var(--auction-width, 1600px); height: var(--auction-height, 900px); min-width: 0;
  transform: scale(var(--auction-scale, 1)); transform-origin: top left;
}
.live-mode #app > .app-shell { height: 100%; min-height: 0; }
.fullscreen-button { white-space: nowrap; }

/* Profile uploads stay inside the existing scrollable editor. */
.video-upload { padding: 12px; border: 1px solid var(--border-base); border-radius: 10px; min-width: 0; }
.video-upload input[type="file"] { width: 100%; min-width: 0; font-size: 13px; }
.video-upload progress { width: 100%; height: 8px; accent-color: #bba4e7; }
.video-upload-status { margin: 0; overflow-wrap: anywhere; }
.video-upload .button-row { flex-wrap: wrap; }
.video-upload [hidden] { display: none; }
/* Persistent original-quality screening, outside the scaled auction canvas. */
.sync-video { position:fixed; z-index:1200; inset:5vh max(16px,12vw) auto; max-height:90vh; overflow:auto; padding:20px; border:1px solid var(--accent, #a696dc); background:#151321f5; box-shadow:0 22px 90px #000a; }
.sync-video h2 { font-size:20px; margin:4px 0 0; }
.sync-video-screen { position:relative; margin:14px 0; background:#06060a; border-radius:12px; overflow:hidden; }
.sync-video video { display:block; width:100%; max-height:62vh; object-fit:contain; }
.sync-video-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sync-video-controls [data-video-seek] { flex:1 1 180px; min-width:80px; }
.sync-video-controls [data-video-volume] { width:80px; }
.sync-video-controls input { accent-color:#b6a6ed; }
.media-admin table small { display:block; margin-top:4px; color:var(--muted); }
.admin-layout > section { min-width:0; }
.media-admin .section-head { flex-wrap:wrap; }
.media-admin .metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.media-admin .button-row { margin-top:16px; }
.media-admin #media-viewers { max-width:130px; }
@media (max-width:640px) { .media-admin .metric-grid { grid-template-columns:1fr; } }
.sync-video-join { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
.sync-video.minimized { inset:auto 16px 16px auto; width:min(410px,calc(100vw - 32px)); padding:14px; }
.sync-video.minimized .sync-video-screen,.sync-video.minimized .sync-video-controls { display:none; }
@media(max-width:700px) { .sync-video { inset:12px 12px auto; padding:14px; max-height:calc(100dvh - 24px); } .sync-video video { max-height:52vh; } .sync-video-controls button { font-size:12px; padding:8px; } }
