:root {
  --bg: #1d0f0b;
  --bg-2: #2a1610;
  --panel: #3a1e15;
  --panel-2: #4a2619;
  --line: #7a4a2a;
  --bronze: #c8924a;
  --bronze-hi: #f0c27a;
  --text: #f4e6d4;
  --muted: #c9ae93;
  --red: #9e2b1e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(1200px 600px at 50% -200px, #4a1f14 0%, transparent 70%);
  color: var(--text);
  font: 16px/1.65 "M PLUS Rounded 1c", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze-hi); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--bronze-hi); }
h3 { font-size: 1.15rem; color: var(--bronze-hi); }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(29, 15, 11, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 38px; height: 38px; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a:focus-visible { color: var(--text); background: var(--panel); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 700; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
  color: #2a1208;
  background: linear-gradient(180deg, var(--bronze-hi), var(--bronze) 60%, #9a6a30);
  border: 2px solid #ffe2a8;
  box-shadow: 0 4px 0 #6b3f1a, var(--shadow);
  transition: transform .1s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #6b3f1a; }
.btn.ghost { background: transparent; color: var(--bronze-hi); border-color: var(--bronze); box-shadow: none; }

/* hero */
.hero { position: relative; border-bottom: 3px solid var(--bronze); }
.hero picture { position: relative; display: block; }
.hero picture img { width: 100%; aspect-ratio: 16 / 7; max-height: 640px; object-fit: cover; object-position: 50% 30%; }
.hero picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,15,11,0) 60%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; margin-top: -40px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); text-shadow: 0 3px 12px rgba(0,0,0,.7); margin-bottom: .3em; }
.hero .lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 640px; color: #fff3e2; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero .note { margin-top: 12px; font-size: .9rem; color: var(--muted); }

/* download details + live status */
.dl-info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .92rem; color: var(--muted); }
.dl-info b { color: var(--text); font-weight: 700; }
.sha { margin: 6px 0 0; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.sha code, .wrap-code { overflow-wrap: anywhere; word-break: break-all; }
.status-line { margin: 10px 0 0; font-weight: 700; }
.ok { color: #7fd47f; }
.down { color: #ff8a7a; }
.status-card #status-box { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.small { font-size: .85rem; color: var(--muted); }
.card ul { margin: 0 0 1em; padding-left: 1.2em; }
.card ul:last-child { margin-bottom: 0; }

/* screenshots */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-weight: 700; color: var(--bronze-hi); font-size: .95rem; }

/* account page */
.narrow { max-width: 560px; }
.narrow .card { margin-bottom: 16px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input {
  font: inherit; color: var(--text); background: #140a07;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.form input:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.form .btn { justify-self: start; font-size: 1rem; padding: 10px 22px; }
.msg { margin: 0; min-height: 1.2em; font-weight: 700; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 800; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tab.active { color: #2a1208; background: var(--bronze); border-color: var(--bronze-hi); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--bronze); }
.banner { font-weight: 700; }

/* changelog */
.changelog { display: grid; gap: 14px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid #3c2016; border-bottom: 1px solid #3c2016; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card .tag { display: inline-block; font-size: .8rem; font-weight: 800; color: #2a1208; background: var(--bronze); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.split { display: grid; gap: 28px; grid-template-columns: 1.1fr 1fr; align-items: center; }
.shot { border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 64px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2a1208; background: var(--bronze); }
.callout { border-left: 4px solid var(--bronze); background: var(--panel); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0 0; }

/* news */
.post time { color: var(--muted); font-size: .9rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #4a2a1c; vertical-align: top; }
th { background: var(--panel-2); color: var(--bronze-hi); }
tr:last-child td { border-bottom: 0; }
code { background: #140a07; color: var(--bronze-hi); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* faq */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--bronze-hi); }
details[open] summary { border-bottom: 1px solid #4a2a1c; margin-bottom: 10px; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; text-align: center; border-top: 1px solid var(--line); }
footer img { width: 64px; margin: 0 auto 10px; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .split { grid-template-columns: 1fr; }
  .hero picture img { aspect-ratio: 4 / 3; object-position: 30% 30%; }
  .hero .wrap { margin-top: -24px; }
  section { padding: 48px 0; }
}
