/* CricSonic help and changelog. The colours and type of cricsonic.com
   (tools/vps/site/index.html): field green, cream, the red ball, gold, mint. */
:root {
  --field: #0f3d2b;
  --field-deep: #0a2c1f;
  --cream: #f4efe3;
  --ball: #c8102e;
  --gold: #e2b33c;
  --mint: #cfe3d6;
  --bg: #f4efe3;
  --ink: #17231b;
  --soft: #4a5a4f;
  --card: #ffffff;
  --line: #ddd5c3;
  --link: #a30d26;
  --key-bg: #ece6d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1711;
    --ink: #eef0ea;
    --soft: #aab6ae;
    --card: #13221a;
    --line: #27392f;
    --link: #ff8a8a;
    --key-bg: #1d3027;
  }
}
* { box-sizing: border-box; }
/* A heading reached by a link lands below the navigation, not under it. */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 2; }

/* THE TOP NAVIGATION, the same on every page (his ask, 2026-10-27: an inner
   page had no way back to the home page). Home and Download are full
   addresses because the game also opens this help from its own folder. */
nav.site {
  /* STAYS AT THE TOP while the page scrolls (his ask, the same day). */
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--field-deep);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  padding: 10px 16px;
}
nav.site a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 4px;
}
nav.site a:hover { text-decoration: underline; }
nav.site a[aria-current="page"] { color: var(--gold); }

header.top {
  background: radial-gradient(ellipse at 50% 35%, #145038 0%, var(--field) 55%, var(--field-deep) 100%);
  color: var(--cream);
  padding: 36px 16px 40px;
  text-align: center;
}
header.top .mark { width: 120px; height: auto; display: block; margin: 0 auto 8px; }
header.top h1 {
  font-family: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 6px;
}
header.top h1 .sonic { color: var(--gold); }
header.top p { margin: 0; color: var(--mint); font-size: 1.1rem; }

main { max-width: 900px; margin: 0 auto; padding: 32px 16px 24px; }
h2 {
  font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif;
  font-size: 1.6rem;
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 3px solid var(--gold);
}
h3 { font-size: 1.2rem; margin: 28px 0 8px; }
h4 { font-size: 1.05rem; margin: 20px 0 6px; }
p, li { max-width: 72ch; }
.lead { font-size: 1.1rem; color: var(--soft); }

nav.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 24px;
}
nav.toc ol { margin: 8px 0 0; padding-left: 1.4em; }
nav.toc ol ol { margin: 4px 0 6px; }
nav.toc li { margin: 2px 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 16px 0;
}
.note {
  border-left: 5px solid var(--gold);
  background: var(--card);
  padding: 10px 16px;
  margin: 16px 0;
  border-radius: 0 10px 10px 0;
}
.ru { border-left-color: var(--ball); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 20px;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}
caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--field); color: var(--cream); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
kbd {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
  background: var(--key-bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.back { font-size: 0.95rem; margin-top: 8px; }
footer {
  border-top: 1px solid var(--line);
  color: var(--soft);
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  th, td { padding: 6px 8px; }
}
