@import url("https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@1,500;1,700&family=Lexend:wght@400;500;600;700&family=Montserrat:wght@800;900&display=swap");

@font-face {
  font-family: "Beon";
  src: url("/assets/fonts/beon.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0e0d12;  --bg-alt: #131219;  --card: #18161f;  --card-hover: #1e1b27;
  --border: #292633;
  --text: #ebe8f1;
  --muted: #9893a6;

  --violet: #6a4bc4;  --magenta: #9d6fe0;  --neon: #5a4596;  --accent: var(--violet);
  --accent-text: #fff;
  --accent-soft: #b4a6d8;
  --free: #3fb950;  --exclusive: var(--magenta);
  --radius: 14px;
  --header-h: 60px;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Montserrat", "Gotham Black", "Arial Black", sans-serif;
  --font-neon: "Beon", var(--font);

  --patreon: #ff5900;  --subscribestar: #009e8a;
  --oppaiman: #ff5c9d;  --discord: #5865f2;
  --itch: #fa5c5c;
  --x: #e7e9ea;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
a { color: var(--accent-soft); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }

.brand-patreon       { --c: var(--patreon); }
.brand-subscribestar { --c: var(--subscribestar); }
.brand-oppaiman      { --c: var(--oppaiman); }
.brand-discord       { --c: var(--discord); }
.brand-itch          { --c: var(--itch); }
.brand-x             { --c: var(--x); }

.neon {
  font-family: var(--font-neon);
  color: var(--violet);
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
  text-shadow:
    0 0 6px rgba(212, 0, 255, .55),
    0 0 18px rgba(160, 0, 255, .55),
    0 0 36px rgba(103, 14, 255, .45);
}
.flicker { animation: neon-flicker 7s infinite; }
@keyframes neon-flicker {
  0%, 30%, 31.6%, 33%, 34.2%, 78%, 79.4%, 100% { opacity: 1; }
  30.6%, 33.6%, 78.7% { opacity: .28; }
}
@media (prefers-reduced-motion: reduce) {
  .flicker { animation: none; }
  html { scroll-behavior: auto; }
}

.title-club {
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--violet);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 22px rgba(103, 14, 255, .6), 0 4px 30px rgba(0, 0, 0, .7);
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s, filter .12s, background .12s, border-color .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-accent {
  background: var(--violet);
  color: var(--accent-text);
  border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 18px rgba(103, 14, 255, .45);
}
.btn-accent:hover { background: var(--magenta); box-shadow: 0 0 24px rgba(212, 0, 255, .55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--neon); }
.btn-brand { background: var(--c); color: #fff; }
.btn-brand.brand-x { background: #000; border-color: #333; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: rgba(11, 8, 18, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .08em;
  flex: none;
}
.brand img { height: 36px; display: block; }
.topnav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .92rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .12s, text-shadow .12s;
}
.topnav a:hover { color: #fff; text-shadow: 0 0 10px var(--magenta); }

section[id] { scroll-margin-top: var(--header-h); }

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(6, 3, 14, .72), rgba(6, 3, 14, .35) 70%),
    linear-gradient(to bottom, rgba(6, 3, 14, .35), transparent 30%, transparent 70%, var(--bg));
}
.hero-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }

