/* Zhenyue Games (game.nightlan.top) — Full-Screen Sunlit 3D World & Spatial HUD */
:root {
  --g-sky: #f1f6fe;
  --g-ink: #0b1220;
  --g-muted: #475569;
  --g-soft: #64748b;
  --g-coral: #ff551a;
  --g-cyan: #0ea5e9;
  --g-violet: #7c3aed;
  --g-mint: #10b981;
  --g-glass: rgba(255, 255, 255, 0.72);
  --g-glass-strong: rgba(255, 255, 255, 0.86);
  --g-glass-border: rgba(255, 255, 255, 0.92);
  --g-line: rgba(15, 23, 42, 0.09);
  --g-shadow: 0 18px 48px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --g-font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --g-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--g-ink);
  background: linear-gradient(180deg, #dcebff 0%, #f3f7ff 48%, #fff6ef 100%);
  font-family: var(--g-font);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-modal-open { overflow: hidden; }
body.is-pilot-mode { overflow: hidden; user-select: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ========== 1. FULL-SCREEN 100vw×100vh FIXED THREE.JS CANVAS ========== */
.w-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: radial-gradient(circle at 72% 24%, #fff4eb 0%, #f0f6ff 46%, #d9eaff 100%);
}
#worldCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
body.is-pilot-mode #worldCanvas {
  touch-action: none;
  cursor: crosshair;
}
body.no-webgl .w-canvas-wrap {
  background:
    radial-gradient(620px 440px at 72% 30%, rgba(255, 85, 26, 0.14), transparent 70%),
    radial-gradient(560px 420px at 26% 68%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(180deg, #dcebff 0%, #f4f7ff 55%, #fff5ee 100%);
}

/* ========== 2. FLOATING SPATIAL HUD HEADER ========== */
.g-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 14px 20px 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
body.is-pilot-mode .g-header {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}
.g-nav {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 58px;
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  background: var(--g-glass);
  border: 1px solid var(--g-glass-border);
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  pointer-events: auto;
}
.g-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.g-brand-orb {
  width: 36px; height: 36px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--g-coral), var(--g-cyan), var(--g-violet));
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.22);
}
.g-brand-orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.g-brand-txt { display: flex; flex-direction: column; line-height: 1.08; }
.g-brand-txt strong { font-size: 14.5px; font-weight: 850; letter-spacing: -0.02em; }
.g-brand-txt small { font-family: var(--g-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--g-cyan); font-weight: 700; }

.g-links { display: flex; align-items: center; gap: 4px; }
.g-links a, .g-links .g-nav-link-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--g-muted);
  transition: color 0.18s, background 0.18s;
}
.g-links a:hover, .g-links .g-nav-link-btn:hover { color: var(--g-ink); background: rgba(15, 23, 42, 0.055); }
.g-sister-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: var(--g-ink) !important;
  font-size: 12.5px !important;
}
.g-sister-link i { width: 6px; height: 6px; border-radius: 50%; background: var(--g-coral); display: inline-block; }
.g-sister-link:hover { border-color: var(--g-coral) !important; color: var(--g-coral) !important; }
.g-lang-link {
  font-family: var(--g-mono); font-size: 11.5px !important; font-weight: 800 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.g-nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.g-pilot-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}
.g-pilot-trigger:hover { transform: translateY(-1.5px); box-shadow: 0 12px 26px rgba(99, 102, 241, 0.34); }
.g-nav-cta {
  padding: 9px 15px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--g-ink); color: #fff; font-size: 12.5px; font-weight: 800;
  transition: transform 0.2s, background 0.2s;
}
.g-nav-cta:hover { transform: translateY(-1.5px); background: var(--g-coral); }
.g-menu-btn {
  display: none; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12); background: #fff;
  font-size: 13px; font-weight: 700; cursor: pointer;
}

/* ========== 3. RIGHT-EDGE SPATIAL WAYPOINT RAIL & BOTTOM TELEMETRY ========== */
.w-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: opacity 0.35s ease;
}
body.is-pilot-mode .w-rail,
body.is-pilot-mode .w-hud-bar { opacity: 0; pointer-events: none; }

