/* #84 WiK Codex | Raven gear stat popup. Isolated from Raven Level/Evolution; CSS gap is prohibited. */
.rge-card[data-raven-gear] {cursor:pointer; transition:border-color .15s ease,background .15s ease; touch-action:manipulation;}
.rge-card[data-raven-gear]:hover,.rge-card[data-raven-gear]:focus-visible {border-color:#d6aa4f; outline:2px solid rgba(214,170,79,.4); outline-offset:1px;}
.rge-card[data-raven-gear]:active {background:#222019;}
.rgm-overlay[hidden] {display:none!important;}
.rgm-overlay {position:fixed; inset:0; z-index:10000; display:flex; justify-content:center; align-items:center; padding:9px; background:rgba(0,0,0,.84); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);}
.rgm-dialog {box-sizing:border-box; width:100%; max-width:520px; min-width:0; max-height:min(92dvh,780px); display:flex; flex-direction:column; overflow:hidden; padding:0 12px 10px; background:linear-gradient(160deg,#1c1c1b,#0a0b0c 65%); border:1px solid rgba(214,170,79,.68); border-radius:14px; box-shadow:0 20px 65px rgba(0,0,0,.8); color:#f1f0ed; font-family:var(--font-main,system-ui,sans-serif);}
.rgm-header {display:flex; flex:none; min-width:0; align-items:center; padding:12px 0 11px; border-bottom:1px solid rgba(255,255,255,.14);}
.rgm-icon {display:block; flex:0 0 54px; width:54px; height:54px; object-fit:contain; border:1px solid rgba(214,170,79,.45); background:#141516; border-radius:9px;}
.rgm-header-copy {flex:1 1 auto; min-width:0; margin-left:11px;}
.rgm-name {margin:0 0 7px!important; color:#f3f1ed; font-size:clamp(14px,4vw,17px); line-height:1.3; font-weight:630; overflow-wrap:anywhere;}
.rgm-class {font-size:10px; padding:2px 7px; letter-spacing:normal; white-space:normal;}
.rgm-close {display:flex; align-items:center; justify-content:center; flex:0 0 36px; width:36px; height:36px; margin-left:6px; padding:0; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(255,255,255,.08); color:#f1eee8; font-size:24px; font-weight:400; line-height:1; cursor:pointer;}
.rgm-close:focus-visible {outline:2px solid #efc86e; outline-offset:2px;}
.rgm-caption {flex:none; margin:10px 0 8px; color:#d8bc80; font-size:11px; line-height:1.3; font-weight:600;}
.rgm-table-scroll {flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; border:1px solid rgba(255,255,255,.19); border-radius:8px;}
.rgm-table {box-sizing:border-box; table-layout:fixed; width:100%; max-width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums;}
.rgm-table th,.rgm-table td {box-sizing:border-box; min-width:0; border-bottom:1px solid rgba(255,255,255,.1); border-right:1px solid rgba(255,255,255,.07); padding:7px 3px; text-align:right; vertical-align:middle; line-height:1.35;}
.rgm-table :is(th,td):last-child {border-right:0;}
.rgm-table thead th {position:sticky; top:0; z-index:1; background:#242016; color:#e9c678; font-size:clamp(9px,2.8vw,11px); font-weight:650; line-height:1.28; text-align:center; white-space:normal; overflow-wrap:anywhere; word-break:normal; hyphens:auto;}
.rgm-table tbody tr:nth-child(2n) {background:rgba(255,255,255,.025);}
.rgm-table tbody tr:last-child td {border-bottom:0;}
.rgm-table td {color:#e9e9e9; font-size:clamp(10px,3.05vw,12px); white-space:nowrap; font-weight:520;}
.rgm-table th:first-child,.rgm-table td:first-child {text-align:center; color:#edc977; font-weight:680;}
.rgm-table.rgm-four td {font-size:clamp(9.5px,2.9vw,11.5px); padding-left:2px; padding-right:2px;}
.rgm-table.rgm-four th {font-size:clamp(8px,2.55vw,10px); padding:8px 2px;}
.rgm-range {display:flex; flex-direction:column; align-items:flex-end; margin:0; padding:0; line-height:1.35;}
.rgm-range-start,.rgm-range-end {display:block; max-width:100%;}
.rgm-range-arrow {display:block; width:100%; text-align:right; color:#d9ae56; font-size:10px; line-height:1.2; font-weight:600;}
.rgm-range-end {color:#f2dfab; font-weight:640;}
.rgm-footnote {flex:none; margin:9px 2px 2px; color:#aeb0af; font-size:10px; line-height:1.45;}
html.rgm-is-open,body.rgm-is-open {overflow:hidden!important; overscroll-behavior:none;}
html[lang="ru"] .rgm-dialog {font-family:"PT Sans",var(--font-main,system-ui,sans-serif);}
html[lang="ru"] .rgm-name {font-family:"PT Sans Narrow","PT Sans",sans-serif; font-weight:600; letter-spacing:0;}
html[lang="ru"] .rgm-table thead th {font-family:"PT Sans Narrow","PT Sans",sans-serif; letter-spacing:0; line-height:1.2;}
@media(max-width:360px){
 .rgm-overlay {padding:5px;}
 .rgm-dialog {padding-left:8px; padding-right:8px; border-radius:11px; max-height:94dvh;}
 .rgm-icon {flex-basis:46px; width:46px; height:46px;}
 .rgm-header {padding-top:9px; padding-bottom:9px;}
 .rgm-header-copy {margin-left:8px;}
 .rgm-close {flex-basis:32px; width:32px; height:32px; margin-left:3px;}
 .rgm-table th,.rgm-table td {padding-left:2px; padding-right:2px;}
 .rgm-table.rgm-four th {font-size:8.2px;}
 .rgm-table.rgm-four td {font-size:9.7px;}
}
