:root {
  --bg: #09090a;
  --bg-2: #101012;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: #26262b;
  --line-2: #34343b;
  --text: #f3f1ea;
  --muted: #9b998f;
  --gold: #ffc21a;
  --gold-2: #ffdd66;
  --gold-deep: #c98a00;
  --grass: #7ec23a;
  --radius: 14px;
  --display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  /* clipped corner, like the logo's hex frame */
  --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 10, .78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: .06em; }
.brand img { border-radius: 10px; }
.brand b { color: var(--gold); font-weight: 700; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; font: 700 15px/1 var(--display); letter-spacing: .03em;
  clip-path: var(--cut); border: 0; cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, var(--gold-deep)); color: #111; }
.btn-gold:hover { filter: brightness(1.08) drop-shadow(0 8px 22px rgba(255, 194, 26, .35)); }
.btn-ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #222226; color: var(--gold); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; padding: 16px 22px; font-size: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 84px; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255, 194, 26, .17), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 20%, #000 20%, transparent 78%);
          mask-image: radial-gradient(70% 80% at 50% 20%, #000 20%, transparent 78%);
  opacity: .9;
}
.hero-bg::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); opacity: .5;
}
.hero-bg i {
  position: absolute; width: 14px; height: 14px; background: var(--gold); opacity: .0;
  animation: float 9s linear infinite;
}
.hero-bg i:nth-child(1) { left: 8%; top: 70%; animation-delay: 0s; }
.hero-bg i:nth-child(2) { left: 17%; top: 82%; width: 8px; height: 8px; animation-delay: 2.2s; }
.hero-bg i:nth-child(3) { left: 30%; top: 90%; width: 10px; height: 10px; animation-delay: 5s; background: var(--grass); }
.hero-bg i:nth-child(4) { left: 68%; top: 88%; animation-delay: 1.2s; width: 9px; height: 9px; }
.hero-bg i:nth-child(5) { left: 80%; top: 74%; animation-delay: 3.6s; }
.hero-bg i:nth-child(6) { left: 91%; top: 86%; width: 8px; height: 8px; animation-delay: 6.4s; }
.hero-bg i:nth-child(7) { left: 55%; top: 95%; width: 6px; height: 6px; animation-delay: 7.5s; background: #fff; }
.hero-bg i:nth-child(8) { left: 42%; top: 84%; width: 7px; height: 7px; animation-delay: 4.1s; }
@keyframes float {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .55; }
  100% { transform: translateY(-420px); opacity: 0; }
}

.eyebrow { font: 600 13px/1 var(--display); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-size: clamp(40px, 7.2vw, 84px); font-weight: 700; margin: 22px 0 20px; text-transform: uppercase; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 620px; }
.hero .lead { margin-inline: auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 64px; }
.stat {
  min-width: 150px; padding: 18px 24px; background: rgba(20, 20, 22, .8);
  border: 1px solid var(--line); clip-path: var(--cut);
}
.stat b { display: block; font: 700 30px/1.1 var(--display); color: var(--gold); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; }
.section-head h2::before { content: ''; display: inline-block; width: 12px; height: 12px; background: var(--gold); margin-right: 12px; }
.section-head p { color: var(--muted); font-size: 15px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 260px; padding: 0 16px; height: 48px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--gold); color: var(--gold); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 15px var(--body); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font: 600 14px var(--body); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #111; }
.selects { display: flex; gap: 8px; margin-left: auto; }
select {
  height: 40px; padding: 0 34px 0 14px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--panel);
  color: var(--text); font: 600 14px var(--body); cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239b998f' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.grid-featured { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-featured .card:only-child { max-width: 420px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card::after { /* cursor glow */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 194, 26, .13), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 194, 26, .55); box-shadow: 0 18px 40px -18px rgba(255, 194, 26, .28); }
.card:hover::after { opacity: 1; }
.card[hidden] { display: none; }

