/* Progressão PvM: emblemas originais, árvore de classes e calculadora. */
.wiki-pvm .pvm-hero { border-top-color: #7289b8; background: linear-gradient(115deg, #fff 55%, #f0f4ff); }
.wiki-pvm .pvm-hero h1 { margin-bottom: 18px; }
.pvm-test-notice { display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--home-line); font-size: 12px; line-height: 1.65; color: var(--home-muted); }
.pvm-test-notice strong { flex-shrink: 0; padding: 4px 9px; border: 1px solid #d8c59d; border-radius: 4px; background: #fff8e8; color: #745822; font-size: 10px; letter-spacing: .02em; }
.pvm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wiki-pvm .pvm-section-heading h2 { margin-bottom: 14px; }
.pvm-level-limit { flex-shrink: 0; border: 1px solid #dce3f2; border-radius: 5px; padding: 7px 12px; color: #52658f; font-size: 11px; font-weight: 650; }
.pvm-tree-scroll { margin: 22px 0 10px; padding: 20px 0 0; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #e0e6f0; border-radius: 7px; background: #fcfdff; scrollbar-color: #a3b2cf #eff2f8; }
.pvm-tree { min-width: 1020px; padding: 0 14px 16px; }
.pvm-tree-root { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-bottom: 28px; color: #657147; font-size: 11px; }
.pvm-tree-root::after { position: absolute; bottom: 0; left: 50%; width: 1px; height: 23px; background: #c3ccdc; content: ''; }
.pvm-tree-root .pvm-node-icon { color: #82965b; }
.pvm-family-grid { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pvm-family-grid::before { position: absolute; top: 0; left: 8.333%; right: 8.333%; height: 1px; background: #c3ccdc; content: ''; }
.pvm-family { --family: #945060; position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 24px; min-width: 0; }
.pvm-family::before { position: absolute; top: 0; left: 50%; height: 24px; width: 1px; background: #c3ccdc; content: ''; }
.pvm-family-mage { --family: #4566a2; }
.pvm-family-acolyte { --family: #397965; }
.pvm-family-archer { --family: #a18026; }
.pvm-family-thief { --family: #845b9e; }
.pvm-family-merchant { --family: #a27641; }
.pvm-node { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-height: 96px; width: 100%; max-width: 116px; padding: 6px 3px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #4a5875; font-family: inherit; font-size: 11px; line-height: 1.4; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.pvm-node-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 45px; height: 45px; border: 2px solid currentColor; border-radius: 50%; color: var(--family, #617ca3); background: #fff; box-shadow: 0 0 0 3px #fff; }
.wiki-pvm .pvm-node-icon img, .wiki-pvm .pvm-selected-icon img { display: block; width: 25px; height: 25px; object-fit: contain; image-rendering: pixelated; }
.pvm-node:hover { background: #edf2fb; border-color: #d6e0f1; }
.pvm-node.is-selected { background: #eaf0fd; border-color: #778fc7; color: #243c74; font-weight: 750; box-shadow: 0 0 0 1px #778fc7; }
.pvm-node.is-selected .pvm-node-icon { background: #f5f8ff; }
.pvm-node:focus-visible, .pvm-table-class:focus-visible, .pvm-tree-scroll:focus-visible, .pvm-field :focus-visible { outline: 3px solid #6c84bf; outline-offset: 3px; }
.pvm-paths { position: relative; display: grid; grid-template-columns: repeat(var(--paths), minmax(0, 1fr)); width: 100%; padding-top: 21px; }
.pvm-paths::before { position: absolute; top: 0; left: calc(50% / var(--paths)); right: calc(50% / var(--paths)); height: 1px; background: #c3ccdc; content: ''; }
.pvm-paths::after { position: absolute; bottom: 100%; left: 50%; height: 8px; width: 1px; background: #c3ccdc; content: ''; }
.pvm-path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 21px; min-width: 0; }
.pvm-path::before { position: absolute; top: -21px; left: 50%; width: 1px; height: 24px; background: #c3ccdc; content: ''; }
.pvm-path .pvm-node + .pvm-node { position: relative; }
.pvm-path .pvm-node + .pvm-node::before { position: absolute; bottom: 100%; left: 50%; width: 1px; height: 21px; background: #c3ccdc; content: ''; }
.wiki-pvm .pvm-tree-hint { margin: 10px 0 24px; color: var(--home-muted); font-size: 11px; }
.wiki-pvm .pvm-expanded-title { margin-top: 22px; font-size: 16px; }
.pvm-expanded-grid { display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 14px; padding: 16px; border: 1px solid #e0e6f0; border-radius: 7px; background: #fcfdff; }
.pvm-expanded-path { --family: #6b7c98; display: flex; justify-content: flex-start; align-items: center; flex-direction: column; min-width: 0; }
.pvm-taekwon { --family: #6d8171; }
.pvm-taekwon-branches { position: relative; display: flex; justify-content: center; gap: 8px; width: 100%; padding-top: 18px; }
.pvm-taekwon-branches::before { position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: #c3ccdc; content: ''; }
.pvm-taekwon-branches::after { position: absolute; bottom: 100%; left: 50%; width: 1px; height: 9px; background: #c3ccdc; content: ''; }
.pvm-taekwon-branches .pvm-node { position: relative; }
.pvm-taekwon-branches .pvm-node::before { position: absolute; top: -18px; left: 50%; height: 21px; width: 1px; background: #c3ccdc; content: ''; }
.pvm-high-first { margin: 18px 0; padding: 12px 15px; border: 1px solid #e1e6f0; border-radius: 6px; }
.pvm-high-first summary { cursor: pointer; color: #536587; font-size: 12px; font-weight: 650; }
.wiki-pvm .pvm-high-first p { margin-top: 14px; font-size: 12px; }
.pvm-high-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pvm-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(135px, .65fr) minmax(160px, 1fr); align-items: start; gap: 20px; margin: 26px 0 16px; padding: 22px; background: #f2f5fc; border: 1px solid #dce4f4; border-radius: 8px; }
.pvm-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pvm-field label { color: #394c75; font-size: 12px; font-weight: 750; }
.pvm-field select, .pvm-field input[type="number"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c1cde2; border-radius: 5px; background: #fff; color: #223455; font: inherit; font-size: 14px; }
.pvm-field input[aria-invalid="true"] { border-color: #af4a4a; background: #fff8f8; }
.pvm-field input[type="range"] { width: 100%; min-height: 36px; accent-color: #526eae; cursor: pointer; }
.pvm-field > span, .pvm-range-labels { color: #6b7891; font-size: 10px; line-height: 1.5; }
.pvm-range-labels { display: flex; justify-content: space-between; }
.wiki-pvm .pvm-error { color: #9c3038; padding: 12px 15px; background: #fff4f4; border: 1px solid #edced1; border-radius: 5px; font-size: 13px; }
.pvm-load-status { color: var(--home-muted); font-size: 12px; }
.pvm-result { margin-top: 20px; padding: 26px; border-radius: 8px; background: #192746; color: #fff; }
.pvm-result-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.pvm-selected-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #6278a3; border-radius: 9px; background: #f2f6ff; }
.wiki-pvm .pvm-result-heading p { margin: 0 0 5px; color: #b6c5e6; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wiki-pvm .pvm-result-heading h3 { margin: 0; color: #f5f8ff; font-size: 18px; }
#pvm-selected-level { color: #b6c5e6; font-size: 14px; font-weight: 450; }
.pvm-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pvm-result-card { min-width: 0; padding: 20px 24px; border: 1px solid #476287; border-radius: 6px; background: #203653; }
.pvm-result-boss { border-color: #675b93; background: #302e54; }
.wiki-pvm .pvm-result-card h4 { margin-bottom: 12px; color: #c5d9ed; font-size: 12px; }
.wiki-pvm .pvm-result-boss h4 { color: #d9d0ef; }
.pvm-result-card output { display: block; color: #b6ecf0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.pvm-result-boss output { color: #e0d0ff; }
.wiki-pvm .pvm-result-card p { margin: 5px 0 12px; color: #c7d7ec; font-size: 12px; }
.pvm-result-card > span { color: #aabbd6; font-size: 11px; }
.wiki-pvm .pvm-maximum-note { margin: 18px 0 0; color: #b8c6df; font-size: 12px; }
.wiki-pvm .pvm-calculator-note { margin: 16px 0 0; color: #5b6b8b; font-size: 12px; }
.pvm-explanation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 28px 0; }
.pvm-step-label { display: block; margin-bottom: 12px; color: #657dad; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.wiki-pvm .pvm-explanation-grid h3 { font-size: 16px; margin-bottom: 9px; }
.wiki-pvm .pvm-explanation-grid p { color: var(--home-muted); font-size: 13px; }
.wiki-pvm .pvm-update { flex-shrink: 0; color: #6b7891; font-size: 11px; }
.pvm-class-table { min-width: 570px; }
.wiki-pvm .pvm-class-table th[scope="row"] { padding: 0 10px; background: inherit; }
.pvm-table-class { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 5px; border: 0; background: transparent; color: #304875; font: inherit; text-align: left; cursor: pointer; }
.wiki-pvm .pvm-table-class img { flex: 0 0 25px; width: 25px; height: 25px; image-rendering: pixelated; }
.pvm-table-class:hover span { text-decoration: underline; text-underline-offset: 3px; }
.pvm-table-class.is-selected { font-weight: 750; color: #193973; }
.wiki-pvm .pvm-class-table tr.is-selected { background: #e7edfb; }
.wiki-pvm .pvm-class-table td:nth-last-child(-n+2) { font-weight: 700; color: #334f7c; font-variant-numeric: tabular-nums; }
.wiki-pvm .pvm-table-note { margin: 14px 0 0; color: var(--home-muted); font-size: 12px; }
.pvm-faq { display: grid; gap: 0; }
.pvm-faq details { border-bottom: 1px solid var(--home-line); padding: 16px 0; }
.pvm-faq details:first-child { border-top: 1px solid var(--home-line); }
.pvm-faq summary { color: #334b78; font-size: 14px; font-weight: 650; cursor: pointer; line-height: 1.6; }
.wiki-pvm .pvm-faq p { margin: 12px 0 0; font-size: 13px; }
@media (max-width: 1100px) {
    .pvm-controls { grid-template-columns: minmax(0, 1.3fr) minmax(130px, .7fr); }
    .pvm-range-field { grid-column: 1 / -1; }
    .pvm-range-field label { font-weight: 500; }
    .pvm-range-labels { margin-top: -7px; }
    .pvm-update { white-space: nowrap; }
}
@media (max-width: 640px) {
    .pvm-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 0 14px; }
    .pvm-level-limit { margin-bottom: 16px; }
    .pvm-test-notice { flex-direction: column; gap: 10px; }
    .pvm-controls { grid-template-columns: minmax(0, 1fr) 108px; padding: 16px; gap: 18px 12px; }
    .pvm-field select, .pvm-field input[type="number"] { padding: 9px; font-size: 13px; }
    .pvm-expanded-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
    .pvm-taekwon { grid-column: 1 / -1; grid-row: 2; }
    .pvm-expanded-grid > .pvm-expanded-path:last-child { grid-column: 1 / -1; }
    .pvm-high-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pvm-result { padding: 20px 16px; }
    .pvm-result-grid { gap: 10px; }
    .pvm-result-card { padding: 16px 12px; }
    .wiki-pvm .pvm-result-heading h3 { font-size: 15px; }
    #pvm-selected-level { display: block; margin-top: 4px; font-size: 12px; }
    .pvm-explanation-grid { grid-template-columns: 1fr; gap: 18px; }
    .wiki-pvm .pvm-explanation-grid p { margin-bottom: 0; }
    .pvm-section-heading .pvm-update { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .pvm-node { transition: none; } }
@media (max-width: 400px) { .pvm-result-grid { grid-template-columns: 1fr; } }
