/* Saga Ninja e Passe alinhados ao Arquivo Shinobi V3. */
.xp-saga-overlay {
  background: radial-gradient(circle at 50% 12%, rgba(112, 78, 28, .34), rgba(2, 5, 7, .96) 68%) !important;
}

.xp-saga-window.nrmt-ui-frame-safe {
  width: min(1320px, calc(100vw - 28px)) !important;
  height: min(850px, calc(100vh - 32px)) !important;
  padding: 18px !important;
}

.xp-saga-content {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.xp-saga-window.nrmt-ui-frame-safe > .xp-saga-content > .xp-saga-head {
  flex: 0 0 68px;
  padding: 0 13px !important;
  border: 1px solid rgba(199, 149, 69, .3) !important;
  background:
    radial-gradient(circle at 72% 30%, rgba(121, 191, 216, .08), transparent 30%),
    linear-gradient(180deg, #182024, #0b1012) !important;
}

.xp-saga-head > div:nth-child(2),
.xp-saga-head > strong {
  min-width: 112px;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  border-color: rgba(199, 149, 69, .34) !important;
  background: #070b0d !important;
  text-align: center;
}

.xp-saga-head > strong { display: inline-flex; }
.xp-saga-head nav { gap: 7px; }

.xp-saga-summary {
  min-height: 46px !important;
  padding: 0 15px !important;
  border-right: 1px solid #273033;
  border-left: 1px solid #273033;
  background: linear-gradient(90deg, #0a0f11, #101719 48%, #080c0e) !important;
}

.xp-saga-summary b { color: #e8c570; letter-spacing: .045em; }
.xp-saga-summary span { color: #8d9998 !important; }

.xp-saga-layout {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 370px !important;
  border: 1px solid #273033;
  border-top: 0;
  background: #080c0e;
}

.xp-saga-layout > main { padding: 12px !important; background: #0b1012; }
.xp-saga-search { height: 38px; margin-bottom: 9px !important; }
.xp-saga-search input { border-color: #394448 !important; background: #070b0d !important; }
.xp-saga-search button.is-active { color: #f0ca7a !important; box-shadow: inset 3px 0 #c79545 !important; }

.xp-saga-grid {
  height: calc(100% - 47px) !important;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)) !important;
  gap: 9px !important;
  padding: 1px 6px 12px 1px;
}

.xp-saga-card {
  min-height: 158px !important;
  padding: 13px 9px 11px !important;
}

.xp-saga-card img { width: 68px !important; height: 78px !important; }
.xp-saga-card b { color: #e6d7b7; }
.xp-saga-card > span { color: #747f80 !important; letter-spacing: .025em; }
.xp-saga-card > span strong { color: #d6ad56; font-weight: 900; }
.xp-saga-card.is-selected { box-shadow: inset 3px 0 #79bfd8, 0 0 0 1px rgba(121, 191, 216, .34), 0 8px 20px #000 !important; }
.xp-saga-card.is-ready > em { top: 7px; right: 7px; border: 1px solid #e4bb64; background: #6d4813; color: #ffe5a3; }

.xp-saga-layout > aside {
  padding: 16px !important;
  border-left: 1px solid rgba(199, 149, 69, .22);
  background:
    radial-gradient(circle at 50% 16%, rgba(95, 73, 121, .18), transparent 30%),
    linear-gradient(180deg, #111719, #080c0e 72%) !important;
}

.xp-saga-detail-portrait {
  width: 142px;
  height: 152px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
}

.xp-saga-detail-portrait img {
  width: 116px;
  height: 130px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 8px #000);
}

.xp-saga-detail h2 { color: #ead9b8; font-family: NinjaTitle, Georgia, serif; font-style: italic; }
.xp-saga-detail-progress { margin: 12px 0 4px; padding: 9px; border: 1px solid #313b3e; background: #080c0e; text-align: left; }
.xp-saga-detail-progress span { display: flex; align-items: baseline; justify-content: space-between; color: #8d9897; font-size: 7px; }
.xp-saga-detail-progress span b { color: #f0c65e; font-size: 9px; }
.xp-saga-detail-progress span em { color: #8d9897; font-size: 6px; font-style: normal; letter-spacing: .08em; }
.xp-saga-detail-progress > i { display: block; height: 4px; margin-top: 7px; background: #242c2f; }
.xp-saga-detail-progress > i u { display: block; height: 100%; background: linear-gradient(90deg, #a36d20, #e5bd5d, #79bfd8); }
.xp-stage-list { margin-top: 8px !important; }
.xp-stage-list article { min-height: 43px; grid-template-columns: 1fr 1fr 92px !important; }
.xp-stage-list article.is-done { border-color: rgba(102, 185, 135, .42) !important; }

.nrmt-pass-mission > i { overflow: hidden; border-radius: 2px !important; }
.nrmt-pass-mission > i img { width: 100%; height: 100%; object-fit: cover; }
.nrmt-pass-reward > img { object-fit: contain; filter: drop-shadow(0 4px 4px #000); }
.nrmt-pass-reward.claimed > img { filter: grayscale(.45) brightness(.72); }

@media (max-width: 1000px) {
  .xp-saga-layout { grid-template-columns: 1fr !important; }
  .xp-saga-layout > aside { display: none; }
}

@media (max-width: 720px) {
  .xp-saga-window.nrmt-ui-frame-safe { padding: 12px !important; }
  .xp-saga-head > div:nth-child(2), .xp-saga-head > strong { display: none; }
  .xp-saga-search { height: auto; flex-wrap: wrap; }
  .xp-saga-search input { flex-basis: 100%; }
  .xp-saga-grid { height: calc(100% - 78px) !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
