/* 프롬프트 도감 — 레트로 휴대용 도감 콘셉트 */
@font-face { font-family: "Galmuri11"; src: url("/dogam/fonts/Galmuri11.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("/dogam/fonts/Galmuri11-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #dfe6d6;
  --bg-dots: #c9d3bd;
  --paper: #fffdf4;
  --paper-2: #f3f0e2;
  --ink: #17191f;
  --muted: #5e636c;
  --line: #17191f;
  --pink: #ff3d8e;
  --yellow: #ffd23f;
  --cyan: #38cfff;
  --violet: #b98cff;
  --green: #66e07a;
  --orange: #ff8a4d;
  --lcd: #9fc46a;
  --lcd-ink: #1e3312;
  --shadow: #17191f;
  --star: #ff9f1c;
  --star-off: #cfcbbd;
  --font-pixel: "Galmuri11", "Silkscreen", "Do Hyeon", "Noto Sans KR", sans-serif;
  --font-body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-ui: var(--font-body);
  --font-mono: "IBM Plex Mono", "Noto Sans KR", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 4px;
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14161c; --bg-dots: #1f222b; --paper: #22252d; --paper-2: #2b2f39;
    --ink: #f1efe4; --muted: #a6aab3; --line: #f1efe4; --shadow: #000;
    --lcd: #7fa651; --lcd-ink: #0f1c08; --star-off: #4a4e58;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14161c; --bg-dots: #1f222b; --paper: #22252d; --paper-2: #2b2f39;
  --ink: #f1efe4; --muted: #a6aab3; --line: #f1efe4; --shadow: #000;
  --lcd: #7fa651; --lcd-ink: #0f1c08; --star-off: #4a4e58;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(var(--bg-dots) 1px, transparent 1px);
  background-size: 12px 12px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.pixel { font-family: var(--font-pixel); }
.wrap { max-width: none; margin: 0 auto; padding-inline: clamp(16px, 2.2vw, 40px); }

/* ── 상단 창 프레임 ── */
.titlebar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--ink); color: var(--paper);
  border-bottom: 3px solid var(--line);
}
.titlebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.titlebar .name { font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: .5px; display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-wrap: wrap; min-width: 0; }
.titlebar .name .ver { color: var(--yellow); font-size: 12px; }
.winbtns { display: flex; gap: 6px; }
.winbtns span { width: 16px; height: 16px; border: 2px solid var(--paper); display: grid; place-items: center; font-family: var(--font-ui); font-weight: 600; font-size: 12px; line-height: 1; }
.theme-btn { background: var(--paper); color: var(--ink); border: 2px solid var(--paper); padding: 2px 8px; font-family: var(--font-ui); font-weight: 600; font-size: 13px; }
.theme-btn:hover { background: var(--yellow); }

/* ── 마키 ── */
.ticker { background: var(--yellow); color: #17191f; border-bottom: 3px solid var(--line); overflow: hidden; white-space: nowrap; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; }
.ticker .track { display: inline-block; padding-block: 6px; animation: ticker 40s linear infinite; }
.ticker .track span { margin-right: 48px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ── 히어로: 휴대용 도감 콘솔 ── */
.hero { padding-block: 28px 12px; }
.console {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch;
  background: var(--pink); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow);
  padding: 20px; position: relative;
}
.console::before { content: ""; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 3px solid var(--line); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }
.console .copy { padding-top: 22px; color: #17191f; }
.console h1 { font-family: var(--font-pixel); font-size: clamp(33px, 6vw, 44px); line-height: 1.15; }
.console h1 small { display: block; font-size: clamp(13px, 2.4vw, 16px); color: #17191f; opacity: .8; margin-top: 6px; }
.console p { margin: 12px 0 0; max-width: 46ch; font-size: 15px; }
.lcd {
  background: var(--lcd); color: var(--lcd-ink); border: 3px solid var(--line);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.12); padding: 14px; font-family: var(--font-pixel);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; align-content: center;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px);
}
.lcd .stat { display: flex; flex-direction: column; gap: 2px; }
.lcd .stat b { font-size: 33px; line-height: 1; font-variant-numeric: tabular-nums; }
.lcd .stat span { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; opacity: .9; letter-spacing: .2px; }
.lcd .full { grid-column: 1 / -1; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; border-top: 2px dashed var(--lcd-ink); padding-top: 8px; }
.dpad { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn {
  background: var(--paper); color: var(--ink); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow);
  padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; transition: transform .05s, box-shadow .05s;
}
.btn:hover { background: var(--yellow); color: #17191f; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow); }
.btn.cyan { background: var(--cyan); color: #17191f; }
.btn.pink { background: var(--pink); color: #fff; }
.btn:focus-visible, .chip:focus-visible, .card:focus-visible, .theme-btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ── 필터 바 ── */
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 44px); z-index: 15; background: var(--bg); padding-block: 12px; border-bottom: 3px solid var(--line); }
.toolbar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--line); background: var(--paper); padding: 4px 10px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 2px 2px 0 var(--shadow);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip .dot { width: 10px; height: 10px; border: 2px solid currentColor; display: inline-block; }
.search { flex: 1 1 200px; display: flex; gap: 8px; }
.search input, .toolbar select {
  width: 100%; border: 3px solid var(--line); background: var(--paper); color: var(--ink); padding: 7px 10px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; box-shadow: inset 3px 3px 0 rgba(0,0,0,.08);
}
.toolbar select { width: auto; }
.toolbar label.sw { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; }
.count { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); margin-left: auto; }

