/* WORLD 0 — Futuristic Digital World
   Glass + Mesh + 克制粒子。无廉价霓虹堆砌。 */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "World0 SC";
  src: url("../fonts/sc-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0c10;
  --text: #efe6d4;
  --muted: #b7aa94;
  --faint: #7d7466;
  --cyan: #d4b483;
  --blue: #c4a574;
  --violet: #c4a574;
  --glass: rgba(18, 16, 14, 0.52);
  --glass-border: rgba(224, 181, 106, 0.14);
  --glass-shine: rgba(255, 236, 200, 0.06);
  --amber: #e0b56a;
  --sage: #8fbf9a;
  --danger: #d4a090;
  --focus: #f0d9a8;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", "World0 SC", sans-serif;
  --font-mono: "IBM Plex Mono", "World0 SC", ui-monospace, monospace;
  --radius: 18px;
  --max: 1120px;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  transform: translateY(-140%);
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(720px 520px at 8% -8%, rgba(224, 181, 106, 0.18), transparent 58%),
    radial-gradient(900px 640px at 110% 88%, rgba(36, 58, 92, 0.28), transparent 55%),
    #0a0c10;
}

.mesh {
  position: absolute;
  inset: -20%;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}

.b1 {
  width: 48vw;
  height: 48vw;
  left: -8%;
  top: -12%;
  background: #c4923a;
  opacity: 0.22;
  animation: drift 32s ease-in-out infinite;
}

.b2 {
  width: 42vw;
  height: 42vw;
  right: -10%;
  top: 18%;
  background: #1e3a5f;
  opacity: 0.35;
  animation: drift 38s ease-in-out infinite reverse;
}

.b3 {
  width: 36vw;
  height: 36vw;
  left: 30%;
  bottom: -18%;
  background: #0ea5e9;
  opacity: 0.35;
  animation: drift 44s ease-in-out infinite;
}

.b4 {
  width: 28vw;
  height: 28vw;
  right: 18%;
  bottom: 10%;
  background: #4f46e5;
  opacity: 0.4;
  animation: drift 26s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4%, -6%, 0) scale(1.08);
  }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Nav — quiet, behind the hero */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 10px 20px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: rgba(10, 12, 16, 0.36);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(180, 200, 255, 0.08);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

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

.brand-ly {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--faint);
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px 20px;
  max-width: 100%;
}

.nav-links a {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 0;
  background: transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: transparent;
}

.nav-links a.is-current {
  color: var(--text);
  background: transparent;
  box-shadow: 0 1px 0 rgba(232, 238, 255, 0.28);
}

.nav-dock {
  display: none;
}

