@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&family=Exo+2:wght@400;700;900&family=Rubik:wght@300;400;500;600;700&family=JetBrains+Mono&display=swap');

:root {
  /* The signed-out portal has no commander preference to load, so it uses
     Ringbound's fixed Burning identity. Login-specific extensions
     (panel-strong, border-strong, bg3) layer on top of that public face. */
  --bg: #070402;
  --bg2: #150d05;
  --bg3: #1b1006;
  --panel: rgba(21, 13, 5, 0.88);
  --panel-strong: rgba(18, 10, 3, 0.94);
  --border: rgba(255, 176, 46, 0.18);
  --border-strong: rgba(255, 176, 46, 0.34);
  --accent: #ffb02e;
  --accent2: #d96b2b;
  --success: #7fff7f;
  --warn: #ffc75a;
  --text: #e8d8b8;
  --text-bright: #f7ead2;
  --text-dim: #b09a70;
  --danger: #ff4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --font-body: 'Outfit', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 176, 46, 0.14), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 107, 53, 0.12), transparent 24%),
    linear-gradient(180deg, #0b0703 0%, #070402 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
}

#login-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.portal-frame {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.portal-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px);
  gap: 20px;
  min-height: calc(100vh - 36px);
}

.portal-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(151, 131, 92, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 24%),
    linear-gradient(180deg, rgba(13, 7, 2, 0.48), rgba(13, 7, 2, 0.28));
  box-shadow: var(--shadow);
  pointer-events: none;
}

.portal-story,
.portal-auth {
  position: relative;
  min-width: 0;
}

.story-shell,
.auth-shell {
  position: relative;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(18, 11, 4, 0.78), rgba(16, 9, 3, 0.62));
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.story-shell::before,
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
  pointer-events: none;
}

.story-shell::after,
.auth-shell::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 176, 46, 0.08);
  pointer-events: none;
}

.story-shell {
  padding: 22px 28px 24px 32px;
}

.auth-shell {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top, rgba(255, 176, 46, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(18, 10, 3, 0.94), rgba(14, 8, 3, 0.98));
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.portal-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 176, 46, 0.2));
}

.portal-brand-copy {
  min-width: 0;
}

.portal-brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-bright);
}

.portal-brand-copy span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link,
.solid-link,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-family: var(--font-display);
  font-size: 11px;
  cursor: pointer;
}

.ghost-link,
.solid-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.ghost-link {
  border: 1px solid rgba(151, 131, 92, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-link:hover {
  border-color: var(--border-strong);
  color: var(--text-bright);
}

.solid-link {
  border: 1px solid rgba(255, 176, 46, 0.42);
  background: linear-gradient(135deg, rgba(255, 176, 46, 0.16), rgba(217, 107, 43, 0.04));
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, 0.08) inset;
}

.solid-link:hover {
  color: var(--text-bright);
  box-shadow: 0 0 22px rgba(255, 176, 46, 0.22);
}

.inline-link {
  color: var(--accent);
  letter-spacing: 0.2em;
}

.inline-link:hover {
  color: var(--text-bright);
}

.story-hero {
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 199, 90, 0.2);
  background: rgba(255, 199, 90, 0.06);
  color: var(--warn);
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 18px rgba(255, 199, 90, 0.45);
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-bright);
  text-shadow: 0 0 24px rgba(255, 176, 46, 0.08);
}

.hero-copy h1 span {
  display: block;
  color: var(--accent);
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-subnote {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.live-card {
  position: relative;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(26, 15, 5, 0.96), rgba(19, 11, 4, 0.9));
  border: 1px solid rgba(255, 176, 46, 0.12);
  min-height: 88px;
}

.live-card::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 46, 0.45), transparent);
}

.live-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.live-caption {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-dim);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  position: relative;
  padding: 14px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(21, 12, 4, 0.94), rgba(18, 10, 3, 0.82));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.signal-card.is-active,
.signal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 46, 0.28);
  box-shadow: 0 14px 30px rgba(25, 13, 3, 0.4);
}

.signal-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.signal-role small {
  color: var(--accent2);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.signal-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.signal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signal-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 176, 46, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.story-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.intel-card,
.screenshot-card {
  position: relative;
  min-height: 100%;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(24, 14, 5, 0.95), rgba(18, 10, 3, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.intel-card h2,
.screenshot-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.intel-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.briefing-foot {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.screenshot-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 176, 46, 0.12);
}

.screenshot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.screenshot-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-bright);
  text-transform: uppercase;
}

