/* style.css — 无世界时钟：全屏晨昏线背景 + 居中时钟（契约 §6.3 视觉口径）
 *
 * 纯黑底 #000；全屏 canvas（position:fixed, inset:0）；hud 居中列；
 * 大号时间 clamp(56px,12vw,128px) 白色带柔和辉光、tabular-nums；
 * hud 后一层极淡径向 scrim 保可读性（纯黑灰，不改黑白灰基调）。
 */

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  overflow: hidden;                 /* 无滚动条 */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全屏地图画布 */
#map-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  z-index: 0;
}

/* hud 后可加极淡径向 scrim 保可读性（不得改变黑白灰基调） */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 44% at 50% 50%,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.20) 46%,
      rgba(0, 0, 0, 0) 72%);
}

/* 居中 HUD 列：大号时间 / 位置行 / 日月行 */
.hud {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  pointer-events: none;
  text-align: center;
}

/* 大号秒级时钟：白色 + 柔和辉光 + 等宽数字 */
.clock {
  font-size: clamp(56px, 12vw, 128px);
  font-weight: 200;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.28), 0 0 90px rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.loc-line,
.sun-line {
  font-size: 14px;
  color: #999;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  line-height: 1.5;
}

.loc-line {
  margin-top: 6px;
}

/* 极窄屏（横屏手机）微调 */
@media (max-height: 420px) {
  .hud {
    gap: 6px;
  }
}
