:root {
  /* Ті самі кольори, що й у лаунчері: щільні теплі темні тони, акцент — бірюзовий і блакитний із логотипа. */
  --bg: #0d0f11;
  --bg-2: #14171a;
  --surface: #16191c;
  --surface-2: #1b1f23;
  --line: #23272c;
  --line-strong: #353b42;
  --text: #e6e4df;
  --muted: #8a8f96;
  --cyan: #4fc4b4;
  --violet: #3a9fc0;
  --pink: #a8eee2;
  --green: #5bd18a;
  --amber: #e8b04a;
  --red: #e5484d;
  --on-accent: #08201c;
  --radius: 0;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; color: var(--cyan); background: rgba(60, 242, 255, 0.08); padding: 0.1em 0.4em; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--cyan); margin-top: 1.6em; text-transform: uppercase; letter-spacing: 0.08em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -50% -50% 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%, transparent 95%);
  animation: grid-move 18s linear infinite;
  opacity: 0.55;
}
@keyframes grid-move { to { background-position: 0 64px, 0 0; } }
.bg-glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: 0.22; }
.bg-glow--a { background: var(--violet); top: -25vmax; left: -15vmax; }
.bg-glow--b { background: var(--cyan); bottom: -30vmax; right: -20vmax; opacity: 0.14; }

