/* 별빛 정원 공개 페이지 — 게임의 밤하늘 · 금빛 팔레트 (dist/style.css :root) */
@font-face {
  font-family: 'SG Jua';
  src: url('../fonts/sg-jua.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'SG Baloo';
  src: url('../fonts/sg-baloo.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night: #0d1522;
  --bg: #151f2d;
  --panel: #1c2b3b;
  --panel-line: #ecd09a1f;
  --gold: #ecd09a;
  --gold-soft: #f5dfb5;
  --ink: #e8ecf1;
  --muted: #abbac7;
  --star: #fff6dd;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #2a3f5a 0%, #1a2a3f 38%, transparent 70%),
    linear-gradient(180deg, #121c2c 0%, var(--bg) 46%, var(--night) 100%);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Segoe UI', sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
  position: relative;
  overflow-x: hidden;
}

/* 하늘 */
.sky { position: absolute; inset: 0 0 auto 0; height: 520px; pointer-events: none; z-index: 0; }
.stars { width: 100%; height: 100%; display: block; }
.stars circle { fill: var(--star); }
.stars .s1 { opacity: 0.85; }
.stars .s2 { opacity: 0.5; }
.stars .s3 { opacity: 0.3; }
.stars .g { fill: var(--gold-soft); transform-box: fill-box; transform-origin: center; }
.moon {
  position: absolute; top: 46px; right: max(24px, 9vw);
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff7e2 0%, #f5dfb5 46%, #d9b97c 100%);
  box-shadow: 0 0 34px 6px #f5dfb540, 0 0 90px 24px #ecd09a1a;
}
@media (prefers-reduced-motion: no-preference) {
  .stars .s1 { animation: twinkle 5.5s ease-in-out infinite; }
  .stars .s2 { animation: twinkle 7s ease-in-out -2s infinite; }
  .stars .g1 { animation: glint 6s ease-in-out infinite; }
  .stars .g2 { animation: glint 8s ease-in-out -3s infinite; }
  .stars .g3 { animation: glint 7s ease-in-out -5s infinite; }
}
@keyframes twinkle { 0%, 100% { opacity: 0.85; } 50% { opacity: 0.45; } }
@keyframes glint { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.1); } }

/* 머리 */
.hero, main, .foot { position: relative; z-index: 1; width: min(760px, 100% - 32px); margin: 0 auto; }
.hero { padding: 56px 0 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.brand { margin: 0; color: var(--gold); font-size: 22px; letter-spacing: 0.02em; text-shadow: 0 0 18px #ecd09a55; }
.brand-ko { font-family: 'SG Jua', 'Jua', sans-serif; }
.brand-en { font-family: 'SG Baloo', 'Baloo 2', sans-serif; font-weight: 600; }
.brand-dot { margin: 0 0.45em; opacity: 0.6; }
.lang { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #0d152299; border: 1px solid var(--panel-line); }
.lang a {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 5px 13px; border-radius: 999px;
  min-height: 32px; display: inline-flex; align-items: center;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current='true'] { background: var(--gold); color: #1a1408; font-weight: 600; }
.lang a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 본문 */
main { padding: 8px 0 24px; }
.policy { padding: 28px 0 8px; }
.policy + .policy { border-top: 1px solid var(--panel-line); margin-top: 24px; }
.js .policy[hidden] { display: none; }
.js .policy + .policy { border-top: 0; margin-top: 0; }
h1:focus { outline: none; }
h1 {
  margin: 0; font-weight: 400; color: var(--gold-soft);
  font-size: clamp(32px, 7vw, 46px); line-height: 1.2;
  text-shadow: 0 0 28px #ecd09a40;
}
[lang='ko'] h1, [lang='ko'] h2 { font-family: 'SG Jua', 'Jua', sans-serif; font-weight: 400; }
[lang='en'] h1, [lang='en'] h2 { font-family: 'SG Baloo', 'Baloo 2', sans-serif; font-weight: 600; }
.meta { margin: 6px 0 28px; color: var(--muted); font-size: 14px; }
.draft {
  display: inline-block; margin-left: 8px; padding: 0 9px; border-radius: 999px; font-size: 12px; line-height: 20px;
  color: var(--gold); border: 1px solid #ecd09a66;
}
section { margin: 0 0 14px; padding: 20px 22px; border-radius: 16px; background: #1c2b3bcc; border: 1px solid var(--panel-line); }
section.glance {
  background: linear-gradient(135deg, #2a3a4c 0%, #1f2f40 100%);
  border-color: #ecd09a40; box-shadow: 0 10px 40px #070f2155, inset 0 1px 0 #f5dfb51a;
}
h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.35; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1408; background: radial-gradient(circle at 35% 30%, #fff1cc, var(--gold) 70%);
  box-shadow: 0 0 10px #ecd09a55;
}
.where { margin: -2px 0 10px; color: var(--muted); font-size: 14px; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
li { position: relative; padding-left: 20px; margin: 6px 0; }
li::before {
  content: ''; position: absolute; left: 3px; top: 0.72em; width: 7px; height: 7px;
  background: var(--gold); transform: rotate(45deg) scale(0.8); border-radius: 1px; opacity: 0.85;
}
.nots li::before { background: none; border: 1.5px solid var(--muted); border-radius: 50%; transform: none; width: 8px; height: 8px; top: 0.66em; opacity: 0.8; }
b { color: var(--gold-soft); font-weight: 600; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.transfer { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #0d152280; font-size: 14px; color: var(--muted); }
.transfer dt { color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.transfer dd { margin: 0; }
.contact { color: var(--gold-soft); }

/* 바닥 */
.foot { padding: 20px 0 48px; text-align: center; color: #abbac7aa; font-size: 13px; }
.foot p { margin: 0; display: inline-flex; align-items: center; }
/* 아카이브로 가는 작은 별. 거의 보이지 않다가 가까이 가면 살짝 빛난다. */
.hush {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 50%;
  color: var(--gold); opacity: 0.22; transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.hush svg { width: 9px; height: 9px; fill: currentColor; }
.hush:hover { opacity: 0.55; filter: drop-shadow(0 0 4px #ecd09a99); transform: rotate(45deg); }
.hush:focus-visible { opacity: 0.7; outline: 1px solid #ecd09a66; outline-offset: 0; }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .brand { font-size: 19px; }
  .moon { width: 44px; height: 44px; top: 26px; right: 18px; }
  section { padding: 16px 16px; border-radius: 14px; }
  h2 { font-size: 19px; }
}
@media print {
  .sky, .lang, .hush { display: none; }
  body { background: #fff; color: #000; }
  section { background: none; border-color: #ccc; }
  h1, h2, b, .brand, .contact { color: #000; text-shadow: none; }
  .js .policy[hidden] { display: block; }
}

/* starlight-garden.com: brand links home */
a.brand { text-decoration: none; display: inline-block; }
a.brand:hover { text-shadow: 0 0 24px #ecd09a99; }