.wrap {
  width: min(100%, calc(var(--max) + 40px));
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  flex: 1;
  padding: 28px 0 72px;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(10, 12, 16, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(180, 200, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .nav-dock a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faint);
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .nav-dock a:hover,
  .nav-dock a.is-current {
    color: var(--text);
  }

  .main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 18px;
  padding: 16px 0;
  border-top: 1px solid var(--glass-border);
  align-items: start;
}

.feed-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-meta time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

@media (max-width: 700px) {
  .feed-item {
    grid-template-columns: 1fr;
  }
}

/* Hero — a room, not a landing */
.hero {
  padding: 72px 0 28px;
  text-align: left;
}

.kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--amber);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(64px, 16vw, 120px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.mutter {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: clamp(20px, 3vw, 28px);
}

.hero .spoken {
  margin: 28px 0 0;
  max-width: 12em;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero .lede {
  margin: 16px 0 0;
  max-width: 28em;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.presence {
  padding: 8px 0 36px;
}

.now-line {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 16px;
}

.pulses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--faint);
  font-size: 13px;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-link {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.door-list {
  display: grid;
  gap: 10px;
}

.door {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.door:hover {
  color: var(--text);
  border-color: rgba(224, 181, 106, 0.4);
}

.door-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.door-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.door-body strong {
  font-weight: 500;
}

.door-body span {
  color: var(--faint);
  font-size: 13px;
}

.marks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.marks li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
}

.marks time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}

.marks strong {
  display: block;
  font-weight: 500;
}

@media (max-width: 700px) {
  .marks li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Buttons */
.btn {
  appearance: none;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  background: transparent;
}

.btn-primary {
  background: linear-gradient(180deg, #e8c57a, #c4923a);
  color: #1a1408;
  box-shadow: 0 10px 30px rgba(196, 146, 58, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #041018;
}

.btn-ghost {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

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

.btn.is-copied {
  background: var(--sage);
  color: #041018;
}

.btn.is-failed {
  background: var(--danger);
  color: #1a0a08;
}

.btn-block {
  width: 100%;
}

@media (max-width: 639px) {
  .hero-actions .btn,
  .world-actions .btn {
    flex: 1 1 100%;
  }
}

/* Glass panel */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 var(--glass-shine);
}

.section {
  margin: 48px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.section-head a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* World cards */
.world-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .world-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.world-card {
  overflow: hidden;
  padding: 0;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  --mx: 0.5;
  --my: 0.5;
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px 220px at calc(var(--mx) * 100%) calc(var(--my) * 100%),
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.25s;
}

.world-card:hover::after {
  opacity: 1;
}

.world-card.is-pixel {
  box-shadow: 0 0 0 1px rgba(224, 181, 106, 0.12), 0 24px 50px rgba(0, 0, 0, 0.3);
}

.world-card.is-mc {
  box-shadow: 0 0 0 1px rgba(125, 206, 160, 0.12), 0 24px 50px rgba(0, 0, 0, 0.3);
}

.world-visual {
  min-height: 180px;
  background: #050814;
  position: relative;
}

.world-visual img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  image-rendering: auto;
}

.mc-plate {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  font-family: var(--font-mono);
  background:
    radial-gradient(400px 180px at 20% 30%, rgba(16, 185, 129, 0.18), transparent 70%),
    #07140f;
}

.mc-plate .id {
  color: var(--sage);
  letter-spacing: 0.18em;
  font-size: 11px;
}

.mc-plate .addr {
  font-size: 18px;
  word-break: break-all;
}

.world-body {
  padding: 18px 20px 20px;
}

.world-id {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.world-body h2,
.world-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.world-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.world-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section .world-actions {
  margin-top: 16px;
}

/* Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.status.is-online {
  color: var(--sage);
}

.status.is-offline,
.status.is-lost {
  color: var(--danger);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dot.is-off {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
}

.dot.is-pulse {
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.badge.is-live {
  color: var(--sage);
  border-color: rgba(125, 206, 160, 0.35);
}

.badge.is-lost,
.badge.is-stale {
  color: var(--danger);
  border-color: rgba(240, 160, 144, 0.35);
}

.badge.is-sample {
  color: var(--amber);
  border-color: rgba(224, 181, 106, 0.4);
}

/* Instruments */
.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
}

@media (min-width: 800px) {
  .meters.is-wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.meter {
  background: rgba(6, 10, 24, 0.55);
  padding: 14px 12px;
  min-height: 78px;
}

.meter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.meter-value {
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.panel-pad {
  padding: 22px;
}

.addr-hero {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 32px);
  margin: 8px 0 18px;
  word-break: break-all;
}

.steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.steps li {
  margin: 8px 0;
}

.quiet {
  color: var(--faint);
  font-size: 13px;
}

.empty-lab {
  padding: 48px 24px;
  text-align: center;
}

.empty-lab h1,
.empty-lab h2.kicker,
.profile-lock h1 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.24em;
  font-size: 14px;
  color: var(--violet);
}

.empty-lab p {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.empty-lab p.quiet {
  margin-top: 10px;
  font-size: 13px;
}

.profile-preview .lede {
  margin-top: 8px;
}

.live-toolbar {
  margin-bottom: 16px;
}

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.activity-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
  align-items: baseline;
}

@media (max-width: 700px) {
  .activity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.activity-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.activity-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

.hero-shot {
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
}

.footer {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
}

.profile-grid {
  display: grid;
  gap: 12px;
}

.field {
  padding: 14px 16px;
}

.field dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin-bottom: 6px;
}

.field dd {
  margin: 0;
  color: var(--muted);
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--glass-border);
}

.log time {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 12px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

html,
body {
  overflow-x: hidden;
}

.conn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.conn-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.conn-card.is-disabled {
  opacity: 0.85;
}

.conn-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.conn-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.conn-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.conn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.conn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.filter-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 10px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  min-height: 36px;
}

.filter-chip.is-on {
  color: var(--cyan);
  border-color: rgba(125, 211, 252, 0.4);
}

.conn-desc {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
}

.now-item {
  padding: 18px;
}

.now-value {
  margin: 8px 0 0;
  font-size: 18px;
}

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

.proj-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  padding: 18px;
  color: inherit;
  min-width: 0;
}

.proj-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.proj-row:hover {
  color: inherit;
}

.change-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.changelog-card + .changelog-card {
  margin-top: 16px;
}

.secret-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(10px);
}

.secret-card {
  width: min(100%, 420px);
  padding: 28px;
}

.secret-card .kicker {
  margin-bottom: 8px;
}

.mark-tiny {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .arch-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: start;
  }
}

.arch-head h1 {
  margin: 6px 0 0;
}

.arch-en {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--faint);
  margin: 4px 0 0;
}

.arch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.apply-form {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin-top: 12px;
}

.apply-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 8px;
}

.apply-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(7, 11, 24, 0.55);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.arch-points {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .arch-points {
    grid-template-columns: 1fr 1fr;
  }
}

.arch-point h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
}

.arch-point p {
  margin: 0;
}

.arch-plugin {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--glass-border);
}

.arch-media {
  display: grid;
  gap: 12px;
}

.arch-media-hero img,
.arch-lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.arch-media-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.arch-lightbox-img {
  width: min(100%, 960px);
}

.explore-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .explore-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.explore-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.explore-links a {
  color: var(--text);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.profile-avatar.is-on {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .dot.is-pulse,
  .world-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .secret-layer {
    backdrop-filter: none;
  }
}

@media (max-width: 720px) {
  .footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}


/* —— Zero-World：五幕空间 —— */
html:has(.page-home),
.page-home {
  height: 100dvh;
  overflow: hidden;
}

.page-home .nav.is-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  display: flex;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 22px 32px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}

.page-home .nav-links[hidden],
.page-home .nav-links {
  display: none;
}

.page-home .brand-ly {
  font-size: 11px;
  color: var(--amber);
}

.page-home .brand-name {
  font-size: 15px;
  letter-spacing: 0.12em;
}

.scene-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.scene-progress i {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--amber);
  transition: width 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.scene-rail {
  position: fixed;
  top: 50%;
  left: 28px;
  right: auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-50%);
}

.scene-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(224, 181, 106, 0.28), transparent);
  pointer-events: none;
}

.scene-rail-item {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 0 10px 14px;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
  text-align: left;
  transition: color 0.35s ease;
}

