/* tokens, locked off the approved art + ui-ux-pro-max HUD/Sci-Fi search (font direction kept,
   palette overridden with colors sampled from assets/avatar.png so the site matches the art
   instead of the search's generic gold/purple):
   bg #0d1230 / panel #141a3d / ink #eef1ff / dim #7b84b5 / accent #ccff00 (Robinhood chain accent, used sparingly)
   visor-glow #d8ffb8 (sampled highlight)
   type: Space Grotesk (display) + Chivo Mono (readouts, CA, real case)
   spacing: 8px grid (8/16/24/32/48) · corner radius: 0 (flat HUD plates, no rounding)
   motion: one slow glow pulse (3.4s) over the visor + a blinking status cursor, both killed by
   prefers-reduced-motion */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('assets/fonts/chivo-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('assets/fonts/chivo-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0d1230;
  --panel: #141a3d;
  --line: rgba(238, 241, 255, 0.1);
  --ink: #eef1ff;
  --dim: #7b84b5;
  --accent: #ccff00;
  --glow: #d8ffb8;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: radial-gradient(ellipse at 50% 30%, #131a3f 0%, var(--bg) 62%);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  overflow: hidden;
}

.rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 20px 20px 16px;
}

.dim { color: var(--dim); }

/* status bar */
.statusbar {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Chivo Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.statusbar-label { color: var(--ink); font-weight: 600; }
.statusbar-state { color: var(--glow); }
.sep { color: var(--line); }
.cursor {
  color: var(--glow);
  animation: blink 1s step-end infinite;
}
.statusbar-session { margin-left: auto; }
#session { color: var(--ink); }

/* stage */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
  padding: 8px 0;
}

.frame {
  position: relative;
  width: min(46vh, 300px);
  height: min(46vh, 300px);
}

.face {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: block;
  object-fit: contain;
}

.glow {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30%;
  height: 20%;
  background: radial-gradient(ellipse at center, var(--glow) 0%, rgba(216, 255, 184, 0) 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: pulse 3.4s ease-in-out infinite;
  filter: blur(6px);
}

.readout {
  display: flex;
  gap: 22px;
  margin: 0;
  font-family: 'Chivo Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  flex-wrap: wrap;
  justify-content: center;
}
.readout .row {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.readout dt {
  color: var(--dim);
  text-transform: uppercase;
}
.readout dd {
  margin: 0;
  color: var(--ink);
}

.tagline {
  max-width: 460px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  padding: 0 12px;
}

/* CA + ticker */
.ticker-row {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 0;
}

.ticker {
  font-family: 'Chivo Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(204, 255, 0, 0.35);
  padding: 8px 12px;
}

.ca {
  font-family: 'Chivo Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.ca:hover { border-color: var(--accent); color: var(--accent); }
.ca:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* nav */
.links {
  display: flex;
  gap: 22px;
  font-family: 'Chivo Mono', monospace;
  font-size: 13px;
}
.links a {
  color: var(--dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 150ms ease;
}
.links a:hover, .links a:focus-visible { color: var(--accent); }
.x-link svg { display: block; }

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 1; }
  .glow { animation: none; opacity: 0.55; }
}

@media (max-width: 480px) {
  .statusbar { font-size: 10.5px; }
  .readout { gap: 12px; font-size: 11px; }
  .tagline { font-size: 13.5px; }
}

@media (max-height: 680px) {
  .frame { width: min(34vh, 260px); height: min(34vh, 260px); }
  .stage { gap: 12px; }
}
