/* KyoTok site. Palette = Kyo Patcher «Облако» (patcher/Sources/Theme/Theme.swift): the night-sky navy and the sky blue
   are the product's identity, so the page is dark like the patcher and the mod menu. Rounded type = the mod's own
   (SF Pro Rounded on Apple, where almost every visitor is; Nunito/system elsewhere, nothing loaded from outside). */
:root {
  --bg: #080E18;
  --surface: #111B2A;
  --surface2: #172336;
  --text: #ECF3F8;
  --muted: #93A8BF;
  --sky: #B6E4FC;
  --on-sky: #0F2A4D;
  --accent: #6F9FF4;
  --radius-card: 24px;
  --radius-control: 16px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  /* One sky band behind the logo only: it anchors the first screen on the brand, the rest of the page stays flat. */
  background-image: radial-gradient(120% 420px at 50% -120px, rgba(111, 159, 244, 0.28), rgba(8, 14, 24, 0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}

a, button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 12px; }

.top {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand img { border-radius: 9px; }
.langs { display: flex; gap: 4px; }
.langs button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: 700 14px var(--font);
}
.langs button:hover { color: var(--text); background: var(--surface); }
.langs button[aria-pressed="true"] { color: var(--sky); background: var(--surface); }

main { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }

.hero { text-align: center; padding: 28px 0 8px; }
.logo { border-radius: 28px; display: block; margin: 0 auto 18px; }
h1 { font-size: 44px; line-height: 1.05; margin: 0 0 12px; font-weight: 900; letter-spacing: -0.5px; }
.lead { margin: 0 auto 24px; max-width: 30em; color: var(--text); }

.primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 64px;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  background: var(--sky);
  color: var(--on-sky);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.primary small { font-weight: 700; font-size: 14px; color: var(--on-sky); opacity: 0.8; }
.primary:hover { background: #CDEEFF; }
.primary:active { transform: scale(0.98); }

.hint { margin: 12px 0 20px; color: var(--muted); font-size: 15px; }

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--sky);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}
.secondary:hover { background: var(--surface2); }
.secondary:active { transform: scale(0.98); }

.card {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
}
h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.release-title { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.notes { margin: 0; padding-left: 20px; }
.notes li { margin: 6px 0; }
.notes li::marker { color: var(--sky); }
.more {
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface2);
  color: var(--sky);
  font: 700 15px var(--font);
}
.more:hover { background: #1E2D44; }
.more[hidden] { display: none; }
.error { color: #F2867D; }

.foot { max-width: 560px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 360px) {
  .links { grid-template-columns: 1fr; }
  h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .primary:active, .secondary:active { transform: none; }
}
