:root {
  --bg: #000;
  --fg: #f4f4f5;
  --muted: rgba(255, 255, 255, 0.52);
  --faint: rgba(255, 255, 255, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(12, 12, 16, 0.78);
  --panel-solid: #101014;
  --panel-2: #16161c;
  --accent: #8b7cff;
  --accent-2: #c4b5fd;
  --moon: #e8e4ff;
  --glow: rgba(139, 124, 255, 0.45);
  --good: #4ade80;
  --warn: #facc15;
  --danger: #f87171;
  --radius: 22px;
  --nav-h: 72px;
  --font: Geist, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/22a5144ee8d83bca-s.p.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/aa016aab0e6d1295-s.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/9766a7e9e2e0ad5a-s.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/7d4881bb7e1bf84d-s.p.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/b9408752a0c24fb9-s.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/e6099e249fd938cc-s.p.woff2") format("woff2");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font); min-height: 100%; }
body { overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; image-rendering: pixelated; }
::selection { background: rgba(139, 124, 255, 0.35); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.smoke {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 18%, rgba(90, 70, 180, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 50% at 18% 70%, rgba(40, 30, 80, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 40% at 82% 55%, rgba(70, 90, 160, 0.16), transparent 60%);
  filter: blur(8px);
  animation: smoke 18s ease-in-out infinite alternate;
}
@keyframes smoke {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* intro */
#intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.7s ease, visibility 0.7s;
}
#intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-mark {
  display: grid;
  place-items: center;
  gap: 18px;
}
.intro-mark svg,
.intro-mark img {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 24px var(--glow));
  animation: rise 1.1s ease both;
}
.intro-word {
  font-family: var(--serif);
  font-size: 42px;
  letter-spacing: -0.03em;
  font-style: italic;
  opacity: 0;
  animation: rise 0.9s ease 0.35s both;
}
.intro-tag {
  margin-top: -6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: rise 0.8s ease 0.65s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(#000 40%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
}
.brand svg,
.brand img { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a, .ghost, .chip, .lang {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: 0.2s ease;
}
.nav-links a:hover, .ghost:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 13.5px;
  font-weight: 560;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); background: #ece8ff; }
.btn.dark {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--line-strong);
}
.btn.dark:hover { background: rgba(255,255,255,0.12); }
.menu-btn { display: none; padding: 8px; color: #fff; }

/* hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 760px;
  margin-top: 28px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--moon);
}
.hero p.lead {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero-cta { margin-top: 28px; }

.hud-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hud {
  position: absolute;
  min-width: 188px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.hud h4 {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  letter-spacing: -0.02em;
}
.hud.pos-a { top: 18%; left: 6%; }
.hud.pos-b { top: 16%; right: 7%; }
.hud.pos-c { top: 48%; left: 4%; }
.hud.pos-d { top: 42%; right: 5%; }
.hud.pos-e { top: 28%; left: 22%; opacity: 0.55; transform: scale(0.92); }
.hud.pos-f { top: 26%; right: 22%; opacity: 0.5; transform: scale(0.9); }
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.row .meta { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.row img { width: 16px; height: 16px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.dot.staff { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.dot.off { background: #52525b; box-shadow: none; }
.watermark {
  font-weight: 650;
  letter-spacing: -0.04em;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.watermark span { color: var(--accent-2); font-family: var(--mono); font-size: 11px; font-weight: 500; }

/* ClickGUI demo - replica of the in-game menu */
.clickgui-wrap {
  position: relative;
  z-index: 4;
  width: min(1080px, 100%);
  margin: 54px auto 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.cg-scale {
  --cgs: 1;
  transform: scale(var(--cgs));
  transform-origin: top center;
  width: fit-content;
  height: calc(474px * var(--cgs));
}
.clickgui {
  --acc: #8ba2ff;
  --dim: #b1b1b1;
  --txt: #f0f0f0;
  --track: #262834;
  --switch-off: #30323e;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 1058px;
  font-family: var(--font);
}
.cg-win, .cg-detail {
  position: relative;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(23, 23, 27, 0.94), rgba(12, 12, 12, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 0 40px color-mix(in srgb, var(--acc) 9%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cg-win::before, .cg-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--acc), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.cg-win { width: 700px; height: 473px; flex: none; }

/* header */
.cg-head {
  height: 53px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  cursor: grab;
  touch-action: none;
}
.cg-head:active { cursor: grabbing; }
.cg-brand { display: flex; align-items: center; gap: 11px; }
.cg-brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: color-mix(in srgb, var(--acc) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
}
.cg-brand b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

/* search */
.cg-search {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 61px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(16, 18, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--dim);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cg-search:hover { background: rgba(28, 32, 46, 0.9); }
.cg-search:focus-within { border-color: var(--acc); color: var(--acc); }
.cg-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--txt);
  font: inherit;
  font-size: 15px;
  padding: 0;
}
.cg-search input::placeholder { color: var(--dim); }
.cg-search input::-webkit-search-cancel-button { display: none; }
.cg-mag {
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
}
.cg-mag::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
  right: -4px;
  bottom: -1px;
  transform: rotate(45deg);
}

/* body: sidebar + module list */
.cg-body {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 106px;
  height: 328px;
  display: flex;
  gap: 14px;
}
.cg-side {
  width: 207px;
  flex: none;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5.6px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.cg-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: none;
}
.cg-side::-webkit-scrollbar, .cg-list::-webkit-scrollbar, .cg-dbody::-webkit-scrollbar { width: 0; display: none; }

.cg-row {
  position: relative;
  flex: none;
  height: 44.8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  margin-bottom: 11.2px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.15s;
}
.cg-row:last-child { margin-bottom: 0; }
.cg-row:hover { background: rgba(255, 255, 255, 0.095); }
.cg-row.sel {
  background: color-mix(in srgb, var(--acc) 19%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 43%, transparent);
}
.cg-row.sel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--acc);
}
.cg-ico {
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.055);
}
.cg-row.sel .cg-ico {
  background: color-mix(in srgb, var(--acc) 27%, transparent);
  color: var(--acc);
}
.cg-row .txt { flex: 1; min-width: 0; }
.cg-row .t1 { font-size: 17px; font-weight: 700; line-height: 1.15; color: #cfcfcf; }
.cg-row.sel .t1 { color: var(--txt); }
.cg-row .t2 {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 1px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cg-row.sel .t2 { color: color-mix(in srgb, var(--acc) 65%, var(--dim)); }
.cg-cnt {
  flex: none;
  min-width: 26px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 9px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
}
.cg-row.sel .cg-cnt {
  background: color-mix(in srgb, var(--acc) 22%, transparent);
  color: var(--acc);
}

.cg-mod {
  position: relative;
  flex: none;
  height: 34px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 14px;
  background: rgba(255, 255, 255, 0.031);
  cursor: pointer;
  transition: background 0.15s;
}
.cg-mod:hover { background: rgba(255, 255, 255, 0.085); }
.cg-mod.on { background: color-mix(in srgb, var(--acc) 9%, transparent); }
.cg-mod.on:hover { background: color-mix(in srgb, var(--acc) 16%, transparent); }
.cg-mod.open { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 43%, transparent); }
.cg-mod.on::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--acc);
}
.cg-mod .nm {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  color: #c6c6c6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.cg-mod:hover .nm { color: #e2e2e2; }
.cg-mod.on .nm { color: var(--txt); font-weight: 700; }
.cg-mod .cg-tgl { pointer-events: none; }

.cg-tgl {
  flex: none;
  width: 36px;
  height: 18px;
  border-radius: 9px;
  background: var(--switch-off);
  position: relative;
  transition: background 0.18s;
}
.cg-tgl::after {
  content: "";
  position: absolute;
  top: 2.4px;
  left: 2.4px;
  width: 13.2px;
  height: 13.2px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.18s;
}
.cg-tgl.on { background: var(--acc); box-shadow: 0 0 12px color-mix(in srgb, var(--acc) 40%, transparent); }
.cg-tgl.on::after { left: 20.4px; }
.cg-tgl.lg { width: 39px; height: 20px; border-radius: 10px; cursor: pointer; }
.cg-tgl.lg::after { width: 15px; height: 15px; top: 2.5px; left: 2.5px; }
.cg-tgl.lg.on::after { left: 21.5px; }

.cg-empty { padding-top: 22px; text-align: center; color: var(--dim); font-size: 15px; }
.cg-cat { flex: none; height: 31px; display: flex; align-items: center; gap: 7px; padding: 0 2px; margin-top: 6px; }
.cg-cat i { font-style: normal; font-size: 15px; color: var(--acc); }
.cg-cat b { font-size: 15.5px; color: var(--txt); }

.cg-foot {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 31px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 13.3px;
}

/* detail panel */
.cg-detail {
  width: 344px;
  flex: none;
  align-self: flex-start;
  max-height: 473px;
  padding: 19px 20px 14px;
  display: flex;
  flex-direction: column;
  animation: cgIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.cg-detail[hidden] { display: none; }
@keyframes cgIn {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: none; }
}
.cg-dhead { display: flex; align-items: flex-start; gap: 9px; flex: none; }
.cg-dhead .cg-tgl { align-self: center; pointer-events: auto; }
.cg-dtitle {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--txt);
}
.cg-dstate {
  flex: none;
  margin-top: 2px;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--track);
  color: var(--dim);
}
.cg-dstate.on { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc); }
.cg-dclose {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cg-dclose:hover { background: rgba(255, 255, 255, 0.1); color: var(--txt); }
.cg-ddesc { flex: none; margin-top: 10px; color: var(--dim); font-size: 14.5px; line-height: 1.45; }
.cg-dbody {
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 4px;
}

.cg-set { flex: none; display: flex; align-items: center; gap: 10px; min-height: 31px; }
.cg-set .lab { flex: 1; min-width: 0; font-size: 15.5px; color: var(--txt); }
.cg-pill {
  flex: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 14.5px;
  padding: 3px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--acc) 13%, transparent);
  color: var(--acc);
  transition: background 0.15s;
}
.cg-pill:hover { background: color-mix(in srgb, var(--acc) 22%, transparent); }
.cg-key { flex: none; font-size: 14.5px; padding: 3px 8px; border-radius: 8px; background: var(--track); color: var(--txt); }
.cg-str {
  flex: none;
  width: 122px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--track);
  color: var(--txt);
  font: inherit;
  font-size: 15px;
  padding: 3px 8px;
  outline: none;
}
.cg-str:focus { border-color: var(--acc); color: var(--acc); }
.cg-color { flex: none; width: 45px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11); }

