/* 聊城 · 临清贡砖码头（雨夜）在主线里的覆盖层。
   场景本身零 UI；这一层只负责"占满屏 + 一个退出的地方"。
   背景渐变必须和场景里的雾色对得上，否则底座边缘会露出一块色差。 */

.liaocheng-overlay {
  position: fixed;
  inset: 0;
  z-index: 62;
  background:
    radial-gradient(120% 90% at 50% 34%, #16262c 0%, #0d181c 42%, #070c0e 74%, #040708 100%);
  overflow: hidden;
}

.liaocheng-stage {
  position: absolute;
  inset: 0;
}

.liaocheng-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.liaocheng-back {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2;
  min-width: 76px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(226, 206, 168, .22);
  border-radius: 20px;
  background: rgba(10, 16, 18, .46);
  color: rgba(232, 216, 186, .8);
  font: 13px/1 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s;
}

.liaocheng-back:hover,
.liaocheng-back:focus-visible {
  border-color: rgba(232, 196, 132, .62);
  color: #f5e6c8;
}

/* 进入时的一行说明，几秒后淡出，之后画面只剩模型 */
.liaocheng-hint {
  position: absolute;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  font: 12px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: rgba(226, 214, 190, .6);
  letter-spacing: .1em;
  pointer-events: none;
  animation: liaocheng-hint-fade 5s ease forwards;
}

@keyframes liaocheng-hint-fade {
  0%, 62% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .liaocheng-hint { animation: none; opacity: .7; }
}
