/* 空壳 · HOLLOW VESSEL */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #040308;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #e8e6f0;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* 背景微光，衬托画面 */
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 30, 45, 0.20), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(40, 20, 60, 0.25), transparent 70%),
    #040308;
}

#stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  box-shadow:
    0 0 0 1px rgba(255, 140, 100, 0.12),
    0 30px 120px rgba(0, 0, 0, 0.9),
    0 0 140px rgba(180, 40, 50, 0.10);
  border-radius: 4px;
  overflow: hidden;
  cursor: crosshair;
}

@supports (height: 100dvh) {
  #stage {
    width: min(100vw, calc(100dvh * 16 / 9));
    height: min(100dvh, calc(100vw * 9 / 16));
  }
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  touch-action: none;
  background: #07070c;
}

#hint {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(200, 190, 215, 0.28);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

@media (max-height: 560px), (max-width: 720px) {
  #hint { display: none; }
}

/* 全屏时隐藏提示 */
#stage:fullscreen { border-radius: 0; }

/* ---------- 移动端横屏提示 ---------- */
#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(120, 40, 55, 0.22), transparent 65%),
    #050409;
}
#rotate-hint .rotate-icon {
  font-size: 52px;
  line-height: 1;
  color: #ffb066;
  animation: rotate-hint-spin 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 120, 60, 0.45));
}
#rotate-hint .rotate-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffe3c0;
}
#rotate-hint .rotate-sub {
  font-size: 13px;
  color: rgba(210, 200, 220, 0.5);
}
@keyframes rotate-hint-spin {
  0%, 20% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}
body.portrait-hint #stage { display: none; }
body.portrait-hint #hint { display: none; }
body.portrait-hint #rotate-hint { display: flex; }

@media (pointer: coarse) {
  #hint { display: none; }
  #stage { border-radius: 0; box-shadow: none; }
}
