html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #0a0a12;
  color: #ececec;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

#stage {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
}

#overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

#hud {
  position: fixed;
  right: 14px;
  bottom: 10px;
  font: 11px/1.45 ui-monospace, "SF Mono", "Courier New", Menlo, monospace;
  color: rgba(236, 236, 236, 0.7);
  white-space: pre;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.02em;
  z-index: 10;
  margin: 0;
  text-align: right;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── Info card ─────────────────────────────────────────────────── */
.ls-card {
  position: absolute;
  left: clamp(18px, 3.2vw, 56px);
  bottom: clamp(18px, 4vh, 56px);
  width: clamp(208px, 19vw, 268px);
  padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 26px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background: linear-gradient(160deg, rgba(20, 22, 30, 0.62), rgba(10, 11, 16, 0.5));
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.ls-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ls-place { display: flex; align-items: baseline; gap: 8px; }
.ls-place-jp { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.ls-place-en { font-size: 10px; letter-spacing: 0.25em; color: rgba(255, 255, 255, 0.45); }
.ls-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5);
}
.ls-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
}

.ls-hero { margin-top: 14px; display: flex; flex-direction: column; align-items: center; }
.ls-ico { color: rgba(255, 255, 255, 0.95); }
.ls-label-jp { margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: 0.04em; }
.ls-label-en { font-size: 10px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.45); }

.ls-temp { margin-top: 8px; display: flex; align-items: flex-start; justify-content: center; }
.ls-temp-num { font-size: 60px; font-weight: 200; line-height: 0.9; font-variant-numeric: tabular-nums; }
.ls-temp-deg { font-size: 26px; font-weight: 200; margin-top: 4px; }

.ls-meta {
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 13px; color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums;
}
.ls-sep { color: rgba(255, 255, 255, 0.25); }
.ls-dim { color: rgba(255, 255, 255, 0.45); }

.ls-hourly {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between;
}
.ls-hour { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 5px; }
.ls-hour-t { font-size: 10px; color: rgba(255, 255, 255, 0.45); font-variant-numeric: tabular-nums; }
.ls-ico-sm { color: rgba(255, 255, 255, 0.8); }
.ls-hour-temp { font-size: 12px; font-variant-numeric: tabular-nums; }

.ls-sun-rays { transform-origin: 50% 50%; animation: ls-spin 30s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ls-sun-rays { animation: none; }
}

.ls-fallback {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.7; color: rgba(236, 236, 236, 0.8); font-size: 14px; padding: 24px;
}

/* On very small / portrait viewports, scale the card down a touch. */
@media (max-aspect-ratio: 1/1) {
  .ls-card { width: clamp(180px, 56vw, 240px); }
}
