/* Lefthy Tools - night scene "A5 Lake & Mountains".
   Strict CSP: everything is styled from here (no inline styles anywhere). */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL 1.1 - see ../fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/josefin-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #060818;
  --text: #e8edf7;
  --title: #eef2fb;
  --muted: #a9b4cf;
  --faint: #8f9bb8;
  --accent: #7fdbe6;
  --accent-hover: #b5eef4;
  --on-accent: #04121a;
  --amber: #f0b56a;
  --on-amber: #1c1205;
  --panel: rgba(7, 9, 24, 0.84);
  --panel-strong: rgba(7, 9, 24, 0.86);
  --panel-border: rgba(127, 219, 230, 0.16);
  --field: #0a0d22;
  --field-border: #262e52;
  --line: #2f3866;
  --font-title: "Josefin Sans", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Scene (fixed full-viewport background, identical on every page) ---------- */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Motion only when the visitor has not asked for less. Without it the scene is
   the static approved picture (shooting star visible, nothing moves). */
@media (prefers-reduced-motion: no-preference) {
  .sc-meteor { opacity: 0; animation: sc-meteor 34s linear -24.6s infinite; }
  .sc-tw { animation: sc-twinkle 7s ease-in-out -2s infinite alternate; }
  .sc-tw2 { animation-duration: 9.5s; animation-delay: -5s; }
  .sc-tw3 { animation-duration: 5.5s; animation-delay: -1s; }
  .sc-mote { animation: sc-drift-a 28s ease-in-out infinite alternate; }
  .sc-mote2 { animation-name: sc-drift-b; animation-duration: 34s; animation-delay: -9s; }
  .sc-mote3 { animation-duration: 40s; animation-delay: -17s; }
  .sc-mote4 { animation-name: sc-drift-b; animation-duration: 31s; animation-delay: -4s; }
  .sc-flicker1 { animation: sc-flicker 4.5s ease-in-out infinite alternate; }
  .sc-flicker2 { animation: sc-flicker 7s ease-in-out -3s infinite alternate; }
  .sc-window { animation: sc-window 47s linear infinite; }
  .sc-window2 { animation-duration: 61s; animation-delay: -20s; }
  .sc-padlight { animation: sc-blink 1.6s steps(1) infinite; }
}
@keyframes sc-blink { 0% { opacity: 1; } 50% { opacity: 0.15; } }

/* One shooting star along the mockup's streak (dx -90, dy +66), ~0.9 s every 34 s. */
@keyframes sc-meteor {
  0%, 90% { opacity: 0; transform: translate(70px, -51px); }
  90.6% { opacity: 1; }
  92% { opacity: 0.8; }
  92.6% { opacity: 0; transform: translate(-45px, 33px); }
  100% { opacity: 0; transform: translate(-45px, 33px); }
}
@keyframes sc-twinkle { from { opacity: 1; } to { opacity: 0.3; } }
@keyframes sc-drift-a { from { transform: translate(0, 0); } to { transform: translate(18px, -7px); } }
@keyframes sc-drift-b { from { transform: translate(0, 0); } to { transform: translate(-16px, -5px); } }
@keyframes sc-flicker { from { opacity: 1; } to { opacity: 0.78; } }
@keyframes sc-window {
  0%, 62% { opacity: 0.8; }
  63%, 84% { opacity: 0; }
  85%, 100% { opacity: 0.8; }
}

/* ---------- Shared pieces ---------- */
.logo { display: block; color: var(--accent); flex: none; }
.logo--lg { width: 44px; height: 44px; stroke-width: 1.6; }
.logo--sm { width: 32px; height: 32px; stroke-width: 2; }

.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(28px, 9vw, 40px);
  line-height: 1.2;
  letter-spacing: 6px;
  padding-left: 6px; /* balances the trailing letter-spacing so the title is optically centred */
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--title);
}

