:root {
  --bg: #101418;
  --bg-2: #171c21;
  --panel: #1c2228;
  --panel-2: #222a31;
  --line: #39434c;
  --line-light: #4a5660;
  --text: #edf1f3;
  --muted: #aab3ba;
  --cyan: #55c6cf;
  --violet: #b991d8;
  --gold: #e4bd63;
  --green: #78c981;
  --red: #d87979;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 9px 13px; color: #111; background: var(--gold); font-weight: bold; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: #14191e; }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: bold; }
.brand img { width: 40px; height: 40px; image-rendering: pixelated; border: 1px solid var(--line-light); }
.brand-text { display: grid; line-height: 1.1; }
.brand-text small { color: var(--cyan); font: bold .67rem/1.2 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 11px; color: #bec6cc; text-decoration: none; font-size: .91rem; font-weight: bold; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: white; border-color: var(--cyan); }
.nav-links .discord-link { margin-left: 6px; color: white; border: 1px solid #6974d7; background: #4f59bc; }
.menu-button { display: none; border: 1px solid var(--line-light); color: var(--text); background: var(--panel); padding: 8px 10px; font: inherit; font-weight: bold; }

.hero { position: relative; isolation: isolate; min-height: 620px; padding: 100px 0 92px; border-bottom: 1px solid #252d34; background: #12171b; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("../screenshots/lobby.webp") center 52% / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(7, 10, 12, .68); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow, .kicker { color: var(--gold); font: bold .76rem/1.3 "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; }
h1 { max-width: 760px; margin-top: 17px; font-size: clamp(2.8rem, 6vw, 5.2rem); }
h1 .gradient, .gradient { color: var(--cyan); background: none; }
.lead { max-width: 670px; margin: 21px 0 0; color: #c2c9ce; font-size: clamp(1rem, 2vw, 1.16rem); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-light); color: white; background: var(--panel-2); text-decoration: none; font: bold .91rem/1.2 Arial, sans-serif; cursor: pointer; }
.button:hover { background: #2a343d; border-color: #697985; }
.button-primary { color: #0e1518; border-color: #72ccd2; background: var(--cyan); }
.button-primary:hover { background: #72d2d9; border-color: #8adddf; }
.button-secondary { background: transparent; }
.button-discord { border-color: #737ddd; background: #525dbd; }
.button-discord:hover { background: #606bc9; }
.copy-note { min-height: 1.4em; margin-top: 8px; color: var(--green); font-size: .82rem; font-weight: bold; }

.hero-scene { display: grid; gap: 12px; }
.scene-glow, .block { display: none; }
.server-card { padding: 18px; border: 1px solid var(--line-light); background: var(--panel); box-shadow: 7px 7px 0 #080a0c; }
.server-card::before { content: "SERVERSTATUS"; display: block; margin-bottom: 13px; color: #78858e; font: bold .7rem/1 "Courier New", monospace; letter-spacing: .13em; }
.status-head { display: flex; align-items: center; gap: 14px; }
.status-head img { width: 48px; height: 48px; image-rendering: pixelated; border: 1px solid var(--line-light); }
.status-title { font-weight: bold; font-size: 1.04rem; }
.status-ip { color: var(--muted); font: .82rem/1.4 "Courier New", monospace; }
.status-pill { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .77rem; font-weight: bold; }
.status-dot { width: 8px; height: 8px; background: #758193; }
.status-pill.online { color: var(--green); }
.status-pill.online .status-dot { background: var(--green); }
.status-pill.offline { color: var(--red); }
.status-pill.offline .status-dot { background: var(--red); }
.motd { margin-top: 20px; padding: 14px; min-height: 76px; border: 1px solid var(--line); color: #d8dfe3; background: #151a1f; white-space: pre-line; font-family: "Courier New", monospace; font-size: .88rem; }
.status-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 13px; border: 1px solid var(--line); background: var(--line); }
.status-stat { padding: 11px; background: #20272d; }
.status-stat span { display: block; color: var(--muted); font: .67rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
.status-stat strong { display: block; margin-top: 3px; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; }

.section { padding: 76px 0; }
.section-tight { padding: 55px 0; }
.section:nth-child(even) { background: #12171b; }
.section-head { max-width: 690px; margin-bottom: 30px; }
.section-head h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card, .game-card, .content-card { border: 1px solid var(--line); background: var(--panel); }
.feature-card { padding: 24px; border-top: 3px solid var(--cyan); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-light); color: var(--cyan); background: #171d22; font-size: 1.14rem; font-weight: bold; }
.feature-card h3 { margin-top: 17px; font-size: 1.16rem; }
.feature-card p { margin: 9px 0 0; color: var(--muted); }
.accent-panel { padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--line-light); border-left: 5px solid var(--gold); background: var(--panel); }
.accent-panel h2 { margin-top: 7px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.accent-panel p { margin: 8px 0 0; color: var(--muted); }

.page-hero { padding: 68px 0 44px; border-bottom: 1px solid var(--line); background: #12171b; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.page-hero .lead { max-width: 760px; }
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.game-card { overflow: hidden; }
.shot-placeholder { position: relative; min-height: 210px; display: grid; place-items: center; overflow: hidden; color: #c8ced2; background: #202931 !important; border-bottom: 1px solid var(--line); }
.shot-placeholder::before { content: ""; position: absolute; inset: 18px; border: 1px dashed #53616b; }
.shot-placeholder::after { content: "+"; position: absolute; color: #53616b; font: 2.5rem/1 "Courier New", monospace; }
.shot-placeholder span { position: relative; z-index: 2; margin-top: 70px; padding: 5px 8px; color: #9faab1; background: #202931; font: bold .72rem/1.3 "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.game-image { overflow: hidden; border-bottom: 1px solid var(--line); background: #171c21; }
.game-image img { display: block; width: 100%; height: auto; }
.mode-screenshot { width: min(calc(100% - 40px), var(--max)); margin: 28px auto 0; border: 1px solid var(--line-light); background: var(--panel); box-shadow: 7px 7px 0 #080a0c; overflow: hidden; }
.mode-screenshot img { display: block; width: 100%; height: auto; }
.game-content { padding: 23px; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.game-content h2 { font-size: 1.5rem; }
.tag { padding: 3px 7px; border: 1px solid #4c7450; color: var(--green); font: bold .66rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .05em; }
.game-content p { margin: 10px 0 0; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.chip { padding: 4px 8px; border: 1px solid var(--line); color: #c4cbd0; background: #171c21; font-size: .75rem; }
.mode-link { margin-top: 18px; }
.mode-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 28px; border: 1px solid var(--line); background: var(--line); }
.mode-fact { padding: 15px; background: var(--panel); }
.mode-fact span { display: block; color: var(--muted); font: .67rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
.mode-fact strong { display: block; margin-top: 4px; font-size: .96rem; }
.mode-back { display: block; width: fit-content; margin-bottom: 22px; color: var(--muted); text-decoration: none; font: bold .8rem/1.3 "Courier New", monospace; }
.mode-back:hover { color: var(--cyan); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 27px; align-items: start; }
.content-main { display: grid; gap: 18px; }
.content-card { padding: clamp(22px, 4vw, 34px); }
.content-card h2 { margin-bottom: 15px; padding-bottom: 11px; border-bottom: 1px solid var(--line); font-size: clamp(1.45rem, 3vw, 2rem); }
.content-card h3 { margin: 24px 0 8px; font-size: 1.06rem; }
.content-card p, .content-card li { color: #c1c8cd; }
.content-card ul, .content-card ol { padding-left: 1.25rem; }
.content-card li + li { margin-top: 7px; }
.content-card .warning { padding: 14px 16px; border-left: 3px solid var(--gold); background: #26241d; color: #ddd0aa; }
.side-nav { position: sticky; top: 88px; padding: 16px; border: 1px solid var(--line); background: #171c21; }
.side-nav strong { display: block; margin: 3px 7px 9px; color: var(--gold); font: bold .72rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }
.side-nav a { display: block; padding: 7px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .87rem; }
.side-nav a:hover,
.side-nav a[aria-current="page"] { color: var(--text); border-color: var(--cyan); background: #20262c; }
.penalty-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.penalty-table th, .penalty-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.penalty-table th { color: var(--cyan); background: #171c21; font: bold .72rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; }
.info-table th, .info-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { color: var(--cyan); background: #171c21; font: bold .72rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
.info-table td:first-child { width: 35%; }
.info-table code, .command-list code { color: var(--gold); font: bold .86rem/1.45 "Courier New", monospace; overflow-wrap: anywhere; }
.shop-details { margin-top: 12px; border: 1px solid var(--line); background: #171c21; }
.shop-details + .shop-details { margin-top: 9px; }
.shop-details summary { padding: 12px 15px; cursor: pointer; color: var(--text); font-weight: bold; }
.shop-details[open] summary { border-bottom: 1px solid var(--line); color: var(--cyan); }
.shop-details .info-table { margin: 0; }
.shop-details .info-table th, .shop-details .info-table td { border-width: 0 0 1px; }
.shop-details .info-table tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 9px; }
.faq-list details { border: 1px solid var(--line); background: #171c21; }
.faq-list summary { padding: 13px 15px; cursor: pointer; font-weight: bold; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); color: var(--cyan); }
.faq-list p { margin: 0; padding: 14px 15px; }

.search-wrap { max-width: 850px; }
.search-form { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.search-form label { display: block; margin-bottom: 8px; color: var(--gold); font: bold .76rem/1.3 "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }
.search-field { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.search-field input { min-width: 0; padding: 11px 13px; border: 1px solid var(--line-light); border-radius: 0; color: var(--text); background: #11161a; font: inherit; }
.search-field input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.search-status { min-height: 1.6em; margin: 22px 0 10px; color: var(--muted); font: bold .82rem/1.5 "Courier New", monospace; }
.search-results { display: grid; gap: 9px; }
.search-result { display: grid; gap: 4px; padding: 17px 19px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); color: var(--text); background: var(--panel); text-decoration: none; }
.search-result:hover { border-color: var(--cyan); background: var(--panel-2); }
.search-result strong { font-size: 1.05rem; }
.search-result span { color: #c1c8cd; }
.search-result small { color: var(--cyan); font: .75rem/1.4 "Courier New", monospace; }
.search-empty { padding: 17px 19px; border: 1px solid var(--line); color: var(--muted); background: #171c21; }

.server-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; }
.join-card { padding: 29px; border: 1px solid var(--line-light); border-top: 4px solid var(--cyan); background: var(--panel); }
.join-card h2 { margin-top: 7px; font-size: 1.8rem; }
.join-address { margin: 21px 0 9px; padding: 15px; overflow-wrap: anywhere; border: 1px solid var(--line); color: var(--cyan); background: #14191e; font: bold clamp(1rem, 3vw, 1.28rem)/1.4 "Courier New", monospace; }
.steps { counter-reset: steps; display: grid; gap: 12px; }
.step { position: relative; padding: 18px 18px 18px 60px; border: 1px solid var(--line); background: var(--panel); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 16px; top: 16px; width: 29px; height: 29px; display: grid; place-items: center; color: #121212; background: var(--gold); font: bold .9rem/1 "Courier New", monospace; }
.step strong { display: block; }
.step span { color: var(--muted); }

.site-footer { margin-top: 58px; border-top: 1px solid var(--line); background: #0c1013; }
.footer-grid { padding: 40px 0 26px; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; }
.footer-brand p { max-width: 420px; color: var(--muted); }
.footer-col strong { display: block; margin-bottom: 10px; }
.footer-col a { display: block; width: fit-content; margin: 6px 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--cyan); text-decoration: underline; }
.footer-bottom { padding: 16px 0 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #252c32; color: #7f8a91; font-size: .8rem; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 61px; display: none; padding: 10px; border: 1px solid var(--line-light); background: #171d22; box-shadow: 5px 5px 0 #080a0c; }
  .nav-links.open { display: grid; }
  .nav-links .discord-link { margin: 5px 0 0; }
  .hero-grid, .server-layout { grid-template-columns: 1fr; }
  .hero-scene { max-width: 610px; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-facts { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; order: -1; }
}

@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { min-height: 0; padding: 64px 0; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .server-card { padding: 18px; box-shadow: 4px 4px 0 #080a0c; }
  .status-head img { width: 52px; height: 52px; }
  .status-stats { grid-template-columns: 1fr 1fr; }
  .status-stat:last-child { grid-column: 1 / -1; }
  .feature-grid, .game-grid, .footer-grid { grid-template-columns: 1fr; }
  .mode-facts { grid-template-columns: 1fr 1fr; }
  .accent-panel { grid-template-columns: 1fr; padding: 24px; }
  .section { padding: 60px 0; }
  .page-hero { padding: 51px 0 34px; }
  .shot-placeholder { min-height: 180px; }
  .mode-screenshot { width: min(calc(100% - 28px), var(--max)); box-shadow: 4px 4px 0 #080a0c; }
  .footer-bottom { flex-direction: column; }
  .penalty-table { font-size: .84rem; }
  .penalty-table th, .penalty-table td { padding: 8px 6px; }
  .info-table { font-size: .84rem; }
  .info-table th, .info-table td { padding: 8px 7px; }
  .info-table td:first-child { width: 42%; }
  .search-field { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
