/* ==========================================================================
   늑대닷컴 안내서 — 야간 노트(night-note) 스킨
   스코프: #wf-page
   ※ 이미지 자리(.bm-ph 계열)의 PC/모바일 크기 수치는 원본 규칙 그대로 (파일 하단)
   ※ 플로팅 배너(.bd-dock)는 위치·구조 유지, 문구·색만 변경
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    background: #070b16;
}

#wf-page {
    --night: #0a0f1f;
    --night-2: #101733;
    --night-3: #161f45;
    --line: #23305c;
    --line-2: #34457c;
    --text: #cfd8f2;
    --text-2: #9aa8d1;
    --text-dim: #6b789f;
    --white: #f2f5ff;
    --ice: #7cc4ff;
    --ice-2: #3f8ef0;
    --mint: #5fe3c8;
    --mint-2: #2fbfa3;
    --plum: #b78cff;
    --plum-2: #8a5cf0;
    --wide: 1080px;
    --column: 62ch;
    --display: "Gowun Batang", "Nanum Myeongjo", "Apple SD Gothic Neo", serif;
    --body: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;

    all: revert;
    box-sizing: border-box;
    font-family: var(--body);
    background:
        radial-gradient(900px 600px at 85% -5%, rgba(138, 92, 240, 0.16), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(63, 142, 240, 0.12), transparent 55%),
        var(--night);
    color: var(--text);
    line-height: 1.88;
    letter-spacing: -0.012em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: left;
    overflow-x: clip;
}

#wf-page *,
#wf-page *::before,
#wf-page *::after { box-sizing: border-box; }

#wf-page img { max-width: 100%; height: auto; display: block; }
#wf-page a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgba(124, 196, 255, 0.3); transition: border-color 0.15s ease; }
#wf-page a:hover { border-bottom-color: var(--ice); }
#wf-page strong { color: var(--white); font-weight: 600; }
#wf-page em { font-style: normal; color: var(--mint); font-weight: 500; }
#wf-page mark { background: rgba(183, 140, 255, 0.18); color: var(--plum); padding: 0 4px; border-radius: 3px; }

#wf-page :focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
}

#wf-page .wf-wrap {
    width: 100%;
    max-width: var(--wide);
    margin-inline: auto;
    padding-inline: 24px;
}

#wf-page [id] { scroll-margin-top: 72px; }

/* ---------- 상단 띠 ---------- */
#wf-page .wf-crown {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 15, 31, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
#wf-page .wf-crown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--wide);
    margin-inline: auto;
    padding: 12px 24px;
}
#wf-page .wf-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    border: 0;
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
}
#wf-page .wf-logo i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ice), var(--plum));
    align-self: center;
}
#wf-page .wf-logo small {
    font-family: var(--body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}
#wf-page .wf-crown-links {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
#wf-page .wf-crown-links a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-2);
}
#wf-page .wf-crown-links a:hover { color: var(--white); border-color: var(--line-2); }

/* ---------- 도입부 ---------- */
#wf-page .wf-opening {
    padding: 34px 0 20px;
}
#wf-page .wf-opening-body {
    max-width: 760px;
    margin: 18px auto 0;
    text-align: center;
}
#wf-page .wf-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 5px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    color: var(--text-2);
}
#wf-page .wf-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 10px var(--mint);
}
#wf-page h1 {
    margin: 0 0 16px;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.8vw, 2.6rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.02em;
    color: var(--white);
}
#wf-page h1 b {
    font-weight: 700;
    background: linear-gradient(90deg, var(--ice), var(--plum));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#wf-page .wf-intro {
    margin: 0 auto 26px;
    max-width: 60ch;
    font-size: clamp(0.98rem, 1.3vw, 1.05rem);
    line-height: 1.95;
    color: var(--text-2);
}

