/* =========================================================================
   RUAOLY — design system
   ========================================================================= */

:root {
  --bg: #05060b;
  --bg-elev: #0a0b12;
  --surface: rgba(255, 255, 255, 0.038);
  --surface-2: rgba(255, 255, 255, 0.062);
  --surface-3: rgba(255, 255, 255, 0.095);
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ebf3;
  --text-dim: #a2aabc;
  --text-mute: #6e7689;
  --violet: #a679ff;
  --blue: #5b8cff;
  --cyan: #3ce0ff;
  --amber: #ffbc5c;
  --pink: #ff7ba8;
  --lime: #a6f36b;
  --red: #ff6b6b;
  --green: #4ade80;
  --grad: linear-gradient(118deg, #b98cff 0%, #7a8cff 46%, #3ce0ff 100%);
  --grad-soft: linear-gradient(118deg, rgba(185, 140, 255, 0.22), rgba(60, 224, 255, 0.12));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 18px 50px -18px rgba(124, 92, 255, 0.55);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --head-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.022em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
::selection { background: rgba(166, 121, 255, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid rgba(122, 140, 255, 0.85);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07080e; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 2px solid #07080e;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

/* ------------------------------------------------------------- background */

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}

.fx-orb-a {
  width: 780px;
  height: 780px;
  top: -420px;
  left: -220px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 66%);
  animation: floatA 26s var(--ease) infinite alternate;
}

.fx-orb-b {
  width: 720px;
  height: 720px;
  top: -260px;
  right: -260px;
  background: radial-gradient(circle, rgba(34, 200, 238, 0.32), transparent 68%);
  animation: floatB 32s var(--ease) infinite alternate;
}

.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% -8%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% -8%, #000 30%, transparent 76%);
}

.fx-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes floatA {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(80px, 60px, 0) scale(1.12); }
}
@keyframes floatB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 90px, 0) scale(1.08); }
}

/* ------------------------------------------------------------------ shell */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

main { position: relative; z-index: 1; }
.narrow-shell { max-width: 820px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--head-h);
  display: flex;
  align-items: center;
  background: rgba(6, 7, 13, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo { display: block; flex-shrink: 0; }
.logo svg { width: 100%; height: 100%; }
.logo-md { width: 34px; height: 34px; }
.logo-sm { width: 28px; height: 28px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }

.nav-link {
  position: relative;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 232px;
  padding: 0 10px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mute);
  transition: border-color 0.2s, background 0.2s, width 0.25s var(--ease);
}
.search-pill:focus-within {
  border-color: rgba(122, 140, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  width: 268px;
}
.search-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
}
.search-pill input::placeholder { color: var(--text-mute); }
.search-pill kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.18s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }

.nav-toggle { display: none; }

.topbar-auth { display: flex; align-items: center; gap: 8px; }

/* user menu */
.usermenu { position: relative; }
.usermenu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.18s;
}
.usermenu-trigger:hover { border-color: var(--line-strong); background: var(--surface-2); }
.usermenu-name { font-size: 13.5px; font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.usermenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 246px;
  padding: 8px;
  border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 14, 22, 0.96);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  z-index: 100;
  animation: popIn 0.16s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.usermenu-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.usermenu-head strong { display: block; font-size: 14px; }
.usermenu-head span { display: block; font-size: 11.5px; color: var(--text-mute); }
.usermenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.usermenu-item:hover { background: var(--surface-2); color: var(--text); }
.usermenu-logout { padding-top: 6px; margin-top: 6px; border-top: 1px solid var(--line); }

/* ----------------------------------------------------------------- icons */