.screenshot-meta span {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

.auth-shell-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-header-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--warn);
  text-transform: uppercase;
}

.auth-header-copy span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(127, 255, 127, 0.16);
  background: rgba(127, 255, 127, 0.06);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--success);
  text-transform: uppercase;
}

.auth-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(127, 255, 127, 0.42);
}

.login-card {
  position: relative;
  flex: 1;
  padding: 20px 22px;
  border: 1px solid rgba(255, 176, 46, 0.12);
  background: linear-gradient(180deg, rgba(22, 13, 5, 0.94), rgba(15, 8, 3, 0.98));
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 176, 46, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%);
  pointer-events: none;
}

.logo-wrap {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}

.logo-glow-ring {
  position: absolute;
  inset: auto 50% 10px auto;
  width: 220px;
  height: 72px;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(255, 176, 46, 0.16), transparent 70%);
  filter: blur(12px);
}

.login-logo {
  width: min(200px, 66%);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 26px rgba(255, 176, 46, 0.2));
}

.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tagline span {
  color: rgba(255, 176, 46, 0.54);
}

.server-banner {
  margin: 12px 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 199, 90, 0.18);
  background: rgba(255, 199, 90, 0.06);
  color: var(--warn);
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-summary {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 176, 46, 0.12);
}

.tab-btn {
  position: relative;
  min-height: 40px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-btn.active {
  color: var(--text-bright);
}

.tab-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 176, 46, 0), rgba(255, 176, 46, 1), rgba(255, 176, 46, 0));
  box-shadow: 0 0 14px rgba(255, 176, 46, 0.4);
  transition: left 0.28s ease, width 0.28s ease;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.field-wrap {
  position: relative;
  margin-bottom: 12px;
}

.field-wrap label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 4px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease,
    font-size 0.2s ease,
    background 0.2s ease;
  pointer-events: none;
}

.field-wrap input:focus + label,
.field-wrap input:not(:placeholder-shown) + label,
.field-wrap.has-value label {
  top: 0;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(15, 8, 3, 0.98), rgba(22, 13, 5, 0.98));
  color: var(--accent);
  font-size: 11px;
}

.field-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 12px 44px 12px 14px;
  border: 1px solid rgba(151, 131, 92, 0.16);
  background: rgba(12, 7, 2, 0.84);
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-wrap input::placeholder {
  color: transparent;
}

.field-wrap input:focus {
  border-color: rgba(255, 176, 46, 0.64);
  background: rgba(17, 9, 3, 0.98);
  box-shadow: 0 0 0 1px rgba(255, 176, 46, 0.16), 0 0 18px rgba(255, 176, 46, 0.12);
}

.field-wrap::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.field-wrap:focus-within::after {
  transform: scaleX(1);
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--accent);
}

.icon-eye,
.icon-eye-off {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.remember-row,
.auth-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.remember-row label,
.auth-foot-row label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
}

.remember-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  appearance: none;
  border: 1px solid rgba(151, 131, 92, 0.22);
  background: rgba(18, 10, 3, 0.9);
  position: relative;
}

.remember-row input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: rgba(255, 176, 46, 0.18);
}

.remember-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.btn-submit {
  position: relative;
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 176, 46, 0.38);
  background: linear-gradient(135deg, rgba(255, 176, 46, 0.18), rgba(217, 107, 43, 0.05));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.14) 46%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.btn-submit:hover {
  color: var(--text-bright);
  box-shadow: 0 0 24px rgba(255, 176, 46, 0.2);
}

.btn-submit:hover::before {
  transform: translateX(120%);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 1.5px solid rgba(255, 176, 46, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  margin-top: 10px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.6;
}

.auth-alert.visible {
  display: flex;
}

.auth-alert.error {
  border-color: rgba(255, 68, 68, 0.24);
  background: rgba(255, 68, 68, 0.08);
  color: #ff8a8a;
}

.auth-alert.success {
  border-color: rgba(127, 255, 127, 0.2);
  background: rgba(127, 255, 127, 0.08);
  color: #b5ffb5;
}

.guest-entry {
  margin-top: 12px;
  text-align: center;
}
.guest-entry[hidden] { display: none; }

.guest-entry-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-dim);
  font: 10px var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.guest-entry-rule::before,
.guest-entry-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 176, 46, .12);
}