.hero .title-club { font-size: clamp(2.3rem, 7.4vw, 6rem); max-width: 14ch; }
.hero-tagline {
  margin: 18px auto 30px;
  color: #d9d2ee;
  font-size: clamp(.98rem, 2.2vw, 1.15rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.neon-menu { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 34px; }
.neon-btn {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  text-decoration: none;
  line-height: 1.15;
  transition: transform .15s, color .15s;
}
.neon-btn.neon-lg { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.neon-btn:hover, .neon-btn:focus-visible {
  color: var(--magenta);
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(255, 255, 255, .5), 0 0 22px var(--magenta), 0 0 44px rgba(212, 0, 255, .6);
}

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 13px;
  border-radius: 99px;
  background: rgba(15, 10, 28, .78);
  border: 1px solid rgba(160, 0, 255, .45);
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.social svg { width: 17px; height: 17px; fill: var(--c); flex: none; }
.social:hover { border-color: var(--c); background: rgba(30, 22, 54, .9); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title {
  font-family: var(--font-neon);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--violet);
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(212, 0, 255, .5), 0 0 22px rgba(160, 0, 255, .5);
  margin: 0 0 28px;
  line-height: 1.1;
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 0 26px rgba(160, 0, 255, .45), inset 0 0 22px rgba(160, 0, 255, .12);
}
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #24183f, #140e24);
  display: grid;
  place-items: center;
  color: #3f3260;
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  padding: 0 12px;
}
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(255, 255, 255, .35);
}
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.badge-supporters { background: var(--violet); color: #fff; box-shadow: 0 0 12px rgba(103, 14, 255, .7); }
.badge-free { background: var(--free); color: #04140a; }
.badge-exclusive { background: var(--magenta); color: #fff; box-shadow: 0 0 12px rgba(212, 0, 255, .7); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 1.22rem; }
.card-sub { margin: 0; color: var(--accent-soft); font-size: .88rem; font-weight: 600; }
.card-desc { margin: 0 0 8px; color: var(--muted); flex: 1; }
.card .btn-row .btn { flex: 1 1 auto; }
.card-single .btn::after { content: ""; position: absolute; inset: 0; }

.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  animation: fadein .3s ease;
}
a.news-card { transition: border-color .15s, transform .15s, box-shadow .15s; }
a.news-card:hover { border-color: var(--neon); transform: translateY(-2px); box-shadow: 0 0 20px rgba(160, 0, 255, .35); }
.news-img { aspect-ratio: 16 / 9; background: var(--border); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-body time { color: var(--muted); font-size: .82rem; }
.news-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; font-weight: 600; }
.news-body p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.news-more { color: var(--accent-soft); font-weight: 600; font-size: .9rem; margin-top: 4px; }
#news-more { margin-top: 26px; font-family: var(--font-neon); font-size: 1.3rem; padding: 8px 26px; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }

.faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color .15s;
}
.faq[open] { border-color: rgba(160, 0, 255, .55); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-soft); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }

.dl-hero {
  --cover: none;
  padding: 72px 0 96px;
  background:
    linear-gradient(to right, var(--bg) 25%, rgba(11, 8, 18, .75) 60%, rgba(11, 8, 18, .35)),
    linear-gradient(to bottom, transparent 50%, var(--bg)),
    var(--cover) right center / cover no-repeat,
    var(--bg);
}
.dl-hero h1 { margin: 12px 0 10px; font-size: clamp(2.2rem, 6vw, 3.4rem); }
.dl-hero-version {
  display: block;
  margin-top: 10px;
  font-family: var(--font-neon);
  font-weight: 400;
  font-size: .5em;
  color: var(--violet);
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(212, 0, 255, .55), 0 0 18px rgba(160, 0, 255, .55);
}
.dl-intro { color: #cfc7e6; max-width: 520px; margin: 0; }
.badge-inline {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
}
.dl-section { padding-top: 0; margin-top: -48px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.platform {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.platform-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.platform-head h2 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; }
.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(103, 14, 255, .2);
  border: 1px solid rgba(160, 0, 255, .5);
  color: var(--accent-soft);
  box-shadow: 0 0 14px rgba(160, 0, 255, .3);
}
.platform-icon svg { width: 22px; height: 22px; fill: currentColor; }
.build { padding: 14px 0; border-top: 1px solid var(--border); }
.build-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.build-info strong { font-size: 1.02rem; }
.build-size {
  font-size: .8rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.build-note { color: var(--muted); font-size: .85rem; }
.mirrors { display: flex; flex-wrap: wrap; gap: 8px; }
.mirror {
  flex: 1 1 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  white-space: nowrap;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.mirror svg { width: 16px; height: 16px; fill: var(--muted); flex: none; transition: fill .12s; }
.mirror:hover { border-color: var(--neon); background: rgba(103, 14, 255, .14); box-shadow: 0 0 14px rgba(160, 0, 255, .35); }
.mirror:hover svg { fill: var(--accent-soft); }

.dl-help, .dl-upsell {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.dl-help h2, .dl-upsell h2 { margin: 0 0 4px; font-size: 1.15rem; }
.dl-help p, .dl-upsell p { margin: 0; color: var(--muted); max-width: 620px; }
.dl-upsell {
  border-color: rgba(160, 0, 255, .5);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 0, 255, .25), transparent 60%),
    var(--card);
}

.footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer p { margin: 0; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
}
.footer-links a:hover { color: var(--c); border-color: var(--c); }
.footer-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-text-link { color: var(--muted); }
.footer-text-link:hover { color: var(--text); }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 3, 12, .92);
  backdrop-filter: blur(14px);
}
.age-box {
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--neon);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 0 34px rgba(160, 0, 255, .4), inset 0 0 24px rgba(160, 0, 255, .12);
}
.age-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-neon);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--violet);
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 6px rgba(212, 0, 255, .55), 0 0 20px rgba(160, 0, 255, .55);
}
.age-box p { color: var(--muted); margin: 0 0 24px; }
.age-actions { display: flex; flex-direction: column; gap: 10px; }

.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.notfound-box { max-width: 520px; }
.notfound p { color: var(--muted); }
.notfound .notfound-code {
  margin: 0;
  font-family: var(--font-neon);
  font-size: 6rem;
  line-height: 1;
  color: var(--violet);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 0 8px rgba(212, 0, 255, .6), 0 0 30px rgba(160, 0, 255, .6);
}
.notfound h1 { margin: 10px 0; }
.notfound .btn-row { justify-content: center; margin-top: 24px; }

