/*
 * FireflyNight 页面壳样式
 * 覆盖 Unity 默认模板：深色月夜底 + 载入进度 + 操作提示卡 + 移动端提示
 */

:root {
  --ink: #e8f0f7;
  --ink-dim: #9aa8b8;
  --moon: #cfe4ff;
  --cyan: #5fd3e8;
  --bg: #05070d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#unity-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#unity-canvas {
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: block;
  outline: none;
}

/* ---------- 载入层 ---------- */

#fx-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background:
    radial-gradient(circle at 50% 38%, #0d1a2e 0%, #05070d 62%),
    var(--bg);
  z-index: 20;
  transition: opacity .7s ease;
}

#fx-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.fx-title {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .38em;
  margin: 0 0 -8px .38em;
  color: var(--moon);
  text-shadow: 0 0 26px rgba(207, 228, 255, .45);
}

.fx-sub {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--ink-dim);
  margin: 0;
  text-transform: uppercase;
}

.fx-bar {
  width: min(360px, 62vw);
  height: 2px;
  background: rgba(207, 228, 255, .14);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.fx-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--moon));
  box-shadow: 0 0 12px var(--cyan);
  transition: width .25s ease;
}

.fx-status {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: .1em;
  min-height: 1.2em;
}

/* ---------- 操作提示卡 ---------- */

#fx-help {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 15;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(6, 11, 20, .72);
  border: 1px solid rgba(207, 228, 255, .13);
  backdrop-filter: blur(9px);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-dim);
  max-width: 280px;
  transition: opacity .4s ease;
}

#fx-help strong {
  color: var(--ink);
  font-weight: 500;
}

#fx-help .k {
  display: inline-block;
  min-width: 17px;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 4px;
  background: rgba(207, 228, 255, .11);
  border: 1px solid rgba(207, 228, 255, .18);
  color: var(--moon);
  font-size: 11px;
  text-align: center;
}

#fx-help.hidden { opacity: 0; pointer-events: none; }

/* ---------- 移动端提示 ---------- */

#fx-mobile {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, #0d1a2e 0%, #05070d 65%);
}

#fx-mobile.show { display: flex; }

#fx-mobile h2 {
  font-size: 19px;
  font-weight: 400;
  color: var(--moon);
  margin: 0;
  letter-spacing: .06em;
}

#fx-mobile p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-dim);
  max-width: 340px;
}

@media (max-width: 760px) {
  #fx-help { display: none; }
}