/* 안내 버튼 (플로팅 배너와 같은 톤) — 폭 500px, 모바일 100% */
#wf-page .wf-go { margin: 0 0 30px; }
#wf-page .wf-go-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: 500px;
    max-width: 100%;
    padding: 15px 22px 15px 18px;
    background: linear-gradient(135deg, #131b3d, #0b1024);
    border: 1px solid rgba(124, 196, 255, 0.45);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--white);
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
#wf-page .wf-go-btn:hover {
    transform: translateY(-2px);
    border-color: var(--mint);
}
#wf-page .wf-go-glow {
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 16px;
    background: linear-gradient(115deg, var(--ice-2) 0%, var(--plum-2) 55%, var(--mint-2) 100%);
    filter: blur(14px);
    opacity: 0.45;
    animation: bd-glow-rim 3.4s ease-in-out infinite;
}
#wf-page .wf-go-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #0a0f1f;
    background: linear-gradient(135deg, var(--mint), var(--ice));
    box-shadow: 0 0 0 0 rgba(95, 227, 200, 0.6);
    animation: bd-dock-ping 2.1s ease-out infinite;
}
#wf-page .wf-go-txt {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
    min-width: 0;
}
#wf-page .wf-go-txt b {
    font-family: var(--display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--white);
}
#wf-page .wf-go-txt em {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--mint);
}
#wf-page .wf-go-arrow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--mint);
    border: 1px solid rgba(95, 227, 200, 0.45);
    animation: bd-dock-slide 1.9s ease-in-out infinite;
}

/* 도입부 세 칸 */
#wf-page .wf-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
#wf-page .wf-facts li {
    padding: 16px 18px;
    background: var(--night-2);
    text-align: left;
}
#wf-page .wf-facts b {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
}
#wf-page .wf-facts span {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

/* ---------- 차례 카드 ---------- */
#wf-page .wf-chapters {
    padding: 36px 0 20px;
}
#wf-page .wf-chapters-h {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: 1.05rem;
    color: var(--white);
}
#wf-page .wf-chapters ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: chap;
}
#wf-page .wf-chapters li { counter-increment: chap; }
#wf-page .wf-chapters a {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(16, 23, 51, 0.6);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}
#wf-page .wf-chapters a::before {
    content: counter(chap, decimal-leading-zero);
    font-family: var(--display);
    font-size: 0.85rem;
    color: var(--plum);
}
#wf-page .wf-chapters a:hover {
    border-color: var(--line-2);
    background: var(--night-3);
}
#wf-page .wf-chapters-foot {
    margin: 12px 0 0;
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ---------- 본문 장(chapter) ---------- */
#wf-page .wf-main { padding: 24px 0 60px; }

#wf-page .wf-ch {
    position: relative;
    padding: 44px 0 44px 76px;
    border-top: 1px solid var(--line);
}
#wf-page .wf-ch-num {
    position: absolute;
    left: 0;
    top: 46px;
    margin: 0;
    font-family: var(--display);
    font-size: 2.1rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--line-2);
}
#wf-page .wf-ch-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--mint);
    font-weight: 600;
}
#wf-page h2 {
    margin: 0 0 22px;
    max-width: 30ch;
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.4vw, 1.72rem);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--white);
}
#wf-page h3 {
    margin: 30px 0 10px;
    padding-left: 14px;
    border-left: 3px solid var(--plum);
    font-family: var(--body);
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
}
#wf-page h3:first-of-type { margin-top: 22px; }

#wf-page .wf-text { max-width: var(--column); }
#wf-page .wf-text p { margin: 0 0 16px; }
#wf-page .wf-text p:last-child { margin-bottom: 0; }
#wf-page .wf-text + .wf-text { margin-top: 18px; }
#wf-page .wf-text p.wf-lead {
    font-size: 1.04rem;
    color: var(--white);
}

/* 장 변형 */
#wf-page .wf-ch--panel {
    margin: 12px 0;
    padding: 40px 36px 40px 100px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(22, 31, 69, 0.55), rgba(16, 23, 51, 0.35));
}
#wf-page .wf-ch--panel .wf-ch-num { left: 30px; top: 42px; }
#wf-page .wf-ch--plain { padding-left: 36px; }
#wf-page .wf-ch--plain code { font-size: 0.85em; color: var(--mint); }

