@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #07070c;
  --surface: rgba(17, 16, 28, 0.82);
  --surface-hover: rgba(24, 22, 38, 0.92);
  --surface-solid: #100f1a;
  --ink: #faf7f2;
  --muted: #a69fb8;
  --line: rgba(255, 255, 255, 0.09);
  --line-glow: rgba(255, 77, 141, 0.35);
  --pink: #ff4d8d;
  --coral: #ff9e6d;
  --cyan: #5ce1e6;
  --vi-grad: linear-gradient(120deg, #ff4d8d 0%, #ff9e6d 52%, #5ce1e6 100%);
  --vi-warm: linear-gradient(120deg, #ff4d8d 0%, #ff9e6d 100%);
  --max: 1400px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 77, 141, 0.14), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(92, 225, 230, 0.11), transparent 36%),
    radial-gradient(circle at 50% 60%, rgba(255, 158, 109, 0.05), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.cmd-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 850;
}

h2 {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h3 {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 750;
}

em {
  font-style: normal;
  background: var(--vi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--pink);
  padding: 8px 16px;
  border-radius: 8px;
  color: #07070c;
  font-weight: 750;
}

.skip-link:focus {
  top: 12px;
}

/* 1. Quiet Chrome Header + Command Bar + Progress Tracker */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 7, 12, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--vi-warm);
  color: #0b0710;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(255, 77, 141, 0.35);
  flex-shrink: 0;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
  font-weight: 650;
}

/* Raycast / Linear Command Bar Trigger */
.cmd-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
  flex: 1;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.cmd-trigger:hover {
  border-color: rgba(92, 225, 230, 0.45);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.cmd-trigger-icon {
  color: var(--cyan);
  font-size: 14px;
}

.cmd-trigger-text {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmd-trigger kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dcd6e8;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-header nav a {
  font-size: 13px;
  font-weight: 650;
  color: #ccc5da;
  position: relative;
  white-space: nowrap;
  padding: 6px 2px;
  transition: color 0.16s;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #fff;
}

.site-header nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--vi-warm);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(92, 225, 230, 0.08);
  border: 1px solid rgba(92, 225, 230, 0.28);
  font-size: 12px;
  font-weight: 650;
  color: #e4f9fa;
  white-space: nowrap;
}

.progress-pill strong {
  color: var(--cyan);
  font-weight: 800;
}

.language-switch {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.language-switch:hover {
  border-color: var(--pink);
  color: var(--coral);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 16px;
  height: 2px;
  background: currentColor;
}

/* Shared Kicker, Eyebrow & Buttons */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--coral);
  line-height: 1.4;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kicker-badge {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #dcd5e8;
}

.kicker-badge.cyan-badge {
  background: rgba(92, 225, 230, 0.1);
  border-color: rgba(92, 225, 230, 0.35);
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--vi-warm);
  color: #120916;
  box-shadow: 0 6px 20px rgba(255, 77, 141, 0.25);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.button.secondary {
  background: rgba(92, 225, 230, 0.12);
  border-color: rgba(92, 225, 230, 0.35);
  color: var(--cyan);
}

.small-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
}

/* Workspace Shell & Bento Cards */
.workspace-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 64px;
  display: grid;
  gap: 18px;
}

.narrow-shell {
  max-width: 980px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 0;
}

/* Compact Workspace Banner */
.workspace-banner {
  background:
    linear-gradient(110deg, rgba(16, 14, 28, 0.92) 0%, rgba(28, 18, 38, 0.84) 55%, rgba(14, 24, 36, 0.88) 100%),
    url("/assets/tropical-city-hero.webp") center/cover no-repeat;
  border: 1px solid rgba(255, 158, 109, 0.24);
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.banner-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--vi-warm);
  color: #120916;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.banner-left p {
  margin-top: 8px;
  font-size: 13.5px;
  color: #ded8ea;
  max-width: 660px;
}

.banner-right {
  background: rgba(9, 8, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  backdrop-filter: blur(14px);
}

.banner-search {
  display: flex;
  gap: 8px;
}

.banner-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 7, 12, 0.9);
  color: var(--ink);
  font-size: 13px;
}

.banner-search input::placeholder {
  color: #8f88a3;
}

.cmd-wake-btn {
  font-family: inherit;
  padding: 0 12px;
  color: var(--cyan);
  border-color: rgba(92, 225, 230, 0.3);
}

.banner-chips,
.quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ede7f6;
  transition: border-color 0.15s, background 0.15s;
}

.quick-chip:hover {
  border-color: var(--pink);
  background: rgba(255, 77, 141, 0.18);
}

/* Main 12-Col Asymmetric Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(0, 4.8fr);
  gap: 18px;
  align-items: stretch;
}

.bento-col-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bento-col-main > .atlas-workbench {
  flex: 1;
}

.bento-col-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Atlas Workbench */
.atlas-workbench {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.workbench-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.workbench-title h2 {
  margin-top: 4px;
}

.workbench-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.layer-bar,
.zoom-bar,
.seg-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(7, 7, 12, 0.78);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.layer-btn,
.zoom-btn,
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.layer-btn:hover,
.zoom-btn:hover,
.seg-btn:hover {
  color: var(--ink);
}

.layer-btn.is-active,
.zoom-btn.is-active,
.seg-btn.is-active {
  background: var(--vi-warm);
  color: #120916;
}

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

.atlas-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  min-width: 0;
}

.atlas-tab:hover {
  border-color: rgba(255, 158, 109, 0.45);
}

.atlas-tab.is-active {
  background: linear-gradient(120deg, rgba(255, 77, 141, 0.22), rgba(92, 225, 230, 0.12));
  border-color: var(--pink);
}

.atlas-tab.is-dimmed,
.atlas-node.is-dimmed {
  opacity: 0.25;
}

.tab-code {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  color: var(--cyan);
  flex-shrink: 0;
}

.atlas-tab.is-active .tab-code {
  color: var(--coral);
}

.tab-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-check {
  margin-left: auto;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
}

.workbench-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.88fr);
  gap: 16px;
  align-items: stretch;
  flex: 1;
}

.canvas-viewport {
  background: #080811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.canvas-hud-top,
.canvas-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: #e6dff2;
}

