﻿/* DOUJI 设计令牌 + 组件（暗色直播风，移动优先） */
:root {
  --bg: #05070b;
  --bg-2: #090d14;
  --card: #0f141c;
  --card-2: #141a25;
  --line: #1d2532;
  --line-2: #2a3341;
  --text: #f2f5fa;
  --muted: #8a94a6;
  --dim: #5b6678;
  --blue: #2f6bff;
  --blue-deep: #12285f;
  --red: #e11d48;
  --red-deep: #5c0f22;
  --gold: #f5b942;
  --ok: #22c55e;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1100px 600px at 50% -220px, #101a33 0%, var(--bg) 62%) no-repeat, var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
body.desktop-pad { padding-bottom: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(47, 107, 255, .45); }

.wrap { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1180px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.tiny { font-size: 12px; }
.bold { font-weight: 800; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.center { text-align: center; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 7, 11, .82);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-style: italic; font-weight: 900; font-size: 23px; letter-spacing: .04em; }
.brand em { color: var(--blue); font-style: normal; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.pill .coin { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(160deg, #ffd77a, var(--gold)); color: #4a3200; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.pill .chev { color: var(--dim); font-weight: 700; }

/* ---------- 顶部筛选 ---------- */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: 13px 15px; border: 0; background: none;
  color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer;
}
.tab.active { color: var(--text); }
.tab.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 3px;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--blue), #7ea6ff);
}

/* ---------- 卡片 / 区块 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.section { margin: 22px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 18px; font-weight: 900; letter-spacing: .01em; }
.section-title .arrow { color: var(--muted); font-weight: 700; }
.link { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------- 主视觉直播卡 ---------- */
.hero { margin-top: 16px; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.stage { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 0%, #1b2334 0%, #080b11 70%); overflow: hidden; }
.stage video, .stage canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-empty .dash {
  border: 1px dashed var(--line-2); border-radius: 14px; padding: 22px 26px; color: var(--muted);
  display: grid; gap: 8px; place-items: center; font-size: 13px; background: rgba(255, 255, 255, .015);
}
.badge-live {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px; background: var(--red);
  font-size: 11px; font-weight: 900; letter-spacing: .1em;
}
.badge-soon { background: #24303f; color: #c7d2e2; }
.badge-end { background: #232a35; color: #9aa6b8; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.viewers {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 800;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08);
}
.stage-tip { position: absolute; left: 12px; bottom: 10px; z-index: 3; font-size: 11px; color: rgba(255, 255, 255, .55); }

/* 蓝红对阵 */
.vs-band { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.vs-blue, .vs-red { padding: 14px 16px 16px; display: flex; align-items: center; gap: 12px; }
.vs-blue { background: linear-gradient(135deg, #102a6b, #0a1530); border-right: 1px solid rgba(255, 255, 255, .07); }
.vs-red { background: linear-gradient(225deg, #6b1027, #2e0a12); }
.vs-blue .side-label { color: #9fbaff; }
.vs-red .side-label { color: #ff9fb2; }
.side-label { font-size: 11px; letter-spacing: .16em; font-weight: 800; }
.side-name { font-size: 20px; font-weight: 900; line-height: 1.25; white-space: nowrap; }
.vs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: #0b0f16; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 11px; font-weight: 900; color: var(--muted); z-index: 2;
}
.crest {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; font-size: 19px; flex: none; border: 1px solid rgba(255, 255, 255, .14);
}
.crest.blue { background: linear-gradient(160deg, #2f6bff, #123a9e); color: #eaf1ff; }
.crest.red { background: linear-gradient(160deg, #e11d48, #8c0f2c); color: #ffe9ee; }
.crest.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; }

/* 打赏进度 */
.support-wrap { position: relative; border-top: 1px solid rgba(255, 255, 255, .06); background: #0a0f17; }.support-cap {
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  background: #0b1019; border: 1px solid var(--line-2); color: #cbd5e3;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; z-index: 2; white-space: nowrap;
}
.support { display: flex; height: 46px; align-items: stretch; }
.support > div { display: flex; align-items: center; gap: 8px; padding: 0 14px; font-weight: 900; font-size: 13px; min-width: 0; overflow: hidden; }
.support .b { background: linear-gradient(90deg, #1a49c4, #2f6bff); justify-content: flex-start; }
.support .r { background: linear-gradient(90deg, #c4163f, #8f0f2d); justify-content: flex-end; }
.support .b span, .support .r span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---------- 场次列表 ---------- */
.ev-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  margin-bottom: 10px;
}
.ev-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-side.right { justify-content: flex-end; }
.ev-side .names { min-width: 0; }
.ev-side .tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.ev-side .name { font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-side.blue .tag { color: #7ea6ff; }
.ev-side.blue .name { color: #cfe0ff; }
.ev-side.red .tag { color: #ff8ba4; }
.ev-side.red .name { color: #ffd3dc; }
.ev-vs { color: var(--dim); font-weight: 900; font-size: 13px; padding: 0 2px; }
.ev-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; border: 1px solid transparent;
}
.status.live { background: rgba(225, 29, 72, .14); color: #ff7d99; border-color: rgba(225, 29, 72, .35); }
.status.soon { background: rgba(34, 197, 94, .12); color: #5ee08c; border-color: rgba(34, 197, 94, .3); }
.status.wait { background: #1a202b; color: #94a1b4; border-color: #273140; }
.status.end { background: #161b24; color: #6f7a8c; border-color: #232a36; }

/* ---------- 按钮 / 表单 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  padding: 11px 16px; border-radius: 12px; font-weight: 800; cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #3a7bff, #1d51d8); border-color: #3a7bff; }
.btn.blue { background: linear-gradient(135deg, #2f6bff, #1740b0); border-color: #2f6bff; }
.btn.red { background: linear-gradient(135deg, #e11d48, #9c1033); border-color: #e11d48; }
.btn.ghost { background: transparent; }
.btn.gold { background: linear-gradient(135deg, #ffd07a, #e8a22b); border-color: #f0b64b; color: #2a1c00; }
.btn.sm { padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 16px; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 13px; border-radius: 12px;
  background: #0b1018; border: 1px solid var(--line-2); color: var(--text);
  font-size: 15px; outline: none; font-variant-numeric: tabular-nums;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .16); }
.input::placeholder { color: #4d5768; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12px; color: var(--dim); line-height: 1.5; }

/* ---------- 直播间 ---------- */
.live-grid { display: grid; gap: 16px; padding-top: 14px; }
@media (min-width: 1000px) {
  .live-grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
  .live-side { position: sticky; top: 74px; }
}
.chat { display: flex; flex-direction: column; height: 420px; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.msg { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.msg .nick { flex: none; font-weight: 900; font-size: 13px; color: #9db4e8; }
.msg .nick.blue { color: #7ea6ff; }
.msg .nick.red { color: #ff8ba4; }
.msg .body { word-break: break-word; color: #dbe2ee; }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-foot .input { padding: 10px 12px; }
.send { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); font-weight: 800; cursor: pointer; }

.tipbar { padding: 14px; }
.side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.side-toggle button {
  padding: 12px; border-radius: 12px; font-weight: 900; letter-spacing: .04em;
  border: 1px solid var(--line-2); background: #0b1018; color: #9fb0c8; cursor: pointer;
}
.side-toggle button.on.blue { background: linear-gradient(135deg, #2f6bff, #1740b0); border-color: #2f6bff; color: #fff; }
.side-toggle button.on.red { background: linear-gradient(135deg, #e11d48, #9c1033); border-color: #e11d48; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #0b1018; color: #b9c4d6; font-weight: 800; font-size: 13px; cursor: pointer;
}
.chip.on { border-color: var(--gold); color: #ffd98a; background: rgba(245, 185, 66, .1); }

.challenge-list { display: grid; gap: 10px; }
.chal { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 12px; }
.chal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.chal-nums { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.chal-num { padding: 10px 8px; border-radius: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.chal-num.blue { background: rgba(47, 107, 255, .13); color: #a8c4ff; border: 1px solid rgba(47, 107, 255, .3); }
.chal-num.red { background: rgba(225, 29, 72, .13); color: #ffb3c2; border: 1px solid rgba(225, 29, 72, .3); }
.chal-num small { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.chal-vs { color: var(--dim); font-weight: 900; }
.timer { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--gold); }

/* ---------- 表格 / 后台 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-size: 11px; letter-spacing: .08em; font-weight: 800; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid #141a24; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.tag-ok { color: var(--ok); font-weight: 800; }
.tag-warn { color: var(--gold); font-weight: 800; }
.tag-bad { color: #ff6b8a; font-weight: 800; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.kpi .v { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.kpi .k { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: .06em; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: #232c39; position: relative; cursor: pointer; transition: background .15s; }
.switch input:checked { background: var(--blue); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked::after { transform: translateX(17px); }

/* ---------- 底栏 ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(7, 10, 15, .92); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; color: var(--dim); font-size: 11px; font-weight: 700; }
.bottom-nav a.on { color: #7ea6ff; }
.bottom-nav svg { width: 22px; height: 22px; }

/* ---------- toast / 弹层 ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  padding: 11px 15px; border-radius: 12px; background: #111827; border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 14px; font-weight: 600; animation: rise .2s ease;
}
.toast.ok { border-color: rgba(34, 197, 94, .45); }
.toast.err { border-color: rgba(225, 29, 72, .55); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); z-index: 80; display: grid; place-items: end center; }
.sheet { width: min(560px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); animation: sheet .22s ease; max-height: 86vh; overflow: auto; }
@keyframes sheet { from { transform: translateY(30px); opacity: .6; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-title { font-size: 17px; font-weight: 900; }
.x { border: 0; background: #1a212c; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--muted); }

/* ---------- 钱包 ---------- */
.balance-card { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; border: 1px solid #2a2f1c; background: radial-gradient(120% 120% at 0% 0%, #2b2410 0%, #12100a 55%, #0d0f14 100%); }
.balance-card .big { font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.balance-card .unit { font-size: 14px; color: var(--gold); font-weight: 800; margin-left: 6px; }
.balance-card .frozen { font-size: 12px; color: var(--muted); margin-top: 6px; }
.seg { display: flex; gap: 6px; background: #0b1018; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 800; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--card-2); color: var(--text); }
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pkg { padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #0b1018; cursor: pointer; text-align: left; }
.pkg.on { border-color: var(--gold); background: rgba(245, 185, 66, .08); }
.pkg .c { font-size: 20px; font-weight: 900; }
.pkg .u { font-size: 12px; color: var(--muted); font-weight: 700; }
.addr { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: #0b1018; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #141a24; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .amt { font-weight: 900; font-variant-numeric: tabular-nums; }
.plus { color: var(--ok); }
.minus { color: #ff8ba4; }

/* 登录 */
.auth { max-width: 400px; margin: 8vh auto 0; padding: 0 18px; }
.auth .logo { font-size: 40px; font-weight: 900; font-style: italic; letter-spacing: .02em; }
.auth .logo em { color: var(--blue); font-style: normal; }
.auth p { color: var(--muted); font-size: 13px; margin: 6px 0 26px; }

/* ---------- 场次卡（列表外框） ---------- */
.ev-card {
  padding: 14px 14px 12px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer;
  transition: border-color .15s ease;
}
.ev-card:hover { border-color: var(--line-2); }
.ev-card .ev-row { padding: 0; background: none; border: 0; margin: 0; }
.ev-card .ev-meta { margin-top: 12px; }

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

/* ---------- 斗鸡徽记 ---------- */
.vs-band { position: relative; }
.vs-blue, .vs-red {
  position: relative; overflow: hidden; min-height: 112px;
  padding: 14px 16px 14px 104px;
}
.vs-red { padding: 14px 104px 14px 16px; justify-content: flex-end; }
.rooster {
  --r1: #2f6bff; --r2: #16389a; --r3: #7ea6ff;
  display: block; width: 104px; height: 104px; flex: none;
  filter: drop-shadow(0 8px 18px rgba(47, 107, 255, .28));
}
.rooster.red { --r1: #e11d48; --r2: #7c0e26; --r3: #ff8ba4; filter: drop-shadow(0 8px 18px rgba(225, 29, 72, .25)); }
.rooster svg, .rooster img { width: 100%; height: 100%; display: block; object-fit: contain; }
.rooster .body { fill: var(--r1); }
.rooster .tail { fill: var(--r2); }
.rooster .comb { fill: var(--r2); }
.rooster .beak { fill: var(--r3); }
.rooster .wattle { fill: var(--r2); }
.rooster .wing { fill: var(--r2); opacity: .55; }
.rooster .leg { fill: none; stroke: var(--r3); stroke-width: 4; stroke-linecap: round; }
.rooster .eye { fill: #05070b; }
.vs-blue > .rooster { position: absolute; left: 8px; bottom: 0; }
.vs-red > .rooster { position: absolute; right: 8px; bottom: 0; }
.vs-blue > :not(.rooster), .vs-red > :not(.rooster) { position: relative; z-index: 1; }
.ev-side .rooster { width: 56px; height: 56px; }
.rooster .feather { fill: none; stroke: rgba(5, 7, 11, .28); stroke-width: 2.4; stroke-linecap: round; }

/* 主视觉底部 CTA */
.hero-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line); background: #0b1018;
}

/* ---------- 弹幕层 ---------- */
.stage .danmaku-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.danmaku {
  position: absolute; left: 100%; white-space: nowrap;
  font-size: 14px; font-weight: 800; color: #eaf1ff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
  animation-name: danmaku-fly; animation-timing-function: linear; animation-fill-mode: forwards;
  will-change: transform;
}
.danmaku.blue { color: #a9c6ff; }
.danmaku.red { color: #ffa9bc; }
@keyframes danmaku-fly {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100vw - 100%)); }
}








.rooster .crest-back { fill: var(--r2); }
.rooster .neck { fill: var(--r1); }
.rooster .head { fill: var(--r1); }
.rooster .crest { fill: var(--r2); }
.rooster .beak { fill: var(--r3); }
.rooster .beak-line { fill: none; stroke: var(--r2); stroke-width: 1.6; opacity: .75; }
.rooster .wattle { fill: var(--r2); }
.rooster .cheek { fill: var(--r3); opacity: .32; }
.rooster .eye { fill: #05070b; }
.rooster .brow { fill: none; stroke: var(--r2); stroke-width: 2.4; stroke-linecap: round; }
.rooster .strand { fill: none; stroke: var(--r2); stroke-width: 2; opacity: .45; stroke-linecap: round; }
.rooster .neck-tip { fill: var(--r2); opacity: .9; }
.rooster .shine { fill: var(--r3); opacity: .35; }


/* ============ 对齐设计稿 v2（细节补齐） ============ */
:root { --card: #0b0f16; --line: #1a2130; }

.wrap { padding: 0 12px; }
.topbar-in { height: 56px; }
.brand { font-size: 22px; letter-spacing: .01em; }

/* 五个 tab 均分整行，选中下划线居中 */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.tab { padding: 13px 0; text-align: center; font-size: 15px; font-weight: 600; }
.tab.active::after {
  left: 50%; right: auto; width: 42px; height: 3px; margin-left: -21px;
  background: #2f6bff; border-radius: 3px;
}

/* 卡片更接近稿子的圆角与描边 */
.hero { border-radius: 16px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.ev-card { border-radius: 14px; }
.section-title { font-size: 19px; }
.link { font-size: 13px; }

/* 视频区：顶部光束 + 舞台圆台 */
.stage {
  background:
    radial-gradient(58% 50% at 50% 0%, rgba(150, 185, 255, .16), rgba(5, 7, 11, 0) 70%),
    radial-gradient(120% 100% at 50% 0%, #141b28 0%, #070a10 72%);
}
.stage-empty .dash { border-color: rgba(140, 160, 200, .32); background: rgba(255, 255, 255, .02); }
.stage-empty::after {
  content: ""; position: absolute; left: 50%; bottom: 6%;
  width: 42%; height: 9%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 62% at 50% 28%, rgba(96, 128, 200, .32), rgba(8, 11, 17, .92) 72%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(160, 190, 255, .22);
}

/* 蓝红斜切（露出深色楔口，而不是画一条线） */
.vs-band { background: #0a0e16; }
.vs-blue { clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.vs-red { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.support { position: relative; background: #0a0e16; }
.support .b { clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.support .r { clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%); }
.vs-badge {
  width: 42px; height: 42px; font-size: 12px; font-weight: 800;
  background: #0b0f16; border: 2px solid rgba(255, 255, 255, .28);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5); z-index: 4;
}
.side-name { font-size: 23px; }
.side-label { font-size: 12px; }
.support-cap { font-size: 12px; padding: 5px 12px; }

/* 状态胶囊带圆点 */
.status i.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.status.soon i.chip-dot { background: #4ade80; }
.status.wait i.chip-dot { background: #6b7688; }
.status.end i.chip-dot { background: #55606f; }

/* 列表行：队名更亮，边距更紧凑 */
.ev-side .name { font-size: 17px; }
.ev-side.blue .name { color: #9dbcff; }
.ev-side.red .name { color: #ff9fb6; }
.ev-card { padding: 13px 13px 11px; }

/* 底栏选中色 */
.bottom-nav a.on { color: #4c8dff; }
.bottom-nav svg { width: 23px; height: 23px; }

/* 顶栏余额胶囊的卡包图标 */
.wallet-ico { width: 18px; height: 18px; display: inline-flex; }
.wallet-ico svg { width: 100%; height: 100%; }



/* 细节收尾：VS 徽章金属感 + 行内边距 + 名字字号 */
.vs-badge {
  background: linear-gradient(180deg, #222b3a, #0a0e15 62%);
  border-color: rgba(255, 255, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(0, 0, 0, .55);
  color: #dfe6f2;
}
.ev-card { padding: 14px 14px 12px; }
.ev-side .name { font-size: 18px; }
.hero { box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* 直播画面上的弹幕输入条 */
.stage-wrap { position: relative; }
.danmaku-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: flex; gap: 8px; align-items: center; }
.dm-input {
  flex: 1; min-width: 0; padding: 9px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 7, 11, .6);
  backdrop-filter: blur(10px); color: var(--text); font-size: 13px; outline: none;
}
.dm-input::placeholder { color: rgba(210, 220, 238, .55); }
.dm-input:focus { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); }
.dm-send {
  flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid #3a7bff;
  background: linear-gradient(135deg, #3a7bff, #1d51d8); color: #fff;
  font-weight: 800; font-size: 13px; cursor: pointer;
}
.dm-send:disabled { opacity: .5; cursor: not-allowed; }

/* 后台筛选按钮不换行 */
.seg button { white-space: nowrap; }
#wdFilter, #orderFilter { flex: none; }

/* 我的 · 财务明细 */
.fin-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(102px, 1fr)); gap: 8px; }
.fin-cell { padding: 10px 12px; border-radius: 12px; background: #0a0f17; border: 1px solid #1a2330; }
.fin-cell .k { font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.fin-cell .v { font-size: 17px; font-weight: 900; margin-top: 3px; font-variant-numeric: tabular-nums; }
.fin-cell .v.plus { color: #4ade80; }
.fin-cell .v.minus { color: #ff8ba4; }
.fin-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #131a25; }
.fin-item:last-child { border-bottom: 0; }
.fin-item .t { font-size: 13px; font-weight: 700; }
.fin-item .d { font-size: 11px; color: var(--dim); margin-top: 2px; }
.fin-item .a { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }




/* 公屏踢人按钮 */
.msg { align-items: center; }
.msg .kick {
  margin-left: auto; flex: none; border: 0; background: none; padding: 0 2px;
  color: #4a5566; font-size: 13px; line-height: 1; cursor: pointer;
}
.msg .kick:hover { color: #ff8ba4; }

/* 选链 / 提现网络：选中态用链品牌色，区分度拉满 */
#chainSeg, #wdNet {
  background: #070c14;
  border: 1px solid #1a2432;
  padding: 4px;
  gap: 6px;
}
#chainSeg button, #wdNet button {
  padding: 10px 0;
  border-radius: 9px;
  font-weight: 900;
  letter-spacing: .03em;
  color: #8793a6;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
#chainSeg button::before, #wdNet button::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
  background: currentColor;
  opacity: .5;
}
#chainSeg button:hover, #wdNet button:hover { color: #dbe6f5; }
#chainSeg button.on[data-chain="TRC20"], #wdNet button.on[data-net="TRC20"] {
  background: linear-gradient(135deg, #ff5a5f, #d92c3a);
  color: #fff;
  box-shadow: 0 8px 22px rgba(217, 44, 58, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}
#chainSeg button.on[data-chain="TRC20"]::before, #wdNet button.on[data-net="TRC20"]::before { opacity: 1; }
#chainSeg button.on[data-chain="BSC"], #wdNet button.on[data-net="BSC"] {
  background: linear-gradient(135deg, #ffd34d, #f0b90b);
  color: #241a00;
  box-shadow: 0 8px 22px rgba(240, 185, 11, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#chainSeg button.on[data-chain="BSC"]::before, #wdNet button.on[data-net="BSC"]::before { opacity: 1; }

/* 套餐赠送标签 */
.pkg .bonus-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #241a00;
  background: linear-gradient(135deg, #ffd34d, #f0b90b);
  vertical-align: 2px;
}

/* 打赏进度条：宽度过渡 + 流光 */
.support > div {
  position: relative;
  overflow: hidden;
  transition: width .7s cubic-bezier(.22, .61, .36, 1);
}
.support > div::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .18) 50%, transparent 75%);
  animation: supportSheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
.support > div > span { position: relative; z-index: 1; }
@keyframes supportSheen {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .support > div { transition: none; }
  .support > div::after { animation: none; }
}

/* 斗鸡头像：每隔几秒扭头 + 眼睛高光 */
.vs-band .rooster { position: relative; }
.vs-band .rooster img {
  transform-origin: 50% 92%;
  will-change: transform;
  animation: headTurnBlue 6.4s cubic-bezier(.45, 0, .25, 1) infinite;
}
.vs-band .rooster.red img { animation-name: headTurnRed; }

.vs-band .rooster::after {
  content: '';
  position: absolute;
  left: var(--eye-x, 55%);
  top: var(--eye-y, 40%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  animation: eyeGlint 6.4s ease-in-out infinite;
}
.vs-band .rooster.blue { --eye-x: 59%; --eye-y: 40%; }
.vs-band .rooster.red { --eye-x: 51%; --eye-y: 40%; }

@keyframes headTurnBlue {
  0%, 55%, 100% { transform: rotate(0deg) translateX(0); }
  63% { transform: rotate(-5deg) translateX(4px); }
  73% { transform: rotate(-5deg) translateX(4px); }
  82% { transform: rotate(0deg) translateX(0); }
}
@keyframes headTurnRed {
  0%, 55%, 100% { transform: rotate(0deg) translateX(0); }
  63% { transform: rotate(5deg) translateX(-4px); }
  73% { transform: rotate(5deg) translateX(-4px); }
  82% { transform: rotate(0deg) translateX(0); }
}
@keyframes eyeGlint {
  0%, 58%, 100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scale(.6); }
  64% { opacity: .95; transform: translate(-50%, -50%) translateX(-1.5px) scale(1); }
  72% { opacity: .7; transform: translate(-50%, -50%) translateX(1.5px) scale(.9); }
  78% { opacity: 0; transform: translate(-50%, -50%) translateX(2.5px) scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .vs-band .rooster img { animation: none; }
  .vs-band .rooster::after { animation: none; }
}

/* 改为：每隔几秒扭头看向场外/观众，眼神跟着扫出去 */
.vs-band .rooster img { animation: headTurnOutBlue 7.2s cubic-bezier(.45, 0, .25, 1) infinite; }
.vs-band .rooster.red img { animation-name: headTurnOutRed; }
.vs-band .rooster.blue { --glint-dir: -1; }
.vs-band .rooster.red { --glint-dir: 1; }
.vs-band .rooster::after { animation: eyeGlintOut 7.2s ease-in-out infinite; }

@keyframes headTurnOutBlue {
  0%, 48%, 100% { transform: rotate(0deg) translateX(0); }
  57% { transform: rotate(8deg) translateX(-6px); }
  68% { transform: rotate(8deg) translateX(-6px); }
  80% { transform: rotate(0deg) translateX(0); }
}
@keyframes headTurnOutRed {
  0%, 48%, 100% { transform: rotate(0deg) translateX(0); }
  57% { transform: rotate(-8deg) translateX(6px); }
  68% { transform: rotate(-8deg) translateX(6px); }
  80% { transform: rotate(0deg) translateX(0); }
}
@keyframes eyeGlintOut {
  0%, 53%, 100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scale(.6); }
  59% { opacity: .95; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -2px)) scale(1); }
  69% { opacity: .75; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -3px)) scale(.9); }
  76% { opacity: 0; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -1px)) scale(.7); }
}

/* 外看幅度再大一点，停留更久 */
.vs-band .rooster img { animation-name: headGlanceBlue; }
.vs-band .rooster.red img { animation-name: headGlanceRed; }
.vs-band .rooster::after { animation-name: eyeGlance; }
@keyframes headGlanceBlue {
  0%, 46%, 100% { transform: rotate(0deg) translateX(0); }
  56% { transform: rotate(10deg) translateX(-8px); }
  70% { transform: rotate(10deg) translateX(-8px); }
  86% { transform: rotate(0deg) translateX(0); }
}
@keyframes headGlanceRed {
  0%, 46%, 100% { transform: rotate(0deg) translateX(0); }
  56% { transform: rotate(-10deg) translateX(8px); }
  70% { transform: rotate(-10deg) translateX(8px); }
  86% { transform: rotate(0deg) translateX(0); }
}
@keyframes eyeGlance {
  0%, 50%, 100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scale(.6); }
  57% { opacity: .95; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -2.5px)) scale(1.05); }
  68% { opacity: .8; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -3.5px)) scale(.95); }
  76% { opacity: 0; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -1px)) scale(.7); }
}

/* 更明显：先轻微晃头，再每隔几秒大幅往外扫一眼 */
.vs-band .rooster img { animation: headLookBlue 5.6s cubic-bezier(.45, 0, .25, 1) infinite; }
.vs-band .rooster.red img { animation-name: headLookRed; }
.vs-band .rooster::after { animation: eyeLook 5.6s ease-in-out infinite; }
@keyframes headLookBlue {
  0% { transform: rotate(0deg) translateX(0); }
  6% { transform: rotate(2deg) translateX(-1px); }
  12% { transform: rotate(0deg) translateX(0); }
  18% { transform: rotate(-1.5deg) translateX(1px); }
  24% { transform: rotate(0deg) translateX(0); }
  32% { transform: rotate(16deg) translateX(-13px); }
  48% { transform: rotate(16deg) translateX(-13px); }
  62% { transform: rotate(0deg) translateX(0); }
  100% { transform: rotate(0deg) translateX(0); }
}
@keyframes headLookRed {
  0% { transform: rotate(0deg) translateX(0); }
  6% { transform: rotate(-2deg) translateX(1px); }
  12% { transform: rotate(0deg) translateX(0); }
  18% { transform: rotate(1.5deg) translateX(-1px); }
  24% { transform: rotate(0deg) translateX(0); }
  32% { transform: rotate(-16deg) translateX(13px); }
  48% { transform: rotate(-16deg) translateX(13px); }
  62% { transform: rotate(0deg) translateX(0); }
  100% { transform: rotate(0deg) translateX(0); }
}
@keyframes eyeLook {
  0%, 26%, 100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scale(.6); }
  33% { opacity: .95; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -4px)) scale(1.1); }
  46% { opacity: .8; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -5px)) scale(.95); }
  56% { opacity: 0; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -2px)) scale(.7); }
}

/* 让鸡一直有轻微动作，并且每隔约 5 秒明显往外扫一眼 */
.vs-band .rooster img { animation: headAliveBlue 5.4s cubic-bezier(.4, 0, .25, 1) infinite; }
.vs-band .rooster.red img { animation-name: headAliveRed; }
.vs-band .rooster::after { animation: eyeAlive 5.4s ease-in-out infinite; }
@keyframes headAliveBlue {
  0% { transform: rotate(0deg) translateX(0); }
  6% { transform: rotate(2.2deg) translateX(-1px); }
  12% { transform: rotate(0deg) translateX(0); }
  18% { transform: rotate(-1.6deg) translateX(1px); }
  24% { transform: rotate(0deg) translateX(0); }
  31% { transform: rotate(17deg) translateX(-14px); }
  45% { transform: rotate(17deg) translateX(-14px); }
  58% { transform: rotate(0deg) translateX(0); }
  66% { transform: rotate(1.4deg) translateX(0); }
  74% { transform: rotate(0deg) translateX(0); }
  82% { transform: rotate(-1.2deg) translateX(0); }
  90% { transform: rotate(0deg) translateX(0); }
  100% { transform: rotate(0deg) translateX(0); }
}
@keyframes headAliveRed {
  0% { transform: rotate(0deg) translateX(0); }
  6% { transform: rotate(-2.2deg) translateX(1px); }
  12% { transform: rotate(0deg) translateX(0); }
  18% { transform: rotate(1.6deg) translateX(-1px); }
  24% { transform: rotate(0deg) translateX(0); }
  31% { transform: rotate(-17deg) translateX(14px); }
  45% { transform: rotate(-17deg) translateX(14px); }
  58% { transform: rotate(0deg) translateX(0); }
  66% { transform: rotate(-1.4deg) translateX(0); }
  74% { transform: rotate(0deg) translateX(0); }
  82% { transform: rotate(1.2deg) translateX(0); }
  90% { transform: rotate(0deg) translateX(0); }
  100% { transform: rotate(0deg) translateX(0); }
}
@keyframes eyeAlive {
  0%, 24%, 100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scale(.6); }
  32% { opacity: .98; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -4px)) scale(1.15); }
  44% { opacity: .85; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -5px)) scale(1); }
  54% { opacity: 0; transform: translate(-50%, -50%) translateX(calc(var(--glint-dir, 1) * -2px)) scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  .vs-band .rooster img { animation-name: headAliveBlue; animation-duration: 5.4s; }
  .vs-band .rooster.red img { animation-name: headAliveRed; }
  .vs-band .rooster::after { animation-name: eyeAlive; animation-duration: 5.4s; }
}

/* 蓝红挑战：一眼分蓝红 */
.chal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid #1e2a3d;
  background: linear-gradient(90deg, rgba(47, 107, 255, .22) 0%, rgba(47, 107, 255, .05) 42%, rgba(225, 29, 72, .05) 58%, rgba(225, 29, 72, .22) 100%);
  overflow: hidden;
}
.chal-head::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f6bff, #8fb3ff 45%, #ff8ba4 55%, #e11d48);
}
.chal-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
}
.chal-words { color: #eaf1ff; }
.chal-words .b { color: #6ea0ff; }
.chal-words .r { color: #ff6f92; }
.chal-dot {
  width: 9px; height: 9px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04), 0 0 14px currentColor;
}
.chal-dot.blue { background: #2f6bff; color: #2f6bff; }
.chal-dot.red { background: #e11d48; color: #e11d48; }

/* 直播间只留余额条 */
.live-balance {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
}

/* 发起挑战：两边注额中间的 VS */
.chal-amounts { display: flex; align-items: flex-end; gap: 8px; }
.chal-amounts .field { flex: 1; min-width: 0; margin: 0; }
.chal-amounts .chal-vs {
  order: 2;
  flex: none;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #dbe6f5;
  background: radial-gradient(circle at 35% 30%, #24324a, #0b1019 70%);
  border: 1px solid #33415a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
@media (max-width: 380px) {
  .chal-amounts .chal-vs { width: 30px; height: 30px; font-size: 10px; }
}

/* 挑战卡：按发起方上色 */
.chal { transition: border-color .2s ease, background .2s ease; }
.chal.blue {
  border-color: rgba(47, 107, 255, .42) !important;
  background: linear-gradient(180deg, rgba(47, 107, 255, .14), rgba(10, 16, 26, .92) 58%) !important;
}
.chal.red {
  border-color: rgba(225, 29, 72, .42) !important;
  background: linear-gradient(180deg, rgba(225, 29, 72, .14), rgba(10, 16, 26, .92) 58%) !important;
}
.chal-side {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.chal-side.blue { color: #8fb3ff; background: rgba(47, 107, 255, .12); border: 1px solid rgba(47, 107, 255, .45); }
.chal-side.red { color: #ff8ba4; background: rgba(225, 29, 72, .12); border: 1px solid rgba(225, 29, 72, .45); }

/* 挑战卡片里的 VS 居中放在两边注额中间 */
.chal-nums .chal-vs {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #dbe6f5;
  background: radial-gradient(circle at 35% 30%, #24324a, #0b1019 70%);
  border: 1px solid #33415a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

/* 挑战卡：更明显的阵营底色 + 流光 */
.chal { position: relative; overflow: hidden; }
.chal.blue {
  border-color: rgba(47, 107, 255, .6) !important;
  background: linear-gradient(135deg, rgba(47, 107, 255, .30), rgba(9, 15, 25, .94) 64%) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .12), 0 10px 30px rgba(47, 107, 255, .14);
}
.chal.red {
  border-color: rgba(225, 29, 72, .6) !important;
  background: linear-gradient(135deg, rgba(225, 29, 72, .30), rgba(9, 15, 25, .94) 64%) !important;
  box-shadow: inset 0 0 0 1px rgba(225, 29, 72, .12), 0 10px 30px rgba(225, 29, 72, .14);
}
.chal::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 260% 100%;
  background-position: 220% 0;
  animation: chalShine 5.2s ease-in-out infinite;
  z-index: 0;
}
.chal.blue::before {
  background-image: linear-gradient(105deg, transparent 34%, rgba(140, 180, 255, .22) 50%, transparent 66%);
}
.chal.red::before {
  background-image: linear-gradient(105deg, transparent 34%, rgba(255, 140, 170, .20) 50%, transparent 66%);
}
.chal > * { position: relative; z-index: 1; }
@keyframes chalShine {
  0% { background-position: 220% 0; }
  55%, 100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chal::before { animation: none; opacity: 0; }
}

/* 阵营底色更实：蓝就是蓝，红就是红 */
.chal.blue {
  background: linear-gradient(135deg, rgba(47, 107, 255, .58), rgba(10, 20, 40, .97) 72%) !important;
}
.chal.red {
  background: linear-gradient(135deg, rgba(225, 29, 72, .58), rgba(32, 8, 15, .97) 72%) !important;
}

/* 只有进行中的挑战才闪；过期/已结算/已取消不闪 */
.chal::before { animation: none; opacity: 0; }
.chal.pending::before, .chal.accepted::before {
  opacity: 1;
  animation: chalShine 5.2s ease-in-out infinite;
}

/* 红方发起的卡：红方注额排前面；金额框颜色加重 */
.chal.red .chal-nums .chal-num.red { order: 1; }
.chal.red .chal-nums .chal-vs { order: 2; }
.chal.red .chal-nums .chal-num.blue { order: 3; }

.chal-num.blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, .55), rgba(23, 55, 130, .42)) !important;
  border-color: rgba(96, 145, 255, .62) !important;
  color: #dbe7ff !important;
}
.chal-num.red {
  background: linear-gradient(135deg, rgba(225, 29, 72, .52), rgba(120, 12, 35, .42)) !important;
  border-color: rgba(255, 110, 140, .58) !important;
  color: #ffd7e0 !important;
}

/* 注额框用实色，放在任何底色上都不串色 */
.chal-num.blue {
  background: linear-gradient(135deg, #2f6bff, #17337a) !important;
  border-color: #6b9bff !important;
  color: #fff !important;
}
.chal-num.red {
  background: linear-gradient(135deg, #e11d48, #7c0e26) !important;
  border-color: #ff7d9d !important;
  color: #fff !important;
}
.chal-num small { color: rgba(255, 255, 255, .78) !important; }

/* ============ 全鸡剪影：位置/尺寸修正（手机端也看得见） ============ */
.vs-blue > .rooster,
.vs-red > .rooster {
  position: absolute !important;
  width: 96px;
  height: 122px;
  bottom: 0;
  z-index: 0;
}
.vs-blue > .rooster { left: 10px; }
.vs-red > .rooster { right: 10px; left: auto; }
.vs-blue, .vs-red { min-height: 132px; }
.vs-blue { padding-left: 112px; }
.vs-red { padding-right: 112px; }
.ev-side .rooster { width: 54px; height: 66px; }
.ev-side .rooster img { object-fit: contain; }
.vs-band .rooster::after { display: none !important; }
.vs-band .rooster img { animation: none !important; }
@media (max-width: 420px) {
  .vs-blue > .rooster, .vs-red > .rooster { width: 84px; height: 108px; }
  .vs-blue, .vs-red { min-height: 118px; }
  .vs-blue { padding-left: 98px; }
  .vs-red { padding-right: 98px; }
}

/* 3D 斗鸡画布 */
.rooster canvas { width: 100%; height: 100%; display: block; }
.rooster.has3d img { display: none !important; }
.rooster.has3d { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }

/* 主播顶栏「开播」入口 */
.pill.go-live {
  color: #9fc0ff;
  border-color: rgba(47, 107, 255, .55);
  background: rgba(47, 107, 255, .12);
  font-weight: 800;
}

/* 直播间全屏：视频铺满 + 公屏浮层 */
.stage-wrap { position: relative; }
.fs-ui {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 40;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.stage-wrap.fs .fs-ui { display: flex; }
.fs-top, .fs-bottom {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .62), transparent);
}
.fs-bottom { background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent); }
.fs-top strong { color: #fff; font-size: 15px; text-shadow: 0 1px 3px #000; }
.fs-chat {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  max-height: 52%;
  padding: 0 14px;
  overflow: hidden;
}
.fs-msg {
  align-self: flex-start;
  max-width: 92%;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .32);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}
.fs-msg.sys { color: #9fc0ff; background: rgba(47, 107, 255, .25); }
.stage-wrap:fullscreen { background: #000; }
.stage-wrap:fullscreen .stage { height: 100vh; border-radius: 0; }
.stage-wrap:fullscreen .danmaku-bar { display: none; }
.msg.sys { justify-content: center; }
.msg.sys .body {
  color: #9fc0ff;
  background: rgba(47, 107, 255, .12);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}

/* ============ 开播控制台 UI ============ */
.streamer-page { padding-top: 14px; }
.sh-hero {
  position: relative;
  border-radius: 22px;
  padding: 22px 20px 18px;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    radial-gradient(620px 220px at 88% -30%, rgba(59, 130, 246, .38), transparent 62%),
    radial-gradient(420px 200px at -10% 120%, rgba(225, 29, 72, .22), transparent 60%),
    linear-gradient(160deg, #0c1424, #080c14 72%);
  border: 1px solid rgba(90, 130, 220, .26);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}
.sh-kicker { font-size: 11px; letter-spacing: .24em; color: #8fb3ff; font-weight: 900; }
.sh-hero h1 { margin: 8px 0 6px; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.sh-hero p { margin: 0; color: #8a94a6; font-size: 13px; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sh-tags span {
  font-size: 11px; padding: 5px 10px; border-radius: 999px;
  color: #cbd5e3; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.streamer-page .card {
  border-radius: 18px;
  background: linear-gradient(180deg, #0d1420, #0a0f18);
  border: 1px solid #1b2433;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
.streamer-page .section-title { font-size: 18px; }
.streamer-page .btn { border-radius: 12px; }
.streamer-page .btn.primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 8px 22px rgba(47, 107, 255, .28);
}
.streamer-page .btn.gold {
  background: linear-gradient(135deg, #f6c453, #e19a13);
  color: #1a1204;
  box-shadow: 0 8px 22px rgba(245, 185, 66, .22);
}
.streamer-page .ev-card { position: relative; overflow: hidden; padding-left: 18px !important; }
.streamer-page .ev-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #39445a; }
.streamer-page .ev-card.st-live::before { background: linear-gradient(#22c55e, #16a34a); }
.streamer-page .ev-card.st-scheduled::before { background: linear-gradient(#f5b942, #d97706); }
.streamer-page .ev-card.st-ended::before { background: #39445a; }
.streamer-page .ev-title { font-size: 16px; }
.streamer-page .ev-actions .btn { padding: 7px 12px; }

/* 直播间工具栏：一排齐，不再换行 */
.live-toolbar { display: flex; align-items: stretch; gap: 6px; }
.live-toolbar .seg { flex: none; }
.live-toolbar .seg button { padding: 0 12px; font-size: 12px; }
.live-toolbar .tool-btn {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #1c2534;
  background: #0d131d;
  color: #cbd5e3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-toolbar .tool-btn.on {
  background: rgba(47, 107, 255, .16);
  border-color: rgba(47, 107, 255, .5);
  color: #9fc0ff;
}
.live-toolbar .tool-btn.hidden { display: none; }

/* 开播弹窗视频 + 全屏 */
.web-video { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.web-video video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #000; }
.web-video:fullscreen video { width: 100vw; height: 100vh; object-fit: contain; }
.web-video.fake-fs {
  position: fixed; inset: 0; z-index: 9999; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
.web-video.fake-fs video { width: 100vw; height: 100vh; object-fit: contain; }
.web-fs {
  position: absolute; right: 10px; bottom: 10px;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700;
}
.web-video.fake-fs .web-fs { z-index: 10000; }

/* 场次操作分区 */
.ev-primary, .ev-judge, .ev-secondary { display: flex; gap: 8px; margin-top: 10px; }
.ev-primary .btn, .ev-judge .btn { flex: 1; }
.ev-secondary .btn { flex: 1; font-size: 12px; padding: 7px 10px; }

/* 直播间假全屏兜底 */
.stage-wrap.fake-fs {
  position: fixed; inset: 0; z-index: 9998; background: #000;
}
.stage-wrap.fake-fs .stage { height: 100vh; border-radius: 0; }
.stage-wrap.fake-fs .danmaku-bar { display: none; }

/* ------------------------- 首页公告 / 规则 ------------------------- */
.home-main { padding-top: 14px; padding-bottom: 30px; }
.home-hero { padding: 22px 18px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(245,185,66,.12), rgba(5,7,11,.2) 60%); }
.hero-kicker { font-size: 11px; letter-spacing: .16em; color: var(--gold, #f5b942); text-transform: uppercase; }
.home-title { margin: 8px 0 6px; font-size: 26px; line-height: 1.2; }
.home-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero-notice { margin-top: 16px; }
.hero-notice-link { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(245,185,66,.28); text-decoration: none; color: var(--text); }
.hero-notice-link strong { font-size: 14px; }
.hero-notice-link .chev { margin-left: auto; color: var(--muted); }
.hero-pin, .badge-pin { flex: none; padding: 2px 7px; border-radius: 999px; background: rgba(245,185,66,.16); border: 1px solid rgba(245,185,66,.4); color: var(--gold, #f5b942); font-size: 10px; font-weight: 700; }
.notice-tabs { margin-bottom: 10px; overflow-x: auto; }
.notice-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, rgba(255,255,255,.02)); }
.notice-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.notice-item:last-child { border-bottom: 0; }
.notice-item:active { background: rgba(255,255,255,.04); }
.notice-main { min-width: 0; flex: 1; }
.notice-title { font-size: 14px; font-weight: 700; display: flex; gap: 7px; align-items: center; }
.notice-summary { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice-meta { margin-top: 7px; font-size: 11px; color: var(--muted); }
.notice-item .chev { align-self: center; color: var(--muted); }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rules-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; min-height: 92px; border-radius: 14px; border: 1px solid var(--line); background: var(--card, rgba(255,255,255,.02)); text-decoration: none; color: var(--text); }
.rules-card strong { font-size: 14px; }
.rules-card span:not(.chev) { color: var(--muted); font-size: 11px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rules-card .chev { position: absolute; right: 12px; top: 14px; color: var(--muted); }
.home-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; }
.home-foot { display: flex; justify-content: space-between; gap: 10px; padding: 22px 4px 4px; }
.article { margin-top: 12px; padding: 20px 18px; }
.article-title { margin: 6px 0 8px; font-size: 23px; line-height: 1.35; }
.article-summary { margin: 0 0 16px; padding: 10px 12px; border-left: 2px solid var(--gold, #f5b942); background: rgba(245,185,66,.06); color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-body { color: var(--text); font-size: 14px; line-height: 1.8; }
.article-body p { margin: 0 0 13px; }
.article-body p:last-child { margin-bottom: 0; }
.article-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.rules-toc { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 4px; }
.rules-toc a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; text-decoration: none; }
.rules-toc a:active { color: var(--text); border-color: rgba(245,185,66,.5); }
.rule-section { padding: 18px; margin-top: 12px; scroll-margin-top: 70px; }
.rule-section h2 { margin: 0 0 10px; font-size: 17px; }

.hero-notice-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-notice-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-notice-link { flex-wrap: nowrap; }
.hero-notice-link .chev { margin-left: auto; }

/* ------------------------- 首页展示区 v2 ------------------------- */
.home-wrap { max-width: 760px; margin: 0 auto; padding: 18px 16px 34px; }
.showcase {
  position: relative; overflow: hidden; padding: 42px 28px 30px;
  border-radius: 24px; border: 1px solid rgba(245,185,66,.18);
  background:
    radial-gradient(120% 130% at 12% -10%, rgba(245,185,66,.18), transparent 55%),
    radial-gradient(100% 120% at 100% 0%, rgba(76,141,255,.1), transparent 55%),
    #080a0f;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.show-glow {
  position: absolute; right: -60px; top: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: rgba(245,185,66,.14); filter: blur(60px); pointer-events: none;
}
.show-inner { position: relative; z-index: 1; }
.show-kicker { font-size: 10px; letter-spacing: .28em; color: #f5b942; font-weight: 700; }
.show-title {
  display: block; margin: 16px 0 12px; max-width: 92%;
  color: #f6f7fb; text-decoration: none;
  font-size: clamp(26px, 5.4vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em;
}
.show-summary { margin: 0; max-width: 92%; color: #9099a8; font-size: 14px; line-height: 1.7; }
.show-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.show-meta { font-size: 11px; color: #77808f; letter-spacing: .02em; }
.show-more { flex: none; font-size: 12px; color: #f5b942; text-decoration: none; font-weight: 700; }
.notice-strip { margin-top: 26px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; color: #8b94a3; font-size: 11px; letter-spacing: .12em; }
.notice-line { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; color: #e9ebf0; }
.notice-line:last-child { border-bottom: 0; }
.line-title { min-width: 0; flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-meta { flex: none; font-size: 11px; color: #6f7886; }
.notice-line .chev { flex: none; color: #6f7886; }
.dot-pin { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #f5b942; vertical-align: 2px; }
.rules-line { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.rules-line-head { display: flex; align-items: center; justify-content: space-between; color: #8b94a3; font-size: 11px; letter-spacing: .12em; }
.rules-line-head a { color: #f5b942; text-decoration: none; font-weight: 700; }
.rule-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.rule-links a { color: #b8c0cc; font-size: 12px; text-decoration: none; }
.rule-links a:active { color: #f5b942; }
.rule-links i { color: #39404c; font-style: normal; font-size: 10px; }
.home-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); color: #66707e; font-size: 11px; }
.home-foot a { color: #9aa4b2; text-decoration: none; }

.home-wrap { min-height: calc(100dvh - 132px); display: flex; flex-direction: column; justify-content: center; }
@media (max-height: 720px) { .home-wrap { justify-content: flex-start; } }

/* 首页斗鸡展示 */
.showcase { min-height: 430px; display: flex; align-items: center; justify-content: center; padding: 34px 180px 30px; }
.showcase::before, .showcase::after {
  content: ""; position: absolute; bottom: -18%; width: 58%; height: 90%; pointer-events: none; z-index: 0;
}
.showcase::before { left: -18%; background: radial-gradient(60% 60% at 30% 70%, rgba(33,86,220,.28), transparent 70%); }
.showcase::after { right: -18%; background: radial-gradient(60% 60% at 70% 70%, rgba(200,22,61,.24), transparent 70%); }
.show-rooster {
  position: absolute; bottom: -8px; z-index: 1; width: 240px; height: auto;
  pointer-events: none; user-select: none; opacity: .95;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45));
}
.show-rooster.blue { left: -14px; }
.show-rooster.red { right: -14px; }
.show-inner { position: relative; z-index: 2; width: 100%; max-width: 450px; }
.show-title { max-width: 100%; }
.show-summary { max-width: 100%; }
@media (max-width: 700px) {
  .showcase { min-height: 520px; padding: 40px 20px 168px; align-items: flex-start; }
  .show-rooster { width: 178px; bottom: -10px; opacity: .88; }
  .show-rooster.blue { left: -30px; }
  .show-rooster.red { right: -30px; }
  .show-inner { max-width: 100%; }
}

@media (min-width: 701px) {
  .showcase { padding: 34px 190px 30px; }
  .show-inner { max-width: 400px; }
  .show-rooster { width: 190px; bottom: -6px; }
  .show-rooster.blue { left: -45px; }
  .show-rooster.red { right: -45px; }
  .show-title { font-size: clamp(26px, 3.4vw, 38px); }
}

/* ---------------------- 首页移动端展示 v3 ---------------------- */
.home2 { width: 100%; max-width: 440px; margin: 0 auto; padding: 10px 12px 86px; }
.hero2 {
  position: relative; height: 272px; overflow: hidden; border-radius: 24px;
  border: 1px solid rgba(245,185,66,.16);
  background:
    radial-gradient(100% 100% at 0% 100%, rgba(26,79,224,.34), transparent 62%),
    radial-gradient(100% 100% at 100% 100%, rgba(184,13,46,.3), transparent 62%),
    #080a0f;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.hero2-glow { position: absolute; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.hero2-glow.blue { left: -30px; bottom: -40px; width: 190px; height: 190px; background: rgba(33,86,220,.4); }
.hero2-glow.red { right: -30px; bottom: -40px; width: 190px; height: 190px; background: rgba(200,22,61,.36); }
.hero2-word { position: absolute; left: 0; right: 0; top: 28px; text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .08em; color: #f6f7fb; z-index: 2; }
.hero2-sub { position: absolute; left: 0; right: 0; top: 68px; text-align: center; font-size: 10px; letter-spacing: .22em; color: #8b94a3; z-index: 2; }
.hero2-rooster { position: absolute; bottom: -12px; width: 168px; height: auto; z-index: 1; pointer-events: none; filter: drop-shadow(0 16px 22px rgba(0,0,0,.5)); }
.hero2-rooster.blue { left: -8px; }
.hero2-rooster.red { right: -8px; }
.hero2-vs {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #f8d278, #c88a1d); color: #160f02;
  font-size: 12px; font-weight: 900; letter-spacing: .04em;
  border: 3px solid rgba(8,10,15,.9); box-shadow: 0 0 0 1px rgba(245,185,66,.5), 0 8px 18px rgba(0,0,0,.5);
}
.notice2 {
  position: relative; z-index: 4; margin: -24px 12px 0; padding: 18px 16px 14px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #10141c, #0b0e14);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.notice2-top { display: flex; align-items: center; gap: 8px; }
.notice2-kicker { font-size: 10px; letter-spacing: .18em; color: #f5b942; font-weight: 700; }
.notice2-pin { padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(245,185,66,.35); background: rgba(245,185,66,.1); color: #f5b942; font-size: 10px; }
.notice2-title { display: block; margin: 9px 0 7px; color: #f6f7fb; text-decoration: none; font-size: 21px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.notice2-summary { margin: 0; color: #8d96a5; font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice2-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; color: #6f7886; }
.notice2-foot a { color: #f5b942; text-decoration: none; font-weight: 700; }
.history2 { margin: 18px 4px 0; }
.history2-head { font-size: 10px; letter-spacing: .14em; color: #6f7886; padding: 0 2px 4px; }
.history2-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; color: #d9dee7; font-size: 12px; }
.history2-row span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history2-row .chev { color: #5e6875; }
.rules2 { margin: 24px 4px 0; }
.rules2-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 6px; color: #7d8795; font-size: 10px; letter-spacing: .14em; }
.rules2-head a { color: #f5b942; text-decoration: none; font-weight: 700; letter-spacing: 0; }
.rules2-row { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; color: #e6e9ef; }
.rules2-row span:first-child { flex: none; font-size: 13px; font-weight: 700; }
.rules2-desc { flex: 1; min-width: 0; color: #6f7886; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.rules2-row .chev { flex: none; color: #5e6875; }
.foot2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 4px 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.05); color: #66707e; font-size: 11px; }
.foot2 a { color: #9aa4b2; text-decoration: none; }
@media (min-width: 720px) {
  .home2 { padding-top: 22px; }
  .hero2 { height: 300px; }
  .hero2-word { font-size: 34px; top: 34px; }
  .hero2-rooster { width: 190px; }
  .hero2-vs { bottom: 66px; }
}

/* 首页 Hero 尺寸修正：避免鸡头压字 */
.hero2 { height: 250px; }
.hero2-word { top: 20px; font-size: 26px; z-index: 4; text-shadow: 0 4px 18px rgba(0,0,0,.6); }
.hero2-sub { top: 55px; font-size: 9px; z-index: 4; color: #b3bcc9; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.hero2-rooster { width: 138px; bottom: -14px; }
.hero2-vs { bottom: 34px; width: 38px; height: 38px; font-size: 11px; }
@media (min-width: 720px) {
  .hero2 { height: 270px; }
  .hero2-word { top: 24px; font-size: 28px; }
  .hero2-sub { top: 60px; }
  .hero2-rooster { width: 150px; }
  .hero2-vs { bottom: 40px; }
}

.hero2-rooster { position: absolute; }
.hero2-rooster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero2-rooster.has3d { width: 200px; height: 240px; }

.hero2-rooster { width: 142px; height: 194px; }
.hero2-rooster.has3d { width: 165px; height: 220px; }
@media (min-width: 720px) { .hero2-rooster { width: 150px; height: 204px; } .hero2-rooster.has3d { width: 175px; height: 232px; } }

/* 3D 斗鸡尺寸/位置：压低，避开标题 */
.hero2-rooster { width: 150px; height: 200px; bottom: -30px; }
.hero2-rooster.has3d { width: 150px; height: 200px; bottom: -30px; }
.hero2-vs { bottom: 26px; }
@media (min-width: 720px) {
  .hero2-rooster { width: 160px; height: 214px; bottom: -32px; }
  .hero2-rooster.has3d { width: 160px; height: 214px; }
  .hero2-vs { bottom: 30px; }
}

/* 首页沿用直播页的鸡 */
.hero2-rooster.rooster { position: absolute; width: 156px; height: 208px; bottom: -24px; }
.hero2-rooster.rooster.blue { left: -14px; }
.hero2-rooster.rooster.red { right: -14px; }
.hero2-rooster.rooster::after { display: none; }
.hero2-rooster.rooster img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 720px) {
  .hero2-rooster.rooster { width: 168px; height: 224px; bottom: -26px; }
}

/* 鸡再压低一点，标题和副标题不被鸡头压住 */
.hero2-rooster.rooster { width: 150px; height: 200px; bottom: -40px; }
@media (min-width: 720px) {
  .hero2-rooster.rooster { width: 160px; height: 214px; bottom: -42px; }
}

/* ---------------------- 今日赛程 ---------------------- */
.schedule-wrap { max-width: 440px; margin: 0 auto; padding: 16px 12px 90px; }
.schedule-head { padding: 8px 6px 14px; }
.schedule-head h1 { margin: 4px 0 2px; font-size: 25px; letter-spacing: -.02em; }
.schedule-head p { margin: 0; color: #7d8795; font-size: 12px; }
.sched-card {
  margin-bottom: 14px; padding: 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, #0d1119, #090c12);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.sched-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sched-time { font-size: 12px; color: #f5b942; font-weight: 700; letter-spacing: .06em; }
.sched-status { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); color: #8c95a3; font-size: 10px; }
.sched-status.live { color: #ff4d6d; border-color: rgba(255,77,109,.4); background: rgba(255,77,109,.08); }
.sched-vs { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: start; gap: 4px; position: relative; }
.sched-side { min-width: 0; text-align: center; }
.sched-side.blue { background: radial-gradient(80% 60% at 50% 100%, rgba(33,86,220,.2), transparent 70%); border-radius: 14px; padding-bottom: 6px; }
.sched-side.red { background: radial-gradient(80% 60% at 50% 100%, rgba(200,22,61,.18), transparent 70%); border-radius: 14px; padding-bottom: 6px; }
.sched-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #070a10; border: 1px solid rgba(255,255,255,.06); }
.sched-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sched-name { margin-top: 7px; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-stats { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; font-size: 10px; color: #7f8997; line-height: 1.4; }
.sched-vs-badge {
  align-self: center; justify-self: center; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(160deg,#f8d278,#c88a1d); color: #170f02;
  font-size: 9px; font-weight: 900; border: 2px solid #090c12;
}
.sched-title { margin: 10px 0 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #8d96a5; text-align: center; }
.sched-card .btn.block { width: 100%; }
.sched-empty { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 46px 16px; border: 1px dashed rgba(255,255,255,.1); border-radius: 18px; color: #6f7886; font-size: 12px; }
.sched-empty strong { color: #d9dee7; font-size: 15px; }

.sched-photo img { object-fit: contain; background: #070a10; }

/* 赛程里的鸡可点 */
.sched-side { text-decoration: none; color: inherit; display: block; }
.sched-more { display: block; margin-top: 4px; font-size: 9px; color: #f5b942; opacity: .9; }

/* 斗鸡详情 */
.chicken-wrap { max-width: 440px; margin: 0 auto; padding: 14px 12px 90px; }
.chicken-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); margin-top: 10px; }
.chicken-hero.blue { background: radial-gradient(90% 100% at 10% 50%, rgba(33,86,220,.28), transparent 65%), #0b0f17; }
.chicken-hero.red { background: radial-gradient(90% 100% at 10% 50%, rgba(200,22,61,.24), transparent 65%), #0b0f17; }
.chicken-photo { width: 126px; height: 126px; flex: none; border-radius: 16px; overflow: hidden; background: #070a10; border: 1px solid rgba(255,255,255,.08); }
.chicken-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chicken-hero-main { min-width: 0; }
.chicken-side { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; border: 1px solid rgba(255,255,255,.12); color: #9aa4b2; }
.chicken-hero-main h1 { margin: 7px 0 5px; font-size: 24px; line-height: 1.2; }
.chicken-hero-main p { margin: 0; color: #7d8795; font-size: 12px; line-height: 1.5; }
.chicken-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.chicken-stats > div { padding: 12px 6px; border-radius: 14px; background: #0b0f16; border: 1px solid rgba(255,255,255,.06); text-align: center; }
.chicken-stats span { display: block; color: #6f7886; font-size: 10px; }
.chicken-stats strong { display: block; margin-top: 5px; font-size: 14px; }
.chicken-info { margin-top: 12px; padding: 4px 14px; border-radius: 16px; background: #0b0f16; border: 1px solid rgba(255,255,255,.06); }
.chicken-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.chicken-row:last-child { border-bottom: 0; }
.chicken-row span { color: #7d8795; }
.chicken-intro { margin-top: 12px; padding: 16px; }
.chicken-intro h2 { margin: 0 0 8px; font-size: 15px; }
.chicken-intro p { margin: 0 0 10px; color: #aeb7c4; font-size: 13px; line-height: 1.75; }
.chicken-cta { margin-top: 14px; }

/* 首页竞技场氛围 */
.hero2 { height: 268px; }
.hero2-arena { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero2-crowd {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 38%, rgba(126,166,255,.28) 0 2px, transparent 2.5px),
    radial-gradient(circle at 24% 30%, rgba(245,185,66,.24) 0 2px, transparent 2.5px),
    radial-gradient(circle at 40% 42%, rgba(255,255,255,.18) 0 1.5px, transparent 2px),
    radial-gradient(circle at 62% 34%, rgba(255,139,164,.24) 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 40%, rgba(126,166,255,.24) 0 1.8px, transparent 2.3px),
    radial-gradient(circle at 90% 32%, rgba(245,185,66,.22) 0 1.6px, transparent 2.1px);
  opacity: .8;
}
.hero2-ring {
  position: absolute; left: 50%; bottom: -70px; transform: translateX(-50%);
  width: 94%; height: 150px; border-radius: 50%;
  border: 1px solid rgba(245,185,66,.35);
  background: radial-gradient(50% 50% at 50% 40%, rgba(245,185,66,.16), rgba(33,86,220,.08) 55%, transparent 72%);
  box-shadow: 0 0 40px rgba(245,185,66,.16), inset 0 0 30px rgba(33,86,220,.2);
}
.hero2-beam {
  position: absolute; top: -70px; width: 110px; height: 330px; opacity: .5;
  transform-origin: top center; filter: blur(10px); pointer-events: none;
}
.hero2-beam.blue { left: 8%; background: linear-gradient(180deg, rgba(84,138,255,.55), transparent 75%); transform: rotate(16deg) skewX(-12deg); }
.hero2-beam.red { right: 8%; background: linear-gradient(180deg, rgba(255,77,120,.5), transparent 75%); transform: rotate(-16deg) skewX(12deg); }
.hero2-beam.gold { left: 50%; margin-left: -55px; background: linear-gradient(180deg, rgba(245,185,66,.32), transparent 70%); transform: rotate(0deg); }
.hero2-lights { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.hero2-lights i { width: 7px; height: 7px; border-radius: 50%; background: #f5d98a; box-shadow: 0 0 10px rgba(245,185,66,.9); opacity: .8; }
.hero2-lights i:nth-child(2n) { background: #7ea6ff; box-shadow: 0 0 10px rgba(126,166,255,.9); }

/* 首页两块声明 */
.statement2 { margin: 24px 4px 0; }
.statement2-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 8px; color: #7d8795; font-size: 10px; letter-spacing: .14em; }
.statement2-head a { color: #f5b942; text-decoration: none; font-weight: 700; letter-spacing: 0; }
.statement2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.statement2-card { min-height: 106px; padding: 13px; border-radius: 16px; text-decoration: none; color: #e9ebf0; border: 1px solid rgba(255,255,255,.09); background: #0c1017; }
.statement2-card span { display: block; font-size: 14px; font-weight: 800; margin-bottom: 7px; }
.statement2-card.risk { border-color: rgba(255,77,109,.28); background: radial-gradient(120% 100% at 0% 0%, rgba(200,22,61,.18), transparent 70%), #0c1017; }
.statement2-card.challenge { border-color: rgba(126,166,255,.28); background: radial-gradient(120% 100% at 0% 0%, rgba(33,86,220,.18), transparent 70%), #0c1017; }
.statement2-card p { margin: 0; color: #8d96a5; font-size: 11px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 语言选择 */
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: #0b0f16 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238d96a5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: #e9ebf0; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  padding: 7px 26px 7px 11px; font-size: 11px; max-width: 116px; outline: none;
}
.topbar-in .lang-select { margin-left: auto; flex: none; }
.topbar-in .pill { margin-left: 8px; }
.lang-switch { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; color: #7d8795; font-size: 11px; }
.auth .lang-switch { justify-content: flex-end; margin-top: -6px; }

/* ---------------------- 登录 / 注册 页 v2 ---------------------- */
.auth-page {
  min-height: 100dvh; display: flex; justify-content: center; padding: 0;
  background:
    radial-gradient(90% 60% at 20% 0%, rgba(33,86,220,.22), transparent 60%),
    radial-gradient(90% 60% at 100% 0%, rgba(200,22,61,.18), transparent 60%),
    #05070b;
}
.auth-shell { width: 100%; max-width: 420px; padding: 18px 16px 26px; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-logo { font-size: 28px; font-weight: 900; font-style: italic; letter-spacing: .02em; color: #f6f7fb; }
.auth-logo em { color: #4c8dff; font-style: normal; }
.auth-top .lang-switch { margin: 0; }
.auth-top .lang-switch > span { display: none; }
.auth-visual { position: relative; height: 218px; margin: 8px 0 -18px; z-index: 1; }
.auth-light { position: absolute; border-radius: 50%; filter: blur(38px); }
.auth-light.blue { left: -10px; bottom: -20px; width: 180px; height: 180px; background: rgba(33,86,220,.34); }
.auth-light.red { right: -10px; bottom: -20px; width: 180px; height: 180px; background: rgba(200,22,61,.3); }
.auth-ring {
  position: absolute; left: 50%; bottom: -42px; transform: translateX(-50%);
  width: 92%; height: 120px; border-radius: 50%;
  border: 1px solid rgba(245,185,66,.28);
  background: radial-gradient(50% 50% at 50% 45%, rgba(245,185,66,.13), transparent 72%);
}
.auth-tagline {
  position: absolute; top: 8px; left: 0; right: 0; margin: 0; text-align: center;
  font-size: 10px; letter-spacing: .08em; color: #8d96a5;
}
.auth-rooster { position: absolute; bottom: -8px; width: 116px; height: 162px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.5)); }
.auth-rooster.blue { left: 4px; }
.auth-rooster.red { right: 4px; }
.auth-vs {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg,#f8d278,#c88a1d); color: #160f02;
  font-size: 11px; font-weight: 900; border: 3px solid #080a0f;
  box-shadow: 0 0 0 1px rgba(245,185,66,.45), 0 8px 18px rgba(0,0,0,.45);
}
.auth-panel {
  position: relative; z-index: 2; padding: 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, #11151e, #0a0d13);
  box-shadow: 0 22px 50px rgba(0,0,0,.45);
}
.auth-tabs { margin-bottom: 14px; }
.auth-tabs button { padding: 10px 8px; font-size: 13px; }
.auth-panel .field { margin-bottom: 12px; }
.auth-panel .field label { color: #9aa4b2; font-size: 11px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .input { padding-right: 40px; }
.auth-eye {
  position: absolute; right: 8px; bottom: 6px; width: 30px; height: 30px; border: 0;
  background: transparent; color: #7d8795; font-size: 14px; cursor: pointer;
}
.auth-submit { margin-top: 4px; height: 46px; }
.auth-note { min-height: 16px; margin: 10px 0 0; color: #7d8795; font-size: 11px; line-height: 1.5; }
.auth-foot { text-align: center; padding: 16px 0 4px; }
.auth-foot a { color: #8d96a5; font-size: 12px; text-decoration: none; }

.auth-shell { min-height: 100dvh; justify-content: center; }

/* 语言选择加地球图标 */
.lang-select {
  background-color: #0b0f16 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d96a5' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M3.5 12h17'/%3E%3Cpath d='M12 3.5c2.2 2.6 3.2 5.4 3.2 8.5s-1 5.9-3.2 8.5c-2.2-2.6-3.2-5.4-3.2-8.5s1-5.9 3.2-8.5Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238d96a5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 10px center, right 9px center !important;
  background-size: 13px 13px, 10px 6px !important;
  padding: 7px 26px 7px 30px !important;
  max-width: 132px !important;
}

.sched-count { display: inline-block; margin-top: 7px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(245,185,66,.25); color: #f5b942; font-size: 10px; }

/* ---------------------- 直播挑战右侧栏 ---------------------- */
.live-main { min-width: 0; }
.challenge-side { position: relative; min-width: 0; }
.challenge-panel {
  display: flex; flex-direction: column; height: 100%; min-height: 0;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, #0d1119, #090c12);
  overflow: hidden;
}
.chal-toggle {
  position: absolute; left: -15px; top: 18px; z-index: 5;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(245,185,66,.45);
  background: #0b0f16; color: #f5b942; font-size: 16px; font-weight: 900; line-height: 1;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.chal-toggle:active { transform: scale(.96); }
.challenge-panel .chal-head {
  margin: 0; padding: 12px 12px; border-radius: 0; border: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(90deg, rgba(47,107,255,.16), rgba(225,29,72,.14));
}
.challenge-panel .chal-head::before { display: none; }
.challenge-panel .chal-title { gap: 7px; font-size: 14px; }
.challenge-panel .btn.sm { padding: 7px 10px; font-size: 11px; }
.chal-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px; }
.challenge-panel .challenge-list { gap: 8px; }
.challenge-panel .chal { padding: 10px; border-radius: 12px; }
.challenge-panel .chal-top { margin-bottom: 6px; font-size: 11px; }
.challenge-panel .chal-nums { gap: 5px; }
.challenge-panel .chal-num { padding: 8px 5px; border-radius: 10px; font-size: 13px; }
.challenge-panel .chal-num small { font-size: 9px; letter-spacing: .06em; }
.challenge-panel .tiny { font-size: 10px; }
.chal-rail {
  display: none; height: 100%; min-height: 420px; flex-direction: column; align-items: center;
  gap: 10px; padding: 18px 0; border: 1px solid var(--line); border-radius: 16px;
  background: #0b0f16; color: #8d96a5; cursor: pointer;
}
.chal-rail-label { writing-mode: vertical-rl; letter-spacing: .28em; font-size: 12px; color: #d9dee7; }
.chal-rail b { color: #f5b942; font-size: 15px; }
.chal-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: #f5b942; box-shadow: 0 0 8px rgba(245,185,66,.8); }

@media (min-width: 960px) {
  .live-grid { grid-template-columns: minmax(0, 1fr) 330px; max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; align-items: start; }
  .live-grid.chal-collapsed { grid-template-columns: minmax(0, 1fr) 48px; }
  .challenge-side { position: sticky; top: 74px; height: calc(100vh - 92px); min-height: 440px; }
  .live-grid.chal-collapsed .challenge-side { min-height: 0; }
  .live-grid.chal-collapsed .challenge-panel { display: none; }
  .live-grid.chal-collapsed .chal-rail { display: flex; }
  .live-grid.chal-collapsed .chal-toggle { left: 8px; top: 10px; width: 30px; height: 30px; }
}
.live-chat { height: 420px; }

@media (max-width: 959px) {
  .challenge-side { margin-top: 14px; }
  .challenge-panel { min-height: 0; }
  .chal-scroll { max-height: 58vh; }
  .chal-toggle { left: auto; right: 12px; top: 12px; }
  .challenge-panel .chal-head { padding-right: 46px; }
  .chal-rail {
    display: none; height: 52px; min-height: 0; flex-direction: row; justify-content: center;
    padding: 0 14px; border-radius: 14px;
  }
  .chal-rail-label { writing-mode: horizontal-tb; letter-spacing: .12em; }
  .live-grid.chal-collapsed .challenge-panel { display: none; }
  .live-grid.chal-collapsed .chal-rail { display: flex; }
  .live-grid.chal-collapsed .chal-toggle { left: auto; right: 12px; top: 11px; }
}

.live-chat-wrap { min-width: 0; }
@media (min-width: 960px) {
  .live-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas: "main chal" "chat chal";
  }
  .live-main { grid-area: main; }
  .challenge-side { grid-area: chal; }
  .live-chat-wrap { grid-area: chat; }
  .live-grid.chal-collapsed { grid-template-columns: minmax(0, 1fr) 48px; }
}

.chal-head-count { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: rgba(245,185,66,.14); border: 1px solid rgba(245,185,66,.35); color: #f5b942; font-size: 10px; font-weight: 800; text-align: center; }

.chal-head-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; flex: none; }
.chal-balance {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 6px 8px; border-radius: 999px; border: 1px solid rgba(245,185,66,.3);
  background: rgba(245,185,66,.07); color: #aeb7c4; font-size: 10px; text-decoration: none;
  white-space: nowrap;
}
.chal-balance b { color: #f5b942; font-size: 11px; }
.chal-balance span { color: #f5b942; }
.chal-head { flex-wrap: wrap; }

/* 提现记录：状态不被长 txid 挤乱 */
.wd-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #141a24; }
.wd-row:last-child { border-bottom: 0; }
.wd-main { flex: 1; min-width: 0; }
.wd-status { flex: none; white-space: nowrap; font-size: 11px; line-height: 1.5; padding-top: 1px; text-align: right; }
.wd-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-tx { margin-top: 3px; color: #6f7886; font-size: 10px; line-height: 1.45; word-break: break-all; overflow-wrap: anywhere; }

.sched-datebar { display: flex; align-items: center; gap: 8px; margin-top: 10px; max-width: 260px; }
.sched-datebar .input { padding: 7px 9px; font-size: 12px; flex: 1; }
.sched-nav { width: 30px; height: 32px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: #0b0f16; color: #d9dee7; font-size: 16px; cursor: pointer; }
