/* 全站雪花 / 音乐球 / 背景插画 / 玻璃通用 */
#snowCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9000;
}

.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.page-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  opacity: .2; filter: grayscale(.05);
}

.saas-music-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 9500;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  background: linear-gradient(145deg, rgba(24,28,36,.92), rgba(56,64,80,.84));
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 26px rgba(17,24,39,.28);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform .18s, box-shadow .18s;
}
.saas-music-btn:hover { transform: translateY(-2px); }
.saas-music-btn .m-ico { font-size: 22px; line-height: 1; opacity: .92; }
.saas-music-btn .m-wave { display: none; gap: 3px; align-items: flex-end; height: 20px; }
.saas-music-btn.playing .m-ico { display: none; }
.saas-music-btn.playing .m-wave { display: flex; }
.saas-music-btn .m-wave i {
  width: 3px; border-radius: 2px; background: #fff; opacity: .9;
  animation: mwave .85s ease-in-out infinite;
}
.saas-music-btn .m-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.saas-music-btn .m-wave i:nth-child(2) { height: 16px; animation-delay: .18s; }
.saas-music-btn .m-wave i:nth-child(3) { height: 11px; animation-delay: .34s; }
.saas-music-btn.loading { opacity: .7; }
@keyframes mwave { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* IP 面板地图 */
.globe-wrap { position: relative; border-radius: 18px; overflow: hidden; background:
  radial-gradient(60% 60% at 50% 45%, rgba(30,44,70,.06), transparent 70%),
  rgba(255,255,255,.55); border: 1px solid rgba(17,24,39,.08); }
#globeCanvas, #openMapCanvas { display: block; width: 100%; height: 540px; cursor: grab; touch-action: none; }
#openMapCanvas:active { cursor: grabbing; }
#globeCanvas:active { cursor: grabbing; }
.globe-hud { position: absolute; left: 16px; top: 14px; font-size: 12px; color: #5b6472; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 400px); }
.globe-hud span { background: rgba(255,255,255,.7); border: 1px solid rgba(17,24,39,.08); border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(8px); }
.globe-actions { position: absolute; right: 16px; top: 14px; display: flex; gap: 8px; }
.globe-actions button {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22); color: #fff;
  background: linear-gradient(140deg, rgba(24,28,36,.94), rgba(52,60,76,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 18px rgba(17,24,39,.18);
  font-family: inherit;
}
.globe-tip { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #6b7280; }
.globe-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .globe-grid { grid-template-columns: 1fr; } }
.globe-side .panel { margin: 0; }
.globe-events { max-height: 420px; overflow: auto; }
.globe-events .ev { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px dashed rgba(17,24,39,.07); font-size: 12px; color: #4b5563; }
.globe-events .ev b { color: #111827; font-weight: 600; }
.globe-events .ev .ip { color: #2f8ff2; font-variant-numeric: tabular-nums; }
.globe-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.globe-stat div { background: rgba(255,255,255,.7); border: 1px solid rgba(17,24,39,.08); border-radius: 12px; padding: 10px 12px; }
.globe-stat span { display: block; font-size: 11px; color: #8a919b; }
.globe-stat b { font-size: 18px; color: #14171c; }

/* 通用玻璃按钮兜底：页面内所有按钮统一灵动岛玻璃 */
body button:not(.gl-tab):not(.sf-check):not(.gl-eye):not(.snow-toggle),
body a.btn,
body .btn {
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
body .panel, body .stat-card, body .welcome-card, body .level-card, body .balance-card {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

@media (max-width: 700px) { #openMapCanvas { height: 360px; } .globe-hud { max-width: calc(100% - 24px); } .globe-actions { top: auto; bottom: 44px; right: 10px; } }