.scene-rail-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(239, 230, 212, 0.22);
}

.scene-rail-item .no {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.scene-rail-item .en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.scene-rail-item .zh {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(183, 170, 148, 0.55);
}

.scene-rail-item:hover,
.scene-rail-item.is-on {
  color: var(--text);
}

.scene-rail-item.is-on .en {
  color: var(--amber);
}

.scene-rail-item.is-on::before {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(224, 181, 106, 0.45);
}

.deck {
  position: relative;
  z-index: 1;
  height: 100dvh;
  overflow: hidden;
}

.reel {
  will-change: transform;
  transition: transform 0.92s cubic-bezier(0.76, 0, 0.24, 1);
}

.scene {
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.scene .scene-inner {
  opacity: 0.38;
  transform: translate3d(0, 18px, 0) scale(0.985);
  transform-origin: 50% 20%;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scene.is-on .scene-inner {
  opacity: 1;
  transform: none;
}

.scene-inner {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 181, 106, 0.28) transparent;
  padding: 96px 0 48px;
  padding-top: calc(88px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

.page-home .wrap {
  width: min(100%, 1080px);
  padding-left: 120px;
  padding-right: 40px;
}

.scene-inner::-webkit-scrollbar {
  width: 4px;
}

.scene-inner::-webkit-scrollbar-thumb {
  background: rgba(224, 181, 106, 0.28);
  border-radius: 99px;
}

.scene-head {
  max-width: 34em;
  margin-bottom: 28px;
}

.scene-head .kicker {
  margin: 0;
}

.scene-head h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.scene-lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 28em;
  line-height: 1.55;
}

.scene-index {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

.scene-index span {
  color: rgba(239, 230, 212, 0.28);
}

.hero-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

.hero-top {
  display: flex;
  align-items: baseline;
  gap: 16px 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-top .scene-index {
  margin: 0;
}

.hero-scene .kicker {
  margin: 0;
  opacity: 0.72;
  letter-spacing: 0.28em;
  font-size: 12px;
}

.hero-top .sys-clock {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.hero-scene h1 {
  margin: 0;
  font-size: clamp(80px, 17vw, 160px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.hero-scene .mutter {
  margin-top: 18px;
  font-size: clamp(15px, 1.8vw, 20px);
  color: var(--amber);
  letter-spacing: 0.04em;
}

.hero-scene .spoken {
  margin-top: 22px;
  max-width: 18em;
  font-size: 17px;
  color: var(--muted);
}

.hero-scene .presence {
  margin-top: 36px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(224, 181, 106, 0.14);
  max-width: 28em;
}

.now-running {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sage);
}

.world-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.pulse-sep {
  width: 18px;
  height: 1px;
  background: rgba(239, 230, 212, 0.22);
}

.scene-hint {
  appearance: none;
  margin-top: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.scene-hint i {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--amber), transparent);
  animation: hint-fall 1.8s ease-in-out infinite;
}

@keyframes hint-fall {
  0%,
  100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.about-wrap { max-width: 920px; }

.about-head { max-width: 26em; margin-bottom: 22px; }

.dossier {
  display: grid;
  gap: 0;
  border: 1px solid var(--glass-border);
  background: rgba(10, 12, 16, 0.28);
}

.dossier-id {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: end;
  padding: 28px 28px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.about-avatar {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.about-name {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.about-handle {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.about-bio {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 16px;
}

.dossier-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.dossier-states .state-cell {
  padding: 20px 28px 22px;
  border-bottom: 1px solid var(--glass-border);
}

.dossier-states .state-cell:nth-child(odd) {
  border-right: 1px solid var(--glass-border);
}

.state-cell { min-width: 0; }

.state-kicker {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.state-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--faint);
}

.state-cell p:last-child {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.mark-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mark-list span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--glass-border);
}

.dossier-find {
  padding: 20px 28px 24px;
}

.find-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 12px;
}

.find-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.find-link:hover { color: var(--amber); }

.find-link.is-off {
  opacity: 0.4;
  cursor: default;
}

.now-running:not([hidden])::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sage);
  vertical-align: middle;
}

.page-home .atmosphere::after,
.page-inner .atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.012) 3px 4px
  );
  opacity: 0.55;
}

.world-gates { display: grid; gap: 20px; }

@media (min-width: 900px) {
  .world-gates {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
  }
}

.world-gate {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border);
  background: rgba(10, 12, 16, 0.32);
  transition: border-color 0.35s ease, transform 0.45s ease;
}

.world-gate:hover {
  border-color: rgba(224, 181, 106, 0.35);
  transform: translateY(-2px);
}

.world-num {
  margin: 0;
  padding: 12px 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--amber);
}

.world-gate-visual {
  position: relative;
  min-height: 200px;
  margin: 12px 16px 0;
  background: #050814;
  overflow: hidden;
}

.world-gate-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.world-gate .mc-plate {
  min-height: 220px;
  height: 220px;
}

.world-gate-body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.world-gate-body .world-id { margin: 0 0 6px; }

.world-gate-body h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.world-gate-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.world-gate-body .world-actions {
  margin-top: auto;
  padding-top: 8px;
}

/* Editorial worlds */
.worlds-wrap {
  width: min(100%, 1180px);
}

.world-editorial {
  display: grid;
  gap: 48px;
}

.world-feature {
  display: grid;
  gap: 22px;
  align-items: end;
}

@media (min-width: 900px) {
  .world-feature {
    grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.35fr);
    gap: 36px;
    align-items: stretch;
  }

  .world-feature.is-flip {
    grid-template-columns: minmax(320px, 1.35fr) minmax(240px, 0.9fr);
  }

  .world-feature.is-flip .world-feature-copy { order: 2; }
  .world-feature.is-flip .world-feature-visual { order: 1; }
}

