:root {
  color-scheme: dark;
  --background: #0d1321;
  --surface: #182236;
  --edge: #34435c;
  --text: #f5f6fa;
  --muted: #b3c0d6;
  --accent: #a7f3d0;
  --ink: #102923;
  --brand-red: #f5223e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 4% 14%, #21354c 0%, var(--background) 60%);
  min-height: 100vh;
  font: 18px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.page { max-width: 1280px; padding: 34px 6vw 68px; margin: 0 auto; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--edge); padding: 0 0 22px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; font-size: 24px; font-weight: 750; }
.brand-logo { display: block; width: 56px; height: 56px; margin-right: 12px; border-radius: 12px; }
a { color: var(--accent); text-underline-offset: 4px; }
.text-link { display: inline-block; color: var(--text); border: 1px solid var(--edge); border-radius: 10px; padding: 7px 17px; background: var(--surface); font: inherit; text-decoration: none; cursor: pointer; }
.layout { padding-top: 62px; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.intro { display: flex; align-items: center; min-width: 0; padding: 12px 0; }
.intro h1 {
  margin: 0;
  color: var(--brand-red);
  font: bold 76px/1.06 Arial, sans-serif;
  font-size: clamp(56px, 7.2vw, 108px);
  letter-spacing: -0.035em;
}
.brand-dragon { display: block; width: 38%; max-width: 208px; min-width: 0; height: auto; margin-left: 14px; }
h2 { margin: 0 0 16px; font-size: 29px; letter-spacing: -0.025em; }
.panel, .release { background: var(--surface); border: 1px solid var(--edge); border-radius: 18px; padding: 26px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16); }
.panel { width: 100%; max-width: 485px; justify-self: end; }
.field + .field { margin-top: 13px; }
.field label { display: block; font-size: 16px; font-weight: 650; margin-bottom: 5px; }
.field input { width: 100%; min-height: 48px; padding: 7px 12px; background: var(--background); color: var(--text); border: 1px solid var(--edge); border-radius: 8px; font: inherit; }
.field small { color: var(--muted); display: block; margin-top: 5px; }
.button { display: block; width: 100%; text-align: center; line-height: 1.25; color: var(--ink); background: var(--accent); border: 0; border-radius: 10px; padding: 14px 18px; text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { background: #d2fce8; }
.panel .button { margin-top: 20px; }
.form-footer { margin: 15px 0 0; text-align: center; }
.errorlist { color: #ffc4b8; margin: 7px 0; padding-left: 20px; font-size: 16px; }
.layout-downloads { display: block; padding-top: 42px; }
.layout-downloads .intro { padding: 0; }
.layout-downloads .brand-dragon { max-width: 150px; }
.releases { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 32px; }
.release { display: flex; flex-direction: column; align-items: stretch; }
.release-head { display: flex; justify-content: space-between; align-items: center; }
.release-head h2 { margin: 0 10px 0 0; }
.file-type { border: 1px solid var(--edge); border-radius: 7px; padding: 3px 8px; color: var(--accent); font-size: 14px; font-weight: 750; }
.version { margin: 5px 0; color: var(--muted); font-size: 16px; }
.description { color: var(--muted); margin: 8px 0 18px; }
.installation { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.installation summary { color: var(--accent); cursor: pointer; padding: 6px 0; }
.installation ol { padding-left: 22px; }
.installation li + li { margin-top: 10px; }
.installation p { margin: 0; }
.release .button { margin-top: auto; }
a:focus, button:focus, input:focus, summary:focus { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 820px) {
  .page { padding: 22px 5vw 40px; }
  .layout { padding-top: 28px; grid-template-columns: 1fr; gap: 22px; }
  .panel { margin: 0; justify-self: start; width: 100%; }
  .intro h1 { font-size: 68px; }
  .brand-dragon { max-width: 135px; }
}
@media (max-width: 479px) {
  .intro h1 { font-size: 52px; }
  .brand-dragon { margin-left: 10px; }
}
@media (max-width: 350px) { .releases { grid-template-columns: 1fr; } }

.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.statistics { padding-top: 32px; }
.statistics h1 { margin: 0 0 20px; font-size: 46px; letter-spacing: -0.04em; }
.statistics-overview, .statistics-tables { display: grid; gap: 16px; }
.statistics-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.statistics-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.statistics-card { background: var(--surface); border: 1px solid var(--edge); border-radius: 16px; padding: 22px; }
.statistics-overview strong { display: block; color: var(--accent); font-size: 38px; line-height: 1.2; }
.statistics-overview span { color: var(--muted); }
.statistics-card h2 { font-size: 23px; }
.statistics-card table { width: 100%; border-collapse: collapse; font-size: 16px; }
.statistics-card th, .statistics-card td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
.statistics-card thead th { color: var(--muted); }
.statistics-challenge { max-width: 390px; }
.statistics-challenge .button { margin-top: 16px; }
@media (max-width: 720px) {
  .statistics-tables { grid-template-columns: 1fr; }
  .statistics-overview { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
