/* ═══════════════════════════════════════════════════════
   entertain-system.css  — CodeDestiny Entertain Engine v2
   다크 네온 코스믹 테마 | 사주 엔터테인 섹션 전용
   ═══════════════════════════════════════════════════════ */

/* ─── CSS 변수 ──────────────────────────────────────── */
:root {
  --ent-bg:        #060a14;
  --ent-bg2:       #0a0f1e;
  --ent-bg3:       #0d1428;
  --ent-gold:      #c9a84c;
  --ent-gold-glow: rgba(201,168,76,0.18);
  --ent-cyan:      #00e5ff;
  --ent-purple:    #7c3aed;
  --ent-pink:      #f472b6;
  --ent-green:     #4ade80;
  --ent-red:       #f87171;
  --ent-blue:      #60a5fa;
  --ent-glass:     rgba(255,255,255,0.04);
  --ent-glass2:    rgba(255,255,255,0.08);
  --ent-border:    rgba(255,255,255,0.1);
  --ent-border2:   rgba(201,168,76,0.22);
}

/* ─── 공통: 스크롤 페이드인 ────────────────────────── */
.ent-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.ent-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 섹션 공통 ─────────────────────────────────────── */
.ent-section {
  background: var(--ent-glass);
  border: 1px solid var(--ent-border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ent-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ent-section-num {
  font-size: 0.62rem;
  font-weight: 900;
  color: var(--ent-gold);
  letter-spacing: 2px;
  font-family: monospace;
  background: var(--ent-gold-glow);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--ent-border2);
}
.ent-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}


/* ════════════════════════════════════════════════════
   § 명리 헬스 리포트 (Dark Neon)
   ════════════════════════════════════════════════════ */

.ent-health-wrap {
  padding: 4px 0;
}
.ent-health-header {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 16px 18px;
  background: linear-gradient(135deg, rgba(6,10,20,0.95), rgba(124,58,237,0.15), rgba(6,10,20,0.95));
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,0.22);
  position: relative;
  overflow: hidden;
}
.ent-health-header::before {
  content: '🩺';
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 3.5rem;
  opacity: 0.06;
  pointer-events: none;
}
.ent-health-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--ent-cyan);
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.22);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.ent-health-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.ent-health-sub {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2px;
}

/* ─── 오행 게이지 ─────────────────────────────────── */
.ent-gauge-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ent-gauge-row {
  display: grid;
  grid-template-columns: 130px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.ent-gauge-label {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.3;
}
.ent-el-badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.ent-el-badge.target {
  background: rgba(74,222,128,0.14);
  color: var(--ent-green);
  border: 1px solid rgba(74,222,128,0.3);
}
.ent-el-badge.avoid {
  background: rgba(248,113,113,0.14);
  color: var(--ent-red);
  border: 1px solid rgba(248,113,113,0.3);
}
.ent-gauge-bar-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  height: 8px;
}
.ent-gauge-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 1.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.ent-gauge-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 50%;
  filter: brightness(1.6) blur(3px);
  opacity: 0.7;
}
.ent-gauge-pct {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
  font-family: monospace;
}

/* ─── 건강 타임라인 ─────────────────────────────────── */
.ent-timeline {
  position: relative;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
}
.ent-tl-line {
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--ent-cyan),
    var(--ent-gold),
    var(--ent-purple),
    rgba(255,255,255,0.08));
  border-radius: 2px;
  overflow: hidden;
}
/* 트레이서 빛 이동 */
.ent-tl-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 2px;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.85), transparent);
  animation: entTracerFlow 3.5s linear infinite;
}
@keyframes entTracerFlow {
  0%   { top: -40%; }
  100% { top: 130%; }
}
.ent-tl-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0 10px 8px;
}
.ent-tl-dot {
  position: absolute;
  left: -24px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.ent-tl-content { flex: 1; }
.ent-tl-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.ent-tl-text {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.58;
}
.ent-tl-johu .ent-tl-label { color: rgba(0,229,255,0.55); }

/* ─── 식단 카드 ─────────────────────────────────────── */
.ent-food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.ent-food-card {
  background: var(--ent-glass2);
  border: 1px solid var(--ent-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.ent-food-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.ent-food-desc {
  font-size: 0.71rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.4;
}
.ent-avoid-tip {
  font-size: 0.77rem;
  background: rgba(248,113,113,0.07);
  border: 1px solid rgba(248,113,113,0.22);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ent-red);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ent-ex-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(124,58,237,0.07));
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
}
.ent-ex-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ent-cyan);
  margin-bottom: 6px;
}
.ent-ex-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
  margin-bottom: 8px;
}
.ent-ex-stretch {
  font-size: 0.77rem;
  color: var(--ent-green);
  background: rgba(74,222,128,0.07);
  border-radius: 8px;
  padding: 7px 10px;
  line-height: 1.5;
}