.w-rail-track {
  position: absolute;
  right: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 99px;
  overflow: hidden;
  pointer-events: none;
}
.w-rail-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--g-coral), var(--g-cyan), var(--g-violet));
  transform-origin: top center;
  transform: scaleY(0.06);
}
.w-wp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.w-wp-label {
  font-family: var(--g-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--g-soft);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  opacity: 0.72;
  transition: all 0.2s;
}
.w-wp-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(15, 23, 42, 0.22);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: all 0.22s;
}
.w-wp-btn:hover .w-wp-label,
.w-wp-btn.is-active .w-wp-label {
  opacity: 1;
  color: var(--g-ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.w-wp-btn.is-active .w-wp-dot {
  background: var(--g-coral);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 85, 26, 0.22);
  transform: scale(1.18);
}

.w-hud-bar {
  position: fixed;
  left: 24px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--g-glass);
  border: 1px solid var(--g-glass-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  font-family: var(--g-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--g-ink);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.w-hud-bar .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--g-mint);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
}
.w-hud-bar .sep { color: rgba(15, 23, 42, 0.22); }
.w-hud-bar .hint { color: var(--g-muted); font-family: var(--g-font); font-weight: 600; }

/* ========== 4. SPATIAL SCROLL CHAPTERS OVER 3D WORLD ========== */
.w-scroll-layers {
  position: relative;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
body.is-pilot-mode .w-scroll-layers {
  opacity: 0;
  pointer-events: none;
}
.w-chapter {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 96px 158px 72px 48px;
  max-width: 1420px;
  margin: 0 auto;
  pointer-events: none;
}
.w-chapter.align-left { justify-content: flex-start; }
.w-chapter.align-right { justify-content: flex-end; }
.w-chapter.align-split { justify-content: space-between; align-items: flex-end; padding-bottom: 92px; gap: 28px; }

/* Hero Floating Open-Sky Typography (NO bulky white box!) */
.w-hero-panel {
  max-width: 520px;
  pointer-events: auto;
}
.w-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  font-family: var(--g-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--g-coral);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.w-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-coral); display: inline-block; }

.w-hero-panel h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--g-ink);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.92);
}
.w-accent-grad {
  background: linear-gradient(115deg, #ff551a 0%, #f59e0b 40%, #0ea5e9 75%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w-hero-sub {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: #334155;
  font-weight: 500;
  max-width: 440px;
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.95);
}
.w-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.w-scroll-cue {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--g-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--g-soft);
}
.w-scroll-cue span {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.25);
  text-align: center;
  line-height: 19px;
  animation: wBounce 2.1s ease-in-out infinite;
}
@keyframes wBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Shared Tactile Buttons */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(.22, 1, .36, 1), box-shadow 0.22s, background 0.2s;
}
.g-btn:hover { transform: translateY(-2px); }
.g-btn-primary {
  background: linear-gradient(135deg, #ff551a, #ff7a18);
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 85, 26, 0.30);
}
.g-btn-primary:hover { box-shadow: 0 16px 32px rgba(255, 85, 26, 0.4); }
.g-btn-cyan {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.30);
}
.g-btn-cyan:hover { box-shadow: 0 16px 32px rgba(99, 102, 241, 0.38); }
.g-btn-glass {
  background: rgba(255, 255, 255, 0.82);
  color: var(--g-ink);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.g-btn-glass:hover { background: #fff; border-color: var(--g-coral); color: var(--g-coral); }
.g-btn-dark {
  background: var(--g-ink); color: #fff;
  box-shadow: 0 10px 24px rgba(11, 18, 32, 0.2);
}
.g-btn-dark:hover { background: var(--g-coral); }

/* Translucent Spatial HUD Panels (compact, airy, glass over 3D world) */
.w-hud-panel {
  width: min(460px, 100%);
  padding: 26px 26px 24px;
  border-radius: 26px;
  background: var(--g-glass);
  border: 1px solid var(--g-glass-border);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow: var(--g-shadow);
  pointer-events: auto;
}
.w-hud-panel h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.w-hud-panel p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--g-muted);
}

