/* 프롬프트 도감 — 레트로 휴대용 도감 콘셉트 */
@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: "Black Han Sans", "Galmuri11", "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: #17191f; }
.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); color: var(--ink); }
.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; }

/* ── 추천 코스 ── */
.package-flow { padding-block: 14px 24px; }
.package-flow .section-head { margin-bottom: 10px; }
.package-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.package-steps li { background: var(--paper); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: start; }
.package-steps li > b { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; background: var(--cyan); border: 2px solid var(--line); font-family: var(--font-ui); font-weight: 700; }
.package-steps strong { font-family: var(--font-ui); font-weight: 600; font-size: 14px; }
.package-steps span, .package-note { font-size: 13px; color: var(--muted); }
.package-note { margin: 8px 0 12px; }
.package-flow > .btn { display: inline-block; text-decoration: none; }
.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); }
/* YouTube workflow: practical prompt and license-checked repositories together */
.yt-workflow { margin: 14px 0 8px; border: 3px solid var(--line); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow); padding: 12px; }
.yt-workflow-head { display: flex; gap: 8px 12px; align-items: baseline; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.yt-workflow-head h4 { font: 700 18px var(--font-pixel); margin: 0; }
.yt-workflow-head span, .yt-license-note { color: var(--muted); font-size: 12.5px; }
.yt-workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 10px; }
.yt-workflow-step { min-width: 0; padding: 10px; border: 2px solid var(--line); background: var(--paper); display: grid; align-content: start; gap: 8px; }
.yt-step-title { display: grid; gap: 3px; }
.yt-step-title b { font: 600 14px var(--font-ui); }
.yt-step-title span { color: var(--muted); font-size: 12.5px; }
.yt-example { border: 1px dashed var(--line); padding: 7px; }
.yt-example summary { cursor: pointer; font: 600 12.5px var(--font-ui); }
.yt-example pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; font: 12px/1.5 var(--font-mono); margin: 8px 0; }
.yt-copy { padding: 4px 8px; font-size: 12px; }
.yt-refs, .yt-repos { display: grid; gap: 6px; }
.yt-ref { text-align: left; border: 2px solid var(--line); background: var(--paper-2); padding: 6px 8px; cursor: pointer; font: 12.5px var(--font-ui); }
.yt-ref span { color: var(--muted); float: right; }
.yt-ref:hover { background: var(--yellow); color: #17191f; }
.yt-repo { border-left: 4px solid var(--cyan); padding: 3px 0 3px 8px; min-width: 0; }
.yt-repo > div { display: flex; gap: 5px 8px; align-items: center; flex-wrap: wrap; }
.yt-repo a { overflow-wrap: anywhere; font: 600 12.5px var(--font-ui); }
.yt-repo p { font-size: 12.5px; margin: 3px 0; }
.yt-repo small { color: var(--muted); font-size: 11.5px; }
.yt-license-note { margin: 10px 0 0; line-height: 1.45; }
/* ── 쉽게 말하면 ── */
.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 { color: var(--ink); 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: #17191f; }

.cap .tag.repro { background: var(--green); color: #17191f; }
.article td:first-child { word-break: keep-all; min-width: 76px; }
.article td { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 560px) { .titlebar .menu a:last-child { min-width: 44px; min-height: 44px; padding-inline: 8px; display: inline-grid; place-items: center; } }

/* Builderlog originals: no decorative image slots for text results. */
.originals,.skill-picks{padding-block:30px;scroll-margin-top:100px}
.originals>p,.skill-picks>p{color:var(--muted);line-height:1.7;max-width:860px}
.original-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-block:20px}
.original-card{display:flex;flex-direction:column;gap:12px;background:var(--paper);color:var(--ink);border:2px solid var(--line);padding:24px;text-decoration:none;min-width:0;border-radius:8px}
.original-card h3{font-family:var(--font-body);font-size:20px;line-height:1.45;margin:0;word-break:keep-all;overflow-wrap:anywhere}
.original-card p{font-size:15px;line-height:1.7;margin:0;color:var(--muted)}
.original-card small{font-size:12px;line-height:1.6;color:var(--muted)}
.original-label{font-size:12px;font-weight:800;color:var(--ink)}
.original-card>b{margin-top:auto;font-size:14px;padding-top:8px}
.original-card:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}
.badge.original{background:var(--paper-2);color:var(--ink);border:1px solid var(--line)}
.skill-pick-links{display:flex;flex-wrap:wrap;gap:12px;font-size:13px}
.skill-pick-links a{color:var(--ink);text-underline-offset:3px}
.original-card details{font-size:14px;border-top:1px solid var(--muted);padding-top:12px;line-height:1.7}
.original-card summary{cursor:pointer;font-weight:700}
.original-card details p{padding-top:10px}
@media(max-width:850px){.original-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.original-grid{grid-template-columns:1fr}.original-card{padding:20px}.original-card h3{font-size:19px}}
.skill-picks .original-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.skill-picks{scroll-margin-top:230px}
@media(max-width:560px){.skill-picks .original-grid{grid-template-columns:1fr}.skill-picks{scroll-margin-top:310px}}
@media(max-width:560px){.originals{scroll-margin-top:180px}}
.practical{padding-block:30px;scroll-margin-top:100px}
.practical>p{max-width:860px;color:var(--muted);line-height:1.7}
.practical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:20px}
.practical-card ol{padding-left:23px;margin:0;font-size:15px;line-height:1.75}
.practical-card li+li{margin-top:6px}
.practical-card .practical-copy{align-self:flex-start}
.practical-card .practical-ask{white-space:pre-wrap}
.practical-note a{color:var(--ink);text-underline-offset:3px}
@media(max-width:700px){.practical-grid{grid-template-columns:1fr}.practical{scroll-margin-top:180px}}

