/* ============ 디지바이스 파트너 허브 — Superloopy DESIGN.md 구현 ============ */
:root {
  --bg: #070b14;
  --surface: #0d1421;
  --surface-2: #141f2f;
  --surface-3: #1a273b;
  --fg: #e6edf8;
  --muted: #8a97ac;
  --border: rgba(230, 237, 248, 0.09);
  --border-strong: rgba(230, 237, 248, 0.18);
  --accent: #4fd2ff;
  --char: #4fd2ff;
  --danger: #ef5878;
  --good: #67d19b;
  --warn: #f5a623;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;
  --s24: 96px;
  --s28: 112px;

  --font-display: 'Gugi', sans-serif;
  --font-ui: 'Orbitron', monospace;
  --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LCD 미세 스캔라인 & 사이버 그리드 배경 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(79, 210, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 210, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

/* ---------- 공통 ---------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s6);
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--s28) 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 8px var(--accent);
}

.detail .sec-label {
  color: var(--char);
}
.detail .sec-label::before {
  background: var(--char);
  box-shadow: 0 0 8px var(--char);
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 var(--s4);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sec-desc {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 var(--s8);
  font-size: 15.5px;
}

.count-chip {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.6);
  border-radius: 99px;
  padding: 3px 12px;
  vertical-align: middle;
  margin-left: var(--s2);
}

.detail .count-chip {
  color: var(--char);
  border-color: color-mix(in srgb, var(--char) 30%, transparent);
}

/* 버튼 — 한쪽 모서리 클립 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  background: rgba(79, 210, 255, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(79, 210, 255, 0.4);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 14px rgba(79, 210, 255, 0.25);
}

.btn-accent:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 24px rgba(79, 210, 255, 0.6);
}

.btn-copy {
  border-color: var(--good);
  color: var(--good);
  background: rgba(103, 209, 155, 0.06);
}

.btn-copy:hover {
  background: var(--good);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(103, 209, 155, 0.4);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(239, 88, 120, 0.06);
}

.btn-danger:hover {
  background: var(--danger);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(239, 88, 120, 0.4);
}

.btn-mini {
  padding: 6px 14px;
  font-size: 12px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

/* ---------- 네비 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 14px var(--s6);
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.15s;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 12px var(--accent);
}

.detail .logo-dot {
  background: var(--char);
  box-shadow: 0 0 12px var(--char);
}

.nav-links {
  display: flex;
  gap: var(--s6);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--muted);
  transition: all 0.16s;
  border-bottom: 2px solid transparent;
  padding: 4px 2px;
}

.nav-links a:hover {
  color: var(--fg);
  border-color: var(--accent);
}

.detail .nav-links a:hover {
  border-color: var(--char);
}

/* ---------- 홈 히어로 ---------- */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 108%, rgba(79, 210, 255, 0.16), transparent 65%), var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 130px var(--s6) var(--s16);
  max-width: 860px;
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin: 0 0 var(--s4);
  text-transform: uppercase;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79, 210, 255, 0.08);
  border: 1px solid rgba(79, 210, 255, 0.2);
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.18;
  margin: 0 0 var(--s6);
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #c4f3ff 50%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto var(--s8);
  font-size: 16.5px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: var(--s8);
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 var(--s8);
}

.hstat {
  text-align: center;
  padding: var(--s3) var(--s6);
  background: rgba(13, 20, 33, 0.7);
  border: 1px solid var(--border);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  min-width: 110px;
}