/* Station 1: Interactive 3D Game Cartridge Inspector HUD */
.w-inspector { width: min(470px, 100%); }
.w-insp-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.w-insp-code {
  font-family: var(--g-mono); font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; color: var(--g-cyan);
}
.g-stage-pill {
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--g-coral);
}
.g-stage-pill.stage-released { background: var(--g-mint); }
.g-stage-pill.stage-demo { background: var(--g-cyan); }
.g-stage-pill.stage-concept { background: var(--g-violet); }

.w-insp-specs {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px;
}
.w-insp-specs span {
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--g-mono); font-size: 11.5px; font-weight: 700; color: var(--g-ink);
}

.w-insp-switcher {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--g-line);
}
.g-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.g-filter-btn {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11.5px; font-weight: 700; color: var(--g-muted); cursor: pointer;
  transition: all 0.18s;
}
.g-filter-btn:hover { color: var(--g-ink); background: #fff; }
.g-filter-btn.is-active { background: var(--g-ink); color: #fff; border-color: var(--g-ink); }
.g-filter-count {
  margin: 0 0 10px; font-family: var(--g-mono); font-size: 11px; color: var(--g-soft);
}
.w-game-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.w-game-pill {
  padding: 7px 12px; border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 12.5px; font-weight: 750; color: var(--g-ink);
  cursor: pointer; transition: all 0.18s;
}
.w-game-pill[hidden] { display: none; }
.w-game-pill:hover { border-color: var(--g-cyan); }
.w-game-pill.is-active {
  background: linear-gradient(135deg, rgba(255, 85, 26, 0.12), rgba(14, 165, 233, 0.12));
  border-color: var(--g-coral);
  color: var(--g-coral);
}
.w-insp-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.w-arrow-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.12); background: rgba(255, 255, 255, 0.88);
  cursor: pointer; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.w-arrow-btn:hover { background: var(--g-ink); color: #fff; border-color: var(--g-ink); }

/* Station 3: Craft Spatial Specs List */
.w-craft-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.w-craft-list li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.94);
}
.w-craft-list strong {
  display: block; font-size: 14px; font-weight: 800; color: var(--g-ink); margin-bottom: 2px;
}
.w-craft-list span { font-size: 12.5px; color: var(--g-muted); line-height: 1.55; }

/* Station 4: Twin Portal Floating Cards */
.w-portal-card {
  width: min(440px, 100%);
  padding: 26px;
  border-radius: 26px;
  background: var(--g-glass-strong);
  border: 1px solid var(--g-glass-border);
  backdrop-filter: blur(22px);
  box-shadow: var(--g-shadow);
  pointer-events: auto;
}
.w-portal-card small {
  display: block; font-family: var(--g-mono); font-size: 10.5px;
  letter-spacing: 0.12em; font-weight: 800; color: var(--g-cyan); margin-bottom: 8px;
}
.w-portal-card h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.025em; }
.w-portal-card p { margin: 10px 0 18px; font-size: 14px; color: var(--g-muted); line-height: 1.68; }

/* Compact Translucent Footer Floating Over Sky */
.g-footer {
  position: relative;
  z-index: 10;
  padding: 28px 24px 72px;
  pointer-events: none;
}
.g-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--g-glass);
  border: 1px solid var(--g-glass-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
  font-size: 13px;
  color: var(--g-muted);
}
.g-footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.g-footer-links a:hover { color: var(--g-coral); }

