/* --- RESET (optional but recommended) --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111;
}

:root {
  --ink: #111;
  --sub: #666;
  --line: #e6e6e6;
  --card: #ffffff;
}

/* --- HEADER --- */
.voidlucid-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Center title */
.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #111;
  white-space: nowrap;
}

/* Left & right containers */
.header-left,
.header-right {
  display: flex;
  align-items: center;
}

/* Left icon (solid square) */
.icon-square {
  width: 36px;
  height: 36px;
  background: #111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right icon (outlined square) */
.icon-outline {
  width: 36px;
  height: 36px;
  border: 2px solid #111;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

/* --- MANTLE MATRIX --- */
.mm-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.mm-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 20px;
  width: 100%;
}

.mm-tabs {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px;
  width: 100%;
  max-width: 100%;
}

.mm-tab {
  border: 0;
  background: transparent;
  color: var(--sub);
  flex: 1;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.mm-tab.is-active {
  background: #111;
  color: #fff;
}

.mm-pane {
  display: none;
}

.mm-pane.is-active {
  display: block;
}

.mm-canvas-box {
  position: relative;
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fafafa;
}

#mantle-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mm-sigilbox {
  position: absolute;
  left: 24px;
  top: 24px;
  right: auto;
  bottom: auto;
  transform: none;
  width: min(360px, calc(100% - 48px));
  opacity: 0;
  pointer-events: none;
}

.mm-sigilbox.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mm-profile {
  position: relative;
  width: 100%;
  background: rgba(15, 15, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
  color: #fff;
}

.mm-profile-title {
  font-weight: 650;
  font-size: 16px;
  margin-bottom: 6px;
}

.mm-profile-meta {
  opacity: 0.82;
  font-size: 12px;
  margin-bottom: 10px;
}

.mm-profile-section {
  margin-bottom: 10px;
}

.mm-profile-label {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 4px;
}

.mm-profile-text {
  font-size: 13px;
  line-height: 1.4;
}

.mm-profile-counter {
  font-size: 12px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.mm-profile-link {
  display: inline-block;
  font-size: 12px;
  margin-top: 6px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.mm-profile-link:hover {
  opacity: 1;
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.mm-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.mm-img {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: #f0f0f0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition:
    transform 280ms ease,
    border-radius 280ms ease,
    background-size 280ms ease,
    background-color 280ms ease,
    filter 280ms ease;
}

.mm-card--logo .mm-img {
  background-color: #fff;
  background-size: contain;
}

.mm-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: opacity 180ms ease;
}

.mm-card:hover {
  border-color: #cfcfcf;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.mm-card:hover .mm-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: contain;
  background-color: #ffffff;
  transform: scale(1);
}

.mm-card--logo:hover .mm-img {
  transform: scale(1.03);
}

.mm-card:hover .mm-title {
  opacity: 0;
}

@media (max-width: 700px) {
  .header-inner {
    padding: 24px 16px;
  }

  .mm-wrap {
    padding: 16px 14px 50px;
  }

  .mm-canvas-box {
    height: calc(100vh - 200px);
  }
}
