  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    user-select: none;
    -webkit-user-select: none;
    background: radial-gradient(ellipse at center, #3a2614 0%, #1a1008 100%);
    color: #fff6d8;
  }

  /* ===== 顶部聚光灯环境光晕 ===== */
  body::before {
    content: "";
    position: fixed; inset: 0;
    background:
      radial-gradient(circle at 50% 12%, rgba(255, 210, 120, 0.35) 0%, transparent 45%),
      radial-gradient(circle at 50% 100%, rgba(255, 180, 80, 0.25) 0%, transparent 55%);
    pointer-events: none; z-index: 0;
  }

  /* ===== 最外层容器 ===== */
  .app {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 89px 10px 16px;
  }

  /* ===== 顶部标题 ===== */
  .header {
    width: 100%;
    text-align: center;
    padding: 6px 0 10px;
    position: relative;
  }
  .title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 10px;
    color: #ffe08a;
    text-shadow:
      0 0 6px #ffbe55,
      0 0 18px #ff9a3c,
      0 0 32px rgba(255, 160, 60, 0.7),
      2px 3px 0 #5a2e0a;
    padding-left: 10px;
  }
  .subtitle {
    margin-top: 4px;
    font-size: 12px;
    letter-spacing: 4px;
    color: #ffecc1;
    opacity: 0.85;
  }
  .cost-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    background: rgba(90, 45, 10, 0.55);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 200, 120, 0.5);
    color: #ffd98a;
    letter-spacing: 1px;
  }

  /* ===== 小木偶吉祥物 ===== */
  .puppet {
    position: absolute;
    top: 4px; left: 6px;
    width: 56px; height: 56px;
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .puppet .body {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3c2, #d9a05b 65%, #7a4820 100%);
    box-shadow: 0 3px 8px rgba(0,0,0,0.4), inset 0 -4px 6px rgba(0,0,0,0.25);
    position: relative;
    border: 2px solid #5a2e0a;
  }
  .puppet .eye, .puppet .cover {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #3a1c05;
    top: 20px;
  }
  .puppet .eye.l { left: 14px; }
  .puppet .eye.r { right: 14px; }
  .puppet .mouth {
    position: absolute;
    bottom: 12px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 7px;
    border-radius: 0 0 14px 14px / 0 0 7px 7px;
    background: #5a1a0a;
    border: 1px solid #3a0d05;
  }
  .puppet.peek .body { animation: peekShake 0.6s ease-in-out infinite alternate; }
  .puppet.peek .eye { background: transparent; }
  .puppet.peek .cover {
    width: 22px; height: 14px;
    background: linear-gradient(to bottom, #e8b878, #8a4a1a);
    border: 1px solid #3a1c05;
    top: 18px; border-radius: 4px;
  }
  .puppet.peek .cover.l { left: 6px;  transform: rotate(-10deg); }
  .puppet.peek .cover.r { right: 6px; transform: rotate(10deg); }
  @keyframes peekShake {
    from { transform: translateY(0) rotate(-2deg); }
    to   { transform: translateY(-2px) rotate(2deg); }
  }

  /* ===== 顶部中奖横幅 ===== */
  .result-banner {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translate(-50%, -120%) scale(0.8);
    background: linear-gradient(135deg, #ffecb0 0%, #ffb23c 50%, #ff6a1c 100%);
    color: #4a1a00;
    padding: 10px 22px;
    border-radius: 28px;
    border: 3px solid #5a2e0a;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    box-shadow:
      0 0 0 3px rgba(255,220,120,0.5),
      0 0 22px rgba(255, 170, 60, 0.85),
      0 6px 12px rgba(0,0,0,0.45),
      inset 0 2px 6px rgba(255,255,255,0.5);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 35;
    transition: transform 0.45s cubic-bezier(0.17,0.88,0.32,1.35), opacity 0.35s;
  }
  .result-banner.show {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
    animation: bannerBounce 1.1s ease-in-out infinite;
  }
  @keyframes bannerBounce {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    50%      { transform: translate(-50%, -4px) scale(1.05); }
  }

/* ===== 顶部 LED 显示屏 —— 铺满整个弹珠面板 ===== */
  .led-display {
    position: relative;
    margin: 6px 0 0;
    padding: 10px 10px;
    background: #0a0a0a;
    border: 3px solid #3a0a0a;
    border-radius: 8px;
    box-shadow:
      inset 0 2px 8px rgba(255, 60, 60, 0.2),
      inset 0 -2px 8px rgba(0, 0, 0, 0.6),
      0 0 12px rgba(255, 40, 40, 0.25);
    text-align: center;
    overflow: hidden;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .led-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255, 30, 30, 0.06) 0 1px,
      transparent 1px 3px
    );
    pointer-events: none;
  }
  .led-text {
    font-family: 'Courier New', monospace;
    font-size: 26px;
    font-weight: 900;
    color: #ff3a3a;
    text-shadow: 0 0 10px #ff2a2a, 0 0 20px #ff2a2a;
    letter-spacing: 4px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
  }
  .led-text.flash {
    animation: ledFlash 0.6s ease-in-out 3;
  }
  @keyframes ledFlash {
    0%, 100% { color: #ff3a3a; text-shadow: 0 0 8px #ff2a2a, 0 0 16px #ff2a2a; }
    50%      { color: #fff2a0; text-shadow: 0 0 12px #ffcc3a, 0 0 24px #ff9030; }
  }

/* ===== 惊险一刻闪烁提示 ===== */
  .dramatic-hint {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    pointer-events: none;
    z-index: 40;
    animation: dramaticBlink 0.28s ease-in-out infinite alternate;
    text-shadow: 0 0 12px #fff, 0 0 24px #ffbe55;
    display: none;
  }
  .dramatic-hint.show { display: block; }
  @keyframes dramaticBlink {
    from { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9) rotate(-6deg); }
    to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.25) rotate(6deg); }
  }

