:root {
  color-scheme: dark;
  --bg: #080b12;
  --panel: #0d121b;
  --panel-soft: #101826;
  --line: #1d293b;
  --accent: #69aaff;
  --accent-bright: #91c1ff;
  --text: #f0f3f8;
  --muted: #8794a8;
  --font-body: "Space Grotesk", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.site-shell { max-width: 1440px; margin: 0 auto; padding: 0 7.1%; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 14px var(--font-display); letter-spacing: .13em; }
.brand-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-dot, .text-green { color: var(--accent); }
.nav-links { display: flex; gap: 30px; height: 68px; align-items: center; }
.nav-links a { height: 100%; display: inline-flex; align-items: center; position: relative; color: #a5afbf; font-size: 13px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; height: 2px; background: var(--accent); position: absolute; bottom: -1px; left: 0; right: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 19px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-small { padding: 8px 12px; font-size: 10px; }
.button-outline { border-color: #344258; color: var(--text); }
.button-outline:hover, .button-ghost:hover { border-color: var(--accent); }
.button-primary { color: #07101c; background: var(--accent); }
.button-primary:hover { background: var(--accent-bright); }
.button-ghost { color: var(--text); border-color: #344258; }
.button-disabled { color: #9ba8bb; background: #182131; border-color: #26344a; cursor: not-allowed; }
.button-disabled:hover { transform: none; }
.hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(90deg, rgba(8, 11, 18, .78) 0%, rgba(8, 11, 18, .68) 30%, rgba(8, 11, 18, .32) 65%, rgba(8, 11, 18, .2) 100%), linear-gradient(0deg, rgba(8, 11, 18, .78) 0%, transparent 30%, rgba(8, 11, 18, .08) 78%, rgba(8, 11, 18, .45) 100%), url("neolya-spawn.webp") center / cover no-repeat; }
.hero-grid { position: absolute; inset: 0 0 48px 42%; opacity: .35; background-image: linear-gradient(rgba(127, 151, 190, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 151, 190, .08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, black 30%, black 85%, transparent); }
.hero-content { position: relative; z-index: 1; max-width: 510px; padding: 65px 0 80px; }
.eyebrow, .section-kicker, .address-label, .feature-number, .hero-bottom, .art-label { font: 600 10px var(--font-display); letter-spacing: .15em; }
.eyebrow { color: #a6b2c4; display: inline-flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #69aaff88; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
.hero h1 { margin: 22px 0 17px; font-size: clamp(52px, 7vw, 82px); line-height: .99; letter-spacing: -.065em; }
.hero-copy { max-width: 410px; margin-bottom: 28px; color: #a0aaba; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.server-address { display: flex; flex-direction: column; gap: 5px; margin-top: 48px; padding-left: 12px; border-left: 2px solid var(--accent); }
.address-label { color: #8492a8; font-size: 9px; }
.address-value { font: 600 13px var(--font-display); }
.address-edition { color: #69778d; font-size: 11px; }
.hero-art { position: absolute; top: 50%; right: 3%; width: min(43%, 460px); aspect-ratio: 1; transform: translateY(-53%); display: grid; place-items: center; }
.hero-title-logo { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 0 28px #69aaff40); }
.orbit { position: absolute; border: 1px solid #69aaff24; border-radius: 50%; }
.orbit-one { inset: 10%; }
.orbit-two { inset: 0; border-style: dashed; border-color: #69aaff17; }
.art-label { position: absolute; color: #64738a; font-size: 8px; }
.art-label-top { top: 13%; right: 0; }
.art-label-bottom { bottom: 10%; left: 0; }
.art-cross { position: absolute; color: var(--accent); opacity: .6; font: 20px var(--font-body); }
.cross-one { top: 22%; left: 13%; }
.cross-two { right: 9%; bottom: 25%; }
.hero-bottom { position: absolute; bottom: 25px; left: 0; right: 0; display: flex; justify-content: space-between; color: #65738a; font-size: 8px; }
.section-pad { padding: 105px 0; }
.intro { display: block; }
.section-kicker { padding-top: 9px; color: var(--accent); }
.intro .section-kicker { margin-bottom: 22px; }
.intro-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 8%; align-items: center; }
.intro h2, .community h2 { margin: 0; font-size: clamp(34px, 4vw, 47px); line-height: 1.12; letter-spacing: -.045em; }
.text-muted { color: #748198; }
.intro-copy p, .community p { margin: 0; color: #97a1b2; font-size: 13px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding-bottom: 105px; }
.feature-card { min-height: 230px; padding: 23px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(145deg, #101826, #0b1019); }
.feature-number { color: #738198; font-size: 9px; }
.feature-icon { width: 35px; height: 35px; margin: 25px 0 17px; display: grid; place-items: center; border: 1px solid #34527b; border-radius: 4px; color: var(--accent); font-size: 18px; }
.feature-card h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.02em; }
.feature-card p { max-width: 280px; margin: 0; color: #8995a8; font-size: 12px; line-height: 1.7; }
.community { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 80px; padding: 49px; border: 1px solid #26364f; border-radius: 4px; background: radial-gradient(ellipse at 80% 50%, #172b49 0, #101826 52%, #0d121b 100%); }
.community .section-kicker { margin-bottom: 16px; }
.community h2 { margin-bottom: 12px; font-size: 34px; }
.community p { max-width: 400px; }
.footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 11px; }
.footer-brand .brand-logo { width: 30px; height: 30px; }
.footer p, .footer-copy { margin: 0; color: #69768d; font-size: 10px; }
.page-heading { max-width: 680px; padding: 91px 0 52px; }
.page-heading h1 { margin: 20px 0 15px; font-size: clamp(48px, 7vw, 73px); line-height: 1; letter-spacing: -.06em; }
.page-heading > p { max-width: 560px; margin: 0; color: #9ba7bb; font-size: 14px; line-height: 1.8; }
.rules-list { border-top: 1px solid var(--line); }
.rule-card { display: grid; grid-template-columns: 75px 1fr; gap: 16px; padding: 28px 6px; border-bottom: 1px solid var(--line); }
.rule-index { color: var(--accent); font: 600 13px var(--font-display); }
.rule-card h2 { margin: 0 0 7px; font-size: 17px; }
.rule-card p { max-width: 760px; margin: 0; color: #9ba7bb; font-size: 13px; line-height: 1.8; }
.notice, .vote-callout { display: flex; align-items: center; gap: 16px; margin: 27px 0 80px; padding: 20px; border: 1px solid #26364f; border-radius: 4px; background: var(--panel); }
.notice-mark, .callout-icon { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #41618b; border-radius: 4px; color: var(--accent); font: 700 17px var(--font-display); }
.notice p { margin: 0; color: #a3aec2; font-size: 12px; line-height: 1.7; }
.vote-content { padding-bottom: 75px; }
.vote-callout { margin: 0 0 15px; }
.vote-callout h2 { margin: 0 0 5px; font-size: 15px; }
.vote-callout p { margin: 0; color: #97a1b2; font-size: 12px; line-height: 1.7; }
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.vote-card { min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.vote-card h2 { margin: 23px 0 5px; font-size: 18px; }
.vote-card p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.vote-card .button { margin-top: auto; }
.setup-notice { padding: 30px; border: 1px dashed #344258; border-radius: 4px; background: var(--panel); }
.setup-notice h2 { margin-bottom: 9px; font-size: 17px; }
.setup-notice p, .vote-footnote { margin: 0; color: #97a1b2; font-size: 12px; line-height: 1.7; }
.vote-footnote { margin-top: 18px; color: #758198; font-size: 11px; }
.news-content { min-height: 260px; padding-bottom: 80px; }
.news-list { display: grid; gap: 13px; }
.news-card { padding: 25px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(145deg, #101826, #0b1019); }
.news-card-link { display: block; transition: border-color .2s, transform .2s; }
.news-card-link:hover { border-color: #527caa; transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: #7f8ba2; font-size: 10px; }
.news-category { color: var(--accent); font: 600 10px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.news-card h2 { margin-bottom: 9px; font-size: 22px; }
.news-card p { max-width: 760px; margin: 0; color: #9ba7bb; font-size: 13px; line-height: 1.8; }
.news-read-more { color: var(--accent); font-size: 12px; font-weight: 600; }
.news-empty { display: flex; align-items: flex-start; gap: 16px; }
.news-empty .button { margin-top: 20px; }
.article-page { max-width: 850px; margin: 0 auto; padding: 64px 0 85px; }
.back-link { display: inline-block; margin-bottom: 38px; color: #9ba7bb; font-size: 12px; }
.back-link:hover { color: var(--accent); }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 16px 0 20px; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; letter-spacing: -.05em; }
.article-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 45px; padding-top: 25px; border-top: 1px solid var(--line); }
.markdown-body { color: #c0c9d8; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { margin: 1.7em 0 .55em; color: var(--text); line-height: 1.25; }
.markdown-body h1 { font-size: 2em; }
.markdown-body h2 { font-size: 1.55em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote, .markdown-body pre { margin: 0 0 1.1em; }
.markdown-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.markdown-body blockquote { margin-left: 0; padding: 3px 0 3px 16px; border-left: 2px solid var(--accent); color: #9ba7bb; }
.markdown-body code { padding: 2px 5px; border-radius: 4px; background: #172133; color: var(--accent); font-size: .9em; }
.markdown-body pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #0b1019; }
.markdown-body pre code { padding: 0; background: none; }
.markdown-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .site-shell { padding: 0 5%; }
  .topbar { min-height: 60px; }
  .nav-links { height: 60px; gap: 16px; }
  .nav-links a { font-size: 11px; }
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); align-items: flex-start; }
  .hero-content { padding-top: 58px; }
  .hero-art { top: auto; right: 2%; bottom: 48px; width: 41%; transform: none; opacity: .72; }
  .hero-copy { max-width: 370px; }
  .hero-grid { inset: 0 0 48px 20%; }
  .hero-bottom { font-size: 7px; }
  .intro { padding: 75px 0; }
  .intro-copy { gap: 20px; }
  .feature-grid { padding-bottom: 75px; }
  .feature-card { padding: 17px; }
  .feature-icon { margin-top: 20px; }
  .community { padding: 32px; }
}
@media (max-width: 540px) {
  .brand { font-size: 11px; gap: 7px; }
  .brand-logo { width: 32px; height: 32px; }
  .nav-links { flex: 1; justify-content: flex-end; gap: 9px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; font-size: 9px; }
  .hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  .hero h1 { font-size: 58px; }
  .hero-art { bottom: 78px; right: 5%; width: 54%; opacity: .55; }
  .hero-bottom { bottom: 18px; }
  .intro-copy { grid-template-columns: 1fr; }
  .feature-grid, .vote-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 200px; }
  .community { align-items: flex-start; flex-direction: column; margin-bottom: 55px; padding: 27px; }
  .footer { flex-wrap: wrap; justify-content: flex-start; padding: 20px 0; }
  .footer p { display: none; }
  .page-heading { padding: 70px 0 40px; }
  .rule-card { grid-template-columns: 37px 1fr; gap: 8px; padding: 23px 3px; }
  .notice, .vote-callout { align-items: flex-start; }
  .news-empty { flex-direction: column; }
  .editor-content { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .article-footer { flex-direction: column; align-items: flex-start; }
}
