@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Oswald:wght@400;500;600&display=swap');
:root {
  color-scheme: dark;
  --bg: #090a0c; --surface: #111317; --surface-2: #17191e;
  --text: #f1f1ed; --muted: #8d9199; --line: #292c32; --copy: #b7bac0;
  --header-bg: #090a0c; --section-bg: #0c0d10; --cta-bg: #0d1014; --modal-bg: #111317;
  --card-gradient: linear-gradient(135deg, #171a20, #0d0f12); --card-hover: linear-gradient(135deg, #1a2229, #0d1014);
  --amber: #38c6df; --amber-soft: rgba(56,198,223,.12); --green: #5dd39e;
  --max: 1240px;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f2; --surface: #ffffff; --surface-2: #e4e8eb;
  --text: #11151a; --muted: #626a73; --line: #cbd1d6; --copy: #4f5862;
  --header-bg: #f7f8f9; --section-bg: #e5e9ec; --cta-bg: #dce2e6; --modal-bg: #f8f9fa;
  --card-gradient: linear-gradient(135deg, #ffffff, #e7ebee); --card-hover: linear-gradient(135deg, #f8fdff, #dceaf0);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, Arial, sans-serif; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 70% 10%, rgba(56,198,223,.08), transparent 28%), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
body::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; appearance: none; -webkit-appearance: none; border-radius: 0; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: auto; }
.mono { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--amber); font: 500 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--amber); }

header { position: fixed; inset: 0 0 auto; z-index: 10; height: 76px; background: var(--header-bg); border-bottom: 1px solid var(--line); }
header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.brand-lockup { gap: 14px; min-width: 176px; }
.logo-mark { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--amber); transform: rotate(45deg); transition: background .2s, box-shadow .2s; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: var(--amber); opacity: .55; }
.logo-mark::before { width: 1px; top: 5px; bottom: 5px; left: 16px; }
.logo-mark::after { height: 1px; left: 5px; right: 5px; top: 16px; }
.logo-mark i { position: absolute; width: 8px; height: 8px; top: 12px; left: 12px; background: var(--amber); box-shadow: 0 0 14px rgba(56,198,223,.45); }
.brand-lockup:hover .logo-mark { background: var(--amber-soft); box-shadow: 0 0 20px rgba(56,198,223,.15); }
.brand-type { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-type strong { font: 500 23px/.78 Oswald, sans-serif; letter-spacing: -.035em; text-transform: lowercase; }
.brand-type small { margin-top: 6px; color: var(--muted); font: 500 8px/1 "DM Mono", monospace; letter-spacing: .24em; text-transform: uppercase; }
.slashes { color: var(--amber); }
nav { display: flex; align-items: center; gap: 28px; }
nav > a { color: var(--muted); font: 500 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; transition: color .2s; }
nav > a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--amber); background: var(--amber); color: #0b0b0a; font: 600 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: transparent; color: var(--amber); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); }
.menu { display: none; background: none; border: 0; color: var(--text); font-size: 24px; }
.theme-switch { display: flex; padding: 3px; border: 1px solid var(--line); background: var(--surface); isolation: isolate; }
.theme-switch button { min-height: 29px; padding: 0 9px; border: 0; outline: 0; background-color: transparent; color: var(--muted); font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--amber); color: #071014; }
.theme-switch button:focus-visible { box-shadow: inset 0 0 0 1px var(--text); }

