

:root { --wrap: 1060px; --min: 1104px; }


.block p:not([class]) {
margin: 0 0 14px;
color: var(--bone);
font-size: 14px;
line-height: 2;
text-wrap: pretty;
}

:is(.rules, .block ul, .gen) + p:not([class]) {
margin-top: 24px;
}

.formula {
margin: 0 0 22px;
padding: 11px 16px;
color: var(--bone);
font-size: 14px;
line-height: 1.75;
background-color: var(--head-fill);
border: 1px solid var(--bd-outer);
border-left: 2px solid var(--accent);
border-radius: var(--r-md);
}

.rules {
margin: 0 0 22px;
padding: 0;
border-top: 1px solid var(--hair);
}

.rules dt:not([class]) { color: var(--bone-hi); }

.rules dt {
padding: 13px 0 0;
font-family: var(--font-cn);
font-size: 14px;
font-weight: 600;
}

.rules dt .from {
margin-left: 10px;
color: var(--bone-faint);
font-family: var(--font-body);
font-size: 12px;
font-weight: 400;
}

.rules dd {
margin: 5px 0 0;
padding: 0 0 13px;
color: var(--bone-dim);
font-size: 14px;
line-height: 1.95;
border-bottom: 1px solid var(--hair);
}

.block ul {
margin: 0 0 18px;
padding-left: 1.4em;
color: var(--bone-dim);
font-size: 14px;
line-height: 1.95;
}

.block li + li { margin-top: 8px; }
.block li::marker { color: var(--bone-faint); }


.gen {
margin: 16px 0 26px;
font-size: 13px;
line-height: 1.6;
font-variant-numeric: tabular-nums;
}

.gen th,
.gen td {
padding: 8px 10px;
text-align: center;
white-space: nowrap;
}

.gen tbody th[scope="row"] {
color: var(--bone-hi);
font-weight: 600;
text-align: center;
}

.gen tbody tr:hover > th,
.gen tbody tr:hover > td {
background-color: var(--row-hover);
}

.gen:has(thead th:nth-child(9)):not(:has(thead th:nth-child(10))) tbody td:nth-child(2):not([class]) {
color: var(--bone-hi);
font-weight: 600;
}

.gen:has(thead th:nth-child(9)):not(:has(thead th:nth-child(10))) tbody td:nth-child(3):not([class]) {
color: var(--bone-faint);
font-size: 12px;
}

.gen:has(thead th:nth-child(9)):not(:has(thead th:nth-child(10))) tbody :is(td:nth-child(4), td:nth-child(5)):not([class]) {
color: var(--bone);
}

.gen:has(thead th:nth-child(9)):not(:has(thead th:nth-child(10))) :is(th, td):is(:nth-child(4), :nth-child(6)) {
border-left-color: var(--hair-lit);
}

.gen:has(thead th:nth-child(5)):not(:has(thead th:nth-child(6))) tbody :is(td:nth-child(2), td:nth-child(3)):not([class]) {
color: var(--bone-hi);
}

.gen:has(thead th:nth-child(5)):not(:has(thead th:nth-child(6))) tbody td:nth-child(4):not([class]) {
color: var(--bone);
}

.gen:has(thead th:nth-child(24)) {
font-size: 12px;
line-height: 1.45;
}

.gen:has(thead th:nth-child(24)) th,
.gen:has(thead th:nth-child(24)) td {
padding: 6px 4px;
}

.gen:has(thead th:nth-child(24)) thead th:first-child,
.gen:has(thead th:nth-child(24)) tbody th[scope="row"] {
padding: 6px 10px;
}


.armor-calc {
--ar-spine: 154px;
margin: 10px 0 22px;
}

.ar-panel {
display: flex;
flex-direction: column;
background-color: var(--surf-1);
border: 1px solid var(--bd-outer);
border-left: 2px solid var(--accent);
border-radius: var(--r-lg);
box-shadow: var(--sh-block);
overflow: hidden;
}

.ar-step-block {
padding: 13px 16px 14px;
border-bottom: 1px solid var(--hair);
}

.ar-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}

.ar-title {
display: flex;
align-items: center;
gap: 8px;
color: var(--bone-hi);
font-family: var(--font-cn);
font-size: 13px;
font-weight: 600;
}

.ar-step-num {
display: inline-flex;
align-items: center;
justify-content: center;
height: 18px;
padding: 0 6px;
color: var(--accent);
font-family: var(--font-disp);
font-size: 11px;
font-weight: 700;
font-variant-numeric: tabular-nums;
background-color: var(--tint-1);
border: 1px solid var(--hair-lit);
border-radius: 2px;
}

