/* 십이지신 키우기 웹사이트 — 밤하늘 남색 · 금박 · 주홍 도장 · 한지 (게임 UI 색과 같은 줄기) */

@font-face {
  /* 제주한라산 (SIL OFL 1.1) 을 사이트에 쓰는 글자만 남겨 이름을 바꾼 것 — tools/build_fonts.py · public/fonts/README.md */
  font-family: "SBJ Brush";
  src: url("/fonts/brush.woff2?v=c7e84a13") format("woff2");
  font-display: swap;
  unicode-range: U+AC00-D7A3, U+3131-318E, U+0020-007E, U+00B7, U+2014, U+2026, U+2192;
}

:root {
  --night: #0d1130;
  --night-2: #131941;
  --line: rgba(255, 255, 255, .09);
  --gold: #f0c060;
  --gold-hi: #ffe7a8;
  --gold-ink: #2e1806;
  --red: #c8372d;
  --red-hi: #e85a44;
  --paper: #f3ead3;
  --ink: #2a2130;
  --ink-dim: #6a5c52;
  --text: #f4eedf;
  --dim: #b9b6cd;
  --dim-2: #8f8caa;
  --brush: "SBJ Brush", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  --hanja: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Serif CJK KR", serif;
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: .01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 760px; }
.small { font-size: 14px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ───────── 머리 ───────── */
.gnb { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s; padding-top: env(safe-area-inset-top); }
.gnb.solid { background: rgba(11, 14, 40, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.gnb-in { max-width: 1280px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1.5px rgba(240, 192, 96, .7), 0 4px 14px rgba(0, 0, 0, .4); }
.brand-name { font-size: 23px; color: var(--gold-hi); text-shadow: 0 2px 0 rgba(0, 0, 0, .45); white-space: nowrap; }
.gnb-nav { display: flex; gap: 2px; margin-left: auto; }
.gnb-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; color: #e9e4d6; white-space: nowrap; transition: background .2s, color .2s; }
.gnb-nav a:hover { background: rgba(240, 192, 96, .14); color: var(--gold-hi); }

/* ───────── 첫 화면 ───────── */
.hero { position: relative; min-height: max(600px, 100vh); min-height: max(600px, 100svh); display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; padding: 96px var(--gutter) 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 60% 48% at 50% 48%, rgba(9, 11, 34, .55), transparent 72%),
  linear-gradient(180deg, rgba(9, 11, 34, .55) 0%, transparent 18%, transparent 62%, var(--night) 100%); }
.hero-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-in { text-align: center; }
.hero-icon { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 0 0 2.5px rgba(255, 220, 160, .85), 0 14px 34px rgba(0, 0, 0, .5); }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-hanja { font-family: var(--hanja); font-weight: 900; font-size: clamp(15px, 1.9vw, 20px); letter-spacing: .5em; padding: 7px 8px 7px 16px; color: #fff3d6; background: linear-gradient(180deg, var(--red-hi), var(--red)); border: 1.5px solid rgba(255, 220, 160, .7); border-radius: 4px; box-shadow: 0 4px 14px rgba(120, 20, 10, .5); margin-bottom: 14px; }
.logo-main { position: relative; display: inline-block; white-space: nowrap; font-size: clamp(40px, 12vw, 128px); padding: .06em .12em .14em; color: transparent; filter: drop-shadow(0 0 22px rgba(255, 196, 92, .32)); }
.logo-main::before, .logo-main::after { content: attr(data-text); position: absolute; inset: 0; padding: inherit; white-space: nowrap; }
.logo-main::before { color: #2a1406; -webkit-text-stroke: .13em #2a1406; text-shadow: 0 .07em 0 #1a0b02, 0 .12em .3em rgba(0, 0, 0, .55); }
.logo-main::after { color: transparent; background: linear-gradient(180deg, #fffbe8 0%, #ffe39a 30%, #f5b94a 58%, #c97b1f 82%, #f6c862 100%); -webkit-background-clip: text; background-clip: text; }
.hero-lead { margin-top: 18px; font-size: clamp(17px, 2.1vw, 22px); font-weight: 700; line-height: 1.6; color: #fff8e6; text-shadow: 0 2px 10px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .8); }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { position: relative; display: flex; align-items: center; gap: 10px; min-width: 196px; padding: 11px 22px 11px 16px; border-radius: 14px; text-decoration: none; text-align: left; background: rgba(10, 12, 32, .82); border: 1.5px solid rgba(240, 192, 96, .65); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .25s, border-color .25s; }
.store svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--gold-hi); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.store[data-store="android"] svg { fill: var(--gold-hi); stroke: none; }
.store span { display: flex; flex-direction: column; font-size: 19px; font-weight: 800; line-height: 1.15; color: #fff; white-space: nowrap; }
.store small { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: .04em; }
.store em { position: absolute; top: -10px; right: -8px; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--red); box-shadow: 0 3px 10px rgba(120, 20, 10, .45); }
.store:not(.soon):hover { transform: translateY(-2px); border-color: var(--gold-hi); }
.store.soon { cursor: default; }
.store.soon span { color: #e9e4d6; }

/* ───────── 칸 ───────── */
.sec { position: relative; padding: clamp(72px, 9vw, 112px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: .16em; color: var(--gold); margin-bottom: 12px; }
.eyebrow b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; font-family: var(--hanja); font-size: 16px; letter-spacing: 0; color: #fff3d6; background: linear-gradient(180deg, var(--red-hi), var(--red)); box-shadow: 0 3px 10px rgba(120, 20, 10, .4); }
.sec h2 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.15; color: var(--gold-hi); text-wrap: balance; }
.sec-lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 18.5px); color: var(--dim); }

.paper { background-color: var(--paper); color: var(--ink);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(196, 160, 96, .22), transparent 60%); }
.paper h2 { color: var(--ink); }
.paper .eyebrow { color: var(--red); }
.paper .sec-lead { color: var(--ink-dim); }
.points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.points li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 252, 242, .8); border: 1px solid rgba(120, 90, 40, .2); font-weight: 800; font-size: 15.5px; }
.points b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-family: var(--hanja); color: #fff3d6; background: var(--night); }

.support { background: linear-gradient(180deg, var(--night), var(--night-2)); }
.contact { margin-top: 26px; border-radius: 22px; padding: 24px 24px 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.contact-mail { font-size: clamp(18px, 2vw, 22px); font-weight: 800; }
.contact-mail a { color: #fff; text-decoration-color: rgba(240, 192, 96, .6); text-underline-offset: 4px; }
.contact-hours { color: var(--gold-hi); font-weight: 700; font-size: 15px; margin: 4px 0 12px; }
.contact .small { color: var(--dim); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.contact-links a { display: block; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #eee7d6; text-decoration: none; font-size: 14.5px; font-weight: 700; }
.contact-links a::after { content: " ›"; color: var(--gold); }
.contact-links a:hover { background: rgba(240, 192, 96, .14); }

/* ───────── 바닥 ───────── */
.foot { background: #080a1f; border-top: 1px solid var(--line); padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--dim-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.foot-links a { color: #cfcbe0; text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--gold-hi); text-decoration: underline; }
.foot-links strong { color: #fff; }
.foot-company { font-style: normal; display: flex; flex-wrap: wrap; gap: 4px 18px; line-height: 1.7; }
.foot-company b { font-weight: 600; color: #b9b5cc; }
.foot-company a { color: #b9b5cc; }
.foot-note { margin-top: 16px; }
.foot-copy { margin-top: 6px; }

@media (max-width: 560px) {
  .gnb-in { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .brand-name { font-size: 18px; }
  .gnb-nav a { padding: 7px 9px; font-size: 14px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 19px; }
  .store { min-width: 0; flex: 1 1 150px; gap: 8px; padding: 10px 10px 10px 10px; }
  .store span { font-size: 16px; }
}
@media (max-width: 360px) {
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
