/* 심플우디 퍼즐 전용 스타일 — main.css·saju.css·scale.css 와 분리 (CLAUDE.md §6). 브랜드 토큰만 값 복사
 * 2D 플랫: 단색 면 · 얇은 선 · 그림자 최소 (2026-11-24 사용자)
 * 스킨은 .pz-app[data-skin] 의 색 변수만 바꾼다 — 종류 파일(pz-*.js)은 변수만 쓴다 */
:root {
  --pz-primary: #007aff; --pz-primary-soft: #e5f1ff; --pz-primary-text: #0062cc;
  --pz-page: #f5f5f7; --pz-text: #1d1d1f; --pz-sub: #6e6e73; --pz-border: #d2d2d7; --pz-radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { background: var(--pz-page); color: var(--pz-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Noto Sans CJK KR", sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: var(--pz-primary-text); }
button, select, input { font: inherit; color: inherit; }
.pz-wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.pz-wrap.pz-narrow { max-width: 760px; }

/* 브랜드바 (계산기·스케일과 같은 모양) */
.pz-nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--pz-border); }
.pz-nav-home { font-size: 14px; font-weight: 800; color: var(--pz-text); text-decoration: none; letter-spacing: .5px; text-transform: uppercase; }
.pz-nav-right { display: flex; gap: 8px; }
.pz-pill { text-decoration: none; color: var(--pz-sub); border: 1px solid var(--pz-border); padding: 7px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pz-pill-primary { background: var(--pz-primary-soft); color: var(--pz-primary-text); border-color: transparent; }

/* 머리말 */
.pz-head { padding: 22px 0 14px; }
.pz-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 700; }
.pz-crumb a { text-decoration: none; }
/* 로고 — 초록 퍼즐 조각 마크 + 브랜드 / 퍼즐 두 줄 */
.pz-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pz-text); text-decoration: none; }
.pz-logo-mark { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #064e3b, #059669 55%, #84cc16); box-shadow: 0 3px 10px rgba(5, 150, 105, .28); }
.pz-logo-mark svg { width: 26px; height: 26px; fill: #fff; }
.pz-logo-t { display: flex; flex-direction: column; line-height: 1.05; }
.pz-logo-t small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #059669; }
.pz-logo-t b { font-size: 23px; font-weight: 900; letter-spacing: -.6px; color: var(--pz-text); }
a.pz-logo:hover .pz-logo-mark { transform: rotate(-6deg); }
.pz-logo-mark { transition: transform .2s; }
.pz-crumb-sep { color: var(--pz-sub); font-size: 18px; font-weight: 400; }
.pz-crumb-sub { color: var(--pz-sub); font-size: 15px; }
.pz-logo-lg { justify-content: center; gap: 14px; }
.pz-logo-lg .pz-logo-mark { width: 60px; height: 60px; border-radius: 17px; }
.pz-logo-lg .pz-logo-mark svg { width: 38px; height: 38px; }
.pz-logo-lg .pz-logo-t { text-align: left; }
.pz-logo-lg .pz-logo-t small { font-size: 14px; }
.pz-logo-lg .pz-logo-t b { font-size: 36px; letter-spacing: -1px; }
.pz-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; line-height: 1.25; margin-top: 14px; word-break: keep-all; }
.pz-lead { color: var(--pz-sub); font-size: 15px; margin-top: 6px; word-break: keep-all; }

/* ── 앱(설정·판·버튼) ─────────────────────────────── */
.pz-app {
  --bg: #ffffff; --fg: #1d1d1f; --sub: #6e6e73; --line: #c9ccd3; --line2: #1d1d1f; --cell: #ffffff; --given: #1d1d1f; --input: #0062cc;
  --sel: #cfe4ff; --peer: #eef4fc; --same: #b8d7ff; --err: #e5484d; --errbg: #ffe5e6; --ok: #1f9d55; --accent: #007aff; --accent-soft: #e5f1ff; --fill: #1d1d1f; --mark: #9aa0aa;
  --btn: #ffffff; --btn-fg: #1d1d1f; --btn-line: #d2d2d7; --font-cell: inherit;
  --cs: 40px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--btn-line); border-radius: var(--pz-radius); padding: 14px; position: relative;
}
.pz-app[data-skin="dark"] { --bg: #17181c; --fg: #f2f2f4; --sub: #a1a1aa; --line: #3a3d45; --line2: #d9dbe0; --cell: #202228; --given: #f2f2f4; --input: #6fb3ff; --sel: #234a7a; --peer: #262a33; --same: #2f5f99; --err: #ff6b6f; --errbg: #4a1f22; --ok: #4cd08a; --accent: #4d9fff; --accent-soft: #1d3150; --fill: #e9ebf0; --mark: #6b7280; --btn: #23252b; --btn-fg: #f2f2f4; --btn-line: #3a3d45; }
.pz-app[data-skin="paper"] { --bg: #fbf8f1; --fg: #2b2a26; --sub: #7a756a; --line: #c8c0ae; --line2: #3a352c; --cell: #fffdf7; --given: #2b2a26; --input: #46536e; --sel: #efe6cf; --peer: #f6f0e1; --same: #e6d9b5; --err: #b83a32; --errbg: #f6dcd6; --ok: #3f7a3b; --accent: #8a6d3b; --accent-soft: #f1e8d4; --fill: #2b2a26; --mark: #a39b88; --btn: #fffdf7; --btn-fg: #2b2a26; --btn-line: #d9d0bd; --font-cell: "Comic Sans MS", "Bradley Hand", cursive; }
.pz-app[data-skin="contrast"] { --bg: #ffffff; --fg: #000000; --sub: #222; --line: #555; --line2: #000; --cell: #ffffff; --given: #000; --input: #0033cc; --sel: #ffe600; --peer: #fff7b3; --same: #ffd000; --err: #c00000; --errbg: #ffd6d6; --ok: #006600; --accent: #0033cc; --accent-soft: #dfe7ff; --fill: #000; --mark: #444; --btn: #fff; --btn-fg: #000; --btn-line: #000; }
.pz-app[data-skin="sheet"] { --bg: #ffffff; --fg: #202124; --sub: #5f6368; --line: #e1e1e1; --line2: #9e9e9e; --cell: #ffffff; --given: #202124; --input: #202124; --sel: #e8f0fe; --peer: #ffffff; --same: #f1f3f4; --err: #d93025; --errbg: #fce8e6; --ok: #188038; --accent: #188038; --accent-soft: #e6f4ea; --fill: #5f6368; --mark: #9aa0a6; --btn: #ffffff; --btn-fg: #202124; --btn-line: #dadce0; --font-cell: Calibri, Arial, "Malgun Gothic", sans-serif; border-radius: 0; }
.pz-app[data-skin="editor"] { --bg: #fdfdfd; --fg: #24292f; --sub: #6e7781; --line: #eaeef2; --line2: #57606a; --cell: #fdfdfd; --given: #24292f; --input: #0550ae; --sel: #ddf4ff; --peer: #fdfdfd; --same: #f6f8fa; --err: #cf222e; --errbg: #ffebe9; --ok: #1a7f37; --accent: #0969da; --accent-soft: #ddf4ff; --fill: #57606a; --mark: #afb8c1; --btn: #f6f8fa; --btn-fg: #24292f; --btn-line: #d0d7de; --font-cell: ui-monospace, Menlo, Consolas, monospace; border-radius: 6px; }

.pz-bar, .pz-go, .pz-act, .pz-viewbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pz-bar { margin-bottom: 10px; }
.pz-go { margin-bottom: 8px; }
.pz-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pz-lab { color: var(--sub); font-weight: 700; font-size: 12px; white-space: nowrap; }
.pz-app select { background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn-line); border-radius: 8px; padding: 6px 8px; font-size: 13px; max-width: 100%; }
.pz-app button { background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn-line); border-radius: 10px; padding: 8px 12px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pz-app button:hover { border-color: var(--accent); }
.pz-app button:focus-visible, .pz-app select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pz-app .pz-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.pz-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--btn-line); border-radius: 10px; overflow: hidden; }
.pz-seg button { border: 0; border-radius: 0; padding: 6px 10px; font-size: 13px; border-right: 1px solid var(--btn-line); }
.pz-seg button:last-child { border-right: 0; }
.pz-seg button[aria-checked="true"], .pz-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pz-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pz-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.pz-status { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--sub); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.pz-status b { color: var(--fg); }
.pz-stage { position: relative; display: flex; justify-content: center; overflow-x: auto; padding: 4px 0 8px; }
.pz-board { display: inline-block; max-width: 100%; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pz-making { padding: 40px 0; color: var(--sub); text-align: center; }
.pz-tiny { text-align: center; font-size: 13px; color: var(--sub); margin: 2px 0 4px; }
.pz-tiny[hidden] { display: none; }
@media print { .pz-tiny { display: none !important; } }
.pz-msg { min-height: 1.5em; text-align: center; font-weight: 700; font-size: 14px; margin: 2px 0 8px; }
.pz-msg.is-bad { color: var(--err); } .pz-msg.is-ok { color: var(--ok); }
.pz-act { justify-content: center; margin: 4px 0 10px; }
/* 몰래 모드 알림 띠 */
.pz-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -2px 0 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #ecfdf5, #f0fdf4 60%, #f7fee7); border: 1px solid #bbf7d0; }
.pz-cta[hidden] { display: none; }
.pz-cta-q { font-weight: 800; font-size: 14px; color: #065f46; }
.pz-app .pz-cta-btn { background: #188038; border-color: #188038; color: #fff; font-weight: 800; padding: 7px 12px; font-size: 14px; }
.pz-app .pz-cta-btn:hover { background: #136b2f; }
.pz-cta small { flex-basis: 100%; font-size: 12px; color: #047857; }
@media (min-width: 700px) { .pz-cta small { flex-basis: auto; } }
/* 스킨 색 단추 */
.pz-skins { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; }
.pz-skins-lab { font-size: 13px; font-weight: 800; color: var(--sub); margin-right: 2px; }
.pz-app .pz-sw { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pz-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: 0 0 auto; }
.pz-sw em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff; background: #188038; border-radius: 6px; padding: 1px 5px; }
.pz-app .pz-sw[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.pz-sw-flat i { background: linear-gradient(135deg, #fff 50%, #007aff 50%); }
.pz-sw-dark i { background: linear-gradient(135deg, #17181c 50%, #4d9fff 50%); }
.pz-sw-paper i { background: linear-gradient(135deg, #f6efe0 50%, #8b5e34 50%); }
.pz-sw-contrast i { background: linear-gradient(135deg, #000 50%, #ffd400 50%); }
.pz-sw-sheet i { background: repeating-linear-gradient(0deg, transparent 0 5px, #188038 5px 6px), repeating-linear-gradient(90deg, transparent 0 5px, #188038 5px 6px), #fff; }
.pz-sw-editor i { background: repeating-linear-gradient(0deg, transparent 0 4px, #8c959f 4px 5px), #f6f8fa; }
.pz-sw.is-new::after { content: "NEW"; position: absolute; top: -8px; right: -6px; font-size: 9px; font-weight: 900; color: #fff; background: #ef4444; border-radius: 6px; padding: 1px 4px; animation: pz-pulse 1.6s ease-in-out infinite; }
@keyframes pz-pulse { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .pz-sw.is-new::after { animation: none; } }
/* 위장 스킨일 때는 단추를 수수하게(색·배지 없이) */
.pz-app[data-skin="sheet"] .pz-sw i, .pz-app[data-skin="editor"] .pz-sw i, .pz-app[data-skin="sheet"] .pz-sw em, .pz-app[data-skin="editor"] .pz-sw em, .pz-app[data-skin="sheet"] .pz-skins-lab, .pz-app[data-skin="editor"] .pz-skins-lab, .pz-app[data-skin="sheet"] .pz-sw.is-new::after, .pz-app[data-skin="editor"] .pz-sw.is-new::after { display: none; }
.pz-app[data-skin="sheet"] .pz-sw, .pz-app[data-skin="editor"] .pz-sw { padding: 3px 8px; font-size: 12px; font-weight: 400; box-shadow: none; }
.pz-app[data-view="small"] .pz-cta { display: none; }
@media print { .pz-cta, .pz-skins { display: none !important; } }
.pz-viewbar { justify-content: center; padding-top: 10px; border-top: 1px dashed var(--btn-line); }
.pz-boss-tip { font-size: 12px; color: var(--sub); }

/* 공용 칸 격자 — 종류 파일이 쓴다 */
.pz-grid { width: max-content; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--cols), var(--cs)); grid-auto-rows: var(--cs); background: var(--line2); gap: 1px; border: 2px solid var(--line2); }
.pz-cell { background: var(--cell); color: var(--input); display: flex; align-items: center; justify-content: center; font-size: calc(var(--cs) * .56); font-weight: 600; font-family: var(--font-cell); cursor: pointer; position: relative; line-height: 1; }
.pz-cell.is-given { color: var(--given); font-weight: 800; cursor: default; }
.pz-cell.is-peer { background: var(--peer); }
.pz-cell.is-same { background: var(--same); }
.pz-cell.is-sel { background: var(--sel); box-shadow: inset 0 0 0 2px var(--accent); }
.pz-cell.is-err { color: var(--err); background: var(--errbg); }
.pz-cell.is-hint { color: var(--ok); }
.pz-cell.is-fill { background: var(--fill); }
.pz-cell.is-x::after { content: "×"; color: var(--mark); font-size: calc(var(--cs) * .6); }
.pz-cell .pz-notes { position: absolute; inset: 1px; display: grid; grid-template-columns: repeat(3, 1fr); font-size: calc(var(--cs) * .22); color: var(--sub); font-weight: 600; }
.pz-cell .pz-notes span { display: flex; align-items: center; justify-content: center; }
.pz-pad { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.pz-pad button { min-width: 42px; padding: 8px 10px; font-size: 17px; }
.pz-pad button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.pz-svg { display: block; max-width: 100%; height: auto; }

/* 완료 화면 */
.pz-done { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); display: flex; align-items: flex-start; justify-content: center; padding: 40px 12px; border-radius: inherit; z-index: 5; }
.pz-done[hidden] { display: none; }
.pz-done-card { background: var(--bg); border: 1px solid var(--btn-line); border-radius: 16px; padding: 22px 18px 18px; text-align: center; max-width: 420px; width: 100%; }
.pz-done-t { font-size: 24px; font-weight: 800; }
.pz-done-s { color: var(--sub); margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.pz-done-btn { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pz-ad-done { margin-top: 28px; max-width: 100%; overflow: hidden; }
@media (max-width: 600px) { .pz-done { padding: 12px 8px; } .pz-done-card { padding: 16px 12px 12px; } .pz-ad-done { margin-top: 20px; } }   /* 버튼과 간격(실수 클릭 방지 — 애드센스 정책) */

/* 모달(인쇄 설정) */
.pz-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.pz-modal-card { background: #fff; color: #1d1d1f; border-radius: 16px; padding: 20px; width: 100%; max-width: 360px; display: grid; gap: 10px; }
.pz-modal-t { font-weight: 800; font-size: 18px; }
.pz-ck { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.pz-ck input { width: 20px; height: 20px; accent-color: #007aff; }
.pz-modal-card select { border: 1px solid #d2d2d7; border-radius: 8px; padding: 6px 8px; }
.pz-modal-btn { display: flex; gap: 8px; margin-top: 6px; }
.pz-modal-btn button { flex: 1; border: 1px solid #d2d2d7; background: #fff; border-radius: 10px; padding: 10px; font-weight: 800; cursor: pointer; }
.pz-modal-btn .pz-primary { background: #007aff; color: #fff; border-color: #007aff; }
.pz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; }

/* 보기: 크게 / 작게(몰래) */
.pz-app[data-view="large"] { font-size: 17px; }
.pz-app[data-view="large"] button { font-size: 16px; padding: 11px 15px; }
.pz-app[data-view="small"] { padding: 8px; font-size: 12px; }
.pz-app[data-view="small"] .pz-bar, .pz-app[data-view="small"] .pz-act { gap: 4px 6px; }
.pz-app[data-view="small"] button { font-size: 12px; padding: 4px 7px; border-radius: 6px; }
.pz-app[data-view="small"] select { font-size: 12px; padding: 3px 4px; }
.pz-app[data-view="small"] .pz-lab { display: none; }
body[data-pz-view="small"] .pz-lead, body[data-pz-view="small"] .pz-head h1 { font-size: 15px; }
body[data-pz-view="small"] .pz-lead { display: none; }

/* 위장 스킨: 페이지 장식을 걷고 화면을 문서처럼 */
.pz-sheetbar, .pz-colhdr, .pz-rowhdr { display: none; }
body[data-pz-skin="sheet"], body[data-pz-skin="editor"] { background: #fff; }
body[data-pz-skin="sheet"] .pz-nav, body[data-pz-skin="sheet"] .pz-head, body[data-pz-skin="sheet"] .pz-desc, body[data-pz-skin="sheet"] .pz-more, body[data-pz-skin="sheet"] [data-pz-ad="body"],
body[data-pz-skin="editor"] .pz-nav, body[data-pz-skin="editor"] .pz-head, body[data-pz-skin="editor"] .pz-desc, body[data-pz-skin="editor"] .pz-more, body[data-pz-skin="editor"] [data-pz-ad="body"] { display: none; }
.pz-app[data-skin="sheet"] { padding-top: 0; border: 1px solid #dadce0; font-family: Calibri, Arial, "Malgun Gothic", sans-serif; }
.pz-app[data-skin="sheet"] .pz-sheetbar { display: block; margin: 0 -14px 10px; border-bottom: 1px solid #dadce0; }
.pz-sb-menu { display: flex; gap: 14px; padding: 6px 14px; background: #f8f9fa; font-size: 13px; color: #3c4043; border-bottom: 1px solid #e0e0e0; }
.pz-sb-fx { display: flex; align-items: center; gap: 10px; padding: 4px 14px; font-size: 13px; color: #3c4043; }
.pz-sb-fx b { font-weight: 400; border-right: 1px solid #dadce0; padding-right: 10px; min-width: 40px; }
.pz-sb-fx i { color: #9aa0a6; font-style: italic; }
.pz-app[data-skin="sheet"] .pz-stage { display: grid; grid-template-columns: 34px auto; grid-template-rows: 20px auto; justify-content: start; gap: 0; }
.pz-app[data-skin="sheet"] .pz-colhdr { display: flex; grid-column: 2; grid-row: 1; background: #f8f9fa; border-bottom: 1px solid #c0c0c0; overflow: hidden; }
.pz-app[data-skin="sheet"] .pz-rowhdr { display: flex; flex-direction: column; grid-column: 1; grid-row: 2; background: #f8f9fa; border-right: 1px solid #c0c0c0; overflow: hidden; }
.pz-colhdr span { flex: 0 0 var(--cs); text-align: center; font-size: 11px; color: #5f6368; line-height: 20px; border-right: 1px solid #e0e0e0; }
.pz-rowhdr span { flex: 0 0 var(--cs); line-height: var(--cs); text-align: center; font-size: 11px; color: #5f6368; border-bottom: 1px solid #e0e0e0; }
.pz-app[data-skin="sheet"] .pz-board { grid-column: 2; grid-row: 2; }
.pz-app[data-skin="sheet"] .pz-grid { border-width: 1px; gap: 1px; }
.pz-app[data-skin="sheet"] .pz-pad { width: 0; min-width: 100%; flex-wrap: nowrap; gap: 3px; }   /* 숫자판을 시트 칸 폭 안 한 줄로 */
.pz-app[data-skin="sheet"] .pz-pad button { flex: 1 1 auto; min-width: 0; padding: 6px 2px; font-size: 14px; white-space: nowrap; }
.pz-app[data-skin="sheet"] button { border-radius: 4px; font-weight: 400; }
.pz-app[data-skin="sheet"] .pz-primary { background: #188038; border-color: #188038; }
.pz-app[data-skin="editor"] { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pz-app[data-skin="editor"]::before { content: "● ● ●"; display: block; font-size: 10px; letter-spacing: 3px; color: #d0d7de; margin: -6px 0 8px; }

/* 몰래 모드 덮개(Esc) */
.pz-cover { position: fixed; inset: 0; background: #fff; z-index: 1000; overflow: hidden; }
.pz-cover[hidden] { display: none; }
.pz-cv-menu { display: flex; gap: 16px; padding: 8px 16px; background: #f8f9fa; border-bottom: 1px solid #e0e0e0; font: 13px Arial, sans-serif; color: #3c4043; }
.pz-cv-grid { display: grid; grid-template-columns: 40px repeat(19, 1fr); }
.pz-cv-grid i { height: 22px; border-right: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
.pz-cv-grid i:nth-child(20n+1) { background: #f8f9fa; }
.pz-cv-note { padding: 24px; font: 14px/1.7 ui-monospace, Menlo, Consolas, monospace; color: #24292f; }

/* 광고 자리(수동 3개) */
.pz-ad { margin: 24px auto; min-height: 0; text-align: center; }
.pz-ad[hidden] { display: none; }

/* 설명글 */
.pz-desc { background: #fff; border-radius: var(--pz-radius); padding: 20px; margin-top: 18px; font-size: 15px; }
.pz-desc h2 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -.3px; }
.pz-desc h2:first-child { margin-top: 0; }
.pz-desc p, .pz-desc li { color: #3a3a3c; word-break: keep-all; }
.pz-desc ul, .pz-desc ol { padding-left: 20px; margin: 6px 0; }
.pz-desc p + p { margin-top: 8px; }
.pz-faq { margin-top: 10px; }
.pz-faq div { border-top: 1px solid #ececf0; padding: 10px 0; }
.pz-faq strong { display: block; margin-bottom: 4px; }
.pz-more { margin-top: 18px; }
.pz-more h2 { font-size: 17px; margin-bottom: 10px; }
.pz-more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pz-more-list a { background: #fff; border: 1px solid var(--pz-border); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--pz-text); font-weight: 700; font-size: 14px; }

/* 허브 */
.pz-hub-head { text-align: center; padding: 30px 0 18px; }
.pz-hub-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.pz-hub-head p { color: var(--pz-sub); font-size: 15px; margin-top: 6px; word-break: keep-all; }
.pz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pz-tile { display: block; text-decoration: none; color: var(--pz-text); background: #fff; border: 1px solid var(--pz-border); border-radius: var(--pz-radius); overflow: hidden; }
.pz-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #eef1f6; }
.pz-tile div { padding: 12px 14px 14px; }
.pz-tile h2 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.pz-tile p { font-size: 13px; color: var(--pz-sub); margin-top: 2px; word-break: keep-all; }
.pz-tile em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--pz-primary-text); }
.pz-sets { margin-top: 22px; }
.pz-sets h2 { font-size: 18px; margin-bottom: 10px; }

footer { margin-top: 28px; text-align: center; font-size: 11px; color: var(--pz-sub); padding-bottom: 40px; }
.pz-lang { margin-bottom: 8px; font-size: 13px; }
.pz-lang a { text-decoration: none; margin: 0 4px; }
.pz-lang a[aria-current] { font-weight: 800; color: var(--pz-text); }
.pz-foot-links { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin-bottom: 6px; }
.pz-foot-links a { color: var(--pz-sub); text-decoration: none; }

@media (max-width: 600px) {
  .pz-wrap { padding: 12px; }
  .pz-nav-home { font-size: 12px; }
  .pz-pill { padding: 6px 9px; font-size: 11px; }
  .pz-head h1 { font-size: 24px; }
  .pz-app { padding: 10px; }
  .pz-cards { gap: 8px; }
  .pz-tile div { padding: 10px; }
  .pz-tile h2 { font-size: 15px; }
  .pz-tile p { font-size: 12px; }
  .pz-app[data-skin="sheet"] .pz-sheetbar { margin: 0 -10px 10px; }
  .pz-app[data-skin="sheet"] .pz-stage { grid-template-columns: 26px auto; }
}

/* 일본어: 단어 중간 줄바꿈 방지(<wbr> 자리에서만) */
html[lang="ja"] .pz-head h1, html[lang="ja"] .pz-lead, html[lang="ja"] .pz-desc p, html[lang="ja"] .pz-desc li, html[lang="ja"] .pz-tile h2, html[lang="ja"] .pz-tile p, html[lang="ja"] .pz-hub-head h1, html[lang="ja"] .pz-hub-head p { word-break: keep-all; overflow-wrap: anywhere; }

/* ── 인쇄: 흰 종이 흑백, 광고·버튼 없이 문제지(·정답지)만 ── */
#pz-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff !important; }
  body > *:not(#pz-print) { display: none !important; }
  #pz-print { display: block !important; color: #000; }
  .pzp-page { page-break-after: always; break-after: page; display: flex; flex-direction: column; min-height: 268mm; }
  .pzp-page:last-child { page-break-after: auto; break-after: auto; }
  .pzp-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-bottom: 1.5px solid #000; padding-bottom: 4px; margin-bottom: 8mm; font-size: 13pt; }
  .pzp-head span { font-size: 10pt; }
  .pzp-name { margin-left: auto; }
  .pzp-grid { flex: 1; display: grid; gap: 8mm; align-content: start; }
  .pzp-n1 .pzp-grid { grid-template-columns: 1fr; }
  .pzp-n2 .pzp-grid { grid-template-columns: 1fr; }
  .pzp-n4 .pzp-grid { grid-template-columns: 1fr 1fr; }
  .pzp-n6 .pzp-grid { grid-template-columns: 1fr 1fr; }
  .pzp-grid figure { text-align: center; break-inside: avoid; }
  .pzp-grid svg { width: 100%; height: auto; max-height: 230mm; }
  .pzp-n2 .pzp-grid svg { max-height: 112mm; }
  .pzp-n4 .pzp-grid svg { max-height: 112mm; }
  .pzp-n6 .pzp-grid svg { max-height: 66mm; }
  .pzp-grid figcaption { font-size: 8.5pt; color: #444; margin-top: 2mm; }
  .pzp-foot { font-size: 8pt; color: #666; text-align: right; margin-top: 4mm; }
}

/* 허브: 몰래 모드 알림 */
.pz-hub-sneak { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--pz-radius); background: linear-gradient(135deg, #064e3b, #059669 60%, #65a30d); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(5, 150, 105, .25); }
.pz-hub-sneak b { display: block; font-size: 16px; }
.pz-hub-sneak span { font-size: 13.5px; line-height: 1.45; word-break: keep-all; }
.pz-hs-ic { font-size: 30px !important; flex: 0 0 auto; }
.pz-hub-sneak em { margin-left: auto; flex: 0 0 auto; font-style: normal; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 480px) { .pz-hub-sneak { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; } .pz-hub-sneak em { grid-column: 2; margin-left: 0; justify-self: start; } }