#wf-page .wf-ch--edge {
    border-top: 0;
    padding-left: 76px;
}
#wf-page .wf-ch--edge::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 100px;
    bottom: 40px;
    width: 1px;
    background: linear-gradient(180deg, var(--plum), transparent);
}

#wf-page .wf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
}
#wf-page .wf-side {
    padding: 18px 20px;
    border: 1px dashed var(--line-2);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text-2);
}
#wf-page .wf-side b {
    display: block;
    margin-bottom: 8px;
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--plum);
}
#wf-page .wf-side ul { margin: 0; padding-left: 18px; }
#wf-page .wf-side li { margin: 0 0 6px; }

/* ---------- 용어 ---------- */
#wf-page .wf-terms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 22px;
    margin: 22px 0 0;
}
#wf-page .wf-terms > div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
#wf-page .wf-terms dt {
    margin: 0 0 3px;
    font-weight: 600;
    color: var(--white);
}
#wf-page .wf-terms dt small {
    margin-left: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-dim);
}
#wf-page .wf-terms dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-2);
}

/* ---------- 절차 ---------- */
#wf-page .wf-route {
    position: relative;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
#wf-page .wf-route li {
    position: relative;
    counter-increment: step;
    padding: 0 0 22px 46px;
}
#wf-page .wf-route li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--night);
    background: linear-gradient(135deg, var(--ice), var(--mint));
}
#wf-page .wf-route li::after {
    content: "";
    position: absolute;
    left: 14.5px;
    top: 34px;
    bottom: 0;
    width: 1px;
    background: var(--line-2);
}
#wf-page .wf-route li:last-child::after { display: none; }
#wf-page .wf-route b { display: block; color: var(--white); }
#wf-page .wf-route span { display: block; font-size: 0.9rem; color: var(--text-2); }

/* ---------- 요일 격자 ---------- */
#wf-page .wf-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
#wf-page .wf-week li {
    padding: 12px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(16, 23, 51, 0.7);
    text-align: center;
}
#wf-page .wf-week li b {
    display: block;
    font-family: var(--display);
    font-size: 1.05rem;
    color: var(--white);
}
#wf-page .wf-week li span {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-2);
}
#wf-page .wf-week li.is-rest { border-style: dashed; opacity: 0.7; }
#wf-page .wf-week li.is-peak { border-color: var(--mint); box-shadow: inset 0 0 0 1px rgba(95, 227, 200, 0.3); }

/* ---------- 대조표 ---------- */
#wf-page .wf-tablewrap { overflow-x: auto; margin: 22px 0 0; }
#wf-page .wf-versus {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
#wf-page .wf-versus th,
#wf-page .wf-versus td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}
#wf-page .wf-versus th {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    font-weight: 600;
}
#wf-page .wf-versus td:first-child { color: var(--plum); width: 38%; }
#wf-page .wf-versus td:last-child { color: var(--text); }

/* ---------- 신호등 ---------- */
#wf-page .wf-flags {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
#wf-page .wf-flags li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--plum);
    border-radius: 0 10px 10px 0;
    background: rgba(16, 23, 51, 0.5);
}
#wf-page .wf-flags i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-style: normal;
    font-weight: 700;
    color: var(--plum);
    background: rgba(183, 140, 255, 0.12);
}
#wf-page .wf-flags b { display: block; color: var(--white); }
#wf-page .wf-flags span { font-size: 0.88rem; color: var(--text-2); }

/* ---------- 세 갈래 ---------- */
#wf-page .wf-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0 0;
}
#wf-page .wf-lanes > section {
    padding: 18px 18px 16px;
    border-radius: 12px;
    background: var(--night-2);
    border-top: 3px solid var(--ice);
}
#wf-page .wf-lanes > section:nth-child(2) { border-top-color: var(--plum); }
#wf-page .wf-lanes > section:nth-child(3) { border-top-color: var(--mint); }
#wf-page .wf-lanes p:first-child {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 1.02rem;
    color: var(--white);
}
#wf-page .wf-lanes p { margin: 0; font-size: 0.88rem; color: var(--text-2); }