.hud-pill.muted-pill {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.atlas-svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  transition: transform 0.25s ease;
  transform-origin: center center;
}

.atlas-node {
  cursor: pointer;
  transition: opacity 0.2s;
}

.atlas-node .node-pulse {
  fill: rgba(255, 77, 141, 0.08);
  stroke: rgba(255, 77, 141, 0.25);
  stroke-width: 1;
}

.atlas-node .node-ring {
  fill: rgba(8, 8, 17, 0.9);
  stroke: var(--cyan);
  stroke-width: 2;
}

.atlas-node .node-core {
  fill: var(--cyan);
}

.atlas-node .node-pill {
  fill: rgba(14, 13, 24, 0.9);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.atlas-node .node-label {
  fill: #f6f2fa;
  font-size: 11.5px;
  font-weight: 700;
}

.atlas-node:hover .node-ring,
.atlas-node.is-active .node-ring {
  stroke: var(--pink);
  fill: rgba(255, 77, 141, 0.24);
}

.atlas-node:hover .node-core,
.atlas-node.is-active .node-core {
  fill: var(--coral);
  r: 8.5;
}

.atlas-node.is-active .node-pulse {
  fill: rgba(255, 77, 141, 0.22);
  stroke: var(--coral);
}

.atlas-node.is-explored .node-pill {
  stroke: var(--cyan);
}

.hud-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-dot.pink {
  background: var(--pink);
}

.legend-dot.cyan {
  background: var(--cyan);
}

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

.hud-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan);
}

.hud-link:hover {
  text-decoration: underline;
}