.doc h1 { font-family: var(--font-title); font-weight: 900; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 4px; line-height: 1.2; }
.doc h2 { font-size: 1.15rem; margin: 32px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc p:not(.muted) { color: #cfc7e6; }

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card-cover { width: 46%; aspect-ratio: auto; min-height: 220px; flex: none; }
}

@media (max-width: 700px) {
  .slide:nth-child(odd) { background-position: 22% center; }
  .slide:nth-child(even) { background-position: 78% center; }
}
@media (max-width: 600px) {
  .topnav a { padding: 8px; font-size: .85rem; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .card { flex-direction: column; }
  .card-cover { width: auto; aspect-ratio: 16 / 9; min-height: 0; }
}

.neon {
  color: #d9cff5;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 14px rgba(106, 75, 196, .45);
}
.neon-btn:hover, .neon-btn:focus-visible {
  color: #fff;
  transform: scale(1.06);
  text-shadow: 0 0 16px rgba(157, 111, 224, .6);
}
.title-club {
  color: #f1edf9;
  -webkit-text-stroke: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .75), 0 0 30px rgba(106, 75, 196, .35);
}
.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--text);
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.btn-accent { border-color: transparent; box-shadow: none; }
.btn-accent:hover { background: var(--magenta); box-shadow: none; }
.card:hover {
  border-color: #4a3f6e;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .8);
}
a.news-card:hover { border-color: #4a3f6e; box-shadow: none; }
.faq[open] { border-color: #3d3656; }
.badge { border-color: rgba(255, 255, 255, .15); }
.badge-supporters, .badge-exclusive { box-shadow: none; }
.badge-exclusive { background: #8a4fb8; }
.social { background: rgba(14, 13, 18, .72); border-color: rgba(255, 255, 255, .14); }
.social:hover { box-shadow: none; border-color: var(--c); }
.topnav a:hover { text-shadow: none; }
.mirror:hover { border-color: var(--violet); background: rgba(106, 75, 196, .12); box-shadow: none; }
.platform-icon { box-shadow: none; background: rgba(106, 75, 196, .15); border-color: rgba(106, 75, 196, .4); }
.dl-upsell { border-color: var(--border); background: radial-gradient(ellipse at 100% 0%, rgba(106, 75, 196, .18), transparent 60%), var(--card); }
.dl-hero-version, .age-box h2, .notfound .notfound-code {
  color: #d9cff5;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 14px rgba(106, 75, 196, .4);
}
.age-box { border-color: var(--border); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.slide { filter: saturate(.7) brightness(.85); }
.flicker { animation: none; }

.title-club {
  font-family: "Gelasio", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  color: #f6eef6;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}
.hero .title-club { font-size: clamp(2.4rem, 6.4vw, 5.2rem); max-width: 11ch; }
.title-rule {
  position: relative;
  width: min(320px, 60vw);
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, #a68bd6 15%, #a68bd6 85%, transparent);
}
.title-rule span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #d9c8f5;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hero-tagline {
  margin-top: 14px;
  font-family: "Gelasio", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #e3dbef;
}

.lang { position: relative; flex: none; margin-left: 4px; }
.brand + .lang { margin-left: auto; }
.topnav { min-width: 0; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: #4a3f6e; }
.caret { font-size: .7rem; color: var(--muted); }
.flag { display: inline-flex; width: 22px; height: 14px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }
.flag svg { width: 100%; height: 100%; display: block; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  z-index: 20;
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
}
.lang-menu a:hover { background: var(--card-hover); }
.lang-menu a[aria-current="true"] { background: rgba(106, 75, 196, .18); }
.lang-note { padding: 8px 10px 4px; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--border); margin-top: 4px; }
@media (max-width: 600px) {
  .lang-btn { padding: 6px 8px; }
  .lang-btn > span:not(.flag):not(.caret) { display: none; }
}
@media (max-width: 600px) {
  .topbar-inner { gap: 8px; }
  .topnav a { padding: 8px 6px; font-size: .82rem; }
  .brand img { height: 32px; }
}
.neon-menu { width: 100%; }
.neon-btn { max-width: 100%; text-wrap: balance; }
.neon-btn.neon-lg { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.2; }
@media (max-width: 600px) {
  .topbar-inner { padding-inline: 12px; gap: 6px; }
  .brand img { height: 28px; }
  .topnav { overflow: visible; gap: 0; }
  .topnav a { padding: 8px 4px; font-size: .75rem; }
  .lang { margin-left: 0; }
  .lang-btn { padding: 6px; gap: 4px; }
  .neon-btn { font-size: 1.35rem; }
  .neon-btn.neon-lg { width: 100%; font-size: clamp(1.4rem, 6.4vw, 1.7rem); }
  .doc h1 { font-size: 1.6rem; overflow-wrap: anywhere; }
}
