/* ============================================================================
   Auth surface — INGSOC telescreen terminal (dark).
   The dramatic edge of the system: entering the Ministry, generating a free
   key under surveillance. Tokens come from ingsoc.css; --auth-* are remapped
   onto them so inline template references keep resolving.
   ============================================================================ */
.auth-body {
  --auth-bg: var(--bg);
  --auth-surface: var(--surface);
  --auth-surface-solid: var(--surface-2);
  --auth-border: var(--border);
  --auth-text: var(--text-strong);
  --auth-muted: var(--muted);
  --auth-accent: var(--lamp);
  --auth-accent-2: var(--primary);
  --auth-glow: var(--glow-amber);
  --auth-yellow: var(--lamp);
  --auth-radius: var(--radius-lg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--auth-text);
  background: transparent;
  overflow-x: hidden;
}

.auth-shell {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}
.auth-shell.wide { max-width: 580px; }
/* Account-code explainer: wider reading column on desktop; phones stay full-bleed. */
.auth-shell.doc-wide { max-width: 720px; }
@media (min-width: 900px) {
  .auth-shell.doc-wide { max-width: 780px; }
  .auth-shell.doc-wide .auth-doc-block p,
  .auth-shell.doc-wide .auth-doc-block ul { font-size: 0.95rem; line-height: 1.65; }
}

.auth-header { text-align: center; margin-bottom: 26px; }
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--auth-text);
}
.auth-logo-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 16px var(--glow-amber), 0 0 4px var(--lamp);
}
.auth-tagline {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--auth-muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

/* Terminal panel — concrete with a lit amber top edge + faint scanlines */
.auth-panel {
  position: relative;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px),
    var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-top: 2px solid var(--lamp);
  border-radius: var(--auth-radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}
.auth-panel > * { position: relative; }
.auth-panel.flash-wrap { padding-top: 22px; }

.auth-flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
}
.auth-flash.error { background: var(--party-soft); border-color: var(--glow-red); color: var(--danger); }
.auth-flash.success { background: rgba(72, 176, 106, 0.12); border-color: rgba(72, 176, 106, 0.35); color: var(--success); }
.auth-flash.info { background: rgba(230, 165, 44, 0.1); border-color: var(--glow-amber); color: var(--lamp); }

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-back:hover { color: var(--lamp); text-decoration: none; }

.auth-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--auth-text);
}
.auth-lead { margin: 0 0 24px; color: var(--auth-muted); font-size: 0.9rem; line-height: 1.6; }

/* Hub — two action cards */
.auth-hub { display: flex; flex-direction: column; gap: 14px; }
.auth-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--auth-border);
  background: var(--surface-2);
  color: var(--auth-text);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
}
.auth-action:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--auth-text);
}
.auth-action.primary {
  border-color: var(--glow-amber);
  background: linear-gradient(135deg, rgba(230, 165, 44, 0.16), transparent 70%), var(--surface-2);
}
.auth-action.primary:hover {
  border-color: var(--lamp);
  box-shadow: 0 12px 40px var(--glow-amber);
}
.auth-action-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-inset);
  color: var(--auth-muted);
}
.auth-action.primary .auth-action-icon {
  background: var(--lamp);
  color: var(--lamp-ink);
  box-shadow: 0 4px 16px var(--glow-amber);
}
.auth-action-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.auth-action-text span { font-size: 0.82rem; color: var(--auth-muted); }
.auth-action-arrow { margin-left: auto; color: var(--auth-muted); font-size: 1.2rem; }
.auth-action:hover .auth-action-arrow { color: var(--lamp); }

/* Forms */
.auth-field { margin-bottom: 20px; }
.auth-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.auth-input-wrap { position: relative; max-width: 100%; }
.auth-input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--auth-border);
  border-radius: var(--radius);
  background: var(--surface-inset);
  color: var(--auth-text);
  font-size: 1.05rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input.code { letter-spacing: 0.25em; text-align: center; }