.world-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 0 4px;
  min-width: 0;
}

.world-feature .world-num {
  padding: 0;
  margin-bottom: 14px;
}

.world-feature .world-id {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

.world-feature h3 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.world-feature-lead {
  margin: 0 0 18px;
  max-width: 22em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.world-feature .world-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.world-feature-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #050814;
  border: 1px solid rgba(224, 181, 106, 0.14);
}

.world-feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.02);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.world-feature:hover .world-feature-visual img {
  transform: scale(1.05);
  filter: saturate(0.95) contrast(1.06);
}

.world-feature .mc-plate {
  min-height: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(90, 140, 100, 0.18), transparent 55%),
    linear-gradient(160deg, #0b1410 0%, #07100c 48%, #050807 100%);
}

.world-feature .mc-plate .id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(201, 160, 90, 0.75);
}

.world-feature .mc-plate .addr {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  color: var(--text);
}

.world-plate {
  min-height: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(28, 34, 48, 0.9), rgba(10, 12, 16, 0.95)),
    #0c1018;
  border: 1px solid rgba(180, 200, 255, 0.08);
}

.world-plate .id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(201, 160, 90, 0.75);
}

.world-plate .addr {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 24px);
  letter-spacing: 0.06em;
  color: var(--text);
}

/* WORLD 0 immersive pixel space */
.scene-zero .zero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.zero-shell {
  width: 100%;
  display: grid;
  gap: 12px;
  justify-items: stretch;
  align-content: center;
}

.zero-head {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding-left: 120px;
  padding-right: 40px;
  max-width: 34em;
}

.page-home .zero-head.wrap {
  width: min(100%, 1080px);
}

.zero-head .scene-index { margin-bottom: 10px; }

.zero-head .kicker {
  margin: 0;
  opacity: 0.72;
}

.zero-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 500;
}

.zero-lead {
  margin: 10px 0 0;
  max-width: 22em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.zero-viewport {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(50vh, 440px);
  margin: 0;
  overflow: hidden;
}

.zero-canvas {
  display: block;
  width: auto;
  max-width: min(100%, 1180px);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #07080c;
  border: 0;
  box-shadow: none;
  outline: none;
}

.zero-fade {
  pointer-events: none;
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0.35) 8%, transparent 18%, transparent 82%, rgba(7, 8, 12, 0.35) 92%, rgba(7, 8, 12, 0.92) 100%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.78) 0%, transparent 14%, transparent 78%, rgba(7, 8, 12, 0.88) 100%),
    radial-gradient(ellipse 78% 62% at 50% 52%, transparent 55%, rgba(7, 8, 12, 0.22) 100%);
}

.zero-status {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding-left: 120px;
  padding-right: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
  min-height: 28px;
}

.zero-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px rgba(111, 143, 106, 0.45);
}

.zero-status [data-zero-status] {
  color: var(--sage);
}

.zero-status [data-zero-activity] {
  color: var(--text);
  opacity: 0.78;
}

.zero-sep {
  width: 12px;
  height: 1px;
  background: rgba(239, 230, 212, 0.18);
}

.zero-sep-wide { width: 22px; }

.zero-signal {
  color: rgba(183, 170, 148, 0.72);
  max-width: 28em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zero-updated {
  margin-left: auto;
  opacity: 0.55;
}

/* ── WORLD 0 实体：一对猩红恶魔眼 ── */
.zero-eye-host {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 38;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  max-width: calc(100vw - 44px);
}

.zero-eye {
  pointer-events: auto;
  appearance: none;
  padding: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  opacity: 0.88;
  transition: opacity 0.5s ease;
}

.zero-eye canvas {
  display: block;
}

.zero-eye:hover,
.zero-eye.is-open {
  opacity: 1;
}

.zero-eye:focus-visible {
  outline: 1px solid rgba(198, 40, 40, 0.5);
  outline-offset: 4px;
}

/* 主页迷你笔记本（双眼旁边，点开 = /zero/#notes） */
.zero-home-book {
  pointer-events: auto;
  display: block;
  padding: 4px;
  line-height: 0;
  opacity: 0.72;
  transition: opacity 0.4s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.zero-home-book:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.zero-book-cover.is-mini {
  width: 34px;
  height: 46px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.5);
}

.zero-book-cover.is-mini .zero-book-spine { left: 4px; }
.zero-book-cover.is-mini .zero-book-strap { right: 5px; width: 3px; }

.zero-book-cover.is-mini .zero-book-sigil {
  width: 14px;
  height: 8px;
  border-width: 1px;
}

.zero-book-cover.is-mini .zero-book-sigil::after {
  width: 3px;
  height: 3px;
}

@media (max-width: 720px) {
  .zero-eye-host {
    left: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .zero-book-cover.is-mini {
    width: 28px;
    height: 38px;
  }
}

/* /zero/ SYSTEM 面板 */
.zero-sys {
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(198, 40, 40, 0.14);
  border: 1px solid rgba(198, 40, 40, 0.14);
}

.zero-sys-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(10, 7, 7, 0.82);
}

.zero-sys-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(198, 40, 40, 0.7);
}

