/* 꼬닥이스튜디오 홈페이지 (kkodagi.com) — 꼬닥이 총총 사이트(cc.kkodagi.com)와 같은 포근한 톤.
   크림 바탕 · 둥근 카드 · 젤리 버튼 · 주아체(Jua, SIL OFL, 이 사이트 글자만 담은 woff2).
   외부 글꼴·추적 스크립트·쿠키 없음. */
@font-face {
  font-family: "Jua";
  src: url("Jua-studio.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #3a2d4f;
  --paper: #fff6ec;
  --card: #ffffff;
  --shell: #f3ebf4;
  --muted: #6f6385;
  --line: #f0e2d0;
  --yellow: #fdc15a;
  --yellow-l: #fff1cf;
  --pink: #f7849f;
  --pink-d: #e5677f;
  --mint: #e8f8f1;
  --mint-d: #2f9a73;
  --purple: #8e7cf0;
  --shadow: 0 10px 28px rgba(110, 74, 58, .12), 0 2px 6px rgba(110, 74, 58, .08);
  --shadow-lg: 0 24px 60px rgba(90, 60, 110, .18), 0 4px 12px rgba(90, 60, 110, .10);
  --round: "Jua", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --wrap: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f4ecff;
    --paper: #1f1a2b;
    --card: #2a2338;
    --shell: #352c47;
    --muted: #b9add0;
    --line: #3b3150;
    --yellow-l: #3a3022;
    --mint: #1f3a31;
    --shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45), 0 4px 12px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .round { font-family: var(--round); font-weight: 400; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* 상단 바 */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 1.3rem/1 var(--round); white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: .95rem; }
.bar nav a { text-decoration: none; padding: 7px 12px; border-radius: 99px; color: var(--muted); font-weight: 700; }
.bar nav a:hover { background: var(--shell); color: var(--ink); }
.bar nav a.lang { background: var(--ink); color: var(--paper); margin-left: 6px; }

/* 젤리 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font: 1.05rem/1 var(--round); padding: 14px 22px; border-radius: 99px; color: #fff;
  background: linear-gradient(180deg, #ff9fb4, var(--pink-d));
  box-shadow: 0 8px 18px rgba(229, 103, 127, .35), inset 0 -3px 0 rgba(0, 0, 0, .08), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* 첫 화면 */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .kicker { display: inline-block; font: .95rem/1 var(--round); background: var(--yellow-l); color: #b07a12; padding: 8px 14px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.2; margin: 18px 0 14px; }
.hero h1 em { font-style: normal; color: var(--pink-d); }
.hero .lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 28px; max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.mascot { position: relative; justify-self: center; width: min(360px, 80vw); aspect-ratio: 1; }
.mascot::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--yellow-l), transparent 70%);
}
.mascot img { position: relative; width: 100%; animation: bob 2.6s ease-in-out infinite; }
.mascot .spark { position: absolute; font-size: 1.6rem; animation: twinkle 2.2s ease-in-out infinite; }
.mascot .s1 { top: 8%; left: 6%; }
.mascot .s2 { top: 16%; right: 4%; animation-delay: .7s; }
.mascot .s3 { bottom: 14%; left: 0; animation-delay: 1.3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .mascot img, .mascot .spark { animation: none; } }

/* 구역 */
section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 32px; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 8px; }
.sec-head p { margin: 0; color: var(--muted); }

/* 게임 카드 */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.game.feature { box-shadow: var(--shadow-lg); }
.game .top { display: flex; align-items: center; gap: 16px; }
.game .top img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); flex: none; }
.game h3 { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.game .state { display: inline-block; margin-top: 6px; font: .85rem/1 var(--round); padding: 6px 10px; border-radius: 99px; background: var(--mint); color: var(--mint-d); }
.game p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--shell); }
.game .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.game .links .btn { font-size: .95rem; padding: 11px 18px; }
.game.soon { border: 2px dashed var(--line); background: transparent; box-shadow: none; align-items: center; justify-content: center; text-align: center; }
.game.soon img { width: 96px; animation: bob 3s ease-in-out infinite; }
.game.soon h3 { color: var(--muted); }

/* 꼬닥이 소개 */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.about .card { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
.about .ico { font-size: 1.8rem; line-height: 1; }
.about h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.about p { margin: 0; color: var(--muted); font-size: .97rem; }

/* 문의 */
.contact { background: var(--card); border-radius: 32px; box-shadow: var(--shadow); padding: 36px 28px; text-align: center; }
.contact h2 { font-size: 1.8rem; margin: 0 0 8px; }
.contact p { color: var(--muted); margin: 0 0 20px; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: .9rem; text-align: center; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-bottom: 8px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .mascot { order: -1; width: min(240px, 64vw); }
  .wrap { padding: 0 16px; }
  .bar nav a:not(.lang) { display: none; }
  .game { padding: 22px; }
}
