/* ===== 3분 놀이터 :: shared brand stylesheet ===== */
:root{
  --bg: #FAF7F0;
  --bg-soft: #F2EEE3;
  --ink: #1D1B16;
  --ink-soft: #5B564A;
  --line: rgba(29,27,22,0.12);
  --card-bg: #FFFFFF;
  --coral: #E8483C;   /* 밸런스게임 */
  --teal: #1F6F63;    /* 성향/심리테스트 */
  --marigold: #F5A623;/* 미니퀴즈 */
  --shadow: 0 8px 24px rgba(29,27,22,0.08);
  --shadow-lg: 0 16px 40px rgba(29,27,22,0.14);
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a{ color:inherit; text-decoration:none; }
.wrap{ max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:34px; height:34px; flex:0 0 auto; }
.brand-word{
  font-family:'Jua', sans-serif;
  font-size:21px;
  letter-spacing:-0.01em;
}
.back-link{
  font-size:13.5px; font-weight:700; color: var(--ink-soft);
  display:flex; align-items:center; gap:6px;
  padding:8px 14px; border:1px solid var(--line); border-radius:999px;
  transition: border-color .15s ease, color .15s ease;
}
.back-link:hover{ border-color: var(--ink); color: var(--ink); }

/* ---- nav chips (filters) ---- */
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; margin: 22px 0 6px; }
.chip{
  font-family:'Noto Sans KR', sans-serif;
  font-weight:700; font-size:13.5px;
  padding:9px 16px; border-radius:999px;
  border:1px solid var(--line);
  background: var(--card-bg);
  cursor:pointer;
  transition: all .15s ease;
}
.chip[data-active="true"]{
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.chip:hover{ border-color: var(--ink); }

/* ---- hero ---- */
.hero{ padding: 46px 0 18px; }
.hero-eyebrow{
  font-size:12.5px; letter-spacing:.24em; text-transform:uppercase;
  color: var(--coral); font-weight:700; margin-bottom:10px;
}
.hero h1{
  font-family:'Jua', sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  line-height:1.3; margin:0 0 14px;
}
.hero p{
  color: var(--ink-soft); font-size:15.5px; line-height:1.7;
  max-width: 480px; margin:0;
}
.hero-visual{ display:flex; justify-content:flex-end; }

/* ---- card grid ---- */
.grid{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 16px; margin: 22px 0 8px;
}
.card{
  background: var(--card-bg);
  border:1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  display:flex; flex-direction:column; gap:10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.badge-row{ display:flex; align-items:center; justify-content:space-between; }
.badge{
  font-size:11.5px; font-weight:700; padding:4px 10px; border-radius:999px;
  color:#fff;
}
.badge.balance{ background: var(--coral); }
.badge.test{ background: var(--teal); }
.badge.quiz{ background: var(--marigold); }
.badge.game{ background: #6B4FA0; }
.badge.board{ background: #3B6EA8; }
.badge.teacher{ background: #4E9E7E; }
.badge.work{ background: #3B5BA5; }
.time-pill{
  display:flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:700; color: var(--ink-soft);
}
.time-pill svg{ width:13px; height:13px; }
.card h3{
  font-family:'Jua', sans-serif; font-size:19px; margin:0; line-height:1.4;
}
.card p{
  font-size:13.5px; color: var(--ink-soft); line-height:1.6; margin:0; flex:1;
}
.card .play{
  font-size:13px; font-weight:700; color: var(--ink);
  display:flex; align-items:center; gap:4px;
}

/* ---- generic buttons ---- */
.btn{
  appearance:none; border:none; cursor:pointer;
  font-family:'Noto Sans KR', sans-serif; font-weight:700; font-size:15px;
  padding:14px 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transition: transform .15s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn.ghost{ background: transparent; color: var(--ink); border:1px solid var(--line); }

/* ---- content page shell ---- */
.content-shell{
  max-width: 560px; margin: 0 auto; padding: 40px 20px 60px;
}
.content-card{
  background: var(--card-bg); border:1px solid var(--line); border-radius:14px;
  box-shadow: var(--shadow); padding: 36px 32px;
}
.progress-row{ display:flex; gap:6px; margin-bottom:20px; }
.progress-row .seg{ flex:1; height:4px; border-radius:2px; background: var(--bg-soft); overflow:hidden; }
.progress-row .seg > i{ display:block; height:100%; width:0; background: var(--coral); transition: width .3s ease; }
.progress-row .seg.done > i{ width:100%; }

/* ---- footer ---- */
.site-footer{
  border-top:1px solid var(--line);
  margin-top: 40px; padding: 26px 0 50px;
  color: var(--ink-soft); font-size:12.5px; line-height:1.9;
}
.site-footer a{ text-decoration:underline; }

@media (max-width:560px){
  .hero{ display:flex; flex-direction:column; }
  .hero-visual{ justify-content:center; margin-top:18px; }
}
