/* ===== 黑色科技风 / Astral Wings ===== */
:root {
  --c-bg: #04060a;
  --c-bg-soft: #0a0f17;
  --c-line: #18324a;
  --c-accent: #b388ff;     /* 紫色主调（呼应1号女主角） */
  --c-accent-2: #62e8ff;   /* 青色辅助 */
  --c-warn: #ff5577;
  --c-text: #d6e8ff;
  --c-text-dim: #5d7892;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }

body {
  font-family: 'Rajdhani', 'Orbitron', 'SF Mono', 'Menlo', 'Source Han Sans CN', 'PingFang SC', system-ui, sans-serif;
  color: var(--c-text);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#game-root {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(ellipse at center, #0a1322 0%, #04060a 60%, #000 100%);
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  cursor: crosshair;
}

/* 通用遮罩 */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background:
    radial-gradient(ellipse at center, rgba(15,30,50,0.4) 0%, rgba(0,0,0,0.92) 65%, #000 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  z-index: 20;
}
.overlay.hidden { display: none; }

/* 品牌 logo */
.brand {
  text-align: center;
  text-shadow: 0 0 14px rgba(179,136,255,0.6), 0 0 28px rgba(98,232,255,0.25);
}
.brand-cn {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #fff;
  margin-bottom: 6px;
}
.brand-en {
  font-size: clamp(12px, 1.6vw, 20px);
  letter-spacing: 0.6em;
  color: var(--c-accent);
  font-weight: 300;
}

/* 加载条 */
.bar {
  position: relative;
  width: min(560px, 60vw);
  height: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--c-line);
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(179,136,255,0.15) inset;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #62e8ff 0%, #b388ff 60%, #ff5fb4 100%);
  box-shadow: 0 0 14px #b388ff;
  transition: width 0.15s linear;
}
.bar-edge {
  position: absolute; top: 0; right: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--c-accent) 50%, transparent 100%);
  opacity: 0.4;
}
.loading-meta {
  width: min(560px, 60vw);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-text-dim);
  margin-top: -16px;
}
.loading-percent { color: var(--c-accent); font-weight: 600; }
.loading-detail {
  font-size: 11px;
  color: var(--c-text-dim);
  letter-spacing: 0.2em;
  font-family: 'SF Mono', 'Menlo', monospace;
  text-align: center;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 开始提示 */
.start-tip {
  margin-top: 20px;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.5em;
  color: var(--c-accent-2);
  animation: blink 1.4s ease-in-out infinite;
  cursor: pointer;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* hint toast */
.hint-toast {
  position: absolute;
  left: 50%; top: 60px;
  transform: translateX(-50%);
  padding: 8px 22px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-size: 13px;
  letter-spacing: 0.3em;
  z-index: 100;
  pointer-events: none;
}
.hint-toast.hidden { display: none; }
