/* index 页面样式 —— 自原 index.html 内联 <style> 原样抽出 */
  :root {
    /* 赌场豪华 + 中式喜庆 配色 */
    --bg1: #3a0a0f;          /* 深红绸缎 */
    --bg2: #16060a;          /* 更深的暗红 */
    --bg3: #5c0e16;          /* 中段过渡红 */
    --card: rgba(80, 12, 18, .55);
    --card-solid: #4a0b12;
    --card-border: rgba(212, 166, 83, .38);
    --card-border-strong: rgba(212, 166, 83, .65);
    --text: #fff2d6;         /* 暖金米白 */
    --muted: #e8cfa0;        /* 淡金灰（提亮，保证深红底可读性） */
    --gold: #ffd45e;
    --gold-deep: #e8a020;
    --gold-bright: #ffe58a;
    --red: #c1121f;          /* 喜庆红 */
    --red-deep: #7a0812;
    --ok: #3ddc84;           /* 命中绿（保留语义色，偏暖） */
    --bad: #ff6b6b;
    --accent: #e8a020;       /* 主强调色改为金 */
  }
  * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
  html,body { height:100%; }
  body {
    position:relative;
    font-family: -apple-system, "PingFang SC", "PingFang HK", "Microsoft YaHei", "STKaiti", "KaiTi", serif;
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(255,180,60,.14), transparent 60%),
      radial-gradient(900px 500px at 110% 110%, rgba(255,60,60,.14), transparent 55%),
      linear-gradient(165deg, var(--bg1) 0%, var(--bg3) 38%, var(--bg2) 100%);
    color: var(--text);
    min-height:100vh; padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
    display:flex; flex-direction:column; align-items:center;
    text-shadow: 0 1px 1px rgba(0,0,0,.35);
  }
  /* 祥云 + 铜钱 暗纹背景（SVG data-URI，随内容平铺，不遮挡内容） */
  body::before {
    content:""; position:fixed; inset:0; pointer-events:none; z-index:0; opacity:.5;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23d8b98a' stroke-opacity='.10' stroke-width='1.4'%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Crect x='34' y='34' width='12' height='12' rx='1.5'/%3E%3Cpath d='M104 34c-5 4-5 12 0 16 5-4 5-12 0-16z'/%3E%3Cpath d='M118 46c-7 0-7 10 0 10s7-10 0-10z'/%3E%3Cpath d='M88 50c-4 3-4 10 0 13 4-3 4-10 0-13z'/%3E%3Ccircle cx='112' cy='108' r='9'/%3E%3Crect x='106' y='102' width='12' height='12' rx='1.5'/%3E%3Cpath d='M44 112c-6 5-6 14 0 19 6-5 6-14 0-19z'/%3E%3Cpath d='M60 126c-8 0-8 12 0 12s8-12 0-12z'/%3E%3C/g%3E%3C/svg%3E");
    background-size:160px 160px;
  }
  .wrap { width:100%; max-width:560px; position:relative; z-index:1; }

  header { position:relative; text-align:center; margin:10px 0 6px; }
  header h1 { position:relative; display:inline-block; font-size:30px; letter-spacing:3px; font-weight:900;
    background:linear-gradient(180deg,#fff0c2 0%,var(--gold) 45%,var(--gold-deep) 100%);
    -webkit-background-clip:text; background-clip:text; color:transparent;
    text-shadow:none; filter:drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
  /* 标题两侧中式灯笼装饰（灯笼体 + 上下灯盖 + 灯穗） */
  header h1::before, header h1::after {
    content:""; display:inline-block; width:20px; height:24px; margin:0 12px; vertical-align:-6px;
    background:
      radial-gradient(circle at 50% 32%, #fff0c2 0%, #ffd76b 45%, #e8a020 100%);
    border-radius:50%;
    box-shadow:
      0 2px 5px rgba(0,0,0,.5),
      0 0 14px rgba(255,190,70,.7),
      0 -14px 0 -9px #f5b22e,   /* 上灯盖 */
      0 16px 0 -9px #d9860c;   /* 下灯盖 */
    position:relative;
  }
  header h1 .tag { font-size:13px; vertical-align:middle; margin-left:8px; padding:3px 12px; border-radius:99px;
    background:linear-gradient(135deg,#fff0c2,var(--gold) 50%,var(--gold-deep)); color:#3a1500; font-weight:800;
    box-shadow:0 1px 3px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); text-shadow:none; }
  .round { color:var(--muted); font-size:14px; margin-top:6px; letter-spacing:1px; }

  /* 顶栏：语言切换 + 登出 */
  .topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:2px; }
  .lang-switch { display:flex; align-items:center; }
  .lang-btn {
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    font-size:13px; padding:6px 14px; border-radius:99px; cursor:pointer;
    background:rgba(60,8,12,.6); border:1px solid var(--card-border); color:var(--text);
    font-weight:600; transition:all .12s ease;
  }
  .lang-btn svg { width:20px; height:20px; flex:none; }
  .lang-btn .lang-code { font-size:13px; font-weight:600; letter-spacing:.5px; }
  .lang-btn:active { transform:scale(.96); }
  .logout-btn {
    font-size:13px; padding:6px 14px; border-radius:99px; cursor:pointer;
    background:rgba(150,20,25,.35); border:1px solid rgba(255,120,120,.55); color:#ffd0d0;
    font-weight:600; transition:all .12s ease;
  }
  .logout-btn:active { transform:scale(.96); }

  .status-pill {
    display:flex; align-items:center; justify-content:center; gap:8px;
    margin:14px auto 18px; width:fit-content; padding:9px 24px; border-radius:99px;
    font-size:16px; font-weight:700; letter-spacing:1px;
    background:linear-gradient(135deg, rgba(120,20,28,.7), rgba(60,8,12,.7));
    border:1px solid var(--card-border-strong);
    box-shadow:0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,220,150,.15);
  }
  .status-pill .dot { width:10px; height:10px; border-radius:50%; background:var(--muted); }
  .st-unreg  .dot { background:#e8cfa0; }
  .st-ready  .dot { background:var(--gold); animation:pulse 1.4s infinite; box-shadow:0 0 8px var(--gold); }
  .st-wait   .dot { background:#ffb347; animation:pulse 1.4s infinite; box-shadow:0 0 8px #ffb347; }
  .st-done   .dot { background:var(--ok); box-shadow:0 0 8px var(--ok); }
  @keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.4; transform:scale(.75)} }

  .card {
    position:relative;
    background:linear-gradient(180deg, rgba(100,16,24,.6), rgba(55,7,12,.62));
    border:1px solid var(--card-border);
    border-radius:20px; padding:22px 20px; margin-bottom:16px;
    backdrop-filter: blur(8px);
    box-shadow:0 8px 28px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,210,120,.08), inset 0 1px 0 rgba(255,220,150,.12);
  }
  /* 卡片四角金色点缀 */
  .card::before, .card::after {
    content:""; position:absolute; width:14px; height:14px; pointer-events:none;
    border:2px solid var(--gold); opacity:.75;
  }
  .card::before { top:8px; left:8px; border-right:none; border-bottom:none; border-top-left-radius:8px; }
  .card::after  { bottom:8px; right:8px; border-left:none; border-top:none; border-bottom-right-radius:8px; }
  .card h2 { font-size:18px; margin-bottom:14px; display:flex; align-items:center; gap:8px; font-weight:800; letter-spacing:1px; }
  .card h2 .step { width:26px; height:26px; border-radius:8px;
    background:linear-gradient(135deg,#fff0c2,var(--gold) 50%,var(--gold-deep)); color:#3a1500;
    display:inline-flex; align-items:center; justify-content:center; font-size:14px; flex:none; font-weight:900;
    box-shadow:0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); }
  .hint { color:var(--muted); font-size:13px; line-height:1.6; margin-top:12px; }

  input[type=text] {
    width:100%; font-size:19px; padding:15px 16px; border-radius:14px;
    border:1.5px solid var(--card-border); background:rgba(30,4,8,.45); color:var(--text); outline:none;
  }
  input[type=text]:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(255,212,94,.18); }
  input[type=text]::placeholder { color:#d9b886; }

  .btn {
    width:100%; margin-top:14px; padding:16px; font-size:19px; font-weight:800; letter-spacing:3px;
    border:none; border-radius:14px; color:#2b1200; cursor:pointer;
    background:linear-gradient(180deg,#fff0c2 0%,var(--gold) 45%,var(--gold-deep) 100%);
    box-shadow:0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(150,90,0,.35);
    transition: transform .08s ease, opacity .2s, box-shadow .08s ease;
    text-shadow:0 1px 0 rgba(255,255,255,.35);
  }
  .btn:active { transform:scale(.97); box-shadow:0 2px 6px rgba(0,0,0,.4), inset 0 2px 4px rgba(120,70,0,.4); }
  .btn[disabled] { opacity:.45; pointer-events:none; }
  .btn.gold { background:linear-gradient(180deg,#ffd76b 0%,#f0a71c 50%,#d9860c 100%); color:#3a1500; }
  .btn.plain { background:linear-gradient(180deg,#fff0c2 0%,#ffd76b 45%,#f0a71c 100%);
    font-size:16px; padding:13px; letter-spacing:1px; color:#3a1500; border:1px solid rgba(255,240,194,.6);
    box-shadow:0 3px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.5); text-shadow:0 1px 0 rgba(255,255,255,.3); }

  /* 手动输入区（不折叠，输入框 + 按钮同行） */
  .manual-label { color:var(--muted); font-size:14px; margin:16px 0 10px; padding-top:14px;
    border-top:1px solid var(--card-border); }
  .manual-row { display:flex; gap:10px; align-items:stretch; }
  .manual-row input[type=text] { flex:1; min-width:0; font-size:16px; padding:13px 14px; }
  .manual-row .manual-btn { width:auto; flex:none; margin-top:0; padding:0 18px; white-space:nowrap; }

  /* 相机取景框 */
  #camBox { position:relative; border-radius:16px; overflow:hidden; margin-bottom:4px; background:#000;
    border:1px solid var(--card-border); }
  #camReader { width:100%; }
  #camReader video { width:100% !important; border-radius:16px; object-fit:cover; }
  .cam-tip { text-align:center; color:var(--muted); font-size:13px; padding:8px 0 2px; }

  /* 切换摄像头按钮（浮于取景框右上角） */
  .cam-switch {
    position:absolute; top:10px; right:10px; z-index:5;
    width:38px; height:38px; padding:0; border-radius:50%; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    background:rgba(26,4,9,.62); color:var(--gold);
    border:1px solid var(--card-border-strong);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    box-shadow:0 2px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,220,150,.15);
    transition: transform .12s ease, opacity .16s ease;
  }
  .cam-switch svg { width:21px; height:21px; flex:none; }
  .cam-switch:active { transform:scale(.92); }
  .cam-switch[disabled] { opacity:.35; cursor:default; pointer-events:none; }
  .cam-switch.busy { pointer-events:none; }
  .cam-switch.busy svg { animation:spin .9s linear infinite; }

  /* 单双选择（下注按钮：金色描边 + 深红底） */
  .pair { display:flex; gap:14px; }
  .pair .opt, .numgrid button {
    flex:1; padding:20px 0; font-size:24px; font-weight:800; border-radius:16px;
    background:linear-gradient(180deg, rgba(140,24,32,.85), rgba(90,10,16,.9));
    color:var(--text); border:2px solid var(--card-border); cursor:pointer;
    transition: all .12s ease; box-shadow:0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,210,120,.15);
  }
  .pair .opt small { display:block; font-size:12px; font-weight:500; color:var(--muted); margin-top:4px; letter-spacing:1px; }
  .pair .opt.sel, .numgrid button.sel {
    background:linear-gradient(180deg,#ffd76b 0%,#f0a71c 55%,#d9860c 100%);
    border-color:#fff0c2; color:#3a1500; transform:scale(1.03);
    box-shadow:0 0 18px rgba(255,200,80,.5), inset 0 1px 0 rgba(255,255,255,.6);
    text-shadow:0 1px 0 rgba(255,255,255,.3);
  }
  .pair .opt.sel small { color:#7a4a00; }
  .numgrid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; }
  .numgrid button { padding:18px 0; font-size:24px; }

  .err { color:var(--bad); font-size:14px; margin-top:10px; min-height:18px; }

  /* 等待开奖 */
  .waiting { text-align:center; padding:10px 0; }
  .spinner { width:44px; height:44px; margin:6px auto 14px; border-radius:50%;
    border:4px solid rgba(255,220,150,.18); border-top-color:var(--gold); animation:spin 1s linear infinite;
    box-shadow:0 0 16px rgba(255,200,80,.25); }
  @keyframes spin { to { transform:rotate(360deg) } }
  .my-pred { display:flex; gap:12px; justify-content:center; margin:16px 0 4px; }
  .my-pred .chip { padding:10px 18px; border-radius:12px;
    background:linear-gradient(180deg, rgba(120,18,26,.7), rgba(70,8,14,.7));
    border:1px solid var(--card-border-strong); font-size:17px; font-weight:700;
    box-shadow:inset 0 1px 0 rgba(255,210,120,.12); }
  .my-pred .chip b { color:var(--gold); }

  /* 结果 */
  .result-num { text-align:center; margin:4px 0 16px; }
  .result-num .n { font-size:88px; font-weight:900; line-height:1;
    background:linear-gradient(180deg,#fff0c2,var(--gold) 50%,var(--gold-deep));
    -webkit-background-clip:text; background-clip:text; color:transparent;
    filter:drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
  .result-num .lab { color:var(--muted); font-size:14px; letter-spacing:3px; }
  .verdict { display:flex; gap:12px; }
  .verdict .v { flex:1; text-align:center; padding:16px 8px; border-radius:16px;
    background:linear-gradient(180deg, rgba(120,18,26,.6), rgba(70,8,14,.6));
    border:1px solid var(--card-border); }
  .verdict .v .t { font-size:13px; color:var(--muted); margin-bottom:6px; }
  .verdict .v .d { font-size:20px; font-weight:800; line-height:1.3; }
  /* 预测值一行、命中结论一行：窄屏下「猜「双」→ ✓ 命中」会折成两行还断在词中间 */
  .verdict .v .d .pval { display:block; font-size:24px; line-height:1.2; }
  .verdict .v .d .pres { display:block; font-size:14px; font-weight:700; letter-spacing:.5px; margin-top:5px; }
  .v.hit { border-color:rgba(61,220,132,.7); box-shadow:0 0 12px rgba(61,220,132,.25); } .v.hit .d { color:var(--ok); }
  .v.miss { border-color:rgba(255,120,120,.6); } .v.miss .d { color:var(--bad); }

  /* 结果 · 奖品（四档：都中 / 只中数字 / 只中单双 / 未猜中，由后台配置文案） */
  .prize { margin-top:14px; padding:16px 14px; border-radius:16px; text-align:center;
    background:linear-gradient(180deg, rgba(255,212,94,.14), rgba(120,18,26,.55));
    border:1px solid rgba(255,212,94,.45);
    box-shadow:inset 0 1px 0 rgba(255,225,150,.12); }
  .prize-head { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:9px; }
  .prize-tier { font-size:12px; font-weight:800; letter-spacing:.5px; padding:3px 10px; border-radius:99px;
    background:linear-gradient(135deg,#ffd76b,#f0a71c); color:#3a1500; }
  .prize-lab { font-size:12px; color:var(--muted); letter-spacing:1px; }
  .prize-title { font-size:20px; font-weight:900; color:var(--gold); line-height:1.35; word-break:break-word; }
  .prize-desc { font-size:13px; color:var(--text); opacity:.86; margin-top:7px; line-height:1.6;
    white-space:pre-line; word-break:break-word; }
  .prize.miss { background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(70,8,14,.5));
    border-color:var(--card-border-strong); }
  .prize.miss .prize-tier { background:rgba(255,255,255,.14); color:var(--text); }
  .prize.miss .prize-title { color:var(--text); }

  /* 全员额外奖励横幅：独立于个人档位，视觉上更醒目（金色描边 + 星标） */
  .bonus { margin-top:12px; padding:14px 14px; border-radius:16px; text-align:center;
    background:linear-gradient(135deg, rgba(255,170,40,.16), rgba(255,80,40,.12));
    border:1px dashed rgba(255,190,80,.55);
    box-shadow:inset 0 1px 0 rgba(255,210,130,.10); }
  .bonus-head { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:8px; }
  .bonus-tier { font-size:12px; font-weight:800; letter-spacing:.5px; padding:3px 10px; border-radius:99px;
    background:linear-gradient(135deg,#ffb84d,#ff7a30); color:#3a1200; }
  .bonus-title { font-size:18px; font-weight:900; color:var(--gold); line-height:1.35; word-break:break-word; }
  .bonus-desc { font-size:13px; color:var(--text); opacity:.86; margin-top:6px; line-height:1.6;
    white-space:pre-line; word-break:break-word; }

  /* Toast */
  #toast { position:fixed; left:50%; bottom:calc(28px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(20px);
    background:rgba(52,6,11,.96); border:1px solid var(--card-border-strong); color:var(--text);
    padding:13px 24px; border-radius:14px; font-size:15px; opacity:0; pointer-events:none;
    transition:all .25s ease; z-index:99; max-width:86vw; text-align:center;
    box-shadow:0 8px 24px rgba(0,0,0,.5); }
  #toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
  #toast.err { border-color:rgba(255,120,120,.7); }
  #toast.ok { border-color:rgba(255,212,94,.7); }

  /* 场次选择 */
  .top-right { display:flex; align-items:center; gap:8px; }
  .sess-btn {
    font-size:13px; padding:6px 14px; border-radius:99px; cursor:pointer;
    background:rgba(60,8,12,.6); border:1px solid var(--card-border); color:var(--muted); font-weight:600;
    transition:all .12s ease;
  }
  .sess-btn:active { transform:scale(.96); }
  .sess-pick { display:flex; flex-direction:column; gap:10px; }
  .sess-opt {
    display:flex; align-items:center; gap:10px; width:100%; text-align:left; cursor:pointer;
    padding:15px 16px; border-radius:14px; font-size:17px; font-weight:800; letter-spacing:1px;
    background:linear-gradient(180deg, rgba(140,24,32,.8), rgba(90,10,16,.85));
    color:var(--text); border:1.5px solid var(--card-border);
    box-shadow:0 4px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,210,120,.15);
    transition:all .12s ease;
  }
  .sess-opt:active { transform:scale(.98); }
  .sess-opt .so-main { flex:1; min-width:0; }
  .sess-opt .so-meta { display:block; font-size:12px; font-weight:500; color:var(--muted); margin-top:5px; letter-spacing:0; }
  .sess-opt .so-go { color:var(--gold); font-size:20px; flex:none; }
  .sess-opt.cur { border-color:rgba(255,212,94,.75); box-shadow:0 0 0 1px rgba(255,212,94,.35) inset; }
  .sess-opt.cur .so-go { color:var(--ok); }
  .sess-cancel {
    display:block; width:100%; margin-top:12px; padding:11px; border-radius:12px; cursor:pointer;
    background:none; border:1px solid var(--card-border); color:var(--muted); font-size:14px; font-weight:600;
  }

  /* 场次口令弹层 */
  .pw-mask {
    position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
    padding:22px; background:rgba(0,0,0,.66); opacity:0; pointer-events:none; transition:opacity .16s ease;
  }
  .pw-mask.show { opacity:1; pointer-events:auto; }
  .pw-box {
    width:100%; max-width:360px; border-radius:18px; padding:22px 20px 18px;
    background:linear-gradient(180deg, #3a0a10, #260509); border:1px solid var(--card-border);
    box-shadow:0 22px 50px rgba(0,0,0,.6);
  }
  .pw-box h3 { font-size:18px; font-weight:800; margin-bottom:6px; letter-spacing:1px; }
  .pw-sess { font-size:13px; color:var(--gold); font-weight:700; margin-bottom:14px; }
  .pw-box input {
    width:100%; font-size:20px; letter-spacing:6px; text-align:center; padding:13px 12px; border-radius:12px;
    border:1.5px solid var(--card-border); background:rgba(0,0,0,.32); color:var(--text); outline:none;
  }
  .pw-box input:focus { border-color:var(--gold); }
  .pw-err { min-height:18px; margin-top:9px; font-size:13px; color:var(--danger, #ff8080); font-weight:600; }
  .pw-acts { display:flex; gap:10px; margin-top:14px; }
  .pw-acts button {
    flex:1; padding:12px; border-radius:12px; font-size:15px; font-weight:800; cursor:pointer; border:1px solid var(--card-border);
  }
  .pw-cancel { background:none; color:var(--muted); }
  .pw-ok { background:linear-gradient(180deg,#ffd45e,#e0a92a); color:#3a0a10; border-color:transparent; }
  .pw-ok:disabled { opacity:.55; cursor:default; }
  .pw-hint { margin-top:10px; font-size:11.5px; color:var(--muted); line-height:1.5; }

  /* ---------- 登录后规则介绍：10 秒自动关闭，点击任意处立即开始 ---------- */
  .rules-mask {
    position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
    padding:22px; background:rgba(0,0,0,.74);
    opacity:0; transition:opacity .2s ease;
    -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
    -webkit-tap-highlight-color:transparent; cursor:pointer;
  }
  .rules-mask.show { opacity:1; }
  .rules-mask.out { opacity:0; pointer-events:none; }
  .rules-box {
    width:100%; max-width:360px; max-height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch;
    border-radius:20px; padding:24px 20px 20px; cursor:default;
    background:linear-gradient(180deg,#420c13,#260509);
    border:1px solid var(--card-border-strong);
    box-shadow:0 24px 60px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,220,150,.16);
  }
  .rules-box h3 {
    text-align:center; font-size:21px; font-weight:900; letter-spacing:3px; margin-bottom:2px;
    background:linear-gradient(180deg,#fff0c2 0%,var(--gold) 50%,var(--gold-deep) 100%);
    -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:none;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.45));
  }
  .rules-list { list-style:none; margin:18px 0 0; }
  .rules-list li { display:flex; gap:10px; font-size:14.5px; line-height:1.62; margin-bottom:12px; color:var(--text); }
  .rules-list li .no {
    flex:none; width:21px; height:21px; margin-top:1px; border-radius:7px;
    display:inline-flex; align-items:center; justify-content:center;
    font-size:12px; font-weight:900; color:#3a1500;
    background:linear-gradient(135deg,#fff0c2,var(--gold) 55%,var(--gold-deep));
    box-shadow:0 1px 3px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); text-shadow:none;
  }
  .rules-foot { margin-top:16px; padding-top:14px; border-top:1px dashed rgba(255,212,94,.28); text-align:center; }
  .rules-tap { font-size:13.5px; font-weight:800; letter-spacing:1px; color:var(--gold); animation:rulesPulse 1.7s ease-in-out infinite; }
  .rules-time { margin-top:8px; font-size:12px; letter-spacing:.5px; color:var(--muted); text-shadow:none; }
  @keyframes rulesPulse { 0%,100% { opacity:1 } 50% { opacity:.45 } }
  /* 页面最下方的细倒计时条（随剩余时间收缩） */
  .rules-bar {
    position:fixed; left:0; right:0; bottom:0; height:4px; z-index:101; pointer-events:none;
    background:rgba(255,240,200,.16);
  }
  .rules-bar i {
    display:block; height:100%; width:100%; transform-origin:left center;
    background:linear-gradient(90deg,#ffe58a 0%,#f0a71c 55%,#e2571c 100%);
    box-shadow:0 0 12px rgba(255,200,80,.65);
  }

  .hidden { display:none !important; }
  .conn-lost { text-align:center; color:var(--muted); font-size:13px; padding:8px 0; }
