/* ============================================================
   Qiu 游戏站点 · 深色主题
   现代游戏风 · 移动优先 · 深色渐变 + 靛紫强调
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --c-primary: #6366f1;          /* 靛紫 主强调 */
    --c-primary-dark: #4f46e5;
    --c-primary-soft: rgba(99,102,241,.14);
    --c-gold: #f5b301;             /* 钻石 金 */
    --c-success: #22c55e;          /* 积分/成功 绿 */
    --c-danger: #ef4444;           /* 危险 红 */
    --c-warn: #f59e0b;             /* 待处理 琥珀 */
    --c-info: #38bdf8;

    --c-bg-1: #0f1020;
    --c-bg-2: #1a1b3a;
    --c-surface: rgba(28,30,64,.72);     /* 卡片半透明深色 */
    --c-surface-solid: #1c1e40;
    --c-surface-hover: rgba(38,40,82,.85);
    --c-border: rgba(120,130,200,.18);
    --c-border-strong: rgba(120,130,200,.32);

    --c-text: #e5e7ef;             /* 主文字 */
    --c-text-soft: #9aa0b4;        /* 次要文字 */
    --c-text-faint: #6b7088;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 14px rgba(0,0,0,.28);
    --shadow-lg: 0 16px 40px rgba(0,0,0,.45);
    --shadow-glow: 0 0 0 1px rgba(99,102,241,.35), 0 8px 24px rgba(99,102,241,.18);

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--c-text);
    background: linear-gradient(160deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: #818cf8; }

::selection { background: var(--c-primary-soft); color: var(--c-text); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,130,200,.28); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,130,200,.45); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.topbar {
    background: rgba(15,16,32,.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 24px; position: relative; justify-content: flex-start; }
.brand {
    font-size: 19px; font-weight: 800; white-space: nowrap;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
}
/* 首页:站点名居中放大(其他页面保持左侧,避免与 user-menu 重叠) */
.on-lobby .brand {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font-size: 24px; letter-spacing: 1px; z-index: 1;
}
/* 顶栏左侧"홈페이지"快捷按钮(位于 brand 左侧,填充首页左侧空白) */
.topbar-home {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: var(--radius-sm);
    background: var(--c-primary-soft); color: var(--c-text);
    font-size: 14px; font-weight: 600; white-space: nowrap;
    text-decoration: none; transition: all .15s; flex-shrink: 0;
}
.topbar-home:hover { background: var(--c-primary); color: #fff; }
.topbar-home.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.35); }
.topbar-home svg { width: 16px; height: 16px; flex-shrink: 0; }
/* 首页 brand 居中时,导航(홈페이지)已移至左侧,隐藏无用的汉堡按钮 */
.on-lobby .mobile-nav-toggle { display: none; }
.nav { display: flex; gap: 4px; }
.nav a {
    padding: 9px 14px; border-radius: var(--radius-sm); color: var(--c-text-soft);
    font-size: 14px; font-weight: 500; transition: all .15s; white-space: nowrap;
}
.nav a:hover { background: var(--c-primary-soft); color: var(--c-text); }
.nav a.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.35); }

.user-menu { display: flex; align-items: center; gap: 14px; font-size: 14px; margin-left: auto; }
.balance { color: var(--c-gold); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.user-name { color: var(--c-text); font-weight: 600; }
.btn-link { color: var(--c-text-soft); padding: 6px 10px; border-radius: var(--radius-sm); }
.btn-link:hover { color: var(--c-text); background: var(--c-primary-soft); }

/* 手机汉堡按钮(默认隐藏,≤768px 显示) */
.mobile-nav-toggle {
    display: none; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); cursor: pointer;
    position: relative; flex-shrink: 0;
}
.mobile-nav-toggle::before, .mobile-nav-toggle::after,
.mobile-nav-toggle span {
    content: ""; position: absolute; left: 9px; right: 9px; height: 2px;
    background: var(--c-text); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.mobile-nav-toggle::before { top: 12px; }
.mobile-nav-toggle span { top: 19px; }
.mobile-nav-toggle::after { bottom: 12px; }

/* 手机"账户"折叠按钮(默认隐藏,≤768px 显示,点击展开/收起 user-menu) */
.user-menu-toggle {
    display: none; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); cursor: pointer;
    color: var(--c-text-soft); flex-shrink: 0;
}
.user-menu-toggle svg { width: 20px; height: 20px; }
.user-menu-toggle.active { border-color: var(--c-primary); color: var(--c-primary); }

/* 语言切换 */
.lang-switch {
    display: inline-flex; gap: 4px; padding: 3px;
    background: rgba(120,130,200,.1); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}
.lang-switch button, .lang-switch a {
    padding: 4px 10px; font-size: 12px; border-radius: 6px;
    color: var(--c-text-soft); background: transparent; border: none; cursor: pointer;
    transition: all .15s;
}
.lang-switch button:hover, .lang-switch a:hover { color: var(--c-text); }
.lang-switch .active, .lang-switch button.active {
    background: var(--c-primary); color: #fff;
}

/* ---------- 主区 / 页脚 ---------- */
.main { padding: 28px 20px 60px; min-height: calc(100vh - 130px); }
.footer {
    border-top: 1px solid var(--c-border);
    padding: 22px 0; color: var(--c-text-faint); font-size: 13px; text-align: center;
}

/* ---------- 提示 ---------- */
.alert {
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px;
    font-size: 14px; border: 1px solid transparent;
    backdrop-filter: blur(6px);
}
.alert-error { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.35); }
.alert-success { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.35); }

/* ---------- 卡片 ---------- */
.card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
    margin-bottom: 20px; backdrop-filter: blur(8px);
}
.card-title {
    font-size: 16px; font-weight: 700; margin-bottom: 16px;
    padding-bottom: 12px; border-bottom: 1px solid var(--c-border);
    color: var(--c-text); letter-spacing: .3px;
}

/* ---------- 统计卡片 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
    transition: transform .18s, border-color .18s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--c-border-strong); }
.stat-card .label { color: var(--c-text-soft); font-size: 13px; margin-bottom: 8px; }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }
.stat-card .value.accent { color: var(--c-gold); }
.stat-card .value.primary { color: var(--c-primary); }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--c-text); }
.form-group .hint { font-size: 12px; color: var(--c-text-soft); margin-top: 4px; }
.form-control {
    width: 100%; padding: 11px 14px; font-size: 14px; color: var(--c-text);
    border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    background: rgba(15,16,32,.55);
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.form-control::placeholder { color: var(--c-text-faint); }
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); background: rgba(15,16,32,.75); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; border-radius: var(--radius-sm); transition: all .15s;
    background: var(--c-primary); color: #fff; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(99,102,241,.28);
}
.btn:hover { background: var(--c-primary-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: rgba(120,130,200,.14); color: var(--c-text); border-color: var(--c-border-strong); box-shadow: none; }
.btn-secondary:hover { background: rgba(120,130,200,.24); color: var(--c-text); }
.btn-danger { background: var(--c-danger); box-shadow: 0 4px 12px rgba(239,68,68,.28); }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-success { background: var(--c-success); box-shadow: 0 4px 12px rgba(34,197,94,.28); }
.btn-success:hover { background: #16a34a; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; min-height: 34px; }
.btn-block { width: 100%; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data-table {
    width: 100%; border-collapse: collapse; font-size: 14px;
    background: transparent; color: var(--c-text);
}
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-border); }
.data-table th {
    background: rgba(120,130,200,.08); font-weight: 700; color: var(--c-text-soft);
    font-size: 13px; white-space: nowrap; letter-spacing: .3px;
}
.data-table tr:hover td { background: rgba(99,102,241,.06); }
.data-table .num { font-variant-numeric: tabular-nums; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .2px;
    border: 1px solid transparent;
}
.tag-pending, .tag-running { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(245,158,11,.4); }
.tag-paid, .tag-success { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.4); }
.tag-cancel, .tag-rejected, .tag-danger { background: rgba(239,68,68,.16); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.tag-info, .tag-betting { background: rgba(56,189,248,.16); color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.tag-default, .tag-settled { background: rgba(120,130,200,.16); color: var(--c-text-soft); border-color: var(--c-border-strong); }
.tag-win { background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.4); }
.tag-lose { background: rgba(239,68,68,.16); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.tag-tie { background: rgba(245,158,11,.16); color: #fbbf24; border-color: rgba(245,158,11,.4); }

/* ---------- 分页 ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 13px; border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--c-text-soft); background: var(--c-surface);
    transition: all .15s;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-text); background: var(--c-primary-soft); }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- 认证页(霓虹毛玻璃) ---------- */
.auth-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(59,130,246,0.16) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(34,211,238,0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0a0a14 0%, #0d0b1a 100%);
    padding: 24px 16px; position: relative; overflow: hidden;
}
.auth-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(168,85,247,0.28);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 32px rgba(168,85,247,0.15);
    width: 100%; max-width: 420px; padding: 36px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    position: relative; z-index: 1;
}
.auth-card h1 {
    font-size: 24px; margin-bottom: 6px; text-align: center; font-weight: 800;
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card .sub { text-align: center; color: var(--neon-muted); font-size: 13px; margin-bottom: 24px; }
.auth-card .footer-link { text-align: center; margin-top: 18px; font-size: 13px; color: var(--neon-muted); }
.auth-card .footer-link a { color: var(--neon-purple); font-weight: 600; }
.auth-card .footer-link a:hover { color: var(--neon-cyan); }
.auth-card .form-group label { color: var(--neon-text); }
.auth-card .form-group .muted { color: var(--neon-muted); }
.auth-card .hint { color: var(--neon-muted); }
.auth-card .form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(168,85,247,0.22);
    color: var(--neon-text);
}
.auth-card .form-control:focus {
    border-color: rgba(168,85,247,0.6);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.18);
    background: rgba(255,255,255,0.07);
}

/* 首页横幅(旧 home-hero 兼容 + 新 .hero) */
.home-hero, .hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.25) 0%, transparent 60%),
                linear-gradient(160deg, var(--c-bg-1) 0%, var(--c-bg-2) 100%);
    color: var(--c-text); text-align: center; padding: 40px 20px;
}
.home-hero h1, .hero-title {
    font-size: 44px; margin-bottom: 12px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, var(--c-primary) 60%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.home-hero p, .hero-sub { font-size: 16px; opacity: .85; margin-bottom: 28px; max-width: 560px; color: var(--c-text-soft); }
.hero-notice {
    margin-top: 24px; padding: 12px 20px; max-width: 560px;
    background: var(--c-primary-soft); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--c-text);
}
.home-hero .btn, .hero .btn { padding: 13px 30px; font-size: 15px; }
.home-hero .btn:hover, .hero .btn:hover { background: #fff; color: var(--c-primary); }
.home-features { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.home-features .f {
    background: var(--c-surface); padding: 12px 20px; border-radius: var(--radius-sm);
    font-size: 14px; border: 1px solid var(--c-border); backdrop-filter: blur(6px);
}

/* ---------- 团队/邀请 ---------- */
.level-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.level-tabs a {
    padding: 8px 18px; border-radius: var(--radius-sm); background: var(--c-surface);
    border: 1px solid var(--c-border-strong); color: var(--c-text-soft); font-size: 14px; transition: all .15s;
}
.level-tabs a:hover { color: var(--c-text); border-color: var(--c-primary); }
.level-tabs a.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.invite-box {
    background: var(--c-surface); border: 1px dashed var(--c-border-strong);
    border-radius: var(--radius); padding: 24px; text-align: center;
}
.invite-box .code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--c-gold); margin: 12px 0; font-variant-numeric: tabular-nums; }
.invite-box .url { font-size: 13px; color: var(--c-text-soft); word-break: break-all; }