.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.card:hover .media img { transform: scale(1.045); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 194, 26, .16), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-2);
}
.ph span {
  font: 700 clamp(40px, 6vw, 58px)/1 var(--display); letter-spacing: .04em;
  background: linear-gradient(160deg, #fff 30%, var(--gold) 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; flex: 1; }
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 19px; font-weight: 600; }
.card-big h3 { font-size: 22px; }
.card p {
  color: var(--muted); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tag {
  display: inline-block; padding: 3px 9px; border-radius: 6px; background: rgba(255, 194, 26, .1); color: var(--gold);
  font: 600 12px/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.price {
  flex: none; padding: 4px 10px; border-radius: 7px; background: var(--gold); color: #111;
  font: 700 14px/1.4 var(--display); white-space: nowrap;
}
.price.is-free { background: rgba(126, 194, 58, .15); color: var(--grass); box-shadow: inset 0 0 0 1px rgba(126, 194, 58, .4); }
.price s { opacity: .55; margin-right: 6px; font-weight: 500; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; padding-block: 80px; border-top: 1px solid var(--line); margin-top: 30px; }
.about h2 { font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; margin-bottom: 16px; }
.about p { color: var(--muted); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; }
.points b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 2px; }
.points span { color: var(--muted); font-size: 14.5px; }

/* ---------- detail ---------- */
.detail { padding: 34px 0 30px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--gold); }
.detail-head { margin: 26px 0 34px; }
.detail-head h1 { font-size: clamp(34px, 5.4vw, 60px); margin: 14px 0 8px; text-transform: uppercase; }
.subtitle { font: 600 clamp(17px, 2vw, 22px)/1.3 var(--display); color: var(--gold); margin-bottom: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.detail-main { grid-column: 1; grid-row: 1; min-width: 0; display: grid; gap: 28px; }
.buy {
  grid-column: 2; position: sticky; top: 92px; padding: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.buy-media { border-radius: 10px; }
.buy-price { margin: 16px 0 12px; }
.buy-price .price { font-size: 22px; padding: 6px 14px; }
.buy-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 2px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); }
.rating i { color: var(--muted); font-style: normal; font-weight: 500; }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-color: var(--line-2) transparent; }
.gallery img {
  flex: none; height: clamp(190px, 30vw, 340px); width: auto; border-radius: 10px; border: 1px solid var(--line);
  scroll-snap-align: start; cursor: zoom-in; background: var(--bg-2);
}
.prose { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.prose > * + * { margin-top: .8em; }
.prose img { display: inline-block; border-radius: 8px; cursor: zoom-in; vertical-align: top; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-size: 1.3em; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose code, .prose pre { background: var(--bg-2); border-radius: 6px; padding: 2px 6px; font-size: .92em; }
.prose pre { padding: 14px; overflow-x: auto; }
.prose blockquote { margin-inline: 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--bg-2); border-radius: 0 8px 8px 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line-2); padding: 6px 10px; }
.prose .ta-center p { max-width: 70ch; margin-inline: auto; color: var(--muted); }
.prose .ta-center img { display: block; margin-inline: auto; }
.prose h2 { font-size: 1.6em; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-block: 1.2em; }
.fx { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fx img { display: block; width: 100%; border-radius: 0; }
.fx figcaption { padding: 8px 10px; font: 600 13.5px var(--display); letter-spacing: .03em; color: var(--text); }
.prose .ta-center p.dot { display: inline-block; margin: 4px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text); }
.prose-empty { text-align: center; color: var(--muted); padding-block: 48px; }
.prose-sm { padding: 0; background: none; border: 0; color: var(--muted); font-size: 14.5px; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }

.changelog h2 { font-size: 24px; text-transform: uppercase; margin-bottom: 16px; }
.changelog article { position: relative; padding: 0 0 22px 24px; border-left: 1px solid var(--line-2); }
.changelog article::before { content: ''; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--gold); }
.changelog header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.changelog h3 { font-size: 17px; }
.changelog time { color: var(--muted); font-size: 13px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 14.5px; }
.more:hover { text-decoration: underline; }

/* ---------- lightbox, 404, footer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%;
  background: rgba(20, 20, 22, .9); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }

.lost { text-align: center; padding: 140px 0; }
.lost h1 { font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; margin: 18px 0; }
.lost .lead { margin: 0 auto 30px; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer .brand { font-size: 16px; color: var(--text); }
.footer p:first-of-type { flex: 1 1 300px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .buy { grid-column: 1; grid-row: 1; position: static; }
  .detail-main { grid-row: 2; }
  .about { grid-template-columns: 1fr; gap: 28px; padding-block: 56px; }
  .selects { margin-left: 0; width: 100%; }
  .selects select { flex: 1; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav { gap: 14px; font-size: 14px; }
  .nav nav a:not(.btn):not([href="/resources/"]):not([href="/docs/"]) { display: none; }
  .nav-inner { gap: 8px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .nav-bbb { display: none; }
  .nav .btn-sm { padding: 10px 12px; }
  .hero { padding: 72px 0 60px; }
  .stats { margin-top: 44px; gap: 10px; }
  .stat { min-width: 0; flex: 1 1 40%; padding: 14px; }
  .prose { padding: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
}

/* ---------- resources page, ticker, call to action ---------- */
.browse { padding-top: 26px; min-height: 70vh; }
.section-head h1 { font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase; }
.section-head h1::before { content: ''; display: inline-block; width: 16px; height: 16px; background: var(--gold); margin-right: 14px; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 14px 0; margin-top: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 600 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 44px; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-block: 30px 10px; padding: 34px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 194, 26, .14), transparent 55%), var(--panel);
  border: 1px solid rgba(255, 194, 26, .35); border-radius: var(--radius);
}
.cta-band h2 { font-size: clamp(22px, 2.8vw, 32px); text-transform: uppercase; margin-bottom: 6px; }
.cta-band p { color: var(--muted); }
.cta-band::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%); background-size: 250% 100%; animation: sweep 5s ease-in-out infinite; }
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -60% 0; } }