.btn-guest {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(151, 131, 92, .3);
  background: rgba(9, 6, 3, .6);
  color: var(--text-bright);
  font: 11px var(--font-display);
  letter-spacing: .19em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-guest:hover {
  border-color: rgba(255, 176, 46, .58);
  background: rgba(255, 176, 46, .08);
}

.btn-guest:disabled { opacity: .58; cursor: not-allowed; }

.guest-entry p {
  margin: 8px 10px 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.45;
}

.alert-icon {
  flex-shrink: 0;
}

.auth-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 176, 46, 0.08);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}

.auth-note strong {
  color: var(--text-bright);
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 2px;
  flex-wrap: wrap;
}

.auth-footer-copy {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
}

.auth-footer-links a:hover {
  color: var(--accent);
}

.ship-bg {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  filter: brightness(0.5) saturate(0.7);
}

.ship-bg-colossus {
  right: -8%;
  bottom: -10%;
  width: min(44vw, 700px);
  transform: rotate(-7deg);
  animation: shipDrift 24s ease-in-out infinite;
}

.ship-bg-harbinger {
  left: -6%;
  top: 8%;
  width: min(18vw, 300px);
  transform: rotate(10deg) scaleX(-1);
  animation: shipDriftAlt 18s ease-in-out infinite;
}

@keyframes shipDrift {
  0%,
  100% {
    transform: rotate(-7deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-16px);
  }
}

@keyframes shipDriftAlt {
  0%,
  100% {
    transform: rotate(10deg) scaleX(-1) translateY(0);
  }
  50% {
    transform: rotate(12deg) scaleX(-1) translateY(12px);
  }
}

@media (max-width: 1180px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .story-shell {
    padding-bottom: 28px;
  }

  .auth-shell {
    max-width: 720px;
    margin: 0 auto;
  }

  .live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid,
  .story-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-frame {
    padding: 14px;
  }

  .portal-grid {
    gap: 14px;
    min-height: auto;
  }

  .portal-auth {
    order: -1;
  }

  .story-shell,
  .auth-shell {
    padding: 22px 18px;
  }

  .portal-nav {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .portal-brand-copy strong {
    font-size: 15px;
    letter-spacing: 0.3em;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 14vw, 56px);
  }

  .hero-copy p {
    font-size: 15px;
  }

  .live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ship-bg {
    display: none;
  }
}

@media (max-width: 560px) {
  .portal-frame {
    padding: 10px;
  }

  .story-shell,
  .auth-shell {
    padding: 14px;
  }

  .auth-shell-inner {
    gap: 10px;
  }

  .auth-header-copy span,
  .auth-summary,
  .auth-note,
  .auth-footer {
    display: none;
  }

  .login-card {
    padding: 16px 14px;
  }

  .login-logo {
    width: min(158px, 58%);
  }

  .server-banner {
    margin: 10px 0 12px;
    padding: 9px 10px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .field-wrap input,
  .btn-submit,
  .btn-guest {
    min-height: 48px;
  }

  .pw-toggle {
    right: 0;
    width: 44px;
    height: 44px;
  }

  .remember-row label {
    min-height: 38px;
  }

  .remember-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .remember-row input[type="checkbox"]:checked::after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 13vw, 44px);
  }

  .live-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row,
  .remember-row,
  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-subnote,
  .auth-footer-copy {
    letter-spacing: 0.12em;
  }
}

/* ── Portal Visual Magnet Pass ─────────────────────────── */
body {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 176, 46, 0.045) 28%, transparent 48%),
    linear-gradient(245deg, transparent 10%, rgba(255, 107, 53, 0.04) 38%, transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #0b0703 0%, #070402 100%);
}

.portal-grid::before {
  border-color: rgba(255, 210, 122, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 24%),
    linear-gradient(180deg, rgba(13, 7, 2, 0.54), rgba(13, 7, 2, 0.30));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.54),
    0 0 52px rgba(255, 176, 46, 0.055);
}

