:root {
  --bg-deep: #070e1c;
  --bg-primary: #0a1428;
  --bg-card: rgba(15, 29, 58, 0.78);
  --bg-card-solid: #0f1d3a;
  --bg-glass: rgba(10, 20, 40, 0.84);
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-bright: rgba(243, 198, 105, 0.55);
  --text-ivory: #f6f2e8;
  --text-muted: #b8c2d9;
  --text-dim: #7f8eab;
  --gold: #d4af37;
  --amber: #f3c669;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --emerald: #34d399;
  --rose: #fb7185;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 18px 50px rgba(4, 9, 20, 0.55), 0 0 36px rgba(212, 175, 55, 0.08);
  --font-sans: "PingFang TC", "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-ivory);
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.11), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.12), transparent 45%),
    linear-gradient(180deg, #070e1c 0%, #0a1428 48%, #070d19 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.mode-studio {
  background:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.14), transparent 44%),
    radial-gradient(circle at 15% 25%, rgba(212, 175, 55, 0.10), transparent 45%),
    linear-gradient(180deg, #060c18 0%, #091326 100%);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

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

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header & Dual-Entry Switcher */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.35), rgba(10, 20, 40, 0.95));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--amber);
  font-size: 0.95rem;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.32));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.entry-pills {
  display: inline-flex;
  background: rgba(7, 14, 28, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.entry-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.entry-pill:hover {
  color: var(--text-ivory);
}

.entry-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.26), rgba(56, 189, 248, 0.18));
  color: var(--amber);
  border: 1px solid rgba(243, 198, 105, 0.45);
}

.lang-btn {
  cursor: pointer;
  background: rgba(15, 29, 58, 0.9);
  color: var(--text-ivory);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

/* Typography & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
}

.eyebrow.cyan {
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
}

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.serif {
  font-family: var(--font-serif);
}

.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--amber), #fff0c2 55%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 58ch;
  margin: 0 0 24px;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #e5bf52, #b88a1e);
  color: #091122;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}

.btn-secondary {
  background: rgba(15, 29, 58, 0.85);
  color: var(--text-ivory);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--cyan);
}

.btn-cyan {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #04111f;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.25);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* Sections & Grids */
.hero {
  padding: 46px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
}

.section {
  padding: 44px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 800;
  margin-top: 10px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

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

/* Compass Canvas Card */
.compass-card {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, #112246 0%, #081124 72%);
  border: 1px solid var(--border-bright);
  box-shadow: 0 24px 60px rgba(3, 7, 16, 0.7), inset 0 0 40px rgba(56, 189, 248, 0.08);
}

.compass-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 410px;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
}

.compass-canvas-wrap:active {
  cursor: grabbing;
}

#compassCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.compass-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  flex-wrap: wrap;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.stage-tab {
  cursor: pointer;
  background: rgba(7, 14, 28, 0.75);
  color: var(--text-muted);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.18s ease;
}

.stage-tab.active {
  background: rgba(212, 175, 55, 0.18);
  color: var(--amber);
  border-color: var(--amber);
}

.compass-caption {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 14, 28, 0.68);
  font-size: 0.85rem;
  color: var(--text-ivory);
  border-left: 3px solid var(--amber);
}

/* Interactive Physics Lab */
.lab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--amber);
  cursor: pointer;
}

