:root {
  color-scheme: dark;
  --ink-900: #0b0c10;
  --ink-800: #121418;
  --ink-700: #1a1d23;
  --ink-600: #222630;
  --gold-300: #d59a52;
  --gold-200: #f2bf6d;
  --crimson-300: #a8403b;
  --crimson-200: #e26a5f;
  --crimson-100: #f28d7e;
  --mist-100: #f3efe7;
  --mist-200: #c7c1b5;
  --border: rgba(203, 178, 122, 0.18);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  max-width: 100vw;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  height: auto;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: transparent;
}

body {
  min-height: 100vh;
  height: auto;
  overflow: visible;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  background-color: transparent;
  background-image: none;
  background-attachment: fixed;
  color: var(--mist-100);
  line-height: 1.6;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    url("https://www.transparenttextures.com/patterns/cracked-concrete.png"),
    radial-gradient(circle at 30% 20%, rgba(242, 191, 109, 0.12), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(198, 84, 70, 0.08), transparent 55%);
  opacity: 0.05;
  mix-blend-mode: overlay;
  filter: blur(8px);
  animation: mist-flow 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 28px;
  background: rgba(12, 13, 18, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-200);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.brand-subtitle {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--mist-200);
}

.topbar-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--mist-200);
}

.topbar-nav a,
.sidebar-nav a,
.command-card,
.command-item {
  will-change: transform;
}

.topbar-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.topbar-nav a:hover,
.topbar-nav a.active {
  border-color: var(--border);
  color: var(--gold-200);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mist-200);
}

.prefix-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

.prefix-value {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink-600);
  color: var(--gold-200);
  border: 1px solid var(--border);
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  padding: 24px 28px 40px;
  max-width: 1600px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"), linear-gradient(135deg, rgba(20, 22, 28, 0.9), rgba(10, 12, 16, 0.95));
  background-repeat: repeat;
  background-size: 200px 200px, cover;
  border-radius: var(--radius-md);
  padding: 12px;
}

.sidebar-search {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 20, 0.95);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(215, 180, 106, 0.35);
  background: rgba(7, 8, 12, 0.9);
  color: var(--gold-200);
  font-size: 13px;
  letter-spacing: 0.5px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-search input::placeholder {
  color: rgba(225, 200, 137, 0.6);
}

.sidebar-search input:focus {
  border-color: #d7b46a;
  box-shadow: 0 0 15px rgba(215, 180, 106, 0.3);
}

.sidebar-section {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 17, 23, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sidebar-section h3 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--gold-200);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--mist-200);
}

.sidebar-nav a {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  border-left: 4px solid #d7b46a;
  background: linear-gradient(90deg, rgba(215, 180, 106, 0.2) 0%, transparent 90%);
  color: #d7b46a;
  font-weight: bold;
  padding-left: 12px;
  box-shadow: 0 0 15px rgba(215, 180, 106, 0.1);
}

.sidebar-note {
  font-size: 12px;
  color: var(--mist-200);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  overflow-x: auto;
}

.main-content {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: #14151b;
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d7b46a, #8f6b35);
  border-radius: 999px;
  border: 2px solid #14151b;
}

body::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #f2bf6d, #b87a36);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background-image:
    linear-gradient(to bottom, rgba(11, 13, 19, 0.9) 0%, rgba(11, 13, 19, 0.7) 60%, rgba(11, 13, 19, 0.95) 100%),
    url("https://images.unsplash.com/photo-1605628150266-199e00bb209c?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center 30%;
  border-bottom: 1px solid rgba(215, 180, 106, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: hero-breathe 20s ease-in-out infinite alternate;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: rgba(215, 180, 106, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(215, 180, 106, 0.8);
  animation: float-qi 10s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.portal-actions {
  flex-wrap: wrap;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--gold-200);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  letter-spacing: 2px;
  background-image: linear-gradient(120deg, #f2bf6d, #d59a52, #f7e0a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(215, 180, 106, 0.3);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
}

.hero-text p {
  margin: 0;
  color: var(--mist-200);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
}

.hero-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mist-200);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--gold-200);
  background: var(--ink-700);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--ink-700);
  border: 1px solid var(--border);
}

.panel-title {
  font-size: 13px;
  color: var(--gold-200);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

.panel-content {
  font-size: 12px;
  color: var(--mist-200);
  display: grid;
  gap: 8px;
}

.section-header h2 {
  margin: 0 0 0.9rem;
  color: var(--gold-200);
  font-size: 22px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  letter-spacing: 2px;
  background-image: linear-gradient(120deg, #f2bf6d, #d59a52, #f7e0a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  margin: 0;
  color: var(--mist-200);
}

.section-header {
  display: grid;
  gap: 6px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 20, 0.55);
  border: 1px solid rgba(215, 180, 106, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  height: 100%;
  justify-content: space-between;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45), 0 0 24px rgba(215, 180, 106, 0.1);
  animation: float 8s ease-in-out infinite, glow 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  color: var(--gold-200);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 0 16px rgba(242, 191, 109, 0.35);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
}

.card .card-meta {
  font-size: 12px;
  color: var(--mist-200);
  text-shadow: 0 0 12px rgba(226, 106, 95, 0.15);
}

.card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ink-600);
  color: var(--gold-200);
}