.ico { width: 20px; height: 20px; flex-shrink: 0; }
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 13px; height: 13px; }
.ico-flip { transform: rotate(180deg); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  position: relative;
  background: var(--grad);
  color: #0a0714;
  box-shadow: 0 10px 26px -12px rgba(124, 92, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 16px 36px -12px rgba(124, 92, 255, 1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: brightness(1.06);
}

.btn-soft {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn-soft:hover { background: var(--surface-3); border-color: var(--line-strong); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }

.btn-danger { background: rgba(255, 107, 107, 0.14); border-color: rgba(255, 107, 107, 0.34); color: #ff9b9b; }
.btn-danger:hover { background: rgba(255, 107, 107, 0.22); }

.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 13px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s, gap 0.18s;
}
.link-arrow:hover { color: var(--violet); gap: 10px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 84px 28px 64px;
}

.hero-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background: radial-gradient(ellipse 46% 50% at 28% 34%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 42% 46% at 76% 22%, rgba(60, 224, 255, 0.14), transparent 72%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(166, 121, 255, 0.28);
  background: linear-gradient(120deg, rgba(166, 121, 255, 0.14), rgba(60, 224, 255, 0.08));
  font-size: 12.5px;
  color: #d8ccff;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(166, 243, 107, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(166, 243, 107, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(166, 243, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 243, 107, 0); }
}

.hero-title {
  font-size: clamp(2.45rem, 5.1vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 22px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 46px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats > div {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #b9c0d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dd { font-size: 12px; color: var(--text-mute); letter-spacing: 0.02em; }

/* hero panel */
.hero-panel {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 24, 36, 0.92), rgba(10, 11, 18, 0.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(166, 121, 255, 0.5), transparent 42%, rgba(60, 224, 255, 0.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.panel-title .ico { color: var(--amber); }
.panel-tag {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #9ff0c4;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.22);
}

.rank-list { display: flex; flex-direction: column; gap: 3px; }
.rank-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  transition: background 0.18s;
}
.rank-item:hover { background: rgba(255, 255, 255, 0.035); }
.rank-no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-mute);
}
.rank-item:nth-child(1) .rank-no { color: var(--amber); }
.rank-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-title { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.rank-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  opacity: 0.85;
}
.rank-count {
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
  transition: color 0.18s;
}
.panel-foot:hover { color: var(--cyan); }

/* ----------------------------------------------------------------- strip */

.strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 28px;
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background 0.16s, color 0.16s;
}
.strip-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.strip-item .ico { color: var(--violet); opacity: 0.85; }
.strip-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-mute);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------- sections */

.section { padding: 62px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
  opacity: 0.92;
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  letter-spacing: -0.03em;
}

/* ------------------------------------------------------------ download grid */

.dl-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dl-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dl-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s, background 0.22s;
}
.dl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(166, 121, 255, 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(166, 121, 255, 0.38);
  box-shadow: 0 26px 50px -30px rgba(124, 92, 255, 0.7);
}
.dl-card:hover::after { opacity: 1; }

.dl-card-top { display: flex; align-items: flex-start; gap: 13px; }
.dl-card-heading { min-width: 0; flex: 1; }
.dl-card-title {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card-sub {
  font-size: 12px;
  color: var(--text-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card-star { color: var(--amber); opacity: 0.9; }
.dl-card-desc {
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-dim);
}
.dl-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.055);
}
.meta-chip.is-soft { color: var(--text-mute); background: none; border-color: rgba(255, 255, 255, 0.06); }

.dl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
}
.dl-card-cat { letter-spacing: 0.02em; }
.dl-card-dl { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); }
.dl-card-dl .ico { color: var(--cyan); opacity: 0.8; }

.dl-card.is-compact { padding: 16px; gap: 11px; }
.dl-card.is-compact .dl-card-desc { display: none; }

/* tiles */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--a, var(--violet));
  background:
    radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--a) 34%, transparent), transparent 70%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tile-md { width: 44px; height: 44px; font-size: 18px; }
.tile-lg { width: 66px; height: 66px; font-size: 27px; border-radius: 18px; }
.tile-ico { width: 22px; height: 22px; }

