/* =========================================================
   DIT 1024 · event site
   ========================================================= */

:root {
  --bg: #05030f;
  --bg-soft: #0a0720;
  --panel: rgba(11, 9, 36, 0.82);
  --panel-solid: #0c0a26;
  --line: rgba(140, 170, 255, 0.12);
  --line-strong: rgba(140, 170, 255, 0.24);
  --text: #eef2ff;
  --text-soft: #c7d2fe;
  --muted: #a5b4d4;
  --faint: #6b7aa8;
  --green: #5eead4;
  --green-bright: #a5f3fc;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --amber: #ffb86b;
  --pink: #f472b6;
  --red: #fb7185;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "JetBrains Mono",
    Consolas, "Liberation Mono", monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 11px;
  --page: 1180px;
  --shadow: 0 28px 90px -36px rgba(8, 7, 28, 0.95);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  color: #dbe4ff;
  background: rgba(94, 234, 212, 0.32);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #08051a;
}

::-webkit-scrollbar-thumb {
  background: #0c0a26;
  border: 3px solid #08051a;
  border-radius: 99px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green);
  color: #06102a;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--mono);
}

/* ---------- background ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(99, 102, 241, 0.28), transparent 62%),
    radial-gradient(900px 720px at 108% 30%, rgba(232, 121, 249, 0.14), transparent 58%),
    linear-gradient(180deg, #08051c 0%, #05030f 56%, #08051a 100%);
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(130, 200, 255, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 200, 255, 0.052) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.65;
  -webkit-mask-image: radial-gradient(ellipse at 50% 18%, #000 10%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 18%, #000 10%, transparent 76%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.34;
  will-change: transform;
}

.bg-glow-a {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -130px;
  background: #4f46e5;
  animation: glow-drift 18s ease-in-out infinite alternate;
}

.bg-glow-b {
  width: 460px;
  height: 460px;
  top: 30%;
  right: -170px;
  background: #db2777;
  animation: glow-drift 24s ease-in-out infinite alternate-reverse;
}

.bg-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(238, 242, 255, 0.018) 2px 3px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes glow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(50px, 30px, 0) scale(1.12);
  }
}

/* ---------- shared type ---------- */

