/* ══════════════════════════════════════════════════════════
   이용 안내 (/guide) — 회원이 보는 그림 안내

   기능 이름을 늘어놓으면 처음 온 사람은 무엇부터 할지 모른다.
   그래서 "하고 싶은 일"에서 출발해 누르면 그 자리로 간다. 설명은 짧게,
   그림(아이콘·흐름·화면 모형)이 먼저다. 강조색은 책방 캐릭터의 주황.
   ══════════════════════════════════════════════════════════ */

body.u-guide { --u-accent: #fb923c; --u-accent-rgb: 251,146,60; --u-accent-ink: #3a1603; }
.gd-page * { word-break: keep-all; }

/* ── 머리 — 캐릭터가 말을 건다 ─────────────────────────── */
.gd-hero-art { position: relative; flex: 0 0 auto; width: 132px; }
.gd-hero-art img { width: 100%; display: block; }
.gd-bubble {
    position: relative; display: inline-block; margin-bottom: .55rem; padding: .5rem .8rem;
    border-radius: 14px; background: #fff7ed; color: #7c2d12; font-size: .84rem; font-weight: 700; line-height: 1.5;
}
.gd-bubble::after {
    content: ""; position: absolute; left: 18px; bottom: -7px; border: 7px solid transparent;
    border-bottom: 0; border-top-color: #fff7ed;
}
@media (min-width: 768px) {
    .gd-hero-art { width: 210px; }
}

/* 지금 나는 — 단계별 다음 할 일 */
.gd-now {
    display: flex; gap: .85rem; align-items: flex-start; margin: 0 0 1rem; padding: .95rem 1rem; border-radius: 18px;
    background: linear-gradient(160deg, rgba(251,146,60,.16), rgba(251,146,60,.03));
    border: 1px solid rgba(251,146,60,.38);
}
.gd-now-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: flex; align-items: center;
             justify-content: center; font-size: 1.35rem; background: rgba(251,146,60,.18); color: #fdba74; }
.gd-now b { color: #fff; font-size: 1rem; display: block; }
.gd-now p { margin: .2rem 0 0; color: var(--hbc-muted); font-size: .86rem; line-height: 1.65; }
.gd-now p b { display: inline; font-size: inherit; color: #fed7aa; }
.gd-acts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; }
.gd-act {
    display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 1rem; border-radius: 12px;
    text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap;
    background: rgba(255,255,255,.06); border: 1px solid var(--hbc-border); color: #fff;
}
.gd-act:hover { color: #fff; border-color: rgba(251,146,60,.6); }
.gd-act.is-main { background: #fb923c; border-color: #fb923c; color: #3a1603; }
.gd-act.is-main:hover { background: #fdba74; color: #3a1603; }
.gd-act.is-kakao { background: #fee500; border-color: #fee500; color: #000; }
.gd-act img { width: 20px; height: 20px; }

/* ── 바로가기 줄 ───────────────────────────────────────── */
.gd-jump-bar { top: 58px; }
.gd-sec { scroll-margin-top: 124px; }

/* ── 하고 싶은 일 — 누르면 그 자리로 ─────────────────────── */
.gd-want { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gd-want { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gd-want { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gd-want a {
    position: relative; display: flex; flex-direction: column; gap: .3rem; min-height: 132px; padding: .85rem .85rem .75rem;
    border-radius: 18px; text-decoration: none; color: #fff;
    background: var(--hbc-dark-2); border: 1px solid var(--hbc-border); transition: border-color .15s, transform .15s;
}
.gd-want a:hover { border-color: var(--c, #fb923c); transform: translateY(-2px); color: #fff; }
.gd-want a:active { transform: none; }
.gd-want .ic {
    width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--c, #fb923c); background: color-mix(in srgb, var(--c, #fb923c) 16%, transparent);
}
.gd-want .ic img { width: 30px; height: 30px; }
.gd-want b { font-size: .95rem; line-height: 1.35; }
.gd-want small { color: var(--hbc-muted); font-size: .78rem; line-height: 1.5; }
.gd-want .go { margin-top: auto; padding-top: .3rem; font-size: .76rem; font-weight: 800; color: var(--c, #fb923c); }
.gd-want .lock {
    position: absolute; top: .65rem; right: .65rem; font-size: .66rem; font-weight: 800; padding: .15rem .45rem;
    border-radius: 999px; color: var(--hbc-muted); background: rgba(255,255,255,.06); border: 1px solid var(--hbc-border);
}

/* ── 처음이라면 — 걸음과 "지금 여기" ───────────────────── */
.gd-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.gd-steps li {
    position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: .8rem; padding-bottom: 1.1rem;
}
.gd-steps li::before {
    counter-increment: st; content: counter(st); width: 46px; height: 46px; border-radius: 50%; grid-row: span 3;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem;
    background: var(--hbc-dark-2); border: 2px solid var(--hbc-border); color: var(--hbc-muted); z-index: 1;
}
.gd-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--hbc-border);
}
.gd-steps li.is-done::before { content: "\F26E"; font-family: bootstrap-icons; background: #34d399; border-color: #34d399; color: #04261a; }
.gd-steps li.is-done::after { background: #34d399; }
.gd-steps li.is-now::before { background: #fb923c; border-color: #fdba74; color: #3a1603; box-shadow: 0 0 0 5px rgba(251,146,60,.2); }
.gd-steps b { color: #fff; font-size: .98rem; align-self: end; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.gd-steps p { margin: .15rem 0 0; color: var(--hbc-muted); font-size: .86rem; line-height: 1.65; }
.gd-steps .here { font-size: .68rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; background: #fb923c; color: #3a1603; }
.gd-steps .gd-acts { margin-top: .5rem; }

/* ── 흐름(헬리콥터 쓰는 법) — 넓으면 옆으로, 좁으면 아래로 ─── */
.gd-flow { display: grid; gap: .6rem; grid-template-columns: 1fr; counter-reset: fl; }
@media (min-width: 900px) { .gd-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gd-flow > div {
    position: relative; padding: .9rem .9rem .85rem 3.6rem; border-radius: 16px; min-height: 84px;
    background: var(--hbc-dark-2); border: 1px solid var(--hbc-border);
}
@media (min-width: 900px) { .gd-flow > div { padding: 3.6rem .9rem .9rem; text-align: center; } }
.gd-flow i.big {
    position: absolute; left: .9rem; top: .9rem; width: 2.2rem; height: 2.2rem; border-radius: 11px; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent);
}
@media (min-width: 900px) { .gd-flow i.big { left: 50%; transform: translateX(-50%); } }
.gd-flow b { display: block; color: #fff; font-size: .95rem; }
.gd-flow b::before { counter-increment: fl; content: counter(fl) ". "; color: var(--c); }
.gd-flow span { display: block; color: var(--hbc-muted); font-size: .82rem; line-height: 1.6; margin-top: .2rem; }
.gd-flow span b { display: inline; font-size: inherit; }
.gd-flow span b::before { content: none; }

/* 캐릭터의 한마디 — 팁 */
.gd-tip { display: flex; gap: .7rem; align-items: flex-start; margin-top: .8rem; }
.gd-tip img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.gd-tip > div {
    position: relative; padding: .65rem .85rem; border-radius: 4px 16px 16px 16px; font-size: .86rem; line-height: 1.65;
    background: rgba(251,146,60,.09); border: 1px solid rgba(251,146,60,.3); color: var(--hbc-text);
}
.gd-tip b { color: #fed7aa; }
.gd-tip.is-sub img { border-radius: 0; object-fit: contain; }
.gd-tip.is-sub > div { background: rgba(52,211,153,.07); border-color: rgba(52,211,153,.28); }
.gd-tip.is-sub b { color: #a7f3d0; }

/* ── 화면 읽는 법 — 휴대폰 모형 ─────────────────────────── */
.gd-phone { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .gd-phone { grid-template-columns: 1fr 1fr; } }
.gd-mock { border-radius: 18px; border: 1px solid var(--hbc-border); background: var(--hbc-dark-2); overflow: hidden; }
.gd-mock-cap { padding: .55rem .85rem; font-size: .76rem; font-weight: 800; color: var(--hbc-muted);
               border-bottom: 1px solid var(--hbc-border); background: rgba(255,255,255,.02); }
.gd-mock-bar { display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10,26,20,.96); }
.gd-mock-bar > div { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .1rem .55rem;
                     font-size: .68rem; color: rgba(255,255,255,.75); position: relative; }
/* 글꼴 아이콘과 그림 아이콘의 높이를 맞춰야 아래 글자가 한 줄에 선다 */
.gd-mock-bar i, .gd-mock-bar img { height: 26px; display: flex; align-items: center; justify-content: center; }
.gd-mock-bar i { font-size: 1.2rem; line-height: 26px; }
.gd-mock-bar img { width: 34px; object-fit: contain; }
.gd-mock-bar .n, .gd-mock-top .n {
    position: absolute; top: .2rem; right: 18%; width: 17px; height: 17px; border-radius: 50%; font-size: .62rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center; background: #fb923c; color: #3a1603;
}
.gd-mock-top { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; background: rgba(10,26,20,.96); }
.gd-mock-top .brand { display: flex; align-items: center; gap: .4rem; color: #fdba74; font-weight: 900; font-size: .84rem; margin-right: auto; }
.gd-mock-top .brand img { width: 26px; height: 26px; border-radius: 7px; }
.gd-mock-top > span:not(.brand) { position: relative; display: inline-flex; align-items: center; justify-content: center;
                                  min-width: 34px; height: 30px; color: #fff; font-size: 1.05rem; }
.gd-mock-top .pt { font-size: .74rem !important; font-weight: 800; color: #fbbf24 !important; border-radius: 999px;
                   padding: 0 .55rem; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); }
.gd-mock-top .n { top: -6px; right: -6px; }
.gd-mock-top .pt .n { right: -10px; }
.gd-legend { list-style: none; margin: 0; padding: .4rem .85rem .7rem; }
.gd-legend li { display: grid; grid-template-columns: 22px 1fr; gap: .55rem; align-items: baseline; padding: .4rem 0;
                border-bottom: 1px dashed rgba(255,255,255,.07); font-size: .86rem; color: var(--hbc-muted); line-height: 1.55; }
.gd-legend li:last-child { border-bottom: none; }
.gd-legend .n { width: 20px; height: 20px; border-radius: 50%; font-size: .68rem; font-weight: 900; display: inline-flex;
                align-items: center; justify-content: center; background: #fb923c; color: #3a1603; }
.gd-legend b { color: #fff; }

/* ── 포인트 타일 ───────────────────────────────────────── */
.gd-tiles { display: grid; gap: .5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .gd-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gd-tile { padding: .75rem .8rem; border-radius: 14px; background: var(--hbc-dark-2); border: 1px solid var(--hbc-border); }
.gd-tile .n { font-size: 1.3rem; font-weight: 900; color: #fbbf24; line-height: 1.1; }
.gd-tile .n small { font-size: .7rem; color: var(--hbc-muted); margin-left: 2px; font-weight: 700; }
.gd-tile .t { color: #fff; font-size: .84rem; font-weight: 700; margin-top: .2rem; }
.gd-tile .s { color: var(--hbc-muted); font-size: .72rem; line-height: 1.45; margin-top: .1rem; }
.gd-use { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.gd-use li { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border-radius: 999px; font-size: .82rem;
             color: var(--hbc-text); background: rgba(255,255,255,.05); border: 1px solid var(--hbc-border); }
.gd-use i { color: #fdba74; }

/* ── 카드 묶음 ─────────────────────────────────────────── */
.gd-cards { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gd-cards .u-card { margin: 0; display: flex; gap: .75rem; align-items: flex-start; }
.gd-cards .u-card > i { font-size: 1.45rem; color: var(--c, #fdba74); flex: none; width: 1.6rem; text-align: center; }
.gd-cards .u-card b { color: #fff; display: block; font-size: .94rem; }
.gd-cards .u-card p { margin: .2rem 0 0; color: var(--hbc-muted); font-size: .85rem; line-height: 1.65; }
.gd-cards .u-card p b { display: inline; font-size: inherit; color: var(--hbc-text); }
.gd-cards .u-card a { color: #fdba74; font-weight: 700; text-decoration: none; }

/* ── 준회원과 정회원 ───────────────────────────────────── */
.gd-tier { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.gd-tier th, .gd-tier td { padding: .6rem .5rem; border-bottom: 1px solid var(--hbc-border); color: var(--hbc-text); }
.gd-tier thead th { color: var(--hbc-muted); font-size: .76rem; font-weight: 800; text-align: center; }
.gd-tier thead th:first-child { text-align: left; }
.gd-tier td:not(:first-child) { text-align: center; width: 4.6rem; font-size: 1.1rem; }
.gd-tier tr:last-child td { border-bottom: none; }
.gd-tier .y { color: #34d399; }
.gd-tier .x { color: rgba(255,255,255,.25); }
.gd-tier th.me { color: #fb923c; }

/* ── 자주 묻는 것 ─────────────────────────────────────── */
.gd-faq details { border-bottom: 1px solid var(--hbc-border); }
.gd-faq details:last-child { border-bottom: none; }
.gd-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; min-height: 52px;
                  color: #fff; font-weight: 700; font-size: .93rem; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: "\002B"; margin-left: auto; color: #fb923c; font-size: 1.2rem; font-weight: 400; }
.gd-faq details[open] summary::after { content: "\2212"; }
.gd-faq .a { color: var(--hbc-text); font-size: .88rem; line-height: 1.8; padding: 0 0 .9rem; }
.gd-faq .a a { color: #fdba74; }

/* 이용 안내 → 책방 친구들 */
.gd-friends-link {
    display: flex; align-items: center; gap: .8rem; min-height: 64px; margin-top: .8rem; padding: .6rem .9rem;
    border-radius: 16px; text-decoration: none; color: #fff;
    background: linear-gradient(90deg, rgba(251,146,60,.14), rgba(95,184,148,.08)); border: 1px solid rgba(251,146,60,.32);
}
.gd-friends-link:hover { color: #fff; border-color: rgba(251,146,60,.6); }
.gd-friends-link .faces { display: flex; flex: none; }
.gd-friends-link .faces img { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; background: #fff7ed;
                              border: 2px solid var(--hbc-dark-2); margin-left: -10px; padding: 2px; }
.gd-friends-link .faces img:first-child { margin-left: 0; padding: 0; object-fit: cover; }
.gd-friends-link b { display: block; font-size: .94rem; }
.gd-friends-link small { display: block; color: var(--hbc-muted); font-size: .78rem; }
.gd-friends-link .bi-chevron-right { margin-left: auto; color: #fdba74; }

/* ══ 책방 친구들 (/characters) ═══════════════════════════ */
.ch-hero { text-align: center; }
.ch-cast { display: flex; align-items: flex-end; justify-content: center; gap: .2rem; padding-top: .4rem; }
.ch-cast .main { width: min(46vw, 230px); }
.ch-cast .side { width: min(22vw, 110px); margin-bottom: .4rem; }
.ch-cast .side.is-wide { width: min(28vw, 150px); margin-bottom: 1.2rem; }   /* 콥이는 옆으로 길어 같은 너비면 작아 보인다 */
.ch-hero-tx { max-width: 36rem; margin: .6rem auto 0; }
.ch-hero-tx p { margin-left: auto; margin-right: auto; }
.ch-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; max-width: 34rem; margin: 1rem auto 1.1rem; }
.ch-pick a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 104px; padding: .7rem .3rem;
    border-radius: 16px; text-decoration: none; background: var(--hbc-dark-2); border: 1px solid var(--hbc-border); color: #fff;
}
.ch-pick a:hover { color: #fff; border-color: rgba(251,146,60,.55); }
.ch-pick img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.ch-pick b { font-size: 1rem; }
.ch-pick small { color: var(--hbc-muted); font-size: .74rem; }

.ch-one {
    display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; padding: 1.1rem 1rem 1.2rem;
    border-radius: 22px; background: var(--hbc-dark-2); border: 1px solid var(--hbc-border);
    border-top: 4px solid var(--c);
}
.ch-one:first-child { margin-top: 0; }
@media (min-width: 820px) { .ch-one { grid-template-columns: 240px 1fr; gap: 1.6rem; padding: 1.5rem; } }
/* 그림은 그림책 종이(두두 원본의 크림색) 위에 — 콥이·나래의 선은 짙은 잉크라 어두운 바탕에서 프로펠러가 묻혔다 */
.ch-art {
    display: flex; align-items: center; justify-content: center; border-radius: 18px; min-height: 150px; padding: .9rem;
    background: radial-gradient(70% 70% at 50% 50%, color-mix(in srgb, var(--c) 26%, #f9f0de), #f9f0de 80%);
}
.ch-art img { width: min(48vw, 220px); max-height: 200px; object-fit: contain; }
@media (min-width: 820px) { .ch-art { align-self: start; position: sticky; top: 130px; } }
.ch-tag { display: inline-block; font-size: .74rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px;
          color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ch-body h2 { color: #fff; font-size: 1.8rem; font-weight: 900; margin: .3rem 0 .2rem; letter-spacing: -.03em; }
.ch-name { display: flex; align-items: center; gap: .4rem; margin: 0 0 .5rem; font-size: .88rem; color: var(--hbc-muted); }
.ch-name i { color: var(--c); }
.ch-name b { color: var(--c); }
.ch-lead { color: var(--hbc-text); font-size: .95rem; line-height: 1.8; margin: 0; }
.ch-lead b { color: #fff; }
.ch-look { display: flex; gap: .45rem; color: var(--hbc-muted); font-size: .83rem; line-height: 1.65; margin: .6rem 0 0;
           padding: .55rem .75rem; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed var(--hbc-border); }
.ch-look i { color: var(--c); }
.ch-body h3 { color: #fff; font-size: .95rem; font-weight: 800; margin: 1.1rem 0 .55rem; }
.ch-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ch-jobs li { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 14px;
              background: rgba(255,255,255,.03); border: 1px solid var(--hbc-border); }
.ch-jobs i { flex: none; width: 2rem; height: 2rem; border-radius: 10px; display: flex; align-items: center; justify-content: center;
             font-size: 1.05rem; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.ch-jobs b { display: block; color: #fff; font-size: .9rem; }
.ch-jobs span { display: block; color: var(--hbc-muted); font-size: .83rem; line-height: 1.6; }
.ch-jobs span b { display: inline; font-size: inherit; }
.ch-where { display: flex; flex-wrap: wrap; gap: .4rem; }
.ch-where a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .9rem; border-radius: 999px;
              text-decoration: none; font-size: .85rem; font-weight: 700; color: #fff;
              background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ch-where a i { color: var(--c); }
.ch-where a:hover { color: #fff; border-color: var(--c); }
.ch-one .gd-tip { margin-top: .9rem; }
.ch-one .gd-tip.is-sub img { width: 52px; height: 44px; }

.ch-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: 1fr; counter-reset: cf; }
@media (min-width: 820px) { .ch-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ch-flow li { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: .8rem; align-items: center;
              padding: .8rem .9rem; border-radius: 16px; background: var(--hbc-dark-2); border: 1px solid var(--hbc-border); }
@media (min-width: 820px) { .ch-flow li { grid-template-columns: 1fr; text-align: center; row-gap: .3rem; } }
.ch-flow img { width: 64px; height: 56px; object-fit: contain; grid-row: span 2; justify-self: center; }
@media (min-width: 820px) { .ch-flow img { width: 96px; height: 72px; grid-row: auto; } }
.ch-flow b { color: #fff; font-size: .93rem; }
.ch-flow b::before { counter-increment: cf; content: counter(cf) ". "; color: var(--c); }
.ch-flow span { color: var(--hbc-muted); font-size: .82rem; line-height: 1.6; }

/* ── 끝 ───────────────────────────────────────────────── */
.gd-end { text-align: center; margin-top: 2.2rem; }
.gd-end img { width: 150px; }
.gd-end p { color: var(--hbc-muted); font-size: .9rem; margin: .6rem 0 0; }
.gd-end .gd-acts { justify-content: center; }