/* ---------- Навігація ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 800; letter-spacing: 0.18em; font-size: 0.95rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 8px rgba(55, 205, 198, 0.55)); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links .nav-cta { color: var(--bg); background: var(--cyan); font-weight: 700; margin-left: 8px; }
.nav-links .nav-cta:hover { color: var(--bg); background: #8ff8ff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); transition: transform 0.25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; padding: 64px 16px 40px; }
.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-title {
  position: relative;
  font-size: clamp(3rem, 13vw, 9.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 28px 0 12px;
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 45%, var(--violet) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(60, 242, 255, 0.25));
}
.hero-title::after {
  content: attr(data-glitch);
  position: absolute; inset: 0;
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(0 0 100% 0);
  transform: translateX(4px);
  animation: glitch 6s infinite steps(1);
  opacity: 0.8;
}
@keyframes glitch {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); }
  93% { clip-path: inset(20% 0 55% 0); transform: translateX(-6px); }
  95% { clip-path: inset(60% 0 15% 0); transform: translateX(6px); }
  97% { clip-path: inset(40% 0 40% 0); transform: translateX(-3px); }
}
.hero-lead { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: var(--muted); margin-bottom: 36px; }
.hero-lead strong { color: var(--text); font-weight: 700; }

.ip-card { display: inline-flex; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 28px; max-width: 100%; }
.ip-status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.ip-status.is-online .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.ip-status.is-online .status-text { color: var(--green); }
.ip-status.is-offline .status-dot { background: var(--red); }
.ip-copy {
  position: relative; display: grid; gap: 2px; justify-items: center;
  padding: 18px 34px; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  max-width: 100%;
}
.ip-copy:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 40px rgba(60, 242, 255, 0.2); transform: translateY(-2px); }
.ip-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.ip-value { font-size: clamp(1.05rem, 3.2vw, 1.5rem); font-weight: 600; background: none; padding: 0; color: var(--text); word-break: break-all; }
.ip-hint { font-size: 0.75rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: linear-gradient(100deg, var(--cyan), var(--violet)); color: #04060b; box-shadow: 0 10px 40px -10px rgba(60, 242, 255, 0.6); }
.btn--primary:hover { box-shadow: 0 14px 50px -8px rgba(155, 107, 255, 0.7); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--violet); }

.stats { list-style: none; margin: 64px auto 0; padding: 0; max-width: var(--max); width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: rgba(5, 7, 13, 0.85); padding: 22px 20px; display: grid; gap: 4px; }
.stats b { font-family: var(--font-display); font-size: 1.7rem; color: var(--cyan); }
.stats span { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }

/* ---------- Секції ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 16px 20px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-family: var(--font-mono); font-size: 0.82rem; color: var(--violet); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s, border-color 0.25s;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--cyan), transparent 40%, transparent 60%, var(--violet)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.25s; }
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(60, 242, 255, 0.1); color: var(--cyan); font-size: 1.3rem; margin-bottom: 16px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.cycle { margin-top: 48px; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.cycle-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 18px; }
.cycle-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: c; }
.cycle-track li { position: relative; text-align: center; font-weight: 700; font-size: 0.92rem; padding: 14px 6px 0; counter-increment: c; }
.cycle-track li::before { content: ""; display: block; height: 4px; border-radius: 4px; margin-bottom: 12px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.cycle-track li:nth-child(4)::before { background: linear-gradient(90deg, var(--violet), var(--amber)); }
.cycle-track li:nth-child(5)::before { background: linear-gradient(90deg, var(--amber), var(--red)); }
.cycle-track li:nth-child(6)::before { background: linear-gradient(90deg, var(--red), var(--green)); }

/* ---------- Кроки ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--cyan); margin-bottom: 18px; opacity: 0.9; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step b { color: var(--text); }
.step-link { margin-top: auto; font-weight: 700; }
.cmd { margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: #03050a; border: 1px solid var(--line); overflow-x: auto; font-size: 0.85rem; line-height: 1.7; color: var(--green); }
.cmd code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- Вікі ---------- */
.wiki { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.wiki-tabs { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wiki-tabs button {
  text-align: left; font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--muted);
  background: none; border: 0; border-radius: 12px; padding: 11px 14px; cursor: pointer;
  border-left: 2px solid transparent; transition: color 0.2s, background 0.2s;
}
.wiki-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.wiki-tabs button[aria-selected="true"] { color: var(--text); background: rgba(60, 242, 255, 0.08); border-left-color: var(--cyan); }
.wiki-panel { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 420px; animation: fade-in 0.35s ease; }
.wiki-panel h3 { font-size: 1.6rem; font-weight: 800; }
.wiki-panel ul, .wiki-panel ol { padding-left: 1.2em; margin: 0 0 1em; }
.wiki-panel li { margin-bottom: 0.4em; }
.wiki-panel li::marker { color: var(--cyan); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

.note { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: rgba(155, 107, 255, 0.1); border: 1px solid rgba(155, 107, 255, 0.35); font-size: 0.95rem; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.formula span { font-family: var(--font-mono); font-weight: 600; padding: 10px 16px; border-radius: 12px; background: #03050a; border: 1px solid var(--line-strong); color: var(--cyan); }
.formula i { font-style: normal; color: var(--muted); font-size: 1.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.split-col { padding: 18px 20px; border-radius: 14px; border: 1px solid; }
.split-col h4 { margin-top: 0; }
.split-col ul { margin: 0; font-size: 0.93rem; }
.split-col--ok { border-color: rgba(77, 255, 166, 0.3); background: rgba(77, 255, 166, 0.05); }
.split-col--ok h4, .split-col--ok li::marker { color: var(--green); }
.split-col--no { border-color: rgba(255, 92, 122, 0.3); background: rgba(255, 92, 122, 0.05); }
.split-col--no h4, .split-col--no li::marker { color: var(--red); }

.decay { list-style: none; padding: 0 !important; margin: 22px 0 !important; display: grid; gap: 10px; }
.decay-step { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; background: #03050a; border-left: 3px solid; }
.decay-step b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; }
.decay-step span { color: var(--muted); font-size: 0.93rem; }
.decay-step--1 { border-color: var(--green); } .decay-step--1 b { color: var(--green); }
.decay-step--2 { border-color: var(--amber); } .decay-step--2 b { color: var(--amber); }
.decay-step--3 { border-color: var(--red); }   .decay-step--3 b { color: var(--red); }
.decay-step--4 { border-color: var(--muted); } .decay-step--4 b { color: var(--muted); }

.chat-demo { padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.55); font-family: var(--font-mono); font-size: 0.9rem; margin: 18px 0; display: grid; gap: 6px; }
.chat-line b { color: #fff; font-weight: 600; }
.tag { display: inline-block; font-weight: 700; margin-right: 8px; }
.tag::before { content: "["; } .tag::after { content: "]"; }
.tag--local { color: #aaa; }
.tag--global { color: var(--amber); }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.cmd-table th, .cmd-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmd-table th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); background: rgba(0, 0, 0, 0.3); }
.cmd-table tr:last-child td { border-bottom: 0; }
.cmd-table td:first-child { white-space: nowrap; }
.cmd-table td:last-child { color: var(--muted); }

/* ---------- Правила ---------- */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.rule-n { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-display); font-weight: 800; color: var(--bg); background: linear-gradient(140deg, var(--cyan), var(--violet)); }
.rule p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Мапа ---------- */
.map-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.map-text p { color: var(--muted); }
.map-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); background: radial-gradient(circle, rgba(60, 242, 255, 0.08), transparent 70%); overflow: hidden; }
.map-ring { position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.map-ring--2 { inset: 36%; }
.map-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(60, 242, 255, 0.35) 360deg); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-pin { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(60, 242, 255, 0.6); animation: ping 2.4s infinite; }
.map-pin:nth-of-type(2) { animation-delay: 0.6s; background: var(--violet); }
.map-pin:nth-of-type(3) { animation-delay: 1.2s; background: var(--pink); }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(60, 242, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 242, 255, 0); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--cyan); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- Футер ---------- */
.footer { margin-top: 120px; border-top: 1px solid var(--line); background: rgba(5, 7, 13, 0.8); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 36px 16px; display: grid; gap: 6px; color: var(--muted); font-size: 0.92rem; }
.footer-inner p { margin: 0; }
.brand--small { font-size: 0.85rem; margin-bottom: 6px; }
.footer-meta { font-size: 0.8rem; opacity: 0.7; }