.hero { min-height: 100svh; padding: 148px 0 56px; display: flex; align-items: center; position: relative; }
.hero-grid { width: 100%; display: block; }
.hero-main { max-width: 980px; margin: 0 auto; text-align: center; }
.hero-main .eyebrow { justify-content: center; }
h1 { max-width: 980px; margin: 24px auto 26px; font: 500 clamp(74px, 10vw, 148px)/.84 Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.055em; }
h1 span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(241,241,237,.5); }
[data-theme="light"] h1 span { -webkit-text-stroke-color: rgba(17,21,26,.45); }
.hero-copy { max-width: 630px; margin-inline: auto; color: var(--copy); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.server-card { border: 1px solid var(--line); background: #111317; }
.server-top { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.status { color: var(--green); display: flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(93,211,158,.1); }
.server-body { padding: 24px 20px; }
.server-body h2 { margin: 0; font: 500 31px Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.ip-row { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; color: var(--muted); font: 11px "DM Mono", monospace; }
.copy { border: 0; background: none; color: var(--amber); cursor: pointer; padding: 0; text-transform: uppercase; }
.population { margin-top: 28px; }
.pop-label { display: flex; justify-content: space-between; margin-bottom: 10px; font: 10px "DM Mono", monospace; color: var(--muted); text-transform: uppercase; }
.bar { height: 4px; background: #25282e; overflow: hidden; }
.bar span { display: block; width: 71%; height: 100%; background: var(--amber); }
.server-meta { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.server-meta div { padding: 15px 10px; text-align: center; border-right: 1px solid var(--line); }
.server-meta div:last-child { border: 0; }
.server-meta strong { display: block; font: 500 17px Oswald, sans-serif; }
.server-meta small { color: var(--muted); font: 9px "DM Mono", monospace; text-transform: uppercase; }
.hero-foot { position: absolute; bottom: 30px; left: 0; right: 0; }
.hero-foot .wrap { display: flex; justify-content: space-between; color: #666a72; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; }

section { padding: 120px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-bottom: 70px; }
.section-head h2 { margin: 0; max-width: 760px; font: 500 clamp(46px, 6vw, 78px)/.97 Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.035em; }
.section-head h2 em { color: var(--amber); font-style: normal; }
.section-side { padding-top: 8px; }
.section-side p { color: var(--muted); line-height: 1.7; max-width: 470px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.pillar { min-height: 390px; padding: 30px; border: 0; border-right: 1px solid var(--line); background-color: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .25s, transform .2s; }
.pillar:last-child { border: 0; }
.pillar:hover, .pillar:focus-visible { background-color: var(--surface-2); transform: translateY(-4px); outline: 1px solid var(--amber); outline-offset: -1px; }
.pillar .num { color: var(--amber); font: 10px "DM Mono", monospace; }
.glyph { font: 400 50px Oswald, sans-serif; color: #4d5159; }
.pillar h3 { margin: 0 0 13px; font: 500 30px Oswald, sans-serif; text-transform: uppercase; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.pillar b { display: block; margin-top: 20px; color: var(--amber); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }

.world { background: var(--section-bg); }
.factions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faction { position: relative; min-height: 300px; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--card-gradient); color: var(--text); text-align: left; font: inherit; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: border-color .2s, transform .2s, background .2s; }
.faction:hover, .faction:focus-visible { border-color: var(--amber); transform: translateY(-4px); background: var(--card-hover); outline: 0; }
.faction::before { content: attr(data-code); position: absolute; top: -30px; right: 10px; font: 600 150px Oswald, sans-serif; color: rgba(255,255,255,.025); }
.faction:nth-child(2)::before { color: rgba(56,198,223,.035); }
.faction small { color: var(--amber); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.faction h3 { margin: 12px 0 8px; font: 500 36px Oswald, sans-serif; text-transform: uppercase; }
.faction p { margin: 0; max-width: 460px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.faction b { margin-top: 20px; color: var(--amber); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }

.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.step span { color: var(--amber); font: 11px "DM Mono", monospace; }
.step h3 { margin: 0; font: 500 clamp(24px, 3vw, 36px) Oswald, sans-serif; text-transform: uppercase; }
.step p { margin: 0; max-width: 370px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }

.rules-section { background: var(--section-bg); }
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rule-card { min-height: 285px; padding: 26px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px; transition: border-color .2s, background .2s, transform .2s; }
.rule-card:hover, .rule-card:focus-visible { border-color: var(--amber); background: var(--surface-2); transform: translateY(-4px); outline: 0; }
.rule-number { color: var(--amber); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.rule-icon { justify-self: end; color: #383c44; font: 500 68px Oswald, sans-serif; letter-spacing: -.06em; transition: color .2s; }
.rule-card:hover .rule-icon, .rule-card:focus-visible .rule-icon { color: var(--amber); }
.rule-card strong { display: block; margin-bottom: 9px; font: 500 28px Oswald, sans-serif; text-transform: uppercase; }
.rule-card small { display: block; max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rule-card b { color: var(--amber); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.rule-note { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.rule-note span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid var(--amber); color: var(--amber); font: 500 11px "DM Mono", monospace; }
body.modal-open { overflow: hidden; }
.rules-modal { width: min(780px, calc(100% - 28px)); max-height: min(820px, calc(100svh - 28px)); padding: 0; color: var(--text); background: var(--modal-bg); border: 1px solid var(--line); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.rules-modal::backdrop { background: rgba(3,4,5,.82); }
.modal-bar { position: sticky; top: 0; z-index: 1; min-height: 58px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--line); background: var(--modal-bg); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.modal-close { width: 36px; height: 36px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 25px; line-height: 1; cursor: pointer; }
.modal-close:hover, .modal-close:focus-visible { border-color: var(--amber); color: var(--amber); outline: 0; }
.modal-content { padding: clamp(28px, 6vw, 58px); }
.modal-code { color: var(--amber); font-size: 10px; }
.modal-content h2 { margin: 12px 0 16px; font: 500 clamp(42px, 7vw, 67px)/.95 Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.035em; }
.modal-intro { max-width: 620px; margin: 0 0 36px; color: var(--muted); line-height: 1.65; }
.modal-content ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.modal-content li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.modal-content li > span { padding-top: 3px; color: var(--amber); font: 10px "DM Mono", monospace; }
.modal-content li p { margin: 0; color: var(--copy); font-size: 13px; line-height: 1.6; }
.modal-warning { margin-top: 30px; padding: 18px 20px; border-left: 2px solid var(--amber); background: var(--amber-soft); }
.modal-warning strong { color: var(--amber); font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.modal-warning p { margin: 8px 0 0; color: var(--copy); font-size: 12px; line-height: 1.6; }

.cta { text-align: center; padding: 150px 0; background: var(--cta-bg); color: var(--text); }
.cta .eyebrow { justify-content: center; color: var(--amber); }
.cta .eyebrow::before { background: var(--amber); }
.cta h2 { margin: 24px auto 18px; font: 500 clamp(65px, 10vw, 130px)/.85 Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.055em; }
.cta p { max-width: 520px; margin: 0 auto 32px; line-height: 1.6; }
.cta .btn { background: var(--amber); border-color: var(--amber); color: #071014; }
.cta .btn:hover { background: transparent; color: var(--amber); }
footer { padding: 34px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
footer .logo { text-transform: none; }
footer .brand-lockup { transform: scale(.9); transform-origin: left center; }
.footer-links { display: flex; gap: 22px; }
.reveal { opacity: 1; transform: none; }

.atlas-secret { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: min(390px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--amber); background: color-mix(in srgb, var(--modal-bg) 94%, transparent); box-shadow: 0 22px 70px rgba(0,0,0,.45), inset 0 0 45px var(--amber-soft); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .3s, transform .3s; backdrop-filter: blur(14px); }
.atlas-secret.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.atlas-secret::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.secret-code, .secret-coordinates { display: block; color: var(--amber); font-size: 9px; }
.atlas-secret strong { display: block; margin-top: 20px; font: 500 31px Oswald, sans-serif; text-transform: uppercase; letter-spacing: -.02em; }
.atlas-secret p { margin: 8px 28px 20px 0; color: var(--copy); font-size: 13px; line-height: 1.6; }
.secret-close { position: absolute; top: 13px; right: 13px; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; }
.secret-close:hover, .secret-close:focus-visible { border-color: var(--amber); color: var(--amber); outline: 0; }

body.signal-lost { animation: signal-shift .13s steps(2, end) infinite; filter: contrast(1.35) saturate(.35) hue-rotate(35deg); }
body.signal-lost::after { z-index: 40; opacity: .24; background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, transparent 1px, transparent 4px), linear-gradient(90deg, rgba(255,0,80,.12), transparent 35%, rgba(0,220,255,.15)); background-size: auto; animation: signal-scan .18s linear infinite; }
body.signal-lost header, body.signal-lost main, body.signal-lost footer, body.signal-lost dialog, body.signal-lost .atlas-secret { animation: signal-slice .22s steps(2, end) infinite; }
@keyframes signal-shift { 0% { transform: translate(0); } 25% { transform: translate(-3px, 2px) skewX(.5deg); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-1px, -2px) skewX(-.7deg); } }
@keyframes signal-slice { 0%, 100% { clip-path: inset(0); } 35% { clip-path: inset(8% 0 3% 0); transform: translateX(5px); } 70% { clip-path: inset(2% 0 11% 0); transform: translateX(-4px); } }
@keyframes signal-scan { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

@media (max-width: 820px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  nav > a, nav .btn { display: none; }
  .menu { display: block; }
  nav.open { position: absolute; top: 76px; left: 0; right: 0; padding: 24px 20px; background: var(--header-bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  nav.open > a, nav.open .btn { display: flex; justify-content: center; padding: 8px; }
  .hero { padding-top: 125px; align-items: flex-start; }
  .hero-grid, .section-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 58px; }
  h1 { font-size: clamp(70px, 21vw, 112px); }
  .hero-foot { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .factions { grid-template-columns: 1fr; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card { min-height: 240px; }
  section { padding: 86px 0; }
  .step { grid-template-columns: 55px 1fr; }
  .step p { display: none; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .atlas-secret { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; } .reveal { opacity: 1; transform: none; } body.signal-lost, body.signal-lost::after, body.signal-lost header, body.signal-lost main, body.signal-lost footer, body.signal-lost dialog, body.signal-lost .atlas-secret { animation: none!important; } }