.story-shell,
.auth-shell {
  border-color: rgba(255, 210, 122, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 0 32px rgba(255, 176, 46, 0.035);
}

.story-shell::after,
.auth-shell::after {
  border-color: rgba(255, 176, 46, 0.12);
}

.portal-brand img,
.login-logo {
  filter:
    grayscale(1)
    sepia(1)
    saturate(4.5)
    hue-rotate(350deg)
    brightness(1.12)
    contrast(1.08)
    drop-shadow(0 0 16px rgba(255, 176, 46, 0.24))
    drop-shadow(0 0 28px rgba(255, 107, 53, 0.08));
}

.hero-copy h1,
.auth-header-copy strong,
.portal-brand-copy strong {
  text-shadow:
    0 0 18px rgba(255, 176, 46, 0.18),
    0 0 42px rgba(255, 107, 53, 0.08);
}

.ghost-link,
.solid-link,
.tab-btn,
.btn-submit,
.pw-toggle {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ghost-link:hover,
.solid-link:hover,
.tab-btn:hover,
.btn-submit:hover,
.pw-toggle:hover {
  transform: translateY(-1px);
}

.live-card,
.signal-card,
.intel-card,
.screenshot-card,
.login-card,
.server-banner,
.auth-note,
.field-wrap input {
  border-color: rgba(255, 210, 122, 0.16);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.035);
}

.live-card,
.signal-card,
.intel-card,
.screenshot-card {
  background:
    linear-gradient(126deg, rgba(255, 176, 46, 0.07), transparent 35%),
    linear-gradient(305deg, rgba(255, 107, 53, 0.045), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.010) 42%, rgba(255,255,255,0) 100%),
    rgba(18, 10, 3, 0.86);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.live-card:hover,
.signal-card:hover,
.intel-card:hover,
.screenshot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 122, 0.30);
  box-shadow:
    0 26px 56px rgba(0,0,0,0.30),
    0 0 34px rgba(255, 176, 46, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.live-value {
  text-shadow: 0 0 18px rgba(255, 176, 46, 0.20);
}

.signal-card.is-active {
  box-shadow:
    0 24px 56px rgba(0,0,0,0.32),
    0 0 32px rgba(255, 107, 53, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.screenshot-card img {
  filter: saturate(1.08) contrast(1.05);
}

.field-wrap input:focus {
  border-color: rgba(255, 176, 46, 0.58);
  box-shadow:
    0 0 0 2px rgba(255, 176, 46, 0.11),
    inset 0 1px 0 rgba(255,255,255,0.045);
}

.btn-submit {
  box-shadow:
    0 16px 30px rgba(255, 176, 46, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.07);
}

.auth-status,
.eyebrow,
.server-banner,
.signal-tags span,
.briefing-foot {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 0 14px rgba(255, 176, 46, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  .ghost-link,
  .solid-link,
  .tab-btn,
  .btn-submit,
  .pw-toggle,
  .live-card,
  .signal-card,
  .intel-card,
  .screenshot-card {
    transition: none !important;
  }
}

/* ── The four beats (2026-08-23) ──────────────────────────────────────────
   Replaces the portal's own brochure: five live-stat cards, three opening
   archetypes the game no longer has, a rotating-intel card and a showcase
   panel. A visitor read one pitch on ring-bound.com and a different one on
   the way in — and the archetypes described a choice that does not exist.
   Same four beats as the marketing site, in the same order and language, at
   a size that does not compete with the form it sits beside. */
.portal-beats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.pbeat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.pbeat-n {
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #ffd27a;
  padding-top: 3px;
  opacity: 0.85;
}
.pbeat strong {
  display: block;
  font-family: 'Orbitron', 'Exo 2', sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #fff3dd;
  margin-bottom: 3px;
}
.pbeat p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #c9b68f;
}
.portal-livestats {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 176, 46, 0.14);
  font-family: 'Share Tech Mono', 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #a18c65;
}

/* The auth panels are <form> elements now rather than divs. Forms carry a
   default margin in some engines, and .tab-panel was written against a div. */
form.tab-panel { margin: 0; }

/* Keyboard focus has to be visible on a dark panel — this is the surface
   where not knowing where you are actually costs you an account. */
.auth-tabs .tab-btn:focus-visible,
.btn-submit:focus-visible,
.inline-link:focus-visible,
.pw-toggle:focus-visible,
.field-wrap input:focus-visible {
  outline: 2px solid #ffd27a;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .portal-beats { gap: 13px; margin-top: 20px; }
  .pbeat p { font-size: 13px; }
}

/* The portal headline is not the marketing hero — its job is to say what this
   is in one breath and then get out of the way of the form, which is the only
   thing on this page a visitor came to use. The old two-line "HOLD THE
   FRONTIER / BREACH THE RINGS" fitted the old scale; the new line is longer
   and at 52px it ran to four lines and dominated the sign-in card. */
.hero-copy h1 {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.04;
  letter-spacing: 0.03em;
  max-width: 620px;
}
.hero-copy h1 span { margin-top: 2px; }
