/* 시작 페이지·따라 하기·도움말·쉬운 말·동의 화면 (0.25.0 → 0.29.0 '열린 화면').
   색·글자·간격은 app.css :root 토큰만 써요. 이 파일에는 색 숫자·어두운 화면 규칙이 없어요 (0.29.0 에서 이 부품만 남색이 되던 규칙을 지웠어요). */

/* ---- 시작 페이지 */
.st { display: grid; gap: var(--space-6); max-width: var(--page-max); margin: 0 auto; color: var(--ink); }
.ob-card { background: var(--panel); color: var(--ink); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--space-5) 0 0; }
.ob-card h2 { margin: 0 0 8px; font-size: var(--fs-lg); } .ob-card h3 { margin: 0 0 6px; font-size: var(--fs-base); color: var(--ink); }
.ob-card .muted { color: var(--muted); }
.st-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--bg) 100%); color: var(--ink); border: 0; border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); align-items: center; }
.st-hero h1 { font-size: var(--fs-h1); margin: 0 0 var(--space-3); color: var(--ink); }
.st-lead { font-size: var(--fs-lg); line-height: 1.45; margin: 0 0 12px; } .st-lead mark { background: transparent; color: var(--accent); font-weight: 700; }
.st-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; }
.st-stats li { background: var(--bg-soft); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.st-stats b { font-size: var(--fs-xl); line-height: 1.1; font-variant-numeric: tabular-nums; } .st-stats span { font-size: var(--fs-sm); color: var(--muted); }
.st-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-height: 120px; }
.st-mosaic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--bg-soft); }
.st-mosaic.empty { place-items: center; background: var(--bg-soft); border-radius: 8px; padding: 12px; text-align: center; }
.st-form { display: flex; gap: 8px; margin: 6px 0; } .st-q { flex: 1; min-width: 0; background: var(--panel); color: var(--ink); border-color: var(--line); }
.st-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.st-chip { background: var(--chip); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: var(--fs-base); min-height: 40px; }
.st-chip:hover { background: var(--tile); color: var(--accent); }
.st-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-card { display: grid; gap: 4px; }
.st-thumb { padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--bg-soft); aspect-ratio: 16 / 9; display: block; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-meta { display: grid; font-size: var(--fs-sm); } .st-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-count { margin: 6px 0; font-size: var(--fs-base); }
.st-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; }
.st-role { text-align: left; display: grid; gap: 3px; padding: 14px 16px; border: 0; border-left: 3px solid transparent; border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); cursor: pointer; }
.st-role.on { border-left-color: var(--accent); background: var(--tile); }
.st-role[disabled] { opacity: .45; cursor: not-allowed; } .st-role b { font-size: var(--fs-base); } .st-who { font-size: var(--fs-sm); color: var(--muted); } .st-role-t { font-size: var(--fs-sm); }
.st-role:focus-visible, .st-thumb:focus-visible, .st-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .st-hero { padding: var(--space-6) var(--space-4); }
  .st-hero { grid-template-columns: 1fr; } .st-roles { grid-template-columns: 1fr; } .st-lead { font-size: var(--fs-base); } .st-stats b { font-size: var(--fs-lg); }
  .st-form { flex-direction: column; } .st-form .btn { min-height: 44px; }
}