/* ---------- 순서 화살 ---------- */
#wf-page .wf-order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    padding: 0;
    list-style: none;
}
#wf-page .wf-order li {
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--white);
    background: var(--night-2);
}
#wf-page .wf-order li + li::before {
    content: "→";
    margin-right: 10px;
    color: var(--text-dim);
}

/* ---------- 실수 카드 ---------- */
#wf-page .wf-slips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: slip;
}
#wf-page .wf-slips li {
    counter-increment: slip;
    padding: 14px 16px 14px 48px;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.9rem;
}
#wf-page .wf-slips li::before {
    content: counter(slip, decimal-leading-zero);
    position: absolute;
    left: 14px;
    top: 14px;
    font-family: var(--display);
    font-size: 0.9rem;
    color: var(--mint);
}
#wf-page .wf-slips b { display: block; color: var(--white); }
#wf-page .wf-slips span { color: var(--text-2); }

/* ---------- 체크 ---------- */
#wf-page .wf-checks {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
#wf-page .wf-checks li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}
#wf-page .wf-checks li > span { min-width: 0; }
#wf-page .wf-checks li > span a { color: var(--ice); }
#wf-page .wf-checks li::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-top: 6px;
    border: 1.5px solid var(--mint);
    border-radius: 5px;
    background: rgba(95, 227, 200, 0.08);
}

/* ---------- 인용 ---------- */
#wf-page .wf-note {
    margin: 26px 0 0;
    padding: 18px 22px;
    border-radius: 12px;
    background: rgba(183, 140, 255, 0.08);
    border: 1px solid rgba(183, 140, 255, 0.25);
}
#wf-page .wf-note p {
    margin: 0;
    font-family: var(--display);
    font-size: 1.02rem;
    color: var(--white);
}

/* ---------- 문답 ---------- */
#wf-page .wf-qa { margin: 22px 0 0; }
#wf-page .wf-qa details {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(16, 23, 51, 0.5);
}
#wf-page .wf-qa summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 44px 14px 18px;
    position: relative;
    font-weight: 600;
    color: var(--white);
}
#wf-page .wf-qa summary::-webkit-details-marker { display: none; }
#wf-page .wf-qa summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--plum);
}
#wf-page .wf-qa details[open] summary::after { content: "−"; }
#wf-page .wf-qa details p {
    margin: 0;
    padding: 0 18px 16px;
    font-size: 0.92rem;
    color: var(--text-2);
}

/* ---------- 마무리 ---------- */
#wf-page .wf-tail {
    padding: 40px 0 120px;
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 22, 0.7);
}
#wf-page .wf-tail-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}
#wf-page .wf-tail-name {
    margin: 0 0 4px;
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--white);
}
#wf-page .wf-tail-blurb {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}
#wf-page .wf-tail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.84rem;
}
#wf-page .wf-tail-nav a { color: var(--text-2); }
#wf-page .wf-tail-legal {
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-dim);
}
#wf-page .wf-tail-legal p { margin: 0 0 6px; }


/* ---------- 플로팅 배너 (위치·구조 유지, 문구·색만 변경) ---------- */
#wf-page .bd-dock {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
    animation: bd-bob 4.2s ease-in-out infinite;
    pointer-events: none;
}
#wf-page .bd-dock > * { pointer-events: auto; }

#wf-page .bd-dock-glow {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
}
#wf-page .bd-dock-glow::before,
#wf-page .bd-dock-glow::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(115deg, #3f8ef0 0%, #8a5cf0 52%, #2fbfa3 100%);
    will-change: opacity, transform;
}
#wf-page .bd-dock-glow::before {
    inset: -3px;
    filter: blur(9px);
    opacity: 0.9;
    animation: bd-glow-rim 3.4s ease-in-out infinite;
}
#wf-page .bd-dock-glow::after {
    inset: -13px;
    filter: blur(26px);
    opacity: 0.5;
    animation: bd-glow-halo 3.4s ease-in-out infinite;
}

