/* 소개 페이지(index.html)만 쓰는 모양. 공통은 site.css. */
/* ---------- 첫 화면 ---------- */
.hero { padding-bottom: 170px; }
@media (min-width: 920px) { .hero { min-height: min(860px, 100svh); } }
.hero-in { display: grid; gap: 34px; align-items: center; padding-top: 26px; position: relative; z-index: 1; }
@media (min-width: 920px) { .hero-in { grid-template-columns: 1.05fr 1fr; padding-top: 56px; gap: 48px; } }
.hero h1 { margin: 16px 0 4px; font-size: clamp(3rem, 14vw, 5.6rem); line-height: 1.05; color: var(--coral); text-shadow: 0 4px 0 color-mix(in srgb, var(--bg) 55%, transparent), 0 10px 28px rgba(201, 85, 47, .22); }
.tagline { font-family: var(--title); font-size: clamp(1.5rem, 6vw, 2.2rem); margin: 0 0 14px; }
.hero p.sub { font-size: 1.08rem; color: var(--ink); opacity: .86; margin: 0 0 26px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; }
.mini-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.mini-facts li { font-size: .86rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hero .note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }

.board-card { position: relative; justify-self: center; width: min(100%, 440px); padding: 18px 18px 16px; border-radius: 34px; background: var(--card); box-shadow: var(--shadow-lg); }
.board-card .peek { position: absolute; top: -34px; z-index: 3; }
.board-card .peek.l { left: -10px; transform: rotate(-10deg); } .board-card .peek.r { right: -10px; transform: rotate(10deg); }
.board {
  position: relative; aspect-ratio: 1; border-radius: 20px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  background:
    repeating-linear-gradient(94deg, rgba(150, 100, 40, .06) 0 2px, transparent 2px 9px),
    radial-gradient(120% 90% at 30% 20%, #FFF0CC 0, transparent 60%),
    linear-gradient(160deg, var(--wood), var(--wood2));
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--wood-edge) 55%, transparent), 0 8px 0 var(--wood-edge), 0 18px 30px rgba(120, 80, 30, .25);
}
.board > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board .lines line { stroke: var(--wood-line); stroke-width: .45; }
.board .lines circle { fill: var(--wood-line); }
.stone { position: absolute; width: 10.8%; aspect-ratio: 1; left: calc(6% + var(--c) * 11%); top: calc(6% + var(--r) * 11%); transform: translate(-50%, -50%); filter: drop-shadow(0 3px 2px rgba(70, 40, 10, .32)); pointer-events: none; }
.stone svg { width: 100%; height: 100%; overflow: visible; }
.stone.drop { animation: drop .5s var(--ease-bounce) both; }
.stone.glow::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 228, 120, .95) 30%, rgba(255, 200, 60, 0) 70%); z-index: -1; }
.ghost-stone { opacity: .45; }
.winline line { stroke: #FFE680; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 2px #FFB830); stroke-dasharray: 80; stroke-dashoffset: 80; opacity: 0; }
.winline.on line { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease, opacity .2s; }
.board.playing { cursor: crosshair; }
.confetti { position: absolute; inset: -20px; pointer-events: none; overflow: hidden; border-radius: 24px; }
.confetti i { position: absolute; top: -10px; left: var(--x); width: var(--w); height: calc(var(--w) * .45); background: var(--c); border-radius: 2px; animation: fall 2.2s cubic-bezier(.25, .6, .4, 1) var(--d) forwards; }
.board-say { position: relative; margin: 18px 4px 0; padding: 10px 16px; border-radius: 18px; background: var(--bg); font-weight: 700; font-size: .98rem; min-height: 1.7em; text-align: center; }
.board-say::before { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: var(--bg); }
.board-say.pop { animation: popIn .4s var(--ease-bounce); }
.board-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
@keyframes drop { 0% { transform: translate(-50%, -125%) scale(1.25); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(.9); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 520px) rotate(var(--rot)); opacity: 0; } }
@keyframes popIn { from { transform: scale(.92); } }

/* ---------- 같이 노는 방법 ---------- */
.scenes { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .scenes { grid-template-columns: 1.1fr .9fr; } }
.scene-list { display: grid; gap: 16px; }
.scene { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; }
.scene .icon-bubble { margin: 0; grid-row: span 2; }
.scene.mint .icon-bubble { background: var(--mint-soft); } .scene.blue .icon-bubble { background: var(--blue-soft); }
.scene .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.scene .tags span { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); }
.duo { position: relative; height: 470px; display: flex; justify-content: center; }
.duo .phone { position: absolute; --pw: 210px; }
.duo .p1 { left: calc(50% - 200px); top: 0; transform: rotate(-6deg); }
.duo .p2 { left: calc(50% - 10px); top: 50px; transform: rotate(5deg); }
.duo .wave-tag { position: absolute; z-index: 2; left: 50%; top: 44%; transform: translateX(-50%); background: var(--card-solid); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.duo .wave-tag::before { content: "📶 🔵"; margin-right: 6px; }
@media (max-width: 480px) { .duo { height: 330px; } .duo .phone { --pw: 148px; } .duo .p1 { left: calc(50% - 150px); } .duo .p2 { left: calc(50% + 2px); top: 34px; } }

/* ---------- 아이와 같이 둘 때(단계마다 앱 화면) ---------- */
.story-steps { display: grid; gap: 22px; }
@media (min-width: 920px) { .story-steps { grid-template-columns: 1fr 1fr; } }
.step-card { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.step-card .phone { --pw: 112px; }
.step-card h3 { font-size: 1.35rem; margin: 0 0 6px; }
.step-card .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--title); font-size: .95rem; margin-right: 8px; vertical-align: 2px; }