.accent-violet { --a: #a679ff; }
.accent-cyan { --a: #3ce0ff; }
.accent-amber { --a: #ffbc5c; }
.accent-pink { --a: #ff7ba8; }
.accent-lime { --a: #a6f36b; }
.accent-red { --a: #ff6b6b; }
.accent-blue { --a: #5b8cff; }

/* ------------------------------------------------------------- thread rows */

.thread-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
}

.thread-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 128px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: rgba(255, 255, 255, 0.035); }
.thread-avatar { display: block; }

.thread-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.thread-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thread-row:hover .thread-title { color: #fff; }
.thread-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mute);
  overflow: hidden;
  white-space: nowrap;
}
.thread-board { color: var(--violet); opacity: 0.85; }
.dot { opacity: 0.5; }

.flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.flag-pin { color: var(--amber); background: rgba(255, 188, 92, 0.13); border: 1px solid rgba(255, 188, 92, 0.24); }
.flag-lock { color: var(--text-mute); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }

.thread-stats { display: flex; gap: 14px; }
.thread-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.thread-last {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}
.thread-last-user { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 128px; }
.thread-last-time { font-size: 11px; color: var(--text-mute); }

/* --------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}
.split-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--head-h) + 20px); }

.side-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(166, 121, 255, 0.24);
  background: linear-gradient(160deg, rgba(166, 121, 255, 0.12), rgba(60, 224, 255, 0.05) 60%, rgba(255, 255, 255, 0.02));
}
.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.side-card p { font-size: 12.5px; line-height: 1.66; color: var(--text-dim); margin-bottom: 16px; }
.side-card .btn + .side-note { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: var(--text-mute); }
.side-note a { color: var(--violet); }
.side-card-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.tick-list { display: flex; flex-direction: column; gap: 9px; }
.tick-list li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--lime);
  border-bottom: 1.8px solid var(--lime);
  transform: rotate(-45deg);
  opacity: 0.8;
}

.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list a { font-size: 12.5px; color: var(--text-dim); transition: color 0.16s; }
.mini-list a:hover { color: var(--violet); }
.mini-list span { font-size: 11px; color: var(--text-mute); }
.mini-empty { font-size: 12.5px; color: var(--text-mute); }

/* ---------------------------------------------------------------- cta */

.cta-band { padding: 20px 0 76px; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 38px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(600px circle at 12% 0%, rgba(166, 121, 255, 0.2), transparent 60%),
    radial-gradient(500px circle at 92% 100%, rgba(60, 224, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.025);
}
.cta-inner h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; margin-bottom: 6px; }
.cta-inner p { font-size: 13.5px; color: var(--text-dim); }

/* --------------------------------------------------------------- page head */

.page-head {
  padding: 64px 28px 30px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.page-title-sm { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.page-desc { max-width: 66ch; font-size: 14.5px; line-height: 1.75; color: var(--text-dim); }
.page-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- toolbar */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 24px;
}
.toolbar-plain { padding-top: 0; padding-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--text-dim);
  transition: all 0.16s;
}
.filter-chip em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-mute); }
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.is-active {
  color: #0a0714;
  background: var(--grad);
  border-color: transparent;
  font-weight: 600;
}
.filter-chip.is-active em { color: rgba(10, 7, 20, 0.6); }

.toolbar-right { display: flex; align-items: center; gap: 14px; }
.toolbar-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.segmented-item {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--text-mute);
  transition: all 0.16s;
}
.segmented-item:hover { color: var(--text); }
.segmented-item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-dim);
  transition: all 0.16s;
}
.page-btn:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-2); }
.page-btn.is-current { background: var(--grad); color: #0a0714; border-color: transparent; font-weight: 700; }
.page-nav { font-family: var(--font); font-size: 12.5px; }
.page-gap { color: var(--text-mute); padding: 0 4px; }

/* ------------------------------------------------------------------ empty */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
  gap: 8px;
}
.empty-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.empty h3 { font-size: 15.5px; }
.empty p { font-size: 13px; color: var(--text-mute); max-width: 42ch; }
.empty .btn { margin-top: 14px; }

/* ------------------------------------------------------------- detail page */

.detail-shell { padding-top: 26px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.crumbs a { transition: color 0.16s; }
.crumbs a:hover { color: var(--violet); }
.crumb-sep { opacity: 0.4; }
.crumbs [aria-current] { color: var(--text-dim); }

.detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.detail-head-main { min-width: 0; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.detail-sub { font-size: 14.5px; color: var(--text-dim); margin-bottom: 14px; max-width: 70ch; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--text-mute); }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-actions { display: flex; flex-direction: column; gap: 9px; min-width: 186px; }
.detail-actions .btn { width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}
.badge-gold { color: var(--amber); border-color: rgba(255, 188, 92, 0.3); background: rgba(255, 188, 92, 0.11); }
.badge-plain { color: var(--text-mute); }
.badge-ok { color: var(--green); border-color: rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.1); }
.badge-danger { color: #ff9b9b; border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.1); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 26px;
  align-items: start;
  padding-top: 30px;
}

