/* ヒカリノニワ — Meta Ray-Ban Display (600x600, additive display) */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000000; /* 加算式ディスプレイでは透明 — 現実世界が透ける */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #ffffff;
  -webkit-user-select: none;
  user-select: none;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
}

#stage {
  position: absolute;
  top: 0;
  left: 0;
}

/* ---------- タイトルスプラッシュ ---------- */

#splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 1;
  transition: opacity 900ms ease;
  pointer-events: none;
}

#splash.gone { opacity: 0; }

.splash-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 10px;
  padding-left: 10px; /* letter-spacing の右余白ぶんを相殺 */
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(140, 220, 255, 0.9),
    0 0 48px rgba(140, 220, 255, 0.5);
}

.splash-sub {
  font-size: 16px;
  letter-spacing: 4px;
  color: #e4e6eb;
  opacity: 0.85;
}

/* ---------- HUD 共通 ---------- */

.hud {
  position: absolute;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.4, 0.04, 0.5, 1);
  pointer-events: none;
}

.hud.visible { opacity: 1; }

/* ---------- シーン名 ---------- */

#hud-scene {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(16, 18, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 14px 34px;
}

.scene-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 6px;
  padding-left: 6px;
  color: #ffffff;
}

.scene-dots {
  display: flex;
  gap: 10px;
}

.scene-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b6f78;
}

.scene-dots .dot.on {
  background: #8cdcff;
  box-shadow: 0 0 8px rgba(140, 220, 255, 0.9);
}

/* ---------- にぎやかさ ---------- */

#hud-density {
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(16, 18, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 12px 26px;
}

.density-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e4e6eb;
}

.density-dots {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffd97a;
  text-shadow: 0 0 8px rgba(255, 217, 122, 0.8);
}

/* ---------- 操作ヒント ---------- */

#hint {
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(16, 18, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px 26px;
  white-space: nowrap;
}

.hint-line {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e4e6eb;
}
