/* 기본 레이아웃과 타이포그래피 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
img, video { height: auto; }

a { color: var(--orchid); text-decoration: none; }

/* 본문 링크는 밑줄로 구분 */
main p a, main li a, .faq-body a, .chapter-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--gold-bright);
  color: #1a1028;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--orchid);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink-hi);
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-weight: 700;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

section { position: relative; padding: 110px 0; }

/* 섹션 도입 라벨 */
.eyebrow {
  font-family: var(--font-engrave);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--candle);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before, .eyebrow.centered::after {
  content: "";
  height: 1px;
  width: 42px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(25px, 3.4vw, 39px);
  margin-bottom: 14px;
}
.section-sub { color: var(--ink-dim); max-width: 620px; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

/* 별밭 캔버스 */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, .site-nav, .site-footer { position: relative; z-index: 1; }

/* 글라스 패널 */
.glass {
  background: rgba(29, 17, 54, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 164, 92, .28);
  border-radius: var(--radius-panel);
}

/* 상태 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .09);
}
.badge.avail  { background: var(--st-avail-bg);  color: var(--st-avail-fg); }
.badge.roll   { background: var(--st-roll-bg);   color: var(--st-roll-fg); }
.badge.prep   { background: var(--st-prep-bg);   color: var(--st-prep-fg); }
.badge.past   { background: var(--st-past-bg);   color: var(--st-past-fg); }
.badge.verify { background: var(--st-verify-bg); color: var(--st-verify-fg); }

/* 별조각 수량 표기 */
.stars-cost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--starblue);
  font-weight: 700;
}
.stars-cost img {
  width: 20px;
  height: 20px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(127, 176, 255, .8));
}

.site-footer {
  border-top: 1px solid rgba(201, 164, 92, .2);
  padding: 48px 0 64px;
  color: var(--ink-dim);
  font-size: 14px;
}
.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-bottom: 22px;
}
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--gold-bright); }

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .container { width: calc(100% - 36px); }
}