/* ---- 체크리스트·막대·빈 화면·팁 */
.ob-bar { height: 6px; border-radius: 3px; background: var(--bar); overflow: hidden; margin: 4px 0 8px; } .ob-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.ob-checks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; } .ob-checks input { width: 18px; height: 18px; vertical-align: -3px; }
.ob-today { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.ob-empty { border: 0; border-radius: var(--radius); padding: var(--space-5); background: var(--bg-soft); color: var(--ink); } .ob-empty p { margin: 4px 0 8px; color: var(--muted); }
/* 팁 띠: 사이트와 같은 흰 바탕, 왼쪽 얇은 색 줄 + 아래 옅은 선 한 줄 */
.ob-tip { background: var(--bg); color: var(--ink2); border-bottom: 1px solid var(--line); border-left: 3px solid var(--accent-line); padding: 8px var(--gutter); font-size: var(--fs-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ob-tip .btn.small { min-height: 32px; }
.ob-admin-cards > summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.ob-home-start { margin: 0 0 10px; }

/* ---- 따라 하기 */
.tour-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
.tour-shade { position: absolute; inset: 0; background: var(--shade); opacity: 0; }
.tour-root.nohole .tour-shade { opacity: 1; }
.tour-hole { position: absolute; border-radius: 8px; box-shadow: 0 0 0 9999px var(--shade), 0 0 0 3px var(--accent); transition: all .2s; pointer-events: none; }
.tour-root.nohole .tour-hole { display: none; }
.tour-bubble { position: absolute; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-pop); pointer-events: auto; max-width: calc(100vw - 16px); }
.tour-bubble:focus { outline: none; }
.tour-prog { font-size: var(--fs-sm); color: var(--muted); } .tour-title { font-size: var(--fs-base); margin: 2px 0 6px; } .tour-text { margin: 0 0 8px; font-size: var(--fs-base); line-height: 1.55; } .tour-note { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--muted); }
.tour-note:empty { display: none; }
.tour-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.tour-btn { border: 0; background: var(--chip); color: var(--ink); border-radius: 999px; padding: 6px 16px; min-height: 40px; cursor: pointer; }
.tour-btn.primary { background: var(--accent); color: var(--accent-ink); } .tour-btn.link { border: 0; background: none; color: var(--muted); margin-right: auto; text-decoration: underline; }
.tour-btn[disabled] { opacity: .4; cursor: default; } .tour-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tour-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tour-arrow { display: none; }
.tour-root.busy .tour-bubble { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .tour-hole, .ob-bar i { transition: none; } }

/* ---- 오른쪽 아래 도움 단추 */
.ob-help-fab { position: fixed; right: 14px; bottom: 14px; z-index: 8000; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tile); color: var(--accent); font-size: var(--fs-lg); font-weight: 700; cursor: pointer; }
.ob-help-fab:hover { background: var(--accent-soft); }
body:has(.cart-fab) .ob-help-fab { bottom: 64px; }
.ob-help-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ob-help-panel { position: fixed; right: 14px; bottom: 70px; z-index: 8100; width: min(380px, calc(100vw - 20px)); max-height: calc(100vh - 100px); overflow: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-pop); }
.ob-help-panel h2 { margin: 0; font-size: var(--fs-base); } .ob-help-panel h3 { margin: 12px 0 4px; font-size: var(--fs-sm); color: var(--muted); } .ob-help-panel ul { margin: 0; padding-left: 18px; }
.ob-keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; } .ob-keys dt { margin: 0; } .ob-keys dd { margin: 0; font-size: var(--fs-sm); }
.ob-keys kbd { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: var(--fs-sm); }
.ob-help-actions { margin: 10px 0; }
.ob-video { background: var(--bg-soft); border: 0; border-radius: var(--radius); min-height: 64px; display: grid; place-items: center; margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); } .ob-video video { width: 100%; border-radius: 8px; }
.ob-help-panel .ob-card { margin-top: 10px; padding: 10px; }
@media (max-width: 600px) { .ob-help-panel { right: 0; left: 0; bottom: 0; width: auto; border-radius: 12px 12px 0 0; max-height: 80vh; } }

/* ---- 크게 보기 */
.ob-light-bg, .tm-bg { position: fixed; inset: 0; z-index: 9200; background: var(--shade); display: grid; place-items: center; padding: 10px; }
.ob-light { background: var(--panel); color: var(--ink); border-radius: 12px; padding: 12px; width: min(860px, 100%); display: grid; gap: 8px; max-height: 96vh; overflow: auto; } .ob-light video, .ob-light img { width: 100%; max-height: 62vh; background: var(--media-bg); border-radius: var(--radius); }

/* ---- 쉬운 말 */
.gl-tip { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: 700; cursor: pointer; vertical-align: middle; line-height: 1; }
.gl-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gl-pop { position: fixed; z-index: 9300; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow-pop); font-size: var(--fs-sm); } .gl-pop p { margin: 4px 0 0; }

/* ---- 이용약관·개인정보 동의 */
.tm-box { background: var(--panel); color: var(--ink); border-radius: 12px; padding: 16px; width: min(720px, 100%); max-height: 94vh; overflow: auto; display: grid; gap: 8px; } .tm-box h2 { margin: 0; font-size: var(--fs-lg); }
.tm-sum { background: var(--bg-soft); border-radius: 8px; padding: 8px 12px; } .tm-sum ul { margin: 0; padding-left: 18px; }
.tm-all { font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tm-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; } .tm-item summary { cursor: pointer; color: var(--accent); font-size: var(--fs-sm); margin-top: 2px; }
.tm-text { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; max-height: 34vh; overflow: auto; font-size: var(--fs-base); }
.tm-text h2, .tm-text h3, .tm-text h4 { font-size: var(--fs-base); margin: 10px 0 4px; } .tm-text blockquote { margin: 6px 0; padding: 4px 10px; border-left: 3px solid var(--line); color: var(--muted); } .tm-text ul { margin: 4px 0; padding-left: 20px; }
.tm-text table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); } .tm-text th, .tm-text td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; }
.tm-check { display: block; padding: 4px 0; } .tm-check input { width: 18px; height: 18px; vertical-align: -3px; } .tm-note { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---- 이 부품 안의 단추·입력칸은 사이트 기본(.btn, input)을 그대로 따라요 (0.29.0: 따로 색을 정하던 규칙을 지웠어요) */
.st a, .ob-help-panel a:not(.btn), .tm-box a { color: var(--accent); }
.st .ob-today a { color: var(--accent); }
