/* Centro de Breeding v3 — mesma linguagem visual da Coleção de Ninjas
   (ninja-collection.css / ninja-card-v5.css): fundo escuro oliva/âmbar,
   NinjaTitle nos títulos, cartas com moldura fina e raridade colorida. */
.nrmt-breed-overlay{position:fixed;z-index:1001200;inset:0;display:grid;place-items:center;padding:20px;
  background:#020507e8;backdrop-filter:blur(6px);font-family:"Segoe UI",Arial,sans-serif;color:#d9dddc}
.nrmt-breed-overlay[hidden]{display:none}
.nrmt-breed-overlay.is-busy{pointer-events:none;opacity:.85}
.nrmt-breed-window{box-sizing:border-box;width:min(1180px,100%);max-height:calc(100vh - 40px);
  display:flex;flex-direction:column;overflow:hidden;border:1px solid #806027;border-radius:5px;
  background:linear-gradient(145deg,#252b2e,#101416);box-shadow:0 28px 95px #000}

.nrmt-breed-head{display:flex;align-items:center;gap:16px;padding:0 16px;min-height:64px;
  border-bottom:1px solid #664c22;background:linear-gradient(#3a4041,#23282a)}
.nrmt-breed-head>div{min-width:0;flex:1;padding:9px 0}
.nrmt-breed-head small{display:block;color:#929a97;font-size:7px;letter-spacing:.18em}
.nrmt-breed-head h2{margin:3px 0;color:#efc24c;font:18px NinjaTitle,Georgia,serif;letter-spacing:.08em}
.nrmt-breed-head p{margin:0;color:#7c8480;font-size:9px;max-width:560px}
.nrmt-breed-wallet{display:flex;gap:5px;flex:none}
.nrmt-breed-wallet span{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;
  column-gap:6px;min-width:74px;padding:5px 9px;border:1px solid #444b4d;background:#171c1e}
.nrmt-breed-wallet__glyph{grid-row:1/3;font-style:normal;font-size:15px;color:#e6ba50;text-align:center}
.nrmt-breed-wallet__icon{grid-row:1/3;width:22px;height:22px;object-fit:contain;image-rendering:pixelated;
  filter:drop-shadow(0 2px 2px #000)}
.nrmt-breed-wallet small{display:block;color:#737b77;font-size:5px;letter-spacing:.06em;white-space:nowrap}
.nrmt-breed-wallet b{display:block;margin-top:1px;color:#e6ba50;font-size:11px;font-weight:700}
.nrmt-breed-wallet .is-diamond .nrmt-breed-wallet__glyph,.nrmt-breed-wallet .is-diamond b{color:#66d9ff}
.nrmt-breed-close{flex:none;width:32px;height:32px;border:1px solid #6c4637;background:#2c1c19;
  color:#e4c7b9;font-size:19px;cursor:pointer}
.nrmt-breed-close:hover{background:#3a2620}

.nrmt-breed-body{min-height:0;flex:1;display:grid;grid-template-columns:280px minmax(0,1fr) 260px;gap:0;overflow:auto}
.nrmt-breed-body>section,.nrmt-breed-side>section{box-sizing:border-box;padding:14px;border-right:1px solid #3b4143}
.nrmt-breed-side{display:flex;flex-direction:column;border-left:1px solid #3b4143}
.nrmt-breed-side>section{border-right:0;border-bottom:1px solid #3b4143}
.nrmt-breed-side>section:last-child{border-bottom:0;flex:1}
.nrmt-breed-parents{background:#111618}
.nrmt-breed-analysis{background:#151a1c}
.nrmt-breed-body>small,.nrmt-breed-parents>small,.nrmt-breed-analysis>small,
.nrmt-breed-incubator>small,.nrmt-breed-bonuses>small{display:block;margin-bottom:10px;
  color:#d7aa3e;font:9px NinjaTitle,Georgia,serif;letter-spacing:.1em}

/* Moldura de retrato reutilizável — mesmo padrão de .nrmt-ninja-card__portrait:
   caixa com borda + fundo radial, nunca a imagem solta no vazio. */
.nrmt-breed-portrait{margin:0;flex:none;display:grid;place-items:center;overflow:hidden;
  border:1px solid #444c4e;border-radius:3px;background:radial-gradient(circle,#2c3538,#080b0c)}
.nrmt-breed-portrait img{max-width:86%;max-height:86%;object-fit:contain;image-rendering:pixelated;
  filter:drop-shadow(0 5px 3px #000)}
.nrmt-breed-portrait__placeholder{color:#4c5352;font-size:22px}
.nrmt-breed-portrait--xs{width:44px;height:48px}
.nrmt-breed-portrait--sm{width:56px;height:62px}
.nrmt-breed-portrait--md{width:72px;height:78px}
.nrmt-breed-portrait--lg{width:92px;height:98px;border-color:#5a6870;
  box-shadow:0 0 0 1px #22282a,inset 0 0 18px rgba(199,149,69,.1)}

/* Par reprodutor */
.nrmt-breed-parents__row{display:flex;align-items:center;gap:8px}
.nrmt-breed-heart{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  border:1px solid #664c22;background:radial-gradient(circle,#3a2e15,#171310);color:#e6ba50;font-size:16px;font-style:normal}
.nrmt-breed-slot{position:relative;box-sizing:border-box;width:100%;min-height:220px;display:flex;flex-direction:column;
  align-items:center;gap:6px;padding:26px 8px 12px;border:1px dashed #3b4143;background:#0e1214;text-align:center}
.nrmt-breed-slot.is-empty{color:#5c6461}
.nrmt-breed-slot.is-empty b{color:#9aa39e;font:11px NinjaTitle,Georgia,serif}
.nrmt-breed-slot.is-empty span{color:#5c6461;font-size:8px}
.nrmt-breed-slot:not(.is-empty){border-style:solid;border-color:#363d3f;background:linear-gradient(145deg,#1d2325,#0e1214)}
.nrmt-breed-slot__label{position:absolute;left:8px;top:8px;color:#737b77;font-size:5px;font-weight:700;letter-spacing:.1em}
.nrmt-breed-slot__clear{position:absolute;right:6px;top:6px;width:20px;height:20px;border:1px solid #444b4d;
  background:#171c1e;color:#c3ccca;font-size:12px;cursor:pointer;line-height:1}
.nrmt-breed-slot b{color:#e5c46d;font:13px NinjaTitle,Georgia,serif}
.nrmt-breed-slot>span{color:#808884;font-size:9px}
.nrmt-breed-slot__stats{display:flex;align-items:center;gap:8px;font-size:9px;color:#c3ccca}
.nrmt-breed-rarity-tag{padding:2px 6px;border-radius:3px;font:900 6px "Segoe UI",Arial,sans-serif;letter-spacing:.09em;
  border:1px solid #6c7476;background:#101719;color:#c3ccca}
.nrmt-breed-slot__progress{width:88%;height:4px;margin-top:2px;overflow:hidden;background:#090c0d;border:1px solid #232928}
.nrmt-breed-slot__progress u{display:block;height:100%;background:linear-gradient(90deg,#9c439e,#e579dd)}
.nrmt-breed-slot__progress-label{color:#737b77;font-size:6px}
.nrmt-breed-hint{margin-top:10px;color:#7c8480;font-size:8px;text-align:center;line-height:1.5}

/* Cores de raridade — iguais às da Coleção de Ninjas (ninja-card-v5.css) */
.rarity-common{border-color:#6c7476}.rarity-uncommon{border-color:#3f9a5f}.rarity-rare{border-color:#3f7cc4}
.rarity-epic{border-color:#8a5bc4}.rarity-legendary{border-color:#bd8f2e}.rarity-mythic{border-color:#bf5140}
.nrmt-breed-rarity-tag.rarity-uncommon{border-color:#3f9a5f;color:#7fe0a0}
.nrmt-breed-rarity-tag.rarity-rare{border-color:#3f7cc4;color:#86bdf5}
.nrmt-breed-rarity-tag.rarity-epic{border-color:#8a5bc4;color:#c79bf3}
.nrmt-breed-rarity-tag.rarity-legendary{border-color:#bd8f2e;color:#f4cf73}
.nrmt-breed-rarity-tag.rarity-mythic{border-color:#bf5140;color:#f7a08c}

/* Análise */
.nrmt-breed-empty{display:flex;height:100%;min-height:260px;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;color:#7c8480;text-align:center;padding:20px}
.nrmt-breed-empty i{font-size:28px;font-style:normal;color:#4c5352}
.nrmt-breed-empty b{color:#c3ccca;font:12px NinjaTitle,Georgia,serif;letter-spacing:.04em}
.nrmt-breed-empty span{font-size:10px;max-width:320px}
.nrmt-breed-empty.is-blocked i{color:#e04d67}
.nrmt-breed-target,.nrmt-breed-material{display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:8px;
  border:1px solid #363d3f;background:#171c1e}
.nrmt-breed-target{border-color:#c0902e}
.nrmt-breed-target small,.nrmt-breed-material small{display:block;color:#737b77;font-size:5px;font-weight:700;letter-spacing:.1em}
.nrmt-breed-target b,.nrmt-breed-material b{color:#e5c46d;font:12px NinjaTitle,Georgia,serif}
.nrmt-breed-target span,.nrmt-breed-material span{color:#808884;font-size:9px}
.nrmt-breed-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.nrmt-breed-grid>div{display:flex;flex-direction:column;gap:4px}
.nrmt-breed-grid small{color:#737b77;font-size:6px;font-weight:700;letter-spacing:.08em}
.nrmt-breed-grid b{color:#e4bd58;font-size:11px}
.nrmt-breed-bar{height:6px;overflow:hidden;background:#090c0d;border:1px solid #303838}
.nrmt-breed-bar u{display:block;height:100%;background:#c69b36}
.nrmt-breed-bar.is-progress u{background:linear-gradient(90deg,#9c439e,#e579dd)}
.nrmt-breed-label{display:block;margin:4px 0 6px;color:#737b77;font-size:6px;font-weight:700;letter-spacing:.08em}
.nrmt-breed-chances{display:flex;gap:6px;margin-bottom:10px}
.nrmt-breed-chances span{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px;
  border:1px solid #303838;background:#101617}
.nrmt-breed-chances b{color:#d9a944;font-size:9px}
.nrmt-breed-chances small{color:#9aa39e;font-size:7px}
.nrmt-breed-bonus{margin-bottom:10px}
.nrmt-breed-bonus>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.nrmt-breed-bonus button{box-sizing:border-box;display:grid;grid-template-columns:22px 1fr;align-items:center;
  column-gap:8px;padding:8px 10px;border:1px solid #303838;background:#101617;color:#9aa39e;cursor:pointer;text-align:left}
.nrmt-breed-bonus button img{grid-row:1/3;width:22px;height:22px;object-fit:contain;image-rendering:pixelated}
.nrmt-breed-bonus button i{grid-row:1/3;font-style:normal;font-size:16px;color:#9aa39e;text-align:center}
.nrmt-breed-bonus button b{color:#d9dedb;font-size:9px}
.nrmt-breed-bonus button span{color:#737b77;font-size:7px}
.nrmt-breed-bonus button.is-active{border-color:#c0902e;background:linear-gradient(145deg,#2d281b,#15191a)}
.nrmt-breed-bonus button.is-active b{color:#efc352}
.nrmt-breed-cost{display:flex;flex-wrap:wrap;gap:10px;padding:8px 10px;margin-bottom:8px;border:1px solid #394042;
  background:#171c1e;font-size:9px}
.nrmt-breed-cost span{display:flex;align-items:center;gap:6px;color:#d9dedb}
.nrmt-breed-cost i{color:#d8aa43;font-style:normal;font-size:12px}
.nrmt-breed-cost img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}
.nrmt-breed-missing{margin:0 0 8px;color:#ff8496;font-size:9px}
.nrmt-breed-start{width:100%;min-height:40px;border:1px solid #9a7127;background:linear-gradient(#c9992d,#785517);
  color:#fff1c1;font:9px NinjaTitle,Georgia,serif;letter-spacing:.04em;cursor:pointer}
.nrmt-breed-start:hover:not(:disabled){filter:brightness(1.08)}
.nrmt-breed-start:disabled{border-color:#3c4344;background:#242a2c;color:#69706d;cursor:not-allowed}

/* Incubadora + bônus */
.nrmt-breed-incubator>small b{margin-left:5px;padding:2px 6px;background:#171c1e;color:#d9dedb;font:6px Segoe UI,Arial,sans-serif}
.nrmt-breed-incubator__grid{display:grid;gap:8px}
.nrmt-breed-egg{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:1px dashed #3b4143;
  background:#0e1214;text-align:center}
.nrmt-breed-egg.is-empty{color:#5c6461}
.nrmt-breed-egg img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}
.nrmt-breed-egg b{color:#e5c46d;font-size:10px}
.nrmt-breed-egg small{color:#737b77;font-size:9px;font-variant-numeric:tabular-nums}
.nrmt-breed-egg.is-ready{border-style:solid;border-color:#c0902e;background:linear-gradient(145deg,#2d281b,#15191a)}
.nrmt-breed-egg.is-ready small{color:#efc352;font-weight:700}
.nrmt-breed-egg__actions{margin-top:2px}
.nrmt-breed-egg__actions button{padding:6px 10px;border:1px solid #4c784f;background:linear-gradient(#426f48,#28462d);
  color:#b9ecc0;font-size:9px;font-weight:700;cursor:pointer}
.nrmt-breed-egg:not(.is-ready) .nrmt-breed-egg__actions button{border-color:#444b4d;background:#171c1e;color:#c3ccca}
.nrmt-breed-bonus-card{display:flex;gap:8px;align-items:flex-start;padding:8px;margin-bottom:6px;border:1px solid #363d3f;
  background:#171c1e}
.nrmt-breed-bonus-card:last-child{margin-bottom:0}
.nrmt-breed-bonus-card i{flex:none;color:#d8aa43;font-size:14px;font-style:normal}
.nrmt-breed-bonus-card small{display:block;color:#737b77;font-size:5px;font-weight:700;letter-spacing:.08em}
.nrmt-breed-bonus-card b{display:block;margin:2px 0;color:#e5c46d;font-size:10px}
.nrmt-breed-bonus-card span{color:#808884;font-size:8px;line-height:1.4}

/* Caixa de ninjas */
.nrmt-breed-foot{box-sizing:border-box;border-top:1px solid #3a4142;background:#111618;padding:10px 16px 14px}
.nrmt-breed-box-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.nrmt-breed-box-toolbar small{color:#d7aa3e;font:9px NinjaTitle,Georgia,serif;letter-spacing:.1em;flex:none}
.nrmt-breed-box-toolbar input{flex:1;min-width:120px;height:30px;padding:0 9px;border:1px solid #424a4c;
  background:#090d0f;color:#ddd;font-size:8px}
.nrmt-breed-box-toolbar input:focus{outline:none;border-color:#a87c2b}
.nrmt-breed-box-toolbar select{height:30px;padding:0 8px;border:1px solid #42494b;background:#0c1012;
  color:#bdc2bf;font-size:7px}
.nrmt-breed-box{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}
.nrmt-breed-box-card{position:relative;flex:0 0 96px;box-sizing:border-box;display:flex;flex-direction:column;
  align-items:center;gap:3px;padding:8px 6px;border:1px solid #363d3f;background:linear-gradient(145deg,#1d2325,#0e1214);
  color:#d9ddda;cursor:pointer;text-align:center;transition:.16s}
.nrmt-breed-box-card:hover{border-color:#6c5931;transform:translateY(-1px)}
.nrmt-breed-box-card.is-selected{border-color:#c0902e;background:linear-gradient(145deg,#2d281b,#15191a);
  box-shadow:inset 3px 0 #e6b13b}
.nrmt-breed-box-card.is-locked{opacity:.45;cursor:not-allowed}
.nrmt-breed-box-card img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated;
  filter:drop-shadow(0 4px 3px #000)}
.nrmt-breed-box-card b{overflow:hidden;color:#e5c46d;font:10px NinjaTitle,Georgia,serif;text-overflow:ellipsis;
  white-space:nowrap;max-width:100%}
.nrmt-breed-box-card span{color:#808884;font-size:7px}
.nrmt-breed-box-card small{color:#efc352;font-size:6px;font-weight:700;letter-spacing:.06em}
.nrmt-breed-box-mark{position:absolute;left:5px;top:5px;width:16px;height:16px;display:grid;place-items:center;
  border-radius:50%;background:#c0902e;color:#171c1e;font-size:9px;font-weight:900}
.nrmt-breed-box-empty{padding:20px;color:#777f7b;text-align:center;font-size:10px}

body.nrmt-breed-open .nrmt-breed-overlay ::-webkit-scrollbar{width:8px;height:8px}
.nrmt-breed-overlay ::-webkit-scrollbar-track{background:#0d1112}
.nrmt-breed-overlay ::-webkit-scrollbar-thumb{background:#806028}
.nrmt-breed-overlay{scrollbar-color:#806028 #0d1112}

@media(max-width:980px){
  .nrmt-breed-body{grid-template-columns:1fr}
  .nrmt-breed-side{flex-direction:row;flex-wrap:wrap;border-left:0;border-top:1px solid #3b4143}
  .nrmt-breed-side>section{flex:1;min-width:220px;border-bottom:0;border-right:1px solid #3b4143}
  .nrmt-breed-side>section:last-child{border-right:0}
}
@media(max-width:640px){
  .nrmt-breed-overlay{padding:0}
  .nrmt-breed-window{width:100%;max-height:100vh;border-radius:0}
  .nrmt-breed-head{flex-wrap:wrap;min-height:0;padding:10px}
  .nrmt-breed-wallet{flex-wrap:wrap}
  .nrmt-breed-parents__row{flex-direction:column}
  .nrmt-breed-heart{transform:rotate(90deg)}
  .nrmt-breed-side{flex-direction:column}
}