/* ========== 5. FREE-FLY 3D PILOT COCKPIT HUD ========== */
.w-pilot-hud {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
body.is-pilot-mode .w-pilot-hud { opacity: 1; visibility: visible; }

.w-pilot-top {
  position: absolute;
  top: 20px; left: 24px; right: 24px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.w-pilot-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.w-pstat {
  min-width: 78px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  text-align: center;
}
.w-pstat small { display: block; font-family: var(--g-mono); font-size: 10px; font-weight: 800; color: var(--g-soft); letter-spacing: 0.08em; }
.w-pstat b { display: block; font-family: var(--g-mono); font-size: 20px; font-weight: 900; color: var(--g-ink); line-height: 1.15; }
.w-pstat.accent b { color: var(--g-coral); }

.w-pilot-sfx {
  pointer-events: auto;
  padding: 10px 15px; border-radius: 999px;
  border: 1px solid #fff; cursor: pointer;
  background: rgba(255, 255, 255, 0.86); color: var(--g-ink);
  backdrop-filter: blur(14px);
  font-size: 12.5px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.w-pilot-sfx:hover { background: #fff; color: var(--g-cyan); }
.w-pilot-exit {
  pointer-events: auto;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--g-ink); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s, background 0.2s;
}
.w-pilot-exit:hover { transform: translateY(-1px); background: var(--g-coral); }

.w-pilot-reticle {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(14, 165, 233, 0.55);
  border-radius: 50%;
}
.w-pilot-reticle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--g-coral); transform: translate(-50%, -50%);
}

.w-pilot-toast {
  position: absolute;
  left: 50%; top: 96px;
  transform: translate(-50%, -10px);
  padding: 9px 18px; border-radius: 999px;
  background: rgba(11, 18, 32, 0.86); color: #fff;
  font-size: 13px; font-weight: 800;
  opacity: 0; transition: all 0.25s ease;
  white-space: nowrap;
}
.w-pilot-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.w-pilot-bottom {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.w-boost-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #fff;
  backdrop-filter: blur(14px);
  font-family: var(--g-mono); font-size: 11px; font-weight: 800; color: var(--g-ink);
}
.w-boost-track { width: 130px; height: 7px; border-radius: 99px; background: rgba(15, 23, 42, 0.1); overflow: hidden; }
.w-boost-fill {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--g-cyan), var(--g-coral));
  transform-origin: left center;
}
.w-pilot-controls {
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #fff;
  backdrop-filter: blur(14px);
  font-size: 12px; font-weight: 700; color: var(--g-muted);
  white-space: nowrap;
}

/* ========== 6. DETAIL PAGE (360° 3D COLLECTOR PEDESTAL + ARCHIVE) ========== */
body[data-world-mode="detail"] {
  background: linear-gradient(180deg, #dcebff 0%, #f5f8ff 36%, #ffffff 100%);
}
.g-detail-wrap { max-width: 1180px; margin: 0 auto; padding: 104px 24px 48px; }
.g-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--g-mono); font-size: 12px; color: var(--g-soft); margin-bottom: 16px;
}
.g-crumbs a:hover { color: var(--g-coral); }
.g-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}
.g-detail-stage {
  position: relative;
  height: 440px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #edf4ff 62%, #ffeef0 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--g-shadow);
  overflow: hidden;
}
#detail3DCanvas { width: 100%; height: 100%; display: block; cursor: grab; }
#detail3DCanvas:active { cursor: grabbing; }
.g-detail-stage-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-family: var(--g-mono); font-size: 11px; font-weight: 700; color: var(--g-muted);
  pointer-events: none; white-space: nowrap;
}
.g-detail-copy h1 {
  margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1; font-weight: 900; letter-spacing: -0.03em;
}
.g-detail-copy p { margin: 14px 0 0; font-size: 15.5px; color: var(--g-muted); line-height: 1.74; }
.g-detail-facts {
  margin: 22px 0 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.g-detail-facts div {
  padding: 13px 15px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid var(--g-line);
}
.g-detail-facts dt { font-family: var(--g-mono); font-size: 10.5px; color: var(--g-soft); font-weight: 800; }
.g-detail-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 800; color: var(--g-ink); }