.hstat b {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 26px;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.detail .hstat b {
  color: var(--char);
  text-shadow: 0 0 18px color-mix(in srgb, var(--char) 40%, transparent);
}

.hstat span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.hero-fade {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  z-index: 2;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* 데이터 큐브 파티클 */
.hero-cubes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.cube {
  position: absolute;
  bottom: -14px;
  background: var(--accent);
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: var(--o, 0.5);
  }
  85% {
    opacity: var(--o, 0.5);
  }
  100% {
    transform: translateY(-92vh) rotate(200deg);
    opacity: 0;
  }
}

.hero-ring {
  position: absolute;
  z-index: 1;
  width: min(74vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 210, 255, 0.16);
  box-shadow: inset 0 0 80px rgba(79, 210, 255, 0.05);
  pointer-events: none;
}

.hero-ring::before {
  content: "";
  position: absolute;
  inset: -42px;
  border-radius: 50%;
  border: 1px dashed rgba(79, 210, 255, 0.1);
}

/* ---------- 파트너 카드 그리드 ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--s6);
}

.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pc) 70%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px color-mix(in srgb, var(--pc) 20%, transparent);
}

.pcard-art {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #080c15;
}

.pcard.featured .pcard-art {
  aspect-ratio: 16/9;
}

.pcard-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
}

.pcard:hover .pcard-art img {
  transform: scale(1.06);
}

.pcard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(7, 11, 20, 0.95));
}

.pcard-feat {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--pc);
  padding: 4px 10px;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}

.pcard-body {
  position: relative;
  padding: var(--s4) var(--s6) var(--s6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard-name {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  line-height: 1.3;
}

.pcard-en {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--pc);
  text-transform: uppercase;
  margin: 2px 0 var(--s2);
}

.pcard-tag {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 var(--s4);
  line-height: 1.6;
  flex: 1;
}

.pcard-stats {
  display: flex;
  gap: var(--s4);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: var(--s3);
  border-top: 1px dashed var(--border);
}

.pcard-stats b {
  color: var(--fg);
  font-weight: 600;
}

.pcard-go {
  position: absolute;
  right: var(--s6);
  bottom: var(--s6);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pc);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

.pcard:hover .pcard-go {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   디지바이스 커스텀 빌더 (CUSTOM BUILDER CONSOLE)
   ========================================================================= */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s6);
  align-items: start;
}

.builder-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s6);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.builder-group-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 var(--s3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.builder-presets {
  display: flex;
  gap: var(--s2);
}

.builder-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--s2);
}

.bcard {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.bcard:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.bcard.selected {
  border-color: var(--bc, var(--accent));
  background: color-mix(in srgb, var(--bc, var(--accent)) 10%, var(--surface));
  box-shadow: 0 0 12px color-mix(in srgb, var(--bc, var(--accent)) 25%, transparent);
}

.bcard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

.bcard.selected .bcard-avatar {
  border-color: var(--bc, var(--accent));
}

.bcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.bcard-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
  min-height: 2.4em;            /* 이름이 두 줄이어도 카드 높이가 흔들리지 않게 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.bcard-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
}

.bcard.selected .bcard-check {
  background: var(--bc, var(--accent));
  border-color: var(--bc, var(--accent));
  color: var(--bg);
  font-weight: 900;
}

/* 세그먼트 버튼 컨트롤 */
.seg-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.bcard-evo {
  outline: 1px dashed color-mix(in srgb, var(--bc) 55%, transparent);
  outline-offset: -1px;
}

.bcard-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #05121c;
  background: var(--bc);
  pointer-events: none;
}

.seg-note {
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
  background: rgba(79, 210, 255, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.seg-btn {
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-radius: 4px;
  transition: all 0.16s;
  text-align: center;
}

.seg-btn:hover {
  color: var(--fg);
}

.seg-btn.active {
  background: var(--surface-2);
  color: var(--accent);
  border: 1px solid rgba(79, 210, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 옵션 체크박스 리스트 */
.opt-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.opt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg);
  cursor: pointer;
}

.opt-item input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* 프리뷰 뷰어 */
.builder-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 90px;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s4) var(--s6);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.5);
  flex-wrap: wrap;
  gap: var(--s3);
}

.preview-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
}

.preview-stats {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.preview-actions {
  display: flex;
  gap: var(--s2);
}

.preview-pre {
  margin: 0;
  padding: var(--s6);
  max-height: 600px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
  color: #c9d4e6;
  font-family: 'Pretendard', monospace;
  background: #090e18;
}

/* ---------- 프로토콜 카드 ---------- */
.proto-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s4);
}

.proto-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--s6);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  transition: border-color 0.2s;
}

.proto-card:hover {
  border-color: var(--border-strong);
}

.section-alt .proto-card {
  background: var(--bg);
}

.proto-no {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin: 0 0 var(--s2);
}

.proto-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 var(--s3);
}