/* ---------- Тост ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--cyan); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 100; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Поява при прокрутці ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптивність ---------- */
@media (max-width: 1020px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 16px; background: rgba(5, 7, 13, 0.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .wiki { grid-template-columns: 1fr; }
  .wiki-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .wiki-tabs::-webkit-scrollbar { display: none; }
  .wiki-tabs button { flex: none; border-left: 0; border-bottom: 2px solid transparent; }
  .wiki-tabs button[aria-selected="true"] { border-bottom-color: var(--cyan); }
  .wiki-panel { padding: 24px 20px; min-height: 0; }
  .rules, .split, .map-card { grid-template-columns: 1fr; }
  .map-card { padding: 28px 20px; }
  .map-visual { max-width: 260px; }
  .cycle-track { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .decay-step { grid-template-columns: 1fr; gap: 4px; }
  .section { padding-top: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-title { font-size: 12vw; letter-spacing: 0.02em; }
  .ip-copy { padding: 16px 20px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cmd-table td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Додаткові сторінки (PHP-версія)
   ========================================================= */
.section--page { padding-top: 64px; }
.page-title { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 0.4em; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.more-link { font-weight: 700; white-space: nowrap; }
.empty { color: var(--muted); }
.back-link { display: inline-block; font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.back-link:hover { color: var(--cyan); text-decoration: none; }
.admin-inline, .updated { margin-top: 32px; font-size: 0.9rem; color: var(--muted); }
.note--warn { background: rgba(255, 194, 77, 0.1); border-color: rgba(255, 194, 77, 0.4); margin: 0 0 24px; }

/* Новини */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.news-card-link { display: flex; flex-direction: column; height: 100%; color: var(--text); }
.news-card-link:hover { text-decoration: none; }
.news-cover { aspect-ratio: 16 / 9; background: #03050a; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-cover--empty { display: grid; place-items: center; font-size: 2.4rem; color: var(--cyan); background: radial-gradient(circle at 30% 30%, rgba(155, 107, 255, 0.25), transparent 60%), radial-gradient(circle at 70% 80%, rgba(60, 242, 255, 0.2), transparent 60%), #03050a; }
.news-card-body { padding: 20px 22px 24px; }
.news-card-body time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet); }
.news-card-body h3 { margin: 8px 0 8px; font-size: 1.1rem; }
.news-card-body p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 36px; font-family: var(--font-mono); color: var(--muted); }

/* Стаття */
.article { max-width: 820px; }
.article-head time { font-family: var(--font-mono); font-size: 0.85rem; color: var(--violet); }
.article-lead { font-size: 1.2rem; color: var(--muted); }
.article-cover { margin: 28px 0 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article-cover img { width: 100%; }

/* Текст із Markdown */
.prose { font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.prose h4 { margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--cyan); }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 8px 0; }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }
.prose pre { margin: 0 0 1.2em; padding: 16px 18px; border-radius: 12px; background: #03050a; border: 1px solid var(--line); overflow-x: auto; font-size: 0.88rem; line-height: 1.7; color: var(--green); }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose .note { margin: 1.2em 0; }
.prose .note > :last-child { margin-bottom: 0; }
.prose del { color: var(--muted); }
.prose .table-wrap { margin: 0 0 1.2em; }
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); background: rgba(0, 0, 0, 0.3); }
.prose tr:last-child td { border-bottom: 0; }
.prose--doc h2 { padding-top: 0.4em; border-top: 1px solid var(--line); }
.prose--doc h2:first-child { border-top: 0; }

/* Вікі */
.wiki-cat-title { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet); margin: 40px 0 16px; }
.wiki-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wiki-card { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform 0.2s, border-color 0.2s; }
.wiki-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--cyan); }
.wiki-card h3 { margin: 0 0 6px; }
.wiki-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.wiki-card-cat { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--violet); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.wiki-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.wiki-side { position: sticky; top: 90px; }
.wiki-side nav { display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.wiki-side nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.93rem; border-left: 2px solid transparent; }
.wiki-side nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.wiki-side nav a.is-active { color: var(--text); background: rgba(60, 242, 255, 0.08); border-left-color: var(--cyan); }
.wiki-side-cat { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet); margin: 12px 12px 4px; }
.wiki-side-cat:first-child { margin-top: 4px; }
.wiki-article { min-width: 0; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* FAQ із Markdown */
.faq details .prose { padding: 0 22px 18px; color: var(--muted); }
.faq details .prose p:last-child { margin-bottom: 0; }

/* 404 */
.notfound { text-align: center; padding-top: 120px; }
.notfound-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; margin: 0; background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .section-lead { margin: 0 auto 28px; }

/* Футер */
.footer-inner { grid-template-columns: 1fr auto; align-items: start; gap: 18px 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.footer-meta { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 1020px) {
  .news-grid, .wiki-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-side { position: static; }
  .wiki-side nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .wiki-side nav::-webkit-scrollbar { display: none; }
  .wiki-side nav a { flex: none; border-left: 0; }
  .wiki-side-cat { display: none; }
  .wiki-article { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .news-grid, .wiki-grid { grid-template-columns: 1fr; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 12vw; letter-spacing: 0.02em; }
}

/* Компактна головна */
.hero--compact { min-height: auto; padding: 72px 16px 32px; }
.section--tight { padding-top: 56px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 26px 24px 54px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.tile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(60, 242, 255, 0.18), transparent 70%); transition: transform 0.4s; }
.tile:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--cyan); }
.tile:hover::after { transform: scale(1.4); }
.tile-n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--violet); margin-bottom: 14px; }
.tile h2 { font-size: 1.35rem; margin: 0 0 8px; }
.tile p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.tile-arrow { position: absolute; left: 24px; bottom: 20px; font-size: 1.3rem; color: var(--cyan); transition: transform 0.25s; }
.tile:hover .tile-arrow { transform: translateX(6px); }
.map-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.map-banner:hover { text-decoration: none; border-color: var(--cyan); }
.map-banner h2 { font-size: 1.4rem; margin: 0 0 4px; }
.map-banner .kicker { margin-bottom: 6px; }
.map-banner p.muted { color: var(--muted); margin: 0; }
.map-visual--mini { width: 96px; max-width: none; margin: 0; }
.next-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-link { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(60, 242, 255, 0.06), rgba(155, 107, 255, 0.08)); color: var(--text); }
.next-link:hover { text-decoration: none; border-color: var(--cyan); }
.next-link span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet); text-transform: uppercase; letter-spacing: 0.1em; }
.next-link b { font-size: 1.1rem; }
@media (max-width: 1020px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .tiles, .next-links { grid-template-columns: 1fr; }
  .map-banner { grid-template-columns: 1fr; text-align: left; }
  .map-visual--mini { display: none; }
  .hero--compact { padding-top: 44px; }
}

