:root {
  --bg: #0b0e14;
  --ink: #e8e0d0;
  --muted: #8a8a8a;
  --accent: #f0b060;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
#canvas-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
main {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100vh;
  padding: 2rem;
  pointer-events: none;
}
.overlay-card {
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.5rem 2.2rem;
  max-width: 38ch;
  text-align: center;
  pointer-events: auto;
}
h1 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  color: #fff;
}
p { margin: 0.5rem 0; font-size: 0.95rem; }
.muted { color: var(--muted); font-size: 0.8rem; }
em { font-style: italic; color: var(--accent); }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #0b0e14;
  padding: 0.5rem 1rem; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 0; }
footer {
  position: fixed;
  bottom: 1rem;
  right: 1.5rem;
  z-index: 1;
  font-size: 0.75rem;
  opacity: 0.5;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Flight HUD */
#hud {
  position: fixed;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
#hud.active {
  opacity: 1;
}
.hud-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 14, 20, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.hud-inner kbd {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: inherit;
  font-size: 0.7rem;
  color: #ddd;
  text-transform: uppercase;
}
.hud-inner span {
  color: var(--muted);
}
.hud-inner .hud-space {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