.g-detail-dossier {
  margin-top: 32px;
  padding: 30px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #fff;
  box-shadow: var(--g-shadow);
}
.g-detail-dossier h2 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.g-detail-dossier h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 800; }
.g-detail-dossier p { margin: 0; font-size: 15px; color: var(--g-muted); line-height: 1.8; }
.g-detail-dossier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-detail-dossier li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--g-ink); }
.g-detail-dossier li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g-coral), var(--g-cyan));
}
.g-related-grid {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.g-rel-card {
  padding: 20px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s, border-color 0.22s;
}
.g-rel-card:hover { transform: translateY(-4px); border-color: var(--g-coral); }
.g-rel-card h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 850; }
.g-rel-card p { margin: 0; font-size: 13.5px; color: var(--g-muted); }

/* ========== 7. CONTACT MODAL ========== */
.g-modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(12px);
}
.g-modal[hidden] { display: none; }
.g-modal-box {
  position: relative; width: min(420px, 100%); padding: 28px;
  border-radius: 26px; background: #fff;
  box-shadow: 0 28px 70px rgba(11, 18, 32, 0.24);
  text-align: center;
}
.g-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--g-line); background: #fff;
  cursor: pointer; font-size: 18px;
}
.g-modal-close:hover { background: var(--g-coral); color: #fff; border-color: var(--g-coral); }
.g-modal-box h2 { margin: 8px 0; font-size: 21px; font-weight: 900; }
.g-modal-box p { margin: 0; font-size: 13.5px; color: var(--g-muted); }
.g-modal-qr {
  width: 196px; height: 196px; margin: 18px auto 14px;
  border-radius: 18px; border: 1px solid var(--g-line); object-fit: contain; padding: 8px;
}
.g-wechat-row {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 14px; border-radius: 999px;
  background: #f4f7fb; border: 1px solid var(--g-line);
}
.g-wechat-row strong { font-family: var(--g-mono); font-size: 13px; }
.g-copy-btn {
  padding: 6px 13px; border-radius: 999px; border: 0;
  background: var(--g-coral); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer;
}
.g-copy-msg { min-height: 20px; margin-top: 8px !important; font-size: 12px !important; color: var(--g-mint) !important; font-weight: 700; }

/* ========== 8. RESPONSIVE (TABLET & MOBILE 390px / 320px) ========== */
@media (max-width: 1024px) {
  .g-links { display: none; }
  .g-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 76px; left: 16px; right: 16px;
    padding: 14px; border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #fff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
  }
  .g-menu-btn { display: inline-flex; }
  .w-rail { right: 10px; }
  .w-wp-label { display: none; }
  .g-detail-hero-grid { grid-template-columns: 1fr; }
  .g-related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .g-header { padding: 10px 12px 0; }
  .g-pilot-trigger span.label-long { display: none; }
  .g-nav-cta { display: none; }
  .w-rail { display: none; }
  .w-chapter {
    padding: 76px 16px 76px;
    align-items: flex-end;
    justify-content: center !important;
  }
  .w-chapter.align-split { flex-direction: column; align-items: stretch; justify-content: flex-end !important; }
  .w-hero-panel {
    width: 100%;
    padding: 20px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
  }
  .w-hero-panel h1 { font-size: 30px; }
  .w-hero-sub { font-size: 13.5px; margin-top: 10px; }
  .w-hud-panel, .w-portal-card { padding: 20px 18px; border-radius: 22px; }
  .w-hud-bar { left: 12px; bottom: 12px; padding: 6px 12px; font-size: 10.5px; }
  .w-hud-bar .sep, .w-hud-bar .hint { display: none; }
  .w-pilot-controls { font-size: 11px; white-space: normal; text-align: center; max-width: 92vw; }
  .g-detail-stage { height: 340px; }
  .g-detail-facts { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .g-brand-txt small { display: none; }
  .g-pilot-trigger { padding: 7px 11px; font-size: 11.5px; }
  .g-btn { padding: 10px 15px; font-size: 13px; }
}

/* ========== 9. SUNLIT RAINBOW LOADING OVERLAY & DETAIL STAGE LOADER ========== */
.w-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(64% 52% at 70% 16%, rgba(255, 251, 242, 0.94) 0%, rgba(255, 244, 229, 0.38) 46%, transparent 76%),
    radial-gradient(72% 48% at 24% 84%, rgba(255, 236, 224, 0.56) 0%, transparent 72%),
    linear-gradient(180deg, #b7dbff 0%, #d4ebff 30%, #edf6ff 56%, #f8f5f0 82%, #f4ebe0 100%);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.w-loader[hidden],
.g-stage-loader[hidden] {
  display: none !important;
}
.w-loader.is-ready,
.g-stage-loader.is-ready {
  pointer-events: none !important;
}
.w-loader.is-leaving {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(1.018);
  pointer-events: none !important;
}

.w-loader-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.w-loader-rainbow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(860px, 146vw);
  height: min(860px, 146vw);
  transform: translate(-50%, -44%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 53.2%,
    rgba(139, 92, 246, 0.17) 55.6%,
    rgba(59, 130, 246, 0.21) 57.5%,
    rgba(14, 165, 233, 0.25) 59.4%,
    rgba(16, 185, 129, 0.21) 61.3%,
    rgba(250, 204, 21, 0.25) 63.2%,
    rgba(255, 122, 69, 0.26) 65.0%,
    rgba(244, 63, 94, 0.20) 66.7%,
    transparent 69.2%,
    transparent 71.4%,
    rgba(244, 63, 94, 0.055) 72.8%,
    rgba(14, 165, 233, 0.068) 74.4%,
    rgba(139, 92, 246, 0.05) 75.8%,
    transparent 77.6%
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.92) 37%, rgba(0, 0, 0, 0.26) 54%, transparent 66%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.92) 37%, rgba(0, 0, 0, 0.26) 54%, transparent 66%);
}
.w-loader-clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 24% at 20% 88%, rgba(255, 255, 255, 0.82) 0%, transparent 74%),
    radial-gradient(52% 26% at 80% 90%, rgba(255, 252, 247, 0.85) 0%, transparent 76%),
    radial-gradient(38% 18% at 50% 96%, rgba(255, 248, 240, 0.78) 0%, transparent 78%);
}
.w-loader-bokeh,
.g-stage-loader-bokeh {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.52), rgba(186, 230, 253, 0.14) 58%, rgba(255, 182, 193, 0.08) 78%, transparent 100%);
  animation: wLoaderFloat 6.4s ease-in-out infinite;
  will-change: transform, opacity;
}
.w-loader-bokeh.b1 { width: 78px; height: 78px; left: calc(50% - 260px); top: calc(50% - 210px); opacity: 0.78; }
.w-loader-bokeh.b2 { width: 54px; height: 54px; left: calc(50% + 205px); top: calc(50% - 228px); opacity: 0.84; animation-delay: -2.1s; }
.w-loader-bokeh.b3 { width: 40px; height: 40px; left: calc(50% + 248px); top: calc(50% - 92px); opacity: 0.66; animation-delay: -3.8s; }