.proto-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: var(--s3) 0 0;
}

.proto-card p b {
  color: var(--fg);
}

.proto-code {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(79, 210, 255, 0.07);
  border: 1px solid rgba(79, 210, 255, 0.18);
  padding: 10px 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.proto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.proto-list li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.proto-list li:last-child {
  border-bottom: none;
}

.proto-list b {
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

/* ---------- 지침 콘솔 ---------- */
.doc-console {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: var(--s4);
  align-items: start;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.doc-item {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s3) var(--s4);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
  width: 100%;
}

.doc-item:hover {
  background: var(--surface-2);
  transform: translateX(3px);
}

.doc-item.on {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.detail .doc-item.on {
  border-color: var(--char);
  box-shadow: inset 3px 0 0 var(--char);
}

.doc-item-label {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: 14px;
}

.doc-item-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-best {
  background: var(--good);
  color: var(--bg);
}
.badge-warn {
  background: var(--danger);
  color: var(--bg);
}
.badge-en {
  background: var(--accent);
  color: var(--bg);
}
.badge-solo {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
}
.badge-fit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.badge-link {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
}

.doc-view {
  background: var(--surface);
  border: 1px solid var(--border);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  display: flex;
  flex-direction: column;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s4);
  padding: var(--s4) var(--s6);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.4);
  flex-wrap: wrap;
}

.doc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0;
}

.doc-desc {
  color: var(--muted);
  font-size: 13.5px;
  margin: 4px 0 0;
  max-width: 520px;
}

.doc-meta {
  font-family: var(--font-ui);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 6px 0 0;
}

.detail .doc-meta {
  color: var(--char);
}

.doc-pre {
  margin: 0;
  padding: var(--s6);
  max-height: 540px;
  overflow: auto;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-all;
  color: #c9d4e6;
  font-family: 'Pretendard', monospace;
  background: #090e18;
}

/* ---------- 캐릭터 히어로 ---------- */
.chero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.chero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: saturate(1.08) brightness(0.85);
  transform: scale(1.02);
}

.chero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 11, 20, 0.4) 0%,
    rgba(7, 11, 20, 0.65) 50%,
    var(--bg) 96%
  );
}

.chero-inner {
  position: relative;
  z-index: 2;
  padding: 140px var(--s6) var(--s24);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.chero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7.5vw, 84px);
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.85);
}

.chero-en {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--char);
  text-transform: uppercase;
  margin: var(--s2) 0 var(--s4);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

.chero .hero-label {
  color: var(--char);
  border-color: color-mix(in srgb, var(--char) 40%, transparent);
  background: color-mix(in srgb, var(--char) 12%, transparent);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.chero-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin: 0 0 var(--s4);
}

.chip {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 5px 13px;
  border: 1px solid rgba(230, 237, 248, 0.28);
  border-radius: 99px;
  background: rgba(7, 11, 20, 0.6);
  backdrop-filter: blur(8px);
}

.chero-quote {
  font-size: 17.5px;
  color: var(--fg);
  max-width: 580px;
  margin: 0 0 var(--s6);
  padding-left: var(--s4);
  border-left: 3px solid var(--char);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  font-style: italic;
}

.chero .hero-stats {
  justify-content: flex-start;
}

/* 파트너 도크 (세로 픽커) */
.party-dock {
  position: absolute;
  right: var(--s6);
  top: 96px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 4px;
}

.party-dock::-webkit-scrollbar {
  width: 4px;
}

.dock-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex-shrink: 0;
}

.dock-ball img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.dock-ball:hover {
  transform: scale(1.14);
  border-color: var(--char);
  box-shadow: 0 0 16px color-mix(in srgb, var(--char) 60%, transparent);
}

.dock-ball.on {
  border-color: var(--char);
  box-shadow: 0 0 18px color-mix(in srgb, var(--char) 75%, transparent);
  transform: scale(1.08);
}