.card {
  width: 100%;
  padding: 30px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 2px solid rgba(240, 181, 106, 0.6);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--title);
}
.form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.note strong { color: var(--text); font-weight: 600; }
.hint { margin: 0; font-size: 13px; color: var(--faint); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.input--code { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.12em; }
.input--code::placeholder { letter-spacing: 0.04em; color: #59648a; }

/* Checkbox row: 44px tall touch target, drawn as tight as the mockup. */
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -13px 0;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary {
  height: 46px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost {
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(7, 9, 24, 0.7);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: #fff; }
.btn--small { font-size: 13px; padding: 0 14px; }

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkbtn:hover { color: var(--accent-hover); }

.smalllink {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 44px;
  margin: -10px 0 -12px;
  padding: 0 8px;
  font-size: 14px;
}

.alert { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.alert--error { background: rgba(255, 120, 120, 0.12); border: 1px solid rgba(255, 140, 140, 0.45); color: #ffd6d6; }
.alert--notice { background: rgba(127, 219, 230, 0.1); border: 1px solid rgba(127, 219, 230, 0.4); color: #d8f7fb; }

/* ---------- Centred pages (sign in, 2FA, setup, codes, errors) ---------- */
.center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 412px; /* 380px card + 2 x 16px gutter */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.center--wide { max-width: 452px; }
.center .card > .btn--primary { width: 100%; }

.center--setup { max-width: 592px; } /* 560px card: QR beside the key */
.setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.setup__text { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; color: #c7cfe3; }
.field label.step { font-size: 14px; font-weight: 400; color: #c7cfe3; }
.step__n {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  border: 1px solid rgba(127, 219, 230, 0.5);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr {
  align-self: center;
  width: 200px;
  padding: 8px;
  border-radius: 10px;
  /* Dark modules on a light tile: inverted (light-on-dark) QR codes are not read by every authenticator app. */
  background: #e8edf7;
  border: 1px solid rgba(127, 219, 230, 0.35);
  line-height: 0;
}
.qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.qr svg path { stroke: #0a0d22; }
.qr svg [fill]:not([fill="none"]):not(path) { fill: transparent; }

.secret {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--field);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.06em;
  word-spacing: 0.2em;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.codes {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--field-border);
  background: var(--field);
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}
.codes code { font: inherit; white-space: nowrap; }

.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: -6px; }
.setup .copyrow { margin-top: 0; }
.copyrow__status { font-size: 13px; color: var(--accent); }

.status {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: 2px;
  color: var(--amber);
}

/* ---------- Signed-in pages ---------- */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__home {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.topbar__home:hover { color: #fff; }
.topbar__name {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.topbar__user { display: flex; align-items: center; gap: 12px; }
.topbar__user form { margin: 0; }
.topbar__account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}
.topbar__account:hover { color: #fff; }
.topbar__account:hover .avatar { border-color: var(--accent); }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #161c3c;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #dfe4f5;
  flex: none;
}

.greeting {
  margin: 0;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--title);
}

.home {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-top: 24px;
}

/* Tool cards. The title link is stretched over the whole card; a widget
   (templates/widgets/<id>.html) sits above it and may hold its own controls. */
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  line-height: 1.25;
  color: var(--accent);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tool--gated { border-color: rgba(240, 181, 106, 0.45); color: var(--amber); }
.tool:hover { border-color: rgba(127, 219, 230, 0.5); background: rgba(10, 13, 34, 0.9); }
.tool--gated:hover { border-color: rgba(240, 181, 106, 0.8); }
.tool__top { display: flex; justify-content: space-between; align-items: center; }
.icon { width: 28px; height: 28px; display: block; flex: none; }
.badge {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
}
.badge--portal { font-weight: 600; color: var(--on-amber); background: var(--amber); border-color: var(--amber); }
.tool__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  outline: none;
}
.tool__title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.tool__title:hover { color: #fff; }
.tool__title:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool__desc { margin: 0; font-size: 14px; color: var(--muted); }
.tool__host { margin: 0; font-size: 13px; color: var(--faint); }
.tool__widget { position: relative; z-index: 1; color: var(--text); font-size: 14px; }
.tool__widget:empty { display: none; }
.tools__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }

.account {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-top: 24px;
}
.account__head { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.backlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; }
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  align-items: start;
}
.panel .btn--primary { align-self: stretch; }
.panel { padding: 26px 24px; }
.panel .codes { font-size: 14px; padding: 12px; gap: 8px 12px; }
.panel .btn--ghost { align-self: flex-start; }

.devflag {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: rgba(7, 9, 24, 0.86);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .center { padding-top: 32px; padding-bottom: 32px; }
  input[type="text"], input[type="password"] { font-size: 16px; } /* no iOS zoom on focus */
  .input--code { font-size: 18px; }
  .greeting { font-size: 30px; }
  .setup { grid-template-columns: 1fr; gap: 18px; }
  .setup .qr { justify-self: center; }
}
/* Phones: keep the header on one row; the username stays as the link's accessible name. */
@media (max-width: 520px) {
  .topbar { flex-wrap: nowrap; gap: 8px; }
  .topbar__home { gap: 10px; }
  .topbar__name { font-size: 15px; letter-spacing: 2.5px; }
  .topbar__user { gap: 8px; }
  .topbar__account { gap: 0; }
  .topbar__username {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .topbar .btn--ghost { padding: 0 12px; }
}

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

/* ---------- Sign-in easter egg: the moon shows and hides the sign-in box ---------- */
.moon-layer {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none; display: block;
}
.moon-link { pointer-events: auto; cursor: pointer; outline: none; }
.moon-link__hit { fill: transparent; }
.moon-link__glow { opacity: 0; transition: opacity 0.6s ease; }
.moon-link:hover .moon-link__glow,
.moon-link:focus-visible .moon-link__glow { opacity: 1; }
.moon-link:focus-visible .moon-link__hit { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 4; }

.motto { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: -10px; }
.motto__line { display: block; width: 72px; height: 1px; background: var(--accent); opacity: 0.5; }
.motto__text {
  margin: 0; font-family: var(--font-title); font-weight: 300; font-size: 17px;
  letter-spacing: 4px; padding-left: 4px; color: #b4bfd8; transition: opacity 0.5s ease;
}
[data-egg="open"] .motto__text { opacity: 0.55; }

/* Only with JS (early.js sets .js) may the box start hidden; it then collapses fully,
   so logo, title and motto sit in the exact centre. */
.js .signin {
  max-height: 560px;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease, transform 0.5s ease, visibility 0.6s,
    padding 0.6s ease, margin 0.6s ease, border-width 0.6s ease;
}
/* The scene is cropped from the sides on narrow screens; below ~9:8 the moon is
   off-screen, so there the box is always shown and the moon button is left out. */
@media (min-aspect-ratio: 9/8) {
  .js [data-egg="closed"] .signin {
    max-height: 0; opacity: 0; transform: translateY(10px); visibility: hidden;
    padding-top: 0; padding-bottom: 0; border-width: 0; margin-top: -24px;
  }
}
@media (max-aspect-ratio: 9/8) {
  .moon-layer { display: none; }
}

/* ---------- The launch (see _launch.html; ~24 s, path length 866.7) ---------- */
.launch {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
}
.launch-top.is-go { z-index: 2; } /* in front of the content only while it flies */
.ln-craft, .ln-flames { transform-box: view-box; transform-origin: 978px 531px; }
.ln-flames, .ln-flash, .ln-lakeglow, .ln-smoke, .ln-debris { opacity: 0; }
.ln-flame { transform-box: fill-box; transform-origin: 50% 0; }
.ln-trail path { stroke-dasharray: 866.7; stroke-dashoffset: 866.7; }
.ln-smoke ellipse, .ln-seppuff, .ln-piece { transform-box: fill-box; transform-origin: 50% 50%; }

.is-go .ln-craft { animation: ln-fly 24s linear forwards; }
.is-go .ln-flames { animation: ln-ignite 24s linear forwards; }
.is-go .ln-flame { animation: ln-flick 0.11s infinite alternate; }
.is-go .ln-boosters, .is-go .ln-side-flames { animation: ln-separate 24s linear forwards; }
.is-go .ln-trail path { animation: ln-draw 24s linear forwards; }
.is-go .ln-trail { animation: ln-trailfade 30s ease-in 20s forwards; }
.is-go .ln-flash { animation: ln-flash 24s ease-out forwards; }
.is-go .ln-lakeglow { animation: ln-lakeglow 24s ease-out forwards; }
.is-go .ln-smoke { opacity: 1; }
.is-go .ln-smoke ellipse { opacity: 0; animation: ln-puff 22s ease-out 0.3s forwards; }
.is-go .ln-smoke ellipse:nth-child(2) { animation-delay: 0.7s; }
.is-go .ln-smoke ellipse:nth-child(3) { animation-delay: 0.9s; }
.is-go .ln-smoke ellipse:nth-child(4) { animation-delay: 1.4s; }
.is-go .ln-smoke ellipse:nth-child(5) { animation-delay: 1.6s; }
.is-go .ln-smoke ellipse:nth-child(6) { animation-delay: 2.1s; }
.is-go .ln-debris { animation: ln-separate-on 24s linear forwards; }
.is-go .ln-seppuff { animation: ln-seppuff 4s ease-out 15.84s both; }
.is-go .ln-left { animation: ln-fall-left 7s ease-in 15.84s forwards; }
.is-go .ln-right { animation: ln-fall-right 7s ease-in 15.84s forwards; }
.is-back .ln-craft { animation: ln-back 1.6s ease-out; }

/* Ignition 0-2.5 s, then a slow lift-off that speeds up (arc length ~ t^2.2),
   gravity turn to the right, shrinking with distance. */
@keyframes ln-fly {
  0%, 10.4% { transform: translate(0, 0) rotate(0) scale(1); }
  14% { transform: translate(0, -0.7px) rotate(0) scale(1); }
  18% { transform: translate(0, -3.8px) rotate(0) scale(0.998); }
  22% { transform: translate(0, -9.7px) rotate(0) scale(0.994); }
  26% { transform: translate(0, -18.5px) rotate(0) scale(0.988); }
  30% { transform: translate(0, -30.6px) rotate(0) scale(0.981); }
  34% { transform: translate(0, -46px) rotate(0) scale(0.971); }
  38% { transform: translate(0, -65px) rotate(1deg) scale(0.959); }
  42% { transform: translate(1.6px, -87.5px) rotate(6.8deg) scale(0.944); }
  46% { transform: translate(6px, -113.3px) rotate(12.9deg) scale(0.928); }
  50% { transform: translate(14.4px, -142.1px) rotate(19.2deg) scale(0.909); }
  54% { transform: translate(27.4px, -173.4px) rotate(25.7deg) scale(0.887); }
  58% { transform: translate(45.7px, -206.5px) rotate(31.9deg) scale(0.863); }
  62% { transform: translate(69.6px, -240.8px) rotate(37.9deg) scale(0.837); }
  66% { transform: translate(99.6px, -275.6px) rotate(43.4deg) scale(0.807); }
  70% { transform: translate(135.7px, -310.3px) rotate(48.8deg) scale(0.776); }
  74% { transform: translate(178.1px, -344.3px) rotate(53.8deg) scale(0.741); }
  78% { transform: translate(226.8px, -376.8px) rotate(58.1deg) scale(0.704); }
  82% { transform: translate(280.8px, -409px) rotate(60.2deg) scale(0.664); }
  86% { transform: translate(339.6px, -441.5px) rotate(61.9deg) scale(0.622); }
  90% { transform: translate(403.2px, -474.5px) rotate(63.2deg) scale(0.576); }
  94% { transform: translate(471.3px, -508.3px) rotate(64.1deg) scale(0.528); }
  98% { transform: translate(544px, -543.1px) rotate(64.7deg) scale(0.477); }
  100% { transform: translate(582px, -561px) rotate(65deg) scale(0.45); }
}
@keyframes ln-draw {
  0%, 10.4% { stroke-dashoffset: 866.7; } 14% { stroke-dashoffset: 866; } 18% { stroke-dashoffset: 862.9; }
  22% { stroke-dashoffset: 857; } 26% { stroke-dashoffset: 848.2; } 30% { stroke-dashoffset: 836.1; }
  34% { stroke-dashoffset: 820.6; } 38% { stroke-dashoffset: 801.7; } 42% { stroke-dashoffset: 779.2; }
  46% { stroke-dashoffset: 752.9; } 50% { stroke-dashoffset: 722.9; } 54% { stroke-dashoffset: 689; }
  58% { stroke-dashoffset: 651.2; } 62% { stroke-dashoffset: 609.3; } 66% { stroke-dashoffset: 563.3; }
  70% { stroke-dashoffset: 513.2; } 74% { stroke-dashoffset: 458.9; } 78% { stroke-dashoffset: 400.4; }
  82% { stroke-dashoffset: 337.5; } 86% { stroke-dashoffset: 270.3; } 90% { stroke-dashoffset: 198.7; }
  94% { stroke-dashoffset: 122.6; } 98% { stroke-dashoffset: 42; } 100% { stroke-dashoffset: 0; }
}
@keyframes ln-ignite {
  0% { opacity: 0; transform: scale(1, 0.3); }
  3% { opacity: 0.5; transform: scale(1, 0.5); }
  8% { opacity: 0.9; }
  10.4% { opacity: 1; transform: scale(1, 1); }
  60% { transform: scale(1, 1.25); }
  100% { opacity: 1; transform: scale(1, 1.3); }
}
@keyframes ln-flick { from { opacity: 0.82; } to { opacity: 1; } }
@keyframes ln-separate { 0%, 65.9% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes ln-separate-on { 0%, 65.9% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes ln-seppuff { 0% { opacity: 0.55; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes ln-fall-left { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(-18px, 44px) rotate(-80deg); opacity: 0; } }
@keyframes ln-fall-right { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(16px, 48px) rotate(95deg); opacity: 0; } }
@keyframes ln-trailfade { from { opacity: 1; } to { opacity: 0.12; } }
@keyframes ln-flash { 0% { opacity: 0; } 5% { opacity: 0.45; } 11% { opacity: 0.95; } 22% { opacity: 0.6; } 42% { opacity: 0.08; } 100% { opacity: 0; } }
@keyframes ln-lakeglow { 0% { opacity: 0; } 6% { opacity: 0.3; } 11% { opacity: 0.7; } 24% { opacity: 0.4; } 45% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ln-puff {
  0% { opacity: 0; transform: scale(0.3); }
  6% { opacity: 0.6; }
  35% { opacity: 0.38; transform: scale(1.7) translateY(-2px); }
  100% { opacity: 0; transform: scale(2.8) translateY(-6px); }
}
@keyframes ln-back { from { opacity: 0; } to { opacity: 1; } }

/* Every page except sign-in: the moon fades the page out (the scene and the launch stay). */
body > :not(svg) { transition: opacity 0.8s ease, visibility 0.8s; }
body.ui-hidden > :not(svg) { opacity: 0; visibility: hidden; }