.grad {
  color: transparent;
  background: linear-gradient(100deg, #5eead4 0%, #60a5fa 34%, #a78bfa 66%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.grad-warm {
  color: transparent;
  background: linear-gradient(100deg, #f0abfc 0%, #f472b6 44%, #ffb86b 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.topic-ai {
  --topic-color: #7dd3fc;
  --topic-line: rgba(96, 165, 250, 0.28);
  --topic-bg: rgba(96, 165, 250, 0.07);
}

.topic-peer {
  --topic-color: #f9a8d4;
  --topic-line: rgba(244, 114, 182, 0.26);
  --topic-bg: rgba(244, 114, 182, 0.06);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.65;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 5px;
  background: rgba(94, 234, 212, 0.06);
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.game-pill {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid rgba(99, 220, 255, 0.3);
  border-radius: 4px;
  background: rgba(99, 220, 255, 0.05);
  color: var(--cyan);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.48);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.42);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

.page-shell {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 96px;
}

.hero h1,
.page-head h1,
.feed-head h1,
.join-head h1,
.gate-main h1 {
  filter: drop-shadow(0 0 34px rgba(99, 102, 241, 0.24));
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}

.page-head h1,
.feed-head h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.page-lead {
  max-width: 455px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.btn-primary {
  background: linear-gradient(100deg, #22d3ee 0%, #6366f1 52%, #a855f7 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.45),
    0 16px 46px -18px rgba(99, 102, 241, 0.85);
}

.btn-primary:hover {
  background: linear-gradient(100deg, #67e8f9 0%, #818cf8 52%, #c084fc 100%);
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, 0.62),
    0 18px 52px -16px rgba(139, 92, 246, 0.8);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(238, 242, 255, 0.018);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.055);
  color: var(--green-bright);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12.5px;
}

.arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn-signal {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.text-link span {
  color: var(--green);
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--text);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ---------- nav ---------- */

.site-nav {
  position: relative;
  z-index: 40;
  display: flex;
  width: min(var(--page), calc(100% - 48px));
  height: 88px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(129, 140, 248, 0.38);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.14), rgba(168, 85, 247, 0.18));
  box-shadow:
    inset 0 0 16px rgba(94, 234, 212, 0.08),
    0 0 24px rgba(99, 102, 241, 0.12);
  color: #a5f3fc;
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.brand:hover .brand-mark {
  border-color: rgba(165, 180, 252, 0.65);
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.22), rgba(168, 85, 247, 0.28));
}

.brand-text {
  color: #e4e9ff;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-text span {
  background: linear-gradient(100deg, #5eead4 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(238, 242, 255, 0.03);
  color: var(--text);
}

.nav-links a.is-active {
  border-color: rgba(129, 140, 248, 0.3);
  background: rgba(129, 140, 248, 0.1);
  color: #c7d2fe;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.theme-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.theme-option:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.theme-option.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.theme-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
}

.theme-dot-neon {
  background: linear-gradient(135deg, #5eead4, #a78bfa 55%, #f472b6);
  box-shadow: 0 0 7px rgba(167, 139, 250, 0.65);
}

.theme-dot-gold {
  background: linear-gradient(135deg, #f7e7b0, #d4af37 58%, #6b4f16);
  box-shadow: 0 0 7px rgba(212, 175, 55, 0.55);
}

.theme-dot-blue {
  background: linear-gradient(135deg, #dbeafe, #3b82f6);
  box-shadow: 0 0 7px rgba(59, 130, 246, 0.5);
}

.theme-label {
  white-space: nowrap;
}

/* ---------- pre subnav ---------- */

.section-subnav {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid rgba(140, 170, 255, 0.08);
}

.section-subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 0 11px;
}

.section-subnav-label {
  margin-right: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.section-subnav a {
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 10.5px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.section-subnav a:hover {
  color: var(--text);
  background: rgba(238, 242, 255, 0.025);
}

.section-subnav a.is-active {
  border-color: var(--line);
  background: rgba(94, 234, 212, 0.05);
  color: var(--green);
}

/* ---------- home mode split ---------- */

.mode-split {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 78px;
  border-top: 1px solid var(--line);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 32px;
}

.mode-card {
  position: relative;
  display: flex;
  min-height: 326px;
  overflow: hidden;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(13, 10, 39, 0.72), rgba(10, 8, 33, 0.56));
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.mode-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(150deg, rgba(14, 11, 42, 0.82), rgba(10, 9, 34, 0.64));
  transform: translateY(-3px);
}

.mode-pre {
  border-color: rgba(255, 212, 121, 0.16);
}

.mode-live {
  border-color: rgba(99, 220, 255, 0.2);
  background: linear-gradient(145deg, rgba(15, 12, 44, 0.8), rgba(10, 9, 34, 0.62));
}

.mode-live:hover {
  border-color: rgba(99, 220, 255, 0.4);
  background: linear-gradient(145deg, rgba(17, 13, 47, 0.9), rgba(11, 9, 34, 0.68));
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.mode-index {
  color: var(--amber);
}

.mode-live .mode-index {
  color: var(--cyan);
}

.mode-when {
  font-size: 8px;
  letter-spacing: 0.03em;
}

.mode-card h2 {
  position: relative;
  z-index: 1;
  margin: 24px 0 9px;
  font-size: clamp(2rem, 3.3vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.mode-card > p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.mode-topics,
.mode-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.mode-features span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #8b9ac4;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.mode-live .mode-features span {
  border-color: rgba(99, 220, 255, 0.16);
  color: #9ccdde;
}

.mode-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 25px;
}

.mode-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 25px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.mode-live:hover .mode-action {
  color: var(--green-bright);
}

.mode-bg {
  position: absolute;
  right: -12px;
  bottom: -44px;
  z-index: 0;
  color: transparent;
  font-family: var(--mono);
  font-size: clamp(6rem, 13vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  -webkit-text-stroke: 1px currentColor;
}

.mode-pre .mode-bg {
  color: var(--amber);
}

.mode-live .mode-bg {
  color: var(--cyan);
}

/* ---------- live hub ---------- */

.live-shell {
  padding-top: 40px;
}

.live-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 36px;
}

.live-head h1 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.live-head-side {
  display: flex;
  max-width: 430px;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
}

.live-head-side .page-lead {
  max-width: 420px;
  margin: 0;
  text-align: right;
}

.live-gateways {
  margin-top: 0;
}

@media (min-width: 941px) {
  .gateway-grid.live-gateways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gateway-guess {
  border-color: rgba(255, 212, 121, 0.16);
  background: linear-gradient(150deg, rgba(30, 27, 16, 0.62), rgba(10, 8, 33, 0.5));
}

.gateway-guess .gateway-num,
.gateway-guess .gateway-arrow {
  color: var(--amber);
}

.gateway-guess .gateway-badge {
  border-color: rgba(255, 212, 121, 0.28);
  color: var(--amber);
}

.gateway-decode {
  border-color: rgba(255, 134, 183, 0.16);
  background: linear-gradient(150deg, rgba(33, 18, 26, 0.58), rgba(10, 8, 33, 0.5));
}

.gateway-decode .gateway-num,
.gateway-decode .gateway-arrow {
  color: var(--pink);
}

.gateway-decode .gateway-badge {
  border-color: rgba(255, 134, 183, 0.28);
  color: var(--pink);
}

.gateway-decode:hover {
  border-color: rgba(255, 134, 183, 0.38);
  background: linear-gradient(150deg, rgba(45, 24, 35, 0.76), rgba(10, 9, 34, 0.62));
}

.gateway-tower {
  grid-column: 1 / -1;
  border-color: rgba(255, 207, 122, 0.2);
  background:
    linear-gradient(150deg, rgba(38, 31, 15, 0.62), rgba(10, 8, 33, 0.52)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 207, 122, 0.018) 0 12px,
      transparent 12px 24px
    );
}

.gateway-tower .gateway-num,
.gateway-tower .gateway-arrow {
  color: var(--amber);
}

.gateway-tower .gateway-badge {
  border-color: rgba(255, 207, 122, 0.3);
  color: var(--amber);
}

.gateway-tower:hover {
  border-color: rgba(255, 207, 122, 0.42);
  background: linear-gradient(150deg, rgba(50, 40, 18, 0.76), rgba(10, 9, 34, 0.62));
}

.gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.gateway-actions .btn {
  min-height: 35px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 10.5px;
}

.live-note {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(140, 170, 255, 0.08);
}

.live-note p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(140, 170, 255, 0.08);
}

.footer-inner {
  display: flex;
  width: min(var(--page), calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 26px 0 38px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.footer-inner p {
  margin: 0;
}

.footer-mark {
  margin-right: 5px;
  color: var(--green);
}

.footer-dim {
  color: #5eead4;
}

.footer-dim span {
  margin: 0 8px;
  opacity: 0.5;
}

/* =========================================================
   HOME
   ========================================================= */

.hero {
  position: relative;
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.hero-inner {
  display: grid;
  min-height: calc(100vh - 268px);
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 56px;
}

.hero-copy h1 {
  margin: 0 0 26px;
  font-size: clamp(3rem, 6.7vw, 5.9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-sub {
  max-width: 460px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
}

.hero-topics > span {
  margin-right: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.hero-topic {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--topic-line);
  border-radius: 6px;
  background: var(--topic-bg);
  color: var(--topic-color);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-topic:hover {
  border-color: var(--topic-color);
  background: rgba(238, 242, 255, 0.04);
  transform: translateY(-1px);
}

.hero-topics + .hero-stats {
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  width: fit-content;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  min-width: 104px;
  margin-right: 26px;
  padding: 16px 26px 0 0;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.hero-stats dt {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.hero-stats dd {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.hero-stats dd span {
  font-variant-numeric: tabular-nums;
}

.hero-stats dd small {
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
}

.hero-visual {
  position: relative;
  padding: 16px 0;
}

.terminal {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(13, 10, 38, 0.97), rgba(10, 8, 32, 0.96));
  box-shadow:
    0 42px 110px -42px #000,
    inset 0 1px 0 rgba(238, 242, 255, 0.045);
  transform: rotate(-0.8deg);
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}

.terminal:hover {
  border-color: rgba(140, 170, 255, 0.34);
  transform: rotate(0deg);
}

.terminal::before {
  position: absolute;
  top: -90px;
  left: 30%;
  width: 220px;
  height: 150px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.18);
  content: "";
  filter: blur(55px);
  pointer-events: none;
}

.term-bar {
  display: flex;
  height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(140, 170, 255, 0.09);
  background: rgba(238, 242, 255, 0.018);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.term-dots {
  display: flex;
  gap: 5px;
}

.term-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
}

.term-dots i:first-child {
  background: #b96f6f;
}

.term-dots i:nth-child(2) {
  background: #b6a764;
}

.term-dots i:nth-child(3) {
  background: #5eead4;
}

.term-title {
  color: #5eead4;
  letter-spacing: 0.02em;
}

.term-mode {
  margin-left: auto;
  color: #5eead4;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.term-body {
  position: relative;
  z-index: 1;
  padding: 25px 27px 31px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2.05;
}

.term-body p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #8b9ac4;
}

.term-body .prompt {
  flex: none;
  color: var(--green);
}

.term-out {
  padding-left: 18px !important;
  color: #5eead4 !important;
}

.term-wish {
  color: #dbe4ff !important;
}

.term-ok {
  color: var(--green) !important;
}

.term-caret-line {
  margin-top: 8px !important;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--green);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

.term-watermark {
  position: absolute;
  right: -10px;
  bottom: -38px;
  color: rgba(94, 234, 212, 0.035);
  font-family: var(--mono);
  font-size: 118px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.terminal-badge {
  position: absolute;
  z-index: 3;
  bottom: -18px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0c0a26;
  box-shadow: 0 16px 38px -18px #000;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.terminal-badge b {
  margin-left: 3px;
  color: var(--green);
  font-size: 12px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.7);
}

.float-chip {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid rgba(140, 170, 255, 0.14);
  border-radius: 7px;
  background: rgba(11, 9, 35, 0.84);
  box-shadow: 0 14px 32px -18px #000;
  color: #8b9ac4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  animation: float-chip 7s ease-in-out infinite alternate;
  pointer-events: none;
  white-space: nowrap;
}

.chip-a {
  top: -12px;
  right: 18px;
}

.chip-b {
  top: 39%;
  left: -38px;
  animation-delay: -2.5s;
}

.chip-c {
  right: -20px;
  bottom: 52px;
  color: #8b9ac4;
  animation-delay: -4s;
}

@keyframes float-chip {
  from {
    transform: translateY(-4px) rotate(-0.5deg);
  }
  to {
    transform: translateY(6px) rotate(0.5deg);
  }
}

.gateways {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0 76px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-head .eyebrow {
  margin: 0;
}

.section-head h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.28;
  text-align: right;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 36px;
}

.gateway {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 27px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(13, 10, 39, 0.66), rgba(10, 8, 33, 0.5));
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.gateway::after {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.06);
  content: "";
  filter: blur(35px);
  transition: background 0.25s ease;
}

.gateway:hover {
  border-color: rgba(94, 234, 212, 0.3);
  background: linear-gradient(150deg, rgba(14, 11, 42, 0.8), rgba(10, 9, 34, 0.62));
  transform: translateY(-3px);
}

.gateway:hover::after {
  background: rgba(94, 234, 212, 0.11);
}

.gateway-num {
  padding-top: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.gateway-copy h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.gateway-copy p {
  max-width: 400px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.gateway-meta {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
}

.gateway-arrow {
  align-self: flex-start;
  color: var(--green);
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.gateway:hover .gateway-arrow {
  transform: translate(3px, -3px);
}

.gateway-game {
  border-color: rgba(99, 220, 255, 0.18);
  background: linear-gradient(150deg, rgba(14, 11, 42, 0.7), rgba(10, 8, 33, 0.5));
}

.gateway-game::after {
  background: rgba(99, 220, 255, 0.07);
}

.gateway-game:hover {
  border-color: rgba(99, 220, 255, 0.4);
  background: linear-gradient(150deg, rgba(16, 13, 46, 0.82), rgba(10, 9, 34, 0.62));
}

.gateway-game:hover::after {
  background: rgba(99, 220, 255, 0.13);
}

.gateway-game .gateway-num,
.gateway-game .gateway-arrow {
  color: var(--cyan);
}

.gateway-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 5px;
  border: 1px solid rgba(99, 220, 255, 0.3);
  border-radius: 4px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.home-note {
  display: flex;
  width: min(var(--page), calc(100% - 48px));
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 28px 0 70px;
  border-top: 1px solid rgba(140, 170, 255, 0.08);
}

.note-index {
  flex: none;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.home-note p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.note-tag {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* =========================================================
   JOIN
   ========================================================= */

.join-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 405px);
  gap: 56px;
  align-items: end;
}

.join-head h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1.08;
}

.join-headline-sub {
  display: inline-block;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: 20px;
  align-items: start;
}

.form-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(13, 11, 40, 0.9), rgba(10, 9, 34, 0.95));
  box-shadow: var(--shadow);
}

.form-card::after {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 300px;
  height: 260px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.16);
  content: "";
  filter: blur(70px);
  pointer-events: none;
}

.wish-form {
  position: relative;
  z-index: 1;
  padding: 28px 30px 32px;
}

.form-alert {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 139, 139, 0.25);
  border-radius: 8px;
  background: rgba(255, 139, 139, 0.07);
  color: #ffc0c0;
  font-size: 12.5px;
  line-height: 1.6;
}

.field {
  margin-bottom: 23px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #dbe4ff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.field-index {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.field label em {
  color: var(--pink);
  font-size: 12px;
  font-style: normal;
}

.field input,
.field textarea,
.modal-body input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(150, 200, 255, 0.14);
  border-radius: 9px;
  outline: none;
  background: rgba(9, 8, 31, 0.66);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder,
.modal-body input::placeholder {
  color: #5eead4;
}

.field input:focus,
.field textarea:focus,
.modal-body input:focus {
  border-color: rgba(94, 234, 212, 0.6);
  background: rgba(10, 8, 32, 0.82);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.085);
}

.field.has-error input,
.field.has-error textarea {
  border-color: rgba(255, 139, 139, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 139, 139, 0.06);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.topic-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #dbe4ff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.topic-heading em {
  color: var(--pink);
  font-size: 12px;
  font-style: normal;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
}

.topic-option {
  position: relative;
  display: flex;
  cursor: pointer;
}

.topic-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.topic-box {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 82px;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border: 1px solid rgba(150, 200, 255, 0.14);
  border-radius: 10px;
  background: rgba(9, 8, 31, 0.55);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.topic-option:hover .topic-box {
  border-color: rgba(140, 170, 255, 0.28);
  background: rgba(10, 8, 32, 0.72);
}

.topic-radio {
  position: relative;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.topic-radio::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
  content: "";
  transition: background 0.2s ease;
}

.topic-option:hover .topic-radio {
  border-color: var(--topic-color);
}

.topic-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.topic-hash {
  color: var(--topic-color);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: -0.02em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  opacity: 0.72;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.topic-option:hover .topic-hash {
  opacity: 0.9;
}

.topic-sub {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.topic-option input:checked + .topic-box {
  border-color: var(--topic-line);
  background: var(--topic-bg);
  box-shadow:
    inset 0 0 26px rgba(238, 242, 255, 0.018),
    0 0 30px -20px var(--topic-color);
}

.topic-option input:checked + .topic-box .topic-hash {
  color: var(--topic-color);
  opacity: 1;
}

.topic-option input:checked + .topic-box .topic-radio {
  border-color: var(--topic-color);
  background: var(--topic-color);
  box-shadow: 0 0 14px var(--topic-color);
}

.topic-option input:checked + .topic-box .topic-radio::after {
  background: #06102a;
}

.topic-option input:focus-visible + .topic-box {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.field.has-error .topic-box {
  border-color: rgba(255, 139, 139, 0.4);
}

.topic-help {
  margin: 8px 0 0;
}

.topic-detail {
  min-height: 58px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(140, 170, 255, 0.08);
  border-radius: 8px;
  background: rgba(9, 8, 31, 0.36);
}

.topic-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.topic-placeholder {
  color: var(--faint) !important;
}

.input-affix {
  display: flex;
  align-items: stretch;
}

.input-affix .affix {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(150, 200, 255, 0.14);
  border-right: 0;
  border-radius: 9px 0 0 9px;
  background: rgba(238, 242, 255, 0.024);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  transition: border-color 0.2s ease;
}

.input-affix input {
  border-radius: 0 9px 9px 0;
}

.input-affix:focus-within .affix {
  border-color: rgba(94, 234, 212, 0.5);
}

.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.field-hint {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.char-count {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.char-count b {
  color: var(--muted);
  font-weight: 500;
}

.field-error {
  display: none;
  margin: 6px 0 0;
  color: var(--red);
  font-size: 11.5px;
  line-height: 1.5;
}

.field-error:not(:empty) {
  display: block;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.btn-send {
  flex: 1;
  min-height: 51px;
}

.submit-note {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
  white-space: nowrap;
}

.join-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-card {
  padding: 23px 23px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 9, 34, 0.62);
  backdrop-filter: blur(7px);
}

.counter-card .eyebrow {
  margin-bottom: 15px;
}

.counter-big {
  margin: 0;
  color: transparent;
  background: linear-gradient(120deg, #dbe4ff, #5eead4 70%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.counter-label {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.counter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.counter-row div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.counter-row b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
}

.counter-row span {
  color: var(--faint);
  font-size: 10px;
}

.counter-line {
  height: 2px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 2px;
  background: rgba(238, 242, 255, 0.05);
}

.counter-line i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
}

.rules-card h2 {
  margin: 0 0 17px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(140, 170, 255, 0.07);
}

.rule-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.rule-list li:last-child {
  padding-bottom: 0;
}

.rule-list span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.9;
}

.rule-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.aside-quote {
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(140, 170, 255, 0.07);
  color: #5eead4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.join-aside .text-link {
  align-self: flex-start;
  margin: 4px 0 0 3px;
}

/* =========================================================
   FEED
   ========================================================= */

.feed-shell {
  padding-top: 24px;
}

.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  margin-bottom: 18px;
}

.feed-head h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.05;
}

.feed-head-copy .page-lead {
  max-width: 620px;
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.75;
}

.feed-head-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.head-stats {
  display: flex;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 9, 34, 0.55);
}

.head-stats div {
  min-width: 56px;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.head-stats div:last-child {
  border-right: 0;
}

.head-stats dt {
  margin-bottom: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.head-stats dd {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.topic-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 11px;
  scrollbar-width: none;
}

.topic-filter::-webkit-scrollbar {
  display: none;
}

.topic-tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(11, 9, 34, 0.55);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.topic-tab:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.topic-tab-short {
  display: none;
}

.topic-count {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
}

.topic-tab.is-active {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.07);
  color: var(--green);
}

.topic-tab.is-active .topic-count {
  border-color: rgba(94, 234, 212, 0.2);
  color: var(--green);
}

.topic-tab.topic-ai.is-active {
  border-color: var(--topic-line);
  background: var(--topic-bg);
  color: var(--topic-color);
}

.topic-tab.topic-ai.is-active .topic-count {
  border-color: var(--topic-line);
  color: var(--topic-color);
}

.topic-tab.topic-peer.is-active {
  border-color: var(--topic-line);
  background: var(--topic-bg);
  color: var(--topic-color);
}

.topic-tab.topic-peer.is-active .topic-count {
  border-color: var(--topic-line);
  color: var(--topic-color);
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 25px;
  align-items: start;
}

.feed-column {
  min-width: 0;
}

.welcome-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.055);
  color: #8b9ac4;
  font-size: 12.5px;
  line-height: 1.6;
  animation: banner-in 0.35s ease both;
}

.welcome-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.14);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.welcome-banner p {
  margin: 0;
}

.welcome-banner strong {
  color: var(--green);
  font-weight: 600;
}

.banner-close {
  margin-left: auto;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
}

.banner-close:hover {
  color: var(--text);
}

@keyframes banner-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.feed-toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reward-jump {
  display: none;
  padding: 5px 9px;
  border: 1px solid rgba(232, 121, 249, 0.3);
  border-radius: 5px;
  background: rgba(232, 121, 249, 0.08);
  color: #f0abfc;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.reward-jump:hover {
  color: #fae8ff;
  border-color: rgba(232, 121, 249, 0.5);
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.sort-glyph {
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
}

.sort-label small {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.identity-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 9, 34, 0.7);
  font-size: 11.5px;
}

.identity-label {
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.identity-chip strong {
  max-width: 160px;
  overflow: hidden;
  color: var(--text-soft);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-chip.is-unset strong {
  color: var(--faint);
  font-weight: 400;
}

.identity-chip button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(94, 234, 212, 0.055);
  color: var(--green);
  font-size: 10px;
  line-height: 1.2;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.identity-chip button:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.11);
}

.sync-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding-left: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sync-line .live-dot {
  width: 5px;
  height: 5px;
}

.sync-line.is-error {
  color: #b88a8a;
}

.sync-line.is-error .live-dot {
  background: var(--red);
  box-shadow: none;
  animation: none;
}

.sync-line.is-loading .live-dot {
  opacity: 0.5;
}

.sync-sep {
  opacity: 0.45;
}

.lb-jump {
  display: none;
  margin-left: auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.post-card {
  position: relative;
  overflow: hidden;
  padding: 19px 21px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(13, 10, 39, 0.76), rgba(10, 9, 34, 0.7));
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.02),
    0 24px 64px -42px rgba(99, 102, 241, 0.55);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.post-card::before {
  position: absolute;
  inset: 18px auto 18px 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(94, 234, 212, 0.6),
    rgba(168, 85, 247, 0.6),
    transparent
  );
  content: "";
  opacity: 0;
  transition: opacity 0.25s ease;
}

.post-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(160deg, rgba(14, 11, 41, 0.82), rgba(11, 9, 34, 0.76));
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.06),
    0 26px 70px -38px rgba(139, 92, 246, 0.5);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card.is-new {
  animation: card-in 0.42s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.post-card.is-bump {
  animation: card-bump 0.55s ease;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-bump {
  0% {
    border-color: rgba(94, 234, 212, 0.6);
  }
  100% {
    border-color: var(--line);
  }
}

.post-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: none;
  place-items: center;
  border: 1px solid hsl(var(--hue) 80% 65% / 0.22);
  border-radius: 10px;
  background: hsl(var(--hue) 70% 50% / 0.12);
  box-shadow: inset 0 0 18px hsl(var(--hue) 80% 55% / 0.08);
  color: hsl(var(--hue) 90% 72%);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}

.avatar-letter {
  line-height: 1;
}

.post-meta {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.post-tag {
  max-width: 46%;
  flex: none;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid var(--topic-line, var(--line));
  border-radius: 5px;
  background: var(--topic-bg, rgba(238, 242, 255, 0.02));
  color: var(--topic-color, var(--muted));
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nickname {
  max-width: 100%;
  overflow: hidden;
  color: #eef2ff;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-meta time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.post-content {
  margin: 0 0 15px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(140, 170, 255, 0.06);
}

.heat {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.heat b {
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.like-btn {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(238, 242, 255, 0.014);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.like-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.like-btn:hover:not(:disabled) {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.065);
  color: var(--green);
  transform: translateY(-1px);
}

.like-btn.is-liked {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(94, 234, 212, 0.065);
  color: var(--green);
  cursor: default;
  opacity: 1;
}

.like-btn.is-liked svg {
  fill: rgba(94, 234, 212, 0.82);
  stroke: rgba(94, 234, 212, 0.9);
}

.like-btn:disabled {
  opacity: 1;
}

.like-btn.is-pending {
  cursor: wait;
  opacity: 0.55;
}

/* ---------- comments / floors ---------- */

.post-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.comment-toggle {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(238, 242, 255, 0.014);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.comment-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.comment-toggle:hover {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.065);
  color: var(--green);
  transform: translateY(-1px);
}

.comment-toggle.has-comments {
  color: var(--text-soft);
}

.comment-toggle.has-comments .comment-badge {
  color: var(--green);
}

.comment-toggle.is-open {
  border-color: rgba(94, 234, 212, 0.32);
  background: rgba(94, 234, 212, 0.065);
  color: var(--green);
}

.comment-badge {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.comment-label {
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.post-comments {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed rgba(140, 170, 255, 0.14);
  animation: comments-in 0.26s ease both;
}

.post-card.is-expanded {
  border-color: rgba(94, 234, 212, 0.2);
}

@keyframes comments-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.comments-title {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.comments-glyph {
  margin-right: 3px;
  color: var(--green);
}

.comments-title b {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.comments-hint {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-row {
  display: flex;
  gap: 9px;
}

.comment-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border: 1px solid hsl(var(--hue) 80% 65% / 0.2);
  border-radius: 7px;
  background: hsl(var(--hue) 70% 50% / 0.11);
  color: hsl(var(--hue) 90% 72%);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
}

.comment-avatar-letter {
  line-height: 1;
}

.comment-main {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.comment-name {
  overflow: hidden;
  color: #eef2ff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-floor {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
}

.comment-reply-to {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.4;
}

.comment-head time {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.comment-text {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.comment-reply {
  padding: 4px 2px 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.comment-reply:hover {
  color: var(--green);
}

.comment-children {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 0 13px;
  padding-left: 12px;
  border-left: 1px solid rgba(140, 170, 255, 0.16);
}

.comment-node.is-new {
  animation: comment-in 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

@keyframes comment-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comment-empty {
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.comments-truncated {
  margin: 10px 0 0;
  color: var(--amber);
  font-size: 10.5px;
  line-height: 1.6;
  opacity: 0.8;
}

.comment-error {
  margin: 9px 0 0;
  color: #ffc2c2;
  font-size: 11px;
  line-height: 1.6;
}

.comment-form {
  margin-top: 12px;
  padding: 10px 11px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(238, 242, 255, 0.016);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.comment-form:focus-within {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.035);
}

.comment-form textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  max-height: 160px;
  padding: 2px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.7;
  resize: none;
}

.comment-form textarea::placeholder {
  color: var(--faint);
}

.comment-form-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.comment-char {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.comment-char b {
  color: var(--muted);
  font-weight: 600;
}

.comment-note {
  margin-left: auto;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.4;
}

.comment-submit {
  flex: none;
  min-height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: 7px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.comment-submit:hover:not(:disabled) {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(94, 234, 212, 0.17);
}

.comment-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.comment-reply-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  padding: 5px 8px;
  border-left: 2px solid var(--green);
  border-radius: 0 5px 5px 0;
  background: rgba(94, 234, 212, 0.06);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.comment-reply-hint b {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-floor {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.reply-cancel {
  margin-left: auto;
  padding: 1px 4px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 10px;
}

.reply-cancel:hover {
  color: var(--text);
}

.empty-state {
  padding: 48px 25px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: rgba(10, 9, 34, 0.46);
  text-align: center;
}

.empty-terminal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 19px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.empty-prompt {
  color: var(--green);
}

.empty-terminal .caret {
  width: 6px;
  height: 12px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.empty-state p {
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-step,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.page-step {
  padding: 0 11px;
  white-space: nowrap;
}

.page-num {
  width: 32px;
  padding: 0;
}

.page-step:hover,
.page-num:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.page-step.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-num.is-current {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.page-gap {
  display: inline-flex;
  width: 18px;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.page-meta {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.feed-aside {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.leaderboard-card {
  padding: 21px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(11, 9, 34, 0.64);
  backdrop-filter: blur(7px);
}

.lb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 3px;
}

.lb-head .eyebrow {
  margin: 0 0 6px;
  font-size: 8.5px;
}

.lb-head .eyebrow::before {
  width: 14px;
}

.lb-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.lb-badge {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lb-row {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.lb-rank {
  width: 17px;
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.lb-name {
  flex: 1;
  overflow: hidden;
  color: #dbe4ff;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-likes {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
}

.lb-likes b {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lb-top-1 {
  border-color: rgba(255, 212, 121, 0.16);
  background: rgba(255, 212, 121, 0.065);
}

.lb-top-1 .lb-rank,
.lb-top-1 .lb-likes b {
  color: var(--amber);
}

.lb-top-2 {
  border-color: rgba(199, 210, 254, 0.1);
  background: rgba(199, 210, 254, 0.04);
}

.lb-top-2 .lb-rank,
.lb-top-2 .lb-likes b {
  color: #c7d2fe;
}

.lb-top-3 {
  border-color: rgba(230, 160, 107, 0.12);
  background: rgba(230, 160, 107, 0.05);
}

.lb-top-3 .lb-rank,
.lb-top-3 .lb-likes b {
  color: #e6a06b;
}

.lb-empty {
  padding: 22px 4px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.lb-note {
  margin: 14px 0 0;
  padding: 12px 3px 0;
  border-top: 1px solid rgba(140, 170, 255, 0.065);
  color: #6b7aa8;
  font-size: 9.5px;
  line-height: 1.7;
}

.wall-teaser {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(15, 12, 43, 0.88), rgba(10, 9, 34, 0.92));
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.wall-teaser:hover {
  border-color: rgba(94, 234, 212, 0.3);
  transform: translateY(-2px);
}

.wall-teaser-static {
  cursor: default;
}

.wall-teaser-static:hover {
  border-color: var(--line);
  transform: none;
}

.wall-teaser-static strong {
  margin-bottom: 2px;
}

.teaser-kicker {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.wall-teaser strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 17px 0 14px;
  color: #dbe4ff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.65;
}

.teaser-arrow {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-family: var(--mono);
  font-size: 16px;
}

.teaser-glow {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.12);
  filter: blur(40px);
}

/* ---------- identity modal ---------- */

.identity-modal {
  width: min(420px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #0b0824;
  box-shadow: 0 35px 110px rgba(8, 7, 28, 0.72);
  color: var(--text);
}

.identity-modal[open] {
  animation: modal-in 0.22s ease both;
}

.identity-modal::backdrop {
  background: rgba(9, 7, 30, 0.73);
  backdrop-filter: blur(8px);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.modal-close {
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  margin: 0 0 9px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.modal-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.modal-save {
  width: 100%;
  min-height: 47px;
  margin-top: 13px;
}

/* ---------- toast ---------- */

.toast-root {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(11, 9, 35, 0.96);
  box-shadow: 0 18px 50px -18px #000;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-error {
  border-color: rgba(255, 139, 139, 0.3);
  color: #ffc2c2;
}

.toast-success {
  border-color: rgba(94, 234, 212, 0.3);
  color: var(--green-bright);
}

/* =========================================================
   WALL
   ========================================================= */

.wall-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #060418;
}

.wall-page .bg-grid {
  background-size: 92px 92px;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 80%);
}

.wall-page .bg-glow-a {
  opacity: 0.25;
}

.wall-page .bg-glow-b {
  opacity: 0.22;
}

.wall {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.wall::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(8, 7, 30, 0.4) 100%);
  content: "";
  pointer-events: none;
}

.wall-watermark {
  position: absolute;
  top: 50%;
  right: -2.5vw;
  z-index: 0;
  color: transparent;
  font-family: var(--mono);
  font-size: 36vw;
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
  -webkit-text-stroke: 1px rgba(120, 220, 255, 0.055);
}

.wall-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 29px 37px 30px;
  background: linear-gradient(to bottom, rgba(9, 8, 31, 0.94) 0%, rgba(9, 8, 31, 0.62) 55%, transparent 100%);
  pointer-events: none;
}

.wall-brand {
  min-width: 0;
}

.wall-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #8b9ac4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wall-brand h1 {
  margin: 12px 0 9px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.wall-title-en {
  display: inline-block;
  margin-left: 15px;
  color: #6b7aa8;
  font-family: var(--mono);
  font-size: 0.27em;
  font-weight: 400;
  letter-spacing: 0.12em;
  vertical-align: middle;
}

.wall-sub {
  margin: 0;
  color: #8b9ac4;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.wall-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.wall-topics > span:first-child {
  color: #6b7aa8;
  letter-spacing: 0.12em;
}

.wall-topic {
  padding: 2px 6px;
  border: 1px solid var(--topic-line);
  border-radius: 4px;
  background: var(--topic-bg);
  color: var(--topic-color);
  font-size: 8.5px;
  letter-spacing: 0.01em;
}

.qr-card {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 11px;
  background: #dbe4ff;
  box-shadow: 0 22px 60px -25px rgba(8, 7, 28, 0.9);
  color: #0c0a26;
  pointer-events: auto;
}

.qr-card img {
  width: 82px;
  height: 82px;
  border-radius: 2px;
}

.qr-copy {
  display: flex;
  max-width: 215px;
  flex-direction: column;
  gap: 5px;
  padding-right: 5px;
}

.qr-copy strong {
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.qr-copy span {
  color: #5eead4;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wall-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.danmaku-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wall-idle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  padding: 24px;
  text-align: center;
  transform: translate(-50%, -42%);
  transition:
    opacity 0.45s ease,
    visibility 0.45s ease;
}

.wall-idle.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.idle-kicker {
  display: block;
  margin-bottom: 17px;
  color: #6b7aa8;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.26em;
}

.idle-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(16px, 2vw, 22px);
  white-space: nowrap;
}

.idle-prompt {
  color: #0c0a26;
}

.idle-line .caret {
  width: 8px;
  height: 19px;
}

.wall-idle p {
  margin: 0;
  color: #5eead4;
  font-size: 12px;
  line-height: 1.8;
}

.danmaku {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  max-width: min(80vw, 1180px);
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 14px;
  border: 1px solid hsla(var(--hue), 80%, 65%, 0.27);
  border-radius: 999px;
  background: linear-gradient(90deg, hsla(var(--hue), 55%, 16%, 0.92), rgba(10, 8, 33, 0.8));
  box-shadow:
    0 12px 38px -18px #000,
    inset 0 1px 0 rgba(238, 242, 255, 0.045);
  color: #dbe4ff;
  font-size: var(--dm-size, 26px);
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  pointer-events: none;
  will-change: transform;
}

.danmaku::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: hsl(var(--hue) 90% 66%);
  box-shadow: 0 0 10px hsl(var(--hue) 90% 60% / 0.8);
  content: "";
}

.dm-topic {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--topic-line);
  border-radius: 999px;
  background: var(--topic-bg);
  color: var(--topic-color);
  font-family: var(--sans);
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  white-space: nowrap;
}

.dm-name {
  max-width: 21vw;
  flex: none;
  overflow: hidden;
  color: hsl(var(--hue) 90% 74%);
  font-family: var(--mono);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
}

.dm-text {
  overflow: hidden;
  color: #dbe4ff;
  font-weight: 500;
  text-overflow: ellipsis;
}

.wall-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 37px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(9, 8, 31, 0.94), transparent);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.wall-foot > * {
  pointer-events: auto;
}

.wall-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b9ac4;
}

.wall-count b {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wall-count.is-error {
  color: #a97777;
}

.wall-count.is-error .live-dot {
  background: var(--red);
  box-shadow: none;
  animation: none;
}

.wall-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #6b7aa8;
}

.wall-url {
  color: #5eead4;
  text-decoration: underline;
  text-decoration-color: rgba(94, 234, 212, 0.25);
  text-underline-offset: 3px;
}

.wall-clock {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #5eead4;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.wall-fs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(238, 242, 255, 0.03);
  color: #8b9ac4;
  font-family: var(--sans);
  font-size: 10px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.wall-fs:hover {
  border-color: rgba(94, 234, 212, 0.35);
  color: var(--green);
}

.wall-fs svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.wall-fs .fs-off {
  display: none;
}

.wall-page.is-fullscreen .wall-fs .fs-on {
  display: none;
}

.wall-page.is-fullscreen .wall-fs .fs-off {
  display: block;
}

.wall-noscript {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  padding: 20px;
  color: var(--text);
  font-size: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* =========================================================
   ERROR
   ========================================================= */

.error-shell {
  display: flex;
  min-height: calc(100vh - 250px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}

.error-code {
  margin: 0;
  color: transparent;
  background: linear-gradient(120deg, #5eead4, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--mono);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-message {
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 15px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 941px) and (max-height: 960px) {
  .join-shell {
    padding-top: 24px;
  }

  .join-head {
    margin-bottom: 30px;
  }

  .join-head h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
  }

  .wish-form {
    padding: 21px 26px 24px;
  }

  .field {
    margin-bottom: 18px;
  }

  .field textarea {
    min-height: 108px;
  }

  .form-submit {
    margin-top: 20px;
  }

  .btn-send {
    min-height: 48px;
  }
}

@media (max-width: 1080px) {
  .hero-inner {
    gap: 40px;
  }

  .float-chip {
    display: none;
  }

  .feed-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .join-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 940px) {
  .hero-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 14px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 600px);
    margin-top: 4px;
  }

  .hero-stats {
    margin-top: 36px;
  }

  .section-head {
    display: block;
  }

  .section-head .eyebrow {
    margin-bottom: 16px;
  }

  .section-head h2 {
    max-width: none;
    text-align: left;
  }

  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .page-head,
  .join-head {
    grid-template-columns: 1fr;
    display: grid;
    gap: 20px;
    align-items: start;
  }

  .page-lead {
    max-width: 600px;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .join-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .join-aside .text-link {
    grid-column: 1 / -1;
  }

  .feed-head {
    display: block;
  }

  .feed-head-side {
    margin-top: 20px;
  }

  .feed-layout {
    grid-template-columns: 1fr;
  }

  .feed-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
    align-items: start;
    margin-top: 6px;
  }

  .lb-jump {
    display: inline;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .live-head {
    display: block;
    margin-bottom: 28px;
  }

  .live-head-side {
    max-width: none;
    align-items: flex-start;
    margin-top: 16px;
  }

  .live-head-side .page-lead {
    text-align: left;
  }

  .wall-watermark {
    font-size: 42vw;
  }
}

@media (max-width: 720px) {
  .site-nav {
    width: calc(100% - 32px);
    height: 72px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    font-size: 10px;
  }

  .brand-text {
    font-size: 14px;
  }

  .nav-links {
    gap: 1px;
  }

  .nav-links a {
    padding: 7px 8px;
    font-size: 11.5px;
  }

  .page-shell,
  .hero,
  .gateways,
  .home-note,
  .site-nav,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .page-shell {
    padding: 30px 0 66px;
  }

  .page-head {
    margin-bottom: 30px;
  }

  .page-head h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .hero {
    padding: 26px 0 52px;
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(2.65rem, 11.4vw, 4rem);
    letter-spacing: -0.055em;
  }

  .hero-sub {
    margin-bottom: 26px;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-topics {
    gap: 6px;
    margin-top: 21px;
  }

  .hero-topic {
    padding: 6px 8px;
    font-size: 9.5px;
  }

  .hero-topics + .hero-stats {
    margin-top: 25px;
  }

  .hero-stats {
    width: 100%;
    margin-top: 31px;
  }

  .hero-stats div {
    min-width: 0;
    flex: 1;
    margin-right: 12px;
    padding: 14px 12px 0 0;
  }

  .hero-stats dd {
    font-size: 21px;
  }

  .hero-stats dt {
    font-size: 9.5px;
  }

  .term-body {
    padding: 19px 18px 25px;
    font-size: 11px;
    line-height: 2;
  }

  .term-bar {
    padding: 0 12px;
    font-size: 9px;
  }

  .term-watermark {
    font-size: 88px;
  }

  .terminal-badge {
    left: 18px;
    bottom: -16px;
    padding: 8px 10px;
  }

  .gateways {
    padding: 47px 0 48px;
  }

  .section-head h2 {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .gateway-grid {
    margin-top: 25px;
  }

  .gateway {
    gap: 15px;
    padding: 20px 18px;
  }

  .gateway-copy h3 {
    font-size: 18px;
  }

  .gateway-copy p {
    margin-bottom: 15px;
    font-size: 12.5px;
  }

  .gateway-arrow {
    font-size: 17px;
  }

  .home-note {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 24px 0 52px;
  }

  .home-note p {
    flex-basis: 100%;
    order: 3;
    font-size: 13px;
    line-height: 1.8;
  }

  .note-tag {
    margin-left: auto;
  }

  .section-subnav {
    width: calc(100% - 32px);
  }

  .section-subnav-inner {
    padding: 7px 0 9px;
  }

  .section-subnav-label {
    display: none;
  }

  .section-subnav a {
    padding: 5px 7px;
    font-size: 10px;
  }

  .mode-split {
    width: calc(100% - 32px);
    padding: 42px 0 54px;
  }

  .mode-grid {
    gap: 11px;
    margin-top: 24px;
  }

  .mode-card {
    min-height: 0;
    padding: 21px;
  }

  .mode-card h2 {
    margin-top: 18px;
    font-size: 2rem;
  }

  .mode-card > p {
    font-size: 12px;
    line-height: 1.8;
  }

  .mode-actions,
  .mode-action {
    padding-top: 20px;
  }

  .mode-bg {
    right: -7px;
    bottom: -24px;
    font-size: 7rem;
  }

  .live-shell {
    padding-top: 24px;
  }

  .live-head h1 {
    font-size: clamp(2.7rem, 12vw, 3.3rem);
  }

  .live-note {
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 28px;
    padding-top: 18px;
  }

  .live-note p {
    flex-basis: 100%;
    order: 3;
    font-size: 11px;
  }

  .live-note .note-tag {
    margin-left: auto;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 22px 0 28px;
    line-height: 1.6;
  }

  .join-head h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.8rem);
  }

  .join-headline-sub {
    margin-top: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  .wish-form {
    padding: 22px 18px 24px;
  }

  .field input,
  .field textarea,
  .modal-body input {
    font-size: 16px;
  }

  .field label {
    font-size: 13px;
  }

  .topic-heading {
    font-size: 13px;
  }

  .topic-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .topic-box {
    min-height: 66px;
    gap: 11px;
    padding: 12px 13px;
  }

  .topic-hash {
    font-size: 11.5px;
  }

  .topic-sub {
    font-size: 9px;
  }

  .topic-detail {
    min-height: 52px;
    padding: 10px 11px;
  }

  .topic-detail p {
    font-size: 10.5px;
    line-height: 1.75;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .submit-note {
    white-space: normal;
    text-align: center;
  }

  .join-aside {
    grid-template-columns: 1fr;
  }

  .counter-big {
    font-size: 56px;
  }

  .feed-head h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.35rem);
    line-height: 1.05;
  }

  .feed-head {
    margin-bottom: 12px;
  }

  .feed-head-copy .page-lead {
    display: none;
  }

  .feed-head-side {
    align-items: stretch;
    gap: 8px;
    margin-top: 10px;
  }

  .head-stats {
    flex: 1;
  }

  .head-stats div {
    flex: 1;
    min-width: 0;
    padding: 6px 5px;
  }

  .head-stats dt {
    font-size: 7px;
  }

  .head-stats dd {
    font-size: 12px;
  }

  .feed-head-side .btn {
    flex: none;
    min-height: 36px;
  }

  .topic-filter {
    margin-top: 0;
    padding-bottom: 10px;
  }

  .topic-tab {
    padding: 7px 9px;
    font-size: 9.5px;
  }

  .topic-tab-full {
    display: none;
  }

  .topic-tab-short {
    display: inline;
  }

  .feed-toolbar {
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }

  .feed-toolbar-main {
    gap: 8px;
  }

  .reward-jump {
    display: inline-flex;
  }

  .identity-chip {
    max-width: 100%;
    padding: 4px 5px 4px 9px;
    font-size: 10.5px;
  }

  .identity-chip button {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .feed-aside {
    margin-top: 16px;
  }

  .pagination {
    gap: 6px;
    margin-top: 16px;
    padding-top: 13px;
  }

  .page-step {
    flex: 1;
    min-height: 36px;
  }

  .page-meta {
    width: 100%;
    margin-left: 0;
    text-align: center;
    white-space: normal;
  }

  .post-tag {
    max-width: 44%;
    padding: 4px 6px;
    font-size: 8.5px;
  }

  .feed-aside {
    grid-template-columns: 1fr;
  }

  .post-card {
    padding: 16px 16px 13px;
  }

  .post-content {
    font-size: 14px;
    line-height: 1.85;
  }

  .post-meta time {
    font-size: 9px;
  }

  .like-btn {
    min-height: 38px;
    padding: 8px 13px;
  }

  .post-actions {
    gap: 6px;
  }

  .comment-toggle {
    min-height: 38px;
    padding: 8px 11px;
  }

  .comment-label {
    display: none;
  }

  .comment-badge {
    padding-left: 0;
    border-left: 0;
    font-size: 10px;
  }

  .comment-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .comment-text {
    font-size: 12.5px;
    line-height: 1.75;
  }

  .comment-reply {
    min-width: 44px;
    min-height: 36px;
    padding: 8px 10px 8px 0;
    font-size: 11px;
    text-align: left;
  }

  .comment-children {
    margin-left: 8px;
    padding-left: 9px;
  }

  .comment-note {
    display: none;
  }

  .comment-submit {
    margin-left: auto;
    min-height: 34px;
  }

  .comment-form textarea {
    font-size: 16px;
  }

  .comments-hint {
    display: none;
  }

  .wall-head {
    padding: 18px 18px 26px;
    gap: 12px;
  }

  .wall-kicker {
    gap: 7px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .wall-brand h1 {
    margin: 9px 0 0;
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .wall-title-en {
    margin-left: 8px;
    font-size: 0.21em;
    letter-spacing: 0.07em;
  }

  .wall-sub,
  .wall-topics {
    display: none;
  }

  .qr-card {
    gap: 0;
    padding: 6px;
    border-radius: 8px;
  }

  .qr-card img {
    width: 55px;
    height: 55px;
  }

  .qr-copy {
    display: none;
  }

  .wall-foot {
    gap: 12px;
    padding: 15px 18px calc(15px + env(safe-area-inset-bottom));
    font-size: 8.5px;
  }

  .wall-hint {
    display: none;
  }

  .wall-clock {
    margin-left: auto;
    gap: 9px;
  }

  .wall-fs-label {
    display: none;
  }

  .wall-watermark {
    font-size: 58vw;
    right: -6vw;
    opacity: 0.7;
  }

  .idle-line {
    font-size: 14px;
  }

  .wall-idle p {
    font-size: 11px;
    padding: 0 12px;
    line-height: 1.7;
  }

  .toast-root {
    bottom: 16px;
  }

  .error-shell {
    min-height: calc(100vh - 220px);
  }
}

@media (max-width: 400px) {
  .nav-links a {
    padding: 7px 6px;
    font-size: 11px;
  }

  .brand-text {
    font-size: 13px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .hero-stats dt {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-glow,
  .float-chip,
  .live-dot {
    animation: none;
  }

  .terminal {
    transform: none;
  }
}

/* =========================================================
   LIVE GATE / COUNTDOWN
   ========================================================= */

.gate-page {
  background: #060418;
}

.gate {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(20px, 3vw, 40px) clamp(18px, 4vw, 56px) 24px;
}

.gate-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 42%, #000 12%, transparent 72%);
  opacity: 0.55;
}

.gate-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.gate-glow-a {
  top: -18%;
  left: 8%;
  width: 46vw;
  height: 46vw;
  background: rgba(59, 130, 246, 0.14);
}

.gate-glow-b {
  right: 2%;
  bottom: -22%;
  width: 38vw;
  height: 38vw;
  background: rgba(99, 220, 255, 0.07);
}

.gate-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gate-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.gate-brand-dim {
  color: var(--green);
}

.gate-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.gate-live .live-dot {
  width: 5px;
  height: 5px;
}

.gate-main {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: auto;
  padding: clamp(36px, 7vh, 86px) 0 40px;
  text-align: center;
}

.gate-main h1 {
  margin: 15px 0 clamp(24px, 4vh, 40px);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.16;
}

.gate-main .eyebrow {
  justify-content: center;
}

.gate-clock {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.6vw, 20px);
}

.gate-unit {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}

.gate-digits {
  display: flex;
  gap: clamp(4px, 0.7vw, 9px);
}

.gate-digit {
  position: relative;
  display: grid;
  width: clamp(46px, 7.4vw, 84px);
  height: clamp(62px, 10vw, 112px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: clamp(9px, 1vw, 14px);
  background: linear-gradient(180deg, rgba(13, 10, 38, 0.95), rgba(10, 8, 33, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(140, 170, 255, 0.09),
    0 18px 50px -28px rgba(8, 7, 28, 0.9);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: clamp(34px, 6.2vw, 66px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.gate-digit::after {
  position: absolute;
  inset: auto 0 50% 0;
  height: 1px;
  background: rgba(140, 170, 255, 0.07);
  content: "";
}

.gate-digit.is-rolling {
  animation: gate-digit-roll 0.5s cubic-bezier(0.22, 0.8, 0.3, 1);
}

@keyframes gate-digit-roll {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(-58%);
  }
  55% {
    opacity: 1;
    filter: none;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.gate-note {
  max-width: 560px;
  margin: clamp(26px, 4vh, 40px) auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.gate-note b {
  color: var(--text-soft);
  font-weight: 600;
}

.gate-note a {
  border-bottom: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--green);
}

.gate-note a:hover {
  color: var(--green-bright);
}

.gate-admin {
  max-width: 380px;
  margin: 26px auto 0;
  text-align: left;
}

.gate-admin summary {
  padding: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  list-style: none;
  text-align: center;
  cursor: pointer;
}

.gate-admin summary::-webkit-details-marker {
  display: none;
}

.gate-admin summary:hover {
  color: var(--muted);
}

.gate-form {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 9, 34, 0.7);
}

.gate-form-row {
  display: flex;
  gap: 8px;
}

.gate-form input {
  min-width: 0;
  flex: 1;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: rgba(238, 242, 255, 0.02);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.gate-form input:focus {
  border-color: rgba(94, 234, 212, 0.4);
}

.gate-form input::placeholder {
  color: var(--faint);
  font-family: var(--sans);
  letter-spacing: 0;
}

.gate-form .btn {
  min-height: 40px;
  flex: none;
}

.gate-error {
  min-height: 16px;
  margin: 8px 0 0;
  color: #ffc2c2;
  font-size: 11px;
  line-height: 1.5;
}

.gate-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 170, 255, 0.07);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.gate-foot-dim {
  color: #5eead4;
}

@media (max-width: 720px) {
  .gate {
    padding: 18px 16px 20px;
  }

  .gate-main {
    padding-top: 10vh;
  }

  .gate-main h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .gate-clock {
    gap: 4px;
  }

  .gate-digits {
    gap: 3px;
  }

  .gate-digit {
    width: clamp(32px, 9.8vw, 44px);
    height: clamp(46px, 14vw, 60px);
    border-radius: 7px;
    font-size: clamp(23px, 7vw, 33px);
  }

  .gate-label {
    font-size: 9px;
  }

  .gate-foot {
    font-size: 7px;
  }

  .gate-live {
    padding: 6px 9px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate-digit.is-rolling {
    animation: none;
  }
}

/* =========================================================
   GUEST IDENTITY / REWARD PROMPTS
   ========================================================= */

.identity-chip.is-guest strong {
  color: var(--muted);
  font-weight: 500;
}

.identity-reset {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 10.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.identity-reset:hover {
  color: var(--muted);
}

.identity-reset:disabled {
  cursor: wait;
  opacity: 0.5;
}

.reward-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-bottom: 13px;
  padding: 11px 13px;
  border: 1px solid rgba(232, 121, 249, 0.26);
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    rgba(232, 121, 249, 0.1),
    rgba(99, 102, 241, 0.06)
  );
  color: #e9d5ff;
  font-size: 12px;
  line-height: 1.7;
}

.reward-pill {
  flex: none;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(232, 121, 249, 0.16);
  color: #f0abfc;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.reward-banner p {
  min-width: 0;
  flex: 1 1 320px;
  margin: 0;
}

.reward-banner b {
  color: #f5d0fe;
  font-weight: 600;
}

.reward-cta {
  flex: none;
  border-bottom: 1px solid rgba(232, 121, 249, 0.35);
  color: #f0abfc;
  font-size: 11.5px;
  white-space: nowrap;
}

.reward-cta:hover {
  color: #fae8ff;
}

.reward-rules,
.reward-rules-card {
  border: 1px solid rgba(232, 121, 249, 0.24);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(232, 121, 249, 0.1), rgba(99, 102, 241, 0.05));
}

.reward-rules {
  margin-bottom: 14px;
  padding: 15px 16px;
}

.reward-rules-card {
  padding: 20px 18px;
}

.reward-rules-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reward-rules-head h2 {
  margin: 0;
  color: #f5d0fe;
  font-size: 14px;
  font-weight: 600;
}

.reward-rules-head .reward-cta {
  margin-left: auto;
}

.reward-rules-card h2 {
  margin: 10px 0 0;
  color: #f5d0fe;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.reward-rules-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reward-rules-card .reward-rules-list {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.reward-rules-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid rgba(232, 121, 249, 0.16);
  border-radius: 8px;
  background: rgba(15, 10, 38, 0.6);
  color: #c4b5fd;
  font-size: 10.5px;
  line-height: 1.55;
}

.reward-rules-list b {
  color: #f0abfc;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.reward-rules-note {
  margin: 10px 0 0;
  color: #8b86b8;
  font-size: 9.5px;
  line-height: 1.6;
}

.reward-card {
  padding: 20px;
  border: 1px solid rgba(232, 121, 249, 0.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(58, 20, 88, 0.58), rgba(10, 8, 34, 0.85));
}

.reward-card .teaser-kicker {
  color: #f0abfc;
}

.reward-card strong {
  display: block;
  margin: 14px 0 8px;
  color: #f5d0fe;
  font-size: 15px;
  font-weight: 600;
}

.reward-card p {
  margin: 0 0 15px;
  color: #c4b5fd;
  font-size: 11.5px;
  line-height: 1.8;
}

.reward-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(232, 121, 249, 0.22);
  border-radius: 9px;
  background: rgba(232, 121, 249, 0.055);
}

.reward-note-tag {
  align-self: flex-start;
  flex: none;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(232, 121, 249, 0.16);
  color: #f0abfc;
  font-family: var(--mono);
  font-size: 8px;
}

.reward-note p {
  margin: 0;
  color: #c4b5fd;
  font-size: 10.5px;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .reward-card {
    padding: 16px;
  }

  .reward-rules {
    padding: 13px 14px;
  }

  .reward-rules-head h2 {
    font-size: 13px;
  }

  .reward-rules-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reward-rules-list li {
    padding: 8px 9px;
  }

  .reward-rules-card {
    padding: 17px 15px;
  }

  .nav-right {
    gap: 6px;
  }

  .theme-switch {
    gap: 1px;
    padding: 2px;
  }

  .theme-option {
    padding: 5px;
  }

  .theme-label {
    display: none;
  }
}

/* =========================================================
   Theme: 高级黑金
   ========================================================= */

html[data-theme="gold"] {
  --bg: #080604;
  --bg-soft: #0e0b06;
  --panel: rgba(22, 17, 10, 0.86);
  --panel-solid: #151008;
  --line: rgba(212, 175, 55, 0.16);
  --line-strong: rgba(212, 175, 55, 0.32);
  --text: #f7f0df;
  --text-soft: #ead9b4;
  --muted: #c0ad8a;
  --faint: #8c7a5c;
  --green: #e6c66b;
  --green-bright: #f7e7b0;
  --cyan: #d4af37;
  --blue: #c9a227;
  --violet: #e6c66b;
  --magenta: #f0d78c;
  --amber: #f0d78c;
  --pink: #e6c66b;
  --red: #e5a3a3;
  --shadow: 0 28px 90px -36px rgba(0, 0, 0, 0.96);
}

html[data-theme="gold"] ::selection {
  color: #fff8e7;
  background: rgba(212, 175, 55, 0.38);
}

html[data-theme="gold"] .bg-layer {
  background:
    radial-gradient(1200px 800px at 12% -8%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(900px 720px at 108% 28%, rgba(153, 102, 21, 0.13), transparent 58%),
    linear-gradient(180deg, #0d0a06 0%, #080604 56%, #0b0805 100%);
}

html[data-theme="gold"] .bg-glow-a {
  background: #6b4f16;
}

html[data-theme="gold"] .bg-glow-b {
  background: #8a651c;
}

html[data-theme="gold"] .grad {
  background-image: linear-gradient(100deg, #f7e7b0 0%, #d4af37 40%, #f0d78c 68%, #b8860b 100%);
}

html[data-theme="gold"] .grad-warm {
  background-image: linear-gradient(100deg, #fff3cf 0%, #e6c66b 46%, #c9a227 100%);
}

html[data-theme="gold"] .btn-primary {
  background: linear-gradient(100deg, #f0d78c 0%, #d4af37 52%, #b8860b 100%);
  color: #151006;
  box-shadow:
    0 0 0 1px rgba(240, 215, 140, 0.45),
    0 16px 46px -18px rgba(212, 175, 55, 0.5);
}

html[data-theme="gold"] .btn-primary:hover {
  background: linear-gradient(100deg, #fff0c4 0%, #e6c66b 52%, #c9a227 100%);
  box-shadow:
    0 0 0 1px rgba(255, 240, 196, 0.6),
    0 18px 52px -16px rgba(212, 175, 55, 0.55);
}

html[data-theme="gold"] .brand-mark {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(145deg, rgba(247, 231, 176, 0.14), rgba(184, 134, 11, 0.2));
  box-shadow:
    inset 0 0 16px rgba(212, 175, 55, 0.12),
    0 0 24px rgba(184, 134, 11, 0.16);
  color: #f5e2a8;
}

html[data-theme="gold"] .brand-text span {
  background-image: linear-gradient(100deg, #f7e7b0 0%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="gold"] .nav-links a.is-active {
  border-color: rgba(212, 175, 55, 0.36);
  background: rgba(212, 175, 55, 0.12);
  color: #f5e2a8;
}

html[data-theme="gold"] .topic-ai {
  --topic-color: #f0d78c;
  --topic-line: rgba(212, 175, 55, 0.34);
  --topic-bg: rgba(212, 175, 55, 0.08);
}

html[data-theme="gold"] .topic-peer {
  --topic-color: #e8d5a4;
  --topic-line: rgba(212, 175, 55, 0.24);
  --topic-bg: rgba(212, 175, 55, 0.05);
}

html[data-theme="gold"] .post-card {
  background: linear-gradient(160deg, rgba(25, 19, 11, 0.88), rgba(12, 9, 5, 0.82));
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.03),
    0 24px 64px -42px rgba(212, 175, 55, 0.28);
}

html[data-theme="gold"] .post-card::before {
  background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.65), transparent);
}

html[data-theme="gold"] .post-card:hover {
  background: linear-gradient(160deg, rgba(32, 24, 14, 0.92), rgba(15, 11, 6, 0.86));
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 26px 70px -38px rgba(212, 175, 55, 0.32);
}

html[data-theme="gold"] .avatar {
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(212, 175, 55, 0.14);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.08);
  color: #f5e2a8;
}

html[data-theme="gold"] .post-tag {
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: #e8d5a4;
}

html[data-theme="gold"] .leaderboard-card,
html[data-theme="gold"] .head-stats,
html[data-theme="gold"] .topic-tab,
html[data-theme="gold"] .identity-chip,
html[data-theme="gold"] .form-card,
html[data-theme="gold"] .aside-card,
html[data-theme="gold"] .topic-box {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(22, 17, 10, 0.76);
}

html[data-theme="gold"] .form-card {
  background: linear-gradient(160deg, rgba(24, 18, 10, 0.92), rgba(12, 9, 5, 0.95));
}

html[data-theme="gold"] .form-card::after {
  background: rgba(212, 175, 55, 0.12);
}

html[data-theme="gold"] .field input,
html[data-theme="gold"] .field textarea,
html[data-theme="gold"] .modal-body input {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(12, 9, 5, 0.72);
}

html[data-theme="gold"] .field input::placeholder,
html[data-theme="gold"] .field textarea::placeholder,
html[data-theme="gold"] .modal-body input::placeholder {
  color: #b9a67e;
}

html[data-theme="gold"] .field input:focus,
html[data-theme="gold"] .field textarea:focus,
html[data-theme="gold"] .modal-body input:focus {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(18, 13, 7, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

html[data-theme="gold"] .input-affix {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(12, 9, 5, 0.72);
}

html[data-theme="gold"] .topic-tab.is-active {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.1);
  color: #f5e2a8;
}

html[data-theme="gold"] .identity-chip button {
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
  color: #f0d78c;
}

html[data-theme="gold"] .post-comments,
html[data-theme="gold"] .comment-form input,
html[data-theme="gold"] .field input,
html[data-theme="gold"] .field textarea,
html[data-theme="gold"] .field select {
  background: rgba(12, 9, 5, 0.8);
}

html[data-theme="gold"] .lb-top-1 {
  border-color: rgba(240, 215, 140, 0.3);
  background: rgba(212, 175, 55, 0.14);
}

html[data-theme="gold"] .lb-top-1 .lb-rank,
html[data-theme="gold"] .lb-top-1 .lb-likes b {
  color: #f7e7b0;
}

html[data-theme="gold"] .lb-top-2 {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(212, 175, 55, 0.07);
}

html[data-theme="gold"] .lb-top-2 .lb-rank,
html[data-theme="gold"] .lb-top-2 .lb-likes b {
  color: #e8d5a4;
}

html[data-theme="gold"] .lb-top-3 {
  border-color: rgba(184, 134, 11, 0.18);
  background: rgba(184, 134, 11, 0.07);
}

html[data-theme="gold"] .lb-top-3 .lb-rank,
html[data-theme="gold"] .lb-top-3 .lb-likes b {
  color: #d8b36a;
}

html[data-theme="gold"] .reward-rules-card,
html[data-theme="gold"] .reward-rules {
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.12), rgba(120, 85, 20, 0.04));
}

html[data-theme="gold"] .reward-pill,
html[data-theme="gold"] .reward-cta,
html[data-theme="gold"] .reward-rules-list b {
  color: #f0d78c;
}

html[data-theme="gold"] .reward-pill {
  background: rgba(212, 175, 55, 0.16);
}

html[data-theme="gold"] .reward-cta {
  border-bottom-color: rgba(212, 175, 55, 0.36);
}

html[data-theme="gold"] .reward-rules-list li {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(15, 11, 6, 0.76);
  color: #d9c8a3;
}

html[data-theme="gold"] .reward-rules-note {
  color: #a99572;
}

html[data-theme="gold"] .reward-jump {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: #f0d78c;
}

html[data-theme="gold"] .gate-page {
  background: #080604;
}

html[data-theme="gold"] .gate-glow-a {
  background: rgba(212, 175, 55, 0.16);
}

html[data-theme="gold"] .gate-glow-b {
  background: rgba(184, 134, 11, 0.12);
}

html[data-theme="gold"] .gate-digit {
  border-color: rgba(212, 175, 55, 0.26);
  background: linear-gradient(180deg, rgba(25, 19, 11, 0.96), rgba(12, 9, 5, 0.94));
  box-shadow:
    inset 0 0 22px rgba(212, 175, 55, 0.05),
    0 20px 50px -30px rgba(212, 175, 55, 0.35);
}

html[data-theme="gold"] .identity-modal {
  background: #151008;
}

html[data-theme="gold"] .welcome-banner {
  border-color: rgba(212, 175, 55, 0.24);
  background: rgba(212, 175, 55, 0.09);
}

html[data-theme="gold"] .gate-note a {
  border-bottom-color: rgba(212, 175, 55, 0.36);
}

html[data-theme="gold"] .gate-foot-dim {
  color: #e6c66b;
}

/* =========================================================
   Theme: 蓝白
   ========================================================= */

html[data-theme="blue"] {
  --bg: #040b18;
  --bg-soft: #071426;
  --panel: rgba(8, 22, 43, 0.84);
  --panel-solid: #081a32;
  --line: rgba(147, 197, 253, 0.14);
  --line-strong: rgba(147, 197, 253, 0.28);
  --text: #f2f7ff;
  --text-soft: #d6e6ff;
  --muted: #9fb9d9;
  --faint: #6383a8;
  --green: #7dd3fc;
  --green-bright: #e0f2fe;
  --cyan: #38bdf8;
  --blue: #60a5fa;
  --violet: #93c5fd;
  --magenta: #bae6fd;
  --amber: #dbeafe;
  --pink: #bfdbfe;
  --red: #fca5a5;
  --shadow: 0 28px 90px -36px rgba(1, 8, 24, 0.95);
}

html[data-theme="blue"] .bg-layer {
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(37, 99, 235, 0.3), transparent 62%),
    radial-gradient(900px 720px at 108% 30%, rgba(56, 189, 248, 0.14), transparent 58%),
    linear-gradient(180deg, #071426 0%, #040b18 56%, #061224 100%);
}

html[data-theme="blue"] .bg-glow-a {
  background: #1d4ed8;
}

html[data-theme="blue"] .bg-glow-b {
  background: #0284c7;
}

html[data-theme="blue"] .grad {
  background-image: linear-gradient(100deg, #e0f2fe 0%, #60a5fa 40%, #38bdf8 72%, #dbeafe 100%);
}

html[data-theme="blue"] .grad-warm {
  background-image: linear-gradient(100deg, #dbeafe 0%, #93c5fd 48%, #e0f2fe 100%);
}

html[data-theme="blue"] .btn-primary {
  background: linear-gradient(100deg, #60a5fa 0%, #2563eb 52%, #38bdf8 100%);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.45),
    0 16px 46px -18px rgba(37, 99, 235, 0.85);
}

html[data-theme="blue"] .btn-primary:hover {
  background: linear-gradient(100deg, #93c5fd 0%, #3b82f6 52%, #7dd3fc 100%);
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.6),
    0 18px 52px -16px rgba(59, 130, 246, 0.8);
}

html[data-theme="blue"] .brand-mark {
  border-color: rgba(147, 197, 253, 0.4);
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.16), rgba(37, 99, 235, 0.2));
  box-shadow:
    inset 0 0 16px rgba(147, 197, 253, 0.1),
    0 0 24px rgba(59, 130, 246, 0.16);
  color: #dbeafe;
}

html[data-theme="blue"] .brand-text span {
  background: linear-gradient(100deg, #e0f2fe 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="blue"] .nav-links a.is-active {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
}

html[data-theme="blue"] .topic-ai {
  --topic-color: #93c5fd;
  --topic-line: rgba(147, 197, 253, 0.32);
  --topic-bg: rgba(59, 130, 246, 0.1);
}

html[data-theme="blue"] .topic-peer {
  --topic-color: #bae6fd;
  --topic-line: rgba(186, 230, 253, 0.28);
  --topic-bg: rgba(186, 230, 253, 0.07);
}

html[data-theme="blue"] .post-card {
  background: linear-gradient(160deg, rgba(9, 26, 49, 0.8), rgba(5, 16, 32, 0.74));
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.03),
    0 24px 64px -42px rgba(37, 99, 235, 0.55);
}

html[data-theme="blue"] .post-card:hover {
  background: linear-gradient(160deg, rgba(11, 31, 58, 0.86), rgba(6, 19, 38, 0.78));
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.08),
    0 26px 70px -38px rgba(37, 99, 235, 0.5);
}

html[data-theme="blue"] .lb-top-1 {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(59, 130, 246, 0.12);
}

html[data-theme="blue"] .lb-top-1 .lb-rank,
html[data-theme="blue"] .lb-top-1 .lb-likes b {
  color: #dbeafe;
}

html[data-theme="blue"] .lb-top-2 {
  border-color: rgba(147, 197, 253, 0.16);
  background: rgba(59, 130, 246, 0.06);
}

html[data-theme="blue"] .lb-top-2 .lb-rank,
html[data-theme="blue"] .lb-top-2 .lb-likes b {
  color: #bfdbfe;
}

html[data-theme="blue"] .lb-top-3 {
  border-color: rgba(186, 230, 253, 0.14);
  background: rgba(56, 189, 248, 0.06);
}

html[data-theme="blue"] .lb-top-3 .lb-rank,
html[data-theme="blue"] .lb-top-3 .lb-likes b {
  color: #bae6fd;
}

html[data-theme="blue"] .avatar {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.08);
  color: #dbeafe;
}

html[data-theme="blue"] .post-tag {
  border-color: rgba(147, 197, 253, 0.26);
  background: rgba(59, 130, 246, 0.08);
  color: #bfdbfe;
}

html[data-theme="blue"] .leaderboard-card,
html[data-theme="blue"] .head-stats,
html[data-theme="blue"] .topic-tab,
html[data-theme="blue"] .identity-chip,
html[data-theme="blue"] .form-card,
html[data-theme="blue"] .aside-card,
html[data-theme="blue"] .topic-box {
  border-color: rgba(147, 197, 253, 0.16);
  background: rgba(8, 24, 46, 0.7);
}

html[data-theme="blue"] .post-comments,
html[data-theme="blue"] .comment-form input,
html[data-theme="blue"] .field input,
html[data-theme="blue"] .field textarea,
html[data-theme="blue"] .field select {
  background: rgba(5, 16, 32, 0.72);
}

html[data-theme="blue"] .reward-rules-card,
html[data-theme="blue"] .reward-rules {
  border-color: rgba(147, 197, 253, 0.3);
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.14), rgba(56, 189, 248, 0.06));
}

html[data-theme="blue"] .reward-pill,
html[data-theme="blue"] .reward-cta,
html[data-theme="blue"] .reward-rules-list b {
  color: #bae6fd;
}

html[data-theme="blue"] .reward-pill {
  background: rgba(59, 130, 246, 0.16);
}

html[data-theme="blue"] .reward-cta {
  border-bottom-color: rgba(147, 197, 253, 0.35);
}

html[data-theme="blue"] .reward-rules-list li {
  border-color: rgba(147, 197, 253, 0.18);
  background: rgba(8, 24, 48, 0.7);
  color: #cfe3ff;
}

html[data-theme="blue"] .reward-rules-note {
  color: #8fb3d9;
}

html[data-theme="blue"] .reward-jump {
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(59, 130, 246, 0.1);
  color: #bfdbfe;
}

html[data-theme="blue"] .gate-page {
  background: #040b18;
}

html[data-theme="blue"] .gate-glow-a {
  background: rgba(37, 99, 235, 0.2);
}

html[data-theme="blue"] .gate-glow-b {
  background: rgba(56, 189, 248, 0.12);
}

html[data-theme="blue"] .gate-digit {
  background: linear-gradient(180deg, rgba(9, 28, 54, 0.95), rgba(5, 16, 32, 0.92));
}

html[data-theme="blue"] .identity-modal {
  background: #081a32;
}

html[data-theme="blue"] .welcome-banner {
  border-color: rgba(147, 197, 253, 0.24);
  background: rgba(59, 130, 246, 0.1);
}