.w-loader-star,
.g-stage-loader-star {
  position: absolute;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 210, 102, 0.9), 0 0 20px rgba(14, 165, 233, 0.55);
  animation: wLoaderTwinkle 3.2s ease-in-out infinite;
  will-change: transform, opacity;
}
.w-loader-star.s1 { left: calc(50% - 148px); top: calc(50% - 226px); font-size: 15px; color: #fffbeb; }
.w-loader-star.s2 { left: calc(50% + 136px); top: calc(50% - 234px); font-size: 13px; animation-delay: -1.1s; }
.w-loader-star.s3 { left: calc(50% - 232px); top: calc(50% - 108px); font-size: 11px; animation-delay: -2.0s; }
.w-loader-star.s4 { left: calc(50% + 224px); top: calc(50% - 142px); font-size: 16px; color: #fff7ed; animation-delay: -0.6s; }

.w-loader-card {
  position: relative;
  z-index: 2;
  width: min(416px, calc(100vw - 32px));
  padding: 34px 32px 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.74) 100%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  box-shadow: 0 24px 64px rgba(14, 65, 118, 0.10), 0 4px 14px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
  text-align: center;
}
.w-loader-card::before,
.g-stage-loader-card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 85, 26, 0.45) 18%, rgba(245, 158, 11, 0.45) 36%, rgba(16, 185, 129, 0.45) 54%, rgba(14, 165, 233, 0.52) 74%, rgba(124, 58, 237, 0.42) 88%, transparent 100%);
}