.ar-item-tag {
padding: 1px 8px;
color: var(--c-exotic);
font-size: 12px;
font-weight: 600;
background-color: rgba(232, 194, 102, .08);
border: 1px solid rgba(232, 194, 102, .35);
border-radius: 2px;
}

.ar-head-note {
color: var(--bone-dim);
font-size: 12px;
white-space: nowrap;
}


.ar-mod-matrix {
display: grid;
grid-template-columns: var(--ar-spine) repeat(6, minmax(0, 1fr));
grid-template-rows: repeat(2, 34px);
gap: 5px;
}

.ar-mod-btn,
.ar-chip,
.ar-filter-btn {
font-family: var(--font-cn);
color: var(--bone);
background-color: var(--head-fill);
border: 1px solid var(--bd-tile);
border-radius: var(--r-sm);
cursor: pointer;
user-select: none;
transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.ar-stat-ico {
flex-shrink: 0;
opacity: .8;
}

.ar-mod-btn.is-on .ar-stat-ico,
.ar-chip.is-on .ar-stat-ico,
.ar-filter-btn.is-on .ar-stat-ico,
.ar-stat-cell.is-p .ar-stat-ico,
.ar-stat-cell.is-hit .ar-stat-ico {
opacity: 1;
}

.ar-mod-btn:hover,
.ar-chip:hover,
.ar-filter-btn:hover {
color: var(--bone-hi);
background-color: var(--row-hover);
border-color: var(--hair-lit);
}

.ar-mod-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
padding: 0 8px;
font-size: 12px;
white-space: nowrap;
}

.ar-mod-unmod {
grid-column: 1;
grid-row: 1 / span 2;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 3px;
padding: 0 12px;
}

.ar-unmod-main {
color: var(--bone-hi);
font-size: 12px;
font-weight: 600;
}

.ar-unmod-sub {
color: var(--bone-dim);
font-size: 11px;
}

.ar-mod-p {
color: var(--bone-hi);
font-weight: 600;
}

.ar-mod-s {
color: var(--bone-dim);
font-size: 12px;
}

.ar-mod-btn.is-on {
color: var(--bone-hi);
background-color: var(--tint-2);
border-color: var(--accent);
box-shadow: inset 2px 0 0 var(--accent);
}

.ar-mod-btn.is-on .ar-mod-s,
.ar-mod-btn.is-on .ar-unmod-sub {
color: var(--bone);
}


.ar-pick-rows {
display: flex;
flex-direction: column;
gap: 5px;
}

.ar-pick-row {
display: grid;
grid-template-columns: var(--ar-spine) 1fr;
align-items: stretch;
gap: 5px;
}

.ar-pick-lbl {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
height: 34px;
padding: 0 11px;
background-color: var(--field-fill);
border: 1px solid var(--bd-tile);
border-radius: var(--r-sm);
white-space: nowrap;
}

.ar-lbl-name {
display: inline-flex;
align-items: center;
gap: 5px;
color: var(--bone);
font-size: 12px;
font-weight: 600;
}

.ar-lbl-val {
font-family: var(--font-disp);
font-size: 12px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}

.ar-lbl-val.is-p { color: var(--bone-hi); }
.ar-lbl-val.is-s { color: var(--bone); }
.ar-lbl-val.is-t { color: var(--bone-dim); }

.ar-pick-btns {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 5px;
}

.ar-chip {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
height: 34px;
padding: 0 8px;
font-size: 12px;
white-space: nowrap;
}

.ar-val {
color: var(--bone-dim);
font-family: var(--font-disp);
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
}

.ar-stat {
color: var(--bone);
}

.ar-chip.is-dim {
opacity: .38;
background-color: var(--ink);
}

.ar-chip.is-dim:hover {
opacity: .75;
}

.ar-chip.is-on {
color: var(--bone-hi);
background-color: var(--tint-2);
border-color: var(--accent);
box-shadow: inset 2px 0 0 var(--accent);
font-weight: 600;
}

.ar-chip.is-on .ar-val,
.ar-chip.is-on .ar-stat {
color: var(--bone-hi);
}


.ar-filter-bar {
display: grid;
grid-template-columns: var(--ar-spine) 1fr;
align-items: stretch;
gap: 5px;
padding: 11px 16px;
background-color: var(--head-fill);
border-bottom: 1px solid var(--hair);
}

.ar-step-inline {
color: var(--accent);
font-family: var(--font-disp);
font-size: 11px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}

.ar-lbl-sub {
color: var(--bone-dim);
font-size: 11px;
}