.prose-card {
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.prose { font-size: 14.5px; line-height: 1.8; color: var(--text-dim); }
.prose > * + * { margin-top: 16px; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); letter-spacing: -0.02em; }
.prose h1 { font-size: 1.6rem; margin-top: 30px; }
.prose h2 { font-size: 1.28rem; margin-top: 30px; }
.prose h3 { font-size: 1.08rem; margin-top: 24px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: #b39bff; text-decoration: underline; text-decoration-color: rgba(179, 155, 255, 0.35); text-underline-offset: 3px; transition: color 0.16s; }
.prose a:hover { color: var(--cyan); }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }
.prose li { margin-top: 7px; }
.prose li::marker { color: var(--violet); }
.prose blockquote {
  padding: 12px 18px;
  border-left: 2px solid rgba(166, 121, 255, 0.45);
  background: rgba(166, 121, 255, 0.06);
  border-radius: 0 10px 10px 0;
  color: var(--text-dim);
}
.prose blockquote > * + * { margin-top: 8px; }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d3c3ff;
}
.prose pre.code-block {
  position: relative;
  padding: 18px 20px;
  border-radius: 12px;
  background: #07080e;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}
.prose pre.code-block code { padding: 0; background: none; border: 0; color: #c9d3ea; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 26px 0; }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tag-pill {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-mute);
  transition: all 0.16s;
}
.tag-pill:hover { color: var(--violet); border-color: rgba(166, 121, 255, 0.4); background: rgba(166, 121, 255, 0.08); }

.detail-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--head-h) + 20px); }

.info-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.info-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.info-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.info-list dt { color: var(--text-mute); flex-shrink: 0; }
.info-list dd { color: var(--text-dim); text-align: right; overflow: hidden; text-overflow: ellipsis; }
.info-list dd.mono { font-family: var(--mono); font-size: 11.5px; }
.info-hint { font-size: 11px; line-height: 1.6; color: var(--text-mute); margin-top: 12px; }
.info-card-quiet { background: rgba(255, 255, 255, 0.014); }
.info-card-quiet .link-arrow { margin-top: 14px; }

/* ----------------------------------------------------------------- forum */

.forum-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  margin-bottom: 44px;
}
.forum-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  background: #08090f;
}
.stat-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.04em; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.board-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}
.board-card:hover { transform: translateY(-3px); border-color: rgba(166, 121, 255, 0.34); background: rgba(255, 255, 255, 0.04); }

.board-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  color: var(--a, var(--violet));
  background: color-mix(in srgb, var(--a) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--a) 26%, transparent);
}
.board-icon-lg { width: 56px; height: 56px; border-radius: 16px; }

.board-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.board-name { font-size: 14.5px; font-weight: 650; }
.board-desc { font-size: 12.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-stats { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 11px; color: var(--text-mute); flex-shrink: 0; }
.board-stats strong { color: var(--text-dim); font-family: var(--mono); font-size: 12.5px; font-weight: 500; }

.board-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.board-head > div { flex: 1; min-width: 0; }

.thread-list-board .thread-row { grid-template-columns: 34px minmax(0, 1fr) auto 136px; }

/* ---------------------------------------------------------------- thread */

.thread-shell { padding-top: 26px; }

.thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.thread-flags { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.thread-board-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--violet);
  background: rgba(166, 121, 255, 0.1);
  border: 1px solid rgba(166, 121, 255, 0.2);
}
.thread-title-lg {
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin-bottom: 14px;
}
.thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-mute);
}
.thread-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.thread-meta a { color: var(--text-dim); }
.thread-meta a:hover { color: var(--violet); }

.post-list { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }

.post {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 0;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.post.is-first { padding-top: 30px; }

.post-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-right: 20px;
}
.post-author { font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 5px; }
.post-author:hover { color: var(--violet); }
.post-role { font-size: 10.5px; color: var(--text-mute); padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.post-count { font-size: 11px; color: var(--text-mute); font-family: var(--mono); }

.post-main { min-width: 0; }
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: var(--text-mute);
}
.post-floor { font-family: var(--mono); color: var(--text-mute); }
.post-time { font-family: var(--mono); }
.post-edited { color: var(--amber); opacity: 0.75; }
.post-anchor { margin-left: auto; opacity: 0; transition: opacity 0.16s; }
.post:hover .post-anchor { opacity: 0.6; }
.post-anchor:hover { opacity: 1 !important; color: var(--violet); }

