/* Shared campaign chrome: the same frontier signal follows every page. */
:root {
  --chrome-green: #62b08a;
  --chrome-green-soft: #8fd0aa;
  --chrome-red: #a8434b;
  --chrome-blue: #4a86c8;
  --chrome-line: #232b5c;
}

body {
  position: relative;
  background:
    radial-gradient(ellipse at 50% -15%, #1f2fa01c, transparent 42%),
    var(--night);
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

#react-chrome {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  min-height: 100%;
  pointer-events: none;
}

.page-chrome__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--chrome-green) 16%, var(--chrome-blue) 51%, var(--chrome-red) 84%, transparent);
  box-shadow: 0 0 13px #62b08a66;
  opacity: .7;
}

.page-chrome__rail--left { left: 16px; }
.page-chrome__rail--right { right: 16px; background: linear-gradient(180deg, transparent, var(--chrome-red) 17%, var(--chrome-blue) 52%, var(--chrome-green) 84%, transparent); }

.page-chrome__rail::before,
.page-chrome__rail::after {
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--chrome-green-soft);
  background: var(--night);
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 10px #62b08a99;
}

.page-chrome__rail::before { top: 17%; }
.page-chrome__rail::after { bottom: 17%; border-color: var(--chrome-red); box-shadow: 0 0 10px #a8434b99; }

.page-chrome__scanlines {
  position: absolute;
  inset: 0;
  opacity: .1;
  background: radial-gradient(#9cb8ff 0 1px, transparent 1px) 0 0 / 13px 13px;
  mix-blend-mode: screen;
}

.page-chrome__label {
  position: absolute;
  top: 50%;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: .08em;
  opacity: .7;
  writing-mode: vertical-rl;
}

.page-chrome__label--left { left: 27px; transform: translateY(-50%) rotate(180deg); }
.page-chrome__label--right { right: 27px; transform: translateY(-50%); }

body > header,
body > main,
body > footer { z-index: 1; }

.ticker,
.lower-band {
  background: linear-gradient(180deg, #15256bbd, color-mix(in srgb, var(--panel, #0b1030) 82%, transparent)) !important;
}

.ticker { border-block: 1px solid var(--line, #232b5c); background: var(--panel, #0b1030); }
.ticker-inner { display: flex; min-height: 38px; align-items: center; gap: 18px; }
.ticker-label { flex: 0 0 auto; color: var(--em, var(--green, #62b08a)); font-family: var(--pixel); font-size: 9px; white-space: nowrap; }
.ticker-window { min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 24s linear infinite; }
.ticker-copy { flex: 0 0 auto; padding-right: 72px; color: var(--muted, #7f88b8); font-size: 11px; white-space: nowrap; }
.ticker-copy b { color: var(--ink, #cfd3ee); font-weight: 500; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .ticker-inner { gap: 12px; }
  .ticker-label { font-size: 8px; }
  .ticker-copy { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-copy[aria-hidden="true"] { display: none; }
  .ticker-copy { white-space: normal; }
}

.section {
  background: linear-gradient(180deg, transparent, #15256b16 45%, transparent);
}

.topbar {
  border-bottom-color: #4a86c83b;
  box-shadow: 0 8px 24px #02030d55;
}

.nav-links a {
  position: relative;
  transition: color .2s ease, text-shadow .2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--chrome-green);
  box-shadow: 0 0 8px var(--chrome-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links .active::after { transform: scaleX(1); transform-origin: left; }

.header-auth { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.nav-links .discord-login,
.nav-links .discord-logout { padding: 6px 9px; border: 1px solid var(--chrome-green); color: var(--chrome-green-soft); font-family: var(--body, monospace); font-size: 11px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nav-links .discord-login:hover,
.nav-links .discord-login:focus-visible { background: #62b08a20; color: #c5f0d6; }
.nav-links .discord-logout { border-color: var(--chrome-line); color: var(--muted); }
.nav-links .discord-logout:hover,
.nav-links .discord-logout:focus-visible { color: var(--ink); }
.discord-user { max-width: 120px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.discord-avatar { width: 24px; height: 24px; border: 1px solid var(--chrome-green); border-radius: 50%; object-fit: cover; }
.header-auth--error { color: #e79a9e; font-size: 10px; }

@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 11px; }
  .nav-links .discord-login,
  .nav-links .discord-logout { padding: 5px 7px; font-size: 10px; }
  .discord-user { max-width: 82px; }
  .page-chrome__rail--left { left: 7px; }
  .page-chrome__rail--right { right: 7px; }
  .page-chrome__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links a { transition: none; }
  .page-chrome__scanlines { opacity: .08; }
}
