:root {
  --ink: #0b1110;
  --ink-2: #101817;
  --surface: #151f1d;
  --surface-2: #1a2623;
  --panel: #e8e9df;
  --paper: #f2f1e8;
  --text: #e7eadf;
  --muted: #9aa99f;
  --dim: #718079;
  --line: rgba(222, 233, 222, .14);
  --line-strong: rgba(222, 233, 222, .28);
  --acid: #d3ef6b;
  --acid-dark: #192207;
  --rust: #f17a43;
  --sea: #64c7c0;
  --danger: #ff846f;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
  --radius: 8px;
  --font-display: "Bahnschrift SemiCondensed", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --font-body: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(180deg, #0b1110 0%, #0d1413 50%, #0a0f0e 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}
body::selection { color: var(--acid-dark); background: var(--acid); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
main { min-height: calc(100vh - 190px); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
code, .eyebrow, .hero-ruler, .future-code, .error-code { font-family: var(--font-mono); }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--acid-dark);
  background: var(--acid);
  border-radius: 6px;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 16, .90);
  backdrop-filter: blur(18px);
}
.site-brand {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  transform: skewX(-8deg);
}
.brand-mark i { display: block; background: var(--acid); }
.brand-mark i:nth-child(1) { height: 48%; }
.brand-mark i:nth-child(2) { height: 100%; background: var(--rust); }
.brand-mark i:nth-child(3) { height: 68%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: var(--font-display); font-size: 17px; letter-spacing: .12em; }
.brand-copy small { margin-top: 5px; color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--acid); }
.account-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.account-nav form { margin: 0; }
.account-chip {
  max-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(211,239,107,.10);
}
.nav-action {
  min-height: 36px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.nav-action:hover { border-color: var(--acid); color: var(--acid); }
.nav-action-quiet { border-color: transparent; color: var(--muted); }
.nav-action-solid { border-color: var(--acid); background: var(--acid); color: var(--acid-dark); font-weight: 700; }
.nav-action-solid:hover { background: #e1fb84; color: var(--acid-dark); }

.flash-stack {
  position: fixed;
  z-index: 100;
  top: 88px;
  right: clamp(16px, 4vw, 48px);
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
}
.flash-message {
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--acid);
  border-radius: 5px;
  color: var(--text);
  background: rgba(21, 31, 29, .96);
  box-shadow: var(--shadow);
  font-size: 13px;
}
.flash-message.is-error { border-left-color: var(--danger); }

.button {
  min-height: 44px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--acid-dark); background: var(--acid); border-color: var(--acid); }