/* ─── 멘탈 케어 ─────────────────────────────────────── */
.ent-mental-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(244,114,182,0.07));
  border: 1px solid var(--ent-border2);
  border-radius: 12px;
  padding: 16px;
}
.ent-mental-star {
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--ent-gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ent-mental-advice {
  font-size: 0.85rem;
  color: #f1f5f9;
  line-height: 1.65;
  margin-bottom: 8px;
}
.ent-mental-rx {
  font-size: 0.82rem;
  color: var(--ent-cyan);
  background: rgba(0,229,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  line-height: 1.55;
}
.ent-mental-el-note {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  line-height: 1.5;
}


/* ════════════════════════════════════════════════════
   § RPG 퀘스트 시스템 (Daily Quest + localStorage EXP)
   ════════════════════════════════════════════════════ */

.ent-quest-wrap {
  background: linear-gradient(160deg, #0a0f23 0%, #060a14 100%);
  border: 1px solid var(--ent-border2);
  border-radius: 18px;
  padding: 20px 16px;
  margin-top: 22px;
  position: relative;
  overflow: hidden;
}
.ent-quest-wrap::before {
  content: '⚡';
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 5rem;
  opacity: 0.04;
  pointer-events: none;
  line-height: 1;
}
.ent-quest-header { margin-bottom: 16px; }
.ent-quest-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--ent-gold);
  background: var(--ent-gold-glow);
  border: 1px solid var(--ent-border2);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.ent-quest-title {
  font-size: 1.28rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.ent-quest-sub {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.38);
}

/* EXP 패널 */
.ent-exp-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--ent-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.ent-exp-level {
  font-size: 1rem;
  font-weight: 900;
  color: var(--ent-gold);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.ent-exp-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  height: 6px;
  margin-bottom: 6px;
}
.ent-exp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ent-gold), #ffd700, var(--ent-gold));
  background-size: 200% 100%;
  border-radius: 100px;
  transition: width 0.9s ease;
  animation: entExpShimmer 2.5s linear infinite;
}
@keyframes entExpShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.ent-exp-label {
  font-size: 0.71rem;
  color: rgba(255,255,255,0.38);
}

/* 퀘스트 목록 */
.ent-quest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ent-quest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ent-glass);
  border: 1px solid var(--ent-border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.15s;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.ent-quest-item:hover:not(.done) {
  background: var(--ent-glass2);
  border-color: rgba(201,168,76,0.32);
  transform: translateX(4px);
}
.ent-quest-item.done {
  background: rgba(74,222,128,0.06);
  border-color: rgba(74,222,128,0.28);
  cursor: default;
}
.ent-quest-item.done .ent-quest-text {
  text-decoration: line-through;
  color: rgba(255,255,255,0.3);
}
.ent-quest-item.done .ent-quest-exp {
  color: var(--ent-green);
}
.ent-quest-item.done::after {
  content: '✓';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ent-green);
  font-weight: 900;
  font-size: 1rem;
}
/* 완료 팝 */
@keyframes entQuestPop {
  0%   { transform: scale(1); background: var(--ent-glass); }
  35%  { transform: scale(1.03); background: rgba(74,222,128,0.1); }
  100% { transform: scale(1); }
}
.ent-quest-item.done {
  animation: entQuestPop 0.4s ease forwards;
}
.ent-quest-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}
.ent-quest-text {
  flex: 1;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  padding-right: 20px;
}
.ent-quest-exp {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ent-gold);
  font-family: monospace;
  flex-shrink: 0;
  white-space: nowrap;
}