#wf-page .bd-dock-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 310px;
    padding: 15px 22px;
    background: linear-gradient(135deg, #131b3d, #0b1024);
    border: 1px solid rgba(124, 196, 255, 0.5);
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
#wf-page .bd-dock-btn:hover {
    text-decoration: none;
    transform: scale(1.03);
    border-color: #5fe3c8;
}

#wf-page .bd-dock-dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #5fe3c8;
    box-shadow: 0 0 0 0 rgba(95, 227, 200, 0.7);
    animation: bd-dock-ping 2.1s ease-out infinite;
}

#wf-page .bd-dock-txt {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.35;
    white-space: nowrap;
}
#wf-page .bd-dock-txt b {
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}
#wf-page .bd-dock-txt em {
    font-style: normal;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5fe3c8;
}

#wf-page .bd-dock-ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #0a0f1f;
    background: linear-gradient(135deg, #5fe3c8, #7cc4ff);
    animation: bd-dock-slide 1.9s ease-in-out infinite;
}

@keyframes bd-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}
@keyframes bd-glow-rim {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
@keyframes bd-glow-halo {
    0%, 100% { opacity: 0.3; transform: scale(0.985); }
    50%      { opacity: 0.62; transform: scale(1.02); }
}
@keyframes bd-dock-ping {
    0%   { box-shadow: 0 0 0 0 rgba(95, 227, 200, 0.65); }
    70%  { box-shadow: 0 0 0 11px rgba(95, 227, 200, 0); }
    100% { box-shadow: 0 0 0 0 rgba(95, 227, 200, 0); }
}
@keyframes bd-dock-slide {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}


/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
    #wf-page .wf-split { grid-template-columns: 1fr; gap: 20px; }
    #wf-page .wf-week { grid-template-columns: repeat(4, 1fr); }
    #wf-page .wf-lanes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    #wf-page .wf-wrap { padding-inline: 16px; }
    #wf-page .wf-crown-row { padding: 10px 16px; }
    #wf-page .wf-crown-links { display: none; }
    #wf-page .wf-opening { padding: 20px 0 14px; }
    #wf-page .wf-opening-body { text-align: left; }
    #wf-page .wf-facts { grid-template-columns: 1fr; }
    #wf-page .wf-chapters ol { grid-template-columns: 1fr; }
    #wf-page .wf-ch { padding: 34px 0 34px 0; }
    #wf-page .wf-ch-num { position: static; margin-bottom: 6px; font-size: 1.5rem; }
    #wf-page .wf-ch--panel { padding: 26px 18px 28px; }
    #wf-page .wf-ch--edge::before { display: none; }
    #wf-page h2 { max-width: none; }
    #wf-page .wf-terms { grid-template-columns: 1fr; }
    #wf-page .wf-week { grid-template-columns: repeat(2, 1fr); }
    #wf-page .wf-slips { grid-template-columns: 1fr; }
    #wf-page .wf-go-btn { width: 100%; gap: 12px; padding: 13px 16px 13px 14px; }
    #wf-page .wf-go-ico { width: 40px; height: 40px; }
    #wf-page .wf-go-txt b { font-size: 1.06rem; }
    #wf-page .wf-go-txt em { font-size: 0.68rem; white-space: normal; }
    #wf-page .wf-tail { padding: 30px 0 130px; }

    #wf-page .bd-dock {
        right: 14px;
        left: auto;
        bottom: 14px;
    }
    #wf-page .bd-dock-btn {
        min-width: 0;
        width: auto;
        padding: 11px 13px 11px 16px;
        gap: 9px;
    }
    #wf-page .bd-dock-txt b { font-size: 0.87rem; }
    #wf-page .bd-dock-txt em { font-size: 0.66rem; }
    #wf-page .bd-dock-ico { width: 28px; height: 28px; }
    #wf-page .bd-dock-glow::before { inset: -2px; filter: blur(7px); }
    #wf-page .bd-dock-glow::after { inset: -10px; filter: blur(20px); }
}

