/* 동물친구 오목 웹 공통 디자인: 그림책 풍경(하늘·구름·해님·언덕)과 동물친구 돌.
   외부 폰트·CDN 없음. 제목 글꼴 Jua(SIL OFL)는 fonts/에 글자만 추려 넣었다(tools/web/subset_jua.sh). */

@font-face {
  font-family: "Jua";
  src: url("fonts/jua.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FFF8EC;
  --bg2: #FFF1DA;
  --card: rgba(255, 255, 255, .93);
  --card-solid: #FFFFFF;
  --ink: #2B2420;
  --muted: #6B5F55;
  --line: #EEDFC6;
  --coral: #FF7A50; --coral-d: #C9552F; --coral-soft: #FFE3D6;
  --mint: #3FB58F; --mint-d: #2B8A6A; --mint-soft: #DDF4EA;
  --blue: #5A9EF0; --blue-d: #3B76C2; --blue-soft: #DEEBFF;
  --sun: #FFD54F;
  --sky1: #8FD0FB; --sky2: #CBEBFF; --sky3: #FFF4DF;
  --hill1: #CDEBB0; --hill2: #A6DC88; --hill3: #78C460; --hill4: #66B550;
  --wood: #F6D9A0; --wood2: #EBC47E; --wood-edge: #C99858; --wood-line: #B08454;
  --cloud: #FFFFFF;
  --shadow: 0 10px 30px rgba(120, 80, 40, .14);
  --shadow-lg: 0 24px 60px rgba(120, 80, 40, .18);
  --title: "Jua", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --body: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --r-s: 16px; --r-m: 24px; --r-l: 32px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15131C; --bg2: #1B1824;
    --card: rgba(36, 32, 46, .92); --card-solid: #242030;
    --ink: #F3ECE3; --muted: #BDB2A8; --line: #3A3446;
    --coral: #FF8A63; --coral-d: #B4472A; --coral-soft: #3D2622;
    --mint: #4CC59D; --mint-d: #2A7E62; --mint-soft: #1D3A30;
    --blue: #6FAEF7; --blue-d: #3A6FB8; --blue-soft: #1E2B44;
    --sky1: #10162E; --sky2: #24305A; --sky3: #3A3560;
    --hill1: #2E4A3A; --hill2: #27412F; --hill3: #1F3627; --hill4: #1A2E21;
    --wood: #E2C083; --wood2: #D1A965; --wood-edge: #A47A43; --wood-line: #8E6838;
    --cloud: #3B4470;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}
:root[data-theme="dark"] {
  --bg: #15131C; --bg2: #1B1824;
  --card: rgba(36, 32, 46, .92); --card-solid: #242030;
  --ink: #F3ECE3; --muted: #BDB2A8; --line: #3A3446;
  --coral: #FF8A63; --coral-d: #B4472A; --coral-soft: #3D2622;
  --mint: #4CC59D; --mint-d: #2A7E62; --mint-soft: #1D3A30;
  --blue: #6FAEF7; --blue-d: #3A6FB8; --blue-soft: #1E2B44;
  --sky1: #10162E; --sky2: #24305A; --sky3: #3A3560;
  --hill1: #2E4A3A; --hill2: #27412F; --hill3: #1F3627; --hill4: #1A2E21;
  --wood: #E2C083; --wood2: #D1A965; --wood-edge: #A47A43; --wood-line: #8E6838;
  --cloud: #3B4470;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7;
  word-break: keep-all; overflow-wrap: anywhere; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
main, .foot { overflow-x: clip; } /* 기울인 폰·떠다니는 그림이 폰 화면을 넓히지 않게(sticky는 그대로) */
a { color: var(--coral-d); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) a { color: var(--coral); } }
:where(:root[data-theme="dark"]) a { color: var(--coral); }
h1, h2, h3, .title { font-family: var(--title); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.narrow { width: min(780px, 100%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card-solid); padding: 8px 14px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ---------- 위쪽 띠 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled, .still .nav {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--title); font-size: 1.18rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.12); transition: transform .4s var(--ease-bounce); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 7px 11px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--card); }
.nav-links a[aria-current="page"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--coral); }
.nav-links a.pill { background: var(--coral); color: #fff; }
@media (max-width: 420px) {
  .brand span { font-size: 1.05rem; }
  .nav-links a { padding: 6px 8px; font-size: .84rem; }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* ---------- 하늘 무대(첫 화면·작은 머리) ---------- */
.sky {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%);
}
.sky.under-nav { margin-top: -60px; padding-top: 60px; }
.sky .sun {
  position: absolute; z-index: -1; right: -16px; top: 70px;
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FFF0A8, var(--sun) 62%, #F9BE2C);
  box-shadow: 0 0 0 14px rgba(255, 220, 90, .22), 0 0 60px rgba(255, 210, 80, .55);
}
@media (min-width: 920px) { .sky.hero .sun { right: auto; left: calc(50% - 30px); top: 96px; } }
.sky .sun::before {
  content: ""; position: absolute; inset: -40px; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 90, .55) 0 7deg, transparent 7deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 54px, #000 56px, #000 84px, transparent 86px);
          mask: radial-gradient(circle, transparent 54px, #000 56px, #000 84px, transparent 86px);
}
.sky .sun::after { /* 웃는 얼굴: 눈 두 개 */
  content: ""; position: absolute; left: 30px; top: 36px; width: 8px; height: 9px; border-radius: 50%;
  background: #9A6614; box-shadow: 24px 0 0 #9A6614;
}
.sky .sun i { position: absolute; left: 33px; top: 46px; width: 26px; height: 14px; border: 3.5px solid #9A6614; border-top: 0; border-radius: 0 0 26px 26px; }
.sky .sun b { position: absolute; top: 48px; width: 14px; height: 7px; border-radius: 50%; background: rgba(255, 120, 100, .45); }
.sky .sun b:first-of-type { left: 14px; } .sky .sun b:last-of-type { right: 14px; }
.stars { position: absolute; inset: 0; z-index: -2; opacity: 0; pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 28% 8%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 44% 26%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 61% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 76% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 88% 9%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 6% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 52% 44%, #fff 50%, transparent 52%),
    radial-gradient(1.7px 1.7px at 94% 46%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 35% 52%, #fff 50%, transparent 52%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stars { opacity: 1; }
  :root:not([data-theme="light"]) .sky .sun { background: radial-gradient(circle at 40% 40%, #FFF8D8, #F3E3A6 70%); box-shadow: 0 0 50px rgba(255, 240, 180, .35); }
  :root:not([data-theme="light"]) .sky .sun::before { display: none; }
  :root:not([data-theme="light"]) .sky .sun::after, :root:not([data-theme="light"]) .sky .sun i, :root:not([data-theme="light"]) .sky .sun b { display: none; }
  :root:not([data-theme="light"]) .sky .sun { -webkit-mask: radial-gradient(circle at 70% 30%, transparent 34px, #000 35px); mask: radial-gradient(circle at 70% 30%, transparent 34px, #000 35px); }
}
:root[data-theme="dark"] .stars { opacity: 1; }
:root[data-theme="dark"] .sky .sun { background: radial-gradient(circle at 40% 40%, #FFF8D8, #F3E3A6 70%); box-shadow: 0 0 50px rgba(255, 240, 180, .35); -webkit-mask: radial-gradient(circle at 70% 30%, transparent 34px, #000 35px); mask: radial-gradient(circle at 70% 30%, transparent 34px, #000 35px); }
:root[data-theme="dark"] .sky .sun::before, :root[data-theme="dark"] .sky .sun::after, :root[data-theme="dark"] .sky .sun i, :root[data-theme="dark"] .sky .sun b { display: none; }

.cloud {
  position: absolute; z-index: -1; width: var(--w, 150px); height: calc(var(--w, 150px) * .36);
  top: var(--y, 20%); left: var(--x, 10%); border-radius: 999px; background: var(--cloud); opacity: .92;
  filter: drop-shadow(0 6px 10px rgba(80, 140, 200, .12));
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 46%; height: 128%; left: 14%; bottom: 30%; }
.cloud::after { width: 36%; height: 100%; right: 16%; bottom: 40%; }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--hh, 170px); z-index: -1; pointer-events: none; }
.hills svg { width: 100%; height: 100%; }
.hills .h1 { fill: var(--hill1); } .hills .h2 { fill: var(--hill2); } .hills .h3 { fill: var(--hill3); }
.flower { position: absolute; bottom: var(--b, 20px); left: var(--x, 10%); width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, #FFE066 26%, transparent 30%), radial-gradient(circle at 50% 0, var(--fc, #FF8FA3) 32%, transparent 34%), radial-gradient(circle at 50% 100%, var(--fc, #FF8FA3) 32%, transparent 34%), radial-gradient(circle at 0 50%, var(--fc, #FF8FA3) 32%, transparent 34%), radial-gradient(circle at 100% 50%, var(--fc, #FF8FA3) 32%, transparent 34%);
}

/* ---------- 동물친구 ---------- */
.critter { display: inline-block; width: var(--s, 56px); height: var(--s, 56px); filter: drop-shadow(0 5px 6px rgba(60, 40, 20, .22)); }
.critter svg { width: 100%; height: 100%; overflow: visible; }
.stage { position: absolute; left: 0; right: 0; bottom: 6px; height: 120px; z-index: 2; pointer-events: none; }
.walker {
  position: absolute; bottom: var(--b, 14px); left: var(--x, 10%); pointer-events: auto;
}
.walker > button {
  all: unset; cursor: pointer; display: block; -webkit-tap-highlight-color: transparent;
}
.walker > button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 50%; }
.walker.hop > button { animation: hop .6s var(--ease-bounce); }
.say {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(.6); transform-origin: 50% 100%;
  background: var(--card-solid); color: var(--ink); font-size: .82rem; font-weight: 600; white-space: nowrap;
  padding: 6px 12px; border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease-bounce);
}
.say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--card-solid); }
.walker.talk .say { opacity: 1; transform: translateX(-50%) scale(1); }
.walker.l .say { left: -4px; transform: scale(.6); transform-origin: 20px 100%; }
.walker.r .say { left: auto; right: -4px; transform: scale(.6); transform-origin: calc(100% - 20px) 100%; }
.walker.l.talk .say, .walker.r.talk .say { transform: scale(1); }
.walker.l .say::after { left: 26px; } .walker.r .say::after { left: auto; right: 20px; }

/* ---------- 버튼(사탕 버튼) ---------- */
.btn {
  --c: var(--coral); --cd: var(--coral-d);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--title); font-size: 1.18rem; color: #fff; text-decoration: none; letter-spacing: .01em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  box-shadow: 0 6px 0 var(--cd), 0 12px 22px color-mix(in srgb, var(--c) 35%, transparent);
  transform: translateY(0); transition: transform .12s, box-shadow .12s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.05) saturate(1.05); transform: translateY(-2px); box-shadow: 0 8px 0 var(--cd), 0 16px 26px color-mix(in srgb, var(--c) 40%, transparent); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--cd), 0 4px 10px color-mix(in srgb, var(--c) 30%, transparent); }
