/* ===== 夜神 · 符阵 样式（暗色星辰，纯 CSS 无依赖） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #05050f;
  overflow: hidden;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #c7c7ff;
  -webkit-user-select: none; user-select: none;
}
.frame {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
#game {
  display: block;
  width: 100%; height: 100%;
  max-width: 1200px; max-height: 750px;
  background: #0a0a1f;
  box-shadow: 0 0 80px rgba(124, 108, 255, 0.15), inset 0 0 0 1px rgba(124, 108, 255, 0.2);
  cursor: crosshair;
}
.hint {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: #4a4a6a; pointer-events: none;
  letter-spacing: 0.5px;
}
@media (max-width: 640px) {
  .hint { font-size: 10px; }
}

/* 回主站的悬浮链接：不抢画面点击，只在需要时可达 */
.site-back {
  position: fixed; top: 10px; left: 12px; z-index: 5;
  font-size: 12px; letter-spacing: .5px;
  color: #8f8fd0; text-decoration: none;
  padding: 6px 12px; border: 1px solid rgba(124, 108, 255, .3);
  border-radius: 999px; background: rgba(5, 5, 15, .7);
}
.site-back:hover, .site-back:focus-visible { color: #ffcf5c; border-color: rgba(255, 207, 92, .55); outline: none; }

.noscript {
  position: fixed; inset: 0; display: grid; place-content: center;
  padding: 24px; text-align: center; font-size: 15px; line-height: 1.9;
}
.noscript a { color: #7c6cff; }

/* ===== 无障碍模式（设置面板可切换）===== */
body.reduce-motion #game { box-shadow: none; }
body.reduce-motion .hint { transition: none; }

body.high-contrast #game {
  background: #000;
  box-shadow: inset 0 0 0 2px #fff;
}
body.high-contrast .hint { color: #fff; }
