/* 혈액형 성격 · 궁합 (/blood-type/ 와 혈액형별 페이지) */
.bt-a { --t1: #3b82f6; --t2: #1e40af; }
.bt-b { --t1: #ef4444; --t2: #991b1b; }
.bt-o { --t1: #10b981; --t2: #047857; }
.bt-ab { --t1: #8b5cf6; --t2: #5b21b6; }
.bt-all { --t1: #f472b6; --t2: #be185d; }

.bt-notice {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.92rem;
  line-height: 1.6;
}
.bt-notice b {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
}

/* 계산기 */
.bt-calc {
  margin-top: 14px;
  scroll-margin-top: 72px; /* 궁합표에서 들어올 때 머리말에 가리지 않게 */
}
.bt-pick {
  display: grid;
  gap: 6px;
}
.bt-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.bt-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.95rem;
}
.bt-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.bt-chip {
  position: relative;
  display: block;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.bt-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.bt-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, border-color 0.15s;
}
.bt-chip:hover span {
  border-color: var(--t1);
}
.bt-chip input:checked + span {
  background: linear-gradient(135deg, var(--t1), var(--t2));
  border-color: var(--t2);
  color: #fff;
}
.bt-chip input:checked + span::before {
  content: '✓';
  font-size: 0.85em;
}
.bt-chip input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.bt-heart {
  text-align: center;
  font-size: 1.4rem;
  line-height: 1;
  margin: 4px 0 -2px;
}
.bt-hint {
  margin: 14px 0 0;
  text-align: center;
}
.bt-calc .result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.bt-text {
  margin: 14px auto 0;
  max-width: 34em;
  text-align: left;
  line-height: 1.75;
}
.bt-tip {
  margin: 12px auto 0;
  max-width: 34em;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 0.94rem;
}
.bt-tip b {
  display: block;
  margin-bottom: 2px;
}
.bt-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 12px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}
.bt-small {
  margin: 8px 0 0;
  font-size: 0.82rem;
}

/* 혈액형 글자 동그라미 */
.bt-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--t1), var(--t2));
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.bt-badge-lg {
  width: 84px;
  height: 84px;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* 혈액형 카드 4개 */
.bt-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.bt-cards a {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}
.bt-cards a:hover {
  border-color: var(--brand);
}
.bt-cards b {
  font-size: 1.15rem;
  margin-top: 6px;
}
.bt-kw {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}
.bt-sum {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
.bt-go {
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* 궁합표 */
.bt-matrix-wrap {
  position: relative; /* 안의 sr-only(절대 위치)가 페이지를 넓히지 않게 */
  overflow-x: auto;
  margin: 4px 0 8px;
}
.bt-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.bt-matrix th,
.bt-matrix td {
  padding: 0;
  text-align: center;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.bt-matrix th {
  padding: 8px 4px;
  font-weight: 800;
  background: var(--surface-2);
}
.bt-matrix td a {
  display: block;
  padding: 10px 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.bt-matrix td a:hover {
  background: var(--brand-soft);
}
.bt-hi,
.bt-good {
  color: var(--go);
}
.bt-low {
  color: var(--wait);
}

/* 혈액형별 페이지 */
.bt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bt-sumcard {
  margin-top: 14px;
}
.bt-kws {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bt-kws li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9rem;
}
.bt-traits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.bt-traits > div {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.bt-traits ul {
  margin: 6px 0 0;
  padding-left: 1.15em;
}
.bt-traits li {
  margin-bottom: 4px;
}
.prose .bt-rank {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: grid;
  gap: 8px;
}
.prose .bt-rank li {
  margin: 0;
}
.bt-rank a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.bt-rank a:hover {
  border-color: var(--brand);
}
.bt-rank .bt-badge {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}
.bt-rank-main {
  flex: 1;
  min-width: 0;
  display: grid;
}
.bt-rank-main small {
  color: var(--muted);
  font-size: 0.84rem;
}
.bt-rank-score {
  display: grid;
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bt-rank-score small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.bt-other {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.bt-other a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
}
.bt-other a:hover {
  border-color: var(--brand);
}
.bt-other .bt-badge {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}
