/* 신년보감's code-made parts drawn as pictures (2026-11-22, public/year-visuals.js). Shared by the reading and the free preview. */
.yv-fields-card, .yv-elements-card { margin: 22px 0 18px; padding: 18px 16px 16px; border: 1px solid var(--line, #d8cab4); border-radius: 16px; background: #fffaf0; }
.yv-kicker { margin: 0 0 4px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--brand, #a8321f); }
.yv-title { margin: 0 0 6px; font-family: var(--display, serif); font-size: 20px; line-height: 1.35; text-align: center; word-break: keep-all; color: var(--ink, #2a211c); }
.yv-note { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted, #6f645b); word-break: keep-all; }

/* The pentagon of stars. */
.yv-chart { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto 6px; overflow: visible; }
.yv-grid { fill: none; stroke: #e6d8c2; stroke-width: 1; }
.yv-grid-edge { fill: #fbf2e2; stroke: #d7c3a4; stroke-width: 1.4; }
.yv-axis { stroke: #e6d8c2; stroke-width: 1; }
.yv-shape { fill: rgba(192, 72, 50, .22); stroke: #b8432c; stroke-width: 2.4; stroke-linejoin: round; }
.yv-dot { fill: #b8432c; stroke: #fffaf0; stroke-width: 2; }
.yv-label { font: 700 14px/1 var(--display, serif); fill: #3a2e27; }
.yv-label-stars { font: 700 12px/1 system-ui, sans-serif; fill: #b8432c; }

/* One row per field: stamp, name with its month counts, stars. */
.yv-fields { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.yv-field { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 12px; background: #f6ecdb; }
.yv-stamp { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--stamp, #b8432c); color: #fffaf0; font: 700 22px/1 var(--display, serif); box-shadow: inset 0 0 0 2px rgba(255, 250, 240, .35); }
.yv-field-career { --stamp: #7a5230; }
.yv-field-wealth { --stamp: #b8862c; }
.yv-field-love { --stamp: #c0483d; }
.yv-field-people { --stamp: #5d7a4c; }
.yv-field-study { --stamp: #3f5f86; }
.yv-field-text { display: grid; gap: 1px; min-width: 0; }
.yv-field-text strong { font-size: 16px; line-height: 1.35; word-break: keep-all; }
.yv-counts { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; line-height: 1.45; color: var(--muted, #6f645b); }
.yv-counts > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.yv-counts > span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6f9a5b; }
.yv-counts > .yv-count-bad::before { background: #c2412d; }
.yv-stars { color: #dccdb3; font-size: 17px; letter-spacing: 1px; white-space: nowrap; }
.yv-stars b { color: #c2412d; font-weight: 400; }
@media (max-width: 360px) { .yv-field { grid-template-columns: 38px 1fr auto; gap: 9px; } .yv-stamp { width: 38px; height: 38px; font-size: 20px; } .yv-stars { font-size: 15px; letter-spacing: 0; } }

/* The five elements as bars, each with what it means for this person. */
.yv-elements { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.yv-element { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; }
.yv-element-mark { grid-row: span 2; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--el, #8d9690); color: #fff; font: 700 17px/1 var(--display, serif); }
.yv-element-head { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: center; gap: 10px; }
.yv-element-head strong { font-size: 15px; line-height: 1.4; word-break: keep-all; }
.yv-element-bar { height: 9px; border-radius: 5px; background: #ece2d2; overflow: hidden; }
.yv-element-bar > span { display: block; height: 100%; border-radius: 5px; background: var(--el, #8d9690); }
.yv-element-count { font-size: 14px; font-weight: 700; color: var(--muted, #6f645b); white-space: nowrap; }
.yv-element-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink, #2a211c); word-break: keep-all; overflow-wrap: anywhere; }
.yv-wood { --el: #5f8f4e; } .yv-fire { --el: #cf5a40; } .yv-earth { --el: #b98f3c; } .yv-metal { --el: #8d9690; } .yv-water { --el: #4f78a0; }

/* The talisman: the element in red ink on yellow paper. Our own card, nothing traced. */
.yv-charm { position: relative; margin: 24px 0 18px; padding: 22px 18px 18px; border: 2px solid #b3261e; outline: 1px solid #b3261e; outline-offset: -8px; border-radius: 6px;
  background: radial-gradient(120% 90% at 50% 0%, #fbe7a6 0%, #f4d47c 70%, #eecb6a 100%); color: #5a1d12; text-align: center; }
.yv-charm-title { margin: 0 0 10px; font: 700 17px/1.4 var(--display, serif); letter-spacing: .04em; color: #8c1f14; }
.yv-charm-seal { display: grid; justify-items: center; gap: 4px; }
.yv-charm-hanja { display: grid; place-items: center; width: 92px; height: 92px; border: 3px solid #b3261e; border-radius: 50%; color: #b3261e; font: 800 58px/1 var(--display, serif); background: rgba(255, 250, 235, .35); }
.yv-charm-seal strong { font-size: 18px; color: #7c1c12; }
.yv-charm-note { margin: 4px 0 14px; font-size: 14px; line-height: 1.55; color: #6b2a1c; word-break: keep-all; }
.yv-charm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.yv-charm-cell { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 4px; border-radius: 10px; background: rgba(255, 250, 235, .55); font-size: 14px; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.yv-charm-cell small { font-size: 12px; font-weight: 700; color: #9b3a26; letter-spacing: .04em; }
.yv-swatches { display: flex; gap: 6px; }
.yv-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(90, 29, 18, .35); }
.yv-compass { width: 42px; height: 42px; }
.yv-compass-ring { fill: rgba(255, 250, 235, .7); stroke: #b3261e; stroke-width: 1.6; }
.yv-compass-off { font: 600 11px/1 system-ui, sans-serif; fill: #b98a72; }
.yv-compass-on { font: 800 13px/1 system-ui, sans-serif; fill: #b3261e; }
.yv-compass-dot { fill: #b98a72; }
.yv-compass-dot-on { fill: #b3261e; }
.yv-charm-numbers { font: 800 26px/1.1 var(--display, serif); color: #b3261e; letter-spacing: .02em; }
.yv-charm-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; padding: 12px 6px 0; border-top: 1px dashed rgba(179, 38, 30, .45); text-align: left; }
.yv-charm-list dt { font-size: 13px; font-weight: 800; color: #9b3a26; padding-top: 2px; }
.yv-charm-list dd { margin: 0; font-size: 15px; line-height: 1.55; word-break: keep-all; }