.auth-input::placeholder { color: var(--muted); opacity: 0.5; letter-spacing: 0.12em; }
.auth-input-text {
  font-family: var(--font-body);
  letter-spacing: normal;
  padding: 14px 16px;
}
.auth-input:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 3px var(--glow-amber);
}
.auth-help {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--auth-muted);
  line-height: 1.5;
}
.auth-footnote {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--auth-muted);
}
.auth-code-box {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-inset);
  border: 1px dashed var(--glow-amber);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  word-break: break-all;
  letter-spacing: 0.06em;
  color: var(--primary);
}
.auth-code-box-stack { line-height: 1.8; }
.auth-qr {
  display: block;
  margin: 0 auto 20px;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
  image-rendering: pixelated;
}
.auth-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: none; border-radius: var(--radius);
  background: transparent; color: var(--auth-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.auth-toggle:hover { color: var(--lamp); background: var(--surface-2); }

.auth-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--auth-muted); cursor: pointer;
}
.auth-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lamp); flex-shrink: 0; }

/* The lamp: the free-key action */
.auth-submit {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--lamp-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: var(--lamp);
  color: var(--lamp-ink);
  box-shadow: 0 4px 22px var(--glow-amber);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
/* as-link: the primary action is a link (continue to cabinet), not a submit. */
.auth-submit.as-link { display: block; text-align: center; text-decoration: none; margin-top: 20px; }
.auth-strong { color: var(--auth-text); }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--glow-amber); background: var(--lamp-strong); }
.auth-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.auth-submit-muted {
  background: transparent;
  color: var(--auth-muted);
  box-shadow: none;
  border: 1px solid var(--auth-border);
}
.auth-submit-muted:hover { transform: none; box-shadow: none; color: var(--auth-text); background: var(--surface-2); }

/* Register generation animation — entropy harvested under the telescreen */
.gen-stage { text-align: center; padding: 12px 0 8px; }
.gen-stage.hidden { display: none; }

.gen-orb {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 28px;
}
.gen-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--lamp);
  border-right-color: var(--party);
  animation: gen-spin 1.2s linear infinite;
}
.gen-ring:nth-child(2) {
  inset: 12px;
  border-top-color: var(--party);
  border-right-color: transparent;
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.gen-core {
  position: absolute; inset: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-amber), transparent 70%);
  color: var(--lamp);
  display: flex; align-items: center; justify-content: center;
  animation: gen-pulse 2s ease-in-out infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
@keyframes gen-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

.gen-status {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--auth-text);
  margin-bottom: 16px;
  min-height: 1.4em;
  transition: opacity 0.3s;
}
.gen-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-inset);
  overflow: hidden;
  margin-bottom: 24px;
}
.gen-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--party), var(--lamp));
  transition: width 0.4s ease;
}
.gen-digits {
  display: flex; justify-content: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.05em;
}
.gen-digit-group {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-inset);
  border: 1px solid var(--auth-border);
  min-width: 72px;
  animation: gen-flicker 0.15s infinite alternate;
}
.gen-digit-group.settled { animation: none; border-color: var(--glow-amber); color: var(--lamp); }
@keyframes gen-flicker { from { opacity: 0.7; } to { opacity: 1; } }

.gen-intro .auth-submit { margin-top: 8px; }

/* Account reveal — the shutter (app.js) slides open to expose the one-time code */
.reveal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(72, 176, 106, 0.14);
  border: 1px solid rgba(72, 176, 106, 0.35);
  color: var(--success);
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.account-reveal {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 28px 16px;
  margin: 20px 0;
  border-radius: var(--radius);
  background: var(--surface-inset);
  border: 1px dashed var(--glow-amber);
  color: var(--auth-text);
  animation: reveal-in 0.6s ease-out;
  transition: border-color 0.2s ease-out;
}
/* Copy confirmation. Was an inline style assignment before the CSP hardening;
   as a class it needs no 'unsafe-inline' in style-src either. */
.account-reveal.copied {
  border-color: rgba(34, 197, 94, 0.6);
}
@keyframes reveal-in {
  from { opacity: 0; transform: scale(0.96); letter-spacing: 0.3em; }
  to { opacity: 1; transform: scale(1); letter-spacing: 0.16em; }
}

.kit-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.kit-btn {
  flex: 1; min-width: 130px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--glow-amber);
  background: rgba(230, 165, 44, 0.1);
  color: var(--lamp);
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.kit-btn:hover { background: rgba(230, 165, 44, 0.2); transform: translateY(-1px); text-decoration: none; color: var(--lamp-strong); }

