/* ==========================================================================
   STORE · COMPLETE · SPACE · REPORT — 별 경제와 신규 페이지 컴포넌트
   기존 :root 토큰만 사용한다. 새 색을 하드코딩하면 버블검 라이트에서 깨진다.
   ========================================================================== */

/* --------------------------------------------------------------------------
   상단 nav 별 잔액 배지
   -------------------------------------------------------------------------- */
.btn-nav-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  border: 1px solid var(--border-pink);
  color: var(--text-on-neon);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s ease;
}
.btn-nav-star:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow-card); }
.btn-nav-star.active { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.btn-nav-star .star-ico { font-size: 14px; line-height: 1; }
.btn-nav-star .star-bal { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
/* 잔액만 있으면 "표시"로 읽힌다. 충전이라는 말이 있어야 진입점이 된다. */
.btn-nav-star .star-cta {
  margin-left: 6px;
  padding-left: 7px;
  border-left: 1px solid rgba(255,255,255,.35);
  font-size: 11.5px;
  font-weight: 700;
  opacity: .95;
}
@media (max-width: 400px) { .btn-nav-star .star-cta { display: none; } }

/* 별 획득 시 튀어오르는 반응 — app 쪽에서 .bump 클래스를 잠깐 붙인다 */
.btn-nav-star.bump { animation: starBump .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes starBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   공통 — 페이지 히어로 (서브페이지용 축약형)
   -------------------------------------------------------------------------- */
.page-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 118px 20px 8px;
  text-align: center;
}
.page-head .page-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 10px;
}
.page-head h1 {
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 900;
  line-height: 1.28;
  color: var(--text-pure);
  margin: 0 0 12px;
}
.page-head .page-sub {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   별 스토어 — 잔액 히어로
   -------------------------------------------------------------------------- */
.balance-hero {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 26px 24px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-inner));
  border: 1px solid var(--border-box-bright);
  box-shadow: 0 18px 46px var(--shadow-box);
  text-align: center;
}
.balance-hero .bh-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.balance-hero .bh-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--neon-yellow);
  font-variant-numeric: tabular-nums;
}
.balance-hero .bh-won {
  font-size: 16px;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.balance-hero .bh-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hair);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   충전 패키지 그리드
   -------------------------------------------------------------------------- */
.charge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
.charge-card {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: var(--radius-md, 14px);
  background: var(--bg-card);
  border: 1px solid var(--border-box-purple);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), border-color .22s ease, box-shadow .22s ease;
}
.charge-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
  box-shadow: 0 14px 34px var(--shadow-card);
}
.charge-card.is-first {
  border-color: var(--neon-yellow);
  background: linear-gradient(165deg, var(--bg-card), var(--bg-insight-a));
}
.charge-card .cc-flag {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px 5px;
  border-radius: 0 0 10px 10px;
  background: var(--neon-yellow);
  color: var(--text-on-cyan);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.charge-card .cc-star {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--neon-yellow);
  font-variant-numeric: tabular-nums;
}
.charge-card .cc-star small { font-size: 16px; color: var(--text-sub); font-weight: 700; }
.charge-card .cc-won {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-pure);
  font-variant-numeric: tabular-nums;
}
.charge-card .cc-bonus {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-cell);
  border: 1px solid var(--border-purple);
  font-size: 16px;
  font-weight: 800;
  color: var(--neon-lime);
}
.charge-card .cc-unit {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   구독 티어 2종
   -------------------------------------------------------------------------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.tier-card {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-box-purple);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-card.is-best {
  border-color: var(--border-pink);
  box-shadow: 0 0 0 1px var(--border-pink), 0 18px 44px var(--shadow-box);
}
.tier-card .tc-flag {
  position: absolute;
  top: -11px; left: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: var(--text-on-neon);
  font-size: 16px;
  font-weight: 900;
}
.tier-card .tc-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: var(--text-pure);
}
.tier-card .tc-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--neon-cyan);
  font-variant-numeric: tabular-nums;
}
.tier-card .tc-price span { font-size: 16px; color: var(--text-muted); font-weight: 700; }
.tier-card .tc-give {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-hair);
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
}
.tier-card .tc-give b { color: var(--neon-yellow); font-variant-numeric: tabular-nums; }
/* 혜택 목록이 카드의 남는 높이를 흡수한다. 그래야 항목 수가 달라도
   두 카드의 CTA가 같은 높이·같은 줄에 선다. */
.tier-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
/* .btn-offer-yes의 flex:1은 가로로 놓인 버튼 쌍을 위한 값이다.
   세로 카드 안에서는 버튼이 남은 높이를 전부 먹어 버리므로 여기서 끈다. */