.dock-ball .tip {
  position: absolute;
  right: 115%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: 12px;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dock-ball:hover .tip {
  opacity: 1;
}

/* ---------- 프로필 ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: var(--s8);
  align-items: start;
}

.persona-copy {
  font-size: 17px;
  line-height: 1.85;
  margin: 0 0 var(--s6);
  color: var(--fg);
  padding: var(--s4) var(--s6);
  background: var(--surface);
  border-left: 4px solid var(--char);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.pblock {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--s6);
  margin-bottom: var(--s4);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pblock:hover {
  border-color: color-mix(in srgb, var(--char) 40%, transparent);
}

.pblock-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--char);
  margin: 0 0 var(--s4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pblock-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--char);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.pblock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.pblock-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.pblock-list li:last-child {
  border-bottom: none;
}

.pblock-warn {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}

.pblock-warn .pblock-title {
  color: var(--danger);
}

.pblock-warn .pblock-title::before {
  background: var(--danger);
}

.combat-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.combat-row {
  display: grid;
  grid-template-columns: 44px 150px 1fr;
  gap: var(--s3);
  align-items: baseline;
  padding: 12px var(--s3);
  border-bottom: 1px dashed var(--border);
  transition: background 0.15s;
  border-radius: 4px;
}

.combat-row:hover {
  background: rgba(230, 237, 248, 0.03);
}

.combat-row.skill-ult {
  background: color-mix(in srgb, var(--char) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--char) 40%, transparent);
  margin: 6px 0;
  box-shadow: 0 0 16px color-mix(in srgb, var(--char) 15%, transparent);
}

.combat-no {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: var(--char);
}

.combat-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}

.combat-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.combat-row.skill-ult .combat-name {
  color: var(--char);
}

.profile-art {
  margin: 0;
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s3);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.profile-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.profile-art figcaption {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 10px 4px 4px;
  text-transform: uppercase;
}

/* ---------- 갤러리 ---------- */
.gal-controls {
  display: flex;
  gap: var(--s4);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--s6);
}

.cat-chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

.cat-chip {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  transition: all 0.16s;
  background: var(--bg);
}

.cat-chip:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.cat-chip.on {
  border-color: var(--char);
  color: var(--char);
  background: color-mix(in srgb, var(--char) 12%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--char) 25%, transparent);
}

.cat-chip.adult {
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}

.cat-chip.adult.on {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--danger) 30%, transparent);
}

.gal-search {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 9px 18px;
  border-radius: 99px;
  min-width: 220px;
  outline: none;
  font: inherit;
  font-size: 14px;
  margin-left: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gal-search:focus {
  border-color: var(--char);
  box-shadow: 0 0 12px color-mix(in srgb, var(--char) 20%, transparent);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: var(--s3);
}

.gcard {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, box-shadow 0.2s;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.gcard:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--char) 65%, transparent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 14px color-mix(in srgb, var(--char) 20%, transparent);
}

.gthumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #090e18;
  overflow: hidden;
}

.gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.gcard:hover .gthumb img {
  transform: scale(1.05);
}

.gcard.blurred .gthumb img {
  filter: blur(20px) saturate(0.8);
  transform: scale(1.1);
}

.gcard.blurred .gthumb::after {
  content: "18+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--danger);
  background: rgba(7, 11, 20, 0.6);
  font-size: 16px;
  text-shadow: 0 0 12px rgba(239, 88, 120, 0.8);
}

.gno {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 2;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--fg);
  background: rgba(7, 11, 20, 0.86);
  padding: 3px 8px;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.gtag {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  color: var(--bg);
  background: var(--danger);
}

.gtag.futa {
  background: #b06df0;
}

.glabel {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  min-height: 46px;
}

.gcard.missing .gthumb::before {
  content: "서버 업로드 대기";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--danger);
  border: 1px dashed color-mix(in srgb, var(--danger) 55%, transparent);
  margin: 8px;
  background: rgba(7, 11, 20, 0.7);
  text-align: center;
}

.gal-empty {
  color: var(--muted);
  text-align: center;
  padding: var(--s16) 0;
}

/* ---------- 18+ 게이트 ---------- */
.gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
}

.gate {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent);
  max-width: 440px;
  padding: var(--s8);
  text-align: center;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.gate-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--danger);
  border: 2px solid var(--danger);
  border-radius: 8px;
  padding: 6px 16px;
  margin: 0 0 var(--s4);
  box-shadow: 0 0 16px color-mix(in srgb, var(--danger) 30%, transparent);
}