.zero-sys-v {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.zero-sys-v.is-missing {
  color: var(--faint);
}

.zero-sys-v.is-warn {
  color: #e8453a;
}

@media (max-width: 720px) {
  .zero-sys {
    grid-template-columns: repeat(2, 1fr);
  }
  .zero-sys-cell { padding: 11px 12px; }
  .zero-sys-v { font-size: 12px; }
}

/* /zero/ 开场白（长版，在 lead 下面） */
.zero-manifesto {
  margin: 14px 0 0;
  max-width: 46em;
  display: grid;
  gap: 6px;
}

.zero-manifesto p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* /zero/ 附加板块共用标题 */
.zero-block-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.zero-block-label small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(198, 40, 40, 0.6);
}

.zero-graph-block,
.zero-check-block,
.zero-glossary-block {
  width: min(100%, 720px);
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(198, 40, 40, 0.14);
}

/* 关系图 */
.zero-graph {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
}

.zero-graph text {
  font-family: var(--font-mono);
}

.zero-graph .zg-edge {
  stroke: rgba(198, 40, 40, 0.32);
  stroke-width: 1;
  fill: none;
}

.zero-graph .zg-edge-label {
  font-size: 8px;
  letter-spacing: 0.08em;
  fill: rgba(198, 40, 40, 0.65);
}

.zero-graph .zg-core {
  fill: #160101;
  stroke: rgba(214, 28, 22, 0.85);
  stroke-width: 1.2;
}

.zero-graph .zg-core-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: #e8453a;
}

.zero-graph .zg-node {
  fill: rgba(10, 7, 7, 0.9);
  stroke: rgba(198, 40, 40, 0.4);
  stroke-width: 1;
}

.zero-graph .zg-node-label {
  font-size: 9px;
  letter-spacing: 0.06em;
  fill: var(--muted);
}

/* 自检——终端风格清单，跟笔记本/关系图区分开 */
.zero-check {
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
}

.zero-check-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
}

.zero-check-flag {
  flex-shrink: 0;
  color: rgba(198, 40, 40, 0.75);
}

.zero-check-flag.is-warn { color: #e8453a; }

.zero-check-label {
  flex: 1;
  min-width: 0;
  border-bottom: 1px dotted rgba(239, 230, 212, 0.14);
  overflow: hidden;
  white-space: nowrap;
}

.zero-check-value {
  flex-shrink: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 术语 */
.zero-glossary {
  display: grid;
  gap: 13px;
  margin: 0;
}

.zero-glossary > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
}

.zero-glossary dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(198, 40, 40, 0.75);
}

.zero-glossary dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 720px) {
  .zero-graph-block,
  .zero-check-block,
  .zero-glossary-block {
    margin-top: 22px;
    padding-top: 18px;
  }
  .zero-glossary > div { grid-template-columns: 74px 1fr; }
  .zero-check { font-size: 11px; }
}

/* 笔记分区标题 */
.zero-notes-sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.zero-notes-sec:first-child { margin-top: 4px; }

.zero-notes-sec small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(198, 40, 40, 0.6);
}

/* /zero/ 实体舞台 */
.zero-entity {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: min(40vh, 340px);
  overflow: hidden;
}

.zero-entity::before {
  content: "";
  position: absolute;
  width: min(60vw, 520px);
  height: min(30vh, 240px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(140, 14, 10, 0.16), transparent 65%);
  filter: blur(14px);
  pointer-events: none;
}

.zero-eye-canvas {
  position: relative;
  display: block;
  max-width: 100%;
}

/* 点击提示（只出现一次） */
.zero-poke-hint {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(232, 60, 48, 0.85);
  background: rgba(10, 7, 7, 0.72);
  border: 1px solid rgba(198, 40, 40, 0.3);
  opacity: 0;
  animation: zero-poke-in 0.4s ease forwards;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.zero-poke-hint.is-out {
  animation: zero-poke-out 0.6s ease forwards;
}

@keyframes zero-poke-in {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes zero-poke-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* 异常闪烁（久坐后被惊醒 / 被连续戳） */
.zero-entity.is-anomaly {
  animation: zero-anomaly-shake 0.42s ease;
}

.zero-entity.is-anomaly::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

@keyframes zero-anomaly-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, -1px); }
}

@media (prefers-reduced-motion: reduce) {
  .zero-entity.is-anomaly { animation: none; }
  .zero-entity.is-anomaly::after { display: none; }
  .zero-poke-hint { animation: none; opacity: 1; }
}

/* /zero/ 实体笔记本 */
.zero-book-block {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 30px 0 24px;
  border-top: 1px solid rgba(198, 40, 40, 0.14);
}