.btn.mint { --c: var(--mint); --cd: var(--mint-d); }
.btn.blue { --c: var(--blue); --cd: var(--blue-d); }
.btn.ghost { color: var(--ink); background: var(--card-solid); box-shadow: 0 6px 0 var(--line), 0 12px 22px rgba(0,0,0,.06); }
.btn.small { min-height: 44px; font-size: 1rem; padding: 8px 18px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; filter: grayscale(.4); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.chip.coral { background: var(--coral-soft); color: var(--coral-d); }
.chip.mint { background: var(--mint-soft); color: var(--mint-d); }
.chip.blue { background: var(--blue-soft); color: var(--blue-d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.coral { color: var(--coral); } :root:not([data-theme="light"]) .chip.mint { color: var(--mint); } :root:not([data-theme="light"]) .chip.blue { color: var(--blue); } }
:root[data-theme="dark"] .chip.coral { color: var(--coral); } :root[data-theme="dark"] .chip.mint { color: var(--mint); } :root[data-theme="dark"] .chip.blue { color: var(--blue); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* ---------- 카드·구역 ---------- */
.section { position: relative; padding: 84px 0; }
.section.tint { background: var(--bg2); }
.eyebrow { display: inline-block; font-family: var(--title); font-size: 1rem; color: var(--coral-d); margin: 0 0 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--coral); } }
:root[data-theme="dark"] .eyebrow { color: var(--coral); }
.h2 { font-size: clamp(1.8rem, 6vw, 2.7rem); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 32px; max-width: 40em; }
.card {
  background: var(--card); border-radius: var(--r-m); padding: 24px; box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: transform .35s var(--ease-bounce), box-shadow .35s;
}
.lift:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.grid3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.icon-bubble { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; margin-bottom: 14px; background: var(--coral-soft); transition: transform .4s var(--ease-bounce); }
.card:hover .icon-bubble { transform: rotate(-8deg) scale(1.1); }
.card h3 { font-size: 1.45rem; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

/* 폰 틀 */
.phone {
  position: relative; width: var(--pw, 240px); aspect-ratio: 9 / 16; border-radius: calc(var(--pw, 240px) * .14);
  padding: calc(var(--pw, 240px) * .035); background: linear-gradient(145deg, #3A3542, #1E1B24);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--pw, 240px) * .11); background: var(--sky2); }

/* 동물친구 이름표 목록(멈춰 있음) */
.friend-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* 접는 질문 */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-d); font-size: 1.3rem; font-weight: 700; transition: transform .35s var(--ease-bounce); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details[open] > div { animation: fadeDown .35s ease; }
.faq p { margin: 0 0 6px; }

/* 아래 */
.foot { position: relative; padding: 56px 0 40px; background: var(--bg2); color: var(--muted); font-size: .94rem; }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.foot .brand { font-size: 1.25rem; }
.foot p { margin: 8px 0 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--coral-d); text-decoration: underline; }
.family-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card-solid); box-shadow: var(--shadow); transition: transform .3s var(--ease-bounce); }
.family-link:hover { transform: translateX(4px); text-decoration: none !important; }
.fine { font-size: .84rem; color: var(--muted); }