/* ---------- 동물친구 ---------- */
.friend-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--card-solid); box-shadow: var(--shadow); font-weight: 800; white-space: nowrap; transition: transform .3s var(--ease-bounce); }
.friend-chip:hover { transform: translateY(-4px) rotate(-2deg); }
.friend-chip .e { font-size: 1.6rem; line-height: 1; }
.friend-chip small { color: var(--muted); font-weight: 600; }
.newbies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
@media (min-width: 760px) { .newbies { grid-template-columns: repeat(9, 1fr); } }
.newbie { aspect-ratio: 3 / 4; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--card-solid); box-shadow: var(--shadow); font-weight: 800; font-size: .92rem; text-align: center; }
.newbie .e { font-size: 2.2rem; line-height: 1.1; }
.newbie .n { font-size: .72rem; color: var(--muted); font-weight: 700; }
.homes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .homes { grid-template-columns: repeat(5, 1fr); } }
.home { position: relative; overflow: hidden; height: 120px; border-radius: 22px; padding: 14px; display: flex; align-items: flex-end; color: #fff; font-family: var(--title); font-size: 1.25rem; text-shadow: 0 2px 6px rgba(0,0,0,.25); box-shadow: var(--shadow); transition: transform .35s var(--ease-bounce); }
.home:hover { transform: translateY(-6px) scale(1.02); }
.home .e { position: absolute; right: 12px; top: 10px; font-size: 2.2rem; text-shadow: none; }
.home.hill { background: linear-gradient(180deg, #8FD0FB 0 45%, #A6DC88 45% 70%, #78C460 70%); }
.home.sea { background: linear-gradient(180deg, #9AD6FF 0 40%, #4FA6E8 40% 72%, #F2D9A6 72%); }
.home.forest { background: linear-gradient(180deg, #BFE6C2 0 35%, #4E9A5A 35% 75%, #3B7A45 75%); }
.home.bamboo { background: repeating-linear-gradient(90deg, #7CC77A 0 10px, #9CDB8F 10px 26px), #9CDB8F; }
.home.bamboo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.45), transparent 60%); }
.home.night { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 60% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 42% 52%, #fff 50%, transparent 52%), linear-gradient(180deg, #1E2752, #3A3A78); }
.home span { position: relative; z-index: 1; }
@media (max-width: 759px) { .home:last-child { grid-column: span 2; } }

/* ---------- 규칙 ---------- */
.rules { display: grid; gap: 18px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.rule svg { width: 120px; height: 120px; border-radius: 16px; }
.rule .badge { font-size: .76rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-d); vertical-align: 4px; margin-left: 6px; font-family: var(--body); }
.order { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.order span { padding: 10px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 700; font-size: .95rem; }
.order i { font-style: normal; color: var(--coral); font-size: 1.2rem; font-weight: 900; }
@media (max-width: 640px) { .order { flex-direction: column; } .order i { transform: rotate(90deg); } }

/* ---------- 약속 ---------- */
.promise { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise .card { text-align: center; padding: 22px 14px; }
.promise .no { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); font-size: 30px; margin-bottom: 10px; }
.promise .no::after { content: ""; position: absolute; width: 74%; height: 4px; border-radius: 4px; background: var(--coral); transform: rotate(-40deg); box-shadow: 0 0 0 2px var(--card-solid); }
.promise .ok::after { display: none; }
.promise h3 { font-size: 1.2rem; margin: 0 0 4px; }
.promise p { font-size: .9rem; }

/* ---------- 마지막 권유 ---------- */
.final { padding: 90px 0 190px; text-align: center; }
.final .h2 { font-size: clamp(2rem, 8vw, 3.2rem); }
.steps3 { list-style: none; padding: 0; margin: 26px auto 30px; display: grid; gap: 12px; max-width: 760px; counter-reset: s; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { counter-increment: s; background: var(--card); border-radius: 20px; padding: 16px 14px 14px; box-shadow: var(--shadow); font-weight: 700; }
.steps3 li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; background: #2E2A35; color: #fff; font-family: var(--title); box-shadow: inset -3px -4px 0 rgba(255,255,255,.12); }
.steps3 li:nth-child(2)::before { background: #fff; color: #2E2A35; box-shadow: inset 0 0 0 2px #E4DDEA; }
.steps3 li small { display: block; color: var(--muted); font-weight: 500; font-size: .84rem; }
