/* Layout: full-bleed night sky; Sameer's wordmark top-left, flight console docked bottom-center */
:root {
  --night: #04050c;
  --panel: rgba(9, 12, 28, 0.74);
  --line: rgba(150, 170, 255, 0.2);
  --ink: #e9edff;
  --dim: #8f98c4;
  --cyan: #6ff3ff;
  --gold: #ffc66b;
  --font-hud: "Chakra Petch", "Rajdhani", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--night);
  color: var(--ink);
  font: 14px/1.4 var(--font-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

#show { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }

.ui {
  position: fixed; inset: 0; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 16px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.brand { display: grid; gap: 4px; min-width: 0; }
.brand h1 {
  margin: 0; font-family: var(--font-hud); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.14em; text-transform: uppercase; text-wrap: balance;
}
.brand h1 span { color: var(--cyan); }
.brand p { margin: 0; font-family: var(--font-hud); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

.bottom { display: grid; justify-items: center; gap: 8px; }
.console {
  pointer-events: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  max-width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn {
  font-family: var(--font-hud); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 14px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: rgba(150, 170, 255, 0.08); }
.btn.on { color: var(--cyan); border-color: var(--cyan); background: rgba(111, 243, 255, 0.1); }
.btn.fire { color: var(--gold); border-color: rgba(255, 198, 107, 0.55); }
.btn.fire:hover { background: rgba(255, 198, 107, 0.12); }
.btn.music:not(.on) { color: var(--gold); }
.btn:focus-visible, .field:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.textgroup { display: flex; min-width: 0; }
.field {
  font-family: var(--font-hud); font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-right: 0;
  border-radius: 9px 0 0 9px; padding: 9px 10px; width: 9.5em; min-width: 0;
}
.textgroup .btn { border-radius: 0 9px 9px 0; }
.sep { width: 1px; align-self: stretch; background: var(--line); }
.hint { margin: 0; font-size: 12px; color: var(--dim); text-align: center; max-width: 64ch; text-wrap: balance; }
.privacy { margin: -4px 0 0; font-size: 11px; color: var(--dim); opacity: 0.8; text-align: center; max-width: 64ch; text-wrap: balance; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop {
  position: fixed; inset: 0; display: grid; place-items: center; background: rgba(4, 5, 12, 0.7);
  border: 2px dashed var(--cyan); font-family: var(--font-hud); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); font-size: 18px; pointer-events: none;
}

@media (max-width: 620px) {
  .sep { display: none; }
  .btn { padding: 8px 11px; font-size: 12px; }
  .field { width: 7.5em; font-size: 12px; }
}
