:root {
  --bg: #080b10;
  --panel: #111720;
  --panel-2: #151c27;
  --line: rgba(255,255,255,.1);
  --line-strong: rgba(255,255,255,.16);
  --text: #f7f9fc;
  --muted: #99a5b5;
  --blue: #2979ff;
  --blue-bright: #4f93ff;
  --cyan: #2ccce4;
  --green: #24d69a;
  --amber: #f7b84b;
  --red: #ff5a69;
  --radius: 16px;
  --shell: min(1180px, calc(100% - 40px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
svg { width: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: white; color: #07101e; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; height: 70px; border-bottom: 1px solid var(--line); background: rgba(8,11,16,.86); backdrop-filter: blur(18px); }
.nav-shell { width: min(1280px, calc(100% - 32px)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(79,147,255,.45); border-radius: 9px; background: rgba(41,121,255,.13); color: #70a7ff; font-weight: 900; }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 5px; margin: 0 auto; }
.site-nav a { padding: 9px 11px; border-radius: 8px; color: #aab5c4; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { background: rgba(255,255,255,.055); color: white; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(79,147,255,.4); border-radius: 9px; background: rgba(41,121,255,.12); color: #d7e6ff; font-size: 13px; font-weight: 800; }
.nav-cta:hover { background: rgba(41,121,255,.22); }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: white; }

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-backdrop { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(8,11,16,.97) 8%, rgba(8,11,16,.86) 48%, rgba(8,11,16,.66) 100%), url('./images/bg-home.webp') center 35% / cover no-repeat; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(circle at 70% 40%, rgba(41,121,255,.16), transparent 34%), linear-gradient(180deg, transparent 65%, var(--bg)); }
.hero-grid { min-height: 590px; padding-block: 92px 76px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); align-items: center; gap: 82px; }
.eyebrow, .kicker { color: #72a9ff; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 23px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(36,214,154,.12); }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(46px, 6vw, 76px); font-weight: 850; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.hero h1 span { color: #78aaff; }
.hero-copy > p { max-width: 650px; margin: 25px 0 0; color: #b2bdcc; font-size: 19px; line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 850; transition: transform .18s ease, background .18s ease, border .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); box-shadow: 0 12px 35px rgba(41,121,255,.22); }
.button-primary:hover { background: var(--blue-bright); }
.button-secondary { border-color: var(--line-strong); background: rgba(12,16,23,.72); }
.button-secondary:hover { border-color: rgba(79,147,255,.52); background: rgba(21,28,39,.9); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-tags li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(8,11,16,.56); color: #aeb8c7; font-size: 11px; font-weight: 750; letter-spacing: .03em; }

.network-card { padding: 26px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(150deg, rgba(21,28,39,.95), rgba(10,14,20,.92)); box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.network-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.network-heading h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: -.03em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(36,214,154,.25); border-radius: 99px; background: rgba(36,214,154,.08); color: #6eebbd; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.live-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.network-stats { margin-top: 24px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.network-stats div { padding: 16px 13px; display: grid; gap: 5px; border-right: 1px solid var(--line); }
.network-stats div:last-child { border-right: 0; }
.network-stats strong { font-size: 27px; letter-spacing: -.04em; }
.network-stats span { color: var(--muted); font-size: 10px; line-height: 1.3; }
.popular-server { margin: 18px 0; padding: 17px 0; display: grid; gap: 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.popular-server strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.popular-server > span:last-child { color: var(--muted); font-size: 12px; }
.text-link { color: #77aaff; font-size: 13px; font-weight: 800; }
.text-link:hover { color: white; }

.quick-strip { border-bottom: 1px solid var(--line); background: #0b0f15; }
.quick-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.quick-grid > a { min-height: 116px; padding: 24px 26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; border-right: 1px solid var(--line); }
.quick-grid > a:first-child { border-left: 1px solid var(--line); }
.quick-grid > a:hover { background: rgba(41,121,255,.06); }
.quick-icon { color: #568fef; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid strong { font-size: 14px; }
.quick-grid small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.quick-grid b { color: #66809f; font-size: 17px; }

.section { padding-block: 96px; }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-heading h2, .explore-intro h2, .discord-banner h2 { margin: 8px 0 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
.section-heading > p { max-width: 540px; margin: 0; color: var(--muted); }
.community-grid { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.community-card { position: relative; min-height: 300px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.community-card:nth-child(2n) { border-right: 0; }
.community-card:nth-child(n+3) { border-bottom: 0; }
.community-card::after { position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%; content: ""; background: var(--card-accent); filter: blur(50px); opacity: .075; transition: opacity .2s ease, transform .2s ease; }
.community-card:hover { background: var(--panel-2); }
.community-card:hover::after { opacity: .14; transform: translate(-10px,-10px); }
.accent-red { --card-accent: var(--red); }
.accent-amber { --card-accent: var(--amber); }
.accent-blue { --card-accent: var(--blue-bright); }
.accent-cyan { --card-accent: var(--cyan); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--card-accent) 36%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--card-accent) 10%, transparent); color: var(--card-accent); font-size: 22px; }
.card-label { margin-top: 24px; color: var(--card-accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.community-card h3 { margin: 7px 0 8px; font-size: 23px; letter-spacing: -.025em; }
.community-card p { max-width: 480px; margin: 0; color: var(--muted); font-size: 14px; }
.card-link { z-index: 1; margin-top: auto; padding-top: 26px; color: #d9e7fb; font-size: 13px; font-weight: 850; }
.card-link b { margin-left: 8px; color: var(--card-accent); }
.service-note { margin: 15px 0 0; color: #778395; font-size: 11px; text-align: right; }

.activity-section { padding-top: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.activity-card { min-height: 145px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activity-card:nth-child(3n) { border-right: 0; }
.activity-card:nth-last-child(-n+3) { border-bottom: 0; }
.activity-card:hover { background: var(--panel-2); }
.activity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.activity-type { color: #73a8ff; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.activity-date { color: var(--muted); font-size: 9px; }
.activity-card strong { margin-top: 17px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.activity-card small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.activity-card-link { margin-top: auto; padding-top: 15px; color: #77aaff; font-size: 11px; font-weight: 800; }
.activity-loading { grid-column: 1 / -1; padding: 38px; color: var(--muted); text-align: center; }

.servers-section { border-block: 1px solid var(--line); background: #0b0f15; }
.servers-heading { align-items: center; }
.server-refresh { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.server-refresh button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: #99b9ed; cursor: pointer; }
.server-refresh button:hover { border-color: rgba(79,147,255,.45); color: white; }
.server-refresh button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.server-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.server-row { min-height: 92px; padding: 17px 20px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(150px,.7fr) minmax(150px,.7fr) 100px auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.server-row:last-child { border-bottom: 0; }
.server-row:hover { background: rgba(255,255,255,.022); }
.server-main { min-width: 0; display: grid; grid-template-columns: 39px minmax(0,1fr); align-items: center; gap: 13px; }
.game-code { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(79,147,255,.25); border-radius: 8px; background: rgba(41,121,255,.08); color: #73a8ff; font-size: 10px; font-weight: 900; }
.server-name { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.server-sub { margin-top: 4px; color: var(--muted); font-size: 10px; }
.server-detail { min-width: 0; }
.server-detail strong, .server-detail span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-detail strong { font-size: 12px; }
.server-detail span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.player-count { font-size: 15px; font-weight: 850; white-space: nowrap; }
.player-count span { color: var(--muted); font-size: 11px; font-weight: 650; }
.connect-button { min-width: 92px; padding: 9px 12px; border: 1px solid rgba(41,121,255,.42); border-radius: 8px; color: #8bb7ff; font-size: 11px; font-weight: 900; text-align: center; }
.connect-button:hover { background: var(--blue); color: white; }
.server-skeleton { height: 92px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.035) 50%, transparent 75%); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }
.server-error { padding: 40px 20px; color: var(--muted); text-align: center; }
.server-footer { padding: 14px 4px 0; display: flex; justify-content: space-between; gap: 20px; }
.server-footer p { margin: 0; color: #778395; font-size: 11px; }

.explore-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 90px; align-items: start; }
.explore-intro { position: sticky; top: 110px; }
.explore-intro p { color: var(--muted); }
.explore-links { border-top: 1px solid var(--line); }
.explore-links a { min-height: 100px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 30px; border-bottom: 1px solid var(--line); }
.explore-links a:hover { color: #7aaaff; }
.explore-links span { font-size: 17px; font-weight: 800; }
.explore-links small { color: var(--muted); font-size: 12px; }
.explore-links b { font-size: 18px; }

.discord-banner { padding-block: 55px; background: var(--blue); }
.discord-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.discord-banner .kicker { color: #c9ddff; }
.discord-banner h2 { font-size: clamp(30px,4vw,44px); }
.discord-banner p { margin: 9px 0 0; color: #d9e7ff; }
.button-light { min-width: 150px; background: white; color: #0c2450; }
.button-light:hover { background: #eaf2ff; }

.site-footer { padding: 65px 0 22px; background: #06080c; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.footer-brand { margin-bottom: 17px; }
.footer-grid > div:first-child > p { max-width: 350px; color: var(--muted); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.footer-links div { display: grid; align-content: start; gap: 9px; }
.footer-links strong { margin-bottom: 6px; color: white; font-size: 12px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: #83aff9; }
.footer-bottom { margin-top: 55px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #6f7886; font-size: 10px; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 14px 20px 20px; align-items: stretch; flex-direction: column; border-bottom: 1px solid var(--line); background: rgba(8,11,16,.98); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .network-card { max-width: 650px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-grid > a, .quick-grid > a:first-child { border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .quick-grid > a:last-child { border-bottom: 0; }
  .activity-grid { grid-template-columns: repeat(2,1fr); }
  .activity-card, .activity-card:nth-child(3n), .activity-card:nth-last-child(-n+3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .activity-card:nth-child(2n) { border-right: 0; }
  .activity-card:nth-last-child(-n+2) { border-bottom: 0; }
  .server-row { grid-template-columns: minmax(0,1.5fr) minmax(140px,.7fr) 90px auto; }
  .server-row .server-detail:nth-of-type(3) { display: none; }
  .explore-layout { grid-template-columns: 1fr; gap: 35px; }
  .explore-intro { position: static; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .nav-shell { width: calc(100% - 24px); }
  .hero-grid { min-height: 0; padding-block: 68px 55px; }
  .hero h1 { font-size: clamp(40px,13vw,58px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .network-card { padding: 20px; }
  .network-stats { grid-template-columns: 1fr; }
  .network-stats div { grid-template-columns: auto 1fr; align-items: baseline; border-right: 0; border-bottom: 1px solid var(--line); }
  .network-stats div:last-child { border-bottom: 0; }
  .network-stats span { text-align: right; }
  .section { padding-block: 72px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card, .community-card:nth-child(2n), .community-card:nth-child(n+3) { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .community-card:last-child { border-bottom: 0; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card, .activity-card:nth-child(2n), .activity-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .activity-card:last-child { border-bottom: 0; }
  .service-note { text-align: left; }
  .server-row { padding: 18px; grid-template-columns: 1fr auto; gap: 14px; }
  .server-main { grid-column: 1 / -1; }
  .server-row .server-detail { display: block !important; }
  .server-row .server-detail:nth-of-type(3) { grid-column: 1 / -1; }
  .player-count { align-self: center; }
  .server-footer { align-items: flex-start; flex-direction: column; }
  .explore-links a { padding-block: 20px; grid-template-columns: 1fr auto; gap: 8px 15px; }
  .explore-links small { grid-row: 2; grid-column: 1; }
  .explore-links b { grid-row: 1 / 3; grid-column: 2; }
  .discord-inner { align-items: flex-start; flex-direction: column; }
  .button-light { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { gap: 18px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