.button-primary:hover { background: #e4fa8b; border-color: #e4fa8b; }
.button-ghost { color: var(--text); background: rgba(255,255,255,.025); border-color: var(--line-strong); }
.button-ghost:hover { color: var(--acid); border-color: var(--acid); }
.button-card { color: var(--acid-dark); background: var(--acid); }
.text-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.text-link:hover { color: var(--acid); }
.eyebrow {
  margin-bottom: 14px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}
.eyebrow > span { margin-right: 10px; padding-right: 10px; border-right: 1px solid var(--line-strong); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.portal-hero {
  position: relative;
  min-height: min(790px, calc(100vh - 72px));
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero-media { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: #111715; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,12,11,.98) 0%, rgba(8,12,11,.82) 32%, rgba(8,12,11,.22) 68%, rgba(8,12,11,.44) 100%),
    linear-gradient(0deg, rgba(8,12,11,.92) 0%, transparent 40%, rgba(8,12,11,.15) 100%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.08);
}
.hero-scan {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .12;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.2) 4px 5px);
}
.hero-inner {
  width: min(1340px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(90px, 12vh, 150px) 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: end;
  gap: clamp(38px, 7vw, 110px);
}
.hero-copy { max-width: 760px; }
.hero-copy h1 {
  margin: 0 0 24px;
  color: var(--paper);
  font-size: clamp(68px, 9.2vw, 138px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: .82;
  text-transform: uppercase;
}
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1px rgba(242,241,232,.62); }
.hero-lead { max-width: 600px; margin-bottom: 32px; color: #c5cec3; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.85; }
.signed-in-note { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.hero-telemetry {
  justify-self: end;
  width: 100%;
  padding: 0 20px 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(10,15,14,.52);
  backdrop-filter: blur(10px);
}
.telemetry-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.telemetry-head span { color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; }
.telemetry-head i { display: inline-flex; align-items: center; gap: 6px; color: var(--acid); font-family: var(--font-mono); font-size: 9px; font-style: normal; }
.telemetry-head i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.hero-telemetry dl { margin: 0; }
.hero-telemetry dl > div { padding: 12px 0; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid rgba(222,233,222,.08); }
.hero-telemetry dt { color: var(--muted); font-size: 12px; }
.hero-telemetry dd { margin: 0; color: var(--paper); font-family: var(--font-display); font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-telemetry p { margin: 15px 0 0; color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; }
.hero-ruler { position: absolute; right: 0; bottom: 0; left: 0; height: 44px; display: flex; align-items: center; gap: 16px; padding: 0 clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); background: rgba(9,14,13,.8); color: var(--dim); font-size: 8px; letter-spacing: .16em; }
.hero-ruler i { flex: 1; height: 1px; background: var(--line); }

.game-catalog { padding: clamp(80px, 10vw, 130px) clamp(18px, 4vw, 56px); background: #0e1513; border-bottom: 1px solid var(--line); }
.section-header {
  width: min(1340px, 100%);
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: end;
  gap: 40px;
}
.section-header h2 { margin: 0; color: var(--paper); font-size: clamp(36px, 4.3vw, 64px); line-height: 1; }
.section-header > p { margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.game-grid { width: min(1340px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card {
  --accent: var(--rust);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
}
.game-card.accent-signal { --accent: var(--acid); }
.game-card.accent-marine { --accent: var(--sea); }
.game-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.game-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 45%),
    #18211f;
}
.game-visual img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.76) contrast(1.06); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.game-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,11,.64), transparent 48%); }
.game-card:hover .game-visual img { transform: scale(1.025); filter: saturate(.92) contrast(1.04); }
.game-mode { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 6px 9px; color: var(--acid-dark); background: var(--accent); border-radius: 3px; font-family: var(--font-mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.game-index { position: absolute; z-index: 2; right: 16px; bottom: 12px; color: rgba(255,255,255,.72); font-family: var(--font-display); font-size: 38px; line-height: 1; }
.game-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(211,239,107,.12) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(211,239,107,.12) 50%, transparent 50.2%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 12px),
    #111b18;
}
.game-visual-placeholder i { width: min(150px, 34%); height: 1px; margin-bottom: 12px; background: currentColor; box-shadow: 0 -10px 0 rgba(211,239,107,.28), 0 10px 0 rgba(211,239,107,.28); }
.game-visual-placeholder b { font-family: var(--font-display); font-size: clamp(46px, 6vw, 82px); letter-spacing: .14em; line-height: 1; }
.game-visual-placeholder small { color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: .22em; }
.game-content { padding: 26px 26px 24px; }
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.game-heading p { margin-bottom: 5px; color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; }
.game-heading h3 { margin: 0; color: var(--paper); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.game-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--acid); font-family: var(--font-mono); font-size: 9px; letter-spacing: .10em; }
.game-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.game-status.is-reserved { color: var(--sea); }
.game-tagline { margin: 24px 0 8px; color: var(--paper); font-size: 16px; font-weight: 700; }
.game-description { min-height: 76px; margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.game-meta { padding: 15px 0; display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.game-meta b { color: var(--paper); font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.game-actions { padding-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.reserved-note { color: var(--dim); font-size: 11px; }
.future-berth {
  min-height: 190px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}
.future-code { color: var(--sea); font-size: 9px; letter-spacing: .14em; }
.future-berth h3 { max-width: 380px; margin-bottom: 8px; color: var(--paper); font-size: 25px; }
.future-berth p { max-width: 460px; margin: 0; color: var(--dim); font-size: 13px; }
.future-berth a, .future-label { color: var(--acid); font-size: 12px; text-decoration: none; }
.future-label { color: var(--dim); font-family: var(--font-mono); }
.empty-berth { min-height: 220px; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty-berth a { color: var(--acid); }

.portal-manifest {
  width: min(1340px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
}
.portal-manifest h2 { margin: 0; color: var(--paper); font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }
.manifest-list { display: grid; }
.manifest-list > div { padding: 22px 0; display: grid; grid-template-columns: 42px minmax(110px, .45fr) minmax(0, 1fr); align-items: baseline; gap: 16px; border-top: 1px solid var(--line); }
.manifest-list > div:last-child { border-bottom: 1px solid var(--line); }
.manifest-list span { color: var(--acid); font-family: var(--font-mono); font-size: 9px; }
.manifest-list b { color: var(--paper); font-size: 14px; }
.manifest-list p { margin: 0; color: var(--muted); font-size: 12px; }

.site-footer {
  min-height: 112px;
  padding: 26px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  background: #080d0c;
  font-size: 11px;
}
.site-footer > div { display: flex; flex-direction: column; gap: 5px; }
.site-footer b { color: var(--paper); font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; }
.site-footer p { margin: 0; }

/* Authentication */
.auth-page { background: #0b1110; }
.auth-shell {
  min-height: calc(100vh - 184px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(480px, .9fr);
  border-bottom: 1px solid var(--line);
}
.auth-context {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 130px) clamp(28px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(9,14,13,.96), rgba(9,14,13,.72)),
    linear-gradient(0deg, rgba(9,14,13,.8), transparent),
    url("/static/images/portal/saltline-pvp.jpg?v=20261125a") center / cover;
}
.auth-context::after { content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.25) 4px 5px); }
.auth-context > * { position: relative; z-index: 1; }
.auth-context h1 { max-width: 680px; margin: 0 0 26px; color: var(--paper); font-size: clamp(54px, 6.2vw, 96px); line-height: .92; }
.auth-context > p:not(.eyebrow) { max-width: 500px; color: #b7c0b6; font-size: 15px; line-height: 1.8; }
.auth-proof { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 18px; }
.auth-proof span { padding-top: 12px; border-top: 1px solid var(--line-strong); color: var(--dim); font-family: var(--font-mono); font-size: 8px; letter-spacing: .13em; }
.auth-panel { padding: clamp(44px, 6vw, 90px) clamp(24px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; background: #111917; }
.auth-panel-head { margin-bottom: 46px; padding-bottom: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; }
.auth-panel-head i { color: var(--acid); font-style: normal; }
.auth-panel h2 { margin-bottom: 10px; color: var(--paper); font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.form-intro { margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.form-alert { margin-bottom: 18px; padding: 11px 13px; border-left: 3px solid var(--danger); color: #ffd4cc; background: rgba(255,132,111,.08); font-size: 13px; }
.stack-form { display: grid; gap: 18px; }
.stack-form label, .admin-filter label, .form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; }
.stack-form label > span em { color: var(--dim); font-style: normal; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
  color: var(--paper);
  background: #0c1311;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #59665f; }
input:focus, select:focus, textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(211,239,107,.08); }
label small { color: var(--dim); font-size: 10px; line-height: 1.5; }
.form-submit { width: 100%; margin-top: 5px; }
.auth-capabilities { margin-top: 20px; display: grid; gap: 8px; }
.auth-capabilities span { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; }
.auth-capabilities i { color: var(--sea); font-family: var(--font-mono); font-size: 8px; font-style: normal; letter-spacing: .12em; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.label-row a { color: var(--acid); font-size: 10px; text-decoration: none; }
.oauth-button { margin-top: 18px; padding: 12px 14px; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--paper); background: #101d2c; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.oauth-button:hover { border-color: #1677ff; transform: translateY(-1px); }
.oauth-mark { grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1677ff; font: 700 18px/1 var(--font-display); }
.oauth-button strong { font-size: 12px; }
.oauth-button small { color: var(--dim); font-size: 9px; }
.account-security-list { margin-bottom: 24px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 5px; background: rgba(5,10,9,.25); }
.account-security-list > div, .account-security-list > form { min-height: 58px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.account-security-list > div span { flex: 1 1 auto; color: var(--muted); font-size: 11px; }
.account-security-list > div span i { margin-right: 7px; color: var(--sea); font: 8px/1 var(--font-mono); font-style: normal; letter-spacing: .1em; }
.account-security-list > div b { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--paper); font-size: 11px; font-weight: 500; }
.account-security-list > div small { color: var(--acid); font-size: 9px; }
.account-security-list > form, .account-security-list > a { border-bottom: 0; }
.account-security-list .button { width: 100%; margin: 0 0 8px; }
.alipay-shell { grid-template-columns: minmax(280px, .72fr) minmax(620px, 1.28fr); }
.alipay-panel { padding-left: clamp(26px, 4vw, 62px); padding-right: clamp(26px, 4vw, 62px); }
.alipay-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.alipay-link-block { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: rgba(5,10,9,.28); }
.alipay-link-block h3 { margin: 5px 0 20px; color: var(--paper); font-size: 23px; }
.alipay-link-block .form-row { grid-template-columns: 1fr; gap: 14px; }
.alipay-qr-panel { align-items: flex-start; }
.alipay-qr-wrap { margin: 4px auto 18px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: #f5f4ed; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.alipay-qr-wrap img { display: block; width: min(280px, 66vw); height: auto; }
.alipay-qr-status { width: 100%; margin: 4px 0 0; color: var(--acid); font-size: 12px; text-align: center; }
.alipay-qr-status.is-error { color: var(--danger); }
.alipay-qr-count { width: 100%; margin: 7px 0 0; color: var(--dim); font: 9px/1.5 var(--font-mono); letter-spacing: .08em; text-align: center; }
.auth-switch { margin: 24px 0 0; color: var(--dim); font-size: 12px; }
.auth-switch a { color: var(--acid); text-decoration: none; }

/* PvE reserved */
.pve-reserved {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: clamp(60px, 9vw, 120px) clamp(22px, 7vw, 110px);
  background: #0b1110;
}
.pve-reserved-grid {
  position: absolute;
  inset: 0;
  opacity: .7;
  background:
    linear-gradient(90deg, rgba(100,199,192,.10) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(0deg, rgba(100,199,192,.08) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(135deg, #0c1614, #0a100f 60%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
.pve-reserved::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 5%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(100,199,192,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(100,199,192,.025), 0 0 0 96px rgba(100,199,192,.018);
}
.pve-reserved-inner { position: relative; z-index: 1; max-width: 780px; }
.pve-reserved-index { display: block; margin-bottom: 16px; color: transparent; font-family: var(--font-display); font-size: clamp(110px, 19vw, 250px); font-weight: 900; line-height: .72; -webkit-text-stroke: 1px rgba(100,199,192,.25); }
.pve-reserved h1 { margin: 0 0 22px; color: var(--paper); font-size: clamp(62px, 9vw, 132px); line-height: .82; }
.pve-reserved-inner > p:not(.eyebrow) { max-width: 560px; color: #b8c4bd; font-size: clamp(15px, 1.7vw, 19px); }
.pve-reserved-rule { max-width: 620px; margin: 34px 0; display: flex; align-items: center; gap: 18px; color: var(--sea); font-family: var(--font-mono); font-size: 8px; letter-spacing: .18em; }
.pve-reserved-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--sea), transparent); }
.pve-reserved-inner > small { display: block; margin-top: 28px; color: var(--dim); font-size: 11px; }

/* Admin */
.admin-page { background: #0c1211; }
.admin-shell { width: min(1540px, 100%); min-height: calc(100vh - 72px); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.admin-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); padding: 34px 22px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #0a100f; }
.admin-identity { padding: 0 8px 30px; border-bottom: 1px solid var(--line); }
.admin-identity h1 { margin: 0 0 16px; color: var(--paper); font-size: 35px; letter-spacing: .04em; line-height: .9; }
.admin-identity > span { color: var(--dim); font-size: 10px; }
.admin-nav { margin-top: 24px; display: grid; gap: 4px; }
.admin-nav a { min-height: 46px; padding: 0 12px; display: grid; grid-template-columns: 34px 1fr; align-items: center; border: 1px solid transparent; border-radius: 4px; color: var(--muted); text-decoration: none; }
.admin-nav a span { color: var(--dim); font-family: var(--font-mono); font-size: 9px; }
.admin-nav a b { font-size: 13px; font-weight: 600; }
.admin-nav a:hover { border-color: var(--line); color: var(--paper); }
.admin-nav a.is-active { border-color: rgba(211,239,107,.26); color: var(--acid); background: rgba(211,239,107,.06); }
.admin-nav a.is-active span { color: var(--acid); }
.admin-sidebar-foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); color: var(--dim); font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; }
.admin-sidebar-foot a { color: var(--muted); font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-decoration: none; }
.admin-sidebar-foot a:hover { color: var(--acid); }
.admin-main { min-width: 0; padding: clamp(28px, 4vw, 56px); }
.admin-page-head { min-height: 105px; margin-bottom: 34px; padding-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.admin-page-head h2 { margin: 0; color: var(--paper); font-size: clamp(38px, 4.5vw, 64px); line-height: .95; }
.admin-count { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-metrics article { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: #111a18; }
.admin-metrics article:last-child { border-right: 0; }
.admin-metrics span { color: var(--muted); font-size: 11px; }
.admin-metrics b { color: var(--paper); font-family: var(--font-display); font-size: 45px; font-weight: 700; line-height: 1; }
.admin-metrics small { color: var(--dim); font-size: 9px; }
.admin-split { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 22px; }
.admin-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #111a18; }
.panel-head { min-height: 80px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.panel-head .eyebrow { margin-bottom: 5px; }
.panel-head h3 { margin: 0; color: var(--paper); font-size: 21px; }
.panel-head > a { color: var(--acid); font-size: 11px; text-decoration: none; }
.admin-game-status { padding: 0 20px; }
.admin-game-status > article { padding: 18px 0; display: grid; grid-template-columns: minmax(200px, 1fr) auto auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.admin-game-status > article:last-child { border-bottom: 0; }
.status-name { min-width: 0; display: flex; align-items: center; gap: 12px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--dim); }
.status-dot.is-live { background: var(--acid); box-shadow: 0 0 0 4px rgba(211,239,107,.08); }
.status-name div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.status-name b { overflow: hidden; color: var(--paper); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.status-name small { color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.status-numbers { display: flex; gap: 14px; color: var(--dim); font-size: 9px; white-space: nowrap; }
.status-numbers b { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }
.status-label { padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; white-space: nowrap; }
.status-label.is-live { border-color: rgba(211,239,107,.24); color: var(--acid); background: rgba(211,239,107,.06); }
.admin-feed { padding: 0 20px; }
.admin-feed article { padding: 16px 0; border-bottom: 1px solid var(--line); }
.admin-feed article:last-child { border-bottom: 0; }
.feed-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--dim); font-size: 9px; }
.feed-meta b { color: var(--paper); font-size: 11px; }
.feed-meta span { padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; }
.feed-meta .is-visible { color: var(--acid); }
.admin-feed p { margin: 8px 0 6px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.admin-feed time { color: #59665f; font-family: var(--font-mono); font-size: 8px; }
.admin-callout { margin-top: 22px; padding: 24px; display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr) auto; align-items: center; gap: 28px; border: 1px solid rgba(100,199,192,.22); border-radius: var(--radius); background: rgba(100,199,192,.045); }
.admin-callout .eyebrow { color: var(--sea); }
.admin-callout h3 { margin: 0; color: var(--paper); font-size: 22px; }
.admin-callout p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-filter { margin-bottom: 20px; padding: 16px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #101816; }
.admin-filter label { min-width: min(320px, 100%); flex: 1 1 260px; }
.admin-filter .button { min-width: 96px; }
.admin-table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--dim); background: #0d1513; font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: .10em; text-align: left; white-space: nowrap; }
.admin-table td { padding: 15px; border-bottom: 1px solid rgba(222,233,222,.075); color: var(--muted); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.018); }
.user-cell { min-width: 190px; display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--acid); font-family: var(--font-display); font-size: 18px; }
.user-cell > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.user-cell b { color: var(--paper); font-size: 12px; }
.user-cell small, .block-note { color: var(--dim); font-size: 9px; }
.inline-controls { min-width: 260px; display: flex; align-items: center; gap: 7px; }
.inline-controls select { min-height: 34px; padding: 5px 24px 5px 8px; font-size: 11px; }
.inline-controls button, .small-action { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--paper); background: transparent; font-size: 10px; cursor: pointer; }
.inline-controls button:hover, .small-action:hover { border-color: var(--acid); color: var(--acid); }
.small-action.danger:hover { border-color: var(--danger); color: var(--danger); }
.self-account { padding: 5px 8px; border: 1px solid rgba(211,239,107,.22); border-radius: 3px; color: var(--acid); font-size: 9px; white-space: nowrap; }
.admin-intro { max-width: 760px; margin: -8px 0 24px; color: var(--muted); font-size: 13px; }
.admin-games { display: grid; gap: 22px; }
.admin-game-editor { overflow: hidden; display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); border: 1px solid var(--line); border-radius: var(--radius); background: #111a18; }
.game-editor-preview { position: relative; min-height: 370px; border-right: 1px solid var(--line); }
.game-editor-preview img { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; filter: saturate(.66); }
.game-editor-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,14,13,.8), transparent 60%); }
.game-editor-preview > span { position: absolute; z-index: 1; bottom: 18px; left: 18px; padding: 5px 8px; color: var(--acid-dark); background: var(--acid); font-family: var(--font-mono); font-size: 8px; font-weight: 800; }
.admin-game-editor.accent-oxide .game-editor-preview > span { background: var(--rust); }
.admin-game-editor.accent-marine .game-editor-preview > span { background: var(--sea); }
.admin-game-editor form { min-width: 0; padding: 24px; }
.game-editor-head { padding-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.game-editor-head p { margin-bottom: 5px; color: var(--dim); font-family: var(--font-mono); font-size: 8px; }
.game-editor-head h3 { margin: 0; color: var(--paper); font-size: 26px; }
.game-editor-stats { padding: 12px 0; display: flex; flex-wrap: wrap; gap: 15px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 9px; }
.game-editor-stats b { color: var(--paper); font-family: var(--font-mono); font-size: 11px; }
.form-grid { padding-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid input, .form-grid select, .form-grid textarea { font-size: 12px; }
.game-editor-actions { display: flex; align-items: flex-end; justify-content: flex-end; }
.comments-table { min-width: 980px; }
.comment-copy { max-width: 430px; margin: 0; color: var(--text); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comments-table tr.is-muted { opacity: .55; }
.game-pill { padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; white-space: nowrap; }
.block-note { display: block; margin-top: 3px; }
.admin-table code { color: var(--dim); font-size: 9px; }
.admin-empty { margin: 0; padding: 28px 20px; color: var(--dim); font-size: 12px; text-align: center; }
.admin-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--dim); font-size: 10px; }
.admin-pagination a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); text-decoration: none; }
.admin-pagination a:hover { border-color: var(--acid); color: var(--acid); }

/* Errors */
.error-page { background: #0b1110; }
.error-shell { min-height: calc(100vh - 184px); padding: clamp(60px, 10vw, 130px) clamp(22px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(9,14,13,.96), rgba(9,14,13,.62)), url("/static/images/portal/saltline-pvp.jpg?v=20261125a") center / cover; }
.error-code { margin-bottom: 22px; color: var(--rust); font-size: 10px; letter-spacing: .18em; }
.error-shell h1 { max-width: 800px; margin-bottom: 20px; color: var(--paper); font-size: clamp(54px, 8vw, 112px); line-height: .9; }
.error-shell > p:not(.error-code) { max-width: 570px; margin-bottom: 30px; color: #b6c1b7; font-size: 15px; line-height: 1.8; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; align-items: end; }
  .hero-telemetry { width: min(420px, 100%); justify-self: start; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metrics article:nth-child(2) { border-right: 0; }
  .admin-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .admin-split { grid-template-columns: 1fr; }
  .admin-game-editor { grid-template-columns: 1fr; }
  .game-editor-preview { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .site-header { min-height: 64px; }
  .brand-copy small { display: none; }
  .account-chip { display: none; }
  .nav-action { min-height: 34px; padding: 6px 12px; }
  .portal-hero { min-height: auto; }
  .hero-inner { padding-top: 100px; padding-bottom: 80px; }
  .hero-copy h1 { font-size: clamp(58px, 16vw, 98px); }
  .hero-telemetry { display: none; }
  .section-header { grid-template-columns: 1fr; gap: 20px; }
  .game-grid { grid-template-columns: 1fr; }
  .portal-manifest { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-context { min-height: 420px; padding-top: 70px; padding-bottom: 70px; }
  .auth-panel { min-height: 600px; }
  .alipay-shell { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-identity { padding-bottom: 18px; }
  .admin-identity h1 { font-size: 28px; }
  .admin-identity h1 br { display: none; }
  .admin-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .admin-nav a { min-height: 42px; grid-template-columns: 1fr; justify-items: center; gap: 2px; text-align: center; }
  .admin-nav a span { font-size: 7px; }
  .admin-nav a b { font-size: 11px; }
  .admin-sidebar-foot { display: none; }
  .admin-callout { grid-template-columns: 1fr; }
  .admin-callout .button { width: max-content; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 14px; gap: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand-copy strong { font-size: 14px; letter-spacing: .08em; }
  .account-nav { gap: 5px; }
  .nav-action-quiet { display: none; }
  .portal-hero { border-bottom: 0; }
  .hero-inner { width: calc(100% - 32px); padding: 82px 0 74px; }
  .hero-copy h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-lead { font-size: 14px; }
  .hero-actions .button { width: 100%; }
  .hero-ruler { display: none; }
  .game-catalog { padding: 72px 16px; }
  .game-content { padding: 20px; }
  .game-heading { gap: 10px; }
  .game-heading h3 { font-size: 24px; }
  .game-description { min-height: 0; }
  .game-meta { gap: 14px; }
  .manifest-list > div { grid-template-columns: 30px 1fr; }
  .manifest-list p { grid-column: 2; }
  .portal-manifest { width: calc(100% - 32px); }
  .site-footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
  .auth-context { min-height: 380px; padding: 60px 20px; }
  .auth-context h1 { font-size: clamp(52px, 15vw, 76px); }
  .auth-proof { gap: 10px; }
  .auth-panel { min-height: auto; padding: 52px 20px 66px; }
  .alipay-link-grid { grid-template-columns: 1fr; }
  .account-security-list > div, .account-security-list > form { flex-wrap: wrap; padding: 10px 0; }
  .auth-panel-head { margin-bottom: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .pve-reserved { min-height: calc(100vh - 64px); padding: 64px 18px; }
  .pve-reserved h1 { font-size: clamp(55px, 18vw, 82px); }
  .admin-main { padding: 24px 14px 42px; }
  .admin-page-head { min-height: 90px; }
  .admin-page-head h2 { font-size: 39px; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics article { min-height: 126px; padding: 16px; }
  .admin-metrics b { font-size: 36px; }
  .admin-game-status > article { grid-template-columns: 1fr auto; }
  .status-numbers { grid-column: 1 / -1; padding-left: 20px; }
  .panel-head { align-items: flex-start; }
  .admin-filter { align-items: stretch; }
  .admin-filter .button { flex: 1 1 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .game-editor-actions .button { width: 100%; }
  .error-shell { min-height: calc(100vh - 64px); padding: 64px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