.auth-doc-link {
  margin-top: 22px;
  text-align: center;
  font-size: 0.82rem;
}
.auth-doc-link a {
  color: var(--auth-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.auth-doc-link a:hover {
  color: var(--lamp);
  border-bottom-color: var(--glow-amber);
  text-decoration: none;
}

/* Documentation page */
.auth-doc { display: flex; flex-direction: column; gap: 22px; }
.auth-doc-block h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--auth-text);
}
.auth-doc-block p { margin: 0; color: var(--auth-muted); font-size: 0.9rem; line-height: 1.6; }
.auth-doc-block ul { margin: 0; padding-left: 18px; color: var(--auth-muted); font-size: 0.9rem; line-height: 1.6; }
.auth-doc-block li { margin-bottom: 6px; }
.auth-doc-block strong { color: var(--auth-text); font-weight: 600; }
.auth-doc-sample {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-inset);
  border: 1px dashed var(--glow-amber);
  color: var(--primary);
}
.auth-submit-link {
  display: block;
  margin-top: 26px;
  text-align: center;
  text-decoration: none;
}
.auth-submit-link:hover { text-decoration: none; color: var(--lamp-ink); }

.hidden { display: none !important; }

/* ============================================================================
   Mobile — keep the code, entropy digits and inputs inside their frames.
   ============================================================================ */
@media (max-width: 480px) {
  .auth-shell { padding: 24px 12px; }
  .auth-panel { padding: 22px 16px; }
  .auth-logo { font-size: 1.35rem; gap: 8px; }
  .auth-title { font-size: 1.4rem; }

  /* the one-time code: shrink + wrap so it never spills its dashed frame */
  .account-reveal {
    font-size: clamp(1.05rem, 6.2vw, 1.5rem);
    letter-spacing: 0.08em;
    padding: 22px 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .auth-code-box { font-size: 0.8rem; }

  /* generation digits stretch to fill the row instead of a fixed 72px each */
  .gen-digits { gap: 6px; font-size: 1.15rem; }
  .gen-digit-group { min-width: 0; flex: 1 1 0; padding: 10px 2px; text-align: center; }

  /* mono inputs: trim spacing so the placeholder fits */
  .auth-input { font-size: 0.98rem; letter-spacing: 0.06em; padding: 13px 44px 13px 14px; }
  .kit-btn { min-width: 0; }
}

/* ============================================================================
   Hub landing extras (auth/cabinet_hub only): node map + competitors ticker.
   .auth-shell is a viewport-centered flex column with align-items:center, so a
   flex item wider than the shell still centers on the viewport by itself —
   no left/transform tricks (they double-shift and glue the block to the left).
   ============================================================================ */
/* Neutral on every auth page: same column the shell always was. */
.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Hub only: the hero owns the first viewport (login front and center), the
   map/ticker live below the fold — the page reads as a landing you scroll. */
.hub-shell { justify-content: flex-start; }

.hub-shell .auth-hero {
  position: relative;
  justify-content: center;
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  padding-bottom: 64px;
}

.hub-scroll-cue {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  padding: 10px;
  color: var(--auth-muted);
  animation: cue-bob 2.6s var(--ease-in-out) infinite;
}

.hub-scroll-cue:hover,
.hub-scroll-cue:focus-visible { color: var(--lamp); }

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

.hub-section {
  width: min(880px, calc(100vw - 40px));
  margin-top: 90px;
  scroll-margin-top: 48px;
  text-align: center;
}

.hub-section:first-of-type { margin-top: 24px; }

.hub-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--auth-muted);
}

.hub-sub {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--auth-text);
}

.hub-note {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--auth-muted);
}

/* --- Dot-matrix world map: telescreen raster, amber lamps for nodes --- */
.hub-map-svg { display: block; width: 100%; height: auto; }

.map-land {
  fill: none;
  stroke: var(--text);
  stroke-width: 3.6;
  stroke-linecap: round;
  opacity: 0.22;
}

.map-node-core {
  fill: var(--lamp);
  filter: drop-shadow(0 0 4px var(--glow-amber));
}

.map-node-halo {
  fill: var(--lamp);
  opacity: 0.15;
  animation: map-pulse 3.2s var(--ease-in-out) infinite;
  animation-delay: var(--d, 0s);
}

/* Per-node stagger. The map is a fixed, hand-placed SVG, so the delays are
   positional: nth-of-type counts the <g class="map-node"> siblings, the
   <path class="map-land"> before them being a different type. Was a --d inline
   style on every node until style-src dropped 'unsafe-inline'. Renumber these
   only together with the node list in shared/node_map.html. */