.angle-readout {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  min-width: 58px;
  text-align: right;
  color: var(--amber);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.status-ok {
  background: rgba(52, 211, 153, 0.16);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.status-warn {
  background: rgba(251, 113, 133, 0.16);
  color: var(--rose);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.status-pending {
  background: rgba(243, 198, 105, 0.14);
  color: var(--amber);
  border: 1px solid rgba(243, 198, 105, 0.32);
}

.lab-svg-box {
  background: rgba(7, 14, 28, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  padding: 12px;
}

.balance-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.balance-btn {
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(7, 14, 28, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.84rem;
}

.balance-btn.active {
  background: rgba(56, 189, 248, 0.16);
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Book Showcase */
.book-showcase {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
}

.book-cover-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55);
}

.book-cover-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(7, 14, 28, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 0.88rem;
}

.channel-item.clickable:hover {
  border-color: var(--amber);
}

/* Lineage Timeline */
.lineage-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lineage-node {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(7, 14, 28, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
}

.lineage-node.current {
  border-color: var(--amber);
  background: rgba(212, 175, 55, 0.12);
}

.lineage-gen {
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
}

.lineage-name {
  font-weight: 800;
  font-size: 1rem;
  margin: 4px 0;
}

.lineage-note {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Metric Cards (Studio) */
.metric-box {
  padding: 18px;
  border-radius: 16px;
  background: rgba(7, 14, 28, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Faucet Banner */
.faucet-banner {
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(15, 29, 58, 0.95), rgba(10, 20, 40, 0.92));
  border-radius: 22px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Diagnostic Form */
.diag-form {
  display: grid;
  gap: 12px;
}

.diag-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.diag-form input,
.diag-form select,
.diag-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(7, 14, 28, 0.85);
  color: var(--text-ivory);
  font-family: inherit;
  font-size: 0.92rem;
}

.brief-output {
  background: rgba(7, 14, 28, 0.92);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  color: var(--text-ivory);
}

/* Interactive Robot Office Floorplan (Public Sanitized Demo) */
.office-floor {
  background: rgba(7, 14, 28, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-glow);
}

.office-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

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

.desk-card {
  cursor: pointer;
  text-align: left;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(15, 29, 58, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--text-ivory);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desk-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.desk-card.active {
  border-color: var(--amber);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(56, 189, 248, 0.14));
}

.desk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.desk-bot-name {
  font-weight: 800;
  font-size: 1rem;
  color: var(--amber);
}

.desk-bot-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.desk-state {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.desk-state.ready {
  background: rgba(52, 211, 153, 0.14);
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.3);
}

/* Five-Element Identity Accents (土樞・火製・木答・金門・水秘) */
.desk-card[data-wuxing="earth"] { border-left: 4px solid #D4AF37; }
.desk-card[data-wuxing="fire"]  { border-left: 4px solid #F97316; }
.desk-card[data-wuxing="wood"]  { border-left: 4px solid #22C55E; }
.desk-card[data-wuxing="metal"] { border-left: 4px solid #E2E8F0; }
.desk-card[data-wuxing="water"] { border-left: 4px solid #38BDF8; }

.wx-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 4px;
  letter-spacing: 0.04em;
}
.wx-earth { background: rgba(212, 175, 55, 0.18); color: #f3c669; border: 1px solid rgba(212, 175, 55, 0.45); }
.wx-fire  { background: rgba(249, 115, 22, 0.18); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.45); }
.wx-wood  { background: rgba(34, 197, 94, 0.16);  color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.45); }
.wx-metal { background: rgba(226, 232, 240, 0.16); color: #f1f5f9; border: 1px solid rgba(226, 232, 240, 0.45); }
.wx-water { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.45); }

.desk-detail-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.92);
  border: 1px solid rgba(243, 198, 105, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.desk-card.linked {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(20, 42, 78, 0.88);
}

/* Embedded Blender 3D Holographic Command Center (/studio) */
.holo-stage-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: radial-gradient(circle at 50% 42%, #0c1b36 0%, #050a16 62%, #02050c 100%);
  box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.08), 0 18px 40px rgba(2, 6, 16, 0.6);
}

.holo-stage-wrap.is-fullscreen {
  height: 100vh;
  border-radius: 0;
  border: none;
}

.holo-canvas-mount {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: pan-y;
}

.holo-canvas-mount:active {
  cursor: grabbing;
}

.holo-labels-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.holo-unit-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 15, 32, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 4px 10px 4px 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-ivory);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, transform 0.16s ease, opacity 0.2s ease;
}

.holo-unit-tag:hover,
.holo-unit-tag.active {
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(243, 198, 105, 0.35);
}

.holo-unit-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.holo-unit-tag .mood-txt {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.9;
}

.holo-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.holo-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 15, 32, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  pointer-events: auto;
}

.holo-btn {
  appearance: none;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: var(--text-ivory);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.holo-btn:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: var(--cyan);
}

.holo-btn.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--amber);
  color: #fde68a;
}

.holo-attention {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: none;
  background: rgba(159, 18, 57, 0.88);
  color: #ffe4e6;
  border: 1px solid rgba(253, 164, 175, 0.6);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.holo-attention.show {
  display: block;
}

.holo-hint-bar {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 15, 32, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

.holo-detail-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(290px, calc(100% - 24px));
  z-index: 9;
  display: none;
  background: rgba(9, 17, 34, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.8rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.holo-detail-card.show {
  display: block;
}

.holo-detail-card h4 {
  margin: 0 0 2px;
  font-size: 0.96rem;
}

.holo-detail-role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.holo-detail-status {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 0.78rem;
}

.holo-detail-card ul {
  margin: 7px 0 0;
  padding-left: 16px;
  color: var(--text-ivory);
  font-size: 0.75rem;
  line-height: 1.48;
}

.holo-detail-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 4px;
}

.holo-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(4, 8, 20, 0.72);
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 960px) {
  .holo-stage-wrap {
    height: 430px;
  }
  .desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .holo-stage-wrap {
    height: 360px;
  }
  .holo-hint-bar {
    display: none;
  }
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 40px;
  margin-top: 36px;
  color: var(--text-dim);
  font-size: 0.84rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .book-showcase,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .lineage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2,
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .stage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-pill {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}
