/* LikeOS website -- shared stylesheet.
 *
 * Copyright (C) 2026 The LikeOS Project
 */

:root {
  --green: #2f9e1f;
  --green-strong: #23801a;
  --green-deep: #175c10;
  --green-soft: #eaf6e6;
  --green-line: #c9e6c0;
  --ink: #18212b;
  --ink-2: #2b3644;
  --muted: #5d6877;
  --faint: #8a94a2;
  --line: #e2e6eb;
  --line-strong: #cfd5dc;
  --bg: #f6f7f9;
  --card: #ffffff;
  --code-bg: #f1f3f6;
  --warn-bg: #fff7e6;
  --warn-line: #f0c36b;
  --info-bg: #eef5ff;
  --info-line: #9cc0f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .06), 0 4px 16px rgba(16, 24, 32, .05);
  --shadow-lg: 0 10px 40px rgba(16, 24, 32, .14);
  --sidebar: 280px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--green-strong); text-decoration: none; }
a:hover { color: var(--green-deep); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(47, 158, 31, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: 1.45rem; margin: 0 0 .7em; font-weight: 750; }
h3 { font-size: 1.12rem; margin: 1.4em 0 .5em; font-weight: 700; }
h4 { font-size: 1rem; margin: 1.2em 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; color: var(--ink); }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2rem 0;
}
hr.soft { margin: 1.4rem 0; background: linear-gradient(90deg, var(--line), transparent); }

code, kbd, pre { font-family: var(--mono); font-size: .88em; }
code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08em .38em;
  word-break: break-word;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  padding: .12em .45em;
  margin: 0 .08em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-2);
  font-size: .82em;
  line-height: 1.4;
  white-space: nowrap;
}
pre.code {
  margin: .6em 0 1.2em;
  padding: 14px 16px;
  background: #121a22;
  color: #dfe8e0;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}
pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: .9rem; word-break: normal; }

/* ---------- layout ---------- */

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: block; text-align: center; padding: 4px 6px 0; }
.brand img { width: 200px; max-width: 100%; display: block; margin: 0 auto; }
.brand:hover { text-decoration: none; }
.release-pill {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 10px auto 0;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green-deep);
  font-size: .78rem; font-weight: 650;
}
.release-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,158,31,.18); }
.brand-meta { text-align: center; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 700; margin: 6px 10px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 560;
  font-size: .95rem;
  line-height: 1.3;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--faint); }
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav a:hover svg { color: var(--green); }
.nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green-deep);
  box-shadow: inset 3px 0 0 var(--green);
}
.nav a[aria-current="page"] svg { color: var(--green-strong); }
.nav a .ext { margin-left: auto; width: 13px; height: 13px; flex-basis: 13px; opacity: .7; }