.w-loader-emblem {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
}
.w-loader-orbit {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(14, 165, 233, 0.20);
  animation: wLoaderOrbit 9s linear infinite;
  will-change: transform;
}
.w-loader-orbit::after {
  content: "";
  position: absolute;
  top: -3.5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff551a, #fbbf24);
  box-shadow: 0 0 10px rgba(255, 85, 26, 0.55);
}
.w-loader-halo,
.g-stage-loader-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff551a, #f59e0b, #10b981, #0ea5e9, #6366f1, #a855f7, #f43f5e, #ff551a);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.22), 0 4px 14px rgba(255, 85, 26, 0.16);
  animation: wLoaderSpin 4.6s linear infinite;
  will-change: transform;
}
.w-loader-pearl,
.g-stage-loader-pearl {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  padding: 5px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.06);
}
.w-loader-pearl img,
.g-stage-loader-pearl img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.w-loader-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--g-ink);
}
.w-loader-kicker,
.g-stage-loader-kicker {
  margin-top: 5px;
  font-family: var(--g-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--g-cyan);
  text-transform: uppercase;
}

.w-loader-progress-wrap {
  margin-top: 22px;
}
.w-loader-track,
.g-stage-loader-track {
  position: relative;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.075);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.w-loader-fill,
.g-stage-loader-fill {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0 8px 8px 0 / 0 4px 4px 0;
  background: linear-gradient(90deg, #ff551a 0%, #f59e0b 20%, #10b981 42%, #0ea5e9 66%, #6366f1 84%, #ec4899 100%);
  transform-origin: left center;
  transform: scaleX(0.04);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  overflow: hidden;
}
.w-loader-fill::after,
.g-stage-loader-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.68) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: wLoaderShimmer 1.75s ease-in-out infinite;
  will-change: transform;
}
.w-loader-meta,
.g-stage-loader-meta {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.w-loader-phase,
.g-stage-loader-phase {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-loader-dot {
  flex-shrink: 0;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--g-mint);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.20);
  animation: wLoaderPulse 1.8s ease-in-out infinite;
  will-change: transform, opacity;
}
.w-loader-pct,
.g-stage-loader-pct {
  flex-shrink: 0;
  font-family: var(--g-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--g-ink);
  font-variant-numeric: tabular-nums;
}