/* ── 카드 그리드 ── */
.gallery { padding-block: 20px 40px; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; }
.section-head .sub { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.grid > .card { height: 100%; min-height: 100%; }
.card {
  background: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow);
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; position: relative;
  transition: transform .08s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.card .band { height: 10px; border-bottom: 3px solid var(--line); background: var(--cat, var(--pink)); }
.card .head { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 12px 0; gap: 8px; }
.card .no { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); }
.card .origin { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; border: 2px solid var(--line); padding: 1px 6px; background: var(--paper-2); }
.card h3 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; padding: 6px 12px 0; word-break: keep-all; }
.card .en { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 2px 12px 0; }
.card .desc { padding: 8px 12px 0; font-size: 14px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; flex: 1 0 auto; }
.card .meta { margin-top: auto; padding: 10px 12px 12px; display: grid; gap: 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; }
.tool { font-family: var(--font-ui); font-weight: 600; font-size: 12px; padding: 1px 6px; border: 2px solid var(--line); background: var(--paper-2); }
.tool.more { background: transparent; color: var(--muted); }
.stars { font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: 1px; color: var(--star); white-space: nowrap; }
.stars .off { color: var(--star-off); }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tokbar { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); }
.tokbar .cells { display: inline-flex; gap: 2px; border: 2px solid var(--line); padding: 2px; background: var(--paper-2); }
.tokbar .cells i { width: 8px; height: 10px; background: var(--star-off); display: block; }
.tokbar .cells i.on { background: var(--green); }
.tokbar .cells i.on.mid { background: var(--yellow); }
.tokbar .cells i.on.hi { background: var(--pink); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--font-ui); font-weight: 600; font-size: 12px; padding: 1px 6px; border: 2px solid var(--line); }
.badge.tested { background: var(--green); color: #17191f; }
.badge.public { background: var(--cyan); color: #17191f; }
.badge.photo { background: var(--violet); color: #17191f; }
.badge.memory { background: var(--yellow); color: #17191f; }
.badge.sys { background: var(--orange); color: #17191f; }
.empty { border: 3px dashed var(--line); padding: 30px; text-align: center; font-family: var(--font-pixel); color: var(--muted); }

/* ── 상세 다이얼로그 ── */
dialog.sheet { border: 3px solid var(--line); box-shadow: 8px 8px 0 var(--shadow); background: var(--paper); color: var(--ink); padding: 0; width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 40px); }
dialog.sheet::backdrop { background: rgba(23,25,31,.6); }
.sheet .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--paper); padding: 8px 12px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; position: sticky; top: 0; z-index: 2; }
.sheet .bar button { background: var(--pink); color: #17191f; border: 2px solid var(--paper); width: 28px; height: 24px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; line-height: 1; }
.sheet .body { padding: 16px; display: grid; gap: 14px; }
.sheet h2 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.25; word-break: keep-all; overflow-wrap: anywhere; }
.sheet .en { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); }
.sheet .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sheet .kv > div { border: 2px solid var(--line); padding: 8px 10px; background: var(--paper-2); }
.sheet .kv b { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.sheet .kv .v { font-family: var(--font-ui); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.promptbox { border: 3px solid var(--line); background: var(--paper-2); position: relative; }
.promptbox .ph { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-bottom: 3px solid var(--line); font-family: var(--font-ui); font-weight: 600; font-size: 13px; background: var(--paper); }
.promptbox pre { margin: 0; padding: 12px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65; max-height: 320px; overflow: auto; }
.promptbox textarea.sel { position: absolute; left: -9999px; top: 0; }
.copy-btn { background: var(--cyan); color: #17191f; border: 2px solid var(--line); padding: 3px 10px; font-family: var(--font-ui); font-weight: 600; font-size: 13px; box-shadow: 2px 2px 0 var(--shadow); }
.copy-btn:active { transform: translate(2px,2px); box-shadow: none; }
.sheet h4 { font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; margin: 0 0 6px; color: var(--muted); }
.sheet p { margin: 0; }
.sheet ul { margin: 0; padding-left: 18px; }
.sheet ul li { margin-bottom: 4px; }
.sheet .src a { display: block; font-size: 13px; word-break: break-all; }
.sheet .rating-note { border-left: 4px solid var(--star); padding-left: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); background: var(--ink); color: var(--paper); border: 3px solid var(--paper); box-shadow: 4px 4px 0 var(--shadow); padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; z-index: 50; }

/* ── 깃허브 ── */
.gh { padding-block: 8px 40px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.gh .list { display: grid; gap: 10px; }
.repo { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px 12px; align-items: start; background: var(--paper); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); padding: 10px 12px; }
.repo .rank { font-family: var(--font-pixel); font-size: 22px; color: var(--muted); line-height: 1.1; }
.repo .name { font-family: var(--font-ui); font-weight: 600; font-size: 15px; word-break: break-all; text-decoration: none; }
.repo .name:hover { color: var(--pink); }
.repo .d { font-size: 13.5px; margin-top: 2px; }
.repo .why { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.repo .nums { text-align: right; font-family: var(--font-ui); font-weight: 600; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.repo .nums b { display: block; font-size: 16px; color: var(--star); }
.repo .nums .vel { color: var(--pink); }
.repo .tags { grid-column: 2 / -1; display: flex; gap: 4px; flex-wrap: wrap; }

/* ── 방법론 / 푸터 ── */
.method { padding-block: 10px 50px; }
.method .box { background: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 16px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.method h3 { font-family: var(--font-ui); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.method p, .method li { font-size: 13.5px; }
.method ul { margin: 0; padding-left: 18px; }
footer { border-top: 3px solid var(--line); padding-block: 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .console { grid-template-columns: 1fr; padding: 16px; }
  .lcd { grid-template-columns: repeat(2, 1fr); }
  .toolbar { top: calc(env(safe-area-inset-top, 0px) + 44px); }
  .grid { grid-template-columns: 1fr; }
  dialog.sheet { width: calc(100% - 16px); margin: auto 8px 0; max-height: calc(100dvh - 8px); }
  .repo { grid-template-columns: 34px 1fr; }
  .repo .nums { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .repo .nums b { display: inline; }
  .titlebar .name .sub { display: none; }
}

/* ── 결과 캡처 ── */
.cap { border-bottom: 3px solid var(--line); background: var(--paper-2); position: relative; aspect-ratio: 4 / 3; overflow: hidden; flex: none; }
.cap.img { aspect-ratio: 4 / 3; overflow: hidden; }
.cap.img img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.cap .tag { position: absolute; left: 8px; top: 8px; font-family: var(--font-ui); font-weight: 600; font-size: 12px; padding: 1px 6px; border: 2px solid var(--line); background: var(--yellow); color: #17191f; }
.cap .tag.sim { background: var(--paper); }
.cap.txt { padding: 10px 12px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; background: #17191f; color: #d9f5c4; white-space: pre-wrap; word-break: break-word; }
.cap.txt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #17191f); }
.cap.txt .ps { color: var(--green); }
.cap.none { padding: 34px 12px 10px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: var(--ink); background: repeating-linear-gradient(45deg, var(--paper-2) 0 8px, var(--paper) 8px 16px); word-break: break-word; }
.cap.none .pv { display: block; white-space: pre-wrap; opacity: .85; }
.cap.none .pv::before { content: "> "; color: var(--pink); }
.cap.none::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--paper-2)); }
.cap.none .tag { background: var(--yellow); color: #17191f; }
.cap.none .big { position: absolute; right: 8px; bottom: 6px; font-size: 44px; opacity: .14; pointer-events: none; }
.sheet .capbox { border: 3px solid var(--line); background: var(--paper-2); }
.sheet .capbox .ch { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 10px; border-bottom: 3px solid var(--line); font-family: var(--font-ui); font-weight: 600; font-size: 13px; background: var(--paper); }
.sheet .capbox img { display: block; width: 100%; max-height: 480px; object-fit: contain; background: #17191f; }
.sheet .capbox pre { margin: 0; padding: 12px; white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: #17191f; color: #d9f5c4; max-height: 360px; overflow: auto; }
.sheet .capbox .credit { padding: 6px 10px; font-size: 12px; color: var(--muted); border-top: 2px dashed var(--line); }
.sheet .capbox .credit a { color: var(--ink); }

/* ── 보기 전환 (용도별 / AI별) ── */
.viewsw { display: inline-flex; border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); background: var(--paper); }
.viewsw button { border: 0; background: transparent; padding: 6px 12px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; }
.viewsw button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.group-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 8px 12px; background: var(--ink); color: var(--paper); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); }
.group-head h3 { font-family: var(--font-pixel); font-size: 22px; }
.group-head .sub { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--yellow); }
.group-head .desc { font-size: 13.5px; opacity: .85; flex-basis: 100%; }
.group-head .n { margin-left: auto; font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; }

/* ── 추천 코스 ── */
.courses { padding-block: 8px 12px; }
.wizard { margin-bottom: 14px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.course { background: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 14px; display: grid; gap: 8px; }
.course.hidden { display: none; }
.course h3 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
.course .who { font-size: 13px; color: var(--muted); }
.course .goal { font-size: 13.5px; }
.course .where { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); border-top: 2px dashed var(--line); padding-top: 6px; }
.course ol { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: step; }
.course ol li { display: flex; align-items: center; gap: 8px; }
.course ol li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--pink); min-width: 22px; }
.course .step { flex: 1; text-align: left; background: var(--paper-2); border: 2px solid var(--line); padding: 5px 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; box-shadow: 2px 2px 0 var(--shadow); }
.course .step:hover { background: var(--yellow); color: #17191f; }
.course .step .thumb { width: 34px; height: 34px; object-fit: cover; border: 2px solid var(--line); flex: none; background: var(--paper); }
.course .step .ph { width: 34px; height: 34px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 600; font-size: 12px; background: var(--paper); color: var(--muted); }
.course .step b { font-family: var(--font-ui); font-weight: 600; font-weight: 400; font-size: 13.5px; }
.course .step small { color: var(--muted); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.card .usefor { padding: 6px 12px 0; font-size: 13px; color: var(--muted); }
.card .usefor b { color: var(--ink); font-weight: 500; }
.sheet .usebox { display: grid; gap: 6px; border: 2px solid var(--line); background: var(--paper-2); padding: 8px 10px; font-size: 13.5px; }
.sheet .usebox b { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); font-weight: 400; margin-right: 6px; }
.sheet .incourse a { display: inline-block; margin: 2px 6px 2px 0; font-family: var(--font-ui); font-weight: 600; font-size: 13px; border: 2px solid var(--line); padding: 2px 8px; text-decoration: none; background: var(--paper); box-shadow: 2px 2px 0 var(--shadow); }
.sheet .incourse a:hover { background: var(--yellow); color: #17191f; }
.sheet details.orig { border: 2px dashed var(--line); padding: 6px 10px; }
.sheet details.orig summary { font-family: var(--font-ui); font-weight: 600; font-size: 13px; cursor: pointer; }
.sheet details.orig pre { margin: 6px 0 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: 12px; }

/* ── 코스 그룹 ── */
.wiz-group { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wiz-group .gname { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--paper); background: var(--ink); border: 2px solid var(--line); padding: 3px 8px; }
.course-gh { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; border-bottom: 3px solid var(--line); padding-bottom: 6px; }
.course-gh h3 { font-family: var(--font-pixel); font-size: 22px; }
.course-gh .sub { font-size: 13.5px; color: var(--muted); }
/* ── 쉽게 말하면 ── */
.plainbox { border: 3px solid var(--line); background: var(--yellow); color: #17191f; padding: 10px 12px; display: grid; gap: 6px; box-shadow: 4px 4px 0 var(--shadow); }
.plainbox h4 { color: #17191f; margin: 0; }
.plainbox p { font-size: 14px; line-height: 1.55; }
.plainbox ol { margin: 0; padding-left: 20px; font-size: 13.5px; }
.card .plain-tag { display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 12px; border: 2px solid var(--line); background: var(--yellow); color: #17191f; padding: 1px 6px; }
/* ── 실시간 수집함 ── */
.inbox { padding-block: 8px 30px; }
.radar-wrap { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: stretch; background: var(--ink); color: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 14px; margin-bottom: 14px; }
.radar { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 3px solid var(--green); background: radial-gradient(circle, rgba(102,224,122,.15) 0 30%, transparent 31%), repeating-radial-gradient(circle, transparent 0 22px, rgba(102,224,122,.35) 22px 24px); overflow: hidden; box-shadow: inset 0 0 20px rgba(102,224,122,.25); }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(102,224,122,.35); }
.radar::before { left: 50%; top: 0; width: 2px; height: 100%; }
.radar::after { top: 50%; left: 0; height: 2px; width: 100%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(102,224,122,.0) 0deg, rgba(102,224,122,.55) 40deg, transparent 41deg); animation: sweep 3s linear infinite; }
.radar .blip { position: absolute; width: 8px; height: 8px; background: var(--green); border-radius: 0; animation: blip 3s infinite; box-shadow: 0 0 8px var(--green); }
.radar .b1 { left: 30%; top: 35%; animation-delay: .4s; } .radar .b2 { left: 68%; top: 28%; animation-delay: 1.6s; } .radar .b3 { left: 55%; top: 70%; animation-delay: 2.4s; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0%, 15% { opacity: 1; transform: scale(1.3); } 60%, 100% { opacity: .15; transform: scale(1); } }
.radar-info { display: grid; gap: 8px; align-content: start; min-width: 0; }
.live { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.live .dot { width: 10px; height: 10px; background: var(--pink); box-shadow: 0 0 8px var(--pink); animation: blink 1s steps(2, start) infinite; }
.live .cursor { animation: blink .8s steps(2, start) infinite; margin-left: -4px; }
@keyframes blink { to { visibility: hidden; } }
.feed { font-family: var(--font-mono); font-size: 12px; line-height: 1.55; color: #d9f5c4; background: #0d0f14; border: 2px solid var(--green); padding: 8px 10px; height: 92px; overflow: hidden; white-space: pre-wrap; word-break: break-all; }
.feed .t { color: var(--muted); } .feed .src { color: var(--cyan); } .feed .new { color: var(--yellow); }
.inbox-meta { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); }
.inbox .list { display: grid; gap: 8px; }
.ib { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; background: var(--paper); border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); padding: 8px 12px; }
.ib .t { font-size: 14px; text-decoration: none; word-break: break-word; }
.ib .t:hover { color: var(--pink); }
.ib .sn { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.ib .meta { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-align: right; }
.ib .badge { margin-right: 6px; }
.ib .badge.new { background: var(--yellow); color: #17191f; }
.ib .badge.unv { background: var(--paper-2); }
@media (prefers-reduced-motion: reduce) { .radar .sweep, .radar .blip, .live .dot, .live .cursor { animation: none; } }
@media (max-width: 720px) { .radar-wrap { grid-template-columns: 1fr; } .radar { width: 120px; height: 120px; margin: 0 auto; } .ib { grid-template-columns: 1fr; } .ib .meta { text-align: left; } }

/* ── 사이트 통합: 상단 메뉴, 글 페이지, 상품 CTA ── */
.titlebar .menu { display: flex; gap: 4px; margin-left: 16px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.titlebar .menu::-webkit-scrollbar { display: none; }
.titlebar .menu a { color: var(--paper); text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: 13px; padding: 3px 8px; border: 2px solid transparent; white-space: nowrap; }
.titlebar .menu a:hover, .titlebar .menu a[aria-current="page"] { border-color: var(--paper); background: rgba(255,255,255,.08); }
.page { padding-block: 28px 50px; max-width: 1100px; }
.page .crumb { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.page .crumb a { color: inherit; display: inline-block; padding: 8px 4px; }
.article { background: var(--paper); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); padding: clamp(18px, 3vw, 40px); }
.article h1 { font-family: var(--font-pixel); font-size: clamp(22px, 3.6vw, 33px); line-height: 1.2; margin-bottom: 8px; word-break: keep-all; overflow-wrap: anywhere; }
.article h1 span { font: inherit; }
.article .meta { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); margin-bottom: 20px; border-bottom: 3px solid var(--line); padding-bottom: 12px; }
.article h2 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.25; margin: 32px 0 10px; padding-left: 12px; border-left: 6px solid var(--pink); word-break: keep-all; overflow-wrap: anywhere; }
.article h3 { font-family: var(--font-ui); font-weight: 700; font-size: 17px; margin: 24px 0 8px; }
.article p, .article li { font-size: 15.5px; line-height: 1.75; max-width: 72ch; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.article img, .article video { max-width: 100%; height: auto; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); margin: 10px 0 18px; }
.article pre { background: #17191f; color: #d9f5c4; border: 3px solid var(--line); padding: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; }
.article code { font-family: var(--font-mono); font-size: .92em; background: var(--paper-2); padding: 1px 5px; border: 1px solid var(--line); }
.article pre code { background: transparent; border: 0; padding: 0; }
.article table { border-collapse: collapse; margin: 10px 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.article th, .article td { border: 2px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.article th { background: var(--paper-2); font-family: var(--font-ui); font-weight: 600; font-size: 13px; }
.article blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 6px solid var(--yellow); background: var(--paper-2); }
.article hr { border: 0; border-top: 3px dashed var(--line); margin: 24px 0; }
.article .back-link, .article .btn-buy, .article a.button, .article .cta a, .article .product-detail__actions a { display: inline-block; background: var(--cyan); color: #17191f; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; text-decoration: none; margin: 6px 8px 6px 0; }
.article a[href*="gumroad.com"] { background: var(--pink); color: #17191f; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-block; margin: 6px 8px 6px 0; }
.article .price, .article [class*="price"] { font-family: var(--font-pixel); font-size: 22px; color: var(--pink); }
.article [class*="__eyebrow"], .article .eyebrow { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.article [hidden], .article .reveal-hidden { display: block !important; }
.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.list-cards a { display: block; background: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 14px; text-decoration: none; color: var(--ink); }
.list-cards a:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--shadow); }
.list-cards h3 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; margin-bottom: 6px; word-break: keep-all; overflow-wrap: anywhere; }
.list-cards p { font-size: 13.5px; color: var(--muted); margin: 0; }
.list-cards .k { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--pink); margin-bottom: 6px; }
.cta-pack { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--yellow); color: #17191f; border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 12px 16px; }
.cta-pack .ic { font-size: 28px; }
.cta-pack b { font-family: var(--font-ui); font-weight: 600; font-size: 15px; display: block; }
.cta-pack span { font-size: 13.5px; }
.cta-pack a { background: var(--ink); color: var(--paper); border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); padding: 8px 14px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.cta-pack a:hover { background: var(--pink); color: #17191f; }
.sheet .cta-pack { grid-column: auto; }
@media (max-width: 720px) {
  .cta-pack { grid-template-columns: 1fr; }
  .titlebar .wrap { padding-block: 6px; row-gap: 4px; }
  .titlebar .name { width: 100%; justify-content: space-between; }
  .titlebar .name .ver { display: none; }
  .titlebar .menu { margin-left: 0; flex-basis: 100%; order: 3; padding-bottom: 2px; }
  .titlebar .menu a { padding: 7px 10px; }
  .titlebar .winbtns { position: absolute; right: 16px; top: 8px; }
  .titlebar .winbtns span { display: none; }
  .titlebar { position: sticky; }
  .titlebar .menu { flex-wrap: wrap; overflow: visible; }
  .toolbar { position: static; }
  .toolbar .wrap { display: grid; gap: 8px; }
}

/* ── 스킬트리 ── */
.course h3 .cnt { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.tree { position: relative; display: grid; gap: 6px; padding-left: 18px; margin-top: 4px; }
.tree::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 3px; background: var(--line); }
.branch { position: relative; border: 2px solid var(--line); background: var(--paper-2); }
.branch::before { content: ""; position: absolute; left: -13px; top: 15px; width: 11px; height: 3px; background: var(--line); }
.branch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.branch summary::-webkit-details-marker { display: none; }
.branch summary .node { width: 24px; height: 24px; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-size: 13px; flex: none; }
.branch summary b { font-family: var(--font-ui); font-weight: 700; font-size: 14px; }
.branch summary .bd { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch summary .n { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--pink); border: 2px solid var(--line); background: var(--paper); padding: 0 6px; }
.branch summary::after { content: "▸"; font-family: var(--font-pixel); color: var(--muted); }
.branch[open] summary::after { content: "▾"; }
.branch[open] { background: var(--paper); }
.leaves { display: grid; gap: 6px; padding: 4px 8px 8px 8px; border-top: 2px dashed var(--line); }
.leaves .step { width: 100%; }

.pop { font-family: var(--font-ui); font-weight: 600; font-size: 12.5px; color: var(--muted); }

/* ── 채집(포켓몬 도감 컨셉) ── */
.lcd .catch .catch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lcd .lbl { font-size: 11px; opacity: .85; }
.lcd .catch b { font-size: 22px; line-height: 1; }
.lcd .of { font-size: 11px; opacity: .85; }
.lcd .cells { display: inline-flex; gap: 2px; margin-left: auto; }
.lcd .cells i { width: 7px; height: 10px; background: rgba(0,0,0,.18); display: block; }
.lcd .cells i.on { background: var(--lcd-ink); }
.lcd .visitors { display: flex; align-items: center; gap: 8px; }
.lcd .visitors b { font-size: 18px; line-height: 1; }
.card .ball { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); background: linear-gradient(to bottom, #f5f5ec 0 50%, var(--line) 50% 0, #fff 0); background: linear-gradient(#fff, #fff) padding-box; box-shadow: 2px 2px 0 var(--shadow); cursor: pointer; z-index: 2; transition: transform .12s; }
.card .ball::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: #ff3d5a; border-radius: 13px 13px 0 0; opacity: .25; }
.card .ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; border: 3px solid var(--line); box-sizing: content-box; width: 4px; height: 4px; margin: -5px 0 0 -5px; }
.card .ball:hover { transform: scale(1.15) rotate(-10deg); }
.card.caught .ball::before { opacity: 1; }
.card .stamp { position: absolute; right: 44px; top: 12px; font-family: var(--font-ui); font-weight: 600; font-size: 13px; background: var(--yellow); color: #17191f; border: 2px solid var(--line); padding: 1px 6px; transform: rotate(-8deg); opacity: 0; pointer-events: none; z-index: 2; }
.card.caught .stamp { opacity: 1; }
.card.catching { animation: shake .9s ease-in-out; }
.card.catching .ball { animation: wobble 1s ease-in-out; }
.card.got .stamp { animation: pop .6s ease-out; }
.card.got::after { content: "✦ ✦ ✦"; position: absolute; right: 8px; top: 40px; font-family: var(--font-pixel); color: var(--pink); animation: sparkle .9s ease-out forwards; pointer-events: none; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(-3px, 1px) rotate(-1deg); } 40% { transform: translate(3px, -1px) rotate(1deg); } 60% { transform: translate(-2px, 0) rotate(-1deg); } 80% { transform: translate(2px, 1px) rotate(1deg); } }
@keyframes wobble { 0% { transform: scale(1); } 15% { transform: scale(1.4) rotate(-25deg); } 35% { transform: scale(1.4) rotate(25deg); } 55% { transform: scale(1.4) rotate(-15deg); } 75% { transform: scale(1.4) rotate(10deg); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0) rotate(-8deg); } 60% { transform: scale(1.4) rotate(-8deg); } 100% { transform: scale(1) rotate(-8deg); } }
@keyframes sparkle { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1.2); } }
.ph-btns { display: inline-flex; gap: 6px; }
.catch-btn { background: var(--paper); color: var(--ink); border: 2px solid var(--line); padding: 3px 10px; font-family: var(--font-ui); font-weight: 600; font-size: 13px; box-shadow: 2px 2px 0 var(--shadow); }
.catch-btn.done { background: var(--yellow); color: #17191f; }
.encounter { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(23,25,31,.75); }
.encounter.show { animation: flash .3s steps(2) 2; }
.enc-box { background: var(--paper); color: var(--ink); border: 4px solid var(--line); box-shadow: 8px 8px 0 var(--shadow); padding: 22px 28px; display: grid; gap: 14px; justify-items: center; max-width: min(520px, calc(100% - 32px)); animation: shake .9s ease-in-out; }
.enc-text { font-family: var(--font-pixel); font-size: clamp(16px, 3vw, 22px); text-align: center; }
.enc-ball { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); background: linear-gradient(to bottom, #ff3d5a 0 50%, #fff 50%); position: relative; animation: bounce .5s ease-in-out infinite alternate; }
.enc-ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 4px solid var(--line); }
@keyframes flash { from { background: rgba(255,255,255,.9); } to { background: rgba(23,25,31,.75); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .card.catching, .card.catching .ball, .enc-box, .enc-ball, .encounter.show { animation: none; } }

/* 긴 영문에서 스킬트리가 카드 밖으로 넘치지 않게 */
.course, .tree, .branch, .branch summary, .leaves, .leaves .step { min-width: 0; max-width: 100%; }
.branch summary b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.leaves .step b { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 저장소 행이 좁은 화면에서 넘치지 않게 */
.repo, .repo > *, .repo .nums { min-width: 0; }
@media (max-width: 720px) { .repo .nums { flex-wrap: wrap; white-space: normal; } .repo .name { word-break: break-word; } }

/* 더 보기 버튼 (그리드 전체 폭) */
.btn.more { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.list .btn.more { justify-self: start; }

/* ── 접힌 코스 카드 ── */
details.course > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
details.course > summary::-webkit-details-marker { display: none; }
details.course > summary h3 { grid-column: 1; grid-row: 1; }
details.course > summary .who { grid-column: 1; grid-row: 2; }
details.course > summary .arrow { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-pixel); font-size: 18px; color: var(--pink); transition: transform .15s; }
details.course[open] > summary .arrow { transform: rotate(180deg); }
details.course:not([open]) { box-shadow: 3px 3px 0 var(--shadow); }
details.course:not([open]) > summary { padding-bottom: 2px; }
details.course > .goal { margin-top: 6px; }
/* ── 내 도감 서랍 ── */
.bag-btn { padding: 6px 12px; font-size: 13px; box-shadow: 3px 3px 0 var(--shadow); }
.bag-btn b { background: var(--pink); color: #17191f; border: 2px solid var(--line); padding: 0 6px; margin-left: 4px; font-weight: 400; }
dialog.bag { width: min(720px, calc(100% - 32px)); }
.bag-help { font-size: 13.5px; color: var(--muted); }
.bag-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bag-list { display: grid; gap: 8px; }
.bag-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.bag-item .t { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--paper-2); border: 2px solid var(--line); padding: 6px 10px; box-shadow: 2px 2px 0 var(--shadow); min-width: 0; }
.bag-item .t:hover { background: var(--yellow); color: #17191f; }
.bag-item img, .bag-item .ph { width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 600; font-size: 12px; background: var(--paper); }
.bag-item b { font-family: var(--font-ui); font-weight: 600; font-weight: 400; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bag-item small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.bag-item .rm { border: 2px solid var(--line); background: var(--paper); font-family: var(--font-pixel); width: 36px; box-shadow: 2px 2px 0 var(--shadow); }
.bag-item .rm:hover { background: var(--pink); color: #17191f; }

/* ── 구축 프롬프트: 스택 박스 ── */
.badge.built { background: var(--orange); color: #17191f; }
.plain-tag.stack-tag { background: var(--orange); }
.stackbox { border: 3px solid var(--line); background: var(--paper-2); padding: 10px 12px; box-shadow: 4px 4px 0 var(--shadow); }
.stackbox h4 { margin: 0 0 8px; }
.stackbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.stackbox dt { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--muted); padding-top: 2px; }
.stackbox dd { margin: 0; line-height: 1.55; }
.stackbox .hu { color: var(--ink); }
.stackbox dd.hu { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.stackbox dd.hu span { background: var(--yellow); color: #17191f; border: 2px solid var(--line); padding: 1px 6px; font-size: 12.5px; }
@media (max-width: 720px) { .stackbox dl { grid-template-columns: 1fr; gap: 2px; } .stackbox dt { margin-top: 6px; } }

.licbox { border: 2px dashed var(--line); padding: 8px 10px; background: var(--paper-2); }
.licbox p { font-size: 13px; color: var(--muted); }
.seo-body { margin: 18px auto; max-width: 900px; font-size: 14px; }
.seo-body h1 { font-family: var(--font-pixel); font-size: 22px; margin-bottom: 6px; }
.seo-body h2 { font-family: var(--font-ui); font-weight: 700; font-size: 16px; margin: 16px 0 6px; }
.seo-body pre { background: #17191f; color: #d9f5c4; padding: 12px; font-family: var(--font-mono); font-size: 12px; border: 2px solid var(--line); }
.seo-body ul { padding-left: 18px; }

/* 채널 자동화 패키지 띠 */
.packs { grid-column: 1 / -1; margin: 4px 0 10px; }
.packs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 10px; }
.packs-head h3 { font-family: var(--font-pixel); font-size: 22px; }
.packs-head .sub { font-size: 12.5px; color: var(--muted); }
.packs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pack { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 6px; text-decoration: none; color: #17191f; background: var(--yellow); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); padding: 14px 16px; transition: transform .08s; min-width: 0; }
.pack:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.pack .ic { font-size: 30px; line-height: 1; }
.pack b { font-family: var(--font-ui); font-weight: 600; font-size: 15px; }
.pack .d { font-size: 12.5px; line-height: 1.45; }
.pack .line { font-family: var(--font-mono); font-size: 11px; opacity: .75; word-break: break-all; }
.pack .go { justify-self: start; font-family: var(--font-ui); font-weight: 600; font-size: 13px; border: 2px solid var(--line); background: var(--paper); padding: 3px 8px; }
.cta-pack.chan { background: var(--cyan); margin: 8px 12px 12px; }
.course > .cta-pack { grid-column: auto; }
@media (max-width: 480px) { .packs-row { grid-template-columns: 1fr; } }
.cta-pack.chan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; }
.cta-pack.chan .ic { font-size: 22px; }
.cta-pack.chan div { flex: 1 1 160px; min-width: 0; }
.cta-pack.chan b { font-size: 13.5px; }
.cta-pack.chan span:not(.ic) { font-size: 12px; line-height: 1.4; }
.cta-pack.chan a { flex: none; margin-left: auto; }
.promptbox .ph { gap: 8px; flex-wrap: wrap; }
.promptbox .ph > span:first-child { flex: 1 1 140px; min-width: 0; word-break: break-word; }
.promptbox .ph .ph-btns { display: flex; gap: 6px; flex: none; }
.catch-btn, .copy-btn { white-space: nowrap; }

.card h3 { overflow-wrap: anywhere; }
.section-head h2, .course-gh h3, .group-head h3, .packs-head h3 { word-break: keep-all; overflow-wrap: anywhere; }

.badge.new { background: var(--pink); color: #fff; }

.cap .tag.repro { background: var(--green); color: #17191f; }
