:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #151b31;
  --panel-hover: #1c2442;
  --text: #e9ecf8;
  --muted: #a4aed0;
  --accent: #9ba8ff;
  --border: #2a3354;
  --action: #242d50;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f5fb;
    --panel: #fff;
    --panel-hover: #eef1fb;
    --text: #141a2e;
    --muted: #535e7a;
    --accent: #364bc5;
    --border: #d5daea;
    --action: #e9edff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: clamp(24px, 8vh, 80px) 20px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

header, .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

header {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.brand img {
  flex: none;
  border-radius: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.version {
  margin: 4px 0 0;
}

.version, .platform-meta, .help-content, .empty {
  color: var(--muted);
  font-size: 14px;
}

.back {
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}

.platform:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
}

.platform-copy {
  display: grid;
  gap: 2px;
}

.download-arrow {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--action);
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
}

.help {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

summary {
  width: fit-content;
  cursor: pointer;
  font-size: 14px;
}

.help-content {
  max-width: 540px;
  padding: 4px 0 0 14px;
}

.help-content p { margin: 8px 0; }

code {
  color: var(--text);
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .platforms { grid-template-columns: minmax(0, 1fr); }
  header { gap: 10px 20px; }
}
