:root {
  color-scheme: dark;
  font: 100%/1.6 "Segoe UI", system-ui, sans-serif;
  color: #edf2f7;
  background: #10151b;
  --muted: #acbac9;
  --accent: #c7ed84;
  --line: #33404b;
  --panel: #171f28;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { margin: 0; color: var(--muted); }
h1, h2, h3, figure { margin: 0; }
h1, h2 { line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.125rem; line-height: 1.3; }
section[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 3rem, 1280px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; transform: translateY(-150%); padding: .5rem 1rem; background: var(--accent); color: #152008; }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #10151bef; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.75rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.16rem; font-weight: 780; letter-spacing: -.025em; text-decoration: none; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-header nav { margin-left: auto; }
.site-header nav a, .site-footer nav a { padding-block: .35rem; color: var(--muted); text-decoration: none; font-size: .9375rem; }
nav a:hover, .text-link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: .5rem; min-height: 2.85rem; text-decoration: none; font-weight: 730; font-size: .9375rem; }
.primary { background: var(--accent); color: #14200a; }
.primary:hover { background: #d9f5ac; }
.outline { border-color: #53626c; background: #151e27; }
.outline:hover { border-color: var(--accent); color: var(--accent); }
.header-cta { min-height: 2.5rem; padding: .42rem .9rem; }

.hero { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #10151b 0%, #10151bf0 35%, #10151b62 100%), url("arena.png") center 48% / cover no-repeat, #10151b; }
.hero-inner { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.75rem, 4vw, 4rem); padding-block: clamp(3.5rem, 8.5vw, 7.25rem); }
.hero h1 { font-weight: 850; font-size: clamp(2.6rem, 4.55vw, 4.35rem); }
.hero h1 .game-name { white-space: nowrap; }
.hero h1 .accent { color: var(--accent); }
.hero-copy > p:not(.release-meta) { max-width: 34rem; font-size: clamp(1rem, 1.35vw, 1.18rem); margin: 1.25rem 0 1.6rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.release-meta { margin-top: .65rem; font-size: .9rem; }
.actions .release-meta { margin: 0; }
.app-preview { overflow: hidden; border-radius: .7rem; border: 1px solid #486258; background: #141c25; box-shadow: 0 22px 60px #0009; }
.app-preview img { width: 100%; height: auto; }
.app-preview figcaption { border-top: 1px solid var(--line); padding: .68rem .95rem; font-size: .875rem; color: var(--muted); }

.section { padding-block: clamp(2.8rem, 6vw, 5.15rem); }
.section-intro { margin-top: .7rem; font-size: 1.05rem; }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.65rem; }
.game { border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); overflow: hidden; }
.game-cover { width: 100%; height: auto; }
.game-caption { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; }
.game-caption > img { flex: 0 0 auto; border-radius: .25rem; }
.live-servers { margin-top: clamp(2rem, 4vw, 3.25rem); }
.server-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .9rem; }
.server-heading h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
.server-heading p { font-size: .875rem; }
.server-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.server-row, .server-empty { border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); padding: .8rem 1rem; }
.server-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(24rem, 43%); align-items: center; gap: .8rem 1.35rem; }
.server-identity { display: flex; align-items: center; gap: .75rem; overflow-wrap: anywhere; }
.server-identity img { flex: 0 0 auto; border-radius: .25rem; }
.server-identity h3 { font-size: 1rem; }
.server-identity p { font-size: .875rem; margin-top: .15rem; }
.server-region { color: #c6d1de; }
.server-stats { display: grid; grid-template-columns: minmax(0, 1fr) 4.35rem minmax(7.25rem, auto); align-items: start; gap: .35rem 1rem; margin: 0; }
.server-stats dt { color: var(--muted); font-size: .875rem; }
.server-stats dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.server-stats code { color: inherit; font-size: .9375rem; }
.server-count { font-variant-numeric: tabular-nums; font-weight: 680; }
.match-state { display: inline-block; padding: .065rem .55rem; border: 1px solid #46576a; border-radius: 1rem; background: #202b38; color: #d0dbe8; font-size: .875rem; font-weight: 650; }
.match-state.live { background: #233d2e; border-color: #497457; color: #c4f1bd; }
.match-state.warmup { background: #32291c; border-color: #6a5432; color: #f4d391; }
.band { background: #141c24; border-block: 1px solid var(--line); }
.play-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.75rem); margin-top: 1.7rem; }
.play-steps > div { border-top: 2px solid #476046; padding-top: .85rem; }
.play-steps p { margin-top: .45rem; }
code { font-family: Consolas, monospace; color: var(--accent); }
.faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: 2.5rem; }
.text-link { display: inline-block; margin-top: .65rem; color: var(--muted); text-underline-offset: .2em; }
.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { color: #eaf0f6; min-height: 2.75rem; padding: .9rem .35rem; cursor: pointer; font-weight: 660; }
summary::marker { color: var(--accent); }
details p { padding: 0 1.5rem 1rem; }

.download-page { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; padding-block: clamp(3rem, 9vw, 7.25rem); min-height: 60vh; }
.download-copy h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); }
.download-copy .button { margin-top: 1.15rem; }
.setup { padding: clamp(1.15rem, 3vw, 2.2rem); border-radius: .7rem; border: 1px solid var(--line); background: var(--panel); }
.setup h2 { font-size: 1.7rem; }
.install-steps { color: var(--muted); padding-left: 1.25rem; }
.install-steps li + li { margin-top: .5rem; }
.install-steps strong { color: #edf2f7; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: #0d1217; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1.4rem 2.2rem; padding-block: 2rem; }
.footer-inner p { max-width: 42rem; margin-top: .6rem; font-size: .875rem; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .app-preview { max-width: 43rem; }
  .download-page { gap: 1.5rem; }
}

@media (max-width: 740px) {
  .server-row { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; padding-block: .65rem; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; margin-left: 0; }
  .hero-inner { padding-block: 2.65rem; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.45rem); }
  .games, .play-steps, .faq, .download-page { grid-template-columns: 1fr; }
  .server-stats { grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem .75rem; }
  .faq { gap: 1.3rem; }
}