.ar-filter-btns {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 5px;
}

.ar-filter-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
height: 34px;
padding: 0 8px;
font-size: 12px;
}

.ar-filter-btn.is-on {
color: var(--bone-hi);
background-color: var(--tint-2);
border-color: var(--c-exotic);
box-shadow: inset 2px 0 0 var(--c-exotic);
font-weight: 600;
}

.ar-rank-tag {
color: var(--c-exotic);
font-size: 12px;
font-weight: 700;
}

.ar-clear-btn {
padding: 1px 6px;
font-family: var(--font-cn);
font-size: 11px;
color: var(--bone-dim);
background-color: var(--ink-lift);
border: 1px solid var(--hair-lit);
border-radius: 2px;
cursor: pointer;
}

.ar-clear-btn:hover {
color: var(--bone-hi);
border-color: var(--accent);
}


.ar-same-mod-banner,
.ar-verdict {
padding: 9px 16px;
font-size: 12px;
background-color: var(--tint-1);
border-bottom: 1px solid var(--hair);
}

.ar-same-mod-banner {
color: var(--bone-hi);
box-shadow: inset 3px 0 0 var(--c-exotic);
}

.ar-same-mod-banner b {
color: var(--c-exotic);
}

.ar-verdict.is-yes {
color: var(--bone-hi);
box-shadow: inset 3px 0 0 var(--c-strand);
}

.ar-verdict.is-yes b {
color: var(--c-strand);
}

.ar-verdict.is-no {
color: var(--bone);
box-shadow: inset 3px 0 0 var(--c-solar);
}

.ar-verdict.is-no b {
color: var(--c-solar);
}


.ar-out-sec {
padding: 13px 16px 16px;
}

.ar-sub-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
color: var(--bone-hi);
font-size: 12px;
font-weight: 600;
}

.ar-sub-head b {
color: var(--accent);
font-family: var(--font-disp);
font-variant-numeric: tabular-nums;
}

.ar-sub-note {
color: var(--bone-dim);
font-size: 12px;
font-weight: 400;
}

.ar-out-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
}

.ar-out-card {
display: flex;
flex-direction: column;
background-color: var(--head-fill);
border: 1px solid var(--bd-tile);
border-radius: var(--r-sm);
overflow: hidden;
transition: border-color .12s ease, background-color .12s ease;
}

.ar-out-card:hover {
border-color: var(--hair-lit);
background-color: var(--row-hover);
}

.ar-out-card.is-prio-hit {
background-color: rgba(232, 194, 102, .05);
border-color: rgba(232, 194, 102, .55);
box-shadow: inset 2px 0 0 var(--c-exotic);
}

.ar-out-card.is-maybe {
background-color: rgba(14, 18, 25, .6);
}

.ar-out-stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
border-bottom: 1px solid var(--hair);
}

.ar-stat-cell {
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
padding: 8px 6px;
border-right: 1px solid var(--hair);
white-space: nowrap;
}

.ar-stat-cell:last-child {
border-right: 0;
}

.ar-cell-num {
font-family: var(--font-disp);
font-size: 12px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}

.ar-cell-name {
font-size: 12px;
}

.ar-stat-cell.is-p .ar-cell-num,
.ar-stat-cell.is-p .ar-cell-name {
color: var(--bone-hi);
font-weight: 600;
}

.ar-stat-cell.is-s .ar-cell-num,
.ar-stat-cell.is-s .ar-cell-name {
color: var(--bone);
}

.ar-stat-cell.is-t .ar-cell-num,
.ar-stat-cell.is-t .ar-cell-name {
color: var(--bone-dim);
}

.ar-stat-cell.is-hit {
background-color: rgba(232, 194, 102, .1);
}

.ar-stat-cell.is-hit .ar-cell-num,
.ar-stat-cell.is-hit .ar-cell-name {
color: var(--c-exotic);
font-weight: 600;
}

.ar-out-foot {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 10px;
}

.ar-out-mod {
color: var(--bone);
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.ar-out-badge {
flex-shrink: 0;
padding: 1px 6px;
font-size: 11px;
border-radius: 2px;
white-space: nowrap;
}

.ar-out-badge.is-gold {
color: var(--c-exotic);
background-color: rgba(232, 194, 102, .1);
border: 1px solid rgba(232, 194, 102, .45);
font-weight: 600;
}

.ar-out-badge.is-cert {
color: var(--c-strand);
border: 1px solid rgba(79, 211, 138, .35);
}

.ar-out-badge.is-amb {
color: var(--bone-dim);
border: 1px solid var(--hair-lit);
}