/* ===== 中部钉板主体 ===== */
  .stage {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    max-width: 440px;
    height: calc(100vh - 235px);
    min-height: 330px;
    max-height: 430px;
    margin-top: 4px;
    border-radius: 22px;
    background:
      repeating-linear-gradient(92deg, rgba(90,50,20,0.04) 0 2px, transparent 2px 7px),
      repeating-linear-gradient(8deg,  rgba(120,70,30,0.04) 0 2px, transparent 2px 11px),
      linear-gradient(135deg, #e9c892 0%, #d6a96a 45%, #b9884e 100%);
    box-shadow:
      inset 0 0 0 5px #6b3a14,
      inset 0 0 0 8px #3a1c05,
      inset 0 12px 28px rgba(255, 220, 150, 0.35),
      inset 0 -10px 24px rgba(40, 20, 5, 0.45),
      0 14px 28px rgba(0,0,0,0.55);
    overflow: hidden;
    display: flex; flex-direction: column;
  }

  /* hopper 仅占位，背景透明，无弧形喇叭口 */
  .hopper {
    position: relative;
    height: 8px;
    background: transparent;
  }

  /* 钉板区域（含奖品槽）*/
  .peg-board {
    position: relative;
    flex: 1;
    margin: 6px 10px 0;
    border-top: 2px dashed rgba(90, 50, 20, 0.35);
    overflow: hidden;
  }

  .peg {
    position: absolute;
    width: 14px; height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
      inset -3px -3px 5px rgba(0,0,0,0.45),
      inset 3px 3px 5px rgba(255,255,255,0.6),
      0 2px 4px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.35);
    pointer-events: none;
  }

  /* 彩虹渐变颜色 — 6 种 */
  .peg.c1 { background: radial-gradient(circle at 30% 30%, #ffd5d5, #ff4d4d 55%, #9a1515 100%); }
  .peg.c2 { background: radial-gradient(circle at 30% 30%, #ffe9bf, #ff9a3c 55%, #a55310 100%); }
  .peg.c3 { background: radial-gradient(circle at 30% 30%, #fff8c8, #ffd93c 55%, #9a7e10 100%); }
  .peg.c4 { background: radial-gradient(circle at 30% 30%, #d8ffcc, #49c14e 55%, #176a1f 100%); }
  .peg.c5 { background: radial-gradient(circle at 30% 30%, #c8e3ff, #3c8dff 55%, #103a8a 100%); }
  .peg.c6 { background: radial-gradient(circle at 30% 30%, #e3caff, #a75aff 55%, #4a1a8a 100%); }

  /* 左右墙壁（只覆盖钉子区，不覆盖底部奖品槽） */
  .wall {
    position: absolute; top: 0; bottom: 74px;
    width: 10px;
    background: linear-gradient(to bottom, #6b3a14, #3a1c05);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
    border-radius: 6px;
  }
  .wall.l { left: -10px; }
  .wall.r { right: -10px; }

  /* 木质弧形挡板 —— 右上角，凹面朝左下 */
  .baffle {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 15;
  }

  /* 拉杆弹簧装置 —— 在面板右侧，弹簧可见 */
  .launcher-channel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, rgba(90,45,20,0.25), rgba(60,30,10,0.4), rgba(90,45,20,0.25));
    border-left: 3px solid #5a2e0a;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
    z-index: 5;
    pointer-events: none;
  }
  .launcher-channel::before {
    content: "";
    position: absolute;
    left: 6px; right: 6px;
    top: 0; bottom: 0;
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(255,200,120,0.1) 0 3px,
        rgba(60,30,10,0.3) 3px 6px
      );
  }

  /* 拉杆弹簧装置 —— 在弹射通道内，z-index最高层，确保拉动动画可见 */
  /* bottom: 40px（原55px下移15px）—— 拉杆/弹簧/白珠三者同步下移15px */
  .leaver {
    position: absolute;
    right: 3px;
    bottom: 40px;
    width: 44px;
    height: 133px;
    z-index: 50;
    pointer-events: none;
  }
  .leaver-rod {
    width: 10px;
    height: 110px;
    background: linear-gradient(to right, #8a5020, #d9a05b 50%, #8a5020);
    border-radius: 5px;
    box-shadow: 2px 0 4px rgba(0,0,0,0.4);
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
  }
  .leaver-knob {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: radial-gradient(circle at 30% 30%, #ffcf6a, #c86a1a 70%, #6b3414 100%);
    border-radius: 50%;
    border: 3px solid #3a1c05;
    box-shadow: inset -3px -3px 6px rgba(0,0,0,0.4), inset 3px 3px 6px rgba(255,240,180,0.6), 0 4px 8px rgba(0,0,0,0.5);
    z-index: 15;
  }
  /* 弹簧 coil —— 在杆头上方 */
  .spring {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0 4px,
        rgba(180, 180, 200, 0.8) 4px 10px,
        rgba(100, 100, 120, 0.6) 10px 16px,
        transparent 16px 20px
      );
    border: 2px solid rgba(150, 150, 170, 0.6);
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255,255,255,0.3);
  }
  /* 发射时拉杆下压动画 —— 杆头下拉20px，弹簧压缩 */
  .leaver.press .leaver-rod { height: 56px; }
  .leaver.press .leaver-knob { transform: translateX(-50%) translateY(20px); animation: knobPress 0.2s ease-out; }
  .leaver.press .spring { height: 15px; top: 44px; }
  .leaver.release .spring { animation: springRelease 0.35s cubic-bezier(0.2, 1.5, 0.5, 1); }
  @keyframes knobPress {
    from { transform: translateX(-50%) translateY(0); }
    to   { transform: translateX(-50%) translateY(20px); }
  }
  @keyframes springRelease {
    0%   { height: 15px; top: 35px; }
    30%  { height: 55px; top: 0; }
    100% { height: 50px; top: 0; }
  }

  /* ===== 奖品槽（7 个曹格）—— 位于钉板内部最底部 ===== */
  .prize-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 6px 8px 4px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 2px;
    padding-right: 50px;
  }
  .prize {
    flex: 1;
    height: 46px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }
  .prize .slot {
    width: 100%;
    height: 42px;
    border-radius: 0 0 10px 10px;
    border-top: none;
    border-left: 2px solid #5a2e0a;
    border-right: 2px solid #5a2e0a;
    border-bottom: 3px solid #5a2e0a;
    box-shadow:
      inset 0 6px 14px rgba(0,0,0,0.35),
      inset 0 -4px 10px rgba(255,255,255,0.2),
      0 3px 6px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* 卡槽内的奖金文字（数字横排，其他字竖排） */
  .prize .slot .prize-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10px;
    color: rgba(255, 240, 200, 0.95);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
  }
  /* 数字横排显示 */
  .prize .slot .prize-text .num-h {
    font-size: 11px;
    color: #ffd98a;
  }
  /* 其他文字竖排显示 */
  .prize .slot .prize-text .text-v {
    writing-mode: vertical-rl;
    letter-spacing: 2px;
  }
  /* 奖金金额横排显示 */
  .prize .slot .prize-text .text-num {
    font-size: 13px;
    color: #ffd98a;
    font-weight: 900;
  }
  /* 槽颜色渐变 */
  .prize.p0 .slot { background: linear-gradient(to bottom, #a9d8ff, #4b98d4); }
  .prize.p1 .slot { background: linear-gradient(to bottom, #ffd4a8, #e08a4a); }
  .prize.p2 .slot { background: linear-gradient(to bottom, #c8e9ff, #6ab8e0); }
  .prize.p3 .slot { background: linear-gradient(to bottom, #b8f0c0, #49b868); }
  .prize.p4 .slot { background: linear-gradient(to bottom, #ffd4e8, #e278a6); }
  .prize.p5 .slot { background: linear-gradient(to bottom, #e7d7ff, #b894e0); }
  .prize.p6 .slot { background: linear-gradient(to bottom, #ffb890, #d86428); }

  /* 中奖点亮效果 */
  .prize.win .slot {
    animation: winPulse 0.8s ease-in-out 3;
    box-shadow:
      inset 0 6px 14px rgba(120,60,0,0.4),
      inset 0 -4px 10px rgba(255,240,180,0.6),
      0 0 28px rgba(255, 220, 120, 1),
      0 0 56px rgba(255, 180, 80, 0.7);
  }
  .prize.win .slot::after {
    content: "";
    position: absolute; inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,230,150,0.5), transparent 70%);
    animation: spotLight 0.8s ease-in-out 3;
    pointer-events: none;
  }
  @keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
  }
  @keyframes spotLight {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
  }

  /* ===== 白玻璃弹珠 —— 直径 16px，真实玻璃质感 ===== */
  .ball {
    position: absolute;
    width: 16px; height: 16px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 32% 30%, rgba(255,255,255,1) 0%, rgba(245,250,255,0.95) 30%, rgba(200,220,240,0.6) 70%, rgba(140,170,200,0.4) 100%);
    box-shadow:
      inset -3px -3px 5px rgba(80,120,160,0.25),
      inset 3px 3px 4px rgba(255,255,255,1),
      inset 0 0 6px rgba(180,210,240,0.3),
      0 0 8px rgba(220,240,255,0.5),
      0 0 14px rgba(200,230,255,0.3),
      0 2px 5px rgba(0,0,0,0.4);
    border: 0.5px solid rgba(180,210,240,0.35);
    pointer-events: none;
    z-index: 30;
    display: none;
    will-change: transform, left, top;
    animation: ballGlow 1.5s ease-in-out infinite alternate;
    backdrop-filter: blur(1px);
  }
  /* 玻璃球顶部高光点 */
  .ball::after {
    content: "";
    position: absolute;
    top: 2px; left: 4px;
    width: 4px; height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    filter: blur(0.5px);
    pointer-events: none;
  }
  @keyframes ballGlow {
    from { box-shadow: inset -3px -3px 5px rgba(80,120,160,0.25), inset 3px 3px 4px rgba(255,255,255,1), inset 0 0 6px rgba(180,210,240,0.3), 0 0 6px rgba(220,240,255,0.4), 0 0 10px rgba(200,230,255,0.2), 0 2px 5px rgba(0,0,0,0.4); }
    to   { box-shadow: inset -3px -3px 5px rgba(80,120,160,0.25), inset 3px 3px 4px rgba(255,255,255,1), inset 0 0 6px rgba(180,210,240,0.3), 0 0 12px rgba(220,240,255,0.7), 0 0 20px rgba(200,230,255,0.4), 0 2px 5px rgba(0,0,0,0.4); }
  }
  /* 弹珠上的发射方向箭头 */
  .ball::before {
    content: "⬆";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: #ff4d4d;
    font-weight: 900;
    text-shadow: 0 0 4px #fff, 0 1px 2px rgba(0,0,0,0.4);
    line-height: 1;
    opacity: 0.85;
  }
  .ball.launched::before { opacity: 0; }

  /* 星尘粒子 */
  .stardust {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 25;
  }

  /* ===== 发射按钮区（放在钉板下方） ===== */
  .launcher {
    width: 100%;
    max-width: 440px;
    margin: 14px auto 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 15;
  }

  /* 蓄力条 */
  .power-wrap {
    width: 44px;
    height: 110px;
    background: linear-gradient(to bottom, #3a1c05, #6b3a14);
    border-radius: 24px;
    padding: 6px;
    box-shadow:
      inset 0 2px 4px rgba(0,0,0,0.6),
      0 4px 10px rgba(0,0,0,0.45);
    position: relative;
    border: 3px solid #3a1c05;
  }
  .power-bar {
    position: absolute;
    left: 5px; right: 5px; bottom: 5px;
    height: 0%;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(to top, #49c14e 0%, #ffd93c 50%, #ff4d4d 100%);
    box-shadow: inset 0 0 8px rgba(255,255,255,0.35);
    transition: height 0.08s linear, background 0.2s linear;
  }
  .power-wrap::before, .power-wrap::after {
    content: "";
    position: absolute;
    right: -12px;
    width: 6px; height: 2px;
    background: #ffe2a2;
    opacity: 0.6;
  }
  .power-wrap::before { top: 20%; }
  .power-wrap::after  { top: 60%; }

  /* 蓄力箭头提示 */
  .hint-text {
    position: absolute;
    left: 120%;
    transform: translateY(-50%);
    top: 50%;
    font-size: 11px;
    color: #fff3c2;
    background: rgba(90, 40, 10, 0.85);
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,200,120,0.6);
    white-space: nowrap;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
  }
  .hint-text.show { opacity: 1; animation: hintBlink 0.8s ease-in-out infinite; }
  @keyframes hintBlink {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 3px)); }
  }

  /* 圆形发射按钮 */
  .btn-launch {
    position: relative;
    width: 130px; height: 130px;
    border-radius: 50%;
    border: 5px solid #3a1c05;
    background: radial-gradient(circle at 35% 30%, #ffb770, #c46a1e 55%, #6b3414 100%);
    color: #fff6d8;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow:
      inset 0 4px 8px rgba(255, 220, 150, 0.5),
      inset 0 -6px 14px rgba(0,0,0,0.45),
      0 10px 18px rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    touch-action: manipulation;
  }
  .btn-launch:active,
  .btn-launch.pressing {
    transform: translateY(4px) scale(0.96);
    box-shadow:
      inset 0 6px 12px rgba(0,0,0,0.55),
      0 2px 4px rgba(0,0,0,0.4);
  }
  .btn-launch.charging { animation: btnPulse 0.6s ease-in-out infinite; }
  .btn-launch.high     { animation: btnPulseFast 0.3s ease-in-out infinite; }
  @keyframes btnPulse     { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
  @keyframes btnPulseFast { 0%, 100% { transform: scale(1.04); box-shadow: 0 0 26px rgba(255,80,80,0.9), inset 0 6px 12px rgba(0,0,0,0.55);}
                           50%      { transform: scale(1.14); box-shadow: 0 0 44px rgba(255,180,60,1),  inset 0 6px 12px rgba(0,0,0,0.55);} }

  /* 旋转光环 */
  .halo {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    pointer-events: none;
    overflow: hidden;
  }
  .halo .particle {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff4c2, rgba(255, 200, 100, 0));
    opacity: 0.8;
    top: 50%; left: 50%;
    transform-origin: 0 0;
    animation: haloSpin 4s linear infinite;
  }
  @keyframes haloSpin {
    from { transform: rotate(0deg) translate(60px) rotate(0deg); }
    to   { transform: rotate(360deg) translate(60px) rotate(-360deg); }
  }
  .btn-launch.charging .halo .particle { background: radial-gradient(circle, #c8ffcc, rgba(73,193,78,0)); }
  .btn-launch.mid      .halo .particle { background: radial-gradient(circle, #fff4c2, rgba(255, 200, 100, 0)); }
  .btn-launch.high     .halo .particle { background: radial-gradient(circle, #ffd5d5, rgba(255, 80, 80, 0)); animation-duration: 1.5s; }

  .btn-launch.cooling {
    background: radial-gradient(circle at 35% 30%, #a07a5a, #5a4030 55%, #2a1a0a 100%);
    color: #c9a988;
    cursor: not-allowed;
    filter: grayscale(0.6);
  }
  .btn-launch.locked {
    background: radial-gradient(circle at 35% 30%, #8a7a6a, #4a4030 55%, #1a1510 100%);
    color: #9a8a7a;
    cursor: not-allowed;
    filter: grayscale(0.8) brightness(0.7);
    opacity: 0.7;
  }
  .cooldown-ring {
    position: absolute; inset: 8px;
    border-radius: 50%;
    border: 3px solid rgba(255, 220, 150, 0.8);
    border-top-color: transparent;
    border-right-color: transparent;
    animation: cooldownSpin 3s linear forwards;
    display: none;
  }
  .cooldown-ring.on { display: block; }
  @keyframes cooldownSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(1080deg); }
  }
  .cooldown-text {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900;
    color: #ffd98a;
    text-shadow: 0 2px 4px #3a1c05;
  }
  .cooldown-text.on { display: flex; }

  /* ===== 分数飘字 ===== */
  .float-score {
    position: absolute;
    font-size: 26px;
    font-weight: 900;
    color: #ffe29a;
    text-shadow: 0 0 10px #ff8a2a, 0 2px 4px #3a1c05;
    pointer-events: none;
    z-index: 50;
    animation: floatUp 1.4s ease-out forwards;
    letter-spacing: 2px;
  }
  @keyframes floatUp {
    0%   { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
    20%  { transform: translate(-50%, -10px) scale(1.4); opacity: 1; }
    100% { transform: translate(-50%, -140px) scale(1); opacity: 0; }
  }

  /* ===== 首次引导 ===== */
  .guide {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 0, 0.65);
    z-index: 99;
    display: flex;
    align-items: center; justify-content: center;
    color: #fff6d8;
    font-size: 14px;
    text-align: center;
    padding: 24px;
  }
  .guide .card {
    background: linear-gradient(135deg, #e9c892, #b9884e);
    padding: 18px 22px;
    border-radius: 16px;
    border: 3px solid #5a2e0a;
    max-width: 320px;
    line-height: 1.8;
    color: #3a1c05;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  }
  .guide .card .emoji { font-size: 34px; display: block; margin-bottom: 6px; }
  .guide .card .ok {
    margin-top: 12px;
    padding: 8px 22px;
    background: #ff9a3c;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
  }

  /* ===== modal 弹窗 ===== */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 10, 0, 0.7);
    z-index: 100;
    display: none;
    align-items: center; justify-content: center;
    animation: fadeIn 0.25s ease;
  }
  .modal-overlay.on { display: flex; }
  @keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

  .modal {
    width: 82%;
    max-width: 340px;
    background: linear-gradient(135deg, #fff3d2, #ffc978);
    border-radius: 22px;
    border: 5px solid #5a2e0a;
    padding: 22px 18px 18px;
    text-align: center;
    color: #3a1c05;
    box-shadow: 0 14px 32px rgba(0,0,0,0.6);
    animation: popIn 0.35s cubic-bezier(0.17, 0.88, 0.32, 1.28);
    position: relative;
  }
  @keyframes popIn {
    0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
  }
  .modal .big {
    font-size: 30px;
    font-weight: 900;
    color: #b8441a;
    text-shadow: 2px 2px 0 #fff3d2;
    letter-spacing: 4px;
    margin: 6px 0;
  }
  .modal .desc {
    font-size: 14px;
    color: #5a2e0a;
    line-height: 1.6;
    margin: 12px 0 16px;
  }
  .modal .actions {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .modal button {
    padding: 10px 22px;
    border: 2px solid #5a2e0a;
    background: linear-gradient(to bottom, #ffcf6a, #ff9a3c);
    color: #3a1c05;
    font-weight: 900;
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 4px 0 #5a2e0a, 0 6px 12px rgba(0,0,0,0.3);
  }
  .modal button.ghost {
    background: linear-gradient(to bottom, #fff3d2, #e0c79a);
  }

  /* ===== 面板轻微震动（移除了强烈颤动，保持稳定） ===== */
  .board-shake { animation: boardShake 0.12s ease; }
  @keyframes boardShake {
    0%, 100% { transform: translate(0, 0); }
    30%      { transform: translate(-1px, 0.5px); }
    60%      { transform: translate(1px, -0.5px); }
  }

  .back-btn {
    position: fixed;
    top: 48px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(139,90,43,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    border: 1.5px solid rgba(212,175,55,0.3);
    color: #FFD700;
  }
