/* run24 공통 레이아웃과 컴포넌트 */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 88px; }

/* 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: var(--s-xs);
  padding: var(--s-sm) var(--s-md);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.topbar h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.27; letter-spacing: -0.15px; }
.topbar .home-icon { color: var(--primary); display: flex; }

.content { padding: var(--s-md); }

/* 홈 배너: 페이지당 1개 */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s-lg);
  border-radius: var(--r-xl);
  background: var(--secondary);
  color: var(--on-primary);
}
.hero h2 { margin: 0 0 var(--s-xxs); font-size: 26px; font-weight: 700; line-height: 1.23; letter-spacing: -0.3px; }
.hero p { margin: 0 0 var(--s-md); font-size: 14px; line-height: 1.43; opacity: .8; }
.hero .stickers { position: absolute; right: var(--s-lg); top: var(--s-lg); display: grid; grid-template-columns: repeat(3, 12px); gap: 8px; }
.hero .stickers i { width: 12px; height: 12px; border-radius: var(--r-full); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  min-height: 44px; padding: 0 var(--s-md);
  border: 0; border-radius: var(--r-full);
  font: 500 16px/1.5 var(--font);
  cursor: pointer; transition: transform .1s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* 섹션 */
.section-title { margin: var(--s-lg) 0 var(--s-sm); font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.1px; }

/* 모듈 카드 */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xs); }
.card {
  display: flex; align-items: center; gap: var(--s-sm);
  min-height: 72px; padding: var(--s-sm);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
}
.card .icon {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  color: var(--on-primary); font-size: 20px;
}
.card .title { font-size: 15px; font-weight: 600; line-height: 1.33; }
.card .desc { margin-top: 2px; font-size: 12px; line-height: 1.33; color: var(--ink-muted); }
.card.soon { pointer-events: none; }
.card.soon .title { color: var(--ink-muted); }
.card.placeholder .icon { background: none; border: 1.5px dashed var(--ink-faint); color: var(--ink-faint); }
.card.placeholder .title { color: var(--ink-faint); font-weight: 500; }
.card.placeholder .desc { color: var(--ink-faint); }

.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: var(--r-full); background: var(--canvas-soft);
  font-size: 12px; font-weight: 600; line-height: 1.33; letter-spacing: .125px;
  color: var(--ink-muted);
}

/* 하단 탭바 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--canvas); border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar nav { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 64px; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink-faint); font-size: 12px; font-weight: 600; }
.tab.active { color: var(--primary); }
.tab.disabled { pointer-events: none; }
.tab-fab {
  justify-self: center; width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-1);
}
.tab-fab:active { background: var(--primary-active); transform: scale(.94); }
