/* Boot splash — 冒险营地微互动（不依赖 Vue bundle） */
:root {
  --boot-cyan: #00c9b8;
  --boot-gold: #ffb800;
  --boot-pink: #ff4d9a;
  --boot-purple: #9b5de5;
  --boot-bg: #f0faf9;
  --boot-text: #1a2e2c;
  --boot-muted: rgba(26, 46, 44, 0.62);
  --boot-panel: rgba(255, 255, 255, 0.88);
  --boot-panel-border: rgba(0, 201, 184, 0.35);
  --boot-trail-bg: rgba(0, 120, 110, 0.12);
}

html.dark-mode {
  --boot-bg: #0f1419;
  --boot-text: #f0faf9;
  --boot-muted: rgba(240, 250, 249, 0.68);
  --boot-panel: rgba(22, 32, 40, 0.92);
  --boot-panel-border: rgba(0, 201, 184, 0.28);
  --boot-trail-bg: rgba(0, 201, 184, 0.14);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--boot-bg);
  color: var(--boot-text);
}

#boot-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding:
    calc(16px + env(safe-area-inset-top, 0px))
    calc(16px + env(safe-area-inset-right, 0px))
    calc(16px + env(safe-area-inset-bottom, 0px))
    calc(16px + env(safe-area-inset-left, 0px));
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 201, 184, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 184, 0, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 90%, rgba(155, 93, 229, 0.12), transparent 45%),
    var(--boot-bg);
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

#boot-splash.boot-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.boot-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.55;
  animation: boot-star-float 4.5s ease-in-out infinite;
}

.boot-star--1 { left: 12%; top: 18%; background: var(--boot-cyan); animation-delay: 0s; }
.boot-star--2 { left: 78%; top: 14%; background: var(--boot-gold); animation-delay: 0.8s; width: 6px; height: 6px; }
.boot-star--3 { left: 88%; top: 62%; background: var(--boot-pink); animation-delay: 1.4s; }
.boot-star--4 { left: 8%; top: 72%; background: var(--boot-purple); animation-delay: 2s; width: 5px; height: 5px; }
.boot-star--5 { left: 42%; top: 8%; background: var(--boot-gold); animation-delay: 2.6s; width: 5px; height: 5px; }

.boot-splash-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 340px);
  padding: 20px 18px 16px;
  text-align: center;
  background: var(--boot-panel);
  border: 2px solid var(--boot-panel-border);
  border-radius: 22px;
  box-shadow:
    0 6px 0 rgba(0, 80, 90, 0.1),
    0 16px 40px rgba(0, 60, 70, 0.12);
}

.boot-logo-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.boot-logo-btn:focus-visible {
  outline: 2px solid var(--boot-cyan);
  outline-offset: 4px;
  border-radius: 20px;
}

.boot-logo {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.boot-logo-shadow {
  display: block;
  width: 52px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.boot-logo-btn--ollie .boot-logo {
  animation: boot-ollie 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.boot-logo-btn--ollie .boot-logo-shadow {
  transform: scale(0.72);
  opacity: 0.45;
}

.boot-title {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--boot-cyan), var(--boot-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boot-highlights {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--boot-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boot-warmup {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--boot-gold);
  letter-spacing: 0.06em;
}

.boot-trail {
  position: relative;
  width: 100%;
  height: 10px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--boot-trail-bg);
  overflow: visible;
}

.boot-trail__fill {
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--boot-cyan), var(--boot-gold));
  box-shadow: 0 0 12px rgba(0, 201, 184, 0.45);
  transition: width 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.boot-trail__skater {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translate(-50%, -58%);
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: left 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.boot-status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--boot-text);
  min-height: 1.4em;
}

.boot-hint {
  margin: 0;
  font-size: 12px;
  color: var(--boot-muted);
}

.boot-actions {
  margin-top: 4px;
}

.boot-retry-btn {
  min-height: 48px;
  min-width: 132px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe082 0%, var(--boot-gold) 100%);
  color: #2a1c00;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(180, 120, 0, 0.35);
}

.boot-retry-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(180, 120, 0, 0.35);
}

.boot-particle {
  position: fixed;
  z-index: 100000;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--boot-gold);
  box-shadow: 0 0 10px var(--boot-gold);
  pointer-events: none;
  animation: boot-particle-pop 0.55s ease-out forwards;
}

@keyframes boot-star-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.45; }
  50% { transform: translateY(-10px) scale(1.15); opacity: 0.85; }
}

@keyframes boot-ollie {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-22px) rotate(-8deg); }
  70% { transform: translateY(-4px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes boot-particle-pop {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--boot-px, 0), -36px) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-star,
  .boot-logo-btn--ollie .boot-logo,
  .boot-trail__fill,
  .boot-trail__skater,
  .boot-particle {
    animation: none !important;
    transition: none !important;
  }
}

#boot-splash.boot-splash--lite .boot-trail,
#boot-splash.boot-splash--lite .boot-hint,
#boot-splash.boot-splash--lite .boot-warmup {
  display: none;
}

#boot-splash.boot-splash--lite .boot-title {
  font-size: 15px;
  letter-spacing: 0.02em;
}

#boot-splash.boot-splash--lite .boot-status {
  font-size: 13px;
  color: var(--boot-muted);
}

#boot-splash.boot-splash--lite .boot-splash-inner {
  gap: 8px;
  padding-bottom: 14px;
}

#boot-splash.boot-splash--hide.boot-splash--lite {
  transition-duration: 0.18s;
}