/* EXP 스파크 팝업 */
.ent-exp-spark {
  position: absolute;
  right: 44px;
  top: 2px;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ent-gold);
  pointer-events: none;
  animation: entSparkFloat 1.25s ease-out forwards;
  z-index: 20;
  text-shadow: 0 0 8px var(--ent-gold);
}
@keyframes entSparkFloat {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  60%  { opacity: 1; transform: translateY(-28px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-44px) scale(0.8); }
}

/* 비밀 잠금 / 해금 */
.ent-secret-lock {
  text-align: center;
  padding: 14px 16px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  color: rgba(255,255,255,0.22);
}
.ent-secret-lock-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.ent-secret-lock-text {
  font-size: 0.79rem;
  line-height: 1.5;
}
.ent-secret-unlock {
  display: none;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(255,215,0,0.05));
  border: 1px solid rgba(201,168,76,0.38);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.ent-secret-unlock.is-visible {
  display: block;
  animation: entSecretReveal 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes entSecretReveal {
  0%   { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.ent-secret-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.ent-secret-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--ent-gold);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.ent-secret-text {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}


/* ════════════════════════════════════════════════════
   § 테토-에겐 심화 분석 (Deepened Personality)
   ════════════════════════════════════════════════════ */

.ent-te-deep-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--ent-border);
}

/* 숨겨진 본성 */
.ent-hidden-wrap {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,10,20,0.8));
  border: 1px solid rgba(124,58,237,0.28);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.ent-hidden-header {
  font-size: 0.76rem;
  font-weight: 900;
  color: rgba(180,140,255,0.9);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ent-hap-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ent-hap-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid;
  line-height: 1.4;
}
.ent-hidden-title {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.ent-hidden-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.68;
}
.ent-hidden-list {
  margin: 10px 0 0 18px;
  padding: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.62;
}
.ent-hidden-list li {
  margin-bottom: 5px;
}

/* 테토/에겐 매력 운영 가이드 전용 */
.ent-guide-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(196,181,253,0.16), transparent 60%),
    linear-gradient(135deg, rgba(17,24,39,0.9), rgba(30,41,59,0.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 6px 18px rgba(0,0,0,0.22);
}
.ent-guide-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -35%;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.ent-guide-wrap.is-visible::after {
  opacity: 1;
  animation: entGuideSweep 1.25s ease-out 0.1s 1;
}
@keyframes entGuideSweep {
  0% { left: -35%; }
  100% { left: 120%; }
}
.ent-guide-wrap.mode-teto {
  border-color: rgba(251,146,60,0.38);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(251,146,60,0.18), transparent 60%),
    linear-gradient(135deg, rgba(29,15,11,0.92), rgba(39,20,18,0.84));
}
.ent-guide-wrap.mode-egen {
  border-color: rgba(244,114,182,0.35);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(244,114,182,0.18), transparent 60%),
    linear-gradient(135deg, rgba(27,14,32,0.92), rgba(31,16,42,0.84));
}
.ent-guide-wrap.mode-neutral {
  border-color: rgba(94,234,212,0.35);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(94,234,212,0.16), transparent 60%),
    linear-gradient(135deg, rgba(12,24,32,0.92), rgba(14,28,39,0.84));
}
.ent-guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ent-guide-header {
  font-size: 0.78rem;
  font-weight: 900;
  color: rgba(230,220,255,0.94);
  letter-spacing: 0.9px;
}
.ent-guide-mode {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  background: rgba(255,255,255,0.06);
}
.ent-guide-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ent-guide-chip {
  --chip-color: #c4b5fd;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--chip-color);
  color: var(--chip-color);
  line-height: 1.4;
  background: rgba(255,255,255,0.04);
}
.ent-guide-title {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}
.ent-guide-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.62;
  margin-bottom: 10px;
}
.ent-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ent-guide-item {
  position: relative;
  padding: 8px 10px 8px 30px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.58;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  opacity: 0;
  transform: translateY(6px);
  transition: transform 0.45s ease, opacity 0.45s ease, border-color 0.25s ease;
}
.ent-guide-item::before {
  content: '✓';
  position: absolute;
  left: 10px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.2);
}
.ent-guide-wrap.is-visible .ent-guide-item {
  opacity: 1;
  transform: translateY(0);
}
.ent-guide-wrap.is-visible .ent-guide-item:nth-child(1) { transition-delay: 0.06s; }
.ent-guide-wrap.is-visible .ent-guide-item:nth-child(2) { transition-delay: 0.13s; }
.ent-guide-wrap.is-visible .ent-guide-item:nth-child(3) { transition-delay: 0.2s; }
.ent-guide-item:hover {
  border-color: rgba(255,255,255,0.24);
}

