  /* =========================================================================
   * 6. 局内房间底部固定 44px 街机底座深色金属 LED 跑马灯横幅 (#adBannerSlot)
   * ========================================================================= */
  #adBannerSlot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 44px;
    z-index: 24;
    background:
      linear-gradient(180deg, #1b2438 0%, #090e1c 22%, #040710 85%, #161d2e 100%);
    border-top: 2px solid #c9aa6b;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.88), inset 0 1px 0 rgba(255, 248, 220, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    pointer-events: auto;
  }
  .ad-banner-inner {
    width: min(500px, 100%);
    height: 32px;
    border-radius: 9px;
    background:
      radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px) 0 0 / 4px 4px,
      linear-gradient(90deg, #050914 0%, #0b152c 50%, #050914 100%);
    border: 1.5px solid rgba(216, 188, 130, 0.55);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 12px rgba(14, 165, 233, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 8px 0 9px;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: filter 0.15s ease, border-color 0.15s ease;
  }
  .ad-banner-inner:hover {
    filter: brightness(1.1);
    border-color: #fde047;
  }
  .ad-banner-badge {
    font-family: var(--font-num);
    font-weight: 800;
    font-style: italic;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b2a10 0%, #1c1205 100%);
    border: 1px solid #d8bc82;
    color: #fde047;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    text-shadow: 0 1px 0 #000;
  }
  #adBannerText {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-family: var(--font-arcade);
    font-size: 11px;
    color: #fef08a;
    text-shadow: 0 1px 0 #000, 0 0 8px rgba(250, 204, 21, 0.45);
    letter-spacing: 0.02em;
  }
  #adBannerText .num-hl {
    font-family: var(--font-num);
    font-weight: 800;
    font-style: italic;
    font-size: 12.5px;
    color: #38bdf8;
    text-shadow: 0 1px 0 #000, 0 0 8px rgba(56, 189, 248, 0.65);
  }
  .ad-get-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
    border: 1.5px solid #6ee7b7;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-family: var(--font-num);
    font-weight: 800;
    font-style: italic;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  }

  @media (max-width: 540px) {
    #ticketBar { left: max(10px, env(safe-area-inset-left, 10px)); top: max(112px, calc(env(safe-area-inset-top) + 12.8dvh)); height: 26px; padding: 0 5px 0 8px; font-size: 11px; }
    #ticketBar .tk-val { font-size: 12.5px; }
    #btns { right: max(10px, env(safe-area-inset-right, 10px)); top: max(146px, calc(env(safe-area-inset-top) + 16.8dvh)); gap: 5px; }
    .btn-circle, .top-right-hud-btn { width: 37px !important; height: 37px !important; font-size: 10.5px; }
    .arcade-btn { width: 46px; height: 46px; font-size: 11px; }
    #powerTouchZone { right: 0; top: 38%; bottom: 0; width: 124px; height: auto; }
    #power {
      display: none !important;
    }
    #power .bar { width: 9px; margin-left: 8px; }
    #power .mark span { right: 12px; font-size: 7.5px; }
    #power .thumb { width: 18px; height: 18px; }
    #power .mm { font-size: 10.5px; }
    #power .lbl { font-size: 7.5px; }
    #hint { font-size: 9px; padding: 2px 8px; letter-spacing: 0; }
    .crown-brand-txt { font-size: 11px; }
    .hud-wing { width: 98px; padding: 7px 8px; }
    .wing-num { font-size: 21px; }
    .hero-cab-3d { width: 134px; height: 184px; }
  }

  /* 视觉克制守则：严禁在盘面中央弹出遮挡弹珠轨迹的浮动文字与全屏闪光遮罩 */
  #toasts { display: none !important; pointer-events: none !important; }
  #flash { display: none !important; opacity: 0 !important; pointer-events: none !important; }


  /* =========================================================================
   * v3.9.1 中国同事指令：延长拉杆行程 + 动态多阶变色力度槽 + 🎲おまかせ随机发射按钮（唯一单按钮·零重叠）
   * ========================================================================= */
  #btnRandomPull {
    display: none !important;
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 10px));
    right: auto;
    top: calc(max(150px, calc(env(safe-area-inset-top) + 17.2dvh)) + 54px);
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: linear-gradient(180deg, #78350f 0%, #451a03 50%, #291202 100%);
    border: 2px solid #f59e0b;
    border-bottom: 4px solid #b45309;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 14px rgba(245, 158, 11, 0.4), inset 0 1px 2px rgba(254, 240, 138, 0.5);
    color: #fef08a;
    cursor: pointer;
    z-index: 25;
    pointer-events: auto;
    touch-action: manipulation;
    /* thermal-opt */
    -webkit-/* thermal-opt */
    transition: transform 0.08s, box-shadow 0.08s, border-bottom-width 0.08s;
  }
  #btnRandomPull:active {
    transform: translateY(2.5px) scale(0.95);
    border-bottom-width: 1.5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7), 0 0 18px rgba(250, 204, 21, 0.9);
  }
  #btnRandomPull.disabled,
  #btnRandomPull:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  #arcadeHallOverlay.show ~ #btnRandomPull,
  #arcadeHallOverlay.show #btnRandomPull,
  #arcadeHallOverlay.show ~ * #btnRandomPull,
  body.in-hall #btnRandomPull {
    display: none !important;
  }
  #btnRandomPull .btn-rnd-dice {
    font-size: 14px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.8));
  }
  #btnRandomPull .btn-rnd-lbl {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  /* ⚡ 游技速度/连发切换旋钮 (1x 単発職人 / 3x 連射爽快) - 左侧机框安全区，100% 避开右侧 #btns 与 3D 力度框 */
  #btnPlayModeToggle,
  #btnSpeedModeToggle {
    position: fixed;
    left: max(10px, env(safe-area-inset-left, 10px));
    right: auto;
    top: max(150px, calc(env(safe-area-inset-top) + 17.2dvh));
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: linear-gradient(180deg, #78350f 0%, #451a03 50%, #291202 100%);
    border: 2px solid #d4af37;
    border-bottom: 4px solid #92400e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 12px rgba(212, 175, 55, 0.35), inset 0 1px 2px rgba(254, 240, 138, 0.5);
    color: #fef08a;
    cursor: pointer;
    z-index: 25;
    pointer-events: auto;
    touch-action: manipulation;
    /* thermal-opt */
    -webkit-/* thermal-opt */
    transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
  }
  #btnPlayModeToggle:active,
  #btnSpeedModeToggle:active {
    transform: translateY(2.5px) scale(0.95);
    border-bottom-width: 1.5px;
  }
  #btnPlayModeToggle.mode-3x,
  #btnSpeedModeToggle.mode-3x {
    background: linear-gradient(180deg, #0f2b38 0%, #061923 50%, #020b10 100%);
    border: 2px solid #38bdf8;
    border-bottom: 4px solid #0284c7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.6), inset 0 1px 2px rgba(186, 230, 253, 0.6);
    color: #e0f2fe;
    animation: mode3xPulse 2.4s ease-in-out infinite;
  }
  @keyframes mode3xPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 12px rgba(56, 189, 248, 0.5); }
    50% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 22px rgba(56, 189, 248, 0.95); }
  }
  #arcadeHallOverlay.show ~ #btnPlayModeToggle,
  #arcadeHallOverlay.show #btnPlayModeToggle,
  #arcadeHallOverlay.show ~ * #btnPlayModeToggle,
  body.in-hall #btnPlayModeToggle,
  #arcadeHallOverlay.show ~ #btnSpeedModeToggle,
  #arcadeHallOverlay.show #btnSpeedModeToggle,
  #arcadeHallOverlay.show ~ * #btnSpeedModeToggle,
  body.in-hall #btnSpeedModeToggle {
    display: none !important;
  }
  #btnPlayModeToggle .bpm-icon,
  #btnSpeedModeToggle .bpm-icon {
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 0 4px rgba(250, 204, 21, 0.8));
  }
  #btnPlayModeToggle .bpm-lbl,
  #btnSpeedModeToggle .bpm-lbl {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1px;
    white-space: nowrap;
  }

  /* ⚡ 快速续玩按钮与大厅实况角标 */
  .hall-quick-resume-wrap {
    width: 100%;
    max-width: 580px;
    margin: 2px auto 6px auto;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 37;
    position: relative;
  }
  .hall-quick-resume-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    background: linear-gradient(110deg, #F59E0B 0%, #D97706 48%, #92400E 100%);
    border: 2px solid #FEF08A;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45), inset 0 1px 2px #FFF9C4;
    color: #FFFFFF;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
  .hall-quick-resume-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  }
  .hall-quick-resume-btn .hqr-icon {
    font-size: 15px;
    filter: drop-shadow(0 0 6px #FDE047);
  }
  .hall-quick-resume-btn .hqr-arrow {
    font-size: 11px;
    color: #FEF08A;
  }
  .hall-live-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 1.5px 6px !important;
    border-radius: 99px;
    background: rgba(220, 38, 38, 0.92);
    border: 1px solid #FECACA;
    color: #FFF;
    font-size: 8.5px !important;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 10 !important;
    pointer-events: none;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    animation: liveBadgePulse 2.8s ease-in-out infinite;
  }
  #hallLiveBadge01 {
    top: 5px !important;
    right: 5px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    font-size: 8.5px !important;
    padding: 1.5px 6px !important;
    white-space: nowrap !important;
    z-index: 10 !important;
  }
  .hall-mystery-card .hall-live-badge {
    top: 31px !important;
    left: 5px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    font-size: 7.5px !important;
    padding: 1px 4px !important;
    white-space: nowrap !important;
    z-index: 10 !important;
  }
  @keyframes liveBadgePulse {
    0%, 100% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.05); opacity: 1; }
  }

  /* 方案 A：原机同材质 · 香槟金 3D 水晶刻度框 (#plungerPowerGaugeBar) - 依石指示：向上大幅加长至🎲おまかせ下方 */
  #plungerPowerGaugeBar {
    position: absolute;
    left: 91.8%;
    top: 45.0%;
    width: 6.2%;
    min-width: 24px;
    max-width: 34px;
    height: 44.0%;
    min-height: 380px;
    max-height: 540px;
    background: none;
    border: none;
    overflow: visible;
    pointer-events: none;
    z-index: 5;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.75));
    transition: transform 0.15s ease-out;
  }
  #plungerGaugeBackdrop {
    position: absolute;
    inset: 0;
    background: url('../../assets/images/gauge_option_a_bg.webp?v=3.9.0') center / 100% 100% no-repeat;
    pointer-events: none;
  }
  #plungerGaugeBackdrop::after {
    content: '';
    position: absolute;
    inset: 6px 3px;
    background: repeating-linear-gradient(
      to top,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1.5px,
      transparent 1.5px,
      transparent calc(100% / 20)
    );
    pointer-events: none;
    z-index: 2;
  }
  #plungerGaugeLitImage {
    position: absolute;
    inset: 0;
    background: url('../../assets/images/gauge_option_a_lit.webp?v=3.9.0') center / 100% 100% no-repeat;
    clip-path: inset(100% 0 0 0);
    -webkit-clip-path: inset(100% 0 0 0);
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
    transition: clip-path 0.04s ease-out, -webkit-clip-path 0.04s ease-out, filter 0.15s ease-out;
    pointer-events: none;
  }
  #plungerGaugeSweetBox {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 70.0%;
    height: 8.5%;
    border: 1.5px solid rgba(250, 204, 21, 0.65);
    border-radius: 3px;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
    pointer-events: none;
    transition: all 0.15s ease-out;
  }
  #plungerGaugeSweetBox.active {
    border-color: #fde047;
    background: rgba(250, 204, 21, 0.28);
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.98), inset 0 0 6px rgba(250, 204, 21, 0.8);
    animation: sweetBoxPulse 0.4s ease-in-out infinite alternate;
  }
  @keyframes sweetBoxPulse {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.08); filter: brightness(1.3); }
  }
  #plungerPowerGaugeFill {
    display: none;
  }
  #plungerPowerGaugeSweetMark {
    display: none;
  }
  #plungerPowerGaugeVal {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    font-size: 9.5px;
    font-weight: 900;
    font-family: var(--font-mono, monospace);
    color: #fde047;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.85);
    transition: color 0.15s, text-shadow 0.15s;
  }

  /* 景品交換所：限定母球エフェクト皮膚（VFX Skins: 純浄PBR / 流光拖尾 / 碰撞星火環） */
  .vfx-skin-section {
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(7, 11, 24, 0.96) 100%);
    border: 1.5px solid rgba(216, 188, 130, 0.55);
  }
  .vfx-skin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-arcade);
    font-size: 10.5px;
    font-weight: 900;
    color: #fde047;
    margin-bottom: 5px;
  }
  .vfx-skin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .vfx-skin-card {
    padding: 6px 5px;
    border-radius: 10px;
    background: rgba(15, 23, 46, 0.88);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
  }
  .vfx-skin-card.active {
    border-color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.38);
  }
  .vfx-skin-name {
    font-family: var(--font-arcade);
    font-size: 10px;
    font-weight: 900;
    color: #f8fafc;
  }
  .vfx-skin-desc {
    font-size: 8.5px;
    color: #cbd5e1;
    line-height: 1.2;
  }
  .vfx-skin-btn {
    width: 100%;
    padding: 4px 5px !important;
    min-width: 0 !important;
    border-radius: 7px !important;
    font-family: var(--font-arcade) !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    cursor: pointer;
    border: 1px solid #fde047 !important;
    background: linear-gradient(180deg, #fde047 0%, #d97706 100%) !important;
    color: #1c0c02 !important;
    text-shadow: none !important;
  }
  .vfx-skin-btn.equipped {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%) !important;
    border-color: #a7f3d0 !important;
    color: #ffffff !important;
    text-shadow: none !important;
  }