.zero-book {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px;
  margin: 0 0 4px -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.zero-book-cover {
  position: relative;
  display: block;
  width: 74px;
  height: 96px;
  background:
    linear-gradient(150deg, #201314 0%, #140a0a 55%, #0d0505 100%);
  border: 1px solid rgba(198, 40, 40, 0.35);
  box-shadow:
    3px 4px 0 rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 120, 100, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.zero-book:hover .zero-book-cover,
.zero-book.is-open .zero-book-cover {
  transform: translateY(-3px) rotate(-1.5deg);
  box-shadow:
    4px 6px 0 rgba(0, 0, 0, 0.6),
    0 0 26px rgba(198, 40, 40, 0.18),
    inset 0 1px 0 rgba(255, 120, 100, 0.08);
}

.zero-book-spine {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(198, 40, 40, 0.4);
}

.zero-book-sigil {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 26px;
  height: 14px;
  transform: translate(-42%, -50%);
  border: 1.5px solid rgba(214, 28, 22, 0.85);
  border-radius: 50% / 100% 100% 0 0;
  border-bottom: 0;
}

.zero-book-sigil::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 62%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #d61c16;
  box-shadow: 0 0 8px rgba(232, 60, 48, 0.8);
}

.zero-book.is-open .zero-book-sigil::after {
  animation: sigil-pulse 2.6s ease-in-out infinite;
}

@keyframes sigil-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.zero-book-strap {
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(60, 12, 10, 0.85);
  border-left: 1px solid rgba(198, 40, 40, 0.25);
}

.zero-book-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.zero-book-label small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(198, 40, 40, 0.75);
}

.zero-book-panel {
  margin-top: 14px;
  padding: 20px 22px 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(198, 40, 40, 0.05) 27px 28px),
    linear-gradient(180deg, rgba(20, 12, 11, 0.92), rgba(12, 7, 7, 0.95));
  border: 1px solid rgba(198, 40, 40, 0.2);
  border-left: 3px solid rgba(198, 40, 40, 0.35);
}

.zero-notes {
  display: grid;
  gap: 0;
}

.zero-note {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(239, 230, 212, 0.06);
  font-size: 14px;
  line-height: 1.6;
}

.zero-note-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
  padding-top: 3px;
}

.zero-note-text {
  color: var(--muted);
  min-width: 0;
}

.zero-note.is-origin .zero-note-date {
  color: rgba(198, 40, 40, 0.7);
}

.zero-note.is-origin .zero-note-text {
  color: var(--text);
}

.zero-note.is-live .zero-note-date,
.zero-note.is-live .zero-note-text {
  color: rgba(232, 69, 58, 0.85);
}

.zero-notes-foot {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--faint);
  font-style: normal;
}

@media (max-width: 720px) {
  .zero-note {
    grid-template-columns: 60px 1fr;
    gap: 10px;
    font-size: 13px;
  }
  .zero-entity {
    min-height: min(30vh, 220px);
  }
  .zero-book-cover {
    width: 60px;
    height: 80px;
  }
}

/* 深色滚动条（修正右侧白条） */
html {
  scrollbar-color: rgba(224, 181, 106, 0.25) #0a0c10;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 10px;
  background: #0a0c10;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: rgba(224, 181, 106, 0.22);
  border: 2px solid #0a0c10;
  border-radius: 99px;
}

.page-zero,
.page-zero body {
  overflow-x: hidden;
}

/* WORLD 0 standalone page */
.page-zero {
  min-height: 100vh;
  background: #07080c;
}

.page-zero .atmosphere .blob {
  opacity: 0.28;
}

.page-zero .nav-dock { display: none !important; }

.zero-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  pointer-events: none;
}

.zero-nav .brand,
.zero-nav .zero-back {
  pointer-events: auto;
}

.zero-back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.25s ease;
}

.zero-back:hover { color: var(--text); }

.zero-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 18px;
  padding: calc(72px + env(safe-area-inset-top, 0px)) 24px calc(48px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.page-zero .zero-page-head {
  width: min(100%, 720px);
}

.page-zero .zero-status {
  width: min(100%, 720px);
}

.zero-page-head {
  width: min(100%, 920px);
  margin: 0 auto;
  text-align: left;
}

.zero-page-head .kicker {
  margin: 0;
  opacity: 0.65;
}

.zero-page-head h1 {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: clamp(28px, 4vw, 40px);
}

.zero-page-head .scene-lead {
  margin: 12px 0 0;
  max-width: 22em;
  color: var(--muted);
}

.zero-viewport.is-page {
  min-height: min(58vh, 560px);
  width: 100%;
}

.page-zero .zero-status {
  padding-left: 0;
  padding-right: 0;
}

/* Homepage / archive eggs — barely there */
.home-foot {
  margin-top: 36px;
  display: flex;
  justify-content: flex-end;
  opacity: 0.28;
}

.zero-mark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-decoration: none;
  padding: 4px 2px;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.zero-mark:hover {
  color: var(--muted);
  opacity: 1;
}

.now-egg {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.now-egg .state-kicker {
  margin-bottom: 4px;
  opacity: 0.55;
}

.now-egg a {
  color: rgba(183, 170, 148, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(183, 170, 148, 0.18);
}

.now-egg a:hover {
  color: var(--muted);
}

.arch-zero-trace {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.42;
}

.arch-zero-trace a {
  color: var(--faint);
  text-decoration: none;
}

.arch-zero-trace a:hover {
  color: var(--muted);
}

.arch-zero-sep {
  margin: 0 0.45em;
  opacity: 0.5;
}

.world-zero-whisper {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(138, 132, 120, 0.38);
}

.conn-list { display: grid; }

.conn-list.conn-list {
  gap: 0;
}

.conn-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 28px;
  align-items: center;
  padding: 18px 8px 18px 0;
  border-top: 1px solid var(--glass-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.3s ease;
}

.conn-gate:hover {
  background: rgba(224, 181, 106, 0.04);
}

.conn-gate .conn-head { grid-column: 1; }
.conn-gate .conn-tags,
.conn-gate .conn-desc { grid-column: 1; }
.conn-gate .world-actions {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}
.conn-gate .conn-icon { width: 28px; height: 28px; }

.now-wrap { max-width: 920px; }

.now-board {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .now-board {
    grid-template-columns: minmax(240px, 0.42fr) 1fr;
    gap: 40px;
    align-items: start;
  }
}

.now-current {
  margin-bottom: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--glass-border);
  background: rgba(10, 12, 16, 0.28);
}

.now-current .now-running {
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-family: var(--font-sans);
  margin: 0 0 12px;
}

.now-doing { margin: 0 0 10px; color: var(--muted); }
.now-doing .state-kicker { display: inline; margin-right: 10px; }

.now-signal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.now-recent-label { margin-bottom: 10px; }

.state-list { list-style: none; margin: 0; padding: 0; }

.state-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--glass-border);
}