.ent-guide-wrap.mode-teto .ent-guide-mode,
.ent-guide-wrap.mode-teto .ent-guide-item::before {
  background: rgba(251,146,60,0.26);
}
.ent-guide-wrap.mode-egen .ent-guide-mode,
.ent-guide-wrap.mode-egen .ent-guide-item::before {
  background: rgba(244,114,182,0.26);
}
.ent-guide-wrap.mode-neutral .ent-guide-mode,
.ent-guide-wrap.mode-neutral .ent-guide-item::before {
  background: rgba(94,234,212,0.24);
}

/* 뼈때리는 조언 */
.ent-bone-section {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(10,14,24,0.85), rgba(18,24,38,0.75));
}
.ent-bone-header {
  font-size: 1.02rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.1px;
}
.ent-bone-subtitle {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.46);
  margin-bottom: 11px;
  line-height: 1.5;
}
.ent-bone-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ent-bone-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: border-color 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}
.ent-bone-section.is-visible .ent-bone-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--ent-bone-delay, 0s);
}
.ent-bone-card:hover {
  border-color: rgba(255,255,255,0.24);
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.ent-bone-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}
.ent-bone-body { flex: 1; }
.ent-bone-kicker {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.ent-bone-title {
  font-size: 0.83rem;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
}
.ent-bone-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.73);
  line-height: 1.62;
}
.ent-bone-action {
  margin-top: 7px;
  font-size: 0.75rem;
  line-height: 1.56;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 7px 8px;
}

.ent-bone-section.mode-teto {
  border-color: rgba(251,146,60,0.3);
  background: linear-gradient(135deg, rgba(35,18,14,0.86), rgba(22,13,10,0.74));
}
.ent-bone-section.mode-egen {
  border-color: rgba(244,114,182,0.3);
  background: linear-gradient(135deg, rgba(33,15,32,0.86), rgba(21,11,27,0.74));
}
.ent-bone-section.mode-neutral {
  border-color: rgba(94,234,212,0.3);
  background: linear-gradient(135deg, rgba(13,30,34,0.86), rgba(10,22,24,0.74));
}

/* 극T 테스트 섹션 */
.ent-xt-wrap {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(244,114,182,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(244,114,182,0.2);
  border-radius: 14px;
  padding: 16px;
}
.ent-xt-hidden {
  margin-top: 14px;
}
.ent-xt-hidden .ent-hidden-wrap {
  margin-bottom: 0;
}
.ent-xt-header {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ent-pink);
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.ent-xt-question-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.ent-xt-question {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ent-xt-question:hover { background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.25); }
.ent-xt-question.selected-t { background: rgba(244,114,182,0.1); border-color: rgba(244,114,182,0.4); color: #fff; }
.ent-xt-question.selected-f { background: rgba(0,229,255,0.07); border-color: rgba(0,229,255,0.3); color: #fff; }
.ent-xt-result {
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  display: none;
}
.ent-xt-result.show { display: block; animation: entRevealPop 0.5s ease; }
@keyframes entRevealPop {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ─── 반응형 ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .ent-gauge-row {
    grid-template-columns: 100px 1fr 32px;
    gap: 8px;
  }
  .ent-gauge-label {
    font-size: 0.72rem;
  }
  .ent-food-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ent-quest-item {
    padding: 10px 12px;
    gap: 10px;
  }
  .ent-quest-text {
    font-size: 0.79rem;
  }
  .ent-bone-card {
    padding: 12px;
  }
  .ent-bone-icon {
    font-size: 1.24rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .ent-bone-title {
    font-size: 0.8rem;
  }
  .ent-bone-text {
    font-size: 0.77rem;
  }
  .ent-bone-action {
    font-size: 0.73rem;
    padding: 6px 7px;
  }
  .ent-health-title {
    font-size: 1.25rem;
  }
  .ent-quest-title {
    font-size: 1.1rem;
  }
  .ent-guide-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ent-guide-title {
    font-size: 0.94rem;
  }
  .ent-guide-item {
    font-size: 0.78rem;
  }
}