#overlord-foundation .card,
#overlord-foundation .command-card {
  border-color: rgba(242, 191, 109, 0.75);
  box-shadow: 0 0 18px rgba(242, 191, 109, 0.35), 0 0 45px rgba(242, 191, 109, 0.15);
}

#heavenly-devil .card,
#heavenly-devil .command-card {
  border-color: rgba(226, 106, 95, 0.7);
  box-shadow: 0 0 18px rgba(226, 106, 95, 0.35), 0 0 45px rgba(226, 106, 95, 0.2);
}

.category-overlord {
  border-color: rgba(242, 191, 109, 0.8);
  box-shadow: 0 0 18px rgba(242, 191, 109, 0.35), 0 0 40px rgba(242, 191, 109, 0.2);
  animation: float 8s ease-in-out infinite, glow 6s ease-in-out infinite, breathe-gold 4.5s ease-in-out infinite;
}

.category-devil {
  border-color: rgba(226, 106, 95, 0.8);
  box-shadow: 0 0 16px rgba(226, 106, 95, 0.35), 0 0 36px rgba(226, 106, 95, 0.25);
  animation: float 8s ease-in-out infinite, glow 6s ease-in-out infinite, flicker 2.6s ease-in-out infinite;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(215, 180, 106, 0.6);
  background: rgba(10, 12, 18, 0.75);
  color: var(--gold-200);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.tag-pill .cmd-code {
  background: none;
  border: none;
  padding: 0;
}

.cmd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.props-list {
  display: grid;
  gap: 8px;
}

.props-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(215, 180, 106, 0.2);
}

.props-key {
  color: var(--mist-200);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.props-value {
  color: var(--mist-100);
  font-size: 13px;
}

.ancient-seal-container {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-top: 12px;
  font-size: 1.4rem;
}

.seal-icon {
  position: relative;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 2px var(--color-overlord-gold, gold));
}

.seal-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-overlord-gold, gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  filter: blur(5px);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.2;
    scale: 1;
  }
  50% {
    opacity: 0.5;
    scale: 1.5;
  }
}

.ancient-seal-container:hover .seal-icon {
  opacity: 1;
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px var(--color-overlord-gold, gold));
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background: linear-gradient(to bottom, #1a1a1a, #0d0d0d);
  color: #e0d6b4;
  text-align: left;
  border-radius: 2px;
  padding: 15px 20px;
  position: absolute;
  z-index: 20;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid #3a3a3a;
  border-top: 2px solid var(--color-overlord-gold, gold);
  border-bottom: 2px solid var(--color-overlord-gold, gold);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1) inset;
  font-family: "Noto Serif SC", serif;
  font-size: 0.95rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.lore-note {
  display: block;
  margin-top: 8px;
  font-size: 0.85em;
  color: #a8a085;
  font-style: italic;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  border-width: 8px;
  border-style: solid;
  border-color: var(--color-overlord-gold, gold) transparent transparent transparent;
}

.glass-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 14, 18, 0.85);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.error-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--mist-200);
}

.command-library {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(14px);
}

.command-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.command-controls input,
.command-controls select {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink-700);
  border: 1px solid var(--border);
  color: var(--mist-100);
}

.command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.command-list {
  display: grid;
  gap: 12px;
}

.command-item {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--ink-700);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
  margin-bottom: 8px;
}

.command-item:hover,
.command-item.active {
  border-color: var(--gold-200);
  transform: translateY(-1px);
}

.command-item h4 {
  margin: 0 0 6px;
  color: var(--gold-200);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  white-space: normal;
  overflow-wrap: anywhere;
}

img,
pre {
  max-width: 100%;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 20px;
  }

  .sidebar {
    gap: 16px;
    padding: 10px;
  }

  .sidebar-section,
  .sidebar-search {
    padding: 12px;
  }

  .sidebar-nav {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid #d7b46a;
    padding: 12px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topbar-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .command-layout {
    grid-template-columns: 1fr;
  }

  .command-card:hover {
    transform: none;
    box-shadow: var(--shadow);
    filter: none;
  }
}

@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (hover: none) {
  .command-card::before {
    display: none;
  }
}

.command-item p {
  margin: 0;
  font-size: 12px;
  color: var(--mist-200);
}

.command-card,
.glass-card {
  gap: 12px;
  background: linear-gradient(145deg, rgba(20, 22, 32, 0.65), rgba(10, 12, 18, 0.75));
  border: 1px solid rgba(215, 180, 106, 0.25);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(215, 180, 106, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: slideUpFade 0.6s ease-out both, float 9s ease-in-out infinite, glow 7s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.command-card::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(215, 180, 106, 0.08),
    transparent 40%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}

.command-card:hover::before,
.glass-card:hover::before {
  opacity: 1;
}

.command-card > *,
.glass-card > * {
  position: relative;
  z-index: 1;
}

.command-card:hover {
  border-color: #d7b46a;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(215, 180, 106, 0.05);
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.08);
}