.cg-num { flex: none; display: flex; flex-direction: column; gap: 7px; padding: 6px 0 8px; }
.cg-num .top { display: flex; justify-content: space-between; font-size: 15.5px; color: var(--txt); }
.cg-num .val { color: var(--acc); }
.cg-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 3.5px;
  background: linear-gradient(90deg, var(--acc) var(--f, 50%), var(--track) var(--f, 50%));
  outline: none;
  cursor: pointer;
}
.cg-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px color-mix(in srgb, var(--acc) 45%, transparent);
}
.cg-range::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.cg-opt {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 25px;
  padding: 0 9px 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.21);
  color: var(--dim);
  font-size: 15.5px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.cg-opt:hover { color: #d8d8d8; }
.cg-opt.on { background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--txt); }
.cg-chk {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4.5px;
  background: var(--track);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  position: relative;
}
.cg-opt.on .cg-chk { background: var(--acc); box-shadow: 0 0 8px color-mix(in srgb, var(--acc) 45%, transparent); }
.cg-opt.on .cg-chk::after {
  content: "\2715";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 8.5px;
  font-weight: 700;
  color: #fff;
}

/* config page */
.cg-cfg-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 10px; }
.cg-cfg-btn {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  background: rgba(8, 10, 16, 0.5);
  color: var(--acc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cg-cfg-btn b { font-size: 17px; font-weight: 600; line-height: 1; }
.cg-cfg-btn span { font-size: 11.5px; color: var(--dim); }
.cg-cfg-btn:hover { background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); }
.cg-cfg-btn:hover span { color: var(--txt); }
.cg-cfg-btn.danger { color: #e68287; }
.cg-cfg-btn.danger:hover { background: rgba(140, 42, 50, 0.75); border-color: #dc5a62; color: #fff; }
.swatches { display: flex; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
}
.swatch.on { border-color: #fff; }

/* features */
.section {
  position: relative;
  padding: 100px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.section .sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 48px;
}
.feat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #121218, #09090c);
  min-height: 320px;
  padding: 24px;
}
.feat.wide { grid-column: 1 / -1; min-height: 380px; }
.feat h3 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 8px; }
.feat p { color: var(--muted); max-width: 420px; line-height: 1.5; font-size: 14.5px; }
.num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.hud-stage {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.hud-stage .hud { position: relative; top: auto; left: auto; right: auto; pointer-events: auto; }

.configs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.cfg {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  min-height: 128px;
}
.cfg b { display: flex; justify-content: space-between; font-size: 14px; }
.cfg p { color: var(--muted); font-size: 12px; margin-top: 8px; line-height: 1.4; }
.cfg .when { margin-top: 12px; font-size: 11px; color: var(--faint); }
.g { background: linear-gradient(160deg, rgba(34,197,94,0.25), rgba(0,0,0,0.2)); }
.p { background: linear-gradient(160deg, rgba(139,124,255,0.28), rgba(0,0,0,0.2)); }
.r { background: linear-gradient(160deg, rgba(239,68,68,0.25), rgba(0,0,0,0.2)); }
.o { background: linear-gradient(160deg, rgba(245,158,11,0.25), rgba(0,0,0,0.2)); }
.b { background: linear-gradient(160deg, rgba(56,189,248,0.25), rgba(0,0,0,0.2)); }
.m { background: linear-gradient(160deg, rgba(232,121,249,0.25), rgba(0,0,0,0.2)); }
.tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  font-weight: 500;
}

.armor {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.armor img { width: 22px; height: 22px; }

/* pricing */
.pricing { text-align: center; }
.pricing .sub { margin-left: auto; margin-right: auto; }
.ver-pill {
  display: inline-flex;
  gap: 10px;
  margin: 22px auto 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.ver-pill strong { color: #fff; font-weight: 560; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(180deg, #14141a, #0b0b0e);
}
.card.head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}
.price {
  font-size: 56px;
  letter-spacing: -0.05em;
  margin: 10px 0 4px;
  font-weight: 560;
}
.price small { font-size: 16px; color: var(--muted); font-weight: 450; letter-spacing: normal; margin-left: 8px; white-space: nowrap; }
.mc-vers { color: var(--faint); font-size: 12px; margin: 8px 0 16px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 13px; color: rgba(255,255,255,0.8); }
.perks li { list-style: none; display: flex; gap: 7px; align-items: flex-start; }
.pay {
  margin: 18px 0 14px;
  color: var(--faint);
  font-size: 12px;
}
.methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.methods span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}
.methods span.on, .methods span:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
}
.card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.legal { margin-top: 10px; font-size: 11px; color: var(--faint); text-align: center; }

/* faq */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
}
.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.faq button {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}
.faq button span.n { color: var(--faint); font-family: var(--mono); font-size: 12px; margin-right: 8px; }
.faq .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
}
.faq .body {
  display: none;
  padding: 0 18px 16px 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.faq.open .body { display: block; }
.faq.open .plus { transform: rotate(45deg); }

.help-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.help {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.help p { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 28px 28px;
  max-width: 1180px;
  margin: 40px auto 0;
}
.ft {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
.ft p { color: var(--muted); font-size: 13.5px; margin: 12px 0 16px; max-width: 280px; line-height: 1.5; }
.ft h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.ft a { display: block; color: rgba(255,255,255,0.78); font-size: 14px; padding: 4px 0; }
.ft a:hover { color: #fff; }
.soc { display: flex; gap: 8px; flex-wrap: wrap; }
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.5px;
  flex-wrap: wrap;
}
.bottom nav { display: flex; gap: 16px; }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
}
.modal.show { display: grid; }
.sheet {
  width: min(420px, calc(100% - 28px));
  background: #111116;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.sheet h3 { font-size: 22px; letter-spacing: -0.03em; }
.sheet p { color: var(--muted); margin: 8px 0 16px; font-size: 14px; }
.field {
  margin-bottom: 10px;
}
.field input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  padding: 0 12px;
  outline: none;
}
.field input:focus { border-color: var(--accent); }
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #16161c;
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  border-radius: 12px;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  font-size: 13.5px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  padding: 88px 24px;
}
.mobile-menu.show { display: grid; gap: 8px; align-content: start; }
.mobile-menu a, .mobile-menu button {
  font-size: 22px;
  text-align: left;
  padding: 10px 0;
}

/* HUD editor */
.hud-ed { margin-top: 84px; }
.hud-ed h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.hud-ed .sub { margin-top: 12px; max-width: 640px; }
.hud-ed-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 28px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b0b0e url("../shots/game.png") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.hud-ed-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.56); }
.hud-ed-boxes { position: absolute; inset: 0; }
.he-box {
  position: absolute;
  border-radius: 6px;
  background: rgba(22, 28, 40, 0.6);
  box-shadow: inset 0 0 0 1px rgba(42, 46, 61, 0.95);
  color: rgba(233, 228, 255, 0.92);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.1;
  padding: 1px 4px;
  white-space: nowrap;
  cursor: grab;
  transition: background 0.12s, box-shadow 0.12s;
}
.he-box:hover { background: rgba(30, 38, 56, 0.78); }
.he-box.dragging {
  cursor: grabbing;
  z-index: 5;
  background: rgba(34, 44, 66, 0.88);
  box-shadow: inset 0 0 0 1px #96b4ff, 0 0 22px rgba(150, 180, 255, 0.25);
}
.hud-ed-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 16px;
}
.hud-ed-hint { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.hud-ed-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.hud-ed-btns .ghost {
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #eaeaf0;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.18s;
}
.hud-ed-btns .ghost:hover { background: rgba(255, 255, 255, 0.1); }
.hud-ed-btns .btn { padding: 9px 18px; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .panels, .cards, .feat-grid, .faq-grid, .help-row, .ft, .hud-stage, .configs {
    grid-template-columns: 1fr;
  }
  .perks { grid-template-columns: 1fr; }
  .cmp-grid, .shots-grid { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }

  .hero { padding-top: 96px; }
  .hero-copy { order: 1; }
  .clickgui-wrap { order: 2; }
  .hud-field {
    position: static;
    order: 3;
    inset: auto;
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    pointer-events: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hud-field::-webkit-scrollbar { display: none; }
  .hud-field .hud {
    position: static;
    flex: 0 0 auto;
    min-width: 208px;
    opacity: 1;
    transform: none;
  }
  .hud-ed-stage { touch-action: pan-y; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(40px, 13vw, 64px); }
  .clickgui-wrap { overflow: visible; margin-top: 34px; }
  .cg-scale { transform: none; width: 100%; height: auto; }
  .clickgui { width: 100%; flex-direction: column; gap: 10px; }
  .cg-win { width: 100%; height: auto; padding-bottom: 4px; }
  .cg-head { height: 50px; padding: 0 16px; }
  .cg-search { position: static; margin: 0 16px 10px; }
  .cg-body { position: static; height: auto; flex-direction: column; gap: 10px; margin: 0 16px; }
  .cg-side {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    gap: 6px;
    scrollbar-width: none;
  }
  .cg-side::-webkit-scrollbar { display: none; }
  .cg-row { height: 38px; margin: 0; padding: 0 10px; gap: 8px; }
  .cg-row .t1 { font-size: 14px; white-space: nowrap; }
  .cg-row .t2, .cg-cnt { display: none; }
  .cg-ico { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
  .cg-list { max-height: 46vh; }
  .cg-foot { position: static; height: auto; padding: 10px 16px 14px; }
  .cg-detail {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: 64vh;
    z-index: 70;
    border-radius: 18px;
  }
  .hud-ed-stage { border-radius: 16px; }
  .hud-ed-bar { flex-direction: column; align-items: flex-start; }
}

/* download + live stats */
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-live {
  margin: 18px auto 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hero-live b { color: #fff; font-weight: 560; }
.hero-live .sep { margin: 0 6px; color: var(--faint); }
.dot.live {
  display: inline-block;
  vertical-align: middle;
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.dl-cards { grid-template-columns: minmax(0, 540px); justify-content: center; }

/* compare + shots */
.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.cmp { margin: 0; display: flex; flex-direction: column; }
.cmp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0b0b0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
  user-select: none;
}
.cmp-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  pointer-events: none;
}
.cmp-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--cmp, 52%)) 0 0);
}
.cmp-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cmp, 52%);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(139, 124, 255, 0.85);
  transform: translateX(-1px);
  pointer-events: none;
}
.cmp-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 16, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.cmp-handle span::before {
  content: "\2039\00a0\00a0\203a";
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #fff;
}
.cmp-stage input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.cmp-tag {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 14, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.cmp-tag.left { left: 12px; }
.cmp-tag.right { right: 12px; color: var(--accent-2); border-color: rgba(139, 124, 255, 0.4); }
.cmp figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.cmp figcaption b { font-size: 15px; letter-spacing: -0.02em; }
.cmp figcaption span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.shot {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0b0e;
}
.shot.wide { grid-column: 1 / -1; }
.shot > img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot:hover > img { transform: scale(1.03); }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}
.shot.pair .pair-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 26 / 10;
  background: rgba(255, 255, 255, 0.06);
}
.shot.pair .pair-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