.varsbox { border: 3px solid var(--line); background: var(--paper-2); padding: 8px 12px; }
.varsbox summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.varsbox summary small { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: 12px; }
.varsbox .vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; margin-top: 10px; }
.varsbox label { display: grid; gap: 4px; font-size: 12.5px; min-width: 0; }
.varsbox label span { font-family: var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.varsbox input { border: 2px solid var(--line); background: var(--paper); color: var(--ink); padding: 6px 8px; font-size: 14px; min-width: 0; }
.openin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.openin .lbl { font-weight: 700; font-size: 13px; }
.openin .hint { font-size: 12px; color: var(--muted); }
.open-btn { border: 2px solid var(--line); background: var(--paper); padding: 4px 10px; font-weight: 700; font-size: 13px; text-decoration: none; box-shadow: 2px 2px 0 var(--shadow); color: var(--ink); }
.open-btn:hover { background: var(--yellow); color: #17191f; }
.letter-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px auto; padding: 12px 16px; background: var(--cyan); color: #17191f; border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); }
.letter-band div { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.letter-band b { font-family: var(--font-pixel); font-size: 22px; }
.letter-band span { font-size: 13.5px; }
.letter-band a { flex: none; background: #17191f; color: #fff; text-decoration: none; padding: 8px 14px; font-weight: 700; border: 2px solid #17191f; }

/* ── 홈: 유료 패키지(벤토) → 무료 큐레이션 ── */
.hero-proof { margin: 10px 0 0; font-weight: 700; font-size: 14px; }
.paid { padding-block: 26px 10px; }
.paid-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.paid-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--paper); color: var(--ink); text-decoration: none; border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); min-width: 0; transition: transform .08s; }
.paid-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.paid-card.featured { grid-column: span 2; grid-row: span 2; background: var(--yellow); color: #17191f; }
.paid-card h3 { font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; word-break: keep-all; }
.paid-card.featured h3 { font-size: 33px; }
.paid-card p { font-size: 14px; line-height: 1.55; margin: 0; }
.paid-card.featured p { font-size: 16px; }
.paid-emoji { font-size: 30px; line-height: 1; }
.paid-card.featured .paid-emoji { font-size: 48px; }
.paid-flow { font-family: var(--font-mono); font-size: 12.5px; opacity: .8; }
.paid-badge { position: absolute; top: -12px; right: 12px; background: var(--pink); color: #fff; border: 2px solid var(--line); font-weight: 700; font-size: 12.5px; padding: 2px 8px; }
.paid-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 8px; border-top: 2px dashed currentColor; }
.paid-foot b { font-size: 16px; }
.paid-foot small { font-size: 12px; opacity: .75; }
.paid-go { margin-left: auto; font-weight: 700; font-size: 13.5px; }
.paid-steps { margin-top: 16px; border: 3px dashed var(--line); padding: 10px 14px; background: var(--paper); }
.paid-steps summary { cursor: pointer; font-weight: 700; }
.paid-steps .package-steps { margin: 12px 0; }
.free { padding-block: 26px 10px; }
.free-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.free-tabs button { border: 2px solid var(--line); background: var(--paper); color: var(--ink); padding: 6px 12px; font-weight: 700; font-size: 13.5px; box-shadow: 2px 2px 0 var(--shadow); }
.free-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.free-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.free-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 0 0 12px; background: var(--paper); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); color: var(--ink); min-width: 0; overflow: hidden; }
.free-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--line); display: block; }
.free-card .free-txt { aspect-ratio: 4 / 3; padding: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: #17191f; color: #d9f5c4; border-bottom: 3px solid var(--line); overflow: hidden; }
.free-card b, .free-card small, .free-card em { padding: 0 12px; }
.free-card b { font-size: 15px; line-height: 1.3; word-break: keep-all; }
.free-card small { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.free-card em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pink); }
.free-more { display: inline-block; margin-top: 14px; font-weight: 700; }
@media (max-width: 900px) { .paid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .paid-grid { grid-template-columns: 1fr; } .paid-card.featured { grid-column: auto; grid-row: auto; } .paid-card.featured h3 { font-size: 26px; } }
/* 패키지 6개: 대표 1개(2칸) + 2 + 4 = 빈칸 없이 2줄 */
.paid-card.featured { grid-column: span 2; grid-row: auto; }
.paid-card.featured h3 { font-size: 30px; }
.dpad a.btn { text-decoration: none; }
.free-card .free-txt { aspect-ratio: auto; height: 118px; }
.free-card img { aspect-ratio: auto; height: 160px; }
@media (max-width: 900px) { .paid-card.featured { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  .paid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .paid-card.featured { grid-column: 1 / -1; }
  .paid-card:not(.featured) { padding: 12px; gap: 6px; }
  .paid-card:not(.featured) p, .paid-card:not(.featured) .paid-flow, .paid-card:not(.featured) .paid-foot small { display: none; }
  .paid-card:not(.featured) h3 { font-size: 17px; }
  .paid-card:not(.featured) .paid-emoji { font-size: 24px; }
  .paid-card:not(.featured) .paid-foot b { font-size: 13.5px; }
  .paid-card:not(.featured) .paid-go { font-size: 12.5px; }
}
/* 6장 = 대표(3칸) + 1 / 4 → 4열 2줄 빈칸 없음 */
.paid-card.featured { grid-column: span 3; }
@media (max-width: 900px) { .paid-card.featured { grid-column: 1 / -1; } .paid-card:last-child { grid-column: 1 / -1; } }
.cap.cover img { object-fit: cover; }
.cap .tag.txtp { background: var(--paper); }
/* 홈 전체 카드 일러스트 */
.paid-card { overflow: hidden; }
.paid-art { width: calc(100% + 36px); margin: -18px -18px 4px; height: 150px; object-fit: cover; border-bottom: 3px solid var(--line); display: block; }
.paid-card.featured .paid-art { height: 210px; }
.paid-card .paid-emoji { display: none; }
.paid-badge { z-index: 2; }
.skill-card { overflow: hidden; }
.card-art { width: calc(100% + 48px); margin: -24px -24px 8px; border-radius: 6px 6px 0 0; height: 140px; object-fit: cover; border-bottom: 3px solid var(--line); display: block; }
.course > summary { position: relative; }
.course-art { width: 72px; height: 54px; object-fit: cover; border: 2px solid var(--line); float: left; margin: 0 12px 4px 0; }
@media (max-width: 520px) { .paid-card:not(.featured) .paid-art { height: 90px; margin: -12px -12px 4px; width: calc(100% + 24px); } }

/* ═══ 카드 v2 (Higgsfield식) ═══ */
.card.v2 { display: flex; flex-direction: column; padding: 0; background: var(--paper); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); text-align: left; cursor: pointer; overflow: hidden; position: relative; min-width: 0; transition: transform .1s, box-shadow .1s; }
.card.v2:hover, .card.v2:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.card.v2 .mwrap { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 3px solid var(--line); background: var(--paper-2); }
.card.v2 .media { position: absolute; inset: 0; }
.card.v2 .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.v2 .ball { top: 10px; right: 10px; }
.card.v2 .stamp { top: 12px; right: 44px; }
.mbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.mb { font-weight: 800; font-size: 11.5px; letter-spacing: .2px; padding: 3px 7px; border: 2px solid #17191f; color: #17191f; background: #fff; box-shadow: 2px 2px 0 #17191f; }
.mb.new { background: var(--pink); color: #fff; }
.mb.hot { background: var(--yellow); }
.mb.repro { background: #b7f5c3; }
.mb.orig { background: var(--cyan); }
.card.v2 .cbody { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card.v2 .cmeta { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.v2 h3 { font-family: var(--font-pixel); font-size: 20px; line-height: 1.22; padding: 0; word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.v2 .one { margin: 0; font-size: 13.5px; color: var(--ink); opacity: .8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card.v2 .try { margin-top: auto; align-self: stretch; text-align: center; font-weight: 800; font-size: 14px; padding: 9px 10px; background: var(--ink); color: var(--paper); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); }
.card.v2:hover .try { background: var(--pink); color: #fff; }

/* 장면 1: 이미지 — 프롬프트 타이핑 → 결과 선명해짐 */
.media.img::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.15) brightness(.88); }
.card.v2 .media.img img { position: relative; object-fit: contain; }
.media.vid::before { content: none; }
.media.img .needs { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 11.5px; font-weight: 800; background: #fff; color: #17191f; border: 2px solid #17191f; box-shadow: 2px 2px 0 #17191f; padding: 3px 7px; }
.typebar { position: absolute; left: 10px; right: 10px; top: 10px; background: rgba(23,25,31,.88); color: #d9f5c4; font-family: var(--font-mono); font-size: 12px; padding: 7px 9px; border: 2px solid #17191f; white-space: nowrap; overflow: hidden; display: flex; align-items: center; opacity: 0; }
.typebar .tb-in, .term .tb-in { display: inline-block; overflow: hidden; vertical-align: bottom; clip-path: inset(0 100% 0 0); }
.caret { display: inline-block; width: 7px; height: 13px; background: #d9f5c4; margin-left: 2px; animation: blink .6s steps(2) infinite; }
.card.play .typebar { animation: tbshow 2.4s forwards; }
.card.play .typebar .tb-in, .card.play .term .tb-in { animation: type 1s .1s steps(28) forwards; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }
@keyframes tbshow { 0% { opacity: 1 } 75% { opacity: 1 } 100% { opacity: 0 } }
@keyframes blink { 50% { opacity: 0 } }

/* 장면 2: 사진 필요 — 내 사진 → 결과 전후 분할 */
.media.split .before { position: absolute; inset: 0; background: #e8e3d6; display: grid; place-items: center; clip-path: inset(0 0 0 0); z-index: 1; }
.media.split .before b { position: absolute; left: 10px; top: 10px; font-size: 12px; background: #fff; border: 2px solid #17191f; padding: 2px 7px; color: #17191f; }
.media.split .sil { width: 46%; aspect-ratio: 3/4; background: radial-gradient(circle at 50% 30%, #b9b2a3 0 22%, transparent 23%), radial-gradient(ellipse at 50% 100%, #b9b2a3 0 48%, transparent 49%); }
.media.split .divider { position: absolute; top: 0; bottom: 0; left: 100%; width: 4px; background: #fff; box-shadow: 0 0 0 2px #17191f; z-index: 2; }
.media.split .after-l { position: absolute; right: 10px; top: 10px; font-size: 12px; font-weight: 800; background: var(--yellow); border: 2px solid #17191f; padding: 2px 7px; color: #17191f; z-index: 1; }
.card.play .media.split .before { animation: wipe 1.3s .5s ease-in-out forwards; }
.card.play .media.split .divider { animation: slide 1.3s .5s ease-in-out forwards; }
.card.still .media.split .before, .card.played:not(.play) .media.split .before { clip-path: inset(0 50% 0 0); }
.card.still .media.split .divider, .card.played:not(.play) .media.split .divider { left: 50%; }
@keyframes wipe { to { clip-path: inset(0 50% 0 0); } }
@keyframes slide { from { left: 100%; } to { left: 50%; } }

/* 이미지 없는 카드: 포스터(결과 문장을 크게 + 실제 프롬프트 앞부분). 카드 크기에 맞춰 글씨가 같이 커짐 */
.card.v2 .mwrap { container-type: inline-size; }
.media.poster { display: flex; flex-direction: column; gap: 4cqw; padding: 6cqw 6cqw 17cqw; background: var(--c, var(--pink)); color: #17191f;
  background-image: radial-gradient(rgba(23,25,31,.09) 1.1px, transparent 1.3px); background-size: 10px 10px; }
.media.poster .pk { align-self: flex-start; color: #17191f; font-weight: 800; font-size: clamp(11px, 4.4cqw, 15px); background: #fff; border: 2px solid #17191f; box-shadow: 2px 2px 0 #17191f; padding: .25em .6em; white-space: nowrap; max-width: 78%; overflow: hidden; text-overflow: ellipsis; }
.media.poster .ph { flex: 0 0 auto; margin: auto 0; font-family: var(--font-body); font-weight: 900; letter-spacing: -.025em; font-size: clamp(16px, 7.6cqw, 36px); line-height: 1.24; max-height: calc(3 * 1.24em); word-break: keep-all; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.media.poster .pq { font-family: var(--font-mono); font-size: clamp(10.5px, 3.7cqw, 15px); line-height: 1.45; background: #fffdf3; border: 2px solid #17191f; box-shadow: 3px 3px 0 #17191f; padding: .6em .75em; flex: 0 0 auto; word-break: break-all; }
.media.poster .pqt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; max-height: calc(3 * 1.45em); }
.media.poster .pq i { font-style: normal; color: var(--c); font-weight: 800; }
.media.poster.k-code, .media.poster.k-film { background-color: #17191f; color: #fff; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.4px); }
.media.poster.k-code .ph, .media.poster.k-film .ph { color: #fff; }
.media.poster.k-code .ph { border-left: 1.4cqw solid var(--c); padding-left: 3.5cqw; }
.media.poster.k-code .pq { background: #0e1014; color: #b8f7c0; border-color: #3a3f4a; box-shadow: none; }
.media.poster.k-film { box-shadow: inset 0 5cqw 0 #000, inset 0 -5cqw 0 #000; padding-top: 9cqw; padding-bottom: 18cqw; }
.media.poster.k-film .pq { background: rgba(255,255,255,.08); color: #e9e9e9; border-color: rgba(255,255,255,.25); box-shadow: none; }
.media.poster.k-audio { background-color: #17191f; color: #fff; }
.media.poster.k-audio .ph { color: #fff; -webkit-line-clamp: 2; max-height: calc(2 * 1.24em); }
.media.poster.k-audio .pq { display: none; }
.media.poster .eqb { display: flex; gap: 1.6cqw; align-items: flex-end; height: 26cqw; }
.media.poster .eqb i { flex: 1; background: var(--c, var(--pink)); height: 30%; border: 2px solid #000; }
.card.play .media.poster .eqb i { animation: eq .5s ease-in-out infinite alternate; }
.media.poster .eqb i:nth-child(3n) { animation-delay: .15s; } .media.poster .eqb i:nth-child(3n+1) { animation-delay: .3s; } .media.poster .eqb i:nth-child(4n) { animation-duration: .4s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
/* 보일 때 한 번: 문장이 아래에서 올라오고 프롬프트 칸이 뒤따름 */
.card.play .media.poster .ph { animation: rise .5s .15s cubic-bezier(.2,.7,.2,1) both; }
.card.play .media.poster .pq { animation: rise .45s .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card.play .media.poster .ph, .card.play .media.poster .pq, .card.play .media.poster .eqb i { animation: none; } }

/* 주제별 가로 줄 */
.rows { display: grid; gap: 26px; min-width: 0; }
.rows > *, .row-track, #free, #free > * { min-width: 0; max-width: 100%; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.row-head h3 { font-family: var(--font-pixel); font-size: 22px; }
.see-all { background: none; border: 0; font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 12px 2px; scrollbar-width: thin; }
.row-track > .card { scroll-snap-align: start; width: auto; }
@media (min-width: 1100px) { .row-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 520px) { .row-track { grid-auto-columns: 72%; } .card.v2 h3 { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .card.v2 * { animation: none !important; } }

@keyframes bubin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card.played:not(.play) .bub, .card.still .bub, .card.played:not(.play) .al { opacity: 1; }

.media.vid video { width: 100%; height: 100%; object-fit: cover; display: block; background: #17191f; }
.mb.vid { background: #ffd23f; }
/* 채팅 장면 넘침 방지 */
.media.chat { justify-content: center; overflow: hidden; }
.bub.me { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bub.ai { overflow: hidden; }
.bub .al { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ═══ 유료 패키지 3종 배치 (2026-10-02): 큰 카드 1 + 오른쪽 2장 쌓기. 배지는 카드 안쪽에 둬서 잘리지 않게 ═══ */
.paid-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; }
.paid-card.featured { grid-column: 1; grid-row: 1 / span 2; }
.paid-card:not(.featured) { grid-column: 2; }
.paid-card:not(.featured) p, .paid-card:not(.featured) .paid-foot small { display: block; }
.paid-badge { top: 10px; right: 10px; box-shadow: 2px 2px 0 var(--shadow); }
.paid-card h3 { overflow-wrap: anywhere; }
.paid-card:not(.featured) .paid-art { height: 120px; }
.paid-foot { align-items: center; }
@media (max-width: 760px) {
  .paid-grid { grid-template-columns: 1fr; }
  .paid-card.featured, .paid-card:not(.featured), .paid-card:last-child { grid-column: 1; grid-row: auto; }
  .paid-card:not(.featured) { padding: 14px; }
  .paid-card:not(.featured) h3 { font-size: 20px; }
  .paid-card:not(.featured) .paid-art { width: calc(100% + 28px); margin: -14px -14px 4px; height: 130px; }
}

/* ═══ 요즘 뜨는 GitHub (상단) ═══ */
.ghnew { padding-block: 18px 6px; }
.gh-track { grid-auto-columns: minmax(240px, 1fr); }
@media (min-width: 1100px) { .gh-track { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 520px) { .gh-track { grid-auto-columns: 78%; } }
.ghc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; background: var(--paper); color: var(--ink); text-decoration: none; border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); transition: transform .1s, box-shadow .1s; }
.ghc:hover, .ghc:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.ghc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ghc-top b { font-weight: 800; }
.ghc-vel { font-weight: 800; color: #0a7a2f; background: #d9f7df; border: 2px solid #17191f; padding: 1px 6px; font-size: 12px; }
.ghc-top .mb { margin-left: auto; box-shadow: none; }
.ghc-own { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.ghc-name { font-family: var(--font-mono); font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ghc-d { font-size: 13.5px; line-height: 1.5; opacity: .85; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: calc(3 * 1.5em); }
.ghc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 2px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.ghc-go { font-weight: 800; color: var(--ink); }
.ghnew .free-more { display: inline-block; margin-top: 6px; }

/* 상품 페이지: 서비스 제공 기간 · 토스 결제 버튼 */
.article .provide { margin: 14px 0 10px; padding: 10px 12px; border: 2px dashed var(--line); background: var(--paper-2); font-size: 14.5px; line-height: 1.5; }
.article .provide b { margin-right: 6px; }
.article .toss-buy { display: inline-block; padding: 11px 16px; background: #3182f6; color: #fff; font-weight: 800; border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); text-decoration: none; }
.article .toss-buy:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow); }

/* 푸터 사업자 정보 (법정 표시) */
footer .biz { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 500; font-size: 12px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
footer .biz a { color: inherit; }

/* 무료 프롬프트 ↔ 유료 패키지 비교 */
.mb.pack { background: var(--yellow); }
.packcmp { margin: 14px 0; padding: 14px; border: 3px solid var(--line); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow); }
.packcmp h4 { margin: 0 0 10px; }
.packcmp table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.packcmp th, .packcmp td { border: 2px solid var(--line); padding: 8px; text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: break-word; }
.packcmp thead th { background: var(--paper); font-size: 13px; }
.packcmp thead th:last-child { background: var(--yellow); color: #17191f; }
.packcmp tbody th { width: 22%; font-size: 13px; background: var(--paper); }
.packcmp .small { margin: 10px 0; font-size: 13px; }
.packcmp-go { display: inline-block; padding: 10px 14px; background: var(--yellow); color: #17191f; font-weight: 800; border: 3px solid var(--line); box-shadow: 3px 3px 0 var(--shadow); text-decoration: none; }
@media (max-width: 520px) { .packcmp table { font-size: 13px; } .packcmp th, .packcmp td { padding: 6px; } .packcmp tbody th { width: 20%; } }

/* 카드 배지: 글자 높이에 딱 맞게, 한 줄로, 위 내용과 겹치지 않게 */
.card.v2 .mbs { align-items: flex-start; flex-wrap: nowrap; right: 10px; overflow: hidden; }
.card.v2 .mb { display: inline-flex; align-items: center; gap: 3px; line-height: 1.15; height: auto; white-space: nowrap; flex: 0 0 auto; }
.media.poster { padding-bottom: 44px; }
.media.poster .pq { margin-bottom: 0; }

/* 포스터 카드: 카드 폭이 좁아도 맨 위 이름표가 눌리지 않게 — 좁으면 프롬프트 칸을 줄이거나 숨김 */
.media.poster > .pk, .media.poster > .eqb { flex-shrink: 0; }
.media.poster .ph, .media.poster .pq { flex-shrink: 0; }
@container (max-width: 320px) {
  .media.poster { gap: 3cqw; padding-top: 5cqw; }
  .media.poster .pqt { -webkit-line-clamp: 2; max-height: calc(2 * 1.45em); }
}
@container (max-width: 250px) {
  .media.poster .pq { display: none; }
  .media.poster .ph { font-size: clamp(14px, 8cqw, 22px); }
}
@container (max-width: 180px) {
  .media.poster .ph { -webkit-line-clamp: 4; max-height: calc(4 * 1.24em); font-size: 13px; }
  .media.poster .pk { font-size: 10px; }
}

/* ═══ 패키지 카드 v3 (2026-10-02): 실제 결과·하는 일을 보여 주는 작은 화면 + 기능 표시 ═══ */
.paid-card h3 { font-size: 24px; }
.paid-card.featured h3 { font-size: 32px; }
.paid-card p { font-size: 15px; }
.pk-scene { position: relative; border: 3px solid var(--line); background: #17191f; color: #fff; padding: 12px; box-shadow: 3px 3px 0 var(--shadow); }
.paid-card.featured .pk-scene { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; padding: 14px 14px 32px; background: #17191f radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.4px) 0 0 / 10px 10px; }
.pk-phone { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 300px; border: 3px solid #fff; border-radius: 14px; overflow: hidden; background: #000; }
.pk-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-phone b { position: absolute; left: 6px; top: 6px; font-size: 11px; background: var(--yellow); color: #17191f; border: 2px solid #17191f; padding: 1px 6px; }
.pk-shorts em { position: absolute; left: 14px; bottom: 8px; font-style: normal; font-size: 12px; font-weight: 700; opacity: .85; }
.pk-blog { display: grid; gap: 7px; background: #fffdf3; color: #17191f; }
.pk-blog .pk-h { font-size: 13px; }
.pk-row { display: grid; grid-template-columns: 18px 92px 1fr; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pk-row i { font-style: normal; font-weight: 900; color: var(--pink); }
.pk-bar { height: 10px; border: 2px solid #17191f; background: linear-gradient(90deg, #7dff8a var(--v), transparent var(--v)); }
.pk-stamp { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 900; color: #0a7a2f; border: 2px solid #0a7a2f; padding: 2px 6px; transform: rotate(-4deg); background: #fff; }
.pk-reels { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; background: linear-gradient(135deg, #ffe3f1, #fff6d6); color: #17191f; }
.pk-ig { display: grid; gap: 5px; aspect-ratio: 9 / 16; border: 3px solid #17191f; border-radius: 12px; background: #fff; padding: 8px 6px; align-content: center; justify-items: center; }
.pk-prod { font-size: 30px; }
.pk-cap { width: 90%; height: 6px; background: #17191f; opacity: .7; border-radius: 3px; }
.pk-cap.s { width: 60%; opacity: .4; }
.pk-steps { display: grid; gap: 6px; font-size: 13px; font-weight: 800; }
.pk-steps span { background: #fff; border: 2px solid #17191f; padding: 4px 8px; }
.pk-steps .ok { background: #b7f5c3; }
.paid-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.paid-chips span { font-size: 12.5px; font-weight: 800; background: #fff; color: #17191f; border: 2px solid #17191f; padding: 2px 8px; }
.paid-card.featured .paid-chips span { background: #fffdf3; }
.paid-card .paid-art, .paid-card .paid-emoji, .paid-card .paid-flow { display: none; }
@media (max-width: 760px) {
  .paid-card.featured .pk-scene { gap: 8px; padding: 10px 10px 28px; }
  .pk-phone { max-height: 220px; }
  .pk-row { grid-template-columns: 16px 84px 1fr; font-size: 12.5px; }
}
@media (max-width: 760px) { .paid-card .paid-badge { position: static; align-self: flex-start; margin-bottom: -2px; } }
@media (min-width: 761px) { .paid-card.featured h3 { padding-right: 140px; } }

/* 3종 묶음 띠 (낱개 가격 인상 후 노출) */
.paid-bundle { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; background: #17191f; color: #fff; text-decoration: none; border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); }
.paid-bundle:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shadow); }
.pb-tag { font-weight: 900; font-size: 17px; }
.pb-price { font-size: 22px; color: var(--yellow); }
.paid-bundle s { opacity: .7; font-size: 14px; }
.pb-note { font-size: 14px; opacity: .9; }
.pb-go { margin-left: auto; font-weight: 900; background: var(--yellow); color: #17191f; border: 2px solid #fff; padding: 6px 12px; }
@media (max-width: 760px) { .paid-bundle .pb-go { margin-left: 0; } }
.paid-grid:has(.paid-bundle) .paid-card.featured { grid-row: 2 / span 2; }
@media (max-width: 760px) { .paid-grid:has(.paid-bundle) .paid-card.featured { grid-row: auto; } }
.buy-pending { display: inline-block; padding: 8px 12px; border: 2px dashed var(--line); background: var(--paper-2); font-weight: 800; font-size: 14px; }
/* 크티 구매 버튼 (2026-10-03) */
.article a.buy-ctee, a.buy-ctee { display: inline-block; padding: 12px 18px; background: var(--yellow); color: #17191f; border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow, #17191f); font-weight: 900; font-size: 16px; text-decoration: none; }
a.buy-ctee:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow, #17191f); }
/* 홈 바로 구매 줄 (2026-10-03) */
.paid-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 4px; padding: 14px 16px; background: var(--ink); color: var(--paper, #fffdf3); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--yellow); }
.paid-buy .pb-lead { display: flex; flex-direction: column; font-weight: 900; font-size: 17px; margin-right: 6px; }
.paid-buy .pb-lead small { font-weight: 600; font-size: 12px; opacity: .75; }
.paid-buy a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 13px; background: var(--yellow); color: #17191f; border: 2px solid #17191f; font-weight: 800; font-size: 14px; text-decoration: none; }
.paid-buy a b { background: #17191f; color: var(--yellow); padding: 1px 6px; font-size: 12px; }
.paid-buy a:hover { transform: translate(-1px, -1px); }
.paid-buy a.pb-my { margin-left: auto; background: transparent; color: inherit; border-color: currentColor; }
@media (max-width: 620px) { .paid-buy a { flex: 1 1 100%; } .paid-buy a b { margin-left: auto; } .paid-buy a.pb-my { margin-left: 0; } }
.sale-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sale-band a.go { display: inline-block; padding: 5px 11px; background: var(--yellow); color: #17191f; border: 2px solid var(--line); font-weight: 900; font-size: 13px; text-decoration: none; white-space: nowrap; }
/* 상품 페이지: 이미 산 사람 업데이트 받는 길 (2026-10-03) */
.owner-box { margin: 14px 0 6px; padding: 14px 16px; border: 2px solid var(--line); background: var(--paper-2); box-shadow: 4px 4px 0 var(--shadow, #17191f); }
.owner-box > b { display: block; font-size: 16px; margin-bottom: 6px; }
.owner-box ul { margin: 0; padding-left: 18px; }
.owner-box li { margin: 4px 0; font-size: 14px; line-height: 1.55; }
/* 내 컴에서 돌아갈까? (2026-10-04) */
.mypc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; padding: 12px 14px; border: 2px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--shadow); }
.mypc-t { font-weight: 900; font-size: 15px; }
.mypc select { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 10px; border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); border-radius: 0; max-width: 100%; }
.mypc-n { font-size: 12px; color: var(--muted); }
.env { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.repo .env { display: inline-flex; margin: 0 0 0 6px; vertical-align: middle; }
.env-b, .env-v { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11.5px; font-weight: 800; padding: 2px 7px; border: 1.5px solid var(--line); background: var(--paper-2); color: var(--ink); line-height: 1.5; }
.env-b.lv1 { background: #d8f5dc; } .env-b.lv2 { background: #fff1b8; } .env-b.lv3 { background: #ffd6e6; }
.env-v.ok { background: var(--green); color: #17191f; } .env-v.warn { background: var(--yellow); color: #17191f; } .env-v.no { background: var(--pink); color: #fff; border-color: var(--pink); }
/* 내 컴에서 돌아갈까? v2 — 버튼형 선택·요약 필터·카드 상태가 확 보이게 (2026-10-04) */
.mypc { display: block; padding: 16px 18px; }
.mypc-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mypc-h b { font-size: 18px; font-weight: 900; } .mypc-h span { font-size: 13px; color: var(--muted); }
.mypc-g { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 8px; }
.mypc-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mypc-grp > span { font-size: 13px; font-weight: 900; margin-right: 2px; }
.pcb { font: inherit; font-size: 13px; font-weight: 800; padding: 6px 11px; border: 2px solid var(--line); background: var(--paper-2); color: var(--ink); cursor: pointer; }
.pcb.on { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--yellow); }
.mypc-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 2px dashed var(--line); }
.fitb { font: inherit; font-size: 14px; font-weight: 800; padding: 8px 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.fitb b { font-size: 18px; margin-left: 4px; }
.fitb.ok { background: #d8f5dc; } .fitb.warn { background: #fff1b8; } .fitb.no { background: #ffd6e6; }
.fitb.on { outline: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px, -1px); }
.mypc-sum small { font-size: 11px; color: var(--muted); }
.env-r { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 900; padding: 4px 10px; border: 2px solid var(--line); }
.env-r.ok { background: var(--green); color: #17191f; } .env-r.warn { background: var(--yellow); color: #17191f; } .env-r.no { background: var(--pink); color: #fff; border-color: var(--pink); }
.envwrap { margin-top: 2px; }
.repo .env { display: flex; margin: 6px 0 0; }
.env-copy { font: inherit; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border: 1.5px dashed var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.repo.fit-ok, .ghc.fit-ok { border-left: 8px solid var(--green) !important; }
.repo.fit-warn, .ghc.fit-warn { border-left: 8px solid var(--yellow) !important; }
.repo.fit-no, .ghc.fit-no { opacity: .5; filter: grayscale(.7); border-left: 8px solid var(--pink) !important; }
.repo.fit-no:hover, .ghc.fit-no:hover { opacity: .85; filter: none; }
.env-b.lic { background: #ffd6e6; border-color: var(--pink); }

/* 2026-10-05 홈 개선: 눈에 편한 블루 팔레트와 구매·무료 시작 동선 */
:root {
  --bg: #f4f7fb;
  --bg-dots: #eaf0f8;
  --paper: #ffffff;
  --paper-2: #f1f5fa;
  --ink: #17243b;
  --muted: #59677d;
  --line: #d8e1ed;
  --pink: #dceaff;
  --yellow: #fff2cb;
  --cyan: #dceeff;
  --violet: #ece7ff;
  --green: #def5e7;
  --orange: #ffeadb;
  --lcd: #e8f1fb;
  --lcd-ink: #1c3558;
  --shadow: #dce5f0;
  --star: #e9a528;
  --star-off: #d9e1eb;
  --font-pixel: var(--font-body);
  --radius: 14px;
}
body { background-image: none; line-height: 1.6; }
.titlebar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.titlebar .name, .titlebar .name span { font-family: var(--font-body); }
.ticker { background: #edf4fc; border-bottom: 1px solid var(--line); color: #24476e; }
.console { background: linear-gradient(135deg,#fff 0%,#f5f9ff 70%,#e8f2ff 100%); border: 1px solid #d9e5f3; border-radius: 22px; box-shadow: 0 18px 48px rgba(34,72,122,.09); }
.console h1, .section-head h2, .card h3, .sheet h2, .empty { font-family: var(--font-body); letter-spacing: -.035em; }
.console h1 { font-weight: 850; font-size: clamp(34px, 5.5vw, 52px); line-height: 1.12; }
.console h1 small { color: #60718a; }
.console p { font-size: 16px; color: #45556c; }
.lcd { background: #e9f2fc; background-image: none; color: #18395f; border: 1px solid #cdddef; border-radius: 16px; box-shadow: none; font-family: var(--font-body); }
.lcd .full { border-top: 1px solid #c6d8ec; }
.btn, .chip, .paid-card, .pack, .repo, .card, .skill-card, .paid-steps { border-radius: 12px; box-shadow: 0 2px 8px rgba(27,50,82,.06); }
.btn { border: 1px solid #cbd9e9; padding: 10px 16px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: #e8f2ff; color: var(--ink); box-shadow: 0 5px 16px rgba(32,88,155,.13); }
.btn.pink, .dock-buy { background: #1769d2; color: white; border-color: #1769d2; }
.btn.pink:hover, .dock-buy:hover { background: #0d55b5; color: white; }
.btn.cyan { background: #edf5ff; color: #164f91; border-color: #c9def7; }
.toolbar { background: rgba(244,247,251,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.chip { border: 1px solid #d5dfeb; box-shadow: none; }
.chip[aria-pressed="true"] { background: #1769d2; color: white; }
.search input, .toolbar select { border: 1px solid #cbd7e5; border-radius: 10px; box-shadow: none; }
.card, .repo, .paid-card, .pack { border: 1px solid #dce4ee; box-shadow: 0 3px 12px rgba(26,48,77,.055); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,64,110,.12); }
.card .band { border: 0; height: 5px; }
.card h3 { font-weight: 750; }
.section-head h2 { font-weight: 800; }
.paid, .free, .ghnew, .originals, .skill-picks { scroll-margin-top: 90px; }
.paid { background: #edf5ff; border: 1px solid #d6e6fa; border-radius: 20px; padding: 22px; }
.paid-card:hover, .pack:hover { border-color: #77aeea; transform: translateY(-2px); }
.browse-dock { position: fixed; z-index: 45; inset: auto 0 0; display: flex; justify-content: center; gap: 10px; padding: 12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); background: rgba(255,255,255,.94); border-top: 1px solid #d8e1ed; backdrop-filter: blur(12px); }
.browse-dock a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid #cbd9e9; border-radius: 12px; text-decoration: none; font-weight: 750; }
.browse-dock .dock-free { color: #23476f; background: white; }
.browse-dock .dock-buy { min-width: min(260px,56vw); }
body { padding-bottom: 84px; }
@media (max-width: 520px) {
  .hero { padding-top: 18px; }
  .console { border-radius: 16px; padding: 16px; }
  .dpad { display: grid; grid-template-columns: 1fr; }
  .dpad .btn { width: 100%; justify-content: center; }
  .browse-dock { gap: 8px; padding-inline: 12px; }
  .browse-dock a { flex: 1; padding-inline: 10px; font-size: 14px; }
  .paid { padding: 16px; }
}
/* 기본 화면은 눈이 편한 밝은 블루. 어두운 모드는 사용자가 직접 고를 때만 적용 */
:root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f4f7fb; --bg-dots: #eaf0f8; --paper: #fff; --paper-2: #f1f5fa;
  --ink: #17243b; --muted: #59677d; --line: #d8e1ed; --shadow: #dce5f0;
  --lcd: #e8f1fb; --lcd-ink: #1c3558; --star-off: #d9e1eb;
  --pink: #dceaff; --yellow: #fff2cb; --cyan: #dceeff; --violet: #ece7ff; --green: #def5e7; --orange: #ffeadb;
}
.paid-card.featured { background: #e5f0ff; color: #17243b; border-color: #c5dbf5; }
.paid-card.featured .paid-badge { color: #124d91; background: #fff; border: 1px solid #c5dbf5; }
.paid-card.featured .pk-scene { color: #fff; }
.section-head h2 { color: var(--ink); }
.titlebar { color: #17243b; background: rgba(255,255,255,.96); border-bottom: 1px solid #d8e1ed; }
.titlebar a, .titlebar .name, .titlebar .name span:first-child { color: #17243b; }
.titlebar .name .ver { color: #647996; }
.titlebar .menu a { color: #304966; }
.titlebar .menu a:hover, .titlebar .menu a[aria-current="page"] { border-color: #b9d0ec; background: #edf5ff; }
.theme-btn { color: #304966; background: #f4f7fb; border: 1px solid #cbd9e9; border-radius: 8px; }
.paid { color: #17243b; }
.paid .section-head h2 { color: #18395f; }
.paid .section-head .sub { color: #52647b; }
.paid .paid-steps { color: #17243b; background: #fff; border-color: #d5e1ef; }
.paid .package-steps { color: #33455d; }