.tier-card .btn-offer-yes { flex: 0 0 auto; width: 100%; }
.tier-card li {
  display: flex;
  gap: 8px;
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.6;
}
.tier-card li i { color: var(--neon-lime); font-style: normal; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   결제 완료 — 업셀 스택
   -------------------------------------------------------------------------- */
.done-hero {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 20px 0;
}
.done-check {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 2px solid var(--neon-lime);
  font-size: 36px;
  animation: doneIn .6s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes doneIn {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1);  opacity: 1; }
}
.offer-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-inner));
  border: 1px solid var(--border-box-bright);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card .oc-kicker {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}
.offer-card .oc-title { font-size: 18px; font-weight: 900; color: var(--text-pure); line-height: 1.45; }
.offer-card .oc-desc { font-size: 16px; color: var(--text-sub); line-height: 1.75; }
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.offer-price .op-now { font-size: 30px; font-weight: 900; color: var(--neon-yellow); }
.offer-price .op-was { font-size: 16px; color: var(--text-muted); }
.offer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* 거절 버튼을 흐리게 처리하지 않는다 — 다크패턴 "잘못된 계층구조" 회피 */
.btn-offer-yes,
.btn-offer-no {
  flex: 1 1 150px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.btn-offer-yes {
  border: 1px solid var(--border-pink);
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: var(--text-on-neon);
}
.btn-offer-no {
  border: 1px solid var(--border-input);
  background: var(--bg-input);
  color: var(--text-sub);
}
.btn-offer-yes:hover, .btn-offer-no:hover { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   힐링스페이스 — 3포맷
   -------------------------------------------------------------------------- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.format-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-box-purple);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.format-card .fc-tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-cell);
  border: 1px solid var(--border-purple);
  font-size: 16px;
  font-weight: 800;
  color: var(--neon-cyan);
}
.format-card .fc-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: var(--text-pure);
}
.format-card .fc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 16px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.format-card .fc-desc { font-size: 16px; color: var(--text-sub); line-height: 1.78; }
.format-card .fc-price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-hair);
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--neon-yellow);
  font-variant-numeric: tabular-nums;
}
.format-card .fc-price span { font-size: 16px; color: var(--text-muted); font-weight: 700; }

/* 실제 정원 기반 잔여 표시 — 허위 희소성이 아니다 */
.seat-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-hair);
  font-size: 16px;
  color: var(--text-sub);
}
.seat-dots { display: flex; gap: 4px; }
.seat-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gauge-track);
  display: block;
}
.seat-dots i.taken { background: var(--neon-pink); }

/* 주간 슬롯 표 */
.slot-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.slot-table th, .slot-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-hair);
  font-variant-numeric: tabular-nums;
}
.slot-table th { color: var(--text-muted); font-size: 16px; font-weight: 800; letter-spacing: .06em; }
.slot-table td.off { color: var(--text-muted); opacity: .55; }
.slot-table td.sat { color: var(--neon-cyan); font-weight: 800; }

/* --------------------------------------------------------------------------
   리포트 뷰어
   -------------------------------------------------------------------------- */
.report-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 26px 34px;
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-box-purple);
}
.report-shell h2 {
  font-size: 21px;
  font-weight: 900;
  color: var(--text-pure);
  margin: 0 0 6px;
}
.report-shell .rs-meta {
  font-size: 16px;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-hair);
}
.report-block { margin-bottom: 26px; }
.report-block h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--neon-cyan);
  margin: 0 0 10px;
}
.report-block p { font-size: 16px; color: var(--text-sub); line-height: 1.9; margin: 0 0 10px; }

/* 로딩 → 공개 연출. 계산이 실제로 도는 동안만 보여준다 */
.reveal-stage {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 26px;
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-card);
  border: 1px solid var(--border-box-purple);
  text-align: center;
}
.reveal-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--gauge-track);
  overflow: hidden;
  margin: 20px 0 12px;
}
.reveal-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
  transition: width .5s ease;
}
.reveal-step { font-size: 16px; color: var(--text-sub); min-height: 1.6em; }

/* --------------------------------------------------------------------------
   공통 유틸
   -------------------------------------------------------------------------- */