/* ---------- motion ---------- */
main { animation: page-in .4s ease; }
@keyframes page-in { from { opacity: .35; } }
.hero-inner > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-inner > :nth-child(4) { animation-delay: .26s; }
.hero-inner > :nth-child(5) { animation-delay: .36s; }
.hero-inner > :nth-child(6) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero-logo { border-radius: 26px; margin-bottom: 22px; filter: drop-shadow(0 0 34px rgba(255, 194, 26, .45)); }
.hero-inner > .hero-logo { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both, bob 5s ease-in-out .8s infinite; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.hero h1 em { background-size: 220% 100%; animation: gold-shift 5s ease-in-out infinite alternate; }
@keyframes gold-shift { to { background-position: 100% 0; } }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); }
.btn-gold:hover::after { transform: translateX(120%) skewX(-20deg); transition: transform .6s ease; }
.nav nav a:not(.btn) { position: relative; }
.nav nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }
.brand img { transition: transform .4s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.stat { transition: transform .25s ease, border-color .25s ease; }
.stat:hover { transform: translateY(-4px); border-color: var(--gold); }
.chip, select, .search { transition: all .18s ease; }
.card.pop { animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.price { transition: transform .2s ease; }
.card:hover .price { transform: scale(1.07); }
.fx { transition: transform .2s ease, border-color .2s ease; }
.fx:hover { transform: translateY(-3px); border-color: var(--gold); }
.buy { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .1s both; }
.detail-head { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }

/* ---------- custom dropdowns ---------- */
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; transition: border-color .18s, background .18s;
}
.dd-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.dd.open .dd-btn { border-color: var(--gold); }
.dd-btn svg { color: var(--muted); transition: transform .25s ease, color .2s; }
.dd.open .dd-btn svg { transform: rotate(180deg); color: var(--gold); }
.dd-menu {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; min-width: max(100%, 190px); padding: 6px;
  background: rgba(22, 22, 25, .97); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 194, 26, .06);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none; visibility: hidden;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1), visibility 0s .22s;
}
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.dd-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 14px var(--body); text-align: left;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, padding-left .15s;
}
.dd-item:hover, .dd-item:focus-visible { background: rgba(255, 194, 26, .1); color: var(--text); padding-left: 16px; outline: 0; }
.dd-item[aria-selected="true"] { color: var(--gold); }
.dd-item[aria-selected="true"]::after { content: ''; width: 8px; height: 8px; background: var(--gold); flex: none; }
@media (max-width: 900px) { .selects .dd { flex: 1; } .dd-menu { left: 0; right: auto; transform-origin: top left; } }

/* ---------- best sellers and addons ---------- */
.badge-best {
  position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); color: #111;
  font: 700 12px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}
.card:has(.badge-best) { border-color: rgba(255, 194, 26, .4); }
.tag-best { background: var(--gold); color: #111; }
.addon {
  margin: 0 0 12px; padding: 10px 12px; font-size: 13.5px; color: var(--muted);
  background: rgba(255, 194, 26, .07); border: 1px dashed rgba(255, 194, 26, .45); border-radius: 8px;
}
.addon span { color: var(--gold); font-weight: 800; }
.addon b { color: var(--text); }

.prose a.img-link { display: block; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.prose a.img-link:hover { transform: translateY(-3px); filter: drop-shadow(0 10px 24px rgba(255, 194, 26, .3)); }
.prose a.img-link img { cursor: pointer; }

/* ================= documentation ================= */
:root { --g-home: var(--gold); --g-start: #4ade80; --g-use: #ffc21a; --g-ref: #60a5fa; --g-help: #c084fc; }
[data-g="start"] { --g: var(--g-start); } [data-g="use"] { --g: var(--g-use); }
[data-g="ref"] { --g: var(--g-ref); } [data-g="help"] { --g: var(--g-help); }

.read-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.read-bar i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--g-start), var(--gold), var(--g-ref), var(--g-help)); box-shadow: 0 0 12px rgba(255, 194, 26, .5); }
kbd { padding: 2px 7px; font: 600 .78em ui-monospace, Consolas, monospace; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.dx { width: min(1480px, 100% - 32px); margin: 0 auto; padding: 18px 0 90px; }
.dx-top { display: flex; align-items: center; gap: 16px; padding: 10px 0 22px; }
.dx-crumbs { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dx-crumbs a:hover { color: var(--gold); }
.dx-crumbs i { font-style: normal; opacity: .4; }
.dx-crumbs span { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.dx-search-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 280px; height: 42px; padding: 0 12px 0 14px; color: var(--muted); font: 600 14px var(--body); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .18s, color .18s, box-shadow .18s; }
.dx-search-btn span { flex: 1; text-align: left; }
.dx-search-btn:hover { color: var(--text); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 194, 26, .08); }
.dx-menu-btn { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; color: var(--text); font: 700 14px var(--body); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.dx-grid { display: grid; grid-template-columns: 276px minmax(0, 1fr) 224px; gap: 44px; align-items: start; }
.dx-grid.no-toc { grid-template-columns: 276px minmax(0, 1fr); }

/* ---------- sidebar ---------- */
.dx-side { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; padding: 0 6px 20px 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.dx-switch { position: relative; margin-bottom: 18px; }
.dx-switch-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; color: var(--text); text-align: left; background: linear-gradient(135deg, rgba(255, 194, 26, .12), transparent 70%), var(--panel); border: 1px solid rgba(255, 194, 26, .35); border-radius: 12px; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.dx-switch-btn:hover, .dx-switch.open .dx-switch-btn { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 194, 26, .08); }
.dx-switch-name { display: grid; font: 700 16px/1.25 var(--display); }
.dx-switch-name small { font: 700 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dx-switch-btn svg { flex: none; color: var(--gold); transition: transform .22s; }
.dx-switch.open .dx-switch-btn svg { transform: rotate(180deg); }
.dx-switch-menu { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); max-height: 60vh; overflow: auto; padding: 8px; background: rgba(20, 20, 23, .98); backdrop-filter: blur(12px); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 26px 60px -14px #000; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; visibility: hidden; pointer-events: none; transition: opacity .16s, transform .2s cubic-bezier(.2, .8, .2, 1), visibility 0s .2s; }
.dx-switch.open .dx-switch-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dx-switch-menu p { margin: 10px 8px 4px; font: 700 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dx-switch-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.dx-switch-menu a:hover { background: rgba(255, 194, 26, .1); color: var(--text); }
.dx-switch-menu a[aria-selected="true"] { color: var(--gold); background: rgba(255, 194, 26, .08); }
.dx-switch-menu .dx-all { margin-top: 8px; text-align: center; color: var(--gold); border: 1px dashed rgba(255, 194, 26, .4); }

.dx-group { margin-top: 18px; }
.dx-group > p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 6px; font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--g); }
.dx-group > p i { width: 8px; height: 8px; background: var(--g); box-shadow: 0 0 10px var(--g); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.dx-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); border-radius: 9px; border: 1px solid transparent; transition: background .14s, color .14s, border-color .14s, transform .14s; }
.dx-link svg { flex: none; opacity: .75; }
.dx-link:hover { color: var(--text); background: var(--panel); transform: translateX(3px); }
.dx-group .dx-link { --g: inherit; }
.dx-link.is-on { color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--g, var(--gold)) 20%, transparent), transparent); border-color: color-mix(in srgb, var(--g, var(--gold)) 38%, transparent); }
.dx-link.is-on svg { color: var(--g, var(--gold)); opacity: 1; }
.dx-group[data-g] .dx-link:hover svg { color: var(--g); opacity: 1; }
.dx-scrim { position: fixed; z-index: 44; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }

