body { background: #07100c; }
::selection { background: #c8df8d; color: #07100c; }
:focus-visible { outline: 2px solid #c8df8d; outline-offset: 5px; }
body[data-biome-state] .eyebrow { display: none; }
body[data-biome-state] button { min-height: 44px; font-size: 13px; }
body[data-biome-state] .controls a { display: flex; align-items: center; min-height: 44px; }
body[data-biome-state] .telemetry { box-shadow: none; }
body[data-biome-state] #next-switch { color: #b8c8b4; }
body[data-biome-state] #loading {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: 32px; background: #07100c; color: #f2f1de; letter-spacing: normal;
  opacity: 1; pointer-events: auto; transition: opacity 320ms ease-out, visibility 320ms;
}
body[data-biome-state="ready"] #loading { opacity: 0; pointer-events: none; visibility: hidden; }
.biome-intro { width: min(440px, 100%); }
.biome-intro h2 { margin: 0; font: 400 clamp(56px, 10vw, 88px)/1.1 Georgia, serif; letter-spacing: -.035em; }
.biome-description { margin: 16px 0 44px; font-size: 19px; line-height: 1.5; color: #d4ddc8; }
.biome-track { height: 2px; overflow: hidden; background: #29392b; }
.biome-track span { display: block; height: 100%; width: 30%; background: #c8df8d; animation: biome-progress 2s ease-in-out infinite alternate; }
#biome-status { margin: 16px 0 8px; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
#biome-note { margin: 0; max-width: 38ch; color: #b8c8b4; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.biome-hint { margin: 56px 0 0; color: #b8c8b4; font-size: 13px; line-height: 1.7; }
#biome-retry { margin-top: 24px; padding: 10px 24px; background: #c8df8d; color: #07100c; border: 0; border-radius: 6px; }
#biome-retry:hover { background: #e0edbc; }
#biome-retry[hidden] { display: none; }
body[data-biome-state="error"] .biome-track span { animation: none; width: 100%; background: #e2b498; }
body[data-biome-state="loading"] :is(.brand, .telemetry, .controls, .map-panel),
body[data-biome-state="error"] :is(.brand, .telemetry, .controls, .map-panel) { visibility: hidden; }
@keyframes biome-progress { to { transform: translateX(233%); } }
@media (max-width: 760px) {
  body[data-biome-state] .controls { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; right: 16px; gap: 6px; }
  body[data-biome-state] .controls a { grid-column: 1 / -1; display: flex; align-items: center; min-height: 44px; font-size: 13px; padding: 8px 0 !important; }
  body[data-biome-state] .controls button { flex: 1; padding: 8px; font-size: 12px; }
  body[data-biome-state] .controls button:nth-child(2) { display: block; }
  body[data-biome-state] kbd { display: none; }
  body[data-biome-state] .telemetry { bottom: calc(126px + env(safe-area-inset-bottom)); left: 16px; width: calc(100vw - 32px); }
  body[data-biome-state] .map-panel { top: 84px; right: 16px; }
  .biome-description { font-size: 17px; margin-bottom: 32px; }
  .biome-hint { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-biome-state] #loading { transition: none; }
  .biome-track span { animation: none; width: 100%; }
}