.sec-wrap { max-width: 1180px; margin: 0 auto; padding: 40px 20px 0; }
.sec-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text-pure);
  margin: 0 0 6px;
  text-align: center;
}
.sec-lead {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.75;
  margin: 0 auto 22px;
  max-width: 560px;
}
.won-hint { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.notice-strip {
  max-width: 760px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-inner);
  border: 1px solid var(--border-hair);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 모션을 끈 사용자에게도 정보는 100% 동일해야 한다 */
@media (prefers-reduced-motion: reduce) {
  .btn-nav-star, .charge-card, .btn-offer-yes, .btn-offer-no,
  .done-check, .btn-nav-star.bump, .reveal-bar i {
    animation: none !important;
    transition: none !important;
  }
  .charge-card:hover, .btn-nav-star:hover,
  .btn-offer-yes:hover, .btn-offer-no:hover { transform: none; }
}

/* ==========================================================================
   서브페이지 활력 — 캐릭터 · 이모지 · 그래프 카드 · 미세 애니메이션
   메인만 화려하고 서브는 표뿐이던 문제를 해소한다.
   ========================================================================== */

/* 서브페이지 히어로 — 띠 배경 위에 마스코트가 떠 있다 */
.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 20px 42px;
  min-height: 268px;
  background-color: #06020e;
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--border-hair);
}
/* 가독성 오버레이는 글자가 놓인 왼쪽 절반에서만 일한다.
   cover가 1600x900 자산을 가로 기준으로 맞추므로 캐릭터의 가로 위치는
   뷰포트와 무관하게 55~93%로 고정된다. 62%에서 완전히 투명해져
   캐릭터는 index 히어로와 같은 원본 채도로 보인다.
   글자 끝(약 50%)까지의 알파는 종전과 같은 수준을 유지한다. */
.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg,
    rgba(6,2,14,.97) 0%, rgba(6,2,14,.93) 40%, rgba(6,2,14,.72) 50%,
    rgba(6,2,14,.28) 56%, rgba(6,2,14,0) 62%);
  z-index: 1;
}
.sub-hero > * { position: relative; z-index: 2; }
.sub-hero-inner { max-width: 1180px; margin: 0 auto; }
.sub-hero h1 {
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 900; line-height: 1.3; margin: 10px 0 12px;
  color: var(--hero-text);
}
.sub-hero h1 em { font-style: normal; color: var(--pink-ink); }
.sub-hero p { font-size: 14.5px; color: var(--hero-text); opacity: .88; line-height: 1.8; margin: 0; }
@media (max-width: 900px) {
  .sub-hero { background-position: 76% center; padding: 92px 18px 28px; }
  .sub-hero::before {
    background: linear-gradient(180deg, rgba(6,2,14,.6) 0%, rgba(6,2,14,.9) 55%, rgba(6,2,14,.97) 100%);
  }
}

/* 이모지 칩 — 페이지 성격을 한눈에 */
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.emoji-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-glass); border: 1px solid var(--border-soft);
  font-size: 16px; font-weight: 700; color: var(--text-sub);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.emoji-chip:hover { transform: translateY(-2px); border-color: var(--neon-pink); }
.emoji-chip i { font-style: normal; font-size: 16px; }

/* 떠다니는 마스코트 */
.float-mascot {
  position: absolute; right: 3%; bottom: -6px;
  width: clamp(120px, 17vw, 190px);
  z-index: 2; pointer-events: none;
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.5));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-13px) rotate(1.5deg); }
}
@media (max-width: 640px) { .float-mascot { width: 108px; right: -6px; opacity: .55; } }

/* 그래프 카드 */
.viz-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px; max-width: 1180px; margin: 0 auto;
}
.viz-card {
  padding: 20px 18px 16px; border-radius: var(--radius-lg, 20px);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-inner));
  border: 1px solid var(--border-box-purple);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s ease;
}
.viz-card:hover { transform: translateY(-3px); border-color: var(--border-pink); }
.viz-card .vc-head { display: flex; align-items: center; gap: 8px; }
.viz-card .vc-ico { font-size: 17px; }
.viz-card .vc-title { font-size: 16px; font-weight: 800; color: var(--text-pure); }
.viz-card .vc-sub { font-size: 16px; color: var(--text-muted); margin-left: auto; }
.viz-card .viz-box { width: 100%; height: 168px; display: block; }
.viz-card .vc-foot { font-size: 16px; color: var(--text-sub); line-height: 1.7; }
.viz-card .vc-foot b { color: var(--neon-cyan); }