.post-foot { display: flex; gap: 10px; margin-top: 14px; }
.post-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  font-size: 11.5px;
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.16s;
}
.post-action:hover { color: var(--text-dim); background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

/* reply */
.reply-box {
  margin: 34px 0 20px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.reply-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.reply-box-head strong { color: var(--text-dim); }
.reply-box textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #07080e;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  min-height: 130px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.reply-box textarea:focus { border-color: rgba(122, 140, 255, 0.55); box-shadow: 0 0 0 3px rgba(122, 140, 255, 0.1); }
.reply-box-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.reply-hint { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-mute); }

.reply-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
}
.reply-locked .btn { margin-left: auto; }

/* ------------------------------------------------------------------ auth */

.body-auth .foot { display: none; }
.body-auth main { min-height: calc(100vh - var(--head-h)); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 64px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  min-height: calc(100vh - var(--head-h) - 40px);
}

.auth-aside { display: flex; flex-direction: column; gap: 26px; }
.auth-quote {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.42;
  letter-spacing: -0.03em;
  font-weight: 550;
  color: var(--text);
  padding-left: 20px;
  border-left: 2px solid transparent;
  border-image: var(--grad) 1;
}
.auth-points { display: flex; flex-direction: column; gap: 12px; }
.auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.auth-points .ico { color: var(--violet); opacity: 0.85; }
.auth-foot { font-size: 11.5px; color: var(--text-mute); font-family: var(--mono); }

.auth-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 21, 32, 0.92), rgba(10, 11, 17, 0.9));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.auth-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 24px;
}
.auth-tab {
  padding: 6px 18px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-mute);
  transition: all 0.16s;
}
.auth-tab.is-active { background: rgba(255, 255, 255, 0.1); color: var(--text); font-weight: 600; }

.auth-title { font-size: 1.6rem; letter-spacing: -0.035em; margin-bottom: 8px; }
.auth-desc { font-size: 13px; color: var(--text-mute); margin-bottom: 24px; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-switch { margin-top: 20px; font-size: 13px; color: var(--text-mute); text-align: center; }
.auth-switch a { color: var(--violet); font-weight: 500; }
.auth-legal { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--text-mute); text-align: center; }

/* ---------------------------------------------------------------- fields */

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 550; color: var(--text-dim); letter-spacing: 0.01em; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(122, 140, 255, 0.55);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(122, 140, 255, 0.1);
}
.field textarea { resize: vertical; line-height: 1.7; font-family: var(--font); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e7689' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field-hint { font-size: 11.5px; color: var(--text-mute); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 44px; }
.input-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-mute);
  cursor: pointer;
  transition: color 0.16s, background 0.16s;
}
.input-eye:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  margin-bottom: 60px;
}
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }

/* ---------------------------------------------------------------- notice */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}
.notice .ico { margin-top: 2px; flex-shrink: 0; }
.notice ul { padding-left: 16px; list-style: disc; }
.notice-ok { color: #9ff0c4; border-color: rgba(74, 222, 128, 0.28); background: rgba(74, 222, 128, 0.09); }
.notice-error { color: #ffb4b4; border-color: rgba(255, 107, 107, 0.28); background: rgba(255, 107, 107, 0.09); }
.notice-warn { color: #ffd9a3; border-color: rgba(255, 188, 92, 0.28); background: rgba(255, 188, 92, 0.09); }

/* --------------------------------------------------------------- profile */

.profile-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.profile-main { flex: 1; min-width: 0; }
.profile-title { font-size: 12.5px; color: var(--text-mute); margin-bottom: 10px; }
.profile-bio { font-size: 13.5px; color: var(--text-dim); max-width: 62ch; margin-bottom: 14px; }
.profile-stats { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-mute); }
.profile-stats strong { color: var(--text); font-family: var(--mono); font-weight: 600; margin-right: 3px; }

/* ---------------------------------------------------------------- search */

.search-big {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  margin-bottom: 42px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-big:focus-within { border-color: rgba(122, 140, 255, 0.55); box-shadow: 0 0 0 4px rgba(122, 140, 255, 0.08); }
.search-big .ico { color: var(--text-mute); }
.search-big input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
}
.search-big input::placeholder { color: var(--text-mute); }

.search-cols { display: flex; flex-direction: column; gap: 52px; }

/* ---------------------------------------------------------------- 404 */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 58vh;
  padding: 80px 28px;
  gap: 10px;
}
.notfound-code {
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.85;
}
.notfound h1 { font-size: 1.5rem; }
.notfound p { font-size: 13.5px; color: var(--text-mute); }
.notfound-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------- avatar */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 650;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 10%, hsl(var(--hue, 260) 85% 68%), hsl(var(--hue, 260) 70% 40%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
  user-select: none;
}
.avatar span { transform: translateY(-0.5px); }
.avatar-xs { width: 20px; height: 20px; font-size: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: 12.5px; }
.avatar-md { width: 40px; height: 40px; font-size: 16px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.avatar-xl { width: 80px; height: 80px; font-size: 31px; border-radius: 26px; }
.avatar-guest { background: rgba(255, 255, 255, 0.07); color: var(--text-mute); }

/* --------------------------------------------------------------- footer */

.foot {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 52px 28px 40px;
}
.foot-brand p { font-size: 12.5px; color: var(--text-mute); margin-top: 12px; line-height: 1.7; max-width: 34ch; }
.foot-note { opacity: 0.8; }
.brand-foot .brand-name { font-size: 13px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 4px; }
.foot-col a { font-size: 12.5px; color: var(--text-dim); transition: color 0.16s; }
.foot-col a:hover { color: var(--violet); }
.foot-col p { font-size: 12.5px; color: var(--text-mute); line-height: 1.75; }
.foot-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-mute);
}
.foot-meta { font-family: var(--mono); opacity: 0.75; }

