/* NEMCBridge site — dark "nether night" theme with pixel accents. No external fonts or CDNs. */
:root {
  color-scheme: dark;
  --bg: #0b0914;
  --bg-2: #100c1c;
  --card: #141020;
  --card-2: #1a1428;
  --line: rgba(205, 190, 255, 0.1);
  --line-2: rgba(205, 190, 255, 0.2);
  --text: #f4f1ff;
  --muted: #a69fbb;
  --dim: #716a88;
  --purple: #a855f7;
  --purple-d: #7c3aed;
  --purple-l: #d8b4fe;
  --cyan: #35d3dc;
  --green: #b7ef97;
  --green-2: #4ade80;
  --amber: #fbbf24;
  --rose: #fb7185;
  --ne: #f87171;
  --intl: #38bdf8;
  --radius: 18px;
  --wrap: 1180px;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --notch: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p a, .more a, .step a { color: var(--purple-l); text-decoration: none; border-bottom: 1px solid rgba(216, 180, 254, 0.35); transition: border-color .2s, color .2s; }
p a:hover, .more a:hover, .step a:hover { color: #fff; border-color: #fff; }
code { font-family: var(--mono); font-size: .88em; background: rgba(168, 85, 247, 0.12); color: #e9dcff; padding: .12em .42em; border-radius: 6px; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
::selection { background: rgba(168, 85, 247, .45); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--purple-l); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 20px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; color: var(--text);
  border: 0; cursor: pointer; clip-path: var(--notch);
  transition: transform .15s ease, filter .2s ease, background .2s;
}
.btn:active { transform: translateY(2px); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 26px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #bb86ff 0%, #9346f5 55%, #7c2fe6 100%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), inset 0 -4px 0 rgba(40, 0, 90, .45);
  color: #fff; text-shadow: 0 1px 0 rgba(50, 0, 100, .5);
}
.btn-primary:hover { filter: brightness(1.12) saturate(1.1); }
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -3px 0 rgba(0, 0, 0, .3);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .8; margin-top: 3px; text-align: left; }
.btn-icon { flex: none; filter: drop-shadow(0 1px 0 rgba(50, 0, 100, .5)); }
.ext-icon { display: inline-block; vertical-align: -1px; margin-left: 4px; opacity: .8; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(11, 9, 20, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.brand img { image-rendering: pixelated; border-radius: 4px; }
.brand b { color: var(--purple-l); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; padding: 8px; border-radius: 8px; font-size: 13px; font-family: var(--mono); transition: color .2s; }
.icon-link:hover { color: var(--text); }
/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 40px; isolation: isolate; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(147, 70, 245, .38), transparent 70%),
    radial-gradient(40% 40% at 12% 30%, rgba(53, 211, 220, .12), transparent 70%),
    radial-gradient(35% 35% at 90% 20%, rgba(251, 113, 133, .1), transparent 70%);
}
.hero-sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.release-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--muted);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); transition: border-color .2s, color .2s;
}
.release-pill:hover { color: var(--text); border-color: rgba(216, 180, 254, .5); }
.release-pill > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-tag { font: 700 11px/1 var(--mono); letter-spacing: .08em; color: #1a0b2e; background: var(--green); padding: 6px 8px; border-radius: 999px; flex: none; }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(36px, 6.4vw, 76px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 30%, #cfc4ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal-text {
  background: linear-gradient(90deg, #c084fc, #f0abfc, #67e8f9, #a78bfa, #c084fc);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { to { background-position: 300% 0; } }
.lead { max-width: 680px; margin: 26px auto 0; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--muted); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 22px 0 0; font-size: 13px; color: var(--dim); font-family: var(--mono); }
.hero-meta li { display: flex; align-items: center; gap: 22px; }
.hero-meta li + li::before { content: ""; width: 4px; height: 4px; background: var(--dim); }

.showcase { position: relative; margin: 72px 0 0; width: 100%; transform-style: preserve-3d; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.showcase picture, .showcase img { width: 100%; height: auto; border-radius: var(--radius); }
.showcase picture { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(216, 180, 254, .22), 0 40px 120px -30px rgba(124, 58, 237, .7), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.showcase picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 9, 20, .55)); pointer-events: none; }
.showcase-glow { position: absolute; inset: 15% 20% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(168, 85, 247, .55), transparent); filter: blur(40px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.94); } }
.showcase figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.showcase figcaption span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font: 500 12.5px/1 var(--mono); color: #eee8ff; background: rgba(12, 8, 22, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green-2); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; margin-bottom: 40px; }
.stat { padding: 18px 24px; display: flex; align-items: center; gap: 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { font-size: 46px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #b99cf0); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.stat em { font-style: normal; font-size: 16px; font-weight: 700; margin-left: 3px; -webkit-text-fill-color: var(--purple-l); }
.stat > span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--mono); letter-spacing: .16em; color: var(--cyan); margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; box-shadow: 10px 0 0 rgba(53, 211, 220, .45), 20px 0 0 rgba(53, 211, 220, .2); margin-right: 20px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.section-head p { margin: 18px 0 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.more { margin-top: 36px; color: var(--muted); font-size: 15px; }

/* ---------- Pixel icons ---------- */
.px-icon { display: inline-block; width: 40px; height: 40px; flex: none; }
.px-icon svg { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }

/* ---------- Flow diagram ---------- */
.flow {
  display: flex; align-items: center; gap: 0;
  padding: 64px 28px 40px; border-radius: 28px;
  background: radial-gradient(50% 80% at 50% 50%, rgba(124, 58, 237, .16), transparent 70%), linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.flow::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(closest-side, #000, transparent); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); pointer-events: none; }
.node { position: relative; flex: 0 0 132px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.node .px-icon { width: 56px; height: 56px; padding: 8px; margin-bottom: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 14px; box-sizing: border-box; width: 64px; height: 64px; }
.node b { font-size: 15px; }
.node small { font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.node-ne .px-icon { border-color: rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); }
.node-intl .px-icon { border-color: rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .08); }
.node-bds .px-icon { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }

.link { --wire: var(--purple-l); flex: 1 1 40px; min-width: 28px; height: 12px; position: relative; margin: 0 6px 56px; }
.link::before { content: attr(data-proto); position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 600 11px/1 var(--mono); color: var(--purple-l); white-space: nowrap; letter-spacing: .03em; }
.link-rev { --wire: var(--intl); }
.flow-link { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-link path { fill: none; stroke: var(--wire); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-wire { stroke-dasharray: 5 7; animation: flow-forward 1.4s linear infinite; }
@keyframes flow-forward { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -24; } }

.core {
  position: relative; flex: 0 0 210px; padding: 26px 18px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(168, 85, 247, .2), rgba(124, 58, 237, .06));
  border: 1px solid rgba(216, 180, 254, .4); border-radius: 22px;
  box-shadow: 0 0 60px -10px rgba(168, 85, 247, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.core > b { display: block; font-size: 19px; font-weight: 900; margin-top: 14px; letter-spacing: .01em; }
.core ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.core-portal { width: 64px; height: 84px; margin: 0 auto; padding: 8px; background: #1b1230; box-shadow: inset 0 0 0 4px #2d1f4a, 0 0 30px rgba(168, 85, 247, .6); }
.core-portal span { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #7c3aed, #c084fc, #7c3aed, #a855f7); background-size: 200% 200%; animation: swirl 3s ease-in-out infinite alternate; image-rendering: pixelated; position: relative; overflow: hidden; }
.core-portal span::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%); background-size: 12px 12px; mix-blend-mode: overlay; animation: drift 2s linear infinite; }
@keyframes swirl { to { background-position: 100% 100%; } }
@keyframes drift { to { background-position: 0 24px; } }
.auth-tag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--muted); padding: 5px 12px; background: var(--bg-2); border: 1px dashed rgba(53, 211, 220, .55); border-radius: 999px; }
.auth-tag b { color: var(--cyan); font-family: var(--mono); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 18px; }
.card {
  grid-column: span 2; position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, -20%), rgba(168, 85, 247, .14), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; font-weight: 800; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card { display: flex; flex-direction: column; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; padding-top: 22px; }
.chips li { font-size: 12.5px; color: var(--purple-l); padding: 5px 11px; border-radius: 999px; background: rgba(168, 85, 247, .1); border: 1px solid rgba(216, 180, 254, .18); }
.card-play, .card-console, .card-term { grid-column: span 3; }
.card-term { grid-column: span 4; }
.card-term ~ .card { grid-column: span 2; }

.chat { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.msg b { font-weight: 700; color: var(--text); }
.msg b::after { content: ":"; color: var(--dim); }
.msg-l { align-self: flex-start; border-bottom-left-radius: 4px; color: #e7e2f5; }
.msg-r { align-self: flex-end; border-bottom-right-radius: 4px; background: rgba(56, 189, 248, .08); border-color: rgba(56, 189, 248, .2); color: #e0f2fe; }
.tag { font: 700 11px/1 var(--mono); padding: 4px 7px; border-radius: 5px; letter-spacing: .03em; flex: none; }
.tag-ne { color: #fecaca; background: rgba(248, 113, 113, .18); }
.tag-intl { color: #bae6fd; background: rgba(56, 189, 248, .18); }

/* Miniature of the real console (internal/webui) */
.mock-console { margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(70% 50% at 50% 0%, rgba(147, 70, 245, .22), transparent 70%), var(--bg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.mc-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); }
.mc-bar i, .mc-log-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2f2942; }
.mc-bar span, .mc-log-bar span { margin-left: 8px; font: 11px/1 var(--mono); color: var(--dim); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.mc-brand { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; }
.mc-brand img { image-rendering: pixelated; border-radius: 2px; }
.mc-brand b { color: var(--purple-l); }
.mc-brand small { font-size: 9.5px; font-weight: 600; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 999px; }
.mc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.mc-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); animation: ping 2s infinite; }
.mc-body { padding: 12px 14px 14px; }
.mc-hero { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(74, 222, 128, .38); background: linear-gradient(115deg, rgba(168, 85, 247, .16), rgba(53, 211, 220, .05) 60%), var(--card); box-shadow: 0 0 30px -12px rgba(74, 222, 128, .45); }
.mc-hero small { display: block; font: 700 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--cyan); }
.mc-room { display: block; margin-top: 6px; font: 800 26px/1.15 var(--mono); letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; background: linear-gradient(90deg, #b7ef97, #4ade80 40%, #35d3dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mc-actions { display: flex; flex-direction: column; gap: 5px; }
.mc-actions span { font-size: 10px; font-weight: 600; text-align: center; white-space: nowrap; padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mc-stats div { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
.mc-stats small { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.mc-stats .px-icon { width: 12px; height: 12px; }
.mc-stats .px-icon svg { filter: none; }
.mc-stats b { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-stats b.mc-ok { color: var(--green-2); }
.mc-log { margin-top: 10px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); background: #07060c; }
.mc-log-bar { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.mc-log-bar i { width: 6px; height: 6px; }
.mc-log-body { height: 66px; overflow: hidden; padding: 3px 10px; font: 10.5px/1.6 var(--mono); }
.mc-log-body p { margin: 0; padding: 1px 0; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e4def5; font-size: 10.5px; animation: logIn .4s ease; }
.mc-log-body p.is-debug { color: #8d86a6; }
.mc-log-body p.is-warn { color: #fda4af; }
.mc-log-body time { color: var(--dim); margin-right: 8px; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }

.uptime-bar { display: flex; gap: 4px; margin-top: 22px; }
.uptime-bar i { flex: 1; height: 26px; background: var(--green-2); opacity: .75; border-radius: 2px; }
.uptime-bar i.warn { background: var(--amber); opacity: 1; }
.uptime-bar i.ok { background: var(--green-2); opacity: 1; box-shadow: 0 0 10px rgba(74, 222, 128, .6); }

.term { margin: 22px 0 0; padding: 18px 20px; background: #07060c; border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.3 var(--mono); color: #cfd8ff; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.term .t-b { color: #35d3dc; }
.term .t-name { color: #35d3dc; font-weight: 700; }
.term .t-dim { color: #7c7894; }

.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
.os-grid span { font: 600 11px/1 var(--mono); color: var(--muted); text-align: center; padding: 9px 4px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.step h3 { font-size: 20px; font-weight: 800; margin: 20px 0 10px; }
.step p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.step .note { font-size: 13px; color: var(--dim); margin: 12px 0 0; }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; font: 800 20px/1 var(--mono); color: #fff; clip-path: var(--notch); background: linear-gradient(180deg, #bb86ff, #7c2fe6); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(40, 0, 90, .45); }
.step:nth-child(2) .step-num { background: linear-gradient(180deg, #67e8f9, #0e9aa7); }
.step:nth-child(3) .step-num { background: linear-gradient(180deg, #86efac, #16a34a); }
.code { position: relative; border-radius: 12px; background: #07060c; border: 1px solid var(--line); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13px/1.7 var(--mono); color: #e7e2f5; scrollbar-width: thin; }
.code pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.code .k { color: #c4b5fd; }
.code .v { color: var(--green); }
.code .c { color: var(--dim); }
.copy { position: absolute; top: 8px; right: 8px; font: 600 11.5px/1 var(--sans); color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 7px; cursor: pointer; opacity: 0; transition: opacity .2s, color .2s; }
.code:hover .copy, .copy:focus-visible { opacity: 1; }
.copy.is-done { color: var(--green); opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.tabs button { flex: 1; font: 600 13px/1 var(--sans); color: var(--muted); background: transparent; border: 0; padding: 9px 6px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: rgba(168, 85, 247, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(216, 180, 254, .3); }
.tab-panel p { font-size: 14px; }
.join { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.join div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dl {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "os arch" "desc desc" "file file";
  gap: 4px 12px; padding: 22px 22px 18px; border-radius: 16px; text-decoration: none; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background .2s;
}
.dl:hover { border-color: rgba(216, 180, 254, .45); transform: translateY(-3px); background: var(--card-2); }
.dl-os { grid-area: os; font-size: 18px; font-weight: 800; }
.dl-arch { grid-area: arch; align-self: center; font: 700 12px/1 var(--mono); color: var(--purple-l); background: rgba(168, 85, 247, .14); padding: 6px 9px; border-radius: 6px; }
.dl small { grid-area: desc; color: var(--muted); font-size: 13.5px; }
.dl-file { grid-area: file; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font: 11.5px/1.4 var(--mono); color: var(--dim); overflow-wrap: anywhere; display: flex; justify-content: space-between; gap: 8px; }
.dl-file::after { content: "↓"; color: var(--purple-l); font-weight: 700; }
.dl.is-recommended { border-color: rgba(168, 85, 247, .6); background: linear-gradient(180deg, rgba(168, 85, 247, .14), var(--card)); box-shadow: 0 0 40px -12px rgba(168, 85, 247, .6); }
.dl.is-recommended::before { content: "推荐"; position: absolute; top: -10px; left: 20px; font: 700 11px/1 var(--sans); padding: 5px 9px; border-radius: 999px; color: #1a0b2e; background: var(--green); }

/* ---------- Compat ---------- */
.compat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.spec {
  /* Styled after an in-game item tooltip */
  position: relative; padding: 6px; background: #100318; border: 3px solid #1a0624;
  box-shadow: inset 0 0 0 3px #3a0f7a, inset 0 0 0 4px #24085a;
}
.spec dl { margin: 0; padding: 18px 20px; }
.spec dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(196, 160, 255, .16); }
.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: #bba8dc; font-size: 14px; }
.spec dd { margin: 0; font: 700 14px/1.3 var(--mono); color: #55ffff; text-shadow: 2px 2px 0 #153f3f; text-align: right; }
.spec dl div:nth-child(4) dd, .spec dl div:nth-child(5) dd { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.spec dl div:nth-child(6) dd { color: #55ff55; text-shadow: 2px 2px 0 #153f15; }
.checks { padding: 28px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.checks h3 { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.checks h3:not(:first-child) { margin-top: 26px; }
.checks ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; border-radius: 4px; }
.list-ok li::before { background: rgba(74, 222, 128, .16); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .45); }
.list-ok li::after { content: ""; position: absolute; left: 6px; top: calc(.4em + 3px); width: 4px; height: 8px; border: solid var(--green-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.list-warn li::before { background: rgba(251, 191, 36, .14); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45); }
.list-warn li::after { content: "!"; position: absolute; left: 0; width: 16px; top: .4em; font: 800 11px/16px var(--mono); color: var(--amber); text-align: center; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; max-width: 880px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--purple), rgba(168, 85, 247, .05)); }
.timeline > li { position: relative; padding: 22px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.timeline > li::before { content: ""; position: absolute; left: -34px; top: 27px; width: 16px; height: 16px; background: var(--bg); border: 3px solid var(--purple); }
.timeline > li:first-child::before { background: var(--purple); box-shadow: 0 0 16px var(--purple); }
.tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.tl-ver { font: 800 17px/1 var(--mono); text-decoration: none; }
a.tl-ver:hover { color: var(--purple-l); }
.tl-title { font-size: 15.5px; font-weight: 700; }
.tl-date { margin-left: auto; font: 12.5px/1 var(--mono); color: var(--dim); }
.tl-badge { font-size: 11.5px; font-weight: 700; color: #1a0b2e; background: var(--green); padding: 4px 9px; border-radius: 999px; }
.tl-badge-dim { color: var(--muted); background: rgba(255, 255, 255, .07); }
.timeline ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 3px; }
.timeline ul li::marker { color: var(--dim); }
.timeline > li > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.timeline > li > ul + ul, .timeline > li > p + ul { margin-top: 8px; }
.timeline strong { color: var(--text); }
.timeline li a:not(.tl-ver) { color: var(--purple-l); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: var(--line-2); background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--purple-l), var(--purple-l)) center / 14px 2px no-repeat, linear-gradient(var(--purple-l), var(--purple-l)) center / 2px 14px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- Docs page ---------- */
.docs-page { position: relative; }
.docs-sky { position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 25% 0%, rgba(147, 70, 245, .3), transparent 70%), radial-gradient(35% 50% at 85% 0%, rgba(53, 211, 220, .09), transparent 70%); }
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding-top: 128px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.docs-nav-title { font: 700 11.5px/1 var(--mono); letter-spacing: .14em; color: var(--dim); padding: 0 12px; margin: 4px 0 6px; }
.docs-nav-title:not(:first-child) { margin-top: 26px; }
.docs-nav nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.docs-nav nav a { position: relative; display: block; padding: 8px 14px; margin-left: -1px; font-size: 14.5px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.docs-nav nav a:hover { color: var(--text); }
.docs-nav nav a.is-active { color: #fff; border-left-color: var(--purple); background: linear-gradient(90deg, rgba(168, 85, 247, .14), transparent); }
.docs-nav-ext { display: flex; flex-direction: column; }
.docs-nav-ext a { padding: 6px 12px; font-size: 13.5px; color: var(--dim); text-decoration: none; transition: color .2s; }
.docs-nav-ext a:hover { color: var(--text); }
.docs-main { min-width: 0; max-width: 860px; }
.docs-head h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.docs-head .lead { margin: 16px 0 0; }
.doc-sec { padding: 64px 0 8px; scroll-margin-top: 84px; }
.doc-sec + .doc-sec { border-top: 1px solid var(--line); margin-top: 56px; }
.doc-sec h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: -.01em; margin-bottom: 14px; }
.doc-sec h2 a { text-decoration: none; }
.doc-sec h2 a:hover::after { content: " #"; color: var(--dim); }
.doc-lead { margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.doc-sec .steps { grid-template-columns: 1fr; gap: 14px; }
.doc-sec .step { padding: 26px 28px 26px 96px; }
.doc-sec .step-num { position: absolute; left: 28px; top: 26px; }
.doc-sec .step h3 { margin-top: 6px; }
.doc-sec .step .code, .doc-sec .step .tabs, .doc-sec .join { max-width: 620px; }
.doc-sec .join { margin-top: 4px; }
.doc-sec .downloads { grid-template-columns: repeat(2, 1fr); }
.doc-sec .compat { grid-template-columns: 1fr; }
.doc-sec .spec { max-width: 560px; }
.doc-sec .faq-wrap, .doc-sec .timeline { max-width: none; }
.doc-sec .more { margin-top: 28px; }

.nav-links a[aria-current="page"] { color: var(--text); background: rgba(168, 85, 247, .16); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #08070f; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid p { color: var(--dim); font-size: 14px; margin: 14px 0 0; max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; color: var(--dim); font-size: 14px; padding: 4px 0; transition: color .2s; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-legal { margin-top: 44px; }
.footer-legal::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 24px; }
.footer-legal p { margin: 6px 0; font-size: 12.5px; color: var(--dim); }
.footer-legal a { color: var(--muted); border: 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .showcase[data-reveal].is-in { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .flow { flex-direction: column; padding: 40px 24px; }
  .node { flex: none; flex-direction: row; text-align: left; gap: 14px; width: 100%; max-width: 360px; }
  .node .px-icon { margin: 0; }
  .node b { display: block; }
  .node small br { display: none; }
  .node > b, .node > small { display: block; }
  .node { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center; }
  .node .px-icon { grid-row: span 2; }
  .node b { align-self: end; }
  .node small { align-self: start; }
  .link { flex: none; width: 12px; height: 56px; min-width: 0; margin: 8px 0; }
  .link::before { left: 22px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .core { flex: none; width: 100%; max-width: 360px; margin: 18px 0 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card-play, .card-console, .card-term, .card-term ~ .card { grid-column: span 1; }
  .card-play, .card-console, .card-term { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .compat { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 68px; }
  .docs-nav { position: sticky; top: 68px; z-index: 20; flex-direction: row; margin: 0 -24px; padding: 10px 24px; background: rgba(11, 9, 20, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav-title, .docs-nav-ext { display: none; }
  .docs-nav nav { flex-direction: row; gap: 6px; border: 0; }
  .docs-nav nav a { white-space: nowrap; margin: 0; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .docs-nav nav a.is-active { border-color: rgba(216, 180, 254, .5); background: rgba(168, 85, 247, .2); }
  .docs-head { padding-top: 48px; }
  .doc-sec { scroll-margin-top: 136px; }
}

@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .stats { gap: 8px 0; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .downloads { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
}

@media (max-width: 560px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .hero { padding-top: 116px; }
  .docs-nav { margin: 0 -16px; padding: 10px 16px; }
  .doc-sec { padding-top: 48px; }
  .doc-sec + .doc-sec { margin-top: 40px; }
  .doc-sec .step { padding: 24px 20px; }
  .doc-sec .step-num { position: static; }
  .doc-sec .step h3 { margin-top: 18px; }
  .doc-sec .downloads { grid-template-columns: 1fr; }
  .lead br { display: none; }
  .hero h1 { font-size: clamp(26px, 8.6vw, 40px); }
  .hero-meta li:nth-child(2) { display: none; }
  .btn-lg { width: 100%; }
  .hero-cta { width: 100%; }
  .showcase { margin-top: 48px; }
  .showcase figcaption { left: 10px; right: 10px; bottom: 10px; }
  .showcase figcaption span:last-child { display: none; }
  .stat { padding: 14px 12px; }
  .stat strong { font-size: 38px; }
  .bento { grid-template-columns: 1fr; }
  .card, .card-play, .card-console, .card-term, .card-term ~ .card { grid-column: span 1; }
  .card { padding: 24px 20px; }
  .mc-room { font-size: 21px; letter-spacing: .02em; }
  .mc-actions { display: none; }
  .mc-stats { grid-template-columns: 1fr 1fr; }
  .mc-stats div:last-child { grid-column: 1 / -1; }
  .term { font-size: 6.6px; padding: 12px; }
  .downloads { grid-template-columns: 1fr; }
  .step { padding: 26px 20px; }
  .checks { padding: 24px 20px; }
  .spec dl { padding: 12px 14px; }
  .spec dl div { flex-wrap: wrap; gap: 2px 12px; padding: 10px 0; }
  .spec dt { font-size: 13px; }
  .spec dd { font-size: 13px; }
  .timeline { padding-left: 28px; }
  .timeline > li { padding: 18px 18px; }
  .timeline > li::before { left: -28px; }
  .timeline::before { left: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .icon-link .stars { display: none; }
  .nav-inner { gap: 6px; }
  .nav-links a { padding: 8px 10px; }
  .brand { font-size: 16px; }
  .brand img { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
