/* The public page wears Beto Core's command-post look: phosphor green, hazard yellow, a faint grid
   and scanlines. Same tokens as FrontEnd/src/shell/core.css, written out because nothing here
   comes from the app. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --bg: #040a08;
  --panel: rgb(8 18 15 / 0.86);
  --line: rgb(61 220 151 / 0.22);
  --line-strong: rgb(61 220 151 / 0.55);
  --green: #3ddc97;
  --hazard: #f5c400;
  --critical: #ff4d4d;
  --text: #d9f2e6;
  --muted: #8fb1a2;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 24px 16px;
  font-family: var(--mono);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 35%, rgb(61 220 151 / 0.08), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-position: center, -1px -1px, -1px -1px;
}

/* Scanlines over everything, too faint to read as a pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(0 0 0 / 0.18) 0 1px, transparent 1px 3px);
}

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(100%, 520px);
  padding: 34px 28px 26px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgb(61 220 151 / 0.08);
}

/* Sight corners, as on Beto Core's cards */
.gate::before, .gate::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--green);
}
.gate::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.gate::after { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }

.hazard {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 10px, #111 10px 20px);
}

.kicker { margin: 4px 0 0; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hazard); }

.mark { width: clamp(96px, 28vw, 132px); height: auto; filter: drop-shadow(0 0 10px rgb(61 220 151 / 0.35)); }

.name { margin: 0; font-size: clamp(22px, 7vw, 38px); font-weight: 600; letter-spacing: 0.3em; padding-left: 0.3em; white-space: nowrap; }

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.1em;
  vertical-align: -0.08em;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

.alert {
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  background: rgb(255 77 77 / 0.07);
  border: 1px solid rgb(255 77 77 / 0.45);
  border-left-width: 3px;
}
.alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--critical);
}

.dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--critical);
  box-shadow: 0 0 8px var(--critical);
  animation: blink 1.4s steps(1) infinite;
}

.foot { margin: 4px 0 0; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .cursor, .dot { animation: none; }
}
