/* å³¶å±¿æ±‚ç”ŸåŸºç¡€èƒŒæ™¯ä¸Žå­—ä½“ */
body {
  background: radial-gradient(circle at top, rgba(8, 30, 60, 0.8), #01030a);
  font-family: 'Noto Sans SC', sans-serif;
  color: #f3f3f3;
  min-height: 100vh;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.bg-stars {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  pointer-events: none;
}

.fade-in,
.fade-out {
  opacity: 1;
}

/* Patch 5.0 â€” Mobile-first base */
body {
  background: #0b0f14;
  color: #f3f3f3;
  font-family: 'Noto Sans SC', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

#game-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button {
  outline: none;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Patch 5.2 â€” HUD å›¾æ ‡ä¸Žè¡ŒåŠ¨æŒ‰é’®è§†è§‰ */

.hud-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  opacity: 0.9;
}

.hud-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.hud-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.action-btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.action-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-top: 0.18rem;
}

.action-icon {
  font-size: 0.8rem;
  opacity: 0.85;
  padding-top: 0.15rem;
}

.action-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .action-btn {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

#modal-sheet {
  opacity: 1;
}

#modal-sheet[x-cloak],
#modal-sheet[style*="display: none"] {
  opacity: 0;
  pointer-events: none;
}

#modal-sheet > div {
  /* No animation; keep the overlay stable for performance. */
}

/* Patch 5.3 â€” Intro Screen */
#intro-screen {
  cursor: pointer;
}

#intro-screen[style*="display: none"] {
  pointer-events: none;
}

/* Patch 6.1 ¡ª Log Enhancements */
.log-line {
  margin-bottom: 4px;
  line-height: 1.45;
  font-size: 12px;
  opacity: 0.9;
}

.log-line:nth-child(odd) {
  opacity: 0.8;
}

.log-line:first-child {
  margin-top: 6px;
}
