:root {
  --bg: #060a12;
  --panel: #0a111d;
  --border: #1b2740;
  --text: #dbe6f5;
  --muted: #6b7f9d;
  --accent: #4d8dff;
  --green: #2fb97f;
  --red: #e05656;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  padding-top: 2.9rem;
}

a {
  color: var(--accent);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.version {
  position: fixed;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted, #8a8a8a);
  opacity: 0.7;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
}

.site-header .logo {
  width: 19px;
  height: 19px;
}

.hamburger {
  width: 34px;
  height: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--muted);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger:hover span {
  background: var(--text);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.9rem;
  padding: 0 1rem 0 3.4rem;
  background: #0d1526;
  border-bottom: 1px solid #2a3c5e;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: #a8bdd8;
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.menu a:hover {
  color: #fff;
  background: rgba(77, 141, 255, 0.14);
}

.menu a svg {
  flex: none;
}

/* phone-first: icon-only nav at every width so the bar always fits 430px */
.menu a { padding: 0.45rem 0.55rem; }
.menu a .mlabel { display: none; }

.hamburger {
  display: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

/* phone-first: on desktop the whole app lives in a centered 430px column.
   This block must stay at the END of the file — it overrides the base
   fixed-position rules above by source order. */
@media (min-width: 480px) {
  body {
    max-width: 430px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    min-height: 100dvh;
  }
  /* no transform on .site-header — transform makes it a containing block
     and would trap the fixed .menu inside it */
  .site-header {
    left: calc(50% - 215px);
    width: 430px;
  }
  .menu,
  .version {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(430px, 100%);
  }
}