/* Inspector Drawer */
.atlas-inspector {
  background: rgba(10, 9, 18, 0.86);
  border: 1px solid rgba(255, 158, 109, 0.24);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.inspector-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.inspector-code {
  width: 44px;
  height: 50px;
  border-radius: 10px;
  background: var(--vi-warm);
  color: #120916;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inspector-titles h3 {
  font-size: 20px;
  margin-top: 2px;
}

.inspector-sub {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 650;
}

.inspector-desc {
  font-size: 13.5px;
  color: #ebe4f4;
  line-height: 1.65;
}

.inspector-brief {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid var(--cyan);
  border-radius: 7px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.inspector-brief p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.inspector-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.inspector-actions .button {
  width: 100%;
}

.inspector-ext-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inspector-footnote {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Track / Explored Buttons */
.track-btn,
.track-action-btn {
  border: 1px solid rgba(92, 225, 230, 0.35);
  background: rgba(92, 225, 230, 0.08);
  color: var(--cyan);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.track-btn.is-tracked,
.track-action-btn.is-tracked {
  background: var(--cyan);
  color: #071216;
  border-color: var(--cyan);
}

/* Right Stack Widget 1: Telemetry & Countdown */
.telemetry-card {
  display: grid;
  gap: 14px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.countdown-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  background: rgba(7, 7, 12, 0.65);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 16px;
}

.countdown-number {
  display: grid;
  text-align: center;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.countdown-number strong {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 46px;
  line-height: 0.95;
  background: var(--vi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.countdown-number span {
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}

.countdown-meta {
  display: grid;
  gap: 6px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.meta-line span {
  color: var(--muted);
}

.meta-line strong {
  color: var(--ink);
  font-weight: 750;
  text-align: right;
}

.telemetry-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.t-pill {
  font-size: 11px;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Right Stack Widget 2: Dual Protagonist Instant Switcher */
.protagonist-switcher {
  display: grid;
  gap: 12px;
}

.char-pane {
  background: rgba(7, 7, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.char-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pink-avatar {
  background: rgba(255, 77, 141, 0.18);
  border: 1px solid rgba(255, 77, 141, 0.45);
  color: var(--pink);
}

.cyan-avatar {
  background: rgba(92, 225, 230, 0.16);
  border: 1px solid rgba(92, 225, 230, 0.45);
  color: var(--cyan);
}

.char-header h3 {
  font-size: 17px;
}

.char-header h3 small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.char-tie {
  display: block;
  font-size: 11.5px;
  color: var(--cyan);
  font-weight: 650;
}

.char-header .track-btn {
  margin-left: auto;
}

.char-bio {
  font-size: 13px;
  color: #e4deef;
  line-height: 1.6;
}

.char-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Right Stack Widget 3: Edition Comparator */
.edition-widget {
  display: grid;
  gap: 12px;
}

.edition-pane {
  background: rgba(7, 7, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.edition-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price-tag {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 28px;
  color: var(--cyan);
  letter-spacing: 0.03em;
}

.price-tag.coral-price {
  color: var(--coral);
}

.price-tag small {
  font-family: Inter, sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.edition-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(92, 225, 230, 0.12);
  color: var(--cyan);
}

.edition-badge.coral-badge {
  background: rgba(255, 158, 109, 0.15);
  color: var(--coral);
}

.edition-list {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  color: #e0daec;
}

/* Secondary Bento Grid (Features + Newswire) */
.bento-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.text-link {
  font-size: 13px;
  font-weight: 750;
  color: var(--coral);
  white-space: nowrap;
}

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

.feature-cards-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-bento-item {
  background: rgba(10, 9, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.18s, transform 0.18s;
}

.feature-bento-item:hover {
  border-color: var(--pink);
  transform: translateY(-2px);
}

.feature-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-watermark {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.18);
}

.feature-bento-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.feature-more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 750;
  color: var(--cyan);
}

.newswire-list {
  display: grid;
  gap: 12px;
}

.newswire-item {
  padding: 14px;
  border-radius: 12px;
  background: rgba(10, 9, 18, 0.65);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.newswire-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--cyan);
  font-weight: 700;
}

.newswire-item h3 {
  font-size: 16px;
}

.newswire-item h3 a:hover {
  color: var(--coral);
}

.newswire-item p {
  font-size: 12.5px;
  color: var(--muted);
}

/* Command Palette Modal (Raycast / Linear Style) */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 5, 10, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: start center;
  padding: 8vh 16px 24px;
}

.cmd-dialog {
  width: 100%;
  max-width: 680px;
  background: #121020;
  border: 1px solid rgba(255, 158, 109, 0.35);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  display: grid;
}

.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.cmd-icon {
  color: var(--cyan);
  font-size: 18px;
}

.cmd-search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.cmd-esc {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.cmd-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.5);
}

.cmd-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 650;
}

.cmd-pill.is-active {
  background: var(--vi-warm);
  color: #120916;
  border-color: transparent;
}

.cmd-results {
  max-height: 52vh;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.cmd-item:hover {
  border-color: var(--pink);
  background: rgba(255, 77, 141, 0.1);
}

.cmd-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.cmd-cat {
  font-size: 10px;
  font-weight: 750;
  color: var(--coral);
  text-transform: uppercase;
}

.cmd-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(92, 225, 230, 0.12);
  color: var(--cyan);
}

.cmd-item strong {
  display: block;
  font-size: 14px;
}

.cmd-item p {
  font-size: 12px;
  color: var(--muted);
}

.cmd-enter {
  color: var(--cyan);
  font-weight: 700;
}

.cmd-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

.cmd-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  background: rgba(7, 7, 12, 0.8);
  font-size: 11px;
  color: var(--muted);
}

/* Inner Pages & Records */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.page-intro {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.page-intro > p {
  color: var(--muted);
  font-size: 14.5px;
}

.external-map-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.external-map-banner p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 720px;
  margin-top: 6px;
}

.database-tools {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.search-field {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 220px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #080811;
  color: var(--ink);
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-buttons button {
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
}

.filter-buttons button[aria-pressed="true"] {
  background: var(--vi-warm);
  color: #120916;
  border-color: transparent;
}

.db-chips,
.database-tools > p {
  width: 100%;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.record-card {
  display: grid;
  gap: 12px;
  scroll-margin-top: 95px;
}

.record-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.record-mark {
  width: 46px;
  height: 52px;
  border-radius: 10px;
  background: rgba(92, 225, 230, 0.12);
  border: 1px solid rgba(92, 225, 230, 0.35);
  color: var(--cyan);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.character .record-mark {
  background: rgba(255, 77, 141, 0.15);
  border-color: rgba(255, 77, 141, 0.4);
  color: var(--pink);
}

.record-title-group {
  flex: 1;
  min-width: 0;
}

.record-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.record-code {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.english-name {
  display: block;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
}

.record-desc {
  font-size: 13.5px;
  color: #e0daec;
}

.record-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.subtle-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
}

.subtle-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.source-box {
  display: grid;
  gap: 10px;
}

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

.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(92, 225, 230, 0.08);
  border: 1px solid rgba(92, 225, 230, 0.3);
  color: var(--cyan);
  font-size: 12.5px;
  font-weight: 700;
}

.article-body,
.prose {
  display: grid;
  gap: 18px;
}

.article-body h2,
.prose h2 {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

caption,
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

td a {
  color: var(--cyan);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 650;
}

.language-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.language-page main {
  max-width: 760px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.language-page .eyebrow,
.language-page h1 {
  width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1160px) {
  .workspace-banner,
  .bento-grid,
  .bento-secondary-grid {
    grid-template-columns: 1fr;
  }
  .atlas-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 8px 12px;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100vw;
  }
  .brand {
    font-size: 14px;
    gap: 7px;
    margin-right: auto;
    min-width: 0;
  }
  .brand-badge {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .brand small {
    display: none;
  }
  .header-right {
    gap: 6px;
  }
  .progress-pill {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }
  .language-switch {
    height: 30px;
    padding: 0 9px;
    font-size: 11px;
  }
  .menu-button {
    display: flex;
    width: 32px;
    height: 32px;
  }
  .cmd-trigger {
    min-width: 0;
    max-width: none;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    height: 34px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #100f1c;
    border-bottom: 1px solid var(--line);
    padding: 12px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-header nav.is-open {
    display: flex;
  }
  .site-header nav a {
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
  }
  .workspace-shell {
    padding: 12px 12px 48px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .workspace-banner,
  .bento-card {
    padding: 14px;
    min-width: 0;
    max-width: 100%;
  }
  .banner-left,
  .banner-right,
  .workbench-top,
  .workbench-title,
  .workbench-controls {
    min-width: 0;
    max-width: 100%;
  }
  .eyebrow {
    letter-spacing: 0.06em;
    font-size: 9.5px;
    white-space: normal;
  }
  .layer-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layer-btn {
    white-space: normal;
    text-align: center;
    padding: 6px 8px;
  }
  .workbench-stage,
  .feature-cards-row,
  .records-grid {
    grid-template-columns: 1fr;
  }
  .atlas-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-search {
    flex-wrap: wrap;
  }
  .banner-search input {
    flex-basis: 100%;
  }
}

@media (max-width: 380px) {
  .atlas-tabs {
    grid-template-columns: 1fr;
  }
  .countdown-row {
    grid-template-columns: 1fr;
  }
  .countdown-number {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 10px;
  }
}


/* ==========================================================================
   GTA CODEX + VI OFFICIAL DUAL-COLOR (TWILIGHT PURPLE-BLUE × SUNSET PINK-GOLD)
   ========================================================================== */
:root {
  --vi-purple: #6c3ce9;
  --vi-purple-bright: #9d7bff;
  --vi-pink: #ff3e7f;
  --vi-orange: #ff9a44;
  --vi-dual: linear-gradient(135deg, #6c3ce9 0%, #c837ab 48%, #ff477e 74%, #ff9e44 100%);
  --header-bg: #dbd7df;
  --bg: #0b0914;
  --surface: rgba(21, 17, 36, 0.92);
  --pink: #ff3e7f;
  --coral: #ff9a44;
  --cyan: #9d7bff;
  --vi-grad: linear-gradient(135deg, #a57bff 0%, #ff477e 55%, #ff9e44 100%);
  --vi-warm: linear-gradient(90deg, #ff3e7f 0%, #ff9a44 100%);
}

body {
  background:
    radial-gradient(circle at 18% 6%, rgba(108, 60, 233, 0.24), transparent 38%),
    radial-gradient(circle at 82% 14%, rgba(255, 62, 127, 0.18), transparent 40%),
    #0b0914;
}

.vi-top-ribbon {
  min-height: 32px;
  padding: 5px 16px;
  background: linear-gradient(90deg, #4c2ae2 0%, #8a3ab9 32%, #ff3e7f 68%, #ff9a44 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* 1. High-Contrast Light Warm-Gray Codex Header */
.site-header {
  background: var(--header-bg);
  color: #14111a;
  border-bottom: 2px solid rgba(108, 60, 233, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
  min-height: 70px;
}

.site-header .brand {
  color: #14111a;
  gap: 11px;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(170deg, #5e35e8 0%, #8e3be0 46%, #ff3e7f 52%, #ff9a44 100%);
  border: 2.5px solid #14111a;
  color: #fff;
  font-size: 24px;
  text-shadow: 2px 2px 0 #14111a;
  transform: skewX(-6deg);
  box-shadow: 0 4px 14px rgba(108, 60, 233, 0.35);
}

.logo-text strong {
  display: block;
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #171321;
}

.logo-text strong .t-purple { color: #5e35e8; }
.logo-text strong .t-pink { color: #e92e6f; }

.site-header .logo-text small {
  color: #514a60;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-footer .logo-text strong {
  color: #fff;
}
.site-footer .logo-text strong .t-purple { color: #a888ff; }
.site-footer .logo-text strong .t-pink { color: #ff6398; }
.site-footer .logo-text small { color: #b4acc8; }

.site-header nav {
  margin-left: 16px;
  margin-right: auto;
  gap: 24px;
}

.site-header nav a {
  color: #1e192b;
  font-size: 14px;
  font-weight: 800;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: #5e35e8;
}

.site-header nav a[aria-current="page"]::after {
  height: 3px;
  background: linear-gradient(90deg, #5e35e8, #ff3e7f);
}

.site-header .cmd-trigger {
  min-width: 220px;
  max-width: 280px;
  height: 40px;
  background: #f6f3ec;
  border: 1px solid rgba(20, 17, 26, 0.16);
  color: #4f485e;
  border-radius: 8px;
}

.site-header .cmd-trigger:hover {
  border-color: #5e35e8;
  background: #fff;
  color: #14111a;
}

.site-header .cmd-trigger-icon {
  color: #5e35e8;
}

.site-header .cmd-trigger kbd {
  background: #fff;
  border: 1px solid #cfc8d8;
  color: #5e35e8;
  font-weight: 800;
}

.site-header .progress-pill {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--vi-dual);
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(108, 60, 233, 0.32);
}

.site-header .progress-pill strong {
  color: #fff;
}

.site-header .language-switch {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #191426;
  color: #fff;
  border: 1px solid #191426;
  font-weight: 800;
}

.site-header .language-switch:hover {
  background: #5e35e8;
  border-color: #5e35e8;
  color: #fff;
}

/* 2. Full-Bleed Atmospheric Hero (GTA CODEX + VI Dual-Color) */
.hero-stage {
  position: relative;
  min-height: 600px;
  background:
    radial-gradient(circle at 20% 18%, rgba(108, 60, 233, 0.44), transparent 48%),
    radial-gradient(circle at 80% 72%, rgba(255, 62, 127, 0.34), transparent 52%),
    linear-gradient(180deg, rgba(14, 10, 26, 0.25) 0%, rgba(11, 9, 20, 0.52) 62%, #0b0914 100%),
    url("/assets/tropical-city-hero.webp") center/cover no-repeat;
  padding: 38px max(28px, calc((100vw - var(--max)) / 2)) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-top-row {
  display: flex;
  justify-content: flex-end;
}

.cd-card {
  background: rgba(13, 10, 22, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid #7b3fe4;
  border-right: 4px solid #ff3e7f;
  border-radius: 8px;
  padding: 15px 24px;
  text-align: right;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6);
}

.cd-card .cd-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #dcd4f2;
}

.cd-card .cd-time {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: 38px;
  letter-spacing: 0.03em;
  line-height: 1.08;
  margin: 4px 0;
  background: linear-gradient(90deg, #b892ff 0%, #ffffff 46%, #ff8da1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cd-card .cd-sub {
  font-size: 12px;
  font-weight: 800;
  color: #ff9a44;
  letter-spacing: 0.06em;
}

.hero-main {
  max-width: 760px;
  margin: 72px 0 34px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 6px;
  background: rgba(108, 60, 233, 0.38);
  border: 1px solid rgba(166, 130, 255, 0.55);
  font-size: 13px;
  font-weight: 800;
  color: #f3eeff;
  margin-bottom: 12px;
}

.hero-title {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: clamp(56px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.hero-title .vi-dual-word {
  background: linear-gradient(180deg, #a57bff 0%, #ff477e 58%, #ff9e44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: #efeaf8;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

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

.btn-warm {
  height: 52px;
  padding: 0 28px;
  border-radius: 9px;
  background: linear-gradient(90deg, #ff3e7f 0%, #ff8c42 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(255, 62, 127, 0.4);
}

.btn-warm:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-purple-glass {
  height: 52px;
  padding: 0 26px;
  border-radius: 9px;
  background: rgba(76, 42, 226, 0.34);
  border: 2px solid #9d7bff;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.btn-purple-glass:hover {
  background: rgba(108, 60, 233, 0.55);
}

/* 3. Bottom 4-Column Direct-Facts Bar */
.hero-fact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(16, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #6c3ce9, #ff3e7f, #ff9a44) 1;
  padding: 16px 22px;
  backdrop-filter: blur(14px);
}

.fact-item {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 12px;
}

.fact-item:last-child {
  border-right: 0;
}

.fact-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c2b6dc;
}

.fact-item strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-top: 2px;
}

.fact-item small {
  font-size: 12px;
  color: #ff9a44;
  font-weight: 700;
}

/* 4. Second Screen & Dual-Color Protagonist Dossier Cards */
.sec-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6px;
}

.sec-bar h2 {
  font-size: 26px;
  font-weight: 900;
}

.sec-bar p {
  color: #bfb6d4;
  font-size: 14px;
  margin-top: 4px;
}

.atlas-workbench {
  border: 2px solid rgba(108, 60, 233, 0.65);
  background: linear-gradient(155deg, rgba(23, 17, 43, 0.95) 0%, rgba(15, 19, 36, 0.95) 100%);
}

.role-pill {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.role-pill.dual-pill {
  background: linear-gradient(90deg, #6c3ce9, #ff3e7f);
  color: #fff;
}

.role-pill.warm-pill {
  background: #ff3e7f;
  color: #fff;
}

.role-pill.cool-pill {
  background: #6c3ce9;
  color: #fff;
}

.dual-char-stack {
  display: grid;
  gap: 12px;
}

.char-card-warm {
  background: linear-gradient(135deg, rgba(255, 62, 127, 0.22) 0%, rgba(21, 17, 36, 0.95) 75%) !important;
  border: 2px solid #ff477e !important;
  border-radius: 14px;
  padding: 16px;
  display: grid !important;
  gap: 8px;
}

.char-card-cool {
  background: linear-gradient(135deg, rgba(108, 60, 233, 0.28) 0%, rgba(21, 17, 36, 0.95) 75%) !important;
  border: 2px solid #7b3fe4 !important;
  border-radius: 14px;
  padding: 16px;
  display: grid !important;
  gap: 8px;
}

.char-card-warm[hidden],
.char-card-cool[hidden] {
  display: grid !important;
  opacity: 0.86;
}

.char-card-warm.is-active,
.char-card-cool.is-active {
  opacity: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.char-loc {
  font-size: 13px;
  color: #ffd1a6;
}

.legend-dot.purple {
  background: #9d7bff;
  box-shadow: 0 0 8px #6c3ce9;
}

/* 5. Inner Page Header Banner (Codex Article Banner Style) */
.page-intro {
  max-width: 100%;
  background:
    radial-gradient(circle at 18% 20%, rgba(108, 60, 233, 0.38), transparent 52%),
    radial-gradient(circle at 82% 80%, rgba(255, 62, 127, 0.28), transparent 52%),
    linear-gradient(180deg, rgba(16, 12, 28, 0.72), rgba(16, 12, 28, 0.92)),
    url("/assets/tropical-city-hero.webp") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #6c3ce9, #ff3e7f, #ff9a44) 1;
  border-radius: 14px;
  padding: 28px 30px;
}

.page-intro h1 {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: 0.01em;
}

@media (max-width: 960px) {
  .hero-fact-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-header nav {
    background: #dbd7df;
  }
}

@media (max-width: 600px) {
  .hero-fact-bar {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    min-height: auto;
    padding: 22px 16px;
  }
  .hero-main {
    margin: 32px 0 24px;
  }
}


/* ==========================================================================
   CLEAN BELOW-THE-FOLD LAYOUT (ZERO NESTED BENTO CLUTTER)
   ========================================================================== */
.clean-main-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 44px 64px;
  display: grid;
  gap: 48px;
}

.clean-section {
  display: grid;
  gap: 18px;
}

.clean-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.clean-sec-head h2 {
  font-size: 28px;
  font-weight: 900;
}

.clean-sec-head p {
  color: #b4acc8;
  font-size: 14.5px;
  margin-top: 4px;
}

.clean-more-link {
  font-size: 14px;
  font-weight: 800;
  color: #ff9a44;
  white-space: nowrap;
}

.clean-more-link:hover {
  color: #ff3e7f;
}

.clean-dual-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.clean-map-card {
  background: linear-gradient(150deg, #17112b 0%, #101829 100%);
  border: 2px solid #6c3ce9;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.clean-map-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.clean-map-inner {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 16px;
  align-items: center;
}

.clean-map-svg {
  width: 100%;
  background: #090812;
  border: 1px solid rgba(123, 63, 228, 0.4);
  border-radius: 10px;
}

.clean-region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.clean-r-card {
  padding: 11px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #6c3ce9;
  transition: transform 0.15s, background 0.15s;
}

.clean-r-card:hover {
  transform: translateY(-2px);
  background: rgba(108, 60, 233, 0.22);
}

.clean-r-card.hot {
  background: rgba(255, 62, 127, 0.18);
  border-left-color: #ff3e7f;
}

.clean-r-card strong {
  display: block;
  font-size: 14.5px;
  color: #fff;
}

.clean-r-card span {
  display: block;
  font-size: 12px;
  color: #bdb5ce;
  margin-top: 2px;
}

.clean-chars-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.clean-chars-col h3 {
  font-size: 22px;
  font-weight: 900;
  margin-top: 2px;
}

.clean-chars-col p {
  font-size: 14px;
  color: #dcd5ea;
}

.clean-edition-grid,
.clean-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.clean-edition-card {
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
}

.clean-edition-card.cool-ed {
  background: linear-gradient(135deg, rgba(108, 60, 233, 0.22) 0%, rgba(21, 17, 36, 0.95) 80%);
  border: 2px solid #7b3fe4;
}

.clean-edition-card.warm-ed {
  background: linear-gradient(135deg, rgba(255, 62, 127, 0.2) 0%, rgba(21, 17, 36, 0.95) 80%);
  border: 2px solid #ff477e;
}

.clean-ed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.clean-price {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 34px;
  color: #b892ff;
  letter-spacing: 0.03em;
}

.clean-price.warm-price {
  color: #ff9a44;
}

.clean-price small {
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: #b4acc8;
}

.clean-edition-card p {
  font-size: 14.5px;
  color: #e6e0f2;
}

.clean-guide-card {
  background: rgba(21, 17, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s, transform 0.16s;
}

.clean-guide-card:hover {
  border-color: #ff3e7f;
  transform: translateY(-2px);
}

.clean-guide-card h3 {
  font-size: 20px;
  font-weight: 850;
}

.clean-guide-card p {
  font-size: 14px;
  color: #bfb6d4;
}

.clean-card-go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ff9a44;
}

@media (max-width: 1024px) {
  .clean-dual-grid,
  .clean-map-inner,
  .clean-edition-grid,
  .clean-bottom-grid {
    grid-template-columns: 1fr;
  }
  .clean-main-wrap {
    padding: 28px 18px 48px;
  }
}


/* ==========================================================================
   GTA CODEX POSTER-GRID SECTIONS (ONLY 2 LINES PER CARD: TAG + NAME)
   ========================================================================== */
.codex-sections {
  max-width: 1360px;
  margin: 0 auto;
  padding: 56px 44px 72px;
  display: grid;
  gap: 64px;
}

.codex-sec {
  display: grid;
  gap: 22px;
}

.codex-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.codex-sec-head .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff477e;
  margin-bottom: 4px;
}

.codex-sec-head h2 {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.codex-sec-head p {
  color: #bcb4d0;
  font-size: 15px;
  margin-top: 4px;
}

/* 1. Six Regions Postcards (3x2 grid, only 2 lines per card: meta + name) */
.codex-postcard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.codex-postcard {
  position: relative;
  min-height: 200px;
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.codex-postcard.postcard-warm {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 62, 127, 0.42), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255, 154, 68, 0.22), transparent 55%),
    linear-gradient(180deg, rgba(24, 16, 38, 0.4) 0%, rgba(12, 9, 22, 0.96) 100%);
  border-color: rgba(255, 62, 127, 0.45);
}

.codex-postcard.postcard-cool {
  background:
    radial-gradient(circle at 85% 20%, rgba(108, 60, 233, 0.48), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255, 62, 127, 0.2), transparent 55%),
    linear-gradient(180deg, rgba(20, 16, 42, 0.4) 0%, rgba(12, 9, 22, 0.96) 100%);
  border-color: rgba(123, 63, 228, 0.5);
}

.codex-postcard:hover {
  transform: translateY(-4px);
  border-color: #ff9a44;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.postcard-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 56px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.postcard-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff9a44;
  margin-bottom: 4px;
}

.postcard-name {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.1;
}

/* 2. Meet the Characters (4x2 portrait cards, only 2 lines per card: role + name) */
.codex-char-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.codex-charcard {
  position: relative;
  min-height: 240px;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.codex-charcard.charcard-warm {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 62, 127, 0.38), transparent 60%),
    linear-gradient(180deg, rgba(30, 18, 42, 0.55) 0%, rgba(11, 9, 20, 0.98) 100%);
  border-color: rgba(255, 71, 126, 0.48);
}

.codex-charcard.charcard-cool {
  background:
    radial-gradient(circle at 50% 28%, rgba(108, 60, 233, 0.44), transparent 60%),
    linear-gradient(180deg, rgba(22, 18, 46, 0.55) 0%, rgba(11, 9, 20, 0.98) 100%);
  border-color: rgba(123, 63, 228, 0.52);
}

.codex-charcard:hover {
  transform: translateY(-4px);
  border-color: #ff3e7f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
}

.charcard-mono {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.85);
}

.charcard-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.charcard-role {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(123, 63, 228, 0.35);
  border: 1px solid rgba(157, 123, 255, 0.45);
  color: #e4dcff;
}

.charcard-role.is-protag {
  background: linear-gradient(90deg, #ff3e7f, #ff9a44);
  border-color: transparent;
  color: #fff;
}

.charcard-name {
  font-family: Impact, "Arial Narrow", "PingFang SC", sans-serif;
  font-size: 23px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
}

/* 3. Tracker Banner */
.codex-tracker-banner {
  background:
    radial-gradient(circle at 15% 50%, rgba(108, 60, 233, 0.32), transparent 55%),
    radial-gradient(circle at 85% 50%, rgba(255, 62, 127, 0.28), transparent 55%),
    rgba(21, 17, 36, 0.94);
  border: 1.5px solid rgba(157, 123, 255, 0.4);
  border-radius: 16px;
  padding: 30px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.codex-tracker-banner .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff9a44;
  margin-bottom: 4px;
}

.codex-tracker-banner h2 {
  font-size: 26px;
  font-weight: 900;
}

.codex-tracker-banner p {
  color: #c2bad6;
  font-size: 14.5px;
  margin-top: 4px;
}

/* 4. Practical Guides Grid (2x2) */
.codex-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.codex-guidecard {
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(21, 17, 36, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.18s, border-color 0.18s;
}

.codex-guidecard.guide-purple {
  border-left: 4px solid #7b3fe4;
}

.codex-guidecard.guide-pink {
  border-left: 4px solid #ff3e7f;
}

.codex-guidecard:hover {
  transform: translateY(-3px);
  border-color: #ff9a44;
}

.guidecard-cat {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff9a44;
}

.codex-guidecard h3 {
  font-size: 20px;
  font-weight: 850;
  color: #fff;
}

.codex-guidecard p {
  font-size: 14px;
  color: #bdb5ce;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .codex-postcard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .codex-char-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .codex-guide-grid {
    grid-template-columns: 1fr;
  }
  .codex-sections {
    padding: 36px 20px 56px;
  }
}

@media (max-width: 600px) {
  .codex-postcard-grid,
  .codex-char-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   ILLUSTRATED COVER ARTWORKS & INSTANT INTERACTIVE DOSSIER DRAWER
   ========================================================================== */
.codex-postcard-wrap,
.codex-charcard-wrap {
  position: relative;
}

.codex-postcard,
.codex-charcard {
  position: relative;
  z-index: 1;
}

.postcard-img,
.charcard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.codex-postcard:hover .postcard-img,
.codex-charcard:hover .charcard-img {
  transform: scale(1.06);
}

.postcard-scrim,
.charcard-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.08) 0%, rgba(11, 9, 20, 0.42) 52%, rgba(11, 9, 20, 0.94) 100%);
  z-index: 1;
}

.postcard-num,
.postcard-label,
.charcard-label {
  position: relative;
  z-index: 2;
}

.card-quick-check {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(13, 10, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f3eeff;
  font-size: 11.5px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}

.card-quick-check:hover {
  border-color: #ff9a44;
  transform: scale(1.04);
}

.card-quick-check.is-tracked {
  background: linear-gradient(90deg, #ff3e7f, #ff9a44);
  border-color: transparent;
  color: #fff;
}

.home-char-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hc-filter {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dcd5ea;
  font-size: 12.5px;
  font-weight: 800;
}

.hc-filter.is-active {
  background: var(--vi-dual);
  border-color: transparent;
  color: #fff;
}

/* Database Record Card Cover Banner */
.record-cover-wrap {
  position: relative;
  height: 175px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.record-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-cover-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(13, 10, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 800;
  color: #ff9a44;
}

.overlay-track-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 10, 22, 0.82);
  backdrop-filter: blur(8px);
}

/* Instant Preview Dossier Modal */
.preview-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(6, 5, 12, 0.82);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.preview-drawer {
  width: 100%;
  max-width: 640px;
  background: #141022;
  border: 2px solid #7b3fe4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

.preview-cover-box {
  position: relative;
  height: 250px;
  background: #0b0914;
}

.preview-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 9, 20, 0.82);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.preview-kind-pill {
  position: absolute;
  bottom: 14px;
  left: 20px;
  padding: 4px 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #6c3ce9, #ff3e7f);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.preview-body {
  padding: 22px 24px 24px;
  display: grid;
  gap: 14px;
}

.preview-body h3 {
  font-size: 26px;
  font-weight: 900;
}

.preview-body p {
  font-size: 15px;
  color: #dcd5ea;
  line-height: 1.65;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.preview-actions .btn-warm,
.preview-actions .btn-purple-glass {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.preview-nav-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-step-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e4deef;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
}

.preview-step-btn:hover {
  border-color: #ff3e7f;
  color: #fff;
}

/* ==========================================================================
   ENRICHED PUBLIC DOSSIER CARDS, MODAL HIGHLIGHTS & STANDALONE PAGES
   ========================================================================== */
.codex-postcard {
  height: 280px !important;
}

.codex-charcard {
  height: 365px !important;
}

.postcard-scrim {
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.04) 0%, rgba(11, 9, 20, 0.45) 38%, rgba(11, 9, 20, 0.96) 100%);
}

.charcard-scrim {
  background: linear-gradient(180deg, rgba(11, 9, 20, 0.02) 0%, rgba(11, 9, 20, 0.28) 42%, rgba(11, 9, 20, 0.96) 100%);
}

.postcard-brief {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.48;
  color: #ddd6ec;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.postcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.postcard-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(108, 60, 233, 0.32);
  border: 1px solid rgba(157, 123, 255, 0.45);
  color: #f3eeff;
}

.charcard-spot {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #ffd27d;
  margin-top: 2px;
}

.charcard-brief {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #dad2ea;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Preview Drawer Enriched Sections */
.preview-drawer {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.preview-spot {
  font-size: 13px !important;
  font-weight: 750;
  color: #ff9a44 !important;
}

.preview-desc-wrap {
  display: grid;
  gap: 10px;
}

.preview-desc-wrap p {
  font-size: 14.5px;
  color: #e4deef;
  line-height: 1.65;
}

.preview-highlights-box {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(108, 60, 233, 0.12);
  border: 1px solid rgba(157, 123, 255, 0.28);
  display: grid;
  gap: 8px;
}

.preview-highlights-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #f1ecfa;
}

.preview-conn {
  font-size: 13px !important;
  font-weight: 700;
  color: #ffd27d !important;
}

/* Database Record Card Enriched Sections */
.record-spot {
  font-size: 12px;
  font-weight: 700;
  color: #ff9a44;
  margin-top: 4px;
}

.record-bio {
  display: grid;
  gap: 8px;
}

.record-highlights {
  margin: 0;
  padding: 10px 14px 10px 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: #dcd5ea;
}

.record-conn {
  font-size: 12.5px;
  color: #ffd27d;
}

.primary-subtle {
  color: #ff3e7f !important;
}

/* Standalone Region & Character Dossier Pages */
.dossier-hero-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.dossier-cover-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: block;
}

.dossier-info-col {
  display: grid;
  gap: 14px;
}

.dossier-spot {
  font-size: 14px;
  font-weight: 750;
  color: #ff9a44;
}

.dossier-bio {
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #e5dff0;
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.dossier-details-card {
  display: grid;
  gap: 16px;
}

.dossier-highlights-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dossier-highlights-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(108, 60, 233, 0.12);
  border: 1px solid rgba(157, 123, 255, 0.26);
  font-size: 14px;
  color: #f3eeff;
}

.dossier-highlights-grid li strong {
  color: #ff3e7f;
}

.dossier-conn-bar {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 62, 127, 0.1);
  border: 1px solid rgba(255, 154, 68, 0.35);
  font-size: 14px;
  color: #ffd27d;
}

.dossier-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pager-link {
  font-size: 13.5px;
  font-weight: 800;
  color: #ff9a44;
}

@media (max-width: 820px) {
  .dossier-hero-card {
    grid-template-columns: 1fr;
  }
  .dossier-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.inspector-cover-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  height: 155px;
}

.inspector-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.atlas-subpin {
  cursor: pointer;
  transition: transform 0.16s ease;
}

.atlas-subpin:hover circle {
  r: 7.5px;
  fill: #ffaa44;
}

.atlas-svg {
  height: auto !important;
  max-height: 760px !important;
  aspect-ratio: 465 / 585 !important;
}

/* ==========================================================================
   2026-11-05 修：页头在窄屏和中等宽度下不再把整页撑宽
   ========================================================================== */
.site-header { max-width: 100%; }
.site-header nav { min-width: 0; }
.site-header .header-right { min-width: 0; }

@media (max-width: 1400px) {
  .site-header .cmd-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .site-header .cmd-trigger-text,
  .site-header .cmd-trigger kbd { display: none; }
}

@media (max-width: 1180px) {
  .site-header .pill-label { display: none; }
  .site-header .progress-pill { padding: 0 12px; }
  .site-header nav { gap: 16px; margin-left: 8px; }
  .site-header .logo-text small { display: none; }
}

@media (max-width: 820px) {
  .site-header { flex-wrap: nowrap; padding: 8px 12px; gap: 8px; }
  .site-header .brand { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .site-header .brand-badge { width: 32px; height: 32px; font-size: 17px; }
  .site-header .logo-text strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header .header-right { gap: 6px; flex-shrink: 0; }
  .site-header .cmd-trigger,
  .site-header .progress-pill,
  .site-header .language-switch { height: 34px; }
  .site-header .cmd-trigger { width: 34px; }
  .site-header .progress-pill { padding: 0 9px; font-size: 12px; }
  .site-header .language-switch { padding: 0 9px; font-size: 12px; }
}

@media (max-width: 360px) {
  .site-header .progress-pill { display: none; }
}
@media (max-width: 1400px) {
  .site-header .cmd-trigger-icon { font-size: 20px; line-height: 1; }
}
@media (max-width: 820px) {
  .site-header .cmd-trigger { order: 0; flex-basis: auto; }
}
/* 2026-11-05 修：文章卡片里过长的链接把正文撑出卡片 */
.article-body { grid-template-columns: minmax(0, 1fr); }
.article-body > *, .article-body a { min-width: 0; overflow-wrap: anywhere; }
.article-body .text-link { white-space: normal; display: inline-block; max-width: 100%; }
/* 2026-11-05 修：821–1080 宽时导航改收进菜单按钮，避免压住右侧按钮 */
@media (max-width: 1080px) {
  .site-header { position: sticky; }
  .site-header .header-right { margin-left: auto; }
  .site-header .menu-button { display: flex; width: 34px; height: 34px; }
  .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 18px; flex-direction: column; align-items: stretch; gap: 0; background: #dbd7df; border-bottom: 1px solid var(--line); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 10px 4px; border-bottom: 1px solid rgba(20,17,26,0.12); }
}
@media (min-width: 1401px) {
  .site-header .cmd-trigger { min-width: 0; width: 160px; padding: 0 12px; justify-content: flex-start; gap: 8px; }
  .site-header .cmd-trigger-text { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-header .cmd-trigger kbd { display: none; }
}
.source-dates{margin:12px 0 0;font-size:13px;opacity:.75}
.faq-block .faq-item{margin:0 0 18px}
.faq-block .faq-item h3{margin:0 0 6px;font-size:17px}
.faq-block .faq-item p{margin:0}

/* ==========================================================================
   2026-11-05 首屏改版：一句用途 + 四格速查；深色顶栏；全站左边线对齐；去掉小图标
   ========================================================================== */
:root { --page-max: 1360px; --page-pad: 44px; --page-x: max(var(--page-pad), calc((100vw - var(--page-max)) / 2 + var(--page-pad))); }
@media (max-width: 1080px) { :root { --page-pad: 20px; } }

/* 深色顶栏 */
.site-header {
  background: rgba(11, 9, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f3eeff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}
.site-header .brand, .logo-text strong { color: #fff; }
.logo-text strong .t-purple { color: #a888ff; }
.logo-text strong .t-pink { color: #ff6398; }
.site-header .logo-text small { color: #a59cba; }
.brand-badge { border-color: rgba(255, 255, 255, 0.85); text-shadow: none; }
.site-header nav a { color: #d9d2ea; font-weight: 700; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }
.site-header .cmd-trigger { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #c9c1db; }
.site-header .cmd-trigger:hover { background: rgba(255, 255, 255, 0.1); border-color: #9d7bff; color: #fff; }
.site-header .cmd-trigger-icon, .site-header .cmd-trigger kbd { color: #b9a2ff; }
.site-header .cmd-trigger kbd { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.site-header .language-switch { background: transparent; border-color: rgba(255, 255, 255, 0.22); }
.site-header .menu-button { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: transparent; }
@media (max-width: 1080px) {
  .site-header nav { background: #110d1e; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-left: var(--page-x); padding-right: var(--page-x); }
  .site-header nav a { border-bottom-color: rgba(255, 255, 255, 0.08); }
}
@media (max-width: 820px) { .site-header { padding-left: 16px; padding-right: 16px; } }

/* 首屏 */
.hero-stage {
  min-height: 0;
  padding: 120px var(--page-x) 40px;
  justify-content: flex-end;
  gap: 40px;
}
.hero-main { max-width: 760px; margin: 0; }
.hero-kicker { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #e6defa; font-weight: 700; }
.hero-title {
  font-family: Inter, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 16px;
}
.hero-title .hero-accent {
  background: var(--vi-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fact-card {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(13, 10, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.fact-card:hover { border-color: rgba(157, 123, 255, 0.7); transform: translateY(-2px); }
.fact-label { font-size: 13px; font-weight: 700; color: #b8afcc; }
.fact-value { font-size: 30px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact-value small { font-size: 15px; font-weight: 700; color: #c9c1db; margin: 0 4px 0 2px; }
.fact-value-sm { font-size: 22px; line-height: 1.35; white-space: normal; overflow: visible; }
.fact-countdown .fact-value { background: var(--vi-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-countdown .fact-value small { -webkit-text-fill-color: #c9c1db; }
.fact-sub { font-size: 13px; color: #d9d2ea; }

/* 下面各块和首屏同一条左边线 */
.codex-sections { max-width: none; padding-left: var(--page-x); padding-right: var(--page-x); }

@media (max-width: 1080px) {
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hero-stage { padding: 40px 16px 28px; gap: 28px; }
  .codex-sections { padding-left: 16px; padding-right: 16px; }
  .hero-facts { gap: 10px; }
  .fact-card { padding: 14px; }
  .fact-value { font-size: 24px; }
  .fact-value-sm { font-size: 16px; line-height: 1.5; white-space: normal; }
  .fact-value small { font-size: 13px; margin: 0 2px 0 1px; }
  .hero-btn-row .btn-warm, .hero-btn-row .btn-purple-glass { flex: 1 1 0; padding: 0 12px; justify-content: center; }
}
.site-header .menu-button span { background: #fff; }
@media (max-width: 600px) {
  .fact-countdown { grid-column: 1 / -1; }
  .fact-countdown .fact-value { font-size: 30px; }
  .hero-facts .fact-card:nth-child(3) { grid-column: 1 / -1; order: 3; }
  .fact-value-sm { white-space: nowrap; font-size: 20px; }
}

/* 2026-11-05 标题字体统一：各块标题、页面大标题、卡片名字和首屏用同一套字体 */
:root { --heading-font: Inter, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.page-intro h1, .codex-sec-head h2, .postcard-name, .charcard-name, .article-body h2, .article-body h3 {
  font-family: var(--heading-font);
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.01em;
}
.page-intro h1 { line-height: 1.15; }
.codex-sec-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.postcard-name { font-size: 22px; line-height: 1.25; }
.charcard-name { font-size: 20px; line-height: 1.25; }