/* Спливаюче вікно документів */
.modal { width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(60, 242, 255, 0.25); overflow: hidden; }
.modal::backdrop { background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { display: flex; animation: modal-in 0.25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal-box { position: relative; display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.modal-body { overflow-y: auto; padding: 34px 36px 8px; overscroll-behavior: contain; }
.modal-title { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0 40px 18px 0; }
.modal-body .prose { font-size: 0.98rem; }
.modal-loading { color: var(--muted); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--cyan); color: var(--cyan); }
.modal-foot { display: flex; justify-content: flex-end; padding: 16px 36px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 560px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal-body { padding: 26px 20px 8px; }
  .modal-foot { padding: 14px 20px 18px; }
  .modal-foot .btn { width: 100%; }
}

/* Панель адміна на сторінках сайту */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(155, 107, 255, 0.06); }
.admin-bar form { margin: 0; }
.admin-bar-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--violet); margin-right: 4px; }
.btn--sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn--danger { background: rgba(255, 92, 122, 0.12); color: var(--red); border: 1px solid rgba(255, 92, 122, 0.4); cursor: pointer; font: inherit; font-weight: 700; }
.btn--danger:hover { background: rgba(255, 92, 122, 0.22); }

/* Правила як окремі записи */
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rule-list .rule { align-items: flex-start; scroll-margin-top: 90px; }
.rule-text { min-width: 0; flex: 1; }
.rule-text h2 { font-size: 1.15rem; margin: 6px 0 8px; }
.rule-text .prose { color: var(--muted); font-size: 0.97rem; }
.rule-text .prose p:last-child { margin-bottom: 0; }
.rule-admin { display: flex; gap: 14px; margin-top: 12px; font-size: 0.85rem; }
.rule-admin form { margin: 0; }
.rule-admin button { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; }
.admin-note { margin-top: 20px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(60, 242, 255, 0.06), rgba(155, 107, 255, 0.08)); }
.admin-note h2 { font-size: 1.2rem; }
.admin-note .prose { color: var(--muted); }
.admin-note .prose p:last-child { margin-bottom: 0; }
.section-lead-prose { color: var(--muted); font-size: 1.1rem; }

