    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }
    html, body {
      position: fixed;
      inset: 0;
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100dvh;
      overflow: hidden;
      overscroll-behavior: none;
      touch-action: manipulation;
      font-family: 'Inter', 'Noto Sans SC', sans-serif;
      background: radial-gradient(circle at 50% 38%, #1E1236 0%, #0D0E24 55%, #070714 100%);
      transition: background 0.35s ease;
      user-select: none;
    }
    #canvas-container {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100dvh;
      z-index: 1;
      touch-action: none;
      transition: filter 0.45s ease, opacity 0.45s ease;
    }
    #canvas-container.dimmed {
      filter: blur(4px) brightness(0.68);
    }
    canvas {
      display: block;
      width: 100%;
      height: 100%;
      outline: none;
    }

    /* 暗色夜空磨砂玻璃控制栏 */
    .glass-panel {
      background: rgba(18, 12, 34, 0.68);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(244, 154, 193, 0.24);
      box-shadow: 0 14px 40px rgba(4, 4, 14, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .magic-btn {
      transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .magic-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(244, 154, 193, 0.32);
    }
    .magic-btn:active {
      transform: scale(0.95);
    }

    /* 糖果粉 ↔ 粉紫 调色滑块 */
    input[type="range"].tint-slider {
      -webkit-appearance: none;
      appearance: none;
      height: 6px;
      border-radius: 999px;
      background: linear-gradient(90deg, #F49AC1 0%, #E793D2 55%, #D88CE0 100%);
      outline: none;
      cursor: pointer;
    }
    input[type="range"].tint-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #ffffff;
      border: 2.5px solid #D4A24C;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
      transition: transform 0.15s ease;
    }
    input[type="range"].tint-slider::-webkit-slider-thumb:hover {
      transform: scale(1.18);
    }
    input[type="range"].tint-slider::-moz-range-thumb {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #ffffff;
      border: 2.5px solid #D4A24C;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    }

    /* =========================================================================
       黑莓 Q10 手机浮层与滑出/收回动画（严格锁定在 visualViewport 可视区内）
       ========================================================================= */
    #bb-overlay {
      position: fixed;
      top: var(--vv-top, 0px);
      left: 0;
      width: var(--vv-w, 100vw);
      height: var(--vv-h, 100dvh);
      z-index: 30;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.38s ease;
      padding: 8px 0;
      overflow: hidden;
    }
    #bb-overlay.open {
      pointer-events: auto;
      opacity: 1;
    }
    #bb-overlay.sys-kb-open {
      height: var(--vv-h, 100dvh);
      padding: 4px 0 0;
      justify-content: flex-start;
    }

    #bb-backdrop {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 50% 45%, rgba(20, 10, 38, 0.35) 0%, rgba(5, 4, 14, 0.72) 100%);
    }

    #bb-stage {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 100%;
      transform: translateY(68dvh) scale(0.32) rotateX(22deg);
      opacity: 0;
      transition:
        transform 0.62s cubic-bezier(0.22, 1.18, 0.36, 1),
        opacity 0.38s ease;
      will-change: transform, opacity;
    }
    #bb-overlay.open #bb-stage {
      transform: translateY(0) scale(1) rotateX(0deg);
      opacity: 1;
    }
    #bb-overlay.sys-kb-open #bb-stage {
      width: 100%;
    }


    /* 全局阻止手机浏览器双击放大整个网页（覆盖机身正反面、屏幕边框、主屏与聊天区域） */
    #bb-overlay,
    #bb-overlay * {
      touch-action: manipulation;
    }

    /* 仅可纵向滚动的内容列表保留垂直滑动 */
    #bb-overlay .bb-messages,
    #bb-overlay .bb10-hub-list,
    #bb-overlay .od-body,
    #bb-overlay .us-body,
    #bb-overlay .settings-body {
      touch-action: pan-y;
    }

    /* 屏幕手势区、滑盖条、键盘区、背面、侧边与背景遮罩保留单指拖拽/滑动与双指手势 */
    #bb-backdrop,
    .bb-back-face,
    .bb-side-shell,
    .bb-keyboard-wrap,
    .bb-keyboard,
    .bb-key,
    .bb-screen,
    .bb10-gesture-chin {
      touch-action: none;
    }
