/* 세 페이지가 같이 쓰는 것: 바탕·색·글꼴, 머리글, 버튼, 윷 가락, 구역 공통, 자주 묻는 질문, 바닥글. 페이지 파일보다 먼저 읽는다. */

/* 팡스틱 윷놀이 웹 페이지 공통 스타일 (소개 · 참여 안내 · 개인정보처리방침).
   방향은 앱과 같은 "한지와 먹": 따뜻한 종이 바탕, 먹색 글씨, 주홍·청·황 강조색, 나무 윷.
   외부 폰트·CDN 없음. 제목 글꼴은 앱에 들어 있는 Black Han Sans(SIL OFL 1.1)를 이 페이지 글자만 남겨 직접 둔다.
   계속 움직이는 효과와 스크롤 등장은 두지 않는다(2026-11-26, 과한 것 빼기). 누를 때만 움직인다(윷 던져 보기). */

@font-face {
  font-family: "PangDisplay";
  src: url("../fonts/black-han-sans-sub.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FAF6EF;
  --bg-2: #F3EBDD;
  --surface: #FFFDF8;
  --ink: #1F1A17;
  --muted: #5E544B;
  --line: #E4D9C8;
  --ju: #D2452F;          /* 주홍 */
  --ju-deep: #B23722;
  --ju-ink: #A8321F;
  --ju-soft: #FBE3DC;
  --cheong: #1F4E79;      /* 청 */
  --cheong-soft: #DCE8F4;
  --hwang: #C98A12;       /* 황 */
  --hwang-soft: #F8EBCB;
  --felt: #2F5A43;
  --wood: #E6C48F;
  --wood-dark: #8A5A2B;
  --on-ju: #FFF8F0;
  --shadow-sm: 0 1px 2px rgba(31, 26, 23, .06), 0 4px 12px rgba(31, 26, 23, .06);
  --shadow: 0 2px 4px rgba(31, 26, 23, .05), 0 18px 40px -12px rgba(31, 26, 23, .18);
  --shadow-lg: 0 30px 60px -20px rgba(80, 24, 12, .45);
  --r: 22px;
  --display: "PangDisplay", "Black Han Sans", system-ui, sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120F;
    --bg-2: #1B1814;
    --surface: #221D19;
    --ink: #F1EAE0;
    --muted: #B8AEA3;
    --line: #3A322B;
    --ju: #FF8A70;
    --ju-deep: #E8644A;
    --ju-ink: #FF9C88;
    --ju-soft: #3A1F18;
    --cheong: #9CC4EE;
    --cheong-soft: #17283A;
    --hwang: #F2C14E;
    --hwang-soft: #33280F;
    --felt: #234634;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
  overflow-x: hidden;
}
/* 한지 결: 아주 옅은 종이 무늬 */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--ju-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--hwang); outline-offset: 3px; border-radius: 10px;
}
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }

/* ── 머리글 ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.top.scrolled, .top.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.22rem; letter-spacing: -.01em; }
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-spring); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.top nav a.pill { background: var(--ju); color: #fff; padding: 8px 16px; margin-left: 6px; box-shadow: 0 6px 16px -6px var(--ju); }
.top nav a.pill:hover { background: var(--ju-deep); }
.top.on-hero:not(.scrolled) .brand { color: #fff; }
.top.on-hero:not(.scrolled) nav a { color: rgba(255, 248, 240, .86); }
.top.on-hero:not(.scrolled) nav a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.top.on-hero:not(.scrolled) nav a.pill { background: var(--on-ju); color: #B23722; box-shadow: none; }
@media (max-width: 760px) { .top nav a:not(.pill) { display: none; } }

/* ── 버튼 ───────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1.02rem;
  text-decoration: none; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  background: var(--ju); color: #fff; box-shadow: 0 10px 24px -10px var(--ju);
  transition: box-shadow .2s, background .2s;
}
.btn:hover { box-shadow: 0 16px 30px -12px var(--ju); }
.btn.cream { background: var(--on-ju); color: #A8321F; box-shadow: 0 14px 30px -12px rgba(60, 10, 0, .5); }
.btn.glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn.glass:hover { background: rgba(255, 255, 255, .22); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn[aria-disabled=true], .btn:disabled { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: .88rem; font-weight: 700; background: var(--ju-soft); color: var(--ju-ink);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }



/* 나무 윷 가락 (위에서 본 반원통) */
.stick {
  --w: 22px; width: var(--w); height: calc(var(--w) * 5.2); border-radius: calc(var(--w) / 2); position: relative;
  background:
    repeating-linear-gradient(176deg, transparent 0 9px, rgba(138, 90, 43, .16) 9px 10px),
    linear-gradient(90deg, #E4BF85, #F7E3BC 45%, #EED29F 60%, #D7AB6B);
  box-shadow: inset 0 0 0 1px rgba(110, 70, 30, .35), 0 6px 12px -4px rgba(60, 25, 5, .45);
}
.stick.round {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 35%, rgba(255, 255, 255, .25) 55%, rgba(0, 0, 0, .3)),
    linear-gradient(#C58D52, #A86C33);
}
.stick.round::before, .stick.round::after { /* X 표시 */
  content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: #5A3415; border-radius: 1px;
  top: 14%; height: 72%;
  background: repeating-linear-gradient(transparent 0 6%, #5A3415 6% 13%, transparent 13% 25%);
}
.stick.round::before { transform: rotate(18deg); }
.stick.round::after { transform: rotate(-18deg); }
.stick.back-do:not(.round)::before { /* 빽도 표시: 빨간 점 */
  content: ""; position: absolute; left: 50%; bottom: 14%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #C8321E;
}

/* ── 구역 공통 ───────────────────────────────────────── */
section { padding: 72px 0; }
.kicker { display: inline-block; font-weight: 800; color: var(--ju); font-size: .92rem; letter-spacing: .02em; margin-bottom: 8px; }
h2.title { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.6vw, 3.1rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 36px; max-width: 36em; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ── 자주 묻는 질문 ──────────────────────────────────── */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ju) 40%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 52px 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ju-soft); color: var(--ju-ink); font-size: 1.2rem; font-weight: 700; transition: transform .4s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq details[open] p { animation: fadeup .4s var(--ease-out); }
@keyframes fadeup { from { opacity: 0; transform: translateY(-6px); } }

/* ── 바닥글 ──────────────────────────────────────────── */
.foot { margin-top: 40px; padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.foot .brand { color: var(--ink); margin-bottom: 8px; }
.foot p { margin: 4px 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--ju-ink); text-decoration: underline; }
.foot .other { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); transition: transform .3s var(--ease-spring), border-color .2s; }
.foot .other:hover { border-color: var(--ju); text-decoration: none; }
@media (max-width: 960px) {
  .foot .wrap { grid-template-columns: 1fr; }
}