/* ---------- 后台布局 ---------- */
.admin-body { background: linear-gradient(160deg, #0c0d1c 0%, #14152e 100%); background-attachment: fixed; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; background: rgba(12,13,28,.95); color: var(--c-text-soft); padding: 20px 0;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
    border-right: 1px solid var(--c-border);
}
.sidebar-brand {
    padding: 0 24px 20px; font-size: 18px; font-weight: 800; color: var(--c-text);
    border-bottom: 1px solid var(--c-border); margin-bottom: 12px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar nav { display: flex; flex-direction: column; flex: 1; }
.sidebar nav a { padding: 12px 24px; color: var(--c-text-soft); font-size: 14px; border-left: 3px solid transparent; transition: all .15s; }
.sidebar nav a:hover { background: rgba(99,102,241,.1); color: var(--c-text); }
.sidebar nav a.active { background: var(--c-primary-soft); color: var(--c-primary); border-left-color: var(--c-primary); font-weight: 600; }
.sidebar-foot { padding: 16px 24px; border-top: 1px solid var(--c-border); font-size: 13px; }
.sidebar-foot a { color: var(--c-text-faint); }
.sidebar-foot a:hover { color: var(--c-text-soft); }
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-top {
    height: 56px; background: rgba(15,16,32,.7); border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
    font-weight: 700; color: var(--c-text); backdrop-filter: blur(8px);
}
.admin-content { padding: 24px; flex: 1; }

/* ---------- 后台浅色主题(提升文字可读性) ---------- */
.admin-body {
    /* 重定义主题变量:让视图内 var(--c-text-soft) 等内联样式自动适配浅色 */
    --c-text: #0f172a;
    --c-text-soft: #475569;
    --c-text-faint: #94a3b8;
    --c-surface: #ffffff;
    --c-surface-solid: #ffffff;
    --c-surface-hover: #f8fafc;
    --c-border: #e2e8f0;
    --c-border-strong: #cbd5e1;
    --c-primary-soft: rgba(99,102,241,.12);
    --c-gold: #d97706;

    background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 100%);
    color: #1e293b;
}
.admin-body .pv-balls b {
    background: #f1f5f9; border: 1px solid #e2e8f0; color: #1e293b;
}
.admin-body .pv-video-info td:first-child { color: #64748b; }
.admin-body .sidebar {
    background: #ffffff; color: #334155; border-right-color: #e2e8f0;
}
.admin-body .sidebar-brand { border-bottom-color: #e2e8f0; }
.admin-body .sidebar nav a { color: #475569; }
.admin-body .sidebar nav a:hover { background: #eef2ff; color: #4f46e5; }
.admin-body .sidebar nav a.active { background: #eef2ff; color: #4f46e5; border-left-color: #6366f1; }
.admin-body .sidebar-foot { border-top-color: #e2e8f0; }
.admin-body .sidebar-foot a { color: #64748b; }
.admin-body .sidebar-foot a:hover { color: #334155; }
.admin-body .admin-top {
    background: #ffffff; border-bottom-color: #e2e8f0; color: #0f172a;
}
.admin-body .badge {
    display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 8px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px;
    font-weight: 700; text-align: center; line-height: 18px; vertical-align: middle;
}
.admin-body .card {
    background: #ffffff; border-color: #e2e8f0; box-shadow: 0 1px 3px rgba(15,23,42,.07);
}
.admin-body .card-title { color: #0f172a; border-bottom-color: #e8edf3; }
.admin-body .stat-card {
    background: #ffffff; border-color: #e2e8f0; box-shadow: 0 1px 3px rgba(15,23,42,.07);
}
.admin-body .stat-card .label { color: #64748b; }
.admin-body .stat-card .value { color: #0f172a; }
.admin-body .form-group label { color: #0f172a; }
.admin-body .form-group .hint { color: #64748b; }
.admin-body .form-control {
    color: #0f172a; border-color: #cbd5e1; background: #f8fafc;
}
.admin-body .form-control::placeholder { color: #94a3b8; }
.admin-body .form-control:focus {
    border-color: #6366f1; background: #ffffff; box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.admin-body table.data-table { color: #1e293b; }
.admin-body .data-table th { background: #f1f5f9; color: #475569; }
.admin-body .data-table th, .admin-body .data-table td { border-bottom-color: #e8edf3; }
.admin-body .data-table tr:hover td { background: #f8fafc; }
.admin-body .btn-secondary {
    background: #f1f5f9; color: #334155; border-color: #cbd5e1; box-shadow: none;
}
.admin-body .btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
.admin-body .tag-pending, .admin-body .tag-running { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.admin-body .tag-paid, .admin-body .tag-success, .admin-body .tag-win { background: #dcfce7; color: #166534; border-color: #22c55e; }
.admin-body .tag-cancel, .admin-body .tag-rejected, .admin-body .tag-danger, .admin-body .tag-lose { background: #fee2e2; color: #991b1b; border-color: #ef4444; }
.admin-body .tag-info, .admin-body .tag-betting { background: #e0f2fe; color: #075985; border-color: #38bdf8; }
.admin-body .tag-default, .admin-body .tag-settled, .admin-body .tag-tie { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.admin-body .alert { color: #0f172a; }
.admin-body .alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.admin-body .alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.admin-body .alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.admin-body .pagination a, .admin-body .pagination span {
    color: #475569; border-color: #cbd5e1; background: #ffffff;
}
.admin-body .pagination a:hover { border-color: #6366f1; color: #4f46e5; background: #eef2ff; }
.admin-body .pagination .current { background: #6366f1; color: #fff; border-color: #6366f1; }
.admin-body .level-tabs a { color: #475569; border-color: #cbd5e1; background: #ffffff; }
.admin-body .level-tabs a:hover { color: #4f46e5; border-color: #6366f1; }
.admin-body .level-tabs a.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.admin-body .muted { color: #64748b; }
.admin-body .empty { color: #94a3b8; }

/* ---------- 工具类 ---------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.muted { color: var(--c-text-soft); font-size: 13px; }
.empty { text-align: center; padding: 40px; color: var(--c-text-faint); }

/* ============================================================
   球球大冒险
   ============================================================ */
.game-countdown {
    background: linear-gradient(135deg, rgba(99,102,241,.25) 0%, rgba(79,70,229,.4) 100%);
    border: 1px solid var(--c-border-strong);
    color: var(--c-text); border-radius: var(--radius); padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.game-countdown .ct-label { font-size: 14px; opacity: .9; font-weight: 600; }
.game-countdown .ct-value {
    font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: 1px; background: rgba(0,0,0,.32); padding: 4px 18px; border-radius: var(--radius-sm);
    color: #fff; white-space: nowrap;
}
.game-countdown .ct-meta { font-size: 13px; opacity: .85; }
.game-countdown .ct-meta b { font-size: 20px; font-weight: 800; color: var(--c-gold); margin-left: 4px; vertical-align: middle; letter-spacing: .5px; }
.game-countdown .ct-meta b:first-child { margin-left: 0; }
/* 视频预设模式倒计时:期号前缀("회차")与编号同款金字,同行对齐 */
.game-countdown #pvCtMeta { opacity: 1; }
.game-countdown #pvCtMeta b { font-size: 20px; font-weight: 800; color: var(--c-gold); margin-left: 8px; letter-spacing: .5px; }
.game-countdown #pvCtMeta b:first-child { margin-left: 0; }
.game-countdown.running { background: linear-gradient(135deg, rgba(245,158,11,.3) 0%, rgba(217,119,6,.45) 100%); border-color: rgba(245,158,11,.4); }
.game-countdown.settled { background: linear-gradient(135deg, rgba(34,197,94,.3) 0%, rgba(22,163,74,.45) 100%); border-color: rgba(34,197,94,.4); }
/* LIVE 徽标:桌面端隐藏在倒计时卡内(桌面端显示在视频上方悬浮条),手机端显示 */
.game-countdown .ct-live{ display: none; }

.player-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.player-card {
    background: var(--c-surface); border: 2px solid var(--c-border-strong); border-radius: var(--radius);
    padding: 20px; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s;
    backdrop-filter: blur(6px);
}
.player-card:hover { transform: translateY(-2px); }
.player-card.is-winner {
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(245,179,1,.18), 0 8px 24px rgba(245,179,1,.2);
}
.player-card .pc-name { font-size: 30px; font-weight: 800; color: var(--c-primary); margin-bottom: 6px; }
.player-card .pc-rate { font-size: 14px; color: var(--c-text-soft); margin-bottom: 14px; }
.player-card .pc-rate b { color: var(--c-gold); font-size: 18px; }
.player-card .pc-balls { display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 12px 0; min-height: 56px; }
.player-card .pc-freq { font-size: 12px; color: var(--c-text-soft); margin-top: 6px; }

.ball-no {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5b301 0%, #d97706 100%);
    color: #1a1b3a; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums;
    box-shadow: 0 3px 8px rgba(245,179,1,.35), inset 0 1px 2px rgba(255,255,255,.3);
}
.ball-no.empty { background: rgba(120,130,200,.12); color: var(--c-text-faint); box-shadow: none; border: 1px dashed var(--c-border-strong); }
.ball-no.duplicate { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: #fff; box-shadow: 0 3px 8px rgba(34,197,94,.35), inset 0 1px 2px rgba(255,255,255,.25); }

/* ---------- 下注选择 ---------- */
.player-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 20px; }
.player-pick label {
    display: block; background: var(--c-surface); border: 2px solid var(--c-border-strong);
    border-radius: var(--radius); padding: 18px 10px; text-align: center; cursor: pointer; transition: all .15s;
    backdrop-filter: blur(6px);
}
.player-pick label:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.player-pick input { display: none; }
.player-pick .pp-wrap { display: block; }
.player-pick .pp-inner { transition: transform .15s; }
.player-pick input:checked + .pp-inner { transform: scale(1.05); }
.player-pick input:checked ~ .pp-name,
.player-pick input:checked ~ .pp-rate { color: var(--c-primary); }
.player-pick label:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: var(--shadow-glow); }
.player-pick .pp-name { font-size: 22px; font-weight: 800; color: var(--c-text); display: block; }
.player-pick .pp-rate { font-size: 13px; color: var(--c-text-soft); margin-top: 4px; display: block; }
.player-pick .pp-rate b { color: var(--c-gold); font-size: 15px; }

/* ---------- 玩家颜色:三个玩家名字不同色,下注卡片颜色对应 ---------- */
.player-pick label.pick-A { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.07); }
.player-pick label.pick-A:hover { border-color: #ef4444; background: rgba(239,68,68,.14); }
.player-pick label.pick-A:has(input:checked) { border-color: #ef4444; background: rgba(239,68,68,.18); box-shadow: 0 0 18px rgba(239,68,68,.35); }
.player-pick label.pick-A .pp-name { color: #ff6b6b; }
.player-pick label.pick-B { border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.07); }
.player-pick label.pick-B:hover { border-color: #3b82f6; background: rgba(59,130,246,.14); }
.player-pick label.pick-B:has(input:checked) { border-color: #3b82f6; background: rgba(59,130,246,.18); box-shadow: 0 0 18px rgba(59,130,246,.35); }
.player-pick label.pick-B .pp-name { color: #60a5fa; }
.player-pick label.pick-C { border-color: rgba(245,158,11,.5); background: rgba(245,158,11,.07); }
.player-pick label.pick-C:hover { border-color: #f59e0b; background: rgba(245,158,11,.14); }
.player-pick label.pick-C:has(input:checked) { border-color: #f59e0b; background: rgba(245,158,11,.18); box-shadow: 0 0 18px rgba(245,158,11,.35); }
.player-pick label.pick-C .pp-name { color: #fbbf24; }

/* 视频进度条/玩家行:玩家名字颜色对应 */
.game-video-wrap .player-row.player-A .pr-name { color: #ff6b6b; }
.game-video-wrap .player-row.player-B .pr-name { color: #60a5fa; }
.game-video-wrap .player-row.player-C .pr-name { color: #fbbf24; }

/* 结算卡片玩家名颜色 */
.player-card.player-A .pc-name { color: #ff6b6b; }
.player-card.player-B .pc-name { color: #60a5fa; }
.player-card.player-C .pc-name { color: #fbbf24; }

.bet-summary {
    background: rgba(120,130,200,.1); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 8px;
    font-size: 13px; color: var(--c-text-soft);
}
.bet-summary b { color: var(--c-text); font-weight: 700; }

/* ============================================================
   新增:游戏大厅 / 个人中心 / 资产卡
   ============================================================ */

/* 游戏大厅卡片网格 */
.game-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.game-card {
    position: relative; display: block; padding: 24px;
    background: var(--c-surface); border: 1px solid var(--c-border-strong);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .18s, border-color .18s, box-shadow .18s;
    backdrop-filter: blur(8px); overflow: hidden;
}
.game-card::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--c-primary-soft) 0%, transparent 60%);
    opacity: 0; transition: opacity .18s;
}
.game-card:hover {
    transform: translateY(-4px); border-color: var(--c-primary);
    box-shadow: var(--shadow-glow);
}
.game-card:hover::before { opacity: 1; }
.game-card .gc-icon { font-size: 48px; line-height: 1; display: block; margin-bottom: 12px; }
.game-card .gc-name { font-size: 18px; font-weight: 700; color: var(--c-text); margin-bottom: 6px; position: relative; }
.game-card .gc-desc { font-size: 14px; color: var(--c-text-soft); position: relative; }
.game-card .gc-enter {
    position: absolute; right: 18px; bottom: 18px;
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    background: var(--c-primary); color: #fff; border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

/* 个人中心布局 */
.center-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.center-side {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.center-side .menu-link {
    display: block; padding: 11px 16px; border-radius: var(--radius-sm);
    color: var(--c-text-soft); font-size: 14px; font-weight: 500; transition: all .15s;
}
.center-side .menu-link:hover { background: var(--c-primary-soft); color: var(--c-text); }
.center-side .menu-link.active { background: var(--c-primary); color: #fff; box-shadow: 0 4px 10px rgba(99,102,241,.3); }
.center-main { min-width: 0; }

/* 资产卡 */
.balance-card {
    background: linear-gradient(135deg, rgba(99,102,241,.18) 0%, rgba(245,179,1,.12) 100%);
    border: 1px solid var(--c-border-strong); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.balance-card .label { color: var(--c-text-soft); font-size: 13px; margin-bottom: 6px; }
.balance-card .value { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.balance-card .value.gold { color: var(--c-gold); }
.balance-card .value.green { color: var(--c-success); }

/* ============================================================
   响应式 ≤768px
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .topbar-inner { height: auto; padding: 12px 0; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }

    /* 汉堡按钮显示 */
    .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; order: 2; margin-left: auto; }

    /* 账户折叠按钮显示(控制 user-menu 展开/收起) */
    .user-menu-toggle { display: inline-flex; order: 3; }

    /* 导航默认隐藏,展开时纵向下拉 */
    .nav {
        order: 5; flex: none; width: 100%;
        display: none; flex-direction: column; gap: 2px;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(12,13,28,.98); border-bottom: 1px solid var(--c-border);
        padding: 8px 16px; box-shadow: var(--shadow-lg);
        backdrop-filter: blur(12px);
    }
    .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
    .nav.open { display: flex; }
    .nav a.active { box-shadow: none; }

    .brand { font-size: 17px; }
    .on-lobby .brand { font-size: 21px; top: 32px; transform: translate(-50%, -50%); }
    .topbar-home { padding: 6px 10px; font-size: 13px; gap: 4px; }
    .user-menu {
        order: 4; width: 100%; display: none; flex-wrap: wrap; gap: 10px;
        padding-top: 8px; border-top: 1px solid var(--c-border);
        font-size: 13px;
        justify-content: flex-end;
    }
    .user-menu.open { display: flex; }
    .balance { font-size: 13px; }

    .main { padding: 20px 16px 50px; }
    .card { padding: 18px; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card .value { font-size: 22px; }

    .player-grid, .player-pick { grid-template-columns: 1fr; }
    .player-card .pc-name { font-size: 26px; }
    .ball-no { width: 38px; height: 38px; font-size: 16px; }

    .game-list { grid-template-columns: 1fr; }
    .game-card { padding: 18px; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }

    .center-grid { grid-template-columns: 1fr; }
    .center-side {
        display: flex; gap: 4px; overflow-x: auto; padding: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .center-side .menu-link { white-space: nowrap; flex-shrink: 0; }

    .home-hero h1, .hero-title { font-size: 32px; }
    .home-hero p, .hero-sub { font-size: 15px; }
    .home-features { gap: 10px; }

    /* 后台侧栏收窄 */
    .sidebar { width: 56px; }
    .sidebar-brand, .sidebar-foot { display: none; }
    .sidebar nav a { padding: 12px 0; text-align: center; font-size: 16px; }
    .admin-content { padding: 16px; }
}

/* ============================================================
   响应式 ≥992px(个人中心双栏)
   ============================================================ */
@media (min-width: 992px) {
    .center-grid { grid-template-columns: 240px 1fr; align-items: start; }
    .center-side { position: sticky; top: 80px; }
}

/* ============================================================
   霓虹紫蓝渐变重构 · 游戏门户风(追加,不破坏旧类)
   ============================================================ */
:root {
    --neon-bg: #0a0a14;
    --neon-bg2: #0d0b1a;
    --neon-bg3: #1a1033;
    --neon-surface: rgba(255,255,255,0.04);
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --neon-cyan: #22d3ee;
    --neon-grad: linear-gradient(135deg, #7c3aed, #2563eb);
    --neon-grad-text: linear-gradient(135deg, #a855f7, #3b82f6);
    --neon-glow: 0 0 20px rgba(168,85,247,0.5);
    --neon-text: #f8fafc;
    --neon-muted: #94a3b8;
    --neon-r-card: 16px;
    --neon-r-btn: 12px;
}

/* ---------- 顶栏霓虹化(全站) ---------- */
.topbar {
    background: linear-gradient(90deg, #0d0b1a 0%, #1a1033 100%);
    border-bottom: 1px solid rgba(168,85,247,0.25);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 40px rgba(168,85,247,0.08);
}
.topbar .brand {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168,85,247,0.3);
}
.topbar .nav a { color: var(--neon-muted); }
.topbar .nav a:hover {
    color: var(--neon-text);
    background: rgba(168,85,247,0.12);
}
.topbar .nav a.active {
    background: var(--neon-grad);
    color: #fff;
    box-shadow: 0 0 16px rgba(168,85,247,0.45);
}

/* ---------- 发光按钮 ---------- */
.btn-glow {
    background: var(--neon-grad);
    color: #fff;
    border: 1px solid rgba(168,85,247,0.5);
    box-shadow: var(--neon-glow), 0 4px 16px rgba(124,58,237,0.4);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.btn-glow:hover {
    color: #fff;
    background: linear-gradient(135deg, #9333ea, #1d4ed8);
    box-shadow: 0 0 28px rgba(168,85,247,0.7), 0 6px 20px rgba(124,58,237,0.5);
    transform: translateY(-1px);
}

/* ---------- 充值按钮(金色) ---------- */
.btn-gold {
    background: linear-gradient(135deg, #f5b301, #e08a00);
    color: #2d1b0e;
    border: 1px solid rgba(245,179,1,0.6);
    box-shadow: 0 0 14px rgba(245,179,1,0.35), 0 4px 16px rgba(224,138,0,0.3);
    font-weight: 700;
}
.btn-gold:hover {
    color: #2d1b0e;
    background: linear-gradient(135deg, #ffc422, #f0a400);
    box-shadow: 0 0 22px rgba(245,179,1,0.55), 0 6px 18px rgba(224,138,0,0.4);
    transform: translateY(-1px);
}

/* ---------- 首页实时数据(滚动数字) ---------- */
.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 18px auto 0;
}
.live-stat {
    position: relative;
    background: linear-gradient(180deg, rgba(168,85,247,0.10), rgba(59,130,246,0.05));
    border: 1px solid rgba(168,85,247,0.28);
    border-radius: 14px;
    padding: 14px 18px;
    text-align: center;
    overflow: hidden;
}
.live-stat::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(34,211,238,0.12), transparent 60%);
    pointer-events: none;
}
.ls-label {
    font-size: 12px; color: var(--neon-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-bottom: 8px; letter-spacing: .5px;
}
.ls-dot {
    width: 7px; height: 7px; border-radius: 50%;
    animation: ls-blink 1.6s ease-in-out infinite;
}
.ls-dot-green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.ls-dot-gold  { background: var(--c-gold); box-shadow: 0 0 8px var(--c-gold); }
.ls-dot-cyan  { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
@keyframes ls-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ls-value {
    font-size: 27px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
    line-height: 1.2;
}
.ls-value.accent { color: var(--c-primary); }
.ls-value.gold { color: var(--c-gold); }
.ls-value.cyan { color: var(--neon-cyan); }
.ls-digit { display: inline-block; }
.ls-digit.ls-change {
    color: #fff;
    text-shadow: 0 0 10px rgba(34,211,238,.9), 0 0 20px rgba(34,211,238,.4);
}
.ls-sep { color: var(--c-text-soft); }

@media (max-width: 640px) {
    .live-stats { gap: 8px; margin-top: 14px; }
    .live-stat { padding: 10px 6px; border-radius: 10px; }
    .ls-label { font-size: 10px; margin-bottom: 6px; gap: 4px; }
    .ls-value { font-size: 17px; }
}


/* ---------- Hero 区 ---------- */
.hero-neon {
    padding: 60px 20px 48px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 30%, rgba(59,130,246,0.18) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a14 0%, #0d0b1a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-neon::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 70%, rgba(34,211,238,0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; }
.hero-title-neon {
    font-size: 52px; font-weight: 900; line-height: 1.15;
    letter-spacing: 1px; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 4px;
}
.hero-title-neon .line1 {
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 50%, #3b82f6 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title-neon .line2 {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #22d3ee 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-cta {
    padding: 14px 40px; font-size: 16px; font-weight: 700;
    border-radius: var(--neon-r-btn);
    display: inline-block; margin-bottom: 40px;
}

/* Hero 特色卡网格(桌面1列 / 手机1列) */
.hero-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.hero-feature-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--neon-surface);
    border: 3px solid rgba(168,85,247,0.35);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
}
.hero-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124,58,237,0.3), 0 0 24px rgba(168,85,247,0.25);
}
.hero-feature-img {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.45) 0%, rgba(59,130,246,0.25) 50%, rgba(13,11,26,0.6) 100%);
    overflow: hidden; flex-shrink: 0;
}
.hero-feature-img::after {
    content: ""; position: absolute; inset: 0;
    background: none;
}
.hero-feature-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 12px 16px 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, transparent 0%, rgba(13,11,26,0.78) 100%);
}
.hero-feature-overlay .hero-feature-name {
    color: #fff; font-size: 18px; font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.85);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
/* 卡片信息区:介绍(玩法说明) + 开始游戏按钮 */
.hero-feature-info {
    padding: 14px 16px 18px;
    display: flex; flex-direction: column; gap: 12px;
    align-items: center;
}
.hero-feature-howto {
    margin: 0; width: 100%;
    color: #f1f5f9; font-size: 15px; font-weight: 700; line-height: 1.6;
    text-align: center; word-break: break-word;
}
.hero-feature-btn {
    align-self: center;
    font-size: 16px; font-weight: 800; padding: 12px 34px; border-radius: 12px;
}
.hero-feature-btn:hover { color: #fff; }

/* 竖图展示风格(首页展示风格=竖图,磨砂玻璃介绍浮在图上) */
.hero-feature-card.hero-feature-vertical .hero-feature-img {
    aspect-ratio: 3 / 4;
}
.hero-feature-card.hero-feature-vertical .hero-feature-info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    margin: 0; padding: 16px 18px 20px;
    align-items: center; text-align: center;
    background: rgba(13,11,26,.42);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 -8px 24px rgba(0,0,0,.3);
}
.hero-feature-card.hero-feature-vertical .hero-feature-info .hero-feature-name {
    font-size: 20px; font-weight: 800; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.hero-feature-card.hero-feature-vertical .hero-feature-howto {
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
@media (max-width: 768px) {
    .hero-feature-card.hero-feature-vertical .hero-feature-img { aspect-ratio: 3 / 4; }
    .hero-feature-card.hero-feature-vertical .hero-feature-info { padding: 12px 12px 16px; }
    .hero-feature-howto { font-size: 13px; }
    .hero-feature-btn { font-size: 14px; padding: 9px 24px; }
}

/* 游戏卡片彩色边框(红橙蓝绿青蓝紫循环) */
.hero-feature-card.frame-0 { border-color: rgba(239,68,68,.65); box-shadow: 0 0 18px rgba(239,68,68,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-0:hover { box-shadow: 0 0 30px rgba(239,68,68,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-1 { border-color: rgba(249,115,22,.65); box-shadow: 0 0 18px rgba(249,115,22,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-1:hover { box-shadow: 0 0 30px rgba(249,115,22,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-2 { border-color: rgba(59,130,246,.65); box-shadow: 0 0 18px rgba(59,130,246,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-2:hover { box-shadow: 0 0 30px rgba(59,130,246,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-3 { border-color: rgba(34,197,94,.65); box-shadow: 0 0 18px rgba(34,197,94,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-3:hover { box-shadow: 0 0 30px rgba(34,197,94,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-4 { border-color: rgba(6,182,212,.65); box-shadow: 0 0 18px rgba(6,182,212,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-4:hover { box-shadow: 0 0 30px rgba(6,182,212,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-5 { border-color: rgba(99,102,241,.65); box-shadow: 0 0 18px rgba(99,102,241,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-5:hover { box-shadow: 0 0 30px rgba(99,102,241,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-card.frame-6 { border-color: rgba(168,85,247,.65); box-shadow: 0 0 18px rgba(168,85,247,.22), 0 4px 20px rgba(0,0,0,.35); }
.hero-feature-card.frame-6:hover { box-shadow: 0 0 30px rgba(168,85,247,.5), 0 12px 40px rgba(0,0,0,.4); }
.hero-feature-emoji {
    font-size: 84px; line-height: 1;
    filter: drop-shadow(0 6px 16px rgba(168,85,247,0.6));
    position: relative; z-index: 1;
}
.hero-rating {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--neon-grad);
    color: #fff; font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 16px rgba(168,85,247,0.6);
    border: 2px solid rgba(255,255,255,0.2);
}
.hero-feature-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(34,211,238,0.18);
    color: #22d3ee; font-size: 11px; font-weight: 700;
    border: 1px solid rgba(34,211,238,0.4);
    letter-spacing: .5px;
}
.hero-feature-body {
    padding: 16px 18px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-feature-name {
    font-size: 17px; font-weight: 700; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-notice-neon {
    margin: 32px auto 0; padding: 12px 20px; max-width: 640px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.35);
    border-radius: var(--neon-r-btn);
    font-size: 14px; color: var(--neon-text);
}

/* ---------- 热门小游戏 ---------- */
.hot-section { padding: 40px 20px 20px; max-width: 1080px; margin: 0 auto; }
.hot-title {
    font-size: 26px; font-weight: 800; margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #a855f7 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
    position: relative; padding-left: 16px;
}
.hot-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 24px; border-radius: 2px;
    background: var(--neon-grad);
    box-shadow: 0 0 12px rgba(168,85,247,0.6);
}
.hot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hot-card {
    position: relative; display: block;
    background: var(--neon-surface);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: var(--neon-r-card);
    padding: 28px 16px 20px;
    text-align: center;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    backdrop-filter: blur(8px);
    overflow: hidden;
    min-height: 150px;
}
.hot-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 35%, rgba(168,85,247,0.18) 0%, transparent 60%);
    opacity: 0; transition: opacity .2s;
}
.hot-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 10px 30px rgba(124,58,237,0.3), 0 0 20px rgba(168,85,247,0.2);
}
.hot-card:hover::before { opacity: 1; }
.hot-icon-3d {
    font-size: 60px; line-height: 1;
    display: inline-block; margin-bottom: 14px;
    position: relative; z-index: 1;
    text-shadow:
        0 1px 0 rgba(255,255,255,0.15),
        0 4px 8px rgba(168,85,247,0.5),
        0 8px 20px rgba(59,130,246,0.4),
        0 12px 30px rgba(0,0,0,0.5);
    filter: drop-shadow(0 0 12px rgba(168,85,247,0.4));
    transition: transform .2s;
}
.hot-card:hover .hot-icon-3d { transform: scale(1.12); }
.hot-name {
    font-size: 14px; font-weight: 600; color: var(--neon-text);
    position: absolute; left: 14px; bottom: 14px; z-index: 1;
    max-width: calc(100% - 28px);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 形状徽章(轮流 ★/♦/▲) */
.hot-shape-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 800;
    border-radius: 6px;
}
.hot-shape-badge.shape-0 {
    color: #fbbf24;
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.4);
    text-shadow: 0 0 8px rgba(251,191,36,0.6);
}
.hot-shape-badge.shape-1 {
    color: #22d3ee;
    background: rgba(34,211,238,0.15);
    border: 1px solid rgba(34,211,238,0.4);
    text-shadow: 0 0 8px rgba(34,211,238,0.6);
}
.hot-shape-badge.shape-2 {
    color: #f472b6;
    background: rgba(244,114,182,0.15);
    border: 1px solid rgba(244,114,182,0.4);
    text-shadow: 0 0 8px rgba(244,114,182,0.6);
}

/* ---------- 底部 Tab 导航(仅移动端) ---------- */
.tab-bar { display: none; }

@media (max-width: 768px) {
    .tab-bar {
        display: flex;
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
        background: linear-gradient(90deg, #0d0b1a 0%, #1a1033 100%);
        border-top: 1px solid rgba(168,85,247,0.3);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.5), 0 -2px 20px rgba(168,85,247,0.1);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 6px 0 env(safe-area-inset-bottom, 6px);
    }
    .tab-item {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 8px 4px;
        color: var(--neon-muted);
        font-weight: 500;
        text-decoration: none;
        gap: 3px;
        position: relative;
        transition: color .15s;
    }
    .tab-item .tab-icon { display:flex; }
    .tab-item .tab-icon svg { width:22px; height:22px; display:block; }
    .tab-item .tab-label { font-size: 11px; letter-spacing: .3px; }
    .tab-item.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(168,85,247,0.35), rgba(59,130,246,0.25));
        box-shadow: 0 0 16px rgba(168,85,247,0.5);
    }
    .tab-item.active::before {
        content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px;
        background: var(--neon-grad);
        box-shadow: 0 0 8px rgba(168,85,247,0.8);
    }
    .main { padding-bottom: 76px; }

    /* Hero 移动端 */
    .hero-neon { padding: 28px 14px 24px; }
    .hero-inner { padding: 0 2px; }
    .hero-title-neon { font-size: 30px; margin-bottom: 18px; letter-spacing: .5px; }
    .hero-cta { padding: 11px 28px; font-size: 14px; margin-bottom: 22px; }
    .hero-inner .hero-feature-grid { margin: 18px auto 0; gap: 14px; }
    .hero-feature-card { border-radius: 14px; }
    .hero-feature-body { padding: 12px 14px 14px; gap: 5px; }
    .hero-feature-name { font-size: 15px; }
    .hero-feature-howto { font-size: 13px; }
    .hero-feature-body .btn { padding: 7px 16px; font-size: 12px; }
    .hero-notice-neon { margin: 18px auto 0; padding: 10px 14px; font-size: 12px; max-width: 100%; }
    .kefu-fab { bottom: 88px; right: 14px; gap: 10px; }
    .kefu-btn { width: 46px; height: 46px; font-size: 20px; }
    .hot-name { font-size: 12px; bottom: 10px; left: 8px; }
    .hot-shape-badge { width: 22px; height: 22px; font-size: 10px; top: 8px; right: 8px; }
}

/* ============================================================
   游戏封面图 / 介绍 / 玩法说明(追加,不破坏旧类)
   ============================================================ */
/* Hero 特色卡:封面图 + emoji 叠加 */
.hero-feature-cover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
}
.hero-feature-img.has-cover .hero-feature-emoji {
    position: relative; z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 16px rgba(0,0,0,0.8);
}
.hero-feature-img.has-cover::after {
    background: linear-gradient(180deg, rgba(13,11,26,0.15) 0%, transparent 45%, rgba(13,11,26,0.85) 100%);
}

/* 特色卡统一展示(桌面/手机自适应网格) */
.hero-inner .hero-feature-grid {
    max-width: 720px;
    margin: 28px auto 0;
}
@media(max-width: 480px){
    .hero-feature-grid { grid-template-columns: 1fr; }
}

/* 热门网格卡:封面图 + emoji 叠加 */
.hot-cover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hot-card.has-cover { background: transparent; }
.hot-card.has-cover::before { display: none; }
.hot-card.has-cover .hot-icon-3d {
    position: relative; z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 14px rgba(0,0,0,0.85);
}

/* 热门卡:介绍描述(名称下方) */
.hot-desc {
    color: var(--neon-muted, #94a3b8); font-size: 12px; line-height: 1.4; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; text-align: left;
}
.hot-card.has-desc .hot-name { bottom: 40px; }

/* 游戏大厅:介绍 + 玩法说明 */
.game-info { margin-bottom: 16px; }
.game-info-section { margin-bottom: 12px; }
.game-info-section:last-child { margin-bottom: 0; }
.game-info-section h3 { font-size: 14px; color: var(--neon-cyan, #22d3ee); margin: 0 0 6px; }
.game-info-section p,
.game-info-text { color: var(--neon-text, #f8fafc); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }

@media (max-width: 768px) {
    .hot-card.has-desc .hot-name { bottom: 34px; }
    .hot-card .hot-desc { bottom: 8px; left: 8px; right: 8px; }
}

/* ============================================================
   纯封面展示改造:特色卡 / 热门卡 / 大厅封面
   - 视图不再输出 emoji / 评分徽章 / 形状徽章 / description
   - 无封面图时使用紫蓝径向渐变占位(无任何图标)
   ============================================================ */

/* --- Hero 特色卡 --- */
/* body 改为纵向:名称 → 玩法 → 按钮 */
.hero-feature-body {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 6px; padding: 14px 16px 16px;
}
.hero-feature-name {
    font-size: 17px; font-weight: 700; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-feature-howto {
    color: #f1f5f9; font-size: 15px; font-weight: 700; line-height: 1.6;
    margin: 0; text-align: center; word-break: break-word;
}
/* 文案中的"억원"金额高亮(JS 注入 .prize-highlight) */
/* 必须覆盖 -webkit-text-fill-color,否则在 hero-title-neon 渐变文字内显示不出红色 */
.prize-highlight {
    color: #ff3b3b;
    font-weight: 700;
    -webkit-text-fill-color: #ff3b3b;
    background: none;
}
.hero-feature-body .btn { align-self: flex-start; margin-top: 4px; }
.hero-feature-overlay .hero-feature-name { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-feature-overlay .hero-feature-howto { color: rgba(248,250,252,.85); }
.hero-feature-overlay .btn { align-self: center; margin-top: 2px; }

/* --- 热门网格卡 --- */
/* 重置卡片为「封面区 + 信息区」纵向流 */
.hot-card {
    padding: 0; text-align: left; min-height: 0;
    display: flex; flex-direction: column;
}
.hot-cover-area {
    position: relative; height: 120px; width: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.45) 0%, rgba(59,130,246,0.22) 55%, rgba(13,11,26,0.85) 100%);
    overflow: hidden;
}
.hot-cover {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; z-index: 0;
}
.hot-info {
    padding: 10px 12px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.hot-name {
    position: static; max-width: none;
    font-size: 14px; font-weight: 600; color: var(--neon-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-howto {
    color: var(--neon-muted, #94a3b8); font-size: 12px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 游戏大厅:封面 --- */
.game-cover-wrap {
    width: 100%; max-width: 480px;
    border-radius: 16px; overflow: hidden;
    margin: 12px 0 16px;
}
.game-cover { display: block; width: 100%; height: auto; }

/* --- 移动端微调 --- */
@media (max-width: 768px) {
    .hot-cover-area { height: 100px; }
    .hot-info { padding: 8px 10px 10px; }
    .hero-feature-howto { font-size: 13px; }
    .hot-howto { font-size: 11px; }
}

/* ============================================================
   首页:全部游戏列表小标题
   ============================================================ */
.games-list-title {
    font-size: 18px; font-weight: 700; margin-bottom: 18px;
    color: #a855f7; letter-spacing: .5px; text-align: center;
}

/* ============================================================
   首页悬浮客服按钮(仅 home/index.php)
   ============================================================ */
.kefu-fab{position:fixed;right:20px;bottom:120px;display:flex;flex-direction:column;gap:8px;align-items:center;z-index:1000}
.kefu-btn{width:68px;height:68px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;text-decoration:none;background:linear-gradient(135deg,#7c3aed,#2563eb);box-shadow:0 4px 16px rgba(124,58,237,.5);transition:transform .2s,box-shadow .2s;overflow:hidden}
.kefu-btn:hover{transform:scale(1.1);box-shadow:0 6px 24px rgba(168,85,247,.7)}
.kefu-telegram{background:linear-gradient(135deg,#229ED9,#0088cc)}
.kefu-kakao{background:linear-gradient(135deg,#FEE500,#FFCD00);color:#3c1e1e}
.kefu-btn-img{width:100%;height:100%;object-fit:cover;display:block}
.kefu-label{font-size:13px;font-weight:700;color:#e2e8f0;text-shadow:0 1px 4px rgba(0,0,0,.6);line-height:1}
@media(max-width:768px){.kefu-fab{right:10px;top:auto;bottom:80px;transform:none;gap:4px}.kefu-label{font-size:10px}}

/* ============================================================
   首页 维护中游戏点击弹窗
   ============================================================ */
.maint-modal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:24px}
.maint-modal[hidden]{display:none}
.maint-modal-mask{position:absolute;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(4px)}
.maint-modal-box{
    position:relative;z-index:1;width:100%;max-width:340px;
    background:linear-gradient(180deg,#1a1033 0%,#0d0b1a 100%);
    border:1px solid rgba(168,85,247,.45);border-radius:18px;
    padding:30px 24px 24px;text-align:center;
    box-shadow:0 0 40px rgba(168,85,247,.35),0 20px 60px rgba(0,0,0,.6);
}
.maint-modal-close{
    position:absolute;top:10px;right:12px;background:none;border:none;
    color:var(--neon-muted,#94a3b8);font-size:22px;line-height:1;cursor:pointer;padding:4px;
}
.maint-modal-close:hover{color:#fff}
.maint-modal-text{
    font-size:17px;font-weight:700;color:var(--neon-text,#f8fafc);
    line-height:1.6;margin-bottom:20px;
}

/* ============================================================
   游戏大厅:介绍视频播放区(竖屏视频 + 右侧信息栏)
   ============================================================ */
.video-layout{
    display:grid;
    grid-template-columns: 9fr 11fr;
    gap:16px;
    align-items:stretch;
}
/* 猜颜色(live_color):该页没有右侧信息栏,桌面端单列居中显示(手机端已由下方媒体查询居中) */
@media (min-width: 769px){
    .video-layout-live{
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }
}
.game-video-wrap{
    padding:0; overflow:hidden;
    border:1px solid rgba(168,85,247,0.25);
    border-radius:24px;
    background:#000;
    aspect-ratio:9/16;
    height:fit-content;
    position:relative;
}
.game-video{
    width:100%; height:100%; display:block;
    object-fit:cover;
    background:#000;
}
.video-side{
    display:flex; flex-direction:column;
    gap:12px;
    min-width:0;
    align-self:start;
}
.video-side .game-countdown{ margin:0; }
.video-side .stats-grid-compact{ margin:0; }
.video-side .stats-grid-compact .stat-card{
    padding:8px 12px;
}
.video-side .stats-grid-compact .stat-card .label{ font-size:11px; }
.video-side .stats-grid-compact .stat-card .value{ font-size:18px; }
.video-side .card{ margin:0; }
/* 本期下注摘要卡片(下注卡片下方,封盘后保留显示) */
.pv-mybet-list{ display:flex; flex-direction:column; gap:8px; }
.pv-mybet-row{
    display:grid; grid-template-columns:1fr 96px auto; align-items:center;
    gap:8px; padding:12px 14px; border-radius:10px;
    background:rgba(255,255,255,.09);
    border:1px solid rgba(255,255,255,.14);
    font-size:16px;
}
.pv-mybet-cycle{ color:#e2e8f0; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pv-mybet-amount{ color:var(--c-gold); font-size:20px; font-weight:800; text-align:right; font-variant-numeric:tabular-nums; }
.pv-mybet-nums{ display:flex; gap:6px; justify-content:flex-end; align-items:center; }
/* 下注号码球形:金/银/铜三色(与顶部1ST/2nd/3rd出球一致) */
.pv-mybet-ball{
    display:inline-flex; align-items:center; justify-content:center;
    width:32px; height:32px; border-radius:50%;
    font-size:15px; font-weight:800; font-variant-numeric:tabular-nums;
    border:2px solid rgba(255,255,255,.55);
    text-shadow:0 1px 2px rgba(0,0,0,.35);
    box-sizing:border-box;
}
.pv-mybet-ball.b1{
    color:#7c2d12;
    background:radial-gradient(circle at 32% 28%, #fffbe8 0%, #fde047 30%, #f59e0b 62%, #b45309 100%);
    box-shadow:0 0 10px rgba(245,158,11,.5);
}
.pv-mybet-ball.b2{
    color:#1e293b;
    background:radial-gradient(circle at 32% 28%, #fff 0%, #e2e8f0 30%, #94a3b8 62%, #475569 100%);
    box-shadow:0 0 10px rgba(148,163,184,.45);
}
.pv-mybet-ball.b3{
    color:#431407;
    background:radial-gradient(circle at 32% 28%, #ffedd5 0%, #fdba74 30%, #ea580c 62%, #9a3412 100%);
    box-shadow:0 0 10px rgba(234,88,12,.5);
}
/* 上局结果弹窗(盖住加载黑屏,5秒自动关闭,不可手动关闭) */
.pv-result-overlay{
    position:fixed; inset:0; z-index:9999;
    background:rgba(5,6,18,.94);
    display:flex; align-items:center; justify-content:center;
    padding:20px;
    transition:opacity .5s;
}
.pv-result-overlay.pv-hide{ opacity:0; pointer-events:none; }
.pv-result-modal{
    background:var(--c-surface); border:1px solid var(--c-border-strong);
    border-radius:20px; padding:22px 20px; max-width:400px; width:100%;
    box-shadow:var(--shadow-lg); text-align:center;
}
.pv-result-head{ font-size:13px; font-weight:700; color:var(--c-text-soft); letter-spacing:.5px; }
.pv-result-cycle{ font-size:22px; font-weight:800; color:var(--c-gold); margin:6px 0 14px; }
.pv-result-balls{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.pv-rball{ display:flex; flex-direction:column; align-items:center; gap:4px; }
.pv-rball-label{ font-size:11px; color:var(--c-text-soft); font-weight:700; }
.pv-rball-val{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:50%;
    font-size:18px; font-weight:800; color:#fff;
    background:radial-gradient(circle at 32% 28%, #fff 0%, #f87171 28%, #dc2626 60%, #991b1b 100%);
    border:2px solid rgba(255,255,255,.5);
    box-shadow:0 0 10px rgba(220,38,38,.4);
}
.pv-result-bets-title{ font-size:15px; font-weight:800; color:var(--c-text-soft); margin-bottom:10px; text-align:left; }
.pv-result-bets{ display:flex; flex-direction:column; gap:8px; }
/* 下注记录行:去掉ST标签列,固定列宽保证各行数字/金额/状态上下对齐 */
.pv-rb-row{
    display:grid; grid-template-columns:1fr 122px 96px; align-items:center; gap:10px;
    padding:11px 12px; border-radius:10px; background:rgba(255,255,255,.06);
    font-size:16px; text-align:left;
}
.pv-rb-row.win{ background:rgba(34,197,94,.15); border:1px solid rgba(34,197,94,.35); }
.pv-rb-row.lose{ background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.3); }
.pv-rb-nums{ font-weight:800; font-variant-numeric:tabular-nums; font-size:17px; }
.pv-rb-amt{ color:#fff; font-weight:900; text-align:right; font-variant-numeric:tabular-nums; font-size:21px; }
.pv-rb-status{ justify-self:end; font-weight:900; font-size:17px; }
.pv-rb-row.win .pv-rb-status{ color:#22c55e; }
.pv-rb-row.lose .pv-rb-status{ color:#ef4444; }
.pv-rb-reward{ grid-column:1/-1; color:#22c55e; font-weight:900; font-size:18px; }
.pv-result-total{ margin-top:12px; padding:12px; border-radius:10px; font-weight:900; font-size:19px; }
.pv-result-total.win{ background:rgba(34,197,94,.18); color:#4ade80; border:1px solid rgba(34,197,94,.4); }
.pv-result-total.lose{ background:rgba(239,68,68,.14); color:#f87171; }
.pv-result-nobet{ padding:14px; color:var(--c-text-soft); font-size:14px; }
.pv-result-count{ margin-top:14px; font-size:12px; color:var(--c-text-soft); letter-spacing:.3px; }
/* player 信息融合悬浮在视频底部(所有视口,避免被overflow裁剪) */
.game-video-wrap .player-bar-card{
    position:absolute;
    bottom:0; left:0; right:0;
    z-index:10;
    margin:0;
    padding:10px 14px;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(6px);
    border:none;
    border-radius:0 0 24px 24px;
}
/* 视频顶部直播状态条(复用猜颜色 .live-top/.live-badge/.live-phase 组件,悬浮在画面顶部) */
.game-video-wrap .pv-live-top{
    position:absolute;
    top:0; left:0; right:0;
    z-index:11;
    padding:10px 14px;
    background:linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0));
    pointer-events:none;
}
.game-video-wrap .player-rows{ display:flex; flex-direction:column; gap:4px; }
.game-video-wrap .player-row{
    display:flex; align-items:center; gap:10px;
    padding:6px 12px; border-radius:8px;
    background:rgba(255,255,255,.06);
}
.game-video-wrap .player-row.is-winner{ background:rgba(34,197,94,.3); }
.player-row.is-sum-win{
    border:2px solid #22c55e;
    box-shadow:0 0 14px rgba(34,197,94,.35), inset 0 0 6px rgba(34,197,94,.15);
}
.player-row .pr-win-tag{
    font-style:normal; font-size:11px; font-weight:800; color:#22c55e;
    margin-left:4px; vertical-align:middle;
    background:rgba(34,197,94,.15); border:1px solid rgba(34,197,94,.5);
    padding:1px 5px; border-radius:6px; letter-spacing:.3px;
}
/* 顶部回合球位:1ST/2ST/3ST(取玩家 A1/B1/C1) */
.game-video-wrap .pv-rounds{
    display:flex; align-items:flex-start; justify-content:center; gap:22px;
    padding:8px 10px 10px; border-bottom:1px solid rgba(255,255,255,.08);
    margin-bottom:6px;
}
.game-video-wrap .pv-round{ display:flex; flex-direction:column; align-items:center; gap:5px; }
.game-video-wrap .pv-round-label{
    font-size:12px; font-weight:800; color:#cbd5e1; letter-spacing:.5px;
}
.game-video-wrap .pv-round-ball{
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:50%;
    font-size:20px; font-weight:800; color:#94a3b8;
    background:rgba(255,255,255,.08);
    border:2px solid rgba(255,255,255,.25);
    box-sizing:border-box;
    transition: all .3s;
}
.game-video-wrap .pv-round-ball.revealed{
    background:radial-gradient(circle at 32% 28%, #fff 0%, #f87171 28%, #dc2626 60%, #991b1b 100%);
    color:#fff; border-color:rgba(255,255,255,.6);
    box-shadow:0 0 14px rgba(220,38,38,.55);
    text-shadow:0 1px 2px rgba(0,0,0,.4);
}
/* ST模式:只保留顶部球位并放大(卡片吸底,压缩上下内边距使整体下移,露出出球画面) */
.game-video-wrap .player-bar-card.st-mode .pv-rounds{
    gap:40px; padding:3px 10px 4px; border-bottom:none; margin-bottom:0;
}
.game-video-wrap .player-bar-card.st-mode .pv-rounds-prev{
    text-align:center; padding-top:4px; font-size:12px; font-weight:700; color:#f59e0b;
}
.game-video-wrap .player-bar-card.st-mode .pv-round-label{
    font-size:14px; font-weight:800; color:#f1f5f9;
}
.game-video-wrap .player-bar-card.st-mode .pv-round-ball{
    width:72px; height:72px; font-size:32px; font-weight:800;
    border-width:3px;
}
/* ST模式三球金银铜配色(1ST金/2nd银/3rd铜),呼应올림픽主题 */
.game-video-wrap .player-bar-card.st-mode .pv-round:nth-of-type(1) .pv-round-ball.revealed{
    color:#7c2d12;
    background:radial-gradient(circle at 32% 28%, #fffbe8 0%, #fde047 30%, #f59e0b 62%, #b45309 100%);
    box-shadow:0 0 24px rgba(245,158,11,.65);
}
.game-video-wrap .player-bar-card.st-mode .pv-round:nth-of-type(2) .pv-round-ball.revealed{
    color:#1e293b; text-shadow:none;
    background:radial-gradient(circle at 32% 28%, #fff 0%, #e2e8f0 30%, #94a3b8 62%, #475569 100%);
    box-shadow:0 0 24px rgba(148,163,184,.6);
}
.game-video-wrap .player-bar-card.st-mode .pv-round:nth-of-type(3) .pv-round-ball.revealed{
    color:#431407;
    background:radial-gradient(circle at 32% 28%, #ffedd5 0%, #fdba74 30%, #ea580c 62%, #9a3412 100%);
    box-shadow:0 0 24px rgba(234,88,12,.65);
}
/* ST模式:卡片大幅透明,露出视频出球画面 */
.game-video-wrap .player-bar-card.st-mode{
    background:rgba(0,0,0,.18);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
}
/* ST下注卡规则说明文本(橙色,与赔率标签一致) */
.st-rule-text{
    margin-bottom:12px; padding:12px 16px; border-radius:8px;
    background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.45);
    color:#fbbf24; font-size:15px; font-weight:800; line-height:1.8; white-space:pre-wrap;
    letter-spacing:.3px;
}
/* ST结算页:三个球 */
.st-cycle-balls{
    display:flex; align-items:center; justify-content:center; gap:40px; padding:20px 10px;
}
.st-cycle-ball{ display:flex; flex-direction:column; align-items:center; gap:8px; }
.st-cycle-label{ font-size:16px; font-weight:800; color:#f1f5f9; }
.st-cycle-ball .pv-round-ball{
    display:inline-flex; align-items:center; justify-content:center;
    width:76px; height:76px; border-radius:50%;
    font-size:34px; font-weight:800; color:#94a3b8;
    background:rgba(255,255,255,.08);
    border:3px solid rgba(255,255,255,.25);
    box-sizing:border-box;
}
.st-cycle-ball .pv-round-ball.revealed{
    background:radial-gradient(circle at 32% 28%, #fff 0%, #f87171 28%, #dc2626 60%, #991b1b 100%);
    color:#fff; border-color:rgba(255,255,255,.6);
    box-shadow:0 0 24px rgba(220,38,38,.65);
    text-shadow:0 1px 2px rgba(0,0,0,.4);
}
.st-round-result{ display:inline-flex; gap:12px; align-items:center; }
.st-rr-item b{ color:#f59e0b; margin-right:3px; }
/* 三球玩法下注卡片 */
.ball-bet-card{ border-color:rgba(168,85,247,.35); }
.ball-bet-title{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ball-bet-badge{
    display:inline-block; padding:3px 12px; border-radius:14px;
    font-size:15px; font-weight:800; color:#fff; letter-spacing:.5px;
    background:linear-gradient(135deg,#a855f7,#6366f1);
    box-shadow:0 2px 8px rgba(168,85,247,.4);
}
.ball-bet-rate{
    margin-left:auto; font-size:15px; font-weight:800; color:#f59e0b;
    background:rgba(245,158,11,.12); border:1px solid rgba(245,158,11,.4);
    padding:2px 10px; border-radius:12px;
}
.ball-bet-card .form-actions .btn-glow{ font-size:15px; padding:10px 22px; }
.game-video-wrap .pr-name{ font-size:22px; font-weight:800; color:var(--c-primary); min-width:20px; }
.game-video-wrap .pr-rate{ font-size:14px; color:var(--c-gold); min-width:56px; }
.game-video-wrap .pr-rate b{ font-size:17px; }
/* 球号容器 flex:1 铺满整行,space-evenly 让数字均匀分布,填满右侧空白 */
.game-video-wrap .pr-balls{ display:flex; gap:8px; flex:1; align-items:center; justify-content:space-evenly; }
.game-video-wrap .pr-ball-box{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:30px; height:30px; padding:0 9px; box-sizing:border-box;
    margin:0; border-radius:6px;
    font-size:16px; font-weight:800; font-style:normal;
    background:rgba(255,59,59,.15); color:#ff3b3b;
    border:1px solid rgba(255,59,59,.45);
}
.game-video-wrap .pr-ball-box.empty{ background:rgba(255,255,255,.05); color:#888; font-weight:400; border-color:transparent; }
.game-video-wrap .pr-ball-box.dup{ background:rgba(255,59,59,.28); color:#ff5c5c; }
.game-video-wrap .pr-ball-box.sum{ background:rgba(168,85,247,.15); color:#a855f7; }
.game-video-wrap .pr-freq{ font-size:12px; color:var(--c-text-soft); }
.game-video-wrap .pr-tag{ font-size:10px; padding:2px 6px; border-radius:4px; background:#22c55e; color:#fff; }
@media(max-width:768px){
    .video-layout{
        grid-template-columns:1fr;
        position:relative;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:12px;
    }
    .game-video-wrap{
        aspect-ratio:9/16;
        max-height:70vh;
        width:min(100%, calc(70vh * 9 / 16));
        border-radius:18px;
        position:relative;
    }
    .game-video{ object-fit:contain; }
    .video-side{ width:min(100%, calc(70vh * 9 / 16)); min-width:0; align-self:center; }
    /* 所有状态倒计时悬浮在视频卡片内部顶部,与视频同宽居中对齐 */
    .video-side .game-countdown{
        position:absolute;
        top:0;
        left:50%;
        transform:translateX(-50%);
        width:min(100%, calc(70vh * 9 / 16));
        z-index:10;
        margin:0;
        padding:10px 14px;
        border:none;
        border-radius:18px 18px 0 0;
        backdrop-filter:blur(4px);
    }
    .video-side .game-countdown .ct-meta{ display:block; font-size:11px; opacity:.9; }
    .video-side .game-countdown .ct-label{ font-size:12px; }
    .video-side .game-countdown .ct-value{ font-size:16px; padding:2px 10px; letter-spacing:0; }

    /* 手机端:LIVE 组件并入 game-countdown 卡内(不再悬浮在视频上,避免遮挡) */
    .video-layout-pv .pv-live-top{ display: none; }
    .video-layout-pv .game-countdown .ct-live{ display: inline-flex; margin-bottom: 4px; }

    /* stats-grid 三列一行,紧凑省空间(覆盖内联1fr) */
    .video-side .stats-grid-compact{
        grid-template-columns: repeat(3, 1fr) !important;
        gap:6px;
    }
    .video-side .stats-grid-compact .stat-card{ padding:8px 6px; }
    .video-side .stats-grid-compact .stat-card .label{ font-size:10px; margin-bottom:2px; }
    .video-side .stats-grid-compact .stat-card .value{ font-size:14px; }

    /* 手机版 player 行紧凑(竖排3行,每行横排) */
    .game-video-wrap .player-bar-card{ padding:6px 8px; border-radius:0 0 18px 18px; }
    /* 手机版 ST模式球位:缩小球径与间距,随容器收缩,避免左右溢出被裁剪 */
    .game-video-wrap .player-bar-card.st-mode .pv-rounds{ gap:12px; padding:3px 4px 4px; justify-content:space-between; }
    .game-video-wrap .player-bar-card.st-mode .pv-round{ flex:1; min-width:0; }
    .game-video-wrap .player-bar-card.st-mode .pv-round-ball{ width:min(56px,17vw); height:min(56px,17vw); font-size:min(26px,9vw); border-width:2px; }
    .game-video-wrap .player-bar-card.st-mode .pv-round-label{ font-size:12px; }
    .game-video-wrap .player-rows{ gap:3px; }
    .game-video-wrap .player-row{ padding:4px 10px; gap:8px; }
    .game-video-wrap .pr-name{ font-size:18px; min-width:14px; }
    .game-video-wrap .pr-rate{ font-size:12px; min-width:44px; }
    .game-video-wrap .pr-rate b{ font-size:13px; }
    .game-video-wrap .pr-balls{ gap:6px; align-items:center; justify-content:space-evenly; }
    .game-video-wrap .pr-ball-box{ min-width:24px; height:24px; padding:0 7px; font-size:14px; }
    .game-video-wrap .pr-freq{ font-size:10px; }
    .game-video-wrap .pr-tag{ font-size:9px; padding:2px 5px; }

    /* 手机版下注区紧凑并排 */
    .video-side .player-pick{ grid-template-columns:repeat(3,1fr); gap:6px; margin:8px 0; }
    .video-side .player-pick label{ padding:8px 4px; }
    .video-side .player-pick .pp-name{ font-size:16px; }
    .video-side .player-pick .pp-rate{ font-size:10px; margin-top:2px; }
    .video-side .player-pick .pp-rate b{ font-size:12px; }
    .video-side .form-group{ margin-bottom:10px; }
    .video-side .form-group label{ font-size:12px; margin-bottom:3px; }
    .video-side .form-control{ padding:8px 10px; font-size:13px; }
    .video-side .form-group .hint{ font-size:10px; }
    .video-side .bet-summary{ padding:6px 10px; font-size:11px; margin-top:6px; }
    .video-side .form-actions{ flex-direction:row; gap:8px; margin-top:6px; }
    .video-side .form-actions .btn{ flex:1; padding:8px 10px; font-size:13px; width:auto; }

    /* 手机版 video-wrap / stats-grid / 下注card 同宽对齐 */
    .video-layout .game-video-wrap{ box-sizing:border-box; }
    .video-side .stats-grid-compact,
    .video-side .card{ width:100%; box-sizing:border-box; margin-left:auto; margin-right:auto; }
}

/* ============================================================
   布告栏前台样式(竖版卡片,一横三个,点击进入详情页)
   ============================================================ */
.bulletin-section {
    padding: 40px 20px 20px;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}
.bulletin-head {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: .5px;
}
.bulletin-head::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #a855f7, #6366f1);
}
.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bulletin-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(160deg, rgba(30,27,75,.92), rgba(15,15,35,.96));
    border: 1px solid rgba(168,85,247,.35);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.bulletin-card:hover {
    border-color: rgba(168,85,247,.85);
    box-shadow: 0 10px 30px rgba(124,58,237,.4);
    transform: translateY(-4px);
}
.bulletin-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.bulletin-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bulletin-card-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.bulletin-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.bulletin-card-excerpt {
    margin: 0;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    word-break: break-word;
}
.bulletin-card-time {
    font-size: 11.5px;
    color: #94a3b8;
}
.bulletin-card-more {
    font-size: 12.5px;
    color: #c084fc;
    margin-top: auto;
    font-weight: 700;
    letter-spacing: .5px;
}
.bulletin-card.bulletin-empty {
    min-height: 180px;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(168,85,247,.2);
    background: transparent;
}
.bulletin-card-empty-text {
    color: #94a3b8;
    font-size: 13px;
}

/* 布告栏响应式 */
@media (max-width: 768px) {
    .bulletin-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bulletin-section {
        padding: 24px 10px 16px;
    }
    .bulletin-card {
        flex-direction: column;
    }
    .bulletin-card-cover {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .bulletin-card-body {
        padding: 14px 12px 16px;
    }
    .bulletin-card-title {
        font-size: 15px;
    }
    .bulletin-card-excerpt {
        font-size: 12.5px;
        -webkit-line-clamp: 2;
    }
}

/* 游戏卡片竖向排列(桌面1列+缩小 / 手机1列) */
.hero-feature-grid {
    grid-template-columns: 1fr !important;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* 布告栏详情页(干净的公告样式) */
.bulletin-detail-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}
.bulletin-detail-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168,85,247,0.2);
}
.bulletin-detail-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
}
.bulletin-detail-meta {
    font-size: 12px;
    color: #64748b;
}
.bulletin-detail-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bulletin-detail-body .bulletin-text-block {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.45);
    color: #fbbf24;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: .3px;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: center;
}
.bulletin-detail-body .bulletin-image-block {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.bulletin-detail-body .bulletin-video-block {
    width: 100%;
    max-height: 400px;
    border-radius: 10px;
    display: block;
}
/* 布告栏视频播放失败时的替代提示 */
.bulletin-video-fallback {
    text-align: center; padding: 30px 16px; border-radius: 10px;
    border: 1px dashed rgba(168,85,247,0.4); background: rgba(15,16,32,.4);
    color: var(--neon-muted, #94a3b8); font-size: 13px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.bulletin-video-fallback a { text-decoration: none; }
.bulletin-detail-empty {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    padding: 60px 0;
}
.bulletin-detail-back {
    margin-top: 36px;
    text-align: center;
}
.bulletin-detail-back .btn-glow,
.bulletin-detail-back .btn {
    text-decoration: none;
}

/* ---------- 猜球号输入(下注表单内联) ---------- */
.guess-balls-group .guess-balls-row {
    display: flex; gap: 10px; align-items: center;
}
.guess-balls-group .guess-ball-input {
    width: 72px; text-align: center; font-size: 18px; font-weight: 700;
    padding: 10px 8px;
}
.guess-balls-group .guess-ball-input::placeholder {
    color: var(--c-text-faint); font-weight: 400; font-size: 16px;
}
@media (max-width: 480px) {
    .guess-balls-group .guess-ball-input { width: 64px; font-size: 16px; }
}

/* ---------- 游戏页下拉菜单(全屏覆盖) ---------- */
.game-menu-wrap { position: relative; display: inline-block; }
.game-menu-toggle {
    display: inline-flex; align-items: center; gap: 6px;
}
.game-menu-toggle .gm-bars {
    display: inline-flex; flex-direction: column; gap: 3px;
}
.game-menu-toggle .gm-bars span {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
}
.game-menu-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15, 16, 32, 0.97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 14px; padding: 60px 20px;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.game-menu-overlay.open { opacity: 1; visibility: visible; }
.game-menu-overlay.has-content { justify-content: flex-start; padding-top: 56px; }
.game-menu-close {
    position: fixed; top: 18px; right: 18px; z-index: 1001;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(120,130,200,.14); border: 1px solid var(--c-border-strong);
    color: var(--c-text); font-size: 24px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
}
.game-menu-close:hover { background: rgba(120,130,200,.28); transform: rotate(90deg); }
.game-menu-list {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 440px;
}
.game-menu-title {
    margin: 0 0 8px; font-size: 14px; font-weight: 600;
    color: var(--c-text-soft); letter-spacing: 1px; text-transform: uppercase;
}
.game-menu-nav {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%;
}
.game-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; min-height: 62px;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); color: var(--c-text);
    font-size: 16px; font-weight: 600; text-decoration: none;
    cursor: pointer; width: 100%; text-align: left;
    transition: background .15s, border-color .15s, transform .15s, color .15s;
}
.game-menu-item:hover {
    background: var(--c-surface-hover); border-color: var(--c-primary);
    transform: translateY(-1px); color: #fff;
}
.game-menu-item .gm-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--c-primary-soft); font-size: 18px; flex-shrink: 0;
}
.game-menu-item .gm-label { flex: 1; }
.game-menu-item .gm-arrow { color: var(--c-text-faint); font-size: 18px; }
/* 内容视图 */
.game-menu-content { width: 100%; max-width: 800px; }
.game-menu-back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer;
    color: var(--c-text-soft); font-size: 14px; font-weight: 600;
    padding: 8px 12px; margin-bottom: 10px; border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
}
.game-menu-back-btn:hover { color: var(--c-text); background: var(--c-primary-soft); }
.game-menu-content-body {
    width: 100%;
}
.game-menu-content-body .game-menu-loading {
    text-align: center; padding: 60px 20px; color: var(--c-text-soft);
    font-size: 15px;
}
.game-menu-content-body .game-menu-loading::before {
    content: ''; display: inline-block; width: 24px; height: 24px;
    border: 3px solid var(--c-border); border-top-color: var(--c-primary);
    border-radius: 50%; animation: gm-spin .8s linear infinite;
    margin-right: 10px; vertical-align: middle;
}
@keyframes gm-spin { to { transform: rotate(360deg); } }
/* 内容区内的分页/卡片等继承主题 */
.game-menu-content-body :is(.card, .table-wrap, table.data-table) { width: 100%; }
.game-menu-content-body .flex.between.items-center { display: none; }
@media (max-width: 480px) {
    .game-menu-overlay { padding: 50px 16px; }
    .game-menu-overlay.has-content { padding-top: 56px; }
    .game-menu-item { padding: 16px 18px; min-height: 56px; font-size: 15px; }
}

/* ============================================================
   直播猜颜色模式(live.php 前台):直播舞台 + 下注 + 结果覆盖层
   ============================================================ */
.live-stage{
    position: relative; overflow: hidden;
    min-height: 340px; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(99,102,241,.18), transparent 60%),
        linear-gradient(180deg, #0b1020 0%, #131a33 55%, #0b1020 100%);
    border: 1px solid rgba(99,102,241,.25);
}
.live-top{
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px 0;
}
.live-badge{
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    background: rgba(220,38,38,.16); border: 1px solid rgba(248,113,113,.5);
    color: #fca5a5; font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
}
.live-dot{
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
    box-shadow: 0 0 8px #ef4444; animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-cycle{ color: #cbd5e1; font-size: 13px; font-variant-numeric: tabular-nums; }
.live-phase{
    margin-left: auto; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,.08); color: #e2e8f0; border: 1px solid rgba(255,255,255,.14);
}
.live-phase[data-phase="betting"]{ background: rgba(34,197,94,.16); color: #86efac; border-color: rgba(34,197,94,.45); }
.live-phase[data-phase="running"]{ background: rgba(234,179,8,.14); color: #fde047; border-color: rgba(234,179,8,.45); }
.live-phase[data-phase="settled"]{ background: rgba(168,85,247,.16); color: #d8b4fe; border-color: rgba(168,85,247,.45); }
.live-center{
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 18px 12px; min-height: 170px;
}
.live-count{
    font-size: 64px; font-weight: 800; color: #fff; letter-spacing: 2px;
    font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(99,102,241,.55);
}
.live-count-hint{ margin-top: 6px; color: #94a3b8; font-size: 14px; }

/* ---- 真直播画面(SRS/云推流):视频跟随直播实际比例,竖屏友好 ---- */
/* 视频区容器:等待覆盖层只覆盖画面,不遮挡下方状态条/倒计时 */
.live-video-box{ position: relative; }
.live-video{ position: relative; margin-top: 0; border-radius: 10px; overflow: hidden; background: #000; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.live-video-el{ display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
/* 跟随直播真实比例:竖屏(高>宽)时降低高度限制,让竖屏尽量占满;横屏保持宽幅 */
.live-video.is-landscape-video{ aspect-ratio: 16 / 9; }
@media (max-height: 640px){
    .live-video{ max-height: 60vh; }
    .live-video-el{ min-height: 0; }
}
.live-video .live-center-over{
    position: absolute; inset: 0; z-index: 3; flex: none; padding: 0;
    align-items: center; justify-content: center; pointer-events: none;
}
.live-video .live-center-over::before{
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0,0,0,.45), rgba(0,0,0,.12) 72%);
}
.lv-offline{
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 14px; letter-spacing: .5px;
    background: rgba(2,6,23,.62);
}
.lv-sound{
    position: absolute; right: 10px; top: 10px; z-index: 4;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-weight: 800; color: #e2e8f0;
    background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.28);
}
.lv-sound:hover{ background: rgba(30,41,59,.9); }
.lv-sound.on{ background: rgba(34,197,94,.85); border-color: rgba(255,255,255,.55); color: #fff; }
/* 等待直播弹窗:未开播时全台覆盖(韩文提示) */
.live-waiting{
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(99,102,241,.18), transparent 60%),
        linear-gradient(180deg, #0b1020 0%, #131a33 55%, #0b1020 100%);
}
.live-waiting.lw-hide{ display: none; }
.lw-card{
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 34px 46px; border-radius: 18px; text-align: center;
    background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.lw-ring{
    width: 56px; height: 56px; border-radius: 50%;
    border: 5px solid rgba(99,102,241,.2); border-top-color: #818cf8;
    animation: lsSpin 1.1s linear infinite;
}
.lw-title{ color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.lw-sub{ color: #94a3b8; font-size: 14px; }
/* 封盘等待动画 */
.live-sealing{ display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ls-ring{
    width: 74px; height: 74px; border-radius: 50%;
    border: 5px solid rgba(250,204,21,.2); border-top-color: #facc15;
    animation: lsSpin 1.1s linear infinite;
}
@keyframes lsSpin { to { transform: rotate(360deg); } }
.ls-text{ color: #fde047; font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.ls-count{ color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.live-video-local{ object-fit: contain; }
/* 本地视频:不强制 4:3,按视频自身比例显示,限制最大高度以适配手机竖屏观看 */
.live-video-local-wrap{ aspect-ratio: auto; height: auto; max-height: 62vh; min-height: 220px; }
.live-video-local-wrap .live-video-local{ width: 100%; height: auto; max-height: 62vh; min-height: 220px; object-fit: contain; }
/* 状态条:倒计时/封盘/结果,独立于视频下方,不遮挡画面 */
.live-status{
    margin-top: 0; padding: 14px 12px; border-radius: 10px;
    min-height: 96px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
}
.live-status-inner{ display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
.live-status[data-phase="betting"]{ background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); }
.live-status[data-phase="running"]{ background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.35); }
.live-status[data-phase="settled"]{ background: rgba(168,85,247,.10); border-color: rgba(168,85,247,.40); }
.live-status .live-count{ font-size: 48px; text-shadow: 0 0 24px rgba(99,102,241,.5); }
.live-status .live-sealing{ gap: 12px; }
.live-status .ls-ring{ width: 56px; height: 56px; }
/* 开奖颜色爆发 */
.live-result-burst{
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    animation: burstIn .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes burstIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.live-result-burst .lrb-name{
    min-width: 200px; padding: 18px 44px; border-radius: 999px; text-align: center;
    font-size: 40px; font-weight: 900; color: #fff;
    background: var(--burst); border: 4px solid rgba(255,255,255,.65);
    box-shadow: 0 0 60px var(--burst), inset 0 -8px 24px rgba(0,0,0,.25);
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.live-result-burst .lrb-sub{ margin-top: 12px; color: #cbd5e1; font-size: 15px; letter-spacing: 2px; }
/* 底部三色热度 */
.live-bottom{
    display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 12px 14px 14px;
}
.live-heat{
    display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.live-heat .lh-swatch{
    width: 100%; height: 5px; border-radius: 3px; background: var(--heat);
    box-shadow: 0 0 10px var(--heat); margin-bottom: 3px;
}
.live-heat .lh-name{ color: #e2e8f0; font-size: 13px; font-weight: 700; }
.live-heat .lh-amt{ color: #fff; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.live-heat .lh-bets{ color: #94a3b8; font-size: 12px; }

/* 下注卡:双色(黑/白)发光大球 */
.live-color-pick{ display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 14px; }
.live-pick{
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 22px 8px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.12);
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.live-pick .lp-swatch{
    width: 58px; height: 58px; border-radius: 50%; position: relative;
    background: radial-gradient(circle at 32% 28%, #fff 0%, var(--pick) 55%, color-mix(in srgb, var(--pick) 60%, #000) 100%);
    border: 3px solid rgba(255,255,255,.55);
    box-shadow: 0 0 22px var(--glow, color-mix(in srgb, var(--pick) 70%, transparent)),
                0 0 46px var(--glow-soft, transparent),
                inset 0 -6px 14px rgba(0,0,0,.35);
    animation: lpGlowPulse 2.4s ease-in-out infinite;
}
/* 黑色球:体色近黑 + 白色高光描边,靠外圈白光凸显; 白色球:自身强发光 */
.live-pick[data-player="A"] .lp-swatch{
    --glow: rgba(255,255,255,.35);
    --glow-soft: rgba(255,255,255,.12);
}
.live-pick[data-player="B"] .lp-swatch{
    --glow: rgba(255,255,255,.9);
    --glow-soft: rgba(200,220,255,.7);
    border-color: rgba(220,240,255,.85);
}
@keyframes lpGlowPulse { 0%,100%{ filter: brightness(1); } 50%{ filter: brightness(1.18); } }
.live-pick .lp-name{ font-size: 17px; font-weight: 800; color: var(--c-text); }
.live-pick .lp-rate{ font-size: 14px; font-weight: 700; color: var(--c-gold); }
.live-pick.picked{
    transform: translateY(-3px);
    border-color: var(--pick);
    box-shadow: 0 8px 24px rgba(0,0,0,.35), var(--pick-glow, transparent);
}
.live-pick[data-player="A"].picked{ --pick-glow: 0 0 24px rgba(255,255,255,.35); }
.live-pick[data-player="B"].picked{ --pick-glow: 0 0 28px rgba(220,240,255,.8); }
.live-bet-btn{ width: 100%; font-size: 17px; font-weight: 800; padding: 13px; }
.live-bet-btn.disabled{ opacity: .45; cursor: not-allowed; }
.live-bet-msg{ margin-top: 10px; min-height: 20px; font-size: 14px; font-weight: 700; text-align: center; }
.live-bet-msg.ok{ color: #4ade80; }
.live-bet-msg.err{ color: #f87171; }

/* 我的中注摘要 */
.live-mybet-list{ display: flex; flex-direction: column; gap: 8px; }
.live-mybet-row{
    display: grid; grid-template-columns: 1fr 110px 120px; align-items: center; gap: 8px;
    padding: 12px 14px; border-radius: 10px;
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); font-size: 16px;
}
.lmb-color{ display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.lmb-dot{ width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255,255,255,.6); box-shadow: 0 0 8px var(--c); }
.lmb-amt{ color: var(--c-gold); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.lmb-status{ text-align: right; color: #94a3b8; font-size: 14px; font-weight: 700; }
.live-prev-row{ display: flex; align-items: center; gap: 12px; font-size: 15px; }
.lpv-no{ color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.lpv-color{ display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }

/* 开奖结果覆盖层(全屏颜色爆发,8秒自动关闭) */
.live-result-overlay{
    position: fixed; inset: 0; z-index: 90;
    display: flex; align-items: center; justify-content: center;
    background: rgba(5,8,20,.88); backdrop-filter: blur(6px);
    transition: opacity .5s ease;
}
.live-result-overlay.live-hide{ opacity: 0; pointer-events: none; }
.lro-body{
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    padding: 36px 30px; border-radius: 20px; max-width: 92vw; width: 420px;
    background: rgba(15,20,40,.92); border: 1px solid rgba(255,255,255,.15);
    animation: burstIn .5s cubic-bezier(.2,1.4,.4,1);
}
/* 后台:折叠区块(备用画面源等) */
.admin-collapse{ margin: 0 0 16px; }
.admin-collapse > summary{
    cursor: pointer; font-weight: 700; font-size: 14px; padding: 12px 16px;
    background: rgba(0,0,0,.03); border: 1px solid var(--c-border); border-radius: 10px;
    list-style: none;
}
.admin-collapse > summary::-webkit-details-marker{ display: none; }
.admin-collapse > summary::before{ content: '▸ '; }
.admin-collapse[open] > summary::before{ content: '▾ '; }
/* 后台:预设导入子块标题 */
.pv-src-head{ font-weight: 700; font-size: 13px; margin-bottom: 8px; }

/* 后台:猜颜色开盘模式切换(人工即时开盘 / 视频预设开盘) */
.live-mode-switch{
    padding: 12px 14px; border-radius: 10px; margin-bottom: 12px;
    background: rgba(0,0,0,.03); border: 1px solid var(--c-border);
}
.lms-head{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lms-label{ font-weight: 800; font-size: 13px; color: var(--c-text-soft); }
.lms-group{ display: flex; gap: 8px; flex-wrap: wrap; }
.lms-btn{
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700;
    background: #fff; color: var(--c-text); border: 1px solid var(--c-border);
    transition: background .15s, color .15s, border-color .15s;
}
.lms-btn:hover{ border-color: #2563eb; color: #2563eb; }
.lms-btn.on{ background: #2563eb; color: #fff; border-color: #2563eb; box-shadow: 0 2px 10px rgba(37,99,235,.3); }

/* 后台:重置开奖(设置接下来 5 次结果) */
.live-next-results{
    padding: 12px 14px; border-radius: 10px; margin-bottom: 12px;
    background: rgba(0,0,0,.03); border: 1px solid var(--c-border);
}
.lnr-title{ font-weight: 800; font-size: 13px; color: var(--c-text-soft); margin-bottom: 8px; }
.lnr-row{ display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.lnr-item{ display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lnr-no{ font-size: 11px; color: var(--c-text-soft); font-weight: 700; }
.lnr-sel{ width: 76px !important; padding: 6px 8px !important; font-size: 13px !important; }
.lnr-btn{ margin-left: 4px; }

/* 后台:开始直播结果提示 */
.api-live-msg{ margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.api-live-msg.ok{ background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.35); }
.api-live-msg.warn{ background: rgba(245,158,11,.14); color: #b45309; border: 1px solid rgba(245,158,11,.4); }
.lro-cycle{ color: #94a3b8; font-size: 14px; font-variant-numeric: tabular-nums; }
.lro-color{
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 34px; font-weight: 900; color: #fff;
    padding: 14px 38px; border-radius: 999px;
    background: var(--c); border: 3px solid rgba(255,255,255,.6);
    box-shadow: 0 0 50px var(--c); text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.lro-dot{ width: 22px; height: 22px; border-radius: 50%; background: #fff; opacity: .85; }
.lro-my{ width: 100%; display: flex; flex-direction: column; gap: 8px; }
.lro-bet-row{
    display: grid; grid-template-columns: 1fr 126px 138px; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 17px;
}
.lro-bet-row.win{ background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35); }
.lb-color{ display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; }
.lb-amt{ text-align: right; color: #fff; font-weight: 900; font-variant-numeric: tabular-nums; font-size: 21px; }
.lb-res{ text-align: right; font-weight: 900; color: #94a3b8; font-size: 17px; }
.lro-bet-row.win .lb-res{ color: #4ade80; }
.lro-total{ text-align: center; color: var(--c-gold); font-size: 22px; font-weight: 900; padding-top: 4px; }
.lro-none{ text-align: center; color: #64748b; font-size: 14px; padding: 8px; }
.lro-close{ color: #64748b; font-size: 13px; }

/* ============================================================
   直播猜颜色·后台控制台(game_live.php)
   ============================================================ */
.live-admin-status{
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 16px; border-radius: 10px; margin-bottom: 14px;
    background: rgba(0,0,0,.04); border: 1px solid var(--c-border);
}
.las-phase{ font-size: 20px; font-weight: 800; }
.las-phase.betting{ color: #16a34a; }
.las-phase.running{ color: #d97706; }
.las-phase.settled{ color: #7c3aed; }
.las-phase.idle{ color: #64748b; }
.las-meta{ display: flex; align-items: center; gap: 12px; color: var(--c-text-soft); font-variant-numeric: tabular-nums; }
.las-countdown{
    font-size: 22px; font-weight: 800; color: var(--c-gold);
    padding: 2px 12px; border-radius: 8px; background: rgba(245,158,11,.1);
}
.live-admin-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.la-draw-btn{
    background: var(--c); color: #fff; font-weight: 800; font-size: 16px;
    border: 2px solid rgba(0,0,0,.15); padding: 10px 26px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 40%, transparent);
}
.la-draw-btn:hover{ filter: brightness(1.1); }
.live-admin-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.la-stat{
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px;
    background: rgba(0,0,0,.03); border: 1px solid var(--c-border);
}
.la-stat .las-swatch{ width: 100%; height: 6px; border-radius: 3px; background: var(--c); }
.la-stat .las-name{ font-weight: 700; }
.la-stat .las-amt{ font-size: 20px; font-weight: 800; color: var(--c-gold); font-variant-numeric: tabular-nums; }
.la-stat .las-cnt{ color: var(--c-text-soft); font-size: 13px; }
.live-admin-prev{ margin-top: 12px; color: var(--c-text-soft); }
.lap-color{ font-weight: 800; }

/* 后台控制台:直播画面预览 */
.live-admin-preview{ position: relative; margin: 12px 0 16px; border-radius: 10px; overflow: hidden; background: #000; }
.live-admin-preview video{ display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.lap-tag{
    position: absolute; left: 10px; top: 10px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fca5a5;
    background: rgba(2,6,23,.7); border: 1px solid rgba(248,113,113,.45);
}
.lap-offline{
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 14px; background: rgba(2,6,23,.55);
}

/* 后台:直播流状态调试 */
.lap-debug{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; }
.lap-badge{
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #64748b; box-shadow: 0 0 6px currentColor; color: #64748b;
}
.lap-badge-off{ background: #64748b; color: #64748b; }
.lap-badge-trying{ background: #f59e0b; color: #f59e0b; animation: livePulse 1.2s ease-in-out infinite; }
.lap-badge-on{ background: #22c55e; color: #22c55e; }
.lap-proto{
    padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,.08); color: #94a3b8; border: 1px solid rgba(255,255,255,.14);
}

/* 后台:操作结果提示 */
.live-toast{ margin-top: 12px; min-height: 20px; font-size: 14px; font-weight: 700; }
.live-toast.ok{ color: #16a34a; }
.live-toast.err{ color: #dc2626; }

@media (max-width: 640px) {
    .live-stage{ min-height: 300px; }
    .live-video{ min-height: 170px; margin-top: 0; }
    .live-video-el{ min-height: 170px; }
    /* 本地视频:手机上按竖屏比例显示,限制高度避免顶掉下方内容 */
    .live-video-local-wrap, .live-video-local-wrap .live-video-local{ max-height: 52vh; }
    .live-status{ min-height: 78px; padding: 10px 8px; margin-top: 0; }
    .live-status .live-count{ font-size: 38px; }
    .live-status .ls-ring{ width: 44px; height: 44px; }
    .live-count{ font-size: 48px; }
    .live-result-burst .lrb-name{ font-size: 30px; padding: 14px 30px; }
    .live-color-pick{ gap: 8px; }
    .live-pick .lp-swatch{ width: 38px; height: 38px; }
    .live-pick .lp-name{ font-size: 14px; }
    .live-mybet-row{ grid-template-columns: 1fr 90px 90px; font-size: 14px; }
    .lro-color{ font-size: 26px; }
    /* 开奖弹窗"我的下注"数字:手机上放大后仍保持单行不溢出 */
    .lro-bet-row{ grid-template-columns: 1fr 92px 100px; gap: 6px; padding: 10px 11px; font-size: 14px; }
    .lb-color{ font-size: 14px; }
    .lb-amt{ font-size: 18px; }
    .lb-res{ font-size: 14px; }
    .lro-total{ font-size: 19px; }
    .pv-rb-row{ grid-template-columns: 1fr 96px 76px; gap: 6px; padding: 10px 11px; font-size: 14px; }
    .pv-rb-nums, .pv-rb-status{ font-size: 14px; }
    .pv-rb-amt{ font-size: 18px; }
    .pv-rb-reward{ font-size: 15px; }
    .pv-result-total{ font-size: 16px; }
    .live-admin-stats{ grid-template-columns: 1fr; }
}

/* ============================================================
   高端金配色定制(顶栏品牌 / 首页 hero 主副标题)
   ============================================================ */
/* 顶栏品牌:金属金渐变 + 柔和光晕,更显高级感 */
.topbar .brand,
.on-lobby .topbar .brand {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 18%, #f5b301 52%, #d97706 78%, #fcd34d 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(245,179,1,.35));
}
/* 首页 hero:line1 / line2 统一为同款香槟金渐变 */
.hero-title-neon .line1,
.hero-title-neon .line2 {
    background: linear-gradient(135deg, #fff7e0 0%, #fde68a 30%, #f5b301 68%, #fbbf24 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
}
/* hero 中被高亮为红色的金额词(3억원 !)仍保持醒目红,不受金色渐变影响 */
.hero-title-neon .line1 .prize-highlight,
.hero-title-neon .line2 .prize-highlight,
.hero-title-neon .line1 span.prize-highlight,
.hero-title-neon .line2 span.prize-highlight {
    -webkit-text-fill-color: #ff3b3b !important;
    color: #ff3b3b !important;
    background: none !important;
}

/* ============================================================
   ST/로또 33 开奖弹窗:三球颜色与游戏界面一致(金银铜)
   ============================================================ */
.pv-result-balls.st-balls .pv-rball:nth-of-type(1) .pv-rball-val {
    color: #7c2d12;
    background: radial-gradient(circle at 32% 28%, #fffbe8 0%, #fde047 30%, #f59e0b 62%, #b45309 100%);
    border-color: rgba(255,255,255,.6);
    box-shadow: 0 0 16px rgba(245,158,11,.65);
}
.pv-result-balls.st-balls .pv-rball:nth-of-type(2) .pv-rball-val {
    color: #1e293b;
    background: radial-gradient(circle at 32% 28%, #fff 0%, #e2e8f0 30%, #94a3b8 62%, #475569 100%);
    border-color: rgba(255,255,255,.6);
    box-shadow: 0 0 16px rgba(148,163,184,.6);
}
.pv-result-balls.st-balls .pv-rball:nth-of-type(3) .pv-rball-val {
    color: #431407;
    background: radial-gradient(circle at 32% 28%, #ffedd5 0%, #fdba74 30%, #ea580c 62%, #9a3412 100%);
    border-color: rgba(255,255,255,.6);
    box-shadow: 0 0 16px rgba(234,88,12,.65);
}

/* ============================================================
   命中结算:弹窗烟花特效(纯 CSS 粒子)
   要点:特效容器必须在弹窗「之上」(z-index 3 > 弹窗 2),
        否则粒子从中心飞出时大半行程被弹窗挡住 → 看起来又淡又几乎没有
   ============================================================ */
.pv-result-modal { position: relative; z-index: 2; }
.pv-win-fx {
    position: absolute; inset: 0; z-index: 3;
    overflow: hidden; pointer-events: none;
}
/* 命中瞬间的金光脉冲(增强命中感) */
.pv-win-fx::before{
    content: ''; position: absolute; left: 50%; top: 40%;
    width: min(80vw, 560px); height: min(80vw, 560px);
    transform: translate(-50%,-50%); border-radius: 50%;
    background: radial-gradient(circle, rgba(255,205,70,.30) 0%, rgba(255,205,70,0) 62%);
    animation: fwFlash 1.1s ease-out forwards;
}
@keyframes fwFlash {
    0%   { opacity: .95; transform: translate(-50%,-50%) scale(.35); }
    100% { opacity: 0;   transform: translate(-50%,-50%) scale(1.3); }
}
.pv-win-fx .fw-spark {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    opacity: 0; will-change: transform, opacity;
    animation: fw-fly 1.5s cubic-bezier(.15,.62,.3,1) forwards;
}
@keyframes fw-fly {
    0%   { opacity: 1;  transform: translate(0,0) scale(1.1); }
    14%  { opacity: 1; }
    70%  { opacity: .9; }
    100% { opacity: 0;  transform: translate(var(--dx), var(--dy)) scale(.22); }
}

/* ============================================================
   ST 下注卡规则说明:后台可配置关键词高亮(颜色/放大)
   ============================================================ */
.st-rule-text .st-rule-hl {
    font-weight: 900;
}
.st-rule-text .st-rule-hl.big {
    font-size: 1.55em;
    line-height: 1.1;
}

