/* 반디길(Lanternway) 지원·개인정보 페이지. 게임과 같은 밤의 숲 남색 바탕에 호박색 빛, 둥근 글꼴을 쓴다. */
:root {
  --night: #171d42;
  --deep: #10142e;
  --card: #2a3168;
  --text: #f6eedc;
  --faded: #b4b9dc;
  --line: rgba(246, 238, 220, 0.16);
  --amber: #f2c14e;
  --glow: #fff3c4;
  --ink: #3a2200;
  --round: ui-rounded, "SF Pro Rounded", "Apple SD Gothic Neo", "Nunito", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--deep); }

body {
  margin: 0;
  min-height: 100vh;
  /* 밤하늘에서 숲으로 내려오는 바탕에, 멀리 떠 있는 반딧불 몇 점. */
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 243, 196, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 12%, rgba(255, 243, 196, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 42%, rgba(255, 243, 196, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 66%, rgba(255, 243, 196, 0.3) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 78%, rgba(255, 243, 196, 0.35) 0 2px, transparent 3px),
    linear-gradient(180deg, #141b45 0%, #171d42 45%, #1b3540 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--round);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 16px 48px;
}

/* 머리: 아이콘, 제목, 부제 */
.masthead {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.masthead img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  flex: none;
  box-shadow: 0 0 0 1px var(--line), 0 8px 28px rgba(242, 193, 78, 0.28);
}

.masthead h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--glow);
}

.masthead p {
  margin: 4px 0 0;
  color: var(--faded);
  font-size: 15px;
}

/* 갈래(지원 / 개인정보)와 언어 */
.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 28px;
}

.tabs, .langs {
  display: flex;
  gap: 6px;
}

.bar a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bar a:hover { border-color: var(--amber); }

.bar a[aria-current="page"], .langs a.on {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

/* 본문 카드 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(8, 10, 30, 0.35);
}

.card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.35;
}

.card .meta {
  margin: 0 0 24px;
  color: var(--faded);
  font-size: 14px;
}

.card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 32px 0 8px;
  font-size: 18px;
  line-height: 1.45;
}

/* 작은 반딧불 한 점으로 갈래를 표시한다. */
.card h3::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(242, 193, 78, 0.7);
  transform: translateY(-2px);
}

.card p, .card ul { margin: 0 0 12px; }

.card ul { padding-left: 1.2em; }

.card li { margin: 2px 0; }

.card a { color: var(--amber); }

.lead {
  font-size: 18px;
  margin-bottom: 16px !important;
}

.facts {
  list-style: none;
  padding: 16px 0 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 20px 0 8px !important;
  font-size: 15px;
}

.facts li { display: flex; gap: 12px; }

.facts b {
  flex: none;
  min-width: 5.5em;
  color: var(--faded);
  font-weight: 400;
}

/* 묻고 답하기 */
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--amber);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
}

details[open] summary::after { content: "−"; }

details p { margin: 10px 0 0 !important; color: var(--faded); }

.contact {
  margin-top: 28px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(16, 20, 46, 0.55);
}

.contact p:last-child { margin-bottom: 0; }

footer {
  margin-top: 32px;
  color: var(--faded);
  font-size: 13px;
  text-align: center;
}

footer a { color: var(--faded); }

/* 언어: 스크립트가 고른 언어만 보인다. 스크립트가 없으면 둘 다 보인다. */
html[data-lang="ko"] [lang="en"]:not(html),
html[data-lang="en"] [lang="ko"]:not(html) {
  display: none;
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .page { padding-top: 28px; }
  .masthead { gap: 14px; }
  .masthead img { width: 64px; height: 64px; border-radius: 15px; }
  .masthead h1 { font-size: 24px; }
  .card { padding: 24px 18px; border-radius: 18px; }
  .card h2 { font-size: 21px; }
}
