/* 자미두수(ziwei, indigo) and 음양사(onmyo, vermilion) screens. */
.fortune-ziwei{--fortune:#5b57a6;--fortune-soft:#efeefb}
.fortune-onmyo{--fortune:#c8553d;--fortune-soft:#fdf0ec}
.fortune-primary{background:var(--fortune,#6bb1ae)!important;border:0!important;color:white;border-radius:35px}
#fortune-form .fortune-primary,.fortune-reader .fortune-primary{background:var(--fortune)!important}
#fortune-form[data-kind="ziwei"]{--fortune:#5b57a6}
#fortune-form[data-kind="onmyo"]{--fortune:#c8553d}
.fortune-form-heading{display:flex;align-items:center;gap:14px;margin:-24px -20px 18px;padding:18px 20px;background:var(--fortune-soft)}
.fortune-form-heading h1{margin:0;font-size:20px;line-height:1.4}
.fortune-intro{margin:0 0 14px;color:#555;font-size:14px;line-height:1.7}
.fortune-warning{margin:14px 0;padding:12px 14px;border-radius:12px;background:#fff1f0;color:#b23b2e;font-size:13px;line-height:1.6}
.fortune-report-heading{position:relative;background:var(--fortune);color:white;padding:24px 24px 26px;text-align:center}
.fortune-report-heading .back{position:absolute;left:16px;top:18px;font-size:22px;color:white}
.fortune-report-heading small{display:block;opacity:.85;font-size:13px;letter-spacing:.08em}
.fortune-report-heading h1{font-size:22px;margin:6px 20px 0;line-height:1.5;color:white}
.fortune-concern{margin:12px auto 0;max-width:420px;padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.16);font-size:13px;line-height:1.6}
.fortune-chart{background:var(--fortune-soft);padding:0 10px 14px}
.fortune-chart>summary{cursor:pointer;padding:15px 6px;font-size:16px;font-weight:600;color:var(--fortune);text-align:center;list-style:none}
.fortune-note{margin:8px 4px 0!important;font-size:11px!important;line-height:1.65!important;color:#7a7a86}
.fortune-reader .result-band{background:var(--fortune)}
/* 명반 4x4 */
.zw-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,auto);gap:3px;background:#d9d6ef;border:3px solid #d9d6ef;border-radius:12px;overflow:hidden}
.zw-cell{position:relative;display:flex;flex-direction:column;gap:3px;min-height:104px;padding:5px 4px;background:white;font-size:11px;line-height:1.35;min-width:0}
.zw-soul{background:#fff8e6}
.zw-head{display:flex;align-items:center;justify-content:space-between;gap:2px}
.zw-head b{font-size:11px;color:#3e3a7a}
.zw-head em{font-style:normal;font-size:9px;padding:0 4px;border-radius:6px;background:#ece9ff;color:#5b57a6}
.zw-major{display:flex;flex-direction:column;gap:1px}
.zw-major span{font-weight:600;color:#222;font-size:12px;white-space:nowrap}
.zw-major small{margin-left:2px;font-weight:400;color:#9a97b8;font-size:9px}
.zw-major .zw-empty{font-weight:400;color:#b5b5c3;font-size:10px}
.zw-mut{display:inline-block;margin-left:2px;padding:0 3px;border-radius:4px;font-style:normal;font-size:9px;color:white;vertical-align:1px}
.zw-록{background:#3f9d6a}.zw-권{background:#d68a1c}.zw-과{background:#4a83c7}.zw-기{background:#d0566a}
.zw-minor{color:#8a879f;font-size:10px;word-break:keep-all}
.zw-foot{margin-top:auto;display:flex;justify-content:space-between;color:#a6a3bd;font-size:9px}
.zw-now{position:absolute;right:3px;bottom:16px;display:flex;gap:2px}
.zw-now i{font-style:normal;font-size:9px;padding:0 4px;border-radius:6px;background:#5b57a6;color:white}
.zw-center{grid-row:2/4;grid-column:2/4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;background:linear-gradient(160deg,#3c3880,#5b57a6);color:white;text-align:center;font-size:11px;line-height:1.45}
.zw-center b{font-size:18px;letter-spacing:.05em}
/* 음양사 */
.om-stars{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.om-stars div{background:white;border-radius:14px;padding:12px;text-align:center}
.om-stars small{display:block;color:#a06a5c;font-size:11px}
.om-stars b{display:block;margin-top:4px;font-size:17px;color:#7d2f1f}
.om-boards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.om-board-wrap h3{margin:4px 0 6px;font-size:13px;text-align:center;color:#7d2f1f}
.om-board{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
.om-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:62px;padding:4px 2px;border-radius:8px;background:white;text-align:center;line-height:1.25}
.om-cell small{color:#a59a96;font-size:9px}
.om-cell b{font-size:13px;color:#333}
.om-cell em{font-style:normal;font-size:9px;color:#666;word-break:keep-all}
.om-good{background:#e5f4e7}.om-good em{color:#2f7d43}
.om-caution{background:#fde4e4}.om-caution em{color:#b23b2e}
.om-mine{outline:2px solid #c8553d;outline-offset:-2px;background:#fff6e0}
.om-mine em{color:#c8553d;font-weight:600}
.om-days-title{margin:16px 0 6px;font-size:14px;text-align:center;color:#7d2f1f}
.om-days{width:100%;border-collapse:collapse;background:white;border-radius:12px;overflow:hidden;font-size:12px}
.om-days th{background:#f6ddd5;color:#7d2f1f;font-weight:600;padding:7px 4px}
.om-days td{padding:7px 4px;border-top:1px solid #f3e8e4;text-align:center;vertical-align:middle;line-height:1.4}
@media (max-width:380px){.om-boards{grid-template-columns:1fr}.zw-cell{min-height:96px;padding:4px 3px}.zw-major span{font-size:11px}}
