  /* =========================================================================
   * 7. 局内弹窗系统 (#modal) 与 3 连立式鎏金橱窗卡兼容样式
   * ========================================================================= */
  #modal { inset: 0; display: none; align-items: center; justify-content: center; pointer-events: auto;
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    background: rgba(3, 6, 15, 0.88) !important;
    z-index: 9999 !important;
  }
  #modal.show { display: flex !important; }

  /* 当局内模态弹窗 (#modal) 展开时，强制隐藏左右两侧 HUD 按钮避免任何穿透或遮挡 */
  #modal.show ~ #btns,
  #modal.show ~ #btnRandomPull,
  #modal.show ~ #btnPlayModeToggle,
  #modal.show ~ #ticketBar,
  #modal.show ~ #bStageCodex,
  body.has-modal-open #btns,
  body.has-modal-open #btnRandomPull,
  body.has-modal-open #btnPlayModeToggle,
  body.has-modal-open #ticketBar,
  body.has-modal-open #bStageCodex,
  body.has-modal-open #cozyBlessingEma,
  body.has-modal-open #ambientBuffStatusPill {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #modal .card {
    position: relative;
    width: min(492px, 96vw); max-height: 90dvh; overflow-y: auto; padding: 16px 12px 14px;
    background:
      radial-gradient(100% 55% at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 75%),
      linear-gradient(165deg, rgba(16, 28, 54, 0.94) 0%, rgba(9, 15, 34, 0.96) 60%, rgba(4, 7, 18, 0.98) 100%) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 3px solid #f59e0b !important;
    border-radius: 22px;
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.95),
      0 0 32px rgba(245, 158, 11, 0.35),
      inset 0 0 0 1.5px rgba(254, 240, 138, 0.4),
      inset 0 2px 12px rgba(0, 0, 0, 0.75) !important;
    color: #f8fafc;
    scrollbar-width: thin;
    scrollbar-color: #f59e0b rgba(8, 12, 24, 0.85);
  }
  #modal .card::-webkit-scrollbar { width: 4px; height: 4px; }
  #modal .card::-webkit-scrollbar-track { background: rgba(8, 12, 24, 0.85); border-radius: 4px; }
  #modal .card::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f7e7c4 0%, #d8bc82 50%, #9e7c40 100%); border-radius: 4px; }

  #modal .modal-x {
    position: sticky; top: 0; float: right;
    width: 34px !important; height: 34px !important; min-width: 34px !important;
    padding: 0 !important; margin: -2px -2px 6px 8px; border-radius: 50% !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 28%, #dc2626 0%, #991b1b 55%, #450a0a 100%) !important;
    border: 2px solid #f7e7c4 !important;
    color: #fef08a !important;
    font-family: var(--font-arcade) !important;
    font-size: 15px !important; font-weight: 900;
    box-shadow:
      0 4px 0 #3b0606,
      0 6px 14px rgba(0,0,0,0.85),
      inset 0 1.5px 2px rgba(255, 228, 230, 0.65) !important;
    text-shadow: none !important;
    cursor: pointer; z-index: 6; flex: 0 0 auto !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease !important;
  }
  #modal .modal-x:hover { filter: brightness(1.12); transform: translateY(-1px); }
  #modal .modal-x:active {
    transform: translateY(3px) !important;
    box-shadow: 0 1px 0 #3b0606, 0 2px 6px rgba(0,0,0,0.85) !important;
  }

  .shop-header-plate {
    text-align: center;
    padding: 2px 34px 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(216, 188, 130, 0.28);
  }
  #modal h2 {
    font-family: var(--font-arcade);
    font-weight: 900; font-size: 20px; letter-spacing: .03em; margin-bottom: 3px;
    color: #fef08a; text-shadow: 0 2px 0 #000, 0 0 12px rgba(255, 200, 80, 0.45);
  }
  #modal .sub {
    font-family: var(--font-num);
    font-weight: 800; font-style: italic;
    font-size: 10.5px; letter-spacing: .14em; color: #d8bc82; margin-bottom: 8px;
  }
  #modal p, #modal li { font-size: 13px; line-height: 1.65; color: #cbd5e1; font-weight: 700; }
  #modal ul { padding-left: 18px; margin: 6px 0 12px; }
  #modal .row { display: flex; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
  #modal button {
    flex: 1; min-width: 115px; padding: 11px 12px; border-radius: 13px;
    border: 1.5px solid rgba(216,188,130,.45); background: rgba(22, 32, 56, 0.92); color: #f7e7c4;
    font-family: var(--font-arcade);
    font-size: 13px; cursor: pointer; font-weight: 900; transition: all .12s;
    text-shadow: none;
  }
  #modal button:hover { filter: brightness(1.1); }
  #modal button:active { transform: translateY(2px); }
  #modal button.primary {
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 52%, #b45309 100%);
    color: #1c0c02; border: 2px solid #fef9c3;
    box-shadow: 0 4px 0 #78350f, 0 6px 16px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255,255,255,0.8);
    text-shadow: none;
  }
  #modal button.ad-revive {
    background: linear-gradient(135deg, #10b981, #059669); color: #fff; border-color: #6ee7b7;
    box-shadow: 0 4px 0 #064e3b, 0 0 20px rgba(16,185,129,.45); flex-basis: 100%; font-size: 14px; padding: 13px 14px;
    text-shadow: none;
  }
  #modal button.gold-double {
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 55%, #b45309 100%);
    color: #1c0c02; border: 2px solid #fef9c3;
    box-shadow: 0 4px 0 #78350f, 0 0 22px rgba(250,204,21,.55); flex-basis: 100%; font-size: 14.5px; padding: 13px 14px;
    text-shadow: none;
  }
  #modal .big {
    font-family: var(--font-num); font-weight: 800; font-style: italic;
    font-size: 38px; color: #fde047; margin: 4px 0 6px; text-shadow: 0 2px 0 #000, 0 0 16px rgba(250,204,21,.55);
  }
  .rec-box {
    background: linear-gradient(90deg, rgba(15, 23, 46, 0.92), rgba(28, 38, 68, 0.88));
    border: 1.5px solid rgba(216,188,130,.42); border-radius: 13px; padding: 7px 11px; margin: 6px 0 8px;
    font-size: 11.5px; font-weight: 900; color: #f7e7c4; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.65);
  }
  @keyframes unlockReadyPulse {
    0%, 100% { box-shadow: 0 0 14px rgba(250, 204, 21, 0.45), inset 0 0 10px rgba(250, 204, 21, 0.18); transform: scale(1); }
    50% { box-shadow: 0 0 24px rgba(16, 185, 129, 0.75), 0 0 14px rgba(250, 204, 21, 0.75), inset 0 0 14px rgba(250, 204, 21, 0.28); transform: scale(1.012); }
  }
  .unlock-ready-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; margin: 6px 0 8px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(180, 83, 9, 0.92) 100%);
    border: 2px solid #fde047; color: #fff;
    animation: unlockReadyPulse 1.8s ease-in-out infinite;
  }
  .mach-cassette.can-unlock {
    border-color: #fde047 !important;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.65), inset 0 0 8px rgba(250, 204, 21, 0.25) !important;
  }
  .cassette-tag.can-unlock {
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%) !important;
    color: #1c0c02 !important;
    border-color: #ffffff !important;
    font-weight: 900 !important;
  }
  #bSideNext.has-unlock-ready {
    border-color: #fde047 !important;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.85), 0 0 10px rgba(16, 185, 129, 0.65) !important;
  }
  #bSideNext .unlock-dot-badge {
    display: block; font-size: 8.5px; font-weight: 900; color: #1c0c02;
    background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
    border: 1px solid #fff; border-radius: 999px; padding: 1px 4px; margin-top: 2px;
    line-height: 1.1; text-shadow: none; white-space: nowrap;
  }
  #mCard.next-unlock-modal-card {
    background: linear-gradient(160deg, rgba(44, 31, 10, 0.96) 0%, rgba(22, 15, 5, 0.98) 55%, rgba(12, 8, 3, 0.99) 100%) !important;
    border: 2.5px solid #D4AF37 !important;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.90), 0 0 38px rgba(212, 175, 55, 0.48), inset 0 1px 2px rgba(255, 248, 214, 0.72) !important;
    /* thermal-opt */
    -webkit-/* thermal-opt */
  }
  @keyframes hallUnlockFocusFlash {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 0 3px #fde047, 0 0 28px rgba(250, 204, 21, 0.95), 0 0 48px rgba(16, 185, 129, 0.75);
    }
    50% {
      transform: scale(1.045);
      box-shadow: 0 0 0 5px #ffffff, 0 0 42px rgba(250, 204, 21, 1), 0 0 64px rgba(16, 185, 129, 0.95);
    }
  }
  .hall-mystery-card.hall-unlock-focus-flash,
  .hero-cabinet-showcase.hall-unlock-focus-flash {
    animation: hallUnlockFocusFlash 0.55s ease-in-out 6 !important;
    z-index: 15 !important;
  }
  @keyframes btnShimmer {
    0% { background-position: -180% 0; }
    100% { background-position: 220% 0; }
  }
  .btn-price-num {
    font-family: var(--font-num);
    font-weight: 800;
    font-style: italic;
    font-size: 11.5px;
  }

  /* 3秒街机激励视频模拟器 (#adOverlay) */
  #adOverlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(8, 6, 14, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 20000 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: auto !important;
  }
  #adOverlay.show { display: flex !important; opacity: 1 !important; transform: none !important; animation: none !important; }
  #adOverlay .ad-box { width: 88% !important; max-width: 340px !important; background: linear-gradient(165deg, #211830 0%, #100b18 100%) !important; border: 2px solid rgba(245, 196, 81, 0.85) !important; border-radius: 18px !important; padding: 22px 18px !important; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.92) !important; }
  #adOverlay .ad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
  #adOverlay .ad-tag { display: inline-block; background: linear-gradient(135deg, #fde047, #f59e0b); color: #090d16; font-family: var(--font-num); font-weight: 800; font-style: italic; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.05em; }
  #adOverlay .ad-code { font-size: 10px; font-family: var(--font-num); font-weight: 800; font-style: italic; color: #93c5fd; }
  #adOverlay .ad-ring-wrap { position: relative; width: 104px; height: 104px; margin: 12px auto; display: flex; align-items: center; justify-content: center; }
  #adOverlay .ad-ring-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
  #adOverlay .ad-timer { font-family: var(--font-num); font-weight: 800; font-style: italic; font-size: 28px; color: #fde047; text-shadow: 0 0 12px rgba(250,204,21,.55); z-index: 1; }

  #debug { left: 10px; bottom: 52px; font: 11px/1.4 ui-monospace, Menlo, monospace; color: var(--dim); padding: 6px 9px; display: none; }
  #flash { position: fixed; inset: 0; pointer-events: none; z-index: 8; opacity: 0;
    background: radial-gradient(circle at 50% 40%, rgba(255,214,0,.8), rgba(0,60,255,0) 70%); transition: opacity .8s; }
  #loading { position: fixed; inset: 0; display: none; pointer-events: none; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900; letter-spacing: .2em; color: #f5c542; z-index: 20;
    background: #090d1a; transition: opacity .5s; }
  #errBanner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 9999;
    background: rgba(220,38,38,.95); color: #fff; padding: 8px 16px; border-radius: 10px;
    font-size: 12px; font-weight: 700; display: none; max-width: 90vw; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
  #float { z-index: 65 !important; }

  /* ── NO.02 ~ NO.05 通用已解锁状态（外框翠绿呼吸光 + 右上角绿勾徽章） ── */
  .hall-mystery-card.is-unlocked {
    background: linear-gradient(165deg, #FFFFFF 0%, #FAF7EE 52%, #EDE2C8 100%) !important;
    border: 2.5px solid #10B981 !important;
    animation: emeraldCardBreath 2.4s ease-in-out infinite;
  }
  .hall-mystery-card.is-unlocked .cabinet-trapezoid-silhouette {
    border: 2px solid #10B981 !important;
    box-shadow: inset 0 2px 8px rgba(16, 185, 129, 0.28), 0 0 10px rgba(16, 185, 129, 0.25) !important;
  }
  .hall-mystery-card.is-unlocked .mystery-card-top {
    background: linear-gradient(90deg, #E6F8F1 0%, #FFFDF9 50%, #F5EEDB 100%) !important;
    border: 1px solid #34D399 !important;
  }
  .hall-mystery-card.is-unlocked .mystery-no-title {
    color: #065F46 !important;
    text-shadow: 0 1px 0 #FFFFFF !important;
  }
  /* NO.05 已解锁时保留右上角 3D 金皇冠，将绿色勾号徽章置于左上角 */
  #hallCard05.hall-mystery-card.is-unlocked .mystery-icon-badge.ready-check {
    left: 8.5% !important;
    right: auto !important;
    top: 25.5% !important;
  }

  /* ── 彩票足够解锁但尚未解锁时的呼吸提示态 ── */
  @keyframes canAffordPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.45), inset 0 1px 0 #FFF; transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(250, 204, 21, 0.9), inset 0 1px 0 #FFF; transform: scale(1.05); }
  }
  .hall-mystery-card.can-afford-unlock .mystery-cost-pill {
    background: linear-gradient(180deg, #FEF08A 0%, #F59E0B 100%) !important;
    border-color: #FFFBEB !important;
    color: #1C0C02 !important;
    animation: canAffordPulse 1.3s ease-in-out infinite;
  }
  .mystery-status-tag.can-afford {
    background: linear-gradient(180deg, #FDE047 0%, #D97706 100%) !important;
    border: 1px solid #FFFBEB !important;
    color: #1C0C02 !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.65);
  }

  /* ── 1) 彩票够时点击解锁：金锁弹开 + 翠绿金光爆发特效 ── */
  @keyframes cardUnlockBurst {
    0% { transform: scale(1); filter: brightness(1); }
    28% { transform: scale(1.06); filter: brightness(1.38); box-shadow: 0 0 36px rgba(250, 204, 21, 0.95), 0 0 60px rgba(16, 185, 129, 0.85) !important; }
    65% { transform: scale(0.98); filter: brightness(1.12); }
    100% { transform: scale(1); filter: brightness(1); }
  }
  @keyframes padlockOpenPop {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    35% { transform: translate(-50%, -58%) scale(1.38) rotate(-18deg); filter: brightness(1.5) drop-shadow(0 0 14px #FDE047); opacity: 1; }
    75% { transform: translate(-50%, -72%) scale(1.65) rotate(16deg); opacity: 0.45; }
    100% { transform: translate(-50%, -85%) scale(0.2); opacity: 0; }
  }
  @keyframes unlockFloatUp {
    0% { transform: translate(-50%, 6px) scale(0.75); opacity: 0; }
    22% { transform: translate(-50%, -4px) scale(1.06); opacity: 1; }
    80% { transform: translate(-50%, -18px) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -28px) scale(0.92); opacity: 0; }
  }
  .hall-mystery-card.unlocking-burst {
    animation: cardUnlockBurst 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
    z-index: 12 !important;
  }
  .hall-mystery-card .mystery-icon-badge.padlock-opening {
    animation: padlockOpenPop 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  }
  .hall-mystery-card .mystery-icon-badge.padlock-opening svg path:first-of-type {
    transform-origin: 16px 11px;
    transform: translateY(-3.5px) rotate(28deg);
    transition: transform 0.22s ease-out;
  }
  .unlock-float-fx {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, 0);
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    border: 1.5px solid #FEF08A;
    color: #FFFFFF;
    font-family: var(--font-num);
    font-size: 10.5px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65), 0 0 16px rgba(250, 204, 21, 0.85);
    z-index: 15;
    pointer-events: none;
    animation: unlockFloatUp 0.95s ease-out forwards;
  }

  /* ── 2) 彩票不够时点击上锁机器：红金警报闪烁 + 锁头剧烈摇晃特效 ── */
  @keyframes cardLockedShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px) rotate(-1.2deg); border-color: #EF4444 !important; box-shadow: 0 0 20px rgba(239, 68, 68, 0.78) !important; }
    32% { transform: translateX(6px) rotate(1.2deg); border-color: #F59E0B !important; }
    48% { transform: translateX(-5px) rotate(-0.8deg); border-color: #EF4444 !important; }
    66% { transform: translateX(4px) rotate(0.6deg); }
    82% { transform: translateX(-2.5px); }
  }
  @keyframes padlockRattle {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    20% { transform: translate(-50%, -50%) scale(1.26) rotate(-22deg); border-color: #EF4444 !important; box-shadow: 0 0 18px rgba(239, 68, 68, 0.9) !important; }
    40% { transform: translate(-50%, -50%) scale(1.26) rotate(20deg); }
    60% { transform: translate(-50%, -50%) scale(1.18) rotate(-14deg); }
    80% { transform: translate(-50%, -50%) scale(1.10) rotate(10deg); }
  }
  .hall-mystery-card.locked-shake {
    animation: cardLockedShake 0.46s ease-in-out !important;
  }
  .hall-mystery-card .mystery-icon-badge.padlock-rattle {
    animation: padlockRattle 0.46s ease-in-out !important;
  }

  /* ── 3) 5大机台玩法说明与任务弹窗样式 (.mission-guide-grid) ── */
  .mission-guide-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 10px;
  }
  .mission-guide-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(18, 29, 58, 0.95) 0%, rgba(9, 15, 32, 0.95) 100%);
    border: 1.5px solid rgba(216, 188, 130, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.45);
  }
  .mission-guide-card.is-unl {
    border-color: rgba(52, 211, 153, 0.65);
  }
  .mission-guide-thumb {
    width: 48px;
    height: 62px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    border: 1.5px solid #D4AF37;
    flex-shrink: 0;
    background: #080d1a;
  }
  .mission-guide-body {
    flex: 1;
    min-width: 0;
  }
  .mission-guide-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
    flex-wrap: wrap;
  }
  .mission-guide-title {
    font-family: var(--font-arcade);
    font-size: 12.5px;
    font-weight: 900;
    color: #FEF08A;
  }
  .mission-guide-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .mission-badge-pill {
    padding: 1.5px 6px;
    border-radius: 999px;
    font-family: var(--font-num);
    font-size: 9.5px;
    font-weight: 800;
    font-style: italic;
  }
  .mission-badge-pill.shot {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38BDF8;
    color: #BAE6FD;
  }
  .mission-badge-pill.unl {
    background: linear-gradient(180deg, #10B981, #047857);
    border: 1px solid #A7F3D0;
    color: #FFFFFF;
  }
  .mission-badge-pill.lck {
    background: rgba(120, 53, 15, 0.65);
    border: 1px solid #F59E0B;
    color: #FDE047;
  }
  .mission-guide-desc {
    font-size: 11.5px;
    line-height: 1.48;
    color: #E2E8F0;
    font-weight: 700;
  }
  .mission-guide-desc b {
    color: #FDE047;
  }

  /* ── 4) 全局统一设置弹窗（深蓝微晶玻璃 + 鎏金琥珀风 · 大厅与房间 100% 共用） ── */
  #mCard.global-settings-modal-card {
    background:
      radial-gradient(100% 55% at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 75%),
      linear-gradient(165deg, rgba(16, 28, 54, 0.96) 0%, rgba(9, 15, 34, 0.98) 60%, rgba(4, 7, 18, 0.99) 100%) !important;
    border: 2.5px solid #f59e0b !important;
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.9),
      0 0 32px rgba(245, 158, 11, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 0 0 1.5px rgba(254, 240, 138, 0.35) !important;
    color: #f8fafc !important;
    padding: 16px 14px 15px !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
  }
  #mCard.global-settings-modal-card *,
  #mCard.global-settings-modal-card button,
  #mCard.global-settings-modal-card h2,
  #mCard.global-settings-modal-card .sub {
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
  }
  #mCard.global-settings-modal-card h2 {
    color: #fef08a !important;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
  #mCard.global-settings-modal-card .sub {
    color: #cbd5e1 !important;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .gs-rivet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 32%, #FFFFFF 0%, #FFE484 38%, #B68014 82%, #5E3B04 100%);
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.6), inset 0 0.5px 0.5px #FFF;
    pointer-events: none;
    z-index: 4;
  }
  .gs-rivet.tl { top: 8px; left: 8px; }
  .gs-rivet.tr { top: 8px; right: 50px; }
  .gs-rivet.bl { bottom: 8px; left: 8px; }
  .gs-rivet.br { bottom: 8px; right: 8px; }

  .gs-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0 10px;
    padding: 4px;
    border-radius: 13px;
    background: rgba(9, 15, 34, 0.75);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  .gs-tab-pill {
    padding: 7px 8px !important;
    border-radius: 9px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-family: var(--font-arcade) !important;
    font-size: 11.5px !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all 0.14s ease;
  }
  .gs-tab-pill.active {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #fef08a !important;
    color: #0c111d !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  }

  .gs-module-box {
    background: linear-gradient(145deg, rgba(18, 29, 58, 0.85) 0%, rgba(9, 15, 32, 0.88) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.38);
    border-radius: 15px;
    padding: 10px 11px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .gs-module-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-arcade);
    font-size: 12px;
    font-weight: 900;
    color: #fef08a;
    border-bottom: 1.5px solid rgba(245, 158, 11, 0.35);
    padding-bottom: 6px;
    margin-bottom: 8px;
  }
  .gs-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    border-radius: 11px;
    background: rgba(9, 15, 34, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.3);
  }
  .gs-toggle-chip {
    min-width: 98px !important;
    padding: 6px 9px !important;
    border-radius: 9px !important;
    font-family: var(--font-arcade) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    background: linear-gradient(180deg, #10B981 0%, #047857 100%) !important;
    border: 1.5px solid #A7F3D0 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.35) !important;
    text-shadow: none !important;
    cursor: pointer;
    flex-shrink: 0;
  }
  .gs-toggle-chip.off {
    background: linear-gradient(180deg, #64748B 0%, #334155 100%) !important;
    border-color: #CBD5E1 !important;
    color: #E2E8F0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 0.85;
  }
  .gs-vol-slider {
    flex: 1;
    accent-color: #f59e0b;
    height: 6px;
    cursor: pointer;
  }
  .gs-vol-val {
    width: 38px;
    text-align: right;
    font-family: var(--font-num);
    font-weight: 800;
    font-style: italic;
    font-size: 12px;
    color: #fde047;
    flex-shrink: 0;
  }
  .gs-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 6px;
  }
  .gs-item-btn {
    padding: 7px 5px !important;
    border-radius: 11px !important;
    border: 1.5px solid #f59e0b !important;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    color: #fef08a !important;
    font-family: var(--font-arcade) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 0 #b45309, 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
  }
  .gs-item-btn:active {
    transform: translateY(1.5px);
  }
  .gs-item-btn.off {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%) !important;
    border-color: #64748b !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* 底部红宝石金边立体退出按钮 & 返回大厅并排按钮 */
  .gs-bottom-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
  }
  .btn-hall-return-gold {
    flex: 1;
    padding: 11px 10px !important;
    border-radius: 13px !important;
    border: 2px solid #FFF8D6 !important;
    background: linear-gradient(180deg, #FEF08A 0%, #EAB308 48%, #A16207 100%) !important;
    color: #2B1702 !important;
    font-family: var(--font-arcade) !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 0 #713F12, 0 6px 14px rgba(161, 98, 7, 0.4), inset 0 1px 1px #FFFFFF !important;
    text-shadow: none !important;
    cursor: pointer;
  }
  .btn-ruby-exit-game {
    flex: 1;
    padding: 11px 12px !important;
    border-radius: 13px !important;
    border: 2px solid #FDE047 !important;
    background: linear-gradient(180deg, #FF5252 0%, #DC2626 46%, #7F1D1D 100%) !important;
    color: #FFFBEB !important;
    font-family: var(--font-arcade) !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    box-shadow: 0 4px 0 #450A0A, 0 6px 16px rgba(185, 28, 28, 0.52), inset 0 1.5px 1px rgba(255, 228, 230, 0.72) !important;
    text-shadow: none !important;
    cursor: pointer;
  }
  .btn-ruby-exit-game:active,
  .btn-hall-return-gold:active {
    transform: translateY(2px);
  }

  /* ── 5) 退出游戏后的香槟金待机告别画面 (#exitStandbyOverlay) ── */
  #exitStandbyOverlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
      radial-gradient(80% 55% at 50% 35%, #FFFDF9 0%, #F5E6C8 56%, #DEC18B 100%);
    color: #4A3212;
    text-align: center;
    pointer-events: auto;
  }
  #exitStandbyOverlay.show {
    display: flex;
    animation: hallFadeIn 0.24s ease-out;
  }
  .exit-standby-card {
    width: min(410px, 92vw);
    padding: 28px 22px 24px;
    border-radius: 22px;
    background: linear-gradient(165deg, #FFFFFF 0%, #FAF2E1 58%, #EAD6B3 100%);
    border: 2.5px solid #C89B3C;
    box-shadow:
      0 22px 50px rgba(74, 50, 18, 0.35),
      inset 0 2px 0 #FFFFFF,
      inset 0 0 0 1.5px rgba(212, 175, 55, 0.42);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  /* ── 7) 任务奖励列表 (.mission-task-list) & 存档引继码 (.backup-code-box) ── */
  .mission-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 10px;
  }
  .mission-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(18, 29, 58, 0.85) 0%, rgba(9, 15, 32, 0.88) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.38);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  }
  .mission-task-row.social-row {
    background: linear-gradient(145deg, rgba(30, 41, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #f59e0b;
  }
  .mission-task-info {
    flex: 1;
    min-width: 0;
  }
  .mission-task-name {
    font-size: 12px;
    font-weight: 900;
    color: #fef08a;
    line-height: 1.3;
  }
  .mission-task-sub {
    font-size: 10.5px;
    font-weight: 800;
    color: #cbd5e1;
    margin-top: 2px;
  }
  .mission-claim-btn {
    flex: 0 0 auto;
    min-width: auto !important;
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    border: 1.5px solid #fef08a !important;
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 100%) !important;
    color: #1c0c02 !important;
    cursor: pointer;
    white-space: nowrap;
  }
  .mission-claim-btn.claimed {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #94a3b8 !important;
    cursor: default;
  }
  .mission-claim-btn.locked {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #64748b !important;
  }
  .backup-code-box {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    background: rgba(9, 15, 34, 0.75);
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .backup-code-row {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .backup-code-input {
    flex: 1;
    min-width: 0;
    padding: 6px 9px;
    border-radius: 8px;
    border: 1.5px solid #f59e0b;
    background: #0f172a;
    color: #fde047;
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 700;
  }
  /* v3.7.0 Item 3 & Item 4: 即时广告加载中状态与失败 Toast 横幅 */
  #adLoadingToastOverlay {
    position: fixed;
    inset: 0;
    z-index: 9850;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 24, 0.56);
    /* thermal-opt */
    -webkit-/* thermal-opt */
    pointer-events: auto;
  }
  #adLoadingToastOverlay.show {
    display: flex;
  }
  .ad-loading-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
    border: 2px solid #F5B932;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 185, 50, 0.38);
    color: #FEF08A;
    font-size: 13.5px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }
  .ad-loading-spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2.5px solid rgba(254, 240, 138, 0.28);
    border-top-color: #FDE047;
    animation: sbAdSpin 0.75s linear infinite;
  }
  @keyframes sbAdSpin {
    to { transform: rotate(360deg); }
  }
  #adErrorToastBanner {
    position: fixed;
    left: 50%;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 64px);
    transform: translate(-50%, 16px);
    z-index: 9860;
    display: none;
    max-width: min(92vw, 420px);
    padding: 11px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.96) 0%, rgba(69, 10, 10, 0.98) 100%);
    border: 1.5px solid #FCA5A5;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.68);
    color: #FEF2F2;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
  }
  #adErrorToastBanner.show {
    display: block;
    transform: translate(-50%, 0);
  }

  /* =========================================================================
   * v3.9 十大房间温暖与爽感体验升级：
   * 1. 日本富士山火山喷发口 (#fujiVolcanoSpoutHud) & 双侧流光弧线入皿
   * 2. 单次进洞24种多样式可爱搞笑温暖弹幕 & 洞口樱花波纹 (#warmDanmakuLayer)
   * 3. (Feature 02 偶发小剧场按指示移除下线)
   * 4. 房间内温暖日本民俗生活元素 (#roomCozyJapanDecor：居酒屋赤提灯、樱花、日式拖鞋、团子、零国旗)
   * 5. 拉杆蓄力槽「🌸 72%–78% 職人黄金力道甜蜜点（Sweet-Spot）」暖光刻度提示 (#plungerSweetSpotBadge)
   * 6. 差1~2洞满贯时的「🔥 リーチ（听牌/One-Away）」目标洞口金环引导与心跳加油 (#riichiCheerBanner)
   * 7. 未进洞落入死穴时的「🍃 零挫败温柔安慰微气泡（Soft Miss Comfort）」(.soft-miss-comfort-pill)
   * 8. 房间内轻柔「🎐 昭和江戸風鈴」微环境音与摇曳风铃挂件 (#cozyWindChime)
   * 9. 房间顶部「📢 店主の黒板・街坊喜報（Cozy Chalkboard Ticker）」(#cozyBlessingEma)
   * 10. 房间角落常驻「📷 記念撮影（一键生成昭和拍立得炫耀战报卡）」按钮 (#cozyCharmPhoto)
   * ========================================================================= */


  /* 细节9：房间顶部「📢 店主の黒板・街坊喜報（Cozy Chalkboard Ticker）」(#cozyBlessingEma)
   * 锚定于机台最顶部木框冠部 (top: 0.45%)，完全处于 LCD 计分屏 (top: 3.3%) 上方，100% 零遮挡
   */
  #cozyBlessingEma {
    position: absolute;
    top: 0.45%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 28;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2.5px 7px 2.5px 11px;
    border-radius: 999px;
    background: rgba(13, 31, 24, 0.38) !important;
    /* thermal-opt */
    -webkit-/* thermal-opt */
    border: 1.5px solid rgba(217, 119, 6, 0.7);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(253, 224, 71, 0.25);
    color: #fef3c7;
    font-size: 9.5px;
    font-weight: 900;
    max-width: min(88vw, 345px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.25s ease;
  }
  #cozyBlessingEma .chalk-badge {
    padding: 0.5px 5px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid #fbbf24;
    color: #fde047;
    font-size: 8.5px;
    flex-shrink: 0;
  }
  #cozyBlessingEma .ema-close-btn {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(253, 224, 71, 0.4);
    color: #cbd5e1;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 2px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
  }
  #cozyBlessingEma .ema-close-btn:hover,
  #cozyBlessingEma .ema-close-btn:active {
    background: rgba(239, 68, 68, 0.65);
    color: #ffffff;
  }
  #cozyBlessingEma:active {
    transform: translateX(-50%) scale(0.95);
  }



  /* 细节5：拉杆蓄力槽「🌸 72%–78% 職人黄金力道甜蜜点（Sweet-Spot）」暖光刻度提示 */
  #plungerSweetSpotScale {
    position: absolute;
    right: 17.5%;
    top: 88.5%;
    z-index: 27;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1.5px 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(131, 24, 67, 0.88), rgba(180, 83, 9, 0.9));
    border: 1px solid #fbcfe8;
    color: #fdf2f8;
    font-size: 8.5px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    white-space: nowrap;
  }
  #plungerSweetSpotBadge {
    position: absolute;
    right: 6%;
    bottom: 18.8%;
    z-index: 32;
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 60%, #d97706 100%);
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.65), 0 0 18px rgba(253, 224, 71, 0.85);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 900;
    white-space: nowrap;
    pointer-events: none;
    animation: sweetSpotPop 0.35s cubic-bezier(0.2, 1.3, 0.4, 1) infinite alternate;
  }
  #plungerSweetSpotBadge.show {
    display: inline-flex;
  }
  @keyframes sweetSpotPop {
    from { transform: translateY(0px) scale(1); }
    to { transform: translateY(-3px) scale(1.05); }
  }

  /* 🌟 石 2026-11-09 铁律：彻底移除差1~2球时的「🔥 リーチ! 红签 + 白色体积聚光灯锥 + 洞口黄黑虚线圆环」那套特效，双重保险强制隐藏 */
  #riichiHalo, #riichiCheerBanner, .riichi-target-halo {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  /* 细节7：未进洞落入死穴（OUT）时的「🍃 零挫败温柔安慰微气泡（Soft Miss Comfort）」 */
  .soft-miss-comfort-pill {
    position: absolute;
    left: 50%;
    bottom: 19%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.95) 100%);
    border: 1.5px solid #10b981;
    color: #065f46;
    font-size: 10.5px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 9120;
    animation: softComfortFloat 2.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  @keyframes softComfortFloat {
    0% { transform: translate(-50%, 10px) scale(0.88); opacity: 0; }
    18% { transform: translate(-50%, 0px) scale(1.02); opacity: 1; }
    80% { transform: translate(-50%, -10px) scale(1); opacity: 0.95; }
    100% { transform: translate(-50%, -20px) scale(0.95); opacity: 0; }
  }



  /* 单次进洞：洞口樱花金波纹 + 多样式可爱搞笑温暖漂浮弹幕 (#warmDanmakuLayer) */
  #warmDanmakuLayer {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9100;
    pointer-events: none;
    overflow: hidden;
  }
  .hole-sakura-ripple,
  .hole-praise-ripple {
    display: none !important;
    opacity: 0 !important;
    border: none !important;
    pointer-events: none;
  }
  @keyframes holeRippleExpand {
    0% { transform: translate(-50%, -50%) scale(0.25); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; }
  }
  .hole-pocket-cheer-tag {
    position: absolute;
    transform: translate(-50%, -100%);
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    border: 1.5px solid #ffffff;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    animation: holeCheerFloatUp 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
  }
  @keyframes holeCheerFloatUp {
    0% { transform: translate(-50%, -40%) scale(0.6); opacity: 0; }
    18% { transform: translate(-50%, -110%) scale(1.08); opacity: 1; }
    80% { transform: translate(-50%, -155%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -185%) scale(0.92); opacity: 0; }
  }

  /* 6种不同视觉样式的温暖人文关怀漂浮弹幕卡 (v3.9.1 高透明alpha 0.38 + 显式✕ + 一触即关) */
  .warm-danmaku-card {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    width: max-content;
    max-width: min(88vw, 345px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    animation: warmDanmakuGlide 3.8s cubic-bezier(0.18, 0.88, 0.32, 1) forwards;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 9150;
    /* thermal-opt */
    -webkit-/* thermal-opt */
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .warm-danmaku-card:active {
    transform: translateX(-50%) scale(0.96);
  }
  .warm-danmaku-card .dm-avatar,
  .warm-danmaku-card .wd-avatar {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  }
  .warm-danmaku-card .wd-body {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
    min-width: 0;
  }
  .warm-danmaku-card .wd-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 900;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }
  .warm-danmaku-card .wd-payout-badge {
    padding: 0.5px 6px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.85);
    font-size: 9px;
    font-weight: 900;
    color: #fef08a;
  }
  .warm-danmaku-card .dm-text,
  .warm-danmaku-card .wd-text {
    font-size: 11px;
    font-weight: 900;
    white-space: normal;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  }
  .warm-danmaku-card .wd-close-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s, transform 0.15s;
  }
  .warm-danmaku-card .wd-close-btn:hover,
  .warm-danmaku-card .wd-close-btn:active {
    background: rgba(239, 68, 68, 0.6);
    color: #ffffff;
    transform: scale(1.1);
  }
  /* 样式1：三花猫タマ 肉球高透胶囊 */
  .warm-danmaku-card.style-neko {
    background: rgba(255, 241, 242, 0.38) !important;
    border: 1.5px solid rgba(251, 113, 133, 0.7) !important;
    color: #ffffff !important;
  }
  /* 样式2：看板娘椿 樱花手绘高透暖心便签 */
  .warm-danmaku-card.style-tsubaki {
    background: rgba(253, 242, 248, 0.38) !important;
    border: 1.5px solid rgba(244, 114, 182, 0.7) !important;
    color: #ffffff !important;
  }
  /* 样式3：老店长源さん 桧木高透标牌 */
  .warm-danmaku-card.style-gensan {
    background: rgba(254, 243, 199, 0.38) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.75) !important;
    color: #fef08a !important;
  }
  /* 样式4：温泉街居酒屋 赤提灯高透暖光气泡 */
  .warm-danmaku-card.style-izakaya {
    background: rgba(127, 29, 29, 0.38) !important;
    border: 1.5px solid rgba(253, 224, 71, 0.75) !important;
    color: #fef08a !important;
  }
  /* 样式5：温泉热气 日式拖鞋与绿茶疗愈高透贴纸 */
  .warm-danmaku-card.style-onsen {
    background: rgba(209, 250, 229, 0.38) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.7) !important;
    color: #ffffff !important;
  }
  /* 样式6：昭和游技场 人间国宝金框高透奖状 */
  .warm-danmaku-card.style-retro {
    background: rgba(30, 27, 75, 0.38) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.8) !important;
    color: #fef08a !important;
  }
  @keyframes warmDanmakuGlide {
    0% { transform: translate(-50%, 14px) scale(0.85); opacity: 0; }
    10% { transform: translate(-50%, 0px) scale(1.02); opacity: 1; }
    20% { transform: translate(-50%, -2px) scale(1.0); opacity: 1; }
    88% { transform: translate(-50%, -8px) scale(1.0); opacity: 0.98; }
    100% { transform: translate(-50%, -18px) scale(0.95); opacity: 0; }
  }


  #ambientBuffStatusPill {
    position: absolute;
    left: 50%;
    top: 19.2%;
    transform: translateX(-50%);
    z-index: 32;
    padding: 3px 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(190, 24, 93, 0.92), rgba(217, 119, 6, 0.92));
    border: 1.2px solid #fef08a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    display: none;
  }
  #ambientBuffStatusPill.show {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