/* ---------- landing ---------- */
.dx-hero { position: relative; display: flex; gap: 36px; align-items: center; justify-content: space-between; margin-bottom: 30px; padding: 34px 36px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(600px 260px at 85% 0%, rgba(255, 194, 26, .16), transparent 70%), radial-gradient(500px 240px at 0% 100%, rgba(96, 165, 250, .1), transparent 70%), var(--panel); }
.dx-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 44px 44px; opacity: .18; mask-image: linear-gradient(90deg, transparent, #000 90%); }
.dx-hero > * { position: relative; z-index: 1; }
.dx-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.dx-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; margin-bottom: 10px; background: linear-gradient(120deg, #fff 30%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-hero .lead { max-width: 56ch; margin: 0; }
.dx-hero-img { width: 340px; max-width: 38%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 24px 60px -18px #000, 0 0 0 1px rgba(255, 194, 26, .12); transform: rotate(1.5deg); transition: transform .4s; }
.dx-hero:hover .dx-hero-img { transform: rotate(0) scale(1.02); }
.dx-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips-static span { padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0, 0, 0, .25); }
.chips-static .is-ver { color: #111; background: var(--gold); border-color: var(--gold); }

.dx-quick { margin-bottom: 36px; padding: 24px 26px; border: 1px solid rgba(74, 222, 128, .3); border-radius: 18px; background: linear-gradient(135deg, rgba(74, 222, 128, .09), transparent 55%), var(--panel); }
.dx-quick h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 21px; color: var(--g-start); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; min-height: 38px; padding: 6px 0 6px 52px; display: flex; align-items: center; opacity: 0; transform: translateX(-10px); animation: stepIn .5s ease forwards; }
.steps li:nth-child(2) { animation-delay: .08s } .steps li:nth-child(3) { animation-delay: .16s } .steps li:nth-child(4) { animation-delay: .24s }
.steps li:nth-child(5) { animation-delay: .32s } .steps li:nth-child(6) { animation-delay: .4s } .steps li:nth-child(n+7) { animation-delay: .48s }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; font: 700 15px var(--display); color: #06210f; background: linear-gradient(135deg, #86efac, var(--g-start)); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.steps li code { font: 600 .9em ui-monospace, Consolas, monospace; color: var(--gold-2); background: rgba(255, 194, 26, .1); padding: 2px 6px; border-radius: 5px; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

.dx-cards { margin-bottom: 34px; }
.dx-cards-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dx-cards-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.dx-cards-head h2 i { width: 12px; height: 12px; background: var(--g); box-shadow: 0 0 14px var(--g); }
.dx-cards-head p { margin: 0; color: var(--muted); font-size: 14px; }
.dx-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.dx-card { position: relative; display: flex; gap: 14px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: transform .22s, border-color .22s, box-shadow .22s; }
.dx-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--g); opacity: .5; transform: scaleX(.25); transform-origin: left; transition: transform .35s, opacity .2s; }
.dx-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--g) 55%, var(--line)); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--g) 50%, transparent); }
.dx-card:hover::before { transform: scaleX(1); opacity: 1; }
.dx-card h3 { margin: 1px 0 4px; font-size: 16.5px; color: var(--text); }
.dx-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dx-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--g, var(--gold)); background: color-mix(in srgb, var(--g, var(--gold)) 13%, transparent); border: 1px solid color-mix(in srgb, var(--g, var(--gold)) 30%, transparent); border-radius: 12px; transition: transform .25s; }
.dx-card:hover .dx-ico { transform: rotate(-6deg) scale(1.08); }