/* ---------- 움직임: 누를 때만(2026-11-26부터 계속 움직이는 효과는 쓰지 않는다) ---------- */
@keyframes hop { 0% { transform: translateY(0) scale(1); } 30% { transform: translateY(-34px) scale(1.08, .94); } 60% { transform: translateY(0) scale(1.1, .88); } 100% { transform: translateY(0) scale(1); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* 누를 때 움직임도 끄기: 움직임 줄이기 설정, 또는 주소에 ?still */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }

/* ---------- 개발 이력(index.html #updates, firebase/build-updates.mjs가 만든다) ----------
   바둑판 나무 줄이 세로로 흐르고, 날짜마다 동물친구 돌이 줄 위에 앉는다. 배포는 해님 사탕, 시작은 나무 바둑판. */
.updates { --t-new: var(--mint-d); --t-better: var(--blue-d); --t-fix: var(--coral-d); --t-release: #E09A1E; --t-start: var(--wood-line); --ring: var(--bg2); overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .updates { --t-new: var(--mint); --t-better: var(--blue); --t-fix: var(--coral); --t-release: var(--sun); --t-start: var(--wood); } }
:root[data-theme="dark"] .updates { --t-new: var(--mint); --t-better: var(--blue); --t-fix: var(--coral); --t-release: var(--sun); --t-start: var(--wood); }
.updates .t-new { --c: var(--t-new); } .updates .t-better { --c: var(--t-better); } .updates .t-fix { --c: var(--t-fix); }
.updates .t-release { --c: var(--t-release); } .updates .t-start { --c: var(--t-start); }

/* 지금 만들고 있는 것: 나무 바둑판 위 메모 */
.now {
  position: relative; margin-top: 8px; padding: 22px 22px 22px; border-radius: var(--r-l); color: #3A2A1A;
  background:
    repeating-linear-gradient(90deg, transparent 0 33px, rgba(176, 132, 84, .28) 33px 35px),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(176, 132, 84, .28) 33px 35px),
    linear-gradient(160deg, var(--wood), var(--wood2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), inset 0 -6px 0 rgba(140, 96, 50, .25), var(--shadow);
}
.now-h { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--title); font-size: 1.3rem; line-height: 1.3; padding-right: 64px; }
.now ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.now li { position: relative; padding: 9px 14px 9px 40px; border-radius: 14px; background: rgba(255, 250, 240, .78); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.now li::before { /* 흑·백 번갈아 놓는 돌 */
  content: ""; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6A6470, #1E1B22 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.now li:nth-child(even)::before { background: radial-gradient(circle at 35% 30%, #fff, #E6E0DA 75%); box-shadow: 0 2px 3px rgba(0, 0, 0, .22), inset 0 0 0 1px #D8CFC6; }
@media (min-width: 760px) { .now { padding: 26px 30px; } .now ul { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.now-peek { position: absolute; right: 14px; top: -26px; display: flex; align-items: flex-start; gap: 6px; flex-direction: row-reverse; }
.now-peek .critter { --s: 62px; }
.now-say {
  margin-top: 6px; padding: 4px 11px; border-radius: 14px 14px 4px 14px; background: var(--card-solid); color: var(--ink);
  font-family: var(--title); font-size: .92rem; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
@media (max-width: 520px) { .now-say { display: none; } }

/* 타임라인 */
.tl { list-style: none; margin: 46px 0 0; padding: 0; }
.tl-day { position: relative; padding: 0 0 40px 58px; }
.tl-day::before { /* 바둑판 줄 */
  content: ""; position: absolute; left: 23px; top: 30px; bottom: -6px; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--wood-edge), var(--wood-line));
}
.tl-day:last-child { padding-bottom: 8px; }
.tl-day:last-child::before { background: linear-gradient(var(--wood-edge), color-mix(in srgb, var(--wood-line) 0%, transparent)); }
.day { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 48px; }
.day-stone { position: absolute; left: -57px; top: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--ring); box-shadow: 0 0 0 6px var(--ring); z-index: 1; }
.day-stone .critter { --s: 48px; transition: transform .45s var(--ease-bounce); }
.tl-day:hover .day-stone .critter { transform: translateY(-6px) rotate(-8deg); }
.day time { display: flex; flex-direction: column; line-height: 1.2; }
.day b { font-family: var(--title); font-weight: 400; font-size: 1.75rem; letter-spacing: -.01em; }
.day time span { font-size: .86rem; color: var(--muted); font-weight: 600; }
.day small { margin-left: auto; padding: 3px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); }

.ups { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.up {
  position: relative; padding: 18px 20px 19px; border-radius: var(--r-m); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: var(--shadow);
  transition: transform .35s var(--ease-bounce), box-shadow .35s, border-color .35s;
}
.up:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.up::before { /* 줄 위 작은 점(종류 색) */
  content: ""; position: absolute; left: -41px; top: 25px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px var(--ring);
}
.up-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 8px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; line-height: 1.5; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
}
.ver { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); padding: 2px 9px; border-radius: 999px; border: 1.5px dashed var(--line); }
.up h3 { margin: 10px 0 0; font-size: 1.32rem; }
.up p { margin: 4px 0 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* 배포: 해님 사탕 카드 */
.up.t-release {
  color: #3A2410; border: 0;
  background: radial-gradient(240px circle at 100% 0%, rgba(255, 255, 255, .55), transparent 70%), linear-gradient(135deg, #FFE07A, #FFB86B);
  box-shadow: 0 6px 0 #E0A13C, 0 18px 34px -14px rgba(224, 140, 40, .6);
}
.up.t-release p { color: #5C3E1E; }
.up.t-release .badge { color: #7A4A10; background: rgba(255, 255, 255, .6); }
.up.t-release .ver { color: #7A4A10; border-color: rgba(122, 74, 16, .35); }
.up.t-release h3 { font-size: 1.42rem; }
.up.t-release::before { width: 16px; height: 16px; left: -43px; top: 23px; background: var(--sun); box-shadow: 0 0 0 4px var(--ring), 0 0 14px rgba(255, 200, 60, .9); }
.up.t-release:hover { box-shadow: 0 8px 0 #E0A13C, 0 24px 40px -14px rgba(224, 140, 40, .65); }

/* 시작: 나무 바둑판 카드 + 첫 두 수 */
.up.t-start {
  color: #3A2A1A; border: 0; overflow: hidden; padding-right: 92px;
  background:
    radial-gradient(circle at calc(100% - 50px) 32px, #4A4450 0 6px, #1E1B22 11px, transparent 12px),
    radial-gradient(circle at calc(100% - 26px) 56px, #fff 0 6px, #E6E0DA 11px, transparent 12px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(176, 132, 84, .3) 23px 25px),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(176, 132, 84, .3) 23px 25px),
    linear-gradient(160deg, var(--wood), var(--wood2));
  box-shadow: 0 6px 0 var(--wood-edge), var(--shadow);
}
.up.t-start p { color: #5A4430; }
.up.t-start .badge { color: #6A4520; background: rgba(255, 250, 240, .7); }

.tl-more { margin: 0 0 0 58px; }
.tl-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); transition: transform .3s var(--ease-bounce);
}
.tl-more > summary::-webkit-details-marker { display: none; }
.tl-more > summary span { font-size: .8rem; color: var(--muted); }
.tl-more > summary::after { content: "+"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral-d); font-weight: 800; transition: transform .35s var(--ease-bounce); }
.tl-more[open] > summary::after { transform: rotate(45deg); }
.tl-more > summary:hover { transform: translateY(-2px); }
.tl-more > .tl { margin: 26px 0 0 -58px; }

@media (min-width: 900px) {
  .tl-day { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 64px; padding: 0 0 52px; }
  .tl-day::before { left: 240px; top: 34px; }
  .day { position: sticky; top: 84px; align-self: start; display: grid; justify-items: end; text-align: right; gap: 8px; min-height: 0; }
  .day-stone { left: auto; right: -56px; top: -2px; }
  .day time { align-items: flex-end; }
  .day b { font-size: 2.2rem; }
  .day small { margin-left: 0; }
  .ups { margin: 0; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ups > .t-release, .ups > .t-start { grid-column: 1 / -1; }
  /* 두 칸이면 오른쪽 카드 점이 줄에 닿지 않으므로, 줄 위 점은 한 줄 전체 카드(배포·시작)에만. 첫 카드는 날짜 돌이 대신한다 */
  .up::before { display: none; }
  .ups > .t-release:not(:first-child)::before, .ups > .t-start:not(:first-child)::before { display: block; left: -40px; }
  .ups > .t-release:not(:first-child)::before { left: -42px; }
  .tl-more { margin-left: 274px; }
  .tl-more > .tl { margin-left: -274px; }
}