/* 큰 숫자 스탯 */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px; max-width: 1180px; margin: 0 auto;
}
.stat-tile {
  padding: 16px 14px; border-radius: var(--radius-md, 14px);
  background: var(--bg-card); border: 1px solid var(--border-box-purple);
  text-align: center;
}
.stat-tile .st-ico { font-size: 19px; }
.stat-tile .st-val {
  font-family: var(--font-display); font-size: 27px; font-weight: 900;
  color: var(--neon-yellow); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 3px;
}
.stat-tile .st-label { font-size: 16px; color: var(--text-muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .float-mascot { animation: none; }
  .emoji-chip:hover, .viz-card:hover { transform: none; }
}

/* ==========================================================================
   고민 살롱 — 커뮤니티 레이아웃
   글 목록만 있으면 게시판이다. "지금 사람들이 여기 있다"가 보여야 살롱이 된다.
   ========================================================================== */

/* 전광판 티커 */
.ticker-wrap {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair);
  background: linear-gradient(90deg, var(--bg-card-inner), var(--bg-card), var(--bg-card-inner));
  padding: 11px 0; margin: 0 0 4px;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none;
}
.ticker-wrap::before { left: 0;  background: linear-gradient(90deg, var(--bg-page), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(270deg, var(--bg-page), transparent); }
.ticker { display: flex; gap: 34px; width: max-content; animation: tickerRun 34s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; color: var(--text-sub); white-space: nowrap;
}
.ticker-item i { font-style: normal; font-size: 16px; }
.ticker-item b { color: var(--neon-cyan); font-weight: 800; }
.ticker-item .t-time { color: var(--text-muted); font-size: 16px; }

/* 공지 */
.notice-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  max-width: 1180px; margin: 16px auto 0; padding: 13px 16px;
  border-radius: var(--radius-md, 14px);
  background: linear-gradient(100deg, var(--accent-soft, var(--bg-insight-a)), var(--bg-card));
  border: 1px solid var(--border-purple);
}
.notice-bar .nb-tag {
  padding: 3px 9px; border-radius: 999px; font-size: 16px; font-weight: 900;
  background: var(--neon-yellow); color: var(--text-on-cyan); white-space: nowrap;
}
.notice-bar .nb-text { font-size: 16px; color: var(--text-sub); flex: 1; min-width: 180px; }
/* 공지 안의 버튼은 늘어나면 안 된다 — .btn-offer-yes의 flex:1을 무효화 */
.notice-bar .btn-offer-yes { flex: 0 0 auto; }
.notice-bar .nb-text b { color: var(--text-pure); }

/* 카테고리 칩 */
.cat-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 auto; max-width: 1180px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-row { display: flex; gap: 8px; padding: 4px 0 2px; width: max-content; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border-box-purple);
  font-size: 16px; font-weight: 700; color: var(--text-sub);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), border-color .18s, color .18s;
}
.cat-chip:hover { transform: translateY(-2px); border-color: var(--neon-pink); color: var(--text-pure); }
.cat-chip.on {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: var(--text-on-neon); border-color: transparent;
}
.cat-chip .cc-n { font-size: 16px; opacity: .8; font-variant-numeric: tabular-nums; }

/* 사연 카드 */
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 13px; max-width: 1180px; margin: 0 auto;
}
.story-card {
  position: relative; padding: 17px 17px 14px; border-radius: var(--radius-lg, 20px);
  background: var(--bg-card); border: 1px solid var(--border-box-purple);
  display: flex; flex-direction: column; gap: 9px; cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), border-color .22s, box-shadow .22s;
}
.story-card:hover {
  transform: translateY(-4px); border-color: var(--border-pink);
  box-shadow: 0 14px 32px var(--shadow-card);
}
.story-card.is-hot { border-color: var(--neon-pink); }
.story-card .sc-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sc-cat {
  padding: 2.5px 8px; border-radius: 999px; font-size: 16px; font-weight: 800;
  background: var(--bg-cell); border: 1px solid var(--border-purple); color: var(--neon-cyan);
}
.sc-hot {
  padding: 2.5px 8px; border-radius: 999px; font-size: 16px; font-weight: 900;
  background: var(--neon-pink); color: var(--text-on-neon);
}
.sc-time { margin-left: auto; font-size: 16px; color: var(--text-muted); }
.story-card .sc-title { font-size: 16px; font-weight: 800; color: var(--text-pure); line-height: 1.45; }
.story-card .sc-body { font-size: 16px; color: var(--text-sub); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card .sc-foot {
  display: flex; align-items: center; gap: 12px; padding-top: 9px;
  border-top: 1px solid var(--border-hair); font-size: 16px; color: var(--text-muted);
}
.story-card .sc-foot span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.story-card .sc-writer { margin-left: auto; color: var(--text-sub); font-weight: 700; }

/* 투표 */
.vote-box {
  max-width: 700px; margin: 0 auto; padding: 22px 22px 18px;
  border-radius: var(--radius-lg, 20px);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-card-inner));
  border: 1px solid var(--border-box-bright);
}
.vote-q { font-size: 16px; font-weight: 800; color: var(--text-pure); margin-bottom: 4px; }
.vote-meta { font-size: 16px; color: var(--text-muted); margin-bottom: 15px; }
.vote-opt { margin-bottom: 11px; cursor: pointer; }
.vote-opt .vo-head {
  display: flex; justify-content: space-between; font-size: 16px;
  color: var(--text-sub); margin-bottom: 5px; font-weight: 700;
}
.vote-opt .vo-head b { color: var(--neon-cyan); font-variant-numeric: tabular-nums; }
.vote-opt .vo-bar { height: 10px; border-radius: 999px; background: var(--gauge-track); overflow: hidden; }
.vote-opt .vo-bar i {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
  animation: voteFill 1.1s cubic-bezier(.34,1.3,.64,1) forwards;
}
@keyframes voteFill { to { width: var(--w, 50%); } }
.vote-opt.lead .vo-bar i { background: linear-gradient(90deg, var(--neon-pink), var(--neon-yellow)); }