/* ---------- article ---------- */
.dx-article { animation: stepIn .45s ease both; }
.dx-head { position: relative; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.dx-head::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 96px; height: 2px; background: var(--g); box-shadow: 0 0 14px var(--g); }
.dx-chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px 5px 10px; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--g) 10%, transparent); }
.dx-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }
.dx-head h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.dx-sub { margin: 12px 0 0; max-width: 64ch; font-size: 17px; color: var(--muted); }

.dx-prose { font-size: 16px; line-height: 1.75; max-width: 78ch; }
.dx-prose > :first-child { margin-top: 0; }
.dx-prose p { margin: 0 0 14px; }
.dx-prose h3, .dx-prose h4 { position: relative; scroll-margin-top: 92px; }
.dx-prose h3 { margin: 38px 0 12px; padding-left: 16px; font-size: 22px; }
.dx-prose h3::before { content: ''; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; border-radius: 2px; background: var(--g); box-shadow: 0 0 12px var(--g); }
.dx-prose h4 { margin: 26px 0 8px; font-size: 17px; color: var(--g); }
.dx-prose .hlink { margin-left: 8px; color: var(--g); opacity: 0; font-size: .8em; transition: opacity .15s; }
.dx-prose h3:hover .hlink, .dx-prose h4:hover .hlink, .hlink:focus { opacity: .9; }
.dx-prose a:not(.hlink):not(.btn) { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 194, 26, .35); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.dx-prose a:not(.hlink):not(.btn):hover { text-decoration-color: var(--gold); }
.dx-prose ul, .dx-prose ol { margin: 0 0 16px; padding-left: 4px; list-style: none; }
.dx-prose ul > li { position: relative; margin: 7px 0; padding-left: 24px; }
.dx-prose ul > li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 7px; height: 7px; background: var(--g); transform: rotate(45deg); opacity: .85; }
.dx-prose ol { counter-reset: n; }
.dx-prose ol > li { counter-increment: n; position: relative; margin: 10px 0; padding: 2px 0 2px 42px; }
.dx-prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; display: grid; place-items: center; font: 700 13px var(--display); color: #111; background: var(--g); border-radius: 8px; }
.dx-prose li > ul, .dx-prose li > ol { margin-top: 8px; }
.dx-prose strong { color: #fff; }
.dx-prose code { padding: 2px 7px; font: 600 .87em ui-monospace, Consolas, monospace; color: var(--gold-2); background: rgba(255, 194, 26, .09); border: 1px solid rgba(255, 194, 26, .16); border-radius: 6px; word-break: break-word; }
.dx-prose img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 8px 0 16px; }