.card:hover,
.command-card:hover,
.glass-card:hover {
  animation-play-state: paused;
}

.card:hover,
.command-card:hover,
.glass-card:hover {
  animation-play-state: paused;
}

.glass-card {
  animation: slideUpFade 0.7s ease-out both, float 9s ease-in-out infinite, glow 7s ease-in-out infinite;
}

.section {
  animation: slideUpFade 0.6s ease-out both;
}

.section-grid .command-card:nth-child(1) {
  animation-delay: 0.1s;
}

.section-grid .command-card:nth-child(2) {
  animation-delay: 0.2s;
}

.section-grid .command-card:nth-child(3) {
  animation-delay: 0.3s;
}

.section-grid .command-card:nth-child(4) {
  animation-delay: 0.4s;
}

.card-field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mist-200);
}

.cmd-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-code {
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(215, 180, 106, 0.4);
  font-family: "SFMono-Regular", "Consolas", "Menlo", monospace;
  font-size: 12px;
  color: var(--gold-200);
}

.detail-text {
  font-size: 12px;
  color: var(--mist-200);
}

.click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 180, 106, 0.6) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-burst 0.5s ease-out;
  pointer-events: none;
  z-index: 9999;
}

.command-detail {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--ink-700);
  min-height: 200px;
}

.detail-empty {
  color: var(--mist-200);
  font-size: 13px;
}

.detail-block {
  margin-bottom: 12px;
}

.detail-block h5 {
  margin: 0 0 6px;
  color: var(--gold-200);
  font-size: 13px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  background-image: linear-gradient(120deg, #ffffff, #f2bf6d, #fff1d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer {
  text-align: center;
  font-size: 12px;
  color: #d7b46a;
  opacity: 0.6;
  padding: 24px 12px 32px;
  letter-spacing: 1px;
}

.detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--mist-200);
  font-size: 12px;
}

.detail-inline {
  font-size: 12px;
  color: var(--mist-200);
}

.detail-inline code {
  background: var(--ink-600);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--gold-200);
}


@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), 0 0 20px rgba(215, 180, 106, 0.12);
  }
  50% {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), 0 0 35px rgba(226, 106, 95, 0.18);
  }
}

@keyframes breathe-gold {
  0%,
  100% {
    box-shadow: 0 0 16px rgba(242, 191, 109, 0.25), 0 0 32px rgba(242, 191, 109, 0.15);
  }
  50% {
    box-shadow: 0 0 24px rgba(242, 191, 109, 0.45), 0 0 45px rgba(242, 191, 109, 0.25);
  }
}

@keyframes flicker {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(226, 106, 95, 0.2), 0 0 28px rgba(226, 106, 95, 0.15);
  }
  20% {
    box-shadow: 0 0 22px rgba(226, 106, 95, 0.5), 0 0 40px rgba(226, 106, 95, 0.35);
  }
  40% {
    box-shadow: 0 0 10px rgba(226, 106, 95, 0.25), 0 0 20px rgba(226, 106, 95, 0.2);
  }
  60% {
    box-shadow: 0 0 26px rgba(226, 106, 95, 0.55), 0 0 44px rgba(226, 106, 95, 0.4);
  }
  80% {
    box-shadow: 0 0 14px rgba(226, 106, 95, 0.3), 0 0 30px rgba(226, 106, 95, 0.2);
  }
}

@keyframes dark-breath {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes hero-breathe {
  0% {
    background-size: 100% auto;
  }
  100% {
    background-size: 105% auto;
  }
}

@keyframes ripple-burst {
  to {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

@keyframes mist-flow {
  0% {
    opacity: 0.45;
    transform: translate3d(-2%, -1%, 0);
  }
  50% {
    opacity: 0.65;
    transform: translate3d(2%, 1%, 0);
  }
  100% {
    opacity: 0.45;
    transform: translate3d(-2%, -1%, 0);
  }
}

@keyframes float-qi {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translate(-50px, -100px) scale(1.2);
    opacity: 0;
  }
}

h1,
h2,
.brand-title {
  background: linear-gradient(120deg, #ffffff 0%, #f2bf6d 35%, #fff1d2 65%, #d59a52 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: liquid-gold 6s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(242, 191, 109, 0.15);
}

.command-card,
.glass-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.command-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(215, 180, 106, 0.05);
  filter: brightness(1.08);
  border-color: #d7b46a;
  z-index: 10;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(215, 180, 106, 0.3);
  border-color: #d7b46a;
  z-index: 10;
}

.page {
  position: relative;
}

.page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(8, 9, 12, 0.45), transparent);
  opacity: 0.35;
  transform: scaleY(-1);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #050608;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #d7b46a, #8f6b35);
  border-radius: 999px;
}

.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  background: linear-gradient(135deg, #d7b46a 0%, #f4e2b0 100%);
  animation: pulse-gold 2s infinite;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.btn-portal:active {
  transform: scale(0.96);
}

.btn-portal-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #d7b46a;
  color: #d7b46a;
  background: transparent;
  font-weight: bold;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(215, 180, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(215, 180, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(215, 180, 106, 0);
  }
}

@keyframes liquid-gold {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