@media (prefers-reduced-motion: reduce) {
    #wf-page * {
        animation-duration: 0.01ms;
        transition-duration: 0.01ms;
    }
}

@media print {
    #wf-page { background: #fff; color: #000; }
    #wf-page .wf-crown,
    #wf-page .wf-go,
    #wf-page .bd-dock { display: none; }
}


/* ==========================================================================
   이미지 자리(플레이스홀더) — 원본 규칙 그대로 (스코프 id만 변경)
   ========================================================================== */
/* ==========================================================================
   이미지 자리(플레이스홀더)
   ※ max-width / aspect-ratio / min-height / 여백 수치는 원본 그대로.
   ========================================================================== */
#wf-page .bm-ph {
    width: 100%;
    max-width: 930px;
    margin: 6px auto 42px;
    padding: 0;
}
#wf-page .wf-text + .bm-ph { margin-top: 40px; }
#wf-page .bm-ph-hero { margin: 0 0 8px; }

#wf-page .bm-ph--wide { max-width: 930px; }
#wf-page .bm-ph--md   { max-width: 640px; }
#wf-page .bm-ph--sq   { max-width: 560px; }

#wf-page .bm-ph-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    aspect-ratio: 930 / 620;
    padding: 28px 26px;
    background-color: #2b1d21;
    background-image: repeating-linear-gradient(135deg,
        rgba(176, 138, 60, 0.08) 0 12px,
        rgba(255, 255, 255, 0) 12px 26px);
    border: 2px dashed #7a5560;
    border-radius: 8px;
}
#wf-page .bm-ph--wide .bm-ph-box { aspect-ratio: 930 / 360; }
#wf-page .bm-ph--md   .bm-ph-box { aspect-ratio: 640 / 420; }
#wf-page .bm-ph--sq   .bm-ph-box { aspect-ratio: 1 / 1; }

#wf-page .bm-ph-mark {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #e8d59b;
    background: rgba(122, 46, 59, 0.35);
    border: 1px solid rgba(232, 213, 155, 0.4);
    border-radius: 8px;
}

#wf-page .bm-ph-file {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #f8f3eb;
}
#wf-page .bm-ph-file em {
    display: inline-block;
    margin-left: 9px;
    padding: 2px 9px;
    font-style: normal;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.7;
    color: #23201c;
    background: #e8d59b;
    border-radius: 999px;
    vertical-align: 1px;
}

#wf-page .bm-ph-spec {
    display: grid;
    gap: 9px;
    max-width: 74ch;
    margin: 0;
    padding: 0;
}
#wf-page .bm-ph-spec > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 10px;
}
#wf-page .bm-ph-spec dt {
    margin: 0;
    padding-top: 0.2em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #e8d59b;
}
#wf-page .bm-ph-spec dd {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #d6dcd3;
}
#wf-page .bm-ph-spec .bm-ph-copy {
    font-weight: 700;
    color: #f8f3eb;
}

#wf-page .bm-ph figcaption {
    margin-top: 11px;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
}

#wf-page .bm-ph > img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}



@media (max-width: 640px) {
    #wf-page .bm-ph { margin-bottom: 34px; }
    #wf-page .wf-text + .bm-ph { margin-top: 32px; }
    #wf-page .bm-ph-box,
    #wf-page .bm-ph--wide .bm-ph-box,
    #wf-page .bm-ph--md .bm-ph-box,
    #wf-page .bm-ph--sq .bm-ph-box {
        aspect-ratio: auto;
        min-height: 300px;
        padding: 20px 16px;
        gap: 12px;
        border-radius: 14px;
    }
    #wf-page .bm-ph-mark { width: 38px; height: 38px; }
    #wf-page .bm-ph-file { font-size: 0.85rem; }
    #wf-page .bm-ph-spec dd { font-size: 0.86rem; }
}