/* code blocks */
.code { margin: 18px 0; overflow: hidden; background: #0b0b0e; border: 1px solid var(--line-2); border-radius: 13px; box-shadow: 0 14px 34px -20px #000; }
.code-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: linear-gradient(180deg, #17171b, #121215); border-bottom: 1px solid var(--line); }
.code-dots { display: flex; gap: 6px; } .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.code-dots i:nth-child(1) { background: #ff6b5b } .code-dots i:nth-child(2) { background: #ffc21a } .code-dots i:nth-child(3) { background: #4ade80 }
.code-lang { flex: 1; font: 700 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.copy { padding: 5px 12px; font: 700 12px var(--body); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.copy:hover { color: var(--gold); border-color: var(--gold); }
.copy.done { color: #06210f; background: var(--g-start); border-color: var(--g-start); }
.dx-prose .code pre { margin: 0; padding: 16px 18px; overflow: auto; font-size: 13.5px; line-height: 1.7; background: none; border: 0; border-radius: 0; }
.dx-prose .code pre code { padding: 0; color: #ece9dd; font-weight: 500; background: none; border: 0; white-space: pre; word-break: normal; }
.dx-prose pre { margin: 18px 0; padding: 16px 18px; overflow: auto; background: #0b0b0e; border: 1px solid var(--line-2); border-radius: 13px; }

/* tables */
.table-wrap { margin: 18px 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 13px; background: var(--panel); }
.dx-prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.dx-prose th { position: sticky; top: 0; padding: 12px 16px; text-align: left; font: 700 11.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--g); white-space: nowrap; background: linear-gradient(180deg, color-mix(in srgb, var(--g) 14%, #17171b), #17171b); border-bottom: 1px solid var(--line-2); }
.dx-prose td { padding: 11px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.dx-prose tbody tr:first-child td { border-top: 0; }
.dx-prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
.dx-prose tbody tr { transition: background .12s; }
.dx-prose tbody tr:hover { background: color-mix(in srgb, var(--g) 8%, transparent); }
.dx-prose td:first-child { white-space: nowrap; }
.dx-prose td:first-child code { white-space: nowrap; }
.dx-prose td:not(:first-child) code { white-space: normal; word-break: break-word; }
.table-filter { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); border-bottom: 1px solid var(--line); background: #121215; }
.table-filter input { flex: 1; min-width: 0; color: var(--text); font: 500 14px var(--body); background: none; border: 0; outline: 0; }
.table-filter small { font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; font: 700 12px var(--display); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; border: 1px solid; }
.pill-ok { color: #4ade80; background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); }
.pill-op { color: #ffc21a; background: rgba(255, 194, 26, .1); border-color: rgba(255, 194, 26, .35); }
.pill-off { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }

/* callouts */
.callout { position: relative; margin: 20px 0; padding: 15px 18px 15px 60px; border: 1px solid rgba(255, 194, 26, .3); border-radius: 13px; background: linear-gradient(90deg, rgba(255, 194, 26, .1), rgba(255, 194, 26, .02)); }
.callout::before { content: 'i'; position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; font: 700 16px var(--display); font-style: italic; color: #111; background: var(--gold); border-radius: 9px; }
.callout > b:first-child { display: block; margin-bottom: 2px; font: 700 14px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.callout p { margin: 4px 0 0; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-color: rgba(74, 222, 128, .32); background: linear-gradient(90deg, rgba(74, 222, 128, .1), rgba(74, 222, 128, .02)); }
.callout.tip::before { content: '\2713'; font-style: normal; background: var(--g-start); } .callout.tip > b:first-child { color: var(--g-start); }
.callout.warn { border-color: rgba(255, 107, 91, .38); background: linear-gradient(90deg, rgba(255, 107, 91, .11), rgba(255, 107, 91, .02)); }
.callout.warn::before { content: '!'; font-style: normal; background: #ff6b5b; } .callout.warn > b:first-child { color: #ff8b7d; }

/* faq */
.dx-prose details { margin: 10px 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 13px; background: var(--panel); transition: border-color .2s, box-shadow .2s; }
.dx-prose details:hover { border-color: color-mix(in srgb, var(--g) 45%, var(--line-2)); }
.dx-prose details[open] { border-color: color-mix(in srgb, var(--g) 60%, transparent); box-shadow: 0 14px 34px -22px var(--g); }
.dx-prose summary { display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.dx-prose summary::-webkit-details-marker { display: none; }
.dx-prose summary::before { content: '?'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; font: 700 14px var(--display); color: #111; background: var(--g); border-radius: 8px; }
.dx-prose summary::after { content: ''; flex: none; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
.dx-prose details[open] summary::after { transform: rotate(-135deg); border-color: var(--g); }
.dx-prose details > :not(summary) { margin-left: 56px; margin-right: 18px; }
.dx-prose details > p:last-child, .dx-prose details > :last-child { margin-bottom: 16px; }

/* footer nav */
.dx-foot { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.dx-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dx-pn a { display: block; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); transition: border-color .2s, transform .2s, box-shadow .2s; }
.dx-pn a:hover { border-color: var(--g); transform: translateY(-3px); box-shadow: 0 16px 34px -20px var(--g); }
.dx-pn a.r { text-align: right; }
.dx-pn small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.dx-pn b { color: var(--text); font: 700 17px var(--display); }
.dx-help { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.dx-help a { color: var(--gold); }

/* on this page */
.dx-toc { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow: auto; padding-left: 18px; border-left: 1px solid var(--line); scrollbar-width: thin; }
.dx-toc p { margin: 0 0 10px; font: 700 11px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dx-toc a { display: block; margin-left: -19px; padding: 6px 0 6px 17px; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--muted); border-left: 2px solid transparent; transition: color .14s, border-color .14s; }
.dx-toc a:hover { color: var(--text); }
.dx-toc a.is-on { color: var(--text); border-left-color: var(--g, var(--gold)); }
.dx-article ~ .dx-toc, .dx-grid:has(.dx-article[data-g]) .dx-toc { --g: var(--gold); }

/* ---------- search palette ---------- */
.pal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: start center; padding: 11vh 16px 16px; background: rgba(0, 0, 0, .65); backdrop-filter: blur(5px); animation: palIn .15s ease; }
.pal[hidden] { display: none; }
@keyframes palIn { from { opacity: 0 } }
.pal-box { width: min(680px, 100%); max-height: 74vh; display: flex; flex-direction: column; overflow: hidden; background: #131316; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 90px -20px #000, 0 0 0 1px rgba(255, 194, 26, .12); animation: palPop .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes palPop { from { transform: translateY(-14px) scale(.98); opacity: 0 } }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--gold); border-bottom: 1px solid var(--line); }
.pal-input input { flex: 1; min-width: 0; color: var(--text); font: 500 17px var(--body); background: none; border: 0; outline: 0; }
.pal-results { overflow: auto; padding: 8px; }
.pal-label { margin: 10px 10px 4px; font: 700 10px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pal-hit { display: block; padding: 11px 13px; border-radius: 11px; border: 1px solid transparent; }
.pal-hit.is-on, .pal-hit:hover { background: rgba(255, 194, 26, .09); border-color: rgba(255, 194, 26, .3); }
.pal-hit small { display: flex; align-items: center; gap: 8px; font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pal-hit small em { font-style: normal; color: var(--gold); }
.pal-hit b { display: block; margin: 2px 0; font: 700 16px var(--display); color: var(--text); }
.pal-hit span { display: block; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-hit mark { color: var(--gold-2); background: rgba(255, 194, 26, .16); border-radius: 3px; }
.pal-empty { padding: 28px 12px; text-align: center; color: var(--muted); }

/* ---------- hub ---------- */
.hub-hero { position: relative; padding: 70px 0 54px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 320px at 50% -10%, rgba(255, 194, 26, .16), transparent 70%); }
.hub-hero-bg i { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 14s ease-in-out infinite alternate; }
.hub-hero-bg i:nth-child(1) { left: -80px; top: -60px; background: var(--g-start); }
.hub-hero-bg i:nth-child(2) { right: 8%; top: -90px; background: var(--gold); animation-delay: -4s; }
.hub-hero-bg i:nth-child(3) { right: -100px; bottom: -140px; background: var(--g-ref); animation-delay: -8s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.15); } }
.hub-hero .wrap { position: relative; }
.hub-hero h1 { margin: 12px 0 14px; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; }
.hub-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-search { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); margin-top: 28px; padding: 16px 16px 16px 18px; color: var(--muted); font: 600 16px var(--body); text-align: left; background: rgba(20, 20, 23, .85); border: 1px solid var(--line-2); border-radius: 15px; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.hub-search span { flex: 1; }
.hub-search svg { color: var(--gold); }
.hub-search:hover { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(255, 194, 26, .09), 0 20px 50px -22px rgba(255, 194, 26, .5); transform: translateY(-2px); }
.hub-stats { display: flex; gap: 34px; margin-top: 30px; }
.hub-stats b { display: block; font: 700 32px/1.1 var(--display); color: var(--gold); }
.hub-stats span { font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.hub-list { padding-top: 44px; }
.hub-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hub-bar h2 { font-size: 28px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); animation: stepIn .5s ease both; transition: transform .25s, border-color .25s, box-shadow .25s; }
.hub-card:nth-child(2n) { animation-delay: .05s } .hub-card:nth-child(3n) { animation-delay: .1s } .hub-card:nth-child(4n) { animation-delay: .15s }
.hub-card[hidden] { display: none; }
.hub-card:hover { transform: translateY(-6px); border-color: rgba(255, 194, 26, .55); box-shadow: 0 24px 50px -20px rgba(255, 194, 26, .3); }
.hub-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--panel-2); }
.hub-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hub-card:hover .hub-media img { transform: scale(1.06); }
.hub-media .ph { display: grid; place-items: center; width: 100%; height: 100%; font: 700 40px var(--display); color: var(--gold); }
.hub-cat { position: absolute; left: 12px; top: 12px; padding: 4px 11px; font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #111; background: var(--gold); border-radius: 999px; }
.hub-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.hub-body h3 { margin-bottom: 6px; font-size: 22px; }
.hub-body p { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hub-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.hub-meta span { padding: 3px 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; }
.hub-meta b { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--gold); font-size: 14px; }
.hub-quick { padding-top: 56px; }
.hub-quick h2 { margin-bottom: 18px; font-size: 24px; }
.hub-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hub-quick-grid a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: transform .2s, border-color .2s; }
.hub-quick-grid a:hover { transform: translateY(-3px); border-color: var(--g-start); }
.hub-quick-grid .dx-ico { --g: var(--g-start); }
.hub-quick-grid b { display: block; font: 700 16px var(--display); } .hub-quick-grid small { color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .dx-grid { grid-template-columns: 260px minmax(0, 1fr); } .dx-toc { display: none; } }
@media (max-width: 900px) {
  .dx-top { flex-wrap: wrap; } .dx-crumbs { order: 3; flex-basis: 100%; }
  .dx-menu-btn { display: inline-flex; } .dx-search-btn { flex: 1; min-width: 0; }
  .dx-search-btn kbd { display: none; }
  .dx-grid, .dx-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
  .dx-main { min-width: 0; }
  .dx-side { position: fixed; z-index: 45; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); max-height: none; padding: 20px 14px 40px; background: #0e0e11; border-right: 1px solid var(--line-2); transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .dx-side.open { transform: none; box-shadow: 0 0 80px #000; }
  .dx-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; } .dx-hero-img { max-width: 100%; width: 100%; transform: none; }
  .dx-pn { grid-template-columns: 1fr; }
  .dx-prose details > :not(summary) { margin-left: 18px; }
  .hub-stats { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { .steps li, .hub-card, .dx-article, .hub-hero-bg i { opacity: 1 !important; transform: none !important; animation: none !important; } }

/* ---------- packs list (guides that cover several resources) ---------- */
.dx-packs { margin-bottom: 34px; scroll-margin-top: 90px; }
.dx-packs .dx-cards-head h2 i { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.dx-pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.dx-pack { overflow: hidden; border: 1px solid var(--line-2); border-radius: 15px; background: var(--panel); transition: transform .22s, border-color .22s; }
.dx-pack:hover { transform: translateY(-4px); border-color: rgba(255, 194, 26, .5); }
.dx-pack img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--panel-2); }
.dx-pack-body { padding: 14px 16px 16px; }
.dx-pack-body h3 { margin-bottom: 2px; font-size: 17px; }
.dx-pack-body p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.dx-pack-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- phone navigation: category tabs + bottom bar ---------- */
.dx-tabs, .dx-bar { display: none; }
.dx-tab, .dx-pg { flex: none; white-space: nowrap; }
@media (max-width: 900px) {
  .dx { width: calc(100% - 24px); padding-bottom: 96px; }
  .dx-top { padding: 6px 0 10px; gap: 10px; }
  .dx-menu-btn { display: none; }
  .dx-crumbs { order: 0; flex-basis: auto; font-size: 13px; }
  .dx-search-btn { flex: none; min-width: 0; width: 44px; padding: 0; justify-content: center; }
  .dx-search-btn span { display: none; }
  .dx-tabs { display: block; position: sticky; top: 56px; z-index: 30; margin: 0 -12px 16px; padding: 10px 12px 8px; background: rgba(9, 9, 10, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .dx-tabrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dx-tabrow::-webkit-scrollbar { display: none; }
  .dx-pgrow { margin-top: 8px; }
  .dx-tab { padding: 9px 16px; font: 700 13.5px var(--display); letter-spacing: .04em; color: var(--muted); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; }
  .dx-tab::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--g); }
  .dx-tab.is-on { color: #111; background: var(--g); border-color: var(--g); }
  .dx-tab.is-on::before { background: #111; }
  .dx-pg { padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; }
  .dx-pg.is-on { color: var(--text); background: color-mix(in srgb, var(--g) 22%, transparent); border-color: var(--g); }
  .dx-bar { display: grid; grid-template-columns: 76px 1fr 76px; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(14, 14, 17, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
  .dx-bar a, .dx-bar-menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 48px; color: var(--text); font: 700 12px var(--body); background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; }
  .dx-bar a b { font-size: 18px; line-height: 1; color: var(--gold); }
  .dx-bar a small { color: var(--muted); font-size: 11px; }
  .dx-bar-menu { flex-direction: row; gap: 9px; font-size: 14px; color: #111; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border: 0; cursor: pointer; }
  .dx-bar a:active, .dx-bar-menu:active { transform: scale(.97); }

  .dx-head h1 { font-size: 28px; }
  .dx-prose { font-size: 15.5px; line-height: 1.7; }
  .dx-prose h3 { font-size: 19px; margin-top: 30px; }
  .dx-prose .code pre { font-size: 12.5px; padding: 14px; }
  /* tables become stacked cards */
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table-wrap .table-filter { border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 10px; }
  .dx-prose table, .dx-prose tbody, .dx-prose tr, .dx-prose td { display: block; width: 100%; }
  .dx-prose thead, .dx-prose tr[hidden] { display: none; }
  .dx-prose tbody tr { margin-bottom: 10px; padding: 4px 14px 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 13px; }
  .dx-prose tbody tr:nth-child(even) { background: var(--panel); }
  .dx-prose td { padding: 6px 0; border: 0; white-space: normal !important; }
  .dx-prose td:first-child { padding-top: 10px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .dx-prose td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 700 10.5px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--g, var(--gold)); }
  .dx-prose td:empty { display: none; }
  .dx-prose td code { white-space: normal !important; word-break: break-word; }
  .callout { padding: 14px 14px 14px 52px; }
  .callout::before { left: 12px; width: 28px; height: 28px; }
  .dx-prose summary { padding: 13px 14px; gap: 11px; }
  .dx-hero h1 { font-size: 34px; }
  .dx-cta .btn { flex: 1 1 140px; justify-content: center; }
  .dx-quick { padding: 18px 16px; }
  .dx-card-grid { grid-template-columns: 1fr; }
  .hub-hero { padding: 40px 0 34px; }
  .hub-hero h1 { font-size: 36px; }
  .hub-search { padding: 14px; font-size: 15px; }
  .hub-search kbd { display: none; }
  .hub-grid, .hub-quick-grid { grid-template-columns: 1fr; }
  .hub-bar { align-items: flex-start; }
  .dx-pn b { font-size: 15px; }
  .pal { padding-top: 6vh; }
  .pal-box { max-height: 82vh; }
  .dx-crumbs span { max-width: 36vw; }
}