/* 베스트 댓글 */
.cmt-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 11px; max-width: 1180px; margin: 0 auto;
}
.cmt-card {
  padding: 15px 16px; border-radius: var(--radius-md, 14px);
  background: var(--bg-card-inner); border: 1px solid var(--border-hair);
  display: flex; flex-direction: column; gap: 8px;
}
.cmt-card .cm-txt { font-size: 16px; color: var(--text-sub); line-height: 1.75; }
.cmt-card .cm-foot { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--text-muted); }
.cmt-card .cm-like { margin-left: auto; color: var(--pink-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* 키워드 */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; margin: 0 auto; }
.kw {
  padding: 6px 13px; border-radius: 999px; background: var(--bg-cell);
  border: 1px solid var(--border-soft); font-weight: 700; color: var(--text-sub);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), color .18s;
}
.kw:hover { transform: translateY(-2px) scale(1.04); color: var(--pink-ink); }
.kw.s1 { font-size: 19px; color: var(--pink-ink); border-color: var(--border-pink); }
.kw.s2 { font-size: 16px; color: var(--neon-cyan); }
.kw.s3 { font-size: 16px; }
.kw.s4 { font-size: 16px; opacity: .82; }

/* 라이브 점 */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--neon-lime); margin-right: 5px;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,163,.55); }
  50% { opacity: .65; box-shadow: 0 0 0 6px rgba(0,255,163,0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .vote-opt .vo-bar i { animation: none; width: var(--w, 50%); }
  .live-dot { animation: none; }
  .story-card:hover, .cat-chip:hover, .kw:hover { transform: none; }
}

/* ==========================================================================
   브랜드 아이콘 — 이모지 대체
   이모지는 OS마다 다르게 렌더링된다. 반복 노출되는 자리만 브랜드 아이콘으로 바꾼다.
   본문 문장 속 이모지는 텍스트의 일부라 그대로 둔다.
   ========================================================================== */
.ic {
  display: inline-block; vertical-align: middle;
  width: 1.35em; height: 1.35em; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(203, 35, 162, .45));
}
.ic-sm { width: 1.1em; height: 1.1em; }
.ic-lg { width: 1.8em; height: 1.8em; }

/* 퀵바 아이콘 */
/* 원본이 세밀한 일러스트라 작으면 뭉갠다 — 퀵바는 32px 확보 */
.q-icon-box .ic { width: 32px; height: 32px; }
.quick-nav-item.active .q-icon-box .ic { filter: drop-shadow(0 0 10px var(--neon-pink)); }

/* nav 프로필 */
.badge-nav-my .ic { width: 19px; height: 19px; margin-right: 2px; }

/* 그래프 카드 헤더 */
.viz-card .vc-ico .ic { width: 25px; height: 25px; }

/* 섹션 일러스트 — 존재감 있게 */
.sec-illust {
  display: block; margin: 0 auto 6px;
  width: clamp(96px, 15vw, 138px); height: auto;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .5));
  animation: illustFloat 5s ease-in-out infinite;
}
@keyframes illustFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-9px) rotate(1deg); }
}

/* 카드 안 코너 일러스트 */
.card-illust {
  position: absolute; right: 12px; bottom: 10px;
  width: 74px; opacity: .9; pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}

/* 아이콘 + 텍스트 나란히 */
.ic-row { display: inline-flex; align-items: center; gap: 6px; }

@media (prefers-reduced-motion: reduce) { .sec-illust { animation: none; } }