/* ---------- Статистика сервера ---------- */
.stats-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: 28px; align-items: center; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats-graph { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stats-label { font-size: 0.82rem; color: var(--muted); }
.stats-graph svg { width: 100%; height: 72px; overflow: visible; }
.stats-line { fill: none; stroke: var(--cyan); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stats-area { fill: rgba(60, 242, 255, 0.1); stroke: none; }
.stats-kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; }
.stats-kpi div { text-align: center; }
.stats-kpi dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--text); }
.stats-kpi dt { order: 2; font-size: 0.75rem; color: var(--muted); }
.stats-kpi div { display: flex; flex-direction: column-reverse; gap: 2px; }
@media (max-width: 860px) {
  .stats-card { grid-template-columns: 1fr; }
  .stats-kpi { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}

/* ---------- Лаунчер ---------- */
.dl-hero { display: flex; gap: 32px; align-items: center; padding: 36px; border-radius: 26px; background: linear-gradient(140deg, rgba(60, 242, 255, 0.08), rgba(155, 107, 255, 0.1)); border: 1px solid var(--line-strong); margin-bottom: 28px; }
.dl-logo { flex: none; filter: drop-shadow(0 0 30px rgba(60, 242, 255, 0.4)); }
.dl-main { min-width: 0; flex: 1; }
.dl-main h2 { margin: 0 0 4px; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.dl-main > p { margin: 0 0 20px; }
.dl-main .note { margin: 0; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.btn--lg { padding: 17px 32px; font-size: 1.08rem; border-radius: 16px; }
.dl-other { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.dl-other a.is-current { display: none; }
.dl-editions { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 13px; background: rgba(3, 5, 10, 0.6); border: 1px solid var(--line-strong); }
.dl-editions button { padding: 8px 18px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 0.92rem var(--font-body); cursor: pointer; }
.dl-editions button[aria-selected="true"] { color: var(--text); background: linear-gradient(100deg, rgba(60, 242, 255, 0.2), rgba(155, 107, 255, 0.25)); }
.dl-portable { margin: 14px 0 0; font-size: 0.85rem; }
.dl-features { margin-top: 0; }
.dl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-steps .card { padding: 24px; }
.dl-steps ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.dl-steps li { margin-bottom: 8px; }
.dl-steps li b { color: var(--text); }
.dl-steps .cmd { font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; }
.dl-steps .card.is-current { border-color: var(--line-strong); box-shadow: 0 0 0 1px rgba(60, 242, 255, 0.25); }
.dl-foot { margin-top: 28px; text-align: center; }

.mods-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font-family: var(--font-mono); font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mods-how { margin: 0 0 32px; padding: 18px 18px 18px 38px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mods-how li { margin: 4px 0; }
.mods-group { margin-bottom: 30px; }
.mods-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.mods-group-head h2 { margin: 0; font-size: 1.25rem; }
.mods-group-head p { margin: 0; font-size: 0.88rem; }
.mods-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mod-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mod-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .dl-hero { flex-direction: column; text-align: center; padding: 28px 20px; }
  .dl-actions { justify-content: center; }
  .dl-other { justify-content: center; }
  .dl-steps { grid-template-columns: 1fr; }
}

/* ---------- Збільшення картинок ---------- */
.zoomable { cursor: zoom-in; transition: filter 0.2s; }
.zoomable:hover { filter: brightness(1.08); }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; cursor: zoom-out; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; animation: modal-in 0.2s ease; }
.lightbox::backdrop { background: rgba(3, 5, 10, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9); }
.lightbox .modal-close { position: fixed; top: 16px; right: 16px; }
.lightbox-orig { font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.lightbox-orig:hover { color: var(--cyan); }
html.no-scroll { overflow: hidden; }

/* Стилі завантажилися — показуємо сторінку (див. вбудований стиль у <head>) */
body { visibility: visible !important; }

/* Підзаголовок усередині сторінки (напр. «Або вручну» на сторінці модів). */
.section-sub { margin: 28px 0 10px; font-size: 1.15rem; }

/* Сторінка «Збірка»: три способи поставити моди. */
.pack-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 22px 0 8px; }
.pack-way { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.pack-way h2 { margin: 0; font-size: 1.1rem; }
.pack-way p { margin: 0; flex: 1; color: var(--muted); font-size: 0.95rem; }
.pack-way .btn { align-self: flex-start; }

/* Кнопки біля мода: сторінка на Modrinth і пряме скачування. */
.mod-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.mod-main b a { color: inherit; }
.mod-main b a:hover { color: var(--cyan); text-decoration: underline; }

/* Окремий блок для мода Altherra Client на сторінці «Збірка». */
.client-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin: 26px 0; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--cyan); }
.client-card-main { flex: 1 1 360px; }
.client-card h2 { margin: 0 0 8px; font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.client-card p { margin: 0 0 6px; }
.client-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }


/* ======================================================================
   Стиль лаунчера: пласкі блоки з рамкою 2px, без закруглень, світіння й розмиття;
   кнопки з обʼємом, як у Minecraft; фон — пікселні пагорби з лаунчера.
   ====================================================================== */
*, *::before, *::after { border-radius: 0 !important; }
body { background: var(--bg); }
.bg { background: var(--bg) url("bg.svg") center bottom / cover no-repeat; }
.bg-grid, .bg-glow { display: none; }

code { background: rgba(79, 196, 180, 0.1); }
.nav { background: var(--bg); border-bottom: 2px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.brand-mark { filter: none; }
.nav-links a:hover, .nav-links a.is-active { background: var(--line); }
.nav-links .nav-cta { color: var(--on-accent); background: var(--cyan); }
.nav-links .nav-cta:hover { color: var(--on-accent); background: #5fd3c3; }
.nav-toggle { border: 2px solid var(--line-strong); }

/* Головна */
.eyebrow { background: var(--surface); border: 2px solid var(--line); }
.dot, .ip-status.is-online .status-dot { box-shadow: none; }
.hero-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); text-shadow: none; animation: none; filter: none; }
.hero-title::after { display: none; }
.ip-copy { background: var(--surface); border: 2px solid var(--line-strong); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.ip-copy:hover { border-color: var(--cyan); box-shadow: none; transform: none; }
.stats { background: var(--line); border: 2px solid var(--line); }
.stats li { background: var(--surface); }
.stats b { color: var(--text); }

/* Кнопки з обʼємом, як у лаунчері */
.btn { border: 2px solid #00000088; background: var(--line); color: var(--text); box-shadow: inset 0 2px 0 #ffffff22, inset 0 -3px 0 #00000055; transition: background 0.12s; }
.btn:hover { transform: none; background: var(--line-strong); }
.btn:active { box-shadow: none; transform: translateY(1px); }
.btn--primary { background: var(--cyan); color: var(--on-accent); box-shadow: inset 0 2px 0 #ffffff22, inset 0 -3px 0 #00000055; }
.btn--primary:hover { background: #5fd3c3; box-shadow: inset 0 2px 0 #ffffff22, inset 0 -3px 0 #00000055; }
.btn--primary:active { background: var(--violet); }
.btn--ghost { background: var(--line); border: 2px solid #00000088; }
.btn--ghost:hover { border-color: #00000088; }

/* Картки й блоки */
.card, .step, .rule, .wiki-panel, .wiki-tabs, .faq details, .news-card, .map-card, .pack-way, .client-card { background: var(--surface); border: 2px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.card::before { display: none; }
.card:hover, .news-card:hover { transform: none; border-color: var(--line-strong); }
.client-card { border-color: var(--cyan); }
.card-icon, .rule-n { background: var(--line); color: var(--cyan); }
.step-n { -webkit-text-stroke-color: var(--cyan); }
.cycle { border: 2px dashed var(--line-strong); }
.cycle-track li::before, .cycle-track li:nth-child(n)::before { background: var(--cyan); }
.cycle-track li:nth-child(4)::before { background: var(--violet); }
.cycle-track li:nth-child(5)::before { background: var(--amber); }
.cycle-track li:nth-child(6)::before { background: var(--green); }
.cmd, .formula span, .chat-demo, .table-wrap { background: var(--bg); border: 2px solid var(--line); }
.note { background: rgba(58, 159, 192, 0.08); border: 2px solid rgba(58, 159, 192, 0.35); }
.note--warn { background: rgba(232, 176, 74, 0.08); border-color: rgba(232, 176, 74, 0.4); }
.split-col { border-width: 2px; }
.decay-step { border-width: 2px; }
.wiki-tabs button[aria-selected="true"] { background: var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.map-card { background: var(--surface); }
.map-visual { border: 2px solid var(--line-strong); }
.news-cover, .news-cover--empty { background: var(--bg-2); }
.news-cover img { transition: none; }
.news-card:hover .news-cover img { transform: none; }
.chip { background: var(--surface); border: 2px solid var(--line); }
.footer { background: var(--bg); border-top: 2px solid var(--line); }
.toast { background: var(--surface-2); border: 2px solid var(--cyan); backdrop-filter: none; box-shadow: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Сторінка лаунчера: «Без ліцензії» — червона, як Altherra Offline ---------- */
.dl-hero { background: var(--surface); border: 2px solid var(--line); box-shadow: none; }
.dl-logo { position: relative; flex: none; width: 88px; height: 88px; filter: none; }
.dl-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s ease, transform 0.35s ease; }
.dl-logo-img--offline { opacity: 0; transform: scale(0.85) rotate(-8deg); }
.dl-hero[data-edition="offline"] .dl-logo-img--official { opacity: 0; transform: scale(0.85) rotate(8deg); }
.dl-hero[data-edition="offline"] .dl-logo-img--offline { opacity: 1; transform: none; }
.dl-editions { background: var(--bg); border: 2px solid var(--line-strong); }
.dl-editions button[aria-selected="true"] { background: var(--line-strong); color: var(--text); }
.dl-steps .card.is-current { border-color: var(--cyan); box-shadow: none; }

/* Палітра Offline з лаунчера (ui/theme.slint) — лише для блоку завантаження. */
.dl-hero[data-edition="offline"] {
  --bg: #110d0d;
  --bg-2: #191313;
  --surface: #1b1515;
  --surface-2: #211919;
  --line: #2c2323;
  --line-strong: #3e3131;
  --text: #ede5e3;
  --muted: #9c8f8d;
  --cyan: #e5484d;
  --violet: #c2373c;
  --pink: #ffb0a3;
  --on-accent: #ffffff;
}
.dl-hero[data-edition="offline"] .btn--primary:hover { background: #ec6367; }
/* Плавний перехід кольорів при перемиканні. */
.dl-hero, .dl-hero .btn, .dl-hero .dl-editions, .dl-hero .dl-editions button, .dl-hero a, .dl-hero h2, .dl-hero .muted {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
