/* Nova Network: shared styles. Pages set body.hub / body.city / body.west for their look. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root {
  --bg: #07080d; --bg2: #0d0f18; --panel: rgba(255,255,255,.04); --line: rgba(255,255,255,.09); --text: #eef0f7; --muted: #9aa0b8;
  --a: #7c5cff; --b: #22d3ee; --ok: #37e39b; --bad: #ff5577; --radius: 16px;
  --head: 'Space Grotesk', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
body.city { --a: #7c5cff; --b: #22d3ee; --head: 'Orbitron', 'Inter', sans-serif; }
body.west { --bg: #120b07; --bg2: #1c120b; --panel: rgba(255,236,200,.05); --line: rgba(255,226,180,.12); --text: #f3e6cc; --muted: #c2ad8a;
  --a: #d9a441; --b: #c4552b; --head: 'Rye', Georgia, serif; --body: 'IM Fell English', Georgia, serif; --radius: 6px; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* nav */
nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
nav .brand { display: flex; align-items: center; gap: 10px; font: 700 18px var(--head); letter-spacing: .04em; }
nav .brand img { width: 34px; height: 34px; }
nav .links { display: flex; gap: 20px; margin-left: auto; font-size: 15px; color: var(--muted); }
nav .links a:hover, nav .links a.on { color: var(--text); }
@media (max-width: 720px) { nav .links a.hide-m { display: none; } nav .links { gap: 14px; font-size: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font: 600 15px var(--body); cursor: pointer; border: 1px solid transparent; transition: transform .12s, filter .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; box-shadow: 0 8px 28px color-mix(in srgb, var(--a) 40%, transparent); }
.btn.discord { background: #5865f2; color: #fff; }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
body.west .btn { border-radius: 4px; font-family: 'IM Fell English SC', Georgia, serif; letter-spacing: .06em; font-size: 16px; }
body.west .btn.primary { background: linear-gradient(180deg, #b8441f, #8b2a1c); box-shadow: 0 6px 20px rgba(139,42,28,.45); }
.btn svg { width: 18px; height: 18px; }

/* hero */
.hero { position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(60% 50% at 30% 30%, color-mix(in srgb, var(--a) 30%, transparent), transparent 70%), radial-gradient(50% 50% at 75% 40%, color-mix(in srgb, var(--b) 22%, transparent), transparent 70%); filter: blur(20px); z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(3%, -2%) scale(1.06); } }
.hero .kicker { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; background: var(--panel); }
.hero h1 { font: 700 clamp(40px, 8vw, 84px)/1.02 var(--head); letter-spacing: -.01em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--a), var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .logo { width: 128px; height: 128px; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--a) 50%, transparent)); }
body.west .hero { background: linear-gradient(180deg, rgba(18,11,7,.1) 40%, var(--bg)), url(img/west-hills.svg) center bottom / cover; padding: 120px 0 110px; }
body.west .hero::before { display: none; }
body.west .hero h1 { font-weight: 400; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
body.west .hero .kicker { font-family: 'IM Fell English SC', serif; background: rgba(0,0,0,.35); }

/* live pill */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #555; box-shadow: 0 0 0 0 transparent; }
.live.on .dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); animation: pulse 2s infinite; }
.live.off .dot { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.live b { color: var(--text); }

/* sections */
section { padding: 70px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font: 700 clamp(26px, 4vw, 38px)/1.1 var(--head); }
body.west .sec-head h2 { font-weight: 400; }
.sec-head p { color: var(--muted); max-width: 520px; }
.eyebrow { color: var(--b); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
body.west .eyebrow { color: var(--a); font-family: 'IM Fell English SC', serif; }

/* server cards (hub) */
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.srv { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.srv:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.srv .bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transition: transform .6s; }
.srv:hover .bg { transform: scale(1.04); }
.srv.city .bg { background: radial-gradient(80% 60% at 70% 20%, rgba(124,92,255,.55), transparent 70%), radial-gradient(60% 50% at 20% 30%, rgba(34,211,238,.35), transparent 70%), linear-gradient(180deg, #0b0d1c, #05060c); }
.srv.city .bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(180deg, transparent, #000 60%, transparent); }
.srv.west .bg { background-image: linear-gradient(180deg, rgba(10,6,4,0) 30%, rgba(10,6,4,.92)), url(img/west-hills.svg); background-position: center bottom; }
.srv .top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; }
.srv .tag { padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); backdrop-filter: blur(6px); }
.srv .content { padding: 26px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78) 40%); }
.srv .logo { width: 86px; height: 86px; margin-bottom: 14px; }
.srv h3 { font: 700 34px/1.1 'Space Grotesk', sans-serif; }
.srv.city h3 { font-family: 'Orbitron', sans-serif; font-size: 30px; letter-spacing: .03em; }
.srv.west h3 { font-family: 'Rye', serif; font-weight: 400; }
.srv p { color: #c7cbe0; margin: 8px 0 16px; font-size: 15px; }
.srv.west p { color: #e3d2b3; font-family: 'IM Fell English', serif; font-size: 16px; }
.srv .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.srv .chips span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }
.srv .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.srv .actions .live { margin-left: auto; }
@media (max-width: 520px) { .srv .actions .live { margin-left: 0; width: 100%; } }

/* stats strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font: 700 30px/1.1 var(--head); }
body.west .stat b { font-weight: 400; }
.stat span { color: var(--muted); font-size: 14px; }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feat { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feat:hover { border-color: color-mix(in srgb, var(--a) 60%, transparent); transform: translateY(-2px); }
.feat .ic { font-size: 28px; margin-bottom: 10px; }
.feat h4 { font: 600 18px var(--head); margin-bottom: 6px; }
body.west .feat h4 { font-weight: 400; font-size: 19px; }
.feat p { color: var(--muted); font-size: 15px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; font: 700 17px var(--head); margin-bottom: 14px; }
body.west .step::before { font-family: 'Rye', serif; font-weight: 400; }
.step h4 { font: 600 18px var(--head); margin-bottom: 6px; }
body.west .step h4 { font-weight: 400; }
.step p { color: var(--muted); font-size: 15px; }
code, .code { font-family: ui-monospace, 'JetBrains Mono', monospace; background: rgba(0,0,0,.35); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; font-size: 14px; color: var(--text); }
.copy { cursor: pointer; }
.copy:hover { border-color: var(--b); }

/* leaderboard */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.board { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.board h4 { font: 600 16px var(--head); margin-bottom: 12px; display: flex; justify-content: space-between; }
body.west .board h4 { font-weight: 400; font-size: 18px; }
.board ol { list-style: none; }
.board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.board li:last-child { border: 0; }
.board .r { color: var(--muted); }
.board .t { font-size: 12px; margin-left: 6px; font-weight: 600; }
.board .empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.project { margin-top: 18px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.project .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.project h4 { font: 600 19px var(--head); }
body.west .project h4 { font-weight: 400; }
.bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--b)); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.badge-pay { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-size: 14px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; place-items: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox.show { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; }

/* rules */
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 12px; }
summary { padding: 18px 22px; cursor: pointer; font: 600 17px var(--head); list-style: none; display: flex; justify-content: space-between; }
body.west summary { font-weight: 400; }
summary::after { content: '+'; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details ul { list-style: none; padding: 0 22px 18px; }
details li { padding: 8px 0; border-top: 1px dashed var(--line); color: var(--muted); }
details li b { color: var(--text); }

/* cta band + footer */
.band { margin: 30px 0; padding: 44px; border-radius: 24px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 26%, var(--bg2)), color-mix(in srgb, var(--b) 18%, var(--bg2))); border: 1px solid var(--line); }
.band h2 { font: 700 clamp(26px, 4vw, 36px) var(--head); margin-bottom: 10px; }
body.west .band h2 { font-weight: 400; }
.band p { color: var(--muted); margin-bottom: 22px; }
.band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { padding: 40px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: #111421; color: #fff; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); transition: .25s; z-index: 200; font-family: 'Inter', sans-serif; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero::before { animation: none; } }

/* phones */
@media (max-width: 600px) {
  .srv { min-height: 0; padding-top: 64px; }
  .srv .logo { width: 70px; height: 70px; }
  nav .brand { font-size: 15px; gap: 8px; }
  nav .brand img { width: 28px; height: 28px; }
  nav .wrap { gap: 12px; }
  .hero { padding: 80px 0 64px; }
  section { padding: 52px 0; }
  .band { padding: 30px 18px; }
}

/* owner card */
.owner { display: flex; gap: 22px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--a) 16%, var(--bg2)), color-mix(in srgb, var(--b) 10%, var(--bg2))); max-width: 760px; }
.owner-badge { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: radial-gradient(circle at 30% 30%, #ffe08a, #d9a441 60%, #8a5a12); box-shadow: 0 0 0 4px color-mix(in srgb, #ffcf5c 25%, transparent), 0 12px 30px rgba(217,164,65,.35); }
.owner-role { font-size: 12px; letter-spacing: .22em; color: var(--muted); font-weight: 600; }
.owner-name { font: 800 clamp(34px, 6vw, 46px)/1.05 'Orbitron', var(--head); letter-spacing: .08em; background: linear-gradient(90deg, #ffe08a, #ffcf5c, #d9a441); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0 8px; }
.owner p { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .owner { flex-direction: column; text-align: center; padding: 24px 18px; } }

/* login in nav */
#navlogin { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
#navlogin svg { width: 18px; height: 18px; }
.navuser { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--text) !important; }
.navuser img, .navuser .ph { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
@media (max-width: 600px) { .navuser span:last-child { display: none; } #navlogin span { display: none; } #navlogin { padding: 8px 10px; } }

/* changelog */
.cls { display: grid; gap: 14px; max-width: 900px; }
.cl { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.cl-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.cl-tag { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.tag-city { background: rgba(124,92,255,.18); color: #b9a8ff; }
.tag-west { background: rgba(217,164,65,.18); color: #f0c46a; }
.cl-ed { font-style: italic; }
.cl h4 { font: 600 20px var(--head); margin-bottom: 8px; }
body.west .cl h4 { font-weight: 400; }
.cl-text { color: var(--muted); font-size: 15px; line-height: 1.65; }
.cl-text b { color: var(--text); }
.cl-text .cl-h { display: inline-block; color: var(--text); font-size: 16px; margin-top: 6px; }
.cl-text .cl-li { display: inline-block; padding-left: 18px; position: relative; }
.cl-text .cl-li::before { content: '•'; position: absolute; left: 4px; color: var(--b); }
.cl-imgs { margin-top: 14px; }
.cl-empty { color: var(--muted); padding: 22px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* profile page */
.me-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.me-head img, .me-head .ph { width: 96px; height: 96px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--a) 60%, transparent); display: grid; place-items: center; font-size: 42px; background: var(--panel); }
.me-head h1 { font: 700 clamp(30px, 5vw, 44px)/1.1 var(--head); }
.me-head p { color: var(--muted); }
.me-head form { margin-left: auto; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 30px; }
.me-card { border-radius: 22px; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; }
.me-card .top { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.me-card .top img { width: 56px; height: 56px; }
.me-card .top h3 { font: 700 22px 'Space Grotesk', sans-serif; }
.me-card.city .top { background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(34,211,238,.12)); }
.me-card.city .top h3 { font-family: 'Orbitron', sans-serif; }
.me-card.west .top { background: linear-gradient(135deg, rgba(196,85,43,.35), rgba(217,164,65,.15)); }
.me-card.west .top h3 { font-family: 'Rye', serif; font-weight: 400; }
.me-card .body { padding: 20px 22px 24px; }
.me-title { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.me-stats div { padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.me-stats b { display: block; font: 700 20px 'Space Grotesk', sans-serif; }
.me-stats span { font-size: 12px; color: var(--muted); }
.me-next { font-size: 14px; color: var(--muted); margin: 6px 0; display: flex; justify-content: space-between; }
.me-note { color: var(--muted); font-size: 15px; }
.me-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.me-chips span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.me-login { text-align: center; padding: 60px 20px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); max-width: 620px; margin: 0 auto; }
.me-login h1 { font: 700 clamp(28px, 5vw, 40px) var(--head); margin-bottom: 10px; }
.me-login p { color: var(--muted); margin-bottom: 24px; }
.me-err { margin: 0 auto 20px; max-width: 620px; padding: 12px 16px; border-radius: 12px; background: rgba(255,85,119,.12); color: #ff9aae; border: 1px solid rgba(255,85,119,.3); }