.gate h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 var(--s3);
}

.gate p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 var(--s6);
}

.gate-btns {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap}

/* ---------- 라이트박스 ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 11, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-fig {
  margin: 0;
  max-width: min(92vw, 940px);
  text-align: center;
}

.lb-fig img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.lb-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  margin-top: var(--s4);
  flex-wrap: wrap;
  font-size: 15px;
}

.lb-no {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--char);
  letter-spacing: 0.08em;
}

.lb-btns {
  display: flex;
  gap: var(--s2);
}

.lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 34px;
  color: var(--muted);
  z-index: 2;
  transition: color 0.15s, transform 0.15s;
}

.lb-close:hover {
  color: var(--fg);
  transform: scale(1.1);
}

.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  color: var(--muted);
  padding: var(--s4);
  z-index: 2;
  transition: color 0.15s, transform 0.15s;
}

.lb-prev {
  left: 8px;
}
.lb-next {
  right: 8px;
}

.lb-prev:hover,
.lb-next:hover {
  color: var(--fg);
  transform: translateY(-50%) scale(1.15);
}

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 99;
  background: var(--surface-2);
  border: 1px solid var(--good);
  color: var(--good);
  font-family: var(--font-ui);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px color-mix(in srgb, var(--good) 30%, transparent);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 푸터 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s12) var(--s6);
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.foot-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin: 0 0 var(--s2);
  text-transform: uppercase;
}

.foot-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.foot-sub a {
  color: var(--accent);
}

/* ---------- 리빌 애니메이션 (기본 가시성 보장) ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 반응형 (Mobile & Tablet) ---------- */
@media (max-width: 1020px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pcard,
  .pcard.featured {
    grid-column: span 1;
  }
  .proto-grid {
    grid-template-columns: 1fr;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .builder-preview {
    position: static;
  }
  .doc-console {
    grid-template-columns: 1fr;
  }
  .doc-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .doc-item {
    flex: 1 1 200px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-art {
    position: static;
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: var(--s3);
    font-size: 12px;
  }
  .section {
    padding: var(--s16) 0;
  }
  .partner-grid {
    grid-template-columns: 1fr;
  }
  .party-dock {
    position: fixed;
    top: auto;
    bottom: var(--s4);
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    background: rgba(13, 20, 33, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 12px;
    max-height: none;
    max-width: 90vw;
  }
  .dock-ball {
    width: 38px;
    height: 38px;
  }
  .dock-ball .tip {
    display: none;
  }
  .chero-inner {
    padding-bottom: var(--s16);
  }
  .gal-search {
    margin-left: 0;
    width: 100%;
  }
  .gal-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  }
  .combat-row {
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
  }
  .combat-desc {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 모바일 가로 넘침 방지 (2026-08-21) ---------- */
html { overflow-x: hidden; }
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); }
.proto-card, .partner-card { min-width: 0; }
.proto-card code, .proto-card pre, .proto-card p { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .proto-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ── 파트너 선택 탭 ── */
.pick-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 var(--s3);
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.pick-tab {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .18s cubic-bezier(.16,1,.3,1);
}
.pick-tab b {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 12%, transparent);
  font-size: 11px;
  font-weight: 800;
}
.pick-tab:hover { color: var(--fg); }
.pick-tab.is-on {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.pick-tab.is-on b { background: var(--accent); color: var(--bg); }

/* 썸네일이 늦게 뜨거나 실패해도 카드가 비어 보이지 않게 */
.bcard-avatar { background: color-mix(in srgb, var(--fg) 7%, var(--bg)); position: relative; }
.bcard-avatar::after {
  content: attr(data-ini);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 15px; font-weight: 800;
  color: color-mix(in srgb, var(--fg) 35%, transparent);
  z-index: 0;
}
.bcard-avatar img { position: relative; z-index: 1; }

/* ── 테이머의 파트너 고르기 ── */
.own-block {
  margin-top: var(--s3);
  padding: var(--s3);
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 35%, var(--border));
}
.own-title {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--tc, var(--accent));
  margin-bottom: var(--s2);
}
.own-title b {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tc, var(--accent)) 20%, transparent);
  font-size: 11px;
}
