@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000000;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Nunito", "Varela Round", "Segoe UI Rounded", system-ui, sans-serif;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 透视网格背景层：抬到 unity-canvas(z1) 之上、splash 层(z10) 之下，
   否则会被不透明的 #unity-canvas(#231F20) 完全遮挡。
   收尾时必须和 .ui-overlay 同步淡出（两边 transition 时长要一致），
   否则先没了 splash、只剩网格，会闪一下再切到 Unity。 */
#c {
  z-index: 5;
  transition: opacity 0.5s ease;
}

/* ── TT 假横屏（仅 index.tt.html 用得到，#tt-stage 在 Web 版 index.html 里不存在，
   这几条规则天然不生效）──
   #tt-stage 未加 .tt-fake-landscape 时不需要任何特殊样式：它的子元素本来就靠
   position:fixed + 100vw/100vh（或 100%）相对真实视口铺满，套一层 wrapper div
   不影响这套逻辑（fixed 定位的元素只在祖先存在 transform 时才会改用该祖先的
   盒子当基准，未加 class 时 #tt-stage 没有 transform，等于没插这层）。
   加上 .tt-fake-landscape 后：#tt-stage 本身按视口的(高,宽)互换定好尺寸、绕
   视口中心转 90°，视觉上正好撑满竖屏视口；里面的 canvas/容器统一强制改成
   absolute + 100%，相对 #tt-stage 的（旋转前）盒子铺满——不依赖"fixed 元素
   遇到 transform 祖先会换基准"这条较冷门的 CSS 规则本身是否在所有 WebView
   内核上都实现一致，直接用更常见的 absolute+已定位祖先 组合，好确认好调试。
   触摸/鼠标坐标的换算见 js/tt-landscape.js，与这里的旋转是同一套变换，改这里
   的话那边的换算公式也要一起改。 */
#tt-stage.tt-fake-landscape {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100vh;
  height: 100vw;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(90deg);
}
#tt-stage.tt-fake-landscape #unity-container,
#tt-stage.tt-fake-landscape #c,
#tt-stage.tt-fake-landscape #unity-canvas {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* ── 居中 UI 层 ──
   上下 45% 透明是刻意的：透出来的是 #c(z5) 那层透视网格背板，
   perspective-grid.js 每帧会先用不透明 #000 铺满全屏再画网格线，
   所以透明带后面是"黑底 + 网格"，不会露出 unity-canvas(z1)。
   不要改成实心 #000 —— 那样会把网格线整个盖死。
   （曾出现过透明带露出 Unity 画面，根因是 index.html 里 #c 隐藏得太早，
   已改为等 splash 淡出结束后再隐藏，不是背景色的问题。） */
.ui-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 45%, #000 55%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ui-overlay-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Logo ── */
.logo {
  font-size: 50px;
  font-weight: 700;
  color: #626268;
  letter-spacing: 3px;
  margin-bottom: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.logo video {
  height: 48px;
  opacity: 0.2;
}

.img-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.img-bg-top img {
  width: 100%;
}

.img-bg-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.img-bg-bottom img {
  width: 100%;
}

/* ── 进度条 ── */
.progress-wrapper {
  width: 480px;
  max-width: 100%;
  margin-bottom: 20px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #3D3D42;
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  border-radius: 50px;
  position: relative;
  width: 0%;
  background: linear-gradient(90deg, rgba(255, 134, 82, 0.2) 0%, #ff8652 81%, #ffffff 100%);
  filter: blur(1px);
  transition: width 0.08s linear;
}
.progress-fill::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: 100%;
  pointer-events: none;
  box-shadow: 0px 0px 30px rgb(255, 176, 138);
}
.progress-fill::before {
  content: "";
  position: absolute;
  right: 30%;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: 100%;
  pointer-events: none;
  box-shadow: 0px 0px 30px rgba(255, 176, 138, 0.6);
}

/* ── 状态文字 ── */
.loading-text {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #808088;
  letter-spacing: 0.42em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ── Bottom Hint ── */
.splash-hint-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: 160px;
  text-align: center;
}

.splash-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: hintPulse 3s ease-in-out infinite;
}

.hint-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hint-text {
  font-family: 'Geologica', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 6.4px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/*# sourceMappingURL=main.css.map */