/* --------------------------------------------------------------- toasts */

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}
.toast {
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 20, 30, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text);
  animation: toastIn 0.24s var(--ease);
}
.toast.is-out { animation: toastOut 0.2s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ------------------------------------------------------------ reveal anim */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .dl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; }
  .hero-panel { max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .split-side > * { flex: 1 1 260px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-side > * { flex: 1 1 280px; }
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 920px) {
  .search-pill { display: none; }
  .nav {
    position: fixed;
    top: var(--head-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(8, 9, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.26s var(--ease), opacity 0.2s;
    z-index: 80;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: rgba(255, 255, 255, 0.06); }
  .nav-toggle { display: inline-flex; }
  .topbar-inner { gap: 14px; }
  .nav { margin-left: 0; }
  .dl-grid, .dl-grid-3, .dl-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: 1fr; }
  .forum-stats { grid-template-columns: repeat(2, 1fr); }
  .detail-head { grid-template-columns: auto minmax(0, 1fr); }
  .detail-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .detail-actions .btn { width: auto; flex: 1 1 auto; }
  .post { grid-template-columns: 1fr; }
  .post-side { flex-direction: row; align-items: center; gap: 9px; padding-right: 0; padding-bottom: 12px; flex-wrap: wrap; }
  .post-author { margin-top: 0; }
  .auth-shell { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
  .auth-aside { order: 2; }
  .auth-quote { font-size: 1.15rem; }
  .thread-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .thread-last { display: none; }
}

@media (max-width: 640px) {
  .shell, .page-head, .hero, .strip-inner { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 44px; padding-bottom: 40px; }
  .hero-stats > div { padding: 0 16px; }
  .hero-stats dt { font-size: 20px; }
  .section { padding: 44px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-grid, .dl-grid-3, .dl-grid-4 { grid-template-columns: 1fr; }
  .page-head { padding-top: 40px; }
  .toolbar { gap: 12px; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .segmented { overflow-x: auto; }
  .board-stats { display: none; }
  .forum-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .foot-base { flex-direction: column; align-items: flex-start; gap: 6px; }
  .post-side { gap: 8px; }
  .post-list .post { padding: 20px 0; }
  .prose-card { padding: 22px 20px; }
  .thread-head { flex-direction: column; }
  .profile-head { flex-wrap: wrap; }
  .auth-card { padding: 24px 20px; }
  .thread-row { grid-template-columns: 30px minmax(0, 1fr); padding: 12px 14px; }
  .thread-stats { display: none; }
  .thumb, .avatar-xl { width: 64px; height: 64px; }
  .brand-sub { display: none; }
  .usermenu-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* print */
@media print {
  .fx, .topbar, .foot, .toast-stack, .reply-box, .detail-actions { display: none !important; }
  body { background: #fff; color: #000; }
}