/* LockIn shared design tokens and components.
   Identity: warm black, one flat signal-yellow accent, Archivo (condensed caps for display, normal width for text). */
@font-face {
  font-family: "Archivo";
  src: url("/web/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0c0c0d; --panel: #141416; --raised: #1c1c1f; --line: #26262a; --line-strong: #37373c;
  --text: #f3f2ee; --muted: #a4a4a9; --faint: #6f6f75;
  --accent: #ffd60a; --accent-hover: #ffe14d; --accent-ink: #121212; --accent-soft: #2b2508;
  --ok: #3fcf78; --warn: #ffb020; --danger: #ff5a4f; --danger-soft: #3a1c1a;
  --radius: 6px; --radius-sm: 4px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, "Roboto Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14.5px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* display type: condensed caps */
.display { font-stretch: 68%; font-weight: 850; text-transform: uppercase; letter-spacing: .2px; line-height: .95; }
.eyebrow { font-size: 11.5px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; font-stretch: 87%; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 650; cursor: pointer; white-space: nowrap; line-height: 1.2; }
.btn:hover { background: #26262a; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--raised); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.big { padding: 12px 22px; font-size: 15px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; font-stretch: 87%; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* inputs */
.field { width: 100%; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--radius-sm); padding: 9px 12px; color: var(--text); outline: 0; }
.field::placeholder { color: var(--faint); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
textarea.field { resize: vertical; min-height: 90px; line-height: 1.5; }
label.lbl { display: block; font-size: 11.5px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.help { font-size: 12.5px; color: var(--faint); margin: 6px 0 0; }
.error-text { font-size: 13px; color: var(--danger); margin: 6px 0 0; }
.error-text:empty { display: none; }

/* cards and layout bits */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-sm); padding: 3px 9px; font-size: 12.5px; font-weight: 650; background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.pill.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }

/* the Sparks HUD mounted by LockIn.hud() */
.li-hud { display: inline-flex; align-items: center; gap: 10px; }
.li-sparks { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 5px 10px 5px 8px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.li-sparks svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.li-sparks.bump { animation: li-bump .4s ease; }
@keyframes li-bump { 30% { transform: scale(1.12); } }
.li-user { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; text-decoration: none; }
.li-user:hover { color: var(--accent); text-decoration: none; }
.li-avatar { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); display: grid; place-items: center; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.li-login { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 7px 14px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .6px; font-size: 13px; font-stretch: 87%; }
.li-login:hover { background: var(--accent-hover); text-decoration: none; }

/* toast */
#li-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); max-width: 360px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 750; padding: 10px 16px; border-radius: var(--radius-sm); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 1000; text-align: center; }
#li-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
