.nr-cristal { margin: 10px 0; padding: 9px; border: 1px solid #ad8c4d; background: #f6e8c8; color: #17394c; font-size: 12px; }
.nr-cristal b { display: block; margin-bottom: 7px; }
.nr-cristal button,.nr-cristal-dialog button { padding: 9px 12px; border: 1px solid #ad8c4d; border-radius: 4px; background: #16394b; color: #fff3d5; cursor: pointer; }
.nr-cristal-dialog { width: min(520px,90vw); box-sizing: border-box; max-height: 85vh; overflow: auto; padding: 24px; border: 3px double #a28142; color: #17394c; background: #f8edcf; }
.nr-cristal-dialog::backdrop { background: #001b2cb3; }
.nr-cristal-opcoes { display: grid; gap: 10px; margin: 18px 0; }
.nr-cristal-dialog button:disabled { opacity: .55; cursor: wait; }

/* Indicador junto à arte, sem aumentar o card do equipamento. */
.es-img-wrap,.inv2-slot-img,.inv2-card-img { position:relative; }
.es-img-wrap,.inv2-slot-img { overflow:visible; }
.nr-cristal-selo { position:absolute; top:-5px; right:-7px; z-index:2; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; padding:2px; box-sizing:border-box; border:1px solid #ad8c4d; border-radius:50%; background:#123848; box-shadow:0 1px 4px #0005; color:#e5fbff; }
button.nr-cristal-selo { cursor:pointer; }
.inv2-card-img .nr-cristal-selo { top:3px; right:3px; }
.nr-cristal-selo .nr-cristal-icon { width:22px !important; height:22px !important; min-width:0; max-width:none; object-fit:contain; }
.nr-cristal-gerenciar { margin:4px 0; padding:3px 6px; border:1px solid #b49a60; border-radius:3px; background:#f4e7c8; color:#244758; font-size:10px; cursor:pointer; }
.nr-cristal-selo:focus-visible,.nr-cristal-gerenciar:focus-visible { outline:2px solid #267e9d; outline-offset:2px; }
.nr-cristal-chances { padding:12px 0 4px; margin-top:10px; border-top:1px solid #b89a5c88; color:#254052; min-width:0; text-align:left; }
.nr-cristal-chances h4 { margin:0 0 8px; color:#254052; font-size:13px; }
.nr-cristal-chance { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:7px; align-items:center; padding:6px 0; border-bottom:1px solid #b89a5c33; font-size:12px; }
.nr-cristal-chance .nr-cristal-icon { width:24px; height:24px; object-fit:contain; }
.nr-cristal-chance span { overflow-wrap:anywhere; }
.nr-cristal-chance strong { white-space:nowrap; color:#206037; font-size:13px; }
.nr-cristal-chance small { display:block; font-size:11px; color:#5b523c; }
.nr-cristal-chances>small { display:block; margin-top:8px; line-height:1.45; font-size:11px; color:#5b523c; }

/* Resumo compacto nas recompensas e catálogo em janela separada. */
.nr-cristal-resumo { display:flex; align-items:center; gap:9px; }
.nr-cristal-resumo h4 { margin:0 0 3px; }
.nr-cristal-resumo small { font-size:11px; }
.nr-cristal-ver-lista { margin-top:9px; padding:8px 12px; border:1px solid #ad8c4d; border-radius:4px; background:#16394b; color:#fff3d5; cursor:pointer; font:inherit; font-size:12px; }
.nr-cristal-lista { width:min(780px,94vw); max-height:88vh; padding:0; }
.nr-cristal-lista[open] { display:flex; flex-direction:column; }
.nr-cristal-lista-cabecalho { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:18px 20px; color:#fff3d5; background:#16394b; border-bottom:2px solid #ad8c4d; }
.nr-cristal-lista-cabecalho h3 { margin:0; color:inherit; font-size:20px; }
.nr-cristal-lista-cabecalho p { margin:6px 0 0; font-size:12px; line-height:1.5; }
.nr-cristal-lista-cabecalho button { flex-shrink:0; font-size:22px; line-height:1; }
.nr-cristal-lista-corpo { padding:16px 20px; overflow:auto; min-height:0; font-size:13px; line-height:1.5; }
.nr-cristal-niveis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.nr-cristal-niveis span { padding:7px; border:1px solid #b49a60; border-radius:4px; background:#f0dfb8; }
.nr-cristal-niveis strong { color:#206037; }
.nr-cristal-busca { display:block; font-weight:600; }
.nr-cristal-busca input { display:block; width:100%; box-sizing:border-box; margin:5px 0; padding:10px; color:#17394c; background:#fffaf0; border:1px solid #b49a60; border-radius:4px; }
.nr-cristal-contagem { font-size:12px; }
.nr-cristal-familia { margin:8px 0; border:1px solid #b49a60; border-radius:5px; background:#fff8e8; }
.nr-cristal-familia summary { cursor:pointer; padding:10px; font-weight:700; background:#ecdfbf; }
.nr-cristal-item { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:9px; padding:10px; border-top:1px solid #b49a6055; }
.nr-cristal-item[hidden],.nr-cristal-familia[hidden] { display:none; }
.nr-cristal-item b { display:block; overflow-wrap:anywhere; }
.nr-cristal-item small { display:block; color:#5b523c; font-size:11px; }
.nr-cristal-item-chance { text-align:right; }
.nr-cristal-item-chance strong { color:#206037; white-space:nowrap; }
@media(max-width:480px) { .nr-cristal-lista-cabecalho,.nr-cristal-lista-corpo { padding:12px; } .nr-cristal-item { gap:6px; padding:8px; font-size:12px; } .nr-cristal-niveis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* 11/10 — opções do gerenciador com a imagem de cada cristal */
.nr-cristal-dialog h3 .nr-cristal-icon { width:28px; height:28px; object-fit:contain; vertical-align:middle; margin-right:4px; }
.nr-cristal-dialog .nr-cristal-opcao { display:flex; align-items:center; gap:12px; text-align:left; padding:8px 12px; }
.nr-cristal-dialog .nr-cristal-opcao .nr-cristal-icon { width:44px !important; height:44px !important; flex:0 0 44px; object-fit:contain; filter:drop-shadow(0 2px 3px #0008); }
.nr-cristal-opcao-txt { display:flex; flex-direction:column; gap:2px; min-width:0; }
.nr-cristal-opcao-txt b { font-weight:800; }
.nr-cristal-opcao-txt small { color:#f0d9a0; font-size:12px; }
.nr-cristal-dialog .nr-cristal-opcao:hover:not(:disabled) { filter:brightness(1.15); border-color:#e0b85c; }
