/* Grapital City: one dark comic theme for every page. */
:root {
  color-scheme: dark;
  --bg: #0B0813;
  --bg-deep: #07050D;
  --panel: #17102B;
  --panel-2: #1E1436;
  --panel-3: #251A42;
  --line: #39265F;
  --line-2: #5B3F8F;
  --ink: #FCFCFC;
  --ink-soft: #D9D0EA;
  --muted: #A99BC4;
  --purple: #8F2CE2;
  --purple-2: #A057CB;
  --purple-deep: #6422AC;
  --purple-dark: #2A1458;
  --gold: #FBCC06;
  --orange: #F0990C;
  --orange-deep: #B56110;
  --green: #4ADE80;
  --amber: #FBBF24;
  --red: #F87171;
  --link: #C9A7FF;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --comic-shadow: 6px 6px 0 #05030A;
  --radius: 16px;
  --wrap: 1180px;
  --font-body: Inter, "Noto Sans Arabic", "Noto Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-head: Sora, Inter, "Noto Sans Arabic", "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}
:lang(ru), :lang(mn) { --font-head: Inter, "Noto Sans Arabic", "Noto Sans", "Segoe UI", system-ui, sans-serif; }
:lang(ar) {
  --font-body: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-head: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
:lang(zh) {
  --font-body: Inter, "Noto Sans Arabic", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-head: Sora, Inter, "Noto Sans Arabic", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
:lang(ja) {
  --font-body: Inter, "Noto Sans Arabic", "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  --font-head: Sora, Inter, "Noto Sans Arabic", "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 560px at 78% -8%, rgba(143, 44, 226, .24), transparent 62%),
    radial-gradient(820px 480px at 4% 8%, rgba(240, 153, 12, .09), transparent 60%),
    var(--bg);
  color: var(--ink-soft);
  font: 17px/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(rgba(201, 167, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
::selection { background: var(--gold); color: #160B24; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.55rem); }
h2 { font-size: clamp(1.8rem, 3.7vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.38rem); }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
code, kbd { font-family: var(--font-mono); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 820px; }
.lead { max-width: 68ch; color: var(--ink-soft); font-size: 1.08rem; }
.note { color: var(--muted); font-size: .9rem; }
.muted { color: var(--muted); font-weight: 400; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: flex; align-items: center; gap: .5em; margin: 0 0 .9em;
  color: var(--gold); font-family: var(--font-head); font-size: .76rem;
  font-weight: 800; letter-spacing: .15em; text-transform: uppercase;
}
.eyebrow-star { color: var(--orange); font-size: 1em; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--gold); color: #160B24;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: 12px 20px; border: 2px solid #05030A; border-radius: 10px;
  background: var(--panel-2); color: var(--ink);
  font-family: var(--font-head); font-size: .98rem; font-weight: 800;
  line-height: 1.1; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 #05030A;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #05030A; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #05030A; }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--orange)); color: #160B24; }
.btn-gold:hover { color: #160B24; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-lg { padding: 15px 25px; font-size: 1.06rem; }
.btn-small { padding: 8px 14px; font-size: .84rem; box-shadow: 3px 3px 0 #05030A; }
.text-link {
  display: inline-block; color: var(--gold); font-weight: 800; text-decoration: none;
  border-bottom: 2px solid transparent; transition: border-color .12s ease, color .12s ease;
}
.text-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
[dir="rtl"] .text-link [aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 8, 19, .84);
  backdrop-filter: blur(14px);
}
.topbar-in { position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { filter: drop-shadow(0 2px 0 #05030A); }
.brand-word {
  font-family: var(--font-head); font-size: 1.04rem; font-weight: 800;
  letter-spacing: .035em; white-space: nowrap;
}
.brand-dot { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.site-nav > a {
  padding: 9px 11px; border-radius: 8px; color: var(--ink-soft);
  font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.site-nav > a:hover { background: var(--panel-2); color: var(--ink); }
.site-nav > a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.site-nav .nav-ext { color: var(--muted); }
.site-nav .nav-download { margin-inline-start: 8px; color: #fff; }
.site-nav .nav-download:hover { background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; margin-inline-start: auto;
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700;
}
.menu-icon { display: block; width: 18px; height: 2px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: var(--gold); box-shadow: 0 -6px 0 var(--gold), 0 6px 0 var(--gold); }
.lang { position: relative; margin-inline-start: 6px; }
.lang summary {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink);
  font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  cursor: pointer; list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--gold); }
.lang-caret { color: var(--gold); font-size: .7rem; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 190px; margin: 0; padding: 8px; list-style: none;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel); box-shadow: var(--shadow);
}
.lang li { margin: 0; }
.lang a {
  display: block; padding: 7px 10px; border-radius: 7px;
  color: var(--ink-soft); font-size: .9rem; font-weight: 600; text-decoration: none;
}
.lang a:hover { background: var(--panel-3); color: var(--ink); }
.lang a[aria-current="true"] { color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 82px 96px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(closest-side, rgba(143, 44, 226, .28), transparent 72%),
    radial-gradient(closest-side at 70% 40%, rgba(240, 153, 12, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 250px;
  background: url("/assets/img/skyline.svg") bottom center / cover no-repeat;
  opacity: .42; pointer-events: none;
  mask-image: linear-gradient(to top, #000 24%, transparent);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero-copy .lead { font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-live {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 28px; padding: 9px 15px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(23, 16, 43, .82);
  color: var(--ink-soft); font-size: .9rem;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .16);
  animation: pulse 2.4s ease-in-out infinite;
}
.live-label { color: var(--green); font-family: var(--font-head); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
a.hero-live { color: inherit; text-decoration: none; }
a.hero-live:hover { border-color: var(--gold); color: var(--ink); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.hero-logo-wrap {
  position: relative; padding: 14px; border: 3px solid var(--line-2); border-radius: 26px;
  background: radial-gradient(circle at 50% 30%, rgba(143, 44, 226, .32), transparent 70%), var(--panel);
  box-shadow: 10px 10px 0 #05030A, 0 0 70px rgba(143, 44, 226, .28);
  transform: rotate(-2deg);
}
.hero-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .55)); }
.sticker {
  position: absolute; z-index: 2; padding: 7px 11px;
  border: 2px solid #05030A; border-radius: 7px;
  background: var(--gold); color: #160B24;
  font-family: var(--font-head); font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  box-shadow: 3px 3px 0 #05030A;
}
.sticker-one { inset-inline-start: -8px; top: 8%; transform: rotate(-7deg); }
.sticker-two { inset-inline-end: -6px; top: 16%; transform: rotate(6deg); background: var(--purple-2); color: #fff; }
.sticker-three { inset-inline-start: 12%; bottom: -6px; transform: rotate(-3deg); background: var(--orange); }

/* ---------- sections and cards ---------- */
.section { position: relative; padding-block: 66px; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.section-head h2 { text-wrap: balance; }
.card {
  position: relative; padding: 28px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-inline-start: 28px; }
.check-list li::before {
  content: "★"; position: absolute; inset-inline-start: 0; top: 0; color: var(--gold);
  font-size: .9em;
}

/* ---------- quick start ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quick-card { padding-top: 34px; }
.step-star {
  position: absolute; top: -18px; inset-inline-start: 22px;
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 2px solid #05030A; border-radius: 50%;
  background: var(--gold); color: #160B24;
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  box-shadow: 3px 3px 0 #05030A;
}
.quick-card h3 { margin-top: 4px; }
.quick-video { margin: 26px 0 0; }
.quick-video a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.quick-video a:hover { color: var(--gold); }
.play-badge {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid #05030A; border-radius: 50%;
  background: var(--gold); color: #160B24; font-size: .75rem;
  box-shadow: 2px 2px 0 #05030A;
}

/* ---------- server hosts ---------- */
.host-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.host-wide { grid-column: 1 / -1; }
.host-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.host-region { margin: 0; }
.host-by { margin: 0; color: var(--muted); font-size: .9rem; }
.host-tag {
  flex: none; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--gold); font-family: var(--font-head); font-size: .68rem; font-weight: 800; letter-spacing: .1em;
}
.host-text { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; margin: 14px 0 4px; }
.server-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.server-table th {
  padding: 8px 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-align: start; text-transform: uppercase; white-space: nowrap;
}
.server-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.server-table tr:last-child td { border-bottom: 0; }
.server-table td:first-child { color: var(--ink); font-weight: 700; }
.server-table td[data-server], .server-table td[data-server-prefix] { white-space: nowrap; }
.server-table .live { color: var(--green); font-weight: 700; }
.server-table .wait { color: var(--amber); font-weight: 700; }
.server-table .off { color: var(--red); font-weight: 700; }
.server-table .standby {
  position: relative; color: var(--muted); font-weight: 700;
  text-decoration: underline dotted; cursor: help;
}
.tip {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 20; width: 270px;
  margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--panel-3); box-shadow: var(--shadow);
  color: var(--ink-soft); font-size: .82rem; font-weight: 400; line-height: 1.45;
  text-decoration: none; white-space: normal;
}
.funding-head { margin: 22px 0 10px; color: var(--ink); }
.funding {
  margin: 0 0 18px; padding: 16px;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--orange);
  border-radius: 12px; background: rgba(240, 153, 12, .06);
}
.funding[hidden] { display: none; }
.funding-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.funding-title { color: var(--orange); font-family: var(--font-head); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pct { color: var(--orange); font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; }
.amount { margin: 2px 0 10px; color: var(--ink-soft); font-size: .95rem; }
.amount strong { color: var(--ink); font-family: var(--font-head); font-size: 1.45rem; }
.amount .of { color: var(--muted); }
.amount .first { margin-inline-start: 10px; color: var(--gold); font-weight: 700; }
.track { height: 16px; overflow: hidden; border-radius: 999px; background: var(--panel-3); }
.fill {
  width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transition: width .8s ease;
}
.reached { margin: -2px 0 10px; color: var(--green); font-weight: 700; }
.updated { margin-top: 8px; color: var(--muted); font-size: .82rem; }
.donate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.donate-row .note { margin: 0; }
.surplus { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* ---------- votes ---------- */
.vote-card { margin-top: 24px; }
.votes { display: grid; gap: 8px; max-width: 600px; margin-top: 18px; }
.vote {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px 14px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-3); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.vote:hover { border-color: var(--line-2); }
.vote .bar { position: absolute; inset-block: 0; inset-inline-start: 0; background: rgba(143, 44, 226, .32); pointer-events: none; }
.vote span { position: relative; }
.vote.mine { border-color: var(--gold); font-weight: 700; }
.vote.mine span:first-of-type { color: var(--gold); }

/* ---------- community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.streamer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.streamer-card { display: block; padding: 24px 18px; text-align: center; color: var(--ink-soft); text-decoration: none; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.streamer-card:hover { color: var(--ink-soft); border-color: var(--purple-2); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #05030A; }
.streamer-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 14px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--purple-dark); color: var(--gold); }
.streamer-icon svg { width: 24px; height: 24px; }
.streamer-card h3 { margin-bottom: 6px; color: var(--ink); }
.streamer-card .text-link { font-size: .82rem; }
@media (max-width: 800px) { .streamer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .streamer-grid { grid-template-columns: 1fr; } }
.community-card {
  display: block; color: var(--ink-soft); text-decoration: none;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.community-card:hover {
  color: var(--ink-soft); border-color: var(--purple-2);
  transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #05030A;
}
.community-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--purple-dark); color: var(--gold); font-size: 1.2rem;
}
.community-card h3 { color: var(--ink); }
.community-card p { color: var(--muted); font-size: .92rem; }

/* ---------- support and faq ---------- */
.support-card {
  padding: 42px;
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(240, 153, 12, .16), transparent 70%),
    linear-gradient(135deg, rgba(143, 44, 226, .26), rgba(23, 16, 43, .9));
  border-color: var(--line-2);
}
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.support-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.support-grid + .card { margin-top: 24px; }
.support-section { margin-top: 42px; }
.teaser-card { padding: 38px; background: radial-gradient(520px 240px at 90% 0%, rgba(143, 44, 226, .22), transparent 70%), linear-gradient(180deg, var(--panel), var(--panel-2)); border-color: var(--line-2); }
.teaser-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.faq-item { padding: 0; }
.faq-item summary {
  position: relative; padding: 18px 48px 18px 22px;
  color: var(--ink); font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%;
  transform: translateY(-50%); color: var(--gold); font-size: 1.35rem; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- page hero and play page ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: 72px 42px; }
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(143, 44, 226, .22), transparent 72%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero.compact { padding-block: 58px 26px; }
.page-hero h1 { max-width: 18ch; text-wrap: balance; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.video-card { position: relative; display: block; color: inherit; text-decoration: none; }
.video-facade {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border: 3px solid var(--line-2); border-radius: 18px; background: #000;
  box-shadow: var(--comic-shadow); cursor: pointer;
}
.video-facade img { display: block; width: 100%; height: auto; opacity: .86; }
.video-facade:hover img { opacity: 1; }
.video-play {
  position: absolute; inset-block-start: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 68px; height: 68px;
  border: 3px solid #05030A; border-radius: 50%;
  background: var(--gold); color: #160B24; font-size: 1.5rem;
  box-shadow: 4px 4px 0 #05030A;
}
.video-caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  color: #fff; font-family: var(--font-head); font-size: .95rem; font-weight: 700; text-align: start;
}
.video-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.callout { border-color: var(--line-2); border-inline-start: 5px solid var(--gold); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.step { padding-top: 34px; }
.step h3 { margin-top: 2px; }
.os-card { min-height: 100%; }
.os-card .btn { margin-top: 6px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 12px 0 26px; }
.mode-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-3); }
.mode-card strong { display: block; margin-bottom: 2px; color: var(--gold); font-family: var(--font-head); }
.mode-card span { color: var(--muted); font-size: .88rem; }
.key-table { width: 100%; border-collapse: collapse; }
.key-table th {
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .85rem; font-weight: 600; text-align: start;
}
.key-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: end; }
.key-table tr:last-child th, .key-table tr:last-child td { border-bottom: 0; }
kbd {
  display: inline-block; min-width: 36px; padding: 3px 8px;
  border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px;
  background: var(--panel-3); color: var(--ink);
  font-size: .78rem; font-weight: 600; text-align: center;
}
.key-note { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.moves { margin: 0; }
.moves dt { margin-top: 12px; color: var(--gold); font-family: var(--font-head); font-weight: 800; }
.moves dt:first-child { margin-top: 0; }
.moves dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .92rem; }
.cta-card { text-align: center; }
.cta-card p { max-width: 52ch; margin-inline: auto; }
.big-cta {
  padding: 52px 28px;
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(143, 44, 226, .35), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--panel-2));
  border-color: var(--line-2);
}
.steps-list li { margin-bottom: .7em; }
.command-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.command-table th, .command-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.command-table th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.command-table td:first-child { white-space: nowrap; }
.command-table code { color: var(--gold); }

/* ---------- maintainer form ---------- */
.bar-form { display: grid; gap: 10px; }
.bar-form label { color: var(--ink); font-weight: 700; }
.bar-form input[type="text"], .bar-form input[type="number"], .bar-form select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--bg-deep); color: var(--ink);
  font: inherit;
}
.bar-form .field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin: 6px 0; }
.bar-form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.bar-form .hint { margin: 0; color: var(--muted); font-size: .85rem; }
.bar-form .form-status { min-height: 1.4em; font-size: .9rem; }
.bar-form .form-status.ok { color: var(--green); }
.bar-form .form-status.err { color: var(--red); }
.bar-form .back { color: var(--muted); font-size: .85rem; }
.bar-form button { justify-self: start; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-items: center; text-align: center; }
.notfound .wrap { max-width: 760px; }
.notfound h1 { margin-inline: auto; font-size: clamp(2.8rem, 8vw, 6rem); }
.notfound .lead { margin-inline: auto; }
.notfound .btn { margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding-block: 44px 26px; border-top: 1px solid var(--line); background: rgba(7, 5, 13, .7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand img { filter: drop-shadow(0 2px 0 #05030A); }
.footer-tagline { max-width: 42ch; margin: 10px 0 4px; color: var(--ink-soft); }
.footer-disclaimer { color: var(--muted); font-size: .85rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-soft); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-langs-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-langs ul { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.footer-langs li { margin: 0; }
.footer-langs a { color: var(--ink-soft); font-size: .85rem; text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current="true"] { color: var(--gold); }
.footer-made { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .site-nav > a { padding-inline: 8px; font-size: .84rem; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .menu-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 12px 24px 18px;
    border-bottom: 1px solid var(--line); background: var(--panel);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 10px; font-size: .95rem; }
  .site-nav .nav-download { margin: 8px 0 0; }
  .lang { margin-inline-start: auto; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: 2; }
  .hero-logo-wrap { max-width: 620px; margin-inline: auto; }
  .host-grid, .split, .quick-grid, .footer-grid { grid-template-columns: 1fr; }
  .host-wide { grid-column: auto; }
  .footer-grid { gap: 22px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .topbar-in { gap: 10px; min-height: 68px; }
  .brand-word { font-size: .92rem; }
  .brand img { width: 28px; height: 28px; }
  .menu-text { display: none; }
  .section { padding-block: 48px; }
  .card { padding: 22px 18px; }
  .hero { padding-block: 54px 64px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-live { width: 100%; border-radius: 12px; }
  .sticker { font-size: .6rem; padding: 5px 8px; }
  .community-grid, .faq-grid { grid-template-columns: 1fr; }
  .support-card { padding: 28px 20px; }
  .bar-form .field-row { grid-template-columns: 1fr; }
  .quick-video a { align-items: flex-start; }
  .footer-made { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
