/* ==========================================================================
   PURE HERO CANVAS - MINIMALIST AESTHETICS
   ========================================================================== */

:root {
  --bg-color: #082030;
  --text-muted: rgba(220, 235, 245, 0.4);
  --text-bright: rgba(255, 255, 255, 0.85);
  --crimson-glow: #ff371a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  cursor: default;
}

/* 100vw x 100vh WebGL Canvas */
#scene-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
  touch-action: none;
}

/* Poetic Minimalist Overlay */
.ui-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
}

/* Subtle corner mark */
.header-mark {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.brand-coords {
  font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Resonance indicator at bottom right */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.resonance-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
  transition: color 0.4s ease;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 rgba(255, 55, 26, 0);
  transition: all 0.35s ease;
}

.resonance-status.pulse {
  color: rgba(255, 255, 255, 0.9);
}

.resonance-status.pulse .status-dot {
  background: var(--crimson-glow);
  box-shadow: 0 0 12px var(--crimson-glow), 0 0 24px var(--crimson-glow);
  transform: scale(1.6);
}

.interaction-hint {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  opacity: 0.8;
  animation: fadeOutHint 6s forwards 3s;
}

@keyframes fadeOutHint {
  0% { opacity: 0.8; }
  100% { opacity: 0.15; }
}

/* Media reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  .status-dot, .resonance-status {
    transition: none !important;
  }
}

/* 音乐控制只占底角，点击画面和空格也可播放 / 暂停。 */
.music-control { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.music-toggle {
  pointer-events: auto; cursor: pointer; min-height: 36px; padding: 8px 14px;
  border: 1px solid rgba(210,230,245,.22); border-radius: 20px;
  background: rgba(5,17,30,.35); color: rgba(235,244,251,.9);
  font: inherit; font-size: 12px; letter-spacing: .05em; backdrop-filter: blur(8px);
}
.music-toggle:hover { border-color: rgba(255,255,255,.55); }
.music-toggle:focus-visible { outline: 2px solid #ff7256; outline-offset: 4px; }
.music-hint { font-size: 11px; color: rgba(220,235,245,.55); letter-spacing: .04em; }
@media (max-width: 600px) {
  .footer-bar { gap: 12px; align-items: flex-end; }
  .music-control { gap: 8px; max-width: 70%; }
  .music-hint { font-size: 10px; }
  .resonance-status { font-size: 10px; gap: 6px; letter-spacing: .06em; white-space: nowrap; }
}