.hub-map-svg .map-node:nth-of-type(1) { --d: 0.00s; }
.hub-map-svg .map-node:nth-of-type(2) { --d: 0.35s; }
.hub-map-svg .map-node:nth-of-type(3) { --d: 0.70s; }
.hub-map-svg .map-node:nth-of-type(4) { --d: 1.05s; }
.hub-map-svg .map-node:nth-of-type(5) { --d: 1.40s; }
.hub-map-svg .map-node:nth-of-type(6) { --d: 1.75s; }
.hub-map-svg .map-node:nth-of-type(7) { --d: 2.10s; }
.hub-map-svg .map-node:nth-of-type(8) { --d: 2.45s; }
.hub-map-svg .map-node:nth-of-type(9) { --d: 2.80s; }
.hub-map-svg .map-node:nth-of-type(10) { --d: 3.15s; }
.hub-map-svg .map-node:nth-of-type(11) { --d: 0.30s; }
.hub-map-svg .map-node:nth-of-type(12) { --d: 0.65s; }
.hub-map-svg .map-node:nth-of-type(13) { --d: 1.00s; }
.hub-map-svg .map-node:nth-of-type(14) { --d: 1.35s; }
.hub-map-svg .map-node:nth-of-type(15) { --d: 1.70s; }
.hub-map-svg .map-node:nth-of-type(16) { --d: 2.05s; }
.hub-map-svg .map-node:nth-of-type(17) { --d: 2.40s; }
.hub-map-svg .map-node:nth-of-type(18) { --d: 2.75s; }
.hub-map-svg .map-node:nth-of-type(19) { --d: 3.10s; }
.hub-map-svg .map-node:nth-of-type(20) { --d: 0.25s; }
.hub-map-svg .map-node:nth-of-type(21) { --d: 0.60s; }
.hub-map-svg .map-node:nth-of-type(22) { --d: 0.95s; }
.hub-map-svg .map-node:nth-of-type(23) { --d: 1.30s; }
.hub-map-svg .map-node:nth-of-type(24) { --d: 1.65s; }
.hub-map-svg .map-node:nth-of-type(25) { --d: 2.00s; }
.hub-map-svg .map-node:nth-of-type(26) { --d: 2.35s; }
.hub-map-svg .map-node:nth-of-type(27) { --d: 2.70s; }
.hub-map-svg .map-node:nth-of-type(28) { --d: 3.05s; }
.hub-map-svg .map-node:nth-of-type(29) { --d: 0.20s; }
.hub-map-svg .map-node:nth-of-type(30) { --d: 0.55s; }
.hub-map-svg .map-node:nth-of-type(31) { --d: 0.90s; }
.hub-map-svg .map-node:nth-of-type(32) { --d: 1.25s; }
.hub-map-svg .map-node:nth-of-type(33) { --d: 1.60s; }
.hub-map-svg .map-node:nth-of-type(34) { --d: 1.95s; }
.hub-map-svg .map-node:nth-of-type(35) { --d: 2.30s; }
.hub-map-svg .map-node:nth-of-type(36) { --d: 2.65s; }
.hub-map-svg .map-node:nth-of-type(37) { --d: 3.00s; }
.hub-map-svg .map-node:nth-of-type(38) { --d: 0.15s; }

@keyframes map-pulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.45; }
}

/* --- Competitors ticker: full-bleed strip drifting right, muted mono names --- */
.hub-ticker-wrap { width: 100vw; }

.hub-ticker {
  overflow: hidden;
  margin: 20px 0 16px;
  padding: 16px 0;
  border-top: 1px solid var(--auth-border);
  border-bottom: 1px solid var(--auth-border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-drift 38s linear infinite;
}

.hub-ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-set {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--auth-muted);
  opacity: 0.75;
}

.ticker-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--auth-muted);
  opacity: 0.4;
}

/* drifts to the right: start shifted one set left, end at rest */
@keyframes ticker-drift {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (max-width: 640px) {
  .hub-section { margin-top: 64px; }
  .hub-sub { font-size: 1.15rem; }
  .ticker-set { gap: 28px; padding-right: 28px; }
  .ticker-item { font-size: 0.78rem; }
}

.hub-map-cta { margin: 18px 0 0; }
.hub-map-cta a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lamp);
  text-decoration: none;
}
.hub-map-cta a:hover { text-decoration: underline; }
