/**
 * @l99/component: magic-link-pages
 * source: level99.co/css/styles-hud.css (Level99 house brand, extracted 2026-07-09)
 * license: internal
 * imported: 2026-07-09   adapted-by: Level99
 *
 * Shared stylesheet for play.level99.co — landing page (site/index.html) and
 * server-rendered demo pages (netlify/functions/demo.ts). Tokens mirror the
 * main site verbatim; components are retokenized adaptations of its HUD kit.
 */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("../fonts/space-mono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Level99 brand tokens — keep in sync with level99.co styles-hud.css */
  --lime: #89d957;
  --lime-bright: #a4f06f;
  --lime-ink: #0a0d07;
  --bg: #0a0c08;
  --panel: #101309;
  --panel-2: #14180d;
  --ink: #f3f6ee;
  --ink-dim: #98a28c;
  --line: #23281c;
  --line-bright: #39422e;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --r: 2px;
  --container: 640px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 150ms;
  --dur-transition: 300ms;
  --dur-entrance: 500ms;
  --err: #ff8a7a;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 72px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--container); padding: 44px 16px 0; }

/* ---------- Header (mirrors level99.co .site-header/.nav) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav__logo { display: inline-flex; align-items: center; flex: none; }
.nav__logo img { display: block; height: 29px; width: auto; }
.btn.btn--sm {
  display: inline-block;
  width: auto;
  padding: 10px 16px;
  font-size: 12px;
  margin-top: 0;
}

/* ---------- Type ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 14px;
}
.kicker b { color: var(--lime); font-weight: 700; }

h1 {
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 700;
}
h1 .accent { color: var(--lime); }

.sub {
  color: var(--ink-dim);
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ---------- Panels ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 16px;
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
input[type="url"], input[type="text"], input[type="tel"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  color: var(--ink);
  border-radius: var(--r);
  padding: 14px;
  font-size: 16px;
  font-family: var(--font-display);
  outline: none;
  transition: border-color var(--dur-micro) var(--ease);
}
input:focus { border-color: var(--lime); }

/* ---------- Buttons (mirrors .btn--primary / .btn--ghost) ---------- */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 18px;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
  transition: background var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}
.btn:hover { background: var(--lime-bright); border-color: var(--lime-bright); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-bright);
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--line-bright); }

/* ---------- HUD strip (adapted from level99.co hero) ---------- */
.hud-strip {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  padding: 16px 18px;
}
.hud-strip__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  min-width: 0;
}
.hud-strip__row b { color: var(--lime); font-weight: 700; }
.hud-strip__row .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-strip__bar { display: flex; gap: 3px; height: 16px; margin: 12px 0; }
.hud-strip__bar i {
  flex: 1 1 0;
  background: var(--line-bright);
  border-radius: 1px;
  transform-origin: bottom;
  transition: background var(--dur-transition) var(--ease);
}
.hud-strip__bar i.on { background: var(--lime); }
.hud-strip__bar i.head { background: var(--lime-bright); animation: xp-blink 1.8s ease-in-out infinite; }
@keyframes xp-blink { 50% { opacity: 0.45; } }

/* ---------- States & misc ---------- */
.status-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  min-height: 18px;
}
.status-sub { color: var(--ink-dim); font-size: 14px; margin-top: 8px; min-height: 20px; line-height: 1.5; }

.error { color: var(--err); font-size: 14px; margin-top: 10px; text-align: center; min-height: 18px; }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.fineprint { color: var(--ink-dim); opacity: 0.75; font-size: 12.5px; text-align: center; margin-top: 12px; line-height: 1.5; }
.disclosure {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  opacity: 0.7;
  text-align: center;
  margin-top: 14px;
}

.banner {
  border: 1px solid var(--line-bright);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.5;
}
.banner button {
  background: none;
  border: none;
  color: var(--lime);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

.reveal-link {
  display: block;
  text-align: center;
  background: var(--bg);
  border: 1px dashed var(--line-bright);
  border-radius: var(--r);
  padding: 14px;
  margin: 14px 0 4px;
  color: var(--lime);
  text-decoration: none;
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 14px;
}

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--lime); }
.checkbox-row span { color: var(--ink-dim); font-size: 12px; line-height: 1.45; }

.footer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.6;
  margin-top: 44px;
}
.footer a { color: inherit; text-decoration: none; }

.sms-big { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--lime); }

/* One-time entrance (signature animation; transform/opacity only) */
.enter { animation: rise var(--dur-entrance) var(--ease) both; }
.enter.d1 { animation-delay: 80ms; }
.enter.d2 { animation-delay: 160ms; }
.enter.d3 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .enter, .enter.d1, .enter.d2, .enter.d3 { animation: none; }
  .hud-strip__bar i.head { animation: none; }
  .btn, input { transition: none; }
}

/* The ElevenLabs widget is a floating overlay with its own shadow-DOM layout —
   no size or position overrides; constraining it compresses its expanded chat. */