.sidebar-donate { margin-top: auto; }
.sidebar-donate p { font-size: .82rem; color: var(--muted); margin: 8px 2px 0; text-align: center; line-height: 1.45; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700; font-size: .97rem; line-height: 1.2;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-donate {
  background: linear-gradient(180deg, #ffcf4a, #f5b300);
  color: #2b2100;
  border-color: #e0a300;
  box-shadow: 0 2px 0 #c99200, 0 6px 18px rgba(245, 179, 0, .35);
}
.btn-donate:hover { color: #2b2100; background: linear-gradient(180deg, #ffd760, #f7bb10); box-shadow: 0 2px 0 #c99200, 0 8px 24px rgba(245, 179, 0, .45); }
.btn-donate svg { color: #c0392b; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 0 var(--green-deep); }
.btn-primary:hover { background: var(--green-strong); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }

/* top bar (narrow screens) */
.topbar { display: none; }

/* content column */
.main { min-width: 0; display: flex; flex-direction: column; }
.content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 40px 20px;
  flex: 1 0 auto;
}

/* page header with the donate call-out */
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-strong);
  margin-bottom: 6px;
}
.page-head h1 { margin-bottom: .2em; }
.page-head .lede { color: var(--muted); font-size: 1.07rem; margin: 0; max-width: 46em; }
.donate-cta {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 16px;
  background: #fffbea;
  border: 1px solid #f3dc8a;
  border-radius: var(--radius);
  text-align: center;
  max-width: 230px;
}
.donate-cta small { color: #6b5a1a; font-size: .78rem; line-height: 1.35; }

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  margin: 0 0 22px;
}
.card > :last-child { margin-bottom: 0; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card h2::before {
  content: ""; width: 6px; height: 1.05em; border-radius: 3px; background: var(--green); flex: 0 0 6px;
}
.card.intro { background: linear-gradient(180deg, #fbfefa, #fff); border-color: var(--green-line); }
.card.plain h2::before { display: none; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin: 0 0 22px;
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 34px; }
.toc li { margin: 2px 0; break-inside: avoid; }

/* lists */
ul.checklist { list-style: none; padding: 0; margin: .4em 0 1.1em; }
ul.checklist li { position: relative; padding-left: 28px; margin: 0 0 .5em; }
ul.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .38em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.6' fill='none' stroke='%2323801a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid var(--green-line);
}
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: .4em 0 1.2em; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 1em; min-height: 30px; }
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* spec sheets */
dl.specs {
  display: grid;
  grid-template-columns: minmax(130px, 32%) 1fr;
  margin: .2em 0 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
dl.specs dt, dl.specs dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
dl.specs dt:first-of-type, dl.specs dt:first-of-type + dd { border-top: 0; }
dl.specs dt { background: #fafbfc; font-weight: 650; color: var(--ink-2); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .4em 0 1.3em; }
table.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.card > table.table { display: block; overflow-x: auto; }
table.table th, table.table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.table thead th {
  background: #fafbfc; color: var(--ink-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid var(--line-strong); white-space: nowrap;
}
table.table tbody tr:hover { background: #fbfcfb; }
table.keys td:first-child { white-space: nowrap; width: 1%; }

/* callouts */
.note, .tip, .callout {
  border-radius: var(--radius-sm);
  padding: 13px 16px 13px 46px;
  margin: 0 0 1.2em;
  position: relative;
  border: 1px solid var(--line);
  background: #fafbfc;
}
.note::before, .tip::before, .callout::before {
  position: absolute; left: 15px; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem; color: #fff;
}
.note::before { content: "i"; background: #6f7b8a; }
.tip { background: var(--green-soft); border-color: var(--green-line); }
.tip::before { content: "\2713"; background: var(--green); }
.callout.info { background: var(--info-bg); border-color: var(--info-line); }
.callout.info::before { content: "i"; background: #3d7bd6; }
.callout.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.callout.warn::before { content: "!"; background: #d68a00; }
.note > :last-child, .tip > :last-child, .callout > :last-child { margin-bottom: 0; }

/* badges */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-deep); border: 1px solid var(--green-line);
  font-size: .76rem; font-weight: 700; vertical-align: middle; white-space: nowrap;
}
.badge.gray { background: #f0f2f5; color: var(--muted); border-color: var(--line); }

/* grids */
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.tile h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.tile p { color: var(--muted); font-size: .95rem; margin: 0; }
.tile .icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-soft); border: 1px solid var(--green-line);
  display: flex; align-items: center; justify-content: center; color: var(--green-strong);
}
.tile .icon svg { width: 22px; height: 22px; }
a.tile { display: block; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tile:hover { text-decoration: none; border-color: var(--green-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* home page hero */
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 26px;
}
.hero-top { padding: 34px 34px 10px; text-align: center; }
.hero-top .hero-logo { width: 460px; max-width: 92%; }
.hero-top .tagline { font-size: 1.3rem; color: var(--ink-2); font-weight: 600; margin: 10px 0 6px; }
.hero-top .sub { color: var(--muted); max-width: 40em; margin: 0 auto 18px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 6px 0 24px; }
.hero-shot { display: block; border-top: 1px solid var(--line); background: #eef3ec; }
.hero-shot img { display: block; width: 100%; }
.release-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #19361a, #23591c 60%, #2f7a20);
  color: #e9f5e6;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.release-banner .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.release-banner .version { font-size: 1.55rem; font-weight: 800; color: #fff; font-family: var(--mono); letter-spacing: -.02em; }
.release-banner .meta { font-size: .9rem; opacity: .9; }
.release-banner .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.release-banner .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; text-align: center; }
.stat .num { font-size: 1.35rem; font-weight: 800; color: var(--green-strong); line-height: 1.2; }
.stat .lbl { font-size: .82rem; color: var(--muted); }

.quote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--green);
  color: var(--ink-2);
  font-size: 1.05rem;
  font-style: italic;
}

/* author block */
.person { display: flex; gap: 20px; align-items: flex-start; }
.avatar {
  flex: 0 0 84px; width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; font-weight: 800; font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(35, 128, 26, .3);
}

/* donate page */
.donate-box {
  border: 2px solid #f3dc8a;
  background: linear-gradient(180deg, #fffdf3, #fff8dc);
  border-radius: 16px;
  padding: 28px 26px;
  text-align: center;
  margin: 0 0 22px;
}
.donate-box h2 { justify-content: center; }
.donate-box h2::before { display: none; }
.donate-box form { margin: 14px 0 8px; }
.donate-box input[type="image"] { max-width: 100%; height: auto; cursor: pointer; }
.donate-box .fine { color: #6b5a1a; font-size: .86rem; margin: 6px 0 0; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; background: #fff; text-align: center; }
.tier .amt { font-size: 1.4rem; font-weight: 800; color: var(--green-strong); }
.tier .what { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.progress { height: 12px; border-radius: 999px; background: #edf0ee; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #6cc04a); }

/* status pages (donation success / cancel) */
.status {
  text-align: center;
  padding: 44px 30px 34px;
}
.status .status-icon {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.status .status-icon svg { width: 44px; height: 44px; }
.status.ok .status-icon { background: var(--green-soft); color: var(--green-strong); border: 2px solid var(--green-line); }
.status.cancel .status-icon { background: #fff4e0; color: #c77700; border: 2px solid #f3d29a; }
.status h1 { font-size: 2rem; }
.status .lede { color: var(--muted); font-size: 1.1rem; max-width: 34em; margin: 0 auto 1.2em; }
.status .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* cookie consent banner */
.consent {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 90;
  width: min(760px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: .92rem; line-height: 1.5; color: var(--ink-2);
}
.consent[hidden] { display: none; }
.consent-text { flex: 1 1 auto; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent .btn { padding: 9px 18px; font-size: .92rem; }
@media (min-width: 961px) {
  .consent { left: calc(50% + var(--sidebar) / 2); width: min(760px, calc(100vw - var(--sidebar) - 48px)); }
}
@media (max-width: 700px) {
  .consent { flex-direction: column; align-items: stretch; bottom: 10px; padding: 14px; }
  .consent-actions .btn { flex: 1 1 0; }
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  margin-top: 30px;
}
.footer-inner {
  max-width: 980px; margin: 0 auto; padding: 22px 40px 26px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  color: var(--muted); font-size: .86rem;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--green-deep); }

/* ---------- slideshow ---------- */

.slideshow { margin: 0 0 22px; }
.stage {
  position: relative;
  background: #0f1512;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
.stage .media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stage img.slide-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; cursor: zoom-in; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster {
  position: absolute; inset: 0; display: block; overflow: hidden;
  background: #000; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .85; transition: opacity .15s;
}
.video-poster:hover img, .video-poster:focus-visible img { opacity: 1; }
.video-poster .big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(204, 0, 0, .92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
}
.video-poster .big-play svg { width: 40px; height: 40px; margin-left: 5px; }
.video-poster .poster-note {
  position: absolute; left: 0; right: 0; bottom: 0; display: block;
  padding: 18px 16px 12px; font: 500 .82rem var(--font); color: #e8efe9; text-align: center;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
}
@media (max-width: 700px) {
  .video-poster .big-play { width: 64px; height: 64px; }
  .video-poster .big-play svg { width: 30px; height: 30px; }
  .video-poster .poster-note { font-size: .74rem; padding: 14px 10px 8px; }
}
.stage .loading { color: #9fb2a4; font-size: .9rem; }
.stage-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10, 16, 12, .55);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .15s;
  z-index: 3;
}
.stage-btn:hover { background: rgba(47, 158, 31, .85); }
.stage-btn svg { width: 22px; height: 22px; }
.stage-btn.prev { left: 14px; }
.stage-btn.next { right: 14px; }
.stage.is-video .stage-btn { top: auto; bottom: 64px; transform: none; }
.stage-tools {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: flex; gap: 8px;
}
.tool {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(10, 16, 12, .6);
  color: #fff; font: 600 .85rem var(--font);
  cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.tool:hover { background: rgba(47, 158, 31, .85); }
.tool svg { width: 16px; height: 16px; }
.stage-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px;
}
.bar-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stage-bar .tool {
  background: #fff; color: var(--ink-2); border-color: var(--line-strong);
  backdrop-filter: none; -webkit-backdrop-filter: none; text-decoration: none;
}
.stage-bar .tool:hover { background: var(--green-soft); color: var(--green-deep); border-color: var(--green-line); }
.counter {
  padding: 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  font: 650 .82rem var(--mono); white-space: nowrap;
}
.slide-caption {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 14px;
}
.slide-caption h2 { font-size: 1.2rem; margin: 0 0 6px; }
.slide-caption h2::before { display: none; }
.slide-caption p { color: var(--muted); margin: 0; }
.slide-caption .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.thumbs {
  display: flex; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 2px 8px;
  scroll-snap-type: x proximity;
}
.thumb {
  flex: 0 0 auto; width: 150px;
  border: 2px solid transparent; border-radius: 10px;
  padding: 0; background: #fff; cursor: pointer; overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thumb span { display: block; font: 600 .72rem var(--font); color: var(--muted); padding: 5px 7px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb[aria-current="true"] { border-color: var(--green); }
.thumb .play {
  position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; background: rgba(200, 0, 0, .9); color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.thumb .play svg { width: 18px; height: 18px; margin-left: 2px; }

/* the stage in fullscreen (native API or the CSS fallback for browsers
   that cannot put an element in fullscreen) */
.stage:fullscreen, .stage:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000; }
.stage.pseudo-fs {
  position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border-radius: 0; background: #000;
  width: 100vw; height: 100vh; height: 100dvh;
}
.stage-tools .fs-exit { display: none; }
.stage:fullscreen .fs-exit, .stage:-webkit-full-screen .fs-exit, .stage.pseudo-fs .fs-exit { display: inline-flex; }
.stage:fullscreen img.slide-img, .stage.pseudo-fs img.slide-img { cursor: zoom-out; }
.stage .fs-caption { display: none; }
.stage:fullscreen .fs-caption, .stage:-webkit-full-screen .fs-caption, .stage.pseudo-fs .fs-caption {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 24px 16px; color: #eef4ef; font-size: .95rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  text-align: center;
}
.stage.is-video .fs-caption { display: none !important; }
body.no-scroll { overflow: hidden; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .content { padding: 28px 28px 18px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .layout { display: block; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px;
  }
  .topbar .brand img { width: 112px; }
  .topbar .actions { display: flex; align-items: center; gap: 8px; }
  .topbar .btn { padding: 8px 13px; font-size: .9rem; border-radius: 9px; }
  .menu-btn {
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70;
    width: min(86vw, 320px); height: 100%;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .sidebar { transform: none; }
  .backdrop {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(10, 16, 20, .45);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  body.nav-open .backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .content { padding: 22px 20px 14px; }
  .footer-inner { padding: 20px 20px 24px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .content { padding: 18px 16px 12px; }
  .page-head { flex-direction: column; gap: 14px; }
  .donate-cta { max-width: none; width: 100%; flex-direction: row; justify-content: space-between; text-align: left; }
  .card { padding: 20px 18px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .toc ol { columns: 1; }
  dl.specs { grid-template-columns: minmax(0, 1fr); }
  dl.specs dd { border-top: 0; padding-top: 0; }
  dl.specs dt { background: none; padding-bottom: 2px; }
  .hero-top { padding: 24px 18px 6px; }
  .hero-top .tagline { font-size: 1.1rem; }
  .release-banner .version { font-size: 1.25rem; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { flex-direction: column; align-items: center; text-align: center; }
  .stage { aspect-ratio: 4 / 3; border-radius: 10px; }
  .stage-btn { width: 40px; height: 40px; }
  .stage-btn.prev { left: 8px; }
  .stage-btn.next { right: 8px; }
  .bar-tools { flex-wrap: nowrap; gap: 6px; }
  .stage-bar .tool { padding: 6px 9px; font-size: .78rem; gap: 5px; white-space: nowrap; }
  .stage-bar .tool svg { width: 14px; height: 14px; }
  .counter { padding: 4px 9px; font-size: .76rem; }
  .thumb { width: 118px; }
  .footer-inner { flex-direction: column; }
  pre.code code { font-size: .82rem; }
}

@media (max-width: 380px) {
  .topbar .btn .label { display: none; }
  .donate-cta { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .sidebar, .topbar, .donate-cta, .backdrop, .footer nav { display: none !important; }
  .layout { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}