.state-row strong { font-weight: 500; }

.state-row .state-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  justify-self: end;
}

.state-row .quiet { grid-column: 1 / -1; margin: 0; }

/* 混在正常记录里的「系统记录」——视觉次要，不额外标注文字 */
.state-row.is-system-note,
.feed-item.is-system-note {
  border-top-color: rgba(198, 40, 40, 0.22);
}

.state-row.is-system-note strong,
.feed-item.is-system-note strong {
  color: var(--muted);
  font-weight: 400;
}

.state-row.is-system-note strong::before,
.feed-item.is-system-note strong::before {
  content: "· ";
  color: rgba(198, 40, 40, 0.55);
}

.page-home .scene.is-on .scene-head,
.page-home .scene.is-on .hero-scene > *,
.page-home .scene.is-on .dossier,
.page-home .scene.is-on .world-gates,
.page-home .scene.is-on .world-editorial,
.page-home .scene.is-on .zero-viewport,
.page-home .scene.is-on .zero-status,
.page-home .scene.is-on .conn-list,
.page-home .scene.is-on .filter-bar,
.page-home .scene.is-on .now-board,
.page-home .scene.is-on .now-current,
.page-home .scene.is-on .state-list {
  animation: scene-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-home .scene.is-on .hero-scene > *:nth-child(2) { animation-delay: 0.06s; }
.page-home .scene.is-on .hero-scene > *:nth-child(3) { animation-delay: 0.12s; }
.page-home .scene.is-on .hero-scene > *:nth-child(4) { animation-delay: 0.18s; }
.page-home .scene.is-on .hero-scene > *:nth-child(5) { animation-delay: 0.26s; }
.page-home .scene.is-on .hero-scene > *:nth-child(6) { animation-delay: 0.34s; }
.page-home .scene.is-on .hero-scene > *:nth-child(7) { animation-delay: 0.42s; }
.page-home .scene.is-on .zero-viewport { animation-delay: 0.1s; }
.page-home .scene.is-on .zero-status { animation-delay: 0.22s; }
.page-home .scene.is-on .world-feature:nth-child(2) { animation-delay: 0.14s; }

@keyframes scene-rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

body[data-current-scene="home"] .atmosphere { filter: none; }
body[data-current-scene="about"] .b2 { opacity: 0.45; }
body[data-current-scene="about"] .atmosphere {
  background:
    radial-gradient(680px 480px at 12% 8%, rgba(224, 181, 106, 0.12), transparent 58%),
    #0a0c10;
}
body[data-current-scene="zero"] .b1,
body[data-current-scene="zero"] .b2,
body[data-current-scene="zero"] .b3 { opacity: 0.12; }
body[data-current-scene="zero"] .atmosphere {
  background:
    radial-gradient(520px 360px at 42% 58%, rgba(201, 160, 90, 0.07), transparent 55%),
    radial-gradient(640px 420px at 78% 30%, rgba(36, 58, 72, 0.18), transparent 50%),
    #07080c;
}
body[data-current-scene="worlds"] .b1 { opacity: 0.3; }
body[data-current-scene="worlds"] .atmosphere {
  background:
    radial-gradient(800px 520px at 88% 20%, rgba(36, 58, 92, 0.32), transparent 55%),
    #0a0c10;
}
body[data-current-scene="community"] .b3 { opacity: 0.42; }
body[data-current-scene="log"] .b2 { opacity: 0.22; }
body[data-current-scene="log"] .atmosphere {
  background:
    radial-gradient(720px 420px at 50% 100%, rgba(143, 191, 154, 0.08), transparent 50%),
    #0a0c10;
}

.now-more {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.now-more a { color: var(--amber); }

.inner-live {
  margin-top: 22px;
}

.inner-block {
  padding: 28px 0;
  border-top: 1px solid var(--glass-border);
}

.inner-block h2 {
  margin: 4px 0 14px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fact-list { display: grid; }

.fact-row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.fact-value { color: var(--text); min-width: 0; }

.page-inner .nav.is-overlay {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 32px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

.page-inner .main,
.page-inner .footer {
  position: relative;
  z-index: 1;
}

.page-inner .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.page-inner .nav-links a {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.page-inner .nav-links a small {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.page-inner .nav-links a:hover,
.page-inner .nav-links a.is-current {
  color: var(--text);
  background: none;
  box-shadow: none;
}

.page-inner .nav-links a.is-current small { color: var(--amber); }

.page-inner .main {
  padding-top: 12px;
  padding-bottom: 48px;
}

.page-inner .page-head h1 {
  margin: 4px 0 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.page-inner .footer {
  background: transparent;
}

.page-inner .apply-form input {
  border-radius: 2px;
  background: transparent;
}

.page-home .filter-chip,
.page-inner .filter-chip,
.page-home .tag,
.page-inner .tag {
  border-radius: 2px;
}

@media (max-width: 860px) {
  .dossier-id {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px 18px;
  }

  .dossier-states { grid-template-columns: 1fr; }

  .dossier-states .state-cell,
  .dossier-states .state-cell:nth-child(odd) {
    border-right: 0;
    padding: 16px 18px;
  }

  .dossier-find { padding: 16px 18px 20px; }

  .conn-gate { grid-template-columns: 1fr; }
  .conn-gate .world-actions { grid-column: 1; grid-row: auto; }
}

@media (max-width: 720px) {
  .scene-rail { display: none; }

  .page-home .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-home .scene-inner {
    padding-top: calc(52px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .page-home .scene-head { margin-bottom: 12px; }
  .page-home .scene-head h2 { font-size: clamp(28px, 9vw, 40px); }
  .page-home .scene-lead { margin-top: 8px; font-size: 14px; }

  .hero-top { margin-bottom: 18px; }
  .hero-top .sys-clock { margin-left: 0; width: 100%; }

  .hero-scene {
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
    justify-content: flex-start;
  }
  .hero-scene .spoken { margin-top: 16px; font-size: 16px; }
  .hero-scene .presence { margin-top: 24px; }
  .scene-hint { margin-top: 28px; }

  .dossier { gap: 22px; }
  .dossier-id { padding-bottom: 16px; }
  .dossier-states { gap: 14px; }

  .world-gates { gap: 22px; }
  .world-gate-body { padding-top: 10px; }
  .world-gate-body h3 { font-size: 20px; margin-bottom: 6px; }

  .world-editorial { gap: 34px; }
  .world-feature h3 { font-size: clamp(28px, 10vw, 40px); }
  .world-feature-visual,
  .world-feature-visual img,
  .world-feature .mc-plate {
    min-height: 200px;
  }
  .world-feature-visual img { max-height: 240px; }

  .scene-zero .zero-inner {
    align-items: flex-start;
    padding-top: calc(48px + env(safe-area-inset-top, 0px));
  }

  .zero-head,
  .zero-status {
    padding-left: 20px;
    padding-right: 20px;
  }

  .zero-viewport {
    min-height: 0;
    margin: 2px 0 4px;
  }

  .zero-canvas {
    max-width: 100%;
  }

  .zero-fade {
    background:
      radial-gradient(ellipse 80% 60% at 50% 50%, transparent 48%, rgba(7, 8, 12, 0.35) 100%);
  }

  .zero-status {
    gap: 6px 10px;
    font-size: 10px;
  }

  .zero-updated { margin-left: 0; width: 100%; }
  .zero-signal { max-width: 100%; white-space: normal; }

  .conn-gate { padding: 12px 0; }

  .now-current { margin-bottom: 16px; padding-bottom: 14px; }
  .state-row { padding: 10px 0; }

  .filter-bar {
    margin-bottom: 10px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-chip { min-height: 28px; padding: 2px 8px; }

  .page-home .nav-dock,
  .page-inner .nav-dock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(10, 12, 16, 0.9);
  }

  .page-home .nav-dock a,
  .page-inner .nav-dock a {
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    letter-spacing: 0.08em;
    min-height: 56px;
  }

  .page-home .nav-dock a small,
  .page-inner .nav-dock a small {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--faint);
  }

  .page-home .nav-dock a.is-current small,
  .page-inner .nav-dock a.is-current small { color: var(--amber); }

  .page-inner .nav.is-overlay { padding: 14px 20px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .page-inner .main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

  .hero-scene h1 { font-size: clamp(56px, 20vw, 84px); }

  .about-name { font-size: clamp(40px, 12vw, 52px); }

  .world-gate-visual {
    min-height: 140px;
    margin: 10px 12px 0;
  }

  .world-gate-visual img,
  .world-gate .mc-plate {
    height: 140px;
    min-height: 140px;
  }

  .world-num,
  .world-gate-body { padding-left: 12px; padding-right: 12px; }

  .page-home .world-gate-body .world-id { display: none; }

  .page-home [data-community-filters],
  .page-home [data-feed-filters] { display: none; }

  .page-home .conn-gate .conn-desc,
  .page-home .conn-gate .conn-tags,
  .page-home .conn-gate .conn-icon { display: none; }

  .page-home .state-list .state-row:nth-child(n+4) { display: none; }
  .page-home .state-row .quiet { display: none; }

  .page-home .world-actions .btn,
  .page-inner .world-actions .btn,
  .page-home .arch-actions .btn,
  .page-inner .arch-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }

  .state-row { grid-template-columns: 1fr; }
  .state-row .state-meta { justify-self: start; }
}

@media (max-width: 1080px) and (min-width: 721px) {
  .scene-rail { left: 16px; }
  .scene-rail-item .zh { display: none; }
  .page-home .wrap { padding-left: 92px; }
  .zero-head,
  .zero-status { padding-left: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .reel,
  .scene-progress i,
  .scene .scene-inner { transition: none !important; }

  .scene .scene-inner {
    opacity: 1;
    transform: none;
  }

  .page-home .scene.is-on .scene-head,
  .page-home .scene.is-on .hero-scene > *,
  .page-home .scene.is-on .dossier,
  .page-home .scene.is-on .world-gates,
  .page-home .scene.is-on .world-editorial,
  .page-home .scene.is-on .zero-viewport,
  .page-home .scene.is-on .zero-status,
  .page-home .scene.is-on .conn-list,
  .page-home .scene.is-on .filter-bar,
  .page-home .scene.is-on .now-current,
  .page-home .scene.is-on .state-list { animation: none !important; }

  .scene-hint i { animation: none; }
}