/* account (discord) */
.nav-right { position: relative; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; }
.account-avatar { width: 22px; height: 22px; border-radius: 50%; }
.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0f0f14;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.account-head { display: flex; gap: 10px; align-items: center; padding: 8px; }
.account-head img { width: 36px; height: 36px; border-radius: 50%; }
.account-head b { display: block; color: #fff; font-size: 13px; }
.account-head span { color: var(--accent-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.account-item {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.account-item:hover { background: rgba(255, 255, 255, 0.06); }
.account-item.danger { color: #ff8b8b; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/* Midnight settings panel (mod-style) */
.ms-panel {
  width: 460px;
  max-width: 100%;
  border-radius: 6px;
  background: #12141d;
  border: 1px solid #2a2e3d;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  overflow: hidden;
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
}
.ms-head {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid #2a2e3d;
}
.ms-logo {
  width: 24px;
  height: 13px;
  image-rendering: auto;
  object-fit: contain;
}
.ms-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-version {
  font-size: 12px;
  color: #6b7280;
}
.ms-sub {
  padding: 6px 14px 4px;
  font-size: 12px;
  color: #9ca3af;
}
.ms-divider {
  height: 1px;
  background: #2a2e3d;
  margin: 0 14px;
}
.ms-list {
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ms-list::-webkit-scrollbar { display: none; }
.ms-row {
  height: 20px;
  min-height: 20px;
  border-radius: 4px;
  background: #181b26;
  border: 1px solid #2a2e3d;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ms-row:hover {
  background: #242838;
  border-color: #4b5563;
}
.ms-ico {
  width: 10px;
  height: 10px;
  flex: none;
  image-rendering: pixelated;
}
.ms-name {
  flex: 1;
  font-size: 12px;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-chevron {
  width: 10px;
  height: 10px;
  flex: none;
  image-rendering: pixelated;
  opacity: 0.7;
}
.ms-foot {
  height: 34px;
  display: flex;
  gap: 6px;
  padding: 0 14px 8px;
  align-items: center;
}
.ms-btn {
  flex: 1;
  height: 20px;
  border-radius: 4px;
  background: #1f2432;
  border: 1px solid #2a2e3d;
  color: #f3f4f6;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ms-btn:hover {
  background: #2d3345;
  border-color: #4b5563;
}

/* Download verification + mobile sticky CTA */
.dl-verify {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}
.dl-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dl-verify-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
#dl-sha {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#dl-copy-sha {
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
  color: var(--muted);
}
#dl-copy-sha:hover { color: #fff; border-color: var(--line-strong); }
.dl-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 999px;
  color: var(--good);
  background: rgba(74, 222, 128, 0.08);
  font-size: 11px;
}
.dl-verify-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.dl-verify-note,
.dl-notes {
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.55;
}
.dl-notes { color: var(--muted); }
.sticky-download { display: none; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body { padding-bottom: 86px; }
  .sticky-download {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 80;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(196, 181, 253, 0.3);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #6d5ae8, #8b7cff);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .sticky-download:active { transform: translateY(1px); }
}