/* Detail Page Local 3D Stage Loader (.g-detail-stage only) */
.g-stage-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(68% 56% at 66% 18%, rgba(255, 251, 244, 0.95) 0%, transparent 72%),
    linear-gradient(180deg, #bedfff 0%, #dbf0ff 38%, #f3f8ff 72%, #fff3ec 100%);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.36s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.g-stage-loader.is-leaving {
  opacity: 0;
  transform: scale(1.022);
  pointer-events: none !important;
}
.g-stage-loader-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.g-stage-loader-rainbow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -42%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 52.5%,
    rgba(139, 92, 246, 0.17) 55.2%,
    rgba(59, 130, 246, 0.21) 57.4%,
    rgba(14, 165, 233, 0.25) 59.5%,
    rgba(16, 185, 129, 0.21) 61.6%,
    rgba(250, 204, 21, 0.25) 63.7%,
    rgba(255, 122, 69, 0.25) 65.7%,
    rgba(244, 63, 94, 0.19) 67.4%,
    transparent 70.2%
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 38%, rgba(0, 0, 0, 0.2) 56%, transparent 68%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.9) 38%, rgba(0, 0, 0, 0.2) 56%, transparent 68%);
}
.g-stage-loader-bokeh.b1 { width: 48px; height: 48px; left: calc(50% - 165px); top: calc(50% - 148px); opacity: 0.78; }
.g-stage-loader-bokeh.b2 { width: 36px; height: 36px; left: calc(50% + 132px); top: calc(50% - 156px); opacity: 0.82; animation-delay: -2.4s; }
.g-stage-loader-star.s1 { left: calc(50% - 102px); top: calc(50% - 154px); font-size: 13px; color: #fffbeb; }
.g-stage-loader-star.s2 { left: calc(50% + 104px); top: calc(50% - 146px); font-size: 12px; animation-delay: -1.3s; }

.g-stage-loader-card {
  position: relative;
  z-index: 2;
  width: min(326px, calc(100% - 24px));
  padding: 24px 22px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.76) 100%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 44px rgba(14, 65, 118, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
  text-align: center;
}
.g-stage-loader-emblem {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
}
.g-stage-loader-pearl {
  inset: 2.5px;
  padding: 4px;
}
.g-stage-loader-title {
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--g-ink);
  line-height: 1.22;
}
.g-stage-loader-kicker {
  margin-top: 3px;
  margin-bottom: 16px;
  font-size: 10px;
}
.g-stage-loader-track {
  height: 6px;
}
.g-stage-loader-phase {
  font-size: 12px;
}
.g-stage-loader-pct {
  font-size: 11.5px;
}

@keyframes wLoaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes wLoaderOrbit {
  to { transform: rotate(-360deg); }
}
@keyframes wLoaderShimmer {
  0% { transform: translateX(-110%); }
  65%, 100% { transform: translateX(220%); }
}
@keyframes wLoaderFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -8px, 0) scale(1.04); }
}
@keyframes wLoaderTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.14); }
}
@keyframes wLoaderPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (max-width: 768px) {
  .w-loader { padding: 16px; }
  .w-loader-rainbow { width: 152vw; height: 152vw; transform: translate(-50%, -48%); }
  .w-loader-bokeh.b1 { width: 52px; height: 52px; left: 10%; top: 20%; }
  .w-loader-bokeh.b2 { width: 40px; height: 40px; left: auto; right: 10%; top: 18%; }
  .w-loader-bokeh.b3 { display: none; }
  .w-loader-star.s1 { left: 18%; top: 24%; }
  .w-loader-star.s2 { left: auto; right: 18%; top: 22%; }
  .w-loader-star.s3, .w-loader-star.s4 { display: none; }
  .w-loader-card { padding: 28px 22px 24px; border-radius: 28px; }
  .w-loader-emblem { width: 78px; height: 78px; margin-bottom: 15px; }
  .w-loader-brand { font-size: 20px; }
  .w-loader-kicker { font-size: 10px; letter-spacing: 0.12em; }
  .w-loader-phase { font-size: 12.5px; }
  .g-stage-loader-rainbow { width: 400px; height: 400px; transform: translate(-50%, -44%); }
  .g-stage-loader-card { padding: 20px 18px 16px; border-radius: 22px; }
  .g-stage-loader-emblem { width: 52px; height: 52px; margin-bottom: 10px; }
}

@media (max-width: 360px) {
  .w-loader-card { padding: 24px 16px 20px; border-radius: 24px; }
  .w-loader-emblem { width: 70px; height: 70px; }
  .w-loader-brand { font-size: 18.5px; }
  .w-loader-kicker { font-size: 9.5px; letter-spacing: 0.09em; }
  .w-loader-phase { font-size: 11.5px; }
  .g-stage-loader-card { padding: 16px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-loader,
  .g-stage-loader {
    transition: opacity 0.22s ease;
    transform: none !important;
  }
  .w-loader-orbit,
  .w-loader-halo,
  .g-stage-loader-halo,
  .w-loader-fill::after,
  .g-stage-loader-fill::after,
  .w-loader-bokeh,
  .g-stage-loader-bokeh,
  .w-loader-star,
  .g-stage-loader-star,
  .w-loader-dot {
    animation: none !important;
  }
}
