:root {
  --bg: #070b10;
  --surface: #0c131c;
  --surface-hover: #101a25;
  --border: #203040;
  --text: #f2f5f8;
  --muted: #93a2b1;
  --accent: #45c7ff;
  --button: #168ee6;
  --green: #43d99a;
  --max: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }

.header {
  width: min(1120px, 100%);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 20px; font-weight: 850; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }
.home-link { color: #b1bdc8; font-size: 15px; font-weight: 650; }
.home-link:hover { color: #fff; }

main { width: min(var(--max), 100%); margin: 0 auto; padding: 0 24px; }
.hero { padding: 72px 0 32px; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(40px, 7vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }

.download-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.release-main { display: flex; align-items: center; gap: 18px; }
.release-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #294159;
}
.release-main h2 { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.release-meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 12px 3px 0;
  border-radius: 50%;
  background: #587085;
}
.release-notes { margin: 26px 0 24px; padding: 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.release-notes h3 { margin: 0 0 10px; font-size: 17px; }
.release-notes ul, .version-item ul { list-style: none; margin: 0; padding: 0; }
.release-notes li, .version-item li { color: #adbac6; font-size: 15px; line-height: 1.85; }
.release-notes li::before, .version-item li::before { content: "[+]"; margin-right: 9px; color: var(--green); font-weight: 750; }

.download-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: #fff;
  font: 800 16px inherit;
  cursor: pointer;
  transition: background .18s ease;
}
.download-button:hover { background: #24a5f7; }

.section { padding: 68px 0 0; }
.section-title { margin-bottom: 24px; }
.section-title h2 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -0.035em; }
.requirements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.requirements-grid article {
  min-height: 124px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.requirements-grid strong { font-size: 20px; }
.requirements-grid span { margin-top: 5px; color: var(--muted); font-size: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.steps li {
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  gap: 16px;
}
.step-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid #28506a;
  border-radius: 8px;
  color: var(--accent);
  font-weight: 850;
}
.steps strong { display: block; margin: 5px 0 7px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.version-list { display: grid; gap: 12px; }
.version-item { padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.version-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.version-header h3 { margin: 0; color: var(--accent); font-size: 22px; }
.version-header time { color: var(--muted); font-size: 14px; }
.version-item p { margin: 0; color: var(--muted); font-size: 15px; }

footer { width: min(1120px, 100%); margin: 72px auto 0; padding: 34px 24px 28px; border-top: 1px solid var(--border); }
footer p { margin: 14px 0 24px; color: #81909e; font-size: 14px; }
footer small { display: block; color: #71808e; font-size: 14px; }

.download-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #2c5069;
  border-radius: 14px;
  background: #09111a;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0,0,0,.58);
  overflow: hidden;
}
.download-dialog::backdrop { background: rgba(1,4,8,.8); backdrop-filter: blur(5px); }
.dialog-head { padding: 22px 24px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dialog-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.dialog-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1721;
  color: #b5c3cf;
  font-size: 25px;
  cursor: pointer;
}
.download-options { display: grid; gap: 10px; padding: 20px 20px 12px; }
.download-option {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  transition: border-color .18s ease, background .18s ease;
}
.download-option:hover { border-color: #347294; background: var(--surface-hover); }
.service-logo { width: 46px; height: 46px; display: block; object-fit: cover; border-radius: 11px; }
.download-option strong { display: block; font-size: 16px; }
.download-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.download-option b { color: var(--accent); font-size: 14px; }
.allbrawls-option .service-logo { object-fit: contain; border-radius: 9px; }
.allbrawls-name { font-weight: 850; letter-spacing: -0.02em; }
.allbrawls-name span { color: #fff; }
.allbrawls-name em { color: #f4b400; font-style: normal; }
.proxy-note { margin: 0; padding: 10px 24px 24px; color: var(--muted); font-size: 14px; text-align: center; }
.proxy-note a { color: var(--accent); font-weight: 700; }
.download-dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .header { height: 66px; padding: 0 18px; }
  .logo { font-size: 18px; }
  .home-link { font-size: 14px; }
  main { padding: 0 18px; }
  .hero { padding: 52px 0 26px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .download-card { padding: 20px; }
  .release-main { align-items: flex-start; }
  .release-icon { width: 62px; height: 62px; border-radius: 14px; }
  .release-main h2 { font-size: 23px; }
  .release-meta { gap: 5px 12px; }
  .release-meta span + span::before { display: none; }
  .section { padding-top: 56px; }
  .section-title h2 { font-size: 28px; }
  .requirements-grid, .steps { grid-template-columns: 1fr; }
  .requirements-grid article { min-height: 104px; }
  .steps li { min-height: 0; }
  .download-option { grid-template-columns: auto 1fr; }
  .download-option b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
